@walkeros/explorer 2.1.0 → 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 +6 -0
- 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 +29 -1
- package/dist/components/atoms/code.d.ts.map +1 -1
- package/dist/components/atoms/code.js +76 -8
- 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 +6 -1
- package/dist/components/molecules/code-box.d.ts.map +1 -1
- package/dist/components/molecules/code-box.js +45 -3
- package/dist/components/molecules/code-box.js.map +1 -1
- package/dist/components/molecules/code-box.stories.d.ts +45 -9
- package/dist/components/molecules/code-box.stories.d.ts.map +1 -1
- package/dist/components/molecules/code-box.stories.js +106 -45
- package/dist/components/molecules/code-box.stories.js.map +1 -1
- package/dist/components/molecules/code-snippet.stories.d.ts +0 -8
- package/dist/components/molecules/code-snippet.stories.d.ts.map +1 -1
- package/dist/components/molecules/code-snippet.stories.js +0 -19
- 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/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/index.d.cts +180 -3
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1052 -49
- package/dist/index.mjs.map +1 -1
- package/dist/{monaco-types-OLSF6MIE.mjs → monaco-types-KN2DINPW.mjs} +2 -2
- package/dist/styles.css +31 -0
- 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/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-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/{monaco-types-OLSF6MIE.mjs.map → monaco-types-KN2DINPW.mjs.map} +0 -0
|
@@ -24,23 +24,6 @@ export const SimplePreTransformer = {
|
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
|
-
/**
|
|
28
|
-
* Simple flow with a single post-transformer between collector and destination.
|
|
29
|
-
*/
|
|
30
|
-
export const SimplePostTransformer = {
|
|
31
|
-
args: {
|
|
32
|
-
sources: {
|
|
33
|
-
web: { label: 'Source', text: 'walker.js' },
|
|
34
|
-
},
|
|
35
|
-
collector: { label: 'Collector' },
|
|
36
|
-
postTransformers: {
|
|
37
|
-
redactor: { label: 'Redactor', text: 'PII removal' },
|
|
38
|
-
},
|
|
39
|
-
destinations: {
|
|
40
|
-
ga4: { label: 'Destination', text: 'GA4', before: 'redactor' },
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
27
|
/**
|
|
45
28
|
* Full flow with both pre-transformers and post-transformers.
|
|
46
29
|
*/
|
|
@@ -85,67 +68,6 @@ export const FullFlowWithContext = {
|
|
|
85
68
|
stageAfter: { label: 'gtag', text: 'Reporting' },
|
|
86
69
|
},
|
|
87
70
|
};
|
|
88
|
-
/**
|
|
89
|
-
* Transformers with markers demonstrating the extended marker positions.
|
|
90
|
-
*/
|
|
91
|
-
export const TransformersWithMarkers = {
|
|
92
|
-
args: {
|
|
93
|
-
sources: {
|
|
94
|
-
web: { label: 'Source', text: 'walker.js', next: 'validator' },
|
|
95
|
-
},
|
|
96
|
-
preTransformers: {
|
|
97
|
-
validator: { label: 'Validator', next: 'enricher' },
|
|
98
|
-
enricher: { label: 'Enricher' },
|
|
99
|
-
},
|
|
100
|
-
collector: { label: 'Collector' },
|
|
101
|
-
postTransformers: {
|
|
102
|
-
redactor: { label: 'Redactor' },
|
|
103
|
-
},
|
|
104
|
-
destinations: {
|
|
105
|
-
ga4: { label: 'Destination', text: 'GA4', before: 'redactor' },
|
|
106
|
-
},
|
|
107
|
-
markers: [
|
|
108
|
-
{ position: 'pre-validator', id: '1', text: 'Validates event schema' },
|
|
109
|
-
{ position: 'pre-enricher', id: '2', text: 'Adds server data' },
|
|
110
|
-
{ position: 'post-redactor', id: '3', text: 'Removes PII' },
|
|
111
|
-
],
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* Flow without transformers - sources connect directly to collector.
|
|
116
|
-
*/
|
|
117
|
-
export const NoTransformers = {
|
|
118
|
-
args: {
|
|
119
|
-
sources: {
|
|
120
|
-
web: { label: 'Source', text: 'walker.js' },
|
|
121
|
-
},
|
|
122
|
-
collector: { label: 'Collector' },
|
|
123
|
-
destinations: {
|
|
124
|
-
ga4: { label: 'Destination', text: 'GA4' },
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* Bidirectional flow with transformers and return arrows.
|
|
130
|
-
*/
|
|
131
|
-
export const WithReturnArrows = {
|
|
132
|
-
args: {
|
|
133
|
-
sources: {
|
|
134
|
-
web: { label: 'Source', text: 'walker.js', next: 'validator' },
|
|
135
|
-
},
|
|
136
|
-
preTransformers: {
|
|
137
|
-
validator: { label: 'Validator' },
|
|
138
|
-
},
|
|
139
|
-
collector: { label: 'Collector' },
|
|
140
|
-
postTransformers: {
|
|
141
|
-
redactor: { label: 'Redactor' },
|
|
142
|
-
},
|
|
143
|
-
destinations: {
|
|
144
|
-
ga4: { label: 'Destination', text: 'GA4', before: 'redactor' },
|
|
145
|
-
},
|
|
146
|
-
withReturn: true,
|
|
147
|
-
},
|
|
148
|
-
};
|
|
149
71
|
/**
|
|
150
72
|
* Combined test: skip connections on BOTH left and right sides.
|
|
151
73
|
* Shows all 4 arrow cases: up/down on left, up/down on right.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowMap.transformers.stories.js","sourceRoot":"","sources":["../../../../src/components/molecules/flow-map/FlowMap.transformers.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,IAAI,GAAyB;IACjC,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAU;IACzC,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE;SAC/D;QACD,eAAe,EAAE;YACf,SAAS,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE;SACvD;QACD,SAAS,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;QACjC,YAAY,EAAE;YACZ,GAAG,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE;SAC3C;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"FlowMap.transformers.stories.js","sourceRoot":"","sources":["../../../../src/components/molecules/flow-map/FlowMap.transformers.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,IAAI,GAAyB;IACjC,KAAK,EAAE,gCAAgC;IACvC,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAU;IACzC,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE;SAC/D;QACD,eAAe,EAAE;YACf,SAAS,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,EAAE;SACvD;QACD,SAAS,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;QACjC,YAAY,EAAE;YACZ,GAAG,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE;SAC3C;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAU;IAC/C,IAAI,EAAE;QACJ,OAAO,EAAE;YACP,GAAG,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,EAAE;SAC/D;QACD,eAAe,EAAE;YACf,SAAS,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE;YACn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/molecules/preview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/preview.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAwC,MAAM,gBAAgB,CAAC;AAgBhF,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,GAAQ,EACR,GAAG,EACH,KAAiB,GAClB,EAAE,YAAY,2CAoPd"}
|
|
@@ -141,7 +141,7 @@ export function Preview({ html, css = '', elb, label = 'Preview', }) {
|
|
|
141
141
|
// Cleanup previous source instance
|
|
142
142
|
if (sourceRef.current) {
|
|
143
143
|
try {
|
|
144
|
-
await sourceRef.current.destroy?.();
|
|
144
|
+
await sourceRef.current.instance.destroy?.(sourceRef.current.destroyContext);
|
|
145
145
|
}
|
|
146
146
|
catch {
|
|
147
147
|
// Ignore cleanup errors
|
|
@@ -171,32 +171,42 @@ export function Preview({ html, css = '', elb, label = 'Preview', }) {
|
|
|
171
171
|
});
|
|
172
172
|
// Initialize browser source directly with parent's elb
|
|
173
173
|
// This connects the iframe's DOM events to the parent collector
|
|
174
|
-
const
|
|
174
|
+
const config = {
|
|
175
|
+
settings: {
|
|
176
|
+
pageview: false,
|
|
177
|
+
prefix: 'data-elb',
|
|
178
|
+
elb: 'elb',
|
|
179
|
+
elbLayer: 'elbLayer',
|
|
180
|
+
// Use body as scope - trigger.ts compares `scope !== document` against
|
|
181
|
+
// main page's document, so iframe.contentDocument fails the Element cast
|
|
182
|
+
scope: iframe.contentDocument.body,
|
|
183
|
+
},
|
|
184
|
+
};
|
|
185
|
+
const env = {
|
|
186
|
+
elb: elbRef.current,
|
|
187
|
+
push: noopPush,
|
|
188
|
+
command: async () => ({ ok: true, destination: {} }),
|
|
189
|
+
logger: noopLogger,
|
|
190
|
+
window: iframe.contentWindow,
|
|
191
|
+
document: iframe.contentDocument,
|
|
192
|
+
};
|
|
193
|
+
const instance = await sourceBrowser({
|
|
175
194
|
id: 'preview',
|
|
176
195
|
collector: {}, // Not used when elb is provided directly
|
|
177
196
|
logger: noopLogger,
|
|
178
197
|
setIngest: async () => { },
|
|
179
|
-
config
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
},
|
|
189
|
-
},
|
|
190
|
-
env: {
|
|
191
|
-
elb: elbRef.current,
|
|
192
|
-
push: noopPush,
|
|
193
|
-
command: async () => ({ ok: true, destination: {} }),
|
|
198
|
+
config,
|
|
199
|
+
env,
|
|
200
|
+
});
|
|
201
|
+
sourceRef.current = {
|
|
202
|
+
instance,
|
|
203
|
+
destroyContext: {
|
|
204
|
+
id: 'preview',
|
|
205
|
+
config,
|
|
206
|
+
env,
|
|
194
207
|
logger: noopLogger,
|
|
195
|
-
window: iframe.contentWindow,
|
|
196
|
-
document: iframe.contentDocument,
|
|
197
208
|
},
|
|
198
|
-
}
|
|
199
|
-
sourceRef.current = source;
|
|
209
|
+
};
|
|
200
210
|
}
|
|
201
211
|
catch {
|
|
202
212
|
// sourceBrowser init failed - events won't be captured
|
|
@@ -210,7 +220,7 @@ export function Preview({ html, css = '', elb, label = 'Preview', }) {
|
|
|
210
220
|
}
|
|
211
221
|
// Cleanup source
|
|
212
222
|
if (sourceRef.current) {
|
|
213
|
-
sourceRef.current.destroy?.();
|
|
223
|
+
sourceRef.current.instance.destroy?.(sourceRef.current.destroyContext);
|
|
214
224
|
}
|
|
215
225
|
};
|
|
216
226
|
}, [html, css, highlights, autoMarkProperties, elb]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../src/components/molecules/preview.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,EACL,aAAa,GAEd,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"preview.js","sourceRoot":"","sources":["../../../src/components/molecules/preview.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,EACL,aAAa,GAEd,MAAM,8BAA8B,CAAC;AAStC,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AASxD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,OAAO,CAAC,EACtB,IAAI,EACJ,GAAG,GAAG,EAAE,EACR,GAAG,EACH,KAAK,GAAG,SAAS,GACJ;IACb,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAc,IAAI,GAAG,EAAE,CAAC,CAAC;IACrE,MAAM,SAAS,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IAClD,MAAM,gBAAgB,GAAG,MAAM,CAA6B,SAAS,CAAC,CAAC;IACvE,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3B,MAAM,SAAS,GAAG,MAAM,CAAsB,IAAI,CAAC,CAAC;IAEpD,sBAAsB;IACtB,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC;IACvB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEV,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,EAAE;QACvC,aAAa,CAAC,CAAC,IAAI,EAAE,EAAE;YACrB,MAAM,IAAI,GAAG,IAAI,GAAG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GAAG;4BAClB,QAAQ;4BACR,cAAc,EAAE;gCACd,EAAE,EAAE,SAAS;gCACb,MAAM;gCACN,GAAG;gCACH,MAAM,EAAE,UAAU;6BACnB;yBACF,CAAC;oBACJ,CAAC;oBAAC,MAAM,CAAC;wBACP,uDAAuD;oBACzD,CAAC;gBACH,CAAC,EAAE,EAAE,CAAC,CAAC;YACT,CAAC;QACH,CAAC,EAAE,GAAG,CAAC,CAAC;QAER,OAAO,GAAG,EAAE;YACV,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;gBAC7B,YAAY,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;YAED,iBAAiB;YACjB,IAAI,SAAS,CAAC,OAAO,EAAE,CAAC;gBACtB,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;YACzE,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAC,CAAC;IAErD,OAAO,CACL,KAAC,GAAG,IACF,MAAM,EAAE,KAAK,EACb,MAAM,EACJ,KAAC,aAAa,IAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,eAAe,GAAI,YAGtE,cAAK,SAAS,EAAC,qBAAqB,YAClC,iBACE,GAAG,EAAE,SAAS,EACd,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAC,cAAc,GACpB,GACE,GACF,CACP,CAAC;AACJ,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -459,6 +459,37 @@ interface ArchitectureFlowProps {
|
|
|
459
459
|
}
|
|
460
460
|
declare function ArchitectureFlow({ sources, center, centerTitle, destinations, arrowRight, arrowDown, className, }: ArchitectureFlowProps): react_jsx_runtime.JSX.Element;
|
|
461
461
|
|
|
462
|
+
interface PackageInfo {
|
|
463
|
+
package: string;
|
|
464
|
+
shortName: string;
|
|
465
|
+
type: 'source' | 'destination' | 'transformer';
|
|
466
|
+
platform: 'web' | 'server';
|
|
467
|
+
description?: string;
|
|
468
|
+
}
|
|
469
|
+
interface IntelliSenseContext {
|
|
470
|
+
/** Variable names and values from the flow's `variables` section */
|
|
471
|
+
variables?: Record<string, string | number | boolean>;
|
|
472
|
+
/** Definition names from the flow's `definitions` section */
|
|
473
|
+
definitions?: Record<string, unknown>;
|
|
474
|
+
/** Secret names available in the project (values are NOT included) */
|
|
475
|
+
secrets?: string[];
|
|
476
|
+
/** Step names from the current flow config, by type */
|
|
477
|
+
stepNames?: {
|
|
478
|
+
sources?: string[];
|
|
479
|
+
destinations?: string[];
|
|
480
|
+
transformers?: string[];
|
|
481
|
+
};
|
|
482
|
+
/** Contract entities and their actions */
|
|
483
|
+
contract?: Array<{
|
|
484
|
+
entity: string;
|
|
485
|
+
actions: string[];
|
|
486
|
+
}>;
|
|
487
|
+
/** Available packages for autocomplete */
|
|
488
|
+
packages?: PackageInfo[];
|
|
489
|
+
/** Current platform context (web or server) */
|
|
490
|
+
platform?: 'web' | 'server';
|
|
491
|
+
}
|
|
492
|
+
|
|
462
493
|
interface CodeProps {
|
|
463
494
|
code: string;
|
|
464
495
|
language?: string;
|
|
@@ -481,6 +512,33 @@ interface CodeProps {
|
|
|
481
512
|
ide?: boolean;
|
|
482
513
|
/** JSON Schema (Draft 7) for validation and IntelliSense in JSON mode */
|
|
483
514
|
jsonSchema?: Record<string, unknown>;
|
|
515
|
+
/** Context data for dynamic IntelliSense (variable names, secrets, etc.) */
|
|
516
|
+
intellisenseContext?: IntelliSenseContext;
|
|
517
|
+
/** Validation function — called on content change, results rendered as Monaco markers */
|
|
518
|
+
validate?: (code: string) => {
|
|
519
|
+
valid: boolean;
|
|
520
|
+
errors: Array<{
|
|
521
|
+
message: string;
|
|
522
|
+
severity: 'error' | 'warning';
|
|
523
|
+
line: number;
|
|
524
|
+
column: number;
|
|
525
|
+
endLine?: number;
|
|
526
|
+
endColumn?: number;
|
|
527
|
+
}>;
|
|
528
|
+
warnings: Array<{
|
|
529
|
+
message: string;
|
|
530
|
+
severity: 'error' | 'warning';
|
|
531
|
+
line: number;
|
|
532
|
+
column: number;
|
|
533
|
+
endLine?: number;
|
|
534
|
+
endColumn?: number;
|
|
535
|
+
}>;
|
|
536
|
+
};
|
|
537
|
+
/** Callback when Monaco marker counts change (from validate prop) */
|
|
538
|
+
onMarkerCounts?: (counts: {
|
|
539
|
+
errors: number;
|
|
540
|
+
warnings: number;
|
|
541
|
+
}) => void;
|
|
484
542
|
}
|
|
485
543
|
/**
|
|
486
544
|
* Code - Pure Monaco editor atom
|
|
@@ -514,7 +572,7 @@ interface CodeProps {
|
|
|
514
572
|
* autoHeight={{ min: 100, max: 600 }}
|
|
515
573
|
* />
|
|
516
574
|
*/
|
|
517
|
-
declare function Code({ code, language, onChange, disabled, lineNumbers, minimap, folding, wordWrap, className, beforeMount, onMount, autoHeight, fontSize, packages, sticky, ide, jsonSchema, }: CodeProps): react_jsx_runtime.JSX.Element;
|
|
575
|
+
declare function Code({ code, language, onChange, disabled, lineNumbers, minimap, folding, wordWrap, className, beforeMount, onMount, autoHeight, fontSize, packages, sticky, ide, jsonSchema, intellisenseContext, validate, onMarkerCounts, }: CodeProps): react_jsx_runtime.JSX.Element;
|
|
518
576
|
|
|
519
577
|
/**
|
|
520
578
|
* Tab with code content for CodeBox
|
|
@@ -538,6 +596,11 @@ interface CodeBoxProps extends Omit<CodeProps, 'code'> {
|
|
|
538
596
|
showCopy?: boolean;
|
|
539
597
|
showFormat?: boolean;
|
|
540
598
|
showSettings?: boolean;
|
|
599
|
+
/** Callback when validation issues change. Use to disable Save when errors > 0. */
|
|
600
|
+
onValidationIssues?: (counts: {
|
|
601
|
+
errors: number;
|
|
602
|
+
warnings: number;
|
|
603
|
+
}) => void;
|
|
541
604
|
footer?: React.ReactNode;
|
|
542
605
|
height?: string | number;
|
|
543
606
|
style?: React.CSSProperties;
|
|
@@ -582,7 +645,7 @@ interface CodeBoxProps extends Omit<CodeProps, 'code'> {
|
|
|
582
645
|
* showFormat
|
|
583
646
|
* />
|
|
584
647
|
*/
|
|
585
|
-
declare function CodeBox({ code, language, onChange, disabled, autoHeight, label, header, showHeader, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, showTrafficLights, showCopy, showFormat, showSettings, footer, height, style, className, ...codeProps }: CodeBoxProps): react_jsx_runtime.JSX.Element;
|
|
648
|
+
declare function CodeBox({ code, language, onChange, disabled, autoHeight, label, header, showHeader, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, showTrafficLights, showCopy, showFormat, showSettings, onValidationIssues, footer, height, style, className, ...codeProps }: CodeBoxProps): react_jsx_runtime.JSX.Element;
|
|
586
649
|
|
|
587
650
|
type CodeSnippetProps = Omit<CodeBoxProps, 'label' | 'showHeader'> & {
|
|
588
651
|
format?: boolean;
|
|
@@ -1754,6 +1817,120 @@ declare function registerJsonSchema(modelPath: string, schema: Record<string, un
|
|
|
1754
1817
|
*/
|
|
1755
1818
|
declare function unregisterJsonSchema(modelPath: string): void;
|
|
1756
1819
|
|
|
1820
|
+
interface MonacoSchemaExtension {
|
|
1821
|
+
defaultSnippets?: Array<{
|
|
1822
|
+
label: string;
|
|
1823
|
+
description?: string;
|
|
1824
|
+
markdownDescription?: string;
|
|
1825
|
+
body?: unknown;
|
|
1826
|
+
bodyText?: string;
|
|
1827
|
+
}>;
|
|
1828
|
+
markdownDescription?: string;
|
|
1829
|
+
enumDescriptions?: string[];
|
|
1830
|
+
markdownEnumDescriptions?: string[];
|
|
1831
|
+
deprecationMessage?: string;
|
|
1832
|
+
errorMessage?: string;
|
|
1833
|
+
patternErrorMessage?: string;
|
|
1834
|
+
doNotSuggest?: boolean;
|
|
1835
|
+
suggestSortText?: string;
|
|
1836
|
+
}
|
|
1837
|
+
type EnrichmentMap = Record<string, MonacoSchemaExtension>;
|
|
1838
|
+
/**
|
|
1839
|
+
* Deep-merges Monaco-specific JSON Schema extensions into a base schema.
|
|
1840
|
+
* Keys in the enrichment map are dot-paths (e.g., 'properties.sources').
|
|
1841
|
+
* Empty string '' targets the root. Does not mutate the original.
|
|
1842
|
+
*/
|
|
1843
|
+
declare function enrichSchema(baseSchema: Record<string, unknown>, enrichments: EnrichmentMap): Record<string, unknown>;
|
|
1844
|
+
|
|
1845
|
+
type AnySchema$2 = Record<string, any>;
|
|
1846
|
+
/**
|
|
1847
|
+
* Takes the base Flow.Setup JSON Schema (from @walkeros/core z.toJSONSchema())
|
|
1848
|
+
* and returns an enriched version with Monaco-specific extensions.
|
|
1849
|
+
*
|
|
1850
|
+
* The actual schema uses anyOf[0] at the top level.
|
|
1851
|
+
*/
|
|
1852
|
+
declare function enrichFlowSetupSchema(baseSchema: AnySchema$2): AnySchema$2;
|
|
1853
|
+
|
|
1854
|
+
type AnySchema$1 = Record<string, any>;
|
|
1855
|
+
/**
|
|
1856
|
+
* Returns an enriched JSON Schema for the walkerOS Contract editor.
|
|
1857
|
+
* Structure: { $tagging: number, entity: { action: JSONSchema } }
|
|
1858
|
+
*/
|
|
1859
|
+
declare function getEnrichedContractSchema(): AnySchema$1;
|
|
1860
|
+
|
|
1861
|
+
type AnySchema = Record<string, any>;
|
|
1862
|
+
declare function getVariablesSchema(): AnySchema;
|
|
1863
|
+
|
|
1864
|
+
type ReferenceType = 'variable' | 'definition' | 'secret' | 'env' | 'code';
|
|
1865
|
+
interface WalkerOSReference {
|
|
1866
|
+
type: ReferenceType;
|
|
1867
|
+
name: string;
|
|
1868
|
+
startIndex: number;
|
|
1869
|
+
endIndex: number;
|
|
1870
|
+
}
|
|
1871
|
+
declare const REFERENCE_PATTERNS: Array<{
|
|
1872
|
+
type: ReferenceType;
|
|
1873
|
+
regex: RegExp;
|
|
1874
|
+
className: string;
|
|
1875
|
+
}>;
|
|
1876
|
+
/**
|
|
1877
|
+
* Find all walkerOS reference patterns in text.
|
|
1878
|
+
* Used for both decorations and validation.
|
|
1879
|
+
*/
|
|
1880
|
+
declare function findWalkerOSReferences(text: string): WalkerOSReference[];
|
|
1881
|
+
/**
|
|
1882
|
+
* Apply walkerOS reference decorations to a Monaco editor.
|
|
1883
|
+
* Returns a cleanup function.
|
|
1884
|
+
*/
|
|
1885
|
+
declare function applyWalkerOSDecorations(editorInstance: editor.IStandaloneCodeEditor): () => void;
|
|
1886
|
+
/**
|
|
1887
|
+
* Register CSS styles for walkerOS reference decorations.
|
|
1888
|
+
* Call once on app init.
|
|
1889
|
+
*/
|
|
1890
|
+
declare function registerWalkerOSDecorationStyles(): void;
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* Update the IntelliSense context for a specific editor model.
|
|
1894
|
+
*/
|
|
1895
|
+
declare function setIntelliSenseContext(modelPath: string, context: IntelliSenseContext): void;
|
|
1896
|
+
/**
|
|
1897
|
+
* Remove context when editor unmounts.
|
|
1898
|
+
*/
|
|
1899
|
+
declare function removeIntelliSenseContext(modelPath: string): void;
|
|
1900
|
+
/**
|
|
1901
|
+
* Register the walkerOS CompletionItemProvider and HoverProvider for JSON.
|
|
1902
|
+
* Call once on app initialization. Safe to call multiple times (idempotent).
|
|
1903
|
+
*/
|
|
1904
|
+
declare function registerWalkerOSProviders(monaco: typeof monaco_editor): void;
|
|
1905
|
+
/**
|
|
1906
|
+
* Dispose all registered providers. Call on app teardown.
|
|
1907
|
+
*/
|
|
1908
|
+
declare function disposeWalkerOSProviders(): void;
|
|
1909
|
+
|
|
1910
|
+
interface ValidationIssue {
|
|
1911
|
+
message: string;
|
|
1912
|
+
severity: 'error' | 'warning' | 'info';
|
|
1913
|
+
startIndex: number;
|
|
1914
|
+
endIndex: number;
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
* Validate walkerOS references in JSON text against the current context.
|
|
1918
|
+
* Returns issues for dangling references and invalid cross-references.
|
|
1919
|
+
*/
|
|
1920
|
+
declare function validateWalkerOSReferences(text: string, context: Partial<IntelliSenseContext>): ValidationIssue[];
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* Extract IntelliSense context from a Flow.Setup JSON string.
|
|
1924
|
+
*
|
|
1925
|
+
* Parses the JSON, walks setup → configs → steps, and collects
|
|
1926
|
+
* all discoverable variables, definitions, step names, packages,
|
|
1927
|
+
* platform, and contract entities.
|
|
1928
|
+
*
|
|
1929
|
+
* Returns `{}` for invalid JSON or non-Flow structures.
|
|
1930
|
+
* Pure function — no side effects, no state.
|
|
1931
|
+
*/
|
|
1932
|
+
declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
|
|
1933
|
+
|
|
1757
1934
|
/**
|
|
1758
1935
|
* Formats captured function calls for display
|
|
1759
1936
|
*
|
|
@@ -1815,4 +1992,4 @@ declare function createRawCapture(destinationEnv: unknown): {
|
|
|
1815
1992
|
}[];
|
|
1816
1993
|
};
|
|
1817
1994
|
|
|
1818
|
-
export { Alert, type AlertProps, ArchitectureFlow, type ArchitectureFlowProps, Box, type BoxProps, type BoxTab, BrowserBox, type BrowserBoxProps, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, Code, CodeBox, type CodeBoxProps, type CodeBoxTab, type CodeProps, CodeSnippet, type CodeSnippetProps, CollectorBox, type CollectorBoxProps, ConfigEditor, type ConfigEditorBoxProps, ConfigFormCard, type ConfigFormCardProps, DESTINATION_CONFIG_STRUCTURE, DestinationDemo, type DestinationDemoProps, DestinationInitDemo as DestinationInit, DestinationInitDemo, type DestinationInitDemoProps, DestinationDemo as DestinationPush, type DestinationSchemas, Dropdown, DropdownDivider, type DropdownDividerProps, DropdownItem, type DropdownItemProps, type DropdownProps, type ExplorerTheme, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, FlowSelector, type FlowSelectorFlow, type FlowSelectorProps, type FlowStageConfig, Footer, type FooterProps, FormCard, type FormCardProps, FormField, type FormFieldProps, FormInput, type FormInputProps, FormTextarea, type FormTextareaProps, Grid, type GridProps, Header, type HeaderProps, type HintItem, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, MAPPING_RULE_STRUCTURE, MDXCode, MDXProvider, MappingCode, type MappingCodeProps, MappingDemo, type MappingDemoProps, MappingKeyField, MappingKeyWidget, PanelHints, type PanelHintsProps, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, Spinner, type SpinnerProps, SplitButton, type SplitButtonAction, type SplitButtonProps, SubmitButton, type SubmitButtonProps, type UseDropdownReturn, captureDestinationPush, cn, createCaptureFn, createFbqDestination, createGtagDestination, createPlausibleDestination, createRawCapture, formatCapturedCalls, generateModelPath, initializeMonacoTypes, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerJsonSchema, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSTypes, unregisterJsonSchema, useDropdown };
|
|
1995
|
+
export { Alert, type AlertProps, ArchitectureFlow, type ArchitectureFlowProps, Box, type BoxProps, type BoxTab, BrowserBox, type BrowserBoxProps, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, Code, CodeBox, type CodeBoxProps, type CodeBoxTab, type CodeProps, CodeSnippet, type CodeSnippetProps, CollectorBox, type CollectorBoxProps, ConfigEditor, type ConfigEditorBoxProps, ConfigFormCard, type ConfigFormCardProps, DESTINATION_CONFIG_STRUCTURE, DestinationDemo, type DestinationDemoProps, DestinationInitDemo as DestinationInit, DestinationInitDemo, type DestinationInitDemoProps, DestinationDemo as DestinationPush, type DestinationSchemas, Dropdown, DropdownDivider, type DropdownDividerProps, DropdownItem, type DropdownItemProps, type DropdownProps, type ExplorerTheme, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, FlowSelector, type FlowSelectorFlow, type FlowSelectorProps, type FlowStageConfig, Footer, type FooterProps, FormCard, type FormCardProps, FormField, type FormFieldProps, FormInput, type FormInputProps, FormTextarea, type FormTextareaProps, Grid, type GridProps, Header, type HeaderProps, type HintItem, type IntelliSenseContext, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, MAPPING_RULE_STRUCTURE, MDXCode, MDXProvider, MappingCode, type MappingCodeProps, MappingDemo, type MappingDemoProps, MappingKeyField, MappingKeyWidget, type MonacoSchemaExtension, type PackageInfo, PanelHints, type PanelHintsProps, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, REFERENCE_PATTERNS, Spinner, type SpinnerProps, SplitButton, type SplitButtonAction, type SplitButtonProps, SubmitButton, type SubmitButtonProps, type UseDropdownReturn, applyWalkerOSDecorations, captureDestinationPush, cn, createCaptureFn, createFbqDestination, createGtagDestination, createPlausibleDestination, createRawCapture, disposeWalkerOSProviders, enrichFlowSetupSchema, enrichSchema, extractFlowIntelliSenseContext, findWalkerOSReferences, formatCapturedCalls, generateModelPath, getEnrichedContractSchema, getVariablesSchema, initializeMonacoTypes, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerJsonSchema, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSDecorationStyles, registerWalkerOSProviders, registerWalkerOSTypes, removeIntelliSenseContext, setIntelliSenseContext, unregisterJsonSchema, useDropdown, validateWalkerOSReferences };
|
package/dist/index.d.ts
CHANGED
|
@@ -85,6 +85,15 @@ export type { ExplorerTheme } from './themes';
|
|
|
85
85
|
export { registerWalkerOSTypes, initializeMonacoTypes, loadPackageTypes, loadTypeLibraryFromURL, } from './utils/monaco-types';
|
|
86
86
|
export type { LoadPackageTypesOptions } from './utils/monaco-types';
|
|
87
87
|
export { registerJsonSchema, unregisterJsonSchema, generateModelPath, } from './utils/monaco-json-schema';
|
|
88
|
+
export { enrichSchema, type MonacoSchemaExtension, } from './utils/monaco-schema-enrichment';
|
|
89
|
+
export { enrichFlowSetupSchema } from './utils/monaco-schema-flow-setup';
|
|
90
|
+
export { getEnrichedContractSchema } from './utils/monaco-schema-contract';
|
|
91
|
+
export { getVariablesSchema } from './utils/monaco-schema-variables';
|
|
92
|
+
export { findWalkerOSReferences, applyWalkerOSDecorations, registerWalkerOSDecorationStyles, REFERENCE_PATTERNS, } from './utils/monaco-walkeros-decorations';
|
|
93
|
+
export type { IntelliSenseContext, PackageInfo } from './types/intellisense';
|
|
94
|
+
export { registerWalkerOSProviders, disposeWalkerOSProviders, setIntelliSenseContext, removeIntelliSenseContext, } from './utils/monaco-walkeros-providers';
|
|
95
|
+
export { validateWalkerOSReferences } from './utils/monaco-walkeros-markers';
|
|
96
|
+
export { extractFlowIntelliSenseContext } from './utils/monaco-intellisense-flow-extractor';
|
|
88
97
|
export { createGtagDestination, createFbqDestination, createPlausibleDestination, } from './helpers/destinations';
|
|
89
98
|
export { captureDestinationPush, formatCapturedCalls, createRawCapture, } from './helpers/capture';
|
|
90
99
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EACL,eAAe,EACf,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,YAAY,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AACvE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,YAAY,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AACvF,YAAY,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAGvF,OAAO,EAAE,eAAe,IAAI,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACxF,OA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,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAG5F,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,GAC3B,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -58,6 +58,17 @@ export { palenightTheme, lighthouseTheme, registerPalenightTheme, registerLighth
|
|
|
58
58
|
export { registerWalkerOSTypes, initializeMonacoTypes, loadPackageTypes, loadTypeLibraryFromURL, } from './utils/monaco-types';
|
|
59
59
|
// Monaco JSON Schema registry
|
|
60
60
|
export { registerJsonSchema, unregisterJsonSchema, generateModelPath, } from './utils/monaco-json-schema';
|
|
61
|
+
// Schema enrichment
|
|
62
|
+
export { enrichSchema, } from './utils/monaco-schema-enrichment';
|
|
63
|
+
export { enrichFlowSetupSchema } from './utils/monaco-schema-flow-setup';
|
|
64
|
+
export { getEnrichedContractSchema } from './utils/monaco-schema-contract';
|
|
65
|
+
export { getVariablesSchema } from './utils/monaco-schema-variables';
|
|
66
|
+
// walkerOS reference decorations
|
|
67
|
+
export { findWalkerOSReferences, applyWalkerOSDecorations, registerWalkerOSDecorationStyles, REFERENCE_PATTERNS, } from './utils/monaco-walkeros-decorations';
|
|
68
|
+
// IntelliSense providers
|
|
69
|
+
export { registerWalkerOSProviders, disposeWalkerOSProviders, setIntelliSenseContext, removeIntelliSenseContext, } from './utils/monaco-walkeros-providers';
|
|
70
|
+
export { validateWalkerOSReferences } from './utils/monaco-walkeros-markers';
|
|
71
|
+
export { extractFlowIntelliSenseContext } from './utils/monaco-intellisense-flow-extractor';
|
|
61
72
|
// Destination helpers
|
|
62
73
|
export { createGtagDestination, createFbqDestination, createPlausibleDestination, } from './helpers/destinations';
|
|
63
74
|
// Capture utilities for destination demos (captureDestinationPush still exported for DestinationDemo)
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|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