@walkeros/explorer 4.7.2 → 4.8.0-next-1791441510508
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 +42 -0
- package/README.md +38 -9
- package/bin/walkeros-design-check.mjs +15 -0
- package/dist/design/base.css +55 -0
- package/dist/design/check.mjs +455 -0
- package/dist/design/components/index.cjs +2626 -0
- package/dist/design/components/index.cjs.map +1 -0
- package/dist/design/components/index.d.cts +325 -0
- package/dist/design/components/index.d.ts +325 -0
- package/dist/design/components/index.mjs +2611 -0
- package/dist/design/components/index.mjs.map +1 -0
- package/dist/design/index.cjs +201 -0
- package/dist/design/index.cjs.map +1 -0
- package/dist/design/index.d.cts +293 -0
- package/dist/design/index.d.ts +293 -0
- package/dist/design/index.mjs +180 -0
- package/dist/design/index.mjs.map +1 -0
- package/dist/design/tailwind.css +207 -0
- package/dist/design/tokens.css +286 -0
- package/dist/index.d.cts +24 -387
- package/dist/index.d.ts +24 -387
- 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 +2049 -800
- package/package.json +26 -9
package/dist/index.d.cts
CHANGED
|
@@ -1,33 +1,17 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Destination, WalkerOS, Flow, Elb } from '@walkeros/core';
|
|
3
|
-
import React, { ReactNode
|
|
3
|
+
import React, { ReactNode } 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
7
|
import { Monaco } from '@monaco-editor/react';
|
|
8
8
|
export { Monaco } from '@monaco-editor/react';
|
|
9
9
|
export { Icon } from '@iconify/react';
|
|
10
|
-
import { ClassValue } from 'clsx';
|
|
11
10
|
|
|
12
11
|
interface DemoEnv extends Destination.BaseEnv {
|
|
13
12
|
elb: (output: string) => void;
|
|
14
13
|
}
|
|
15
14
|
type DestinationCode = Destination.Instance<Destination.Types<unknown, unknown, DemoEnv>>;
|
|
16
|
-
/**
|
|
17
|
-
* Creates a gtag-style destination for demo purposes.
|
|
18
|
-
* Formats output as: gtag('event', 'event_name', { data })
|
|
19
|
-
*/
|
|
20
|
-
declare function createGtagDestination(): DestinationCode;
|
|
21
|
-
/**
|
|
22
|
-
* Creates a Facebook Pixel-style destination for demo purposes.
|
|
23
|
-
* Formats output as: fbq('track', 'EventName', { data })
|
|
24
|
-
*/
|
|
25
|
-
declare function createFbqDestination(): DestinationCode;
|
|
26
|
-
/**
|
|
27
|
-
* Creates a Plausible-style destination for demo purposes.
|
|
28
|
-
* Formats output as: plausible('event_name', { props: { data } })
|
|
29
|
-
*/
|
|
30
|
-
declare function createPlausibleDestination(): DestinationCode;
|
|
31
15
|
|
|
32
16
|
interface PromotionPlaygroundProps {
|
|
33
17
|
initialHtml?: string;
|
|
@@ -85,29 +69,6 @@ interface LiveCodeProps {
|
|
|
85
69
|
}
|
|
86
70
|
declare function LiveCode({ input: initInput, config: initConfig, output: initOutput, options, fn, fnName, labelInput, labelConfig, labelOutput, emptyText, disableInput, disableConfig, showQuotes, className, language, format, rowHeight, outputLanguage, configLanguage, }: LiveCodeProps): react_jsx_runtime.JSX.Element;
|
|
87
71
|
|
|
88
|
-
interface CollectorBoxProps {
|
|
89
|
-
event: string;
|
|
90
|
-
mapping: string;
|
|
91
|
-
destination: DestinationCode;
|
|
92
|
-
label?: string;
|
|
93
|
-
wordWrap?: boolean;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* CollectorBox - Runs a collector with destination to transform events
|
|
97
|
-
*
|
|
98
|
-
* Takes raw event and mapping config, processes through collector pipeline,
|
|
99
|
-
* and displays the formatted destination output.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* <CollectorBox
|
|
103
|
-
* event={JSON.stringify(event)}
|
|
104
|
-
* mapping={mappingConfig}
|
|
105
|
-
* destination={createGtagDestination()}
|
|
106
|
-
* label="Result"
|
|
107
|
-
* />
|
|
108
|
-
*/
|
|
109
|
-
declare function CollectorBox({ event, mapping, destination, label, wordWrap, }: CollectorBoxProps): react_jsx_runtime.JSX.Element;
|
|
110
|
-
|
|
111
72
|
interface BrowserBoxProps {
|
|
112
73
|
html?: string;
|
|
113
74
|
css?: string;
|
|
@@ -542,73 +503,6 @@ interface StepExampleProps {
|
|
|
542
503
|
*/
|
|
543
504
|
declare function StepExample({ example, className }: StepExampleProps): react_jsx_runtime.JSX.Element;
|
|
544
505
|
|
|
545
|
-
interface DropdownProps {
|
|
546
|
-
/** Trigger element (button, link, etc.) */
|
|
547
|
-
trigger: React.ReactNode;
|
|
548
|
-
/** Whether dropdown is open (controlled) */
|
|
549
|
-
isOpen: boolean;
|
|
550
|
-
/** Toggle handler */
|
|
551
|
-
onToggle: () => void;
|
|
552
|
-
/** Dropdown content */
|
|
553
|
-
children: React.ReactNode;
|
|
554
|
-
/** Alignment of dropdown panel */
|
|
555
|
-
align?: 'left' | 'right';
|
|
556
|
-
/** ARIA label for accessibility */
|
|
557
|
-
ariaLabel?: string;
|
|
558
|
-
/** Additional CSS class */
|
|
559
|
-
className?: string;
|
|
560
|
-
}
|
|
561
|
-
interface DropdownItemProps {
|
|
562
|
-
/** Item content */
|
|
563
|
-
children: React.ReactNode;
|
|
564
|
-
/** Click handler */
|
|
565
|
-
onClick?: () => void;
|
|
566
|
-
/** Disabled state */
|
|
567
|
-
disabled?: boolean;
|
|
568
|
-
/** Visual variant */
|
|
569
|
-
variant?: 'default' | 'danger';
|
|
570
|
-
/** Additional CSS class */
|
|
571
|
-
className?: string;
|
|
572
|
-
}
|
|
573
|
-
interface DropdownDividerProps {
|
|
574
|
-
/** Additional CSS class */
|
|
575
|
-
className?: string;
|
|
576
|
-
}
|
|
577
|
-
/**
|
|
578
|
-
* Dropdown - Generic dropdown container (UI only)
|
|
579
|
-
*
|
|
580
|
-
* Pure UI component for dropdown menus.
|
|
581
|
-
* Click-outside and keyboard handling should be implemented in the parent
|
|
582
|
-
* via hooks like useDropdown.
|
|
583
|
-
*
|
|
584
|
-
* @example
|
|
585
|
-
* <Dropdown
|
|
586
|
-
* trigger={<button>Menu</button>}
|
|
587
|
-
* isOpen={isOpen}
|
|
588
|
-
* onToggle={toggle}
|
|
589
|
-
* align="right"
|
|
590
|
-
* >
|
|
591
|
-
* <DropdownItem onClick={handleAction}>Action</DropdownItem>
|
|
592
|
-
* <DropdownDivider />
|
|
593
|
-
* <DropdownItem onClick={handleLogout} variant="danger">Logout</DropdownItem>
|
|
594
|
-
* </Dropdown>
|
|
595
|
-
*/
|
|
596
|
-
declare function Dropdown({ trigger, isOpen, onToggle, children, align, ariaLabel, className, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
597
|
-
/**
|
|
598
|
-
* DropdownItem - Menu item within a dropdown
|
|
599
|
-
*
|
|
600
|
-
* @example
|
|
601
|
-
* <DropdownItem onClick={handleClick}>Action</DropdownItem>
|
|
602
|
-
*/
|
|
603
|
-
declare function DropdownItem({ children, onClick, disabled, variant, className, }: DropdownItemProps): react_jsx_runtime.JSX.Element;
|
|
604
|
-
/**
|
|
605
|
-
* DropdownDivider - Visual separator between menu items
|
|
606
|
-
*
|
|
607
|
-
* @example
|
|
608
|
-
* <DropdownDivider />
|
|
609
|
-
*/
|
|
610
|
-
declare function DropdownDivider({ className }: DropdownDividerProps): react_jsx_runtime.JSX.Element;
|
|
611
|
-
|
|
612
506
|
/**
|
|
613
507
|
* Tab with code content for CodeView
|
|
614
508
|
*/
|
|
@@ -655,11 +549,6 @@ interface CodeViewProps {
|
|
|
655
549
|
*/
|
|
656
550
|
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;
|
|
657
551
|
|
|
658
|
-
/**
|
|
659
|
-
* Minimal "product add" example shown when a browser-source step provides no
|
|
660
|
-
* HTML of its own. Demonstrates an entity with a click:add action.
|
|
661
|
-
*/
|
|
662
|
-
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>";
|
|
663
552
|
interface PreviewProps {
|
|
664
553
|
html?: string;
|
|
665
554
|
css?: string;
|
|
@@ -730,7 +619,8 @@ interface CodeDiffProps {
|
|
|
730
619
|
/**
|
|
731
620
|
* CodeDiff — read-only Monaco DiffEditor atom.
|
|
732
621
|
*
|
|
733
|
-
* Generic: diffs any Monaco-supported language.
|
|
622
|
+
* Generic: diffs any Monaco-supported language. A dark island in both page
|
|
623
|
+
* themes, like every code surface.
|
|
734
624
|
* Use <CodeDiffBox> for the full chrome (header, summary, toggle, copy).
|
|
735
625
|
*/
|
|
736
626
|
declare function CodeDiff({ original, modified, language, height, renderSideBySide, onSummaryChange, beforeMount, onMount, className, }: CodeDiffProps): react_jsx_runtime.JSX.Element;
|
|
@@ -742,6 +632,8 @@ interface CodeStaticProps {
|
|
|
742
632
|
}
|
|
743
633
|
declare function CodeStatic({ code, language, className, }: CodeStaticProps): React.ReactElement;
|
|
744
634
|
|
|
635
|
+
type Theme = 'dark' | 'light';
|
|
636
|
+
|
|
745
637
|
interface BoxTab {
|
|
746
638
|
id: string;
|
|
747
639
|
label: string;
|
|
@@ -765,8 +657,10 @@ interface BoxProps {
|
|
|
765
657
|
onTabChange?: (id: string) => void;
|
|
766
658
|
defaultTab?: string;
|
|
767
659
|
showTrafficLights?: boolean;
|
|
660
|
+
/** Pins the box to one theme, whatever the page theme (a dark island). */
|
|
661
|
+
theme?: Theme;
|
|
768
662
|
}
|
|
769
|
-
declare function Box({ header, headerActions, footer, children, className, style, height, minHeight, maxHeight, tiny, resizable, showHeader, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, showTrafficLights, }: BoxProps): react_jsx_runtime.JSX.Element;
|
|
663
|
+
declare function Box({ header, headerActions, footer, children, className, style, height, minHeight, maxHeight, tiny, resizable, showHeader, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, showTrafficLights, theme, }: BoxProps): react_jsx_runtime.JSX.Element;
|
|
770
664
|
|
|
771
665
|
interface GridProps {
|
|
772
666
|
children: React.ReactNode;
|
|
@@ -843,26 +737,6 @@ interface HeaderProps {
|
|
|
843
737
|
}
|
|
844
738
|
declare function Header({ label, children }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
845
739
|
|
|
846
|
-
interface FooterProps {
|
|
847
|
-
children: React.ReactNode;
|
|
848
|
-
className?: string;
|
|
849
|
-
}
|
|
850
|
-
/**
|
|
851
|
-
* Footer - Footer atom component for boxes
|
|
852
|
-
*
|
|
853
|
-
* Provides a fixed-height footer area at the bottom of a box.
|
|
854
|
-
* Pairs with Header component for consistent box structure.
|
|
855
|
-
*
|
|
856
|
-
* @example
|
|
857
|
-
* <Box header="Preview">
|
|
858
|
-
* <Preview ... />
|
|
859
|
-
* <Footer>
|
|
860
|
-
* <ButtonGroup buttons={...} />
|
|
861
|
-
* </Footer>
|
|
862
|
-
* </Box>
|
|
863
|
-
*/
|
|
864
|
-
declare function Footer({ children, className }: FooterProps): react_jsx_runtime.JSX.Element;
|
|
865
|
-
|
|
866
740
|
interface ButtonProps {
|
|
867
741
|
active?: boolean;
|
|
868
742
|
onClick?: () => void;
|
|
@@ -900,34 +774,6 @@ interface ButtonGroupProps {
|
|
|
900
774
|
*/
|
|
901
775
|
declare function ButtonGroup({ buttons, onButtonClick, className, variant, }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
902
776
|
|
|
903
|
-
interface ButtonLinkProps {
|
|
904
|
-
variant?: 'default' | 'primary' | 'secondary';
|
|
905
|
-
size?: 'md' | 'lg';
|
|
906
|
-
href?: string;
|
|
907
|
-
onClick?: () => void;
|
|
908
|
-
children: React.ReactNode;
|
|
909
|
-
className?: string;
|
|
910
|
-
disabled?: boolean;
|
|
911
|
-
}
|
|
912
|
-
declare function ButtonLink({ variant, size, href, onClick, children, className, disabled, }: ButtonLinkProps): react_jsx_runtime.JSX.Element;
|
|
913
|
-
|
|
914
|
-
interface SpinnerProps {
|
|
915
|
-
/** Size of the spinner */
|
|
916
|
-
size?: 'sm' | 'md' | 'lg';
|
|
917
|
-
/** Additional CSS class */
|
|
918
|
-
className?: string;
|
|
919
|
-
}
|
|
920
|
-
/**
|
|
921
|
-
* Spinner - Loading indicator
|
|
922
|
-
*
|
|
923
|
-
* Pure UI component for showing loading state.
|
|
924
|
-
* No internal state - controlled via parent.
|
|
925
|
-
*
|
|
926
|
-
* @example
|
|
927
|
-
* <Spinner size="md" />
|
|
928
|
-
*/
|
|
929
|
-
declare function Spinner({ size, className }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
930
|
-
|
|
931
777
|
/**
|
|
932
778
|
* Detect `@monaco-editor/loader`'s cancelation rejection.
|
|
933
779
|
*
|
|
@@ -995,242 +841,33 @@ declare function allowedRefKinds(nodeType: IntelliSenseContext['nodeType'], subP
|
|
|
995
841
|
declare function getJsonPathAtOffset(json: string, offset: number): string[];
|
|
996
842
|
|
|
997
843
|
/**
|
|
998
|
-
*
|
|
999
|
-
*
|
|
1000
|
-
* This provider wraps MDX content and injects React components for HTML elements.
|
|
1001
|
-
* Components are automatically used when rendering markdown/MDX content.
|
|
1002
|
-
*
|
|
1003
|
-
* Key features:
|
|
1004
|
-
* - No imports needed in MDX files
|
|
1005
|
-
* - Consistent styling across all documentation
|
|
1006
|
-
* - Theme-aware (respects data-theme attribute)
|
|
1007
|
-
* - Automatic inline vs block code detection
|
|
1008
|
-
*
|
|
1009
|
-
* Available components (no import needed):
|
|
1010
|
-
* - CodeBox: Monaco editor for code display (also auto-used for ```code blocks)
|
|
1011
|
-
* - PropertyTable: Display schema-based property documentation
|
|
1012
|
-
*
|
|
1013
|
-
* @example
|
|
1014
|
-
* // Wrap your app
|
|
1015
|
-
* <MDXProvider>
|
|
1016
|
-
* <App />
|
|
1017
|
-
* </MDXProvider>
|
|
1018
|
-
*
|
|
1019
|
-
* @example
|
|
1020
|
-
* // Then in any .mdx file, no imports needed:
|
|
1021
|
-
* # Documentation
|
|
1022
|
-
*
|
|
1023
|
-
* Inline `code` and markdown blocks:
|
|
1024
|
-
* ```typescript
|
|
1025
|
-
* const example = "Hello";
|
|
1026
|
-
* ```
|
|
1027
|
-
*
|
|
1028
|
-
* Or use components directly:
|
|
1029
|
-
* <CodeBox code="const x = 1;" language="javascript" />
|
|
1030
|
-
* <PropertyTable schema={mySchema} />
|
|
1031
|
-
*/
|
|
1032
|
-
declare const MDXProvider: FC<PropsWithChildren>;
|
|
1033
|
-
|
|
1034
|
-
interface MDXCodeProps {
|
|
1035
|
-
className?: string;
|
|
1036
|
-
}
|
|
1037
|
-
/**
|
|
1038
|
-
* MDXCode - Code component for MDX files
|
|
1039
|
-
*
|
|
1040
|
-
* Automatically detects and renders inline vs block code:
|
|
1041
|
-
* - Inline code: `example` → <code className="elb-code-inline">
|
|
1042
|
-
* - Block code: ```language\ncode\n``` → Uses CodeBox with Monaco editor
|
|
1043
|
-
*
|
|
1044
|
-
* Language detection:
|
|
1045
|
-
* - Extracts language from className (e.g., "language-typescript")
|
|
1046
|
-
* - Maps common MDX language names to Monaco language IDs
|
|
1047
|
-
*
|
|
1048
|
-
* Block code features (via CodeBox):
|
|
1049
|
-
* - Full Monaco editor with syntax highlighting
|
|
1050
|
-
* - Theme-aware (Palenight dark, VS Light)
|
|
1051
|
-
* - Copy to clipboard button
|
|
1052
|
-
* - Auto-height to fit content
|
|
1053
|
-
* - Read-only mode
|
|
1054
|
-
*
|
|
1055
|
-
* @example
|
|
1056
|
-
* // In MDX files (no import needed with MDXProvider):
|
|
1057
|
-
* Inline `code` example
|
|
1058
|
-
*
|
|
1059
|
-
* ```typescript
|
|
1060
|
-
* const block = "code";
|
|
1061
|
-
* ```
|
|
1062
|
-
*/
|
|
1063
|
-
declare const MDXCode: FC<PropsWithChildren<MDXCodeProps>>;
|
|
1064
|
-
|
|
1065
|
-
/**
|
|
1066
|
-
* Utility function to merge class names with Tailwind CSS classes
|
|
1067
|
-
* Uses clsx for conditional classes and tailwind-merge to handle conflicts
|
|
1068
|
-
*/
|
|
1069
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
1070
|
-
|
|
1071
|
-
interface UseDropdownReturn {
|
|
1072
|
-
/** Whether dropdown is currently open */
|
|
1073
|
-
isOpen: boolean;
|
|
1074
|
-
/** Toggle dropdown open/closed */
|
|
1075
|
-
toggle: () => void;
|
|
1076
|
-
/** Open the dropdown */
|
|
1077
|
-
open: () => void;
|
|
1078
|
-
/** Close the dropdown */
|
|
1079
|
-
close: () => void;
|
|
1080
|
-
/** Ref to attach to the container element for click-outside detection */
|
|
1081
|
-
containerRef: RefObject<HTMLDivElement | null>;
|
|
1082
|
-
}
|
|
1083
|
-
/**
|
|
1084
|
-
* useDropdown - Manages dropdown open/close state with click-outside and keyboard handling
|
|
844
|
+
* The one code theme of walkerOS Explorer
|
|
1085
845
|
*
|
|
1086
|
-
*
|
|
1087
|
-
*
|
|
1088
|
-
* - Click-outside detection to close
|
|
1089
|
-
* - Escape key handling to close
|
|
1090
|
-
*
|
|
1091
|
-
* @example
|
|
1092
|
-
* const { isOpen, toggle, close, containerRef } = useDropdown();
|
|
1093
|
-
*
|
|
1094
|
-
* return (
|
|
1095
|
-
* <div ref={containerRef}>
|
|
1096
|
-
* <Dropdown isOpen={isOpen} onToggle={toggle}>
|
|
1097
|
-
* ...
|
|
1098
|
-
* </Dropdown>
|
|
1099
|
-
* </div>
|
|
1100
|
-
* );
|
|
846
|
+
* Code surfaces are dark in both page themes, so Monaco (CodeBox) and Shiki
|
|
847
|
+
* (CodeView) share one theme, built from the design constants.
|
|
1101
848
|
*/
|
|
1102
|
-
declare function useDropdown(): UseDropdownReturn;
|
|
1103
849
|
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
declare const lighthouseTheme: editor.IStandaloneThemeData;
|
|
1112
|
-
/**
|
|
1113
|
-
* Register the lighthouse theme with Monaco Editor
|
|
1114
|
-
* Call this function before creating any editor instances
|
|
1115
|
-
*/
|
|
1116
|
-
declare function registerLighthouseTheme(monaco: typeof monaco_editor): void;
|
|
1117
|
-
|
|
1118
|
-
/**
|
|
1119
|
-
* TypeScript type definitions for walkerOS Explorer themes
|
|
1120
|
-
*
|
|
1121
|
-
* These types provide type-safe access to theme properties and enable
|
|
1122
|
-
* programmatic theme customization.
|
|
1123
|
-
*/
|
|
1124
|
-
interface ExplorerTheme {
|
|
1125
|
-
mode: 'light' | 'dark';
|
|
1126
|
-
colors: {
|
|
1127
|
-
text: string;
|
|
1128
|
-
textLabel: string;
|
|
1129
|
-
textButton: string;
|
|
1130
|
-
textButtonHover: string;
|
|
1131
|
-
textButtonActive: string;
|
|
1132
|
-
textMuted: string;
|
|
1133
|
-
textToggle: string;
|
|
1134
|
-
textInput: string;
|
|
1135
|
-
textPlaceholder: string;
|
|
1136
|
-
bgBox: string;
|
|
1137
|
-
bgHeader: string;
|
|
1138
|
-
bgFooter: string;
|
|
1139
|
-
bgButtonHover: string;
|
|
1140
|
-
bgButtonActive: string;
|
|
1141
|
-
bgButtonGroup: string;
|
|
1142
|
-
bgInput: string;
|
|
1143
|
-
bgInputHover: string;
|
|
1144
|
-
bgCodeInline: string;
|
|
1145
|
-
bgDropdown: string;
|
|
1146
|
-
bgDropdownOptionHover: string;
|
|
1147
|
-
bgDropdownOptionHighlighted: string;
|
|
1148
|
-
borderBox: string;
|
|
1149
|
-
borderHeader: string;
|
|
1150
|
-
borderFooter: string;
|
|
1151
|
-
borderButtonGroup: string;
|
|
1152
|
-
borderInput: string;
|
|
1153
|
-
borderInputFocus: string;
|
|
1154
|
-
buttonPrimary: string;
|
|
1155
|
-
buttonPrimaryHover: string;
|
|
1156
|
-
buttonPrimaryText: string;
|
|
1157
|
-
buttonDanger: string;
|
|
1158
|
-
buttonDangerHover: string;
|
|
1159
|
-
buttonDangerText: string;
|
|
1160
|
-
statusEnabled: string;
|
|
1161
|
-
statusDisabled: string;
|
|
1162
|
-
statusWarning: string;
|
|
1163
|
-
highlightPrimary: string;
|
|
1164
|
-
highlightGlobals: string;
|
|
1165
|
-
highlightContext: string;
|
|
1166
|
-
highlightEntity: string;
|
|
1167
|
-
highlightProperty: string;
|
|
1168
|
-
highlightAction: string;
|
|
1169
|
-
highlightBackground: string;
|
|
1170
|
-
highlightText: string;
|
|
1171
|
-
highlightHover: string;
|
|
1172
|
-
highlightSeparator: string;
|
|
1173
|
-
};
|
|
1174
|
-
typography: {
|
|
1175
|
-
fontFamily: string;
|
|
1176
|
-
fontMono: string;
|
|
1177
|
-
fontSize: {
|
|
1178
|
-
base: string;
|
|
1179
|
-
label: string;
|
|
1180
|
-
toggle: string;
|
|
1181
|
-
highlightButton: string;
|
|
1182
|
-
};
|
|
1183
|
-
fontWeight: {
|
|
1184
|
-
normal: number;
|
|
1185
|
-
semibold: number;
|
|
1186
|
-
};
|
|
1187
|
-
lineHeight: {
|
|
1188
|
-
base: number;
|
|
1189
|
-
};
|
|
1190
|
-
};
|
|
1191
|
-
spacing: {
|
|
1192
|
-
header: string;
|
|
1193
|
-
footer: string;
|
|
1194
|
-
button: string;
|
|
1195
|
-
buttonGroup: string;
|
|
1196
|
-
gridGap: string;
|
|
1197
|
-
};
|
|
1198
|
-
radius: {
|
|
1199
|
-
box: string;
|
|
1200
|
-
button: string;
|
|
1201
|
-
buttonGroup: string;
|
|
1202
|
-
highlightButton: string;
|
|
1203
|
-
};
|
|
1204
|
-
shadows: {
|
|
1205
|
-
buttonActive: string;
|
|
1206
|
-
dropdown: string;
|
|
1207
|
-
};
|
|
1208
|
-
grid: {
|
|
1209
|
-
minBoxWidth: string;
|
|
1210
|
-
rowMinHeight: string;
|
|
1211
|
-
rowMaxHeight: string;
|
|
1212
|
-
boxMaxHeightMobile: string;
|
|
1213
|
-
};
|
|
1214
|
-
monaco: {
|
|
1215
|
-
theme: string;
|
|
1216
|
-
fontSize: string;
|
|
1217
|
-
lineHeight: string;
|
|
850
|
+
/** Monaco `defineTheme` key and Shiki theme name of the code theme. */
|
|
851
|
+
declare const ELB_THEME_DARK = "elbTheme-dark";
|
|
852
|
+
/** The part of the Monaco API that registering a theme needs. */
|
|
853
|
+
interface MonacoThemeRegistry {
|
|
854
|
+
editor: {
|
|
855
|
+
defineTheme(themeName: string, themeData: editor.IStandaloneThemeData): void;
|
|
1218
856
|
};
|
|
1219
857
|
}
|
|
1220
|
-
|
|
1221
858
|
/**
|
|
1222
|
-
* Register
|
|
1223
|
-
*
|
|
859
|
+
* Register the code theme with Monaco. Call it before the first editor
|
|
860
|
+
* mounts; Code and CodeDiff do so in their `beforeMount`.
|
|
1224
861
|
*
|
|
1225
862
|
* @example
|
|
1226
863
|
* ```typescript
|
|
1227
|
-
* import {
|
|
1228
|
-
* import * as monaco from 'monaco-editor';
|
|
864
|
+
* import { registerTheme, ELB_THEME_DARK } from '@walkeros/explorer';
|
|
1229
865
|
*
|
|
1230
|
-
*
|
|
866
|
+
* registerTheme(monaco);
|
|
867
|
+
* monaco.editor.setTheme(ELB_THEME_DARK);
|
|
1231
868
|
* ```
|
|
1232
869
|
*/
|
|
1233
|
-
declare function
|
|
870
|
+
declare function registerTheme(monaco: MonacoThemeRegistry): void;
|
|
1234
871
|
|
|
1235
872
|
/**
|
|
1236
873
|
* Monaco Editor TypeScript Type Management
|
|
@@ -1435,4 +1072,4 @@ declare function validateWalkerOSReferences(text: string, context: Partial<Intel
|
|
|
1435
1072
|
*/
|
|
1436
1073
|
declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
|
|
1437
1074
|
|
|
1438
|
-
export { ArchitectureFlow, type ArchitectureFlowProps, Box, type BoxProps, type BoxTab, BrowserBox, type BrowserBoxProps, Button, ButtonGroup, type ButtonGroupProps,
|
|
1075
|
+
export { ArchitectureFlow, type ArchitectureFlowProps, Box, type BoxProps, type BoxTab, BrowserBox, type BrowserBoxProps, Button, ButtonGroup, type ButtonGroupProps, 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, type CompletionEntry, ELB_THEME_DARK, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, type FlowStageConfig, Grid, type GridProps, Header, type HeaderProps, type IntelliSenseContext, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, type MonacoSchemaExtension, type PackageInfo, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, REFERENCE_PATTERNS, type RefKind, StepExample, type StepExampleProps, allowedRefKinds, applyWalkerOSDecorations, disposeWalkerOSProviders, enrichFlowConfigSchema, enrichSchema, extractFlowIntelliSenseContext, findWalkerOSReferences, generateModelPath, getContractCompletions, getEnrichedContractSchema, getEnvCompletions, getFlowCompletions, getJsonPathAtOffset, getMappingPathCompletions, getSecretCompletions, getStoreCompletions, getVariableCompletions, getVariablesSchema, initializeMonacoTypes, isMonacoCancellation, loadPackageTypes, loadTypeLibraryFromURL, registerJsonSchema, registerTheme, registerWalkerOSDecorationStyles, registerWalkerOSProviders, registerWalkerOSTypes, removeIntelliSenseContext, resolveTypesUrl, setIntelliSenseContext, setPackageTypesBaseUrl, unregisterJsonSchema, validateWalkerOSReferences };
|