@arcanejs/toolkit 4.0.0 → 4.1.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 (67) hide show
  1. package/dist/backend/components/base.d.mts +1 -1
  2. package/dist/backend/components/base.d.ts +1 -1
  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 +1 -1
  18. package/dist/backend/components/rect.d.ts +1 -1
  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 +1 -1
  22. package/dist/backend/components/slider-button.d.ts +1 -1
  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 +1 -1
  26. package/dist/backend/components/switch.d.ts +1 -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 -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/{chunk-Z3HEU534.js → chunk-3GTEUTFT.js} +2 -2
  42. package/dist/{chunk-YN7LHBRI.mjs → chunk-3TXBS2UN.mjs} +1 -1
  43. package/dist/{chunk-ZWYJEKZP.js → chunk-4OCRZD4F.js} +3 -3
  44. package/dist/{chunk-3VAHVFJ3.js → chunk-53EOA4UE.js} +3 -3
  45. package/dist/{chunk-XMP5XJWR.mjs → chunk-6ELB27LK.mjs} +1 -1
  46. package/dist/{chunk-VXNNW2KH.js → chunk-6QWYIJLM.js} +2 -2
  47. package/dist/{chunk-QT43ONN5.js → chunk-7JIC2XBC.js} +4 -4
  48. package/dist/{chunk-PIVARHCZ.mjs → chunk-E6FGU7DA.mjs} +1 -1
  49. package/dist/{chunk-JKTEVA75.mjs → chunk-GONHNB6V.mjs} +14 -0
  50. package/dist/{chunk-4EOCJT6W.js → chunk-HTCWMJUA.js} +3 -3
  51. package/dist/{chunk-MMK3PCSS.mjs → chunk-KMEDXCBI.mjs} +1 -1
  52. package/dist/{chunk-6BVEU2NV.mjs → chunk-LK6MGXYC.mjs} +1 -1
  53. package/dist/{chunk-6KPK5YOL.js → chunk-NL3W4M7J.js} +3 -3
  54. package/dist/{chunk-GIXAFIEY.mjs → chunk-PG5EAV5X.mjs} +1 -1
  55. package/dist/{chunk-JSZMJCCH.js → chunk-QAH2OSHR.js} +2 -2
  56. package/dist/{chunk-PYJC5BFZ.mjs → chunk-QB2WPBWV.mjs} +1 -1
  57. package/dist/{chunk-LGIWNJQA.js → chunk-U6FSQBQ3.js} +3 -3
  58. package/dist/{chunk-XYFDH3E7.mjs → chunk-UQWCTVMC.mjs} +1 -1
  59. package/dist/{chunk-VJ3Q2HZJ.mjs → chunk-WDB3IMOP.mjs} +1 -1
  60. package/dist/{chunk-HTM2L3DT.js → chunk-WN3GXVUE.js} +16 -2
  61. package/dist/index.d.mts +1 -1
  62. package/dist/index.d.ts +1 -1
  63. package/dist/index.js +12 -12
  64. package/dist/index.mjs +10 -10
  65. package/dist/{toolkit-BjYBFkG8.d.ts → toolkit-C37sQAkD.d.ts} +6 -1
  66. package/dist/{toolkit-k-CCIw3V.d.mts → toolkit-CQMnQMOF.d.mts} +6 -1
  67. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import '@arcanejs/protocol';
2
2
  import '../../id-map-DxQ3_gyA.mjs';
3
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-k-CCIw3V.mjs';
4
+ export { A as AnyComponent, d as Base, e as BaseParent, E as EventEmitter, L as Listenable, P as Parent } from '../../toolkit-CQMnQMOF.mjs';
5
5
  import 'lodash';
6
6
  import 'http';
7
7
  import 'express';
@@ -1,7 +1,7 @@
1
1
  import '@arcanejs/protocol';
2
2
  import '../../id-map-DxQ3_gyA.js';
3
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-BjYBFkG8.js';
4
+ export { A as AnyComponent, d as Base, e as BaseParent, E as EventEmitter, L as Listenable, P as Parent } from '../../toolkit-C37sQAkD.js';
5
5
  import 'lodash';
6
6
  import 'http';
7
7
  import 'express';
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkHTM2L3DTjs = require('../../chunk-HTM2L3DT.js');
5
+ var _chunkWN3GXVUEjs = require('../../chunk-WN3GXVUE.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.Base = _chunkHTM2L3DTjs.Base; exports.BaseParent = _chunkHTM2L3DTjs.BaseParent; exports.EventEmitter = _chunkHTM2L3DTjs.EventEmitter;
11
+ exports.Base = _chunkWN3GXVUEjs.Base; exports.BaseParent = _chunkWN3GXVUEjs.BaseParent; exports.EventEmitter = _chunkWN3GXVUEjs.EventEmitter;
@@ -2,7 +2,7 @@ import {
2
2
  Base,
3
3
  BaseParent,
4
4
  EventEmitter
5
- } from "../../chunk-JKTEVA75.mjs";
5
+ } from "../../chunk-GONHNB6V.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Base,
@@ -1,6 +1,6 @@
1
1
  import '@arcanejs/protocol/core';
2
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-k-CCIw3V.mjs';
3
+ export { B as Button, g as ButtonMode, f as Events, I as InternalProps, h as Props } from '../../toolkit-CQMnQMOF.mjs';
4
4
  import '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
@@ -1,6 +1,6 @@
1
1
  import '@arcanejs/protocol/core';
2
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-BjYBFkG8.js';
3
+ export { B as Button, g as ButtonMode, f as Events, I as InternalProps, h as Props } from '../../toolkit-C37sQAkD.js';
4
4
  import '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZWYJEKZPjs = require('../../chunk-ZWYJEKZP.js');
4
- require('../../chunk-HTM2L3DT.js');
3
+ var _chunk4OCRZD4Fjs = require('../../chunk-4OCRZD4F.js');
4
+ require('../../chunk-WN3GXVUE.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Button = _chunkZWYJEKZPjs.Button;
8
+ exports.Button = _chunk4OCRZD4Fjs.Button;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Button
3
- } from "../../chunk-6BVEU2NV.mjs";
4
- import "../../chunk-JKTEVA75.mjs";
3
+ } from "../../chunk-LK6MGXYC.mjs";
4
+ import "../../chunk-GONHNB6V.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Button
@@ -1,7 +1,7 @@
1
1
  import '@arcanejs/protocol/core';
2
2
  import '@arcanejs/protocol/styles';
3
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-k-CCIw3V.mjs';
4
+ export { i as Events, G as Group, c as GroupHeader, j as InternalProps, k as Props } from '../../toolkit-CQMnQMOF.mjs';
5
5
  import '@arcanejs/protocol';
6
6
  import '@arcanejs/protocol/logging';
7
7
  import 'lodash';
@@ -1,7 +1,7 @@
1
1
  import '@arcanejs/protocol/core';
2
2
  import '@arcanejs/protocol/styles';
3
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-BjYBFkG8.js';
4
+ export { i as Events, G as Group, c as GroupHeader, j as InternalProps, k as Props } from '../../toolkit-C37sQAkD.js';
5
5
  import '@arcanejs/protocol';
6
6
  import '@arcanejs/protocol/logging';
7
7
  import 'lodash';
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkQT43ONN5js = require('../../chunk-QT43ONN5.js');
5
- require('../../chunk-HTM2L3DT.js');
4
+ var _chunk7JIC2XBCjs = require('../../chunk-7JIC2XBC.js');
5
+ require('../../chunk-WN3GXVUE.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
- exports.Group = _chunkQT43ONN5js.Group; exports.GroupHeader = _chunkQT43ONN5js.GroupHeader;
10
+ exports.Group = _chunk7JIC2XBCjs.Group; exports.GroupHeader = _chunk7JIC2XBCjs.GroupHeader;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Group,
3
3
  GroupHeader
4
- } from "../../chunk-PIVARHCZ.mjs";
5
- import "../../chunk-JKTEVA75.mjs";
4
+ } from "../../chunk-E6FGU7DA.mjs";
5
+ import "../../chunk-GONHNB6V.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Group,
@@ -1,7 +1,7 @@
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 { d as Base } from '../../toolkit-k-CCIw3V.mjs';
4
+ import { d as Base } from '../../toolkit-CQMnQMOF.mjs';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
7
7
  import 'http';
@@ -1,7 +1,7 @@
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 { d as Base } from '../../toolkit-BjYBFkG8.js';
4
+ import { d as Base } from '../../toolkit-C37sQAkD.js';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
7
7
  import 'http';
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkZ3HEU534js = require('../../chunk-Z3HEU534.js');
4
- require('../../chunk-HTM2L3DT.js');
3
+ var _chunk3GTEUTFTjs = require('../../chunk-3GTEUTFT.js');
4
+ require('../../chunk-WN3GXVUE.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Label = _chunkZ3HEU534js.Label;
8
+ exports.Label = _chunk3GTEUTFTjs.Label;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Label
3
- } from "../../chunk-XYFDH3E7.mjs";
4
- import "../../chunk-JKTEVA75.mjs";
3
+ } from "../../chunk-UQWCTVMC.mjs";
4
+ import "../../chunk-GONHNB6V.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Label
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { d as Base } from '../../toolkit-k-CCIw3V.mjs';
3
+ import { d as Base } from '../../toolkit-CQMnQMOF.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
  import 'lodash';
6
6
  import 'http';
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { d as Base } from '../../toolkit-BjYBFkG8.js';
3
+ import { d as Base } from '../../toolkit-C37sQAkD.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
  import 'lodash';
6
6
  import 'http';
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJSZMJCCHjs = require('../../chunk-JSZMJCCH.js');
4
- require('../../chunk-HTM2L3DT.js');
3
+ var _chunkQAH2OSHRjs = require('../../chunk-QAH2OSHR.js');
4
+ require('../../chunk-WN3GXVUE.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Rect = _chunkJSZMJCCHjs.Rect;
8
+ exports.Rect = _chunkQAH2OSHRjs.Rect;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Rect
3
- } from "../../chunk-XMP5XJWR.mjs";
4
- import "../../chunk-JKTEVA75.mjs";
3
+ } from "../../chunk-6ELB27LK.mjs";
4
+ import "../../chunk-GONHNB6V.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Rect
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-k-CCIw3V.mjs';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-CQMnQMOF.mjs';
4
4
  import { AnyClientComponentMessage } from '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-BjYBFkG8.js';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-C37sQAkD.js';
4
4
  import { AnyClientComponentMessage } from '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6KPK5YOLjs = require('../../chunk-6KPK5YOL.js');
4
- require('../../chunk-HTM2L3DT.js');
3
+ var _chunkNL3W4M7Jjs = require('../../chunk-NL3W4M7J.js');
4
+ require('../../chunk-WN3GXVUE.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.SliderButton = _chunk6KPK5YOLjs.SliderButton;
8
+ exports.SliderButton = _chunkNL3W4M7Jjs.SliderButton;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SliderButton
3
- } from "../../chunk-PYJC5BFZ.mjs";
4
- import "../../chunk-JKTEVA75.mjs";
3
+ } from "../../chunk-QB2WPBWV.mjs";
4
+ import "../../chunk-GONHNB6V.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  SliderButton
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-k-CCIw3V.mjs';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-CQMnQMOF.mjs';
4
4
  import { AnyClientComponentMessage } from '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-BjYBFkG8.js';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-C37sQAkD.js';
4
4
  import { AnyClientComponentMessage } from '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk3VAHVFJ3js = require('../../chunk-3VAHVFJ3.js');
4
- require('../../chunk-HTM2L3DT.js');
3
+ var _chunk53EOA4UEjs = require('../../chunk-53EOA4UE.js');
4
+ require('../../chunk-WN3GXVUE.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Switch = _chunk3VAHVFJ3js.Switch;
8
+ exports.Switch = _chunk53EOA4UEjs.Switch;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Switch
3
- } from "../../chunk-GIXAFIEY.mjs";
4
- import "../../chunk-JKTEVA75.mjs";
3
+ } from "../../chunk-PG5EAV5X.mjs";
4
+ import "../../chunk-GONHNB6V.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Switch
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { e as BaseParent, A as AnyComponent } from '../../toolkit-k-CCIw3V.mjs';
3
+ import { e as BaseParent, A as AnyComponent } from '../../toolkit-CQMnQMOF.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
  import 'lodash';
6
6
  import 'http';
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { e as BaseParent, A as AnyComponent } from '../../toolkit-BjYBFkG8.js';
3
+ import { e as BaseParent, A as AnyComponent } from '../../toolkit-C37sQAkD.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
  import 'lodash';
6
6
  import 'http';
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkLGIWNJQAjs = require('../../chunk-LGIWNJQA.js');
5
- require('../../chunk-HTM2L3DT.js');
4
+ var _chunkU6FSQBQ3js = require('../../chunk-U6FSQBQ3.js');
5
+ require('../../chunk-WN3GXVUE.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
- exports.Tab = _chunkLGIWNJQAjs.Tab; exports.Tabs = _chunkLGIWNJQAjs.Tabs;
10
+ exports.Tab = _chunkU6FSQBQ3js.Tab; exports.Tabs = _chunkU6FSQBQ3js.Tabs;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Tab,
3
3
  Tabs
4
- } from "../../chunk-MMK3PCSS.mjs";
5
- import "../../chunk-JKTEVA75.mjs";
4
+ } from "../../chunk-KMEDXCBI.mjs";
5
+ import "../../chunk-GONHNB6V.mjs";
6
6
  import "../../chunk-Y6FXYEAI.mjs";
7
7
  export {
8
8
  Tab,
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-k-CCIw3V.mjs';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-CQMnQMOF.mjs';
4
4
  import { AnyClientComponentMessage } from '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-BjYBFkG8.js';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-C37sQAkD.js';
4
4
  import { AnyClientComponentMessage } from '@arcanejs/protocol';
5
5
  import '@arcanejs/protocol/logging';
6
6
  import 'lodash';
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk4EOCJT6Wjs = require('../../chunk-4EOCJT6W.js');
4
- require('../../chunk-HTM2L3DT.js');
3
+ var _chunkHTCWMJUAjs = require('../../chunk-HTCWMJUA.js');
4
+ require('../../chunk-WN3GXVUE.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.TextInput = _chunk4EOCJT6Wjs.TextInput;
8
+ exports.TextInput = _chunkHTCWMJUAjs.TextInput;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TextInput
3
- } from "../../chunk-VJ3Q2HZJ.mjs";
4
- import "../../chunk-JKTEVA75.mjs";
3
+ } from "../../chunk-WDB3IMOP.mjs";
4
+ import "../../chunk-GONHNB6V.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  TextInput
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.mjs';
3
- import { d as Base } from '../../toolkit-k-CCIw3V.mjs';
3
+ import { d as Base } from '../../toolkit-CQMnQMOF.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
  import 'lodash';
6
6
  import 'http';
@@ -1,6 +1,6 @@
1
1
  import * as proto from '@arcanejs/protocol/core';
2
2
  import { I as IDMap } from '../../id-map-DxQ3_gyA.js';
3
- import { d as Base } from '../../toolkit-BjYBFkG8.js';
3
+ import { d as Base } from '../../toolkit-C37sQAkD.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
  import 'lodash';
6
6
  import 'http';
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkVXNNW2KHjs = require('../../chunk-VXNNW2KH.js');
4
- require('../../chunk-HTM2L3DT.js');
3
+ var _chunk6QWYIJLMjs = require('../../chunk-6QWYIJLM.js');
4
+ require('../../chunk-WN3GXVUE.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Timeline = _chunkVXNNW2KHjs.Timeline;
8
+ exports.Timeline = _chunk6QWYIJLMjs.Timeline;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Timeline
3
- } from "../../chunk-YN7LHBRI.mjs";
4
- import "../../chunk-JKTEVA75.mjs";
3
+ } from "../../chunk-3TXBS2UN.mjs";
4
+ import "../../chunk-GONHNB6V.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Timeline
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
3
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
4
4
 
5
5
  // src/backend/components/label.ts
6
- var Label = class extends _chunkHTM2L3DTjs.Base {
6
+ var Label = class extends _chunkWN3GXVUEjs.Base {
7
7
  constructor(props) {
8
8
  super({ text: null }, props);
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Base
3
- } from "./chunk-JKTEVA75.mjs";
3
+ } from "./chunk-GONHNB6V.mjs";
4
4
 
5
5
  // src/backend/components/timeline.ts
6
6
  var DEFAULT_PROPS = {
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class;
2
2
 
3
3
 
4
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
4
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
5
5
 
6
6
  // src/backend/components/button.ts
7
7
  var _core = require('@arcanejs/protocol/core'); var proto = _interopRequireWildcard(_core);
@@ -12,9 +12,9 @@ var DEFAULT_PROPS = {
12
12
  error: null,
13
13
  onClick: null
14
14
  };
15
- var Button = (_class = class extends _chunkHTM2L3DTjs.Base {
15
+ var Button = (_class = class extends _chunkWN3GXVUEjs.Base {
16
16
  /** @hidden */
17
- __init() {this.events = new (0, _chunkHTM2L3DTjs.EventEmitter)()}
17
+ __init() {this.events = new (0, _chunkWN3GXVUEjs.EventEmitter)()}
18
18
  constructor(props) {
19
19
  super(DEFAULT_PROPS, props, {
20
20
  onPropsUpdated: (oldProps) => this.events.processPropChanges(
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class;
2
2
 
3
3
 
4
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
4
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
5
5
 
6
6
  // src/backend/components/switch.ts
7
7
  var _core = require('@arcanejs/protocol/core'); var proto = _interopRequireWildcard(_core);
8
8
  var DEFAULT_PROPS = {};
9
- var Switch = (_class = class extends _chunkHTM2L3DTjs.Base {
9
+ var Switch = (_class = class extends _chunkWN3GXVUEjs.Base {
10
10
  /** @hidden */
11
- __init() {this.events = new (0, _chunkHTM2L3DTjs.EventEmitter)()}
11
+ __init() {this.events = new (0, _chunkWN3GXVUEjs.EventEmitter)()}
12
12
  /**
13
13
  * Manually manage the state of the switch,
14
14
  * to support both controlled and uncontrolled inputs.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Base
3
- } from "./chunk-JKTEVA75.mjs";
3
+ } from "./chunk-GONHNB6V.mjs";
4
4
 
5
5
  // src/backend/components/rect.ts
6
6
  var DEFAULT_PROPS = {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class;
2
2
 
3
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
3
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
4
4
 
5
5
  // src/backend/components/timeline.ts
6
6
  var DEFAULT_PROPS = {
@@ -13,7 +13,7 @@ var DEFAULT_PROPS = {
13
13
  subtitles: null,
14
14
  source: null
15
15
  };
16
- var Timeline = (_class = class extends _chunkHTM2L3DTjs.Base {
16
+ var Timeline = (_class = class extends _chunkWN3GXVUEjs.Base {
17
17
  constructor(props) {
18
18
  super(DEFAULT_PROPS, props);_class.prototype.__init.call(this);;
19
19
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class; var _class2;
2
2
 
3
3
 
4
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
4
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
5
5
 
6
6
  // src/backend/components/group.ts
7
7
  var _core = require('@arcanejs/protocol/core'); var proto = _interopRequireWildcard(_core);
@@ -13,7 +13,7 @@ var DEFAULT_PROPS = {
13
13
  title: null,
14
14
  labels: null
15
15
  };
16
- var GroupHeader = (_class = class extends _chunkHTM2L3DTjs.BaseParent {constructor(...args) { super(...args); _class.prototype.__init.call(this);_class.prototype.__init2.call(this); }
16
+ var GroupHeader = (_class = class extends _chunkWN3GXVUEjs.BaseParent {constructor(...args) { super(...args); _class.prototype.__init.call(this);_class.prototype.__init2.call(this); }
17
17
  __init() {this.validateChildren = () => {
18
18
  }}
19
19
  /** @hidden */
@@ -24,9 +24,9 @@ var GroupHeader = (_class = class extends _chunkHTM2L3DTjs.BaseParent {construct
24
24
  children: this.getChildren().map((c) => c.getProtoInfo(idMap))
25
25
  })}
26
26
  }, _class);
27
- var Group = (_class2 = class extends _chunkHTM2L3DTjs.BaseParent {
27
+ var Group = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
28
28
  /** @hidden */
29
- __init3() {this.events = new (0, _chunkHTM2L3DTjs.EventEmitter)()}
29
+ __init3() {this.events = new (0, _chunkWN3GXVUEjs.EventEmitter)()}
30
30
  constructor(props) {
31
31
  super(DEFAULT_PROPS, props, {
32
32
  onPropsUpdated: (oldProps) => this.events.processPropChanges(
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  BaseParent,
3
3
  EventEmitter
4
- } from "./chunk-JKTEVA75.mjs";
4
+ } from "./chunk-GONHNB6V.mjs";
5
5
 
6
6
  // src/backend/components/group.ts
7
7
  import * as proto from "@arcanejs/protocol/core";
@@ -196,6 +196,20 @@ var EventEmitter = class {
196
196
  )
197
197
  );
198
198
  };
199
+ /**
200
+ * Like {@link emit},
201
+ * but ensures only a single listener exists and returns its result.
202
+ */
203
+ call = async (type, ...args) => {
204
+ const result = await this.emit(type, ...args);
205
+ if (result.length > 1) {
206
+ throw new Error(`Multiple listeners for call: ${String(type)}`);
207
+ } else if (result[0]) {
208
+ return result[0];
209
+ } else {
210
+ throw new Error(`No listeners for call: ${String(type)}`);
211
+ }
212
+ };
199
213
  /**
200
214
  * Process prop changes to update listeners
201
215
  */
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } var _class;
2
2
 
3
3
 
4
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
4
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
5
5
 
6
6
  // src/backend/components/text-input.ts
7
7
  var _core = require('@arcanejs/protocol/core'); var proto = _interopRequireWildcard(_core);
8
8
  var DEFAULT_PROPS = {
9
9
  value: null
10
10
  };
11
- var TextInput = (_class = class extends _chunkHTM2L3DTjs.Base {
11
+ var TextInput = (_class = class extends _chunkWN3GXVUEjs.Base {
12
12
  /** @hidden */
13
- __init() {this.events = new (0, _chunkHTM2L3DTjs.EventEmitter)()}
13
+ __init() {this.events = new (0, _chunkWN3GXVUEjs.EventEmitter)()}
14
14
  constructor(props) {
15
15
  super(DEFAULT_PROPS, props, {
16
16
  onPropsUpdated: (oldProps) => this.events.processPropChanges(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BaseParent
3
- } from "./chunk-JKTEVA75.mjs";
3
+ } from "./chunk-GONHNB6V.mjs";
4
4
 
5
5
  // src/backend/components/tabs.ts
6
6
  var Tab = class extends BaseParent {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Base,
3
3
  EventEmitter
4
- } from "./chunk-JKTEVA75.mjs";
4
+ } from "./chunk-GONHNB6V.mjs";
5
5
 
6
6
  // src/backend/components/button.ts
7
7
  import * as proto from "@arcanejs/protocol/core";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } var _class;
2
2
 
3
3
 
4
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
4
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
5
5
 
6
6
  // src/backend/components/slider-button.ts
7
7
  var _core = require('@arcanejs/protocol/core'); var proto = _interopRequireWildcard(_core);
@@ -10,9 +10,9 @@ var DEFAULT_PROPS = {
10
10
  max: 255,
11
11
  step: 5
12
12
  };
13
- var SliderButton = (_class = class extends _chunkHTM2L3DTjs.Base {
13
+ var SliderButton = (_class = class extends _chunkWN3GXVUEjs.Base {
14
14
  /** @hidden */
15
- __init() {this.events = new (0, _chunkHTM2L3DTjs.EventEmitter)()}
15
+ __init() {this.events = new (0, _chunkWN3GXVUEjs.EventEmitter)()}
16
16
  /**
17
17
  * Manually manage the state of the slider,
18
18
  * to support both controlled and uncontrolled inputs.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Base,
3
3
  EventEmitter
4
- } from "./chunk-JKTEVA75.mjs";
4
+ } from "./chunk-GONHNB6V.mjs";
5
5
 
6
6
  // src/backend/components/switch.ts
7
7
  import * as proto from "@arcanejs/protocol/core";
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
3
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
4
4
 
5
5
  // src/backend/components/rect.ts
6
6
  var DEFAULT_PROPS = {
7
7
  color: "rgba(0, 0, 0, 0)"
8
8
  };
9
- var Rect = class extends _chunkHTM2L3DTjs.Base {
9
+ var Rect = class extends _chunkWN3GXVUEjs.Base {
10
10
  constructor(props) {
11
11
  super(DEFAULT_PROPS, props);
12
12
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Base,
3
3
  EventEmitter
4
- } from "./chunk-JKTEVA75.mjs";
4
+ } from "./chunk-GONHNB6V.mjs";
5
5
 
6
6
  // src/backend/components/slider-button.ts
7
7
  import * as proto from "@arcanejs/protocol/core";
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class; var _class2;
2
2
 
3
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
3
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
4
4
 
5
5
  // src/backend/components/tabs.ts
6
- var Tab = (_class = class extends _chunkHTM2L3DTjs.BaseParent {constructor(...args) { super(...args); _class.prototype.__init.call(this);_class.prototype.__init2.call(this); }
6
+ var Tab = (_class = class extends _chunkWN3GXVUEjs.BaseParent {constructor(...args) { super(...args); _class.prototype.__init.call(this);_class.prototype.__init2.call(this); }
7
7
  __init() {this.validateChildren = (children) => {
8
8
  if (children.length > 1) {
9
9
  throw new Error("Tab can only have one child");
@@ -18,7 +18,7 @@ var Tab = (_class = class extends _chunkHTM2L3DTjs.BaseParent {constructor(...ar
18
18
  child: this.getChildren().slice(0, 1).map((c) => c.getProtoInfo(idMap))[0]
19
19
  })}
20
20
  }, _class);
21
- var Tabs = (_class2 = class extends _chunkHTM2L3DTjs.BaseParent {
21
+ var Tabs = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
22
22
  __init3() {this.validateChildren = (children) => {
23
23
  for (const child of children) {
24
24
  if (!(child instanceof Tab)) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Base
3
- } from "./chunk-JKTEVA75.mjs";
3
+ } from "./chunk-GONHNB6V.mjs";
4
4
 
5
5
  // src/backend/components/label.ts
6
6
  var Label = class extends Base {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Base,
3
3
  EventEmitter
4
- } from "./chunk-JKTEVA75.mjs";
4
+ } from "./chunk-GONHNB6V.mjs";
5
5
 
6
6
  // src/backend/components/text-input.ts
7
7
  import * as proto from "@arcanejs/protocol/core";
@@ -170,7 +170,7 @@ var BaseParent = (_class2 = class extends Base {constructor(...args2) { super(..
170
170
  this.updateTree();
171
171
  }
172
172
  }, _class2);
173
- var EventEmitter = (_class3 = class {constructor() { _class3.prototype.__init13.call(this);_class3.prototype.__init14.call(this);_class3.prototype.__init15.call(this);_class3.prototype.__init16.call(this);_class3.prototype.__init17.call(this); }
173
+ var EventEmitter = (_class3 = class {constructor() { _class3.prototype.__init13.call(this);_class3.prototype.__init14.call(this);_class3.prototype.__init15.call(this);_class3.prototype.__init16.call(this);_class3.prototype.__init17.call(this);_class3.prototype.__init18.call(this); }
174
174
  __init13() {this.listeners = /* @__PURE__ */ new Map()}
175
175
  __init14() {this.addListener = (type, listener) => {
176
176
  let set = this.listeners.get(type);
@@ -196,10 +196,24 @@ var EventEmitter = (_class3 = class {constructor() { _class3.prototype.__init13.
196
196
  )
197
197
  );
198
198
  }}
199
+ /**
200
+ * Like {@link emit},
201
+ * but ensures only a single listener exists and returns its result.
202
+ */
203
+ __init17() {this.call = async (type, ...args) => {
204
+ const result = await this.emit(type, ...args);
205
+ if (result.length > 1) {
206
+ throw new Error(`Multiple listeners for call: ${String(type)}`);
207
+ } else if (result[0]) {
208
+ return result[0];
209
+ } else {
210
+ throw new Error(`No listeners for call: ${String(type)}`);
211
+ }
212
+ }}
199
213
  /**
200
214
  * Process prop changes to update listeners
201
215
  */
202
- __init17() {this.processPropChanges = (mapping, oldProps, newProps) => {
216
+ __init18() {this.processPropChanges = (mapping, oldProps, newProps) => {
203
217
  for (const key of Object.keys(mapping)) {
204
218
  const prev = oldProps[key];
205
219
  const next = newProps[key];
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AnyComponent, B as Button, G as Group, c as GroupHeader, T as Toolkit, a as ToolkitConnection, b as ToolkitOptions } from './toolkit-k-CCIw3V.mjs';
1
+ export { A as AnyComponent, B as Button, G as Group, c as GroupHeader, T as Toolkit, a as ToolkitConnection, b as ToolkitOptions } from './toolkit-CQMnQMOF.mjs';
2
2
  export { Label } from './backend/components/label.mjs';
3
3
  export { Rect } from './backend/components/rect.mjs';
4
4
  export { SliderButton } from './backend/components/slider-button.mjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AnyComponent, B as Button, G as Group, c as GroupHeader, T as Toolkit, a as ToolkitConnection, b as ToolkitOptions } from './toolkit-BjYBFkG8.js';
1
+ export { A as AnyComponent, B as Button, G as Group, c as GroupHeader, T as Toolkit, a as ToolkitConnection, b as ToolkitOptions } from './toolkit-C37sQAkD.js';
2
2
  export { Label } from './backend/components/label.js';
3
3
  export { Rect } from './backend/components/rect.js';
4
4
  export { SliderButton } from './backend/components/slider-button.js';
package/dist/index.js CHANGED
@@ -1,38 +1,38 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2;
2
2
 
3
3
 
4
- var _chunkLGIWNJQAjs = require('./chunk-LGIWNJQA.js');
4
+ var _chunkU6FSQBQ3js = require('./chunk-U6FSQBQ3.js');
5
5
 
6
6
 
7
- var _chunk4EOCJT6Wjs = require('./chunk-4EOCJT6W.js');
7
+ var _chunkHTCWMJUAjs = require('./chunk-HTCWMJUA.js');
8
8
 
9
9
 
10
- var _chunkVXNNW2KHjs = require('./chunk-VXNNW2KH.js');
10
+ var _chunk6QWYIJLMjs = require('./chunk-6QWYIJLM.js');
11
11
 
12
12
 
13
13
  var _chunkEABM5X65js = require('./chunk-EABM5X65.js');
14
14
 
15
15
 
16
- var _chunkZWYJEKZPjs = require('./chunk-ZWYJEKZP.js');
16
+ var _chunk4OCRZD4Fjs = require('./chunk-4OCRZD4F.js');
17
17
 
18
18
 
19
19
 
20
- var _chunkQT43ONN5js = require('./chunk-QT43ONN5.js');
20
+ var _chunk7JIC2XBCjs = require('./chunk-7JIC2XBC.js');
21
21
 
22
22
 
23
- var _chunkZ3HEU534js = require('./chunk-Z3HEU534.js');
23
+ var _chunk3GTEUTFTjs = require('./chunk-3GTEUTFT.js');
24
24
 
25
25
 
26
- var _chunkJSZMJCCHjs = require('./chunk-JSZMJCCH.js');
26
+ var _chunkQAH2OSHRjs = require('./chunk-QAH2OSHR.js');
27
27
 
28
28
 
29
- var _chunk6KPK5YOLjs = require('./chunk-6KPK5YOL.js');
29
+ var _chunkNL3W4M7Jjs = require('./chunk-NL3W4M7J.js');
30
30
 
31
31
 
32
- var _chunk3VAHVFJ3js = require('./chunk-3VAHVFJ3.js');
32
+ var _chunk53EOA4UEjs = require('./chunk-53EOA4UE.js');
33
33
 
34
34
 
35
- var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.js');
35
+ var _chunkWN3GXVUEjs = require('./chunk-WN3GXVUE.js');
36
36
 
37
37
 
38
38
  var _chunk3RG5ZIWIjs = require('./chunk-3RG5ZIWI.js');
@@ -189,7 +189,7 @@ var Toolkit = (_class2 = class {
189
189
  __init5() {this.connections = /* @__PURE__ */ new Map()}
190
190
  __init6() {this.rootGroup = null}
191
191
  /** @hidden */
192
- __init7() {this.events = new (0, _chunkHTM2L3DTjs.EventEmitter)()}
192
+ __init7() {this.events = new (0, _chunkWN3GXVUEjs.EventEmitter)()}
193
193
  constructor(options = {}) {;_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);_class2.prototype.__init16.call(this);_class2.prototype.__init17.call(this);_class2.prototype.__init18.call(this);
194
194
  this.options = {
195
195
  ...DEFAULT_LIGHT_DESK_OPTIONS,
@@ -369,4 +369,4 @@ var Toolkit = (_class2 = class {
369
369
 
370
370
 
371
371
 
372
- exports.Button = _chunkZWYJEKZPjs.Button; exports.Group = _chunkQT43ONN5js.Group; exports.GroupHeader = _chunkQT43ONN5js.GroupHeader; exports.Label = _chunkZ3HEU534js.Label; exports.Rect = _chunkJSZMJCCHjs.Rect; exports.SliderButton = _chunk6KPK5YOLjs.SliderButton; exports.Switch = _chunk3VAHVFJ3js.Switch; exports.Tab = _chunkLGIWNJQAjs.Tab; exports.Tabs = _chunkLGIWNJQAjs.Tabs; exports.TextInput = _chunk4EOCJT6Wjs.TextInput; exports.Timeline = _chunkVXNNW2KHjs.Timeline; exports.Toolkit = Toolkit;
372
+ exports.Button = _chunk4OCRZD4Fjs.Button; exports.Group = _chunk7JIC2XBCjs.Group; exports.GroupHeader = _chunk7JIC2XBCjs.GroupHeader; exports.Label = _chunk3GTEUTFTjs.Label; exports.Rect = _chunkQAH2OSHRjs.Rect; exports.SliderButton = _chunkNL3W4M7Jjs.SliderButton; exports.Switch = _chunk53EOA4UEjs.Switch; exports.Tab = _chunkU6FSQBQ3js.Tab; exports.Tabs = _chunkU6FSQBQ3js.Tabs; exports.TextInput = _chunkHTCWMJUAjs.TextInput; exports.Timeline = _chunk6QWYIJLMjs.Timeline; exports.Toolkit = Toolkit;
package/dist/index.mjs CHANGED
@@ -1,38 +1,38 @@
1
1
  import {
2
2
  Tab,
3
3
  Tabs
4
- } from "./chunk-MMK3PCSS.mjs";
4
+ } from "./chunk-KMEDXCBI.mjs";
5
5
  import {
6
6
  TextInput
7
- } from "./chunk-VJ3Q2HZJ.mjs";
7
+ } from "./chunk-WDB3IMOP.mjs";
8
8
  import {
9
9
  Timeline
10
- } from "./chunk-YN7LHBRI.mjs";
10
+ } from "./chunk-3TXBS2UN.mjs";
11
11
  import {
12
12
  IDMap
13
13
  } from "./chunk-RGHJEMWG.mjs";
14
14
  import {
15
15
  Button
16
- } from "./chunk-6BVEU2NV.mjs";
16
+ } from "./chunk-LK6MGXYC.mjs";
17
17
  import {
18
18
  Group,
19
19
  GroupHeader
20
- } from "./chunk-PIVARHCZ.mjs";
20
+ } from "./chunk-E6FGU7DA.mjs";
21
21
  import {
22
22
  Label
23
- } from "./chunk-XYFDH3E7.mjs";
23
+ } from "./chunk-UQWCTVMC.mjs";
24
24
  import {
25
25
  Rect
26
- } from "./chunk-XMP5XJWR.mjs";
26
+ } from "./chunk-6ELB27LK.mjs";
27
27
  import {
28
28
  SliderButton
29
- } from "./chunk-PYJC5BFZ.mjs";
29
+ } from "./chunk-QB2WPBWV.mjs";
30
30
  import {
31
31
  Switch
32
- } from "./chunk-GIXAFIEY.mjs";
32
+ } from "./chunk-PG5EAV5X.mjs";
33
33
  import {
34
34
  EventEmitter
35
- } from "./chunk-JKTEVA75.mjs";
35
+ } from "./chunk-GONHNB6V.mjs";
36
36
  import {
37
37
  __require
38
38
  } from "./chunk-Y6FXYEAI.mjs";
@@ -165,7 +165,12 @@ declare class EventEmitter<Map extends Record<string, (...args: any[]) => void>>
165
165
  private readonly listeners;
166
166
  addListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
167
167
  removeListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
168
- emit: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<unknown>;
168
+ emit: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<ReturnType<Map[T]>[]>;
169
+ /**
170
+ * Like {@link emit},
171
+ * but ensures only a single listener exists and returns its result.
172
+ */
173
+ call: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<ReturnType<Map[T]>>;
169
174
  /**
170
175
  * Process prop changes to update listeners
171
176
  */
@@ -165,7 +165,12 @@ declare class EventEmitter<Map extends Record<string, (...args: any[]) => void>>
165
165
  private readonly listeners;
166
166
  addListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
167
167
  removeListener: <T extends keyof Map>(type: T, listener: Map[T]) => void;
168
- emit: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<unknown>;
168
+ emit: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<ReturnType<Map[T]>[]>;
169
+ /**
170
+ * Like {@link emit},
171
+ * but ensures only a single listener exists and returns its result.
172
+ */
173
+ call: <T extends keyof Map>(type: T, ...args: Parameters<Map[T]>) => Promise<ReturnType<Map[T]>>;
169
174
  /**
170
175
  * Process prop changes to update listeners
171
176
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcanejs/toolkit",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "private": false,
5
5
  "description": "Build web-accessible control interfaces for your long-running Node.js processes",
6
6
  "keywords": [