@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260324081023 → 0.8.1-dev.20260324082757

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.
package/dist/index.js CHANGED
@@ -44,11 +44,20 @@ __export(index_exports, {
44
44
  module.exports = __toCommonJS(index_exports);
45
45
 
46
46
  // src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
47
- var registry = {};
47
+ var GLOBAL_KEY = "__DIGITALSTORE_WIDGET_REGISTRY__";
48
+ var getRegistry = () => {
49
+ const globalAny = globalThis;
50
+ if (!globalAny[GLOBAL_KEY]) {
51
+ globalAny[GLOBAL_KEY] = {};
52
+ }
53
+ return globalAny[GLOBAL_KEY];
54
+ };
48
55
  var registerWidgets = (widgets) => {
49
- registry = widgets;
56
+ const registry = getRegistry();
57
+ Object.assign(registry, widgets);
50
58
  };
51
59
  var getWidget = (code) => {
60
+ const registry = getRegistry();
52
61
  return registry[code];
53
62
  };
54
63
 
package/dist/index.mjs CHANGED
@@ -2,11 +2,20 @@
2
2
 
3
3
 
4
4
  // src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
5
- var registry = {};
5
+ var GLOBAL_KEY = "__DIGITALSTORE_WIDGET_REGISTRY__";
6
+ var getRegistry = () => {
7
+ const globalAny = globalThis;
8
+ if (!globalAny[GLOBAL_KEY]) {
9
+ globalAny[GLOBAL_KEY] = {};
10
+ }
11
+ return globalAny[GLOBAL_KEY];
12
+ };
6
13
  var registerWidgets = (widgets) => {
7
- registry = widgets;
14
+ const registry = getRegistry();
15
+ Object.assign(registry, widgets);
8
16
  };
9
17
  var getWidget = (code) => {
18
+ const registry = getRegistry();
10
19
  return registry[code];
11
20
  };
12
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260324081023",
3
+ "version": "0.8.1-dev.20260324082757",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",