@walkeros/explorer 4.7.0 → 4.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @walkeros/explorer
2
2
 
3
+ ## 4.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - dbc172c: Read-only code boxes (`CodeView`, `CodeSnippet`) now size to their
8
+ content instead of a fixed height, and snippets show a copy button. New
9
+ `StepExample` shows a step's event, mapping and output side by side, wrapping
10
+ to a stack on narrow screens. `Grid` now honors `columns`: at most that many
11
+ boxes per row, the rest wrap.
12
+ - 91e9aeb: Read-only code blocks (`CodeView`, `CodeSnippet`, `StepExample`) now
13
+ name their language on the rendered `<code>` element, so Markdown converted
14
+ from the page keeps each code fence's language, including languages that
15
+ render as plain text.
16
+ - Updated dependencies [91e9aeb]
17
+ - Updated dependencies [0635330]
18
+ - Updated dependencies [0635330]
19
+ - Updated dependencies [91e9aeb]
20
+ - Updated dependencies [0635330]
21
+ - @walkeros/web-core@4.7.1
22
+ - @walkeros/web-source-browser@4.7.1
23
+ - @walkeros/collector@4.7.1
24
+ - @walkeros/core@4.7.1
25
+
3
26
  ## 4.7.0
4
27
 
5
28
  ### Minor Changes
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Destination, WalkerOS, Elb } from '@walkeros/core';
2
+ import { Destination, WalkerOS, Flow, Elb } from '@walkeros/core';
3
3
  import React, { ReactNode, FC, PropsWithChildren, RefObject } from 'react';
4
4
  import * as monaco_editor from 'monaco-editor';
5
5
  import { editor } from 'monaco-editor';
@@ -522,6 +522,26 @@ interface PropertyTableProps {
522
522
  }
523
523
  declare function PropertyTable({ schema, className, emptyMessage, }: PropertyTableProps): react_jsx_runtime.JSX.Element;
524
524
 
525
+ interface StepExampleProps {
526
+ example: Flow.StepExample;
527
+ className?: string;
528
+ }
529
+ /**
530
+ * StepExample - A step example's Event, Mapping and Out, read-only.
531
+ *
532
+ * The boxes sit side by side while each keeps a readable width and wrap to
533
+ * fewer per row, down to a stack, as the container narrows. A row is as tall
534
+ * as its tallest box up to a cap; longer code scrolls inside its box.
535
+ *
536
+ * Rendered with the static Shiki path, so the code is in server-rendered HTML
537
+ * and in the docs Markdown export. That export relies on this DOM: one
538
+ * labelled box per part, each with a `pre > code` that names its language.
539
+ *
540
+ * @example
541
+ * <StepExample example={data.examples.step.addToCart} />
542
+ */
543
+ declare function StepExample({ example, className }: StepExampleProps): react_jsx_runtime.JSX.Element;
544
+
525
545
  interface DropdownProps {
526
546
  /** Trigger element (button, link, etc.) */
527
547
  trigger: React.ReactNode;
@@ -750,6 +770,10 @@ declare function Box({ header, headerActions, footer, children, className, style
750
770
 
751
771
  interface GridProps {
752
772
  children: React.ReactNode;
773
+ /**
774
+ * Boxes per row; further boxes wrap to a new row. Pass the number of boxes
775
+ * you render, since unused columns stay empty. Omit for one row of all boxes.
776
+ */
753
777
  columns?: number;
754
778
  minBoxWidth?: number | string;
755
779
  gap?: number | string;
@@ -762,8 +786,9 @@ interface GridProps {
762
786
  * Grid - Horizontal scrolling layout component for arranging boxes
763
787
  *
764
788
  * Provides consistent grid layout for box components with horizontal
765
- * scrolling when content exceeds available space. Boxes maintain minimum
766
- * width and never wrap to new rows.
789
+ * scrolling when content exceeds available space. Boxes keep a minimum width.
790
+ * By default all boxes share one row; `columns` sets the boxes per row and
791
+ * wraps the rest. Narrow containers stack the boxes.
767
792
  *
768
793
  * @example
769
794
  * // 5 boxes with default 350px minimum width
@@ -1410,4 +1435,4 @@ declare function validateWalkerOSReferences(text: string, context: Partial<Intel
1410
1435
  */
1411
1436
  declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
1412
1437
 
1413
- 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 };
1438
+ 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, StepExample, type StepExampleProps, 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
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Destination, WalkerOS, Elb } from '@walkeros/core';
2
+ import { Destination, WalkerOS, Flow, Elb } from '@walkeros/core';
3
3
  import React, { ReactNode, FC, PropsWithChildren, RefObject } from 'react';
4
4
  import * as monaco_editor from 'monaco-editor';
5
5
  import { editor } from 'monaco-editor';
@@ -522,6 +522,26 @@ interface PropertyTableProps {
522
522
  }
523
523
  declare function PropertyTable({ schema, className, emptyMessage, }: PropertyTableProps): react_jsx_runtime.JSX.Element;
524
524
 
525
+ interface StepExampleProps {
526
+ example: Flow.StepExample;
527
+ className?: string;
528
+ }
529
+ /**
530
+ * StepExample - A step example's Event, Mapping and Out, read-only.
531
+ *
532
+ * The boxes sit side by side while each keeps a readable width and wrap to
533
+ * fewer per row, down to a stack, as the container narrows. A row is as tall
534
+ * as its tallest box up to a cap; longer code scrolls inside its box.
535
+ *
536
+ * Rendered with the static Shiki path, so the code is in server-rendered HTML
537
+ * and in the docs Markdown export. That export relies on this DOM: one
538
+ * labelled box per part, each with a `pre > code` that names its language.
539
+ *
540
+ * @example
541
+ * <StepExample example={data.examples.step.addToCart} />
542
+ */
543
+ declare function StepExample({ example, className }: StepExampleProps): react_jsx_runtime.JSX.Element;
544
+
525
545
  interface DropdownProps {
526
546
  /** Trigger element (button, link, etc.) */
527
547
  trigger: React.ReactNode;
@@ -750,6 +770,10 @@ declare function Box({ header, headerActions, footer, children, className, style
750
770
 
751
771
  interface GridProps {
752
772
  children: React.ReactNode;
773
+ /**
774
+ * Boxes per row; further boxes wrap to a new row. Pass the number of boxes
775
+ * you render, since unused columns stay empty. Omit for one row of all boxes.
776
+ */
753
777
  columns?: number;
754
778
  minBoxWidth?: number | string;
755
779
  gap?: number | string;
@@ -762,8 +786,9 @@ interface GridProps {
762
786
  * Grid - Horizontal scrolling layout component for arranging boxes
763
787
  *
764
788
  * Provides consistent grid layout for box components with horizontal
765
- * scrolling when content exceeds available space. Boxes maintain minimum
766
- * width and never wrap to new rows.
789
+ * scrolling when content exceeds available space. Boxes keep a minimum width.
790
+ * By default all boxes share one row; `columns` sets the boxes per row and
791
+ * wraps the rest. Narrow containers stack the boxes.
767
792
  *
768
793
  * @example
769
794
  * // 5 boxes with default 350px minimum width
@@ -1410,4 +1435,4 @@ declare function validateWalkerOSReferences(text: string, context: Partial<Intel
1410
1435
  */
1411
1436
  declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
1412
1437
 
1413
- 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 };
1438
+ 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, StepExample, type StepExampleProps, 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 };