@walkeros/explorer 4.1.0-next-1778668930820 → 4.1.0

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 CHANGED
@@ -199,6 +199,10 @@ interface IntelliSenseContext {
199
199
  flows?: string[];
200
200
  /** Known environment variable names. If omitted, `$env.` offers only the prefix. */
201
201
  envNames?: string[];
202
+ /** Step type at the cursor. Scopes which `$`-refs the provider offers. */
203
+ nodeType?: 'source' | 'destination' | 'transformer' | 'store' | 'collector';
204
+ /** Path segments from the step root to the cursor (e.g. ['config','mapping']). */
205
+ subPath?: string[];
202
206
  }
203
207
 
204
208
  interface CodeProps {
@@ -645,11 +649,31 @@ interface CodeViewProps {
645
649
  */
646
650
  declare function CodeView({ code, language, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, label, header, showHeader, showTrafficLights, showCopy, footer, height, className, style, }: CodeViewProps): react_jsx_runtime.JSX.Element;
647
651
 
652
+ /**
653
+ * Minimal "product add" example shown when a browser-source step provides no
654
+ * HTML of its own. Demonstrates an entity with a click:add action.
655
+ */
656
+ declare const DEFAULT_FALLBACK_HTML = "<div data-elb=\"product\" data-elbaction=\"click:add\"><button data-elb-product=\"name:Example;price:9.99\">Add to cart</button></div>";
648
657
  interface PreviewProps {
649
- html: string;
658
+ html?: string;
650
659
  css?: string;
660
+ js?: string;
651
661
  elb?: Elb.Fn;
652
662
  label?: string;
663
+ /**
664
+ * Opt-in editor tabs. When true, the header shows a `tabs` ButtonGroup to
665
+ * switch between the live Preview and editable HTML/CSS/JS (matching the
666
+ * playground BrowserBox). When false (default), only the static preview
667
+ * renders so existing plain `Preview` usage is unaffected.
668
+ */
669
+ editable?: boolean;
670
+ /** Tab selected first when `editable` is true. Defaults to `preview`. */
671
+ initialTab?: 'preview' | 'html' | 'css' | 'js';
672
+ onHtmlChange?: (value: string) => void;
673
+ onCssChange?: (value: string) => void;
674
+ onJsChange?: (value: string) => void;
675
+ lineNumbers?: boolean;
676
+ wordWrap?: boolean;
653
677
  }
654
678
  /**
655
679
  * Preview - HTML preview wrapped in a Box with highlight buttons
@@ -658,6 +682,11 @@ interface PreviewProps {
658
682
  * When elb is provided, initializes walkerOS browser source in iframe
659
683
  * that pushes events to the parent collector.
660
684
  *
685
+ * Load semantics mirror a real browser: `load` triggers (and pageview) fire
686
+ * once on the initial load and again only when the user clicks Reload. Editing
687
+ * the HTML/CSS re-renders the preview and keeps click capture working but does
688
+ * NOT re-fire load; toggling highlights only flips body classes.
689
+ *
661
690
  * @example
662
691
  * // Read-only preview
663
692
  * <Preview html={html} css={css} label="Preview" />
@@ -665,7 +694,7 @@ interface PreviewProps {
665
694
  * // Interactive preview with event capture (elb from parent collector)
666
695
  * <Preview html={html} css={css} elb={elb} label="Preview" />
667
696
  */
668
- declare function Preview({ html, css, elb, label, }: PreviewProps): react_jsx_runtime.JSX.Element;
697
+ declare function Preview({ html, css, js, elb, label, editable, initialTab, onHtmlChange, onCssChange, onJsChange, lineNumbers, wordWrap, }: PreviewProps): react_jsx_runtime.JSX.Element;
669
698
 
670
699
  interface CodeDiffSummary {
671
700
  /** Count of hunks that exist only in modified (pure additions). */
@@ -847,14 +876,20 @@ interface ButtonGroupProps {
847
876
  }>;
848
877
  onButtonClick: (value: string) => void;
849
878
  className?: string;
879
+ /**
880
+ * Visual style. `segmented` is the bordered pill (default, used in footers
881
+ * and grids). `tabs` renders flat header tabs with a filled active state,
882
+ * matching the step-detail modal tab style for use in box headers.
883
+ */
884
+ variant?: 'segmented' | 'tabs';
850
885
  }
851
886
  /**
852
- * ButtonGroup - Segmented control for headers
887
+ * ButtonGroup - Segmented control or header tabs
853
888
  *
854
- * Displays multiple buttons in a grouped segmented control style.
855
- * Commonly used for tab switching (HTML/CSS/JS, etc.)
889
+ * Displays multiple buttons for switching between views (HTML/CSS/JS, etc.).
890
+ * `variant="tabs"` renders them as flat header tabs instead of a pill.
856
891
  */
857
- declare function ButtonGroup({ buttons, onButtonClick, className, }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
892
+ declare function ButtonGroup({ buttons, onButtonClick, className, variant, }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
858
893
 
859
894
  interface ButtonLinkProps {
860
895
  variant?: 'default' | 'primary' | 'secondary';
@@ -1345,4 +1380,4 @@ declare function validateWalkerOSReferences(text: string, context: Partial<Intel
1345
1380
  */
1346
1381
  declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
1347
1382
 
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 };
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 };
package/dist/index.d.ts CHANGED
@@ -199,6 +199,10 @@ interface IntelliSenseContext {
199
199
  flows?: string[];
200
200
  /** Known environment variable names. If omitted, `$env.` offers only the prefix. */
201
201
  envNames?: string[];
202
+ /** Step type at the cursor. Scopes which `$`-refs the provider offers. */
203
+ nodeType?: 'source' | 'destination' | 'transformer' | 'store' | 'collector';
204
+ /** Path segments from the step root to the cursor (e.g. ['config','mapping']). */
205
+ subPath?: string[];
202
206
  }
203
207
 
204
208
  interface CodeProps {
@@ -645,11 +649,31 @@ interface CodeViewProps {
645
649
  */
646
650
  declare function CodeView({ code, language, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, label, header, showHeader, showTrafficLights, showCopy, footer, height, className, style, }: CodeViewProps): react_jsx_runtime.JSX.Element;
647
651
 
652
+ /**
653
+ * Minimal "product add" example shown when a browser-source step provides no
654
+ * HTML of its own. Demonstrates an entity with a click:add action.
655
+ */
656
+ declare const DEFAULT_FALLBACK_HTML = "<div data-elb=\"product\" data-elbaction=\"click:add\"><button data-elb-product=\"name:Example;price:9.99\">Add to cart</button></div>";
648
657
  interface PreviewProps {
649
- html: string;
658
+ html?: string;
650
659
  css?: string;
660
+ js?: string;
651
661
  elb?: Elb.Fn;
652
662
  label?: string;
663
+ /**
664
+ * Opt-in editor tabs. When true, the header shows a `tabs` ButtonGroup to
665
+ * switch between the live Preview and editable HTML/CSS/JS (matching the
666
+ * playground BrowserBox). When false (default), only the static preview
667
+ * renders so existing plain `Preview` usage is unaffected.
668
+ */
669
+ editable?: boolean;
670
+ /** Tab selected first when `editable` is true. Defaults to `preview`. */
671
+ initialTab?: 'preview' | 'html' | 'css' | 'js';
672
+ onHtmlChange?: (value: string) => void;
673
+ onCssChange?: (value: string) => void;
674
+ onJsChange?: (value: string) => void;
675
+ lineNumbers?: boolean;
676
+ wordWrap?: boolean;
653
677
  }
654
678
  /**
655
679
  * Preview - HTML preview wrapped in a Box with highlight buttons
@@ -658,6 +682,11 @@ interface PreviewProps {
658
682
  * When elb is provided, initializes walkerOS browser source in iframe
659
683
  * that pushes events to the parent collector.
660
684
  *
685
+ * Load semantics mirror a real browser: `load` triggers (and pageview) fire
686
+ * once on the initial load and again only when the user clicks Reload. Editing
687
+ * the HTML/CSS re-renders the preview and keeps click capture working but does
688
+ * NOT re-fire load; toggling highlights only flips body classes.
689
+ *
661
690
  * @example
662
691
  * // Read-only preview
663
692
  * <Preview html={html} css={css} label="Preview" />
@@ -665,7 +694,7 @@ interface PreviewProps {
665
694
  * // Interactive preview with event capture (elb from parent collector)
666
695
  * <Preview html={html} css={css} elb={elb} label="Preview" />
667
696
  */
668
- declare function Preview({ html, css, elb, label, }: PreviewProps): react_jsx_runtime.JSX.Element;
697
+ declare function Preview({ html, css, js, elb, label, editable, initialTab, onHtmlChange, onCssChange, onJsChange, lineNumbers, wordWrap, }: PreviewProps): react_jsx_runtime.JSX.Element;
669
698
 
670
699
  interface CodeDiffSummary {
671
700
  /** Count of hunks that exist only in modified (pure additions). */
@@ -847,14 +876,20 @@ interface ButtonGroupProps {
847
876
  }>;
848
877
  onButtonClick: (value: string) => void;
849
878
  className?: string;
879
+ /**
880
+ * Visual style. `segmented` is the bordered pill (default, used in footers
881
+ * and grids). `tabs` renders flat header tabs with a filled active state,
882
+ * matching the step-detail modal tab style for use in box headers.
883
+ */
884
+ variant?: 'segmented' | 'tabs';
850
885
  }
851
886
  /**
852
- * ButtonGroup - Segmented control for headers
887
+ * ButtonGroup - Segmented control or header tabs
853
888
  *
854
- * Displays multiple buttons in a grouped segmented control style.
855
- * Commonly used for tab switching (HTML/CSS/JS, etc.)
889
+ * Displays multiple buttons for switching between views (HTML/CSS/JS, etc.).
890
+ * `variant="tabs"` renders them as flat header tabs instead of a pill.
856
891
  */
857
- declare function ButtonGroup({ buttons, onButtonClick, className, }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
892
+ declare function ButtonGroup({ buttons, onButtonClick, className, variant, }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
858
893
 
859
894
  interface ButtonLinkProps {
860
895
  variant?: 'default' | 'primary' | 'secondary';
@@ -1345,4 +1380,4 @@ declare function validateWalkerOSReferences(text: string, context: Partial<Intel
1345
1380
  */
1346
1381
  declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
1347
1382
 
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 };
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 };