@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,253 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BaseMappingPane } from '../atoms/base-mapping-pane';
|
|
3
|
+
import { ConfigTile } from '../atoms/config-tile';
|
|
4
|
+
import { MappingInput } from '../atoms/mapping-input';
|
|
5
|
+
const VALUE_CONFIG_TILES = [
|
|
6
|
+
{
|
|
7
|
+
key: 'key',
|
|
8
|
+
label: 'Key',
|
|
9
|
+
description: 'Property path',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
key: 'value',
|
|
13
|
+
label: 'Value',
|
|
14
|
+
description: 'Static value',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'fn',
|
|
18
|
+
label: 'Fn',
|
|
19
|
+
description: 'Custom function',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: 'map',
|
|
23
|
+
label: 'Map',
|
|
24
|
+
description: 'Transform object',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: 'loop',
|
|
28
|
+
label: 'Loop',
|
|
29
|
+
description: 'Array iteration',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: 'set',
|
|
33
|
+
label: 'Set',
|
|
34
|
+
description: 'Multiple values',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
key: 'consent',
|
|
38
|
+
label: 'Consent',
|
|
39
|
+
description: 'Required states',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
key: 'validate',
|
|
43
|
+
label: 'Validate',
|
|
44
|
+
description: 'Check function',
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
/**
|
|
48
|
+
* ValueType Pane - Edit ValueType (string | ValueConfig)
|
|
49
|
+
*
|
|
50
|
+
* Simple logic:
|
|
51
|
+
* - String mode: Quick Value input edits the string directly
|
|
52
|
+
* - Object mode: Quick Value input ALWAYS edits the 'key' property
|
|
53
|
+
* - Input is NEVER disabled
|
|
54
|
+
* - Quick Value and Key tile are always synced
|
|
55
|
+
*
|
|
56
|
+
* Smart Conversions:
|
|
57
|
+
* - Clicking any tile in String mode converts to { key: "string value" }
|
|
58
|
+
* - All tiles (including Key) are clickable and open their respective editors
|
|
59
|
+
* - Conversion happens automatically before opening the editor
|
|
60
|
+
*/
|
|
61
|
+
export function MappingValueTypePaneView({ path, mappingState, navigation, className = '', title = 'Value Configuration', description = 'Configure how to extract or transform data', hideNavigation = false, }) {
|
|
62
|
+
const value = mappingState.actions.getValue(path);
|
|
63
|
+
// Determine current mode
|
|
64
|
+
const isString = typeof value === 'string';
|
|
65
|
+
const isValueConfig = typeof value === 'object' && value !== null;
|
|
66
|
+
const valueConfig = isValueConfig ? value : {};
|
|
67
|
+
// Display value for the input
|
|
68
|
+
// - If string: show the string value
|
|
69
|
+
// - If object: show the key property value (or empty if no key)
|
|
70
|
+
const displayValue = isString
|
|
71
|
+
? value
|
|
72
|
+
: typeof valueConfig.key === 'string'
|
|
73
|
+
? valueConfig.key
|
|
74
|
+
: '';
|
|
75
|
+
const handleStringChange = (newValue) => {
|
|
76
|
+
if (isString || value === undefined) {
|
|
77
|
+
// String mode or undefined: set as string value
|
|
78
|
+
mappingState.actions.setValue(path, newValue);
|
|
79
|
+
}
|
|
80
|
+
else if (isValueConfig) {
|
|
81
|
+
// ValueConfig mode: update the key property using the sub-path
|
|
82
|
+
// This works whether it's key-only or has multiple properties
|
|
83
|
+
mappingState.actions.setValue([...path, 'key'], newValue);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const handleTileClick = (tileKey) => {
|
|
87
|
+
// If in string mode, convert to ValueConfig first (for all tiles)
|
|
88
|
+
// This preserves the string value as the 'key' property
|
|
89
|
+
if (isString && displayValue) {
|
|
90
|
+
mappingState.actions.setValue(path, { key: displayValue });
|
|
91
|
+
}
|
|
92
|
+
else if (value === undefined) {
|
|
93
|
+
// If value is undefined, initialize as empty object so tile properties can be set
|
|
94
|
+
mappingState.actions.setValue(path, {});
|
|
95
|
+
}
|
|
96
|
+
// Determine the appropriate nodeType based on the property
|
|
97
|
+
// Properties that hold primitives get dedicated editors
|
|
98
|
+
// Properties that hold ValueConfig objects get the generic valueConfig editor
|
|
99
|
+
let nodeType;
|
|
100
|
+
switch (tileKey) {
|
|
101
|
+
case 'key':
|
|
102
|
+
nodeType = 'key'; // Key property editor
|
|
103
|
+
break;
|
|
104
|
+
case 'value':
|
|
105
|
+
nodeType = 'value'; // Primitive value editor
|
|
106
|
+
break;
|
|
107
|
+
case 'fn':
|
|
108
|
+
nodeType = 'fn'; // Function editor (placeholder for now)
|
|
109
|
+
break;
|
|
110
|
+
case 'validate':
|
|
111
|
+
nodeType = 'validate'; // Validate function editor (placeholder for now)
|
|
112
|
+
break;
|
|
113
|
+
case 'condition':
|
|
114
|
+
nodeType = 'condition'; // Condition function editor (already implemented)
|
|
115
|
+
break;
|
|
116
|
+
case 'consent':
|
|
117
|
+
nodeType = 'consent'; // Consent editor (already implemented)
|
|
118
|
+
break;
|
|
119
|
+
case 'map':
|
|
120
|
+
nodeType = 'map'; // Map editor (placeholder for now)
|
|
121
|
+
break;
|
|
122
|
+
case 'loop':
|
|
123
|
+
nodeType = 'loop'; // Loop editor (placeholder for now)
|
|
124
|
+
break;
|
|
125
|
+
case 'set':
|
|
126
|
+
nodeType = 'set'; // Set editor (placeholder for now)
|
|
127
|
+
break;
|
|
128
|
+
default:
|
|
129
|
+
nodeType = 'valueConfig'; // Fallback to generic editor
|
|
130
|
+
}
|
|
131
|
+
navigation.openTab([...path, tileKey], nodeType);
|
|
132
|
+
};
|
|
133
|
+
const getTileStatus = (tileKey) => {
|
|
134
|
+
// For 'key' tile: only enabled if we have a ValueConfig with a key property
|
|
135
|
+
if (tileKey === 'key') {
|
|
136
|
+
if (isString) {
|
|
137
|
+
// In string mode, there is no ValueConfig and no key property
|
|
138
|
+
return { enabled: false, text: 'Not set' };
|
|
139
|
+
}
|
|
140
|
+
else if (isValueConfig) {
|
|
141
|
+
// In ValueConfig mode, show the key property status
|
|
142
|
+
const keyValue = valueConfig.key;
|
|
143
|
+
return typeof keyValue === 'string' && keyValue
|
|
144
|
+
? { enabled: true, text: keyValue }
|
|
145
|
+
: { enabled: false, text: 'Not set' };
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
// For all other tiles, only show status if in ValueConfig mode
|
|
149
|
+
if (!isValueConfig) {
|
|
150
|
+
return { enabled: false, text: 'Not set' };
|
|
151
|
+
}
|
|
152
|
+
const configValue = valueConfig[tileKey];
|
|
153
|
+
switch (tileKey) {
|
|
154
|
+
case 'key':
|
|
155
|
+
// Already handled above
|
|
156
|
+
return { enabled: false, text: 'Not set' };
|
|
157
|
+
case 'value':
|
|
158
|
+
if (configValue !== undefined) {
|
|
159
|
+
let displayText;
|
|
160
|
+
if (typeof configValue === 'string') {
|
|
161
|
+
displayText = configValue;
|
|
162
|
+
}
|
|
163
|
+
else if (typeof configValue === 'number') {
|
|
164
|
+
displayText = String(configValue);
|
|
165
|
+
}
|
|
166
|
+
else if (typeof configValue === 'boolean') {
|
|
167
|
+
displayText = String(configValue);
|
|
168
|
+
}
|
|
169
|
+
else if (configValue === null) {
|
|
170
|
+
displayText = 'null';
|
|
171
|
+
}
|
|
172
|
+
else if (Array.isArray(configValue)) {
|
|
173
|
+
displayText = `[${configValue.length} items]`;
|
|
174
|
+
}
|
|
175
|
+
else if (typeof configValue === 'object') {
|
|
176
|
+
// Show only values, not keys
|
|
177
|
+
const values = Object.values(configValue);
|
|
178
|
+
displayText = values
|
|
179
|
+
.map((v) => (typeof v === 'string' ? v : JSON.stringify(v)))
|
|
180
|
+
.join(', ');
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
displayText = String(configValue);
|
|
184
|
+
}
|
|
185
|
+
// Truncate if too long
|
|
186
|
+
const preview = displayText.length > 40
|
|
187
|
+
? displayText.substring(0, 40) + '...'
|
|
188
|
+
: displayText;
|
|
189
|
+
return { enabled: true, text: preview };
|
|
190
|
+
}
|
|
191
|
+
return { enabled: false, text: 'Not set' };
|
|
192
|
+
case 'fn':
|
|
193
|
+
if (typeof configValue === 'string' && configValue) {
|
|
194
|
+
// Show preview of function (first 40 chars)
|
|
195
|
+
const preview = configValue.length > 40
|
|
196
|
+
? configValue.substring(0, 40) + '...'
|
|
197
|
+
: configValue;
|
|
198
|
+
return { enabled: true, text: preview };
|
|
199
|
+
}
|
|
200
|
+
return { enabled: false, text: 'Not set' };
|
|
201
|
+
case 'map':
|
|
202
|
+
if (!configValue)
|
|
203
|
+
return { enabled: false, text: 'Not set' };
|
|
204
|
+
const mapCount = Object.keys(configValue).length;
|
|
205
|
+
return mapCount > 0
|
|
206
|
+
? {
|
|
207
|
+
enabled: true,
|
|
208
|
+
text: `${mapCount} ${mapCount === 1 ? 'property' : 'properties'}`,
|
|
209
|
+
}
|
|
210
|
+
: { enabled: false, text: 'Not set' };
|
|
211
|
+
case 'loop':
|
|
212
|
+
if (Array.isArray(configValue) && configValue.length >= 1) {
|
|
213
|
+
// Show the source array path
|
|
214
|
+
const source = String(configValue[0] || 'nested');
|
|
215
|
+
return { enabled: true, text: `Source: ${source}` };
|
|
216
|
+
}
|
|
217
|
+
return { enabled: false, text: 'Not set' };
|
|
218
|
+
case 'set':
|
|
219
|
+
return Array.isArray(configValue) && configValue.length > 0
|
|
220
|
+
? {
|
|
221
|
+
enabled: true,
|
|
222
|
+
text: `${configValue.length} ${configValue.length === 1 ? 'value' : 'values'}`,
|
|
223
|
+
}
|
|
224
|
+
: { enabled: false, text: 'Not set' };
|
|
225
|
+
case 'consent':
|
|
226
|
+
if (!configValue)
|
|
227
|
+
return { enabled: false, text: 'Not set' };
|
|
228
|
+
const consentCount = Object.keys(configValue).length;
|
|
229
|
+
return consentCount > 0
|
|
230
|
+
? {
|
|
231
|
+
enabled: true,
|
|
232
|
+
text: `${consentCount} ${consentCount === 1 ? 'state' : 'states'}`,
|
|
233
|
+
}
|
|
234
|
+
: { enabled: false, text: 'Not set' };
|
|
235
|
+
case 'validate':
|
|
236
|
+
if (typeof configValue === 'string' && configValue) {
|
|
237
|
+
// Show preview of validation function (first 40 chars)
|
|
238
|
+
const preview = configValue.length > 40
|
|
239
|
+
? configValue.substring(0, 40) + '...'
|
|
240
|
+
: configValue;
|
|
241
|
+
return { enabled: true, text: preview };
|
|
242
|
+
}
|
|
243
|
+
return { enabled: false, text: 'Not set' };
|
|
244
|
+
default:
|
|
245
|
+
return { enabled: false, text: 'Not set' };
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
// Input is ALWAYS enabled
|
|
249
|
+
const inputPlaceholder = 'e.g., data.productId, user.email';
|
|
250
|
+
const inputTitle = 'Enter a property path to extract data from the event';
|
|
251
|
+
return (_jsxs(BaseMappingPane, { title: title, description: description, navigation: navigation, hideNavigation: hideNavigation, className: className, children: [_jsxs("div", { className: "elb-mapping-value-type-quick-section", children: [_jsx("div", { className: "elb-mapping-value-type-section-title", children: "Dynamic Value" }), _jsx(MappingInput, { value: displayValue, onChange: handleStringChange, placeholder: inputPlaceholder, title: inputTitle }), _jsx("div", { className: "elb-mapping-value-type-hint", children: isString ? (_jsx("span", { children: "Property path to extract data from the event" })) : (_jsx("span", { className: "is-info", children: "Editing property path - synced with Key tile" })) })] }), _jsxs("div", { className: "elb-mapping-value-type-advanced-section", children: [_jsx("div", { className: "elb-mapping-value-type-section-title", children: "Advanced Configuration" }), _jsx("div", { className: "elb-mapping-value-type-tiles-grid", children: VALUE_CONFIG_TILES.map((tile) => (_jsx(ConfigTile, { label: tile.label, description: tile.description, status: getTileStatus(tile.key), onClick: () => handleTileClick(tile.key) }, tile.key))) })] })] }));
|
|
252
|
+
}
|
|
253
|
+
//# sourceMappingURL=mapping-value-type-pane-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-value-type-pane-view.js","sourceRoot":"","sources":["../../../src/components/molecules/mapping-value-type-pane-view.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAyB,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAoBtD,MAAM,kBAAkB,GAA4B;IAClD;QACE,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,eAAe;KAC7B;IACD;QACE,GAAG,EAAE,OAAO;QACZ,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,cAAc;KAC5B;IACD;QACE,GAAG,EAAE,IAAI;QACT,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,iBAAiB;KAC/B;IACD;QACE,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,kBAAkB;KAChC;IACD;QACE,GAAG,EAAE,MAAM;QACX,KAAK,EAAE,MAAM;QACb,WAAW,EAAE,iBAAiB;KAC/B;IACD;QACE,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,iBAAiB;KAC/B;IACD;QACE,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,iBAAiB;KAC/B;IACD;QACE,GAAG,EAAE,UAAU;QACf,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,gBAAgB;KAC9B;CACF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,wBAAwB,CAAC,EACvC,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAS,GAAG,EAAE,EACd,KAAK,GAAG,qBAAqB,EAC7B,WAAW,GAAG,4CAA4C,EAC1D,cAAc,GAAG,KAAK,GACQ;IAC9B,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAElD,yBAAy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Ac,EAC9B,SAAS,EAAE,SAAS,aAGpB,eAAK,SAAS,EAAC,sCAAsC,aACnD,cAAK,SAAS,EAAC,sCAAsC,8BAE/C,EACN,KAAC,YAAY,IACX,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,EAAE,gBAAgB,EAC7B,KAAK,EAAE,UAAU,GACjB,EACF,cAAK,SAAS,EAAC,6BAA6B,YACzC,QAAQ,CAAC,CAAC,CAAC,CACV,0EAAyD,CAC1D,CAAC,CAAC,CAAC,CACF,eAAM,SAAS,EAAC,SAAS,6DAElB,CACR,GACG,IACF,EAGN,eAAK,SAAS,EAAC,yCAAyC,aACtD,cAAK,SAAS,EAAC,sCAAsC,uCAE/C,EACN,cAAK,SAAS,EAAC,mCAAmC,YAC/C,kBAAkB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAChC,KAAC,UAAU,IAET,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,IAJnC,IAAI,CAAC,GAAG,CAKb,CACH,CAAC,GACE,IACF,IACU,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { UseMappingStateReturn } from '../../hooks/useMappingState';
|
|
2
|
+
import type { UseMappingNavigationReturn } from '../../hooks/useMappingNavigation';
|
|
3
|
+
/**
|
|
4
|
+
* Options Pane - Edit root-level destination config options
|
|
5
|
+
*
|
|
6
|
+
* Handles config properties like:
|
|
7
|
+
* - id: Destination ID
|
|
8
|
+
* - loadScript: Whether to auto-load external scripts
|
|
9
|
+
* - queue: Enable event queuing
|
|
10
|
+
* - verbose: Enable verbose logging
|
|
11
|
+
*
|
|
12
|
+
* Uses RJSF for form generation with toggle switches and inputs.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <OptionsPane
|
|
16
|
+
* path={['options']}
|
|
17
|
+
* mappingState={configState}
|
|
18
|
+
* navigation={navigation}
|
|
19
|
+
* />
|
|
20
|
+
*/
|
|
21
|
+
export interface OptionsPaneProps {
|
|
22
|
+
path: string[];
|
|
23
|
+
mappingState: UseMappingStateReturn;
|
|
24
|
+
navigation: UseMappingNavigationReturn;
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function OptionsPane({ path, mappingState, navigation, className, }: OptionsPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=options-pane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options-pane.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/options-pane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAKnF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,YAAY,EAAE,qBAAqB,CAAC;IACpC,UAAU,EAAE,0BAA0B,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAc,GACf,EAAE,gBAAgB,2CAgGlB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { BaseMappingPane } from '../atoms/base-mapping-pane';
|
|
3
|
+
import { MappingFormWrapper } from '../forms/mapping-form-wrapper';
|
|
4
|
+
export function OptionsPane({ path, mappingState, navigation, className = '', }) {
|
|
5
|
+
// Get root config (path is ['options'], but we need root values)
|
|
6
|
+
const rootConfig = mappingState.config;
|
|
7
|
+
const currentOptions = {
|
|
8
|
+
id: rootConfig.id,
|
|
9
|
+
loadScript: rootConfig.loadScript,
|
|
10
|
+
queue: rootConfig.queue,
|
|
11
|
+
verbose: rootConfig.verbose,
|
|
12
|
+
};
|
|
13
|
+
// Schema for options
|
|
14
|
+
const schema = {
|
|
15
|
+
type: 'object',
|
|
16
|
+
title: 'Options',
|
|
17
|
+
properties: {
|
|
18
|
+
id: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
title: 'Destination ID',
|
|
21
|
+
description: 'Unique identifier for this destination instance',
|
|
22
|
+
},
|
|
23
|
+
loadScript: {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
title: 'Load Script',
|
|
26
|
+
description: 'Automatically load required external scripts',
|
|
27
|
+
},
|
|
28
|
+
queue: {
|
|
29
|
+
type: 'boolean',
|
|
30
|
+
title: 'Enable Queue',
|
|
31
|
+
description: 'Queue events when destination is not ready',
|
|
32
|
+
},
|
|
33
|
+
verbose: {
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
title: 'Verbose Logging',
|
|
36
|
+
description: 'Enable detailed console logging for debugging',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
const uiSchema = {
|
|
41
|
+
id: {
|
|
42
|
+
'ui:placeholder': 'e.g., meta-pixel, ga4-analytics',
|
|
43
|
+
'ui:help': 'Optional identifier for logging and debugging',
|
|
44
|
+
},
|
|
45
|
+
loadScript: {
|
|
46
|
+
'ui:widget': 'MappingBooleanWidget',
|
|
47
|
+
'ui:help': 'When enabled, the destination will load its tracking script automatically',
|
|
48
|
+
},
|
|
49
|
+
queue: {
|
|
50
|
+
'ui:widget': 'MappingBooleanWidget',
|
|
51
|
+
'ui:help': 'Events will be queued until the destination is initialized',
|
|
52
|
+
},
|
|
53
|
+
verbose: {
|
|
54
|
+
'ui:widget': 'MappingBooleanWidget',
|
|
55
|
+
'ui:help': 'Shows detailed logs for event processing and API calls',
|
|
56
|
+
},
|
|
57
|
+
'ui:order': ['id', 'loadScript', 'queue', 'verbose'],
|
|
58
|
+
};
|
|
59
|
+
const handleChange = (newOptions) => {
|
|
60
|
+
if (newOptions && typeof newOptions === 'object') {
|
|
61
|
+
const options = newOptions;
|
|
62
|
+
// Update root-level properties
|
|
63
|
+
Object.entries(options).forEach(([key, value]) => {
|
|
64
|
+
if (value !== undefined) {
|
|
65
|
+
mappingState.actions.setValue([key], value);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
// Remove undefined values
|
|
69
|
+
mappingState.actions.deleteValue([key]);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return (_jsx(BaseMappingPane, { title: "Options", description: "Configure destination behavior and runtime options", navigation: navigation, className: className, children: _jsx(MappingFormWrapper, { schema: schema, uiSchema: uiSchema, formData: currentOptions, onChange: handleChange, formContext: {
|
|
75
|
+
navigation,
|
|
76
|
+
mappingState,
|
|
77
|
+
path,
|
|
78
|
+
} }) }));
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=options-pane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options-pane.js","sourceRoot":"","sources":["../../../src/components/molecules/options-pane.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AA4BnE,MAAM,UAAU,WAAW,CAAC,EAC1B,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAS,GAAG,EAAE,GACG;IACjB,iEAAiE;IACjE,MAAM,UAAU,GAAG,YAAY,CAAC,MAAiC,CAAC;IAElE,MAAM,cAAc,GAAG;QACrB,EAAE,EAAE,UAAU,CAAC,EAAE;QACjB,UAAU,EAAE,UAAU,CAAC,UAAU;QACjC,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,OAAO,EAAE,UAAU,CAAC,OAAO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C,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;oBACxB,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;gBAC9C,CAAC;qBAAM,CAAC;oBACN,0BAA0B;oBAC1B,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;gBAC1C,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,eAAe,IACd,KAAK,EAAC,SAAS,EACf,WAAW,EAAC,oDAAoD,EAChE,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,YAEpB,KAAC,kBAAkB,IACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,cAAc,EACxB,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAE;gBACX,UAAU;gBACV,YAAY;gBACZ,IAAI;aACL,GACD,GACc,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { WalkerOS } from '@walkeros/core';
|
|
2
|
+
export interface PreviewProps {
|
|
3
|
+
html: string;
|
|
4
|
+
css?: string;
|
|
5
|
+
onEvent?: (event: WalkerOS.Event) => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Preview - HTML preview wrapped in a Box with highlight buttons
|
|
10
|
+
*
|
|
11
|
+
* Renders HTML in an isolated iframe with highlight buttons footer.
|
|
12
|
+
* When onEvent is provided, initializes walkerOS browser source in iframe.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* // Read-only preview
|
|
16
|
+
* <Preview html={html} css={css} label="Preview" />
|
|
17
|
+
*
|
|
18
|
+
* // Interactive preview with event capture
|
|
19
|
+
* <Preview html={html} css={css} onEvent={(event) => console.log(event)} label="Preview" />
|
|
20
|
+
*/
|
|
21
|
+
export declare function Preview({ html, css, onEvent, label, }: PreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=preview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/preview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAa,MAAM,gBAAgB,CAAC;AAM1D,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,KAAK,IAAI,CAAC;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,GAAQ,EACR,OAAO,EACP,KAAiB,GAClB,EAAE,YAAY,2CAyOd"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useRef, useCallback } from 'react';
|
|
3
|
+
import { sourceBrowser } from '@walkeros/web-source-browser';
|
|
4
|
+
import { startFlow } from '@walkeros/collector';
|
|
5
|
+
import { Box } from '../atoms/box';
|
|
6
|
+
import { PreviewFooter } from '../atoms/preview-footer';
|
|
7
|
+
/**
|
|
8
|
+
* Preview - HTML preview wrapped in a Box with highlight buttons
|
|
9
|
+
*
|
|
10
|
+
* Renders HTML in an isolated iframe with highlight buttons footer.
|
|
11
|
+
* When onEvent is provided, initializes walkerOS browser source in iframe.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Read-only preview
|
|
15
|
+
* <Preview html={html} css={css} label="Preview" />
|
|
16
|
+
*
|
|
17
|
+
* // Interactive preview with event capture
|
|
18
|
+
* <Preview html={html} css={css} onEvent={(event) => console.log(event)} label="Preview" />
|
|
19
|
+
*/
|
|
20
|
+
export function Preview({ html, css = '', onEvent, label = 'Preview', }) {
|
|
21
|
+
const [highlights, setHighlights] = useState(new Set());
|
|
22
|
+
const iframeRef = useRef(null);
|
|
23
|
+
const updateTimeoutRef = useRef(undefined);
|
|
24
|
+
const onEventRef = useRef(onEvent);
|
|
25
|
+
const collectorRef = useRef(null);
|
|
26
|
+
// Keep onEventRef in sync
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
onEventRef.current = onEvent;
|
|
29
|
+
}, [onEvent]);
|
|
30
|
+
const toggleHighlight = (type) => {
|
|
31
|
+
setHighlights((prev) => {
|
|
32
|
+
const next = new Set(prev);
|
|
33
|
+
if (next.has(type)) {
|
|
34
|
+
next.delete(type);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
next.add(type);
|
|
38
|
+
}
|
|
39
|
+
return next;
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
const autoMarkProperties = useCallback((container) => {
|
|
43
|
+
const entities = container.querySelectorAll('[data-elb]');
|
|
44
|
+
entities.forEach((entity) => {
|
|
45
|
+
const entityName = entity.getAttribute('data-elb');
|
|
46
|
+
if (!entityName)
|
|
47
|
+
return;
|
|
48
|
+
const propertySelector = `[data-elb-${entityName}]`;
|
|
49
|
+
entity.querySelectorAll(propertySelector).forEach((el) => {
|
|
50
|
+
el.setAttribute('data-elbproperty', '');
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}, []);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (updateTimeoutRef.current) {
|
|
56
|
+
clearTimeout(updateTimeoutRef.current);
|
|
57
|
+
}
|
|
58
|
+
updateTimeoutRef.current = setTimeout(() => {
|
|
59
|
+
const iframe = iframeRef.current;
|
|
60
|
+
if (!iframe || !iframe.contentDocument)
|
|
61
|
+
return;
|
|
62
|
+
const doc = iframe.contentDocument;
|
|
63
|
+
const highlightClasses = Array.from(highlights)
|
|
64
|
+
.map((type) => `highlight-${type}`)
|
|
65
|
+
.join(' ');
|
|
66
|
+
doc.open();
|
|
67
|
+
doc.write(`
|
|
68
|
+
<!DOCTYPE html>
|
|
69
|
+
<html>
|
|
70
|
+
<head>
|
|
71
|
+
<meta charset="utf-8">
|
|
72
|
+
<style>
|
|
73
|
+
/* Reset */
|
|
74
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
75
|
+
body {
|
|
76
|
+
padding: 1.5rem;
|
|
77
|
+
background: #f9fafb;
|
|
78
|
+
color: #111827;
|
|
79
|
+
min-height: 100vh;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (prefers-color-scheme: dark) {
|
|
83
|
+
body {
|
|
84
|
+
background: #1f2937;
|
|
85
|
+
color: #e5e7eb;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* User CSS */
|
|
90
|
+
${css}
|
|
91
|
+
|
|
92
|
+
/* Highlight CSS - imported from highlight styles */
|
|
93
|
+
:root {
|
|
94
|
+
--highlight-globals: #4fc3f7cc;
|
|
95
|
+
--highlight-context: #ffbd44cc;
|
|
96
|
+
--highlight-entity: #00ca4ecc;
|
|
97
|
+
--highlight-property: #ff605ccc;
|
|
98
|
+
--highlight-action: #9900ffcc;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
body.elb-highlight.highlight-entity [data-elb] {
|
|
102
|
+
box-shadow: 0 0 0 2px var(--highlight-entity);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
body.elb-highlight.highlight-context [data-elbcontext] {
|
|
106
|
+
box-shadow: 0 0 0 2px var(--highlight-context);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
body.elb-highlight.highlight-property [data-elbproperty] {
|
|
110
|
+
box-shadow: 0 0 0 2px var(--highlight-property);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
body.elb-highlight.highlight-action [data-elbaction] {
|
|
114
|
+
box-shadow: 0 0 0 2px var(--highlight-action);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Combined highlights */
|
|
118
|
+
body.elb-highlight.highlight-entity.highlight-action [data-elb][data-elbaction] {
|
|
119
|
+
box-shadow: 0 0 0 2px var(--highlight-action), 0 0 0 4px var(--highlight-entity);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
body.elb-highlight.highlight-entity.highlight-context [data-elb][data-elbcontext] {
|
|
123
|
+
box-shadow: 0 0 0 2px var(--highlight-entity), 0 0 0 4px var(--highlight-context);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
body.elb-highlight.highlight-action.highlight-context [data-elbaction][data-elbcontext] {
|
|
127
|
+
box-shadow: 0 0 0 2px var(--highlight-action), 0 0 0 4px var(--highlight-context);
|
|
128
|
+
}
|
|
129
|
+
</style>
|
|
130
|
+
</head>
|
|
131
|
+
<body class="elb-highlight ${highlightClasses}">
|
|
132
|
+
${html}
|
|
133
|
+
</body>
|
|
134
|
+
</html>
|
|
135
|
+
`);
|
|
136
|
+
doc.close();
|
|
137
|
+
autoMarkProperties(doc);
|
|
138
|
+
// Initialize browser source in iframe
|
|
139
|
+
if (onEventRef.current &&
|
|
140
|
+
iframe.contentWindow &&
|
|
141
|
+
iframe.contentDocument) {
|
|
142
|
+
setTimeout(async () => {
|
|
143
|
+
// Cleanup previous collector instance
|
|
144
|
+
if (collectorRef.current) {
|
|
145
|
+
try {
|
|
146
|
+
// Destroy all sources
|
|
147
|
+
for (const source of Object.values(collectorRef.current.sources)) {
|
|
148
|
+
await source.destroy?.();
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
catch (e) {
|
|
152
|
+
// Ignore cleanup errors
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
try {
|
|
156
|
+
if (!iframe.contentWindow || !iframe.contentDocument)
|
|
157
|
+
return;
|
|
158
|
+
// Initialize collector with browser source using startFlow
|
|
159
|
+
// This properly initializes the source with full context
|
|
160
|
+
const { collector, elb } = await startFlow({
|
|
161
|
+
sources: {
|
|
162
|
+
browser: {
|
|
163
|
+
code: sourceBrowser,
|
|
164
|
+
config: {
|
|
165
|
+
settings: {
|
|
166
|
+
pageview: true,
|
|
167
|
+
session: false,
|
|
168
|
+
prefix: 'data-elb',
|
|
169
|
+
elb: 'elb',
|
|
170
|
+
elbLayer: 'elbLayer',
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
env: {
|
|
174
|
+
window: iframe.contentWindow,
|
|
175
|
+
document: iframe.contentDocument,
|
|
176
|
+
},
|
|
177
|
+
primary: true,
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
destinations: {
|
|
181
|
+
// Capture events and forward to onEvent callback
|
|
182
|
+
preview: {
|
|
183
|
+
code: {
|
|
184
|
+
type: 'preview',
|
|
185
|
+
config: {},
|
|
186
|
+
push: async (event) => {
|
|
187
|
+
if (onEventRef.current) {
|
|
188
|
+
onEventRef.current(event);
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
run: false,
|
|
195
|
+
});
|
|
196
|
+
collectorRef.current = collector;
|
|
197
|
+
// Browser source auto-initializes load triggers and pageview
|
|
198
|
+
// No need to call 'walker init' - it happens in handleRun() during source init
|
|
199
|
+
}
|
|
200
|
+
catch (error) {
|
|
201
|
+
// Browser source initialization failed - silently ignore in preview context
|
|
202
|
+
// Error is expected in test/iframe environments
|
|
203
|
+
}
|
|
204
|
+
}, 50);
|
|
205
|
+
}
|
|
206
|
+
}, 200);
|
|
207
|
+
return () => {
|
|
208
|
+
if (updateTimeoutRef.current) {
|
|
209
|
+
clearTimeout(updateTimeoutRef.current);
|
|
210
|
+
}
|
|
211
|
+
// Cleanup collector and sources
|
|
212
|
+
if (collectorRef.current) {
|
|
213
|
+
for (const source of Object.values(collectorRef.current.sources)) {
|
|
214
|
+
source.destroy?.();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
}, [html, css, highlights, autoMarkProperties]);
|
|
219
|
+
return (_jsx(Box, { header: label, footer: _jsx(PreviewFooter, { highlights: highlights, onToggle: toggleHighlight }), children: _jsx("div", { className: "elb-preview-content", children: _jsx("iframe", { ref: iframeRef, className: "elb-preview-iframe", title: "HTML Preview" }) }) }));
|
|
220
|
+
}
|
|
221
|
+
//# sourceMappingURL=preview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../src/components/molecules/preview.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AASxD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,OAAO,CAAC,EACtB,IAAI,EACJ,GAAG,GAAG,EAAE,EACR,OAAO,EACP,KAAK,GAAG,SAAS,GACJ;IACb,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAc,IAAI,GAAG,EAAE,CAAC,CAAC;IACrE,MAAM,SAAS,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IAClD,MAAM,gBAAgB,GAAG,MAAM,CAA6B,SAAS,CAAC,CAAC;IACvE,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IACnC,MAAM,YAAY,GAAG,MAAM,CAA4B,IAAI,CAAC,CAAC;IAE7D,0BAA0B;IAC1B,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;IAC/B,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,EAAE;QACvC,aAAa,CAAC,CAAC,IAAI,EAA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