@arcanejs/toolkit 6.0.0 → 7.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 +156 -12
  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/button.d.mts +1 -1
  5. package/dist/backend/components/button.d.ts +1 -1
  6. package/dist/backend/components/button.js +2 -2
  7. package/dist/backend/components/button.mjs +1 -1
  8. package/dist/backend/components/group.d.mts +1 -1
  9. package/dist/backend/components/group.d.ts +1 -1
  10. package/dist/backend/components/group.js +2 -2
  11. package/dist/backend/components/group.mjs +1 -1
  12. package/dist/backend/components/label.d.mts +2 -2
  13. package/dist/backend/components/label.d.ts +2 -2
  14. package/dist/backend/components/label.js +2 -2
  15. package/dist/backend/components/label.mjs +1 -1
  16. package/dist/backend/components/rect.d.mts +2 -2
  17. package/dist/backend/components/rect.d.ts +2 -2
  18. package/dist/backend/components/rect.js +2 -2
  19. package/dist/backend/components/rect.mjs +1 -1
  20. package/dist/backend/components/slider-button.d.mts +2 -2
  21. package/dist/backend/components/slider-button.d.ts +2 -2
  22. package/dist/backend/components/slider-button.js +2 -2
  23. package/dist/backend/components/slider-button.mjs +1 -1
  24. package/dist/backend/components/switch.d.mts +2 -2
  25. package/dist/backend/components/switch.d.ts +2 -2
  26. package/dist/backend/components/switch.js +2 -2
  27. package/dist/backend/components/switch.mjs +1 -1
  28. package/dist/backend/components/tabs.d.mts +3 -3
  29. package/dist/backend/components/tabs.d.ts +3 -3
  30. package/dist/backend/components/tabs.js +2 -2
  31. package/dist/backend/components/tabs.mjs +1 -1
  32. package/dist/backend/components/text-input.d.mts +2 -2
  33. package/dist/backend/components/text-input.d.ts +2 -2
  34. package/dist/backend/components/text-input.js +2 -2
  35. package/dist/backend/components/text-input.mjs +1 -1
  36. package/dist/backend/components/timeline.d.mts +2 -2
  37. package/dist/backend/components/timeline.d.ts +2 -2
  38. package/dist/backend/components/timeline.js +2 -2
  39. package/dist/backend/components/timeline.mjs +1 -1
  40. package/dist/{chunk-53EOA4UE.js → chunk-2K4UT5QB.js} +1 -1
  41. package/dist/{chunk-4OCRZD4F.js → chunk-4AGKM5NT.js} +1 -1
  42. package/dist/{chunk-QAH2OSHR.js → chunk-5B65Q7RL.js} +1 -1
  43. package/dist/{chunk-3TXBS2UN.mjs → chunk-6PS3Q66F.mjs} +1 -1
  44. package/dist/{chunk-LK6MGXYC.mjs → chunk-7MQHRTBE.mjs} +1 -1
  45. package/dist/{chunk-U6FSQBQ3.js → chunk-A3RWE7HZ.js} +6 -4
  46. package/dist/{chunk-NL3W4M7J.js → chunk-CVY55KAR.js} +1 -1
  47. package/dist/{chunk-WDB3IMOP.mjs → chunk-GXJ3JRRK.mjs} +1 -1
  48. package/dist/{chunk-HTCWMJUA.js → chunk-IV3AE3CW.js} +1 -1
  49. package/dist/{chunk-UQWCTVMC.mjs → chunk-JHWFQLLE.mjs} +1 -1
  50. package/dist/{chunk-QB2WPBWV.mjs → chunk-K6V55JTG.mjs} +1 -1
  51. package/dist/{chunk-PG5EAV5X.mjs → chunk-MHSAHTVN.mjs} +1 -1
  52. package/dist/{chunk-KMEDXCBI.mjs → chunk-R5OA7LLZ.mjs} +6 -4
  53. package/dist/{chunk-6ELB27LK.mjs → chunk-RJLYYTZ6.mjs} +1 -1
  54. package/dist/{chunk-3GTEUTFT.js → chunk-TF7N4O5G.js} +1 -1
  55. package/dist/{chunk-E6FGU7DA.mjs → chunk-TULW7CRV.mjs} +4 -4
  56. package/dist/{chunk-6QWYIJLM.js → chunk-UHEZQR2Q.js} +1 -1
  57. package/dist/{chunk-7JIC2XBC.js → chunk-XSKWLJOQ.js} +4 -4
  58. package/dist/frontend/entrypoint.css +836 -0
  59. package/dist/frontend/entrypoint.css.map +7 -0
  60. package/dist/frontend/entrypoint.js +26049 -26682
  61. package/dist/frontend/entrypoint.js.map +4 -4
  62. package/dist/frontend/index.d.mts +4 -6
  63. package/dist/frontend/index.d.ts +4 -6
  64. package/dist/frontend/index.js +83 -300
  65. package/dist/frontend/index.mjs +90 -307
  66. package/dist/index.d.mts +1 -1
  67. package/dist/index.d.ts +1 -1
  68. package/dist/index.js +280 -98
  69. package/dist/index.mjs +250 -68
  70. package/dist/{toolkit-CohVRj6u.d.mts → toolkit-BPqxbDbk.d.mts} +82 -19
  71. package/dist/{toolkit-C_2Y8N9R.d.ts → toolkit-Bglbv3ix.d.ts} +82 -19
  72. package/package.json +15 -20
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TextInput
3
- } from "../../chunk-WDB3IMOP.mjs";
3
+ } from "../../chunk-GXJ3JRRK.mjs";
4
4
  import "../../chunk-GONHNB6V.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
@@ -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 { f as Base } from '../../toolkit-CohVRj6u.mjs';
3
+ import { m as Base, b as ToolkitRenderContext } from '../../toolkit-BPqxbDbk.mjs';
4
4
  import '@arcanejs/protocol/logging';
5
5
  import 'lodash';
6
6
  import 'http';
@@ -19,7 +19,7 @@ type Props = Partial<InternalProps>;
19
19
  declare class Timeline extends Base<proto.CoreNamespace, proto.CoreComponent, InternalProps> {
20
20
  constructor(props?: Props);
21
21
  /** @hidden */
22
- getProtoInfo: (idMap: IDMap) => proto.CoreComponent;
22
+ getProtoInfo: (idMap: IDMap, _context: ToolkitRenderContext) => proto.CoreComponent;
23
23
  }
24
24
 
25
25
  export { type Props, Timeline };
@@ -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 { f as Base } from '../../toolkit-C_2Y8N9R.js';
3
+ import { m as Base, b as ToolkitRenderContext } from '../../toolkit-Bglbv3ix.js';
4
4
  import '@arcanejs/protocol/logging';
5
5
  import 'lodash';
6
6
  import 'http';
@@ -19,7 +19,7 @@ type Props = Partial<InternalProps>;
19
19
  declare class Timeline extends Base<proto.CoreNamespace, proto.CoreComponent, InternalProps> {
20
20
  constructor(props?: Props);
21
21
  /** @hidden */
22
- getProtoInfo: (idMap: IDMap) => proto.CoreComponent;
22
+ getProtoInfo: (idMap: IDMap, _context: ToolkitRenderContext) => proto.CoreComponent;
23
23
  }
24
24
 
25
25
  export { type Props, Timeline };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk6QWYIJLMjs = require('../../chunk-6QWYIJLM.js');
3
+ var _chunkUHEZQR2Qjs = require('../../chunk-UHEZQR2Q.js');
4
4
  require('../../chunk-WN3GXVUE.js');
5
5
  require('../../chunk-3RG5ZIWI.js');
6
6
 
7
7
 
8
- exports.Timeline = _chunk6QWYIJLMjs.Timeline;
8
+ exports.Timeline = _chunkUHEZQR2Qjs.Timeline;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Timeline
3
- } from "../../chunk-3TXBS2UN.mjs";
3
+ } from "../../chunk-6PS3Q66F.mjs";
4
4
  import "../../chunk-GONHNB6V.mjs";
5
5
  import "../../chunk-Y6FXYEAI.mjs";
6
6
  export {
@@ -31,7 +31,7 @@ var Switch = (_class = class extends _chunkWN3GXVUEjs.Base {
31
31
  __init3() {this.addListener = this.events.addListener}
32
32
  __init4() {this.removeListener = this.events.removeListener}
33
33
  /** @hidden */
34
- getProtoInfo(idMap) {
34
+ getProtoInfo(idMap, _context) {
35
35
  return {
36
36
  namespace: "core",
37
37
  component: "switch",
@@ -45,7 +45,7 @@ var Button = (_class = class extends _chunkWN3GXVUEjs.Base {
45
45
  return this;
46
46
  }}
47
47
  /** @hidden */
48
- __init7() {this.getProtoInfo = (idMap) => {
48
+ __init7() {this.getProtoInfo = (idMap, _context) => {
49
49
  return {
50
50
  namespace: "core",
51
51
  component: "button",
@@ -11,7 +11,7 @@ var Rect = class extends _chunkWN3GXVUEjs.Base {
11
11
  super(DEFAULT_PROPS, props);
12
12
  }
13
13
  /** @hidden */
14
- getProtoInfo(idMap) {
14
+ getProtoInfo(idMap, _context) {
15
15
  return {
16
16
  namespace: "core",
17
17
  component: "rect",
@@ -18,7 +18,7 @@ var Timeline = class extends Base {
18
18
  super(DEFAULT_PROPS, props);
19
19
  }
20
20
  /** @hidden */
21
- getProtoInfo = (idMap) => ({
21
+ getProtoInfo = (idMap, _context) => ({
22
22
  namespace: "core",
23
23
  component: "timeline",
24
24
  key: idMap.getId(this),
@@ -45,7 +45,7 @@ var Button = class extends Base {
45
45
  return this;
46
46
  };
47
47
  /** @hidden */
48
- getProtoInfo = (idMap) => {
48
+ getProtoInfo = (idMap, _context) => {
49
49
  return {
50
50
  namespace: "core",
51
51
  component: "button",
@@ -10,12 +10,12 @@ var Tab = (_class = class extends _chunkWN3GXVUEjs.BaseParent {constructor(...ar
10
10
  }
11
11
  }}
12
12
  /** @hidden */
13
- __init2() {this.getProtoInfo = (idMap) => ({
13
+ __init2() {this.getProtoInfo = (idMap, context) => ({
14
14
  namespace: "core",
15
15
  component: "tab",
16
16
  key: idMap.getId(this),
17
17
  name: this.props.name,
18
- child: this.getChildren().slice(0, 1).map((c) => c.getProtoInfo(idMap))[0]
18
+ child: this.getChildren().slice(0, 1).map((c) => c.getProtoInfo(idMap, context))[0]
19
19
  })}
20
20
  }, _class);
21
21
  var Tabs = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
@@ -41,12 +41,14 @@ var Tabs = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
41
41
  return component;
42
42
  }
43
43
  /** @hidden */
44
- getProtoInfo(idMap) {
44
+ getProtoInfo(idMap, context) {
45
45
  return {
46
46
  namespace: "core",
47
47
  component: "tabs",
48
48
  key: idMap.getId(this),
49
- tabs: this.getChildren().map((c) => c.getProtoInfo(idMap))
49
+ tabs: this.getChildren().map(
50
+ (c) => c.getProtoInfo(idMap, context)
51
+ )
50
52
  };
51
53
  }
52
54
  }, _class2);
@@ -35,7 +35,7 @@ var SliderButton = (_class = class extends _chunkWN3GXVUEjs.Base {
35
35
  __init3() {this.addListener = this.events.addListener}
36
36
  __init4() {this.removeListener = this.events.removeListener}
37
37
  /** @hidden */
38
- getProtoInfo(idMap) {
38
+ getProtoInfo(idMap, _context) {
39
39
  return {
40
40
  namespace: "core",
41
41
  component: "slider_button",
@@ -26,7 +26,7 @@ var TextInput = class extends Base {
26
26
  addListener = this.events.addListener;
27
27
  removeListener = this.events.removeListener;
28
28
  /** @hidden */
29
- getProtoInfo = (idMap) => {
29
+ getProtoInfo = (idMap, _context) => {
30
30
  return {
31
31
  namespace: "core",
32
32
  component: "text-input",
@@ -26,7 +26,7 @@ var TextInput = (_class = class extends _chunkWN3GXVUEjs.Base {
26
26
  __init2() {this.addListener = this.events.addListener}
27
27
  __init3() {this.removeListener = this.events.removeListener}
28
28
  /** @hidden */
29
- __init4() {this.getProtoInfo = (idMap) => {
29
+ __init4() {this.getProtoInfo = (idMap, _context) => {
30
30
  return {
31
31
  namespace: "core",
32
32
  component: "text-input",
@@ -8,7 +8,7 @@ var Label = class extends Base {
8
8
  super({ text: null }, props);
9
9
  }
10
10
  /** @hidden */
11
- getProtoInfo(idMap) {
11
+ getProtoInfo(idMap, _context) {
12
12
  return {
13
13
  namespace: "core",
14
14
  component: "label",
@@ -35,7 +35,7 @@ var SliderButton = class extends Base {
35
35
  addListener = this.events.addListener;
36
36
  removeListener = this.events.removeListener;
37
37
  /** @hidden */
38
- getProtoInfo(idMap) {
38
+ getProtoInfo(idMap, _context) {
39
39
  return {
40
40
  namespace: "core",
41
41
  component: "slider_button",
@@ -31,7 +31,7 @@ var Switch = class extends Base {
31
31
  addListener = this.events.addListener;
32
32
  removeListener = this.events.removeListener;
33
33
  /** @hidden */
34
- getProtoInfo(idMap) {
34
+ getProtoInfo(idMap, _context) {
35
35
  return {
36
36
  namespace: "core",
37
37
  component: "switch",
@@ -10,12 +10,12 @@ var Tab = class extends BaseParent {
10
10
  }
11
11
  };
12
12
  /** @hidden */
13
- getProtoInfo = (idMap) => ({
13
+ getProtoInfo = (idMap, context) => ({
14
14
  namespace: "core",
15
15
  component: "tab",
16
16
  key: idMap.getId(this),
17
17
  name: this.props.name,
18
- child: this.getChildren().slice(0, 1).map((c) => c.getProtoInfo(idMap))[0]
18
+ child: this.getChildren().slice(0, 1).map((c) => c.getProtoInfo(idMap, context))[0]
19
19
  });
20
20
  };
21
21
  var Tabs = class extends BaseParent {
@@ -41,12 +41,14 @@ var Tabs = class extends BaseParent {
41
41
  return component;
42
42
  }
43
43
  /** @hidden */
44
- getProtoInfo(idMap) {
44
+ getProtoInfo(idMap, context) {
45
45
  return {
46
46
  namespace: "core",
47
47
  component: "tabs",
48
48
  key: idMap.getId(this),
49
- tabs: this.getChildren().map((c) => c.getProtoInfo(idMap))
49
+ tabs: this.getChildren().map(
50
+ (c) => c.getProtoInfo(idMap, context)
51
+ )
50
52
  };
51
53
  }
52
54
  };
@@ -11,7 +11,7 @@ var Rect = class extends Base {
11
11
  super(DEFAULT_PROPS, props);
12
12
  }
13
13
  /** @hidden */
14
- getProtoInfo(idMap) {
14
+ getProtoInfo(idMap, _context) {
15
15
  return {
16
16
  namespace: "core",
17
17
  component: "rect",
@@ -8,7 +8,7 @@ var Label = class extends _chunkWN3GXVUEjs.Base {
8
8
  super({ text: null }, props);
9
9
  }
10
10
  /** @hidden */
11
- getProtoInfo(idMap) {
11
+ getProtoInfo(idMap, _context) {
12
12
  return {
13
13
  namespace: "core",
14
14
  component: "label",
@@ -17,11 +17,11 @@ var GroupHeader = class extends BaseParent {
17
17
  validateChildren = () => {
18
18
  };
19
19
  /** @hidden */
20
- getProtoInfo = (idMap) => ({
20
+ getProtoInfo = (idMap, context) => ({
21
21
  namespace: "core",
22
22
  component: "group-header",
23
23
  key: idMap.getId(this),
24
- children: this.getChildren().map((c) => c.getProtoInfo(idMap))
24
+ children: this.getChildren().map((c) => c.getProtoInfo(idMap, context))
25
25
  });
26
26
  };
27
27
  var Group = class extends BaseParent {
@@ -76,11 +76,11 @@ var Group = class extends BaseParent {
76
76
  }
77
77
  };
78
78
  /** @hidden */
79
- getProtoInfo = (idMap) => {
79
+ getProtoInfo = (idMap, context) => {
80
80
  const children = [];
81
81
  const headers = [];
82
82
  for (const c of this.getChildren()) {
83
- const childProto = c.getProtoInfo(idMap);
83
+ const childProto = c.getProtoInfo(idMap, context);
84
84
  if (proto.isCoreComponent(childProto) && childProto.component === "group-header") {
85
85
  headers.push(childProto);
86
86
  } else {
@@ -18,7 +18,7 @@ var Timeline = (_class = class extends _chunkWN3GXVUEjs.Base {
18
18
  super(DEFAULT_PROPS, props);_class.prototype.__init.call(this);;
19
19
  }
20
20
  /** @hidden */
21
- __init() {this.getProtoInfo = (idMap) => ({
21
+ __init() {this.getProtoInfo = (idMap, _context) => ({
22
22
  namespace: "core",
23
23
  component: "timeline",
24
24
  key: idMap.getId(this),
@@ -17,11 +17,11 @@ var GroupHeader = (_class = class extends _chunkWN3GXVUEjs.BaseParent {construct
17
17
  __init() {this.validateChildren = () => {
18
18
  }}
19
19
  /** @hidden */
20
- __init2() {this.getProtoInfo = (idMap) => ({
20
+ __init2() {this.getProtoInfo = (idMap, context) => ({
21
21
  namespace: "core",
22
22
  component: "group-header",
23
23
  key: idMap.getId(this),
24
- children: this.getChildren().map((c) => c.getProtoInfo(idMap))
24
+ children: this.getChildren().map((c) => c.getProtoInfo(idMap, context))
25
25
  })}
26
26
  }, _class);
27
27
  var Group = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
@@ -76,11 +76,11 @@ var Group = (_class2 = class extends _chunkWN3GXVUEjs.BaseParent {
76
76
  }
77
77
  }}
78
78
  /** @hidden */
79
- __init14() {this.getProtoInfo = (idMap) => {
79
+ __init14() {this.getProtoInfo = (idMap, context) => {
80
80
  const children = [];
81
81
  const headers = [];
82
82
  for (const c of this.getChildren()) {
83
- const childProto = c.getProtoInfo(idMap);
83
+ const childProto = c.getProtoInfo(idMap, context);
84
84
  if (proto.isCoreComponent(childProto) && childProto.component === "group-header") {
85
85
  headers.push(childProto);
86
86
  } else {