@arcanejs/toolkit 1.1.1 → 3.0.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.
Files changed (71) hide show
  1. package/dist/backend/components/base.d.mts +10 -79
  2. package/dist/backend/components/base.d.ts +10 -79
  3. package/dist/backend/components/base.js +2 -2
  4. package/dist/backend/components/base.mjs +1 -1
  5. package/dist/backend/components/button.d.mts +9 -33
  6. package/dist/backend/components/button.d.ts +9 -33
  7. package/dist/backend/components/button.js +3 -3
  8. package/dist/backend/components/button.mjs +2 -2
  9. package/dist/backend/components/group.d.mts +9 -54
  10. package/dist/backend/components/group.d.ts +9 -54
  11. package/dist/backend/components/group.js +3 -3
  12. package/dist/backend/components/group.mjs +2 -2
  13. package/dist/backend/components/label.d.mts +6 -2
  14. package/dist/backend/components/label.d.ts +6 -2
  15. package/dist/backend/components/label.js +3 -3
  16. package/dist/backend/components/label.mjs +2 -2
  17. package/dist/backend/components/rect.d.mts +7 -2
  18. package/dist/backend/components/rect.d.ts +7 -2
  19. package/dist/backend/components/rect.js +3 -3
  20. package/dist/backend/components/rect.mjs +2 -2
  21. package/dist/backend/components/slider-button.d.mts +8 -3
  22. package/dist/backend/components/slider-button.d.ts +8 -3
  23. package/dist/backend/components/slider-button.js +3 -3
  24. package/dist/backend/components/slider-button.mjs +2 -2
  25. package/dist/backend/components/switch.d.mts +8 -3
  26. package/dist/backend/components/switch.d.ts +8 -3
  27. package/dist/backend/components/switch.js +3 -3
  28. package/dist/backend/components/switch.mjs +2 -2
  29. package/dist/backend/components/tabs.d.mts +7 -2
  30. package/dist/backend/components/tabs.d.ts +7 -2
  31. package/dist/backend/components/tabs.js +3 -3
  32. package/dist/backend/components/tabs.mjs +2 -2
  33. package/dist/backend/components/text-input.d.mts +8 -3
  34. package/dist/backend/components/text-input.d.ts +8 -3
  35. package/dist/backend/components/text-input.js +3 -3
  36. package/dist/backend/components/text-input.mjs +2 -2
  37. package/dist/backend/components/timeline.d.mts +7 -2
  38. package/dist/backend/components/timeline.d.ts +7 -2
  39. package/dist/backend/components/timeline.js +3 -3
  40. package/dist/backend/components/timeline.mjs +2 -2
  41. package/dist/{chunk-HNFNG5MD.js → chunk-4OZ22IQU.js} +5 -5
  42. package/dist/{chunk-5TGGF5UJ.mjs → chunk-5D7OSUZ6.mjs} +3 -3
  43. package/dist/{chunk-T4TMVBFM.js → chunk-6CWEURJP.js} +2 -2
  44. package/dist/{chunk-5JPYL5IU.js → chunk-7OX2FB6C.js} +2 -2
  45. package/dist/{chunk-PXYXUWXE.mjs → chunk-7TTY7CBH.mjs} +1 -1
  46. package/dist/{chunk-SIXWXDZW.js → chunk-CME7HZZK.js} +5 -5
  47. package/dist/{chunk-OAPIVG6M.mjs → chunk-CUZSHFDP.mjs} +1 -1
  48. package/dist/{chunk-ZLJECS4H.js → chunk-DG75CS7F.js} +5 -5
  49. package/dist/{chunk-V5T44HCM.js → chunk-DRQVYGTI.js} +2 -2
  50. package/dist/{chunk-ARRRZPUK.js → chunk-GMDJYFHD.js} +3 -3
  51. package/dist/{chunk-IBIEYR3L.mjs → chunk-JFZXSCGK.mjs} +3 -3
  52. package/dist/{chunk-LX5IL6WX.mjs → chunk-K37TZB75.mjs} +1 -1
  53. package/dist/{chunk-BDBRQJSI.mjs → chunk-N6IHYBZH.mjs} +1 -1
  54. package/dist/{chunk-SBHNIFAS.mjs → chunk-NEQRLPXK.mjs} +3 -3
  55. package/dist/{chunk-TOPIQUBZ.js → chunk-O5ZW6JYG.js} +6 -6
  56. package/dist/{chunk-7SZA6JUN.mjs → chunk-RYR5I5FT.mjs} +6 -6
  57. package/dist/{chunk-ADH7RZG5.js → chunk-SGACFY53.js} +6 -6
  58. package/dist/{chunk-25LALCAN.js → chunk-VEZGD2PG.js} +5 -5
  59. package/dist/{chunk-EFNFSHV3.mjs → chunk-W42AOMM6.mjs} +3 -3
  60. package/dist/{chunk-ISHGZXPO.mjs → chunk-YBBUC3QC.mjs} +3 -3
  61. package/dist/frontend/entrypoint.js +492 -221
  62. package/dist/frontend/entrypoint.js.map +4 -4
  63. package/dist/frontend/index.js +242 -6
  64. package/dist/frontend/index.mjs +255 -19
  65. package/dist/index.d.mts +7 -111
  66. package/dist/index.d.ts +7 -111
  67. package/dist/index.js +65 -26
  68. package/dist/index.mjs +54 -15
  69. package/dist/toolkit-2w2SWHlT.d.ts +269 -0
  70. package/dist/toolkit-DB8G2TaA.d.mts +269 -0
  71. package/package.json +5 -4
@@ -1,79 +1,10 @@
1
- import { BaseComponentProto, AnyClientComponentMessage } from '@arcanejs/protocol';
2
- import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { Logger } from '@arcanejs/protocol/logging';
4
-
5
- declare abstract class Base<Namespace extends string, Proto extends BaseComponentProto<Namespace>, Props> {
6
- /** @hidden */
7
- private parent;
8
- /** @hidden */
9
- private readonly defaultProps;
10
- /** @hidden */
11
- private _props;
12
- /** @hidden */
13
- private _onPropsUpdated;
14
- constructor(defaultProps: Props, props?: Partial<Props>, options?: {
15
- onPropsUpdated?: (oldProps: Props) => void;
16
- });
17
- /**
18
- * Call if
19
- */
20
- triggerInitialPropsUpdate: () => void;
21
- log: () => Logger | null;
22
- get props(): Props;
23
- set props(props: Partial<Props>);
24
- setProps: (props: Partial<Props>) => void;
25
- updateProps: (updates: Partial<Props>) => void;
26
- /** @hidden */
27
- setParent(parent: Parent | null): void;
28
- /** @hidden */
29
- updateTree(): void;
30
- /** @hidden */
31
- abstract getProtoInfo(idMap: IDMap): Proto;
32
- /** @hidden */
33
- handleMessage(_message: AnyClientComponentMessage): void;
34
- routeMessage(_idMap: IDMap, _message: AnyClientComponentMessage): void;
35
- }
36
- type AnyComponent = Base<string, BaseComponentProto<string>, any>;
37
- /** @hidden */
38
- interface Parent {
39
- updateTree(): void;
40
- removeChild(component: AnyComponent): void;
41
- log(): Logger | null;
42
- }
43
- declare abstract class BaseParent<Namespace extends string, Proto extends BaseComponentProto<Namespace>, T> extends Base<Namespace, Proto, T> implements Parent {
44
- /** @hidden */
45
- private children;
46
- abstract validateChildren(children: AnyComponent[]): void;
47
- appendChildren: <CS extends AnyComponent[]>(...children: CS) => CS;
48
- appendChild: <C extends AnyComponent>(child: C) => C;
49
- removeChild: (component: AnyComponent) => void;
50
- removeAllChildren: () => void;
51
- /**
52
- * Return all children components that messages need to be routed to
53
- */
54
- getChildren: () => readonly AnyComponent[];
55
- /**
56
- * TODO: we can do this better, right now it broadcasts the message to all
57
- * components of the tree
58
- *
59
- * @hidden
60
- */
61
- routeMessage(idMap: IDMap, message: AnyClientComponentMessage): void;
62
- insertBefore(child: AnyComponent, beforeChild: AnyComponent): void;
63
- }
64
- interface Listenable<Map extends Record<string, (...args: any[]) => void>> {
65
- addListener<T extends keyof Map>(type: T, listener: Map[T]): void;
66
- removeListener<T extends keyof Map>(type: T, listener: Map[T]): void;
67
- }
68
- declare class EventEmitter<Map extends Record<string, (...args: any[]) => void>> implements Listenable<Map> {
69
- private readonly listeners;
70
- addListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
71
- removeListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
72
- emit: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<unknown>;
73
- /**
74
- * Process prop changes to update listeners
75
- */
76
- processPropChanges: <Mapping extends Record<string, keyof Map>, Props extends { [key in keyof Mapping]?: Map[Mapping[key]] | null | undefined; }>(mapping: Mapping, oldProps: Props, newProps: Props) => void;
77
- }
78
-
79
- export { type AnyComponent, Base, BaseParent, EventEmitter, type Listenable, type Parent };
1
+ import '@arcanejs/protocol';
2
+ import '../../id-map-DxQ3_gyA.mjs';
3
+ import '@arcanejs/protocol/logging';
4
+ export { A as AnyComponent, d as Base, e as BaseParent, E as EventEmitter, L as Listenable, P as Parent } from '../../toolkit-DB8G2TaA.mjs';
5
+ import 'lodash';
6
+ import 'http';
7
+ import 'express';
8
+ import 'ws';
9
+ import '@arcanejs/protocol/core';
10
+ import '@arcanejs/protocol/styles';
@@ -1,79 +1,10 @@
1
- import { BaseComponentProto, AnyClientComponentMessage } from '@arcanejs/protocol';
2
- import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { Logger } from '@arcanejs/protocol/logging';
4
-
5
- declare abstract class Base<Namespace extends string, Proto extends BaseComponentProto<Namespace>, Props> {
6
- /** @hidden */
7
- private parent;
8
- /** @hidden */
9
- private readonly defaultProps;
10
- /** @hidden */
11
- private _props;
12
- /** @hidden */
13
- private _onPropsUpdated;
14
- constructor(defaultProps: Props, props?: Partial<Props>, options?: {
15
- onPropsUpdated?: (oldProps: Props) => void;
16
- });
17
- /**
18
- * Call if
19
- */
20
- triggerInitialPropsUpdate: () => void;
21
- log: () => Logger | null;
22
- get props(): Props;
23
- set props(props: Partial<Props>);
24
- setProps: (props: Partial<Props>) => void;
25
- updateProps: (updates: Partial<Props>) => void;
26
- /** @hidden */
27
- setParent(parent: Parent | null): void;
28
- /** @hidden */
29
- updateTree(): void;
30
- /** @hidden */
31
- abstract getProtoInfo(idMap: IDMap): Proto;
32
- /** @hidden */
33
- handleMessage(_message: AnyClientComponentMessage): void;
34
- routeMessage(_idMap: IDMap, _message: AnyClientComponentMessage): void;
35
- }
36
- type AnyComponent = Base<string, BaseComponentProto<string>, any>;
37
- /** @hidden */
38
- interface Parent {
39
- updateTree(): void;
40
- removeChild(component: AnyComponent): void;
41
- log(): Logger | null;
42
- }
43
- declare abstract class BaseParent<Namespace extends string, Proto extends BaseComponentProto<Namespace>, T> extends Base<Namespace, Proto, T> implements Parent {
44
- /** @hidden */
45
- private children;
46
- abstract validateChildren(children: AnyComponent[]): void;
47
- appendChildren: <CS extends AnyComponent[]>(...children: CS) => CS;
48
- appendChild: <C extends AnyComponent>(child: C) => C;
49
- removeChild: (component: AnyComponent) => void;
50
- removeAllChildren: () => void;
51
- /**
52
- * Return all children components that messages need to be routed to
53
- */
54
- getChildren: () => readonly AnyComponent[];
55
- /**
56
- * TODO: we can do this better, right now it broadcasts the message to all
57
- * components of the tree
58
- *
59
- * @hidden
60
- */
61
- routeMessage(idMap: IDMap, message: AnyClientComponentMessage): void;
62
- insertBefore(child: AnyComponent, beforeChild: AnyComponent): void;
63
- }
64
- interface Listenable<Map extends Record<string, (...args: any[]) => void>> {
65
- addListener<T extends keyof Map>(type: T, listener: Map[T]): void;
66
- removeListener<T extends keyof Map>(type: T, listener: Map[T]): void;
67
- }
68
- declare class EventEmitter<Map extends Record<string, (...args: any[]) => void>> implements Listenable<Map> {
69
- private readonly listeners;
70
- addListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
71
- removeListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
72
- emit: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<unknown>;
73
- /**
74
- * Process prop changes to update listeners
75
- */
76
- processPropChanges: <Mapping extends Record<string, keyof Map>, Props extends { [key in keyof Mapping]?: Map[Mapping[key]] | null | undefined; }>(mapping: Mapping, oldProps: Props, newProps: Props) => void;
77
- }
78
-
79
- export { type AnyComponent, Base, BaseParent, EventEmitter, type Listenable, type Parent };
1
+ import '@arcanejs/protocol';
2
+ import '../../id-map-DxQ3_gyA.js';
3
+ import '@arcanejs/protocol/logging';
4
+ export { A as AnyComponent, d as Base, e as BaseParent, E as EventEmitter, L as Listenable, P as Parent } from '../../toolkit-2w2SWHlT.js';
5
+ import 'lodash';
6
+ import 'http';
7
+ import 'express';
8
+ import 'ws';
9
+ import '@arcanejs/protocol/core';
10
+ import '@arcanejs/protocol/styles';
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkADH7RZG5js = require('../../chunk-ADH7RZG5.js');
5
+ var _chunkSGACFY53js = require('../../chunk-SGACFY53.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.Base = _chunkADH7RZG5js.Base; exports.BaseParent = _chunkADH7RZG5js.BaseParent; exports.EventEmitter = _chunkADH7RZG5js.EventEmitter;
11
+ exports.Base = _chunkSGACFY53js.Base; exports.BaseParent = _chunkSGACFY53js.BaseParent; exports.EventEmitter = _chunkSGACFY53js.EventEmitter;
@@ -2,7 +2,7 @@ import {
2
2
  Base,
3
3
  BaseParent,
4
4
  EventEmitter
5
- } from "../../chunk-7SZA6JUN.mjs";
5
+ } from "../../chunk-RYR5I5FT.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Base,
@@ -1,34 +1,10 @@
1
- import * as proto from '@arcanejs/protocol/core';
2
- import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { Base, Listenable } from './base.mjs';
4
- import { AnyClientComponentMessage } from '@arcanejs/protocol';
1
+ import '@arcanejs/protocol/core';
2
+ import '../../id-map-DxQ3_gyA.mjs';
3
+ export { B as Button, g as ButtonMode, f as Events, I as InternalProps, h as Props } from '../../toolkit-DB8G2TaA.mjs';
4
+ import '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
-
7
- type Events = {
8
- click: () => void | Promise<void>;
9
- };
10
- type ButtonMode = 'normal' | 'pressed';
11
- type InternalProps = {
12
- text: string | null;
13
- icon: string | null;
14
- mode: ButtonMode;
15
- error: string | null;
16
- onClick?: Events['click'] | null;
17
- };
18
- type Props = Partial<InternalProps>;
19
- declare class Button extends Base<proto.CoreNamespace, proto.CoreComponent, InternalProps> implements Listenable<Events> {
20
- /** @hidden */
21
- private readonly events;
22
- constructor(props?: Props);
23
- addListener: <T extends "click">(type: T, listener: Events[T]) => void;
24
- removeListener: <T extends "click">(type: T, listener: Events[T]) => void;
25
- setText: (text: string | null) => this;
26
- setIcon: (icon: string | undefined | null) => this;
27
- setMode: (mode: ButtonMode) => this;
28
- /** @hidden */
29
- getProtoInfo: (idMap: IDMap) => proto.ButtonComponent;
30
- /** @hidden */
31
- handleMessage: (message: AnyClientComponentMessage) => void;
32
- }
33
-
34
- export { Button, type ButtonMode, type Events, type InternalProps, type Props };
6
+ import 'lodash';
7
+ import 'http';
8
+ import 'express';
9
+ import 'ws';
10
+ import '@arcanejs/protocol/styles';
@@ -1,34 +1,10 @@
1
- import * as proto from '@arcanejs/protocol/core';
2
- import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { Base, Listenable } from './base.js';
4
- import { AnyClientComponentMessage } from '@arcanejs/protocol';
1
+ import '@arcanejs/protocol/core';
2
+ import '../../id-map-DxQ3_gyA.js';
3
+ export { B as Button, g as ButtonMode, f as Events, I as InternalProps, h as Props } from '../../toolkit-2w2SWHlT.js';
4
+ import '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
-
7
- type Events = {
8
- click: () => void | Promise<void>;
9
- };
10
- type ButtonMode = 'normal' | 'pressed';
11
- type InternalProps = {
12
- text: string | null;
13
- icon: string | null;
14
- mode: ButtonMode;
15
- error: string | null;
16
- onClick?: Events['click'] | null;
17
- };
18
- type Props = Partial<InternalProps>;
19
- declare class Button extends Base<proto.CoreNamespace, proto.CoreComponent, InternalProps> implements Listenable<Events> {
20
- /** @hidden */
21
- private readonly events;
22
- constructor(props?: Props);
23
- addListener: <T extends "click">(type: T, listener: Events[T]) => void;
24
- removeListener: <T extends "click">(type: T, listener: Events[T]) => void;
25
- setText: (text: string | null) => this;
26
- setIcon: (icon: string | undefined | null) => this;
27
- setMode: (mode: ButtonMode) => this;
28
- /** @hidden */
29
- getProtoInfo: (idMap: IDMap) => proto.ButtonComponent;
30
- /** @hidden */
31
- handleMessage: (message: AnyClientComponentMessage) => void;
32
- }
33
-
34
- export { Button, type ButtonMode, type Events, type InternalProps, type Props };
6
+ import 'lodash';
7
+ import 'http';
8
+ import 'express';
9
+ import 'ws';
10
+ import '@arcanejs/protocol/styles';
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZLJECS4Hjs = require('../../chunk-ZLJECS4H.js');
4
- require('../../chunk-ADH7RZG5.js');
3
+ var _chunkDG75CS7Fjs = require('../../chunk-DG75CS7F.js');
4
+ require('../../chunk-SGACFY53.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Button = _chunkZLJECS4Hjs.Button;
8
+ exports.Button = _chunkDG75CS7Fjs.Button;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Button
3
- } from "../../chunk-EFNFSHV3.mjs";
4
- import "../../chunk-7SZA6JUN.mjs";
3
+ } from "../../chunk-W42AOMM6.mjs";
4
+ import "../../chunk-RYR5I5FT.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Button
@@ -1,55 +1,10 @@
1
- import * as proto from '@arcanejs/protocol/core';
2
- import { GroupComponentStyle } from '@arcanejs/protocol/styles';
3
- import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
4
- import { BaseParent, Listenable } from './base.mjs';
5
- import { Button } from './button.mjs';
6
- import { AnyClientComponentMessage } from '@arcanejs/protocol';
1
+ import '@arcanejs/protocol/core';
2
+ import '@arcanejs/protocol/styles';
3
+ import '../../id-map-DxQ3_gyA.mjs';
4
+ export { i as Events, G as Group, c as GroupHeader, j as InternalProps, k as Props } from '../../toolkit-DB8G2TaA.mjs';
5
+ import '@arcanejs/protocol';
7
6
  import '@arcanejs/protocol/logging';
8
-
9
- type Label = (proto.GroupComponent['labels'] & Array<unknown>)[number];
10
- type GroupOptions = {
11
- editableTitle?: boolean;
12
- defaultCollapsibleState?: proto.GroupComponent['defaultCollapsibleState'];
13
- };
14
- type Events = {
15
- 'title-changed': (title: string) => void;
16
- };
17
- type InternalProps = GroupComponentStyle & GroupOptions & {
18
- title: string | null;
19
- labels: Label[] | null;
20
- onTitleChanged?: Events['title-changed'];
21
- };
22
- type Props = Partial<InternalProps>;
23
- declare class GroupHeader extends BaseParent<proto.CoreNamespace, proto.CoreComponent, Record<never, never>> {
24
- validateChildren: () => void;
25
- /** @hidden */
26
- getProtoInfo: (idMap: IDMap) => proto.GroupHeaderComponent;
27
- }
28
- /**
29
- * A collection of components, grouped in either a row or column. Can contain
30
- * further groups as children to organize components however you wish, and have
31
- * a number of styling options (such as removing the border).
32
- *
33
- * ![](media://images/group_screenshot.png)
34
- */
35
- declare class Group extends BaseParent<proto.CoreNamespace, proto.GroupComponent, Props> implements Listenable<Events> {
36
- /** @hidden */
37
- private readonly events;
38
- constructor(props?: Props);
39
- addListener: <T extends "title-changed">(type: T, listener: Events[T]) => void;
40
- removeListener: <T extends "title-changed">(type: T, listener: Events[T]) => void;
41
- validateChildren: () => void;
42
- setOptions: (options: GroupOptions) => void;
43
- setTitle: (title: string) => void;
44
- addLabel: (label: Label) => void;
45
- setLabels: (labels: Label[]) => void;
46
- addHeaderChild: <C extends Button>(child: C) => C;
47
- removeHeaderChild: (child: Button) => void;
48
- removeAllHeaderChildren: () => void;
49
- /** @hidden */
50
- getProtoInfo: (idMap: IDMap) => proto.GroupComponent;
51
- /** @hidden */
52
- handleMessage: (message: AnyClientComponentMessage) => void;
53
- }
54
-
55
- export { type Events, Group, GroupHeader, type InternalProps, type Props };
7
+ import 'lodash';
8
+ import 'http';
9
+ import 'express';
10
+ import 'ws';
@@ -1,55 +1,10 @@
1
- import * as proto from '@arcanejs/protocol/core';
2
- import { GroupComponentStyle } from '@arcanejs/protocol/styles';
3
- import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
4
- import { BaseParent, Listenable } from './base.js';
5
- import { Button } from './button.js';
6
- import { AnyClientComponentMessage } from '@arcanejs/protocol';
1
+ import '@arcanejs/protocol/core';
2
+ import '@arcanejs/protocol/styles';
3
+ import '../../id-map-DxQ3_gyA.js';
4
+ export { i as Events, G as Group, c as GroupHeader, j as InternalProps, k as Props } from '../../toolkit-2w2SWHlT.js';
5
+ import '@arcanejs/protocol';
7
6
  import '@arcanejs/protocol/logging';
8
-
9
- type Label = (proto.GroupComponent['labels'] & Array<unknown>)[number];
10
- type GroupOptions = {
11
- editableTitle?: boolean;
12
- defaultCollapsibleState?: proto.GroupComponent['defaultCollapsibleState'];
13
- };
14
- type Events = {
15
- 'title-changed': (title: string) => void;
16
- };
17
- type InternalProps = GroupComponentStyle & GroupOptions & {
18
- title: string | null;
19
- labels: Label[] | null;
20
- onTitleChanged?: Events['title-changed'];
21
- };
22
- type Props = Partial<InternalProps>;
23
- declare class GroupHeader extends BaseParent<proto.CoreNamespace, proto.CoreComponent, Record<never, never>> {
24
- validateChildren: () => void;
25
- /** @hidden */
26
- getProtoInfo: (idMap: IDMap) => proto.GroupHeaderComponent;
27
- }
28
- /**
29
- * A collection of components, grouped in either a row or column. Can contain
30
- * further groups as children to organize components however you wish, and have
31
- * a number of styling options (such as removing the border).
32
- *
33
- * ![](media://images/group_screenshot.png)
34
- */
35
- declare class Group extends BaseParent<proto.CoreNamespace, proto.GroupComponent, Props> implements Listenable<Events> {
36
- /** @hidden */
37
- private readonly events;
38
- constructor(props?: Props);
39
- addListener: <T extends "title-changed">(type: T, listener: Events[T]) => void;
40
- removeListener: <T extends "title-changed">(type: T, listener: Events[T]) => void;
41
- validateChildren: () => void;
42
- setOptions: (options: GroupOptions) => void;
43
- setTitle: (title: string) => void;
44
- addLabel: (label: Label) => void;
45
- setLabels: (labels: Label[]) => void;
46
- addHeaderChild: <C extends Button>(child: C) => C;
47
- removeHeaderChild: (child: Button) => void;
48
- removeAllHeaderChildren: () => void;
49
- /** @hidden */
50
- getProtoInfo: (idMap: IDMap) => proto.GroupComponent;
51
- /** @hidden */
52
- handleMessage: (message: AnyClientComponentMessage) => void;
53
- }
54
-
55
- export { type Events, Group, GroupHeader, type InternalProps, type Props };
7
+ import 'lodash';
8
+ import 'http';
9
+ import 'express';
10
+ import 'ws';
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkTOPIQUBZjs = require('../../chunk-TOPIQUBZ.js');
5
- require('../../chunk-ADH7RZG5.js');
4
+ var _chunkO5ZW6JYGjs = require('../../chunk-O5ZW6JYG.js');
5
+ require('../../chunk-SGACFY53.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
- exports.Group = _chunkTOPIQUBZjs.Group; exports.GroupHeader = _chunkTOPIQUBZjs.GroupHeader;
10
+ exports.Group = _chunkO5ZW6JYGjs.Group; exports.GroupHeader = _chunkO5ZW6JYGjs.GroupHeader;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Group,
3
3
  GroupHeader
4
- } from "../../chunk-5TGGF5UJ.mjs";
5
- import "../../chunk-7SZA6JUN.mjs";
4
+ } from "../../chunk-5D7OSUZ6.mjs";
5
+ import "../../chunk-RYR5I5FT.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Group,
@@ -1,9 +1,13 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { LabelComponentStyle } from '@arcanejs/protocol/styles';
3
3
  import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
4
- import { Base } from './base.mjs';
5
- import '@arcanejs/protocol';
4
+ import { d as Base } from '../../toolkit-DB8G2TaA.mjs';
6
5
  import '@arcanejs/protocol/logging';
6
+ import 'lodash';
7
+ import 'http';
8
+ import 'express';
9
+ import 'ws';
10
+ import '@arcanejs/protocol';
7
11
 
8
12
  type InternalProps = LabelComponentStyle & {
9
13
  text: string | null;
@@ -1,9 +1,13 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { LabelComponentStyle } from '@arcanejs/protocol/styles';
3
3
  import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
4
- import { Base } from './base.js';
5
- import '@arcanejs/protocol';
4
+ import { d as Base } from '../../toolkit-2w2SWHlT.js';
6
5
  import '@arcanejs/protocol/logging';
6
+ import 'lodash';
7
+ import 'http';
8
+ import 'express';
9
+ import 'ws';
10
+ import '@arcanejs/protocol';
7
11
 
8
12
  type InternalProps = LabelComponentStyle & {
9
13
  text: string | null;
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkV5T44HCMjs = require('../../chunk-V5T44HCM.js');
4
- require('../../chunk-ADH7RZG5.js');
3
+ var _chunkDRQVYGTIjs = require('../../chunk-DRQVYGTI.js');
4
+ require('../../chunk-SGACFY53.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Label = _chunkV5T44HCMjs.Label;
8
+ exports.Label = _chunkDRQVYGTIjs.Label;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Label
3
- } from "../../chunk-OAPIVG6M.mjs";
4
- import "../../chunk-7SZA6JUN.mjs";
3
+ } from "../../chunk-CUZSHFDP.mjs";
4
+ import "../../chunk-RYR5I5FT.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Label
@@ -1,8 +1,13 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { Base } from './base.mjs';
4
- import '@arcanejs/protocol';
3
+ import { d as Base } from '../../toolkit-DB8G2TaA.mjs';
5
4
  import '@arcanejs/protocol/logging';
5
+ import 'lodash';
6
+ import 'http';
7
+ import 'express';
8
+ import 'ws';
9
+ import '@arcanejs/protocol';
10
+ import '@arcanejs/protocol/styles';
6
11
 
7
12
  type InternalProps = Pick<proto.RectComponent, 'color' | 'grow'>;
8
13
  type Props = Partial<InternalProps>;
@@ -1,8 +1,13 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { Base } from './base.js';
4
- import '@arcanejs/protocol';
3
+ import { d as Base } from '../../toolkit-2w2SWHlT.js';
5
4
  import '@arcanejs/protocol/logging';
5
+ import 'lodash';
6
+ import 'http';
7
+ import 'express';
8
+ import 'ws';
9
+ import '@arcanejs/protocol';
10
+ import '@arcanejs/protocol/styles';
6
11
 
7
12
  type InternalProps = Pick<proto.RectComponent, 'color' | 'grow'>;
8
13
  type Props = Partial<InternalProps>;
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk5JPYL5IUjs = require('../../chunk-5JPYL5IU.js');
4
- require('../../chunk-ADH7RZG5.js');
3
+ var _chunk7OX2FB6Cjs = require('../../chunk-7OX2FB6C.js');
4
+ require('../../chunk-SGACFY53.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Rect = _chunk5JPYL5IUjs.Rect;
8
+ exports.Rect = _chunk7OX2FB6Cjs.Rect;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Rect
3
- } from "../../chunk-BDBRQJSI.mjs";
4
- import "../../chunk-7SZA6JUN.mjs";
3
+ } from "../../chunk-N6IHYBZH.mjs";
4
+ import "../../chunk-RYR5I5FT.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Rect
@@ -1,11 +1,16 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { Base, Listenable } from './base.mjs';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-DB8G2TaA.mjs';
4
4
  import { AnyClientComponentMessage } from '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
+ import 'lodash';
7
+ import 'http';
8
+ import 'express';
9
+ import 'ws';
10
+ import '@arcanejs/protocol/styles';
6
11
 
7
12
  type Events = {
8
- change: (value: number) => void | Promise<void>;
13
+ change: (value: number, connection: ToolkitConnection) => void | Promise<void>;
9
14
  };
10
15
  type InternalProps = Pick<proto.SliderButtonComponent, 'min' | 'max' | 'step' | 'gradient' | 'grow'> & {
11
16
  value?: number;
@@ -28,7 +33,7 @@ declare class SliderButton extends Base<proto.CoreNamespace, proto.CoreComponent
28
33
  /** @hidden */
29
34
  getProtoInfo(idMap: IDMap): proto.CoreComponent;
30
35
  /** @hidden */
31
- handleMessage(message: AnyClientComponentMessage): void;
36
+ handleMessage(message: AnyClientComponentMessage, connection: ToolkitConnection): void;
32
37
  setValue(value: number): void;
33
38
  private sanitizeNumber;
34
39
  private onPropsUpdated;
@@ -1,11 +1,16 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { Base, Listenable } from './base.js';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-2w2SWHlT.js';
4
4
  import { AnyClientComponentMessage } from '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
+ import 'lodash';
7
+ import 'http';
8
+ import 'express';
9
+ import 'ws';
10
+ import '@arcanejs/protocol/styles';
6
11
 
7
12
  type Events = {
8
- change: (value: number) => void | Promise<void>;
13
+ change: (value: number, connection: ToolkitConnection) => void | Promise<void>;
9
14
  };
10
15
  type InternalProps = Pick<proto.SliderButtonComponent, 'min' | 'max' | 'step' | 'gradient' | 'grow'> & {
11
16
  value?: number;
@@ -28,7 +33,7 @@ declare class SliderButton extends Base<proto.CoreNamespace, proto.CoreComponent
28
33
  /** @hidden */
29
34
  getProtoInfo(idMap: IDMap): proto.CoreComponent;
30
35
  /** @hidden */
31
- handleMessage(message: AnyClientComponentMessage): void;
36
+ handleMessage(message: AnyClientComponentMessage, connection: ToolkitConnection): void;
32
37
  setValue(value: number): void;
33
38
  private sanitizeNumber;
34
39
  private onPropsUpdated;