@openg2p/registry-widgets 0.1.5 → 0.1.7
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/assets/index.d.ts +19 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/components/FilePreviewModal.d.ts.map +1 -1
- package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -1
- package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts.map +1 -1
- package/dist/components/SectionRenderer.d.ts +21 -2
- package/dist/components/SectionRenderer.d.ts.map +1 -1
- package/dist/components/SectionsContainer.d.ts +22 -2
- package/dist/components/SectionsContainer.d.ts.map +1 -1
- package/dist/hooks/useBaseWidget.d.ts.map +1 -1
- package/dist/index.d.ts +44 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1592 -1040
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1590 -1038
- package/dist/index.js.map +1 -1
- package/dist/utils/buildSectionChanges.d.ts +11 -0
- package/dist/utils/buildSectionChanges.d.ts.map +1 -0
- package/dist/utils/sectionValidate.d.ts +5 -0
- package/dist/utils/sectionValidate.d.ts.map +1 -0
- package/dist/widgets/FileInputWidget.d.ts.map +1 -1
- package/dist/widgets/ProfileWidget.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SectionConfig } from '../types';
|
|
2
|
+
import type { SectionChanges } from '../components/SectionRenderer';
|
|
3
|
+
/**
|
|
4
|
+
* Build SectionChanges from section config and current store values.
|
|
5
|
+
* Works for intake forms (no sectionRegisterId) and edit flows (with sectionRegisterId).
|
|
6
|
+
*/
|
|
7
|
+
export declare function buildSectionChanges(section: SectionConfig, storeValues: Record<string, unknown>, namespace?: string, options?: {
|
|
8
|
+
dbSectionId?: string;
|
|
9
|
+
sectionRegisterId?: string;
|
|
10
|
+
}): SectionChanges;
|
|
11
|
+
//# sourceMappingURL=buildSectionChanges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildSectionChanges.d.ts","sourceRoot":"","sources":["../../src/utils/buildSectionChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAEpE;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,aAAa,EACtB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7D,cAAc,CA+EhB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { WidgetDispatch } from "../store";
|
|
2
|
+
import { SectionConfig, PanelConfig, BaseWidgetConfig } from "../types";
|
|
3
|
+
export declare const collectWidgets: (panels: PanelConfig[]) => BaseWidgetConfig[];
|
|
4
|
+
export declare const sectionValidate: (section: SectionConfig, currentSchemaData: Record<string, any>, dispatch: WidgetDispatch) => boolean;
|
|
5
|
+
//# sourceMappingURL=sectionValidate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sectionValidate.d.ts","sourceRoot":"","sources":["../../src/utils/sectionValidate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EACL,aAAa,EACb,WAAW,EACX,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAKlB,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,EAAE,KAAG,gBAAgB,EAWtE,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,SAAS,aAAa,EACtB,mBAAmB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACtC,UAAU,cAAc,KACvB,OAkEF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/FileInputWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"FileInputWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/FileInputWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAO5C;;;;;;;;;;;;;;;;GAgBG;AACH,UAAU,oBAAoB;IAC5B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,eAAe,GAAI,YAAY,oBAAoB,4CAqb/D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/ProfileWidget.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProfileWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/ProfileWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAO5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,UAAU,kBAAkB;IAC1B,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,aAAa,GAAI,YAAY,kBAAkB,4CA8O3D,CAAC"}
|
package/package.json
CHANGED