@walkeros/explorer 2.0.1 → 2.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/AGENT.md +14 -0
- package/STYLE.md +246 -136
- package/dist/chunk-4AJX6MFW.mjs +573 -0
- package/dist/chunk-4AJX6MFW.mjs.map +1 -0
- package/dist/components/atoms/button-link.stories.d.ts +1 -3
- package/dist/components/atoms/button-link.stories.d.ts.map +1 -1
- package/dist/components/atoms/button-link.stories.js +1 -15
- package/dist/components/atoms/button-link.stories.js.map +1 -1
- package/dist/components/atoms/code.d.ts +32 -1
- package/dist/components/atoms/code.d.ts.map +1 -1
- package/dist/components/atoms/code.js +103 -14
- package/dist/components/atoms/code.js.map +1 -1
- package/dist/components/atoms/code.stories.d.ts +0 -7
- package/dist/components/atoms/code.stories.d.ts.map +1 -1
- package/dist/components/atoms/code.stories.js +0 -34
- package/dist/components/atoms/code.stories.js.map +1 -1
- package/dist/components/molecules/code-box.d.ts +7 -1
- package/dist/components/molecules/code-box.d.ts.map +1 -1
- package/dist/components/molecules/code-box.js +74 -6
- package/dist/components/molecules/code-box.js.map +1 -1
- package/dist/components/molecules/code-box.stories.d.ts +56 -7
- package/dist/components/molecules/code-box.stories.d.ts.map +1 -1
- package/dist/components/molecules/code-box.stories.js +178 -41
- package/dist/components/molecules/code-box.stories.js.map +1 -1
- package/dist/components/molecules/code-snippet.stories.d.ts +7 -4
- package/dist/components/molecules/code-snippet.stories.d.ts.map +1 -1
- package/dist/components/molecules/code-snippet.stories.js +28 -9
- package/dist/components/molecules/code-snippet.stories.js.map +1 -1
- package/dist/components/molecules/flow-map/FlowMap.stories.d.ts +0 -32
- package/dist/components/molecules/flow-map/FlowMap.stories.d.ts.map +1 -1
- package/dist/components/molecules/flow-map/FlowMap.stories.js +0 -330
- package/dist/components/molecules/flow-map/FlowMap.stories.js.map +1 -1
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts +0 -16
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts.map +1 -1
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js +0 -78
- package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js.map +1 -1
- package/dist/components/molecules/flow-selector.js +1 -1
- package/dist/components/molecules/flow-selector.js.map +1 -1
- package/dist/components/molecules/flow-selector.stories.js +4 -4
- package/dist/components/molecules/flow-selector.stories.js.map +1 -1
- package/dist/components/molecules/preview.d.ts.map +1 -1
- package/dist/components/molecules/preview.js +32 -22
- package/dist/components/molecules/preview.js.map +1 -1
- package/dist/components/molecules/split-button.stories.js +6 -6
- package/dist/components/molecules/split-button.stories.js.map +1 -1
- package/dist/index.d.cts +200 -34
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1388 -337
- package/dist/index.mjs.map +1 -1
- package/dist/{monaco-types-OLSF6MIE.mjs → monaco-types-KN2DINPW.mjs} +2 -2
- package/dist/styles.css +77 -91
- package/dist/themes/lighthouse.d.ts.map +1 -1
- package/dist/themes/lighthouse.js +1 -0
- package/dist/themes/lighthouse.js.map +1 -1
- package/dist/themes/palenight.d.ts.map +1 -1
- package/dist/themes/palenight.js +1 -0
- package/dist/themes/palenight.js.map +1 -1
- package/dist/types/intellisense.d.ts +31 -0
- package/dist/types/intellisense.d.ts.map +1 -0
- package/dist/types/intellisense.js +2 -0
- package/dist/types/intellisense.js.map +1 -0
- package/dist/utils/format-code.d.ts.map +1 -1
- package/dist/utils/format-code.js +11 -2
- package/dist/utils/format-code.js.map +1 -1
- package/dist/utils/monaco-decorators.d.ts.map +1 -1
- package/dist/utils/monaco-decorators.js +2 -0
- package/dist/utils/monaco-decorators.js.map +1 -1
- package/dist/utils/monaco-intellisense-flow-extractor.d.ts +13 -0
- package/dist/utils/monaco-intellisense-flow-extractor.d.ts.map +1 -0
- package/dist/utils/monaco-intellisense-flow-extractor.js +161 -0
- package/dist/utils/monaco-intellisense-flow-extractor.js.map +1 -0
- package/dist/utils/monaco-json-schema.d.ts +24 -0
- package/dist/utils/monaco-json-schema.d.ts.map +1 -0
- package/dist/utils/monaco-json-schema.js +65 -0
- package/dist/utils/monaco-json-schema.js.map +1 -0
- package/dist/utils/monaco-schema-contract.d.ts +8 -0
- package/dist/utils/monaco-schema-contract.d.ts.map +1 -0
- package/dist/utils/monaco-schema-contract.js +73 -0
- package/dist/utils/monaco-schema-contract.js.map +1 -0
- package/dist/utils/monaco-schema-enrichment.d.ts +26 -0
- package/dist/utils/monaco-schema-enrichment.d.ts.map +1 -0
- package/dist/utils/monaco-schema-enrichment.js +31 -0
- package/dist/utils/monaco-schema-enrichment.js.map +1 -0
- package/dist/utils/monaco-schema-flow-setup.d.ts +10 -0
- package/dist/utils/monaco-schema-flow-setup.d.ts.map +1 -0
- package/dist/utils/monaco-schema-flow-setup.js +201 -0
- package/dist/utils/monaco-schema-flow-setup.js.map +1 -0
- package/dist/utils/monaco-schema-variables.d.ts +4 -0
- package/dist/utils/monaco-schema-variables.d.ts.map +1 -0
- package/dist/utils/monaco-schema-variables.js +26 -0
- package/dist/utils/monaco-schema-variables.js.map +1 -0
- package/dist/utils/monaco-walkeros-completions.d.ts +15 -0
- package/dist/utils/monaco-walkeros-completions.d.ts.map +1 -0
- package/dist/utils/monaco-walkeros-completions.js +65 -0
- package/dist/utils/monaco-walkeros-completions.js.map +1 -0
- package/dist/utils/monaco-walkeros-decorations.d.ts +29 -0
- package/dist/utils/monaco-walkeros-decorations.d.ts.map +1 -0
- package/dist/utils/monaco-walkeros-decorations.js +87 -0
- package/dist/utils/monaco-walkeros-decorations.js.map +1 -0
- package/dist/utils/monaco-walkeros-markers.d.ts +13 -0
- package/dist/utils/monaco-walkeros-markers.d.ts.map +1 -0
- package/dist/utils/monaco-walkeros-markers.js +69 -0
- package/dist/utils/monaco-walkeros-markers.js.map +1 -0
- package/dist/utils/monaco-walkeros-providers.d.ts +19 -0
- package/dist/utils/monaco-walkeros-providers.d.ts.map +1 -0
- package/dist/utils/monaco-walkeros-providers.js +229 -0
- package/dist/utils/monaco-walkeros-providers.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-YKT4D7MG.mjs +0 -3087
- package/dist/chunk-YKT4D7MG.mjs.map +0 -1
- package/dist/components/molecules/flow-deploy-panel.d.ts +0 -31
- package/dist/components/molecules/flow-deploy-panel.d.ts.map +0 -1
- package/dist/components/molecules/flow-deploy-panel.js +0 -72
- package/dist/components/molecules/flow-deploy-panel.js.map +0 -1
- package/dist/components/molecules/flow-deploy-panel.stories.d.ts +0 -40
- package/dist/components/molecules/flow-deploy-panel.stories.d.ts.map +0 -1
- package/dist/components/molecules/flow-deploy-panel.stories.js +0 -145
- package/dist/components/molecules/flow-deploy-panel.stories.js.map +0 -1
- /package/dist/{monaco-types-OLSF6MIE.mjs.map → monaco-types-KN2DINPW.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-box.stories.js","sourceRoot":"","sources":["../../../src/components/molecules/code-box.stories.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"code-box.stories.js","sourceRoot":"","sources":["../../../src/components/molecules/code-box.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,IAAI,GAAyB;IACjC,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,mBAAmB;IAC1B,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eA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AQ,EAAE,OAAO,EACjB,QAAQ,EAAC,MAAM,EACf,KAAK,EAAC,kCAAkC,EACxC,UAAU,QACV,UAAU,EAAE,qBAAqB,CAC/B,OAAO,CAAC,eAA0C,CACnD,EACD,QAAQ,EAAE,OAAO,CAAC,iBAAiB,EACnC,mBAAmB,EAAE,UAAU,CAAC,OAAO,EACvC,kBAAkB,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,EAClE,MAAM,EAAE,GAAG,GACX,CACH,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -9,12 +9,15 @@ export declare const MultiLine: Story;
|
|
|
9
9
|
* Auto-Formatting Demo - Badly formatted code gets auto-formatted on mount
|
|
10
10
|
*/
|
|
11
11
|
export declare const AutoFormatEnabled: Story;
|
|
12
|
-
/**
|
|
13
|
-
* Disable Auto-Formatting - Keep code exactly as provided
|
|
14
|
-
*/
|
|
15
|
-
export declare const AutoFormatDisabled: Story;
|
|
16
12
|
/**
|
|
17
13
|
* JSON Auto-Formatting - Badly formatted JSON gets auto-formatted
|
|
18
14
|
*/
|
|
19
15
|
export declare const JSONFormatting: Story;
|
|
16
|
+
/**
|
|
17
|
+
* Bare Object Formatting - JS object literals without assignment
|
|
18
|
+
*
|
|
19
|
+
* This is common in docs where event results are shown as plain objects.
|
|
20
|
+
* Previously these were not indented because Prettier couldn't parse them.
|
|
21
|
+
*/
|
|
22
|
+
export declare const BareObjectFormatting: Story;
|
|
20
23
|
//# sourceMappingURL=code-snippet.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-snippet.stories.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/code-snippet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAUlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAE1C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAmBvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAK/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"code-snippet.stories.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/code-snippet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAUlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAE1C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAmBvB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAK/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAK5B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAsBlC,CAAC"}
|
|
@@ -47,22 +47,41 @@ export const AutoFormatEnabled = {
|
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* JSON Auto-Formatting - Badly formatted JSON gets auto-formatted
|
|
51
51
|
*/
|
|
52
|
-
export const
|
|
52
|
+
export const JSONFormatting = {
|
|
53
53
|
args: {
|
|
54
|
-
code: `
|
|
55
|
-
language: '
|
|
56
|
-
format: false,
|
|
54
|
+
code: `{"entity":"product","action":"view","data":{"id":"P123","name":"Laptop","price":999},"context":{"stage":["shopping",1]}}`,
|
|
55
|
+
language: 'json',
|
|
57
56
|
},
|
|
58
57
|
};
|
|
59
58
|
/**
|
|
60
|
-
*
|
|
59
|
+
* Bare Object Formatting - JS object literals without assignment
|
|
60
|
+
*
|
|
61
|
+
* This is common in docs where event results are shown as plain objects.
|
|
62
|
+
* Previously these were not indented because Prettier couldn't parse them.
|
|
61
63
|
*/
|
|
62
|
-
export const
|
|
64
|
+
export const BareObjectFormatting = {
|
|
63
65
|
args: {
|
|
64
|
-
code: `{
|
|
65
|
-
|
|
66
|
+
code: `{
|
|
67
|
+
name: 'promotion view',
|
|
68
|
+
data: {
|
|
69
|
+
name: 'Setting up tracking easily',
|
|
70
|
+
category: 'analytics',
|
|
71
|
+
},
|
|
72
|
+
context: {
|
|
73
|
+
test: ['engagement', 0]
|
|
74
|
+
},
|
|
75
|
+
globals: {
|
|
76
|
+
language: 'en'
|
|
77
|
+
},
|
|
78
|
+
nested: [],
|
|
79
|
+
consent: { functional: true },
|
|
80
|
+
trigger: 'visible',
|
|
81
|
+
entity: 'promotion',
|
|
82
|
+
action: 'view',
|
|
83
|
+
}`,
|
|
84
|
+
language: 'javascript',
|
|
66
85
|
},
|
|
67
86
|
};
|
|
68
87
|
//# sourceMappingURL=code-snippet.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-snippet.stories.js","sourceRoot":"","sources":["../../../src/components/molecules/code-snippet.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;SAC7D;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,2EAA2E;QACjF,QAAQ,EAAE,YAAY;KACvB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;EAcR;QACE,QAAQ,EAAE,YAAY;KACvB;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAU;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,iFAAiF;QACvF,QAAQ,EAAE,YAAY;KACvB;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"code-snippet.stories.js","sourceRoot":"","sources":["../../../src/components/molecules/code-snippet.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,QAAQ,EAAE;YACR,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;SAC7D;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,IAAI,EAAE,2EAA2E;QACjF,QAAQ,EAAE,YAAY;KACvB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;EAcR;QACE,QAAQ,EAAE,YAAY;KACvB;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAU;IACtC,IAAI,EAAE;QACJ,IAAI,EAAE,iFAAiF;QACvF,QAAQ,EAAE,YAAY;KACvB;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAU;IACnC,IAAI,EAAE;QACJ,IAAI,EAAE,0HAA0H;QAChI,QAAQ,EAAE,MAAM;KACjB;CACF,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAU;IACzC,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;EAiBR;QACE,QAAQ,EAAE,YAAY;KACvB;CACF,CAAC"}
|
|
@@ -11,26 +11,6 @@ export declare const Default: Story;
|
|
|
11
11
|
* With custom labels and text
|
|
12
12
|
*/
|
|
13
13
|
export declare const WithLabels: Story;
|
|
14
|
-
/**
|
|
15
|
-
* Layout Comparison - 5 typography/spacing variations
|
|
16
|
-
*/
|
|
17
|
-
export declare const LayoutComparison: Story;
|
|
18
|
-
/**
|
|
19
|
-
* Responsive behavior - scales down in narrow containers
|
|
20
|
-
*/
|
|
21
|
-
export declare const ResponsiveDemo: Story;
|
|
22
|
-
/**
|
|
23
|
-
* Rich content and link examples
|
|
24
|
-
*/
|
|
25
|
-
export declare const RichContentExamples: Story;
|
|
26
|
-
/**
|
|
27
|
-
* Stage highlight variations - use highlight:false to dim stages
|
|
28
|
-
*/
|
|
29
|
-
export declare const HighlightVariations: Story;
|
|
30
|
-
/**
|
|
31
|
-
* Marker examples - numbered callouts on stages and arrows
|
|
32
|
-
*/
|
|
33
|
-
export declare const MarkerExamples: Story;
|
|
34
14
|
/**
|
|
35
15
|
* Markers with legend - shows markers and legend text below diagram
|
|
36
16
|
*/
|
|
@@ -54,22 +34,10 @@ export declare const TypicalFlowWithReturn: Story;
|
|
|
54
34
|
* All arrows point forward (no return arrows).
|
|
55
35
|
*/
|
|
56
36
|
export declare const MeshLayout: Story;
|
|
57
|
-
/**
|
|
58
|
-
* Various multi-stage configurations.
|
|
59
|
-
*/
|
|
60
|
-
export declare const MultipleStages: Story;
|
|
61
37
|
/**
|
|
62
38
|
* Icons - Display Iconify icons before labels in boxes
|
|
63
39
|
*/
|
|
64
40
|
export declare const WithIcons: Story;
|
|
65
|
-
/**
|
|
66
|
-
* Bidirectional Flow - With return arrows showing full data flow back and forth
|
|
67
|
-
*/
|
|
68
|
-
export declare const BidirectionalFlow: Story;
|
|
69
|
-
/**
|
|
70
|
-
* Per-Destination After Stages - Each destination can have its own external platform box
|
|
71
|
-
*/
|
|
72
|
-
export declare const PerDestinationAfterStages: Story;
|
|
73
41
|
/**
|
|
74
42
|
* walkerOS Architecture - Shows two complete data flows:
|
|
75
43
|
* 1. Browser sources with validation and selective redaction
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowMap.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/flow-map/FlowMap.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"FlowMap.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/flow-map/FlowMap.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAe9B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAqF/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAgG7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,KAwC3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,KASnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,KAgBxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAgIvB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,KAiH1B,CAAC"}
|
|
@@ -9,49 +9,6 @@ const meta = {
|
|
|
9
9
|
],
|
|
10
10
|
};
|
|
11
11
|
export default meta;
|
|
12
|
-
// Layout presets for comparison
|
|
13
|
-
const layouts = {
|
|
14
|
-
compact: {
|
|
15
|
-
labelSize: 12,
|
|
16
|
-
labelWeight: '600',
|
|
17
|
-
textSize: 11,
|
|
18
|
-
textWeight: 'normal',
|
|
19
|
-
boxHeight: 45,
|
|
20
|
-
descriptionSize: 13,
|
|
21
|
-
},
|
|
22
|
-
standard: {
|
|
23
|
-
labelSize: 13,
|
|
24
|
-
labelWeight: '600',
|
|
25
|
-
textSize: 12,
|
|
26
|
-
textWeight: 'normal',
|
|
27
|
-
boxHeight: 50,
|
|
28
|
-
descriptionSize: 13,
|
|
29
|
-
},
|
|
30
|
-
prominent: {
|
|
31
|
-
labelSize: 14,
|
|
32
|
-
labelWeight: '600',
|
|
33
|
-
textSize: 11,
|
|
34
|
-
textWeight: 'normal',
|
|
35
|
-
boxHeight: 50,
|
|
36
|
-
descriptionSize: 13,
|
|
37
|
-
},
|
|
38
|
-
balanced: {
|
|
39
|
-
labelSize: 13,
|
|
40
|
-
labelWeight: '600',
|
|
41
|
-
textSize: 13,
|
|
42
|
-
textWeight: 'normal',
|
|
43
|
-
boxHeight: 55,
|
|
44
|
-
descriptionSize: 13,
|
|
45
|
-
},
|
|
46
|
-
withDesc: {
|
|
47
|
-
labelSize: 13,
|
|
48
|
-
labelWeight: '600',
|
|
49
|
-
textSize: 12,
|
|
50
|
-
textWeight: 'normal',
|
|
51
|
-
boxHeight: 50,
|
|
52
|
-
descriptionSize: 13,
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
12
|
/**
|
|
56
13
|
* Default state - Soft Pastels palette (mint → sky → lavender)
|
|
57
14
|
*/
|
|
@@ -68,186 +25,6 @@ export const WithLabels = {
|
|
|
68
25
|
destinations: { default: { label: 'GA4', text: 'Analytics' } },
|
|
69
26
|
},
|
|
70
27
|
};
|
|
71
|
-
/**
|
|
72
|
-
* Layout Comparison - 5 typography/spacing variations
|
|
73
|
-
*/
|
|
74
|
-
export const LayoutComparison = {
|
|
75
|
-
render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '28px' }, children: [_jsx("div", { style: { color: '#6b7280', fontSize: '12px', marginBottom: '4px' }, children: "Compare typography and spacing variations. All use same content." }), _jsxs("div", { children: [_jsxs("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: ["1. Compact", _jsx("span", { style: { color: '#6b7280', fontSize: '11px', marginLeft: '12px' }, children: "label: 12px/600, text: 11px, box: 45px" })] }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
76
|
-
background: '#1f2937',
|
|
77
|
-
padding: '12px',
|
|
78
|
-
borderRadius: '8px',
|
|
79
|
-
}, children: _jsx(FlowMap, { layout: layouts.compact, sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } } }) })] }), _jsxs("div", { children: [_jsxs("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: ["2. Standard", _jsx("span", { style: { color: '#6b7280', fontSize: '11px', marginLeft: '12px' }, children: "label: 13px/600, text: 12px, box: 50px" })] }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
80
|
-
background: '#1f2937',
|
|
81
|
-
padding: '12px',
|
|
82
|
-
borderRadius: '8px',
|
|
83
|
-
}, children: _jsx(FlowMap, { layout: layouts.standard, sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } } }) })] }), _jsxs("div", { children: [_jsxs("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: ["3. Prominent", _jsx("span", { style: { color: '#6b7280', fontSize: '11px', marginLeft: '12px' }, children: "label: 14px/600, text: 11px, box: 50px" })] }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
84
|
-
background: '#1f2937',
|
|
85
|
-
padding: '12px',
|
|
86
|
-
borderRadius: '8px',
|
|
87
|
-
}, children: _jsx(FlowMap, { layout: layouts.prominent, sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } } }) })] }), _jsxs("div", { children: [_jsxs("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: ["4. Balanced", _jsx("span", { style: { color: '#6b7280', fontSize: '11px', marginLeft: '12px' }, children: "label: 13px/600, text: 13px, box: 55px" })] }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
88
|
-
background: '#1f2937',
|
|
89
|
-
padding: '12px',
|
|
90
|
-
borderRadius: '8px',
|
|
91
|
-
}, children: _jsx(FlowMap, { layout: layouts.balanced, sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } } }) })] }), _jsxs("div", { children: [_jsxs("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: ["5. With Description", _jsx("span", { style: { color: '#6b7280', fontSize: '11px', marginLeft: '12px' }, children: "label: 13px/600, text: 12px, box: 50px + description below" })] }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
92
|
-
background: '#1f2937',
|
|
93
|
-
padding: '12px',
|
|
94
|
-
borderRadius: '8px',
|
|
95
|
-
}, children: _jsx(FlowMap, { layout: layouts.withDesc, sources: {
|
|
96
|
-
default: {
|
|
97
|
-
label: 'Source',
|
|
98
|
-
text: 'walker.js',
|
|
99
|
-
description: 'Data origin',
|
|
100
|
-
},
|
|
101
|
-
}, collector: {
|
|
102
|
-
label: 'Collector',
|
|
103
|
-
text: 'Node',
|
|
104
|
-
description: 'Processing',
|
|
105
|
-
}, destinations: {
|
|
106
|
-
default: {
|
|
107
|
-
label: 'Destination',
|
|
108
|
-
text: 'GA4',
|
|
109
|
-
description: 'Analytics',
|
|
110
|
-
},
|
|
111
|
-
} }) })] })] })),
|
|
112
|
-
decorators: [
|
|
113
|
-
(Story) => (_jsx("div", { style: { padding: '20px', background: '#111827' }, children: _jsx(Story, {}) })),
|
|
114
|
-
],
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* Responsive behavior - scales down in narrow containers
|
|
118
|
-
*/
|
|
119
|
-
export const ResponsiveDemo = {
|
|
120
|
-
args: {},
|
|
121
|
-
decorators: [
|
|
122
|
-
(Story) => (_jsx("div", { className: "elb-explorer", "data-theme": "dark", style: { padding: '20px', background: '#1f2937' }, children: _jsx("div", { style: {
|
|
123
|
-
maxWidth: '350px',
|
|
124
|
-
border: '1px dashed #4b5563',
|
|
125
|
-
padding: '8px',
|
|
126
|
-
}, children: _jsx(Story, {}) }) })),
|
|
127
|
-
],
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* Rich content and link examples
|
|
131
|
-
*/
|
|
132
|
-
export const RichContentExamples = {
|
|
133
|
-
render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '24px' }, children: [_jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Clickable boxes (default - each box links to its docs)" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
134
|
-
background: '#1f2937',
|
|
135
|
-
padding: '12px',
|
|
136
|
-
borderRadius: '8px',
|
|
137
|
-
}, children: _jsx(FlowMap, { sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } } }) })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Rich HTML text (ReactNode with formatting)" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
138
|
-
background: '#1f2937',
|
|
139
|
-
padding: '12px',
|
|
140
|
-
borderRadius: '8px',
|
|
141
|
-
}, children: _jsx(FlowMap, { boxHeight: 70, descriptionHeight: 50, sources: {
|
|
142
|
-
default: {
|
|
143
|
-
label: 'Source',
|
|
144
|
-
text: (_jsxs("span", { children: [_jsx("a", { href: "/docs/walker-js", style: { color: 'inherit' }, children: "walker.js" }), ' ', "v2", _jsx("br", {}), "Browser SDK"] })),
|
|
145
|
-
description: 'Client-side tracking with automatic page view detection',
|
|
146
|
-
link: false, // Disable box link since text has its own link
|
|
147
|
-
},
|
|
148
|
-
}, collector: {
|
|
149
|
-
label: 'Collector',
|
|
150
|
-
text: (_jsxs("span", { children: [_jsx("strong", { children: "Node" }), " server", _jsx("br", {}), "with validation"] })),
|
|
151
|
-
description: 'Server-side processing and event enrichment',
|
|
152
|
-
}, destinations: {
|
|
153
|
-
default: {
|
|
154
|
-
label: 'Destination',
|
|
155
|
-
text: (_jsxs("span", { children: ["GA4 + BigQuery", _jsx("br", {}), "data warehouse"] })),
|
|
156
|
-
description: 'Analytics and raw data storage for analysis',
|
|
157
|
-
link: '/docs/destinations/bigquery', // Custom URL
|
|
158
|
-
},
|
|
159
|
-
} }) })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Non-clickable boxes (link: false)" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
160
|
-
background: '#1f2937',
|
|
161
|
-
padding: '12px',
|
|
162
|
-
borderRadius: '8px',
|
|
163
|
-
}, children: _jsx(FlowMap, { sources: {
|
|
164
|
-
default: { label: 'Source', text: 'walker.js', link: false },
|
|
165
|
-
}, collector: { label: 'Collector', text: 'Node', link: false }, destinations: {
|
|
166
|
-
default: { label: 'Destination', text: 'GA4', link: false },
|
|
167
|
-
} }) })] })] })),
|
|
168
|
-
decorators: [
|
|
169
|
-
(Story) => (_jsx("div", { style: { padding: '20px', background: '#111827' }, children: _jsx(Story, {}) })),
|
|
170
|
-
],
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* Stage highlight variations - use highlight:false to dim stages
|
|
174
|
-
*/
|
|
175
|
-
export const HighlightVariations = {
|
|
176
|
-
render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '24px' }, children: [_jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "1. All stages highlighted (default)" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
177
|
-
background: '#1f2937',
|
|
178
|
-
padding: '12px',
|
|
179
|
-
borderRadius: '8px',
|
|
180
|
-
}, children: _jsx(FlowMap, { sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } } }) })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "2. Only destination highlighted" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
181
|
-
background: '#1f2937',
|
|
182
|
-
padding: '12px',
|
|
183
|
-
borderRadius: '8px',
|
|
184
|
-
}, children: _jsx(FlowMap, { sources: {
|
|
185
|
-
default: {
|
|
186
|
-
label: 'Source',
|
|
187
|
-
text: 'walker.js',
|
|
188
|
-
highlight: false,
|
|
189
|
-
},
|
|
190
|
-
}, collector: { label: 'Collector', text: 'Node', highlight: false }, destinations: { default: { label: 'Destination', text: 'GA4' } } }) })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "3. Collector and destination highlighted" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
191
|
-
background: '#1f2937',
|
|
192
|
-
padding: '12px',
|
|
193
|
-
borderRadius: '8px',
|
|
194
|
-
}, children: _jsx(FlowMap, { sources: {
|
|
195
|
-
default: {
|
|
196
|
-
label: 'Source',
|
|
197
|
-
text: 'walker.js',
|
|
198
|
-
highlight: false,
|
|
199
|
-
},
|
|
200
|
-
}, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } } }) })] })] })),
|
|
201
|
-
decorators: [
|
|
202
|
-
(Story) => (_jsx("div", { style: { padding: '20px', background: '#111827' }, children: _jsx(Story, {}) })),
|
|
203
|
-
],
|
|
204
|
-
};
|
|
205
|
-
/**
|
|
206
|
-
* Marker examples - numbered callouts on stages and arrows
|
|
207
|
-
*/
|
|
208
|
-
export const MarkerExamples = {
|
|
209
|
-
render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '24px' }, children: [_jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Single marker on source" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
210
|
-
background: '#1f2937',
|
|
211
|
-
padding: '12px',
|
|
212
|
-
borderRadius: '8px',
|
|
213
|
-
}, children: _jsx(FlowMap, { sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } }, markers: [{ position: 'source' }] }) })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Multiple markers with auto-numbering" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
214
|
-
background: '#1f2937',
|
|
215
|
-
padding: '12px',
|
|
216
|
-
borderRadius: '8px',
|
|
217
|
-
}, children: _jsx(FlowMap, { sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } }, markers: [
|
|
218
|
-
{ position: 'incoming' },
|
|
219
|
-
{ position: 'source' },
|
|
220
|
-
{ position: 'source-collector' },
|
|
221
|
-
{ position: 'collector' },
|
|
222
|
-
{ position: 'destination' },
|
|
223
|
-
] }) })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Custom marker text" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
224
|
-
background: '#1f2937',
|
|
225
|
-
padding: '12px',
|
|
226
|
-
borderRadius: '8px',
|
|
227
|
-
}, children: _jsx(FlowMap, { sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } }, markers: [
|
|
228
|
-
{ position: 'source-left', id: 'A' },
|
|
229
|
-
{ position: 'collector-right', id: 'B' },
|
|
230
|
-
{ position: 'outgoing', id: '!' },
|
|
231
|
-
] }) })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "All marker positions" }), _jsx("div", { className: "elb-explorer", "data-theme": "dark", style: {
|
|
232
|
-
background: '#1f2937',
|
|
233
|
-
padding: '12px',
|
|
234
|
-
borderRadius: '8px',
|
|
235
|
-
}, children: _jsx(FlowMap, { sources: { default: { label: 'Source', text: 'walker.js' } }, collector: { label: 'Collector', text: 'Node' }, destinations: { default: { label: 'Destination', text: 'GA4' } }, markers: [
|
|
236
|
-
{ position: 'incoming', id: 'in' },
|
|
237
|
-
{ position: 'source-left', id: 'SL' },
|
|
238
|
-
{ position: 'source-right', id: 'SR' },
|
|
239
|
-
{ position: 'source-collector', id: 'SC' },
|
|
240
|
-
{ position: 'collector-left', id: 'CL' },
|
|
241
|
-
{ position: 'collector-right', id: 'CR' },
|
|
242
|
-
{ position: 'collector-destination', id: 'CD' },
|
|
243
|
-
{ position: 'destination-left', id: 'DL' },
|
|
244
|
-
{ position: 'destination-right', id: 'DR' },
|
|
245
|
-
{ position: 'outgoing', id: 'out' },
|
|
246
|
-
] }) })] })] })),
|
|
247
|
-
decorators: [
|
|
248
|
-
(Story) => (_jsx("div", { style: { padding: '20px', background: '#111827' }, children: _jsx(Story, {}) })),
|
|
249
|
-
],
|
|
250
|
-
};
|
|
251
28
|
/**
|
|
252
29
|
* Markers with legend - shows markers and legend text below diagram
|
|
253
30
|
*/
|
|
@@ -393,34 +170,6 @@ export const MeshLayout = {
|
|
|
393
170
|
segment: { label: 'Segment' },
|
|
394
171
|
} })),
|
|
395
172
|
};
|
|
396
|
-
/**
|
|
397
|
-
* Various multi-stage configurations.
|
|
398
|
-
*/
|
|
399
|
-
export const MultipleStages = {
|
|
400
|
-
render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '32px' }, children: [_jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "2 Sources \u2192 1 Destination" }), _jsx(FlowMap, { sources: {
|
|
401
|
-
web: { label: 'Web', text: 'walker.js' },
|
|
402
|
-
app: { label: 'App', text: 'SDK' },
|
|
403
|
-
}, collector: { label: 'walkerOS', text: 'Node' }, destinations: { default: { label: 'BigQuery' } } })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "1 Source \u2192 3 Destinations" }), _jsx(FlowMap, { sources: { default: { label: 'Website', text: 'walker.js' } }, collector: { label: 'walkerOS' }, destinations: {
|
|
404
|
-
ga4: { label: 'GA4', text: 'Analytics' },
|
|
405
|
-
bigquery: { label: 'BigQuery', text: 'Warehouse' },
|
|
406
|
-
segment: { label: 'Segment', text: 'CDP' },
|
|
407
|
-
} })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "With named markers" }), _jsx(FlowMap, { sources: {
|
|
408
|
-
web: { label: 'Web' },
|
|
409
|
-
app: { label: 'App' },
|
|
410
|
-
}, collector: { label: 'walkerOS' }, destinations: {
|
|
411
|
-
ga4: { label: 'GA4' },
|
|
412
|
-
bigquery: { label: 'BigQuery' },
|
|
413
|
-
}, markers: [
|
|
414
|
-
{ position: 'source-web', id: '1', text: 'source-web (Web)' },
|
|
415
|
-
{ position: 'source-app', id: '2', text: 'source-app (App)' },
|
|
416
|
-
{ position: 'destination-ga4', id: '3', text: 'destination-ga4' },
|
|
417
|
-
{
|
|
418
|
-
position: 'destination-bigquery',
|
|
419
|
-
id: '4',
|
|
420
|
-
text: 'destination-bigquery',
|
|
421
|
-
},
|
|
422
|
-
] })] })] })),
|
|
423
|
-
};
|
|
424
173
|
/**
|
|
425
174
|
* Icons - Display Iconify icons before labels in boxes
|
|
426
175
|
*/
|
|
@@ -505,85 +254,6 @@ export const WithIcons = {
|
|
|
505
254
|
text: 'GA4',
|
|
506
255
|
} })] })] })),
|
|
507
256
|
};
|
|
508
|
-
/**
|
|
509
|
-
* Bidirectional Flow - With return arrows showing full data flow back and forth
|
|
510
|
-
*/
|
|
511
|
-
export const BidirectionalFlow = {
|
|
512
|
-
render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '32px' }, children: [_jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Typical flow with return arrows (withReturn=true)" }), _jsx(FlowMap, { sources: { default: { label: 'Website', text: 'walker.js' } }, collector: { label: 'walkerOS', text: 'Node' }, destinations: { default: { label: 'GA4', text: 'Analytics' } }, withReturn: true })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Multi-source with return arrows" }), _jsx(FlowMap, { sources: {
|
|
513
|
-
web: { label: 'Web', text: 'walker.js' },
|
|
514
|
-
app: { label: 'App', text: 'SDK' },
|
|
515
|
-
}, collector: { label: 'walkerOS', text: 'Node' }, destinations: { default: { label: 'BigQuery' } }, withReturn: true })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Multi-destination with return arrows" }), _jsx(FlowMap, { sources: { default: { label: 'Website', text: 'walker.js' } }, collector: { label: 'walkerOS' }, destinations: {
|
|
516
|
-
ga4: { label: 'GA4', text: 'Analytics' },
|
|
517
|
-
bigquery: { label: 'BigQuery', text: 'Warehouse' },
|
|
518
|
-
}, withReturn: true })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "2x2 mesh with return arrows" }), _jsx(FlowMap, { sources: {
|
|
519
|
-
web: { label: 'Web' },
|
|
520
|
-
app: { label: 'App' },
|
|
521
|
-
}, collector: { label: 'walkerOS' }, destinations: {
|
|
522
|
-
ga4: { label: 'GA4' },
|
|
523
|
-
bigquery: { label: 'BigQuery' },
|
|
524
|
-
}, withReturn: true })] })] })),
|
|
525
|
-
};
|
|
526
|
-
/**
|
|
527
|
-
* Per-Destination After Stages - Each destination can have its own external platform box
|
|
528
|
-
*/
|
|
529
|
-
export const PerDestinationAfterStages = {
|
|
530
|
-
render: () => (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '32px' }, children: [_jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Each destination with its own external platform" }), _jsx(FlowMap, { sources: { default: { highlight: false } }, collector: { highlight: false }, destinations: {
|
|
531
|
-
ga4: {
|
|
532
|
-
label: 'Destination',
|
|
533
|
-
text: 'GA4',
|
|
534
|
-
after: { label: 'External', text: 'Google Analytics' },
|
|
535
|
-
},
|
|
536
|
-
api: {
|
|
537
|
-
label: 'Destination',
|
|
538
|
-
text: 'API',
|
|
539
|
-
after: { label: 'External', text: 'Custom Endpoint' },
|
|
540
|
-
},
|
|
541
|
-
} })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Mixed: some destinations with after, some using shared stageAfter" }), _jsx(FlowMap, { sources: { default: { highlight: false } }, collector: { highlight: false }, destinations: {
|
|
542
|
-
ga4: {
|
|
543
|
-
label: 'Destination',
|
|
544
|
-
text: 'GA4',
|
|
545
|
-
after: { label: 'External', text: 'Google Analytics' },
|
|
546
|
-
},
|
|
547
|
-
segment: {
|
|
548
|
-
label: 'Destination',
|
|
549
|
-
text: 'Segment',
|
|
550
|
-
// No after - will use shared stageAfter
|
|
551
|
-
},
|
|
552
|
-
}, stageAfter: { label: 'External', text: 'CDP' } })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Three destinations with per-destination external platforms" }), _jsx(FlowMap, { sources: {
|
|
553
|
-
web: { label: 'Web', text: 'walker.js' },
|
|
554
|
-
}, collector: { label: 'walkerOS' }, destinations: {
|
|
555
|
-
ga4: {
|
|
556
|
-
label: 'Destination',
|
|
557
|
-
text: 'GA4',
|
|
558
|
-
after: {
|
|
559
|
-
icon: 'simple-icons:googleanalytics',
|
|
560
|
-
label: 'External',
|
|
561
|
-
text: 'Google Analytics',
|
|
562
|
-
},
|
|
563
|
-
},
|
|
564
|
-
meta: {
|
|
565
|
-
label: 'Destination',
|
|
566
|
-
text: 'Meta',
|
|
567
|
-
after: {
|
|
568
|
-
icon: 'simple-icons:meta',
|
|
569
|
-
label: 'External',
|
|
570
|
-
text: 'Facebook',
|
|
571
|
-
},
|
|
572
|
-
},
|
|
573
|
-
bigquery: {
|
|
574
|
-
label: 'Destination',
|
|
575
|
-
text: 'BigQuery',
|
|
576
|
-
after: {
|
|
577
|
-
icon: 'simple-icons:googlebigquery',
|
|
578
|
-
label: 'External',
|
|
579
|
-
text: 'Data Warehouse',
|
|
580
|
-
},
|
|
581
|
-
},
|
|
582
|
-
} })] }), _jsxs("div", { children: [_jsx("h3", { style: { color: '#9ca3af', marginBottom: '8px', fontSize: '14px' }, children: "Backward compatibility: shared stageAfter still works" }), _jsx(FlowMap, { sources: { default: { highlight: false } }, collector: { highlight: false }, destinations: {
|
|
583
|
-
ga4: { label: 'Destination', text: 'GA4' },
|
|
584
|
-
api: { label: 'Destination', text: 'API' },
|
|
585
|
-
}, stageAfter: { label: 'External', text: 'Platforms' } })] })] })),
|
|
586
|
-
};
|
|
587
257
|
/**
|
|
588
258
|
* walkerOS Architecture - Shows two complete data flows:
|
|
589
259
|
* 1. Browser sources with validation and selective redaction
|