@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260324115826 → 0.8.1-dev.20260324120446
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
2
|
|
|
3
3
|
type WidgetRegistryType = Record<string, ComponentType<any>>;
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
4
|
+
declare function registerWidgets(widgets: WidgetRegistryType): void;
|
|
5
|
+
declare function getWidget(code: string): ComponentType<any> | undefined;
|
|
6
6
|
|
|
7
7
|
interface ViewControlProps {
|
|
8
8
|
value?: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
2
|
|
|
3
3
|
type WidgetRegistryType = Record<string, ComponentType<any>>;
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
4
|
+
declare function registerWidgets(widgets: WidgetRegistryType): void;
|
|
5
|
+
declare function getWidget(code: string): ComponentType<any> | undefined;
|
|
6
6
|
|
|
7
7
|
interface ViewControlProps {
|
|
8
8
|
value?: unknown;
|
package/dist/index.js
CHANGED
|
@@ -45,12 +45,12 @@ module.exports = __toCommonJS(index_exports);
|
|
|
45
45
|
|
|
46
46
|
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
47
47
|
var registry = {};
|
|
48
|
-
|
|
48
|
+
function registerWidgets(widgets) {
|
|
49
49
|
Object.assign(registry, widgets);
|
|
50
|
-
}
|
|
51
|
-
|
|
50
|
+
}
|
|
51
|
+
function getWidget(code) {
|
|
52
52
|
return registry[code];
|
|
53
|
-
}
|
|
53
|
+
}
|
|
54
54
|
|
|
55
55
|
// src/components/controls/view/ViewControl.tsx
|
|
56
56
|
var import_react11 = __toESM(require("react"));
|
package/dist/index.mjs
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
5
5
|
var registry = {};
|
|
6
|
-
|
|
6
|
+
function registerWidgets(widgets) {
|
|
7
7
|
Object.assign(registry, widgets);
|
|
8
|
-
}
|
|
9
|
-
|
|
8
|
+
}
|
|
9
|
+
function getWidget(code) {
|
|
10
10
|
return registry[code];
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
|
|
13
13
|
// src/components/controls/view/ViewControl.tsx
|
|
14
14
|
import React11 from "react";
|
package/package.json
CHANGED