@openg2p/registry-widgets 0.1.0 → 0.1.1

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.
Files changed (30) hide show
  1. package/dist/components/PanelRenderer.d.ts.map +1 -1
  2. package/dist/components/SectionBuilder/JSONEditorPanel.d.ts +13 -0
  3. package/dist/components/SectionBuilder/JSONEditorPanel.d.ts.map +1 -0
  4. package/dist/components/SectionBuilder/PropertyEditor.d.ts +15 -0
  5. package/dist/components/SectionBuilder/PropertyEditor.d.ts.map +1 -0
  6. package/dist/components/SectionBuilder/SectionBuilder.d.ts +13 -0
  7. package/dist/components/SectionBuilder/SectionBuilder.d.ts.map +1 -0
  8. package/dist/components/SectionBuilder/SectionTree.d.ts +26 -0
  9. package/dist/components/SectionBuilder/SectionTree.d.ts.map +1 -0
  10. package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts +19 -0
  11. package/dist/components/SectionBuilder/VisualBuilderPanel.d.ts.map +1 -0
  12. package/dist/components/SectionBuilder/index.d.ts +9 -0
  13. package/dist/components/SectionBuilder/index.d.ts.map +1 -0
  14. package/dist/components/SectionBuilder/schemas.d.ts +1947 -0
  15. package/dist/components/SectionBuilder/schemas.d.ts.map +1 -0
  16. package/dist/components/SectionRenderer.d.ts +4 -4
  17. package/dist/components/SectionRenderer.d.ts.map +1 -1
  18. package/dist/components/SectionsContainer.d.ts +2 -1
  19. package/dist/components/SectionsContainer.d.ts.map +1 -1
  20. package/dist/index.d.ts +6 -5
  21. package/dist/index.esm.js +558 -173
  22. package/dist/index.esm.js.map +1 -1
  23. package/dist/index.js +558 -173
  24. package/dist/index.js.map +1 -1
  25. package/dist/utils/schemaNamespace.d.ts +12 -0
  26. package/dist/utils/schemaNamespace.d.ts.map +1 -0
  27. package/dist/widgets/RadioWidget.d.ts.map +1 -1
  28. package/dist/widgets/SelectWidget.d.ts.map +1 -1
  29. package/dist/widgets/TableWidget.d.ts.map +1 -1
  30. package/package.json +11 -11
@@ -0,0 +1,12 @@
1
+ import { SectionConfig } from '../types';
2
+ /**
3
+ * Namespace widget IDs and data paths in a section configuration
4
+ * This ensures unique widget IDs and data paths when the same section is rendered multiple times
5
+ * (e.g., in CRView mode showing old and new records side by side)
6
+ *
7
+ * @param section - Section configuration to namespace
8
+ * @param namespace - Namespace prefix to add to widget IDs and data paths (e.g., "old", "new", "instance-1")
9
+ * @returns Namespaced section configuration
10
+ */
11
+ export declare const namespaceSectionConfig: (section: SectionConfig, namespace: string) => SectionConfig;
12
+ //# sourceMappingURL=schemaNamespace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemaNamespace.d.ts","sourceRoot":"","sources":["../../src/utils/schemaNamespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAiC,MAAM,UAAU,CAAC;AA0GxE;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GACjC,SAAS,aAAa,EACtB,WAAW,MAAM,KAChB,aA0BF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RadioWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/RadioWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,UAAU,gBAAgB;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,GAAI,YAAY,gBAAgB,4CA+KvD,CAAC"}
1
+ {"version":3,"file":"RadioWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/RadioWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,UAAU,gBAAgB;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,WAAW,GAAI,YAAY,gBAAgB,4CAoMvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/SelectWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C;;;;;;;;;;;;;;;GAeG;AACH,UAAU,iBAAiB;IACzB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,GAAI,YAAY,iBAAiB,4CA4DzD,CAAC"}
1
+ {"version":3,"file":"SelectWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/SelectWidget.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C;;;;;;;;;;;;;;;GAeG;AACH,UAAU,iBAAiB;IACzB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAED,eAAO,MAAM,YAAY,GAAI,YAAY,iBAAiB,4CAmFzD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/TableWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA2H5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,UAAU,gBAAgB;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAeD,eAAO,MAAM,WAAW,GAAI,YAAY,gBAAgB,4CAksBvD,CAAC"}
1
+ {"version":3,"file":"TableWidget.d.ts","sourceRoot":"","sources":["../../src/widgets/TableWidget.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAiJ5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,UAAU,gBAAgB;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B;AAeD,eAAO,MAAM,WAAW,GAAI,YAAY,gBAAgB,4CAyxBvD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openg2p/registry-widgets",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Complete React widget library with generic form widgets, data binding, validation, and conditional logic",
6
6
  "main": "dist/index.js",
@@ -31,13 +31,13 @@
31
31
  "author": "",
32
32
  "license": "MPL-2.0",
33
33
  "peerDependencies": {
34
- "@reduxjs/toolkit": "^2.0.0",
35
- "i18next": "^23.0.0",
36
- "react": ">=19.2.1",
37
- "react-dom": ">=19.2.1",
38
- "react-i18next": "^14.0.0",
39
- "react-redux": "^9.0.0",
40
- "zod": "^3.22.0"
34
+ "@reduxjs/toolkit": "^2.11.2",
35
+ "i18next": "^25.6.2",
36
+ "react": "^19.2.0",
37
+ "react-dom": "^19.2.0",
38
+ "react-i18next": "^16.5.0",
39
+ "react-redux": "^9.2.0",
40
+ "zod": "^4.2.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@eslint/js": "^9.0.0",
@@ -49,8 +49,8 @@
49
49
  "@types/react": "^19.0.0",
50
50
  "@types/react-dom": "^19.0.0",
51
51
  "eslint": "^9.0.0",
52
- "i18next": "^23.16.8",
53
- "react-i18next": "^14.1.3",
52
+ "i18next": "^25.6.2",
53
+ "react-i18next": "^16.5.0",
54
54
  "rollup": "^4.6.1",
55
55
  "rollup-plugin-dts": "^6.1.0",
56
56
  "tslib": "^2.6.2",
@@ -64,4 +64,4 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  }
67
- }
67
+ }