@arcanejs/react-toolkit 0.8.5 → 0.9.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/colors.d.mts +6 -8
- package/dist/colors.d.ts +6 -8
- package/dist/connections.d.mts +14 -0
- package/dist/connections.d.ts +14 -0
- package/dist/connections.js +39 -0
- package/dist/connections.mjs +39 -0
- package/dist/index.d.mts +11 -13
- package/dist/index.d.ts +11 -13
- package/package.json +9 -3
package/dist/colors.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Ref } from 'react';
|
|
1
|
+
import React__default, { Ref, ReactNode } from 'react';
|
|
2
2
|
import { Props as Props$1, Events as Events$1, Group, GroupHeader } from '@arcanejs/toolkit/components/group';
|
|
3
3
|
import { Props, Events, Button } from '@arcanejs/toolkit/components/button';
|
|
4
4
|
import { Props as Props$2, Label } from '@arcanejs/toolkit/components/label';
|
|
@@ -9,8 +9,6 @@ import { TabProps, Tab, TabsProps, Tabs } from '@arcanejs/toolkit/components/tab
|
|
|
9
9
|
import { Props as Props$6, Events as Events$4, TextInput } from '@arcanejs/toolkit/components/text-input';
|
|
10
10
|
import { Props as Props$7, Timeline } from '@arcanejs/toolkit/components/timeline';
|
|
11
11
|
|
|
12
|
-
type Child = JSX.Element | string | null | undefined | boolean;
|
|
13
|
-
type Children = Child | Child[];
|
|
14
12
|
interface LightDeskIntrinsicElements {
|
|
15
13
|
button: Props & {
|
|
16
14
|
children?: never;
|
|
@@ -18,12 +16,12 @@ interface LightDeskIntrinsicElements {
|
|
|
18
16
|
ref?: Ref<Button>;
|
|
19
17
|
};
|
|
20
18
|
group: Props$1 & {
|
|
21
|
-
children?:
|
|
19
|
+
children?: ReactNode;
|
|
22
20
|
onTitleChanged?: Events$1['title-changed'];
|
|
23
21
|
ref?: Ref<Group>;
|
|
24
22
|
};
|
|
25
23
|
'group-header': {
|
|
26
|
-
children?:
|
|
24
|
+
children?: ReactNode;
|
|
27
25
|
ref?: Ref<GroupHeader>;
|
|
28
26
|
};
|
|
29
27
|
label: Props$2 & {
|
|
@@ -45,15 +43,15 @@ interface LightDeskIntrinsicElements {
|
|
|
45
43
|
ref?: Ref<Switch>;
|
|
46
44
|
};
|
|
47
45
|
tab: TabProps & {
|
|
48
|
-
children?:
|
|
46
|
+
children?: ReactNode;
|
|
49
47
|
ref?: Ref<Tab>;
|
|
50
48
|
};
|
|
51
49
|
tabs: TabsProps & {
|
|
52
|
-
children?:
|
|
50
|
+
children?: ReactNode;
|
|
53
51
|
ref?: Ref<Tabs>;
|
|
54
52
|
};
|
|
55
53
|
'text-input': Props$6 & {
|
|
56
|
-
children?:
|
|
54
|
+
children?: ReactNode;
|
|
57
55
|
onChange?: Events$4['change'];
|
|
58
56
|
ref?: Ref<TextInput>;
|
|
59
57
|
};
|
package/dist/colors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Ref } from 'react';
|
|
1
|
+
import React__default, { Ref, ReactNode } from 'react';
|
|
2
2
|
import { Props as Props$1, Events as Events$1, Group, GroupHeader } from '@arcanejs/toolkit/components/group';
|
|
3
3
|
import { Props, Events, Button } from '@arcanejs/toolkit/components/button';
|
|
4
4
|
import { Props as Props$2, Label } from '@arcanejs/toolkit/components/label';
|
|
@@ -9,8 +9,6 @@ import { TabProps, Tab, TabsProps, Tabs } from '@arcanejs/toolkit/components/tab
|
|
|
9
9
|
import { Props as Props$6, Events as Events$4, TextInput } from '@arcanejs/toolkit/components/text-input';
|
|
10
10
|
import { Props as Props$7, Timeline } from '@arcanejs/toolkit/components/timeline';
|
|
11
11
|
|
|
12
|
-
type Child = JSX.Element | string | null | undefined | boolean;
|
|
13
|
-
type Children = Child | Child[];
|
|
14
12
|
interface LightDeskIntrinsicElements {
|
|
15
13
|
button: Props & {
|
|
16
14
|
children?: never;
|
|
@@ -18,12 +16,12 @@ interface LightDeskIntrinsicElements {
|
|
|
18
16
|
ref?: Ref<Button>;
|
|
19
17
|
};
|
|
20
18
|
group: Props$1 & {
|
|
21
|
-
children?:
|
|
19
|
+
children?: ReactNode;
|
|
22
20
|
onTitleChanged?: Events$1['title-changed'];
|
|
23
21
|
ref?: Ref<Group>;
|
|
24
22
|
};
|
|
25
23
|
'group-header': {
|
|
26
|
-
children?:
|
|
24
|
+
children?: ReactNode;
|
|
27
25
|
ref?: Ref<GroupHeader>;
|
|
28
26
|
};
|
|
29
27
|
label: Props$2 & {
|
|
@@ -45,15 +43,15 @@ interface LightDeskIntrinsicElements {
|
|
|
45
43
|
ref?: Ref<Switch>;
|
|
46
44
|
};
|
|
47
45
|
tab: TabProps & {
|
|
48
|
-
children?:
|
|
46
|
+
children?: ReactNode;
|
|
49
47
|
ref?: Ref<Tab>;
|
|
50
48
|
};
|
|
51
49
|
tabs: TabsProps & {
|
|
52
|
-
children?:
|
|
50
|
+
children?: ReactNode;
|
|
53
51
|
ref?: Ref<Tabs>;
|
|
54
52
|
};
|
|
55
53
|
'text-input': Props$6 & {
|
|
56
|
-
children?:
|
|
54
|
+
children?: ReactNode;
|
|
57
55
|
onChange?: Events$4['change'];
|
|
58
56
|
ref?: Ref<TextInput>;
|
|
59
57
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ToolkitConnection, Toolkit } from '@arcanejs/toolkit';
|
|
2
|
+
import React__default, { FC, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type ConnectionsContextData = {
|
|
5
|
+
connections: ToolkitConnection[];
|
|
6
|
+
};
|
|
7
|
+
declare const ConnectionsContext: React__default.Context<ConnectionsContextData>;
|
|
8
|
+
type ConnectionsContextProviderProps = {
|
|
9
|
+
toolkit: Toolkit;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const ConnectionsContextProvider: FC<ConnectionsContextProviderProps>;
|
|
13
|
+
|
|
14
|
+
export { ConnectionsContext, ConnectionsContextProvider };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ToolkitConnection, Toolkit } from '@arcanejs/toolkit';
|
|
2
|
+
import React__default, { FC, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type ConnectionsContextData = {
|
|
5
|
+
connections: ToolkitConnection[];
|
|
6
|
+
};
|
|
7
|
+
declare const ConnectionsContext: React__default.Context<ConnectionsContextData>;
|
|
8
|
+
type ConnectionsContextProviderProps = {
|
|
9
|
+
toolkit: Toolkit;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const ConnectionsContextProvider: FC<ConnectionsContextProviderProps>;
|
|
13
|
+
|
|
14
|
+
export { ConnectionsContext, ConnectionsContextProvider };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/connections.tsx
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _react = require('react');
|
|
7
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
8
|
+
var ConnectionsContext = _react.createContext.call(void 0,
|
|
9
|
+
new Proxy({}, {
|
|
10
|
+
get: () => {
|
|
11
|
+
throw new Error(
|
|
12
|
+
"Can use ConnectionsContext without ConnectionsContextProvider"
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
);
|
|
17
|
+
var ConnectionsContextProvider = ({ toolkit, children }) => {
|
|
18
|
+
const [connections, setConnections] = _react.useState.call(void 0, []);
|
|
19
|
+
_react.useEffect.call(void 0, () => {
|
|
20
|
+
const onNewConnection = (connection) => {
|
|
21
|
+
setConnections((current) => [...current, connection]);
|
|
22
|
+
};
|
|
23
|
+
const onClosedConnection = (connection) => {
|
|
24
|
+
setConnections((current) => current.filter((c) => c !== connection));
|
|
25
|
+
};
|
|
26
|
+
toolkit.addListener("new-connection", onNewConnection);
|
|
27
|
+
toolkit.addListener("closed-connection", onClosedConnection);
|
|
28
|
+
setConnections(toolkit.getConnections());
|
|
29
|
+
return () => {
|
|
30
|
+
toolkit.removeListener("new-connection", onNewConnection);
|
|
31
|
+
toolkit.removeListener("closed-connection", onClosedConnection);
|
|
32
|
+
};
|
|
33
|
+
}, [toolkit]);
|
|
34
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConnectionsContext.Provider, { value: { connections }, children });
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
exports.ConnectionsContext = ConnectionsContext; exports.ConnectionsContextProvider = ConnectionsContextProvider;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/connections.tsx
|
|
2
|
+
import {
|
|
3
|
+
createContext,
|
|
4
|
+
useEffect,
|
|
5
|
+
useState
|
|
6
|
+
} from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var ConnectionsContext = createContext(
|
|
9
|
+
new Proxy({}, {
|
|
10
|
+
get: () => {
|
|
11
|
+
throw new Error(
|
|
12
|
+
"Can use ConnectionsContext without ConnectionsContextProvider"
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
})
|
|
16
|
+
);
|
|
17
|
+
var ConnectionsContextProvider = ({ toolkit, children }) => {
|
|
18
|
+
const [connections, setConnections] = useState([]);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
const onNewConnection = (connection) => {
|
|
21
|
+
setConnections((current) => [...current, connection]);
|
|
22
|
+
};
|
|
23
|
+
const onClosedConnection = (connection) => {
|
|
24
|
+
setConnections((current) => current.filter((c) => c !== connection));
|
|
25
|
+
};
|
|
26
|
+
toolkit.addListener("new-connection", onNewConnection);
|
|
27
|
+
toolkit.addListener("closed-connection", onClosedConnection);
|
|
28
|
+
setConnections(toolkit.getConnections());
|
|
29
|
+
return () => {
|
|
30
|
+
toolkit.removeListener("new-connection", onNewConnection);
|
|
31
|
+
toolkit.removeListener("closed-connection", onClosedConnection);
|
|
32
|
+
};
|
|
33
|
+
}, [toolkit]);
|
|
34
|
+
return /* @__PURE__ */ jsx(ConnectionsContext.Provider, { value: { connections }, children });
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
ConnectionsContext,
|
|
38
|
+
ConnectionsContextProvider
|
|
39
|
+
};
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _arcanejs_protocol_styles from '@arcanejs/protocol/styles';
|
|
|
3
3
|
import * as _arcanejs_toolkit_components_group from '@arcanejs/toolkit/components/group';
|
|
4
4
|
import { Props } from '@arcanejs/toolkit/components/group';
|
|
5
5
|
import * as _arcanejs_toolkit_components_button from '@arcanejs/toolkit/components/button';
|
|
6
|
-
import React__default from 'react';
|
|
6
|
+
import React__default, { ReactNode } from 'react';
|
|
7
7
|
import * as ld from '@arcanejs/toolkit';
|
|
8
8
|
import { Button as Button$1, Group as Group$1, GroupHeader as GroupHeader$1, Label as Label$1, Rect as Rect$1, SliderButton as SliderButton$1, Switch as Switch$1, Tab as Tab$1, Tabs as Tabs$1, TextInput as TextInput$1, Timeline as Timeline$1 } from '@arcanejs/toolkit';
|
|
9
9
|
import { AnyComponent, BaseParent, Base } from '@arcanejs/toolkit/components/base';
|
|
@@ -12,12 +12,10 @@ type ComponentClass = new (...args: any[]) => AnyComponent;
|
|
|
12
12
|
type ComponentsDefinition = {
|
|
13
13
|
[key: string]: ComponentClass;
|
|
14
14
|
};
|
|
15
|
-
type Child = JSX.Element | null | undefined | false | string;
|
|
16
|
-
type Children = Child | Child[];
|
|
17
15
|
type PropsOfComponent<T extends ComponentClass> = T extends new (props?: infer P) => BaseParent<any, any, any> ? Partial<P & {
|
|
18
|
-
children:
|
|
16
|
+
children: ReactNode;
|
|
19
17
|
}> : T extends new (props: infer P) => BaseParent<any, any, any> ? P & {
|
|
20
|
-
children?:
|
|
18
|
+
children?: ReactNode;
|
|
21
19
|
} : T extends new (props?: infer P) => Base<any, any, any> ? Partial<P> : T extends new (props: infer P) => Base<any, any, any> ? P : never;
|
|
22
20
|
type InstanceType<T extends ComponentClass> = T extends new (...args: any[]) => infer R ? R : never;
|
|
23
21
|
type Creators<D extends ComponentsDefinition> = {
|
|
@@ -59,10 +57,10 @@ declare const ToolkitRenderer: {
|
|
|
59
57
|
|
|
60
58
|
declare const Button: React__default.ForwardRefExoticComponent<Partial<Partial<_arcanejs_toolkit_components_button.InternalProps>> & React__default.RefAttributes<ld.Button>>;
|
|
61
59
|
declare const Group: React__default.ForwardRefExoticComponent<Partial<Partial<_arcanejs_toolkit_components_group.InternalProps> & {
|
|
62
|
-
children:
|
|
60
|
+
children: React__default.ReactNode;
|
|
63
61
|
}> & React__default.RefAttributes<ld.Group>>;
|
|
64
62
|
declare const GroupHeader: React__default.ForwardRefExoticComponent<Record<never, never> & {
|
|
65
|
-
children?:
|
|
63
|
+
children?: React__default.ReactNode;
|
|
66
64
|
} & React__default.RefAttributes<ld.GroupHeader>>;
|
|
67
65
|
declare const Label: React__default.ForwardRefExoticComponent<Partial<_arcanejs_protocol_styles.LabelComponentStyle & {
|
|
68
66
|
text: string | null;
|
|
@@ -74,28 +72,28 @@ declare const Rect: React__default.ForwardRefExoticComponent<Partial<Partial<{
|
|
|
74
72
|
declare const SliderButton: React__default.ForwardRefExoticComponent<Partial<Pick<Pick<_arcanejs_protocol_core.SliderButtonComponent, "grow" | "min" | "max" | "step" | "gradient"> & {
|
|
75
73
|
value?: number | undefined;
|
|
76
74
|
defaultValue?: number | undefined;
|
|
77
|
-
onChange?: ((value: number) => void | Promise<void>) | undefined;
|
|
75
|
+
onChange?: ((value: number, connection: ld.ToolkitConnection) => void | Promise<void>) | undefined;
|
|
78
76
|
}, "value"> & Partial<Omit<Pick<_arcanejs_protocol_core.SliderButtonComponent, "grow" | "min" | "max" | "step" | "gradient"> & {
|
|
79
77
|
value?: number | undefined;
|
|
80
78
|
defaultValue?: number | undefined;
|
|
81
|
-
onChange?: ((value: number) => void | Promise<void>) | undefined;
|
|
79
|
+
onChange?: ((value: number, connection: ld.ToolkitConnection) => void | Promise<void>) | undefined;
|
|
82
80
|
}, "value">>> & React__default.RefAttributes<ld.SliderButton>>;
|
|
83
81
|
declare const Switch: React__default.ForwardRefExoticComponent<Partial<Partial<{
|
|
84
82
|
value?: "on" | "off" | undefined;
|
|
85
83
|
defaultValue?: "on" | "off" | undefined;
|
|
86
|
-
onChange?: ((state: "on" | "off") => void | Promise<void>) | undefined;
|
|
84
|
+
onChange?: ((state: "on" | "off", connection: ld.ToolkitConnection) => void | Promise<void>) | undefined;
|
|
87
85
|
}>> & React__default.RefAttributes<ld.Switch>>;
|
|
88
86
|
declare const Tab: React__default.ForwardRefExoticComponent<{
|
|
89
87
|
name: string;
|
|
90
88
|
} & {
|
|
91
|
-
children?:
|
|
89
|
+
children?: React__default.ReactNode;
|
|
92
90
|
} & React__default.RefAttributes<ld.Tab>>;
|
|
93
91
|
declare const Tabs: React__default.ForwardRefExoticComponent<Partial<{} & {
|
|
94
|
-
children:
|
|
92
|
+
children: React__default.ReactNode;
|
|
95
93
|
}> & React__default.RefAttributes<ld.Tabs>>;
|
|
96
94
|
declare const TextInput: React__default.ForwardRefExoticComponent<Partial<Partial<{
|
|
97
95
|
value: string | null;
|
|
98
|
-
onChange?: ((value: string) => void | Promise<void>) | undefined;
|
|
96
|
+
onChange?: ((value: string, connection: ld.ToolkitConnection) => void | Promise<void>) | undefined;
|
|
99
97
|
}>> & React__default.RefAttributes<ld.TextInput>>;
|
|
100
98
|
declare const Timeline: React__default.ForwardRefExoticComponent<Partial<Partial<{
|
|
101
99
|
state: _arcanejs_protocol_core.TimelineState;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as _arcanejs_protocol_styles from '@arcanejs/protocol/styles';
|
|
|
3
3
|
import * as _arcanejs_toolkit_components_group from '@arcanejs/toolkit/components/group';
|
|
4
4
|
import { Props } from '@arcanejs/toolkit/components/group';
|
|
5
5
|
import * as _arcanejs_toolkit_components_button from '@arcanejs/toolkit/components/button';
|
|
6
|
-
import React__default from 'react';
|
|
6
|
+
import React__default, { ReactNode } from 'react';
|
|
7
7
|
import * as ld from '@arcanejs/toolkit';
|
|
8
8
|
import { Button as Button$1, Group as Group$1, GroupHeader as GroupHeader$1, Label as Label$1, Rect as Rect$1, SliderButton as SliderButton$1, Switch as Switch$1, Tab as Tab$1, Tabs as Tabs$1, TextInput as TextInput$1, Timeline as Timeline$1 } from '@arcanejs/toolkit';
|
|
9
9
|
import { AnyComponent, BaseParent, Base } from '@arcanejs/toolkit/components/base';
|
|
@@ -12,12 +12,10 @@ type ComponentClass = new (...args: any[]) => AnyComponent;
|
|
|
12
12
|
type ComponentsDefinition = {
|
|
13
13
|
[key: string]: ComponentClass;
|
|
14
14
|
};
|
|
15
|
-
type Child = JSX.Element | null | undefined | false | string;
|
|
16
|
-
type Children = Child | Child[];
|
|
17
15
|
type PropsOfComponent<T extends ComponentClass> = T extends new (props?: infer P) => BaseParent<any, any, any> ? Partial<P & {
|
|
18
|
-
children:
|
|
16
|
+
children: ReactNode;
|
|
19
17
|
}> : T extends new (props: infer P) => BaseParent<any, any, any> ? P & {
|
|
20
|
-
children?:
|
|
18
|
+
children?: ReactNode;
|
|
21
19
|
} : T extends new (props?: infer P) => Base<any, any, any> ? Partial<P> : T extends new (props: infer P) => Base<any, any, any> ? P : never;
|
|
22
20
|
type InstanceType<T extends ComponentClass> = T extends new (...args: any[]) => infer R ? R : never;
|
|
23
21
|
type Creators<D extends ComponentsDefinition> = {
|
|
@@ -59,10 +57,10 @@ declare const ToolkitRenderer: {
|
|
|
59
57
|
|
|
60
58
|
declare const Button: React__default.ForwardRefExoticComponent<Partial<Partial<_arcanejs_toolkit_components_button.InternalProps>> & React__default.RefAttributes<ld.Button>>;
|
|
61
59
|
declare const Group: React__default.ForwardRefExoticComponent<Partial<Partial<_arcanejs_toolkit_components_group.InternalProps> & {
|
|
62
|
-
children:
|
|
60
|
+
children: React__default.ReactNode;
|
|
63
61
|
}> & React__default.RefAttributes<ld.Group>>;
|
|
64
62
|
declare const GroupHeader: React__default.ForwardRefExoticComponent<Record<never, never> & {
|
|
65
|
-
children?:
|
|
63
|
+
children?: React__default.ReactNode;
|
|
66
64
|
} & React__default.RefAttributes<ld.GroupHeader>>;
|
|
67
65
|
declare const Label: React__default.ForwardRefExoticComponent<Partial<_arcanejs_protocol_styles.LabelComponentStyle & {
|
|
68
66
|
text: string | null;
|
|
@@ -74,28 +72,28 @@ declare const Rect: React__default.ForwardRefExoticComponent<Partial<Partial<{
|
|
|
74
72
|
declare const SliderButton: React__default.ForwardRefExoticComponent<Partial<Pick<Pick<_arcanejs_protocol_core.SliderButtonComponent, "grow" | "min" | "max" | "step" | "gradient"> & {
|
|
75
73
|
value?: number | undefined;
|
|
76
74
|
defaultValue?: number | undefined;
|
|
77
|
-
onChange?: ((value: number) => void | Promise<void>) | undefined;
|
|
75
|
+
onChange?: ((value: number, connection: ld.ToolkitConnection) => void | Promise<void>) | undefined;
|
|
78
76
|
}, "value"> & Partial<Omit<Pick<_arcanejs_protocol_core.SliderButtonComponent, "grow" | "min" | "max" | "step" | "gradient"> & {
|
|
79
77
|
value?: number | undefined;
|
|
80
78
|
defaultValue?: number | undefined;
|
|
81
|
-
onChange?: ((value: number) => void | Promise<void>) | undefined;
|
|
79
|
+
onChange?: ((value: number, connection: ld.ToolkitConnection) => void | Promise<void>) | undefined;
|
|
82
80
|
}, "value">>> & React__default.RefAttributes<ld.SliderButton>>;
|
|
83
81
|
declare const Switch: React__default.ForwardRefExoticComponent<Partial<Partial<{
|
|
84
82
|
value?: "on" | "off" | undefined;
|
|
85
83
|
defaultValue?: "on" | "off" | undefined;
|
|
86
|
-
onChange?: ((state: "on" | "off") => void | Promise<void>) | undefined;
|
|
84
|
+
onChange?: ((state: "on" | "off", connection: ld.ToolkitConnection) => void | Promise<void>) | undefined;
|
|
87
85
|
}>> & React__default.RefAttributes<ld.Switch>>;
|
|
88
86
|
declare const Tab: React__default.ForwardRefExoticComponent<{
|
|
89
87
|
name: string;
|
|
90
88
|
} & {
|
|
91
|
-
children?:
|
|
89
|
+
children?: React__default.ReactNode;
|
|
92
90
|
} & React__default.RefAttributes<ld.Tab>>;
|
|
93
91
|
declare const Tabs: React__default.ForwardRefExoticComponent<Partial<{} & {
|
|
94
|
-
children:
|
|
92
|
+
children: React__default.ReactNode;
|
|
95
93
|
}> & React__default.RefAttributes<ld.Tabs>>;
|
|
96
94
|
declare const TextInput: React__default.ForwardRefExoticComponent<Partial<Partial<{
|
|
97
95
|
value: string | null;
|
|
98
|
-
onChange?: ((value: string) => void | Promise<void>) | undefined;
|
|
96
|
+
onChange?: ((value: string, connection: ld.ToolkitConnection) => void | Promise<void>) | undefined;
|
|
99
97
|
}>> & React__default.RefAttributes<ld.TextInput>>;
|
|
100
98
|
declare const Timeline: React__default.ForwardRefExoticComponent<Partial<Partial<{
|
|
101
99
|
state: _arcanejs_protocol_core.TimelineState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcanejs/react-toolkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Build web-accessible control interfaces for your long-running Node.js processes",
|
|
6
6
|
"keywords": [
|
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
"import": "./dist/colors.mjs",
|
|
32
32
|
"require": "./dist/colors.js"
|
|
33
33
|
},
|
|
34
|
+
"./connections": {
|
|
35
|
+
"@arcanejs/source": "./src/connections.tsx",
|
|
36
|
+
"types": "./dist/connections.d.ts",
|
|
37
|
+
"import": "./dist/connections.mjs",
|
|
38
|
+
"require": "./dist/connections.js"
|
|
39
|
+
},
|
|
34
40
|
"./data": {
|
|
35
41
|
"@arcanejs/source": "./src/data.tsx",
|
|
36
42
|
"types": "./dist/data.d.ts",
|
|
@@ -63,8 +69,8 @@
|
|
|
63
69
|
"lodash": "^4.17.21",
|
|
64
70
|
"react": "^18",
|
|
65
71
|
"react-reconciler": "0.28.0",
|
|
66
|
-
"@arcanejs/protocol": "^0.
|
|
67
|
-
"@arcanejs/toolkit": "^
|
|
72
|
+
"@arcanejs/protocol": "^0.5.0",
|
|
73
|
+
"@arcanejs/toolkit": "^2.0.0"
|
|
68
74
|
},
|
|
69
75
|
"peerDependencies": {
|
|
70
76
|
"zod": "^3.23.8"
|