@walkeros/explorer 2.1.3 → 2.1.5
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/README.md +35 -11
- package/dist/index.d.cts +3 -668
- package/dist/index.d.ts +1336 -99
- package/dist/index.js +1 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -18676
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +687 -5001
- package/package.json +9 -26
- package/AGENT.md +0 -429
- package/LICENSE +0 -42
- package/STYLE.md +0 -1103
- package/dist/__mocks__/@monaco-editor/react.d.ts +0 -3
- package/dist/__mocks__/@monaco-editor/react.d.ts.map +0 -1
- package/dist/__mocks__/@monaco-editor/react.js +0 -4
- package/dist/__mocks__/@monaco-editor/react.js.map +0 -1
- package/dist/chunk-52ELVFJE.mjs +0 -573
- package/dist/chunk-52ELVFJE.mjs.map +0 -1
- package/dist/components/atoms/alert.d.ts +0 -29
- package/dist/components/atoms/alert.d.ts.map +0 -1
- package/dist/components/atoms/alert.js +0 -19
- package/dist/components/atoms/alert.js.map +0 -1
- package/dist/components/atoms/alert.stories.d.ts +0 -7
- package/dist/components/atoms/alert.stories.d.ts.map +0 -1
- package/dist/components/atoms/alert.stories.js +0 -14
- package/dist/components/atoms/alert.stories.js.map +0 -1
- package/dist/components/atoms/base-mapping-pane.d.ts +0 -85
- package/dist/components/atoms/base-mapping-pane.d.ts.map +0 -1
- package/dist/components/atoms/base-mapping-pane.js +0 -53
- package/dist/components/atoms/base-mapping-pane.js.map +0 -1
- package/dist/components/atoms/box.d.ts +0 -27
- package/dist/components/atoms/box.d.ts.map +0 -1
- package/dist/components/atoms/box.js +0 -86
- package/dist/components/atoms/box.js.map +0 -1
- package/dist/components/atoms/box.stories.d.ts +0 -34
- package/dist/components/atoms/box.stories.d.ts.map +0 -1
- package/dist/components/atoms/box.stories.js +0 -104
- package/dist/components/atoms/box.stories.js.map +0 -1
- package/dist/components/atoms/button-group.d.ts +0 -17
- package/dist/components/atoms/button-group.d.ts.map +0 -1
- package/dist/components/atoms/button-group.js +0 -12
- package/dist/components/atoms/button-group.js.map +0 -1
- package/dist/components/atoms/button-group.stories.d.ts +0 -18
- package/dist/components/atoms/button-group.stories.d.ts.map +0 -1
- package/dist/components/atoms/button-group.stories.js +0 -35
- package/dist/components/atoms/button-group.stories.js.map +0 -1
- package/dist/components/atoms/button-link.d.ts +0 -12
- package/dist/components/atoms/button-link.d.ts.map +0 -1
- package/dist/components/atoms/button-link.js +0 -10
- package/dist/components/atoms/button-link.js.map +0 -1
- package/dist/components/atoms/button-link.stories.d.ts +0 -11
- package/dist/components/atoms/button-link.stories.d.ts.map +0 -1
- package/dist/components/atoms/button-link.stories.js +0 -50
- package/dist/components/atoms/button-link.stories.js.map +0 -1
- package/dist/components/atoms/button.d.ts +0 -15
- package/dist/components/atoms/button.d.ts.map +0 -1
- package/dist/components/atoms/button.js +0 -11
- package/dist/components/atoms/button.js.map +0 -1
- package/dist/components/atoms/button.stories.d.ts +0 -14
- package/dist/components/atoms/button.stories.d.ts.map +0 -1
- package/dist/components/atoms/button.stories.js +0 -25
- package/dist/components/atoms/button.stories.js.map +0 -1
- package/dist/components/atoms/code.d.ts +0 -92
- package/dist/components/atoms/code.d.ts.map +0 -1
- package/dist/components/atoms/code.js +0 -405
- package/dist/components/atoms/code.js.map +0 -1
- package/dist/components/atoms/code.stories.d.ts +0 -46
- package/dist/components/atoms/code.stories.d.ts.map +0 -1
- package/dist/components/atoms/code.stories.js +0 -156
- package/dist/components/atoms/code.stories.js.map +0 -1
- package/dist/components/atoms/config-tile.d.ts +0 -38
- package/dist/components/atoms/config-tile.d.ts.map +0 -1
- package/dist/components/atoms/config-tile.js +0 -29
- package/dist/components/atoms/config-tile.js.map +0 -1
- package/dist/components/atoms/consent-state-tile.d.ts +0 -14
- package/dist/components/atoms/consent-state-tile.d.ts.map +0 -1
- package/dist/components/atoms/consent-state-tile.js +0 -5
- package/dist/components/atoms/consent-state-tile.js.map +0 -1
- package/dist/components/atoms/field-header.d.ts +0 -41
- package/dist/components/atoms/field-header.d.ts.map +0 -1
- package/dist/components/atoms/field-header.js +0 -42
- package/dist/components/atoms/field-header.js.map +0 -1
- package/dist/components/atoms/footer.d.ts +0 -21
- package/dist/components/atoms/footer.d.ts.map +0 -1
- package/dist/components/atoms/footer.js +0 -19
- package/dist/components/atoms/footer.js.map +0 -1
- package/dist/components/atoms/footer.stories.d.ts +0 -14
- package/dist/components/atoms/footer.stories.d.ts.map +0 -1
- package/dist/components/atoms/footer.stories.js +0 -29
- package/dist/components/atoms/footer.stories.js.map +0 -1
- package/dist/components/atoms/form-field.d.ts +0 -28
- package/dist/components/atoms/form-field.d.ts.map +0 -1
- package/dist/components/atoms/form-field.js +0 -16
- package/dist/components/atoms/form-field.js.map +0 -1
- package/dist/components/atoms/form-field.stories.d.ts +0 -7
- package/dist/components/atoms/form-field.stories.d.ts.map +0 -1
- package/dist/components/atoms/form-field.stories.js +0 -16
- package/dist/components/atoms/form-field.stories.js.map +0 -1
- package/dist/components/atoms/form-input.d.ts +0 -43
- package/dist/components/atoms/form-input.d.ts.map +0 -1
- package/dist/components/atoms/form-input.js +0 -26
- package/dist/components/atoms/form-input.js.map +0 -1
- package/dist/components/atoms/form-input.stories.d.ts +0 -7
- package/dist/components/atoms/form-input.stories.d.ts.map +0 -1
- package/dist/components/atoms/form-input.stories.js +0 -17
- package/dist/components/atoms/form-input.stories.js.map +0 -1
- package/dist/components/atoms/form-textarea.d.ts +0 -41
- package/dist/components/atoms/form-textarea.d.ts.map +0 -1
- package/dist/components/atoms/form-textarea.js +0 -26
- package/dist/components/atoms/form-textarea.js.map +0 -1
- package/dist/components/atoms/form-textarea.stories.d.ts +0 -7
- package/dist/components/atoms/form-textarea.stories.d.ts.map +0 -1
- package/dist/components/atoms/form-textarea.stories.js +0 -17
- package/dist/components/atoms/form-textarea.stories.js.map +0 -1
- package/dist/components/atoms/grid.d.ts +0 -65
- package/dist/components/atoms/grid.d.ts.map +0 -1
- package/dist/components/atoms/grid.js +0 -169
- package/dist/components/atoms/grid.js.map +0 -1
- package/dist/components/atoms/grid.stories.d.ts +0 -18
- package/dist/components/atoms/grid.stories.d.ts.map +0 -1
- package/dist/components/atoms/grid.stories.js +0 -60
- package/dist/components/atoms/grid.stories.js.map +0 -1
- package/dist/components/atoms/header.d.ts +0 -7
- package/dist/components/atoms/header.d.ts.map +0 -1
- package/dist/components/atoms/header.js +0 -5
- package/dist/components/atoms/header.js.map +0 -1
- package/dist/components/atoms/header.stories.d.ts +0 -15
- package/dist/components/atoms/header.stories.d.ts.map +0 -1
- package/dist/components/atoms/header.stories.js +0 -37
- package/dist/components/atoms/header.stories.js.map +0 -1
- package/dist/components/atoms/icon-button.d.ts +0 -26
- package/dist/components/atoms/icon-button.d.ts.map +0 -1
- package/dist/components/atoms/icon-button.js +0 -39
- package/dist/components/atoms/icon-button.js.map +0 -1
- package/dist/components/atoms/icons/icon.stories.d.ts +0 -18
- package/dist/components/atoms/icons/icon.stories.d.ts.map +0 -1
- package/dist/components/atoms/icons/icon.stories.js +0 -37
- package/dist/components/atoms/icons/icon.stories.js.map +0 -1
- package/dist/components/atoms/icons/icons.d.ts +0 -2
- package/dist/components/atoms/icons/icons.d.ts.map +0 -1
- package/dist/components/atoms/icons/icons.js +0 -7
- package/dist/components/atoms/icons/icons.js.map +0 -1
- package/dist/components/atoms/icons/index.d.ts +0 -3
- package/dist/components/atoms/icons/index.d.ts.map +0 -1
- package/dist/components/atoms/icons/index.js +0 -3
- package/dist/components/atoms/icons/index.js.map +0 -1
- package/dist/components/atoms/mapping-boolean.d.ts +0 -31
- package/dist/components/atoms/mapping-boolean.d.ts.map +0 -1
- package/dist/components/atoms/mapping-boolean.js +0 -38
- package/dist/components/atoms/mapping-boolean.js.map +0 -1
- package/dist/components/atoms/mapping-breadcrumb.d.ts +0 -14
- package/dist/components/atoms/mapping-breadcrumb.d.ts.map +0 -1
- package/dist/components/atoms/mapping-breadcrumb.js +0 -10
- package/dist/components/atoms/mapping-breadcrumb.js.map +0 -1
- package/dist/components/atoms/mapping-collapsible.d.ts +0 -54
- package/dist/components/atoms/mapping-collapsible.d.ts.map +0 -1
- package/dist/components/atoms/mapping-collapsible.js +0 -87
- package/dist/components/atoms/mapping-collapsible.js.map +0 -1
- package/dist/components/atoms/mapping-condition-field.d.ts +0 -18
- package/dist/components/atoms/mapping-condition-field.d.ts.map +0 -1
- package/dist/components/atoms/mapping-condition-field.js +0 -34
- package/dist/components/atoms/mapping-condition-field.js.map +0 -1
- package/dist/components/atoms/mapping-condition.d.ts +0 -34
- package/dist/components/atoms/mapping-condition.d.ts.map +0 -1
- package/dist/components/atoms/mapping-condition.js +0 -70
- package/dist/components/atoms/mapping-condition.js.map +0 -1
- package/dist/components/atoms/mapping-confirm-button.d.ts +0 -29
- package/dist/components/atoms/mapping-confirm-button.d.ts.map +0 -1
- package/dist/components/atoms/mapping-confirm-button.js +0 -42
- package/dist/components/atoms/mapping-confirm-button.js.map +0 -1
- package/dist/components/atoms/mapping-consent-field.d.ts +0 -20
- package/dist/components/atoms/mapping-consent-field.d.ts.map +0 -1
- package/dist/components/atoms/mapping-consent-field.js +0 -36
- package/dist/components/atoms/mapping-consent-field.js.map +0 -1
- package/dist/components/atoms/mapping-consent.d.ts +0 -34
- package/dist/components/atoms/mapping-consent.d.ts.map +0 -1
- package/dist/components/atoms/mapping-consent.js +0 -86
- package/dist/components/atoms/mapping-consent.js.map +0 -1
- package/dist/components/atoms/mapping-data-field.d.ts +0 -23
- package/dist/components/atoms/mapping-data-field.d.ts.map +0 -1
- package/dist/components/atoms/mapping-data-field.js +0 -38
- package/dist/components/atoms/mapping-data-field.js.map +0 -1
- package/dist/components/atoms/mapping-data.d.ts +0 -34
- package/dist/components/atoms/mapping-data.d.ts.map +0 -1
- package/dist/components/atoms/mapping-data.js +0 -76
- package/dist/components/atoms/mapping-data.js.map +0 -1
- package/dist/components/atoms/mapping-enum-select.d.ts +0 -28
- package/dist/components/atoms/mapping-enum-select.d.ts.map +0 -1
- package/dist/components/atoms/mapping-enum-select.js +0 -142
- package/dist/components/atoms/mapping-enum-select.js.map +0 -1
- package/dist/components/atoms/mapping-fn-field.d.ts +0 -23
- package/dist/components/atoms/mapping-fn-field.d.ts.map +0 -1
- package/dist/components/atoms/mapping-fn-field.js +0 -38
- package/dist/components/atoms/mapping-fn-field.js.map +0 -1
- package/dist/components/atoms/mapping-fn.d.ts +0 -34
- package/dist/components/atoms/mapping-fn.d.ts.map +0 -1
- package/dist/components/atoms/mapping-fn.js +0 -70
- package/dist/components/atoms/mapping-fn.js.map +0 -1
- package/dist/components/atoms/mapping-grid.d.ts +0 -45
- package/dist/components/atoms/mapping-grid.d.ts.map +0 -1
- package/dist/components/atoms/mapping-grid.js +0 -83
- package/dist/components/atoms/mapping-grid.js.map +0 -1
- package/dist/components/atoms/mapping-input-with-button.d.ts +0 -54
- package/dist/components/atoms/mapping-input-with-button.d.ts.map +0 -1
- package/dist/components/atoms/mapping-input-with-button.js +0 -54
- package/dist/components/atoms/mapping-input-with-button.js.map +0 -1
- package/dist/components/atoms/mapping-input.d.ts +0 -44
- package/dist/components/atoms/mapping-input.d.ts.map +0 -1
- package/dist/components/atoms/mapping-input.js +0 -35
- package/dist/components/atoms/mapping-input.js.map +0 -1
- package/dist/components/atoms/mapping-key-field.d.ts +0 -23
- package/dist/components/atoms/mapping-key-field.d.ts.map +0 -1
- package/dist/components/atoms/mapping-key-field.js +0 -39
- package/dist/components/atoms/mapping-key-field.js.map +0 -1
- package/dist/components/atoms/mapping-key.d.ts +0 -35
- package/dist/components/atoms/mapping-key.d.ts.map +0 -1
- package/dist/components/atoms/mapping-key.js +0 -48
- package/dist/components/atoms/mapping-key.js.map +0 -1
- package/dist/components/atoms/mapping-map-entry.d.ts +0 -31
- package/dist/components/atoms/mapping-map-entry.d.ts.map +0 -1
- package/dist/components/atoms/mapping-map-entry.js +0 -68
- package/dist/components/atoms/mapping-map-entry.js.map +0 -1
- package/dist/components/atoms/mapping-number.d.ts +0 -32
- package/dist/components/atoms/mapping-number.d.ts.map +0 -1
- package/dist/components/atoms/mapping-number.js +0 -52
- package/dist/components/atoms/mapping-number.js.map +0 -1
- package/dist/components/atoms/mapping-object-explorer-field.d.ts +0 -30
- package/dist/components/atoms/mapping-object-explorer-field.d.ts.map +0 -1
- package/dist/components/atoms/mapping-object-explorer-field.js +0 -48
- package/dist/components/atoms/mapping-object-explorer-field.js.map +0 -1
- package/dist/components/atoms/mapping-object-explorer.d.ts +0 -59
- package/dist/components/atoms/mapping-object-explorer.d.ts.map +0 -1
- package/dist/components/atoms/mapping-object-explorer.js +0 -215
- package/dist/components/atoms/mapping-object-explorer.js.map +0 -1
- package/dist/components/atoms/mapping-set-entry.d.ts +0 -31
- package/dist/components/atoms/mapping-set-entry.d.ts.map +0 -1
- package/dist/components/atoms/mapping-set-entry.js +0 -66
- package/dist/components/atoms/mapping-set-entry.js.map +0 -1
- package/dist/components/atoms/mapping-settings-field.d.ts +0 -33
- package/dist/components/atoms/mapping-settings-field.d.ts.map +0 -1
- package/dist/components/atoms/mapping-settings-field.js +0 -48
- package/dist/components/atoms/mapping-settings-field.js.map +0 -1
- package/dist/components/atoms/mapping-settings.d.ts +0 -44
- package/dist/components/atoms/mapping-settings.d.ts.map +0 -1
- package/dist/components/atoms/mapping-settings.js +0 -108
- package/dist/components/atoms/mapping-settings.js.map +0 -1
- package/dist/components/atoms/mapping-string.d.ts +0 -19
- package/dist/components/atoms/mapping-string.d.ts.map +0 -1
- package/dist/components/atoms/mapping-string.js +0 -26
- package/dist/components/atoms/mapping-string.js.map +0 -1
- package/dist/components/atoms/mapping-tab.d.ts +0 -15
- package/dist/components/atoms/mapping-tab.d.ts.map +0 -1
- package/dist/components/atoms/mapping-tab.js +0 -8
- package/dist/components/atoms/mapping-tab.js.map +0 -1
- package/dist/components/atoms/mapping-type-button.d.ts +0 -19
- package/dist/components/atoms/mapping-type-button.d.ts.map +0 -1
- package/dist/components/atoms/mapping-type-button.js +0 -5
- package/dist/components/atoms/mapping-type-button.js.map +0 -1
- package/dist/components/atoms/mapping-validate-field.d.ts +0 -23
- package/dist/components/atoms/mapping-validate-field.d.ts.map +0 -1
- package/dist/components/atoms/mapping-validate-field.js +0 -38
- package/dist/components/atoms/mapping-validate-field.js.map +0 -1
- package/dist/components/atoms/mapping-validate.d.ts +0 -34
- package/dist/components/atoms/mapping-validate.d.ts.map +0 -1
- package/dist/components/atoms/mapping-validate.js +0 -68
- package/dist/components/atoms/mapping-validate.js.map +0 -1
- package/dist/components/atoms/mapping-value.d.ts +0 -17
- package/dist/components/atoms/mapping-value.d.ts.map +0 -1
- package/dist/components/atoms/mapping-value.js +0 -127
- package/dist/components/atoms/mapping-value.js.map +0 -1
- package/dist/components/atoms/mdx-code.d.ts +0 -33
- package/dist/components/atoms/mdx-code.d.ts.map +0 -1
- package/dist/components/atoms/mdx-code.js +0 -69
- package/dist/components/atoms/mdx-code.js.map +0 -1
- package/dist/components/atoms/pane-header.d.ts +0 -24
- package/dist/components/atoms/pane-header.d.ts.map +0 -1
- package/dist/components/atoms/pane-header.js +0 -5
- package/dist/components/atoms/pane-header.js.map +0 -1
- package/dist/components/atoms/panel-hints.d.ts +0 -35
- package/dist/components/atoms/panel-hints.d.ts.map +0 -1
- package/dist/components/atoms/panel-hints.js +0 -5
- package/dist/components/atoms/panel-hints.js.map +0 -1
- package/dist/components/atoms/panel-hints.stories.d.ts +0 -14
- package/dist/components/atoms/panel-hints.stories.d.ts.map +0 -1
- package/dist/components/atoms/panel-hints.stories.js +0 -35
- package/dist/components/atoms/panel-hints.stories.js.map +0 -1
- package/dist/components/atoms/preview-footer.d.ts +0 -32
- package/dist/components/atoms/preview-footer.d.ts.map +0 -1
- package/dist/components/atoms/preview-footer.js +0 -31
- package/dist/components/atoms/preview-footer.js.map +0 -1
- package/dist/components/atoms/spinner.d.ts +0 -17
- package/dist/components/atoms/spinner.d.ts.map +0 -1
- package/dist/components/atoms/spinner.js +0 -14
- package/dist/components/atoms/spinner.js.map +0 -1
- package/dist/components/atoms/spinner.stories.d.ts +0 -7
- package/dist/components/atoms/spinner.stories.d.ts.map +0 -1
- package/dist/components/atoms/spinner.stories.js +0 -9
- package/dist/components/atoms/spinner.stories.js.map +0 -1
- package/dist/components/atoms/submit-button.d.ts +0 -34
- package/dist/components/atoms/submit-button.d.ts.map +0 -1
- package/dist/components/atoms/submit-button.js +0 -18
- package/dist/components/atoms/submit-button.js.map +0 -1
- package/dist/components/atoms/submit-button.stories.d.ts +0 -7
- package/dist/components/atoms/submit-button.stories.d.ts.map +0 -1
- package/dist/components/atoms/submit-button.stories.js +0 -13
- package/dist/components/atoms/submit-button.stories.js.map +0 -1
- package/dist/components/atoms/toggle.d.ts +0 -9
- package/dist/components/atoms/toggle.d.ts.map +0 -1
- package/dist/components/atoms/toggle.js +0 -6
- package/dist/components/atoms/toggle.js.map +0 -1
- package/dist/components/demos/DestinationDemo.d.ts +0 -48
- package/dist/components/demos/DestinationDemo.d.ts.map +0 -1
- package/dist/components/demos/DestinationDemo.js +0 -105
- package/dist/components/demos/DestinationDemo.js.map +0 -1
- package/dist/components/demos/DestinationDemo.stories.d.ts +0 -17
- package/dist/components/demos/DestinationDemo.stories.d.ts.map +0 -1
- package/dist/components/demos/DestinationDemo.stories.js +0 -53
- package/dist/components/demos/DestinationDemo.stories.js.map +0 -1
- package/dist/components/demos/DestinationInitDemo.d.ts +0 -34
- package/dist/components/demos/DestinationInitDemo.d.ts.map +0 -1
- package/dist/components/demos/DestinationInitDemo.js +0 -73
- package/dist/components/demos/DestinationInitDemo.js.map +0 -1
- package/dist/components/demos/DestinationInitDemo.stories.d.ts +0 -17
- package/dist/components/demos/DestinationInitDemo.stories.d.ts.map +0 -1
- package/dist/components/demos/DestinationInitDemo.stories.js +0 -39
- package/dist/components/demos/DestinationInitDemo.stories.js.map +0 -1
- package/dist/components/demos/MappingCode.d.ts +0 -34
- package/dist/components/demos/MappingCode.d.ts.map +0 -1
- package/dist/components/demos/MappingCode.js +0 -54
- package/dist/components/demos/MappingCode.js.map +0 -1
- package/dist/components/demos/MappingCode.stories.d.ts +0 -16
- package/dist/components/demos/MappingCode.stories.d.ts.map +0 -1
- package/dist/components/demos/MappingCode.stories.js +0 -42
- package/dist/components/demos/MappingCode.stories.js.map +0 -1
- package/dist/components/demos/MappingDemo.d.ts +0 -41
- package/dist/components/demos/MappingDemo.d.ts.map +0 -1
- package/dist/components/demos/MappingDemo.js +0 -62
- package/dist/components/demos/MappingDemo.js.map +0 -1
- package/dist/components/demos/MappingDemo.stories.d.ts +0 -16
- package/dist/components/demos/MappingDemo.stories.d.ts.map +0 -1
- package/dist/components/demos/MappingDemo.stories.js +0 -63
- package/dist/components/demos/MappingDemo.stories.js.map +0 -1
- package/dist/components/demos/PromotionPlayground.d.ts +0 -30
- package/dist/components/demos/PromotionPlayground.d.ts.map +0 -1
- package/dist/components/demos/PromotionPlayground.js +0 -366
- package/dist/components/demos/PromotionPlayground.js.map +0 -1
- package/dist/components/demos/PromotionPlayground.stories.d.ts +0 -27
- package/dist/components/demos/PromotionPlayground.stories.d.ts.map +0 -1
- package/dist/components/demos/PromotionPlayground.stories.js +0 -32
- package/dist/components/demos/PromotionPlayground.stories.js.map +0 -1
- package/dist/components/forms/field-registry.d.ts +0 -42
- package/dist/components/forms/field-registry.d.ts.map +0 -1
- package/dist/components/forms/field-registry.js +0 -64
- package/dist/components/forms/field-registry.js.map +0 -1
- package/dist/components/forms/mapping-form-wrapper.d.ts +0 -14
- package/dist/components/forms/mapping-form-wrapper.d.ts.map +0 -1
- package/dist/components/forms/mapping-form-wrapper.js +0 -105
- package/dist/components/forms/mapping-form-wrapper.js.map +0 -1
- package/dist/components/forms/widget-registry.d.ts +0 -42
- package/dist/components/forms/widget-registry.d.ts.map +0 -1
- package/dist/components/forms/widget-registry.js +0 -54
- package/dist/components/forms/widget-registry.js.map +0 -1
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts +0 -24
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts.map +0 -1
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.js +0 -10
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.js.map +0 -1
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts +0 -7
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts.map +0 -1
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js +0 -71
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js.map +0 -1
- package/dist/components/molecules/architecture-flow/index.d.ts +0 -3
- package/dist/components/molecules/architecture-flow/index.d.ts.map +0 -1
- package/dist/components/molecules/architecture-flow/index.js +0 -2
- package/dist/components/molecules/architecture-flow/index.js.map +0 -1
- package/dist/components/molecules/auto-select.d.ts +0 -29
- package/dist/components/molecules/auto-select.d.ts.map +0 -1
- package/dist/components/molecules/auto-select.js +0 -188
- package/dist/components/molecules/auto-select.js.map +0 -1
- package/dist/components/molecules/code-box.d.ts +0 -75
- package/dist/components/molecules/code-box.d.ts.map +0 -1
- package/dist/components/molecules/code-box.js +0 -174
- package/dist/components/molecules/code-box.js.map +0 -1
- package/dist/components/molecules/code-box.stories.d.ts +0 -87
- package/dist/components/molecules/code-box.stories.d.ts.map +0 -1
- package/dist/components/molecules/code-box.stories.js +0 -300
- package/dist/components/molecules/code-box.stories.js.map +0 -1
- package/dist/components/molecules/code-snippet.d.ts +0 -58
- package/dist/components/molecules/code-snippet.d.ts.map +0 -1
- package/dist/components/molecules/code-snippet.js +0 -72
- package/dist/components/molecules/code-snippet.js.map +0 -1
- package/dist/components/molecules/code-snippet.stories.d.ts +0 -23
- package/dist/components/molecules/code-snippet.stories.d.ts.map +0 -1
- package/dist/components/molecules/code-snippet.stories.js +0 -87
- package/dist/components/molecules/code-snippet.stories.js.map +0 -1
- package/dist/components/molecules/config-form-card.d.ts +0 -50
- package/dist/components/molecules/config-form-card.d.ts.map +0 -1
- package/dist/components/molecules/config-form-card.js +0 -30
- package/dist/components/molecules/config-form-card.js.map +0 -1
- package/dist/components/molecules/config-form-card.stories.d.ts +0 -7
- package/dist/components/molecules/config-form-card.stories.d.ts.map +0 -1
- package/dist/components/molecules/config-form-card.stories.js +0 -21
- package/dist/components/molecules/config-form-card.stories.js.map +0 -1
- package/dist/components/molecules/config-overview-pane.d.ts +0 -44
- package/dist/components/molecules/config-overview-pane.d.ts.map +0 -1
- package/dist/components/molecules/config-overview-pane.js +0 -75
- package/dist/components/molecules/config-overview-pane.js.map +0 -1
- package/dist/components/molecules/config-tree-sidebar.d.ts +0 -46
- package/dist/components/molecules/config-tree-sidebar.d.ts.map +0 -1
- package/dist/components/molecules/config-tree-sidebar.js +0 -183
- package/dist/components/molecules/config-tree-sidebar.js.map +0 -1
- package/dist/components/molecules/destination-config-overview-pane.d.ts +0 -33
- package/dist/components/molecules/destination-config-overview-pane.d.ts.map +0 -1
- package/dist/components/molecules/destination-config-overview-pane.js +0 -153
- package/dist/components/molecules/destination-config-overview-pane.js.map +0 -1
- package/dist/components/molecules/dropdown.d.ts +0 -68
- package/dist/components/molecules/dropdown.d.ts.map +0 -1
- package/dist/components/molecules/dropdown.js +0 -47
- package/dist/components/molecules/dropdown.js.map +0 -1
- package/dist/components/molecules/dropdown.stories.d.ts +0 -7
- package/dist/components/molecules/dropdown.stories.d.ts.map +0 -1
- package/dist/components/molecules/dropdown.stories.js +0 -18
- package/dist/components/molecules/dropdown.stories.js.map +0 -1
- package/dist/components/molecules/flow-map/FlowMap.d.ts +0 -74
- package/dist/components/molecules/flow-map/FlowMap.d.ts.map +0 -1
- package/dist/components/molecules/flow-map/FlowMap.js +0 -1039
- package/dist/components/molecules/flow-map/FlowMap.js.map +0 -1
- package/dist/components/molecules/flow-map/FlowMap.stories.d.ts +0 -47
- package/dist/components/molecules/flow-map/FlowMap.stories.d.ts.map +0 -1
- package/dist/components/molecules/flow-map/FlowMap.stories.js +0 -355
- package/dist/components/molecules/flow-map/FlowMap.stories.js.map +0 -1
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts +0 -29
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts.map +0 -1
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js +0 -117
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js.map +0 -1
- package/dist/components/molecules/flow-map/index.d.ts +0 -3
- package/dist/components/molecules/flow-map/index.d.ts.map +0 -1
- package/dist/components/molecules/flow-map/index.js +0 -2
- package/dist/components/molecules/flow-map/index.js.map +0 -1
- package/dist/components/molecules/flow-selector.d.ts +0 -19
- package/dist/components/molecules/flow-selector.d.ts.map +0 -1
- package/dist/components/molecules/flow-selector.js +0 -26
- package/dist/components/molecules/flow-selector.js.map +0 -1
- package/dist/components/molecules/flow-selector.stories.d.ts +0 -28
- package/dist/components/molecules/flow-selector.stories.d.ts.map +0 -1
- package/dist/components/molecules/flow-selector.stories.js +0 -66
- package/dist/components/molecules/flow-selector.stories.js.map +0 -1
- package/dist/components/molecules/form-card.d.ts +0 -28
- package/dist/components/molecules/form-card.d.ts.map +0 -1
- package/dist/components/molecules/form-card.js +0 -16
- package/dist/components/molecules/form-card.js.map +0 -1
- package/dist/components/molecules/form-card.stories.d.ts +0 -7
- package/dist/components/molecules/form-card.stories.d.ts.map +0 -1
- package/dist/components/molecules/form-card.stories.js +0 -16
- package/dist/components/molecules/form-card.stories.js.map +0 -1
- package/dist/components/molecules/mapping-batch-pane-view.d.ts +0 -22
- package/dist/components/molecules/mapping-batch-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-batch-pane-view.js +0 -45
- package/dist/components/molecules/mapping-batch-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-boolean-pane-view.d.ts +0 -28
- package/dist/components/molecules/mapping-boolean-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-boolean-pane-view.js +0 -34
- package/dist/components/molecules/mapping-boolean-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-condition-pane-view.d.ts +0 -18
- package/dist/components/molecules/mapping-condition-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-condition-pane-view.js +0 -63
- package/dist/components/molecules/mapping-condition-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-consent-pane-view.d.ts +0 -16
- package/dist/components/molecules/mapping-consent-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-consent-pane-view.js +0 -65
- package/dist/components/molecules/mapping-consent-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-consent-row.d.ts +0 -29
- package/dist/components/molecules/mapping-consent-row.d.ts.map +0 -1
- package/dist/components/molecules/mapping-consent-row.js +0 -26
- package/dist/components/molecules/mapping-consent-row.js.map +0 -1
- package/dist/components/molecules/mapping-entity-pane.d.ts +0 -17
- package/dist/components/molecules/mapping-entity-pane.d.ts.map +0 -1
- package/dist/components/molecules/mapping-entity-pane.js +0 -68
- package/dist/components/molecules/mapping-entity-pane.js.map +0 -1
- package/dist/components/molecules/mapping-enum-pane-view.d.ts +0 -40
- package/dist/components/molecules/mapping-enum-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-enum-pane-view.js +0 -32
- package/dist/components/molecules/mapping-enum-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-fn-pane-view.d.ts +0 -18
- package/dist/components/molecules/mapping-fn-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-fn-pane-view.js +0 -77
- package/dist/components/molecules/mapping-fn-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-function-pane-base.d.ts +0 -53
- package/dist/components/molecules/mapping-function-pane-base.d.ts.map +0 -1
- package/dist/components/molecules/mapping-function-pane-base.js +0 -60
- package/dist/components/molecules/mapping-function-pane-base.js.map +0 -1
- package/dist/components/molecules/mapping-key-pane-view.d.ts +0 -23
- package/dist/components/molecules/mapping-key-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-key-pane-view.js +0 -12
- package/dist/components/molecules/mapping-key-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-loop-field.d.ts +0 -44
- package/dist/components/molecules/mapping-loop-field.d.ts.map +0 -1
- package/dist/components/molecules/mapping-loop-field.js +0 -133
- package/dist/components/molecules/mapping-loop-field.js.map +0 -1
- package/dist/components/molecules/mapping-loop-pane-view.d.ts +0 -28
- package/dist/components/molecules/mapping-loop-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-loop-pane-view.js +0 -44
- package/dist/components/molecules/mapping-loop-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-map-field.d.ts +0 -31
- package/dist/components/molecules/mapping-map-field.d.ts.map +0 -1
- package/dist/components/molecules/mapping-map-field.js +0 -120
- package/dist/components/molecules/mapping-map-field.js.map +0 -1
- package/dist/components/molecules/mapping-map-overview.d.ts +0 -13
- package/dist/components/molecules/mapping-map-overview.d.ts.map +0 -1
- package/dist/components/molecules/mapping-map-overview.js +0 -58
- package/dist/components/molecules/mapping-map-overview.js.map +0 -1
- package/dist/components/molecules/mapping-map-pane-view-rjsf.d.ts +0 -53
- package/dist/components/molecules/mapping-map-pane-view-rjsf.d.ts.map +0 -1
- package/dist/components/molecules/mapping-map-pane-view-rjsf.js +0 -127
- package/dist/components/molecules/mapping-map-pane-view-rjsf.js.map +0 -1
- package/dist/components/molecules/mapping-name-pane-view.d.ts +0 -22
- package/dist/components/molecules/mapping-name-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-name-pane-view.js +0 -38
- package/dist/components/molecules/mapping-name-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-navigation-header.d.ts +0 -27
- package/dist/components/molecules/mapping-navigation-header.d.ts.map +0 -1
- package/dist/components/molecules/mapping-navigation-header.js +0 -7
- package/dist/components/molecules/mapping-navigation-header.js.map +0 -1
- package/dist/components/molecules/mapping-overview-pane.d.ts +0 -14
- package/dist/components/molecules/mapping-overview-pane.d.ts.map +0 -1
- package/dist/components/molecules/mapping-overview-pane.js +0 -60
- package/dist/components/molecules/mapping-overview-pane.js.map +0 -1
- package/dist/components/molecules/mapping-pane.d.ts +0 -52
- package/dist/components/molecules/mapping-pane.d.ts.map +0 -1
- package/dist/components/molecules/mapping-pane.js +0 -155
- package/dist/components/molecules/mapping-pane.js.map +0 -1
- package/dist/components/molecules/mapping-policy-overview-pane.d.ts +0 -26
- package/dist/components/molecules/mapping-policy-overview-pane.d.ts.map +0 -1
- package/dist/components/molecules/mapping-policy-overview-pane.js +0 -69
- package/dist/components/molecules/mapping-policy-overview-pane.js.map +0 -1
- package/dist/components/molecules/mapping-primitive-pane-view.d.ts +0 -30
- package/dist/components/molecules/mapping-primitive-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-primitive-pane-view.js +0 -43
- package/dist/components/molecules/mapping-primitive-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-rule-pane-view.d.ts +0 -25
- package/dist/components/molecules/mapping-rule-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-rule-pane-view.js +0 -35
- package/dist/components/molecules/mapping-rule-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-set-field.d.ts +0 -34
- package/dist/components/molecules/mapping-set-field.d.ts.map +0 -1
- package/dist/components/molecules/mapping-set-field.js +0 -160
- package/dist/components/molecules/mapping-set-field.js.map +0 -1
- package/dist/components/molecules/mapping-set-pane-view.d.ts +0 -31
- package/dist/components/molecules/mapping-set-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-set-pane-view.js +0 -96
- package/dist/components/molecules/mapping-set-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-tab-bar.d.ts +0 -15
- package/dist/components/molecules/mapping-tab-bar.d.ts.map +0 -1
- package/dist/components/molecules/mapping-tab-bar.js +0 -9
- package/dist/components/molecules/mapping-tab-bar.js.map +0 -1
- package/dist/components/molecules/mapping-tree-sidebar.d.ts +0 -59
- package/dist/components/molecules/mapping-tree-sidebar.d.ts.map +0 -1
- package/dist/components/molecules/mapping-tree-sidebar.js +0 -491
- package/dist/components/molecules/mapping-tree-sidebar.js.map +0 -1
- package/dist/components/molecules/mapping-type-grid.d.ts +0 -12
- package/dist/components/molecules/mapping-type-grid.d.ts.map +0 -1
- package/dist/components/molecules/mapping-type-grid.js +0 -107
- package/dist/components/molecules/mapping-type-grid.js.map +0 -1
- package/dist/components/molecules/mapping-type-selector.d.ts +0 -21
- package/dist/components/molecules/mapping-type-selector.d.ts.map +0 -1
- package/dist/components/molecules/mapping-type-selector.js +0 -38
- package/dist/components/molecules/mapping-type-selector.js.map +0 -1
- package/dist/components/molecules/mapping-validate-pane-view.d.ts +0 -19
- package/dist/components/molecules/mapping-validate-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-validate-pane-view.js +0 -66
- package/dist/components/molecules/mapping-validate-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-value-config-pane-view.d.ts +0 -30
- package/dist/components/molecules/mapping-value-config-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-value-config-pane-view.js +0 -105
- package/dist/components/molecules/mapping-value-config-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-value-pane-view.d.ts +0 -28
- package/dist/components/molecules/mapping-value-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-value-pane-view.js +0 -40
- package/dist/components/molecules/mapping-value-pane-view.js.map +0 -1
- package/dist/components/molecules/mapping-value-type-pane-view.d.ts +0 -27
- package/dist/components/molecules/mapping-value-type-pane-view.d.ts.map +0 -1
- package/dist/components/molecules/mapping-value-type-pane-view.js +0 -253
- package/dist/components/molecules/mapping-value-type-pane-view.js.map +0 -1
- package/dist/components/molecules/options-pane.d.ts +0 -28
- package/dist/components/molecules/options-pane.d.ts.map +0 -1
- package/dist/components/molecules/options-pane.js +0 -80
- package/dist/components/molecules/options-pane.js.map +0 -1
- package/dist/components/molecules/preview.d.ts +0 -23
- package/dist/components/molecules/preview.d.ts.map +0 -1
- package/dist/components/molecules/preview.js +0 -232
- package/dist/components/molecules/preview.js.map +0 -1
- package/dist/components/molecules/preview.stories.d.ts +0 -23
- package/dist/components/molecules/preview.stories.d.ts.map +0 -1
- package/dist/components/molecules/preview.stories.js +0 -186
- package/dist/components/molecules/preview.stories.js.map +0 -1
- package/dist/components/molecules/property-suggestions.d.ts +0 -17
- package/dist/components/molecules/property-suggestions.d.ts.map +0 -1
- package/dist/components/molecules/property-suggestions.js +0 -56
- package/dist/components/molecules/property-suggestions.js.map +0 -1
- package/dist/components/molecules/property-table.d.ts +0 -7
- package/dist/components/molecules/property-table.d.ts.map +0 -1
- package/dist/components/molecules/property-table.js +0 -88
- package/dist/components/molecules/property-table.js.map +0 -1
- package/dist/components/molecules/property-table.stories.d.ts +0 -24
- package/dist/components/molecules/property-table.stories.d.ts.map +0 -1
- package/dist/components/molecules/property-table.stories.js +0 -86
- package/dist/components/molecules/property-table.stories.js.map +0 -1
- package/dist/components/molecules/settings-overview-pane.d.ts +0 -32
- package/dist/components/molecules/settings-overview-pane.d.ts.map +0 -1
- package/dist/components/molecules/settings-overview-pane.js +0 -85
- package/dist/components/molecules/settings-overview-pane.js.map +0 -1
- package/dist/components/molecules/split-button.d.ts +0 -25
- package/dist/components/molecules/split-button.d.ts.map +0 -1
- package/dist/components/molecules/split-button.js +0 -37
- package/dist/components/molecules/split-button.js.map +0 -1
- package/dist/components/molecules/split-button.stories.d.ts +0 -32
- package/dist/components/molecules/split-button.stories.d.ts.map +0 -1
- package/dist/components/molecules/split-button.stories.js +0 -88
- package/dist/components/molecules/split-button.stories.js.map +0 -1
- package/dist/components/molecules/validation-overview-pane.d.ts +0 -27
- package/dist/components/molecules/validation-overview-pane.d.ts.map +0 -1
- package/dist/components/molecules/validation-overview-pane.js +0 -50
- package/dist/components/molecules/validation-overview-pane.js.map +0 -1
- package/dist/components/organisms/browser-box.d.ts +0 -31
- package/dist/components/organisms/browser-box.d.ts.map +0 -1
- package/dist/components/organisms/browser-box.js +0 -80
- package/dist/components/organisms/browser-box.js.map +0 -1
- package/dist/components/organisms/browser-box.stories.d.ts +0 -26
- package/dist/components/organisms/browser-box.stories.d.ts.map +0 -1
- package/dist/components/organisms/browser-box.stories.js +0 -102
- package/dist/components/organisms/browser-box.stories.js.map +0 -1
- package/dist/components/organisms/collector-box.d.ts +0 -24
- package/dist/components/organisms/collector-box.d.ts.map +0 -1
- package/dist/components/organisms/collector-box.js +0 -56
- package/dist/components/organisms/collector-box.js.map +0 -1
- package/dist/components/organisms/collector-box.stories.d.ts +0 -22
- package/dist/components/organisms/collector-box.stories.d.ts.map +0 -1
- package/dist/components/organisms/collector-box.stories.js +0 -59
- package/dist/components/organisms/collector-box.stories.js.map +0 -1
- package/dist/components/organisms/config-editor/config-editor-box.d.ts +0 -35
- package/dist/components/organisms/config-editor/config-editor-box.d.ts.map +0 -1
- package/dist/components/organisms/config-editor/config-editor-box.js +0 -50
- package/dist/components/organisms/config-editor/config-editor-box.js.map +0 -1
- package/dist/components/organisms/config-editor/config-editor-tabs.d.ts +0 -52
- package/dist/components/organisms/config-editor/config-editor-tabs.d.ts.map +0 -1
- package/dist/components/organisms/config-editor/config-editor-tabs.js +0 -127
- package/dist/components/organisms/config-editor/config-editor-tabs.js.map +0 -1
- package/dist/components/organisms/config-editor/config-editor.d.ts +0 -47
- package/dist/components/organisms/config-editor/config-editor.d.ts.map +0 -1
- package/dist/components/organisms/config-editor/config-editor.js +0 -50
- package/dist/components/organisms/config-editor/config-editor.js.map +0 -1
- package/dist/components/organisms/config-editor/config-editor.stories.d.ts +0 -25
- package/dist/components/organisms/config-editor/config-editor.stories.d.ts.map +0 -1
- package/dist/components/organisms/config-editor/config-editor.stories.js +0 -77
- package/dist/components/organisms/config-editor/config-editor.stories.js.map +0 -1
- package/dist/components/organisms/config-editor/index.d.ts +0 -22
- package/dist/components/organisms/config-editor/index.d.ts.map +0 -1
- package/dist/components/organisms/config-editor/index.js +0 -20
- package/dist/components/organisms/config-editor/index.js.map +0 -1
- package/dist/components/organisms/live-code.d.ts +0 -22
- package/dist/components/organisms/live-code.d.ts.map +0 -1
- package/dist/components/organisms/live-code.js +0 -50
- package/dist/components/organisms/live-code.js.map +0 -1
- package/dist/components/organisms/live-code.stories.d.ts +0 -24
- package/dist/components/organisms/live-code.stories.d.ts.map +0 -1
- package/dist/components/organisms/live-code.stories.js +0 -55
- package/dist/components/organisms/live-code.stories.js.map +0 -1
- package/dist/components/ui/button.d.ts +0 -4
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/button.js +0 -6
- package/dist/components/ui/button.js.map +0 -1
- package/dist/components/ui/icon.d.ts +0 -5
- package/dist/components/ui/icon.d.ts.map +0 -1
- package/dist/components/ui/icon.js +0 -5
- package/dist/components/ui/icon.js.map +0 -1
- package/dist/components/ui/label.d.ts +0 -5
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/label.js +0 -5
- package/dist/components/ui/label.js.map +0 -1
- package/dist/contexts/GridHeightContext.d.ts +0 -11
- package/dist/contexts/GridHeightContext.d.ts.map +0 -1
- package/dist/contexts/GridHeightContext.js +0 -14
- package/dist/contexts/GridHeightContext.js.map +0 -1
- package/dist/helpers/capture.d.ts +0 -83
- package/dist/helpers/capture.d.ts.map +0 -1
- package/dist/helpers/capture.js +0 -125
- package/dist/helpers/capture.js.map +0 -1
- package/dist/helpers/destinations.d.ts +0 -21
- package/dist/helpers/destinations.d.ts.map +0 -1
- package/dist/helpers/destinations.js +0 -46
- package/dist/helpers/destinations.js.map +0 -1
- package/dist/hooks/useDropdown.d.ts +0 -34
- package/dist/hooks/useDropdown.d.ts.map +0 -1
- package/dist/hooks/useDropdown.js +0 -66
- package/dist/hooks/useDropdown.js.map +0 -1
- package/dist/hooks/useMappingNavigation.d.ts +0 -62
- package/dist/hooks/useMappingNavigation.d.ts.map +0 -1
- package/dist/hooks/useMappingNavigation.js +0 -339
- package/dist/hooks/useMappingNavigation.js.map +0 -1
- package/dist/hooks/useMappingState.d.ts +0 -56
- package/dist/hooks/useMappingState.d.ts.map +0 -1
- package/dist/hooks/useMappingState.js +0 -142
- package/dist/hooks/useMappingState.js.map +0 -1
- package/dist/hooks/useMonacoHeight.d.ts +0 -31
- package/dist/hooks/useMonacoHeight.d.ts.map +0 -1
- package/dist/hooks/useMonacoHeight.js +0 -83
- package/dist/hooks/useMonacoHeight.js.map +0 -1
- package/dist/hooks/useTreeState.d.ts +0 -32
- package/dist/hooks/useTreeState.d.ts.map +0 -1
- package/dist/hooks/useTreeState.js +0 -94
- package/dist/hooks/useTreeState.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/utils.d.ts +0 -7
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -10
- package/dist/lib/utils.js.map +0 -1
- package/dist/monaco-types-ZGWM2633.mjs +0 -34
- package/dist/monaco-types-ZGWM2633.mjs.map +0 -1
- package/dist/providers/MDXProvider.d.ts +0 -40
- package/dist/providers/MDXProvider.d.ts.map +0 -1
- package/dist/providers/MDXProvider.js +0 -57
- package/dist/providers/MDXProvider.js.map +0 -1
- package/dist/schemas/config-structures/destination-config.d.ts +0 -27
- package/dist/schemas/config-structures/destination-config.d.ts.map +0 -1
- package/dist/schemas/config-structures/destination-config.js +0 -104
- package/dist/schemas/config-structures/destination-config.js.map +0 -1
- package/dist/schemas/config-structures/index.d.ts +0 -17
- package/dist/schemas/config-structures/index.d.ts.map +0 -1
- package/dist/schemas/config-structures/index.js +0 -17
- package/dist/schemas/config-structures/index.js.map +0 -1
- package/dist/schemas/config-structures/mapping-rule.d.ts +0 -17
- package/dist/schemas/config-structures/mapping-rule.d.ts.map +0 -1
- package/dist/schemas/config-structures/mapping-rule.js +0 -81
- package/dist/schemas/config-structures/mapping-rule.js.map +0 -1
- package/dist/schemas/config-structures/types.d.ts +0 -62
- package/dist/schemas/config-structures/types.d.ts.map +0 -1
- package/dist/schemas/config-structures/types.js +0 -2
- package/dist/schemas/config-structures/types.js.map +0 -1
- package/dist/schemas/mapping-rule-schema.d.ts +0 -25
- package/dist/schemas/mapping-rule-schema.d.ts.map +0 -1
- package/dist/schemas/mapping-rule-schema.js +0 -86
- package/dist/schemas/mapping-rule-schema.js.map +0 -1
- package/dist/schemas/rule-properties-schema.d.ts +0 -42
- package/dist/schemas/rule-properties-schema.d.ts.map +0 -1
- package/dist/schemas/rule-properties-schema.js +0 -79
- package/dist/schemas/rule-properties-schema.js.map +0 -1
- package/dist/schemas/value-config-schema.d.ts +0 -36
- package/dist/schemas/value-config-schema.d.ts.map +0 -1
- package/dist/schemas/value-config-schema.js +0 -227
- package/dist/schemas/value-config-schema.js.map +0 -1
- package/dist/themes/index.d.ts +0 -23
- package/dist/themes/index.d.ts.map +0 -1
- package/dist/themes/index.js +0 -29
- package/dist/themes/index.js.map +0 -1
- package/dist/themes/lighthouse.d.ts +0 -26
- package/dist/themes/lighthouse.d.ts.map +0 -1
- package/dist/themes/lighthouse.js +0 -230
- package/dist/themes/lighthouse.js.map +0 -1
- package/dist/themes/palenight.d.ts +0 -31
- package/dist/themes/palenight.d.ts.map +0 -1
- package/dist/themes/palenight.js +0 -236
- package/dist/themes/palenight.js.map +0 -1
- package/dist/themes/types.d.ts +0 -103
- package/dist/themes/types.d.ts.map +0 -1
- package/dist/themes/types.js +0 -8
- package/dist/themes/types.js.map +0 -1
- package/dist/types/intellisense.d.ts +0 -31
- package/dist/types/intellisense.d.ts.map +0 -1
- package/dist/types/intellisense.js +0 -2
- package/dist/types/intellisense.js.map +0 -1
- package/dist/types/schemas.d.ts +0 -29
- package/dist/types/schemas.d.ts.map +0 -1
- package/dist/types/schemas.js +0 -2
- package/dist/types/schemas.js.map +0 -1
- package/dist/utils/clean-form-data.d.ts +0 -26
- package/dist/utils/clean-form-data.d.ts.map +0 -1
- package/dist/utils/clean-form-data.js +0 -76
- package/dist/utils/clean-form-data.js.map +0 -1
- package/dist/utils/code-normalizer.d.ts +0 -11
- package/dist/utils/code-normalizer.d.ts.map +0 -1
- package/dist/utils/code-normalizer.js +0 -21
- package/dist/utils/code-normalizer.js.map +0 -1
- package/dist/utils/config-validator.d.ts +0 -12
- package/dist/utils/config-validator.d.ts.map +0 -1
- package/dist/utils/config-validator.js +0 -10
- package/dist/utils/config-validator.js.map +0 -1
- package/dist/utils/consent-scanner.d.ts +0 -19
- package/dist/utils/consent-scanner.d.ts.map +0 -1
- package/dist/utils/consent-scanner.js +0 -115
- package/dist/utils/consent-scanner.js.map +0 -1
- package/dist/utils/format-code.d.ts +0 -9
- package/dist/utils/format-code.d.ts.map +0 -1
- package/dist/utils/format-code.js +0 -77
- package/dist/utils/format-code.js.map +0 -1
- package/dist/utils/generic-tree-builder.d.ts +0 -37
- package/dist/utils/generic-tree-builder.d.ts.map +0 -1
- package/dist/utils/generic-tree-builder.js +0 -225
- package/dist/utils/generic-tree-builder.js.map +0 -1
- package/dist/utils/mapping-path.d.ts +0 -146
- package/dist/utils/mapping-path.d.ts.map +0 -1
- package/dist/utils/mapping-path.js +0 -271
- package/dist/utils/mapping-path.js.map +0 -1
- package/dist/utils/monaco-context-types.d.ts +0 -39
- package/dist/utils/monaco-context-types.d.ts.map +0 -1
- package/dist/utils/monaco-context-types.js +0 -426
- package/dist/utils/monaco-context-types.js.map +0 -1
- package/dist/utils/monaco-decorators.d.ts +0 -17
- package/dist/utils/monaco-decorators.d.ts.map +0 -1
- package/dist/utils/monaco-decorators.js +0 -81
- package/dist/utils/monaco-decorators.js.map +0 -1
- package/dist/utils/monaco-formatters.d.ts +0 -16
- package/dist/utils/monaco-formatters.d.ts.map +0 -1
- package/dist/utils/monaco-formatters.js +0 -139
- package/dist/utils/monaco-formatters.js.map +0 -1
- package/dist/utils/monaco-intellisense-flow-extractor.d.ts +0 -13
- package/dist/utils/monaco-intellisense-flow-extractor.d.ts.map +0 -1
- package/dist/utils/monaco-intellisense-flow-extractor.js +0 -161
- package/dist/utils/monaco-intellisense-flow-extractor.js.map +0 -1
- package/dist/utils/monaco-json-schema.d.ts +0 -45
- package/dist/utils/monaco-json-schema.d.ts.map +0 -1
- package/dist/utils/monaco-json-schema.js +0 -90
- package/dist/utils/monaco-json-schema.js.map +0 -1
- package/dist/utils/monaco-schema-contract.d.ts +0 -8
- package/dist/utils/monaco-schema-contract.d.ts.map +0 -1
- package/dist/utils/monaco-schema-contract.js +0 -73
- package/dist/utils/monaco-schema-contract.js.map +0 -1
- package/dist/utils/monaco-schema-enrichment.d.ts +0 -26
- package/dist/utils/monaco-schema-enrichment.d.ts.map +0 -1
- package/dist/utils/monaco-schema-enrichment.js +0 -31
- package/dist/utils/monaco-schema-enrichment.js.map +0 -1
- package/dist/utils/monaco-schema-flow-setup.d.ts +0 -10
- package/dist/utils/monaco-schema-flow-setup.d.ts.map +0 -1
- package/dist/utils/monaco-schema-flow-setup.js +0 -201
- package/dist/utils/monaco-schema-flow-setup.js.map +0 -1
- package/dist/utils/monaco-schema-variables.d.ts +0 -4
- package/dist/utils/monaco-schema-variables.d.ts.map +0 -1
- package/dist/utils/monaco-schema-variables.js +0 -26
- package/dist/utils/monaco-schema-variables.js.map +0 -1
- package/dist/utils/monaco-types.d.ts +0 -174
- package/dist/utils/monaco-types.d.ts.map +0 -1
- package/dist/utils/monaco-types.js +0 -378
- package/dist/utils/monaco-types.js.map +0 -1
- package/dist/utils/monaco-walkeros-completions.d.ts +0 -15
- package/dist/utils/monaco-walkeros-completions.d.ts.map +0 -1
- package/dist/utils/monaco-walkeros-completions.js +0 -65
- package/dist/utils/monaco-walkeros-completions.js.map +0 -1
- package/dist/utils/monaco-walkeros-decorations.d.ts +0 -29
- package/dist/utils/monaco-walkeros-decorations.d.ts.map +0 -1
- package/dist/utils/monaco-walkeros-decorations.js +0 -87
- package/dist/utils/monaco-walkeros-decorations.js.map +0 -1
- package/dist/utils/monaco-walkeros-markers.d.ts +0 -13
- package/dist/utils/monaco-walkeros-markers.d.ts.map +0 -1
- package/dist/utils/monaco-walkeros-markers.js +0 -69
- package/dist/utils/monaco-walkeros-markers.js.map +0 -1
- package/dist/utils/monaco-walkeros-providers.d.ts +0 -19
- package/dist/utils/monaco-walkeros-providers.d.ts.map +0 -1
- package/dist/utils/monaco-walkeros-providers.js +0 -229
- package/dist/utils/monaco-walkeros-providers.js.map +0 -1
- package/dist/utils/path-analyzer.d.ts +0 -88
- package/dist/utils/path-analyzer.d.ts.map +0 -1
- package/dist/utils/path-analyzer.js +0 -215
- package/dist/utils/path-analyzer.js.map +0 -1
- package/dist/utils/schema-validation.d.ts +0 -36
- package/dist/utils/schema-validation.d.ts.map +0 -1
- package/dist/utils/schema-validation.js +0 -136
- package/dist/utils/schema-validation.js.map +0 -1
- package/dist/utils/type-detector.d.ts +0 -35
- package/dist/utils/type-detector.d.ts.map +0 -1
- package/dist/utils/type-detector.js +0 -241
- package/dist/utils/type-detector.js.map +0 -1
- package/dist/utils/value-display-formatter.d.ts +0 -31
- package/dist/utils/value-display-formatter.d.ts.map +0 -1
- package/dist/utils/value-display-formatter.js +0 -110
- package/dist/utils/value-display-formatter.js.map +0 -1
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import { useState, useCallback } from 'react';
|
|
2
|
-
import { buildBreadcrumbSegments, getParentPath, getValueAtPath, } from '../utils/mapping-path';
|
|
3
|
-
import { detectNodeType } from '../utils/type-detector';
|
|
4
|
-
/**
|
|
5
|
-
* Navigation state for tab-based mapping editor
|
|
6
|
-
*
|
|
7
|
-
* Manages:
|
|
8
|
-
* - Open tabs with their paths and types
|
|
9
|
-
* - Active tab selection
|
|
10
|
-
* - Breadcrumb generation
|
|
11
|
-
* - Tree sidebar visibility
|
|
12
|
-
* - Tab opening/closing logic
|
|
13
|
-
*
|
|
14
|
-
* This hook is UI-agnostic - it only manages navigation state,
|
|
15
|
-
* not how tabs are rendered.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* const navigation = useMappingNavigation({
|
|
19
|
-
* config: myConfig,
|
|
20
|
-
* structure: MY_STRUCTURE,
|
|
21
|
-
* schemas: mySchemas,
|
|
22
|
-
* });
|
|
23
|
-
*
|
|
24
|
-
* // Open a new tab
|
|
25
|
-
* navigation.openTab(['product', 'view', 'data'], 'valueConfig');
|
|
26
|
-
*
|
|
27
|
-
* // Switch tabs
|
|
28
|
-
* navigation.switchToTab(tabId);
|
|
29
|
-
*
|
|
30
|
-
* // Close current level
|
|
31
|
-
* navigation.closeLevel(); // Closes current tab and goes to parent
|
|
32
|
-
*/
|
|
33
|
-
const MAX_HISTORY_LENGTH = 50;
|
|
34
|
-
export function useMappingNavigation(params) {
|
|
35
|
-
const { config, structure, schemas } = params;
|
|
36
|
-
const [openTabs, setOpenTabs] = useState([]);
|
|
37
|
-
const [activeTabId, setActiveTabId] = useState('');
|
|
38
|
-
const [treeVisible, setTreeVisible] = useState(true);
|
|
39
|
-
const [navigationHistory, setNavigationHistory] = useState([]);
|
|
40
|
-
/**
|
|
41
|
-
* Generate unique tab ID from path
|
|
42
|
-
*/
|
|
43
|
-
const generateTabId = useCallback((path) => {
|
|
44
|
-
return path.join('.');
|
|
45
|
-
}, []);
|
|
46
|
-
/**
|
|
47
|
-
* Generate human-readable label from path
|
|
48
|
-
*/
|
|
49
|
-
const generateLabel = useCallback((path, nodeType) => {
|
|
50
|
-
if (path.length === 0)
|
|
51
|
-
return 'Overview';
|
|
52
|
-
// For rules, use "entity action" format
|
|
53
|
-
if (path.length === 2 && nodeType === 'rule') {
|
|
54
|
-
return `${path[0]} ${path[1]}`;
|
|
55
|
-
}
|
|
56
|
-
// For nested properties, use last segment capitalized
|
|
57
|
-
const lastSegment = path[path.length - 1];
|
|
58
|
-
return lastSegment.charAt(0).toUpperCase() + lastSegment.slice(1);
|
|
59
|
-
}, []);
|
|
60
|
-
/**
|
|
61
|
-
* Find tab by ID
|
|
62
|
-
*/
|
|
63
|
-
const findTab = useCallback((tabId) => {
|
|
64
|
-
return openTabs.find((tab) => tab.id === tabId);
|
|
65
|
-
}, [openTabs]);
|
|
66
|
-
/**
|
|
67
|
-
* Check if tab exists
|
|
68
|
-
*/
|
|
69
|
-
const hasTab = useCallback((path) => {
|
|
70
|
-
const tabId = generateTabId(path);
|
|
71
|
-
return openTabs.some((tab) => tab.id === tabId);
|
|
72
|
-
}, [openTabs, generateTabId]);
|
|
73
|
-
/**
|
|
74
|
-
* Open new tab or switch to existing one
|
|
75
|
-
*/
|
|
76
|
-
const openTab = useCallback((path, nodeType) => {
|
|
77
|
-
const tabId = generateTabId(path);
|
|
78
|
-
// Check if tab exists and add/update if needed
|
|
79
|
-
setOpenTabs((prev) => {
|
|
80
|
-
const existingTab = prev.find((t) => t.id === tabId);
|
|
81
|
-
if (existingTab) {
|
|
82
|
-
// Update nodeType if it differs (allows refining type detection)
|
|
83
|
-
if (existingTab.nodeType !== nodeType) {
|
|
84
|
-
return prev.map((t) => (t.id === tabId ? { ...t, nodeType } : t));
|
|
85
|
-
}
|
|
86
|
-
return prev; // No change needed
|
|
87
|
-
}
|
|
88
|
-
// Create and add new tab
|
|
89
|
-
const newTab = {
|
|
90
|
-
id: tabId,
|
|
91
|
-
path,
|
|
92
|
-
nodeType,
|
|
93
|
-
label: generateLabel(path, nodeType),
|
|
94
|
-
};
|
|
95
|
-
return [...prev, newTab];
|
|
96
|
-
});
|
|
97
|
-
// Add to navigation history (only if switching to different tab)
|
|
98
|
-
setNavigationHistory((prev) => {
|
|
99
|
-
// Don't add if it's the same as current active tab
|
|
100
|
-
if (prev.length > 0 && prev[prev.length - 1] === tabId) {
|
|
101
|
-
return prev;
|
|
102
|
-
}
|
|
103
|
-
// Add and limit to MAX_HISTORY_LENGTH
|
|
104
|
-
const newHistory = [...prev, tabId];
|
|
105
|
-
if (newHistory.length > MAX_HISTORY_LENGTH) {
|
|
106
|
-
return newHistory.slice(-MAX_HISTORY_LENGTH);
|
|
107
|
-
}
|
|
108
|
-
return newHistory;
|
|
109
|
-
});
|
|
110
|
-
// Always set as active (separate state update)
|
|
111
|
-
setActiveTabId(tabId);
|
|
112
|
-
}, [generateTabId, generateLabel]);
|
|
113
|
-
/**
|
|
114
|
-
* Switch to existing tab
|
|
115
|
-
*/
|
|
116
|
-
const switchToTab = useCallback((tabId) => {
|
|
117
|
-
// Add to navigation history when switching tabs
|
|
118
|
-
setNavigationHistory((prev) => {
|
|
119
|
-
// Don't add if it's the same as current active tab
|
|
120
|
-
if (prev.length > 0 && prev[prev.length - 1] === tabId) {
|
|
121
|
-
return prev;
|
|
122
|
-
}
|
|
123
|
-
// Add and limit to MAX_HISTORY_LENGTH
|
|
124
|
-
const newHistory = [...prev, tabId];
|
|
125
|
-
if (newHistory.length > MAX_HISTORY_LENGTH) {
|
|
126
|
-
return newHistory.slice(-MAX_HISTORY_LENGTH);
|
|
127
|
-
}
|
|
128
|
-
return newHistory;
|
|
129
|
-
});
|
|
130
|
-
setActiveTabId(tabId);
|
|
131
|
-
}, []);
|
|
132
|
-
/**
|
|
133
|
-
* Close specific tab
|
|
134
|
-
*/
|
|
135
|
-
const closeTab = useCallback((tabId) => {
|
|
136
|
-
// Determine new active ID based on what's left after closing
|
|
137
|
-
let newActiveId = '';
|
|
138
|
-
setOpenTabs((prev) => {
|
|
139
|
-
const newTabs = prev.filter((tab) => tab.id !== tabId);
|
|
140
|
-
// Check if the tab being closed exists and is the last one (likely active)
|
|
141
|
-
const closingTab = prev.find((tab) => tab.id === tabId);
|
|
142
|
-
const isLastTab = closingTab && prev[prev.length - 1]?.id === tabId;
|
|
143
|
-
// If closing what's likely the active tab, switch to last remaining
|
|
144
|
-
if (isLastTab || tabId === activeTabId) {
|
|
145
|
-
if (newTabs.length > 0) {
|
|
146
|
-
newActiveId = newTabs[newTabs.length - 1].id;
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
newActiveId = '';
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
// Not closing active tab, keep current active
|
|
154
|
-
newActiveId = activeTabId;
|
|
155
|
-
}
|
|
156
|
-
return newTabs;
|
|
157
|
-
});
|
|
158
|
-
// Update active tab
|
|
159
|
-
setActiveTabId(newActiveId);
|
|
160
|
-
}, [activeTabId]);
|
|
161
|
-
/**
|
|
162
|
-
* Close current tab and return to parent
|
|
163
|
-
*
|
|
164
|
-
* If parent tab already exists, switches to it.
|
|
165
|
-
* Otherwise just closes current tab.
|
|
166
|
-
*/
|
|
167
|
-
const closeLevel = useCallback(() => {
|
|
168
|
-
if (!activeTabId)
|
|
169
|
-
return;
|
|
170
|
-
const currentActiveId = activeTabId;
|
|
171
|
-
// Determine what to do with active tab ID
|
|
172
|
-
let newActiveId = '';
|
|
173
|
-
setOpenTabs((prevTabs) => {
|
|
174
|
-
const activeTab = prevTabs.find((t) => t.id === currentActiveId);
|
|
175
|
-
if (!activeTab) {
|
|
176
|
-
newActiveId = currentActiveId; // Keep current
|
|
177
|
-
return prevTabs;
|
|
178
|
-
}
|
|
179
|
-
const parentPath = getParentPath(activeTab.path);
|
|
180
|
-
const parentId = generateTabId(parentPath);
|
|
181
|
-
// Check if parent tab exists
|
|
182
|
-
const parentTab = prevTabs.find((t) => t.id === parentId);
|
|
183
|
-
// Filter out current tab
|
|
184
|
-
const newTabs = prevTabs.filter((t) => t.id !== currentActiveId);
|
|
185
|
-
// Determine new active ID
|
|
186
|
-
if (parentTab && parentPath.length >= 2) {
|
|
187
|
-
newActiveId = parentId;
|
|
188
|
-
}
|
|
189
|
-
else if (newTabs.length > 0) {
|
|
190
|
-
newActiveId = newTabs[newTabs.length - 1].id;
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
newActiveId = '';
|
|
194
|
-
}
|
|
195
|
-
return newTabs;
|
|
196
|
-
});
|
|
197
|
-
// Update active tab (separate state update)
|
|
198
|
-
setActiveTabId(newActiveId);
|
|
199
|
-
}, [activeTabId, generateTabId]);
|
|
200
|
-
/**
|
|
201
|
-
* Close all tabs
|
|
202
|
-
*/
|
|
203
|
-
const closeAllTabs = useCallback(() => {
|
|
204
|
-
setOpenTabs([]);
|
|
205
|
-
setActiveTabId('');
|
|
206
|
-
}, []);
|
|
207
|
-
/**
|
|
208
|
-
* Get breadcrumb for active tab
|
|
209
|
-
*/
|
|
210
|
-
const getBreadcrumb = useCallback(() => {
|
|
211
|
-
const activeTab = findTab(activeTabId);
|
|
212
|
-
if (!activeTab) {
|
|
213
|
-
return [{ label: 'Overview', path: [] }];
|
|
214
|
-
}
|
|
215
|
-
return buildBreadcrumbSegments(activeTab.path);
|
|
216
|
-
}, [activeTabId, findTab]);
|
|
217
|
-
/**
|
|
218
|
-
* Navigate to breadcrumb segment
|
|
219
|
-
*/
|
|
220
|
-
const navigateToBreadcrumb = useCallback((segmentPath) => {
|
|
221
|
-
if (segmentPath.length === 0) {
|
|
222
|
-
closeAllTabs();
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
const value = getValueAtPath(config, segmentPath);
|
|
226
|
-
const nodeType = detectNodeType(value, segmentPath, structure, schemas);
|
|
227
|
-
openTab(segmentPath, nodeType);
|
|
228
|
-
}, [openTab, closeAllTabs, config, structure, schemas]);
|
|
229
|
-
/**
|
|
230
|
-
* Go back to previous tab in navigation history
|
|
231
|
-
*
|
|
232
|
-
* Validates that the previous tab still exists before navigating.
|
|
233
|
-
* If deleted, keeps going back until a valid tab is found.
|
|
234
|
-
* If no valid history, does nothing (button will be disabled).
|
|
235
|
-
*/
|
|
236
|
-
const goBack = useCallback(() => {
|
|
237
|
-
setNavigationHistory((prevHistory) => {
|
|
238
|
-
if (prevHistory.length <= 1) {
|
|
239
|
-
// No history to go back to
|
|
240
|
-
return prevHistory;
|
|
241
|
-
}
|
|
242
|
-
// Remove current tab from history (last item)
|
|
243
|
-
let workingHistory = prevHistory.slice(0, -1);
|
|
244
|
-
let foundValidTab = false;
|
|
245
|
-
// Keep popping until we find a valid tab or run out of history
|
|
246
|
-
while (workingHistory.length > 0 && !foundValidTab) {
|
|
247
|
-
const previousTabId = workingHistory[workingHistory.length - 1];
|
|
248
|
-
// Special case: empty tab ID means Overview
|
|
249
|
-
if (previousTabId === '') {
|
|
250
|
-
setActiveTabId(''); // This will trigger Overview pane to show
|
|
251
|
-
foundValidTab = true;
|
|
252
|
-
return workingHistory;
|
|
253
|
-
}
|
|
254
|
-
const previousTab = openTabs.find((t) => t.id === previousTabId);
|
|
255
|
-
if (previousTab) {
|
|
256
|
-
// Found valid tab - switch to it
|
|
257
|
-
setActiveTabId(previousTabId);
|
|
258
|
-
foundValidTab = true;
|
|
259
|
-
return workingHistory;
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
// Tab was deleted, remove from history and try again
|
|
263
|
-
workingHistory = workingHistory.slice(0, -1);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
// No valid tabs found in history - clear history
|
|
267
|
-
return [];
|
|
268
|
-
});
|
|
269
|
-
}, [openTabs]);
|
|
270
|
-
/**
|
|
271
|
-
* Check if back navigation is available
|
|
272
|
-
*/
|
|
273
|
-
const canGoBack = useCallback(() => {
|
|
274
|
-
if (navigationHistory.length <= 1)
|
|
275
|
-
return false;
|
|
276
|
-
// Check if there's at least one valid tab in history (excluding current)
|
|
277
|
-
const historyWithoutCurrent = navigationHistory.slice(0, -1);
|
|
278
|
-
return historyWithoutCurrent.some((tabId) =>
|
|
279
|
-
// Empty tab ID (Overview) is always valid, or tab exists in openTabs
|
|
280
|
-
tabId === '' || openTabs.some((tab) => tab.id === tabId));
|
|
281
|
-
}, [navigationHistory, openTabs]);
|
|
282
|
-
/**
|
|
283
|
-
* Toggle tree visibility
|
|
284
|
-
*/
|
|
285
|
-
const toggleTree = useCallback(() => {
|
|
286
|
-
setTreeVisible((prev) => !prev);
|
|
287
|
-
}, []);
|
|
288
|
-
/**
|
|
289
|
-
* Navigate to a path using dot notation
|
|
290
|
-
*
|
|
291
|
-
* Enables deep linking by parsing a string path and opening all intermediate tabs.
|
|
292
|
-
*
|
|
293
|
-
* @param dotPath - Path in dot notation (e.g., "page.view.data.map.items.consent")
|
|
294
|
-
*
|
|
295
|
-
* @example
|
|
296
|
-
* navigation.navigateToPath('page.view.consent');
|
|
297
|
-
* // Opens: page entity → view rule → consent property
|
|
298
|
-
*
|
|
299
|
-
* @example
|
|
300
|
-
* navigation.navigateToPath('product.add.data.map.items.key');
|
|
301
|
-
* // Opens all intermediate tabs leading to the key property
|
|
302
|
-
*/
|
|
303
|
-
const navigateToPath = useCallback((dotPath) => {
|
|
304
|
-
const pathArray = dotPath.split('.').filter((s) => s.trim());
|
|
305
|
-
if (pathArray.length < 2) {
|
|
306
|
-
return;
|
|
307
|
-
}
|
|
308
|
-
for (let i = 1; i <= pathArray.length; i++) {
|
|
309
|
-
const subPath = pathArray.slice(0, i);
|
|
310
|
-
const value = getValueAtPath(config, subPath);
|
|
311
|
-
const nodeType = detectNodeType(value, subPath, structure, schemas);
|
|
312
|
-
openTab(subPath, nodeType);
|
|
313
|
-
}
|
|
314
|
-
}, [openTab, config, structure, schemas]);
|
|
315
|
-
return {
|
|
316
|
-
// State
|
|
317
|
-
openTabs,
|
|
318
|
-
activeTabId,
|
|
319
|
-
treeVisible,
|
|
320
|
-
breadcrumb: getBreadcrumb(),
|
|
321
|
-
navigationHistory,
|
|
322
|
-
// Actions
|
|
323
|
-
openTab,
|
|
324
|
-
switchToTab,
|
|
325
|
-
closeTab,
|
|
326
|
-
closeLevel,
|
|
327
|
-
closeAllTabs,
|
|
328
|
-
navigateToBreadcrumb,
|
|
329
|
-
navigateToPath,
|
|
330
|
-
toggleTree,
|
|
331
|
-
setTreeVisible,
|
|
332
|
-
goBack,
|
|
333
|
-
// Queries
|
|
334
|
-
findTab,
|
|
335
|
-
hasTab,
|
|
336
|
-
canGoBack,
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
//# sourceMappingURL=useMappingNavigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMappingNavigation.js","sourceRoot":"","sources":["../../src/hooks/useMappingNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EACL,uBAAuB,EACvB,aAAa,EACb,cAAc,GACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAA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AAE,OAAO,CAAC,CAAC;YAC9C,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;YACpE,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC,EACD,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CACtC,CAAC;IAEF,OAAO;QACL,QAAQ;QACR,QAAQ;QACR,WAAW;QACX,WAAW;QACX,UAAU,EAAE,aAAa,EAAE;QAC3B,iBAAiB;QAEjB,UAAU;QACV,OAAO;QACP,WAAW;QACX,QAAQ;QACR,UAAU;QACV,YAAY;QACZ,oBAAoB;QACpB,cAAc;QACd,UAAU;QACV,cAAc;QACd,MAAM;QAEN,UAAU;QACV,OAAO;QACP,MAAM;QACN,SAAS;KACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { Mapping } from '@walkeros/core';
|
|
2
|
-
/**
|
|
3
|
-
* Centralized mapping configuration state management
|
|
4
|
-
*
|
|
5
|
-
* This hook provides a single source of truth for the entire mapping config.
|
|
6
|
-
* All CRUD operations go through this hook, making state management predictable
|
|
7
|
-
* and testable.
|
|
8
|
-
*
|
|
9
|
-
* Features:
|
|
10
|
-
* - Path-based value access and mutation
|
|
11
|
-
* - Rule CRUD operations
|
|
12
|
-
* - Immutable updates (no direct mutations)
|
|
13
|
-
* - Change callback for external synchronization
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* const mappingState = useMappingState(initialMapping);
|
|
17
|
-
*
|
|
18
|
-
* // Read
|
|
19
|
-
* const rule = mappingState.getValueAtPath(['product', 'view']);
|
|
20
|
-
*
|
|
21
|
-
* // Update
|
|
22
|
-
* mappingState.setValueAtPath(['product', 'view', 'name'], 'view_item');
|
|
23
|
-
*
|
|
24
|
-
* // Delete
|
|
25
|
-
* mappingState.deleteRule('product', 'view');
|
|
26
|
-
*/
|
|
27
|
-
export declare function useMappingState(initialMapping: Mapping.Config, onChange?: (config: Mapping.Config) => void): {
|
|
28
|
-
config: Mapping.Config<unknown>;
|
|
29
|
-
actions: {
|
|
30
|
-
getValue: (path: string[]) => unknown;
|
|
31
|
-
setValue: (path: string[], value: unknown) => void;
|
|
32
|
-
deleteValue: (path: string[]) => void;
|
|
33
|
-
getRuleList: () => string[];
|
|
34
|
-
getRule: (entity: string, action: string) => unknown;
|
|
35
|
-
createRule: (entity: string, action: string, initialConfig?: unknown) => void;
|
|
36
|
-
deleteRule: (entity: string, action: string) => void;
|
|
37
|
-
replaceConfig: (newConfig: Mapping.Config) => void;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Return type of useMappingState hook
|
|
42
|
-
*
|
|
43
|
-
* Provides centralized mapping state management with:
|
|
44
|
-
* - config: Current mapping configuration
|
|
45
|
-
* - actions: CRUD operations for mapping state
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* const mappingState: UseMappingStateReturn = useMappingState(initialConfig);
|
|
49
|
-
*/
|
|
50
|
-
export type UseMappingStateReturn = ReturnType<typeof useMappingState>;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated Use UseMappingStateReturn instead
|
|
53
|
-
* This alias is kept for backward compatibility and will be removed in the next major version.
|
|
54
|
-
*/
|
|
55
|
-
export type MappingState = UseMappingStateReturn;
|
|
56
|
-
//# sourceMappingURL=useMappingState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMappingState.d.ts","sourceRoot":"","sources":["../../src/hooks/useMappingState.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAS9C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,eAAe,CAC7B,cAAc,EAAE,OAAO,CAAC,MAAM,EAC9B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI;;;yBA4BlC,MAAM,EAAE;yBAUR,MAAM,EAAE,SAAS,OAAO;4BAWxB,MAAM,EAAE;2BAUmB,MAAM,EAAE;0BAsBjC,MAAM,UAAU,MAAM;6BAUtB,MAAM,UAAU,MAAM,kBAAkB,OAAO;6BAmC/C,MAAM,UAAU,MAAM;mCAqBnB,OAAO,CAAC,MAAM;;EAmB7B;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAEvE;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { useState, useCallback, useRef } from 'react';
|
|
2
|
-
import { getValueAtPath, setValueAtPath, deleteAtPath, buildRulePath, } from '../utils/mapping-path';
|
|
3
|
-
/**
|
|
4
|
-
* Centralized mapping configuration state management
|
|
5
|
-
*
|
|
6
|
-
* This hook provides a single source of truth for the entire mapping config.
|
|
7
|
-
* All CRUD operations go through this hook, making state management predictable
|
|
8
|
-
* and testable.
|
|
9
|
-
*
|
|
10
|
-
* Features:
|
|
11
|
-
* - Path-based value access and mutation
|
|
12
|
-
* - Rule CRUD operations
|
|
13
|
-
* - Immutable updates (no direct mutations)
|
|
14
|
-
* - Change callback for external synchronization
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* const mappingState = useMappingState(initialMapping);
|
|
18
|
-
*
|
|
19
|
-
* // Read
|
|
20
|
-
* const rule = mappingState.getValueAtPath(['product', 'view']);
|
|
21
|
-
*
|
|
22
|
-
* // Update
|
|
23
|
-
* mappingState.setValueAtPath(['product', 'view', 'name'], 'view_item');
|
|
24
|
-
*
|
|
25
|
-
* // Delete
|
|
26
|
-
* mappingState.deleteRule('product', 'view');
|
|
27
|
-
*/
|
|
28
|
-
export function useMappingState(initialMapping, onChange) {
|
|
29
|
-
const [config, setConfig] = useState(initialMapping);
|
|
30
|
-
// Track if onChange callback is currently being fired to prevent loops
|
|
31
|
-
const isCallingOnChange = useRef(false);
|
|
32
|
-
/**
|
|
33
|
-
* Internal state updater that also triggers onChange callback
|
|
34
|
-
*/
|
|
35
|
-
const updateConfig = useCallback((newConfig) => {
|
|
36
|
-
setConfig(newConfig);
|
|
37
|
-
// Call onChange if provided and not already in callback
|
|
38
|
-
if (onChange && !isCallingOnChange.current) {
|
|
39
|
-
isCallingOnChange.current = true;
|
|
40
|
-
onChange(newConfig);
|
|
41
|
-
isCallingOnChange.current = false;
|
|
42
|
-
}
|
|
43
|
-
}, [onChange]);
|
|
44
|
-
/**
|
|
45
|
-
* Get value at path
|
|
46
|
-
*/
|
|
47
|
-
const getValue = useCallback((path) => {
|
|
48
|
-
return getValueAtPath(config, path);
|
|
49
|
-
}, [config]);
|
|
50
|
-
/**
|
|
51
|
-
* Set value at path (immutable update)
|
|
52
|
-
*/
|
|
53
|
-
const setValue = useCallback((path, value) => {
|
|
54
|
-
const newConfig = setValueAtPath(config, path, value);
|
|
55
|
-
updateConfig(newConfig);
|
|
56
|
-
}, [config, updateConfig]);
|
|
57
|
-
/**
|
|
58
|
-
* Delete value at path (immutable delete)
|
|
59
|
-
*/
|
|
60
|
-
const deleteValue = useCallback((path) => {
|
|
61
|
-
const newConfig = deleteAtPath(config, path);
|
|
62
|
-
updateConfig(newConfig);
|
|
63
|
-
}, [config, updateConfig]);
|
|
64
|
-
/**
|
|
65
|
-
* Get list of all rules in format "entity action"
|
|
66
|
-
*/
|
|
67
|
-
const getRuleList = useCallback(() => {
|
|
68
|
-
const rules = [];
|
|
69
|
-
const configRecord = config;
|
|
70
|
-
Object.keys(config).forEach((entity) => {
|
|
71
|
-
const actions = configRecord[entity];
|
|
72
|
-
if (actions && typeof actions === 'object') {
|
|
73
|
-
Object.keys(actions).forEach((action) => {
|
|
74
|
-
rules.push(buildRulePath(entity, action));
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
return rules.sort();
|
|
79
|
-
}, [config]);
|
|
80
|
-
/**
|
|
81
|
-
* Get rule configuration
|
|
82
|
-
*/
|
|
83
|
-
const getRule = useCallback((entity, action) => {
|
|
84
|
-
return getValue([entity, action]);
|
|
85
|
-
}, [getValue]);
|
|
86
|
-
/**
|
|
87
|
-
* Create new rule with default configuration
|
|
88
|
-
*/
|
|
89
|
-
const createRule = useCallback((entity, action, initialConfig) => {
|
|
90
|
-
const path = [entity, action];
|
|
91
|
-
// Check if rule already exists
|
|
92
|
-
if (getValue(path)) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
// Default config: just the name field
|
|
96
|
-
const defaultConfig = initialConfig || {
|
|
97
|
-
name: `${entity}_${action}`,
|
|
98
|
-
};
|
|
99
|
-
// Create entity object if it doesn't exist
|
|
100
|
-
let newConfig = config;
|
|
101
|
-
const configRecord = newConfig;
|
|
102
|
-
if (!configRecord[entity]) {
|
|
103
|
-
newConfig = { ...newConfig, [entity]: {} };
|
|
104
|
-
}
|
|
105
|
-
// Add the rule
|
|
106
|
-
newConfig = setValueAtPath(newConfig, path, defaultConfig);
|
|
107
|
-
updateConfig(newConfig);
|
|
108
|
-
}, [config, getValue, updateConfig]);
|
|
109
|
-
/**
|
|
110
|
-
* Delete rule
|
|
111
|
-
*/
|
|
112
|
-
const deleteRule = useCallback((entity, action) => {
|
|
113
|
-
let newConfig = deleteAtPath(config, [entity, action]);
|
|
114
|
-
// Remove entity if no actions left
|
|
115
|
-
const configRecord = newConfig;
|
|
116
|
-
const entityActions = configRecord[entity];
|
|
117
|
-
if (entityActions && Object.keys(entityActions).length === 0) {
|
|
118
|
-
newConfig = deleteAtPath(newConfig, [entity]);
|
|
119
|
-
}
|
|
120
|
-
updateConfig(newConfig);
|
|
121
|
-
}, [config, updateConfig]);
|
|
122
|
-
/**
|
|
123
|
-
* Update entire config (for external changes)
|
|
124
|
-
*/
|
|
125
|
-
const replaceConfig = useCallback((newConfig) => {
|
|
126
|
-
updateConfig(newConfig);
|
|
127
|
-
}, [updateConfig]);
|
|
128
|
-
return {
|
|
129
|
-
config,
|
|
130
|
-
actions: {
|
|
131
|
-
getValue,
|
|
132
|
-
setValue,
|
|
133
|
-
deleteValue,
|
|
134
|
-
getRuleList,
|
|
135
|
-
getRule,
|
|
136
|
-
createRule,
|
|
137
|
-
deleteRule,
|
|
138
|
-
replaceConfig,
|
|
139
|
-
},
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
//# sourceMappingURL=useMappingState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMappingState.js","sourceRoot":"","sources":["../../src/hooks/useMappingState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EACL,cAAc,EACd,cAAc,EACd,YAAY,EAEZ,aAAa,GACd,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,eAAe,CAC7B,cAA8B,EAC9B,QAA2C;IAE3C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAiB,cAAc,CAAC,CAAC;IAErE,uEAAuE;IACvE,MAAM,iBAAiB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAExC;;OAEG;IACH,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,SAAyB,EAAE,EAAE;QAC5B,SAAS,CAAC,SAAS,CAAC,CAAC;QAErB,wDAAwD;QACxD,IAAI,QAAQ,IAAI,CAAC,iBAAiB,CAAC,OAAO,EAAE,CAAC;YAC3C,iBAAiB,CAAC,OAAO,GAAG,IAAI,CAAC;YACjC,QAAQ,CAAC,SAAS,CAAC,CAAC;YACpB,iBAAiB,CAAC,OAAO,GAAG,KAAK,CAAC;QACpC,CAAC;IACH,CAAC,EACD,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF;;OAEG;IACH,MAAM,QAAQ,GAAG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E,mCAAmC;QACnC,MAAM,YAAY,GAAG,SAAoD,CAAC;QAC1E,MAAM,aAAa,GAAG,YAAY,CAAC,MAAM,CAE5B,CAAC;QACd,IAAI,aAAa,IAAI,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC7D,SAAS,GAAG,YAAY,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,CAAmB,CAAC;QAClE,CAAC;QAED,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1B,CAAC,EACD,CAAC,MAAM,EAAE,YAAY,CAAC,CACvB,CAAC;IAEF;;OAEG;IACH,MAAM,aAAa,GAAG,WAAW,CAC/B,CAAC,SAAyB,EAAE,EAAE;QAC5B,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1B,CAAC,EACD,CAAC,YAAY,CAAC,CACf,CAAC;IAEF,OAAO;QACL,MAAM;QACN,OAAO,EAAE;YACP,QAAQ;YACR,QAAQ;YACR,WAAW;YACX,WAAW;YACX,OAAO;YACP,UAAU;YACV,UAAU;YACV,aAAa;SACd;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { editor } from 'monaco-editor';
|
|
2
|
-
export interface UseMonacoHeightOptions {
|
|
3
|
-
enabled?: boolean;
|
|
4
|
-
minHeight?: number;
|
|
5
|
-
maxHeight?: number;
|
|
6
|
-
defaultHeight?: number;
|
|
7
|
-
onHeightChange?: (height: number) => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Hook to automatically calculate Monaco Editor height based on content
|
|
11
|
-
*
|
|
12
|
-
* @param enabled - Whether to enable auto-height calculation
|
|
13
|
-
* @param minHeight - Minimum height in pixels (default: 100)
|
|
14
|
-
* @param maxHeight - Maximum height in pixels (default: 800)
|
|
15
|
-
* @param defaultHeight - Default height when not auto-sizing (default: 400)
|
|
16
|
-
*
|
|
17
|
-
* @returns [height, setEditor] - Current height and function to register editor instance
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* const [height, setEditor] = useMonacoHeight({ enabled: autoHeight });
|
|
21
|
-
*
|
|
22
|
-
* <Editor
|
|
23
|
-
* height={height}
|
|
24
|
-
* onMount={(editor) => setEditor(editor)}
|
|
25
|
-
* />
|
|
26
|
-
*/
|
|
27
|
-
export declare function useMonacoHeight({ enabled, minHeight, maxHeight, defaultHeight, onHeightChange, }?: UseMonacoHeightOptions): [
|
|
28
|
-
number,
|
|
29
|
-
(editor: editor.IStandaloneCodeEditor | null) => void
|
|
30
|
-
];
|
|
31
|
-
//# sourceMappingURL=useMonacoHeight.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMonacoHeight.d.ts","sourceRoot":"","sources":["../../src/hooks/useMonacoHeight.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAe,EACf,SAAe,EACf,SAAe,EACf,aAAmB,EACnB,cAAc,GACf,GAAE,sBAA2B,GAAG;IAC/B,MAAM;IACN,CAAC,MAAM,EAAE,MAAM,CAAC,qBAAqB,GAAG,IAAI,KAAK,IAAI;CACtD,CAoFA"}
|