@arcanejs/react-toolkit 0.3.2 → 0.4.0
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.
- package/dist/chunk-RT2VSMJL.js +13 -0
- package/dist/chunk-TOGR56FN.mjs +13 -0
- package/dist/data.js +11 -2
- package/dist/data.mjs +10 -1
- package/dist/logging.d.mts +7 -0
- package/dist/logging.d.ts +7 -0
- package/dist/logging.js +8 -0
- package/dist/logging.mjs +8 -0
- package/package.json +10 -3
- package/dist/index.d.mts +0 -86
- package/dist/index.d.ts +0 -86
- package/dist/index.js +0 -244
- package/dist/index.mjs +0 -244
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/logging.ts
|
|
2
|
+
var _react = require('react');
|
|
3
|
+
var LoggerContext = _react.createContext.call(void 0, () => {
|
|
4
|
+
throw new Error("LoggerContext not provided");
|
|
5
|
+
});
|
|
6
|
+
var useLogger = () => {
|
|
7
|
+
return _react.useContext.call(void 0, LoggerContext)();
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.LoggerContext = LoggerContext; exports.useLogger = useLogger;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/logging.ts
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
var LoggerContext = createContext(() => {
|
|
4
|
+
throw new Error("LoggerContext not provided");
|
|
5
|
+
});
|
|
6
|
+
var useLogger = () => {
|
|
7
|
+
return useContext(LoggerContext)();
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
LoggerContext,
|
|
12
|
+
useLogger
|
|
13
|
+
};
|
package/dist/data.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkRT2VSMJLjs = require('./chunk-RT2VSMJL.js');
|
|
4
|
+
|
|
5
|
+
// src/data.tsx
|
|
2
6
|
var _fs = require('fs');
|
|
3
7
|
|
|
4
8
|
|
|
@@ -29,6 +33,7 @@ function useDataFileCore({
|
|
|
29
33
|
path,
|
|
30
34
|
onPathChange = "defaultValue"
|
|
31
35
|
}) {
|
|
36
|
+
const log = _chunkRT2VSMJLjs.useLogger.call(void 0, );
|
|
32
37
|
const state = _react.useRef.call(void 0, {
|
|
33
38
|
initialized: false,
|
|
34
39
|
path: null,
|
|
@@ -134,10 +139,14 @@ function useDataFileCore({
|
|
|
134
139
|
return;
|
|
135
140
|
}
|
|
136
141
|
if (error.code === "ENOENT") {
|
|
137
|
-
console.log("Creating new file");
|
|
138
142
|
const initialData = onPathChange === "transfer" && state.current.previousData !== void 0 ? state.current.previousData : defaultValue;
|
|
139
143
|
state.current.data = initialData;
|
|
140
144
|
state.current.state = { state: "dirty" };
|
|
145
|
+
_optionalChain([log, 'optionalAccess', _ => _.info, 'call', _2 => _2(
|
|
146
|
+
"Creating a new file at %s with initial data %o",
|
|
147
|
+
path,
|
|
148
|
+
initialData
|
|
149
|
+
)]);
|
|
141
150
|
saveData();
|
|
142
151
|
updateDataFromState();
|
|
143
152
|
return;
|
package/dist/data.mjs
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useLogger
|
|
3
|
+
} from "./chunk-TOGR56FN.mjs";
|
|
4
|
+
|
|
1
5
|
// src/data.tsx
|
|
2
6
|
import { promises as fs } from "fs";
|
|
3
7
|
import {
|
|
@@ -29,6 +33,7 @@ function useDataFileCore({
|
|
|
29
33
|
path,
|
|
30
34
|
onPathChange = "defaultValue"
|
|
31
35
|
}) {
|
|
36
|
+
const log = useLogger();
|
|
32
37
|
const state = useRef({
|
|
33
38
|
initialized: false,
|
|
34
39
|
path: null,
|
|
@@ -134,10 +139,14 @@ function useDataFileCore({
|
|
|
134
139
|
return;
|
|
135
140
|
}
|
|
136
141
|
if (error.code === "ENOENT") {
|
|
137
|
-
console.log("Creating new file");
|
|
138
142
|
const initialData = onPathChange === "transfer" && state.current.previousData !== void 0 ? state.current.previousData : defaultValue;
|
|
139
143
|
state.current.data = initialData;
|
|
140
144
|
state.current.state = { state: "dirty" };
|
|
145
|
+
log?.info(
|
|
146
|
+
"Creating a new file at %s with initial data %o",
|
|
147
|
+
path,
|
|
148
|
+
initialData
|
|
149
|
+
);
|
|
141
150
|
saveData();
|
|
142
151
|
updateDataFromState();
|
|
143
152
|
return;
|
package/dist/logging.js
ADDED
package/dist/logging.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcanejs/react-toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Build web-accessible control interfaces for your long-running Node.js processes",
|
|
6
6
|
"keywords": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
-
"@arcanejs/source": "./src/index.
|
|
23
|
+
"@arcanejs/source": "./src/index.tsx",
|
|
24
24
|
"import": "./dist/index.mjs",
|
|
25
25
|
"require": "./dist/index.js",
|
|
26
26
|
"types": "./dist/index.d.ts"
|
|
@@ -30,6 +30,12 @@
|
|
|
30
30
|
"import": "./dist/data.mjs",
|
|
31
31
|
"require": "./dist/data.js",
|
|
32
32
|
"types": "./dist/data.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./logging": {
|
|
35
|
+
"@arcanejs/source": "./src/logging.ts",
|
|
36
|
+
"import": "./dist/logging.mjs",
|
|
37
|
+
"require": "./dist/logging.js",
|
|
38
|
+
"types": "./dist/logging.d.ts"
|
|
33
39
|
}
|
|
34
40
|
},
|
|
35
41
|
"devDependencies": {
|
|
@@ -49,7 +55,8 @@
|
|
|
49
55
|
"lodash": "^4.17.21",
|
|
50
56
|
"react": "^18",
|
|
51
57
|
"react-reconciler": "0.28.0",
|
|
52
|
-
"@arcanejs/
|
|
58
|
+
"@arcanejs/protocol": "^0.2.0",
|
|
59
|
+
"@arcanejs/toolkit": "^0.3.0"
|
|
53
60
|
},
|
|
54
61
|
"peerDependencies": {
|
|
55
62
|
"zod": "^3.23.8"
|
package/dist/index.d.mts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as ld from '@arcanejs/toolkit';
|
|
2
|
-
import { Props as Props$1, Events as Events$1, Group as Group$1, GroupHeader as GroupHeader$1 } from '@arcanejs/toolkit/components/group';
|
|
3
|
-
import { Props, Events, Button as Button$1 } from '@arcanejs/toolkit/components/button';
|
|
4
|
-
import { Props as Props$2, Label as Label$1 } from '@arcanejs/toolkit/components/label';
|
|
5
|
-
import { Props as Props$3, Rect as Rect$1 } from '@arcanejs/toolkit/components/rect';
|
|
6
|
-
import { Props as Props$4, Events as Events$2, SliderButton as SliderButton$1 } from '@arcanejs/toolkit/components/slider-button';
|
|
7
|
-
import { Props as Props$5, Events as Events$3, Switch as Switch$1 } from '@arcanejs/toolkit/components/switch';
|
|
8
|
-
import { TabProps, Tab as Tab$1, TabsProps, Tabs as Tabs$1 } from '@arcanejs/toolkit/components/tabs';
|
|
9
|
-
import { Props as Props$6, Events as Events$4, TextInput as TextInput$1 } from '@arcanejs/toolkit/components/text-input';
|
|
10
|
-
import { Props as Props$7, Timeline as Timeline$1 } from '@arcanejs/toolkit/components/timeline';
|
|
11
|
-
import * as React from 'react';
|
|
12
|
-
import { Ref } from 'react';
|
|
13
|
-
|
|
14
|
-
type Child = JSX.Element | string | null | undefined | boolean;
|
|
15
|
-
type Children = Child | Child[];
|
|
16
|
-
interface LightDeskIntrinsicElements {
|
|
17
|
-
button: Props & {
|
|
18
|
-
children?: never;
|
|
19
|
-
onClick?: Events['click'];
|
|
20
|
-
ref?: Ref<Button$1>;
|
|
21
|
-
};
|
|
22
|
-
group: Props$1 & {
|
|
23
|
-
children?: Children;
|
|
24
|
-
onTitleChanged?: Events$1['title-changed'];
|
|
25
|
-
ref?: Ref<Group$1>;
|
|
26
|
-
};
|
|
27
|
-
'group-header': {
|
|
28
|
-
children?: Children;
|
|
29
|
-
ref?: Ref<GroupHeader$1>;
|
|
30
|
-
};
|
|
31
|
-
label: Props$2 & {
|
|
32
|
-
children?: never;
|
|
33
|
-
ref?: Ref<Label$1>;
|
|
34
|
-
};
|
|
35
|
-
rect: Props$3 & {
|
|
36
|
-
children?: never;
|
|
37
|
-
ref?: Ref<Rect$1>;
|
|
38
|
-
};
|
|
39
|
-
'slider-button': Props$4 & {
|
|
40
|
-
children?: never;
|
|
41
|
-
onChange?: Events$2['change'];
|
|
42
|
-
ref?: Ref<SliderButton$1>;
|
|
43
|
-
};
|
|
44
|
-
switch: Props$5 & {
|
|
45
|
-
children?: never;
|
|
46
|
-
onChange?: Events$3['change'];
|
|
47
|
-
ref?: Ref<Switch$1>;
|
|
48
|
-
};
|
|
49
|
-
tab: TabProps & {
|
|
50
|
-
children?: JSX.Element | string;
|
|
51
|
-
ref?: Ref<Tab$1>;
|
|
52
|
-
};
|
|
53
|
-
tabs: TabsProps & {
|
|
54
|
-
children?: JSX.Element | JSX.Element[];
|
|
55
|
-
ref?: Ref<Tabs$1>;
|
|
56
|
-
};
|
|
57
|
-
'text-input': Props$6 & {
|
|
58
|
-
children?: JSX.Element | JSX.Element[];
|
|
59
|
-
onChange?: Events$4['change'];
|
|
60
|
-
ref?: Ref<TextInput$1>;
|
|
61
|
-
};
|
|
62
|
-
timeline: Props$7 & {
|
|
63
|
-
children?: never;
|
|
64
|
-
ref?: Ref<Timeline$1>;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
type ComponentWithRef<T, P> = React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
69
|
-
declare const Button: ComponentWithRef<Button$1, LightDeskIntrinsicElements['button']>;
|
|
70
|
-
declare const Group: ComponentWithRef<Group$1, LightDeskIntrinsicElements['group']>;
|
|
71
|
-
declare const GroupHeader: ComponentWithRef<GroupHeader$1, LightDeskIntrinsicElements['group-header']>;
|
|
72
|
-
declare const Label: ComponentWithRef<Label$1, LightDeskIntrinsicElements['label']>;
|
|
73
|
-
declare const Rect: ComponentWithRef<Rect$1, LightDeskIntrinsicElements['rect']>;
|
|
74
|
-
declare const SliderButton: ComponentWithRef<SliderButton$1, LightDeskIntrinsicElements['slider-button']>;
|
|
75
|
-
declare const Switch: ComponentWithRef<Switch$1, LightDeskIntrinsicElements['switch']>;
|
|
76
|
-
declare const Tab: ComponentWithRef<Tab$1, LightDeskIntrinsicElements['tab']>;
|
|
77
|
-
declare const Tabs: ComponentWithRef<Tabs$1, LightDeskIntrinsicElements['tabs']>;
|
|
78
|
-
declare const TextInput: ComponentWithRef<TextInput$1, LightDeskIntrinsicElements['text-input']>;
|
|
79
|
-
declare const Timeline: ComponentWithRef<Timeline$1, LightDeskIntrinsicElements['timeline']>;
|
|
80
|
-
|
|
81
|
-
declare const ToolkitRenderer: {
|
|
82
|
-
renderGroup: (component: JSX.Element, container: ld.Group) => void;
|
|
83
|
-
render: (component: JSX.Element, container: ld.Toolkit, rootGroupProps?: Props$1) => void;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export { Button, Group, GroupHeader, Label, type LightDeskIntrinsicElements, Rect, SliderButton, Switch, Tab, Tabs, TextInput, Timeline, ToolkitRenderer };
|
package/dist/index.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import * as ld from '@arcanejs/toolkit';
|
|
2
|
-
import { Props as Props$1, Events as Events$1, Group as Group$1, GroupHeader as GroupHeader$1 } from '@arcanejs/toolkit/components/group';
|
|
3
|
-
import { Props, Events, Button as Button$1 } from '@arcanejs/toolkit/components/button';
|
|
4
|
-
import { Props as Props$2, Label as Label$1 } from '@arcanejs/toolkit/components/label';
|
|
5
|
-
import { Props as Props$3, Rect as Rect$1 } from '@arcanejs/toolkit/components/rect';
|
|
6
|
-
import { Props as Props$4, Events as Events$2, SliderButton as SliderButton$1 } from '@arcanejs/toolkit/components/slider-button';
|
|
7
|
-
import { Props as Props$5, Events as Events$3, Switch as Switch$1 } from '@arcanejs/toolkit/components/switch';
|
|
8
|
-
import { TabProps, Tab as Tab$1, TabsProps, Tabs as Tabs$1 } from '@arcanejs/toolkit/components/tabs';
|
|
9
|
-
import { Props as Props$6, Events as Events$4, TextInput as TextInput$1 } from '@arcanejs/toolkit/components/text-input';
|
|
10
|
-
import { Props as Props$7, Timeline as Timeline$1 } from '@arcanejs/toolkit/components/timeline';
|
|
11
|
-
import * as React from 'react';
|
|
12
|
-
import { Ref } from 'react';
|
|
13
|
-
|
|
14
|
-
type Child = JSX.Element | string | null | undefined | boolean;
|
|
15
|
-
type Children = Child | Child[];
|
|
16
|
-
interface LightDeskIntrinsicElements {
|
|
17
|
-
button: Props & {
|
|
18
|
-
children?: never;
|
|
19
|
-
onClick?: Events['click'];
|
|
20
|
-
ref?: Ref<Button$1>;
|
|
21
|
-
};
|
|
22
|
-
group: Props$1 & {
|
|
23
|
-
children?: Children;
|
|
24
|
-
onTitleChanged?: Events$1['title-changed'];
|
|
25
|
-
ref?: Ref<Group$1>;
|
|
26
|
-
};
|
|
27
|
-
'group-header': {
|
|
28
|
-
children?: Children;
|
|
29
|
-
ref?: Ref<GroupHeader$1>;
|
|
30
|
-
};
|
|
31
|
-
label: Props$2 & {
|
|
32
|
-
children?: never;
|
|
33
|
-
ref?: Ref<Label$1>;
|
|
34
|
-
};
|
|
35
|
-
rect: Props$3 & {
|
|
36
|
-
children?: never;
|
|
37
|
-
ref?: Ref<Rect$1>;
|
|
38
|
-
};
|
|
39
|
-
'slider-button': Props$4 & {
|
|
40
|
-
children?: never;
|
|
41
|
-
onChange?: Events$2['change'];
|
|
42
|
-
ref?: Ref<SliderButton$1>;
|
|
43
|
-
};
|
|
44
|
-
switch: Props$5 & {
|
|
45
|
-
children?: never;
|
|
46
|
-
onChange?: Events$3['change'];
|
|
47
|
-
ref?: Ref<Switch$1>;
|
|
48
|
-
};
|
|
49
|
-
tab: TabProps & {
|
|
50
|
-
children?: JSX.Element | string;
|
|
51
|
-
ref?: Ref<Tab$1>;
|
|
52
|
-
};
|
|
53
|
-
tabs: TabsProps & {
|
|
54
|
-
children?: JSX.Element | JSX.Element[];
|
|
55
|
-
ref?: Ref<Tabs$1>;
|
|
56
|
-
};
|
|
57
|
-
'text-input': Props$6 & {
|
|
58
|
-
children?: JSX.Element | JSX.Element[];
|
|
59
|
-
onChange?: Events$4['change'];
|
|
60
|
-
ref?: Ref<TextInput$1>;
|
|
61
|
-
};
|
|
62
|
-
timeline: Props$7 & {
|
|
63
|
-
children?: never;
|
|
64
|
-
ref?: Ref<Timeline$1>;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
type ComponentWithRef<T, P> = React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
|
|
69
|
-
declare const Button: ComponentWithRef<Button$1, LightDeskIntrinsicElements['button']>;
|
|
70
|
-
declare const Group: ComponentWithRef<Group$1, LightDeskIntrinsicElements['group']>;
|
|
71
|
-
declare const GroupHeader: ComponentWithRef<GroupHeader$1, LightDeskIntrinsicElements['group-header']>;
|
|
72
|
-
declare const Label: ComponentWithRef<Label$1, LightDeskIntrinsicElements['label']>;
|
|
73
|
-
declare const Rect: ComponentWithRef<Rect$1, LightDeskIntrinsicElements['rect']>;
|
|
74
|
-
declare const SliderButton: ComponentWithRef<SliderButton$1, LightDeskIntrinsicElements['slider-button']>;
|
|
75
|
-
declare const Switch: ComponentWithRef<Switch$1, LightDeskIntrinsicElements['switch']>;
|
|
76
|
-
declare const Tab: ComponentWithRef<Tab$1, LightDeskIntrinsicElements['tab']>;
|
|
77
|
-
declare const Tabs: ComponentWithRef<Tabs$1, LightDeskIntrinsicElements['tabs']>;
|
|
78
|
-
declare const TextInput: ComponentWithRef<TextInput$1, LightDeskIntrinsicElements['text-input']>;
|
|
79
|
-
declare const Timeline: ComponentWithRef<Timeline$1, LightDeskIntrinsicElements['timeline']>;
|
|
80
|
-
|
|
81
|
-
declare const ToolkitRenderer: {
|
|
82
|
-
renderGroup: (component: JSX.Element, container: ld.Group) => void;
|
|
83
|
-
render: (component: JSX.Element, container: ld.Toolkit, rootGroupProps?: Props$1) => void;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export { Button, Group, GroupHeader, Label, type LightDeskIntrinsicElements, Rect, SliderButton, Switch, Tab, Tabs, TextInput, Timeline, ToolkitRenderer };
|
package/dist/index.js
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/index.ts
|
|
2
|
-
var _reactreconciler = require('react-reconciler'); var _reactreconciler2 = _interopRequireDefault(_reactreconciler);
|
|
3
|
-
var _constants = require('react-reconciler/constants');
|
|
4
|
-
var _toolkit = require('@arcanejs/toolkit'); var ld = _interopRequireWildcard(_toolkit);
|
|
5
|
-
var _base = require('@arcanejs/toolkit/components/base');
|
|
6
|
-
|
|
7
|
-
// src/components.ts
|
|
8
|
-
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
9
|
-
var Button = React.forwardRef(
|
|
10
|
-
(props, ref) => React.createElement("button", { ...props, ref }, props.children)
|
|
11
|
-
);
|
|
12
|
-
var Group = React.forwardRef(
|
|
13
|
-
(props, ref) => React.createElement("group", { ...props, ref }, props.children)
|
|
14
|
-
);
|
|
15
|
-
var GroupHeader = React.forwardRef(
|
|
16
|
-
(props, ref) => React.createElement("group-header", { ...props, ref }, props.children)
|
|
17
|
-
);
|
|
18
|
-
var Label = React.forwardRef(
|
|
19
|
-
(props, ref) => React.createElement("label", { ...props, ref }, props.children)
|
|
20
|
-
);
|
|
21
|
-
var Rect = React.forwardRef(
|
|
22
|
-
(props, ref) => React.createElement("rect", { ...props, ref }, props.children)
|
|
23
|
-
);
|
|
24
|
-
var SliderButton = React.forwardRef(
|
|
25
|
-
(props, ref) => React.createElement("slider-button", { ...props, ref }, props.children)
|
|
26
|
-
);
|
|
27
|
-
var Switch = React.forwardRef(
|
|
28
|
-
(props, ref) => React.createElement("switch", { ...props, ref }, props.children)
|
|
29
|
-
);
|
|
30
|
-
var Tab = React.forwardRef(
|
|
31
|
-
(props, ref) => React.createElement("tab", { ...props, ref }, props.children)
|
|
32
|
-
);
|
|
33
|
-
var Tabs = React.forwardRef(
|
|
34
|
-
(props, ref) => React.createElement("tabs", { ...props, ref }, props.children)
|
|
35
|
-
);
|
|
36
|
-
var TextInput = React.forwardRef(
|
|
37
|
-
(props, ref) => React.createElement("text-input", { ...props, ref }, props.children)
|
|
38
|
-
);
|
|
39
|
-
var Timeline = React.forwardRef(
|
|
40
|
-
(props, ref) => React.createElement("timeline", { ...props, ref }, props.children)
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
// src/index.ts
|
|
44
|
-
var isType = (targetType, type, _props) => targetType === type;
|
|
45
|
-
var canSetProps = (instance) => instance instanceof _base.Base;
|
|
46
|
-
var updateListener = (eventName, property, instance, prevProps, nextProps) => {
|
|
47
|
-
const prev = prevProps[property];
|
|
48
|
-
const next = nextProps[property];
|
|
49
|
-
if (prev !== next) {
|
|
50
|
-
prev && instance.removeListener(eventName, prev);
|
|
51
|
-
next && instance.addListener(eventName, next);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
var updateListeners = (type, instance, prevProps, nextProps) => {
|
|
55
|
-
if (isType("button", type, prevProps) && isType("button", type, nextProps)) {
|
|
56
|
-
if (instance instanceof ld.Button) {
|
|
57
|
-
updateListener("click", "onClick", instance, prevProps, nextProps);
|
|
58
|
-
}
|
|
59
|
-
} else if (isType("group", type, prevProps) && isType("group", type, nextProps)) {
|
|
60
|
-
if (instance instanceof ld.Group) {
|
|
61
|
-
updateListener(
|
|
62
|
-
"title-changed",
|
|
63
|
-
"onTitleChanged",
|
|
64
|
-
instance,
|
|
65
|
-
prevProps,
|
|
66
|
-
nextProps
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
} else if (isType("slider-button", type, prevProps) && isType("slider-button", type, nextProps)) {
|
|
70
|
-
if (instance instanceof ld.SliderButton) {
|
|
71
|
-
updateListener("change", "onChange", instance, prevProps, nextProps);
|
|
72
|
-
}
|
|
73
|
-
} else if (isType("switch", type, prevProps) && isType("switch", type, nextProps)) {
|
|
74
|
-
if (instance instanceof ld.Switch) {
|
|
75
|
-
updateListener("change", "onChange", instance, prevProps, nextProps);
|
|
76
|
-
}
|
|
77
|
-
} else if (isType("text-input", type, prevProps) && isType("text-input", type, nextProps)) {
|
|
78
|
-
if (instance instanceof ld.TextInput) {
|
|
79
|
-
updateListener("change", "onChange", instance, prevProps, nextProps);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
var hostConfig = {
|
|
84
|
-
supportsMutation: true,
|
|
85
|
-
supportsPersistence: false,
|
|
86
|
-
noTimeout: -1,
|
|
87
|
-
isPrimaryRenderer: true,
|
|
88
|
-
supportsHydration: false,
|
|
89
|
-
afterActiveInstanceBlur: () => null,
|
|
90
|
-
appendChild: (parentInstance, child) => {
|
|
91
|
-
if (parentInstance instanceof _base.BaseParent) {
|
|
92
|
-
parentInstance.appendChild(child);
|
|
93
|
-
} else {
|
|
94
|
-
throw new Error(`Unexpected Parent: ${parentInstance}`);
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
appendInitialChild: (parentInstance, child) => {
|
|
98
|
-
if (parentInstance instanceof _base.BaseParent) {
|
|
99
|
-
parentInstance.appendChild(child);
|
|
100
|
-
} else {
|
|
101
|
-
throw new Error(`Unexpected Parent: ${parentInstance}`);
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
appendChildToContainer(container, child) {
|
|
105
|
-
container.appendChild(child);
|
|
106
|
-
},
|
|
107
|
-
beforeActiveInstanceBlur: () => null,
|
|
108
|
-
cancelTimeout: (id) => clearTimeout(id),
|
|
109
|
-
clearContainer: (container) => container.removeAllChildren(),
|
|
110
|
-
commitMount: () => {
|
|
111
|
-
throw new Error(`Unexpected call to commitMount()`);
|
|
112
|
-
},
|
|
113
|
-
commitUpdate(instance, updatePayload, type, prevProps, nextProps, _internalHandle) {
|
|
114
|
-
if (canSetProps(instance)) {
|
|
115
|
-
instance.setProps(updatePayload);
|
|
116
|
-
updateListeners(type, instance, prevProps, nextProps);
|
|
117
|
-
} else {
|
|
118
|
-
throw new Error(`Unexpected Instance: ${instance}`);
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
commitTextUpdate: (textInstance, _oldText, newText) => textInstance.setText(newText),
|
|
122
|
-
createInstance: (type, props) => {
|
|
123
|
-
let instance = null;
|
|
124
|
-
if (isType("button", type, props)) {
|
|
125
|
-
instance = new ld.Button(props);
|
|
126
|
-
} else if (isType("group", type, props)) {
|
|
127
|
-
instance = new ld.Group(props);
|
|
128
|
-
} else if (isType("group-header", type, props)) {
|
|
129
|
-
instance = new ld.GroupHeader(props);
|
|
130
|
-
} else if (isType("label", type, props)) {
|
|
131
|
-
instance = new ld.Label(props);
|
|
132
|
-
} else if (isType("rect", type, props)) {
|
|
133
|
-
instance = new ld.Rect(props);
|
|
134
|
-
} else if (isType("slider-button", type, props)) {
|
|
135
|
-
instance = new ld.SliderButton(props);
|
|
136
|
-
} else if (isType("switch", type, props)) {
|
|
137
|
-
instance = new ld.Switch(props);
|
|
138
|
-
} else if (isType("tab", type, props)) {
|
|
139
|
-
instance = new ld.Tab(props);
|
|
140
|
-
} else if (isType("tabs", type, props)) {
|
|
141
|
-
instance = new ld.Tabs(props);
|
|
142
|
-
} else if (isType("text-input", type, props)) {
|
|
143
|
-
instance = new ld.TextInput(props);
|
|
144
|
-
} else if (isType("timeline", type, props)) {
|
|
145
|
-
instance = new ld.Timeline(props);
|
|
146
|
-
}
|
|
147
|
-
if (instance) {
|
|
148
|
-
updateListeners(type, instance, {}, props);
|
|
149
|
-
return instance;
|
|
150
|
-
} else {
|
|
151
|
-
throw new Error(`Not implemented type: ${type}`);
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
createTextInstance: (text) => new ld.Label({ text }),
|
|
155
|
-
detachDeletedInstance: () => null,
|
|
156
|
-
getChildHostContext: (parentHostContext) => parentHostContext,
|
|
157
|
-
getCurrentEventPriority: () => _constants.DefaultEventPriority,
|
|
158
|
-
getInstanceFromNode: () => {
|
|
159
|
-
throw new Error("Not yet implemented.");
|
|
160
|
-
},
|
|
161
|
-
getInstanceFromScope: () => {
|
|
162
|
-
throw new Error("Not yet implemented.");
|
|
163
|
-
},
|
|
164
|
-
getPublicInstance: (instance) => instance,
|
|
165
|
-
getRootHostContext: () => null,
|
|
166
|
-
insertBefore: (parentInstance, child, beforeChild) => {
|
|
167
|
-
if (parentInstance instanceof _base.BaseParent) {
|
|
168
|
-
parentInstance.insertBefore(child, beforeChild);
|
|
169
|
-
} else {
|
|
170
|
-
throw new Error(`Unexpected Parent: ${parentInstance}`);
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
insertInContainerBefore: (container, child, beforeChild) => container.insertBefore(child, beforeChild),
|
|
174
|
-
finalizeInitialChildren: () => false,
|
|
175
|
-
prepareForCommit: () => null,
|
|
176
|
-
preparePortalMount: () => null,
|
|
177
|
-
prepareScopeUpdate: () => null,
|
|
178
|
-
prepareUpdate: (_instance, _type, _oldProps, newProps, _rootContainer, _hostContext) => {
|
|
179
|
-
const updates = {};
|
|
180
|
-
for (const [key, val] of Object.entries(newProps)) {
|
|
181
|
-
if (key !== "children") {
|
|
182
|
-
updates[key] = val;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
if (Object.keys(updates).length) {
|
|
186
|
-
return updates;
|
|
187
|
-
} else {
|
|
188
|
-
return null;
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
removeChild(parentInstance, child) {
|
|
192
|
-
if (parentInstance instanceof _base.BaseParent) {
|
|
193
|
-
parentInstance.removeChild(child);
|
|
194
|
-
} else {
|
|
195
|
-
throw new Error(`Unexpected Parent: ${parentInstance}`);
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
removeChildFromContainer: (container, child) => container.removeChild(child),
|
|
199
|
-
resetAfterCommit: () => null,
|
|
200
|
-
resetTextContent: () => {
|
|
201
|
-
throw new Error(`Unexpected call to resetTextContent()`);
|
|
202
|
-
},
|
|
203
|
-
scheduleTimeout: (fn, delay) => setTimeout(fn, delay),
|
|
204
|
-
shouldSetTextContent: () => false,
|
|
205
|
-
// Not-implemented
|
|
206
|
-
hideInstance: () => {
|
|
207
|
-
console.log("Not-implemented: hideInstance");
|
|
208
|
-
},
|
|
209
|
-
hideTextInstance: () => {
|
|
210
|
-
console.log("Not-implemented: hideTextInstance");
|
|
211
|
-
},
|
|
212
|
-
unhideInstance: () => {
|
|
213
|
-
console.log("Not-implemented: unhideInstance");
|
|
214
|
-
},
|
|
215
|
-
unhideTextInstance: () => {
|
|
216
|
-
console.log("Not-implemented: unhideTextInstance");
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
var reconciler = _reactreconciler2.default.call(void 0, hostConfig);
|
|
220
|
-
var ToolkitRenderer = {
|
|
221
|
-
renderGroup: (component, container) => {
|
|
222
|
-
const root = reconciler.createContainer(container, 0, false, null);
|
|
223
|
-
reconciler.updateContainer(component, root, null);
|
|
224
|
-
},
|
|
225
|
-
render: (component, container, rootGroupProps) => {
|
|
226
|
-
const group = new ld.Group(rootGroupProps);
|
|
227
|
-
container.setRoot(group);
|
|
228
|
-
ToolkitRenderer.renderGroup(component, group);
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
exports.Button = Button; exports.Group = Group; exports.GroupHeader = GroupHeader; exports.Label = Label; exports.Rect = Rect; exports.SliderButton = SliderButton; exports.Switch = Switch; exports.Tab = Tab; exports.Tabs = Tabs; exports.TextInput = TextInput; exports.Timeline = Timeline; exports.ToolkitRenderer = ToolkitRenderer;
|
package/dist/index.mjs
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
import Reconciler from "react-reconciler";
|
|
3
|
-
import { DefaultEventPriority } from "react-reconciler/constants";
|
|
4
|
-
import * as ld from "@arcanejs/toolkit";
|
|
5
|
-
import { Base, BaseParent } from "@arcanejs/toolkit/components/base";
|
|
6
|
-
|
|
7
|
-
// src/components.ts
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
var Button = React.forwardRef(
|
|
10
|
-
(props, ref) => React.createElement("button", { ...props, ref }, props.children)
|
|
11
|
-
);
|
|
12
|
-
var Group = React.forwardRef(
|
|
13
|
-
(props, ref) => React.createElement("group", { ...props, ref }, props.children)
|
|
14
|
-
);
|
|
15
|
-
var GroupHeader = React.forwardRef(
|
|
16
|
-
(props, ref) => React.createElement("group-header", { ...props, ref }, props.children)
|
|
17
|
-
);
|
|
18
|
-
var Label = React.forwardRef(
|
|
19
|
-
(props, ref) => React.createElement("label", { ...props, ref }, props.children)
|
|
20
|
-
);
|
|
21
|
-
var Rect = React.forwardRef(
|
|
22
|
-
(props, ref) => React.createElement("rect", { ...props, ref }, props.children)
|
|
23
|
-
);
|
|
24
|
-
var SliderButton = React.forwardRef(
|
|
25
|
-
(props, ref) => React.createElement("slider-button", { ...props, ref }, props.children)
|
|
26
|
-
);
|
|
27
|
-
var Switch = React.forwardRef(
|
|
28
|
-
(props, ref) => React.createElement("switch", { ...props, ref }, props.children)
|
|
29
|
-
);
|
|
30
|
-
var Tab = React.forwardRef(
|
|
31
|
-
(props, ref) => React.createElement("tab", { ...props, ref }, props.children)
|
|
32
|
-
);
|
|
33
|
-
var Tabs = React.forwardRef(
|
|
34
|
-
(props, ref) => React.createElement("tabs", { ...props, ref }, props.children)
|
|
35
|
-
);
|
|
36
|
-
var TextInput = React.forwardRef(
|
|
37
|
-
(props, ref) => React.createElement("text-input", { ...props, ref }, props.children)
|
|
38
|
-
);
|
|
39
|
-
var Timeline = React.forwardRef(
|
|
40
|
-
(props, ref) => React.createElement("timeline", { ...props, ref }, props.children)
|
|
41
|
-
);
|
|
42
|
-
|
|
43
|
-
// src/index.ts
|
|
44
|
-
var isType = (targetType, type, _props) => targetType === type;
|
|
45
|
-
var canSetProps = (instance) => instance instanceof Base;
|
|
46
|
-
var updateListener = (eventName, property, instance, prevProps, nextProps) => {
|
|
47
|
-
const prev = prevProps[property];
|
|
48
|
-
const next = nextProps[property];
|
|
49
|
-
if (prev !== next) {
|
|
50
|
-
prev && instance.removeListener(eventName, prev);
|
|
51
|
-
next && instance.addListener(eventName, next);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
var updateListeners = (type, instance, prevProps, nextProps) => {
|
|
55
|
-
if (isType("button", type, prevProps) && isType("button", type, nextProps)) {
|
|
56
|
-
if (instance instanceof ld.Button) {
|
|
57
|
-
updateListener("click", "onClick", instance, prevProps, nextProps);
|
|
58
|
-
}
|
|
59
|
-
} else if (isType("group", type, prevProps) && isType("group", type, nextProps)) {
|
|
60
|
-
if (instance instanceof ld.Group) {
|
|
61
|
-
updateListener(
|
|
62
|
-
"title-changed",
|
|
63
|
-
"onTitleChanged",
|
|
64
|
-
instance,
|
|
65
|
-
prevProps,
|
|
66
|
-
nextProps
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
} else if (isType("slider-button", type, prevProps) && isType("slider-button", type, nextProps)) {
|
|
70
|
-
if (instance instanceof ld.SliderButton) {
|
|
71
|
-
updateListener("change", "onChange", instance, prevProps, nextProps);
|
|
72
|
-
}
|
|
73
|
-
} else if (isType("switch", type, prevProps) && isType("switch", type, nextProps)) {
|
|
74
|
-
if (instance instanceof ld.Switch) {
|
|
75
|
-
updateListener("change", "onChange", instance, prevProps, nextProps);
|
|
76
|
-
}
|
|
77
|
-
} else if (isType("text-input", type, prevProps) && isType("text-input", type, nextProps)) {
|
|
78
|
-
if (instance instanceof ld.TextInput) {
|
|
79
|
-
updateListener("change", "onChange", instance, prevProps, nextProps);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
var hostConfig = {
|
|
84
|
-
supportsMutation: true,
|
|
85
|
-
supportsPersistence: false,
|
|
86
|
-
noTimeout: -1,
|
|
87
|
-
isPrimaryRenderer: true,
|
|
88
|
-
supportsHydration: false,
|
|
89
|
-
afterActiveInstanceBlur: () => null,
|
|
90
|
-
appendChild: (parentInstance, child) => {
|
|
91
|
-
if (parentInstance instanceof BaseParent) {
|
|
92
|
-
parentInstance.appendChild(child);
|
|
93
|
-
} else {
|
|
94
|
-
throw new Error(`Unexpected Parent: ${parentInstance}`);
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
appendInitialChild: (parentInstance, child) => {
|
|
98
|
-
if (parentInstance instanceof BaseParent) {
|
|
99
|
-
parentInstance.appendChild(child);
|
|
100
|
-
} else {
|
|
101
|
-
throw new Error(`Unexpected Parent: ${parentInstance}`);
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
appendChildToContainer(container, child) {
|
|
105
|
-
container.appendChild(child);
|
|
106
|
-
},
|
|
107
|
-
beforeActiveInstanceBlur: () => null,
|
|
108
|
-
cancelTimeout: (id) => clearTimeout(id),
|
|
109
|
-
clearContainer: (container) => container.removeAllChildren(),
|
|
110
|
-
commitMount: () => {
|
|
111
|
-
throw new Error(`Unexpected call to commitMount()`);
|
|
112
|
-
},
|
|
113
|
-
commitUpdate(instance, updatePayload, type, prevProps, nextProps, _internalHandle) {
|
|
114
|
-
if (canSetProps(instance)) {
|
|
115
|
-
instance.setProps(updatePayload);
|
|
116
|
-
updateListeners(type, instance, prevProps, nextProps);
|
|
117
|
-
} else {
|
|
118
|
-
throw new Error(`Unexpected Instance: ${instance}`);
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
commitTextUpdate: (textInstance, _oldText, newText) => textInstance.setText(newText),
|
|
122
|
-
createInstance: (type, props) => {
|
|
123
|
-
let instance = null;
|
|
124
|
-
if (isType("button", type, props)) {
|
|
125
|
-
instance = new ld.Button(props);
|
|
126
|
-
} else if (isType("group", type, props)) {
|
|
127
|
-
instance = new ld.Group(props);
|
|
128
|
-
} else if (isType("group-header", type, props)) {
|
|
129
|
-
instance = new ld.GroupHeader(props);
|
|
130
|
-
} else if (isType("label", type, props)) {
|
|
131
|
-
instance = new ld.Label(props);
|
|
132
|
-
} else if (isType("rect", type, props)) {
|
|
133
|
-
instance = new ld.Rect(props);
|
|
134
|
-
} else if (isType("slider-button", type, props)) {
|
|
135
|
-
instance = new ld.SliderButton(props);
|
|
136
|
-
} else if (isType("switch", type, props)) {
|
|
137
|
-
instance = new ld.Switch(props);
|
|
138
|
-
} else if (isType("tab", type, props)) {
|
|
139
|
-
instance = new ld.Tab(props);
|
|
140
|
-
} else if (isType("tabs", type, props)) {
|
|
141
|
-
instance = new ld.Tabs(props);
|
|
142
|
-
} else if (isType("text-input", type, props)) {
|
|
143
|
-
instance = new ld.TextInput(props);
|
|
144
|
-
} else if (isType("timeline", type, props)) {
|
|
145
|
-
instance = new ld.Timeline(props);
|
|
146
|
-
}
|
|
147
|
-
if (instance) {
|
|
148
|
-
updateListeners(type, instance, {}, props);
|
|
149
|
-
return instance;
|
|
150
|
-
} else {
|
|
151
|
-
throw new Error(`Not implemented type: ${type}`);
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
createTextInstance: (text) => new ld.Label({ text }),
|
|
155
|
-
detachDeletedInstance: () => null,
|
|
156
|
-
getChildHostContext: (parentHostContext) => parentHostContext,
|
|
157
|
-
getCurrentEventPriority: () => DefaultEventPriority,
|
|
158
|
-
getInstanceFromNode: () => {
|
|
159
|
-
throw new Error("Not yet implemented.");
|
|
160
|
-
},
|
|
161
|
-
getInstanceFromScope: () => {
|
|
162
|
-
throw new Error("Not yet implemented.");
|
|
163
|
-
},
|
|
164
|
-
getPublicInstance: (instance) => instance,
|
|
165
|
-
getRootHostContext: () => null,
|
|
166
|
-
insertBefore: (parentInstance, child, beforeChild) => {
|
|
167
|
-
if (parentInstance instanceof BaseParent) {
|
|
168
|
-
parentInstance.insertBefore(child, beforeChild);
|
|
169
|
-
} else {
|
|
170
|
-
throw new Error(`Unexpected Parent: ${parentInstance}`);
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
insertInContainerBefore: (container, child, beforeChild) => container.insertBefore(child, beforeChild),
|
|
174
|
-
finalizeInitialChildren: () => false,
|
|
175
|
-
prepareForCommit: () => null,
|
|
176
|
-
preparePortalMount: () => null,
|
|
177
|
-
prepareScopeUpdate: () => null,
|
|
178
|
-
prepareUpdate: (_instance, _type, _oldProps, newProps, _rootContainer, _hostContext) => {
|
|
179
|
-
const updates = {};
|
|
180
|
-
for (const [key, val] of Object.entries(newProps)) {
|
|
181
|
-
if (key !== "children") {
|
|
182
|
-
updates[key] = val;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
if (Object.keys(updates).length) {
|
|
186
|
-
return updates;
|
|
187
|
-
} else {
|
|
188
|
-
return null;
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
removeChild(parentInstance, child) {
|
|
192
|
-
if (parentInstance instanceof BaseParent) {
|
|
193
|
-
parentInstance.removeChild(child);
|
|
194
|
-
} else {
|
|
195
|
-
throw new Error(`Unexpected Parent: ${parentInstance}`);
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
removeChildFromContainer: (container, child) => container.removeChild(child),
|
|
199
|
-
resetAfterCommit: () => null,
|
|
200
|
-
resetTextContent: () => {
|
|
201
|
-
throw new Error(`Unexpected call to resetTextContent()`);
|
|
202
|
-
},
|
|
203
|
-
scheduleTimeout: (fn, delay) => setTimeout(fn, delay),
|
|
204
|
-
shouldSetTextContent: () => false,
|
|
205
|
-
// Not-implemented
|
|
206
|
-
hideInstance: () => {
|
|
207
|
-
console.log("Not-implemented: hideInstance");
|
|
208
|
-
},
|
|
209
|
-
hideTextInstance: () => {
|
|
210
|
-
console.log("Not-implemented: hideTextInstance");
|
|
211
|
-
},
|
|
212
|
-
unhideInstance: () => {
|
|
213
|
-
console.log("Not-implemented: unhideInstance");
|
|
214
|
-
},
|
|
215
|
-
unhideTextInstance: () => {
|
|
216
|
-
console.log("Not-implemented: unhideTextInstance");
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
var reconciler = Reconciler(hostConfig);
|
|
220
|
-
var ToolkitRenderer = {
|
|
221
|
-
renderGroup: (component, container) => {
|
|
222
|
-
const root = reconciler.createContainer(container, 0, false, null);
|
|
223
|
-
reconciler.updateContainer(component, root, null);
|
|
224
|
-
},
|
|
225
|
-
render: (component, container, rootGroupProps) => {
|
|
226
|
-
const group = new ld.Group(rootGroupProps);
|
|
227
|
-
container.setRoot(group);
|
|
228
|
-
ToolkitRenderer.renderGroup(component, group);
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
export {
|
|
232
|
-
Button,
|
|
233
|
-
Group,
|
|
234
|
-
GroupHeader,
|
|
235
|
-
Label,
|
|
236
|
-
Rect,
|
|
237
|
-
SliderButton,
|
|
238
|
-
Switch,
|
|
239
|
-
Tab,
|
|
240
|
-
Tabs,
|
|
241
|
-
TextInput,
|
|
242
|
-
Timeline,
|
|
243
|
-
ToolkitRenderer
|
|
244
|
-
};
|