@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,50 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useCallback } from 'react';
|
|
3
|
+
import { debounce, isString, tryCatchAsync } from '@walkeros/core';
|
|
4
|
+
import { CodeBox } from '../molecules/code-box';
|
|
5
|
+
import { Grid } from '../atoms/grid';
|
|
6
|
+
import { formatCode } from '../../utils/format-code';
|
|
7
|
+
function formatValue(value, options = {}) {
|
|
8
|
+
if (value === undefined)
|
|
9
|
+
return '';
|
|
10
|
+
const str = isString(value) ? value.trim() : JSON.stringify(value, null, 2);
|
|
11
|
+
return options.quotes && isString(value) ? `"${str}"` : str;
|
|
12
|
+
}
|
|
13
|
+
export function LiveCode({ input: initInput, config: initConfig, output: initOutput = '', options, fn, fnName, labelInput = 'Event', labelConfig = 'Config', labelOutput = 'Result', emptyText = 'No event yet.', disableInput = false, disableConfig = false, showQuotes = true, className, language = 'json', format = true, rowHeight, }) {
|
|
14
|
+
const [input, setInput] = useState(formatValue(initInput));
|
|
15
|
+
const [config, setConfig] = useState(formatValue(initConfig));
|
|
16
|
+
const [output, setOutput] = useState([formatValue(initOutput)]);
|
|
17
|
+
// Format input code on mount
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (format && initInput) {
|
|
20
|
+
const rawInput = formatValue(initInput);
|
|
21
|
+
formatCode(rawInput, language).then(setInput);
|
|
22
|
+
}
|
|
23
|
+
}, [initInput, language, format]);
|
|
24
|
+
// Format config code on mount
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (format && initConfig) {
|
|
27
|
+
const rawConfig = formatValue(initConfig);
|
|
28
|
+
formatCode(rawConfig, language).then(setConfig);
|
|
29
|
+
}
|
|
30
|
+
}, [initConfig, language, format]);
|
|
31
|
+
const log = useCallback((...args) => {
|
|
32
|
+
const params = args
|
|
33
|
+
.map((arg) => formatValue(arg, { quotes: showQuotes }))
|
|
34
|
+
.join(', ');
|
|
35
|
+
setOutput([fnName ? `${fnName}(${params})` : params]);
|
|
36
|
+
}, [fnName, showQuotes]);
|
|
37
|
+
const updateOutput = useCallback(debounce(async (inputStr, configStr, opts) => {
|
|
38
|
+
if (!fn)
|
|
39
|
+
return;
|
|
40
|
+
setOutput([]);
|
|
41
|
+
await tryCatchAsync(fn, (e) => {
|
|
42
|
+
setOutput([`Error: ${String(e)}`]);
|
|
43
|
+
})(inputStr, configStr, log, opts);
|
|
44
|
+
}, 500, true), [fn, log]);
|
|
45
|
+
useEffect(() => {
|
|
46
|
+
updateOutput(input, config, options || {});
|
|
47
|
+
}, [input, config, options, updateOutput]);
|
|
48
|
+
return (_jsxs(Grid, { columns: 3, className: className, rowHeight: rowHeight, children: [_jsx(CodeBox, { label: labelInput, code: input, onChange: disableInput ? undefined : setInput, disabled: disableInput, language: language, showFormat: !disableInput && language === 'json' }), config && (_jsx(CodeBox, { label: labelConfig, code: config, onChange: disableConfig ? undefined : setConfig, disabled: disableConfig, language: language, showFormat: !disableConfig && language === 'json' })), _jsx(CodeBox, { label: labelOutput, code: output[0] || emptyText, disabled: true, language: language })] }));
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=live-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-code.js","sourceRoot":"","sources":["../../../src/components/organisms/live-code.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,MA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, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { LiveCode } from './live-code';
|
|
3
|
+
/**
|
|
4
|
+
* LiveCode - Generic live code execution component
|
|
5
|
+
*
|
|
6
|
+
* Three-panel interactive component with:
|
|
7
|
+
* - Input panel (editable JSON)
|
|
8
|
+
* - Config panel (editable JSON)
|
|
9
|
+
* - Output panel (function result)
|
|
10
|
+
*
|
|
11
|
+
* Executes a custom transformation function with debounced updates.
|
|
12
|
+
* Perfect for demonstrating data transformations and API interactions.
|
|
13
|
+
*/
|
|
14
|
+
declare const meta: Meta<typeof LiveCode>;
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof LiveCode>;
|
|
17
|
+
/**
|
|
18
|
+
* Default live code with simple data transformation
|
|
19
|
+
*
|
|
20
|
+
* Shows a transformation that combines input data with config,
|
|
21
|
+
* demonstrating how the component executes and displays results.
|
|
22
|
+
*/
|
|
23
|
+
export declare const Default: Story;
|
|
24
|
+
//# sourceMappingURL=live-code.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-code.stories.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/live-code.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;;;;;GAUG;AACH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAO/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,KA4BrB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { LiveCode } from './live-code';
|
|
2
|
+
/**
|
|
3
|
+
* LiveCode - Generic live code execution component
|
|
4
|
+
*
|
|
5
|
+
* Three-panel interactive component with:
|
|
6
|
+
* - Input panel (editable JSON)
|
|
7
|
+
* - Config panel (editable JSON)
|
|
8
|
+
* - Output panel (function result)
|
|
9
|
+
*
|
|
10
|
+
* Executes a custom transformation function with debounced updates.
|
|
11
|
+
* Perfect for demonstrating data transformations and API interactions.
|
|
12
|
+
*/
|
|
13
|
+
const meta = {
|
|
14
|
+
component: LiveCode,
|
|
15
|
+
title: 'Organisms/LiveCode',
|
|
16
|
+
tags: ['autodocs'],
|
|
17
|
+
parameters: {
|
|
18
|
+
layout: 'fullscreen',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
/**
|
|
23
|
+
* Default live code with simple data transformation
|
|
24
|
+
*
|
|
25
|
+
* Shows a transformation that combines input data with config,
|
|
26
|
+
* demonstrating how the component executes and displays results.
|
|
27
|
+
*/
|
|
28
|
+
export const Default = {
|
|
29
|
+
args: {
|
|
30
|
+
input: {
|
|
31
|
+
name: 'John Doe',
|
|
32
|
+
email: 'john@example.com',
|
|
33
|
+
},
|
|
34
|
+
config: {
|
|
35
|
+
includeTimestamp: true,
|
|
36
|
+
prefix: 'User:',
|
|
37
|
+
},
|
|
38
|
+
labelInput: 'User Data',
|
|
39
|
+
labelConfig: 'Options',
|
|
40
|
+
labelOutput: 'Transformed',
|
|
41
|
+
fn: async (input, config, log) => {
|
|
42
|
+
const inputData = JSON.parse(input);
|
|
43
|
+
const configData = JSON.parse(config);
|
|
44
|
+
const result = {
|
|
45
|
+
...inputData,
|
|
46
|
+
displayName: `${configData.prefix} ${inputData.name}`,
|
|
47
|
+
...(configData.includeTimestamp && {
|
|
48
|
+
timestamp: new Date().toISOString(),
|
|
49
|
+
}),
|
|
50
|
+
};
|
|
51
|
+
log(result);
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=live-code.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-code.stories.js","sourceRoot":"","sources":["../../../src/components/organisms/live-code.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;;;;;;;;;GAUG;AACH,MAAM,IAAI,GAA0B;IAClC,SAAS,EAAE,QAAQ;IACnB,KAAK,EAAE,oBAAoB;IAC3B,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,kBAAkB;SAC1B;QACD,MAAM,EAAE;YACN,gBAAgB,EAAE,IAAI;YACtB,MAAM,EAAE,OAAO;SAChB;QACD,UAAU,EAAE,WAAW;QACvB,WAAW,EAAE,SAAS;QACtB,WAAW,EAAE,aAAa;QAC1B,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,KAAe,CAAC,CAAC;YAC9C,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,MAAgB,CAAC,CAAC;YAEhD,MAAM,MAAM,GAAG;gBACb,GAAG,SAAS;gBACZ,WAAW,EAAE,GAAG,UAAU,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,EAAE;gBACrD,GAAG,CAAC,UAAU,CAAC,gBAAgB,IAAI;oBACjC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;iBACpC,CAAC;aACH,CAAC;YAEF,GAAG,CAAC,MAAM,CAAC,CAAC;QACd,CAAC;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;CAAG;AAE1D,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAMpE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '@/lib/utils';
|
|
3
|
+
export function Button({ className, children, ...props }) {
|
|
4
|
+
return (_jsx("button", { className: cn('explorer-button', className), ...props, children: children }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAKjC,MAAM,UAAU,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAe;IACnE,OAAO,CACL,iBAAQ,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,KAAM,KAAK,YAC3D,QAAQ,GACF,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/ui/icon.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAc,EAAE,EAAE,SAAS,2CAkBrD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function CopyIcon({ className = '' }) {
|
|
3
|
+
return (_jsx("svg", { className: className, width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 5H6a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2v-1M8 5a2 2 0 002 2h2a2 2 0 002-2M8 5a2 2 0 012-2h2a2 2 0 012 2m0 0h2a2 2 0 012 2v3m2 4H10m0 0l3-3m-3 3l3 3" }) }));
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/components/ui/icon.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,QAAQ,CAAC,EAAE,SAAS,GAAG,EAAE,EAAa;IACpD,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,OAAO,EAAC,WAAW,YAEnB,eACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,8JAA8J,GAChK,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/ui/label.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,KAAK,CAAC,EAAE,QAAQ,EAAE,EAAE,UAAU,2CAE7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../../src/components/ui/label.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,KAAK,CAAC,EAAE,QAAQ,EAAc;IAC5C,OAAO,cAAK,SAAS,EAAC,gBAAgB,YAAE,QAAQ,GAAO,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface GridHeightContextValue {
|
|
2
|
+
registerBox: (id: number, height: number) => void;
|
|
3
|
+
unregisterBox: (id: number) => void;
|
|
4
|
+
getBoxId: () => number;
|
|
5
|
+
syncedHeight: number | null;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const GridHeightContext: import("react").Context<GridHeightContextValue | null>;
|
|
9
|
+
export declare function useGridHeight(): GridHeightContextValue | null;
|
|
10
|
+
export declare function useBoxId(): number;
|
|
11
|
+
//# sourceMappingURL=GridHeightContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridHeightContext.d.ts","sourceRoot":"","sources":["../../src/contexts/GridHeightContext.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,wDAE7B,CAAC;AAEF,wBAAgB,aAAa,IAAI,sBAAsB,GAAG,IAAI,CAE7D;AAGD,wBAAgB,QAAQ,IAAI,MAAM,CAMjC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createContext, useContext, useRef } from 'react';
|
|
2
|
+
export const GridHeightContext = createContext(null);
|
|
3
|
+
export function useGridHeight() {
|
|
4
|
+
return useContext(GridHeightContext);
|
|
5
|
+
}
|
|
6
|
+
let nextBoxId = 0;
|
|
7
|
+
export function useBoxId() {
|
|
8
|
+
const idRef = useRef(null);
|
|
9
|
+
if (idRef.current === null) {
|
|
10
|
+
idRef.current = nextBoxId++;
|
|
11
|
+
}
|
|
12
|
+
return idRef.current;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=GridHeightContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridHeightContext.js","sourceRoot":"","sources":["../../src/contexts/GridHeightContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAU1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAC5C,IAAI,CACL,CAAC;AAEF,MAAM,UAAU,aAAa;IAC3B,OAAO,UAAU,CAAC,iBAAiB,CAAC,CAAC;AACvC,CAAC;AAED,IAAI,SAAS,GAAG,CAAC,CAAC;AAClB,MAAM,UAAU,QAAQ;IACtB,MAAM,KAAK,GAAG,MAAM,CAAgB,IAAI,CAAC,CAAC;IAC1C,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QAC3B,KAAK,CAAC,OAAO,GAAG,SAAS,EAAE,CAAC;IAC9B,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Destination, WalkerOS } from '@walkeros/core';
|
|
2
|
+
/**
|
|
3
|
+
* Formats captured function calls for display
|
|
4
|
+
*
|
|
5
|
+
* @param calls - Array of captured calls with path and args
|
|
6
|
+
* @param defaultMessage - Message to show when no calls captured
|
|
7
|
+
* @returns Formatted string of function calls
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* formatCapturedCalls([
|
|
11
|
+
* { path: ['window', 'gtag'], args: ['config', 'G-XXX'] }
|
|
12
|
+
* ])
|
|
13
|
+
* // Returns: "gtag('config', 'G-XXX');"
|
|
14
|
+
*/
|
|
15
|
+
export declare function formatCapturedCalls(calls: Array<{
|
|
16
|
+
path: string[];
|
|
17
|
+
args: unknown[];
|
|
18
|
+
}>, defaultMessage?: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Creates a capture function for destination init method
|
|
21
|
+
* Uses walkerOS core mockEnv to intercept function calls
|
|
22
|
+
*
|
|
23
|
+
* @param destination - Destination instance with init method
|
|
24
|
+
* @param destinationEnv - Destination's exported env (usually examples.env.push)
|
|
25
|
+
* @returns Async function that executes init and returns formatted output
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* import destinationGtag, { examples } from '@walkeros/web-destination-gtag';
|
|
29
|
+
*
|
|
30
|
+
* const captureFn = captureDestinationInit(destinationGtag, examples.env.push);
|
|
31
|
+
*
|
|
32
|
+
* // Use in DestinationInitDemo
|
|
33
|
+
* <DestinationInitDemo
|
|
34
|
+
* destination={destinationGtag}
|
|
35
|
+
* settings={{ measurementId: 'G-XXX' }}
|
|
36
|
+
* fn={captureFn}
|
|
37
|
+
* />
|
|
38
|
+
*/
|
|
39
|
+
export declare function captureDestinationInit(destination: Destination.Instance, destinationEnv: unknown): (context: Destination.Context) => Promise<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a capture function for destination push method
|
|
42
|
+
* Uses walkerOS core mockEnv to intercept function calls
|
|
43
|
+
*
|
|
44
|
+
* @param destination - Destination instance with push method
|
|
45
|
+
* @param destinationEnv - Destination's exported env (usually examples.env.push)
|
|
46
|
+
* @returns Async function that executes push and returns formatted output
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* import destinationGtag, { examples } from '@walkeros/web-destination-gtag';
|
|
50
|
+
* import { getEvent } from '@walkeros/core';
|
|
51
|
+
*
|
|
52
|
+
* const captureFn = captureDestinationPush(destinationGtag, examples.env.push);
|
|
53
|
+
*
|
|
54
|
+
* // Use in DestinationDemo
|
|
55
|
+
* <DestinationDemo
|
|
56
|
+
* destination={destinationGtag}
|
|
57
|
+
* event={getEvent('order complete')}
|
|
58
|
+
* mapping={examples.mapping.purchase}
|
|
59
|
+
* fn={captureFn}
|
|
60
|
+
* />
|
|
61
|
+
*/
|
|
62
|
+
export declare function captureDestinationPush(destination: Destination.Instance, destinationEnv: unknown): (event: WalkerOS.Event, context: Destination.PushContext) => Promise<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Advanced: Creates a raw capture function that returns call data
|
|
65
|
+
* Use this when you need custom formatting or processing of calls
|
|
66
|
+
*
|
|
67
|
+
* @param destinationEnv - Destination's exported env
|
|
68
|
+
* @returns Function that returns both env and getCalls function
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* const { env, getCalls } = createRawCapture(examples.env.push);
|
|
72
|
+
* await destination.init({ ...context, env });
|
|
73
|
+
* const calls = getCalls();
|
|
74
|
+
* // Process calls as needed
|
|
75
|
+
*/
|
|
76
|
+
export declare function createRawCapture(destinationEnv: unknown): {
|
|
77
|
+
env: Record<string, unknown>;
|
|
78
|
+
getCalls: () => {
|
|
79
|
+
path: string[];
|
|
80
|
+
args: unknown[];
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=capture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../src/helpers/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEhE;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE,OAAO,EAAE,CAAA;CAAE,CAAC,EACjD,cAAc,SAA+B,GAC5C,MAAM,CAiBR;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,WAAW,CAAC,QAAQ,EACjC,cAAc,EAAE,OAAO,IAET,SAAS,WAAW,CAAC,OAAO,KAAG,OAAO,CAAC,MAAM,CAAC,CAmB7D;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,WAAW,CAAC,QAAQ,EACjC,cAAc,EAAE,OAAO,IAGrB,OAAO,QAAQ,CAAC,KAAK,EACrB,SAAS,WAAW,CAAC,WAAW,KAC/B,OAAO,CAAC,MAAM,CAAC,CAgBnB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,OAAO;;;cAC3B,MAAM,EAAE;cAAQ,OAAO,EAAE;;EAarD"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { mockEnv } from '@walkeros/core';
|
|
2
|
+
/**
|
|
3
|
+
* Formats captured function calls for display
|
|
4
|
+
*
|
|
5
|
+
* @param calls - Array of captured calls with path and args
|
|
6
|
+
* @param defaultMessage - Message to show when no calls captured
|
|
7
|
+
* @returns Formatted string of function calls
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* formatCapturedCalls([
|
|
11
|
+
* { path: ['window', 'gtag'], args: ['config', 'G-XXX'] }
|
|
12
|
+
* ])
|
|
13
|
+
* // Returns: "gtag('config', 'G-XXX');"
|
|
14
|
+
*/
|
|
15
|
+
export function formatCapturedCalls(calls, defaultMessage = 'No function calls captured') {
|
|
16
|
+
if (calls.length === 0)
|
|
17
|
+
return defaultMessage;
|
|
18
|
+
return calls
|
|
19
|
+
.map(({ path, args }) => {
|
|
20
|
+
const functionName = path[path.length - 1];
|
|
21
|
+
const formattedArgs = args
|
|
22
|
+
.map((arg) => {
|
|
23
|
+
if (typeof arg === 'string')
|
|
24
|
+
return `'${arg}'`;
|
|
25
|
+
if (typeof arg === 'object' && arg !== null)
|
|
26
|
+
return JSON.stringify(arg, null, 2);
|
|
27
|
+
return String(arg);
|
|
28
|
+
})
|
|
29
|
+
.join(', ');
|
|
30
|
+
return `${functionName}(${formattedArgs});`;
|
|
31
|
+
})
|
|
32
|
+
.join('\n\n');
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Creates a capture function for destination init method
|
|
36
|
+
* Uses walkerOS core mockEnv to intercept function calls
|
|
37
|
+
*
|
|
38
|
+
* @param destination - Destination instance with init method
|
|
39
|
+
* @param destinationEnv - Destination's exported env (usually examples.env.push)
|
|
40
|
+
* @returns Async function that executes init and returns formatted output
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* import destinationGtag, { examples } from '@walkeros/web-destination-gtag';
|
|
44
|
+
*
|
|
45
|
+
* const captureFn = captureDestinationInit(destinationGtag, examples.env.push);
|
|
46
|
+
*
|
|
47
|
+
* // Use in DestinationInitDemo
|
|
48
|
+
* <DestinationInitDemo
|
|
49
|
+
* destination={destinationGtag}
|
|
50
|
+
* settings={{ measurementId: 'G-XXX' }}
|
|
51
|
+
* fn={captureFn}
|
|
52
|
+
* />
|
|
53
|
+
*/
|
|
54
|
+
export function captureDestinationInit(destination, destinationEnv) {
|
|
55
|
+
return async (context) => {
|
|
56
|
+
if (!destination.init) {
|
|
57
|
+
return 'No init method found';
|
|
58
|
+
}
|
|
59
|
+
const calls = [];
|
|
60
|
+
// Use walkerOS core mockEnv to intercept all function calls
|
|
61
|
+
const testEnv = mockEnv((destinationEnv || {}), (path, args) => {
|
|
62
|
+
calls.push({ path, args });
|
|
63
|
+
});
|
|
64
|
+
await destination.init({ ...context, env: testEnv });
|
|
65
|
+
return formatCapturedCalls(calls, 'Destination initialized successfully');
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Creates a capture function for destination push method
|
|
70
|
+
* Uses walkerOS core mockEnv to intercept function calls
|
|
71
|
+
*
|
|
72
|
+
* @param destination - Destination instance with push method
|
|
73
|
+
* @param destinationEnv - Destination's exported env (usually examples.env.push)
|
|
74
|
+
* @returns Async function that executes push and returns formatted output
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* import destinationGtag, { examples } from '@walkeros/web-destination-gtag';
|
|
78
|
+
* import { getEvent } from '@walkeros/core';
|
|
79
|
+
*
|
|
80
|
+
* const captureFn = captureDestinationPush(destinationGtag, examples.env.push);
|
|
81
|
+
*
|
|
82
|
+
* // Use in DestinationDemo
|
|
83
|
+
* <DestinationDemo
|
|
84
|
+
* destination={destinationGtag}
|
|
85
|
+
* event={getEvent('order complete')}
|
|
86
|
+
* mapping={examples.mapping.purchase}
|
|
87
|
+
* fn={captureFn}
|
|
88
|
+
* />
|
|
89
|
+
*/
|
|
90
|
+
export function captureDestinationPush(destination, destinationEnv) {
|
|
91
|
+
return async (event, context) => {
|
|
92
|
+
const calls = [];
|
|
93
|
+
// Use walkerOS core mockEnv to intercept all function calls
|
|
94
|
+
const testEnv = mockEnv((destinationEnv || {}), (path, args) => {
|
|
95
|
+
calls.push({ path, args });
|
|
96
|
+
});
|
|
97
|
+
// Call the real destination push with intercepted env
|
|
98
|
+
await destination.push(event, { ...context, env: testEnv });
|
|
99
|
+
return formatCapturedCalls(calls);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Advanced: Creates a raw capture function that returns call data
|
|
104
|
+
* Use this when you need custom formatting or processing of calls
|
|
105
|
+
*
|
|
106
|
+
* @param destinationEnv - Destination's exported env
|
|
107
|
+
* @returns Function that returns both env and getCalls function
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* const { env, getCalls } = createRawCapture(examples.env.push);
|
|
111
|
+
* await destination.init({ ...context, env });
|
|
112
|
+
* const calls = getCalls();
|
|
113
|
+
* // Process calls as needed
|
|
114
|
+
*/
|
|
115
|
+
export function createRawCapture(destinationEnv) {
|
|
116
|
+
const calls = [];
|
|
117
|
+
const testEnv = mockEnv((destinationEnv || {}), (path, args) => {
|
|
118
|
+
calls.push({ path, args });
|
|
119
|
+
});
|
|
120
|
+
return {
|
|
121
|
+
env: testEnv,
|
|
122
|
+
getCalls: () => calls,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=capture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../../src/helpers/capture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO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,EAAE,GAAG,EAAE,CAAC,KAAK;KACtB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Destination } from '@walkeros/core';
|
|
2
|
+
export interface DemoEnv extends Destination.BaseEnv {
|
|
3
|
+
elb: (output: string) => void;
|
|
4
|
+
}
|
|
5
|
+
export type DestinationCode = Destination.Instance<Destination.Types<unknown, unknown, DemoEnv>>;
|
|
6
|
+
/**
|
|
7
|
+
* Creates a gtag-style destination for demo purposes.
|
|
8
|
+
* Formats output as: gtag('event', 'event_name', { data })
|
|
9
|
+
*/
|
|
10
|
+
export declare function createGtagDestination(): DestinationCode;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a Facebook Pixel-style destination for demo purposes.
|
|
13
|
+
* Formats output as: fbq('track', 'EventName', { data })
|
|
14
|
+
*/
|
|
15
|
+
export declare function createFbqDestination(): DestinationCode;
|
|
16
|
+
/**
|
|
17
|
+
* Creates a Plausible-style destination for demo purposes.
|
|
18
|
+
* Formats output as: plausible('event_name', { props: { data } })
|
|
19
|
+
*/
|
|
20
|
+
export declare function createPlausibleDestination(): DestinationCode;
|
|
21
|
+
//# sourceMappingURL=destinations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinations.d.ts","sourceRoot":"","sources":["../../src/helpers/destinations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAC;AAG5D,MAAM,WAAW,OAAQ,SAAQ,WAAW,CAAC,OAAO;IAClD,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B;AAED,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,QAAQ,CAChD,WAAW,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAC7C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,eAAe,CAWvD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,eAAe,CAWtD;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,eAAe,CAW5D"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a gtag-style destination for demo purposes.
|
|
3
|
+
* Formats output as: gtag('event', 'event_name', { data })
|
|
4
|
+
*/
|
|
5
|
+
export function createGtagDestination() {
|
|
6
|
+
return {
|
|
7
|
+
type: 'gtag',
|
|
8
|
+
config: {},
|
|
9
|
+
push(event, context) {
|
|
10
|
+
const { data, env } = context;
|
|
11
|
+
const formatted = `gtag('event', '${event.name}', ${JSON.stringify(data, null, 2)});`;
|
|
12
|
+
env.elb(formatted);
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Creates a Facebook Pixel-style destination for demo purposes.
|
|
18
|
+
* Formats output as: fbq('track', 'EventName', { data })
|
|
19
|
+
*/
|
|
20
|
+
export function createFbqDestination() {
|
|
21
|
+
return {
|
|
22
|
+
type: 'fbq',
|
|
23
|
+
config: {},
|
|
24
|
+
push(event, context) {
|
|
25
|
+
const { data, env } = context;
|
|
26
|
+
const formatted = `fbq('track', '${event.name}', ${JSON.stringify(data, null, 2)});`;
|
|
27
|
+
env.elb(formatted);
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Creates a Plausible-style destination for demo purposes.
|
|
33
|
+
* Formats output as: plausible('event_name', { props: { data } })
|
|
34
|
+
*/
|
|
35
|
+
export function createPlausibleDestination() {
|
|
36
|
+
return {
|
|
37
|
+
type: 'plausible',
|
|
38
|
+
config: {},
|
|
39
|
+
push(event, context) {
|
|
40
|
+
const { data, env } = context;
|
|
41
|
+
const formatted = `plausible('${event.name}', { props: ${JSON.stringify(data, null, 2)} });`;
|
|
42
|
+
env.elb(formatted);
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=destinations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../src/helpers/destinations.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,EAAE;QACV,IAAI,CAAC,KAAK,EAAE,OAAO;YACjB,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;YAE9B,MAAM,SAAS,GAAG,kBAAkB,KAAK,CAAC,IAAI,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACtF,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO;QACL,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,EAAE;QACV,IAAI,CAAC,KAAK,EAAE,OAAO;YACjB,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;YAE9B,MAAM,SAAS,GAAG,iBAAiB,KAAK,CAAC,IAAI,MAAM,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;YACrF,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B;IACxC,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,EAAE;QACV,IAAI,CAAC,KAAK,EAAE,OAAO;YACjB,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;YAE9B,MAAM,SAAS,GAAG,cAAc,KAAK,CAAC,IAAI,eAAe,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;YAC7F,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { BreadcrumbSegment } from '../utils/mapping-path';
|
|
2
|
+
import type { ConfigStructureDef } from '../schemas/config-structures/types';
|
|
3
|
+
import type { RJSFSchema } from '@rjsf/utils';
|
|
4
|
+
/**
|
|
5
|
+
* Node types for different editing contexts
|
|
6
|
+
*/
|
|
7
|
+
export type NodeType = 'entity' | 'rule' | 'name' | 'batch' | 'policy' | 'consent' | 'settings' | 'options' | 'validationOverview' | 'valueConfig' | 'valueType' | 'primitive' | 'map' | 'loop' | 'set' | 'value' | 'fn' | 'validate' | 'condition' | 'enum' | 'boolean' | 'key';
|
|
8
|
+
/**
|
|
9
|
+
* Navigation tab representing an open editing context
|
|
10
|
+
*/
|
|
11
|
+
export interface NavigationTab {
|
|
12
|
+
id: string;
|
|
13
|
+
path: string[];
|
|
14
|
+
nodeType: NodeType;
|
|
15
|
+
label: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Parameters for useMappingNavigation hook
|
|
19
|
+
*/
|
|
20
|
+
export interface UseMappingNavigationParams {
|
|
21
|
+
config: unknown;
|
|
22
|
+
structure: ConfigStructureDef;
|
|
23
|
+
schemas?: Record<string, RJSFSchema>;
|
|
24
|
+
}
|
|
25
|
+
export declare function useMappingNavigation(params: UseMappingNavigationParams): {
|
|
26
|
+
openTabs: NavigationTab[];
|
|
27
|
+
activeTabId: string;
|
|
28
|
+
treeVisible: boolean;
|
|
29
|
+
breadcrumb: BreadcrumbSegment[];
|
|
30
|
+
navigationHistory: string[];
|
|
31
|
+
openTab: (path: string[], nodeType: NodeType) => void;
|
|
32
|
+
switchToTab: (tabId: string) => void;
|
|
33
|
+
closeTab: (tabId: string) => void;
|
|
34
|
+
closeLevel: () => void;
|
|
35
|
+
closeAllTabs: () => void;
|
|
36
|
+
navigateToBreadcrumb: (segmentPath: string[]) => void;
|
|
37
|
+
navigateToPath: (dotPath: string) => void;
|
|
38
|
+
toggleTree: () => void;
|
|
39
|
+
setTreeVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
40
|
+
goBack: () => void;
|
|
41
|
+
findTab: (tabId: string) => NavigationTab | undefined;
|
|
42
|
+
hasTab: (path: string[]) => boolean;
|
|
43
|
+
canGoBack: () => boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Return type of useMappingNavigation hook
|
|
47
|
+
*
|
|
48
|
+
* Provides tab-based navigation state management with:
|
|
49
|
+
* - State: openTabs, activeTabId, treeVisible, breadcrumb, navigationHistory
|
|
50
|
+
* - Actions: openTab, closeTab, navigateToPath, goBack, etc.
|
|
51
|
+
* - Queries: getActiveTab, canGoBack
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* const navigation: UseMappingNavigationReturn = useMappingNavigation();
|
|
55
|
+
*/
|
|
56
|
+
export type UseMappingNavigationReturn = ReturnType<typeof useMappingNavigation>;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated Use UseMappingNavigationReturn instead
|
|
59
|
+
* This alias is kept for backward compatibility and will be removed in the next major version.
|
|
60
|
+
*/
|
|
61
|
+
export type MappingNavigation = UseMappingNavigationReturn;
|
|
62
|
+
//# sourceMappingURL=useMappingNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMappingNavigation.d.ts","sourceRoot":"","sources":["../../src/hooks/useMappingNavigation.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,MAAM,GACN,MA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