@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260324072940 → 0.8.1-dev.20260324074243
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 +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +9 -2
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ComponentType } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ViewControlProps {
|
|
4
4
|
value?: unknown;
|
|
@@ -208,4 +208,8 @@ interface PageBodyRendererProps {
|
|
|
208
208
|
}
|
|
209
209
|
declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
type WidgetRegistryType = Record<string, ComponentType<Record<string, unknown>>>;
|
|
212
|
+
declare const registerWidgets: (widgets: WidgetRegistryType) => void;
|
|
213
|
+
declare const getWidget: (code: string) => ComponentType<Record<string, unknown>>;
|
|
214
|
+
|
|
215
|
+
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes, getWidget, registerWidgets };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ComponentType } from 'react';
|
|
2
2
|
|
|
3
3
|
interface ViewControlProps {
|
|
4
4
|
value?: unknown;
|
|
@@ -208,4 +208,8 @@ interface PageBodyRendererProps {
|
|
|
208
208
|
}
|
|
209
209
|
declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
type WidgetRegistryType = Record<string, ComponentType<Record<string, unknown>>>;
|
|
212
|
+
declare const registerWidgets: (widgets: WidgetRegistryType) => void;
|
|
213
|
+
declare const getWidget: (code: string) => ComponentType<Record<string, unknown>>;
|
|
214
|
+
|
|
215
|
+
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes, getWidget, registerWidgets };
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,9 @@ __export(index_exports, {
|
|
|
37
37
|
InputControlType: () => InputControlType_default,
|
|
38
38
|
PageBodyRenderer: () => PageBodyRenderer_default,
|
|
39
39
|
ViewControl: () => ViewControl_default,
|
|
40
|
-
ViewControlTypes: () => ViewControlTypes_default
|
|
40
|
+
ViewControlTypes: () => ViewControlTypes_default,
|
|
41
|
+
getWidget: () => getWidget,
|
|
42
|
+
registerWidgets: () => registerWidgets
|
|
41
43
|
});
|
|
42
44
|
module.exports = __toCommonJS(index_exports);
|
|
43
45
|
|
|
@@ -3093,6 +3095,9 @@ var import_react43 = __toESM(require("react"));
|
|
|
3093
3095
|
|
|
3094
3096
|
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
3095
3097
|
var registry = {};
|
|
3098
|
+
var registerWidgets = (widgets) => {
|
|
3099
|
+
registry = widgets;
|
|
3100
|
+
};
|
|
3096
3101
|
var getWidget = (code) => {
|
|
3097
3102
|
return registry[code];
|
|
3098
3103
|
};
|
|
@@ -4671,5 +4676,7 @@ var PageBodyRenderer_default = PageBodyRenderer;
|
|
|
4671
4676
|
InputControlType,
|
|
4672
4677
|
PageBodyRenderer,
|
|
4673
4678
|
ViewControl,
|
|
4674
|
-
ViewControlTypes
|
|
4679
|
+
ViewControlTypes,
|
|
4680
|
+
getWidget,
|
|
4681
|
+
registerWidgets
|
|
4675
4682
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -3061,6 +3061,9 @@ import React42, { Suspense } from "react";
|
|
|
3061
3061
|
|
|
3062
3062
|
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
3063
3063
|
var registry = {};
|
|
3064
|
+
var registerWidgets = (widgets) => {
|
|
3065
|
+
registry = widgets;
|
|
3066
|
+
};
|
|
3064
3067
|
var getWidget = (code) => {
|
|
3065
3068
|
return registry[code];
|
|
3066
3069
|
};
|
|
@@ -4638,5 +4641,7 @@ export {
|
|
|
4638
4641
|
InputControlType_default as InputControlType,
|
|
4639
4642
|
PageBodyRenderer_default as PageBodyRenderer,
|
|
4640
4643
|
ViewControl_default as ViewControl,
|
|
4641
|
-
ViewControlTypes_default as ViewControlTypes
|
|
4644
|
+
ViewControlTypes_default as ViewControlTypes,
|
|
4645
|
+
getWidget,
|
|
4646
|
+
registerWidgets
|
|
4642
4647
|
};
|
package/package.json
CHANGED