@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,65 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useMemo } from 'react';
|
|
3
|
+
import { ConsentStateTile } from '../atoms/consent-state-tile';
|
|
4
|
+
import { scanMappingForConsentStates } from '../../utils/consent-scanner';
|
|
5
|
+
import { BaseMappingPane } from '../atoms/base-mapping-pane';
|
|
6
|
+
import { getPathDescription } from '../../utils/path-analyzer';
|
|
7
|
+
import { MappingInputWithButton } from '../atoms/mapping-input-with-button';
|
|
8
|
+
export function MappingConsentPaneView({ path, mappingState, navigation, className = '', }) {
|
|
9
|
+
const [newStateName, setNewStateName] = useState('');
|
|
10
|
+
// Get current consent value at this path
|
|
11
|
+
const value = mappingState.actions.getValue(path);
|
|
12
|
+
const currentConsent = value && typeof value === 'object'
|
|
13
|
+
? value
|
|
14
|
+
: {};
|
|
15
|
+
// Scan entire mapping for all consent states
|
|
16
|
+
const discoveredStates = useMemo(() => scanMappingForConsentStates(mappingState.config), [mappingState.config]);
|
|
17
|
+
const handleToggleState = (stateName) => {
|
|
18
|
+
const isCurrentlyChecked = currentConsent[stateName] === true;
|
|
19
|
+
if (isCurrentlyChecked) {
|
|
20
|
+
// Uncheck: remove from consent object
|
|
21
|
+
const newConsent = { ...currentConsent };
|
|
22
|
+
delete newConsent[stateName];
|
|
23
|
+
// If empty, delete the entire consent property
|
|
24
|
+
if (Object.keys(newConsent).length === 0) {
|
|
25
|
+
mappingState.actions.deleteValue(path);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
mappingState.actions.setValue(path, newConsent);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
// Check: add to consent object with value true
|
|
33
|
+
const newConsent = { ...currentConsent, [stateName]: true };
|
|
34
|
+
mappingState.actions.setValue(path, newConsent);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const handleInputChange = (value) => {
|
|
38
|
+
setNewStateName(value);
|
|
39
|
+
};
|
|
40
|
+
const handleAddNewState = () => {
|
|
41
|
+
const trimmed = newStateName.trim();
|
|
42
|
+
if (!trimmed)
|
|
43
|
+
return;
|
|
44
|
+
// Don't add if it already exists
|
|
45
|
+
if (discoveredStates.includes(trimmed)) {
|
|
46
|
+
setNewStateName('');
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
// Add new state as checked
|
|
50
|
+
const newConsent = { ...currentConsent, [trimmed]: true };
|
|
51
|
+
mappingState.actions.setValue(path, newConsent);
|
|
52
|
+
// Clear input
|
|
53
|
+
setNewStateName('');
|
|
54
|
+
};
|
|
55
|
+
const handleKeyDown = (e) => {
|
|
56
|
+
if (e.key === 'Escape') {
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
setNewStateName('');
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
// Get context-aware title and description
|
|
62
|
+
const { title, description } = useMemo(() => getPathDescription(path, mappingState.config), [path, mappingState.config]);
|
|
63
|
+
return (_jsx(BaseMappingPane, { title: title, description: description, navigation: navigation, className: className, children: _jsxs("div", { className: "elb-mapping-consent-pane", children: [_jsxs("div", { className: "elb-mapping-consent-grid", children: [discoveredStates.map((stateName) => (_jsx(ConsentStateTile, { label: stateName, checked: currentConsent[stateName] === true, onClick: () => handleToggleState(stateName) }, stateName))), _jsx(MappingInputWithButton, { value: newStateName, onChange: handleInputChange, onSubmit: handleAddNewState, onKeyDown: handleKeyDown, buttonLabel: "Add", showButton: true, placeholder: "Add new consent state" })] }), _jsxs("div", { className: "elb-mapping-consent-help", children: [_jsx("h4", { className: "elb-mapping-consent-help-title", children: "How it works" }), _jsxs("ul", { className: "elb-mapping-consent-help-list", children: [_jsx("li", { children: "Checked states are required for processing" }), _jsx("li", { children: "Events queue until required consent is granted" }), _jsx("li", { children: "Consent states are discovered from your entire mapping configuration" })] })] })] }) }));
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=mapping-consent-pane-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-consent-pane-view.js","sourceRoot":"","sources":["../../../src/components/molecules/mapping-consent-pane-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAe5E,MAAM,UAAU,sBAAsB,CAAC,EACrC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAS,GAAG,EAAE,GACc;IAC5B,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAErD,yCAAyC;IACzC,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,cAAc,GAClB,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAChC,CAAC,CAAE,KAAiC;QACpC,CAAC,CAAC,EAAE,CAAC;IAET,6CAA6C;IAC7C,MAAM,gBAAgB,GAAG,OAAO,CAC9B,GAAG,EAAE,CAAC,2BAA2B,CAAC,YAAY,CAAC,MAAM,CAAC,EACtD,CAAC,YAAY,CAAC,MAAM,CAAC,CACtB,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,SAAiB,EAAE,EAAE;QAC9C,MAAM,kBAAkB,GAAG,cAAc,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;QAE9D,IAA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vD,gGAGK,IACF,IACD,IACF,GACU,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface ConsentRowProps {
|
|
2
|
+
consentType: string;
|
|
3
|
+
granted: boolean;
|
|
4
|
+
onConsentTypeChange: (value: string) => void;
|
|
5
|
+
onGrantedChange: (value: boolean) => void;
|
|
6
|
+
onRemove: () => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* ConsentRow - Single consent requirement row
|
|
10
|
+
*
|
|
11
|
+
* Displays a row for configuring a consent requirement with:
|
|
12
|
+
* - Input field for consent type name (e.g., "functional", "marketing")
|
|
13
|
+
* - Checkbox for granted/denied state (checked = true/granted required)
|
|
14
|
+
* - "Granted" label next to checkbox
|
|
15
|
+
* - Trash button to remove the row
|
|
16
|
+
*
|
|
17
|
+
* Layout: [Input 200px] [Checkbox] [Label "Granted"] [Trash Button]
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <ConsentRow
|
|
21
|
+
* consentType="functional"
|
|
22
|
+
* granted={true}
|
|
23
|
+
* onConsentTypeChange={setType}
|
|
24
|
+
* onGrantedChange={setGranted}
|
|
25
|
+
* onRemove={handleRemove}
|
|
26
|
+
* />
|
|
27
|
+
*/
|
|
28
|
+
export declare function ConsentRow({ consentType, granted, onConsentTypeChange, onGrantedChange, onRemove, }: ConsentRowProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=mapping-consent-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-consent-row.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/mapping-consent-row.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,eAAe,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CAAC,EACzB,WAAW,EACX,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,QAAQ,GACT,EAAE,eAAe,2CA2BjB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconButton } from '../atoms/icon-button';
|
|
3
|
+
/**
|
|
4
|
+
* ConsentRow - Single consent requirement row
|
|
5
|
+
*
|
|
6
|
+
* Displays a row for configuring a consent requirement with:
|
|
7
|
+
* - Input field for consent type name (e.g., "functional", "marketing")
|
|
8
|
+
* - Checkbox for granted/denied state (checked = true/granted required)
|
|
9
|
+
* - "Granted" label next to checkbox
|
|
10
|
+
* - Trash button to remove the row
|
|
11
|
+
*
|
|
12
|
+
* Layout: [Input 200px] [Checkbox] [Label "Granted"] [Trash Button]
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <ConsentRow
|
|
16
|
+
* consentType="functional"
|
|
17
|
+
* granted={true}
|
|
18
|
+
* onConsentTypeChange={setType}
|
|
19
|
+
* onGrantedChange={setGranted}
|
|
20
|
+
* onRemove={handleRemove}
|
|
21
|
+
* />
|
|
22
|
+
*/
|
|
23
|
+
export function ConsentRow({ consentType, granted, onConsentTypeChange, onGrantedChange, onRemove, }) {
|
|
24
|
+
return (_jsxs("div", { className: "elb-consent-row", children: [_jsx("input", { type: "text", className: "elb-consent-input", value: consentType, onChange: (e) => onConsentTypeChange(e.target.value), placeholder: "e.g., functional" }), _jsxs("div", { className: "elb-consent-checkbox-wrapper", children: [_jsx("input", { type: "checkbox", className: "elb-rjsf-checkbox", checked: granted, onChange: (e) => onGrantedChange(e.target.checked) }), _jsx("span", { className: "elb-consent-label", children: "Required" })] }), _jsx(IconButton, { icon: "delete", variant: "danger", onClick: onRemove, title: "Remove consent requirement" })] }));
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=mapping-consent-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-consent-row.js","sourceRoot":"","sources":["../../../src/components/molecules/mapping-consent-row.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAUlD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,UAAU,CAAC,EACzB,WAAW,EACX,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,QAAQ,GACQ;IAChB,OAAO,CACL,eAAK,SAAS,EAAC,iBAAiB,aAC9B,gBACE,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,mBAAmB,EAC7B,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACpD,WAAW,EAAC,kBAAkB,GAC9B,EACF,eAAK,SAAS,EAAC,8BAA8B,aAC3C,gBACE,IAAI,EAAC,UAAU,EACf,SAAS,EAAC,mBAAmB,EAC7B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAClD,EACF,eAAM,SAAS,EAAC,mBAAmB,yBAAgB,IAC/C,EACN,KAAC,UAAU,IACT,IAAI,EAAC,QAAQ,EACb,OAAO,EAAC,QAAQ,EAChB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAC,4BAA4B,GAClC,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { UseMappingStateReturn } from '../../hooks/useMappingState';
|
|
2
|
+
import type { UseMappingNavigationReturn } from '../../hooks/useMappingNavigation';
|
|
3
|
+
/**
|
|
4
|
+
* Entity Pane - Shows actions for an entity
|
|
5
|
+
*
|
|
6
|
+
* Displays:
|
|
7
|
+
* - List of existing actions for the entity
|
|
8
|
+
* - Input field to create new actions
|
|
9
|
+
*/
|
|
10
|
+
export interface MappingEntityPaneProps {
|
|
11
|
+
path: string[];
|
|
12
|
+
mappingState: UseMappingStateReturn;
|
|
13
|
+
navigation: UseMappingNavigationReturn;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function MappingEntityPane({ path, mappingState, navigation, className, }: MappingEntityPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=mapping-entity-pane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-entity-pane.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/mapping-entity-pane.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAInF;;;;;;GAMG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,qBAAqB,CAAC;IACpC,UAAU,EAAE,0BAA0B,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAc,GACf,EAAE,sBAAsB,2CAiIxB"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { BaseMappingPane } from '../atoms/base-mapping-pane';
|
|
4
|
+
import { MappingInputWithButton } from '../atoms/mapping-input-with-button';
|
|
5
|
+
export function MappingEntityPane({ path, mappingState, navigation, className = '', }) {
|
|
6
|
+
const [newActionName, setNewActionName] = useState('');
|
|
7
|
+
const [actionExists, setActionExists] = useState(false);
|
|
8
|
+
const entity = path[0];
|
|
9
|
+
const entityConfig = mappingState.actions.getValue([entity]);
|
|
10
|
+
const actions = entityConfig && typeof entityConfig === 'object'
|
|
11
|
+
? Object.keys(entityConfig).sort()
|
|
12
|
+
: [];
|
|
13
|
+
// Check if action exists
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (newActionName) {
|
|
16
|
+
const exists = actions.includes(newActionName);
|
|
17
|
+
setActionExists(exists);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
setActionExists(false);
|
|
21
|
+
}
|
|
22
|
+
}, [newActionName, actions]);
|
|
23
|
+
const handleActionInput = (value) => {
|
|
24
|
+
setNewActionName(value);
|
|
25
|
+
};
|
|
26
|
+
const handleActionKeyDown = (e) => {
|
|
27
|
+
if (e.key === 'Escape') {
|
|
28
|
+
e.preventDefault();
|
|
29
|
+
setNewActionName('');
|
|
30
|
+
setActionExists(false);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const handleActionSubmit = () => {
|
|
34
|
+
if (!newActionName.trim()) {
|
|
35
|
+
setNewActionName('');
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (actionExists) {
|
|
39
|
+
// Navigate to existing action
|
|
40
|
+
navigation.openTab([entity, newActionName], 'rule');
|
|
41
|
+
setNewActionName('');
|
|
42
|
+
setActionExists(false);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
// Create new action
|
|
46
|
+
mappingState.actions.createRule(entity, newActionName.trim(), {});
|
|
47
|
+
navigation.openTab([entity, newActionName.trim()], 'rule');
|
|
48
|
+
setNewActionName('');
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const handleActionClick = (action) => {
|
|
52
|
+
navigation.openTab([entity, action], 'rule');
|
|
53
|
+
};
|
|
54
|
+
// Get the preview text for an action (the name value from the rule or fallback)
|
|
55
|
+
const getActionPreview = (action) => {
|
|
56
|
+
const rule = mappingState.actions.getValue([entity, action]);
|
|
57
|
+
if (rule && typeof rule.name === 'string' && rule.name) {
|
|
58
|
+
return rule.name;
|
|
59
|
+
}
|
|
60
|
+
return `${entity} ${action}`;
|
|
61
|
+
};
|
|
62
|
+
return (_jsx(BaseMappingPane, { title: entity, description: "Select an action or create a new one", navigation: navigation, className: className, children: _jsxs("div", { className: "elb-mapping-entity-pane-body", children: [_jsx("div", { className: "elb-mapping-entity-pane-new-action", children: _jsx(MappingInputWithButton, { value: newActionName, onChange: handleActionInput, onSubmit: handleActionSubmit, onKeyDown: handleActionKeyDown, buttonLabel: actionExists ? 'Open' : 'Create', showButton: true, placeholder: "Type action name to create or select...", className: actionExists ? 'is-existing' : '' }) }), actions.length > 0 && (_jsxs("div", { className: "elb-mapping-tile-section", children: [_jsx("h3", { className: "elb-mapping-tile-title", children: "Existing Actions" }), _jsx("div", { className: "elb-mapping-entity-pane-action-list", children: actions.map((action) => {
|
|
63
|
+
const preview = getActionPreview(action);
|
|
64
|
+
const isLongPreview = preview.length > 20;
|
|
65
|
+
return (_jsxs("button", { type: "button", className: "elb-mapping-entity-pane-action-tile", onClick: () => handleActionClick(action), children: [_jsx("div", { className: "elb-mapping-entity-pane-action-tile-action", children: action }), _jsx("div", { className: `elb-mapping-entity-pane-action-tile-preview ${isLongPreview ? 'is-long' : ''}`, children: preview })] }, action));
|
|
66
|
+
}) })] })), actions.length === 0 && !newActionName && (_jsx("div", { className: "elb-mapping-entity-pane-empty", children: _jsx("p", { children: "No actions yet. Type above to create the first action." }) }))] }) }));
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=mapping-entity-pane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-entity-pane.js","sourceRoot":"","sources":["../../../src/components/molecules/mapping-entity-pane.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC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,IACF,CACP,EAEA,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,aAAa,IAAI,CACzC,cAAK,SAAS,EAAC,+BAA+B,YAC5C,iFAA6D,GACzD,CACP,IACG,GACU,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { UseMappingStateReturn } from '../../hooks/useMappingState';
|
|
2
|
+
import type { UseMappingNavigationReturn } from '../../hooks/useMappingNavigation';
|
|
3
|
+
import type { DestinationSchemas } from '../../types/schemas';
|
|
4
|
+
import type { ConfigStructureDef } from '../../schemas/config-structures/types';
|
|
5
|
+
/**
|
|
6
|
+
* Enum Pane View - Pure Presentation Component
|
|
7
|
+
*
|
|
8
|
+
* Edits enum fields with predefined options from JSON Schema.
|
|
9
|
+
* Uses schema.enum to populate dropdown options and schema.type to determine
|
|
10
|
+
* if freeform text input should be allowed.
|
|
11
|
+
*
|
|
12
|
+
* Features:
|
|
13
|
+
* - Dropdown selection from schema-defined enum values
|
|
14
|
+
* - Optional freeform text input for 'string' type enums
|
|
15
|
+
* - Keyboard navigation
|
|
16
|
+
* - Schema-driven: extracts enum values from destination schemas
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* // Path: ['order', 'complete', 'settings', 'track']
|
|
20
|
+
* // Schema: { type: 'string', enum: ['PageView', 'Purchase', 'AddToCart'] }
|
|
21
|
+
* <MappingEnumPaneView
|
|
22
|
+
* path={['order', 'complete', 'settings', 'track']}
|
|
23
|
+
* mappingState={mappingState}
|
|
24
|
+
* navigation={navigation}
|
|
25
|
+
* schemas={{
|
|
26
|
+
* mapping: metaPixelMappingSchema,
|
|
27
|
+
* mappingUi: metaPixelMappingUiSchema
|
|
28
|
+
* }}
|
|
29
|
+
* />
|
|
30
|
+
*/
|
|
31
|
+
export interface MappingEnumPaneViewProps {
|
|
32
|
+
path: string[];
|
|
33
|
+
mappingState: UseMappingStateReturn;
|
|
34
|
+
navigation: UseMappingNavigationReturn;
|
|
35
|
+
schemas?: DestinationSchemas;
|
|
36
|
+
structure?: ConfigStructureDef;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare function MappingEnumPaneView({ path, mappingState, navigation, schemas, structure, className, }: MappingEnumPaneViewProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
//# sourceMappingURL=mapping-enum-pane-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-enum-pane-view.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/mapping-enum-pane-view.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAKhF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,qBAAqB,CAAC;IACpC,UAAU,EAAE,0BAA0B,CAAC;IACvC,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,OAAO,EACP,SAAS,EACT,SAAc,GACf,EAAE,wBAAwB,2CA4E1B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BaseMappingPane } from '../atoms/base-mapping-pane';
|
|
3
|
+
import { MappingEnumSelect } from '../atoms/mapping-enum-select';
|
|
4
|
+
import { getSchemaForPath } from '../../utils/type-detector';
|
|
5
|
+
export function MappingEnumPaneView({ path, mappingState, navigation, schemas, structure, className = '', }) {
|
|
6
|
+
const value = mappingState.actions.getValue(path);
|
|
7
|
+
const currentValue = typeof value === 'string' || typeof value === 'number' ? value : '';
|
|
8
|
+
// Get schema for this path using structure-aware detection
|
|
9
|
+
const schema = structure && schemas
|
|
10
|
+
? getSchemaForPath(value, path, structure, schemas)
|
|
11
|
+
: null;
|
|
12
|
+
const enumOptions = schema?.enum || [];
|
|
13
|
+
const enumType = schema?.type === 'number' ? 'number' : 'string';
|
|
14
|
+
const handleChange = (newValue) => {
|
|
15
|
+
if (newValue === '' ||
|
|
16
|
+
(typeof newValue === 'string' && newValue.trim() === '')) {
|
|
17
|
+
// Delete if empty
|
|
18
|
+
mappingState.actions.deleteValue(path);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
mappingState.actions.setValue(path, newValue);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
// Get field name from path (last segment)
|
|
25
|
+
const fieldName = path[path.length - 1];
|
|
26
|
+
return (_jsxs(BaseMappingPane, { title: `Enum: ${fieldName}`, description: "Select from dropdown or type custom value", navigation: navigation, className: className, children: [_jsxs("div", { className: "elb-mapping-pane-field", children: [_jsx(MappingEnumSelect, { value: currentValue, onChange: handleChange, options: enumOptions, placeholder: enumOptions.length > 0
|
|
27
|
+
? `Type or select ${fieldName}...`
|
|
28
|
+
: 'Type custom value...', type: enumType, autoFocus: true }), _jsx("div", { className: "elb-mapping-pane-hint", children: enumOptions.length > 0
|
|
29
|
+
? `${enumOptions.length} predefined ${enumOptions.length === 1 ? 'option' : 'options'} available. Type to filter or enter custom value.`
|
|
30
|
+
: 'No predefined options. Enter custom value.' })] }), enumOptions.length > 0 && (_jsxs("div", { className: "elb-mapping-enum-examples", children: [_jsx("div", { className: "elb-mapping-enum-examples-title", children: "Available Options:" }), _jsxs("ul", { className: "elb-mapping-enum-examples-list", children: [enumOptions.slice(0, 10).map((option) => (_jsx("li", { children: _jsx("code", { children: String(option) }) }, String(option)))), enumOptions.length > 10 && (_jsxs("li", { className: "elb-mapping-enum-examples-more", children: ["... and ", enumOptions.length - 10, " more"] }))] })] }))] }));
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=mapping-enum-pane-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-enum-pane-view.js","sourceRoot":"","sources":["../../../src/components/molecules/mapping-enum-pane-view.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAqC7D,MAAM,UAAU,mBAAmB,CAAC,EAClC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,OAAO,EACP,SAAS,EACT,SAAS,GAAG,EAAE,GACW;IACzB,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,YAAY,GAChB,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAEtE,2DAA2D;IAC3D,MAAM,MAAM,GAAG,SAAS,IAAI,OAAO;QACjC,CAAC,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,OAAqC,CAAC;QACjF,CAAC,CAAC,IAAI,CAAC;IAET,MAAM,WAAW,GAAI,MAAM,EAAE,IAA+B,IAAI,EAAE,CAAC;IACnE,MAAM,QAAQ,GAAG,MAAM,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;IAEjE,MAAM,YAAY,GAAG,CAAC,QAAyB,EAAE,EAAE;QACjD,IACE,QAAQ,KAAK,EAAE;YACf,CAAC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C,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACxC,uBACE,yBAAO,MAAM,CAAC,MAAM,CAAC,GAAQ,IADtB,MAAM,CAAC,MAAM,CAAC,CAElB,CACN,CAAC,EACD,WAAW,CAAC,MAAM,GAAG,EAAE,IAAI,CAC1B,cAAI,SAAS,EAAC,gCAAgC,yBACnC,WAAW,CAAC,MAAM,GAAG,EAAE,aAC7B,CACN,IACE,IACD,CACP,IACe,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { UseMappingStateReturn } from '../../hooks/useMappingState';
|
|
2
|
+
import type { UseMappingNavigationReturn } from '../../hooks/useMappingNavigation';
|
|
3
|
+
/**
|
|
4
|
+
* Mapping Fn Pane View
|
|
5
|
+
*
|
|
6
|
+
* Dedicated pane for the 'fn' property - a transformation function that
|
|
7
|
+
* processes event data and returns a transformed value.
|
|
8
|
+
*
|
|
9
|
+
* Function signature: (value, mapping, options) => any
|
|
10
|
+
*/
|
|
11
|
+
export interface MappingFnPaneViewProps {
|
|
12
|
+
path: string[];
|
|
13
|
+
mappingState: UseMappingStateReturn;
|
|
14
|
+
navigation: UseMappingNavigationReturn;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function MappingFnPaneView(props: MappingFnPaneViewProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=mapping-fn-pane-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-fn-pane-view.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/mapping-fn-pane-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAMnF;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,qBAAqB,CAAC;IACpC,UAAU,EAAE,0BAA0B,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA2GD,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAW9D"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { MappingFunctionPaneBase, } from './mapping-function-pane-base';
|
|
3
|
+
const DEFAULT_FN = `(
|
|
4
|
+
value: WalkerOS.DeepPartialEvent | unknown,
|
|
5
|
+
mapping: Mapping.Value,
|
|
6
|
+
options: Mapping.Options
|
|
7
|
+
): WalkerOS.Property | unknown => {
|
|
8
|
+
// Transform and return the value
|
|
9
|
+
// Access event data: value.data, value.user, value.globals
|
|
10
|
+
// Access collector: options.collector
|
|
11
|
+
return value.data;
|
|
12
|
+
}`;
|
|
13
|
+
const HELP_SECTIONS = [
|
|
14
|
+
{
|
|
15
|
+
title: 'Parameters',
|
|
16
|
+
items: [
|
|
17
|
+
{
|
|
18
|
+
code: 'value',
|
|
19
|
+
description: 'The event or current value being processed',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
code: 'mapping',
|
|
23
|
+
description: 'The mapping configuration for this property',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
code: 'options',
|
|
27
|
+
description: 'Additional options',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'Return Value',
|
|
33
|
+
items: [
|
|
34
|
+
{
|
|
35
|
+
code: 'any',
|
|
36
|
+
description: 'Return the transformed value (string, number, object, array)',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
code: 'undefined',
|
|
40
|
+
description: 'Return undefined to skip this property',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
code: 'Promise',
|
|
44
|
+
description: 'Can be async (return Promise)',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: 'Examples',
|
|
50
|
+
examples: [
|
|
51
|
+
{
|
|
52
|
+
label: 'Extract nested property:',
|
|
53
|
+
code: _jsx(_Fragment, { children: "(value) => value.data?.product?.id" }),
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: 'Format currency:',
|
|
57
|
+
code: (_jsxs(_Fragment, { children: ["(value) => {", '\n', ' ', "const price = value.data?.price || 0;", '\n', ' ', "return price.toFixed(2);", '\n', "}"] })),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: 'Combine multiple fields:',
|
|
61
|
+
code: (_jsx(_Fragment, { children: "(value) => `${value.data?.firstName} ${value.data?.lastName}`" })),
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'Conditional transformation with consent:',
|
|
65
|
+
code: (_jsxs(_Fragment, { children: ["(value, mapping, options) => {", '\n', ' ', "if (options.consent?.marketing) {", '\n', ' ', "return value.user?.email;", '\n', ' ', "}", '\n', ' ', "return undefined;", '\n', "}"] })),
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Use collector for context:',
|
|
69
|
+
code: (_jsxs(_Fragment, { children: ["(value, mapping, options) => {", '\n', ' ', "const sessionId = options.collector?.session?.id;", '\n', ' ', "return {", '\n', ' ', "eventId: value.id,", '\n', ' ', "sessionId: sessionId,", '\n', ' ', "};", '\n', "}"] })),
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
];
|
|
74
|
+
export function MappingFnPaneView(props) {
|
|
75
|
+
return (_jsx(MappingFunctionPaneBase, { title: "Transformation Function", description: "Transform event data before sending to destination", defaultCode: DEFAULT_FN, helpSections: HELP_SECTIONS, functionType: "fn", ...props }));
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=mapping-fn-pane-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-fn-pane-view.js","sourceRoot":"","sources":["../../../src/components/molecules/mapping-fn-pane-view.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,uBAAuB,GAExB,MAAM,8BAA8B,CAAC;AAiBtC,MAAM,UAAU,GAAG;;;;;;;;;EASjB,CAAC;AAEH,MAAM,aAAa,GAAkB;IACnC;QACE,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,4CAA4C;aAC1D;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,6CAA6C;aAC3D;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,oBAAoB;aAClC;SACF;KACF;IACD;QACE,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE;YACL;gBACE,IAAI,EAAE,KAAK;gBACX,WAAW,EACT,8DAA8D;aACjE;YACD;gBACE,IAAI,EAAE,WAAW;gBACjB,WAAW,EAAE,wCAAwC;aACtD;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,+BAA+B;aAC7C;SACF;KACF;IACD;QACE,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE;YACR;gBACE,KAAK,EAAE,0BAA0B;gBACjC,IAAI,EAAE,mEAA0C;aACjD;YACD;gBACE,KAAK,EAAE,kBAAkB;gBACzB,IAAI,EAAE,CACJ,8CACuB,IAAI,EACxB,IAAI,2CAAuC,IAAI,EAC/C,IAAI,8BAA0B,IAAI,SAElC,CACJ;aACF;YACD;gBACE,KAAK,EAAE,0BAA0B;gBACjC,IAAI,EAAE,CACJ,8FAGG,CACJ;aACF;YACD;gBACE,KAAK,EAAE,0CAA0C;gBACjD,IAAI,EAAE,CACJ,gEACyC,IAAI,EAC1C,IAAI,uCAAwC,IAAI,EAChD,MAAM,+BAA2B,IAAI,EACrC,IAAI,OAAQ,IAAI,EAChB,IAAI,uBAAmB,IAAI,SAE3B,CACJ;aACF;YACD;gBACE,KAAK,EAAE,4BAA4B;gBACnC,IAAI,EAAE,CACJ,gEACyC,IAAI,EAC1C,IAAI,uDAAmD,IAAI,EAC3D,IAAI,cAAe,IAAI,EACvB,MAAM,wBAAoB,IAAI,EAC9B,MAAM,2BAAuB,IAAI,EACjC,IAAI,QAAS,IAAI,SAEjB,CACJ;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC7D,OAAO,CACL,KAAC,uBAAuB,IACtB,KAAK,EAAC,yBAAyB,EAC/B,WAAW,EAAC,oDAAoD,EAChE,WAAW,EAAE,UAAU,EACvB,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAC,IAAI,KACb,KAAK,GACT,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { UseMappingStateReturn } from '../../hooks/useMappingState';
|
|
3
|
+
import type { UseMappingNavigationReturn } from '../../hooks/useMappingNavigation';
|
|
4
|
+
import { type FunctionType } from '../../utils/monaco-types';
|
|
5
|
+
/**
|
|
6
|
+
* Help Item - represents a single parameter, return value item, etc.
|
|
7
|
+
*/
|
|
8
|
+
export interface HelpItem {
|
|
9
|
+
code: string;
|
|
10
|
+
description: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Help Example - code example with label
|
|
14
|
+
*/
|
|
15
|
+
export interface HelpExample {
|
|
16
|
+
label: string;
|
|
17
|
+
code: string | ReactNode;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Help Section - a titled section with either items or examples
|
|
21
|
+
*/
|
|
22
|
+
export interface HelpSection {
|
|
23
|
+
title: string;
|
|
24
|
+
items?: HelpItem[];
|
|
25
|
+
examples?: HelpExample[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Base Props for Function Pane Component
|
|
29
|
+
*/
|
|
30
|
+
export interface MappingFunctionPaneBaseProps {
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
defaultCode: string;
|
|
34
|
+
helpSections: HelpSection[];
|
|
35
|
+
functionType: FunctionType;
|
|
36
|
+
path: string[];
|
|
37
|
+
mappingState: UseMappingStateReturn;
|
|
38
|
+
navigation: UseMappingNavigationReturn;
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Mapping Function Pane Base
|
|
43
|
+
*
|
|
44
|
+
* Base component for function editing panes (condition, fn, validate).
|
|
45
|
+
* Consolidates shared logic for state management, code editing, and help display.
|
|
46
|
+
*
|
|
47
|
+
* Used by:
|
|
48
|
+
* - MappingConditionPaneView
|
|
49
|
+
* - MappingFnPaneView
|
|
50
|
+
* - MappingValidatePaneView
|
|
51
|
+
*/
|
|
52
|
+
export declare function MappingFunctionPaneBase({ title, description, defaultCode, helpSections, functionType, path, mappingState, navigation, className, }: MappingFunctionPaneBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
//# sourceMappingURL=mapping-function-pane-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-function-pane-base.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/mapping-function-pane-base.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAInF,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,0BAA0B,CAAC;AAGlC;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,YAAY,EAAE,YAAY,CAAC;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,qBAAqB,CAAC;IACpC,UAAU,EAAE,0BAA0B,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAc,GACf,EAAE,4BAA4B,2CAkH9B"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { CodeBox } from '../molecules/code-box';
|
|
4
|
+
import { BaseMappingPane } from '../atoms/base-mapping-pane';
|
|
5
|
+
import { normalizeCode } from '../../utils/code-normalizer';
|
|
6
|
+
import { registerWalkerOSTypes, addFunctionContextTypes, } from '../../utils/monaco-types';
|
|
7
|
+
import { registerPalenightTheme } from '../../themes/palenight';
|
|
8
|
+
/**
|
|
9
|
+
* Mapping Function Pane Base
|
|
10
|
+
*
|
|
11
|
+
* Base component for function editing panes (condition, fn, validate).
|
|
12
|
+
* Consolidates shared logic for state management, code editing, and help display.
|
|
13
|
+
*
|
|
14
|
+
* Used by:
|
|
15
|
+
* - MappingConditionPaneView
|
|
16
|
+
* - MappingFnPaneView
|
|
17
|
+
* - MappingValidatePaneView
|
|
18
|
+
*/
|
|
19
|
+
export function MappingFunctionPaneBase({ title, description, defaultCode, helpSections, functionType, path, mappingState, navigation, className = '', }) {
|
|
20
|
+
// Get current value from mapping state
|
|
21
|
+
const value = mappingState.actions.getValue(path);
|
|
22
|
+
const initialCode = typeof value === 'string' ? value : defaultCode;
|
|
23
|
+
const [code, setCode] = useState(initialCode);
|
|
24
|
+
// Update local state if external value changes
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
const currentValue = mappingState.actions.getValue(path);
|
|
27
|
+
const newCode = typeof currentValue === 'string' ? currentValue : defaultCode;
|
|
28
|
+
setCode(newCode);
|
|
29
|
+
}, [path, mappingState, defaultCode]);
|
|
30
|
+
const handleCodeChange = (newCode) => {
|
|
31
|
+
setCode(newCode);
|
|
32
|
+
// Check if code is different from default (normalized comparison)
|
|
33
|
+
const isDefault = normalizeCode(newCode) === normalizeCode(defaultCode);
|
|
34
|
+
if (isDefault) {
|
|
35
|
+
// Remove the property if it's the default
|
|
36
|
+
mappingState.actions.deleteValue(path);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
// Save the modified code
|
|
40
|
+
mappingState.actions.setValue(path, newCode);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const handleReset = () => {
|
|
44
|
+
// Reset to default and remove from mapping
|
|
45
|
+
setCode(defaultCode);
|
|
46
|
+
mappingState.actions.deleteValue(path);
|
|
47
|
+
};
|
|
48
|
+
// Monaco editor beforeMount handler to register types
|
|
49
|
+
const handleBeforeMount = (monaco) => {
|
|
50
|
+
registerPalenightTheme(monaco);
|
|
51
|
+
registerWalkerOSTypes(monaco);
|
|
52
|
+
addFunctionContextTypes(monaco, { type: functionType });
|
|
53
|
+
};
|
|
54
|
+
return (_jsx(BaseMappingPane, { title: title, description: description, navigation: navigation, headerAction: {
|
|
55
|
+
label: 'Reset',
|
|
56
|
+
onClick: handleReset,
|
|
57
|
+
title: 'Reset to default',
|
|
58
|
+
}, className: className, children: _jsxs("div", { className: "elb-mapping-function-pane", children: [_jsx("div", { className: "elb-mapping-function-editor", children: _jsx(CodeBox, { code: code, language: "typescript", onChange: handleCodeChange, showHeader: false, label: "", beforeMount: handleBeforeMount }) }), _jsx("div", { className: "elb-mapping-function-help", children: helpSections.map((section, sectionIndex) => (_jsxs("div", { className: "elb-mapping-function-help-section", children: [_jsx("h4", { className: "elb-mapping-function-help-title", children: section.title }), section.items && section.items.length > 0 && (_jsx("ul", { className: "elb-mapping-function-help-list", children: section.items.map((item, itemIndex) => (_jsxs("li", { children: [_jsx("code", { children: item.code }), " - ", item.description] }, itemIndex))) })), section.examples && section.examples.length > 0 && (_jsx("div", { className: "elb-mapping-function-examples", children: section.examples.map((example, exampleIndex) => (_jsxs("div", { className: "elb-mapping-function-example", children: [_jsx("div", { className: "elb-mapping-function-example-label", children: example.label }), _jsx("code", { className: "elb-mapping-function-example-code", children: example.code })] }, exampleIndex))) }))] }, sectionIndex))) })] }) }));
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=mapping-function-pane-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-function-pane-base.js","sourceRoot":"","sources":["../../../src/components/molecules/mapping-function-pane-base.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAkB,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GAExB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AA0ChE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,uBAAuB,CAAC,EACtC,KAAK,EACL,WAAW,EACX,WA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IAAI,CAAC,WAAW,KADrC,SAAS,CAEb,CACN,CAAC,GACC,CACN,EAGA,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,IAAI,CAClD,cAAK,SAAS,EAAC,+BAA+B,YAC3C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,CAAC,CAC/C,eAEE,SAAS,EAAC,8BAA8B,aAExC,cAAK,SAAS,EAAC,oCAAoC,YAChD,OAAO,CAAC,KAAK,GACV,EACN,eAAM,SAAS,EAAC,mCAAmC,YAChD,OAAO,CAAC,IAAI,GACR,KARF,YAAY,CASb,CACP,CAAC,GACE,CACP,KAnCI,YAAY,CAoCb,CACP,CAAC,GACE,IACF,GACU,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { UseMappingStateReturn } from '../../hooks/useMappingState';
|
|
2
|
+
import type { UseMappingNavigationReturn } from '../../hooks/useMappingNavigation';
|
|
3
|
+
/**
|
|
4
|
+
* Key Pane View - Pure Presentation Component
|
|
5
|
+
*
|
|
6
|
+
* Edits the 'key' property - a string path that extracts data from the event.
|
|
7
|
+
* This is used to reference properties like data.id, user.email, globals.currency.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <MappingKeyPaneView
|
|
11
|
+
* path={['page', 'view', 'data', 'map', 'currency', 'key']}
|
|
12
|
+
* mappingState={mappingState}
|
|
13
|
+
* navigation={navigation}
|
|
14
|
+
* />
|
|
15
|
+
*/
|
|
16
|
+
export interface MappingKeyPaneViewProps {
|
|
17
|
+
path: string[];
|
|
18
|
+
mappingState: UseMappingStateReturn;
|
|
19
|
+
navigation: UseMappingNavigationReturn;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function MappingKeyPaneView({ path, mappingState, navigation, className, }: MappingKeyPaneViewProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
//# sourceMappingURL=mapping-key-pane-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-key-pane-view.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/mapping-key-pane-view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAInF;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,qBAAqB,CAAC;IACpC,UAAU,EAAE,0BAA0B,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAc,GACf,EAAE,uBAAuB,2CA4BzB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BaseMappingPane } from '../atoms/base-mapping-pane';
|
|
3
|
+
import { MappingInput } from '../atoms/mapping-input';
|
|
4
|
+
export function MappingKeyPaneView({ path, mappingState, navigation, className = '', }) {
|
|
5
|
+
const value = mappingState.actions.getValue(path);
|
|
6
|
+
const keyValue = typeof value === 'string' ? value : '';
|
|
7
|
+
const handleChange = (newValue) => {
|
|
8
|
+
mappingState.actions.setValue(path, newValue);
|
|
9
|
+
};
|
|
10
|
+
return (_jsx(BaseMappingPane, { title: "Property Path", description: "Path to extract from event (e.g., data.id, user.email, globals.currency)", navigation: navigation, className: className, children: _jsxs("div", { className: "elb-mapping-pane-field", children: [_jsx(MappingInput, { value: keyValue, onChange: handleChange, placeholder: "data.property", autoFocus: true }), _jsx("div", { className: "elb-mapping-pane-hint", children: "Common paths: data.*, globals.*, user.*, context.*" })] }) }));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=mapping-key-pane-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-key-pane-view.js","sourceRoot":"","sources":["../../../src/components/molecules/mapping-key-pane-view.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAsBtD,MAAM,UAAU,kBAAkB,CAAC,EACjC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAS,GAAG,EAAE,GACU;IACxB,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAExD,MAAM,YAAY,GAAG,CAAC,QAAgB,EAAE,EAAE;QACxC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,eAAe,IACd,KAAK,EAAC,eAAe,EACrB,WAAW,EAAC,0EAA0E,EACtF,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,YAEpB,eAAK,SAAS,EAAC,wBAAwB,aACrC,KAAC,YAAY,IACX,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAC,eAAe,EAC3B,SAAS,SACT,EACF,cAAK,SAAS,EAAC,uBAAuB,mEAEhC,IACF,GACU,CACnB,CAAC;AACJ,CAAC"}
|