@walkeros/explorer 0.3.1 → 1.0.0
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/AGENT.md +406 -0
- package/STYLE.md +993 -0
- package/dist/__mocks__/@monaco-editor/react.d.ts +3 -0
- package/dist/__mocks__/@monaco-editor/react.d.ts.map +1 -0
- package/dist/__mocks__/@monaco-editor/react.js +4 -0
- package/dist/__mocks__/@monaco-editor/react.js.map +1 -0
- package/dist/chunk-VWWAIDNX.mjs +2939 -0
- package/dist/chunk-VWWAIDNX.mjs.map +1 -0
- package/dist/components/atoms/base-mapping-pane.d.ts +85 -0
- package/dist/components/atoms/base-mapping-pane.d.ts.map +1 -0
- package/dist/components/atoms/base-mapping-pane.js +53 -0
- package/dist/components/atoms/base-mapping-pane.js.map +1 -0
- package/dist/components/atoms/box.d.ts +27 -0
- package/dist/components/atoms/box.d.ts.map +1 -0
- package/dist/components/atoms/box.js +86 -0
- package/dist/components/atoms/box.js.map +1 -0
- package/dist/components/atoms/box.stories.d.ts +34 -0
- package/dist/components/atoms/box.stories.d.ts.map +1 -0
- package/dist/components/atoms/box.stories.js +104 -0
- package/dist/components/atoms/box.stories.js.map +1 -0
- package/dist/components/atoms/button-group.d.ts +17 -0
- package/dist/components/atoms/button-group.d.ts.map +1 -0
- package/dist/components/atoms/button-group.js +12 -0
- package/dist/components/atoms/button-group.js.map +1 -0
- package/dist/components/atoms/button-group.stories.d.ts +18 -0
- package/dist/components/atoms/button-group.stories.d.ts.map +1 -0
- package/dist/components/atoms/button-group.stories.js +35 -0
- package/dist/components/atoms/button-group.stories.js.map +1 -0
- package/dist/components/atoms/button-link.d.ts +12 -0
- package/dist/components/atoms/button-link.d.ts.map +1 -0
- package/dist/components/atoms/button-link.js +10 -0
- package/dist/components/atoms/button-link.js.map +1 -0
- package/dist/components/atoms/button-link.stories.d.ts +13 -0
- package/dist/components/atoms/button-link.stories.d.ts.map +1 -0
- package/dist/components/atoms/button-link.stories.js +64 -0
- package/dist/components/atoms/button-link.stories.js.map +1 -0
- package/dist/components/atoms/button.d.ts +15 -0
- package/dist/components/atoms/button.d.ts.map +1 -0
- package/dist/components/atoms/button.js +11 -0
- package/dist/components/atoms/button.js.map +1 -0
- package/dist/components/atoms/code.d.ts +55 -0
- package/dist/components/atoms/code.d.ts.map +1 -0
- package/dist/components/atoms/code.js +251 -0
- package/dist/components/atoms/code.js.map +1 -0
- package/dist/components/atoms/code.stories.d.ts +53 -0
- package/dist/components/atoms/code.stories.d.ts.map +1 -0
- package/dist/components/atoms/code.stories.js +190 -0
- package/dist/components/atoms/code.stories.js.map +1 -0
- package/dist/components/atoms/config-tile.d.ts +38 -0
- package/dist/components/atoms/config-tile.d.ts.map +1 -0
- package/dist/components/atoms/config-tile.js +29 -0
- package/dist/components/atoms/config-tile.js.map +1 -0
- package/dist/components/atoms/consent-state-tile.d.ts +14 -0
- package/dist/components/atoms/consent-state-tile.d.ts.map +1 -0
- package/dist/components/atoms/consent-state-tile.js +5 -0
- package/dist/components/atoms/consent-state-tile.js.map +1 -0
- package/dist/components/atoms/field-header.d.ts +41 -0
- package/dist/components/atoms/field-header.d.ts.map +1 -0
- package/dist/components/atoms/field-header.js +42 -0
- package/dist/components/atoms/field-header.js.map +1 -0
- package/dist/components/atoms/footer.d.ts +21 -0
- package/dist/components/atoms/footer.d.ts.map +1 -0
- package/dist/components/atoms/footer.js +19 -0
- package/dist/components/atoms/footer.js.map +1 -0
- package/dist/components/atoms/grid.d.ts +65 -0
- package/dist/components/atoms/grid.d.ts.map +1 -0
- package/dist/components/atoms/grid.js +169 -0
- package/dist/components/atoms/grid.js.map +1 -0
- package/dist/components/atoms/header.d.ts +7 -0
- package/dist/components/atoms/header.d.ts.map +1 -0
- package/dist/components/atoms/header.js +5 -0
- package/dist/components/atoms/header.js.map +1 -0
- package/dist/components/atoms/icon-button.d.ts +26 -0
- package/dist/components/atoms/icon-button.d.ts.map +1 -0
- package/dist/components/atoms/icon-button.js +39 -0
- package/dist/components/atoms/icon-button.js.map +1 -0
- package/dist/components/atoms/icons/icons.d.ts +2 -0
- package/dist/components/atoms/icons/icons.d.ts.map +1 -0
- package/dist/components/atoms/icons/icons.js +7 -0
- package/dist/components/atoms/icons/icons.js.map +1 -0
- package/dist/components/atoms/icons/index.d.ts +3 -0
- package/dist/components/atoms/icons/index.d.ts.map +1 -0
- package/dist/components/atoms/icons/index.js +3 -0
- package/dist/components/atoms/icons/index.js.map +1 -0
- package/dist/components/atoms/mapping-boolean.d.ts +31 -0
- package/dist/components/atoms/mapping-boolean.d.ts.map +1 -0
- package/dist/components/atoms/mapping-boolean.js +38 -0
- package/dist/components/atoms/mapping-boolean.js.map +1 -0
- package/dist/components/atoms/mapping-breadcrumb.d.ts +14 -0
- package/dist/components/atoms/mapping-breadcrumb.d.ts.map +1 -0
- package/dist/components/atoms/mapping-breadcrumb.js +10 -0
- package/dist/components/atoms/mapping-breadcrumb.js.map +1 -0
- package/dist/components/atoms/mapping-collapsible.d.ts +54 -0
- package/dist/components/atoms/mapping-collapsible.d.ts.map +1 -0
- package/dist/components/atoms/mapping-collapsible.js +87 -0
- package/dist/components/atoms/mapping-collapsible.js.map +1 -0
- package/dist/components/atoms/mapping-condition-field.d.ts +18 -0
- package/dist/components/atoms/mapping-condition-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-condition-field.js +34 -0
- package/dist/components/atoms/mapping-condition-field.js.map +1 -0
- package/dist/components/atoms/mapping-condition.d.ts +34 -0
- package/dist/components/atoms/mapping-condition.d.ts.map +1 -0
- package/dist/components/atoms/mapping-condition.js +70 -0
- package/dist/components/atoms/mapping-condition.js.map +1 -0
- package/dist/components/atoms/mapping-confirm-button.d.ts +29 -0
- package/dist/components/atoms/mapping-confirm-button.d.ts.map +1 -0
- package/dist/components/atoms/mapping-confirm-button.js +42 -0
- package/dist/components/atoms/mapping-confirm-button.js.map +1 -0
- package/dist/components/atoms/mapping-consent-field.d.ts +20 -0
- package/dist/components/atoms/mapping-consent-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-consent-field.js +36 -0
- package/dist/components/atoms/mapping-consent-field.js.map +1 -0
- package/dist/components/atoms/mapping-consent.d.ts +34 -0
- package/dist/components/atoms/mapping-consent.d.ts.map +1 -0
- package/dist/components/atoms/mapping-consent.js +86 -0
- package/dist/components/atoms/mapping-consent.js.map +1 -0
- package/dist/components/atoms/mapping-data-field.d.ts +23 -0
- package/dist/components/atoms/mapping-data-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-data-field.js +38 -0
- package/dist/components/atoms/mapping-data-field.js.map +1 -0
- package/dist/components/atoms/mapping-data.d.ts +34 -0
- package/dist/components/atoms/mapping-data.d.ts.map +1 -0
- package/dist/components/atoms/mapping-data.js +76 -0
- package/dist/components/atoms/mapping-data.js.map +1 -0
- package/dist/components/atoms/mapping-enum-select.d.ts +28 -0
- package/dist/components/atoms/mapping-enum-select.d.ts.map +1 -0
- package/dist/components/atoms/mapping-enum-select.js +142 -0
- package/dist/components/atoms/mapping-enum-select.js.map +1 -0
- package/dist/components/atoms/mapping-fn-field.d.ts +23 -0
- package/dist/components/atoms/mapping-fn-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-fn-field.js +38 -0
- package/dist/components/atoms/mapping-fn-field.js.map +1 -0
- package/dist/components/atoms/mapping-fn.d.ts +34 -0
- package/dist/components/atoms/mapping-fn.d.ts.map +1 -0
- package/dist/components/atoms/mapping-fn.js +70 -0
- package/dist/components/atoms/mapping-fn.js.map +1 -0
- package/dist/components/atoms/mapping-grid.d.ts +45 -0
- package/dist/components/atoms/mapping-grid.d.ts.map +1 -0
- package/dist/components/atoms/mapping-grid.js +83 -0
- package/dist/components/atoms/mapping-grid.js.map +1 -0
- package/dist/components/atoms/mapping-input-with-button.d.ts +54 -0
- package/dist/components/atoms/mapping-input-with-button.d.ts.map +1 -0
- package/dist/components/atoms/mapping-input-with-button.js +54 -0
- package/dist/components/atoms/mapping-input-with-button.js.map +1 -0
- package/dist/components/atoms/mapping-input.d.ts +44 -0
- package/dist/components/atoms/mapping-input.d.ts.map +1 -0
- package/dist/components/atoms/mapping-input.js +35 -0
- package/dist/components/atoms/mapping-input.js.map +1 -0
- package/dist/components/atoms/mapping-key-field.d.ts +23 -0
- package/dist/components/atoms/mapping-key-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-key-field.js +39 -0
- package/dist/components/atoms/mapping-key-field.js.map +1 -0
- package/dist/components/atoms/mapping-key.d.ts +35 -0
- package/dist/components/atoms/mapping-key.d.ts.map +1 -0
- package/dist/components/atoms/mapping-key.js +48 -0
- package/dist/components/atoms/mapping-key.js.map +1 -0
- package/dist/components/atoms/mapping-map-entry.d.ts +31 -0
- package/dist/components/atoms/mapping-map-entry.d.ts.map +1 -0
- package/dist/components/atoms/mapping-map-entry.js +68 -0
- package/dist/components/atoms/mapping-map-entry.js.map +1 -0
- package/dist/components/atoms/mapping-number.d.ts +32 -0
- package/dist/components/atoms/mapping-number.d.ts.map +1 -0
- package/dist/components/atoms/mapping-number.js +52 -0
- package/dist/components/atoms/mapping-number.js.map +1 -0
- package/dist/components/atoms/mapping-object-explorer-field.d.ts +30 -0
- package/dist/components/atoms/mapping-object-explorer-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-object-explorer-field.js +48 -0
- package/dist/components/atoms/mapping-object-explorer-field.js.map +1 -0
- package/dist/components/atoms/mapping-object-explorer.d.ts +59 -0
- package/dist/components/atoms/mapping-object-explorer.d.ts.map +1 -0
- package/dist/components/atoms/mapping-object-explorer.js +215 -0
- package/dist/components/atoms/mapping-object-explorer.js.map +1 -0
- package/dist/components/atoms/mapping-set-entry.d.ts +31 -0
- package/dist/components/atoms/mapping-set-entry.d.ts.map +1 -0
- package/dist/components/atoms/mapping-set-entry.js +66 -0
- package/dist/components/atoms/mapping-set-entry.js.map +1 -0
- package/dist/components/atoms/mapping-settings-field.d.ts +33 -0
- package/dist/components/atoms/mapping-settings-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-settings-field.js +48 -0
- package/dist/components/atoms/mapping-settings-field.js.map +1 -0
- package/dist/components/atoms/mapping-settings.d.ts +44 -0
- package/dist/components/atoms/mapping-settings.d.ts.map +1 -0
- package/dist/components/atoms/mapping-settings.js +108 -0
- package/dist/components/atoms/mapping-settings.js.map +1 -0
- package/dist/components/atoms/mapping-string.d.ts +19 -0
- package/dist/components/atoms/mapping-string.d.ts.map +1 -0
- package/dist/components/atoms/mapping-string.js +26 -0
- package/dist/components/atoms/mapping-string.js.map +1 -0
- package/dist/components/atoms/mapping-tab.d.ts +15 -0
- package/dist/components/atoms/mapping-tab.d.ts.map +1 -0
- package/dist/components/atoms/mapping-tab.js +8 -0
- package/dist/components/atoms/mapping-tab.js.map +1 -0
- package/dist/components/atoms/mapping-type-button.d.ts +19 -0
- package/dist/components/atoms/mapping-type-button.d.ts.map +1 -0
- package/dist/components/atoms/mapping-type-button.js +5 -0
- package/dist/components/atoms/mapping-type-button.js.map +1 -0
- package/dist/components/atoms/mapping-validate-field.d.ts +23 -0
- package/dist/components/atoms/mapping-validate-field.d.ts.map +1 -0
- package/dist/components/atoms/mapping-validate-field.js +38 -0
- package/dist/components/atoms/mapping-validate-field.js.map +1 -0
- package/dist/components/atoms/mapping-validate.d.ts +34 -0
- package/dist/components/atoms/mapping-validate.d.ts.map +1 -0
- package/dist/components/atoms/mapping-validate.js +68 -0
- package/dist/components/atoms/mapping-validate.js.map +1 -0
- package/dist/components/atoms/mapping-value.d.ts +17 -0
- package/dist/components/atoms/mapping-value.d.ts.map +1 -0
- package/dist/components/atoms/mapping-value.js +127 -0
- package/dist/components/atoms/mapping-value.js.map +1 -0
- package/dist/components/atoms/mdx-code.d.ts +33 -0
- package/dist/components/atoms/mdx-code.d.ts.map +1 -0
- package/dist/components/atoms/mdx-code.js +69 -0
- package/dist/components/atoms/mdx-code.js.map +1 -0
- package/dist/components/atoms/pane-header.d.ts +24 -0
- package/dist/components/atoms/pane-header.d.ts.map +1 -0
- package/dist/components/atoms/pane-header.js +5 -0
- package/dist/components/atoms/pane-header.js.map +1 -0
- package/dist/components/atoms/panel-hints.d.ts +35 -0
- package/dist/components/atoms/panel-hints.d.ts.map +1 -0
- package/dist/components/atoms/panel-hints.js +5 -0
- package/dist/components/atoms/panel-hints.js.map +1 -0
- package/dist/components/atoms/preview-footer.d.ts +32 -0
- package/dist/components/atoms/preview-footer.d.ts.map +1 -0
- package/dist/components/atoms/preview-footer.js +31 -0
- package/dist/components/atoms/preview-footer.js.map +1 -0
- package/dist/components/atoms/toggle.d.ts +9 -0
- package/dist/components/atoms/toggle.d.ts.map +1 -0
- package/dist/components/atoms/toggle.js +6 -0
- package/dist/components/atoms/toggle.js.map +1 -0
- package/dist/components/demos/DestinationDemo.d.ts +48 -0
- package/dist/components/demos/DestinationDemo.d.ts.map +1 -0
- package/dist/components/demos/DestinationDemo.js +105 -0
- package/dist/components/demos/DestinationDemo.js.map +1 -0
- package/dist/components/demos/DestinationDemo.stories.d.ts +17 -0
- package/dist/components/demos/DestinationDemo.stories.d.ts.map +1 -0
- package/dist/components/demos/DestinationDemo.stories.js +53 -0
- package/dist/components/demos/DestinationDemo.stories.js.map +1 -0
- package/dist/components/demos/DestinationInitDemo.d.ts +34 -0
- package/dist/components/demos/DestinationInitDemo.d.ts.map +1 -0
- package/dist/components/demos/DestinationInitDemo.js +73 -0
- package/dist/components/demos/DestinationInitDemo.js.map +1 -0
- package/dist/components/demos/DestinationInitDemo.stories.d.ts +17 -0
- package/dist/components/demos/DestinationInitDemo.stories.d.ts.map +1 -0
- package/dist/components/demos/DestinationInitDemo.stories.js +39 -0
- package/dist/components/demos/DestinationInitDemo.stories.js.map +1 -0
- package/dist/components/demos/MappingCode.d.ts +34 -0
- package/dist/components/demos/MappingCode.d.ts.map +1 -0
- package/dist/components/demos/MappingCode.js +54 -0
- package/dist/components/demos/MappingCode.js.map +1 -0
- package/dist/components/demos/MappingCode.stories.d.ts +16 -0
- package/dist/components/demos/MappingCode.stories.d.ts.map +1 -0
- package/dist/components/demos/MappingCode.stories.js +42 -0
- package/dist/components/demos/MappingCode.stories.js.map +1 -0
- package/dist/components/demos/MappingDemo.d.ts +41 -0
- package/dist/components/demos/MappingDemo.d.ts.map +1 -0
- package/dist/components/demos/MappingDemo.js +62 -0
- package/dist/components/demos/MappingDemo.js.map +1 -0
- package/dist/components/demos/MappingDemo.stories.d.ts +16 -0
- package/dist/components/demos/MappingDemo.stories.d.ts.map +1 -0
- package/dist/components/demos/MappingDemo.stories.js +63 -0
- package/dist/components/demos/MappingDemo.stories.js.map +1 -0
- package/dist/components/demos/PromotionPlayground.d.ts +25 -0
- package/dist/components/demos/PromotionPlayground.d.ts.map +1 -0
- package/dist/components/demos/PromotionPlayground.js +280 -0
- package/dist/components/demos/PromotionPlayground.js.map +1 -0
- package/dist/components/demos/PromotionPlayground.stories.d.ts +27 -0
- package/dist/components/demos/PromotionPlayground.stories.d.ts.map +1 -0
- package/dist/components/demos/PromotionPlayground.stories.js +32 -0
- package/dist/components/demos/PromotionPlayground.stories.js.map +1 -0
- package/dist/components/forms/field-registry.d.ts +42 -0
- package/dist/components/forms/field-registry.d.ts.map +1 -0
- package/dist/components/forms/field-registry.js +64 -0
- package/dist/components/forms/field-registry.js.map +1 -0
- package/dist/components/forms/mapping-form-wrapper.d.ts +14 -0
- package/dist/components/forms/mapping-form-wrapper.d.ts.map +1 -0
- package/dist/components/forms/mapping-form-wrapper.js +105 -0
- package/dist/components/forms/mapping-form-wrapper.js.map +1 -0
- package/dist/components/forms/widget-registry.d.ts +42 -0
- package/dist/components/forms/widget-registry.d.ts.map +1 -0
- package/dist/components/forms/widget-registry.js +54 -0
- package/dist/components/forms/widget-registry.js.map +1 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts +24 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts.map +1 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.js +10 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.js.map +1 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts +7 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts.map +1 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js +71 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js.map +1 -0
- package/dist/components/molecules/architecture-flow/index.d.ts +3 -0
- package/dist/components/molecules/architecture-flow/index.d.ts.map +1 -0
- package/dist/components/molecules/architecture-flow/index.js +2 -0
- package/dist/components/molecules/architecture-flow/index.js.map +1 -0
- package/dist/components/molecules/auto-select.d.ts +29 -0
- package/dist/components/molecules/auto-select.d.ts.map +1 -0
- package/dist/components/molecules/auto-select.js +188 -0
- package/dist/components/molecules/auto-select.js.map +1 -0
- package/dist/components/molecules/code-box.d.ts +69 -0
- package/dist/components/molecules/code-box.d.ts.map +1 -0
- package/dist/components/molecules/code-box.js +109 -0
- package/dist/components/molecules/code-box.js.map +1 -0
- package/dist/components/molecules/code-box.stories.d.ts +30 -0
- package/dist/components/molecules/code-box.stories.d.ts.map +1 -0
- package/dist/components/molecules/code-box.stories.js +127 -0
- package/dist/components/molecules/code-box.stories.js.map +1 -0
- package/dist/components/molecules/code-snippet.d.ts +58 -0
- package/dist/components/molecules/code-snippet.d.ts.map +1 -0
- package/dist/components/molecules/code-snippet.js +72 -0
- package/dist/components/molecules/code-snippet.js.map +1 -0
- package/dist/components/molecules/code-snippet.stories.d.ts +20 -0
- package/dist/components/molecules/code-snippet.stories.d.ts.map +1 -0
- package/dist/components/molecules/code-snippet.stories.js +68 -0
- package/dist/components/molecules/code-snippet.stories.js.map +1 -0
- package/dist/components/molecules/config-overview-pane.d.ts +44 -0
- package/dist/components/molecules/config-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/config-overview-pane.js +75 -0
- package/dist/components/molecules/config-overview-pane.js.map +1 -0
- package/dist/components/molecules/config-tree-sidebar.d.ts +46 -0
- package/dist/components/molecules/config-tree-sidebar.d.ts.map +1 -0
- package/dist/components/molecules/config-tree-sidebar.js +183 -0
- package/dist/components/molecules/config-tree-sidebar.js.map +1 -0
- package/dist/components/molecules/destination-config-overview-pane.d.ts +33 -0
- package/dist/components/molecules/destination-config-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/destination-config-overview-pane.js +153 -0
- package/dist/components/molecules/destination-config-overview-pane.js.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.d.ts +74 -0
- package/dist/components/molecules/flow-map/FlowMap.d.ts.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.js +1028 -0
- package/dist/components/molecules/flow-map/FlowMap.js.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.stories.d.ts +73 -0
- package/dist/components/molecules/flow-map/FlowMap.stories.d.ts.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.stories.js +587 -0
- package/dist/components/molecules/flow-map/FlowMap.stories.js.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts +45 -0
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js +195 -0
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js.map +1 -0
- package/dist/components/molecules/flow-map/index.d.ts +3 -0
- package/dist/components/molecules/flow-map/index.d.ts.map +1 -0
- package/dist/components/molecules/flow-map/index.js +2 -0
- package/dist/components/molecules/flow-map/index.js.map +1 -0
- package/dist/components/molecules/mapping-batch-pane-view.d.ts +22 -0
- package/dist/components/molecules/mapping-batch-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-batch-pane-view.js +45 -0
- package/dist/components/molecules/mapping-batch-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-boolean-pane-view.d.ts +28 -0
- package/dist/components/molecules/mapping-boolean-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-boolean-pane-view.js +34 -0
- package/dist/components/molecules/mapping-boolean-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-condition-pane-view.d.ts +18 -0
- package/dist/components/molecules/mapping-condition-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-condition-pane-view.js +63 -0
- package/dist/components/molecules/mapping-condition-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-consent-pane-view.d.ts +16 -0
- package/dist/components/molecules/mapping-consent-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-consent-pane-view.js +65 -0
- package/dist/components/molecules/mapping-consent-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-consent-row.d.ts +29 -0
- package/dist/components/molecules/mapping-consent-row.d.ts.map +1 -0
- package/dist/components/molecules/mapping-consent-row.js +26 -0
- package/dist/components/molecules/mapping-consent-row.js.map +1 -0
- package/dist/components/molecules/mapping-entity-pane.d.ts +17 -0
- package/dist/components/molecules/mapping-entity-pane.d.ts.map +1 -0
- package/dist/components/molecules/mapping-entity-pane.js +68 -0
- package/dist/components/molecules/mapping-entity-pane.js.map +1 -0
- package/dist/components/molecules/mapping-enum-pane-view.d.ts +40 -0
- package/dist/components/molecules/mapping-enum-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-enum-pane-view.js +32 -0
- package/dist/components/molecules/mapping-enum-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-fn-pane-view.d.ts +18 -0
- package/dist/components/molecules/mapping-fn-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-fn-pane-view.js +77 -0
- package/dist/components/molecules/mapping-fn-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-function-pane-base.d.ts +53 -0
- package/dist/components/molecules/mapping-function-pane-base.d.ts.map +1 -0
- package/dist/components/molecules/mapping-function-pane-base.js +60 -0
- package/dist/components/molecules/mapping-function-pane-base.js.map +1 -0
- package/dist/components/molecules/mapping-key-pane-view.d.ts +23 -0
- package/dist/components/molecules/mapping-key-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-key-pane-view.js +12 -0
- package/dist/components/molecules/mapping-key-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-loop-field.d.ts +44 -0
- package/dist/components/molecules/mapping-loop-field.d.ts.map +1 -0
- package/dist/components/molecules/mapping-loop-field.js +133 -0
- package/dist/components/molecules/mapping-loop-field.js.map +1 -0
- package/dist/components/molecules/mapping-loop-pane-view.d.ts +28 -0
- package/dist/components/molecules/mapping-loop-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-loop-pane-view.js +44 -0
- package/dist/components/molecules/mapping-loop-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-map-field.d.ts +31 -0
- package/dist/components/molecules/mapping-map-field.d.ts.map +1 -0
- package/dist/components/molecules/mapping-map-field.js +120 -0
- package/dist/components/molecules/mapping-map-field.js.map +1 -0
- package/dist/components/molecules/mapping-map-overview.d.ts +13 -0
- package/dist/components/molecules/mapping-map-overview.d.ts.map +1 -0
- package/dist/components/molecules/mapping-map-overview.js +58 -0
- package/dist/components/molecules/mapping-map-overview.js.map +1 -0
- package/dist/components/molecules/mapping-map-pane-view-rjsf.d.ts +53 -0
- package/dist/components/molecules/mapping-map-pane-view-rjsf.d.ts.map +1 -0
- package/dist/components/molecules/mapping-map-pane-view-rjsf.js +127 -0
- package/dist/components/molecules/mapping-map-pane-view-rjsf.js.map +1 -0
- package/dist/components/molecules/mapping-name-pane-view.d.ts +22 -0
- package/dist/components/molecules/mapping-name-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-name-pane-view.js +38 -0
- package/dist/components/molecules/mapping-name-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-navigation-header.d.ts +27 -0
- package/dist/components/molecules/mapping-navigation-header.d.ts.map +1 -0
- package/dist/components/molecules/mapping-navigation-header.js +7 -0
- package/dist/components/molecules/mapping-navigation-header.js.map +1 -0
- package/dist/components/molecules/mapping-overview-pane.d.ts +14 -0
- package/dist/components/molecules/mapping-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/mapping-overview-pane.js +60 -0
- package/dist/components/molecules/mapping-overview-pane.js.map +1 -0
- package/dist/components/molecules/mapping-pane.d.ts +52 -0
- package/dist/components/molecules/mapping-pane.d.ts.map +1 -0
- package/dist/components/molecules/mapping-pane.js +155 -0
- package/dist/components/molecules/mapping-pane.js.map +1 -0
- package/dist/components/molecules/mapping-policy-overview-pane.d.ts +26 -0
- package/dist/components/molecules/mapping-policy-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/mapping-policy-overview-pane.js +69 -0
- package/dist/components/molecules/mapping-policy-overview-pane.js.map +1 -0
- package/dist/components/molecules/mapping-primitive-pane-view.d.ts +30 -0
- package/dist/components/molecules/mapping-primitive-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-primitive-pane-view.js +43 -0
- package/dist/components/molecules/mapping-primitive-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-rule-pane-view.d.ts +25 -0
- package/dist/components/molecules/mapping-rule-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-rule-pane-view.js +35 -0
- package/dist/components/molecules/mapping-rule-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-set-field.d.ts +34 -0
- package/dist/components/molecules/mapping-set-field.d.ts.map +1 -0
- package/dist/components/molecules/mapping-set-field.js +160 -0
- package/dist/components/molecules/mapping-set-field.js.map +1 -0
- package/dist/components/molecules/mapping-set-pane-view.d.ts +31 -0
- package/dist/components/molecules/mapping-set-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-set-pane-view.js +96 -0
- package/dist/components/molecules/mapping-set-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-tab-bar.d.ts +15 -0
- package/dist/components/molecules/mapping-tab-bar.d.ts.map +1 -0
- package/dist/components/molecules/mapping-tab-bar.js +9 -0
- package/dist/components/molecules/mapping-tab-bar.js.map +1 -0
- package/dist/components/molecules/mapping-tree-sidebar.d.ts +59 -0
- package/dist/components/molecules/mapping-tree-sidebar.d.ts.map +1 -0
- package/dist/components/molecules/mapping-tree-sidebar.js +491 -0
- package/dist/components/molecules/mapping-tree-sidebar.js.map +1 -0
- package/dist/components/molecules/mapping-type-grid.d.ts +12 -0
- package/dist/components/molecules/mapping-type-grid.d.ts.map +1 -0
- package/dist/components/molecules/mapping-type-grid.js +107 -0
- package/dist/components/molecules/mapping-type-grid.js.map +1 -0
- package/dist/components/molecules/mapping-type-selector.d.ts +21 -0
- package/dist/components/molecules/mapping-type-selector.d.ts.map +1 -0
- package/dist/components/molecules/mapping-type-selector.js +38 -0
- package/dist/components/molecules/mapping-type-selector.js.map +1 -0
- package/dist/components/molecules/mapping-validate-pane-view.d.ts +19 -0
- package/dist/components/molecules/mapping-validate-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-validate-pane-view.js +66 -0
- package/dist/components/molecules/mapping-validate-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-value-config-pane-view.d.ts +30 -0
- package/dist/components/molecules/mapping-value-config-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-value-config-pane-view.js +105 -0
- package/dist/components/molecules/mapping-value-config-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-value-pane-view.d.ts +28 -0
- package/dist/components/molecules/mapping-value-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-value-pane-view.js +40 -0
- package/dist/components/molecules/mapping-value-pane-view.js.map +1 -0
- package/dist/components/molecules/mapping-value-type-pane-view.d.ts +27 -0
- package/dist/components/molecules/mapping-value-type-pane-view.d.ts.map +1 -0
- package/dist/components/molecules/mapping-value-type-pane-view.js +253 -0
- package/dist/components/molecules/mapping-value-type-pane-view.js.map +1 -0
- package/dist/components/molecules/options-pane.d.ts +28 -0
- package/dist/components/molecules/options-pane.d.ts.map +1 -0
- package/dist/components/molecules/options-pane.js +80 -0
- package/dist/components/molecules/options-pane.js.map +1 -0
- package/dist/components/molecules/preview.d.ts +22 -0
- package/dist/components/molecules/preview.d.ts.map +1 -0
- package/dist/components/molecules/preview.js +221 -0
- package/dist/components/molecules/preview.js.map +1 -0
- package/dist/components/molecules/preview.stories.d.ts +23 -0
- package/dist/components/molecules/preview.stories.d.ts.map +1 -0
- package/dist/components/molecules/preview.stories.js +186 -0
- package/dist/components/molecules/preview.stories.js.map +1 -0
- package/dist/components/molecules/property-suggestions.d.ts +17 -0
- package/dist/components/molecules/property-suggestions.d.ts.map +1 -0
- package/dist/components/molecules/property-suggestions.js +56 -0
- package/dist/components/molecules/property-suggestions.js.map +1 -0
- package/dist/components/molecules/property-table.d.ts +7 -0
- package/dist/components/molecules/property-table.d.ts.map +1 -0
- package/dist/components/molecules/property-table.js +88 -0
- package/dist/components/molecules/property-table.js.map +1 -0
- package/dist/components/molecules/property-table.stories.d.ts +24 -0
- package/dist/components/molecules/property-table.stories.d.ts.map +1 -0
- package/dist/components/molecules/property-table.stories.js +86 -0
- package/dist/components/molecules/property-table.stories.js.map +1 -0
- package/dist/components/molecules/settings-overview-pane.d.ts +32 -0
- package/dist/components/molecules/settings-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/settings-overview-pane.js +85 -0
- package/dist/components/molecules/settings-overview-pane.js.map +1 -0
- package/dist/components/molecules/validation-overview-pane.d.ts +27 -0
- package/dist/components/molecules/validation-overview-pane.d.ts.map +1 -0
- package/dist/components/molecules/validation-overview-pane.js +50 -0
- package/dist/components/molecules/validation-overview-pane.js.map +1 -0
- package/dist/components/organisms/browser-box.d.ts +31 -0
- package/dist/components/organisms/browser-box.d.ts.map +1 -0
- package/dist/components/organisms/browser-box.js +80 -0
- package/dist/components/organisms/browser-box.js.map +1 -0
- package/dist/components/organisms/browser-box.stories.d.ts +26 -0
- package/dist/components/organisms/browser-box.stories.d.ts.map +1 -0
- package/dist/components/organisms/browser-box.stories.js +102 -0
- package/dist/components/organisms/browser-box.stories.js.map +1 -0
- package/dist/components/organisms/collector-box.d.ts +24 -0
- package/dist/components/organisms/collector-box.d.ts.map +1 -0
- package/dist/components/organisms/collector-box.js +56 -0
- package/dist/components/organisms/collector-box.js.map +1 -0
- package/dist/components/organisms/collector-box.stories.d.ts +22 -0
- package/dist/components/organisms/collector-box.stories.d.ts.map +1 -0
- package/dist/components/organisms/collector-box.stories.js +59 -0
- package/dist/components/organisms/collector-box.stories.js.map +1 -0
- package/dist/components/organisms/config-editor/config-editor-box.d.ts +35 -0
- package/dist/components/organisms/config-editor/config-editor-box.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/config-editor-box.js +50 -0
- package/dist/components/organisms/config-editor/config-editor-box.js.map +1 -0
- package/dist/components/organisms/config-editor/config-editor-tabs.d.ts +52 -0
- package/dist/components/organisms/config-editor/config-editor-tabs.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/config-editor-tabs.js +127 -0
- package/dist/components/organisms/config-editor/config-editor-tabs.js.map +1 -0
- package/dist/components/organisms/config-editor/config-editor.d.ts +47 -0
- package/dist/components/organisms/config-editor/config-editor.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/config-editor.js +50 -0
- package/dist/components/organisms/config-editor/config-editor.js.map +1 -0
- package/dist/components/organisms/config-editor/config-editor.stories.d.ts +25 -0
- package/dist/components/organisms/config-editor/config-editor.stories.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/config-editor.stories.js +77 -0
- package/dist/components/organisms/config-editor/config-editor.stories.js.map +1 -0
- package/dist/components/organisms/config-editor/index.d.ts +22 -0
- package/dist/components/organisms/config-editor/index.d.ts.map +1 -0
- package/dist/components/organisms/config-editor/index.js +20 -0
- package/dist/components/organisms/config-editor/index.js.map +1 -0
- package/dist/components/organisms/live-code.d.ts +22 -0
- package/dist/components/organisms/live-code.d.ts.map +1 -0
- package/dist/components/organisms/live-code.js +50 -0
- package/dist/components/organisms/live-code.js.map +1 -0
- package/dist/components/organisms/live-code.stories.d.ts +24 -0
- package/dist/components/organisms/live-code.stories.d.ts.map +1 -0
- package/dist/components/organisms/live-code.stories.js +55 -0
- package/dist/components/organisms/live-code.stories.js.map +1 -0
- package/dist/components/ui/button.d.ts +4 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +6 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/icon.d.ts +5 -0
- package/dist/components/ui/icon.d.ts.map +1 -0
- package/dist/components/ui/icon.js +5 -0
- package/dist/components/ui/icon.js.map +1 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +5 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/contexts/GridHeightContext.d.ts +11 -0
- package/dist/contexts/GridHeightContext.d.ts.map +1 -0
- package/dist/contexts/GridHeightContext.js +14 -0
- package/dist/contexts/GridHeightContext.js.map +1 -0
- package/dist/helpers/capture.d.ts +83 -0
- package/dist/helpers/capture.d.ts.map +1 -0
- package/dist/helpers/capture.js +125 -0
- package/dist/helpers/capture.js.map +1 -0
- package/dist/helpers/destinations.d.ts +21 -0
- package/dist/helpers/destinations.d.ts.map +1 -0
- package/dist/helpers/destinations.js +46 -0
- package/dist/helpers/destinations.js.map +1 -0
- package/dist/hooks/useMappingNavigation.d.ts +62 -0
- package/dist/hooks/useMappingNavigation.d.ts.map +1 -0
- package/dist/hooks/useMappingNavigation.js +339 -0
- package/dist/hooks/useMappingNavigation.js.map +1 -0
- package/dist/hooks/useMappingState.d.ts +56 -0
- package/dist/hooks/useMappingState.d.ts.map +1 -0
- package/dist/hooks/useMappingState.js +142 -0
- package/dist/hooks/useMappingState.js.map +1 -0
- package/dist/hooks/useMonacoHeight.d.ts +31 -0
- package/dist/hooks/useMonacoHeight.d.ts.map +1 -0
- package/dist/hooks/useMonacoHeight.js +83 -0
- package/dist/hooks/useMonacoHeight.js.map +1 -0
- package/dist/hooks/useTreeState.d.ts +32 -0
- package/dist/hooks/useTreeState.d.ts.map +1 -0
- package/dist/hooks/useTreeState.js +94 -0
- package/dist/hooks/useTreeState.js.map +1 -0
- package/dist/index.d.cts +152 -33
- package/dist/index.d.ts +65 -1265
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -14046
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4759 -1375
- package/dist/index.mjs.map +1 -1
- package/dist/lib/utils.d.ts +7 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +10 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/{monaco-types-GBPMPIMU.mjs → monaco-types-4FIH5OVX.mjs} +2 -2
- package/dist/providers/MDXProvider.d.ts +40 -0
- package/dist/providers/MDXProvider.d.ts.map +1 -0
- package/dist/providers/MDXProvider.js +57 -0
- package/dist/providers/MDXProvider.js.map +1 -0
- package/dist/schemas/config-structures/destination-config.d.ts +27 -0
- package/dist/schemas/config-structures/destination-config.d.ts.map +1 -0
- package/dist/schemas/config-structures/destination-config.js +104 -0
- package/dist/schemas/config-structures/destination-config.js.map +1 -0
- package/dist/schemas/config-structures/index.d.ts +17 -0
- package/dist/schemas/config-structures/index.d.ts.map +1 -0
- package/dist/schemas/config-structures/index.js +17 -0
- package/dist/schemas/config-structures/index.js.map +1 -0
- package/dist/schemas/config-structures/mapping-rule.d.ts +17 -0
- package/dist/schemas/config-structures/mapping-rule.d.ts.map +1 -0
- package/dist/schemas/config-structures/mapping-rule.js +81 -0
- package/dist/schemas/config-structures/mapping-rule.js.map +1 -0
- package/dist/schemas/config-structures/types.d.ts +62 -0
- package/dist/schemas/config-structures/types.d.ts.map +1 -0
- package/dist/schemas/config-structures/types.js +2 -0
- package/dist/schemas/config-structures/types.js.map +1 -0
- package/dist/schemas/mapping-rule-schema.d.ts +25 -0
- package/dist/schemas/mapping-rule-schema.d.ts.map +1 -0
- package/dist/schemas/mapping-rule-schema.js +86 -0
- package/dist/schemas/mapping-rule-schema.js.map +1 -0
- package/dist/schemas/rule-properties-schema.d.ts +42 -0
- package/dist/schemas/rule-properties-schema.d.ts.map +1 -0
- package/dist/schemas/rule-properties-schema.js +79 -0
- package/dist/schemas/rule-properties-schema.js.map +1 -0
- package/dist/schemas/value-config-schema.d.ts +36 -0
- package/dist/schemas/value-config-schema.d.ts.map +1 -0
- package/dist/schemas/value-config-schema.js +227 -0
- package/dist/schemas/value-config-schema.js.map +1 -0
- package/dist/styles.css +317 -0
- package/dist/themes/index.d.ts +23 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/dist/themes/index.js +29 -0
- package/dist/themes/index.js.map +1 -0
- package/dist/themes/lighthouse.d.ts +26 -0
- package/dist/themes/lighthouse.d.ts.map +1 -0
- package/dist/themes/lighthouse.js +229 -0
- package/dist/themes/lighthouse.js.map +1 -0
- package/dist/themes/palenight.d.ts +31 -0
- package/dist/themes/palenight.d.ts.map +1 -0
- package/dist/themes/palenight.js +235 -0
- package/dist/themes/palenight.js.map +1 -0
- package/dist/themes/types.d.ts +103 -0
- package/dist/themes/types.d.ts.map +1 -0
- package/dist/themes/types.js +8 -0
- package/dist/themes/types.js.map +1 -0
- package/dist/types/schemas.d.ts +29 -0
- package/dist/types/schemas.d.ts.map +1 -0
- package/dist/types/schemas.js +2 -0
- package/dist/types/schemas.js.map +1 -0
- package/dist/utils/clean-form-data.d.ts +26 -0
- package/dist/utils/clean-form-data.d.ts.map +1 -0
- package/dist/utils/clean-form-data.js +76 -0
- package/dist/utils/clean-form-data.js.map +1 -0
- package/dist/utils/code-normalizer.d.ts +11 -0
- package/dist/utils/code-normalizer.d.ts.map +1 -0
- package/dist/utils/code-normalizer.js +21 -0
- package/dist/utils/code-normalizer.js.map +1 -0
- package/dist/utils/config-validator.d.ts +12 -0
- package/dist/utils/config-validator.d.ts.map +1 -0
- package/dist/utils/config-validator.js +10 -0
- package/dist/utils/config-validator.js.map +1 -0
- package/dist/utils/consent-scanner.d.ts +19 -0
- package/dist/utils/consent-scanner.d.ts.map +1 -0
- package/dist/utils/consent-scanner.js +115 -0
- package/dist/utils/consent-scanner.js.map +1 -0
- package/dist/utils/format-code.d.ts +9 -0
- package/dist/utils/format-code.d.ts.map +1 -0
- package/dist/utils/format-code.js +68 -0
- package/dist/utils/format-code.js.map +1 -0
- package/dist/utils/generic-tree-builder.d.ts +37 -0
- package/dist/utils/generic-tree-builder.d.ts.map +1 -0
- package/dist/utils/generic-tree-builder.js +225 -0
- package/dist/utils/generic-tree-builder.js.map +1 -0
- package/dist/utils/mapping-path.d.ts +146 -0
- package/dist/utils/mapping-path.d.ts.map +1 -0
- package/dist/utils/mapping-path.js +271 -0
- package/dist/utils/mapping-path.js.map +1 -0
- package/dist/utils/monaco-context-types.d.ts +39 -0
- package/dist/utils/monaco-context-types.d.ts.map +1 -0
- package/dist/utils/monaco-context-types.js +426 -0
- package/dist/utils/monaco-context-types.js.map +1 -0
- package/dist/utils/monaco-decorators.d.ts +17 -0
- package/dist/utils/monaco-decorators.d.ts.map +1 -0
- package/dist/utils/monaco-decorators.js +79 -0
- package/dist/utils/monaco-decorators.js.map +1 -0
- package/dist/utils/monaco-formatters.d.ts +16 -0
- package/dist/utils/monaco-formatters.d.ts.map +1 -0
- package/dist/utils/monaco-formatters.js +139 -0
- package/dist/utils/monaco-formatters.js.map +1 -0
- package/dist/utils/monaco-types.d.ts +174 -0
- package/dist/utils/monaco-types.d.ts.map +1 -0
- package/dist/utils/monaco-types.js +378 -0
- package/dist/utils/monaco-types.js.map +1 -0
- package/dist/utils/path-analyzer.d.ts +88 -0
- package/dist/utils/path-analyzer.d.ts.map +1 -0
- package/dist/utils/path-analyzer.js +215 -0
- package/dist/utils/path-analyzer.js.map +1 -0
- package/dist/utils/schema-validation.d.ts +36 -0
- package/dist/utils/schema-validation.d.ts.map +1 -0
- package/dist/utils/schema-validation.js +136 -0
- package/dist/utils/schema-validation.js.map +1 -0
- package/dist/utils/type-detector.d.ts +35 -0
- package/dist/utils/type-detector.d.ts.map +1 -0
- package/dist/utils/type-detector.js +241 -0
- package/dist/utils/type-detector.js.map +1 -0
- package/dist/utils/value-display-formatter.d.ts +31 -0
- package/dist/utils/value-display-formatter.d.ts.map +1 -0
- package/dist/utils/value-display-formatter.js +110 -0
- package/dist/utils/value-display-formatter.js.map +1 -0
- package/package.json +44 -28
- package/dist/chunk-BEAIHYJ5.mjs +0 -587
- package/dist/chunk-BEAIHYJ5.mjs.map +0 -1
- /package/dist/{monaco-types-GBPMPIMU.mjs.map → monaco-types-4FIH5OVX.mjs.map} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* MappingNumber - Custom RJSF widget for number inputs
|
|
4
|
+
*
|
|
5
|
+
* A styled number input widget that integrates with RJSF forms and uses
|
|
6
|
+
* the explorer's CSS variable theming system. Handles number parsing,
|
|
7
|
+
* validation (min/max from schema), and displays errors.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* // In schema:
|
|
11
|
+
* const schema = {
|
|
12
|
+
* type: 'object',
|
|
13
|
+
* properties: {
|
|
14
|
+
* priority: {
|
|
15
|
+
* type: 'number',
|
|
16
|
+
* minimum: 0,
|
|
17
|
+
* maximum: 100
|
|
18
|
+
* }
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // In uiSchema:
|
|
24
|
+
* const uiSchema = {
|
|
25
|
+
* priority: {
|
|
26
|
+
* 'ui:widget': 'mappingNumber',
|
|
27
|
+
* 'ui:placeholder': 'Enter priority...'
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
*/
|
|
31
|
+
export function MappingNumberWidget(props) {
|
|
32
|
+
const { id, value, onChange, disabled, readonly, placeholder, rawErrors = [], required, schema, } = props;
|
|
33
|
+
const handleChange = (event) => {
|
|
34
|
+
const inputValue = event.target.value;
|
|
35
|
+
// Handle empty input
|
|
36
|
+
if (inputValue === '') {
|
|
37
|
+
onChange(undefined);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
// Parse number
|
|
41
|
+
const numValue = parseFloat(inputValue);
|
|
42
|
+
if (!isNaN(numValue)) {
|
|
43
|
+
onChange(numValue);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const hasError = rawErrors && rawErrors.length > 0;
|
|
47
|
+
// Extract min/max from schema if defined
|
|
48
|
+
const min = schema.minimum;
|
|
49
|
+
const max = schema.maximum;
|
|
50
|
+
return (_jsxs("div", { className: "elb-rjsf-widget", children: [_jsx("input", { id: id, type: "number", className: `elb-rjsf-input ${hasError ? 'elb-rjsf-input-error' : ''}`, value: value ?? '', onChange: handleChange, disabled: disabled || readonly, placeholder: placeholder, required: required, min: min, max: max, step: "any" }), hasError && (_jsx("div", { className: "elb-rjsf-error", children: rawErrors.map((error, index) => (_jsx("div", { children: error }, index))) }))] }));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=mapping-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-number.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-number.tsx"],"names":[],"mappings":";AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAkB;IACpD,MAAM,EACJ,EAAE,EACF,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,SAAS,GAAG,EAAE,EACd,QAAQ,EACR,MAAM,GACP,GAAG,KAAK,CAAC;IAEV,MAAM,YAAY,GAAG,CAAC,KAA0C,EAAE,EAAE;QAClE,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;QAEtC,qBAAqB;QACrB,IAAI,UAAU,KAAK,EAAE,EAAE,CAAC;YACtB,QAAQ,CAAC,SAAS,CAAC,CAAC;YACpB,OAAO;QACT,CAAC;QAED,eAAe;QACf,MAAM,QAAQ,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;QACxC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;YACrB,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC;IAEnD,yCAAyC;IACzC,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC;IAC3B,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC;IAE3B,OAAO,CACL,eAAK,SAAS,EAAC,iBAAiB,aAC9B,gBACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,kBAAkB,QAAQ,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAAE,EACrE,KAAK,EAAE,KAAK,IAAI,EAAE,EAClB,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,KAAK,GACV,EACD,QAAQ,IAAI,CACX,cAAK,SAAS,EAAC,gBAAgB,YAC5B,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC/B,wBAAkB,KAAK,IAAb,KAAK,CAAe,CAC/B,CAAC,GACE,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { FieldProps } from '@rjsf/utils';
|
|
2
|
+
/**
|
|
3
|
+
* MappingObjectExplorerField - RJSF field wrapper for object exploration
|
|
4
|
+
*
|
|
5
|
+
* Bridges RJSF FieldProps to our custom MappingObjectExplorerWidget.
|
|
6
|
+
* Required because RJSF uses fields (not widgets) for object types.
|
|
7
|
+
*
|
|
8
|
+
* This is the proper RJSF pattern for custom object rendering.
|
|
9
|
+
* Objects in RJSF are handled by Fields, primitives by Widgets.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* // Register in field registry:
|
|
13
|
+
* export const mappingFields: RegistryFieldsType = {
|
|
14
|
+
* objectExplorer: MappingObjectExplorerField,
|
|
15
|
+
* };
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* // Use in uiSchema:
|
|
19
|
+
* const uiSchema = {
|
|
20
|
+
* 'ui:field': 'objectExplorer',
|
|
21
|
+
* 'ui:options': {
|
|
22
|
+
* allowAdd: true,
|
|
23
|
+
* allowRename: true,
|
|
24
|
+
* showBadges: true,
|
|
25
|
+
* }
|
|
26
|
+
* };
|
|
27
|
+
*/
|
|
28
|
+
export declare function MappingObjectExplorerField(props: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export default MappingObjectExplorerField;
|
|
30
|
+
//# sourceMappingURL=mapping-object-explorer-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-object-explorer-field.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-object-explorer-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,UAAU,2CA4B3D;AAED,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MappingObjectExplorerWidget } from './mapping-object-explorer';
|
|
3
|
+
/**
|
|
4
|
+
* MappingObjectExplorerField - RJSF field wrapper for object exploration
|
|
5
|
+
*
|
|
6
|
+
* Bridges RJSF FieldProps to our custom MappingObjectExplorerWidget.
|
|
7
|
+
* Required because RJSF uses fields (not widgets) for object types.
|
|
8
|
+
*
|
|
9
|
+
* This is the proper RJSF pattern for custom object rendering.
|
|
10
|
+
* Objects in RJSF are handled by Fields, primitives by Widgets.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* // Register in field registry:
|
|
14
|
+
* export const mappingFields: RegistryFieldsType = {
|
|
15
|
+
* objectExplorer: MappingObjectExplorerField,
|
|
16
|
+
* };
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* // Use in uiSchema:
|
|
20
|
+
* const uiSchema = {
|
|
21
|
+
* 'ui:field': 'objectExplorer',
|
|
22
|
+
* 'ui:options': {
|
|
23
|
+
* allowAdd: true,
|
|
24
|
+
* allowRename: true,
|
|
25
|
+
* showBadges: true,
|
|
26
|
+
* }
|
|
27
|
+
* };
|
|
28
|
+
*/
|
|
29
|
+
export function MappingObjectExplorerField(props) {
|
|
30
|
+
const { formData, onChange, schema, uiSchema, idSchema, formContext, disabled, readonly, } = props;
|
|
31
|
+
const widgetProps = {
|
|
32
|
+
id: idSchema.$id,
|
|
33
|
+
value: formData,
|
|
34
|
+
onChange,
|
|
35
|
+
schema,
|
|
36
|
+
uiSchema,
|
|
37
|
+
options: uiSchema?.['ui:options'] || {},
|
|
38
|
+
formContext,
|
|
39
|
+
disabled: disabled || false,
|
|
40
|
+
readonly: readonly || false,
|
|
41
|
+
label: schema.title || '',
|
|
42
|
+
rawErrors: [],
|
|
43
|
+
};
|
|
44
|
+
// @ts-expect-error - WidgetProps type mismatch, consistent with other mapping fields
|
|
45
|
+
return _jsx(MappingObjectExplorerWidget, { ...widgetProps });
|
|
46
|
+
}
|
|
47
|
+
export default MappingObjectExplorerField;
|
|
48
|
+
//# sourceMappingURL=mapping-object-explorer-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-object-explorer-field.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-object-explorer-field.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAExE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAiB;IAC1D,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,MAAM,WAAW,GAAG;QAClB,EAAE,EAAE,QAAQ,CAAC,GAAG;QAChB,KAAK,EAAE,QAAQ;QACf,QAAQ;QACR,MAAM;QACN,QAAQ;QACR,OAAO,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE;QACvC,WAAW;QACX,QAAQ,EAAE,QAAQ,IAAI,KAAK;QAC3B,QAAQ,EAAE,QAAQ,IAAI,KAAK;QAC3B,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE;QACzB,SAAS,EAAE,EAAE;KACd,CAAC;IAEF,qFAAqF;IACrF,OAAO,KAAC,2BAA2B,OAAK,WAAW,GAAI,CAAC;AAC1D,CAAC;AAED,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { WidgetProps, RJSFSchema } from '@rjsf/utils';
|
|
2
|
+
import type { UseMappingStateReturn } from '../../hooks/useMappingState';
|
|
3
|
+
import type { UseMappingNavigationReturn, NodeType } from '../../hooks/useMappingNavigation';
|
|
4
|
+
/**
|
|
5
|
+
* Form context interface for object explorer widget
|
|
6
|
+
*/
|
|
7
|
+
export interface ObjectExplorerFormContext {
|
|
8
|
+
navigation: UseMappingNavigationReturn;
|
|
9
|
+
mappingState: UseMappingStateReturn;
|
|
10
|
+
path: string[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Configuration options from uiSchema
|
|
14
|
+
*/
|
|
15
|
+
export interface ObjectExplorerOptions {
|
|
16
|
+
allowAdd?: boolean;
|
|
17
|
+
allowRename?: boolean;
|
|
18
|
+
allowDelete?: boolean;
|
|
19
|
+
showBadges?: boolean;
|
|
20
|
+
childNodeType?: NodeType;
|
|
21
|
+
emptyMessage?: string;
|
|
22
|
+
placeholder?: string;
|
|
23
|
+
propertySuggestionsSchema?: RJSFSchema;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* MappingObjectExplorerWidget - Generic RJSF widget for object key-value exploration
|
|
27
|
+
*
|
|
28
|
+
* Replicates the exact behavior of MappingMapPaneView but is schema-driven.
|
|
29
|
+
* Can be reused for map transformations, settings navigation, and any nested object exploration.
|
|
30
|
+
*
|
|
31
|
+
* Features (identical to original map pane):
|
|
32
|
+
* - List object keys sorted alphabetically
|
|
33
|
+
* - Add new key with input + button
|
|
34
|
+
* - Rename key inline with edit icon
|
|
35
|
+
* - Delete key with confirm button
|
|
36
|
+
* - Show badges for configured properties
|
|
37
|
+
* - Navigate to child editor on click
|
|
38
|
+
* - Navigate to specific property on badge click
|
|
39
|
+
*
|
|
40
|
+
* Configuration via uiSchema:
|
|
41
|
+
* ```typescript
|
|
42
|
+
* {
|
|
43
|
+
* 'ui:widget': 'objectExplorer',
|
|
44
|
+
* 'ui:options': {
|
|
45
|
+
* allowAdd: true,
|
|
46
|
+
* allowRename: true,
|
|
47
|
+
* allowDelete: true,
|
|
48
|
+
* showBadges: true,
|
|
49
|
+
* childNodeType: 'valueType',
|
|
50
|
+
* emptyMessage: 'No keys yet...',
|
|
51
|
+
* placeholder: 'Type key name...'
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* Requires formContext with navigation, mappingState, and path.
|
|
57
|
+
*/
|
|
58
|
+
export declare function MappingObjectExplorerWidget(props: WidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
//# sourceMappingURL=mapping-object-explorer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-object-explorer.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-object-explorer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EACV,0BAA0B,EAC1B,QAAQ,EACT,MAAM,kCAAkC,CAAC;AAM1C;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,0BAA0B,CAAC;IACvC,YAAY,EAAE,qBAAqB,CAAC;IACpC,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB,CAAC,EAAE,UAAU,CAAC;CACxC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,WAAW,2CAwW7D"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { MappingInputWithButton } from './mapping-input-with-button';
|
|
4
|
+
import { MappingConfirmButton } from './mapping-confirm-button';
|
|
5
|
+
import { getConfiguredProperties } from '../../utils/value-display-formatter';
|
|
6
|
+
import { PropertySuggestions } from '../molecules/property-suggestions';
|
|
7
|
+
/**
|
|
8
|
+
* MappingObjectExplorerWidget - Generic RJSF widget for object key-value exploration
|
|
9
|
+
*
|
|
10
|
+
* Replicates the exact behavior of MappingMapPaneView but is schema-driven.
|
|
11
|
+
* Can be reused for map transformations, settings navigation, and any nested object exploration.
|
|
12
|
+
*
|
|
13
|
+
* Features (identical to original map pane):
|
|
14
|
+
* - List object keys sorted alphabetically
|
|
15
|
+
* - Add new key with input + button
|
|
16
|
+
* - Rename key inline with edit icon
|
|
17
|
+
* - Delete key with confirm button
|
|
18
|
+
* - Show badges for configured properties
|
|
19
|
+
* - Navigate to child editor on click
|
|
20
|
+
* - Navigate to specific property on badge click
|
|
21
|
+
*
|
|
22
|
+
* Configuration via uiSchema:
|
|
23
|
+
* ```typescript
|
|
24
|
+
* {
|
|
25
|
+
* 'ui:widget': 'objectExplorer',
|
|
26
|
+
* 'ui:options': {
|
|
27
|
+
* allowAdd: true,
|
|
28
|
+
* allowRename: true,
|
|
29
|
+
* allowDelete: true,
|
|
30
|
+
* showBadges: true,
|
|
31
|
+
* childNodeType: 'valueType',
|
|
32
|
+
* emptyMessage: 'No keys yet...',
|
|
33
|
+
* placeholder: 'Type key name...'
|
|
34
|
+
* }
|
|
35
|
+
* }
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* Requires formContext with navigation, mappingState, and path.
|
|
39
|
+
*/
|
|
40
|
+
export function MappingObjectExplorerWidget(props) {
|
|
41
|
+
const { value, onChange, options, formContext } = props;
|
|
42
|
+
// Extract context
|
|
43
|
+
const { navigation, mappingState, path } = (formContext ||
|
|
44
|
+
{});
|
|
45
|
+
// Extract options with defaults
|
|
46
|
+
const config = {
|
|
47
|
+
allowAdd: options?.allowAdd !== false,
|
|
48
|
+
allowRename: options?.allowRename !== false,
|
|
49
|
+
allowDelete: options?.allowDelete !== false,
|
|
50
|
+
showBadges: options?.showBadges !== false,
|
|
51
|
+
childNodeType: options?.childNodeType || 'valueType',
|
|
52
|
+
emptyMessage: (typeof options?.emptyMessage === 'string' ? options?.emptyMessage : undefined) || 'No keys yet. Add keys to transform event data.',
|
|
53
|
+
placeholder: (typeof options?.placeholder === 'string' ? options?.placeholder : undefined) ||
|
|
54
|
+
'Type key name to create or select (e.g., currency)...',
|
|
55
|
+
propertySuggestionsSchema: options?.propertySuggestionsSchema,
|
|
56
|
+
};
|
|
57
|
+
// State for add/rename operations
|
|
58
|
+
const [newKey, setNewKey] = useState('');
|
|
59
|
+
const [keyExists, setKeyExists] = useState(false);
|
|
60
|
+
const [renamingKey, setRenamingKey] = useState(null);
|
|
61
|
+
const [renameValue, setRenameValue] = useState('');
|
|
62
|
+
// Get map object from value
|
|
63
|
+
const map = value && typeof value === 'object' && !Array.isArray(value)
|
|
64
|
+
? value
|
|
65
|
+
: {};
|
|
66
|
+
// Get sorted list of map keys
|
|
67
|
+
const mapKeys = Object.keys(map).sort();
|
|
68
|
+
// Add key handlers
|
|
69
|
+
const handleKeyInputChange = (newValue) => {
|
|
70
|
+
setNewKey(newValue);
|
|
71
|
+
setKeyExists(map[newValue] !== undefined);
|
|
72
|
+
};
|
|
73
|
+
const handleKeySubmit = () => {
|
|
74
|
+
const key = newKey.trim();
|
|
75
|
+
if (!key) {
|
|
76
|
+
setNewKey('');
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
// Initialize with empty string if new
|
|
80
|
+
if (!keyExists) {
|
|
81
|
+
const newMap = { ...map, [key]: '' };
|
|
82
|
+
onChange(newMap);
|
|
83
|
+
}
|
|
84
|
+
// Navigate to the key editor
|
|
85
|
+
if (navigation) {
|
|
86
|
+
navigation.openTab([...path, key], config.childNodeType);
|
|
87
|
+
}
|
|
88
|
+
setNewKey('');
|
|
89
|
+
setKeyExists(false);
|
|
90
|
+
};
|
|
91
|
+
const handleKeyDown = (e) => {
|
|
92
|
+
if (e.key === 'Escape') {
|
|
93
|
+
e.preventDefault();
|
|
94
|
+
setNewKey('');
|
|
95
|
+
setKeyExists(false);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
// Key click handler - navigate to child editor
|
|
99
|
+
const handleKeyClick = (key) => {
|
|
100
|
+
if (navigation) {
|
|
101
|
+
navigation.openTab([...path, key], config.childNodeType);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
// Badge click handler - navigate to specific property
|
|
105
|
+
const handleBadgeClick = (key, prop) => {
|
|
106
|
+
if (!navigation)
|
|
107
|
+
return;
|
|
108
|
+
// If prop is empty (simple string value), go to child overview
|
|
109
|
+
if (!prop) {
|
|
110
|
+
navigation.openTab([...path, key], config.childNodeType);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
// Map each property to its corresponding node type and path
|
|
114
|
+
const propToNodeType = {
|
|
115
|
+
fn: 'fn',
|
|
116
|
+
key: 'key',
|
|
117
|
+
value: 'value',
|
|
118
|
+
map: 'map',
|
|
119
|
+
loop: 'loop',
|
|
120
|
+
set: 'set',
|
|
121
|
+
consent: 'consent',
|
|
122
|
+
condition: 'condition',
|
|
123
|
+
validate: 'validate',
|
|
124
|
+
};
|
|
125
|
+
const nodeType = propToNodeType[prop] || config.childNodeType;
|
|
126
|
+
const targetPath = [...path, key, prop];
|
|
127
|
+
navigation.openTab(targetPath, nodeType);
|
|
128
|
+
};
|
|
129
|
+
// Delete key handler
|
|
130
|
+
const handleDeleteClick = (key) => {
|
|
131
|
+
const newMap = { ...map };
|
|
132
|
+
delete newMap[key];
|
|
133
|
+
onChange(newMap);
|
|
134
|
+
};
|
|
135
|
+
// Rename handlers
|
|
136
|
+
const handleRenameClick = (key) => {
|
|
137
|
+
setRenamingKey(key);
|
|
138
|
+
setRenameValue(key);
|
|
139
|
+
};
|
|
140
|
+
const handleRenameChange = (newValue) => {
|
|
141
|
+
setRenameValue(newValue);
|
|
142
|
+
};
|
|
143
|
+
const handleRenameSubmit = (oldKey) => {
|
|
144
|
+
const newKeyTrimmed = renameValue.trim();
|
|
145
|
+
// Cancel if empty or unchanged
|
|
146
|
+
if (!newKeyTrimmed || newKeyTrimmed === oldKey) {
|
|
147
|
+
setRenamingKey(null);
|
|
148
|
+
setRenameValue('');
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
// Cancel if key already exists
|
|
152
|
+
if (map[newKeyTrimmed] !== undefined) {
|
|
153
|
+
setRenamingKey(null);
|
|
154
|
+
setRenameValue('');
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
// Rename: copy value to new key, delete old key
|
|
158
|
+
const oldValue = map[oldKey];
|
|
159
|
+
const newMap = { ...map };
|
|
160
|
+
delete newMap[oldKey];
|
|
161
|
+
newMap[newKeyTrimmed] = oldValue;
|
|
162
|
+
onChange(newMap);
|
|
163
|
+
setRenamingKey(null);
|
|
164
|
+
setRenameValue('');
|
|
165
|
+
};
|
|
166
|
+
const handleRenameCancel = () => {
|
|
167
|
+
setRenamingKey(null);
|
|
168
|
+
setRenameValue('');
|
|
169
|
+
};
|
|
170
|
+
const handleRenameKeyDown = (e, oldKey) => {
|
|
171
|
+
if (e.key === 'Escape') {
|
|
172
|
+
e.preventDefault();
|
|
173
|
+
handleRenameCancel();
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
const handleRenameBlur = () => {
|
|
177
|
+
// Cancel edit on blur (clicking outside)
|
|
178
|
+
// Use setTimeout to allow button click to register first
|
|
179
|
+
setTimeout(() => {
|
|
180
|
+
handleRenameCancel();
|
|
181
|
+
}, 150);
|
|
182
|
+
};
|
|
183
|
+
// Property suggestion selection handler
|
|
184
|
+
const handlePropertySelect = (propertyName, nodeType) => {
|
|
185
|
+
// Initialize with empty string if new
|
|
186
|
+
if (map[propertyName] === undefined) {
|
|
187
|
+
const newMap = { ...map, [propertyName]: '' };
|
|
188
|
+
onChange(newMap);
|
|
189
|
+
}
|
|
190
|
+
// Navigate to the property editor using the schema-detected NodeType
|
|
191
|
+
if (navigation) {
|
|
192
|
+
navigation.openTab([...path, propertyName], nodeType);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
return (_jsxs("div", { className: "elb-object-explorer", children: [config.allowAdd && (_jsx("div", { className: "elb-policy-input-section", children: _jsx(MappingInputWithButton, { value: newKey, onChange: handleKeyInputChange, onSubmit: handleKeySubmit, onKeyDown: handleKeyDown, buttonLabel: keyExists ? 'Open' : 'Add Key', showButton: true, placeholder: config.placeholder, className: keyExists ? 'is-existing' : '' }) })), config.allowAdd &&
|
|
196
|
+
config.propertySuggestionsSchema &&
|
|
197
|
+
typeof config.propertySuggestionsSchema === 'object' &&
|
|
198
|
+
'properties' in config.propertySuggestionsSchema && (_jsx(PropertySuggestions, { schema: config.propertySuggestionsSchema, existingKeys: mapKeys, currentValue: map, onSelect: handlePropertySelect })), mapKeys.length > 0 && (_jsx("div", { className: "elb-policy-list", children: mapKeys.map((key) => {
|
|
199
|
+
const keyValue = map[key];
|
|
200
|
+
const configuredProps = config.showBadges
|
|
201
|
+
? getConfiguredProperties(keyValue)
|
|
202
|
+
: [];
|
|
203
|
+
const isRenaming = renamingKey === key;
|
|
204
|
+
return (_jsxs("div", { className: "elb-policy-row", onClick: () => !isRenaming && handleKeyClick(key), style: { cursor: isRenaming ? 'default' : 'pointer' }, children: [isRenaming ? (_jsx("div", { className: "elb-policy-row-path-rename", children: _jsx(MappingInputWithButton, { value: renameValue, onChange: handleRenameChange, onSubmit: () => handleRenameSubmit(key), onKeyDown: (e) => handleRenameKeyDown(e, key), onBlur: handleRenameBlur, buttonLabel: "Save", showButton: true, autoFocus: true, className: "" }) })) : (_jsxs("div", { className: "elb-policy-row-path-with-edit", children: [_jsx("span", { className: "elb-policy-row-path", children: key }), config.allowRename && (_jsx("button", { type: "button", className: "elb-mapping-edit-button", onClick: (e) => {
|
|
205
|
+
e.stopPropagation();
|
|
206
|
+
handleRenameClick(key);
|
|
207
|
+
}, title: "Rename key", "aria-label": `Rename key ${key}`, children: _jsxs("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M10.5 1.5L12.5 3.5L4.5 11.5H2.5V9.5L10.5 1.5Z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M9 3L11 5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }) }))] })), config.showBadges && (_jsx("div", { className: "elb-policy-row-badges", children: configuredProps.map(({ prop, value, isLong }, index) => (_jsxs("button", { type: "button", className: "elb-policy-badge", onClick: (e) => {
|
|
208
|
+
e.stopPropagation();
|
|
209
|
+
handleBadgeClick(key, prop);
|
|
210
|
+
}, title: prop
|
|
211
|
+
? `Click to edit ${prop}`
|
|
212
|
+
: 'Click to edit value configuration', children: [prop && (_jsxs("span", { className: "elb-policy-badge-label", children: [prop, ":"] })), _jsx("span", { className: `elb-policy-badge-value ${isLong ? 'is-long' : ''}`, children: value })] }, prop || index))) })), config.allowDelete && (_jsx("div", { className: "elb-policy-row-actions", children: _jsx(MappingConfirmButton, { confirmLabel: "Delete?", onConfirm: () => handleDeleteClick(key), ariaLabel: `Delete key ${key}`, className: "elb-mapping-delete-button" }) }))] }, key));
|
|
213
|
+
}) })), mapKeys.length === 0 && (_jsxs("div", { className: "elb-policy-empty", children: [_jsx("p", { children: config.emptyMessage }), _jsxs("ul", { children: [_jsx("li", { children: "Each key becomes a property in the output" }), _jsx("li", { children: "Values can be simple strings or complex transformations" }), _jsx("li", { children: "Example: currency \u2192 \"USD\", item_id \u2192 \"data.id\"" })] })] }))] }));
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=mapping-object-explorer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-object-explorer.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-object-explorer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAyBxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,UAAU,2BAA2B,CAAC,KAAkB;IAC5D,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAExD,kBAAkB;IAClB,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,IAAI,E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wBAAwB,aACrC,IAAI,SACA,CACR,EACD,eACE,SAAS,EAAE,0BAA0B,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,YAE7D,KAAK,GACD,KAtBF,IAAI,IAAI,KAAK,CAuBX,CACV,CAAC,GACE,CACP,EAGA,MAAM,CAAC,WAAW,IAAI,CACrB,cAAK,SAAS,EAAC,wBAAwB,YACrC,KAAC,oBAAoB,IACnB,YAAY,EAAC,SAAS,EACtB,SAAS,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,EACvC,SAAS,EAAE,cAAc,GAAG,EAAE,EAC9B,SAAS,EAAC,2BAA2B,GACrC,GACE,CACP,KAxGI,GAAG,CAyGJ,CACP,CAAC;gBACJ,CAAC,CAAC,GACE,CACP,EAGA,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CACvB,eAAK,SAAS,EAAC,kBAAkB,aAC/B,sBAAI,MAAM,CAAC,YAAY,GAAK,EAC5B,yBACE,qEAAkD,EAClD,mFAAgE,EAChE,wFAAuD,IACpD,IACD,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface SetEntry {
|
|
2
|
+
value: string | Record<string, unknown>;
|
|
3
|
+
tempId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface MappingSetEntryProps {
|
|
6
|
+
entry: SetEntry;
|
|
7
|
+
onChange: (entry: SetEntry) => void;
|
|
8
|
+
onRemove: () => void;
|
|
9
|
+
index: number;
|
|
10
|
+
isDragging?: boolean;
|
|
11
|
+
isDragOver?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* MappingSetEntry - Single value entry in a set array
|
|
15
|
+
*
|
|
16
|
+
* Features:
|
|
17
|
+
* - Type selector (Simple/Advanced)
|
|
18
|
+
* - Simple mode: String input for key paths
|
|
19
|
+
* - Advanced mode: Full ValueConfig form
|
|
20
|
+
* - Delete button
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <MappingSetEntry
|
|
24
|
+
* entry={{ value: 'data.id', tempId: '123' }}
|
|
25
|
+
* onChange={handleChange}
|
|
26
|
+
* onRemove={handleRemove}
|
|
27
|
+
* index={0}
|
|
28
|
+
* />
|
|
29
|
+
*/
|
|
30
|
+
export declare function MappingSetEntry({ entry, onChange, onRemove, index, isDragging, isDragOver, }: MappingSetEntryProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=mapping-set-entry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-set-entry.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-set-entry.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,UAAkB,EAClB,UAAkB,GACnB,EAAE,oBAAoB,2CAsHtB"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconButton } from './icon-button';
|
|
3
|
+
import { MappingFormWrapper } from '../forms/mapping-form-wrapper';
|
|
4
|
+
import { valueConfigSchema, valueConfigUiSchema, } from '../../schemas/value-config-schema';
|
|
5
|
+
import { cleanFormData } from '../../utils/clean-form-data';
|
|
6
|
+
/**
|
|
7
|
+
* MappingSetEntry - Single value entry in a set array
|
|
8
|
+
*
|
|
9
|
+
* Features:
|
|
10
|
+
* - Type selector (Simple/Advanced)
|
|
11
|
+
* - Simple mode: String input for key paths
|
|
12
|
+
* - Advanced mode: Full ValueConfig form
|
|
13
|
+
* - Delete button
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <MappingSetEntry
|
|
17
|
+
* entry={{ value: 'data.id', tempId: '123' }}
|
|
18
|
+
* onChange={handleChange}
|
|
19
|
+
* onRemove={handleRemove}
|
|
20
|
+
* index={0}
|
|
21
|
+
* />
|
|
22
|
+
*/
|
|
23
|
+
export function MappingSetEntry({ entry, onChange, onRemove, index, isDragging = false, isDragOver = false, }) {
|
|
24
|
+
const valueType = typeof entry.value === 'string' ? 'simple' : 'advanced';
|
|
25
|
+
const handleTypeChange = (e) => {
|
|
26
|
+
const newType = e.target.value;
|
|
27
|
+
if (newType === valueType)
|
|
28
|
+
return;
|
|
29
|
+
if (newType === 'advanced') {
|
|
30
|
+
// Convert simple string to ValueConfig
|
|
31
|
+
const stringValue = entry.value;
|
|
32
|
+
onChange({
|
|
33
|
+
...entry,
|
|
34
|
+
value: stringValue ? { key: stringValue } : {},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
// Convert ValueConfig to simple string
|
|
39
|
+
const config = entry.value;
|
|
40
|
+
let extractedValue = '';
|
|
41
|
+
// Priority: key > value > empty string
|
|
42
|
+
if (config.key && typeof config.key === 'string') {
|
|
43
|
+
extractedValue = config.key;
|
|
44
|
+
}
|
|
45
|
+
else if (config.value !== undefined &&
|
|
46
|
+
typeof config.value === 'string') {
|
|
47
|
+
extractedValue = config.value;
|
|
48
|
+
}
|
|
49
|
+
onChange({
|
|
50
|
+
...entry,
|
|
51
|
+
value: extractedValue,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const handleSimpleValueChange = (e) => {
|
|
56
|
+
onChange({ ...entry, value: e.target.value });
|
|
57
|
+
};
|
|
58
|
+
const handleAdvancedValueChange = (data) => {
|
|
59
|
+
// Clean the nested ValueConfig data to remove empty values
|
|
60
|
+
const cleaned = cleanFormData(data);
|
|
61
|
+
const finalValue = Object.keys(cleaned).length > 0 ? cleaned : {};
|
|
62
|
+
onChange({ ...entry, value: finalValue });
|
|
63
|
+
};
|
|
64
|
+
return (_jsxs("div", { className: `elb-mapping-set-entry ${valueType === 'advanced' ? 'elb-mapping-set-entry-advanced' : ''} ${isDragging ? 'elb-mapping-set-entry-dragging' : ''} ${isDragOver ? 'elb-mapping-set-entry-drag-over' : ''}`, children: [_jsx("div", { className: "elb-mapping-set-drag-handle", title: "Drag to reorder", children: _jsxs("svg", { width: "12", height: "16", viewBox: "0 0 12 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("circle", { cx: "3", cy: "4", r: "1.5" }), _jsx("circle", { cx: "9", cy: "4", r: "1.5" }), _jsx("circle", { cx: "3", cy: "8", r: "1.5" }), _jsx("circle", { cx: "9", cy: "8", r: "1.5" }), _jsx("circle", { cx: "3", cy: "12", r: "1.5" }), _jsx("circle", { cx: "9", cy: "12", r: "1.5" })] }) }), _jsxs("select", { className: "elb-mapping-set-type-select", value: valueType, onChange: handleTypeChange, "aria-label": `Value ${index + 1} type`, children: [_jsx("option", { value: "simple", children: "Simple" }), _jsx("option", { value: "advanced", children: "Advanced" })] }), valueType === 'simple' ? (_jsx("input", { type: "text", className: "elb-mapping-set-value-simple", value: entry.value, onChange: handleSimpleValueChange, placeholder: "Key path or value (e.g., data.id)", "aria-label": `Value ${index + 1}` })) : (_jsx("div", { className: "elb-mapping-set-value-advanced", children: _jsx(MappingFormWrapper, { schema: valueConfigSchema, uiSchema: valueConfigUiSchema, formData: entry.value, onChange: handleAdvancedValueChange, nested: true }) })), _jsx("div", { className: "elb-mapping-set-delete-wrapper", children: _jsx(IconButton, { icon: "delete", variant: "danger", onClick: onRemove, title: `Remove value ${index + 1}` }) })] }));
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=mapping-set-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-set-entry.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-set-entry.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EACL,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAgB5D;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,eAAe,CAAC,EAC9B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,GACG;IACrB,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC;IAE1E,MAAM,gBAAgB,GAAG,CAAC,CAAuC,EAAE,EAAE;QACnE,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,KAA8B,CAAC;QAExD,IAAI,OAAO,KAAK,SAAS;YAAE,OAAO;QAElC,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;YAC3B,uCAAuC;YACvC,MAAM,WAAW,GAAG,KAAK,CAAC,KAAe,CAAC;YAC1C,QAAQ,CAAC;gBACP,GAAG,KAAK;gBACR,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE;aAC/C,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,uCAAuC;YACvC,MAAM,MAAM,GAAG,KAAK,CAAC,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kBAAkB,IACjB,MAAM,EAAE,iBAAiB,EACzB,QAAQ,EAAE,mBAAmB,EAC7B,QAAQ,EAAE,KAAK,CAAC,KAAgC,EAChD,QAAQ,EAAE,yBAAyB,EACnC,MAAM,EAAE,IAAI,GACZ,GACE,CACP,EAGD,cAAK,SAAS,EAAC,gCAAgC,YAC7C,KAAC,UAAU,IACT,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,QAAQ,EAChB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,gBAAgB,KAAK,GAAG,CAAC,EAAE,GAClC,GACE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { FieldProps } from '@rjsf/utils';
|
|
2
|
+
/**
|
|
3
|
+
* MappingSettingsField - RJSF field wrapper for destination-specific settings
|
|
4
|
+
*
|
|
5
|
+
* Bridges RJSF FieldProps to our custom MappingSettingsWidget.
|
|
6
|
+
* Required because RJSF uses fields (not widgets) for complex object types.
|
|
7
|
+
*
|
|
8
|
+
* Follows the same pattern as:
|
|
9
|
+
* - MappingDataField → MappingDataWidget
|
|
10
|
+
* - MappingConsentField → MappingConsentWidget
|
|
11
|
+
* - MappingConditionField → MappingConditionWidget
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Register in field registry:
|
|
15
|
+
* export const mappingFields: RegistryFieldsType = {
|
|
16
|
+
* mappingSettings: MappingSettingsField,
|
|
17
|
+
* };
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // Use in uiSchema:
|
|
21
|
+
* const uiSchema = {
|
|
22
|
+
* settings: {
|
|
23
|
+
* 'ui:field': 'mappingSettings',
|
|
24
|
+
* 'ui:options': {
|
|
25
|
+
* schema: destinationSchema.mappingSchema,
|
|
26
|
+
* uiSchema: destinationSchema.mappingUiSchema
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* };
|
|
30
|
+
*/
|
|
31
|
+
export declare function MappingSettingsField(props: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export default MappingSettingsField;
|
|
33
|
+
//# sourceMappingURL=mapping-settings-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-settings-field.d.ts","sourceRoot":"","sources":["../../../src/components/atoms/mapping-settings-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,2CAyBrD;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MappingSettingsWidget } from './mapping-settings';
|
|
3
|
+
/**
|
|
4
|
+
* MappingSettingsField - RJSF field wrapper for destination-specific settings
|
|
5
|
+
*
|
|
6
|
+
* Bridges RJSF FieldProps to our custom MappingSettingsWidget.
|
|
7
|
+
* Required because RJSF uses fields (not widgets) for complex object types.
|
|
8
|
+
*
|
|
9
|
+
* Follows the same pattern as:
|
|
10
|
+
* - MappingDataField → MappingDataWidget
|
|
11
|
+
* - MappingConsentField → MappingConsentWidget
|
|
12
|
+
* - MappingConditionField → MappingConditionWidget
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* // Register in field registry:
|
|
16
|
+
* export const mappingFields: RegistryFieldsType = {
|
|
17
|
+
* mappingSettings: MappingSettingsField,
|
|
18
|
+
* };
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* // Use in uiSchema:
|
|
22
|
+
* const uiSchema = {
|
|
23
|
+
* settings: {
|
|
24
|
+
* 'ui:field': 'mappingSettings',
|
|
25
|
+
* 'ui:options': {
|
|
26
|
+
* schema: destinationSchema.mappingSchema,
|
|
27
|
+
* uiSchema: destinationSchema.mappingUiSchema
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* };
|
|
31
|
+
*/
|
|
32
|
+
export function MappingSettingsField(props) {
|
|
33
|
+
const { formData, onChange, schema, uiSchema, idSchema, rawErrors, disabled, readonly, } = props;
|
|
34
|
+
const widgetProps = {
|
|
35
|
+
id: idSchema.$id,
|
|
36
|
+
value: formData,
|
|
37
|
+
onChange,
|
|
38
|
+
schema,
|
|
39
|
+
uiSchema,
|
|
40
|
+
rawErrors: rawErrors || [],
|
|
41
|
+
disabled: disabled || false,
|
|
42
|
+
readonly: readonly || false,
|
|
43
|
+
};
|
|
44
|
+
// @ts-expect-error - WidgetProps type mismatch, consistent with other mapping fields
|
|
45
|
+
return _jsx(MappingSettingsWidget, { ...widgetProps });
|
|
46
|
+
}
|
|
47
|
+
export default MappingSettingsField;
|
|
48
|
+
//# sourceMappingURL=mapping-settings-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-settings-field.js","sourceRoot":"","sources":["../../../src/components/atoms/mapping-settings-field.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAiB;IACpD,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,MAAM,WAAW,GAAG;QAClB,EAAE,EAAE,QAAQ,CAAC,GAAG;QAChB,KAAK,EAAE,QAAQ;QACf,QAAQ;QACR,MAAM;QACN,QAAQ;QACR,SAAS,EAAE,SAAS,IAAI,EAAE;QAC1B,QAAQ,EAAE,QAAQ,IAAI,KAAK;QAC3B,QAAQ,EAAE,QAAQ,IAAI,KAAK;KAC5B,CAAC;IAEF,qFAAqF;IACrF,OAAO,KAAC,qBAAqB,OAAK,WAAW,GAAI,CAAC;AACpD,CAAC;AAED,eAAe,oBAAoB,CAAC"}
|