@arcanejs/toolkit-frontend 0.8.0 → 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.
@@ -11,11 +11,22 @@ interface Props$8 {
11
11
  }
12
12
  declare const StyledButton: FC<Props$8>;
13
13
 
14
+ type StageConnectionState = {
15
+ state: 'connecting' | 'closed';
16
+ } | {
17
+ state: 'error';
18
+ error: Error;
19
+ } | {
20
+ state: 'connected';
21
+ uuid: string | null;
22
+ };
14
23
  type StageContextData = {
15
24
  sendMessage: (<M extends proto$1.AnyClientComponentMessage>(msg: M) => void) | null;
16
25
  call: (<Namespace extends string, P, Action extends string & keyof P>(msg: proto$1.CallForPair<Namespace, P, Action>) => Promise<proto$1.ReturnForPair<P, Action>>) | null;
17
26
  renderComponent: (info: proto$1.AnyComponentProto) => JSX.Element;
18
- connectionUuid: string;
27
+ connectionUuid: string | null;
28
+ connection: StageConnectionState;
29
+ reconnect: () => void;
19
30
  };
20
31
  declare const StageContext: React.Context<StageContextData>;
21
32
 
@@ -81,4 +92,4 @@ declare const Timeline: FC<Props>;
81
92
 
82
93
  declare const CORE_FRONTEND_COMPONENT_RENDERER: FrontendComponentRenderer;
83
94
 
84
- export { StyledButton as Button, CORE_FRONTEND_COMPONENT_RENDERER, StyledGroup as Group, GroupStateWrapper, StyledLabel as Label, StyledNestedContent as NestedContent, Rect, StyledSliderButton as SliderButton, StageContext, StyledSwitch as Switch, Tabs, StyledTextInput as TextInput, Timeline };
95
+ export { StyledButton as Button, CORE_FRONTEND_COMPONENT_RENDERER, StyledGroup as Group, GroupStateWrapper, StyledLabel as Label, StyledNestedContent as NestedContent, Rect, StyledSliderButton as SliderButton, type StageConnectionState, StageContext, type StageContextData, StyledSwitch as Switch, Tabs, StyledTextInput as TextInput, Timeline };
@@ -11,11 +11,22 @@ interface Props$8 {
11
11
  }
12
12
  declare const StyledButton: FC<Props$8>;
13
13
 
14
+ type StageConnectionState = {
15
+ state: 'connecting' | 'closed';
16
+ } | {
17
+ state: 'error';
18
+ error: Error;
19
+ } | {
20
+ state: 'connected';
21
+ uuid: string | null;
22
+ };
14
23
  type StageContextData = {
15
24
  sendMessage: (<M extends proto$1.AnyClientComponentMessage>(msg: M) => void) | null;
16
25
  call: (<Namespace extends string, P, Action extends string & keyof P>(msg: proto$1.CallForPair<Namespace, P, Action>) => Promise<proto$1.ReturnForPair<P, Action>>) | null;
17
26
  renderComponent: (info: proto$1.AnyComponentProto) => JSX.Element;
18
- connectionUuid: string;
27
+ connectionUuid: string | null;
28
+ connection: StageConnectionState;
29
+ reconnect: () => void;
19
30
  };
20
31
  declare const StageContext: React.Context<StageContextData>;
21
32
 
@@ -81,4 +92,4 @@ declare const Timeline: FC<Props>;
81
92
 
82
93
  declare const CORE_FRONTEND_COMPONENT_RENDERER: FrontendComponentRenderer;
83
94
 
84
- export { StyledButton as Button, CORE_FRONTEND_COMPONENT_RENDERER, StyledGroup as Group, GroupStateWrapper, StyledLabel as Label, StyledNestedContent as NestedContent, Rect, StyledSliderButton as SliderButton, StageContext, StyledSwitch as Switch, Tabs, StyledTextInput as TextInput, Timeline };
95
+ export { StyledButton as Button, CORE_FRONTEND_COMPONENT_RENDERER, StyledGroup as Group, GroupStateWrapper, StyledLabel as Label, StyledNestedContent as NestedContent, Rect, StyledSliderButton as SliderButton, type StageConnectionState, StageContext, type StageContextData, StyledSwitch as Switch, Tabs, StyledTextInput as TextInput, Timeline };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcanejs/toolkit-frontend",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "private": false,
5
5
  "description": "Library of the frontend react components used to render the @arcanejs Toolkit",
6
6
  "keywords": [],