@walkeros/explorer 3.4.2 → 4.0.0-next-1777463920154
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.cts +85 -10
- package/dist/index.d.ts +85 -10
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +70 -3
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -4,9 +4,10 @@ import React, { ReactNode, FC, PropsWithChildren, RefObject } from 'react';
|
|
|
4
4
|
import * as monaco_editor from 'monaco-editor';
|
|
5
5
|
import { editor } from 'monaco-editor';
|
|
6
6
|
import { RJSFSchema } from '@rjsf/utils';
|
|
7
|
+
import { Monaco } from '@monaco-editor/react';
|
|
8
|
+
export { Monaco } from '@monaco-editor/react';
|
|
7
9
|
export { Icon } from '@iconify/react';
|
|
8
10
|
import { ClassValue } from 'clsx';
|
|
9
|
-
import { Monaco } from '@monaco-editor/react';
|
|
10
11
|
|
|
11
12
|
interface DemoEnv extends Destination.BaseEnv {
|
|
12
13
|
elb: (output: string) => void;
|
|
@@ -194,6 +195,10 @@ interface IntelliSenseContext {
|
|
|
194
195
|
packages?: PackageInfo[];
|
|
195
196
|
/** Current platform context (web or server) */
|
|
196
197
|
platform?: 'web' | 'server';
|
|
198
|
+
/** Store IDs from the active flow's `stores` map. Enables `$store.` completion. */
|
|
199
|
+
stores?: string[];
|
|
200
|
+
/** Known environment variable names. If omitted, `$env.` offers only the prefix. */
|
|
201
|
+
envNames?: string[];
|
|
197
202
|
}
|
|
198
203
|
|
|
199
204
|
interface CodeProps {
|
|
@@ -359,6 +364,37 @@ interface CodeBoxProps extends Omit<CodeProps, 'code'> {
|
|
|
359
364
|
*/
|
|
360
365
|
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;
|
|
361
366
|
|
|
367
|
+
interface CodeDiffBoxProps {
|
|
368
|
+
original: string;
|
|
369
|
+
modified: string;
|
|
370
|
+
language?: string;
|
|
371
|
+
label?: string;
|
|
372
|
+
header?: string;
|
|
373
|
+
showHeader?: boolean;
|
|
374
|
+
showTrafficLights?: boolean;
|
|
375
|
+
/** Show copy-modified button in header. Default true. */
|
|
376
|
+
showCopy?: boolean;
|
|
377
|
+
/** Show split|inline toggle in header. Default true. */
|
|
378
|
+
showViewToggle?: boolean;
|
|
379
|
+
/** Show +N/-N/~N summary badges in header. Default false. */
|
|
380
|
+
showSummary?: boolean;
|
|
381
|
+
/** Initial view mode. Default 'split'. */
|
|
382
|
+
defaultView?: 'split' | 'inline';
|
|
383
|
+
footer?: React.ReactNode;
|
|
384
|
+
height?: string | number;
|
|
385
|
+
style?: React.CSSProperties;
|
|
386
|
+
className?: string;
|
|
387
|
+
onMount?: (diffEditor: editor.IStandaloneDiffEditor) => void;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* CodeDiffBox, read-only diff viewer with Box chrome.
|
|
391
|
+
*
|
|
392
|
+
* Generic: diffs any Monaco-supported language. Mirrors CodeBox's API where
|
|
393
|
+
* overlapping. Use for flow.json diffs, inline TypeScript code diffs, or any
|
|
394
|
+
* two strings of source.
|
|
395
|
+
*/
|
|
396
|
+
declare function CodeDiffBox({ original, modified, language, label, header, showHeader, showTrafficLights, showCopy, showViewToggle, showSummary, defaultView, footer, height, style, className, onMount, }: CodeDiffBoxProps): react_jsx_runtime.JSX.Element;
|
|
397
|
+
|
|
362
398
|
type CodeSnippetProps = Omit<CodeBoxProps, 'label' | 'showHeader'> & {
|
|
363
399
|
format?: boolean;
|
|
364
400
|
};
|
|
@@ -491,8 +527,10 @@ declare function FlowMap({ stageBefore, sources, preTransformers, collector, pos
|
|
|
491
527
|
interface PropertyTableProps {
|
|
492
528
|
schema: RJSFSchema;
|
|
493
529
|
className?: string;
|
|
530
|
+
/** Message to display when the schema has no properties. Default: 'No specific properties available.' */
|
|
531
|
+
emptyMessage?: string;
|
|
494
532
|
}
|
|
495
|
-
declare function PropertyTable({ schema, className }: PropertyTableProps): react_jsx_runtime.JSX.Element;
|
|
533
|
+
declare function PropertyTable({ schema, className, emptyMessage, }: PropertyTableProps): react_jsx_runtime.JSX.Element;
|
|
496
534
|
|
|
497
535
|
interface DropdownProps {
|
|
498
536
|
/** Trigger element (button, link, etc.) */
|
|
@@ -629,6 +667,39 @@ interface PreviewProps {
|
|
|
629
667
|
*/
|
|
630
668
|
declare function Preview({ html, css, elb, label, }: PreviewProps): react_jsx_runtime.JSX.Element;
|
|
631
669
|
|
|
670
|
+
interface CodeDiffSummary {
|
|
671
|
+
/** Count of hunks that exist only in modified (pure additions). */
|
|
672
|
+
added: number;
|
|
673
|
+
/** Count of hunks that exist only in original (pure deletions). */
|
|
674
|
+
deleted: number;
|
|
675
|
+
/** Count of hunks where both sides have differing content. */
|
|
676
|
+
modified: number;
|
|
677
|
+
}
|
|
678
|
+
interface CodeDiffProps {
|
|
679
|
+
original: string;
|
|
680
|
+
modified: string;
|
|
681
|
+
/** Any Monaco language id. Default 'json'. */
|
|
682
|
+
language?: string;
|
|
683
|
+
/** Height value passed to DiffEditor. Defaults to '100%'. Parent must size. */
|
|
684
|
+
height?: string | number;
|
|
685
|
+
/** Split view on (default) or inline. Toggle by updating the prop. */
|
|
686
|
+
renderSideBySide?: boolean;
|
|
687
|
+
/** Fires on every Monaco diff update (debounced by Monaco). */
|
|
688
|
+
onSummaryChange?: (summary: CodeDiffSummary) => void;
|
|
689
|
+
/** Escape hatch. */
|
|
690
|
+
beforeMount?: (monaco: Monaco) => void;
|
|
691
|
+
/** Escape hatch — receives the diff editor instance. */
|
|
692
|
+
onMount?: (diffEditor: editor.IStandaloneDiffEditor) => void;
|
|
693
|
+
className?: string;
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* CodeDiff — read-only Monaco DiffEditor atom.
|
|
697
|
+
*
|
|
698
|
+
* Generic: diffs any Monaco-supported language. Theme follows [data-theme].
|
|
699
|
+
* Use <CodeDiffBox> for the full chrome (header, summary, toggle, copy).
|
|
700
|
+
*/
|
|
701
|
+
declare function CodeDiff({ original, modified, language, height, renderSideBySide, onSummaryChange, beforeMount, onMount, className, }: CodeDiffProps): react_jsx_runtime.JSX.Element;
|
|
702
|
+
|
|
632
703
|
interface CodeStaticProps {
|
|
633
704
|
code: string;
|
|
634
705
|
language?: string;
|
|
@@ -1103,6 +1174,8 @@ interface LoadPackageTypesOptions {
|
|
|
1103
1174
|
/** Version to load (e.g., '0.1.0', 'latest') */
|
|
1104
1175
|
version?: string;
|
|
1105
1176
|
}
|
|
1177
|
+
declare function setPackageTypesBaseUrl(url: string | undefined): void;
|
|
1178
|
+
declare function resolveTypesUrl(packageName: string, version: string): string;
|
|
1106
1179
|
declare function loadPackageTypes(monaco: Monaco, options: LoadPackageTypesOptions): Promise<boolean>;
|
|
1107
1180
|
/**
|
|
1108
1181
|
* Simple helper to register only walkerOS core types
|
|
@@ -1179,14 +1252,16 @@ type EnrichmentMap = Record<string, MonacoSchemaExtension>;
|
|
|
1179
1252
|
* Keys in the enrichment map are dot-paths (e.g., 'properties.sources').
|
|
1180
1253
|
* Empty string '' targets the root. Does not mutate the original.
|
|
1181
1254
|
*/
|
|
1182
|
-
declare function enrichSchema
|
|
1255
|
+
declare function enrichSchema<T extends Record<string, unknown>>(baseSchema: T, enrichments: EnrichmentMap): T;
|
|
1183
1256
|
|
|
1184
1257
|
type AnySchema$2 = Record<string, any>;
|
|
1185
1258
|
/**
|
|
1186
|
-
* Takes the base Flow.
|
|
1259
|
+
* Takes the base Flow.Json JSON Schema (from @walkeros/core z.toJSONSchema())
|
|
1187
1260
|
* and returns an enriched version with Monaco-specific extensions.
|
|
1188
1261
|
*
|
|
1189
|
-
* The actual schema uses
|
|
1262
|
+
* The actual schema uses { allOf: [{ $ref: '#/definitions/FlowJson' }], definitions: {...} }.
|
|
1263
|
+
* Root walkeros.config.json properties live under definitions.FlowJson.properties.
|
|
1264
|
+
* Per-flow properties live under definitions.Flow.properties.
|
|
1190
1265
|
*/
|
|
1191
1266
|
declare function enrichFlowConfigSchema(baseSchema: AnySchema$2): AnySchema$2;
|
|
1192
1267
|
|
|
@@ -1200,7 +1275,7 @@ declare function getEnrichedContractSchema(): AnySchema$1;
|
|
|
1200
1275
|
type AnySchema = Record<string, any>;
|
|
1201
1276
|
declare function getVariablesSchema(): AnySchema;
|
|
1202
1277
|
|
|
1203
|
-
type ReferenceType = 'variable' | 'definition' | 'secret' | 'env' | 'code';
|
|
1278
|
+
type ReferenceType = 'variable' | 'definition' | 'secret' | 'env' | 'store' | 'contract' | 'code';
|
|
1204
1279
|
interface WalkerOSReference {
|
|
1205
1280
|
type: ReferenceType;
|
|
1206
1281
|
name: string;
|
|
@@ -1259,15 +1334,15 @@ interface ValidationIssue {
|
|
|
1259
1334
|
declare function validateWalkerOSReferences(text: string, context: Partial<IntelliSenseContext>): ValidationIssue[];
|
|
1260
1335
|
|
|
1261
1336
|
/**
|
|
1262
|
-
* Extract IntelliSense context from a Flow.
|
|
1337
|
+
* Extract IntelliSense context from a Flow.Json JSON string.
|
|
1263
1338
|
*
|
|
1264
|
-
* Parses the JSON, walks
|
|
1339
|
+
* Parses the JSON, walks root → flow → steps, and collects
|
|
1265
1340
|
* all discoverable variables, definitions, step names, packages,
|
|
1266
1341
|
* platform, and contract entities.
|
|
1267
1342
|
*
|
|
1268
1343
|
* Returns `{}` for invalid JSON or non-Flow structures.
|
|
1269
|
-
* Pure function
|
|
1344
|
+
* Pure function, no side effects, no state.
|
|
1270
1345
|
*/
|
|
1271
1346
|
declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
|
|
1272
1347
|
|
|
1273
|
-
export { 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, CodeStatic, type CodeStaticProps, CodeView, type CodeViewProps, type CodeViewTab, CollectorBox, type CollectorBoxProps, Dropdown, DropdownDivider, type DropdownDividerProps, DropdownItem, type DropdownItemProps, type DropdownProps, type ExplorerTheme, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, type FlowStageConfig, Footer, type FooterProps, Grid, type GridProps, Header, type HeaderProps, type IntelliSenseContext, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, MDXCode, MDXProvider, type MonacoSchemaExtension, type PackageInfo, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, REFERENCE_PATTERNS, Spinner, type SpinnerProps, type UseDropdownReturn, applyWalkerOSDecorations, cn, createFbqDestination, createGtagDestination, createPlausibleDestination, disposeWalkerOSProviders, enrichFlowConfigSchema, enrichSchema, extractFlowIntelliSenseContext, findWalkerOSReferences, generateModelPath, getEnrichedContractSchema, getVariablesSchema, initializeMonacoTypes, isMonacoCancellation, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerJsonSchema, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSDecorationStyles, registerWalkerOSProviders, registerWalkerOSTypes, removeIntelliSenseContext, setIntelliSenseContext, unregisterJsonSchema, useDropdown, validateWalkerOSReferences };
|
|
1348
|
+
export { 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, CodeDiff, CodeDiffBox, type CodeDiffBoxProps, type CodeDiffProps, type CodeDiffSummary, type CodeProps, CodeSnippet, type CodeSnippetProps, CodeStatic, type CodeStaticProps, CodeView, type CodeViewProps, type CodeViewTab, CollectorBox, type CollectorBoxProps, Dropdown, DropdownDivider, type DropdownDividerProps, DropdownItem, type DropdownItemProps, type DropdownProps, type ExplorerTheme, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, type FlowStageConfig, Footer, type FooterProps, Grid, type GridProps, Header, type HeaderProps, type IntelliSenseContext, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, MDXCode, MDXProvider, type MonacoSchemaExtension, type PackageInfo, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, REFERENCE_PATTERNS, Spinner, type SpinnerProps, type UseDropdownReturn, applyWalkerOSDecorations, cn, createFbqDestination, createGtagDestination, createPlausibleDestination, disposeWalkerOSProviders, enrichFlowConfigSchema, enrichSchema, extractFlowIntelliSenseContext, findWalkerOSReferences, generateModelPath, getEnrichedContractSchema, getVariablesSchema, initializeMonacoTypes, isMonacoCancellation, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerJsonSchema, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSDecorationStyles, registerWalkerOSProviders, registerWalkerOSTypes, removeIntelliSenseContext, resolveTypesUrl, setIntelliSenseContext, setPackageTypesBaseUrl, unregisterJsonSchema, useDropdown, validateWalkerOSReferences };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ import React, { ReactNode, FC, PropsWithChildren, RefObject } from 'react';
|
|
|
4
4
|
import * as monaco_editor from 'monaco-editor';
|
|
5
5
|
import { editor } from 'monaco-editor';
|
|
6
6
|
import { RJSFSchema } from '@rjsf/utils';
|
|
7
|
+
import { Monaco } from '@monaco-editor/react';
|
|
8
|
+
export { Monaco } from '@monaco-editor/react';
|
|
7
9
|
export { Icon } from '@iconify/react';
|
|
8
10
|
import { ClassValue } from 'clsx';
|
|
9
|
-
import { Monaco } from '@monaco-editor/react';
|
|
10
11
|
|
|
11
12
|
interface DemoEnv extends Destination.BaseEnv {
|
|
12
13
|
elb: (output: string) => void;
|
|
@@ -194,6 +195,10 @@ interface IntelliSenseContext {
|
|
|
194
195
|
packages?: PackageInfo[];
|
|
195
196
|
/** Current platform context (web or server) */
|
|
196
197
|
platform?: 'web' | 'server';
|
|
198
|
+
/** Store IDs from the active flow's `stores` map. Enables `$store.` completion. */
|
|
199
|
+
stores?: string[];
|
|
200
|
+
/** Known environment variable names. If omitted, `$env.` offers only the prefix. */
|
|
201
|
+
envNames?: string[];
|
|
197
202
|
}
|
|
198
203
|
|
|
199
204
|
interface CodeProps {
|
|
@@ -359,6 +364,37 @@ interface CodeBoxProps extends Omit<CodeProps, 'code'> {
|
|
|
359
364
|
*/
|
|
360
365
|
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;
|
|
361
366
|
|
|
367
|
+
interface CodeDiffBoxProps {
|
|
368
|
+
original: string;
|
|
369
|
+
modified: string;
|
|
370
|
+
language?: string;
|
|
371
|
+
label?: string;
|
|
372
|
+
header?: string;
|
|
373
|
+
showHeader?: boolean;
|
|
374
|
+
showTrafficLights?: boolean;
|
|
375
|
+
/** Show copy-modified button in header. Default true. */
|
|
376
|
+
showCopy?: boolean;
|
|
377
|
+
/** Show split|inline toggle in header. Default true. */
|
|
378
|
+
showViewToggle?: boolean;
|
|
379
|
+
/** Show +N/-N/~N summary badges in header. Default false. */
|
|
380
|
+
showSummary?: boolean;
|
|
381
|
+
/** Initial view mode. Default 'split'. */
|
|
382
|
+
defaultView?: 'split' | 'inline';
|
|
383
|
+
footer?: React.ReactNode;
|
|
384
|
+
height?: string | number;
|
|
385
|
+
style?: React.CSSProperties;
|
|
386
|
+
className?: string;
|
|
387
|
+
onMount?: (diffEditor: editor.IStandaloneDiffEditor) => void;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* CodeDiffBox, read-only diff viewer with Box chrome.
|
|
391
|
+
*
|
|
392
|
+
* Generic: diffs any Monaco-supported language. Mirrors CodeBox's API where
|
|
393
|
+
* overlapping. Use for flow.json diffs, inline TypeScript code diffs, or any
|
|
394
|
+
* two strings of source.
|
|
395
|
+
*/
|
|
396
|
+
declare function CodeDiffBox({ original, modified, language, label, header, showHeader, showTrafficLights, showCopy, showViewToggle, showSummary, defaultView, footer, height, style, className, onMount, }: CodeDiffBoxProps): react_jsx_runtime.JSX.Element;
|
|
397
|
+
|
|
362
398
|
type CodeSnippetProps = Omit<CodeBoxProps, 'label' | 'showHeader'> & {
|
|
363
399
|
format?: boolean;
|
|
364
400
|
};
|
|
@@ -491,8 +527,10 @@ declare function FlowMap({ stageBefore, sources, preTransformers, collector, pos
|
|
|
491
527
|
interface PropertyTableProps {
|
|
492
528
|
schema: RJSFSchema;
|
|
493
529
|
className?: string;
|
|
530
|
+
/** Message to display when the schema has no properties. Default: 'No specific properties available.' */
|
|
531
|
+
emptyMessage?: string;
|
|
494
532
|
}
|
|
495
|
-
declare function PropertyTable({ schema, className }: PropertyTableProps): react_jsx_runtime.JSX.Element;
|
|
533
|
+
declare function PropertyTable({ schema, className, emptyMessage, }: PropertyTableProps): react_jsx_runtime.JSX.Element;
|
|
496
534
|
|
|
497
535
|
interface DropdownProps {
|
|
498
536
|
/** Trigger element (button, link, etc.) */
|
|
@@ -629,6 +667,39 @@ interface PreviewProps {
|
|
|
629
667
|
*/
|
|
630
668
|
declare function Preview({ html, css, elb, label, }: PreviewProps): react_jsx_runtime.JSX.Element;
|
|
631
669
|
|
|
670
|
+
interface CodeDiffSummary {
|
|
671
|
+
/** Count of hunks that exist only in modified (pure additions). */
|
|
672
|
+
added: number;
|
|
673
|
+
/** Count of hunks that exist only in original (pure deletions). */
|
|
674
|
+
deleted: number;
|
|
675
|
+
/** Count of hunks where both sides have differing content. */
|
|
676
|
+
modified: number;
|
|
677
|
+
}
|
|
678
|
+
interface CodeDiffProps {
|
|
679
|
+
original: string;
|
|
680
|
+
modified: string;
|
|
681
|
+
/** Any Monaco language id. Default 'json'. */
|
|
682
|
+
language?: string;
|
|
683
|
+
/** Height value passed to DiffEditor. Defaults to '100%'. Parent must size. */
|
|
684
|
+
height?: string | number;
|
|
685
|
+
/** Split view on (default) or inline. Toggle by updating the prop. */
|
|
686
|
+
renderSideBySide?: boolean;
|
|
687
|
+
/** Fires on every Monaco diff update (debounced by Monaco). */
|
|
688
|
+
onSummaryChange?: (summary: CodeDiffSummary) => void;
|
|
689
|
+
/** Escape hatch. */
|
|
690
|
+
beforeMount?: (monaco: Monaco) => void;
|
|
691
|
+
/** Escape hatch — receives the diff editor instance. */
|
|
692
|
+
onMount?: (diffEditor: editor.IStandaloneDiffEditor) => void;
|
|
693
|
+
className?: string;
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* CodeDiff — read-only Monaco DiffEditor atom.
|
|
697
|
+
*
|
|
698
|
+
* Generic: diffs any Monaco-supported language. Theme follows [data-theme].
|
|
699
|
+
* Use <CodeDiffBox> for the full chrome (header, summary, toggle, copy).
|
|
700
|
+
*/
|
|
701
|
+
declare function CodeDiff({ original, modified, language, height, renderSideBySide, onSummaryChange, beforeMount, onMount, className, }: CodeDiffProps): react_jsx_runtime.JSX.Element;
|
|
702
|
+
|
|
632
703
|
interface CodeStaticProps {
|
|
633
704
|
code: string;
|
|
634
705
|
language?: string;
|
|
@@ -1103,6 +1174,8 @@ interface LoadPackageTypesOptions {
|
|
|
1103
1174
|
/** Version to load (e.g., '0.1.0', 'latest') */
|
|
1104
1175
|
version?: string;
|
|
1105
1176
|
}
|
|
1177
|
+
declare function setPackageTypesBaseUrl(url: string | undefined): void;
|
|
1178
|
+
declare function resolveTypesUrl(packageName: string, version: string): string;
|
|
1106
1179
|
declare function loadPackageTypes(monaco: Monaco, options: LoadPackageTypesOptions): Promise<boolean>;
|
|
1107
1180
|
/**
|
|
1108
1181
|
* Simple helper to register only walkerOS core types
|
|
@@ -1179,14 +1252,16 @@ type EnrichmentMap = Record<string, MonacoSchemaExtension>;
|
|
|
1179
1252
|
* Keys in the enrichment map are dot-paths (e.g., 'properties.sources').
|
|
1180
1253
|
* Empty string '' targets the root. Does not mutate the original.
|
|
1181
1254
|
*/
|
|
1182
|
-
declare function enrichSchema
|
|
1255
|
+
declare function enrichSchema<T extends Record<string, unknown>>(baseSchema: T, enrichments: EnrichmentMap): T;
|
|
1183
1256
|
|
|
1184
1257
|
type AnySchema$2 = Record<string, any>;
|
|
1185
1258
|
/**
|
|
1186
|
-
* Takes the base Flow.
|
|
1259
|
+
* Takes the base Flow.Json JSON Schema (from @walkeros/core z.toJSONSchema())
|
|
1187
1260
|
* and returns an enriched version with Monaco-specific extensions.
|
|
1188
1261
|
*
|
|
1189
|
-
* The actual schema uses
|
|
1262
|
+
* The actual schema uses { allOf: [{ $ref: '#/definitions/FlowJson' }], definitions: {...} }.
|
|
1263
|
+
* Root walkeros.config.json properties live under definitions.FlowJson.properties.
|
|
1264
|
+
* Per-flow properties live under definitions.Flow.properties.
|
|
1190
1265
|
*/
|
|
1191
1266
|
declare function enrichFlowConfigSchema(baseSchema: AnySchema$2): AnySchema$2;
|
|
1192
1267
|
|
|
@@ -1200,7 +1275,7 @@ declare function getEnrichedContractSchema(): AnySchema$1;
|
|
|
1200
1275
|
type AnySchema = Record<string, any>;
|
|
1201
1276
|
declare function getVariablesSchema(): AnySchema;
|
|
1202
1277
|
|
|
1203
|
-
type ReferenceType = 'variable' | 'definition' | 'secret' | 'env' | 'code';
|
|
1278
|
+
type ReferenceType = 'variable' | 'definition' | 'secret' | 'env' | 'store' | 'contract' | 'code';
|
|
1204
1279
|
interface WalkerOSReference {
|
|
1205
1280
|
type: ReferenceType;
|
|
1206
1281
|
name: string;
|
|
@@ -1259,15 +1334,15 @@ interface ValidationIssue {
|
|
|
1259
1334
|
declare function validateWalkerOSReferences(text: string, context: Partial<IntelliSenseContext>): ValidationIssue[];
|
|
1260
1335
|
|
|
1261
1336
|
/**
|
|
1262
|
-
* Extract IntelliSense context from a Flow.
|
|
1337
|
+
* Extract IntelliSense context from a Flow.Json JSON string.
|
|
1263
1338
|
*
|
|
1264
|
-
* Parses the JSON, walks
|
|
1339
|
+
* Parses the JSON, walks root → flow → steps, and collects
|
|
1265
1340
|
* all discoverable variables, definitions, step names, packages,
|
|
1266
1341
|
* platform, and contract entities.
|
|
1267
1342
|
*
|
|
1268
1343
|
* Returns `{}` for invalid JSON or non-Flow structures.
|
|
1269
|
-
* Pure function
|
|
1344
|
+
* Pure function, no side effects, no state.
|
|
1270
1345
|
*/
|
|
1271
1346
|
declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
|
|
1272
1347
|
|
|
1273
|
-
export { 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, CodeStatic, type CodeStaticProps, CodeView, type CodeViewProps, type CodeViewTab, CollectorBox, type CollectorBoxProps, Dropdown, DropdownDivider, type DropdownDividerProps, DropdownItem, type DropdownItemProps, type DropdownProps, type ExplorerTheme, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, type FlowStageConfig, Footer, type FooterProps, Grid, type GridProps, Header, type HeaderProps, type IntelliSenseContext, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, MDXCode, MDXProvider, type MonacoSchemaExtension, type PackageInfo, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, REFERENCE_PATTERNS, Spinner, type SpinnerProps, type UseDropdownReturn, applyWalkerOSDecorations, cn, createFbqDestination, createGtagDestination, createPlausibleDestination, disposeWalkerOSProviders, enrichFlowConfigSchema, enrichSchema, extractFlowIntelliSenseContext, findWalkerOSReferences, generateModelPath, getEnrichedContractSchema, getVariablesSchema, initializeMonacoTypes, isMonacoCancellation, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerJsonSchema, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSDecorationStyles, registerWalkerOSProviders, registerWalkerOSTypes, removeIntelliSenseContext, setIntelliSenseContext, unregisterJsonSchema, useDropdown, validateWalkerOSReferences };
|
|
1348
|
+
export { 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, CodeDiff, CodeDiffBox, type CodeDiffBoxProps, type CodeDiffProps, type CodeDiffSummary, type CodeProps, CodeSnippet, type CodeSnippetProps, CodeStatic, type CodeStaticProps, CodeView, type CodeViewProps, type CodeViewTab, CollectorBox, type CollectorBoxProps, Dropdown, DropdownDivider, type DropdownDividerProps, DropdownItem, type DropdownItemProps, type DropdownProps, type ExplorerTheme, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, type FlowStageConfig, Footer, type FooterProps, Grid, type GridProps, Header, type HeaderProps, type IntelliSenseContext, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, MDXCode, MDXProvider, type MonacoSchemaExtension, type PackageInfo, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, REFERENCE_PATTERNS, Spinner, type SpinnerProps, type UseDropdownReturn, applyWalkerOSDecorations, cn, createFbqDestination, createGtagDestination, createPlausibleDestination, disposeWalkerOSProviders, enrichFlowConfigSchema, enrichSchema, extractFlowIntelliSenseContext, findWalkerOSReferences, generateModelPath, getEnrichedContractSchema, getVariablesSchema, initializeMonacoTypes, isMonacoCancellation, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerJsonSchema, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSDecorationStyles, registerWalkerOSProviders, registerWalkerOSTypes, removeIntelliSenseContext, resolveTypesUrl, setIntelliSenseContext, setPackageTypesBaseUrl, unregisterJsonSchema, useDropdown, validateWalkerOSReferences };
|