@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260415054401 → 0.8.1-dev.20260415060612
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 -6
- package/dist/index.d.ts +2 -6
- package/dist/index.js +2 -21
- package/dist/index.mjs +1 -18
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
type WidgetRegistryType = Record<string, ComponentType<any>>;
|
|
4
|
-
declare function registerWidgets(widgets: WidgetRegistryType): void;
|
|
5
|
-
declare function getWidget(code: string): ComponentType<any> | undefined;
|
|
1
|
+
import React from 'react';
|
|
6
2
|
|
|
7
3
|
interface ViewControlProps {
|
|
8
4
|
value?: any;
|
|
@@ -219,4 +215,4 @@ interface PageBodyRendererProps {
|
|
|
219
215
|
}
|
|
220
216
|
declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
|
|
221
217
|
|
|
222
|
-
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes
|
|
218
|
+
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
type WidgetRegistryType = Record<string, ComponentType<any>>;
|
|
4
|
-
declare function registerWidgets(widgets: WidgetRegistryType): void;
|
|
5
|
-
declare function getWidget(code: string): ComponentType<any> | undefined;
|
|
1
|
+
import React from 'react';
|
|
6
2
|
|
|
7
3
|
interface ViewControlProps {
|
|
8
4
|
value?: any;
|
|
@@ -219,4 +215,4 @@ interface PageBodyRendererProps {
|
|
|
219
215
|
}
|
|
220
216
|
declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
|
|
221
217
|
|
|
222
|
-
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes
|
|
218
|
+
export { type ActionResponse, DataList, InputControl, type InputControlProps, InputControlType, PageBodyRenderer, ViewControl, type ViewControlProps, ViewControlTypes };
|
package/dist/index.js
CHANGED
|
@@ -965,27 +965,10 @@ __export(index_exports, {
|
|
|
965
965
|
InputControlType: () => InputControlType_default,
|
|
966
966
|
PageBodyRenderer: () => PageBodyRenderer_default,
|
|
967
967
|
ViewControl: () => ViewControl_default,
|
|
968
|
-
ViewControlTypes: () => ViewControlTypes_default
|
|
969
|
-
getWidget: () => getWidget,
|
|
970
|
-
registerWidgets: () => registerWidgets
|
|
968
|
+
ViewControlTypes: () => ViewControlTypes_default
|
|
971
969
|
});
|
|
972
970
|
module.exports = __toCommonJS(index_exports);
|
|
973
971
|
|
|
974
|
-
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
975
|
-
var registry = {};
|
|
976
|
-
function registerWidgets(widgets) {
|
|
977
|
-
Object.entries(widgets).forEach(([key, component]) => {
|
|
978
|
-
if (!registry[key]) {
|
|
979
|
-
registry[key] = component;
|
|
980
|
-
} else {
|
|
981
|
-
console.warn(`Widget "${key}" is already registered. Skipping duplicate.`);
|
|
982
|
-
}
|
|
983
|
-
});
|
|
984
|
-
}
|
|
985
|
-
function getWidget(code) {
|
|
986
|
-
return registry[code];
|
|
987
|
-
}
|
|
988
|
-
|
|
989
972
|
// src/components/controls/view/ViewControl.tsx
|
|
990
973
|
var import_react9 = __toESM(require("react"));
|
|
991
974
|
|
|
@@ -5647,7 +5630,5 @@ var PageBodyRenderer_default = PageBodyRenderer;
|
|
|
5647
5630
|
InputControlType,
|
|
5648
5631
|
PageBodyRenderer,
|
|
5649
5632
|
ViewControl,
|
|
5650
|
-
ViewControlTypes
|
|
5651
|
-
getWidget,
|
|
5652
|
-
registerWidgets
|
|
5633
|
+
ViewControlTypes
|
|
5653
5634
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -7,21 +7,6 @@ import {
|
|
|
7
7
|
buttonClasses
|
|
8
8
|
} from "./chunk-3IDT4246.mjs";
|
|
9
9
|
|
|
10
|
-
// src/components/pageRenderingEngine/nodes/WidgetRegistry.tsx
|
|
11
|
-
var registry = {};
|
|
12
|
-
function registerWidgets(widgets) {
|
|
13
|
-
Object.entries(widgets).forEach(([key, component]) => {
|
|
14
|
-
if (!registry[key]) {
|
|
15
|
-
registry[key] = component;
|
|
16
|
-
} else {
|
|
17
|
-
console.warn(`Widget "${key}" is already registered. Skipping duplicate.`);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function getWidget(code) {
|
|
22
|
-
return registry[code];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
10
|
// src/components/controls/view/ViewControl.tsx
|
|
26
11
|
import React9 from "react";
|
|
27
12
|
|
|
@@ -4678,7 +4663,5 @@ export {
|
|
|
4678
4663
|
InputControlType_default as InputControlType,
|
|
4679
4664
|
PageBodyRenderer_default as PageBodyRenderer,
|
|
4680
4665
|
ViewControl_default as ViewControl,
|
|
4681
|
-
ViewControlTypes_default as ViewControlTypes
|
|
4682
|
-
getWidget,
|
|
4683
|
-
registerWidgets
|
|
4666
|
+
ViewControlTypes_default as ViewControlTypes
|
|
4684
4667
|
};
|
package/package.json
CHANGED