@arcanejs/toolkit 0.3.0 → 0.5.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 (76) hide show
  1. package/dist/backend/components/base.d.mts +6 -2
  2. package/dist/backend/components/base.d.ts +6 -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 -1
  6. package/dist/backend/components/button.d.ts +1 -1
  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 -1
  10. package/dist/backend/components/group.d.ts +1 -1
  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 -1
  14. package/dist/backend/components/label.d.ts +1 -1
  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 +2 -4
  18. package/dist/backend/components/rect.d.ts +2 -4
  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 +11 -9
  22. package/dist/backend/components/slider-button.d.ts +11 -9
  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 -2
  26. package/dist/backend/components/switch.d.ts +9 -2
  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 -1
  30. package/dist/backend/components/tabs.d.ts +1 -1
  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 -1
  34. package/dist/backend/components/text-input.d.ts +1 -1
  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 -1
  38. package/dist/backend/components/timeline.d.ts +1 -1
  39. package/dist/backend/components/timeline.js +3 -3
  40. package/dist/backend/components/timeline.mjs +2 -2
  41. package/dist/backend/util/index.d.mts +8 -6
  42. package/dist/backend/util/index.d.ts +8 -6
  43. package/dist/backend/util/index.js +13 -1
  44. package/dist/backend/util/index.mjs +12 -0
  45. package/dist/{chunk-QUA3NBLD.js → chunk-4HHKW7VA.js} +4 -4
  46. package/dist/{chunk-J46AJUGE.js → chunk-4X3QY5EP.js} +3 -3
  47. package/dist/chunk-53DEDXHG.js +78 -0
  48. package/dist/{chunk-WXSKMMCV.js → chunk-C2TVGO43.js} +3 -3
  49. package/dist/{chunk-NZUYU32Z.js → chunk-CFO5PSSK.js} +25 -20
  50. package/dist/{chunk-POUQGJN4.mjs → chunk-DBSYI5Z4.mjs} +1 -1
  51. package/dist/{chunk-IW3JCC73.js → chunk-DONU33U4.js} +3 -3
  52. package/dist/{chunk-SMTUN6HG.mjs → chunk-ESMRIWOM.mjs} +2 -2
  53. package/dist/{chunk-TSC5C5XR.js → chunk-FLRGYURV.js} +2 -2
  54. package/dist/{chunk-DV5WTSFW.js → chunk-FUINWM5H.js} +2 -2
  55. package/dist/{chunk-EH73E5FP.mjs → chunk-G5QXW2L3.mjs} +1 -1
  56. package/dist/{chunk-YIXRQHTA.mjs → chunk-H734NV65.mjs} +1 -1
  57. package/dist/{chunk-WIPEQNWR.js → chunk-IQ4SDDYP.js} +3 -3
  58. package/dist/{chunk-7ITSSJE2.mjs → chunk-JOW3XRQI.mjs} +1 -1
  59. package/dist/{chunk-3Y3HRYLC.mjs → chunk-KBPQZJKE.mjs} +1 -1
  60. package/dist/{chunk-NKNDCRUR.mjs → chunk-KR6LSBBX.mjs} +1 -1
  61. package/dist/{chunk-EDTJ75FT.mjs → chunk-PW7QVLLF.mjs} +6 -1
  62. package/dist/chunk-Q3NG5UUN.mjs +61 -0
  63. package/dist/chunk-Q5TEM6MM.js +61 -0
  64. package/dist/{chunk-H2UQDFTS.mjs → chunk-SN2XKRYX.mjs} +30 -11
  65. package/dist/frontend.js +146 -69
  66. package/dist/frontend.js.map +4 -4
  67. package/dist/id-map-DxQ3_gyA.d.mts +7 -0
  68. package/dist/id-map-DxQ3_gyA.d.ts +7 -0
  69. package/dist/index.d.mts +1 -1
  70. package/dist/index.d.ts +1 -1
  71. package/dist/index.js +11 -11
  72. package/dist/index.mjs +10 -10
  73. package/package.json +7 -5
  74. package/dist/chunk-DNCHAOYH.js +0 -42
  75. package/dist/chunk-YN3FZMXY.js +0 -59
  76. package/dist/chunk-YYM7PBRN.mjs +0 -42
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.mjs';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
3
  import { Logger } from '@arcanejs/protocol/logging';
4
4
 
5
5
  interface Component {
@@ -15,7 +15,11 @@ declare abstract class Base<Props> implements Component {
15
15
  private readonly defaultProps;
16
16
  /** @hidden */
17
17
  private _props;
18
- constructor(defaultProps: Props, props?: Partial<Props>);
18
+ /** @hidden */
19
+ private _onPropsUpdated;
20
+ constructor(defaultProps: Props, props?: Partial<Props>, options?: {
21
+ onPropsUpdated?: () => void;
22
+ });
19
23
  log: () => Logger | null;
20
24
  get props(): Props;
21
25
  set props(props: Partial<Props>);
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.js';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
3
  import { Logger } from '@arcanejs/protocol/logging';
4
4
 
5
5
  interface Component {
@@ -15,7 +15,11 @@ declare abstract class Base<Props> implements Component {
15
15
  private readonly defaultProps;
16
16
  /** @hidden */
17
17
  private _props;
18
- constructor(defaultProps: Props, props?: Partial<Props>);
18
+ /** @hidden */
19
+ private _onPropsUpdated;
20
+ constructor(defaultProps: Props, props?: Partial<Props>, options?: {
21
+ onPropsUpdated?: () => void;
22
+ });
19
23
  log: () => Logger | null;
20
24
  get props(): Props;
21
25
  set props(props: Partial<Props>);
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkNZUYU32Zjs = require('../../chunk-NZUYU32Z.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 = _chunkNZUYU32Zjs.Base; exports.BaseParent = _chunkNZUYU32Zjs.BaseParent; exports.EventEmitter = _chunkNZUYU32Zjs.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-EDTJ75FT.mjs";
5
+ } from "../../chunk-PW7QVLLF.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Base,
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.mjs';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
3
  import { Base, Listenable } from './base.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.js';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
3
  import { Base, Listenable } from './base.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJ46AJUGEjs = require('../../chunk-J46AJUGE.js');
4
- require('../../chunk-NZUYU32Z.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 = _chunkJ46AJUGEjs.Button;
8
+ exports.Button = _chunk4X3QY5EPjs.Button;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Button
3
- } from "../../chunk-EH73E5FP.mjs";
4
- import "../../chunk-EDTJ75FT.mjs";
3
+ } from "../../chunk-G5QXW2L3.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Button
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { GroupComponentStyle } from '@arcanejs/protocol/styles';
3
- import { IDMap } from '../util/index.mjs';
3
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
4
4
  import { BaseParent, Listenable } from './base.mjs';
5
5
  import { Button } from './button.mjs';
6
6
  import '@arcanejs/protocol/logging';
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { GroupComponentStyle } from '@arcanejs/protocol/styles';
3
- import { IDMap } from '../util/index.js';
3
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
4
4
  import { BaseParent, Listenable } from './base.js';
5
5
  import { Button } from './button.js';
6
6
  import '@arcanejs/protocol/logging';
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkQUA3NBLDjs = require('../../chunk-QUA3NBLD.js');
5
- require('../../chunk-NZUYU32Z.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 = _chunkQUA3NBLDjs.Group; exports.GroupHeader = _chunkQUA3NBLDjs.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-3Y3HRYLC.mjs";
5
- import "../../chunk-EDTJ75FT.mjs";
4
+ } from "../../chunk-KBPQZJKE.mjs";
5
+ import "../../chunk-PW7QVLLF.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Group,
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { LabelComponentStyle } from '@arcanejs/protocol/styles';
3
- import { IDMap } from '../util/index.mjs';
3
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
4
4
  import { Base } from './base.mjs';
5
5
  import '@arcanejs/protocol/logging';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
2
  import { LabelComponentStyle } from '@arcanejs/protocol/styles';
3
- import { IDMap } from '../util/index.js';
3
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
4
4
  import { Base } from './base.js';
5
5
  import '@arcanejs/protocol/logging';
6
6
 
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTSC5C5XRjs = require('../../chunk-TSC5C5XR.js');
4
- require('../../chunk-NZUYU32Z.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 = _chunkTSC5C5XRjs.Label;
8
+ exports.Label = _chunkFLRGYURVjs.Label;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Label
3
- } from "../../chunk-7ITSSJE2.mjs";
4
- import "../../chunk-EDTJ75FT.mjs";
3
+ } from "../../chunk-JOW3XRQI.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Label
@@ -1,11 +1,9 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.mjs';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
3
  import { Base } from './base.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
6
- type InternalProps = {
7
- color: string;
8
- };
6
+ type InternalProps = Pick<proto.RectComponent, 'color' | 'grow'>;
9
7
  type Props = Partial<InternalProps>;
10
8
  /**
11
9
  * A simple rectangle component. Could be used for example to indicate
@@ -1,11 +1,9 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.js';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
3
  import { Base } from './base.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
6
- type InternalProps = {
7
- color: string;
8
- };
6
+ type InternalProps = Pick<proto.RectComponent, 'color' | 'grow'>;
9
7
  type Props = Partial<InternalProps>;
10
8
  /**
11
9
  * A simple rectangle component. Could be used for example to indicate
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkWIPEQNWRjs = require('../../chunk-WIPEQNWR.js');
4
- require('../../chunk-NZUYU32Z.js');
3
+ var _chunkIQ4SDDYPjs = require('../../chunk-IQ4SDDYP.js');
4
+ require('../../chunk-CFO5PSSK.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Rect = _chunkWIPEQNWRjs.Rect;
8
+ exports.Rect = _chunkIQ4SDDYPjs.Rect;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Rect
3
- } from "../../chunk-SMTUN6HG.mjs";
4
- import "../../chunk-EDTJ75FT.mjs";
3
+ } from "../../chunk-ESMRIWOM.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Rect
@@ -1,24 +1,25 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.mjs';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
3
  import { Base, Listenable } from './base.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
6
6
  type Events = {
7
7
  change: (value: number) => void | Promise<void>;
8
8
  };
9
- type SliderMode = 'writeThrough' | 'writeBack';
10
- type InternalProps = {
11
- min: number;
12
- max: number;
13
- step: number;
14
- value: number | null;
15
- mode: SliderMode;
9
+ type InternalProps = Pick<proto.SliderButtonComponent, 'min' | 'max' | 'step' | 'gradient' | 'grow'> & {
10
+ value?: number;
11
+ defaultValue?: number;
16
12
  };
17
13
  type RequiredProps = 'value';
18
14
  type Props = Pick<InternalProps, RequiredProps> & Partial<Omit<InternalProps, RequiredProps>>;
19
15
  declare class SliderButton extends Base<InternalProps> implements Listenable<Events> {
20
16
  /** @hidden */
21
17
  private readonly events;
18
+ /**
19
+ * Manually manage the state of the slider,
20
+ * to support both controlled and uncontrolled inputs.
21
+ */
22
+ private _value;
22
23
  constructor(props?: Props);
23
24
  addListener: <T extends "change">(type: T, listener: Events[T]) => void;
24
25
  removeListener: <T extends "change">(type: T, listener: Events[T]) => void;
@@ -28,6 +29,7 @@ declare class SliderButton extends Base<InternalProps> implements Listenable<Eve
28
29
  handleMessage(message: proto.ClientComponentMessage): void;
29
30
  setValue(value: number): void;
30
31
  private sanitizeNumber;
32
+ private onPropsUpdated;
31
33
  }
32
34
 
33
- export { type Events, type Props, SliderButton, type SliderMode };
35
+ export { type Events, type Props, SliderButton };
@@ -1,24 +1,25 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.js';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
3
  import { Base, Listenable } from './base.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
6
6
  type Events = {
7
7
  change: (value: number) => void | Promise<void>;
8
8
  };
9
- type SliderMode = 'writeThrough' | 'writeBack';
10
- type InternalProps = {
11
- min: number;
12
- max: number;
13
- step: number;
14
- value: number | null;
15
- mode: SliderMode;
9
+ type InternalProps = Pick<proto.SliderButtonComponent, 'min' | 'max' | 'step' | 'gradient' | 'grow'> & {
10
+ value?: number;
11
+ defaultValue?: number;
16
12
  };
17
13
  type RequiredProps = 'value';
18
14
  type Props = Pick<InternalProps, RequiredProps> & Partial<Omit<InternalProps, RequiredProps>>;
19
15
  declare class SliderButton extends Base<InternalProps> implements Listenable<Events> {
20
16
  /** @hidden */
21
17
  private readonly events;
18
+ /**
19
+ * Manually manage the state of the slider,
20
+ * to support both controlled and uncontrolled inputs.
21
+ */
22
+ private _value;
22
23
  constructor(props?: Props);
23
24
  addListener: <T extends "change">(type: T, listener: Events[T]) => void;
24
25
  removeListener: <T extends "change">(type: T, listener: Events[T]) => void;
@@ -28,6 +29,7 @@ declare class SliderButton extends Base<InternalProps> implements Listenable<Eve
28
29
  handleMessage(message: proto.ClientComponentMessage): void;
29
30
  setValue(value: number): void;
30
31
  private sanitizeNumber;
32
+ private onPropsUpdated;
31
33
  }
32
34
 
33
- export { type Events, type Props, SliderButton, type SliderMode };
35
+ export { type Events, type Props, SliderButton };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYN3FZMXYjs = require('../../chunk-YN3FZMXY.js');
4
- require('../../chunk-NZUYU32Z.js');
3
+ var _chunk53DEDXHGjs = require('../../chunk-53DEDXHG.js');
4
+ require('../../chunk-CFO5PSSK.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.SliderButton = _chunkYN3FZMXYjs.SliderButton;
8
+ exports.SliderButton = _chunk53DEDXHGjs.SliderButton;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SliderButton
3
- } from "../../chunk-H2UQDFTS.mjs";
4
- import "../../chunk-EDTJ75FT.mjs";
3
+ } from "../../chunk-SN2XKRYX.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  SliderButton
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.mjs';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
3
  import { Base, Listenable } from './base.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -7,12 +7,18 @@ type Events = {
7
7
  change: (state: 'on' | 'off') => void | Promise<void>;
8
8
  };
9
9
  type InternalProps = {
10
- state: 'on' | 'off';
10
+ value?: 'on' | 'off';
11
+ defaultValue?: 'on' | 'off';
11
12
  };
12
13
  type Props = Partial<InternalProps>;
13
14
  declare class Switch extends Base<InternalProps> implements Listenable<Events> {
14
15
  /** @hidden */
15
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;
16
22
  constructor(props?: Props);
17
23
  addListener: <T extends "change">(type: T, listener: Events[T]) => void;
18
24
  removeListener: <T extends "change">(type: T, listener: Events[T]) => void;
@@ -21,6 +27,7 @@ declare class Switch extends Base<InternalProps> implements Listenable<Events> {
21
27
  /** @hidden */
22
28
  handleMessage(message: proto.ClientComponentMessage): void;
23
29
  setValue(state: 'on' | 'off'): void;
30
+ private onPropsUpdated;
24
31
  }
25
32
 
26
33
  export { type Events, type Props, Switch };
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.js';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
3
  import { Base, Listenable } from './base.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -7,12 +7,18 @@ type Events = {
7
7
  change: (state: 'on' | 'off') => void | Promise<void>;
8
8
  };
9
9
  type InternalProps = {
10
- state: 'on' | 'off';
10
+ value?: 'on' | 'off';
11
+ defaultValue?: 'on' | 'off';
11
12
  };
12
13
  type Props = Partial<InternalProps>;
13
14
  declare class Switch extends Base<InternalProps> implements Listenable<Events> {
14
15
  /** @hidden */
15
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;
16
22
  constructor(props?: Props);
17
23
  addListener: <T extends "change">(type: T, listener: Events[T]) => void;
18
24
  removeListener: <T extends "change">(type: T, listener: Events[T]) => void;
@@ -21,6 +27,7 @@ declare class Switch extends Base<InternalProps> implements Listenable<Events> {
21
27
  /** @hidden */
22
28
  handleMessage(message: proto.ClientComponentMessage): void;
23
29
  setValue(state: 'on' | 'off'): void;
30
+ private onPropsUpdated;
24
31
  }
25
32
 
26
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 _chunkDNCHAOYHjs = require('../../chunk-DNCHAOYH.js');
4
- require('../../chunk-NZUYU32Z.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 = _chunkDNCHAOYHjs.Switch;
8
+ exports.Switch = _chunkQ5TEM6MMjs.Switch;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Switch
3
- } from "../../chunk-YYM7PBRN.mjs";
4
- import "../../chunk-EDTJ75FT.mjs";
3
+ } from "../../chunk-Q3NG5UUN.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Switch
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.mjs';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
3
  import { BaseParent, Component } from './base.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.js';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
3
  import { BaseParent, Component } from './base.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkWXSKMMCVjs = require('../../chunk-WXSKMMCV.js');
5
- require('../../chunk-NZUYU32Z.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 = _chunkWXSKMMCVjs.Tab; exports.Tabs = _chunkWXSKMMCVjs.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-YIXRQHTA.mjs";
5
- import "../../chunk-EDTJ75FT.mjs";
4
+ } from "../../chunk-H734NV65.mjs";
5
+ import "../../chunk-PW7QVLLF.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Tab,
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.mjs';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
3
  import { Base, Listenable } from './base.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.js';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
3
  import { Base, Listenable } from './base.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkIW3JCC73js = require('../../chunk-IW3JCC73.js');
4
- require('../../chunk-NZUYU32Z.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 = _chunkIW3JCC73js.TextInput;
8
+ exports.TextInput = _chunkDONU33U4js.TextInput;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TextInput
3
- } from "../../chunk-NKNDCRUR.mjs";
4
- import "../../chunk-EDTJ75FT.mjs";
3
+ } from "../../chunk-KR6LSBBX.mjs";
4
+ import "../../chunk-PW7QVLLF.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  TextInput
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.mjs';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
3
  import { Base } from './base.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as proto from '@arcanejs/protocol';
2
- import { IDMap } from '../util/index.js';
2
+ import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
3
  import { Base } from './base.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
 
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkDV5WTSFWjs = require('../../chunk-DV5WTSFW.js');
4
- require('../../chunk-NZUYU32Z.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 = _chunkDV5WTSFWjs.Timeline;
8
+ exports.Timeline = _chunkFUINWM5Hjs.Timeline;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Timeline
3
- } from "../../chunk-POUQGJN4.mjs";
4
- import "../../chunk-EDTJ75FT.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,9 @@
1
- declare class IDMap {
2
- private readonly idMap;
3
- private nextId;
4
- getId(object: object): number;
5
- }
1
+ export { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
2
+ import { Gradient } from '@arcanejs/protocol';
6
3
 
7
- export { IDMap };
4
+ /**
5
+ * Rainbow gradient used for hue slider values.
6
+ */
7
+ declare const HUE_GRADIENT: Gradient;
8
+
9
+ export { HUE_GRADIENT };
@@ -1,7 +1,9 @@
1
- declare class IDMap {
2
- private readonly idMap;
3
- private nextId;
4
- getId(object: object): number;
5
- }
1
+ export { I as IDMap } from '../../id-map-DxQ3_gyA.js';
2
+ import { Gradient } from '@arcanejs/protocol';
6
3
 
7
- export { IDMap };
4
+ /**
5
+ * Rainbow gradient used for hue slider values.
6
+ */
7
+ declare const HUE_GRADIENT: Gradient;
8
+
9
+ export { HUE_GRADIENT };
@@ -3,5 +3,17 @@
3
3
  var _chunkEABM5X65js = require('../../chunk-EABM5X65.js');
4
4
  require('../../chunk-3RG5ZIWI.js');
5
5
 
6
+ // src/backend/util/color.ts
7
+ var HUE_GRADIENT = [
8
+ { color: "red", position: 0 },
9
+ { color: "yellow", position: 60 / 360 },
10
+ { color: "green", position: 120 / 360 },
11
+ { color: "cyan", position: 180 / 360 },
12
+ { color: "blue", position: 240 / 360 },
13
+ { color: "magenta", position: 300 / 360 },
14
+ { color: "red", position: 1 }
15
+ ];
6
16
 
7
- exports.IDMap = _chunkEABM5X65js.IDMap;
17
+
18
+
19
+ exports.HUE_GRADIENT = HUE_GRADIENT; exports.IDMap = _chunkEABM5X65js.IDMap;