@arcanejs/toolkit 0.2.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.
Files changed (70) hide show
  1. package/dist/backend/components/base.d.mts +9 -2
  2. package/dist/backend/components/base.d.ts +9 -2
  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 +1 -0
  6. package/dist/backend/components/button.d.ts +1 -0
  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 +1 -0
  10. package/dist/backend/components/group.d.ts +1 -0
  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 +1 -0
  14. package/dist/backend/components/label.d.ts +1 -0
  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 +1 -0
  18. package/dist/backend/components/rect.d.ts +1 -0
  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 +10 -4
  22. package/dist/backend/components/slider-button.d.ts +10 -4
  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 +9 -1
  26. package/dist/backend/components/switch.d.ts +9 -1
  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 +1 -0
  30. package/dist/backend/components/tabs.d.ts +1 -0
  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 +1 -0
  34. package/dist/backend/components/text-input.d.ts +1 -0
  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 +1 -0
  38. package/dist/backend/components/timeline.d.ts +1 -0
  39. package/dist/backend/components/timeline.js +3 -3
  40. package/dist/backend/components/timeline.mjs +2 -2
  41. package/dist/{chunk-K24YPCR5.js → chunk-4HHKW7VA.js} +4 -4
  42. package/dist/{chunk-KVJU3EAD.js → chunk-4X3QY5EP.js} +3 -3
  43. package/dist/{chunk-JW4GXS54.mjs → chunk-A2STBGBE.mjs} +28 -11
  44. package/dist/{chunk-RJS32OOA.js → chunk-C2TVGO43.js} +3 -3
  45. package/dist/{chunk-UBWCVW2U.js → chunk-CFO5PSSK.js} +27 -21
  46. package/dist/{chunk-SOC4TF3J.mjs → chunk-DBSYI5Z4.mjs} +1 -1
  47. package/dist/{chunk-MDFDWKGW.js → chunk-DONU33U4.js} +3 -3
  48. package/dist/{chunk-P43QUQ4T.js → chunk-FLRGYURV.js} +2 -2
  49. package/dist/{chunk-OEIGZ3NQ.js → chunk-FUINWM5H.js} +2 -2
  50. package/dist/{chunk-TAZH4BBH.mjs → chunk-G5QXW2L3.mjs} +1 -1
  51. package/dist/chunk-G7GFSIHY.js +76 -0
  52. package/dist/{chunk-TQ27Y7F4.mjs → chunk-H734NV65.mjs} +1 -1
  53. package/dist/{chunk-HNEUZVCX.mjs → chunk-JOW3XRQI.mjs} +1 -1
  54. package/dist/{chunk-RGIB65TI.js → chunk-K572ZPUS.js} +2 -2
  55. package/dist/{chunk-3O4P67DM.mjs → chunk-KBPQZJKE.mjs} +1 -1
  56. package/dist/{chunk-ZU5H6SVA.mjs → chunk-KOKUFP6V.mjs} +1 -1
  57. package/dist/{chunk-IXTM35YM.mjs → chunk-KR6LSBBX.mjs} +1 -1
  58. package/dist/{chunk-ZCHM3JJJ.mjs → chunk-PW7QVLLF.mjs} +10 -4
  59. package/dist/chunk-Q3NG5UUN.mjs +61 -0
  60. package/dist/chunk-Q5TEM6MM.js +61 -0
  61. package/dist/frontend.js +0 -3
  62. package/dist/frontend.js.map +2 -2
  63. package/dist/index.d.mts +21 -3
  64. package/dist/index.d.ts +21 -3
  65. package/dist/index.js +30 -26
  66. package/dist/index.mjs +28 -24
  67. package/package.json +8 -6
  68. package/dist/chunk-APCR3ITH.mjs +0 -42
  69. package/dist/chunk-M6EFK4GP.js +0 -42
  70. package/dist/chunk-T2PJEXYO.js +0 -59
@@ -1,5 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.mjs';
3
+ import { Logger } from '@arcanejs/protocol/logging';
3
4
 
4
5
  interface Component {
5
6
  getProtoInfo(idMap: IDMap): proto.Component;
@@ -14,7 +15,12 @@ declare abstract class Base<Props> implements Component {
14
15
  private readonly defaultProps;
15
16
  /** @hidden */
16
17
  private _props;
17
- constructor(defaultProps: Props, props?: Partial<Props>);
18
+ /** @hidden */
19
+ private _onPropsUpdated;
20
+ constructor(defaultProps: Props, props?: Partial<Props>, options?: {
21
+ onPropsUpdated?: () => void;
22
+ });
23
+ log: () => Logger | null;
18
24
  get props(): Props;
19
25
  set props(props: Partial<Props>);
20
26
  setProps: (props: Partial<Props>) => void;
@@ -26,13 +32,14 @@ declare abstract class Base<Props> implements Component {
26
32
  /** @hidden */
27
33
  abstract getProtoInfo(idMap: IDMap): proto.Component;
28
34
  /** @hidden */
29
- handleMessage(message: proto.ClientComponentMessage): void;
35
+ handleMessage(_message: proto.ClientComponentMessage): void;
30
36
  routeMessage(_idMap: IDMap, _message: proto.ClientComponentMessage): void;
31
37
  }
32
38
  /** @hidden */
33
39
  interface Parent {
34
40
  updateTree(): void;
35
41
  removeChild(component: Component): void;
42
+ log(): Logger | null;
36
43
  }
37
44
  declare abstract class BaseParent<T> extends Base<T> implements Parent {
38
45
  /** @hidden */
@@ -1,5 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.js';
3
+ import { Logger } from '@arcanejs/protocol/logging';
3
4
 
4
5
  interface Component {
5
6
  getProtoInfo(idMap: IDMap): proto.Component;
@@ -14,7 +15,12 @@ declare abstract class Base<Props> implements Component {
14
15
  private readonly defaultProps;
15
16
  /** @hidden */
16
17
  private _props;
17
- constructor(defaultProps: Props, props?: Partial<Props>);
18
+ /** @hidden */
19
+ private _onPropsUpdated;
20
+ constructor(defaultProps: Props, props?: Partial<Props>, options?: {
21
+ onPropsUpdated?: () => void;
22
+ });
23
+ log: () => Logger | null;
18
24
  get props(): Props;
19
25
  set props(props: Partial<Props>);
20
26
  setProps: (props: Partial<Props>) => void;
@@ -26,13 +32,14 @@ declare abstract class Base<Props> implements Component {
26
32
  /** @hidden */
27
33
  abstract getProtoInfo(idMap: IDMap): proto.Component;
28
34
  /** @hidden */
29
- handleMessage(message: proto.ClientComponentMessage): void;
35
+ handleMessage(_message: proto.ClientComponentMessage): void;
30
36
  routeMessage(_idMap: IDMap, _message: proto.ClientComponentMessage): void;
31
37
  }
32
38
  /** @hidden */
33
39
  interface Parent {
34
40
  updateTree(): void;
35
41
  removeChild(component: Component): void;
42
+ log(): Logger | null;
36
43
  }
37
44
  declare abstract class BaseParent<T> extends Base<T> implements Parent {
38
45
  /** @hidden */
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkUBWCVW2Ujs = require('../../chunk-UBWCVW2U.js');
5
+ var _chunkCFO5PSSKjs = require('../../chunk-CFO5PSSK.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.Base = _chunkUBWCVW2Ujs.Base; exports.BaseParent = _chunkUBWCVW2Ujs.BaseParent; exports.EventEmitter = _chunkUBWCVW2Ujs.EventEmitter;
11
+ exports.Base = _chunkCFO5PSSKjs.Base; exports.BaseParent = _chunkCFO5PSSKjs.BaseParent; exports.EventEmitter = _chunkCFO5PSSKjs.EventEmitter;
@@ -2,7 +2,7 @@ import {
2
2
  Base,
3
3
  BaseParent,
4
4
  EventEmitter
5
- } from "../../chunk-ZCHM3JJJ.mjs";
5
+ } from "../../chunk-PW7QVLLF.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Base,
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.mjs';
3
3
  import { Base, Listenable } from './base.mjs';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type Events = {
6
7
  click: () => void | Promise<void>;
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.js';
3
3
  import { Base, Listenable } from './base.js';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type Events = {
6
7
  click: () => void | Promise<void>;
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKVJU3EADjs = require('../../chunk-KVJU3EAD.js');
4
- require('../../chunk-UBWCVW2U.js');
3
+ var _chunk4X3QY5EPjs = require('../../chunk-4X3QY5EP.js');
4
+ require('../../chunk-CFO5PSSK.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Button = _chunkKVJU3EADjs.Button;
8
+ exports.Button = _chunk4X3QY5EPjs.Button;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Button
3
- } from "../../chunk-TAZH4BBH.mjs";
4
- import "../../chunk-ZCHM3JJJ.mjs";
3
+ } from "../../chunk-G5QXW2L3.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Button
@@ -3,6 +3,7 @@ import { GroupComponentStyle } from '@arcanejs/protocol/styles';
3
3
  import { IDMap } from '../util/index.mjs';
4
4
  import { BaseParent, Listenable } from './base.mjs';
5
5
  import { Button } from './button.mjs';
6
+ import '@arcanejs/protocol/logging';
6
7
 
7
8
  type Label = (proto.GroupComponent['labels'] & Array<unknown>)[number];
8
9
  type GroupOptions = {
@@ -3,6 +3,7 @@ import { GroupComponentStyle } from '@arcanejs/protocol/styles';
3
3
  import { IDMap } from '../util/index.js';
4
4
  import { BaseParent, Listenable } from './base.js';
5
5
  import { Button } from './button.js';
6
+ import '@arcanejs/protocol/logging';
6
7
 
7
8
  type Label = (proto.GroupComponent['labels'] & Array<unknown>)[number];
8
9
  type GroupOptions = {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkK24YPCR5js = require('../../chunk-K24YPCR5.js');
5
- require('../../chunk-UBWCVW2U.js');
4
+ var _chunk4HHKW7VAjs = require('../../chunk-4HHKW7VA.js');
5
+ require('../../chunk-CFO5PSSK.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
- exports.Group = _chunkK24YPCR5js.Group; exports.GroupHeader = _chunkK24YPCR5js.GroupHeader;
10
+ exports.Group = _chunk4HHKW7VAjs.Group; exports.GroupHeader = _chunk4HHKW7VAjs.GroupHeader;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Group,
3
3
  GroupHeader
4
- } from "../../chunk-3O4P67DM.mjs";
5
- import "../../chunk-ZCHM3JJJ.mjs";
4
+ } from "../../chunk-KBPQZJKE.mjs";
5
+ import "../../chunk-PW7QVLLF.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Group,
@@ -2,6 +2,7 @@ import * as proto from '@arcanejs/protocol';
2
2
  import { LabelComponentStyle } from '@arcanejs/protocol/styles';
3
3
  import { IDMap } from '../util/index.mjs';
4
4
  import { Base } from './base.mjs';
5
+ import '@arcanejs/protocol/logging';
5
6
 
6
7
  type InternalProps = LabelComponentStyle & {
7
8
  text: string | null;
@@ -2,6 +2,7 @@ import * as proto from '@arcanejs/protocol';
2
2
  import { LabelComponentStyle } from '@arcanejs/protocol/styles';
3
3
  import { IDMap } from '../util/index.js';
4
4
  import { Base } from './base.js';
5
+ import '@arcanejs/protocol/logging';
5
6
 
6
7
  type InternalProps = LabelComponentStyle & {
7
8
  text: string | null;
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkP43QUQ4Tjs = require('../../chunk-P43QUQ4T.js');
4
- require('../../chunk-UBWCVW2U.js');
3
+ var _chunkFLRGYURVjs = require('../../chunk-FLRGYURV.js');
4
+ require('../../chunk-CFO5PSSK.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Label = _chunkP43QUQ4Tjs.Label;
8
+ exports.Label = _chunkFLRGYURVjs.Label;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Label
3
- } from "../../chunk-HNEUZVCX.mjs";
4
- import "../../chunk-ZCHM3JJJ.mjs";
3
+ } from "../../chunk-JOW3XRQI.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Label
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.mjs';
3
3
  import { Base } from './base.mjs';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type InternalProps = {
6
7
  color: string;
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.js';
3
3
  import { Base } from './base.js';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type InternalProps = {
6
7
  color: string;
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkRGIB65TIjs = require('../../chunk-RGIB65TI.js');
4
- require('../../chunk-UBWCVW2U.js');
3
+ var _chunkK572ZPUSjs = require('../../chunk-K572ZPUS.js');
4
+ require('../../chunk-CFO5PSSK.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Rect = _chunkRGIB65TIjs.Rect;
8
+ exports.Rect = _chunkK572ZPUSjs.Rect;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Rect
3
- } from "../../chunk-ZU5H6SVA.mjs";
4
- import "../../chunk-ZCHM3JJJ.mjs";
3
+ } from "../../chunk-KOKUFP6V.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Rect
@@ -1,23 +1,28 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.mjs';
3
3
  import { Base, Listenable } from './base.mjs';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type Events = {
6
7
  change: (value: number) => void | Promise<void>;
7
8
  };
8
- type SliderMode = 'writeThrough' | 'writeBack';
9
9
  type InternalProps = {
10
10
  min: number;
11
11
  max: number;
12
12
  step: number;
13
- value: number | null;
14
- mode: SliderMode;
13
+ value?: number;
14
+ defaultValue?: number;
15
15
  };
16
16
  type RequiredProps = 'value';
17
17
  type Props = Pick<InternalProps, RequiredProps> & Partial<Omit<InternalProps, RequiredProps>>;
18
18
  declare class SliderButton extends Base<InternalProps> implements Listenable<Events> {
19
19
  /** @hidden */
20
20
  private readonly events;
21
+ /**
22
+ * Manually manage the state of the slider,
23
+ * to support both controlled and uncontrolled inputs.
24
+ */
25
+ private _value;
21
26
  constructor(props?: Props);
22
27
  addListener: <T extends "change">(type: T, listener: Events[T]) => void;
23
28
  removeListener: <T extends "change">(type: T, listener: Events[T]) => void;
@@ -27,6 +32,7 @@ declare class SliderButton extends Base<InternalProps> implements Listenable<Eve
27
32
  handleMessage(message: proto.ClientComponentMessage): void;
28
33
  setValue(value: number): void;
29
34
  private sanitizeNumber;
35
+ private onPropsUpdated;
30
36
  }
31
37
 
32
- export { type Events, type Props, SliderButton, type SliderMode };
38
+ export { type Events, type Props, SliderButton };
@@ -1,23 +1,28 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.js';
3
3
  import { Base, Listenable } from './base.js';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type Events = {
6
7
  change: (value: number) => void | Promise<void>;
7
8
  };
8
- type SliderMode = 'writeThrough' | 'writeBack';
9
9
  type InternalProps = {
10
10
  min: number;
11
11
  max: number;
12
12
  step: number;
13
- value: number | null;
14
- mode: SliderMode;
13
+ value?: number;
14
+ defaultValue?: number;
15
15
  };
16
16
  type RequiredProps = 'value';
17
17
  type Props = Pick<InternalProps, RequiredProps> & Partial<Omit<InternalProps, RequiredProps>>;
18
18
  declare class SliderButton extends Base<InternalProps> implements Listenable<Events> {
19
19
  /** @hidden */
20
20
  private readonly events;
21
+ /**
22
+ * Manually manage the state of the slider,
23
+ * to support both controlled and uncontrolled inputs.
24
+ */
25
+ private _value;
21
26
  constructor(props?: Props);
22
27
  addListener: <T extends "change">(type: T, listener: Events[T]) => void;
23
28
  removeListener: <T extends "change">(type: T, listener: Events[T]) => void;
@@ -27,6 +32,7 @@ declare class SliderButton extends Base<InternalProps> implements Listenable<Eve
27
32
  handleMessage(message: proto.ClientComponentMessage): void;
28
33
  setValue(value: number): void;
29
34
  private sanitizeNumber;
35
+ private onPropsUpdated;
30
36
  }
31
37
 
32
- export { type Events, type Props, SliderButton, type SliderMode };
38
+ export { type Events, type Props, SliderButton };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkT2PJEXYOjs = require('../../chunk-T2PJEXYO.js');
4
- require('../../chunk-UBWCVW2U.js');
3
+ var _chunkG7GFSIHYjs = require('../../chunk-G7GFSIHY.js');
4
+ require('../../chunk-CFO5PSSK.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.SliderButton = _chunkT2PJEXYOjs.SliderButton;
8
+ exports.SliderButton = _chunkG7GFSIHYjs.SliderButton;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SliderButton
3
- } from "../../chunk-JW4GXS54.mjs";
4
- import "../../chunk-ZCHM3JJJ.mjs";
3
+ } from "../../chunk-A2STBGBE.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  SliderButton
@@ -1,17 +1,24 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.mjs';
3
3
  import { Base, Listenable } from './base.mjs';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type Events = {
6
7
  change: (state: 'on' | 'off') => void | Promise<void>;
7
8
  };
8
9
  type InternalProps = {
9
- state: 'on' | 'off';
10
+ value?: 'on' | 'off';
11
+ defaultValue?: 'on' | 'off';
10
12
  };
11
13
  type Props = Partial<InternalProps>;
12
14
  declare class Switch extends Base<InternalProps> implements Listenable<Events> {
13
15
  /** @hidden */
14
16
  private readonly events;
17
+ /**
18
+ * Manually manage the state of the switch,
19
+ * to support both controlled and uncontrolled inputs.
20
+ */
21
+ private _value;
15
22
  constructor(props?: Props);
16
23
  addListener: <T extends "change">(type: T, listener: Events[T]) => void;
17
24
  removeListener: <T extends "change">(type: T, listener: Events[T]) => void;
@@ -20,6 +27,7 @@ declare class Switch extends Base<InternalProps> implements Listenable<Events> {
20
27
  /** @hidden */
21
28
  handleMessage(message: proto.ClientComponentMessage): void;
22
29
  setValue(state: 'on' | 'off'): void;
30
+ private onPropsUpdated;
23
31
  }
24
32
 
25
33
  export { type Events, type Props, Switch };
@@ -1,17 +1,24 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.js';
3
3
  import { Base, Listenable } from './base.js';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type Events = {
6
7
  change: (state: 'on' | 'off') => void | Promise<void>;
7
8
  };
8
9
  type InternalProps = {
9
- state: 'on' | 'off';
10
+ value?: 'on' | 'off';
11
+ defaultValue?: 'on' | 'off';
10
12
  };
11
13
  type Props = Partial<InternalProps>;
12
14
  declare class Switch extends Base<InternalProps> implements Listenable<Events> {
13
15
  /** @hidden */
14
16
  private readonly events;
17
+ /**
18
+ * Manually manage the state of the switch,
19
+ * to support both controlled and uncontrolled inputs.
20
+ */
21
+ private _value;
15
22
  constructor(props?: Props);
16
23
  addListener: <T extends "change">(type: T, listener: Events[T]) => void;
17
24
  removeListener: <T extends "change">(type: T, listener: Events[T]) => void;
@@ -20,6 +27,7 @@ declare class Switch extends Base<InternalProps> implements Listenable<Events> {
20
27
  /** @hidden */
21
28
  handleMessage(message: proto.ClientComponentMessage): void;
22
29
  setValue(state: 'on' | 'off'): void;
30
+ private onPropsUpdated;
23
31
  }
24
32
 
25
33
  export { type Events, type Props, Switch };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkM6EFK4GPjs = require('../../chunk-M6EFK4GP.js');
4
- require('../../chunk-UBWCVW2U.js');
3
+ var _chunkQ5TEM6MMjs = require('../../chunk-Q5TEM6MM.js');
4
+ require('../../chunk-CFO5PSSK.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Switch = _chunkM6EFK4GPjs.Switch;
8
+ exports.Switch = _chunkQ5TEM6MMjs.Switch;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Switch
3
- } from "../../chunk-APCR3ITH.mjs";
4
- import "../../chunk-ZCHM3JJJ.mjs";
3
+ } from "../../chunk-Q3NG5UUN.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Switch
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.mjs';
3
3
  import { BaseParent, Component } from './base.mjs';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type TabDefinition = {
6
7
  name: string;
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.js';
3
3
  import { BaseParent, Component } from './base.js';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type TabDefinition = {
6
7
  name: string;
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkRJS32OOAjs = require('../../chunk-RJS32OOA.js');
5
- require('../../chunk-UBWCVW2U.js');
4
+ var _chunkC2TVGO43js = require('../../chunk-C2TVGO43.js');
5
+ require('../../chunk-CFO5PSSK.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
- exports.Tab = _chunkRJS32OOAjs.Tab; exports.Tabs = _chunkRJS32OOAjs.Tabs;
10
+ exports.Tab = _chunkC2TVGO43js.Tab; exports.Tabs = _chunkC2TVGO43js.Tabs;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Tab,
3
3
  Tabs
4
- } from "../../chunk-TQ27Y7F4.mjs";
5
- import "../../chunk-ZCHM3JJJ.mjs";
4
+ } from "../../chunk-H734NV65.mjs";
5
+ import "../../chunk-PW7QVLLF.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Tab,
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.mjs';
3
3
  import { Base, Listenable } from './base.mjs';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type Events = {
6
7
  change: (value: string) => void | Promise<void>;
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.js';
3
3
  import { Base, Listenable } from './base.js';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type Events = {
6
7
  change: (value: string) => void | Promise<void>;
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMDFDWKGWjs = require('../../chunk-MDFDWKGW.js');
4
- require('../../chunk-UBWCVW2U.js');
3
+ var _chunkDONU33U4js = require('../../chunk-DONU33U4.js');
4
+ require('../../chunk-CFO5PSSK.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.TextInput = _chunkMDFDWKGWjs.TextInput;
8
+ exports.TextInput = _chunkDONU33U4js.TextInput;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TextInput
3
- } from "../../chunk-IXTM35YM.mjs";
4
- import "../../chunk-ZCHM3JJJ.mjs";
3
+ } from "../../chunk-KR6LSBBX.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  TextInput
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.mjs';
3
3
  import { Base } from './base.mjs';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type InternalProps = {
6
7
  state: proto.TimelineState;
@@ -1,6 +1,7 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { IDMap } from '../util/index.js';
3
3
  import { Base } from './base.js';
4
+ import '@arcanejs/protocol/logging';
4
5
 
5
6
  type InternalProps = {
6
7
  state: proto.TimelineState;
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOEIGZ3NQjs = require('../../chunk-OEIGZ3NQ.js');
4
- require('../../chunk-UBWCVW2U.js');
3
+ var _chunkFUINWM5Hjs = require('../../chunk-FUINWM5H.js');
4
+ require('../../chunk-CFO5PSSK.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Timeline = _chunkOEIGZ3NQjs.Timeline;
8
+ exports.Timeline = _chunkFUINWM5Hjs.Timeline;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Timeline
3
- } from "../../chunk-SOC4TF3J.mjs";
4
- import "../../chunk-ZCHM3JJJ.mjs";
3
+ } from "../../chunk-DBSYI5Z4.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Timeline
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;
2
2
 
3
3
 
4
- var _chunkUBWCVW2Ujs = require('./chunk-UBWCVW2U.js');
4
+ var _chunkCFO5PSSKjs = require('./chunk-CFO5PSSK.js');
5
5
 
6
6
  // src/backend/components/group.ts
7
7
  var GROUP_DEFAULT_STYLE = {
@@ -12,7 +12,7 @@ var DEFAULT_PROPS = {
12
12
  title: null,
13
13
  labels: null
14
14
  };
15
- var GroupHeader = (_class = class extends _chunkUBWCVW2Ujs.BaseParent {constructor(...args) { super(...args); _class.prototype.__init.call(this);_class.prototype.__init2.call(this); }
15
+ var GroupHeader = (_class = class extends _chunkCFO5PSSKjs.BaseParent {constructor(...args) { super(...args); _class.prototype.__init.call(this);_class.prototype.__init2.call(this); }
16
16
  __init() {this.validateChildren = () => {
17
17
  }}
18
18
  /** @hidden */
@@ -22,9 +22,9 @@ var GroupHeader = (_class = class extends _chunkUBWCVW2Ujs.BaseParent {construct
22
22
  children: this.getChildren().map((c) => c.getProtoInfo(idMap))
23
23
  })}
24
24
  }, _class);
25
- var Group = (_class2 = class extends _chunkUBWCVW2Ujs.BaseParent {
25
+ var Group = (_class2 = class extends _chunkCFO5PSSKjs.BaseParent {
26
26
  /** @hidden */
27
- __init3() {this.events = new (0, _chunkUBWCVW2Ujs.EventEmitter)()}
27
+ __init3() {this.events = new (0, _chunkCFO5PSSKjs.EventEmitter)()}
28
28
  constructor(props) {
29
29
  super(DEFAULT_PROPS, props);_class2.prototype.__init3.call(this);_class2.prototype.__init4.call(this);_class2.prototype.__init5.call(this);_class2.prototype.__init6.call(this);_class2.prototype.__init7.call(this);_class2.prototype.__init8.call(this);_class2.prototype.__init9.call(this);_class2.prototype.__init10.call(this);_class2.prototype.__init11.call(this);_class2.prototype.__init12.call(this);_class2.prototype.__init13.call(this);_class2.prototype.__init14.call(this);_class2.prototype.__init15.call(this);;
30
30
  }