-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathindex.js
More file actions
53 lines (46 loc) · 1.5 KB
/
index.js
File metadata and controls
53 lines (46 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* General purpose utility functions used in the panes
* oshani@csail.mit.edu
*
* Includes form-oriented widgets timbl@w3.org
*
* sign-in sign-up widgets are in signin.js
*
* Note... For pointers to posssible text-editing code, see
* http://stackoverflow.com/questions/6756407/what-contenteditable-editors
*/
// Each widget should ideally live in its own file. In order to break up this
// monolithic widget index over time, we should add new widgets to the
// 'lib/widgets/' directory, and re-export them by merging the module namespaces:
//
// (In order to avoid name collisions, it is safely assumed that modules don't
// export widgets with the same name)
export * from './peoplePicker'
export * from './dragAndDrop'
export * from './buttons'
export * from './buttons/iconLinks'
export * from './error'
export * from './forms'
export * from './modals'
export * from './forms/autocomplete/autocompleteBar'
export * from './forms/autocomplete/autocompletePicker'
export * as publicData from './forms/autocomplete/publicData'
/*
import * as peoplePicker from './peoplePicker'
import * as dragAndDrop from './dragAndDrop'
import * as buttons from './buttons'
import * as error from './error'
import { forms } from './forms'
const widgets = Object.assign(
{},
buttons,
peoplePicker,
dragAndDrop,
error,
forms
)
// export default widgets .. Policy is not to use exports default
module.export = widgets // @@ Apparently no way to do this (yet?) in esm
console.log('widgets exported:', widgets)
*/
// ends