@arcanejs/toolkit 3.1.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +1 -1
  2. package/dist/backend/components/base.d.mts +1 -1
  3. package/dist/backend/components/base.d.ts +1 -1
  4. package/dist/backend/components/base.js +2 -2
  5. package/dist/backend/components/base.mjs +1 -1
  6. package/dist/backend/components/button.d.mts +1 -1
  7. package/dist/backend/components/button.d.ts +1 -1
  8. package/dist/backend/components/button.js +3 -3
  9. package/dist/backend/components/button.mjs +2 -2
  10. package/dist/backend/components/group.d.mts +1 -1
  11. package/dist/backend/components/group.d.ts +1 -1
  12. package/dist/backend/components/group.js +3 -3
  13. package/dist/backend/components/group.mjs +2 -2
  14. package/dist/backend/components/label.d.mts +1 -1
  15. package/dist/backend/components/label.d.ts +1 -1
  16. package/dist/backend/components/label.js +3 -3
  17. package/dist/backend/components/label.mjs +2 -2
  18. package/dist/backend/components/rect.d.mts +1 -1
  19. package/dist/backend/components/rect.d.ts +1 -1
  20. package/dist/backend/components/rect.js +3 -3
  21. package/dist/backend/components/rect.mjs +2 -2
  22. package/dist/backend/components/slider-button.d.mts +1 -1
  23. package/dist/backend/components/slider-button.d.ts +1 -1
  24. package/dist/backend/components/slider-button.js +3 -3
  25. package/dist/backend/components/slider-button.mjs +2 -2
  26. package/dist/backend/components/switch.d.mts +1 -1
  27. package/dist/backend/components/switch.d.ts +1 -1
  28. package/dist/backend/components/switch.js +3 -3
  29. package/dist/backend/components/switch.mjs +2 -2
  30. package/dist/backend/components/tabs.d.mts +1 -1
  31. package/dist/backend/components/tabs.d.ts +1 -1
  32. package/dist/backend/components/tabs.js +3 -3
  33. package/dist/backend/components/tabs.mjs +2 -2
  34. package/dist/backend/components/text-input.d.mts +1 -1
  35. package/dist/backend/components/text-input.d.ts +1 -1
  36. package/dist/backend/components/text-input.js +3 -3
  37. package/dist/backend/components/text-input.mjs +2 -2
  38. package/dist/backend/components/timeline.d.mts +1 -1
  39. package/dist/backend/components/timeline.d.ts +1 -1
  40. package/dist/backend/components/timeline.js +3 -3
  41. package/dist/backend/components/timeline.mjs +2 -2
  42. package/dist/{chunk-VEZGD2PG.js → chunk-3VAHVFJ3.js} +3 -3
  43. package/dist/{chunk-4OZ22IQU.js → chunk-4EOCJT6W.js} +3 -3
  44. package/dist/{chunk-W42AOMM6.mjs → chunk-6BVEU2NV.mjs} +5 -14
  45. package/dist/{chunk-CME7HZZK.js → chunk-6KPK5YOL.js} +3 -3
  46. package/dist/{chunk-NEQRLPXK.mjs → chunk-GIXAFIEY.mjs} +1 -1
  47. package/dist/{chunk-SGACFY53.js → chunk-HTM2L3DT.js} +19 -0
  48. package/dist/{chunk-RYR5I5FT.mjs → chunk-JKTEVA75.mjs} +19 -0
  49. package/dist/{chunk-7OX2FB6C.js → chunk-JSZMJCCH.js} +2 -2
  50. package/dist/{chunk-GMDJYFHD.js → chunk-LGIWNJQA.js} +3 -3
  51. package/dist/{chunk-7TTY7CBH.mjs → chunk-MMK3PCSS.mjs} +1 -1
  52. package/dist/{chunk-5D7OSUZ6.mjs → chunk-PIVARHCZ.mjs} +1 -1
  53. package/dist/{chunk-JFZXSCGK.mjs → chunk-PYJC5BFZ.mjs} +1 -1
  54. package/dist/{chunk-O5ZW6JYG.js → chunk-QT43ONN5.js} +4 -4
  55. package/dist/{chunk-YBBUC3QC.mjs → chunk-VJ3Q2HZJ.mjs} +1 -1
  56. package/dist/{chunk-6CWEURJP.js → chunk-VXNNW2KH.js} +2 -2
  57. package/dist/{chunk-N6IHYBZH.mjs → chunk-XMP5XJWR.mjs} +1 -1
  58. package/dist/{chunk-CUZSHFDP.mjs → chunk-XYFDH3E7.mjs} +1 -1
  59. package/dist/{chunk-K37TZB75.mjs → chunk-YN7LHBRI.mjs} +1 -1
  60. package/dist/{chunk-DRQVYGTI.js → chunk-Z3HEU534.js} +2 -2
  61. package/dist/{chunk-DG75CS7F.js → chunk-ZWYJEKZP.js} +7 -16
  62. package/dist/frontend/entrypoint.js +84 -31
  63. package/dist/frontend/entrypoint.js.map +3 -3
  64. package/dist/frontend/index.js +62 -19
  65. package/dist/frontend/index.mjs +62 -19
  66. package/dist/index.d.mts +1 -1
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +47 -14
  69. package/dist/index.mjs +43 -10
  70. package/dist/{toolkit-2w2SWHlT.d.ts → toolkit-BjYBFkG8.d.ts} +17 -6
  71. package/dist/{toolkit-DB8G2TaA.d.mts → toolkit-k-CCIw3V.d.mts} +17 -6
  72. package/package.json +5 -5
package/README.md CHANGED
@@ -16,4 +16,4 @@ library, that allows you to compose your control panels using server-side react.
16
16
 
17
17
  For more details,
18
18
  please see the main documentation on our GitHub repository:
19
- [github.com/arcanejs/arcanejs](https://github.com/arcanejs/arcanejs#arcanejs)
19
+ [github.com/ArcaneWizards/arcanejs](https://github.com/ArcaneWizards/arcanejs#arcanejs)
@@ -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-DB8G2TaA.mjs';
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';
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-2w2SWHlT.js';
4
+ export { A as AnyComponent, d as Base, e as BaseParent, E as EventEmitter, L as Listenable, P as Parent } from '../../toolkit-BjYBFkG8.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 _chunkSGACFY53js = require('../../chunk-SGACFY53.js');
5
+ var _chunkHTM2L3DTjs = require('../../chunk-HTM2L3DT.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.Base = _chunkSGACFY53js.Base; exports.BaseParent = _chunkSGACFY53js.BaseParent; exports.EventEmitter = _chunkSGACFY53js.EventEmitter;
11
+ exports.Base = _chunkHTM2L3DTjs.Base; exports.BaseParent = _chunkHTM2L3DTjs.BaseParent; exports.EventEmitter = _chunkHTM2L3DTjs.EventEmitter;
@@ -2,7 +2,7 @@ import {
2
2
  Base,
3
3
  BaseParent,
4
4
  EventEmitter
5
- } from "../../chunk-RYR5I5FT.mjs";
5
+ } from "../../chunk-JKTEVA75.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-DB8G2TaA.mjs';
3
+ export { B as Button, g as ButtonMode, f as Events, I as InternalProps, h as Props } from '../../toolkit-k-CCIw3V.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-2w2SWHlT.js';
3
+ export { B as Button, g as ButtonMode, f as Events, I as InternalProps, h as Props } from '../../toolkit-BjYBFkG8.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 _chunkDG75CS7Fjs = require('../../chunk-DG75CS7F.js');
4
- require('../../chunk-SGACFY53.js');
3
+ var _chunkZWYJEKZPjs = require('../../chunk-ZWYJEKZP.js');
4
+ require('../../chunk-HTM2L3DT.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Button = _chunkDG75CS7Fjs.Button;
8
+ exports.Button = _chunkZWYJEKZPjs.Button;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Button
3
- } from "../../chunk-W42AOMM6.mjs";
4
- import "../../chunk-RYR5I5FT.mjs";
3
+ } from "../../chunk-6BVEU2NV.mjs";
4
+ import "../../chunk-JKTEVA75.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-DB8G2TaA.mjs';
4
+ export { i as Events, G as Group, c as GroupHeader, j as InternalProps, k as Props } from '../../toolkit-k-CCIw3V.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-2w2SWHlT.js';
4
+ export { i as Events, G as Group, c as GroupHeader, j as InternalProps, k as Props } from '../../toolkit-BjYBFkG8.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 _chunkO5ZW6JYGjs = require('../../chunk-O5ZW6JYG.js');
5
- require('../../chunk-SGACFY53.js');
4
+ var _chunkQT43ONN5js = require('../../chunk-QT43ONN5.js');
5
+ require('../../chunk-HTM2L3DT.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
- exports.Group = _chunkO5ZW6JYGjs.Group; exports.GroupHeader = _chunkO5ZW6JYGjs.GroupHeader;
10
+ exports.Group = _chunkQT43ONN5js.Group; exports.GroupHeader = _chunkQT43ONN5js.GroupHeader;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Group,
3
3
  GroupHeader
4
- } from "../../chunk-5D7OSUZ6.mjs";
5
- import "../../chunk-RYR5I5FT.mjs";
4
+ } from "../../chunk-PIVARHCZ.mjs";
5
+ import "../../chunk-JKTEVA75.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-DB8G2TaA.mjs';
4
+ import { d as Base } from '../../toolkit-k-CCIw3V.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-2w2SWHlT.js';
4
+ import { d as Base } from '../../toolkit-BjYBFkG8.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 _chunkDRQVYGTIjs = require('../../chunk-DRQVYGTI.js');
4
- require('../../chunk-SGACFY53.js');
3
+ var _chunkZ3HEU534js = require('../../chunk-Z3HEU534.js');
4
+ require('../../chunk-HTM2L3DT.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Label = _chunkDRQVYGTIjs.Label;
8
+ exports.Label = _chunkZ3HEU534js.Label;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Label
3
- } from "../../chunk-CUZSHFDP.mjs";
4
- import "../../chunk-RYR5I5FT.mjs";
3
+ } from "../../chunk-XYFDH3E7.mjs";
4
+ import "../../chunk-JKTEVA75.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-DB8G2TaA.mjs';
3
+ import { d as Base } from '../../toolkit-k-CCIw3V.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-2w2SWHlT.js';
3
+ import { d as Base } from '../../toolkit-BjYBFkG8.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 _chunk7OX2FB6Cjs = require('../../chunk-7OX2FB6C.js');
4
- require('../../chunk-SGACFY53.js');
3
+ var _chunkJSZMJCCHjs = require('../../chunk-JSZMJCCH.js');
4
+ require('../../chunk-HTM2L3DT.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Rect = _chunk7OX2FB6Cjs.Rect;
8
+ exports.Rect = _chunkJSZMJCCHjs.Rect;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Rect
3
- } from "../../chunk-N6IHYBZH.mjs";
4
- import "../../chunk-RYR5I5FT.mjs";
3
+ } from "../../chunk-XMP5XJWR.mjs";
4
+ import "../../chunk-JKTEVA75.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-DB8G2TaA.mjs';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-k-CCIw3V.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-2w2SWHlT.js';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-BjYBFkG8.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 _chunkCME7HZZKjs = require('../../chunk-CME7HZZK.js');
4
- require('../../chunk-SGACFY53.js');
3
+ var _chunk6KPK5YOLjs = require('../../chunk-6KPK5YOL.js');
4
+ require('../../chunk-HTM2L3DT.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.SliderButton = _chunkCME7HZZKjs.SliderButton;
8
+ exports.SliderButton = _chunk6KPK5YOLjs.SliderButton;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SliderButton
3
- } from "../../chunk-JFZXSCGK.mjs";
4
- import "../../chunk-RYR5I5FT.mjs";
3
+ } from "../../chunk-PYJC5BFZ.mjs";
4
+ import "../../chunk-JKTEVA75.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-DB8G2TaA.mjs';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-k-CCIw3V.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-2w2SWHlT.js';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-BjYBFkG8.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 _chunkVEZGD2PGjs = require('../../chunk-VEZGD2PG.js');
4
- require('../../chunk-SGACFY53.js');
3
+ var _chunk3VAHVFJ3js = require('../../chunk-3VAHVFJ3.js');
4
+ require('../../chunk-HTM2L3DT.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Switch = _chunkVEZGD2PGjs.Switch;
8
+ exports.Switch = _chunk3VAHVFJ3js.Switch;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Switch
3
- } from "../../chunk-NEQRLPXK.mjs";
4
- import "../../chunk-RYR5I5FT.mjs";
3
+ } from "../../chunk-GIXAFIEY.mjs";
4
+ import "../../chunk-JKTEVA75.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-DB8G2TaA.mjs';
3
+ import { e as BaseParent, A as AnyComponent } from '../../toolkit-k-CCIw3V.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-2w2SWHlT.js';
3
+ import { e as BaseParent, A as AnyComponent } from '../../toolkit-BjYBFkG8.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 _chunkGMDJYFHDjs = require('../../chunk-GMDJYFHD.js');
5
- require('../../chunk-SGACFY53.js');
4
+ var _chunkLGIWNJQAjs = require('../../chunk-LGIWNJQA.js');
5
+ require('../../chunk-HTM2L3DT.js');
6
6
  require('../../chunk-3RG5ZIWI.js');
7
7
 
8
8
 
9
9
 
10
- exports.Tab = _chunkGMDJYFHDjs.Tab; exports.Tabs = _chunkGMDJYFHDjs.Tabs;
10
+ exports.Tab = _chunkLGIWNJQAjs.Tab; exports.Tabs = _chunkLGIWNJQAjs.Tabs;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Tab,
3
3
  Tabs
4
- } from "../../chunk-7TTY7CBH.mjs";
5
- import "../../chunk-RYR5I5FT.mjs";
4
+ } from "../../chunk-MMK3PCSS.mjs";
5
+ import "../../chunk-JKTEVA75.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-DB8G2TaA.mjs';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-k-CCIw3V.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-2w2SWHlT.js';
3
+ import { a as ToolkitConnection, d as Base, L as Listenable } from '../../toolkit-BjYBFkG8.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 _chunk4OZ22IQUjs = require('../../chunk-4OZ22IQU.js');
4
- require('../../chunk-SGACFY53.js');
3
+ var _chunk4EOCJT6Wjs = require('../../chunk-4EOCJT6W.js');
4
+ require('../../chunk-HTM2L3DT.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.TextInput = _chunk4OZ22IQUjs.TextInput;
8
+ exports.TextInput = _chunk4EOCJT6Wjs.TextInput;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TextInput
3
- } from "../../chunk-YBBUC3QC.mjs";
4
- import "../../chunk-RYR5I5FT.mjs";
3
+ } from "../../chunk-VJ3Q2HZJ.mjs";
4
+ import "../../chunk-JKTEVA75.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-DB8G2TaA.mjs';
3
+ import { d as Base } from '../../toolkit-k-CCIw3V.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-2w2SWHlT.js';
3
+ import { d as Base } from '../../toolkit-BjYBFkG8.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 _chunk6CWEURJPjs = require('../../chunk-6CWEURJP.js');
4
- require('../../chunk-SGACFY53.js');
3
+ var _chunkVXNNW2KHjs = require('../../chunk-VXNNW2KH.js');
4
+ require('../../chunk-HTM2L3DT.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Timeline = _chunk6CWEURJPjs.Timeline;
8
+ exports.Timeline = _chunkVXNNW2KHjs.Timeline;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Timeline
3
- } from "../../chunk-K37TZB75.mjs";
4
- import "../../chunk-RYR5I5FT.mjs";
3
+ } from "../../chunk-YN7LHBRI.mjs";
4
+ import "../../chunk-JKTEVA75.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
7
7
  Timeline
@@ -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 _chunkSGACFY53js = require('./chunk-SGACFY53.js');
4
+ var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.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 _chunkSGACFY53js.Base {
9
+ var Switch = (_class = class extends _chunkHTM2L3DTjs.Base {
10
10
  /** @hidden */
11
- __init() {this.events = new (0, _chunkSGACFY53js.EventEmitter)()}
11
+ __init() {this.events = new (0, _chunkHTM2L3DTjs.EventEmitter)()}
12
12
  /**
13
13
  * Manually manage the state of the switch,
14
14
  * to support both controlled and uncontrolled inputs.
@@ -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 _chunkSGACFY53js = require('./chunk-SGACFY53.js');
4
+ var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.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 _chunkSGACFY53js.Base {
11
+ var TextInput = (_class = class extends _chunkHTM2L3DTjs.Base {
12
12
  /** @hidden */
13
- __init() {this.events = new (0, _chunkSGACFY53js.EventEmitter)()}
13
+ __init() {this.events = new (0, _chunkHTM2L3DTjs.EventEmitter)()}
14
14
  constructor(props) {
15
15
  super(DEFAULT_PROPS, props, {
16
16
  onPropsUpdated: (oldProps) => this.events.processPropChanges(
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Base,
3
3
  EventEmitter
4
- } from "./chunk-RYR5I5FT.mjs";
4
+ } from "./chunk-JKTEVA75.mjs";
5
5
 
6
6
  // src/backend/components/button.ts
7
7
  import * as proto from "@arcanejs/protocol/core";
@@ -56,20 +56,11 @@ var Button = class extends Base {
56
56
  };
57
57
  };
58
58
  /** @hidden */
59
- handleMessage = (message, connection) => {
60
- if (proto.isCoreComponentMessage(message, "button")) {
61
- this.events.emit("click", connection).then(() => {
62
- if (this.props.error) {
63
- this.updateProps({
64
- error: null
65
- });
66
- }
67
- }).catch((e) => {
68
- this.updateProps({
69
- error: `${e}`
70
- });
71
- });
59
+ handleCall = (call, connection) => {
60
+ if (proto.isCoreComponentCall(call, "press")) {
61
+ return this.events.emit("click", connection).then(() => true);
72
62
  }
63
+ throw new Error(`Unhandled call action: ${call.action}`);
73
64
  };
74
65
  };
75
66
 
@@ -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 _chunkSGACFY53js = require('./chunk-SGACFY53.js');
4
+ var _chunkHTM2L3DTjs = require('./chunk-HTM2L3DT.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 _chunkSGACFY53js.Base {
13
+ var SliderButton = (_class = class extends _chunkHTM2L3DTjs.Base {
14
14
  /** @hidden */
15
- __init() {this.events = new (0, _chunkSGACFY53js.EventEmitter)()}
15
+ __init() {this.events = new (0, _chunkHTM2L3DTjs.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-RYR5I5FT.mjs";
4
+ } from "./chunk-JKTEVA75.mjs";
5
5
 
6
6
  // src/backend/components/switch.ts
7
7
  import * as proto from "@arcanejs/protocol/core";
@@ -72,8 +72,14 @@ var Base = (_class = class {
72
72
  /** @hidden */
73
73
  handleMessage(_message, _connection) {
74
74
  }
75
+ /** @hidden */
76
+ handleCall(_call, _connection) {
77
+ return Promise.reject(new Error(`Component does not handle calls`));
78
+ }
75
79
  routeMessage(_idMap, _message, _connection) {
76
80
  }
81
+ routeCall(_idMap, _call, _connection, _callbacks) {
82
+ }
77
83
  }, _class);
78
84
  var BaseParent = (_class2 = class extends Base {constructor(...args2) { super(...args2); _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); }
79
85
  /** @hidden */
@@ -134,6 +140,19 @@ var BaseParent = (_class2 = class extends Base {constructor(...args2) { super(..
134
140
  }
135
141
  }
136
142
  }
143
+ async routeCall(idMap, call, connection, callbacks) {
144
+ if (idMap.getId(this) === call.componentKey) {
145
+ this.handleCall(call, connection).then(callbacks.resolve).catch(callbacks.reject);
146
+ } else {
147
+ for (const c of this.children) {
148
+ if (idMap.getId(c) === call.componentKey) {
149
+ c.handleCall(call, connection).then(callbacks.resolve).catch(callbacks.reject);
150
+ } else {
151
+ c.routeCall(idMap, call, connection, callbacks);
152
+ }
153
+ }
154
+ }
155
+ }
137
156
  insertBefore(child, beforeChild) {
138
157
  const filteredChildren = this.children.filter((c) => c !== child);
139
158
  let match = filteredChildren.findIndex((c) => c === beforeChild);
@@ -72,8 +72,14 @@ var Base = class {
72
72
  /** @hidden */
73
73
  handleMessage(_message, _connection) {
74
74
  }
75
+ /** @hidden */
76
+ handleCall(_call, _connection) {
77
+ return Promise.reject(new Error(`Component does not handle calls`));
78
+ }
75
79
  routeMessage(_idMap, _message, _connection) {
76
80
  }
81
+ routeCall(_idMap, _call, _connection, _callbacks) {
82
+ }
77
83
  };
78
84
  var BaseParent = class extends Base {
79
85
  /** @hidden */
@@ -134,6 +140,19 @@ var BaseParent = class extends Base {
134
140
  }
135
141
  }
136
142
  }
143
+ async routeCall(idMap, call, connection, callbacks) {
144
+ if (idMap.getId(this) === call.componentKey) {
145
+ this.handleCall(call, connection).then(callbacks.resolve).catch(callbacks.reject);
146
+ } else {
147
+ for (const c of this.children) {
148
+ if (idMap.getId(c) === call.componentKey) {
149
+ c.handleCall(call, connection).then(callbacks.resolve).catch(callbacks.reject);
150
+ } else {
151
+ c.routeCall(idMap, call, connection, callbacks);
152
+ }
153
+ }
154
+ }
155
+ }
137
156
  insertBefore(child, beforeChild) {
138
157
  const filteredChildren = this.children.filter((c) => c !== child);
139
158
  let match = filteredChildren.findIndex((c) => c === beforeChild);