@walkeros/explorer 4.1.0 → 4.1.1-next-1779822275564
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/CHANGELOG.md +24 -0
- package/dist/index.d.cts +47 -1
- package/dist/index.d.ts +47 -1
- 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/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @walkeros/explorer
|
|
2
2
|
|
|
3
|
+
## 4.1.1-next-1779822275564
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b0279ee: Export the `$`-ref completion builders (`getVariableCompletions`,
|
|
8
|
+
`getEnvCompletions`, `getStoreCompletions`, `getFlowCompletions`,
|
|
9
|
+
`getSecretCompletions`) and the `CompletionEntry` type from the package barrel
|
|
10
|
+
so custom inputs can reuse them outside Monaco.
|
|
11
|
+
- b0279ee: Export `getMappingPathCompletions` and `getContractCompletions` so
|
|
12
|
+
custom form inputs can seed contract-driven path and `$contract` reference
|
|
13
|
+
suggestions outside Monaco. Add `allowedRefKinds` (the cursor-scoped `$`-ref
|
|
14
|
+
gate, now covering `$contract`) and `getJsonPathAtOffset`, and gate the open
|
|
15
|
+
`$` completion fallback by the same scope rule so Monaco offers only the ref
|
|
16
|
+
kinds valid at the cursor.
|
|
17
|
+
- Updated dependencies [b0279ee]
|
|
18
|
+
- Updated dependencies [b0279ee]
|
|
19
|
+
- Updated dependencies [0b7f494]
|
|
20
|
+
- Updated dependencies [edd3836]
|
|
21
|
+
- Updated dependencies [edd3836]
|
|
22
|
+
- @walkeros/core@4.1.1-next-1779822275564
|
|
23
|
+
- @walkeros/collector@4.1.1-next-1779822275564
|
|
24
|
+
- @walkeros/web-core@4.1.1-next-1779822275564
|
|
25
|
+
- @walkeros/web-source-browser@4.1.1-next-1779822275564
|
|
26
|
+
|
|
3
27
|
## 4.1.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/dist/index.d.cts
CHANGED
|
@@ -939,6 +939,52 @@ declare function Spinner({ size, className }: SpinnerProps): react_jsx_runtime.J
|
|
|
939
939
|
*/
|
|
940
940
|
declare function isMonacoCancellation(value: unknown): boolean;
|
|
941
941
|
|
|
942
|
+
interface CompletionEntry {
|
|
943
|
+
label: string;
|
|
944
|
+
insertText: string;
|
|
945
|
+
detail?: string;
|
|
946
|
+
documentation?: string;
|
|
947
|
+
kind: 'variable' | 'reference' | 'secret' | 'module' | 'property';
|
|
948
|
+
sortText?: string;
|
|
949
|
+
}
|
|
950
|
+
declare function getVariableCompletions(variables: IntelliSenseContext['variables']): CompletionEntry[];
|
|
951
|
+
declare function getSecretCompletions(secrets: IntelliSenseContext['secrets']): CompletionEntry[];
|
|
952
|
+
declare function getStoreCompletions(stores: IntelliSenseContext['stores']): CompletionEntry[];
|
|
953
|
+
declare function getFlowCompletions(flows: IntelliSenseContext['flows']): CompletionEntry[];
|
|
954
|
+
declare function getEnvCompletions(envNames: IntelliSenseContext['envNames']): CompletionEntry[];
|
|
955
|
+
/**
|
|
956
|
+
* Get mapping value path completions based on contract schemas.
|
|
957
|
+
*
|
|
958
|
+
* When typing "data." inside a mapping rule for entity "page" action "view",
|
|
959
|
+
* this returns the properties defined in the contract for page.view.
|
|
960
|
+
*/
|
|
961
|
+
declare function getMappingPathCompletions(contractRaw: IntelliSenseContext['contractRaw'], entity: string, action: string, prefix: string): CompletionEntry[];
|
|
962
|
+
declare function getContractCompletions(contractRaw: IntelliSenseContext['contractRaw'], pathSegments: string[]): CompletionEntry[];
|
|
963
|
+
|
|
964
|
+
/** The `$`-ref kinds the completion gate can offer. Mirrors core's ref families. */
|
|
965
|
+
type RefKind = 'var' | 'env' | 'store' | 'flow' | 'secret' | 'contract';
|
|
966
|
+
/**
|
|
967
|
+
* Single pure scope gate for `$`-ref completion, shared by Monaco (subPath derived
|
|
968
|
+
* live from the cursor) and every Form field (subPath passed statically):
|
|
969
|
+
* - `$var`/`$env`/`$secret` broadly
|
|
970
|
+
* - `$store` only under an `env` subPath
|
|
971
|
+
* - `$flow` only in settings/env of source/destination
|
|
972
|
+
* - `$contract` only at a `validate.events.<entity>.<action>` value path
|
|
973
|
+
*/
|
|
974
|
+
declare function allowedRefKinds(nodeType: IntelliSenseContext['nodeType'], subPath?: string[]): RefKind[];
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* Extract the JSON key path at a given character offset in a JSON string.
|
|
978
|
+
*
|
|
979
|
+
* Uses a simple stack-based parser that tracks object keys as we scan
|
|
980
|
+
* from the start to the offset position.
|
|
981
|
+
*
|
|
982
|
+
* @param json - The full JSON string
|
|
983
|
+
* @param offset - Character offset (0-based) of cursor position
|
|
984
|
+
* @returns Array of key segments from root to cursor
|
|
985
|
+
*/
|
|
986
|
+
declare function getJsonPathAtOffset(json: string, offset: number): string[];
|
|
987
|
+
|
|
942
988
|
/**
|
|
943
989
|
* MDXProvider - Makes components available in MDX files without explicit imports
|
|
944
990
|
*
|
|
@@ -1380,4 +1426,4 @@ declare function validateWalkerOSReferences(text: string, context: Partial<Intel
|
|
|
1380
1426
|
*/
|
|
1381
1427
|
declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
|
|
1382
1428
|
|
|
1383
|
-
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, DEFAULT_FALLBACK_HTML, 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 };
|
|
1429
|
+
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, type CompletionEntry, DEFAULT_FALLBACK_HTML, 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, type RefKind, Spinner, type SpinnerProps, type UseDropdownReturn, allowedRefKinds, applyWalkerOSDecorations, cn, createFbqDestination, createGtagDestination, createPlausibleDestination, disposeWalkerOSProviders, enrichFlowConfigSchema, enrichSchema, extractFlowIntelliSenseContext, findWalkerOSReferences, generateModelPath, getContractCompletions, getEnrichedContractSchema, getEnvCompletions, getFlowCompletions, getJsonPathAtOffset, getMappingPathCompletions, getSecretCompletions, getStoreCompletions, getVariableCompletions, 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
|
@@ -939,6 +939,52 @@ declare function Spinner({ size, className }: SpinnerProps): react_jsx_runtime.J
|
|
|
939
939
|
*/
|
|
940
940
|
declare function isMonacoCancellation(value: unknown): boolean;
|
|
941
941
|
|
|
942
|
+
interface CompletionEntry {
|
|
943
|
+
label: string;
|
|
944
|
+
insertText: string;
|
|
945
|
+
detail?: string;
|
|
946
|
+
documentation?: string;
|
|
947
|
+
kind: 'variable' | 'reference' | 'secret' | 'module' | 'property';
|
|
948
|
+
sortText?: string;
|
|
949
|
+
}
|
|
950
|
+
declare function getVariableCompletions(variables: IntelliSenseContext['variables']): CompletionEntry[];
|
|
951
|
+
declare function getSecretCompletions(secrets: IntelliSenseContext['secrets']): CompletionEntry[];
|
|
952
|
+
declare function getStoreCompletions(stores: IntelliSenseContext['stores']): CompletionEntry[];
|
|
953
|
+
declare function getFlowCompletions(flows: IntelliSenseContext['flows']): CompletionEntry[];
|
|
954
|
+
declare function getEnvCompletions(envNames: IntelliSenseContext['envNames']): CompletionEntry[];
|
|
955
|
+
/**
|
|
956
|
+
* Get mapping value path completions based on contract schemas.
|
|
957
|
+
*
|
|
958
|
+
* When typing "data." inside a mapping rule for entity "page" action "view",
|
|
959
|
+
* this returns the properties defined in the contract for page.view.
|
|
960
|
+
*/
|
|
961
|
+
declare function getMappingPathCompletions(contractRaw: IntelliSenseContext['contractRaw'], entity: string, action: string, prefix: string): CompletionEntry[];
|
|
962
|
+
declare function getContractCompletions(contractRaw: IntelliSenseContext['contractRaw'], pathSegments: string[]): CompletionEntry[];
|
|
963
|
+
|
|
964
|
+
/** The `$`-ref kinds the completion gate can offer. Mirrors core's ref families. */
|
|
965
|
+
type RefKind = 'var' | 'env' | 'store' | 'flow' | 'secret' | 'contract';
|
|
966
|
+
/**
|
|
967
|
+
* Single pure scope gate for `$`-ref completion, shared by Monaco (subPath derived
|
|
968
|
+
* live from the cursor) and every Form field (subPath passed statically):
|
|
969
|
+
* - `$var`/`$env`/`$secret` broadly
|
|
970
|
+
* - `$store` only under an `env` subPath
|
|
971
|
+
* - `$flow` only in settings/env of source/destination
|
|
972
|
+
* - `$contract` only at a `validate.events.<entity>.<action>` value path
|
|
973
|
+
*/
|
|
974
|
+
declare function allowedRefKinds(nodeType: IntelliSenseContext['nodeType'], subPath?: string[]): RefKind[];
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* Extract the JSON key path at a given character offset in a JSON string.
|
|
978
|
+
*
|
|
979
|
+
* Uses a simple stack-based parser that tracks object keys as we scan
|
|
980
|
+
* from the start to the offset position.
|
|
981
|
+
*
|
|
982
|
+
* @param json - The full JSON string
|
|
983
|
+
* @param offset - Character offset (0-based) of cursor position
|
|
984
|
+
* @returns Array of key segments from root to cursor
|
|
985
|
+
*/
|
|
986
|
+
declare function getJsonPathAtOffset(json: string, offset: number): string[];
|
|
987
|
+
|
|
942
988
|
/**
|
|
943
989
|
* MDXProvider - Makes components available in MDX files without explicit imports
|
|
944
990
|
*
|
|
@@ -1380,4 +1426,4 @@ declare function validateWalkerOSReferences(text: string, context: Partial<Intel
|
|
|
1380
1426
|
*/
|
|
1381
1427
|
declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
|
|
1382
1428
|
|
|
1383
|
-
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, DEFAULT_FALLBACK_HTML, 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 };
|
|
1429
|
+
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, type CompletionEntry, DEFAULT_FALLBACK_HTML, 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, type RefKind, Spinner, type SpinnerProps, type UseDropdownReturn, allowedRefKinds, applyWalkerOSDecorations, cn, createFbqDestination, createGtagDestination, createPlausibleDestination, disposeWalkerOSProviders, enrichFlowConfigSchema, enrichSchema, extractFlowIntelliSenseContext, findWalkerOSReferences, generateModelPath, getContractCompletions, getEnrichedContractSchema, getEnvCompletions, getFlowCompletions, getJsonPathAtOffset, getMappingPathCompletions, getSecretCompletions, getStoreCompletions, getVariableCompletions, getVariablesSchema, initializeMonacoTypes, isMonacoCancellation, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerJsonSchema, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSDecorationStyles, registerWalkerOSProviders, registerWalkerOSTypes, removeIntelliSenseContext, resolveTypesUrl, setIntelliSenseContext, setPackageTypesBaseUrl, unregisterJsonSchema, useDropdown, validateWalkerOSReferences };
|