@walkeros/explorer 4.2.1 → 4.2.2-next-1782892388850
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 +14 -0
- package/dist/index.d.cts +17 -48
- package/dist/index.d.ts +17 -48
- 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 +10 -4
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @walkeros/explorer
|
|
2
2
|
|
|
3
|
+
## 4.2.2-next-1782892388850
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c201c5f: Read-only code snippets now render their highlighted content during
|
|
8
|
+
server-side rendering instead of waiting for the browser, so code is visible
|
|
9
|
+
on first paint and in no-JS and search-engine contexts. `CodeSnippet` no
|
|
10
|
+
longer ships the Monaco editor for read-only display.
|
|
11
|
+
- Updated dependencies [e6613f8]
|
|
12
|
+
- @walkeros/web-source-browser@4.2.2-next-1782892388850
|
|
13
|
+
- @walkeros/collector@4.2.2-next-1782892388850
|
|
14
|
+
- @walkeros/core@4.2.2-next-1782892388850
|
|
15
|
+
- @walkeros/web-core@4.2.2-next-1782892388850
|
|
16
|
+
|
|
3
17
|
## 4.2.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.cts
CHANGED
|
@@ -494,62 +494,33 @@ interface CodeDiffBoxProps {
|
|
|
494
494
|
*/
|
|
495
495
|
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;
|
|
496
496
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
497
|
+
interface CodeSnippetProps {
|
|
498
|
+
code: string;
|
|
499
|
+
language?: string;
|
|
500
|
+
className?: string;
|
|
501
|
+
}
|
|
500
502
|
/**
|
|
501
|
-
* CodeSnippet - Prominent code display for snippets
|
|
503
|
+
* CodeSnippet - Prominent, read-only code display for snippets.
|
|
502
504
|
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
505
|
-
*
|
|
505
|
+
* Renders code with the static Shiki path (CodeView without a header), so the
|
|
506
|
+
* highlighted code is present in server-rendered HTML and in the llms.txt
|
|
507
|
+
* markdown export. Use this for showcasing install/usage commands, one-liners,
|
|
508
|
+
* or small code blocks on docs pages.
|
|
506
509
|
*
|
|
507
|
-
*
|
|
510
|
+
* Read-only with a copy button. Snippets are expected to be authored
|
|
511
|
+
* pre-formatted; no client-side reformatting happens (which would otherwise
|
|
512
|
+
* mutate text only on the client and cause a hydration mismatch).
|
|
508
513
|
*
|
|
509
|
-
*
|
|
510
|
-
*
|
|
511
|
-
* - Copy button enabled (showCopy=true)
|
|
512
|
-
* - Auto-height with sensible bounds (min: 20px, max: 600px)
|
|
513
|
-
* - Auto-format on mount (format=true) - formats code once on initial load
|
|
514
|
-
*
|
|
515
|
-
* Auto-Formatting:
|
|
516
|
-
* - Enabled by default (format=true)
|
|
517
|
-
* - Runs once on component mount using Monaco's built-in formatters
|
|
518
|
-
* - Supports: JavaScript, TypeScript, JSON, HTML, CSS
|
|
519
|
-
* - Use format={false} to disable for special cases (pre-formatted code)
|
|
520
|
-
*
|
|
521
|
-
* Reuses all CodeBox functionality:
|
|
522
|
-
* - Monaco Editor with syntax highlighting
|
|
523
|
-
* - Grid height management and auto-height modes
|
|
524
|
-
* - Copy button
|
|
525
|
-
* - Theme integration
|
|
514
|
+
* Uses a slightly larger font size (15px) than the default code view, scoped to
|
|
515
|
+
* the `.elb-code-snippet` wrapper.
|
|
526
516
|
*
|
|
527
517
|
* @example
|
|
528
|
-
* // Minimal usage - code auto-formats on load
|
|
529
518
|
* <CodeSnippet
|
|
530
519
|
* code="import { elb } from '@walkeros/core';"
|
|
531
520
|
* language="javascript"
|
|
532
521
|
* />
|
|
533
|
-
*
|
|
534
|
-
* @example
|
|
535
|
-
* // Disable auto-formatting for pre-formatted code
|
|
536
|
-
* <CodeSnippet
|
|
537
|
-
* code={alreadyFormattedCode}
|
|
538
|
-
* language="javascript"
|
|
539
|
-
* format={false}
|
|
540
|
-
* />
|
|
541
|
-
*
|
|
542
|
-
* @example
|
|
543
|
-
* // Override defaults if needed
|
|
544
|
-
* <CodeSnippet
|
|
545
|
-
* code={editableCode}
|
|
546
|
-
* language="javascript"
|
|
547
|
-
* disabled={false}
|
|
548
|
-
* showCopy={false}
|
|
549
|
-
* autoHeight={{ min: 100, max: 800 }}
|
|
550
|
-
* />
|
|
551
522
|
*/
|
|
552
|
-
declare function CodeSnippet(
|
|
523
|
+
declare function CodeSnippet({ code, language, className, }: CodeSnippetProps): react_jsx_runtime.JSX.Element;
|
|
553
524
|
|
|
554
525
|
type FlowMarkerPosition = 'source' | 'source-left' | 'source-right' | 'collector' | 'collector-left' | 'collector-right' | 'destination' | 'destination-left' | 'destination-right' | `source-${string}` | `source-${string}-left` | `source-${string}-right` | `destination-${string}` | `destination-${string}-left` | `destination-${string}-right` | `pre-${string}` | `pre-${string}-left` | `pre-${string}-right` | `post-${string}` | `post-${string}-left` | `post-${string}-right` | 'stage-before' | 'stage-before-right' | 'stage-after' | 'stage-after-left' | 'incoming' | 'outgoing' | 'source-collector' | 'collector-destination' | `source-${string}-pre` | `source-${string}-collector` | `pre-${string}-next` | 'pre-collector' | 'collector-post' | `post-${string}-next` | `post-destination-${string}` | 'before-source' | 'destination-after';
|
|
555
526
|
interface FlowMarker {
|
|
@@ -1099,10 +1070,8 @@ interface CodeStaticProps {
|
|
|
1099
1070
|
code: string;
|
|
1100
1071
|
language?: string;
|
|
1101
1072
|
className?: string;
|
|
1102
|
-
/** Force theme. If omitted, auto-detected from <html> data-theme / class. */
|
|
1103
|
-
theme?: 'light' | 'dark';
|
|
1104
1073
|
}
|
|
1105
|
-
declare function CodeStatic({ code, language, className,
|
|
1074
|
+
declare function CodeStatic({ code, language, className, }: CodeStaticProps): React.ReactElement;
|
|
1106
1075
|
|
|
1107
1076
|
interface BoxTab {
|
|
1108
1077
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -494,62 +494,33 @@ interface CodeDiffBoxProps {
|
|
|
494
494
|
*/
|
|
495
495
|
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;
|
|
496
496
|
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
497
|
+
interface CodeSnippetProps {
|
|
498
|
+
code: string;
|
|
499
|
+
language?: string;
|
|
500
|
+
className?: string;
|
|
501
|
+
}
|
|
500
502
|
/**
|
|
501
|
-
* CodeSnippet - Prominent code display for snippets
|
|
503
|
+
* CodeSnippet - Prominent, read-only code display for snippets.
|
|
502
504
|
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
505
|
-
*
|
|
505
|
+
* Renders code with the static Shiki path (CodeView without a header), so the
|
|
506
|
+
* highlighted code is present in server-rendered HTML and in the llms.txt
|
|
507
|
+
* markdown export. Use this for showcasing install/usage commands, one-liners,
|
|
508
|
+
* or small code blocks on docs pages.
|
|
506
509
|
*
|
|
507
|
-
*
|
|
510
|
+
* Read-only with a copy button. Snippets are expected to be authored
|
|
511
|
+
* pre-formatted; no client-side reformatting happens (which would otherwise
|
|
512
|
+
* mutate text only on the client and cause a hydration mismatch).
|
|
508
513
|
*
|
|
509
|
-
*
|
|
510
|
-
*
|
|
511
|
-
* - Copy button enabled (showCopy=true)
|
|
512
|
-
* - Auto-height with sensible bounds (min: 20px, max: 600px)
|
|
513
|
-
* - Auto-format on mount (format=true) - formats code once on initial load
|
|
514
|
-
*
|
|
515
|
-
* Auto-Formatting:
|
|
516
|
-
* - Enabled by default (format=true)
|
|
517
|
-
* - Runs once on component mount using Monaco's built-in formatters
|
|
518
|
-
* - Supports: JavaScript, TypeScript, JSON, HTML, CSS
|
|
519
|
-
* - Use format={false} to disable for special cases (pre-formatted code)
|
|
520
|
-
*
|
|
521
|
-
* Reuses all CodeBox functionality:
|
|
522
|
-
* - Monaco Editor with syntax highlighting
|
|
523
|
-
* - Grid height management and auto-height modes
|
|
524
|
-
* - Copy button
|
|
525
|
-
* - Theme integration
|
|
514
|
+
* Uses a slightly larger font size (15px) than the default code view, scoped to
|
|
515
|
+
* the `.elb-code-snippet` wrapper.
|
|
526
516
|
*
|
|
527
517
|
* @example
|
|
528
|
-
* // Minimal usage - code auto-formats on load
|
|
529
518
|
* <CodeSnippet
|
|
530
519
|
* code="import { elb } from '@walkeros/core';"
|
|
531
520
|
* language="javascript"
|
|
532
521
|
* />
|
|
533
|
-
*
|
|
534
|
-
* @example
|
|
535
|
-
* // Disable auto-formatting for pre-formatted code
|
|
536
|
-
* <CodeSnippet
|
|
537
|
-
* code={alreadyFormattedCode}
|
|
538
|
-
* language="javascript"
|
|
539
|
-
* format={false}
|
|
540
|
-
* />
|
|
541
|
-
*
|
|
542
|
-
* @example
|
|
543
|
-
* // Override defaults if needed
|
|
544
|
-
* <CodeSnippet
|
|
545
|
-
* code={editableCode}
|
|
546
|
-
* language="javascript"
|
|
547
|
-
* disabled={false}
|
|
548
|
-
* showCopy={false}
|
|
549
|
-
* autoHeight={{ min: 100, max: 800 }}
|
|
550
|
-
* />
|
|
551
522
|
*/
|
|
552
|
-
declare function CodeSnippet(
|
|
523
|
+
declare function CodeSnippet({ code, language, className, }: CodeSnippetProps): react_jsx_runtime.JSX.Element;
|
|
553
524
|
|
|
554
525
|
type FlowMarkerPosition = 'source' | 'source-left' | 'source-right' | 'collector' | 'collector-left' | 'collector-right' | 'destination' | 'destination-left' | 'destination-right' | `source-${string}` | `source-${string}-left` | `source-${string}-right` | `destination-${string}` | `destination-${string}-left` | `destination-${string}-right` | `pre-${string}` | `pre-${string}-left` | `pre-${string}-right` | `post-${string}` | `post-${string}-left` | `post-${string}-right` | 'stage-before' | 'stage-before-right' | 'stage-after' | 'stage-after-left' | 'incoming' | 'outgoing' | 'source-collector' | 'collector-destination' | `source-${string}-pre` | `source-${string}-collector` | `pre-${string}-next` | 'pre-collector' | 'collector-post' | `post-${string}-next` | `post-destination-${string}` | 'before-source' | 'destination-after';
|
|
555
526
|
interface FlowMarker {
|
|
@@ -1099,10 +1070,8 @@ interface CodeStaticProps {
|
|
|
1099
1070
|
code: string;
|
|
1100
1071
|
language?: string;
|
|
1101
1072
|
className?: string;
|
|
1102
|
-
/** Force theme. If omitted, auto-detected from <html> data-theme / class. */
|
|
1103
|
-
theme?: 'light' | 'dark';
|
|
1104
1073
|
}
|
|
1105
|
-
declare function CodeStatic({ code, language, className,
|
|
1074
|
+
declare function CodeStatic({ code, language, className, }: CodeStaticProps): React.ReactElement;
|
|
1106
1075
|
|
|
1107
1076
|
interface BoxTab {
|
|
1108
1077
|
id: string;
|