@walkeros/explorer 0.5.0 → 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 +25 -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-WKBCYMTQ.mjs → chunk-VWWAIDNX.mjs} +442 -153
- 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 +140 -32
- package/dist/index.d.ts +65 -1276
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -16696
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3598 -801
- 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-GHUJ2SZE.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 +247 -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 +13 -10
- package/dist/chunk-WKBCYMTQ.mjs.map +0 -1
- /package/dist/{monaco-types-GHUJ2SZE.mjs.map → monaco-types-4FIH5OVX.mjs.map} +0 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { MAPPING_RULE_STRUCTURE } from '../schemas/config-structures/mapping-rule';
|
|
2
|
+
import { detectNodeType } from './type-detector';
|
|
3
|
+
/**
|
|
4
|
+
* Capitalize first letter of a string
|
|
5
|
+
*/
|
|
6
|
+
function capitalize(str) {
|
|
7
|
+
if (!str)
|
|
8
|
+
return str;
|
|
9
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Build tree structure from config using structure definition
|
|
13
|
+
*
|
|
14
|
+
* CONFIG-DRIVEN: Tree reflects actual config values, not schema possibilities.
|
|
15
|
+
* STRUCTURE-AWARE: Uses PropertyDef for metadata (titles, nodeTypes, children strategy).
|
|
16
|
+
*
|
|
17
|
+
* @param config - Actual configuration object
|
|
18
|
+
* @param structure - Structure definition describing config shape
|
|
19
|
+
* @param schemas - Optional JSON Schemas for type hints and labels
|
|
20
|
+
* @param sections - Optional visibility filter (e.g., { verbose: false })
|
|
21
|
+
* @returns Array of root-level tree nodes
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* const tree = buildTree(
|
|
25
|
+
* destinationConfig,
|
|
26
|
+
* DESTINATION_CONFIG_STRUCTURE,
|
|
27
|
+
* metaPixelSchemas,
|
|
28
|
+
* { verbose: false }
|
|
29
|
+
* );
|
|
30
|
+
*/
|
|
31
|
+
export function buildTree(config, structure, schemas, sections) {
|
|
32
|
+
const nodes = [];
|
|
33
|
+
if (!structure.properties) {
|
|
34
|
+
return nodes;
|
|
35
|
+
}
|
|
36
|
+
// Iterate actual config keys (config-driven, not schema-driven)
|
|
37
|
+
const configKeys = Object.keys(config).filter((key) => config[key] !== undefined);
|
|
38
|
+
for (const key of configKeys) {
|
|
39
|
+
// Check section visibility
|
|
40
|
+
if (sections?.[key] === false) {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
const propertyDef = structure.properties[key];
|
|
44
|
+
const value = config[key];
|
|
45
|
+
const nodeType = detectNodeType(value, [key], structure, schemas);
|
|
46
|
+
// Build node
|
|
47
|
+
const node = {
|
|
48
|
+
key,
|
|
49
|
+
label: propertyDef?.title || capitalize(key),
|
|
50
|
+
path: [key],
|
|
51
|
+
type: nodeType,
|
|
52
|
+
hasValue: true,
|
|
53
|
+
};
|
|
54
|
+
// Build children based on children strategy
|
|
55
|
+
if (propertyDef?.children === 'entity-action') {
|
|
56
|
+
// Special: mapping.{entity}.{action} pattern
|
|
57
|
+
node.children = buildEntityActionChildren(value, [key], schemas);
|
|
58
|
+
node.isExpandable = node.children.length > 0;
|
|
59
|
+
}
|
|
60
|
+
else if (propertyDef?.children === 'schema-driven') {
|
|
61
|
+
// Build from JSON Schema properties
|
|
62
|
+
const propSchema = schemas?.[propertyDef.schemaPath || key];
|
|
63
|
+
node.children = buildSchemaChildren(value, [key], propSchema, schemas, structure);
|
|
64
|
+
node.isExpandable = node.children.length > 0;
|
|
65
|
+
}
|
|
66
|
+
else if (propertyDef?.children === 'value-driven') {
|
|
67
|
+
// Detect children from value structure
|
|
68
|
+
node.children = buildValueChildren(value, [key], schemas, structure);
|
|
69
|
+
node.isExpandable = node.children.length > 0;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
// No children (leaf node)
|
|
73
|
+
node.isExpandable = false;
|
|
74
|
+
}
|
|
75
|
+
nodes.push(node);
|
|
76
|
+
}
|
|
77
|
+
return nodes;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Build children nodes for entity-action pattern
|
|
81
|
+
*
|
|
82
|
+
* Handles the special mapping.{entity}.{action} hierarchy:
|
|
83
|
+
* - First level: entities (page, product, order)
|
|
84
|
+
* - Second level: actions (view, add, complete)
|
|
85
|
+
* - Third level: rule properties (name, batch, settings, data, etc.)
|
|
86
|
+
*
|
|
87
|
+
* Uses MAPPING_RULE_STRUCTURE to properly handle rule properties with schema awareness.
|
|
88
|
+
*
|
|
89
|
+
* @param mapping - Mapping object (entity → action → rule)
|
|
90
|
+
* @param basePath - Base path (e.g., ['mapping'])
|
|
91
|
+
* @param schemas - Schemas dict for rule-level settings
|
|
92
|
+
* @returns Array of entity nodes with action children
|
|
93
|
+
*/
|
|
94
|
+
function buildEntityActionChildren(mapping, basePath, schemas) {
|
|
95
|
+
const children = [];
|
|
96
|
+
Object.keys(mapping).forEach((entity) => {
|
|
97
|
+
const actions = mapping[entity];
|
|
98
|
+
const actionNodes = [];
|
|
99
|
+
if (actions && typeof actions === 'object') {
|
|
100
|
+
Object.keys(actions).forEach((action) => {
|
|
101
|
+
const ruleValue = actions[action];
|
|
102
|
+
const rulePath = [...basePath, entity, action];
|
|
103
|
+
// Build rule children using MAPPING_RULE_STRUCTURE for proper schema handling
|
|
104
|
+
const ruleChildren = buildValueChildren(ruleValue, rulePath, schemas, MAPPING_RULE_STRUCTURE);
|
|
105
|
+
actionNodes.push({
|
|
106
|
+
key: action,
|
|
107
|
+
label: capitalize(action),
|
|
108
|
+
path: rulePath,
|
|
109
|
+
type: 'rule',
|
|
110
|
+
hasValue: true,
|
|
111
|
+
children: ruleChildren,
|
|
112
|
+
isExpandable: ruleChildren.length > 0,
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
children.push({
|
|
117
|
+
key: entity,
|
|
118
|
+
label: capitalize(entity),
|
|
119
|
+
path: [...basePath, entity],
|
|
120
|
+
type: 'entity',
|
|
121
|
+
hasValue: true,
|
|
122
|
+
children: actionNodes,
|
|
123
|
+
isExpandable: actionNodes.length > 0,
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
return children;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Build children from JSON Schema properties
|
|
130
|
+
*
|
|
131
|
+
* Used for settings and other schema-defined objects.
|
|
132
|
+
* Only shows properties that actually exist in config.
|
|
133
|
+
*
|
|
134
|
+
* @param obj - Object with properties
|
|
135
|
+
* @param basePath - Base path
|
|
136
|
+
* @param schema - JSON Schema for this object
|
|
137
|
+
* @param schemas - Full schemas dict for nested navigation
|
|
138
|
+
* @param structure - Optional structure for additional metadata
|
|
139
|
+
* @returns Array of child nodes
|
|
140
|
+
*/
|
|
141
|
+
function buildSchemaChildren(obj, basePath, schema, schemas, structure) {
|
|
142
|
+
const children = [];
|
|
143
|
+
// Only build from actual config values (config-driven)
|
|
144
|
+
Object.keys(obj)
|
|
145
|
+
.filter((key) => obj[key] !== undefined)
|
|
146
|
+
.forEach((key) => {
|
|
147
|
+
const value = obj[key];
|
|
148
|
+
const childPath = [...basePath, key];
|
|
149
|
+
const propSchema = schema?.properties?.[key];
|
|
150
|
+
// Get property definition from structure if available
|
|
151
|
+
const propertyDef = structure?.properties?.[key];
|
|
152
|
+
// Determine children - check if nested object has schema
|
|
153
|
+
let valueChildren;
|
|
154
|
+
if (typeof value === 'object' &&
|
|
155
|
+
value !== null &&
|
|
156
|
+
!Array.isArray(value) &&
|
|
157
|
+
propSchema?.properties) {
|
|
158
|
+
// This is a schema-defined nested object, recurse with schema
|
|
159
|
+
valueChildren = buildSchemaChildren(value, childPath, propSchema, schemas, structure);
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
// Use value-driven for non-schema objects (pass structure!)
|
|
163
|
+
valueChildren = buildValueChildren(value, childPath, schemas, structure);
|
|
164
|
+
}
|
|
165
|
+
children.push({
|
|
166
|
+
key,
|
|
167
|
+
label: propertyDef?.title || propSchema?.title || capitalize(key),
|
|
168
|
+
path: childPath,
|
|
169
|
+
type: structure ? detectNodeType(value, childPath, structure, schemas) : 'valueConfig',
|
|
170
|
+
hasValue: true,
|
|
171
|
+
children: valueChildren,
|
|
172
|
+
isExpandable: valueChildren.length > 0,
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
return children;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Build children from value structure
|
|
179
|
+
*
|
|
180
|
+
* Used for data, policy, and other value-driven properties.
|
|
181
|
+
* Detects structure from actual value, but uses schema when available.
|
|
182
|
+
*
|
|
183
|
+
* @param value - Value to inspect
|
|
184
|
+
* @param basePath - Base path
|
|
185
|
+
* @param schemas - Optional schemas dict for schema-aware navigation
|
|
186
|
+
* @param structure - Optional structure definition for property metadata
|
|
187
|
+
* @returns Array of child nodes
|
|
188
|
+
*/
|
|
189
|
+
function buildValueChildren(value, basePath, schemas, structure) {
|
|
190
|
+
// For objects: show properties and recurse
|
|
191
|
+
if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
|
|
192
|
+
const obj = value;
|
|
193
|
+
return Object.keys(obj).map((key) => {
|
|
194
|
+
const childValue = obj[key];
|
|
195
|
+
const childPath = [...basePath, key];
|
|
196
|
+
// Check if this property is defined in structure (for rule properties)
|
|
197
|
+
const propertyDef = structure?.properties?.[key];
|
|
198
|
+
// Determine if this should use schema-driven children
|
|
199
|
+
let childChildren;
|
|
200
|
+
if (propertyDef?.children === 'schema-driven') {
|
|
201
|
+
// Use schema-driven building for nested settings
|
|
202
|
+
const schemaPath = propertyDef.schemaPath || key;
|
|
203
|
+
const propSchema = schemas?.[schemaPath];
|
|
204
|
+
childChildren = buildSchemaChildren(childValue, childPath, propSchema, schemas, structure);
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
// Continue with value-driven recursion
|
|
208
|
+
childChildren = buildValueChildren(childValue, childPath, schemas, structure);
|
|
209
|
+
}
|
|
210
|
+
const label = propertyDef?.title || capitalize(key);
|
|
211
|
+
return {
|
|
212
|
+
key,
|
|
213
|
+
label,
|
|
214
|
+
path: childPath,
|
|
215
|
+
type: structure ? detectNodeType(childValue, childPath, structure, schemas) : 'valueConfig',
|
|
216
|
+
hasValue: true,
|
|
217
|
+
children: childChildren,
|
|
218
|
+
isExpandable: childChildren.length > 0,
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
// Arrays, primitives: no children
|
|
223
|
+
return [];
|
|
224
|
+
}
|
|
225
|
+
//# sourceMappingURL=generic-tree-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-tree-builder.js","sourceRoot":"","sources":["../../src/utils/generic-tree-builder.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAejD;;GAEG;AACH,SAAS,UAAU,CAAC,GAAW;IAC7B,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAC;IACrB,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC;AAGD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,SAAS,CACvB,MAAS,EACT,SAA6B,EAC7B,OAAoC,EACpC,QAAkC;IAElC,MAAM,KAAK,GAAqB,EAAE,CAAC;IAEnC,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,gEAAgE;IAChE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAC3C,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,SAAS,CACnC,CAAC;IAEF,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,2BAA2B;QAC3B,IAAI,QAAQ,EAAE,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE,CAAC;YAC9B,SAAS;QACX,CAAC;QAED,MAAM,WAAW,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QAC9C,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAE1B,MAAM,QAAQ,GAAG,cAAc,CAAC,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GAAG,WAAW,CAAC,UAAU,IAAI,GAAG,CAAC;gBACjD,MAAM,UAAU,GAAG,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC;gBACzC,aAAa,GAAG,mBAAmB,CACjC,UAAqC,EACrC,SAAS,EACT,UAAU,EACV,OAAO,EACP,SAAS,CACV,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,uCAAuC;gBACvC,aAAa,GAAG,kBAAkB,CAChC,UAAU,EACV,SAAS,EACT,OAAO,EACP,SAAS,CACV,CAAC;YACJ,CAAC;YAED,MAAM,KAAK,GAAG,WAAW,EAAE,KAAK,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;YAEpD,OAAO;gBACL,GAAG;gBACH,KAAK;gBACL,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa;gBAC3F,QAAQ,EAAE,IAAI;gBACd,QAAQ,EAAE,aAAa;gBACvB,YAAY,EAAE,aAAa,CAAC,MAAM,GAAG,CAAC;aACvC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;IAED,kCAAkC;IAClC,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure utility functions for mapping path navigation
|
|
3
|
+
*
|
|
4
|
+
* These functions handle:
|
|
5
|
+
* - Path-based value extraction from nested objects
|
|
6
|
+
* - Immutable path-based value updates
|
|
7
|
+
* - Breadcrumb segment generation
|
|
8
|
+
* - Rule path parsing (entity action format)
|
|
9
|
+
* - Path validation and normalization
|
|
10
|
+
*
|
|
11
|
+
* All functions are pure (no side effects, no state, no UI)
|
|
12
|
+
* Designed for maximum reusability across different UI implementations
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Extract value from nested object using path array
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* getValueAtPath({ data: { map: { items: 'value' } } }, ['data', 'map', 'items'])
|
|
19
|
+
* // Returns: 'value'
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* getValueAtPath({ data: {} }, ['data', 'missing'])
|
|
23
|
+
* // Returns: undefined
|
|
24
|
+
*/
|
|
25
|
+
export declare function getValueAtPath(obj: unknown, path: string[]): unknown;
|
|
26
|
+
/**
|
|
27
|
+
* Set value in nested object at path (immutable)
|
|
28
|
+
*
|
|
29
|
+
* Creates a new object with the value updated at the specified path.
|
|
30
|
+
* Does not mutate the original object.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* setValueAtPath({ data: { map: {} } }, ['data', 'map', 'items'], 'new')
|
|
34
|
+
* // Returns: { data: { map: { items: 'new' } } }
|
|
35
|
+
*/
|
|
36
|
+
export declare function setValueAtPath(obj: unknown, path: string[], value: unknown): unknown;
|
|
37
|
+
/**
|
|
38
|
+
* Delete value at path (immutable)
|
|
39
|
+
*
|
|
40
|
+
* Creates a new object with the key removed at the specified path.
|
|
41
|
+
* Does not mutate the original object.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* deleteAtPath({ data: { map: { items: 'value' } } }, ['data', 'map', 'items'])
|
|
45
|
+
* // Returns: { data: { map: {} } }
|
|
46
|
+
*/
|
|
47
|
+
export declare function deleteAtPath(obj: unknown, path: string[]): unknown;
|
|
48
|
+
/**
|
|
49
|
+
* Parse rule path into entity and action
|
|
50
|
+
*
|
|
51
|
+
* WalkerOS uses "ENTITY ACTION" format with space separator
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* parseRulePath('product view')
|
|
55
|
+
* // Returns: { entity: 'product', action: 'view' }
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* parseRulePath('invalid')
|
|
59
|
+
* // Returns: { entity: 'invalid', action: undefined }
|
|
60
|
+
*/
|
|
61
|
+
export declare function parseRulePath(rulePath: string): {
|
|
62
|
+
entity: string;
|
|
63
|
+
action: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Build rule path from entity and action
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* buildRulePath('product', 'view')
|
|
70
|
+
* // Returns: 'product view'
|
|
71
|
+
*/
|
|
72
|
+
export declare function buildRulePath(entity: string, action: string): string;
|
|
73
|
+
/**
|
|
74
|
+
* Breadcrumb segment for UI display
|
|
75
|
+
*/
|
|
76
|
+
export interface BreadcrumbSegment {
|
|
77
|
+
label: string;
|
|
78
|
+
path: string[];
|
|
79
|
+
nodeType?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Build breadcrumb segments from path
|
|
83
|
+
*
|
|
84
|
+
* Converts a flat path array into human-readable breadcrumb segments
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* buildBreadcrumbSegments(['product', 'view', 'data', 'map', 'items'])
|
|
88
|
+
* // Returns: [
|
|
89
|
+
* // { label: 'Overview', path: [] },
|
|
90
|
+
* // { label: 'product', path: ['product'] },
|
|
91
|
+
* // { label: 'view', path: ['product', 'view'] },
|
|
92
|
+
* // { label: 'data', path: ['product', 'view', 'data'] },
|
|
93
|
+
* // { label: 'map', path: ['product', 'view', 'data', 'map'] },
|
|
94
|
+
* // { label: 'items', path: ['product', 'view', 'data', 'map', 'items'] }
|
|
95
|
+
* // ]
|
|
96
|
+
*/
|
|
97
|
+
export declare function buildBreadcrumbSegments(path: string[]): BreadcrumbSegment[];
|
|
98
|
+
/**
|
|
99
|
+
* Validate if a path is valid for a mapping rule
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* isValidRulePath(['product', 'view'])
|
|
103
|
+
* // Returns: true
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* isValidRulePath(['product'])
|
|
107
|
+
* // Returns: false (missing action)
|
|
108
|
+
*/
|
|
109
|
+
export declare function isValidRulePath(path: string[]): boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Get parent path
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* getParentPath(['data', 'map', 'items'])
|
|
115
|
+
* // Returns: ['data', 'map']
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* getParentPath(['data'])
|
|
119
|
+
* // Returns: []
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* getParentPath([])
|
|
123
|
+
* // Returns: []
|
|
124
|
+
*/
|
|
125
|
+
export declare function getParentPath(path: string[]): string[];
|
|
126
|
+
/**
|
|
127
|
+
* Check if path is ancestor of another path
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* isAncestorPath(['data', 'map'], ['data', 'map', 'items'])
|
|
131
|
+
* // Returns: true
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* isAncestorPath(['data', 'map'], ['data', 'set'])
|
|
135
|
+
* // Returns: false
|
|
136
|
+
*/
|
|
137
|
+
export declare function isAncestorPath(ancestorPath: string[], descendantPath: string[]): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Normalize path by removing empty strings and trimming
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* normalizePath([' data ', '', 'map', ' items'])
|
|
143
|
+
* // Returns: ['data', 'map', 'items']
|
|
144
|
+
*/
|
|
145
|
+
export declare function normalizePath(path: string[]): string[];
|
|
146
|
+
//# sourceMappingURL=mapping-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-path.d.ts","sourceRoot":"","sources":["../../src/utils/mapping-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAcpE;AAoCD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,EAAE,EACd,KAAK,EAAE,OAAO,GACb,OAAO,CA6BT;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAsBlE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAYA;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,iBAAiB,EAAE,CAa3E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAQvD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAGtD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,YAAY,EAAE,MAAM,EAAE,EACtB,cAAc,EAAE,MAAM,EAAE,GACvB,OAAO,CAUT;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAItD"}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure utility functions for mapping path navigation
|
|
3
|
+
*
|
|
4
|
+
* These functions handle:
|
|
5
|
+
* - Path-based value extraction from nested objects
|
|
6
|
+
* - Immutable path-based value updates
|
|
7
|
+
* - Breadcrumb segment generation
|
|
8
|
+
* - Rule path parsing (entity action format)
|
|
9
|
+
* - Path validation and normalization
|
|
10
|
+
*
|
|
11
|
+
* All functions are pure (no side effects, no state, no UI)
|
|
12
|
+
* Designed for maximum reusability across different UI implementations
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Extract value from nested object using path array
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* getValueAtPath({ data: { map: { items: 'value' } } }, ['data', 'map', 'items'])
|
|
19
|
+
* // Returns: 'value'
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* getValueAtPath({ data: {} }, ['data', 'missing'])
|
|
23
|
+
* // Returns: undefined
|
|
24
|
+
*/
|
|
25
|
+
export function getValueAtPath(obj, path) {
|
|
26
|
+
if (!obj || typeof obj !== 'object')
|
|
27
|
+
return undefined;
|
|
28
|
+
if (path.length === 0)
|
|
29
|
+
return obj;
|
|
30
|
+
let current = obj;
|
|
31
|
+
for (const key of path) {
|
|
32
|
+
if (current === null || current === undefined)
|
|
33
|
+
return undefined;
|
|
34
|
+
if (typeof current !== 'object')
|
|
35
|
+
return undefined;
|
|
36
|
+
current = current[key];
|
|
37
|
+
}
|
|
38
|
+
return current;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Deep clone that preserves all value types including function strings
|
|
42
|
+
*
|
|
43
|
+
* In the explorer, functions are stored as strings (e.g., fn: "(event) => event.data")
|
|
44
|
+
* so they need to be preserved during cloning operations.
|
|
45
|
+
*
|
|
46
|
+
* This implementation:
|
|
47
|
+
* - Handles primitives, arrays, objects
|
|
48
|
+
* - Preserves function strings
|
|
49
|
+
* - Handles nested structures recursively
|
|
50
|
+
* - Creates new object references (true immutability)
|
|
51
|
+
*/
|
|
52
|
+
function deepClone(obj) {
|
|
53
|
+
// Handle primitives and null
|
|
54
|
+
if (obj === null || typeof obj !== 'object') {
|
|
55
|
+
return obj;
|
|
56
|
+
}
|
|
57
|
+
// Handle arrays
|
|
58
|
+
if (Array.isArray(obj)) {
|
|
59
|
+
return obj.map((item) => deepClone(item));
|
|
60
|
+
}
|
|
61
|
+
// Handle objects
|
|
62
|
+
const cloned = {};
|
|
63
|
+
for (const key in obj) {
|
|
64
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
65
|
+
cloned[key] = deepClone(obj[key]);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return cloned;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Set value in nested object at path (immutable)
|
|
72
|
+
*
|
|
73
|
+
* Creates a new object with the value updated at the specified path.
|
|
74
|
+
* Does not mutate the original object.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* setValueAtPath({ data: { map: {} } }, ['data', 'map', 'items'], 'new')
|
|
78
|
+
* // Returns: { data: { map: { items: 'new' } } }
|
|
79
|
+
*/
|
|
80
|
+
export function setValueAtPath(obj, path, value) {
|
|
81
|
+
if (!obj || typeof obj !== 'object') {
|
|
82
|
+
throw new Error('Cannot set value on non-object');
|
|
83
|
+
}
|
|
84
|
+
if (path.length === 0)
|
|
85
|
+
return value;
|
|
86
|
+
// Deep clone for immutability
|
|
87
|
+
const cloned = deepClone(obj);
|
|
88
|
+
let current = cloned;
|
|
89
|
+
// Navigate to parent of target
|
|
90
|
+
for (let i = 0; i < path.length - 1; i++) {
|
|
91
|
+
const key = path[i];
|
|
92
|
+
// Create missing intermediate objects
|
|
93
|
+
if (!current[key] || typeof current[key] !== 'object') {
|
|
94
|
+
current[key] = {};
|
|
95
|
+
}
|
|
96
|
+
current = current[key];
|
|
97
|
+
}
|
|
98
|
+
// Set the final value
|
|
99
|
+
const lastKey = path[path.length - 1];
|
|
100
|
+
current[lastKey] = value;
|
|
101
|
+
return cloned;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Delete value at path (immutable)
|
|
105
|
+
*
|
|
106
|
+
* Creates a new object with the key removed at the specified path.
|
|
107
|
+
* Does not mutate the original object.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* deleteAtPath({ data: { map: { items: 'value' } } }, ['data', 'map', 'items'])
|
|
111
|
+
* // Returns: { data: { map: {} } }
|
|
112
|
+
*/
|
|
113
|
+
export function deleteAtPath(obj, path) {
|
|
114
|
+
if (!obj || typeof obj !== 'object') {
|
|
115
|
+
throw new Error('Cannot delete from non-object');
|
|
116
|
+
}
|
|
117
|
+
if (path.length === 0)
|
|
118
|
+
return undefined;
|
|
119
|
+
const cloned = deepClone(obj);
|
|
120
|
+
let current = cloned;
|
|
121
|
+
// Navigate to parent
|
|
122
|
+
for (let i = 0; i < path.length - 1; i++) {
|
|
123
|
+
const key = path[i];
|
|
124
|
+
if (!current[key])
|
|
125
|
+
return cloned; // Path doesn't exist, return unchanged
|
|
126
|
+
current = current[key];
|
|
127
|
+
}
|
|
128
|
+
// Delete the final key
|
|
129
|
+
const lastKey = path[path.length - 1];
|
|
130
|
+
delete current[lastKey];
|
|
131
|
+
return cloned;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Parse rule path into entity and action
|
|
135
|
+
*
|
|
136
|
+
* WalkerOS uses "ENTITY ACTION" format with space separator
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* parseRulePath('product view')
|
|
140
|
+
* // Returns: { entity: 'product', action: 'view' }
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* parseRulePath('invalid')
|
|
144
|
+
* // Returns: { entity: 'invalid', action: undefined }
|
|
145
|
+
*/
|
|
146
|
+
export function parseRulePath(rulePath) {
|
|
147
|
+
const parts = rulePath
|
|
148
|
+
.trim()
|
|
149
|
+
.split(' ')
|
|
150
|
+
.filter((p) => p.trim());
|
|
151
|
+
if (parts.length < 2) {
|
|
152
|
+
return { entity: parts[0] || '', action: undefined };
|
|
153
|
+
}
|
|
154
|
+
const [entity, ...actionParts] = parts;
|
|
155
|
+
return { entity, action: actionParts.join(' ') };
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Build rule path from entity and action
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* buildRulePath('product', 'view')
|
|
162
|
+
* // Returns: 'product view'
|
|
163
|
+
*/
|
|
164
|
+
export function buildRulePath(entity, action) {
|
|
165
|
+
return `${entity} ${action}`;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Build breadcrumb segments from path
|
|
169
|
+
*
|
|
170
|
+
* Converts a flat path array into human-readable breadcrumb segments
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* buildBreadcrumbSegments(['product', 'view', 'data', 'map', 'items'])
|
|
174
|
+
* // Returns: [
|
|
175
|
+
* // { label: 'Overview', path: [] },
|
|
176
|
+
* // { label: 'product', path: ['product'] },
|
|
177
|
+
* // { label: 'view', path: ['product', 'view'] },
|
|
178
|
+
* // { label: 'data', path: ['product', 'view', 'data'] },
|
|
179
|
+
* // { label: 'map', path: ['product', 'view', 'data', 'map'] },
|
|
180
|
+
* // { label: 'items', path: ['product', 'view', 'data', 'map', 'items'] }
|
|
181
|
+
* // ]
|
|
182
|
+
*/
|
|
183
|
+
export function buildBreadcrumbSegments(path) {
|
|
184
|
+
const segments = [{ label: 'Overview', path: [] }];
|
|
185
|
+
if (path.length === 0)
|
|
186
|
+
return segments;
|
|
187
|
+
for (let i = 0; i < path.length; i++) {
|
|
188
|
+
segments.push({
|
|
189
|
+
label: path[i],
|
|
190
|
+
path: path.slice(0, i + 1),
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
return segments;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Validate if a path is valid for a mapping rule
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* isValidRulePath(['product', 'view'])
|
|
200
|
+
* // Returns: true
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* isValidRulePath(['product'])
|
|
204
|
+
* // Returns: false (missing action)
|
|
205
|
+
*/
|
|
206
|
+
export function isValidRulePath(path) {
|
|
207
|
+
if (path.length < 2)
|
|
208
|
+
return false;
|
|
209
|
+
const [entity, action] = path;
|
|
210
|
+
if (!entity || !action)
|
|
211
|
+
return false;
|
|
212
|
+
if (typeof entity !== 'string' || typeof action !== 'string')
|
|
213
|
+
return false;
|
|
214
|
+
return true;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Get parent path
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* getParentPath(['data', 'map', 'items'])
|
|
221
|
+
* // Returns: ['data', 'map']
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* getParentPath(['data'])
|
|
225
|
+
* // Returns: []
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* getParentPath([])
|
|
229
|
+
* // Returns: []
|
|
230
|
+
*/
|
|
231
|
+
export function getParentPath(path) {
|
|
232
|
+
if (path.length === 0)
|
|
233
|
+
return [];
|
|
234
|
+
return path.slice(0, -1);
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Check if path is ancestor of another path
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* isAncestorPath(['data', 'map'], ['data', 'map', 'items'])
|
|
241
|
+
* // Returns: true
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* isAncestorPath(['data', 'map'], ['data', 'set'])
|
|
245
|
+
* // Returns: false
|
|
246
|
+
*/
|
|
247
|
+
export function isAncestorPath(ancestorPath, descendantPath) {
|
|
248
|
+
// Empty path cannot be ancestor (even though technically it is)
|
|
249
|
+
if (ancestorPath.length === 0)
|
|
250
|
+
return false;
|
|
251
|
+
if (ancestorPath.length >= descendantPath.length)
|
|
252
|
+
return false;
|
|
253
|
+
for (let i = 0; i < ancestorPath.length; i++) {
|
|
254
|
+
if (ancestorPath[i] !== descendantPath[i])
|
|
255
|
+
return false;
|
|
256
|
+
}
|
|
257
|
+
return true;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Normalize path by removing empty strings and trimming
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* normalizePath([' data ', '', 'map', ' items'])
|
|
264
|
+
* // Returns: ['data', 'map', 'items']
|
|
265
|
+
*/
|
|
266
|
+
export function normalizePath(path) {
|
|
267
|
+
return path
|
|
268
|
+
.filter((segment) => segment && segment.trim())
|
|
269
|
+
.map((s) => s.trim());
|
|
270
|
+
}
|
|
271
|
+
//# sourceMappingURL=mapping-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapping-path.js","sourceRoot":"","sources":["../../src/utils/mapping-path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,cAAc,CAAC,GAAY,EAAE,IAAc;IACzD,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACtD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC;IAElC,IAAI,OAAO,GAAY,GAAG,CAAC;IAE3B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS;YAAE,OAAO,SAAS,CAAC;QAChE,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,OAAO,SAAS,CAAC;QAElD,OAAO,GAAI,OAAmC,CAAC,GAAG,CAAC,CAAC;IACtD,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAS,SAAS,CAAI,GAAM;IAC1B,6BAA6B;IAC7B,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,gBAAgB;IAChB,IAAI,KAAK,CA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