@e1011/es-kit 1.1.0 → 1.1.1

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 (111) hide show
  1. package/dist/hooks/esm/index.css +55 -55
  2. package/dist/hooks/index.css +55 -55
  3. package/dist/lib/cjs/_virtual/_rollupPluginBabelHelpers.js +1 -1
  4. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/native.js +2 -0
  5. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
  6. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/rng.js +2 -0
  7. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/rng.js.map +1 -0
  8. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/stringify.js +2 -0
  9. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -0
  10. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/v4.js +2 -0
  11. package/dist/lib/cjs/node_modules/uuid/dist/esm-browser/v4.js.map +1 -0
  12. package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/index.js +2 -0
  13. package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/index.js.map +1 -0
  14. package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/peregrineMQ.js +2 -0
  15. package/dist/lib/cjs/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -0
  16. package/dist/lib/cjs/src/core/utils/appState/stateMachine/tiny-state-machine.base.js +2 -0
  17. package/dist/lib/cjs/src/core/utils/appState/stateMachine/tiny-state-machine.base.js.map +1 -0
  18. package/dist/lib/cjs/src/core/utils/appState/store/store.vanillajs.js +1 -1
  19. package/dist/lib/cjs/src/core/utils/appState/store/store.vanillajs.js.map +1 -1
  20. package/dist/lib/cjs/src/core/utils/appState/store/useStore.react.js.map +1 -1
  21. package/dist/lib/cjs/src/core/utils/helpers/other.js +1 -1
  22. package/dist/lib/cjs/src/core/utils/helpers/other.js.map +1 -1
  23. package/dist/lib/cjs/src/index.js +1 -1
  24. package/dist/lib/esm/_virtual/_rollupPluginBabelHelpers.js +1 -1
  25. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/native.js +2 -0
  26. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
  27. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/rng.js +2 -0
  28. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/rng.js.map +1 -0
  29. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/stringify.js +2 -0
  30. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -0
  31. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/v4.js +2 -0
  32. package/dist/lib/esm/node_modules/uuid/dist/esm-browser/v4.js.map +1 -0
  33. package/dist/lib/esm/src/core/utils/appState/peregrineMQ/index.js +2 -0
  34. package/dist/lib/esm/src/core/utils/appState/peregrineMQ/index.js.map +1 -0
  35. package/dist/lib/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js +2 -0
  36. package/dist/lib/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -0
  37. package/dist/lib/esm/src/core/utils/appState/stateMachine/tiny-state-machine.base.js +2 -0
  38. package/dist/lib/esm/src/core/utils/appState/stateMachine/tiny-state-machine.base.js.map +1 -0
  39. package/dist/lib/esm/src/core/utils/appState/store/store.vanillajs.js +1 -1
  40. package/dist/lib/esm/src/core/utils/appState/store/store.vanillajs.js.map +1 -1
  41. package/dist/lib/esm/src/core/utils/appState/store/useStore.react.js.map +1 -1
  42. package/dist/lib/esm/src/core/utils/helpers/other.js +1 -1
  43. package/dist/lib/esm/src/core/utils/helpers/other.js.map +1 -1
  44. package/dist/lib/esm/src/index.js +1 -1
  45. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  46. package/dist/types/src/core/utils/appState/peregrineMQ/index.d.ts +2 -1
  47. package/dist/types/src/core/utils/appState/peregrineMQ/index.d.ts.map +1 -1
  48. package/dist/types/src/core/utils/appState/peregrineMQ/peregrineMQ.d.ts +8 -8
  49. package/dist/types/src/core/utils/appState/peregrineMQ/peregrineMQ.d.ts.map +1 -1
  50. package/dist/types/src/core/utils/appState/peregrineMQ/peregrineMQ.stories.d.ts.map +1 -1
  51. package/dist/types/src/core/utils/appState/peregrineMQ/peregrineMQ.types.d.ts +38 -45
  52. package/dist/types/src/core/utils/appState/peregrineMQ/peregrineMQ.types.d.ts.map +1 -1
  53. package/dist/types/src/core/utils/appState/peregrineMQ/usePeregrineMQ.react.d.ts +10 -0
  54. package/dist/types/src/core/utils/appState/peregrineMQ/usePeregrineMQ.react.d.ts.map +1 -0
  55. package/dist/types/src/core/utils/appState/stateMachine/index.d.ts +2 -0
  56. package/dist/types/src/core/utils/appState/stateMachine/index.d.ts.map +1 -0
  57. package/dist/types/src/core/utils/appState/stateMachine/tiny-state-machine.base.d.ts +7 -7
  58. package/dist/types/src/core/utils/appState/stateMachine/tiny-state-machine.base.d.ts.map +1 -1
  59. package/dist/types/src/core/utils/appState/store/asyncFunc.spec.d.ts +2 -0
  60. package/dist/types/src/core/utils/appState/store/asyncFunc.spec.d.ts.map +1 -0
  61. package/dist/types/src/core/utils/appState/store/store.stories.d.ts.map +1 -1
  62. package/dist/types/src/core/utils/appState/store/store.vanillajs.d.ts.map +1 -1
  63. package/dist/types/src/core/utils/helpers/other.d.ts +2 -0
  64. package/dist/types/src/core/utils/helpers/other.d.ts.map +1 -1
  65. package/dist/types/src/core/utils/index.d.ts +2 -0
  66. package/dist/types/src/core/utils/index.d.ts.map +1 -1
  67. package/dist/utils/_virtual/_rollupPluginBabelHelpers.js +1 -1
  68. package/dist/utils/esm/_virtual/_rollupPluginBabelHelpers.js +1 -1
  69. package/dist/utils/esm/index.css +55 -55
  70. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/native.js +2 -0
  71. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
  72. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/rng.js +2 -0
  73. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/rng.js.map +1 -0
  74. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/stringify.js +2 -0
  75. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -0
  76. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/v4.js +2 -0
  77. package/dist/utils/esm/node_modules/uuid/dist/esm-browser/v4.js.map +1 -0
  78. package/dist/utils/esm/src/core/utils/appState/peregrineMQ/index.js +2 -0
  79. package/dist/utils/esm/src/core/utils/appState/peregrineMQ/index.js.map +1 -0
  80. package/dist/utils/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js +2 -0
  81. package/dist/utils/esm/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -0
  82. package/dist/utils/esm/src/core/utils/appState/stateMachine/tiny-state-machine.base.js +2 -0
  83. package/dist/utils/esm/src/core/utils/appState/stateMachine/tiny-state-machine.base.js.map +1 -0
  84. package/dist/utils/esm/src/core/utils/appState/store/store.vanillajs.js +1 -1
  85. package/dist/utils/esm/src/core/utils/appState/store/store.vanillajs.js.map +1 -1
  86. package/dist/utils/esm/src/core/utils/appState/store/useStore.react.js.map +1 -1
  87. package/dist/utils/esm/src/core/utils/helpers/other.js +1 -1
  88. package/dist/utils/esm/src/core/utils/helpers/other.js.map +1 -1
  89. package/dist/utils/esm/src/core/utils/index.js +1 -1
  90. package/dist/utils/index.css +55 -55
  91. package/dist/utils/node_modules/uuid/dist/esm-browser/native.js +2 -0
  92. package/dist/utils/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
  93. package/dist/utils/node_modules/uuid/dist/esm-browser/rng.js +2 -0
  94. package/dist/utils/node_modules/uuid/dist/esm-browser/rng.js.map +1 -0
  95. package/dist/utils/node_modules/uuid/dist/esm-browser/stringify.js +2 -0
  96. package/dist/utils/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -0
  97. package/dist/utils/node_modules/uuid/dist/esm-browser/v4.js +2 -0
  98. package/dist/utils/node_modules/uuid/dist/esm-browser/v4.js.map +1 -0
  99. package/dist/utils/src/core/utils/appState/peregrineMQ/index.js +2 -0
  100. package/dist/utils/src/core/utils/appState/peregrineMQ/index.js.map +1 -0
  101. package/dist/utils/src/core/utils/appState/peregrineMQ/peregrineMQ.js +2 -0
  102. package/dist/utils/src/core/utils/appState/peregrineMQ/peregrineMQ.js.map +1 -0
  103. package/dist/utils/src/core/utils/appState/stateMachine/tiny-state-machine.base.js +2 -0
  104. package/dist/utils/src/core/utils/appState/stateMachine/tiny-state-machine.base.js.map +1 -0
  105. package/dist/utils/src/core/utils/appState/store/store.vanillajs.js +1 -1
  106. package/dist/utils/src/core/utils/appState/store/store.vanillajs.js.map +1 -1
  107. package/dist/utils/src/core/utils/appState/store/useStore.react.js.map +1 -1
  108. package/dist/utils/src/core/utils/helpers/other.js +1 -1
  109. package/dist/utils/src/core/utils/helpers/other.js.map +1 -1
  110. package/dist/utils/src/core/utils/index.js +1 -1
  111. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import { PeregrineMQ } from './peregrineMQ';
2
- declare const peregrineMQInstance: PeregrineMQ;
2
+ export { PeregrineMQ, PeregrineMQClearError } from './peregrineMQ';
3
+ export declare const peregrineMQInstance: PeregrineMQ;
3
4
  export default peregrineMQInstance;
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/peregrineMQ/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,QAAA,MAAM,mBAAmB,aAAoB,CAAA;AAE7C,eAAe,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/peregrineMQ/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAElE,eAAO,MAAM,mBAAmB,aAAoB,CAAA;AAEpD,eAAe,mBAAmB,CAAA"}
@@ -1,4 +1,7 @@
1
1
  import { Callback, Config, PeregrineMQApi, UnsubscribeOptions } from './peregrineMQ.types';
2
+ export declare class PeregrineMQClearError extends Error {
3
+ constructor();
4
+ }
2
5
  /**
3
6
  * Represents a message queue with publish/subscribe functionality.
4
7
  */
@@ -21,15 +24,15 @@ export declare class PeregrineMQ implements PeregrineMQApi {
21
24
  private addListener;
22
25
  /**
23
26
  * Removes the callback from the listeners collection if it is not subscribed to any channels.
24
- * @description Removes the calback only when it's ot presented in any other subscriberSet
27
+ * @description Removes the callback only when it is not present in any other subscriberSet
25
28
  * (Ref to Map<string, SubscribersSet>).
26
- * @param callback The callback to remove form listeners.
29
+ * @param callback The callback to remove from listeners.
27
30
  */
28
31
  private removeListener;
29
32
  /**
30
33
  * Publishes data to a channel.
31
34
  * @param channel The channel to publish the data to.
32
- * @param isParrent Indicates if the channel is a parent channel.
35
+ * @param isParent Indicates if the channel is a parent channel.
33
36
  * @param data The data to publish.
34
37
  * @returns A boolean indicating if the publication was successful.
35
38
  */
@@ -92,7 +95,6 @@ export declare class PeregrineMQ implements PeregrineMQApi {
92
95
  unsubscribe: (callback: Callback, options?: UnsubscribeOptions) => boolean;
93
96
  /**
94
97
  * Checks if a callback is subscribed to a specific channel or any channel.
95
- *
96
98
  * @param callback The callback function to check.
97
99
  * @param channel Optional channel name to check subscription for.
98
100
  * @returns A boolean indicating if the callback is subscribed.
@@ -100,14 +102,12 @@ export declare class PeregrineMQ implements PeregrineMQApi {
100
102
  isSubscribed: (callback: Callback, channel?: string) => boolean;
101
103
  /**
102
104
  * Clears all channels and listeners.
103
- *
104
105
  * @throws {Error} If clearing PeregrineMQ is not allowed.
105
106
  */
106
107
  clear: () => void;
107
108
  /**
108
- * Returns the specific instance of PeregrineMQ
109
- *
110
- * @returns A string identifier of the specific instance of PeregrineMQ
109
+ * Returns the specific instance of PeregrineMQ.
110
+ * @returns A string identifier of the specific instance of PeregrineMQ.
111
111
  */
112
112
  getId: () => string;
113
113
  }
@@ -1 +1 @@
1
- {"version":3,"file":"peregrineMQ.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/peregrineMQ/peregrineMQ.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAkB,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAE1G;;GAEG;AACH,qBAAa,WAAY,YAAW,cAAc;IAChD,OAAO,CAAC,EAAE,CAAQ;IAElB,OAAO,CAAC,MAAM,CAIb;IAED;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAyC;IAEzD;;OAEG;IACH,OAAO,CAAC,SAAS,CAA6C;IAE9D;;;;OAIG;IACH,OAAO,CAAC,WAAW,CAQlB;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAc,CAYrB;IAED;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB,CAgBvB;IAED;;;;OAIG;gBACS,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAKxC;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;OAIG;IACH,SAAS,WAAY,MAAM,KAAG;QAC5B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;QAC/B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAA;KAClC,CA8BA;IAED;;;OAGG;IACH,WAAW,QAAO,MAAM,EAAE,CAA6B;IAEvD;;;OAGG;IACH,KAAK,QAAO,MAAM,EAAE,CAenB;IAED;;;;OAIG;IACH,aAAa,YAAa,MAAM,KAAG,OAAO,CAuBzC;IAED;;;;;OAKG;IACH,OAAO,eAAgB,MAAM,SAAS,CAAC,KAAG,OAAO,CAoBhD;IAED;;;;;OAKG;IACH,SAAS,YAAa,MAAM,YAAY,QAAQ,KAAG,MAAM,OAAO,CAY/D;IAED;;;;;OAKG;IACH,WAAW,aAAc,QAAQ,YAAY,kBAAkB,KAAG,OAAO,CAgCxE;IAED;;;;;;OAMG;IACH,YAAY,aAAc,QAAQ,YAAY,MAAM,KAAG,OAAO,CAQ7D;IAED;;;;OAIG;IACH,KAAK,QAAO,IAAI,CAOf;IAED;;;;OAIG;IACH,KAAK,QAAO,MAAM,CAAW;CAC9B"}
1
+ {"version":3,"file":"peregrineMQ.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/peregrineMQ/peregrineMQ.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAkB,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAG1G,qBAAa,qBAAsB,SAAQ,KAAK;;CAK/C;AAED;;GAEG;AACH,qBAAa,WAAY,YAAW,cAAc;IAChD,OAAO,CAAC,EAAE,CAAQ;IAElB,OAAO,CAAC,MAAM,CAIb;IAED;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAyC;IAEzD;;OAEG;IACH,OAAO,CAAC,SAAS,CAA6C;IAE9D;;;;OAIG;IACH,OAAO,CAAC,WAAW,CAWlB;IAED;;;;;OAKG;IACH,OAAO,CAAC,cAAc,CAerB;IAED;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB,CAgBvB;IAED;;;;OAIG;gBACS,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAKxC;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED;;;;OAIG;IACH,SAAS,WAAY,MAAM,KAAG;QAC5B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;QAC/B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAA;KAClC,CA8BA;IAED;;;OAGG;IACH,WAAW,QAAO,MAAM,EAAE,CAA6B;IAEvD;;;OAGG;IACH,KAAK,QAAO,MAAM,EAAE,CAenB;IAED;;;;OAIG;IACH,aAAa,YAAa,MAAM,KAAG,OAAO,CAiBzC;IAED;;;;;OAKG;IACH,OAAO,eAAgB,MAAM,SAAS,CAAC,KAAG,OAAO,CAuBhD;IAED;;;;;OAKG;IACH,SAAS,YAAa,MAAM,YAAY,QAAQ,KAAG,MAAM,OAAO,CAY/D;IAED;;;;;OAKG;IACH,WAAW,aAAc,QAAQ,YAAY,kBAAkB,KAAG,OAAO,CAkCxE;IAED;;;;;OAKG;IACH,YAAY,aAAc,QAAQ,YAAY,MAAM,KAAG,OAAO,CAQ7D;IAED;;;OAGG;IACH,KAAK,QAAO,IAAI,CAOf;IAED;;;OAGG;IACH,KAAK,QAAO,MAAM,CAAW;CAC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"peregrineMQ.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/peregrineMQ/peregrineMQ.stories.tsx"],"names":[],"mappings":";AAYA,wBAGS;AA8HT,eAAO,MAAM,qBAAqB,4FAAyC,CAAA"}
1
+ {"version":3,"file":"peregrineMQ.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/peregrineMQ/peregrineMQ.stories.tsx"],"names":[],"mappings":";AAWA,wBAGS;AA6FT,eAAO,MAAM,qBAAqB,4FAAyC,CAAA"}
@@ -3,26 +3,25 @@ export type Callback = (message: string, data?: CallbackPayload) => void;
3
3
  export type SubscribersSet = Set<Callback>;
4
4
  export interface Config {
5
5
  /**
6
- * If true, enables automatic pruning of channels with no subscribers.
6
+ * If true, enables automatic removal of channels without subscribers.
7
7
  */
8
8
  allowAutoPrune?: boolean;
9
9
  /**
10
- * The interval in milliseconds at which to check for channels with no
11
- * subscribers.
10
+ * The interval, in milliseconds, for checking channels with no subscribers.
12
11
  */
13
12
  pruneInterval?: number;
14
13
  /**
15
- * If true, will allow the use of clear method to remove all channels and listeners.
14
+ * If true, allows the use of the clear method to remove all channels and listeners.
16
15
  */
17
16
  allowClear?: boolean;
18
17
  }
19
18
  export interface UnsubscribeOptions {
20
19
  /**
21
- * Channel to unsubscribe from
20
+ * The channel to unsubscribe from.
22
21
  */
23
22
  channel?: string;
24
23
  /**
25
- * If true, will remove the channel from the collection when the last subscriber is removed
24
+ * If true, removes the channel from the collection when the last subscriber is removed.
26
25
  */
27
26
  prune?: boolean;
28
27
  }
@@ -30,81 +29,75 @@ export interface PeregrineMQApi {
30
29
  /**
31
30
  * Sets the configuration options for a PeregrineMQ instance.
32
31
  *
33
- * @param {Config} config - An object containing configuration options for the function.
32
+ * @param {Config} config - An object containing configuration options for the instance.
34
33
  * @return {void}
35
34
  */
36
35
  configure: (config: Config) => void;
37
36
  /**
38
- * Collection of all channels and their subscribers
39
- * @function
37
+ * Retrieves a list of all channels and their subscribers.
38
+ *
40
39
  * @return { string[] }
41
40
  */
42
41
  getChannels: () => string[];
43
42
  /**
44
- * Prunes all channels with no subscribers.
43
+ * Removes all channels that have no subscribers.
45
44
  *
46
- * @function
47
- * @returns {void}
45
+ * @return {void}
48
46
  */
49
47
  prune: () => void;
50
48
  /**
51
- * Removes a channel from the collection.
49
+ * Removes a specified channel from the collection.
52
50
  *
53
51
  * @param {string} channel - The name of the channel to remove.
54
- * @returns {boolean} - Returns true if the channel was successfully removed, false otherwise.
52
+ * @return {boolean} - Returns true if the channel was successfully removed, otherwise false.
55
53
  */
56
54
  removeChannel: (channel: string) => boolean;
57
55
  /**
58
- * Publishes the message, passing the data to it's subscribers
59
- * @function
60
- * @param { String } channel The channel to publish
61
- * @param {} data The data to pass to subscribers
62
- * @return { Boolean }
56
+ * Publishes a message to a specified channel, passing the data to its subscribers.
57
+ *
58
+ * @param {string} channel - The channel to publish the message to.
59
+ * @param {unknown} [data] - The data to pass to subscribers.
60
+ * @return {boolean} - Returns true if the message was successfully published, otherwise false.
63
61
  */
64
62
  publish: (channel: string, data?: unknown) => boolean;
65
63
  /**
66
- * Subscribes the passed function to the passed message.
67
- * Every returned token is unique and should be stored if you need to unsubscribe
68
- * @function
69
- * @param { String } channel The channel name to subscribe to
70
- * @param { Function } callback The function to call when a new message is published
71
- * @return { Function } The unsubscribe function
64
+ * Subscribes a function to a specified channel.
65
+ * The returned unsubscribe function is unique and should be stored for later use.
66
+ *
67
+ * @param {string} channel - The channel name to subscribe to.
68
+ * @param {Callback} callback - The function to call when a new message is published.
69
+ * @return {() => boolean} - The unsubscribe function.
72
70
  */
73
71
  subscribe: (channel: string, callback: Callback) => () => boolean;
74
72
  /**
75
- * Unsubscribes a callback from a channel. Returns true if the callback was successfully
76
- * unsubscribed, false otherwise.
77
- *
78
- * @param callback The callback to unsubscribe.
79
- * @param channel (optional) The channel from which to unsubscribe the callback. If no channel is
80
- * specified, the callback will be unsubscribed from all channels.
73
+ * Unsubscribes a callback from a channel.
74
+ * Returns true if the callback was successfully unsubscribed, otherwise false.
81
75
  *
82
- * @returns True if the callback was successfully unsubscribed, false otherwise.
76
+ * @param {Callback} callback - The callback to unsubscribe.
77
+ * @param {UnsubscribeOptions} [options] - Options for unsubscribing, including the channel.
78
+ * @return {boolean} - Returns true if the callback was successfully unsubscribed, otherwise false.
83
79
  */
84
80
  unsubscribe: (callback: Callback, options?: UnsubscribeOptions) => boolean;
85
81
  /**
86
- * Returns true if the specified callback is subscribed to the specified channel (or to any
87
- * channel, if no channel is specified), false otherwise.
88
- *
89
- * @param callback The callback to check for subscription.
90
- * @param channel (optional) The channel to check for subscription. If no channel is specified, all
91
- * channels will be checked.
82
+ * Checks if a specified callback is subscribed to a specified channel (or any channel if not specified).
92
83
  *
93
- * @returns True if the specified callback is subscribed to the specified channel (or to any
94
- * channel, if no channel is specified), false otherwise.
84
+ * @param {Callback} callback - The callback to check for subscription.
85
+ * @param {string} [channel] - The channel to check for subscription. If not specified, all channels will be checked.
86
+ * @return {boolean} - Returns true if the callback is subscribed, otherwise false.
95
87
  */
96
88
  isSubscribed: (callback: Callback, channel?: string) => boolean;
97
89
  /**
98
- * Removes all channels and subsribers from collection
90
+ * Removes all channels and subscribers from the collection.
91
+ *
99
92
  * @function
100
93
  * @alias clear
101
94
  */
102
95
  clear: () => void;
103
96
  /**
104
- * Returns the specific instance of PeregrineMQ
105
- *
106
- * @returns A string identifier of the specific instance of PeregrineMQ
107
- */
97
+ * Retrieves the identifier for the specific instance of PeregrineMQ.
98
+ *
99
+ * @return {string} - A string identifier for the specific instance.
100
+ */
108
101
  getId: () => string;
109
102
  }
110
103
  //# sourceMappingURL=peregrineMQ.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"peregrineMQ.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/peregrineMQ/peregrineMQ.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,eAAe,KAAK,IAAI,CAAA;AAExE,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAA;AAE1C,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;;OAIG;IACH,WAAW,EAAE,MAAM,MAAM,EAAE,CAAA;IAE3B;;;;;OAKG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;;;;OAKG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;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;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAEnC;;;;OAIG;IACH,WAAW,EAAE,MAAM,MAAM,EAAE,CAAA;IAE3B;;;;OAIG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;;;;OAKG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;IAE3C;;;;;;OAMG;IACH,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,OAAO,CAAA;IAErD;;;;;;;OAOG;IACH,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,KAAK,MAAM,OAAO,CAAA;IAEjE;;;;;;;OAOG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAA;IAE1E;;;;;;OAMG;IACH,YAAY,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAA;IAE/D;;;;;OAKG;IACH,KAAK,EAAE,MAAM,IAAI,CAAA;IAEjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,MAAM,CAAA;CACpB"}
@@ -0,0 +1,10 @@
1
+ import { PeregrineMQ } from './peregrineMQ';
2
+ import { Callback } from './peregrineMQ.types';
3
+ export type usePeregrineMQReturnType = [
4
+ {
5
+ current?: () => boolean;
6
+ },
7
+ <T>(channel: string, data?: T) => boolean
8
+ ];
9
+ export declare const usePeregrineMQ: (peregrineInstance: PeregrineMQ, channel: string, callback: Callback) => usePeregrineMQReturnType;
10
+ //# sourceMappingURL=usePeregrineMQ.react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePeregrineMQ.react.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/peregrineMQ/usePeregrineMQ.react.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAE9C,MAAM,MAAM,wBAAwB,GAAG;IACrC;QAAE,OAAO,CAAC,EAAE,MAAM,OAAO,CAAA;KAAE;IAC3B,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,OAAO;CAC1C,CAAA;AAED,eAAO,MAAM,cAAc,sBACN,WAAW,WAAW,MAAM,YAAY,QAAQ,6BAepE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './tiny-state-machine.base';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/stateMachine/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
@@ -5,13 +5,13 @@ export declare enum TinyStateMachineEventType {
5
5
  ADDED_TO_QUEUE = "addedToQueue",
6
6
  REMOVED_FROM_QUEUE = "removedFromQueue"
7
7
  }
8
- export type ListenerCallBack = (stateEvent: TinyStateMachineEvent, state?: ITinyStateMachineState) => void;
8
+ export type TinyStateMachineListenerCallBack = (stateEvent: TinyStateMachineEvent, state?: ITinyStateMachineState) => void;
9
9
  export declare class TinyStateMachineEvent extends Event {
10
10
  constructor(type: TinyStateMachineEventType, eventInitDict?: any);
11
11
  }
12
12
  interface IPubSub {
13
- subscribe: (listener: ListenerCallBack) => () => void;
14
- unsubscribe: (listener: ListenerCallBack) => void;
13
+ subscribe: (listener: TinyStateMachineListenerCallBack) => () => void;
14
+ unsubscribe: (listener: TinyStateMachineListenerCallBack) => void;
15
15
  publish: (...args: any[]) => void;
16
16
  }
17
17
  export interface ITinyStateMachineState extends IPubSub {
@@ -21,8 +21,8 @@ export declare class TinyStateMachineState implements ITinyStateMachineState {
21
21
  #private;
22
22
  constructor(name: string);
23
23
  get name(): string;
24
- subscribe: (listener: ListenerCallBack) => () => void;
25
- unsubscribe: (listener: ListenerCallBack) => boolean;
24
+ subscribe: (listener: TinyStateMachineListenerCallBack) => () => void;
25
+ unsubscribe: (listener: TinyStateMachineListenerCallBack) => boolean;
26
26
  publish: (event: TinyStateMachineEvent) => void;
27
27
  toString: () => string;
28
28
  get [Symbol.toStringTag](): string;
@@ -42,8 +42,8 @@ export declare class TinyStateMachine implements ITinyStateMachine {
42
42
  removeState: (state: TinyStateMachineState) => void;
43
43
  get states(): Set<TinyStateMachineState>;
44
44
  get currentState(): undefined | TinyStateMachineState;
45
- subscribe: (listener: ListenerCallBack) => () => void;
46
- unsubscribe: (listener: ListenerCallBack) => void;
45
+ subscribe: (listener: TinyStateMachineListenerCallBack) => () => void;
46
+ unsubscribe: (listener: TinyStateMachineListenerCallBack) => void;
47
47
  publish: (event: TinyStateMachineEvent, state?: TinyStateMachineState) => void;
48
48
  gotoState: (state: TinyStateMachineState | string) => void | boolean;
49
49
  next: () => TinyStateMachineState | null;
@@ -1 +1 @@
1
- {"version":3,"file":"tiny-state-machine.base.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/stateMachine/tiny-state-machine.base.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACnC,MAAM,WAAW;IACjB,eAAe,mBAAmB;IAClC,iBAAiB,qBAAqB;IACtC,cAAc,iBAAiB;IAC/B,kBAAkB,qBAAqB;CACxC;AAED,MAAM,MAAM,gBAAgB,GAAG,CAC7B,UAAU,EAAE,qBAAqB,EACjC,KAAK,CAAC,EAAE,sBAAsB,KAC3B,IAAI,CAAC;AAEV,qBAAa,qBAAsB,SAAQ,KAAK;gBAClC,IAAI,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,GAAG;CAGjE;AAED,UAAU,OAAO;IACf,SAAS,EAAE,CAAC,QAAQ,EAAE,gBAAgB,KAAK,MAAM,IAAI,CAAA;IACrD,WAAW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qBAAqB,CAErD;IAED,SAAS,aAAc,gBAAgB,KAAG,MAAM,IAAI,CAGnD;IAED,WAAW,aAAc,gBAAgB,KAAG,IAAI,CAE/C;IAED,OAAO,UAAW,qBAAqB,UAAU,qBAAqB,KAAG,IAAI,CAQ5E;IAQD,SAAS,UAAW,qBAAqB,GAAG,MAAM,KAAG,IAAI,GAAG,OAAO,CAkBlE;IAED,IAAI,QAAO,qBAAqB,GAAG,IAAI,CAmBtC;CACF;AAKD,eAAO,MAAM,aAAa;;;;;CA6BzB,CAAA"}
1
+ {"version":3,"file":"tiny-state-machine.base.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/stateMachine/tiny-state-machine.base.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACnC,MAAM,WAAW;IACjB,eAAe,mBAAmB;IAClC,iBAAiB,qBAAqB;IACtC,cAAc,iBAAiB;IAC/B,kBAAkB,qBAAqB;CACxC;AAED,MAAM,MAAM,gCAAgC,GAAG,CAC7C,UAAU,EAAE,qBAAqB,EACjC,KAAK,CAAC,EAAE,sBAAsB,KAC3B,IAAI,CAAC;AAEV,qBAAa,qBAAsB,SAAQ,KAAK;gBAClC,IAAI,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,GAAG;CAGjE;AAED,UAAU,OAAO;IACf,SAAS,EAAE,CAAC,QAAQ,EAAE,gCAAgC,KAAK,MAAM,IAAI,CAAA;IACrE,WAAW,EAAE,CAAC,QAAQ,EAAE,gCAAgC,KAAK,IAAI,CAAA;IACjE,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;CAClC;AAED,MAAM,WAAW,sBAAuB,SAAQ,OAAO;IACrD,IAAI,EAAE,MAAM,CAAA;CACb;AAED,qBAAa,qBAAsB,YAAW,sBAAsB;;gBAKtD,IAAI,EAAE,MAAM;IAKxB,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,SAAS,aAAc,gCAAgC,KAAG,MAAM,I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0 +1,2 @@
1
+ declare const AsyncFunction: Function;
2
+ //# sourceMappingURL=asyncFunc.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncFunc.spec.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/store/asyncFunc.spec.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,UAA8C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"store.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/store/store.stories.tsx"],"names":[],"mappings":";AASA,wBAGS;AA+DT,eAAO,MAAM,eAAe,4FAAmC,CAAA"}
1
+ {"version":3,"file":"store.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/store/store.stories.tsx"],"names":[],"mappings":";AAUA,wBAGS;AAwFT,eAAO,MAAM,eAAe,4FAAmC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"store.vanillajs.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/store/store.vanillajs.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA;AAE7D;;GAEG;AAEH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,GAC9D,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,GAAG,SAAS,EAAE,CAAC;AACxF,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAGtE;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;IACxB,QAAQ,CAAC,EAAE,QAAQ,CA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,CACvB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EACjB,MAAM,EAAE,MAAM,EACd,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,CAAC,CAAC,CAAA;AAGf;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;AAG3G;;;;;GAKG;AACH,eAAO,MAAM,WAAW,oBACR,QAAQ,CAAC,CAAC,YACd,OAAO,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,YAChC,QAAQ,CAAC,CAAC,KACnB,MAAM,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAqJ/B,CAAA"}
@@ -5,4 +5,6 @@ export declare const memoizeComplex: (...args: readonly any[]) => any;
5
5
  export declare const memoizer: (memoizeFunc?: (...args: any[]) => string) => ReturnType<typeof memoizeWith>;
6
6
  export declare const debounce: (func: () => void, wait?: number, immediate?: boolean) => () => void;
7
7
  export declare const delay: (delay: number) => Promise<string>;
8
+ export declare const AsyncFunctionTemplate: Function;
9
+ export declare const isFunctionAsync: (func: () => unknown) => boolean;
8
10
  //# sourceMappingURL=other.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"other.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/other.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,OAAO,CAAA;AAG7C,eAAO,MAAM,aAAa,cAAe,OAAO,WAAW,GAAG,WAAW,GAAG,KAAG,GAAsC,CAAA;AAIrH,eAAO,MAAM,OAAO,kCAAwB,CAAA;AAK5C,eAAO,MAAM,cAAc,kCAAiD,CAAA;AAE5E,eAAO,MAAM,QAAQ,qCAGO,MAAM,KAA2B,WAAW,kBAAkB,CAA6B,CAAA;AAEvH,eAAO,MAAM,QAAQ,SAAU,MAAM,IAAI,yCAAkC,MAAM,IAuBhF,CAAA;AAED,eAAO,MAAM,KAAK,UAAW,MAAM,KAAG,QAAQ,MAAM,CAElD,CAAA"}
1
+ {"version":3,"file":"other.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/other.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,OAAO,CAAA;AAG7C,eAAO,MAAM,aAAa,cAAe,OAAO,WAAW,GAAG,WAAW,GAAG,KAAG,GAAsC,CAAA;AAIrH,eAAO,MAAM,OAAO,kCAAwB,CAAA;AAK5C,eAAO,MAAM,cAAc,kCAAiD,CAAA;AAE5E,eAAO,MAAM,QAAQ,qCAGO,MAAM,KAA2B,WAAW,kBAAkB,CAA6B,CAAA;AAEvH,eAAO,MAAM,QAAQ,SAAU,MAAM,IAAI,yCAAkC,MAAM,IAuBhF,CAAA;AAED,eAAO,MAAM,KAAK,UAAW,MAAM,KAAG,QAAQ,MAAM,CAElD,CAAA;AAEF,eAAO,MAAM,qBAAqB,UAA8C,CAAA;AAEhF,eAAO,MAAM,eAAe,SACpB,MAAM,OAAO,KAClB,OAA2E,CAAA"}
@@ -3,4 +3,6 @@ export * from './keyExtractor';
3
3
  export * from './date';
4
4
  export * from './webComponents';
5
5
  export * from './appState/store';
6
+ export * from './appState/peregrineMQ';
7
+ export * from './appState/stateMachine';
6
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,QAAQ,CAAA;AACtB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";function n(n,t,r,e,o,i,u){try{var c=n[i](u),a=c.value}catch(n){return void r(n)}c.done?t(a):Promise.resolve(a).then(e,o)}exports.asyncToGenerator=function(t){return function(){var r=this,e=arguments;return new Promise((function(o,i){var u=t.apply(r,e);function c(t){n(u,o,i,c,a,"next",t)}function a(t){n(u,o,i,c,a,"throw",t)}c(void 0)}))}};
1
+ "use strict";function e(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}var t=0;exports.asyncToGenerator=function(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function s(t){e(a,o,i,s,c,"next",t)}function c(t){e(a,o,i,s,c,"throw",t)}s(void 0)}))}},exports.classPrivateFieldLooseBase=function(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e},exports.classPrivateFieldLooseKey=function(e){return"__private_"+t+++"_"+e};
2
2
  //# sourceMappingURL=_rollupPluginBabelHelpers.js.map
@@ -1,2 +1,2 @@
1
- function n(n,r,t,o,e,i,u){try{var a=n[i](u),c=a.value}catch(n){return void t(n)}a.done?r(c):Promise.resolve(c).then(o,e)}function r(r){return function(){var t=this,o=arguments;return new Promise((function(e,i){var u=r.apply(t,o);function a(r){n(u,e,i,a,c,"next",r)}function c(r){n(u,e,i,a,c,"throw",r)}a(void 0)}))}}export{r as asyncToGenerator};
1
+ function e(e,n,r,t,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void r(e)}s.done?n(c):Promise.resolve(c).then(t,o)}function n(n){return function(){var r=this,t=arguments;return new Promise((function(o,a){var i=n.apply(r,t);function s(n){e(i,o,a,s,c,"next",n)}function c(n){e(i,o,a,s,c,"throw",n)}s(void 0)}))}}function r(e,n){if(!{}.hasOwnProperty.call(e,n))throw new TypeError("attempted to use private field on non-instance");return e}var t=0;function o(e){return"__private_"+t+++"_"+e}export{n as asyncToGenerator,r as classPrivateFieldLooseBase,o as classPrivateFieldLooseKey};
2
2
  //# sourceMappingURL=_rollupPluginBabelHelpers.js.map
@@ -1,21 +1,44 @@
1
- .divider-module_divider-line__6CesR {
2
- position: relative;
3
- display: block;
4
- transition: opacity, width, height 250ms ease-in-out;
5
- background-color: var(--color);
6
- opacity: var(--opacity);
1
+ .CollapsibleContainer-module_collapsible-container__u0Jmm {
2
+ transform-origin: 0% 0%;
3
+ opacity: 0;
4
+ overflow: clip;
7
5
  }
8
- .divider-module_divider-line__6CesR.divider-module_vertical__qSVWD {
9
- height: var(--length);
10
- left: var(--left);
11
- width: var(--width);
12
- margin: var(--margin);
6
+ .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_vertical__w7MVN {
7
+ transition: opacity 0.2s ease-in-out, height 0.2s ease-in-out, max-height 0.2s ease-in-out;
8
+ will-change: opacity, height, max-height;
13
9
  }
14
- .divider-module_divider-line__6CesR.divider-module_horizontal__Gz-Oj {
15
- width: var(--length);
16
- left: var(--left);
17
- height: var(--height);
18
- margin: var(--margin);
10
+ .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_vertical__w7MVN.CollapsibleContainer-module_collapsed__q8fs8 {
11
+ height: 0;
12
+ max-height: 0;
13
+ opacity: 0;
14
+ }
15
+ .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_vertical__w7MVN.CollapsibleContainer-module_expanded__O6Vh8 {
16
+ height: var(--prop-value);
17
+ max-height: var(--prop-value);
18
+ opacity: 1;
19
+ }
20
+ .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_horizontal__QJWI- {
21
+ transition: opacity 0.2s ease-in-out, width 0.2s ease-in-out, max-width 0.2s ease-in-out;
22
+ will-change: opacity, width, max-width;
23
+ }
24
+ .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_horizontal__QJWI-.CollapsibleContainer-module_collapsed__q8fs8 {
25
+ width: 0;
26
+ max-width: 0;
27
+ opacity: 0;
28
+ }
29
+ .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_horizontal__QJWI-.CollapsibleContainer-module_expanded__O6Vh8 {
30
+ width: var(--prop-value);
31
+ max-width: var(--prop-value);
32
+ opacity: 1;
33
+ }
34
+ .errorBoundary-module_errorBoundary__gk9ps {
35
+ background: #EFEFEF;
36
+ width: 100%;
37
+ height: 100%;
38
+ }
39
+
40
+ .errorBoundary-module_StyledIcon__IYHiU {
41
+ margin-right: 10px;
19
42
  }
20
43
  .icon-module_icon-base-parent__nOMvW {
21
44
  line-height: 1px !important;
@@ -47,38 +70,24 @@
47
70
  width: var(--height);
48
71
  height: var(--width);
49
72
  }
50
- .CollapsibleContainer-module_collapsible-container__u0Jmm {
51
- transform-origin: 0% 0%;
52
- opacity: 0;
53
- overflow: clip;
54
- }
55
- .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_vertical__w7MVN {
56
- transition: opacity 0.2s ease-in-out, height 0.2s ease-in-out, max-height 0.2s ease-in-out;
57
- will-change: opacity, height, max-height;
58
- }
59
- .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_vertical__w7MVN.CollapsibleContainer-module_collapsed__q8fs8 {
60
- height: 0;
61
- max-height: 0;
62
- opacity: 0;
63
- }
64
- .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_vertical__w7MVN.CollapsibleContainer-module_expanded__O6Vh8 {
65
- height: var(--prop-value);
66
- max-height: var(--prop-value);
67
- opacity: 1;
68
- }
69
- .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_horizontal__QJWI- {
70
- transition: opacity 0.2s ease-in-out, width 0.2s ease-in-out, max-width 0.2s ease-in-out;
71
- will-change: opacity, width, max-width;
73
+ .divider-module_divider-line__6CesR {
74
+ position: relative;
75
+ display: block;
76
+ transition: opacity, width, height 250ms ease-in-out;
77
+ background-color: var(--color);
78
+ opacity: var(--opacity);
72
79
  }
73
- .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_horizontal__QJWI-.CollapsibleContainer-module_collapsed__q8fs8 {
74
- width: 0;
75
- max-width: 0;
76
- opacity: 0;
80
+ .divider-module_divider-line__6CesR.divider-module_vertical__qSVWD {
81
+ height: var(--length);
82
+ left: var(--left);
83
+ width: var(--width);
84
+ margin: var(--margin);
77
85
  }
78
- .CollapsibleContainer-module_collapsible-container__u0Jmm.CollapsibleContainer-module_horizontal__QJWI-.CollapsibleContainer-module_expanded__O6Vh8 {
79
- width: var(--prop-value);
80
- max-width: var(--prop-value);
81
- opacity: 1;
86
+ .divider-module_divider-line__6CesR.divider-module_horizontal__Gz-Oj {
87
+ width: var(--length);
88
+ left: var(--left);
89
+ height: var(--height);
90
+ margin: var(--margin);
82
91
  }
83
92
  .field-module_field__UfKm3 {
84
93
  opacity: 1;
@@ -154,15 +163,6 @@
154
163
  .field-module_field__UfKm3 label {
155
164
  text-align: left;
156
165
  }
157
- .errorBoundary-module_errorBoundary__gk9ps {
158
- background: #EFEFEF;
159
- width: 100%;
160
- height: 100%;
161
- }
162
-
163
- .errorBoundary-module_StyledIcon__IYHiU {
164
- margin-right: 10px;
165
- }
166
166
  .layoutBox-module_layout-box__ZIID8 {
167
167
  display: flex;
168
168
  position: relative;
@@ -0,0 +1,2 @@
1
+ var o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};export{o as default};
2
+ //# sourceMappingURL=native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native.js","sources":["../../../../../../../node_modules/uuid/dist/esm-browser/native.js"],"sourcesContent":["const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};"],"names":["native","randomUUID","crypto","bind"],"mappings":"AACA,IAAeA,EAAA,CACbC,WAFmC,oBAAXC,QAA0BA,OAAOD,YAAcC,OAAOD,WAAWE,KAAKD","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ let t;const e=new Uint8Array(16);function o(){if(!t&&(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}export{o as default};
2
+ //# sourceMappingURL=rng.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rng.js","sources":["../../../../../../../node_modules/uuid/dist/esm-browser/rng.js"],"sourcesContent":["// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}"],"names":["getRandomValues","rnds8","Uint8Array","rng","crypto","bind","Error"],"mappings":"AAGA,IAAIA,EACJ,MAAMC,EAAQ,IAAIC,WAAW,IACd,SAASC,IAEtB,IAAKH,IAEHA,EAAoC,oBAAXI,QAA0BA,OAAOJ,iBAAmBI,OAAOJ,gBAAgBK,KAAKD,SAEpGJ,GACH,MAAM,IAAIM,MAAM,4GAIpB,OAAON,EAAgBC,EACzB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ const t=[];for(let n=0;n<256;++n)t.push((n+256).toString(16).slice(1));function n(n,o=0){return t[n[o+0]]+t[n[o+1]]+t[n[o+2]]+t[n[o+3]]+"-"+t[n[o+4]]+t[n[o+5]]+"-"+t[n[o+6]]+t[n[o+7]]+"-"+t[n[o+8]]+t[n[o+9]]+"-"+t[n[o+10]]+t[n[o+11]]+t[n[o+12]]+t[n[o+13]]+t[n[o+14]]+t[n[o+15]]}export{n as unsafeStringify};
2
+ //# sourceMappingURL=stringify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stringify.js","sources":["../../../../../../../node_modules/uuid/dist/esm-browser/stringify.js"],"sourcesContent":["import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;"],"names":["byteToHex","i","push","toString","slice","unsafeStringify","arr","offset"],"mappings":"AAMA,MAAMA,EAAY,GAElB,IAAK,IAAIC,EAAI,EAAGA,EAAI,MAAOA,EACzBD,EAAUE,MAAMD,EAAI,KAAOE,SAAS,IAAIC,MAAM,IAGzC,SAASC,EAAgBC,EAAKC,EAAS,GAG5C,OAAOP,EAAUM,EAAIC,EAAS,IAAMP,EAAUM,EAAIC,EAAS,IAAMP,EAAUM,EAAIC,EAAS,IAAMP,EAAUM,EAAIC,EAAS,IAAM,IAAMP,EAAUM,EAAIC,EAAS,IAAMP,EAAUM,EAAIC,EAAS,IAAM,IAAMP,EAAUM,EAAIC,EAAS,IAAMP,EAAUM,EAAIC,EAAS,IAAM,IAAMP,EAAUM,EAAIC,EAAS,IAAMP,EAAUM,EAAIC,EAAS,IAAM,IAAMP,EAAUM,EAAIC,EAAS,KAAOP,EAAUM,EAAIC,EAAS,KAAOP,EAAUM,EAAIC,EAAS,KAAOP,EAAUM,EAAIC,EAAS,KAAOP,EAAUM,EAAIC,EAAS,KAAOP,EAAUM,EAAIC,EAAS,IAChf","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import r from"./native.js";import n from"./rng.js";import{unsafeStringify as o}from"./stringify.js";function t(t,m,i){if(r.randomUUID&&!m&&!t)return r.randomUUID();const f=(t=t||{}).random||(t.rng||n)();return f[6]=15&f[6]|64,f[8]=63&f[8]|128,o(f)}export{t as default};
2
+ //# sourceMappingURL=v4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v4.js","sources":["../../../../../../../node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;"],"names":["v4","options","buf","offset","native","randomUUID","rnds","random","rng","unsafeStringify"],"mappings":"oGAIA,SAASA,EAAGC,EAASC,EAAKC,GACxB,GAAIC,EAAOC,aAAeH,IAAQD,EAChC,OAAOG,EAAOC,aAIhB,MAAMC,GADNL,EAAUA,GAAW,IACAM,SAAWN,EAAQO,KAAOA,KAe/C,OAbAF,EAAK,GAAe,GAAVA,EAAK,GAAY,GAC3BA,EAAK,GAAe,GAAVA,EAAK,GAAY,IAYpBG,EAAgBH,EACzB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{PeregrineMQ as r}from"./peregrineMQ.js";export{PeregrineMQClearError}from"./peregrineMQ.js";const e=new r;export{r as PeregrineMQ,e as default,e as peregrineMQInstance};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../../../src/core/utils/appState/peregrineMQ/index.ts"],"sourcesContent":["import { PeregrineMQ } from './peregrineMQ'\n\nexport { PeregrineMQ, PeregrineMQClearError } from './peregrineMQ'\n\nexport const peregrineMQInstance = new PeregrineMQ()\n\nexport default peregrineMQInstance\n"],"names":["peregrineMQInstance","PeregrineMQ"],"mappings":"yGAIaA,EAAsB,IAAIC"}
@@ -0,0 +1,2 @@
1
+ import e from"../../../../../node_modules/uuid/dist/esm-browser/v4.js";class t extends Error{constructor(){super("Clearing PeregrineMQ is not allowed. Please read the documentation for more information."),this.name="PeregrineMQClearError"}}class s{constructor(s,n){this.id=void 0,this.config={allowAutoPrune:!1,pruneInterval:1e4,allowClear:!1},this.channels=new Map,this.listeners=new Map,this.addListener=(e,t)=>{const s=this.listeners.get(e),n=this.channels.get(t);n&&(s?s.push(n):this.listeners.set(e,[n]))},this.removeListener=e=>{const t=this.listeners.get(e);let s=!0;for(const n of t||[])if(s=!n.has(e),!s)break;s&&this.listeners.delete(e)},this.publishToChannel=(e,t,s)=>{const n=this.channels.get(e);if(!n)return t;const r=n[Symbol.iterator]();let i=r.next().value;for(;i;)i(e,s),i=r.next().value;return!0},this.configure=e=>{this.config=e;const{allowAutoPrune:t,pruneInterval:s}=e;let n;t&&(n=setInterval((()=>{this.prune()}),s));const r=this;return{...t?{clearPruneInterval:()=>{clearInterval(n)},restartPruneInterval:()=>{clearInterval(n),n=setInterval((()=>{r.prune()}),s)}}:{}}},this.getChannels=()=>[...this.channels.keys()],this.prune=()=>{const e=this.channels[Symbol.iterator]();let t=e.next().value;const s=[];for(;t;)0===t[1]?.size&&(s.push(t[0]),this.channels.delete(t[0])),t=e.next().value;return s},this.removeChannel=e=>{const t=this.channels.get(e);if(t&&t.size>0){const e=[...t||[]];t.clear();let s=e.length;for(;s--;)this.removeListener(e[s])}return this.channels.delete(e)},this.publish=(e,t)=>{if(e.includes(".")){const s=e.split(".");let{length:n}=s,r=!1;for(;n--;){this.publishToChannel(s.slice(0,n+1).join("."),n!==s.length-1,t)||(r=!0)}return!r}return this.publishToChannel(e,!1,t)},this.subscribe=(e,t)=>{const s=this.channels.get(e);return s?s.add(t):this.channels.set(e,new Set([t])),this.addListener(t,e),()=>this.unsubscribe(t,{channel:e,prune:!0})},this.unsubscribe=(e,t)=>{const{channel:s,prune:n}=t||{};let r=!1;if(s){const t=this.channels.get(s);return r=!!t&&t.delete(e),n&&0===t?.size&&this.channels.delete(s),this.removeListener(e),r}const i=this.listeners.get(e)||[];for(const t of i)r=t.delete(e),n&&0===t.size&&this.prune();return this.listeners.delete(e),r},this.isSubscribed=(e,t)=>{if(t){const s=this.channels.get(t);return!!s&&s.has(e)}return this.listeners.has(e)},this.clear=()=>{if(!this.config.allowClear)throw new t;this.channels.clear(),this.listeners.clear()},this.getId=()=>this.id,this.id=s||e(),this.configure(n||{})}get length(){return[...this.channels.values()].reduce(((e,t)=>e+t.size),0)}}export{s as PeregrineMQ,t as PeregrineMQClearError};
2
+ //# sourceMappingURL=peregrineMQ.js.map