skuilder 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +162 -2
  2. package/dist/cli.d.ts +3 -0
  3. package/dist/cli.d.ts.map +1 -0
  4. package/dist/cli.js +35 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/commands/init.d.ts +3 -0
  7. package/dist/commands/init.d.ts.map +1 -0
  8. package/dist/commands/init.js +70 -0
  9. package/dist/commands/init.js.map +1 -0
  10. package/dist/types.d.ts +35 -0
  11. package/dist/types.d.ts.map +1 -0
  12. package/dist/types.js +35 -0
  13. package/dist/types.js.map +1 -0
  14. package/dist/utils/prompts.d.ts +5 -0
  15. package/dist/utils/prompts.d.ts.map +1 -0
  16. package/dist/utils/prompts.js +185 -0
  17. package/dist/utils/prompts.js.map +1 -0
  18. package/dist/utils/template.d.ts +26 -0
  19. package/dist/utils/template.d.ts.map +1 -0
  20. package/dist/utils/template.js +170 -0
  21. package/dist/utils/template.js.map +1 -0
  22. package/eslint.config.mjs +21 -0
  23. package/package.json +41 -36
  24. package/src/cli.ts +42 -0
  25. package/src/commands/init.ts +83 -0
  26. package/src/types.ts +72 -0
  27. package/src/utils/prompts.ts +204 -0
  28. package/src/utils/template.ts +215 -0
  29. package/tsconfig.json +12 -21
  30. package/.npmignore +0 -56
  31. package/android/app/BUCK +0 -65
  32. package/android/app/build.gradle +0 -139
  33. package/android/app/proguard-rules.pro +0 -66
  34. package/android/app/src/main/AndroidManifest.xml +0 -32
  35. package/android/app/src/main/java/com/rxphelloworld/MainActivity.java +0 -15
  36. package/android/app/src/main/java/com/rxphelloworld/MainApplication.java +0 -40
  37. package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  38. package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  39. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  40. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  41. package/android/app/src/main/res/values/strings.xml +0 -3
  42. package/android/app/src/main/res/values/styles.xml +0 -8
  43. package/android/build.gradle +0 -24
  44. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  45. package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  46. package/android/gradle.properties +0 -20
  47. package/android/gradlew +0 -164
  48. package/android/gradlew.bat +0 -90
  49. package/android/keystores/BUCK +0 -8
  50. package/android/keystores/debug.keystore.properties +0 -4
  51. package/android/settings.gradle +0 -3
  52. package/img/fingerCounter/1.PNG +0 -0
  53. package/img/fingerCounter/10.PNG +0 -0
  54. package/img/fingerCounter/2.PNG +0 -0
  55. package/img/fingerCounter/3.PNG +0 -0
  56. package/img/fingerCounter/4.PNG +0 -0
  57. package/img/fingerCounter/5.PNG +0 -0
  58. package/img/fingerCounter/6.PNG +0 -0
  59. package/img/fingerCounter/7.PNG +0 -0
  60. package/img/fingerCounter/8.PNG +0 -0
  61. package/img/fingerCounter/9.PNG +0 -0
  62. package/index.android.js +0 -1
  63. package/index.html +0 -30
  64. package/index.ios.js +0 -1
  65. package/ios/RXPHelloWorld/AppDelegate.h +0 -16
  66. package/ios/RXPHelloWorld/AppDelegate.m +0 -37
  67. package/ios/RXPHelloWorld/Base.lproj/LaunchScreen.xib +0 -42
  68. package/ios/RXPHelloWorld/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  69. package/ios/RXPHelloWorld/Info.plist +0 -56
  70. package/ios/RXPHelloWorld/main.m +0 -18
  71. package/ios/RXPHelloWorld.xcodeproj/project.pbxproj +0 -1251
  72. package/ios/RXPHelloWorld.xcodeproj/xcshareddata/xcschemes/RXPHelloWorld-tvOS.xcscheme +0 -129
  73. package/ios/RXPHelloWorld.xcodeproj/xcshareddata/xcschemes/RXPHelloWorld.xcscheme +0 -129
  74. package/ios/RXPHelloWorldTests/Info.plist +0 -24
  75. package/ios/RXPHelloWorldTests/RXPHelloWorldTests.m +0 -70
  76. package/src/App.tsx +0 -206
  77. package/src/appUtilities/Grader.ts +0 -72
  78. package/src/appUtilities/Keybinder.ts +0 -28
  79. package/src/appUtilities/Recorder.ts +0 -73
  80. package/src/cloudantFiles/_users._design._auth.validate_doc_update.js +0 -136
  81. package/src/components/ProgressChart.tsx +0 -155
  82. package/src/components/fingerCounter/fingerCounter.tsx +0 -38
  83. package/src/components/fingerCounter/resources/hands.svg +0 -512
  84. package/src/components/numpad.tsx +0 -146
  85. package/src/components/sessionReport.tsx +0 -87
  86. package/src/index.tsx +0 -8
  87. package/src/styles/answerStyles.css +0 -22
  88. package/src/typings/react.d.ts +0 -964
  89. package/webpack.config.ts +0 -26
  90. package/yarn.lock +0 -6208
@@ -1,964 +0,0 @@
1
- // Type definitions for React v0.14
2
- // Project: http://facebook.github.io/react/
3
- // Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>
4
- // Definitions: https://github.com/borisyankov/DefinitelyTyped
5
-
6
- declare namespace __React {
7
- //
8
- // React Elements
9
- // ----------------------------------------------------------------------
10
-
11
- type ReactType = ComponentClass<any> | string;
12
-
13
- interface ReactElement<P> {
14
- type: string | ComponentClass<P>;
15
- props: P;
16
- key: string | number;
17
- ref: string | ((component: Component<P, any>) => any);
18
- }
19
-
20
- interface ClassicElement<P> extends ReactElement<P> {
21
- type: string | ClassicComponentClass<P>;
22
- ref: string | ((component: ClassicComponent<P, any>) => any);
23
- }
24
-
25
- interface DOMElement<P> extends ClassicElement<P> {
26
- type: string;
27
- ref: string | ((component: DOMComponent<P>) => any);
28
- }
29
-
30
- type HTMLElement = DOMElement<HTMLAttributes>;
31
- type SVGElement = DOMElement<SVGAttributes>;
32
-
33
- //
34
- // Factories
35
- // ----------------------------------------------------------------------
36
-
37
- interface Factory<P> {
38
- (props?: P, ...children: ReactNode[]): ReactElement<P>;
39
- }
40
-
41
- interface ClassicFactory<P> extends Factory<P> {
42
- (props?: P, ...children: ReactNode[]): ClassicElement<P>;
43
- }
44
-
45
- interface DOMFactory<P> extends ClassicFactory<P> {
46
- (props?: P, ...children: ReactNode[]): DOMElement<P>;
47
- }
48
-
49
- type HTMLFactory = DOMFactory<HTMLAttributes>;
50
- type SVGFactory = DOMFactory<SVGAttributes>;
51
- type SVGElementFactory = DOMFactory<SVGElementAttributes>;
52
-
53
- //
54
- // React Nodes
55
- // http://facebook.github.io/react/docs/glossary.html
56
- // ----------------------------------------------------------------------
57
-
58
- type ReactText = string | number;
59
- type ReactChild = ReactElement<any> | ReactText;
60
-
61
- // Should be Array<ReactNode> but type aliases cannot be recursive
62
- type ReactFragment = {} | Array<ReactChild | any[] | boolean>;
63
- type ReactNode = ReactChild | ReactFragment | boolean;
64
-
65
- //
66
- // Top Level API
67
- // ----------------------------------------------------------------------
68
-
69
- function createClass<P, S>(spec: ComponentSpec<P, S>): ClassicComponentClass<P>;
70
-
71
- function createFactory<P>(type: string): DOMFactory<P>;
72
- function createFactory<P>(type: ClassicComponentClass<P> | string): ClassicFactory<P>;
73
- function createFactory<P>(type: ComponentClass<P>): Factory<P>;
74
-
75
- function createElement<P>(
76
- type: string,
77
- props?: P,
78
- ...children: ReactNode[]): DOMElement<P>;
79
- function createElement<P>(
80
- type: ClassicComponentClass<P> | string,
81
- props?: P,
82
- ...children: ReactNode[]): ClassicElement<P>;
83
- function createElement<P>(
84
- type: ComponentClass<P>,
85
- props?: P,
86
- ...children: ReactNode[]): ReactElement<P>;
87
-
88
- function cloneElement<P>(
89
- element: DOMElement<P>,
90
- props?: P,
91
- ...children: ReactNode[]): DOMElement<P>;
92
- function cloneElement<P>(
93
- element: ClassicElement<P>,
94
- props?: P,
95
- ...children: ReactNode[]): ClassicElement<P>;
96
- function cloneElement<P>(
97
- element: ReactElement<P>,
98
- props?: P,
99
- ...children: ReactNode[]): ReactElement<P>;
100
-
101
- function isValidElement(object: {}): boolean;
102
-
103
- var DOM: ReactDOM;
104
- var PropTypes: ReactPropTypes;
105
- var Children: ReactChildren;
106
-
107
- //
108
- // Component API
109
- // ----------------------------------------------------------------------
110
-
111
- // Base component for plain JS classes
112
- class Component<P, S> implements ComponentLifecycle<P, S> {
113
- static propTypes: ValidationMap<any>;
114
- static contextTypes: ValidationMap<any>;
115
- static childContextTypes: ValidationMap<any>;
116
- static defaultProps: Props<any>;
117
-
118
- constructor(props?: P, context?: any);
119
- setState(f: (prevState: S, props: P) => S, callback?: () => any): void;
120
- setState(state: S, callback?: () => any): void;
121
- forceUpdate(callBack?: () => any): void;
122
- render(): JSX.Element;
123
- props: P;
124
- state: S;
125
- context: {};
126
- refs: {
127
- [key: string]: Component<any, any>
128
- };
129
- }
130
-
131
- interface ClassicComponent<P, S> extends Component<P, S> {
132
- replaceState(nextState: S, callback?: () => any): void;
133
- isMounted(): boolean;
134
- getInitialState?(): S;
135
- }
136
-
137
- interface DOMComponent<P> extends ClassicComponent<P, any> {
138
- tagName: string;
139
- }
140
-
141
- type HTMLComponent = DOMComponent<HTMLAttributes>;
142
- type SVGComponent = DOMComponent<SVGAttributes>;
143
-
144
- interface ChildContextProvider<CC> {
145
- getChildContext(): CC;
146
- }
147
-
148
- //
149
- // Class Interfaces
150
- // ----------------------------------------------------------------------
151
-
152
- interface ComponentClass<P> {
153
- new(props?: P, context?: any): Component<P, any>;
154
- propTypes?: ValidationMap<P>;
155
- contextTypes?: ValidationMap<any>;
156
- childContextTypes?: ValidationMap<any>;
157
- defaultProps?: P;
158
- }
159
-
160
- interface ClassicComponentClass<P> extends ComponentClass<P> {
161
- new(props?: P, context?: any): ClassicComponent<P, any>;
162
- getDefaultProps?(): P;
163
- displayName?: string;
164
- }
165
-
166
- //
167
- // Component Specs and Lifecycle
168
- // ----------------------------------------------------------------------
169
-
170
- interface ComponentLifecycle<P, S> {
171
- componentWillMount?(): void;
172
- componentDidMount?(): void;
173
- componentWillReceiveProps?(nextProps: P, nextContext: any): void;
174
- shouldComponentUpdate?(nextProps: P, nextState: S, nextContext: any): boolean;
175
- componentWillUpdate?(nextProps: P, nextState: S, nextContext: any): void;
176
- componentDidUpdate?(prevProps: P, prevState: S, prevContext: any): void;
177
- componentWillUnmount?(): void;
178
- }
179
-
180
- interface Mixin<P, S> extends ComponentLifecycle<P, S> {
181
- mixins?: Mixin<P, S>;
182
- statics?: {
183
- [key: string]: any;
184
- };
185
-
186
- displayName?: string;
187
- propTypes?: ValidationMap<any>;
188
- contextTypes?: ValidationMap<any>;
189
- childContextTypes?: ValidationMap<any>
190
-
191
- getDefaultProps?(): P;
192
- getInitialState?(): S;
193
- }
194
-
195
- interface ComponentSpec<P, S> extends Mixin<P, S> {
196
- render(): ReactElement<any>;
197
-
198
- [propertyName: string]: any;
199
- }
200
-
201
- //
202
- // Event System
203
- // ----------------------------------------------------------------------
204
-
205
- interface SyntheticEvent {
206
- bubbles: boolean;
207
- cancelable: boolean;
208
- currentTarget: EventTarget;
209
- defaultPrevented: boolean;
210
- eventPhase: number;
211
- isTrusted: boolean;
212
- nativeEvent: Event;
213
- preventDefault(): void;
214
- stopPropagation(): void;
215
- persist(): void;
216
- target: EventTarget;
217
- timeStamp: Date;
218
- type: string;
219
- }
220
-
221
- interface DragEvent extends SyntheticEvent {
222
- dataTransfer: DataTransfer;
223
- }
224
-
225
- interface ClipboardEvent extends SyntheticEvent {
226
- clipboardData: DataTransfer;
227
- }
228
-
229
- interface KeyboardEvent extends SyntheticEvent {
230
- altKey: boolean;
231
- charCode: number;
232
- ctrlKey: boolean;
233
- getModifierState(key: string): boolean;
234
- key: string;
235
- keyCode: number;
236
- locale: string;
237
- location: number;
238
- metaKey: boolean;
239
- repeat: boolean;
240
- shiftKey: boolean;
241
- which: number;
242
- }
243
-
244
- interface FocusEvent extends SyntheticEvent {
245
- relatedTarget: EventTarget;
246
- }
247
-
248
- interface FormEvent extends SyntheticEvent {
249
- }
250
-
251
- interface MouseEvent extends SyntheticEvent {
252
- altKey: boolean;
253
- button: number;
254
- buttons: number;
255
- clientX: number;
256
- clientY: number;
257
- ctrlKey: boolean;
258
- getModifierState(key: string): boolean;
259
- metaKey: boolean;
260
- pageX: number;
261
- pageY: number;
262
- relatedTarget: EventTarget;
263
- screenX: number;
264
- screenY: number;
265
- shiftKey: boolean;
266
- }
267
-
268
- interface TouchEvent extends SyntheticEvent {
269
- altKey: boolean;
270
- changedTouches: TouchList;
271
- ctrlKey: boolean;
272
- getModifierState(key: string): boolean;
273
- metaKey: boolean;
274
- shiftKey: boolean;
275
- targetTouches: TouchList;
276
- locationX?: number;
277
- locationY?: number;
278
- pageX?: number;
279
- pageY?: number;
280
- touches: TouchList;
281
- }
282
-
283
- interface UIEvent extends SyntheticEvent {
284
- detail: number;
285
- view: AbstractView;
286
- }
287
-
288
- interface WheelEvent extends MouseEvent {
289
- deltaMode: number;
290
- deltaX: number;
291
- deltaY: number;
292
- deltaZ: number;
293
- }
294
-
295
- //
296
- // Event Handler Types
297
- // ----------------------------------------------------------------------
298
-
299
- interface EventHandler<E extends SyntheticEvent> {
300
- (event: E): void;
301
- }
302
-
303
- interface DragEventHandler extends EventHandler<DragEvent> {}
304
- interface ClipboardEventHandler extends EventHandler<ClipboardEvent> {}
305
- interface KeyboardEventHandler extends EventHandler<KeyboardEvent> {}
306
- interface FocusEventHandler extends EventHandler<FocusEvent> {}
307
- interface FormEventHandler extends EventHandler<FormEvent> {}
308
- interface MouseEventHandler extends EventHandler<MouseEvent> {}
309
- interface TouchEventHandler extends EventHandler<TouchEvent> {}
310
- interface UIEventHandler extends EventHandler<UIEvent> {}
311
- interface WheelEventHandler extends EventHandler<WheelEvent> {}
312
-
313
- //
314
- // Props / DOM Attributes
315
- // ----------------------------------------------------------------------
316
-
317
- interface Props<T> {
318
- children?: ReactNode;
319
- key?: string | number;
320
- ref?: string | ((component: T) => any);
321
- }
322
-
323
- interface DOMAttributesBase<T> extends Props<T> {
324
- onCopy?: ClipboardEventHandler;
325
- onCut?: ClipboardEventHandler;
326
- onPaste?: ClipboardEventHandler;
327
- onKeyDown?: KeyboardEventHandler;
328
- onKeyPress?: KeyboardEventHandler;
329
- onKeyUp?: KeyboardEventHandler;
330
- onFocus?: FocusEventHandler;
331
- onBlur?: FocusEventHandler;
332
- onChange?: FormEventHandler;
333
- onInput?: FormEventHandler;
334
- onSubmit?: FormEventHandler;
335
- onClick?: MouseEventHandler;
336
- onContextMenu?: MouseEventHandler;
337
- onDoubleClick?: MouseEventHandler;
338
- onDrag?: DragEventHandler;
339
- onDragEnd?: DragEventHandler;
340
- onDragEnter?: DragEventHandler;
341
- onDragExit?: DragEventHandler;
342
- onDragLeave?: DragEventHandler;
343
- onDragOver?: DragEventHandler;
344
- onDragStart?: DragEventHandler;
345
- onDrop?: DragEventHandler;
346
- onMouseDown?: MouseEventHandler;
347
- onMouseEnter?: MouseEventHandler;
348
- onMouseLeave?: MouseEventHandler;
349
- onMouseMove?: MouseEventHandler;
350
- onMouseOut?: MouseEventHandler;
351
- onMouseOver?: MouseEventHandler;
352
- onMouseUp?: MouseEventHandler;
353
- onTouchCancel?: TouchEventHandler;
354
- onTouchEnd?: TouchEventHandler;
355
- onTouchMove?: TouchEventHandler;
356
- onTouchStart?: TouchEventHandler;
357
- onScroll?: UIEventHandler;
358
- onWheel?: WheelEventHandler;
359
-
360
- className?: string;
361
- id?: string;
362
-
363
- dangerouslySetInnerHTML?: {
364
- __html: string;
365
- };
366
- }
367
-
368
- interface DOMAttributes extends DOMAttributesBase<DOMComponent<any>> {
369
- }
370
-
371
- // This interface is not complete. Only properties accepting
372
- // unitless numbers are listed here (see CSSProperty.js in React)
373
- interface CSSProperties {
374
- boxFlex?: number;
375
- boxFlexGroup?: number;
376
- columnCount?: number;
377
- flex?: number | string;
378
- flexGrow?: number;
379
- flexShrink?: number;
380
- fontWeight?: number | string;
381
- lineClamp?: number;
382
- lineHeight?: number | string;
383
- opacity?: number;
384
- order?: number;
385
- orphans?: number;
386
- widows?: number;
387
- zIndex?: number;
388
- zoom?: number;
389
-
390
- fontSize?: number | string;
391
-
392
- // SVG-related properties
393
- fillOpacity?: number;
394
- strokeOpacity?: number;
395
- strokeWidth?: number;
396
-
397
- [propertyName: string]: any;
398
- }
399
-
400
- interface HTMLAttributesBase<T> extends DOMAttributesBase<T> {
401
- accept?: string;
402
- acceptCharset?: string;
403
- accessKey?: string;
404
- action?: string;
405
- allowFullScreen?: boolean;
406
- allowTransparency?: boolean;
407
- alt?: string;
408
- async?: boolean;
409
- autoComplete?: boolean;
410
- autoFocus?: boolean;
411
- autoPlay?: boolean;
412
- cellPadding?: number | string;
413
- cellSpacing?: number | string;
414
- charSet?: string;
415
- checked?: boolean;
416
- classID?: string;
417
- cols?: number;
418
- colSpan?: number;
419
- content?: string;
420
- contentEditable?: boolean;
421
- contextMenu?: string;
422
- controls?: any;
423
- coords?: string;
424
- crossOrigin?: string;
425
- data?: string;
426
- dateTime?: string;
427
- defaultChecked?: boolean;
428
- defaultValue?: string;
429
- defer?: boolean;
430
- dir?: string;
431
- disabled?: boolean;
432
- download?: any;
433
- draggable?: boolean;
434
- encType?: string;
435
- form?: string;
436
- formAction?: string;
437
- formEncType?: string;
438
- formMethod?: string;
439
- formNoValidate?: boolean;
440
- formTarget?: string;
441
- frameBorder?: number | string;
442
- headers?: string;
443
- height?: number | string;
444
- hidden?: boolean;
445
- high?: number;
446
- href?: string;
447
- hrefLang?: string;
448
- htmlFor?: string;
449
- httpEquiv?: string;
450
- icon?: string;
451
- label?: string;
452
- lang?: string;
453
- list?: string;
454
- loop?: boolean;
455
- low?: number;
456
- manifest?: string;
457
- marginHeight?: number;
458
- marginWidth?: number;
459
- max?: number | string;
460
- maxLength?: number;
461
- media?: string;
462
- mediaGroup?: string;
463
- method?: string;
464
- min?: number | string;
465
- multiple?: boolean;
466
- muted?: boolean;
467
- name?: string;
468
- noValidate?: boolean;
469
- open?: boolean;
470
- optimum?: number;
471
- pattern?: string;
472
- placeholder?: string;
473
- poster?: string;
474
- preload?: string;
475
- radioGroup?: string;
476
- readOnly?: boolean;
477
- rel?: string;
478
- required?: boolean;
479
- role?: string;
480
- rows?: number;
481
- rowSpan?: number;
482
- sandbox?: string;
483
- scope?: string;
484
- scoped?: boolean;
485
- scrolling?: string;
486
- seamless?: boolean;
487
- selected?: boolean;
488
- shape?: string;
489
- size?: number;
490
- sizes?: string;
491
- span?: number;
492
- spellCheck?: boolean;
493
- src?: string;
494
- srcDoc?: string;
495
- srcSet?: string;
496
- start?: number;
497
- step?: number | string;
498
- style?: any;
499
- tabIndex?: number;
500
- target?: string;
501
- title?: string;
502
- type?: string;
503
- useMap?: string;
504
- value?: string;
505
- width?: number | string;
506
- wmode?: string;
507
-
508
- // Non-standard Attributes
509
- autoCapitalize?: boolean;
510
- autoCorrect?: boolean;
511
- property?: string;
512
- itemProp?: string;
513
- itemScope?: boolean;
514
- itemType?: string;
515
- unselectable?: boolean;
516
- }
517
-
518
- interface HTMLAttributes extends HTMLAttributesBase<HTMLComponent> {
519
- }
520
-
521
- interface MediaHTMLAttributes extends HTMLAttributes {
522
- onLoad?: EventHandler<SyntheticEvent>;
523
- onError?: EventHandler<SyntheticEvent>;
524
- }
525
-
526
- interface VideoHTMLAttributes extends HTMLAttributes {
527
- onLoadedData?: EventHandler<SyntheticEvent>;
528
- onError?: EventHandler<SyntheticEvent>;
529
-
530
- onLoadStart?: () => void;
531
- onCanPlay?: () => void;
532
- onCanPlayThrough?: () => void;
533
- onEnded?: () => void;
534
- onWaiting?: () => void;
535
- onPlaying?: () => void;
536
- onTimeUpdate?: () => void;
537
- }
538
-
539
- interface IframeHTMLAttributes extends HTMLAttributes {
540
- onLoad?: EventHandler<SyntheticEvent>;
541
- }
542
-
543
- interface InputHTMLAttributes extends HTMLAttributes {
544
- editable?: boolean;
545
- }
546
-
547
- interface SVGElementAttributes extends HTMLAttributes {
548
- viewBox?: string;
549
- preserveAspectRatio?: string;
550
- }
551
-
552
- interface SVGAttributes extends DOMAttributes {
553
- ref?: string | ((component: SVGComponent) => void);
554
-
555
- cx?: number | string;
556
- cy?: number | string;
557
- d?: string;
558
- dx?: number | string;
559
- dy?: number | string;
560
- fill?: string;
561
- fillOpacity?: number | string;
562
- fontFamily?: string;
563
- fontSize?: number | string;
564
- fx?: number | string;
565
- fy?: number | string;
566
- gradientTransform?: string;
567
- gradientUnits?: string;
568
- height?: number | string;
569
- markerEnd?: string;
570
- markerMid?: string;
571
- markerStart?: string;
572
- offset?: number | string;
573
- opacity?: number | string;
574
- patternContentUnits?: string;
575
- patternUnits?: string;
576
- points?: string;
577
- preserveAspectRatio?: string;
578
- r?: number | string;
579
- rx?: number | string;
580
- ry?: number | string;
581
- spreadMethod?: string;
582
- stopColor?: string;
583
- stopOpacity?: number | string;
584
- stroke?: string;
585
- strokeDasharray?: string;
586
- strokeLinecap?: string;
587
- strokeMiterlimit?: string;
588
- strokeOpacity?: number | string;
589
- strokeWidth?: number | string;
590
- textAnchor?: string;
591
- transform?: string;
592
- version?: string;
593
- viewBox?: string;
594
- width?: number | string;
595
- x1?: number | string;
596
- x2?: number | string;
597
- x?: number | string;
598
- y1?: number | string;
599
- y2?: number | string
600
- y?: number | string;
601
- }
602
-
603
- //
604
- // React.DOM
605
- // ----------------------------------------------------------------------
606
-
607
- interface ReactDOM {
608
- // HTML
609
- a: HTMLFactory;
610
- abbr: HTMLFactory;
611
- address: HTMLFactory;
612
- area: HTMLFactory;
613
- article: HTMLFactory;
614
- aside: HTMLFactory;
615
- audio: HTMLFactory;
616
- b: HTMLFactory;
617
- base: HTMLFactory;
618
- bdi: HTMLFactory;
619
- bdo: HTMLFactory;
620
- big: HTMLFactory;
621
- blockquote: HTMLFactory;
622
- body: HTMLFactory;
623
- br: HTMLFactory;
624
- button: HTMLFactory;
625
- canvas: HTMLFactory;
626
- caption: HTMLFactory;
627
- cite: HTMLFactory;
628
- code: HTMLFactory;
629
- col: HTMLFactory;
630
- colgroup: HTMLFactory;
631
- data: HTMLFactory;
632
- datalist: HTMLFactory;
633
- dd: HTMLFactory;
634
- del: HTMLFactory;
635
- details: HTMLFactory;
636
- dfn: HTMLFactory;
637
- dialog: HTMLFactory;
638
- div: HTMLFactory;
639
- dl: HTMLFactory;
640
- dt: HTMLFactory;
641
- em: HTMLFactory;
642
- embed: HTMLFactory;
643
- fieldset: HTMLFactory;
644
- figcaption: HTMLFactory;
645
- figure: HTMLFactory;
646
- footer: HTMLFactory;
647
- form: HTMLFactory;
648
- h1: HTMLFactory;
649
- h2: HTMLFactory;
650
- h3: HTMLFactory;
651
- h4: HTMLFactory;
652
- h5: HTMLFactory;
653
- h6: HTMLFactory;
654
- head: HTMLFactory;
655
- header: HTMLFactory;
656
- hr: HTMLFactory;
657
- html: HTMLFactory;
658
- i: HTMLFactory;
659
- iframe: HTMLFactory;
660
- img: HTMLFactory;
661
- input: HTMLFactory;
662
- ins: HTMLFactory;
663
- kbd: HTMLFactory;
664
- keygen: HTMLFactory;
665
- label: HTMLFactory;
666
- legend: HTMLFactory;
667
- li: HTMLFactory;
668
- link: HTMLFactory;
669
- main: HTMLFactory;
670
- map: HTMLFactory;
671
- mark: HTMLFactory;
672
- menu: HTMLFactory;
673
- menuitem: HTMLFactory;
674
- meta: HTMLFactory;
675
- meter: HTMLFactory;
676
- nav: HTMLFactory;
677
- noscript: HTMLFactory;
678
- object: HTMLFactory;
679
- ol: HTMLFactory;
680
- optgroup: HTMLFactory;
681
- option: HTMLFactory;
682
- output: HTMLFactory;
683
- p: HTMLFactory;
684
- param: HTMLFactory;
685
- picture: HTMLFactory;
686
- pre: HTMLFactory;
687
- progress: HTMLFactory;
688
- q: HTMLFactory;
689
- rp: HTMLFactory;
690
- rt: HTMLFactory;
691
- ruby: HTMLFactory;
692
- s: HTMLFactory;
693
- samp: HTMLFactory;
694
- script: HTMLFactory;
695
- section: HTMLFactory;
696
- select: HTMLFactory;
697
- small: HTMLFactory;
698
- source: HTMLFactory;
699
- span: HTMLFactory;
700
- strong: HTMLFactory;
701
- style: HTMLFactory;
702
- sub: HTMLFactory;
703
- summary: HTMLFactory;
704
- sup: HTMLFactory;
705
- table: HTMLFactory;
706
- tbody: HTMLFactory;
707
- td: HTMLFactory;
708
- textarea: HTMLFactory;
709
- tfoot: HTMLFactory;
710
- th: HTMLFactory;
711
- thead: HTMLFactory;
712
- time: HTMLFactory;
713
- title: HTMLFactory;
714
- tr: HTMLFactory;
715
- track: HTMLFactory;
716
- u: HTMLFactory;
717
- ul: HTMLFactory;
718
- "var": HTMLFactory;
719
- video: HTMLFactory;
720
- wbr: HTMLFactory;
721
-
722
- // SVG
723
- svg: SVGElementFactory;
724
- circle: SVGFactory;
725
- defs: SVGFactory;
726
- ellipse: SVGFactory;
727
- g: SVGFactory;
728
- line: SVGFactory;
729
- linearGradient: SVGFactory;
730
- mask: SVGFactory;
731
- path: SVGFactory;
732
- pattern: SVGFactory;
733
- polygon: SVGFactory;
734
- polyline: SVGFactory;
735
- radialGradient: SVGFactory;
736
- rect: SVGFactory;
737
- stop: SVGFactory;
738
- text: SVGFactory;
739
- tspan: SVGFactory;
740
- }
741
-
742
- //
743
- // React.PropTypes
744
- // ----------------------------------------------------------------------
745
-
746
- interface Validator<T> {
747
- (object: T, key: string, componentName: string): Error;
748
- }
749
-
750
- interface Requireable<T> extends Validator<T> {
751
- isRequired: Validator<T>;
752
- }
753
-
754
- interface ValidationMap<T> {
755
- [key: string]: Validator<T>;
756
- }
757
-
758
- interface ReactPropTypes {
759
- any: Requireable<any>;
760
- array: Requireable<any>;
761
- bool: Requireable<any>;
762
- func: Requireable<any>;
763
- number: Requireable<any>;
764
- object: Requireable<any>;
765
- string: Requireable<any>;
766
- node: Requireable<any>;
767
- element: Requireable<any>;
768
- instanceOf(expectedClass: {}): Requireable<any>;
769
- oneOf(types: any[]): Requireable<any>;
770
- oneOfType(types: Validator<any>[]): Requireable<any>;
771
- arrayOf(type: Validator<any>): Requireable<any>;
772
- objectOf(type: Validator<any>): Requireable<any>;
773
- shape(type: ValidationMap<any>): Requireable<any>;
774
- }
775
-
776
- //
777
- // React.Children
778
- // ----------------------------------------------------------------------
779
-
780
- interface ReactChildren {
781
- map<T>(children: ReactNode, fn: (child: ReactChild, index: number) => T): { [key:string]: T };
782
- forEach(children: ReactNode, fn: (child: ReactChild, index: number) => any): void;
783
- count(children: ReactNode): number;
784
- only(children: ReactNode): ReactElement<any>;
785
- toArray(children: ReactNode): ReactChild[];
786
- }
787
-
788
- //
789
- // Browser Interfaces
790
- // https://github.com/nikeee/2048-typescript/blob/master/2048/js/touch.d.ts
791
- // ----------------------------------------------------------------------
792
-
793
- interface AbstractView {
794
- styleMedia: StyleMedia;
795
- document: Document;
796
- }
797
-
798
- interface Touch {
799
- identifier: number;
800
- target: EventTarget;
801
- locationX: number;
802
- locationY: number;
803
- pageX: number;
804
- pageY: number;
805
- timestamp: number;
806
- }
807
-
808
- interface TouchList {
809
- [index: number]: Touch;
810
- length: number;
811
- item(index: number): Touch;
812
- identifiedTouch(identifier: number): Touch;
813
- }
814
- }
815
-
816
- declare module "react" {
817
- export = __React;
818
- }
819
-
820
- declare namespace JSX {
821
- import React = __React;
822
-
823
- interface Element extends React.ReactElement<any> { }
824
- interface ElementClass extends React.Component<any, any> {
825
- render(): JSX.Element;
826
- }
827
- interface ElementAttributesProperty { props: {}; }
828
-
829
- interface IntrinsicElements {
830
- // HTML
831
- a: React.HTMLAttributes;
832
- abbr: React.HTMLAttributes;
833
- address: React.HTMLAttributes;
834
- area: React.HTMLAttributes;
835
- article: React.HTMLAttributes;
836
- aside: React.HTMLAttributes;
837
- audio: React.HTMLAttributes;
838
- b: React.HTMLAttributes;
839
- base: React.HTMLAttributes;
840
- bdi: React.HTMLAttributes;
841
- bdo: React.HTMLAttributes;
842
- big: React.HTMLAttributes;
843
- blockquote: React.HTMLAttributes;
844
- body: React.HTMLAttributes;
845
- br: React.HTMLAttributes;
846
- button: React.HTMLAttributes;
847
- canvas: React.HTMLAttributes;
848
- caption: React.HTMLAttributes;
849
- cite: React.HTMLAttributes;
850
- code: React.HTMLAttributes;
851
- col: React.HTMLAttributes;
852
- colgroup: React.HTMLAttributes;
853
- data: React.HTMLAttributes;
854
- datalist: React.HTMLAttributes;
855
- dd: React.HTMLAttributes;
856
- del: React.HTMLAttributes;
857
- details: React.HTMLAttributes;
858
- dfn: React.HTMLAttributes;
859
- dialog: React.HTMLAttributes;
860
- div: React.HTMLAttributes;
861
- dl: React.HTMLAttributes;
862
- dt: React.HTMLAttributes;
863
- em: React.HTMLAttributes;
864
- embed: React.HTMLAttributes;
865
- fieldset: React.HTMLAttributes;
866
- figcaption: React.HTMLAttributes;
867
- figure: React.HTMLAttributes;
868
- footer: React.HTMLAttributes;
869
- form: React.HTMLAttributes;
870
- h1: React.HTMLAttributes;
871
- h2: React.HTMLAttributes;
872
- h3: React.HTMLAttributes;
873
- h4: React.HTMLAttributes;
874
- h5: React.HTMLAttributes;
875
- h6: React.HTMLAttributes;
876
- head: React.HTMLAttributes;
877
- header: React.HTMLAttributes;
878
- hr: React.HTMLAttributes;
879
- html: React.HTMLAttributes;
880
- i: React.HTMLAttributes;
881
- iframe: React.IframeHTMLAttributes;
882
- img: React.MediaHTMLAttributes;
883
- input: React.InputHTMLAttributes;
884
- ins: React.HTMLAttributes;
885
- kbd: React.HTMLAttributes;
886
- keygen: React.HTMLAttributes;
887
- label: React.HTMLAttributes;
888
- legend: React.HTMLAttributes;
889
- li: React.HTMLAttributes;
890
- link: React.HTMLAttributes;
891
- main: React.HTMLAttributes;
892
- map: React.HTMLAttributes;
893
- mark: React.HTMLAttributes;
894
- menu: React.HTMLAttributes;
895
- menuitem: React.HTMLAttributes;
896
- meta: React.HTMLAttributes;
897
- meter: React.HTMLAttributes;
898
- nav: React.HTMLAttributes;
899
- noscript: React.HTMLAttributes;
900
- object: React.HTMLAttributes;
901
- ol: React.HTMLAttributes;
902
- optgroup: React.HTMLAttributes;
903
- option: React.HTMLAttributes;
904
- output: React.HTMLAttributes;
905
- p: React.HTMLAttributes;
906
- param: React.HTMLAttributes;
907
- picture: React.HTMLAttributes;
908
- pre: React.HTMLAttributes;
909
- progress: React.HTMLAttributes;
910
- q: React.HTMLAttributes;
911
- rp: React.HTMLAttributes;
912
- rt: React.HTMLAttributes;
913
- ruby: React.HTMLAttributes;
914
- s: React.HTMLAttributes;
915
- samp: React.HTMLAttributes;
916
- script: React.HTMLAttributes;
917
- section: React.HTMLAttributes;
918
- select: React.HTMLAttributes;
919
- small: React.HTMLAttributes;
920
- source: React.HTMLAttributes;
921
- span: React.HTMLAttributes;
922
- strong: React.HTMLAttributes;
923
- style: React.HTMLAttributes;
924
- sub: React.HTMLAttributes;
925
- summary: React.HTMLAttributes;
926
- sup: React.HTMLAttributes;
927
- table: React.HTMLAttributes;
928
- tbody: React.HTMLAttributes;
929
- td: React.HTMLAttributes;
930
- textarea: React.InputHTMLAttributes;
931
- tfoot: React.HTMLAttributes;
932
- th: React.HTMLAttributes;
933
- thead: React.HTMLAttributes;
934
- time: React.HTMLAttributes;
935
- title: React.HTMLAttributes;
936
- tr: React.HTMLAttributes;
937
- track: React.HTMLAttributes;
938
- u: React.HTMLAttributes;
939
- ul: React.HTMLAttributes;
940
- "var": React.HTMLAttributes;
941
- video: React.VideoHTMLAttributes;
942
- wbr: React.HTMLAttributes;
943
-
944
- // SVG
945
- svg: React.SVGElementAttributes;
946
-
947
- circle: React.SVGAttributes;
948
- defs: React.SVGAttributes;
949
- ellipse: React.SVGAttributes;
950
- g: React.SVGAttributes;
951
- line: React.SVGAttributes;
952
- linearGradient: React.SVGAttributes;
953
- mask: React.SVGAttributes;
954
- path: React.SVGAttributes;
955
- pattern: React.SVGAttributes;
956
- polygon: React.SVGAttributes;
957
- polyline: React.SVGAttributes;
958
- radialGradient: React.SVGAttributes;
959
- rect: React.SVGAttributes;
960
- stop: React.SVGAttributes;
961
- text: React.SVGAttributes;
962
- tspan: React.SVGAttributes;
963
- }
964
- }