@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260324114714 → 0.8.1-dev.20260324115826
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 +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
2
|
|
|
3
|
+
type WidgetRegistryType = Record<string, ComponentType<any>>;
|
|
4
|
+
declare const registerWidgets: (widgets: WidgetRegistryType) => void;
|
|
5
|
+
declare const getWidget: (code: string) => ComponentType<any> | undefined;
|
|
6
|
+
|
|
3
7
|
interface ViewControlProps {
|
|
4
8
|
value?: unknown;
|
|
5
9
|
controlType?: string;
|
|
@@ -208,8 +212,4 @@ interface PageBodyRendererProps {
|
|
|
208
212
|
}
|
|
209
213
|
declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
|
|
210
214
|
|
|
211
|
-
type
|
|
212
|
-
declare const registerWidgets: (widgets: WidgetRegistryType) => void;
|
|
213
|
-
declare const getWidget: (code: string) => ComponentType<any> | undefined;
|
|
214
|
-
|
|
215
|
-
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes, getWidget, registerWidgets };
|
|
215
|
+
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes, type WidgetRegistryType, getWidget, registerWidgets };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
2
|
|
|
3
|
+
type WidgetRegistryType = Record<string, ComponentType<any>>;
|
|
4
|
+
declare const registerWidgets: (widgets: WidgetRegistryType) => void;
|
|
5
|
+
declare const getWidget: (code: string) => ComponentType<any> | undefined;
|
|
6
|
+
|
|
3
7
|
interface ViewControlProps {
|
|
4
8
|
value?: unknown;
|
|
5
9
|
controlType?: string;
|
|
@@ -208,8 +212,4 @@ interface PageBodyRendererProps {
|
|
|
208
212
|
}
|
|
209
213
|
declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
|
|
210
214
|
|
|
211
|
-
type
|
|
212
|
-
declare const registerWidgets: (widgets: WidgetRegistryType) => void;
|
|
213
|
-
declare const getWidget: (code: string) => ComponentType<any> | undefined;
|
|
214
|
-
|
|
215
|
-
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes, getWidget, registerWidgets };
|
|
215
|
+
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes, type WidgetRegistryType, getWidget, registerWidgets };
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,15 @@ __export(index_exports, {
|
|
|
43
43
|
});
|
|
44
44
|
module.exports = __toCommonJS(index_exports);
|
|
45
45
|
|
|
46
|
+
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
47
|
+
var registry = {};
|
|
48
|
+
var registerWidgets = (widgets) => {
|
|
49
|
+
Object.assign(registry, widgets);
|
|
50
|
+
};
|
|
51
|
+
var getWidget = (code) => {
|
|
52
|
+
return registry[code];
|
|
53
|
+
};
|
|
54
|
+
|
|
46
55
|
// src/components/controls/view/ViewControl.tsx
|
|
47
56
|
var import_react11 = __toESM(require("react"));
|
|
48
57
|
|
|
@@ -3090,15 +3099,6 @@ var ImageNode = (props) => {
|
|
|
3090
3099
|
};
|
|
3091
3100
|
var ImageNode_default = ImageNode;
|
|
3092
3101
|
|
|
3093
|
-
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
3094
|
-
var registry = {};
|
|
3095
|
-
var registerWidgets = (widgets) => {
|
|
3096
|
-
Object.assign(registry, widgets);
|
|
3097
|
-
};
|
|
3098
|
-
var getWidget = (code) => {
|
|
3099
|
-
return registry[code];
|
|
3100
|
-
};
|
|
3101
|
-
|
|
3102
3102
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
3103
3103
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3104
3104
|
var WidgetNode = (props) => {
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
5
|
+
var registry = {};
|
|
6
|
+
var registerWidgets = (widgets) => {
|
|
7
|
+
Object.assign(registry, widgets);
|
|
8
|
+
};
|
|
9
|
+
var getWidget = (code) => {
|
|
10
|
+
return registry[code];
|
|
11
|
+
};
|
|
12
|
+
|
|
4
13
|
// src/components/controls/view/ViewControl.tsx
|
|
5
14
|
import React11 from "react";
|
|
6
15
|
|
|
@@ -3056,15 +3065,6 @@ var ImageNode = (props) => {
|
|
|
3056
3065
|
};
|
|
3057
3066
|
var ImageNode_default = ImageNode;
|
|
3058
3067
|
|
|
3059
|
-
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
3060
|
-
var registry = {};
|
|
3061
|
-
var registerWidgets = (widgets) => {
|
|
3062
|
-
Object.assign(registry, widgets);
|
|
3063
|
-
};
|
|
3064
|
-
var getWidget = (code) => {
|
|
3065
|
-
return registry[code];
|
|
3066
|
-
};
|
|
3067
|
-
|
|
3068
3068
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
3069
3069
|
import { Fragment as Fragment7, jsx as jsx56, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3070
3070
|
var WidgetNode = (props) => {
|
package/package.json
CHANGED