@walkeros/explorer 3.1.0 → 3.1.1
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/dist/index.d.ts +1338 -69
- package/dist/index.js +1 -59
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- 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/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 -39
- 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/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/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/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/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/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/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/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/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/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/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/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-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/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/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/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/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/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/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 -33
- 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/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/contract-path-walker.d.ts +0 -27
- package/dist/utils/contract-path-walker.d.ts.map +0 -1
- package/dist/utils/contract-path-walker.js +0 -145
- package/dist/utils/contract-path-walker.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/mapping-context-detector.d.ts +0 -17
- package/dist/utils/mapping-context-detector.d.ts.map +0 -1
- package/dist/utils/mapping-context-detector.js +0 -22
- package/dist/utils/mapping-context-detector.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 -168
- package/dist/utils/monaco-intellisense-flow-extractor.js.map +0 -1
- package/dist/utils/monaco-json-path.d.ts +0 -12
- package/dist/utils/monaco-json-path.d.ts.map +0 -1
- package/dist/utils/monaco-json-path.js +0 -68
- package/dist/utils/monaco-json-path.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-config.d.ts +0 -10
- package/dist/utils/monaco-schema-flow-config.d.ts.map +0 -1
- package/dist/utils/monaco-schema-flow-config.js +0 -201
- package/dist/utils/monaco-schema-flow-config.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 -23
- package/dist/utils/monaco-walkeros-completions.d.ts.map +0 -1
- package/dist/utils/monaco-walkeros-completions.js +0 -258
- 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 -284
- 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/themes/types.js
DELETED
package/dist/themes/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/themes/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export interface PackageInfo {
|
|
2
|
-
package: string;
|
|
3
|
-
shortName: string;
|
|
4
|
-
type: 'source' | 'destination' | 'transformer';
|
|
5
|
-
platform: 'web' | 'server';
|
|
6
|
-
description?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IntelliSenseContext {
|
|
9
|
-
/** Variable names and values from the flow's `variables` section */
|
|
10
|
-
variables?: Record<string, string | number | boolean>;
|
|
11
|
-
/** Definition names from the flow's `definitions` section */
|
|
12
|
-
definitions?: Record<string, unknown>;
|
|
13
|
-
/** Secret names available in the project (values are NOT included) */
|
|
14
|
-
secrets?: string[];
|
|
15
|
-
/** Step names from the current flow config, by type */
|
|
16
|
-
stepNames?: {
|
|
17
|
-
sources?: string[];
|
|
18
|
-
destinations?: string[];
|
|
19
|
-
transformers?: string[];
|
|
20
|
-
};
|
|
21
|
-
/** Contract entities and their actions */
|
|
22
|
-
contract?: Array<{
|
|
23
|
-
entity: string;
|
|
24
|
-
actions: string[];
|
|
25
|
-
}>;
|
|
26
|
-
/** Raw contract object for $contract completions and mapping hints */
|
|
27
|
-
contractRaw?: Record<string, unknown>;
|
|
28
|
-
/** Available packages for autocomplete */
|
|
29
|
-
packages?: PackageInfo[];
|
|
30
|
-
/** Current platform context (web or server) */
|
|
31
|
-
platform?: 'web' | 'server';
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=intellisense.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intellisense.d.ts","sourceRoot":"","sources":["../../src/types/intellisense.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,aAAa,CAAC;IAC/C,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAEtD,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtC,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB,uDAAuD;IACvD,SAAS,CAAC,EAAE;QACV,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IAEF,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC,CAAC;IAEH,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAEzB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intellisense.js","sourceRoot":"","sources":["../../src/types/intellisense.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Normalize code for comparison
|
|
3
|
-
*
|
|
4
|
-
* Removes comments, normalizes whitespace, and trims
|
|
5
|
-
* to detect if user actually changed the code logic.
|
|
6
|
-
*
|
|
7
|
-
* @param code - The code string to normalize
|
|
8
|
-
* @returns Normalized code string
|
|
9
|
-
*/
|
|
10
|
-
export declare function normalizeCode(code: string): string;
|
|
11
|
-
//# sourceMappingURL=code-normalizer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-normalizer.d.ts","sourceRoot":"","sources":["../../src/utils/code-normalizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYlD"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Normalize code for comparison
|
|
3
|
-
*
|
|
4
|
-
* Removes comments, normalizes whitespace, and trims
|
|
5
|
-
* to detect if user actually changed the code logic.
|
|
6
|
-
*
|
|
7
|
-
* @param code - The code string to normalize
|
|
8
|
-
* @returns Normalized code string
|
|
9
|
-
*/
|
|
10
|
-
export function normalizeCode(code) {
|
|
11
|
-
return (code
|
|
12
|
-
// Remove single-line comments
|
|
13
|
-
.replace(/\/\/.*$/gm, '')
|
|
14
|
-
// Remove multi-line comments
|
|
15
|
-
.replace(/\/\*[\s\S]*?\*\//g, '')
|
|
16
|
-
// Normalize whitespace
|
|
17
|
-
.replace(/\s+/g, ' ')
|
|
18
|
-
// Trim
|
|
19
|
-
.trim());
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=code-normalizer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code-normalizer.js","sourceRoot":"","sources":["../../src/utils/code-normalizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,CACL,IAAI;QACF,8BAA8B;SAC7B,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;QACzB,6BAA6B;SAC5B,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC;QACjC,uBAAuB;SACtB,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;QACrB,OAAO;SACN,IAAI,EAAE,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Flow } from '@walkeros/core';
|
|
2
|
-
export interface PathCompletion {
|
|
3
|
-
key: string;
|
|
4
|
-
type?: string;
|
|
5
|
-
detail?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Extract property names and types from a JSON Schema object.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getSchemaPropertyCompletions(schema: Record<string, unknown>): PathCompletion[];
|
|
11
|
-
/**
|
|
12
|
-
* Get available completions at a given dot-path into the resolved contract.
|
|
13
|
-
*
|
|
14
|
-
* Path examples:
|
|
15
|
-
* - [] → contract names ("default", "web")
|
|
16
|
-
* - ["web"] → top-level keys ("globals", "events", "tagging", ...)
|
|
17
|
-
* - ["web", "events"] → entity names ("page", "product")
|
|
18
|
-
* - ["web", "events", "page"] → action names ("view", "read")
|
|
19
|
-
* - ["web", "events", "page", "view"] → schema properties ("title", "url")
|
|
20
|
-
* - ["web", "globals"] → globals schema properties ("lang", "env")
|
|
21
|
-
*/
|
|
22
|
-
export declare function getContractPathCompletions(raw: Flow.Contract, pathSegments: string[]): PathCompletion[];
|
|
23
|
-
/**
|
|
24
|
-
* Clear the resolution cache (useful for testing).
|
|
25
|
-
*/
|
|
26
|
-
export declare function clearContractCache(): void;
|
|
27
|
-
//# sourceMappingURL=contract-path-walker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-path-walker.d.ts","sourceRoot":"","sources":["../../src/utils/contract-path-walker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG3C,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmBD;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,cAAc,EAAE,CAUlB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,YAAY,EAAE,MAAM,EAAE,GACrB,cAAc,EAAE,CAwFlB;AAoBD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAGzC"}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { resolveContracts } from '@walkeros/core';
|
|
2
|
-
// Cache resolved contracts to avoid re-resolving on every keystroke.
|
|
3
|
-
let cachedRawJson = '';
|
|
4
|
-
let cachedResolved = {};
|
|
5
|
-
function getResolved(raw) {
|
|
6
|
-
const json = JSON.stringify(raw);
|
|
7
|
-
if (json !== cachedRawJson) {
|
|
8
|
-
try {
|
|
9
|
-
cachedResolved = resolveContracts(raw);
|
|
10
|
-
cachedRawJson = json;
|
|
11
|
-
}
|
|
12
|
-
catch {
|
|
13
|
-
return {};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return cachedResolved;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Extract property names and types from a JSON Schema object.
|
|
20
|
-
*/
|
|
21
|
-
export function getSchemaPropertyCompletions(schema) {
|
|
22
|
-
const props = schema.properties;
|
|
23
|
-
if (!props || typeof props !== 'object')
|
|
24
|
-
return [];
|
|
25
|
-
return Object.entries(props).map(([key, value]) => ({
|
|
26
|
-
key,
|
|
27
|
-
type: typeof value?.type === 'string' ? value.type : undefined,
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Get available completions at a given dot-path into the resolved contract.
|
|
32
|
-
*
|
|
33
|
-
* Path examples:
|
|
34
|
-
* - [] → contract names ("default", "web")
|
|
35
|
-
* - ["web"] → top-level keys ("globals", "events", "tagging", ...)
|
|
36
|
-
* - ["web", "events"] → entity names ("page", "product")
|
|
37
|
-
* - ["web", "events", "page"] → action names ("view", "read")
|
|
38
|
-
* - ["web", "events", "page", "view"] → schema properties ("title", "url")
|
|
39
|
-
* - ["web", "globals"] → globals schema properties ("lang", "env")
|
|
40
|
-
*/
|
|
41
|
-
export function getContractPathCompletions(raw, pathSegments) {
|
|
42
|
-
if (!raw || Object.keys(raw).length === 0)
|
|
43
|
-
return [];
|
|
44
|
-
const resolved = getResolved(raw);
|
|
45
|
-
if (Object.keys(resolved).length === 0)
|
|
46
|
-
return [];
|
|
47
|
-
// Level 0: contract names
|
|
48
|
-
if (pathSegments.length === 0) {
|
|
49
|
-
return Object.keys(resolved).map((key) => ({
|
|
50
|
-
key,
|
|
51
|
-
detail: resolved[key].description || 'contract',
|
|
52
|
-
}));
|
|
53
|
-
}
|
|
54
|
-
const [contractName, ...rest] = pathSegments;
|
|
55
|
-
const entry = resolved[contractName];
|
|
56
|
-
if (!entry)
|
|
57
|
-
return [];
|
|
58
|
-
// Level 1: top-level keys of a contract entry
|
|
59
|
-
if (rest.length === 0) {
|
|
60
|
-
const keys = [];
|
|
61
|
-
if (entry.tagging !== undefined)
|
|
62
|
-
keys.push({ key: 'tagging', type: 'number' });
|
|
63
|
-
if (entry.description !== undefined)
|
|
64
|
-
keys.push({ key: 'description', type: 'string' });
|
|
65
|
-
for (const section of [
|
|
66
|
-
'globals',
|
|
67
|
-
'context',
|
|
68
|
-
'custom',
|
|
69
|
-
'user',
|
|
70
|
-
'consent',
|
|
71
|
-
]) {
|
|
72
|
-
if (entry[section])
|
|
73
|
-
keys.push({ key: section, detail: 'schema' });
|
|
74
|
-
}
|
|
75
|
-
if (entry.events)
|
|
76
|
-
keys.push({ key: 'events', detail: 'entity map' });
|
|
77
|
-
return keys;
|
|
78
|
-
}
|
|
79
|
-
// Level 2+: walk into the entry
|
|
80
|
-
const firstKey = rest[0];
|
|
81
|
-
// Section schemas (globals, context, custom, user, consent)
|
|
82
|
-
const sectionKeys = ['globals', 'context', 'custom', 'user', 'consent'];
|
|
83
|
-
if (sectionKeys.includes(firstKey)) {
|
|
84
|
-
const schema = entry[firstKey];
|
|
85
|
-
if (!schema || typeof schema !== 'object')
|
|
86
|
-
return [];
|
|
87
|
-
if (rest.length === 1) {
|
|
88
|
-
return getSchemaPropertyCompletions(schema);
|
|
89
|
-
}
|
|
90
|
-
return walkSchemaPath(schema, rest.slice(1));
|
|
91
|
-
}
|
|
92
|
-
// Events path
|
|
93
|
-
if (firstKey === 'events') {
|
|
94
|
-
if (!entry.events)
|
|
95
|
-
return [];
|
|
96
|
-
// ["events"] → entity names
|
|
97
|
-
if (rest.length === 1) {
|
|
98
|
-
return Object.keys(entry.events)
|
|
99
|
-
.filter((k) => k !== '*')
|
|
100
|
-
.map((key) => ({ key, detail: 'entity' }));
|
|
101
|
-
}
|
|
102
|
-
const entity = rest[1];
|
|
103
|
-
const actions = entry.events[entity];
|
|
104
|
-
if (!actions)
|
|
105
|
-
return [];
|
|
106
|
-
// ["events", "page"] → action names
|
|
107
|
-
if (rest.length === 2) {
|
|
108
|
-
return Object.keys(actions)
|
|
109
|
-
.filter((k) => k !== '*')
|
|
110
|
-
.map((key) => ({ key, detail: 'action' }));
|
|
111
|
-
}
|
|
112
|
-
const action = rest[2];
|
|
113
|
-
const schema = actions[action];
|
|
114
|
-
if (!schema || typeof schema !== 'object')
|
|
115
|
-
return [];
|
|
116
|
-
// ["events", "page", "view"] → schema properties
|
|
117
|
-
if (rest.length === 3) {
|
|
118
|
-
return getSchemaPropertyCompletions(schema);
|
|
119
|
-
}
|
|
120
|
-
// Deeper: walk into nested schema
|
|
121
|
-
return walkSchemaPath(schema, rest.slice(3));
|
|
122
|
-
}
|
|
123
|
-
return [];
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Walk into nested JSON Schema properties by path segments.
|
|
127
|
-
*/
|
|
128
|
-
function walkSchemaPath(schema, segments) {
|
|
129
|
-
let current = schema;
|
|
130
|
-
for (const seg of segments) {
|
|
131
|
-
const props = current.properties;
|
|
132
|
-
if (!props || !props[seg])
|
|
133
|
-
return [];
|
|
134
|
-
current = props[seg];
|
|
135
|
-
}
|
|
136
|
-
return getSchemaPropertyCompletions(current);
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Clear the resolution cache (useful for testing).
|
|
140
|
-
*/
|
|
141
|
-
export function clearContractCache() {
|
|
142
|
-
cachedRawJson = '';
|
|
143
|
-
cachedResolved = {};
|
|
144
|
-
}
|
|
145
|
-
//# sourceMappingURL=contract-path-walker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-path-walker.js","sourceRoot":"","sources":["../../src/utils/contract-path-walker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAQlD,qEAAqE;AACrE,IAAI,aAAa,GAAG,EAAE,CAAC;AACvB,IAAI,cAAc,GAAuC,EAAE,CAAC;AAE5D,SAAS,WAAW,CAAC,GAAkB;IACrC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,IAAI,KAAK,aAAa,EAAE,CAAC;QAC3B,IAAI,CAAC;YACH,cAAc,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC;YACvC,aAAa,GAAG,IAAI,CAAC;QACvB,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAC1C,MAA+B;IAE/B,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC;IAChC,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IAEnD,OAAO,MAAM,CAAC,OAAO,CAAC,KAAgD,CAAC,CAAC,GAAG,CACzE,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;QACjB,GAAG;QACH,IAAI,EAAE,OAAO,KAAK,EAAE,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;KAC/D,CAAC,CACH,CAAC;AACJ,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,0BAA0B,CACxC,GAAkB,EAClB,YAAsB;IAEtB,IAAI,C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AAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;YAAE,OAAO,EAAE,CAAC;QACrC,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,4BAA4B,CAAC,OAAO,CAAC,CAAC;AAC/C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB;IAChC,aAAa,GAAG,EAAE,CAAC;IACnB,cAAc,GAAG,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Format code using Prettier
|
|
3
|
-
*
|
|
4
|
-
* @param code - The code to format
|
|
5
|
-
* @param language - The language (javascript, typescript, json, html, css)
|
|
6
|
-
* @returns Formatted code, or original code if formatting fails
|
|
7
|
-
*/
|
|
8
|
-
export declare function formatCode(code: string, language: string): Promise<string>;
|
|
9
|
-
//# sourceMappingURL=format-code.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-code.d.ts","sourceRoot":"","sources":["../../src/utils/format-code.ts"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,wBAAsB,UAAU,CAC9B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,CAsEjB"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as prettier from 'prettier/standalone';
|
|
2
|
-
import prettierBabel from 'prettier/plugins/babel';
|
|
3
|
-
import prettierEstree from 'prettier/plugins/estree';
|
|
4
|
-
import prettierTypescript from 'prettier/plugins/typescript';
|
|
5
|
-
import prettierHtml from 'prettier/plugins/html';
|
|
6
|
-
/**
|
|
7
|
-
* Format code using Prettier
|
|
8
|
-
*
|
|
9
|
-
* @param code - The code to format
|
|
10
|
-
* @param language - The language (javascript, typescript, json, html, css)
|
|
11
|
-
* @returns Formatted code, or original code if formatting fails
|
|
12
|
-
*/
|
|
13
|
-
export async function formatCode(code, language) {
|
|
14
|
-
try {
|
|
15
|
-
let formatted;
|
|
16
|
-
switch (language) {
|
|
17
|
-
case 'javascript':
|
|
18
|
-
case 'js': {
|
|
19
|
-
// Wrap bare objects in parens so Prettier can parse them
|
|
20
|
-
// Skip one-liners — they're intentionally compact
|
|
21
|
-
const isBareObject = code.trimStart().startsWith('{') && code.includes('\n');
|
|
22
|
-
const input = isBareObject ? `(${code})` : code;
|
|
23
|
-
formatted = await prettier.format(input, {
|
|
24
|
-
parser: 'babel',
|
|
25
|
-
plugins: [prettierBabel, prettierEstree],
|
|
26
|
-
semi: true,
|
|
27
|
-
singleQuote: true,
|
|
28
|
-
trailingComma: 'all',
|
|
29
|
-
});
|
|
30
|
-
if (isBareObject) {
|
|
31
|
-
// Unwrap: remove leading "(" and trailing ");\n"
|
|
32
|
-
formatted = formatted.replace(/^\(/, '').replace(/\);?\s*$/, '');
|
|
33
|
-
}
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
case 'typescript':
|
|
37
|
-
case 'ts':
|
|
38
|
-
case 'tsx':
|
|
39
|
-
formatted = await prettier.format(code, {
|
|
40
|
-
parser: 'typescript',
|
|
41
|
-
plugins: [prettierTypescript, prettierEstree],
|
|
42
|
-
semi: true,
|
|
43
|
-
singleQuote: true,
|
|
44
|
-
trailingComma: 'all',
|
|
45
|
-
});
|
|
46
|
-
break;
|
|
47
|
-
case 'json':
|
|
48
|
-
// Use native JSON for simplicity
|
|
49
|
-
const parsed = JSON.parse(code);
|
|
50
|
-
formatted = JSON.stringify(parsed, null, 2);
|
|
51
|
-
break;
|
|
52
|
-
case 'html':
|
|
53
|
-
formatted = await prettier.format(code, {
|
|
54
|
-
parser: 'html',
|
|
55
|
-
plugins: [prettierHtml],
|
|
56
|
-
htmlWhitespaceSensitivity: 'css',
|
|
57
|
-
});
|
|
58
|
-
break;
|
|
59
|
-
case 'css':
|
|
60
|
-
case 'scss':
|
|
61
|
-
formatted = await prettier.format(code, {
|
|
62
|
-
parser: 'css',
|
|
63
|
-
plugins: [prettierHtml],
|
|
64
|
-
});
|
|
65
|
-
break;
|
|
66
|
-
default:
|
|
67
|
-
// Unsupported language, return original
|
|
68
|
-
return code;
|
|
69
|
-
}
|
|
70
|
-
// Trim trailing whitespace/newlines
|
|
71
|
-
return formatted.trim();
|
|
72
|
-
}
|
|
73
|
-
catch (error) {
|
|
74
|
-
return code;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=format-code.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"format-code.js","sourceRoot":"","sources":["../../src/utils/format-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,cAAc,MAAM,yBAAyB,CAAC;AACrD,OAAO,kBAAkB,MAAM,6BAA6B,CAAC;AAC7D,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,IAAY,EACZ,QAAgB;IAEhB,IAAI,CAAC;QACH,IAAI,SAAiB,CAAC;QAEtB,QAAQ,QAAQ,EAAE,CAAC;YACjB,KAAK,YAAY,CAAC;YAClB,KAAK,IAAI,CAAC,CAAC,CAAC;gBACV,yDAAyD;gBACzD,kDAAkD;gBAClD,MAAM,YAAY,GAChB,IAAI,CAAC,SAAS,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBAC1D,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;gBAChD,SAAS,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE;oBACvC,MAAM,EAAE,OAAO;oBACf,OAAO,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC;oBACxC,IAAI,EAAE,I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oCAAoC;QACpC,OAAO,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface MappingContext {
|
|
2
|
-
entity: string;
|
|
3
|
-
action: string;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Detect the entity/action context from a JSON path that includes "mapping".
|
|
7
|
-
*
|
|
8
|
-
* The mapping structure in flow.json is:
|
|
9
|
-
* flows.<name>.destinations.<name>.mapping.<entity>.<action>.<...>
|
|
10
|
-
*
|
|
11
|
-
* After the "mapping" key, the next two segments are entity and action.
|
|
12
|
-
*
|
|
13
|
-
* @param pathSegments - JSON path segments from root to cursor position
|
|
14
|
-
* @returns Entity and action if inside a mapping rule, null otherwise
|
|
15
|
-
*/
|
|
16
|
-
export declare function detectMappingContext(pathSegments: string[]): MappingContext | null;
|
|
17
|
-
//# sourceMappingURL=mapping-context-detector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapping-context-detector.d.ts","sourceRoot":"","sources":["../../src/utils/mapping-context-detector.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EAAE,GACrB,cAAc,GAAG,IAAI,CAUvB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detect the entity/action context from a JSON path that includes "mapping".
|
|
3
|
-
*
|
|
4
|
-
* The mapping structure in flow.json is:
|
|
5
|
-
* flows.<name>.destinations.<name>.mapping.<entity>.<action>.<...>
|
|
6
|
-
*
|
|
7
|
-
* After the "mapping" key, the next two segments are entity and action.
|
|
8
|
-
*
|
|
9
|
-
* @param pathSegments - JSON path segments from root to cursor position
|
|
10
|
-
* @returns Entity and action if inside a mapping rule, null otherwise
|
|
11
|
-
*/
|
|
12
|
-
export function detectMappingContext(pathSegments) {
|
|
13
|
-
const mappingIndex = pathSegments.indexOf('mapping');
|
|
14
|
-
if (mappingIndex === -1)
|
|
15
|
-
return null;
|
|
16
|
-
const entity = pathSegments[mappingIndex + 1];
|
|
17
|
-
const action = pathSegments[mappingIndex + 2];
|
|
18
|
-
if (!entity || !action)
|
|
19
|
-
return null;
|
|
20
|
-
return { entity, action };
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=mapping-context-detector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapping-context-detector.js","sourceRoot":"","sources":["../../src/utils/mapping-context-detector.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB,CAClC,YAAsB;IAEtB,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACrD,IAAI,YAAY,KAAK,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IAErC,MAAM,MAAM,GAAG,YAAY,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;IAC9C,MAAM,MAAM,GAAG,YAAY,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC;IAE9C,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Monaco Editor Context Type Templates
|
|
3
|
-
*
|
|
4
|
-
* Hand-crafted global namespace declarations for function contexts.
|
|
5
|
-
* These provide full TypeScript IntelliSense in Monaco Editor without
|
|
6
|
-
* requiring import statements.
|
|
7
|
-
*
|
|
8
|
-
* Extracted from @walkeros/core types and simplified for editor use.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Type template for 'fn' context (transformation functions)
|
|
12
|
-
*
|
|
13
|
-
* Provides types for:
|
|
14
|
-
* - value: WalkerOS.DeepPartialEvent | unknown
|
|
15
|
-
* - mapping: Mapping.Value
|
|
16
|
-
* - options: Mapping.Options
|
|
17
|
-
*/
|
|
18
|
-
export declare const FN_CONTEXT_TYPES = "\n// WalkerOS Core Types\ndeclare namespace WalkerOS {\n // Utility types\n type DeepPartial<T> = {\n [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];\n };\n\n type PromiseOrValue<T> = T | Promise<T>;\n\n // Property types\n type PropertyType = boolean | string | number | {\n [key: string]: Property;\n };\n\n type Property = PropertyType | Array<PropertyType>;\n\n interface Properties {\n [key: string]: Property | undefined;\n }\n\n interface OrderedProperties {\n [key: string]: [Property, number] | undefined;\n }\n\n // Consent\n interface Consent {\n [name: string]: boolean;\n }\n\n // User\n interface User extends Properties {\n id?: string;\n device?: string;\n session?: string;\n hash?: string;\n address?: string;\n email?: string;\n phone?: string;\n userAgent?: string;\n browser?: string;\n browserVersion?: string;\n deviceType?: string;\n language?: string;\n country?: string;\n region?: string;\n city?: string;\n zip?: string;\n timezone?: string;\n os?: string;\n osVersion?: string;\n screenSize?: string;\n ip?: string;\n internal?: boolean;\n }\n\n // Version\n interface Version extends Properties {\n source: string;\n tagging: number;\n }\n\n // Source\n type SourceType = 'web' | 'server' | 'app' | 'other' | string;\n\n interface Source extends Properties {\n type: SourceType;\n id: string;\n previous_id: string;\n }\n\n // Entity\n type Entities = Array<Entity>;\n\n interface Entity {\n entity: string;\n data: Properties;\n nested: Entities;\n context: OrderedProperties;\n }\n\n // Event\n interface Event {\n name: string;\n data: Properties;\n context: OrderedProperties;\n globals: Properties;\n custom: Properties;\n user: User;\n nested: Entities;\n consent: Consent;\n id: string;\n trigger: string;\n entity: string;\n action: string;\n timestamp: number;\n timing: number;\n group: string;\n count: number;\n version: Version;\n source: Source;\n }\n\n type DeepPartialEvent = DeepPartial<Event>;\n}\n\n// Mapping Types\ndeclare namespace Mapping {\n type ValueType = string | ValueConfig;\n type Value = ValueType | Array<ValueType>;\n type Values = Array<Value>;\n\n interface ValueConfig {\n condition?: Condition;\n consent?: WalkerOS.Consent;\n fn?: Fn;\n key?: string;\n loop?: Loop;\n map?: Map;\n set?: Value[];\n validate?: Validate;\n value?: WalkerOS.PropertyType;\n }\n\n type Loop = [Value, Value];\n\n type Map = {\n [key: string]: Value;\n };\n\n interface Options {\n consent?: WalkerOS.Consent;\n collector?: Collector.Instance;\n props?: unknown;\n }\n\n type Condition = (\n value: WalkerOS.DeepPartialEvent | unknown,\n mapping?: Value,\n collector?: Collector.Instance\n ) => WalkerOS.PromiseOrValue<boolean>;\n\n type Fn = (\n value: WalkerOS.DeepPartialEvent | unknown,\n mapping: Value,\n options: Options\n ) => WalkerOS.PromiseOrValue<WalkerOS.Property | unknown>;\n\n type Validate = (value?: unknown) => WalkerOS.PromiseOrValue<boolean>;\n}\n\n// Collector Types (minimal for fn context)\ndeclare namespace Collector {\n interface Instance {\n push: any;\n command: any;\n allowed: boolean;\n config: any;\n consent: WalkerOS.Consent;\n count: number;\n custom: WalkerOS.Properties;\n globals: WalkerOS.Properties;\n group: string;\n queue: any[];\n round: number;\n session: any;\n timing: number;\n user: WalkerOS.User;\n version: string;\n [key: string]: any;\n }\n}\n\n// Parameter declarations for fn context\ndeclare const value: WalkerOS.DeepPartialEvent | unknown;\ndeclare const mapping: Mapping.Value;\ndeclare const options: Mapping.Options;\n";
|
|
19
|
-
/**
|
|
20
|
-
* Type template for 'condition' context (conditional functions)
|
|
21
|
-
*
|
|
22
|
-
* Provides types for:
|
|
23
|
-
* - value: WalkerOS.DeepPartialEvent | unknown
|
|
24
|
-
* - mapping: Mapping.Value
|
|
25
|
-
* - collector: Collector.Instance | undefined
|
|
26
|
-
*/
|
|
27
|
-
export declare const CONDITION_CONTEXT_TYPES = "\n// WalkerOS Core Types\ndeclare namespace WalkerOS {\n // Utility types\n type DeepPartial<T> = {\n [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];\n };\n\n type PromiseOrValue<T> = T | Promise<T>;\n\n // Property types\n type PropertyType = boolean | string | number | {\n [key: string]: Property;\n };\n\n type Property = PropertyType | Array<PropertyType>;\n\n interface Properties {\n [key: string]: Property | undefined;\n }\n\n interface OrderedProperties {\n [key: string]: [Property, number] | undefined;\n }\n\n // Consent\n interface Consent {\n [name: string]: boolean;\n }\n\n // User\n interface User extends Properties {\n id?: string;\n device?: string;\n session?: string;\n hash?: string;\n address?: string;\n email?: string;\n phone?: string;\n userAgent?: string;\n browser?: string;\n browserVersion?: string;\n deviceType?: string;\n language?: string;\n country?: string;\n region?: string;\n city?: string;\n zip?: string;\n timezone?: string;\n os?: string;\n osVersion?: string;\n screenSize?: string;\n ip?: string;\n internal?: boolean;\n }\n\n // Version\n interface Version extends Properties {\n source: string;\n tagging: number;\n }\n\n // Source\n type SourceType = 'web' | 'server' | 'app' | 'other' | string;\n\n interface Source extends Properties {\n type: SourceType;\n id: string;\n previous_id: string;\n }\n\n // Entity\n type Entities = Array<Entity>;\n\n interface Entity {\n entity: string;\n data: Properties;\n nested: Entities;\n context: OrderedProperties;\n }\n\n // Event\n interface Event {\n name: string;\n data: Properties;\n context: OrderedProperties;\n globals: Properties;\n custom: Properties;\n user: User;\n nested: Entities;\n consent: Consent;\n id: string;\n trigger: string;\n entity: string;\n action: string;\n timestamp: number;\n timing: number;\n group: string;\n count: number;\n version: Version;\n source: Source;\n }\n\n type DeepPartialEvent = DeepPartial<Event>;\n}\n\n// Mapping Types\ndeclare namespace Mapping {\n type ValueType = string | ValueConfig;\n type Value = ValueType | Array<ValueType>;\n\n interface ValueConfig {\n condition?: Condition;\n consent?: WalkerOS.Consent;\n fn?: Fn;\n key?: string;\n loop?: Loop;\n map?: Map;\n set?: Value[];\n validate?: Validate;\n value?: WalkerOS.PropertyType;\n }\n\n type Loop = [Value, Value];\n\n type Map = {\n [key: string]: Value;\n };\n\n type Condition = (\n value: WalkerOS.DeepPartialEvent | unknown,\n mapping?: Value,\n collector?: Collector.Instance\n ) => WalkerOS.PromiseOrValue<boolean>;\n\n type Fn = (\n value: WalkerOS.DeepPartialEvent | unknown,\n mapping: Value,\n options: any\n ) => WalkerOS.PromiseOrValue<WalkerOS.Property | unknown>;\n\n type Validate = (value?: unknown) => WalkerOS.PromiseOrValue<boolean>;\n}\n\n// Collector Types (full interface for condition context)\ndeclare namespace Collector {\n interface SessionData extends WalkerOS.Properties {\n isStart: boolean;\n storage: boolean;\n id?: string;\n start?: number;\n marketing?: true;\n updated?: number;\n isNew?: boolean;\n device?: string;\n count?: number;\n runs?: number;\n }\n\n interface Config {\n run?: boolean;\n tagging: number;\n globalsStatic: WalkerOS.Properties;\n sessionStatic: Partial<SessionData>;\n verbose: boolean;\n onError?: any;\n onLog?: any;\n }\n\n interface Instance {\n push: any;\n command: any;\n allowed: boolean;\n config: Config;\n consent: WalkerOS.Consent;\n count: number;\n custom: WalkerOS.Properties;\n sources: any;\n destinations: any;\n globals: WalkerOS.Properties;\n group: string;\n hooks: any;\n on: any;\n queue: any[];\n round: number;\n session: undefined | SessionData;\n timing: number;\n user: WalkerOS.User;\n version: string;\n }\n}\n\n// Parameter declarations for condition context\ndeclare const value: WalkerOS.DeepPartialEvent | unknown;\ndeclare const mapping: Mapping.Value;\ndeclare const collector: Collector.Instance | undefined;\n";
|
|
28
|
-
/**
|
|
29
|
-
* Type template for 'validate' context (validation functions)
|
|
30
|
-
*
|
|
31
|
-
* Provides types for:
|
|
32
|
-
* - value: unknown
|
|
33
|
-
*/
|
|
34
|
-
export declare const VALIDATE_CONTEXT_TYPES = "\n// Parameter declaration for validate context\ndeclare const value: unknown;\n";
|
|
35
|
-
/**
|
|
36
|
-
* Get the type template for a specific function context
|
|
37
|
-
*/
|
|
38
|
-
export declare function getContextTypes(contextType: 'fn' | 'condition' | 'validate'): string;
|
|
39
|
-
//# sourceMappingURL=monaco-context-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"monaco-context-types.d.ts","sourceRoot":"","sources":["../../src/utils/monaco-context-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,0xHAiL5B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,wtIAoMnC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,qFAGlC,CAAC;AAEF;;GAEG;AACH,wBAAgB,eAAe,CAC7B,WAAW,EAAE,IAAI,GAAG,WAAW,GAAG,UAAU,GAC3C,MAAM,CAWR"}
|