@walkeros/explorer 1.0.2 → 2.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/LICENSE +2 -2
- package/STYLE.md +240 -136
- package/dist/{chunk-VWWAIDNX.mjs → chunk-YKT4D7MG.mjs} +201 -53
- package/dist/chunk-YKT4D7MG.mjs.map +1 -0
- package/dist/components/atoms/alert.d.ts +29 -0
- package/dist/components/atoms/alert.d.ts.map +1 -0
- package/dist/components/atoms/alert.js +19 -0
- package/dist/components/atoms/alert.js.map +1 -0
- package/dist/components/atoms/alert.stories.d.ts +7 -0
- package/dist/components/atoms/alert.stories.d.ts.map +1 -0
- package/dist/components/atoms/alert.stories.js +14 -0
- package/dist/components/atoms/alert.stories.js.map +1 -0
- package/dist/components/atoms/button.stories.d.ts +14 -0
- package/dist/components/atoms/button.stories.d.ts.map +1 -0
- package/dist/components/atoms/button.stories.js +25 -0
- package/dist/components/atoms/button.stories.js.map +1 -0
- package/dist/components/atoms/code.d.ts +4 -1
- package/dist/components/atoms/code.d.ts.map +1 -1
- package/dist/components/atoms/code.js +45 -12
- package/dist/components/atoms/code.js.map +1 -1
- package/dist/components/atoms/footer.stories.d.ts +14 -0
- package/dist/components/atoms/footer.stories.d.ts.map +1 -0
- package/dist/components/atoms/footer.stories.js +29 -0
- package/dist/components/atoms/footer.stories.js.map +1 -0
- package/dist/components/atoms/form-field.d.ts +28 -0
- package/dist/components/atoms/form-field.d.ts.map +1 -0
- package/dist/components/atoms/form-field.js +16 -0
- package/dist/components/atoms/form-field.js.map +1 -0
- package/dist/components/atoms/form-field.stories.d.ts +7 -0
- package/dist/components/atoms/form-field.stories.d.ts.map +1 -0
- package/dist/components/atoms/form-field.stories.js +16 -0
- package/dist/components/atoms/form-field.stories.js.map +1 -0
- package/dist/components/atoms/form-input.d.ts +43 -0
- package/dist/components/atoms/form-input.d.ts.map +1 -0
- package/dist/components/atoms/form-input.js +26 -0
- package/dist/components/atoms/form-input.js.map +1 -0
- package/dist/components/atoms/form-input.stories.d.ts +7 -0
- package/dist/components/atoms/form-input.stories.d.ts.map +1 -0
- package/dist/components/atoms/form-input.stories.js +17 -0
- package/dist/components/atoms/form-input.stories.js.map +1 -0
- package/dist/components/atoms/form-textarea.d.ts +41 -0
- package/dist/components/atoms/form-textarea.d.ts.map +1 -0
- package/dist/components/atoms/form-textarea.js +26 -0
- package/dist/components/atoms/form-textarea.js.map +1 -0
- package/dist/components/atoms/form-textarea.stories.d.ts +7 -0
- package/dist/components/atoms/form-textarea.stories.d.ts.map +1 -0
- package/dist/components/atoms/form-textarea.stories.js +17 -0
- package/dist/components/atoms/form-textarea.stories.js.map +1 -0
- package/dist/components/atoms/grid.stories.d.ts +18 -0
- package/dist/components/atoms/grid.stories.d.ts.map +1 -0
- package/dist/components/atoms/grid.stories.js +60 -0
- package/dist/components/atoms/grid.stories.js.map +1 -0
- package/dist/components/atoms/header.stories.d.ts +15 -0
- package/dist/components/atoms/header.stories.d.ts.map +1 -0
- package/dist/components/atoms/header.stories.js +37 -0
- package/dist/components/atoms/header.stories.js.map +1 -0
- package/dist/components/atoms/icons/icon.stories.d.ts +18 -0
- package/dist/components/atoms/icons/icon.stories.d.ts.map +1 -0
- package/dist/components/atoms/icons/icon.stories.js +37 -0
- package/dist/components/atoms/icons/icon.stories.js.map +1 -0
- package/dist/components/atoms/panel-hints.stories.d.ts +14 -0
- package/dist/components/atoms/panel-hints.stories.d.ts.map +1 -0
- package/dist/components/atoms/panel-hints.stories.js +35 -0
- package/dist/components/atoms/panel-hints.stories.js.map +1 -0
- package/dist/components/atoms/spinner.d.ts +17 -0
- package/dist/components/atoms/spinner.d.ts.map +1 -0
- package/dist/components/atoms/spinner.js +14 -0
- package/dist/components/atoms/spinner.js.map +1 -0
- package/dist/components/atoms/spinner.stories.d.ts +7 -0
- package/dist/components/atoms/spinner.stories.d.ts.map +1 -0
- package/dist/components/atoms/spinner.stories.js +9 -0
- package/dist/components/atoms/spinner.stories.js.map +1 -0
- package/dist/components/atoms/submit-button.d.ts +34 -0
- package/dist/components/atoms/submit-button.d.ts.map +1 -0
- package/dist/components/atoms/submit-button.js +18 -0
- package/dist/components/atoms/submit-button.js.map +1 -0
- package/dist/components/atoms/submit-button.stories.d.ts +7 -0
- package/dist/components/atoms/submit-button.stories.d.ts.map +1 -0
- package/dist/components/atoms/submit-button.stories.js +13 -0
- package/dist/components/atoms/submit-button.stories.js.map +1 -0
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js +1 -1
- package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js.map +1 -1
- package/dist/components/molecules/code-box.d.ts +2 -1
- package/dist/components/molecules/code-box.d.ts.map +1 -1
- package/dist/components/molecules/code-box.js +32 -6
- package/dist/components/molecules/code-box.js.map +1 -1
- package/dist/components/molecules/code-box.stories.d.ts +21 -0
- package/dist/components/molecules/code-box.stories.d.ts.map +1 -1
- package/dist/components/molecules/code-box.stories.js +112 -0
- package/dist/components/molecules/code-box.stories.js.map +1 -1
- package/dist/components/molecules/code-snippet.stories.d.ts +11 -0
- package/dist/components/molecules/code-snippet.stories.d.ts.map +1 -1
- package/dist/components/molecules/code-snippet.stories.js +38 -0
- package/dist/components/molecules/code-snippet.stories.js.map +1 -1
- package/dist/components/molecules/config-form-card.d.ts +50 -0
- package/dist/components/molecules/config-form-card.d.ts.map +1 -0
- package/dist/components/molecules/config-form-card.js +30 -0
- package/dist/components/molecules/config-form-card.js.map +1 -0
- package/dist/components/molecules/config-form-card.stories.d.ts +7 -0
- package/dist/components/molecules/config-form-card.stories.d.ts.map +1 -0
- package/dist/components/molecules/config-form-card.stories.js +21 -0
- package/dist/components/molecules/config-form-card.stories.js.map +1 -0
- package/dist/components/molecules/dropdown.d.ts +68 -0
- package/dist/components/molecules/dropdown.d.ts.map +1 -0
- package/dist/components/molecules/dropdown.js +47 -0
- package/dist/components/molecules/dropdown.js.map +1 -0
- package/dist/components/molecules/dropdown.stories.d.ts +7 -0
- package/dist/components/molecules/dropdown.stories.d.ts.map +1 -0
- package/dist/components/molecules/dropdown.stories.js +18 -0
- package/dist/components/molecules/dropdown.stories.js.map +1 -0
- package/dist/components/molecules/flow-map/FlowMap.stories.d.ts.map +1 -1
- package/dist/components/molecules/flow-map/FlowMap.stories.js +7 -1
- package/dist/components/molecules/flow-map/FlowMap.stories.js.map +1 -1
- package/dist/components/molecules/flow-selector.d.ts +19 -0
- package/dist/components/molecules/flow-selector.d.ts.map +1 -0
- package/dist/components/molecules/flow-selector.js +26 -0
- package/dist/components/molecules/flow-selector.js.map +1 -0
- package/dist/components/molecules/flow-selector.stories.d.ts +28 -0
- package/dist/components/molecules/flow-selector.stories.d.ts.map +1 -0
- package/dist/components/molecules/flow-selector.stories.js +66 -0
- package/dist/components/molecules/flow-selector.stories.js.map +1 -0
- package/dist/components/molecules/form-card.d.ts +28 -0
- package/dist/components/molecules/form-card.d.ts.map +1 -0
- package/dist/components/molecules/form-card.js +16 -0
- package/dist/components/molecules/form-card.js.map +1 -0
- package/dist/components/molecules/form-card.stories.d.ts +7 -0
- package/dist/components/molecules/form-card.stories.d.ts.map +1 -0
- package/dist/components/molecules/form-card.stories.js +16 -0
- package/dist/components/molecules/form-card.stories.js.map +1 -0
- package/dist/components/molecules/preview.d.ts.map +1 -1
- package/dist/components/molecules/preview.js +0 -1
- package/dist/components/molecules/preview.js.map +1 -1
- package/dist/components/molecules/split-button.d.ts +25 -0
- package/dist/components/molecules/split-button.d.ts.map +1 -0
- package/dist/components/molecules/split-button.js +37 -0
- package/dist/components/molecules/split-button.js.map +1 -0
- package/dist/components/molecules/split-button.stories.d.ts +32 -0
- package/dist/components/molecules/split-button.stories.d.ts.map +1 -0
- package/dist/components/molecules/split-button.stories.js +88 -0
- package/dist/components/molecules/split-button.stories.js.map +1 -0
- package/dist/hooks/useDropdown.d.ts +34 -0
- package/dist/hooks/useDropdown.d.ts.map +1 -0
- package/dist/hooks/useDropdown.js +66 -0
- package/dist/hooks/useDropdown.js.map +1 -0
- package/dist/index.d.cts +432 -4
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +861 -178
- package/dist/index.mjs.map +1 -1
- package/dist/{monaco-types-4FIH5OVX.mjs → monaco-types-OLSF6MIE.mjs} +2 -2
- package/dist/styles.css +534 -0
- package/dist/themes/lighthouse.d.ts.map +1 -1
- package/dist/themes/lighthouse.js +1 -0
- package/dist/themes/lighthouse.js.map +1 -1
- package/dist/themes/palenight.d.ts.map +1 -1
- package/dist/themes/palenight.js +1 -0
- package/dist/themes/palenight.js.map +1 -1
- package/dist/utils/format-code.d.ts.map +1 -1
- package/dist/utils/format-code.js +11 -2
- package/dist/utils/format-code.js.map +1 -1
- package/dist/utils/monaco-decorators.d.ts.map +1 -1
- package/dist/utils/monaco-decorators.js +2 -0
- package/dist/utils/monaco-decorators.js.map +1 -1
- package/dist/utils/monaco-json-schema.d.ts +24 -0
- package/dist/utils/monaco-json-schema.d.ts.map +1 -0
- package/dist/utils/monaco-json-schema.js +65 -0
- package/dist/utils/monaco-json-schema.js.map +1 -0
- package/package.json +5 -14
- package/dist/chunk-VWWAIDNX.mjs.map +0 -1
- /package/dist/{monaco-types-4FIH5OVX.mjs.map → monaco-types-OLSF6MIE.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"split-button.stories.js","sourceRoot":"","sources":["../../../src/components/molecules/split-button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,IAAI,GAA6B;IACrC,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,uBAAuB;IAC9B,IAAI,EAAE,CAAC,UAAU,CAAC;CACnB,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;KAClB;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,IAAI,EAAE;QACJ,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;QACjB,OAAO,EAAE;YACP;gBACE,GAAG,EAAE,UAAU;gBACf,KAAK,EAAE,uBAAuB;gBAC9B,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;aAClB;YACD;gBACE,GAAG,EAAE,QAAQ;gBACb,KAAK,EAAE,cAAc;gBACrB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;aAClB;SACF;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;QACjB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,cAAc;QAC3B,OAAO,EAAE;YACP,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,uBAAuB,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE;SACvE;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,IAAI,EAAE;QACJ,QAAQ,EAAE,QAAQ;QAClB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;QACjB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,uBAAuB,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE;SACvE;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAU;IAClC,IAAI,EAAE;QACJ,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;QACjB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE;YACP;gBACE,GAAG,EAAE,UAAU;gBACf,KAAK,EAAE,yBAAyB;gBAChC,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;aAClB;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
export interface UseDropdownReturn {
|
|
3
|
+
/** Whether dropdown is currently open */
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
/** Toggle dropdown open/closed */
|
|
6
|
+
toggle: () => void;
|
|
7
|
+
/** Open the dropdown */
|
|
8
|
+
open: () => void;
|
|
9
|
+
/** Close the dropdown */
|
|
10
|
+
close: () => void;
|
|
11
|
+
/** Ref to attach to the container element for click-outside detection */
|
|
12
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* useDropdown - Manages dropdown open/close state with click-outside and keyboard handling
|
|
16
|
+
*
|
|
17
|
+
* Provides:
|
|
18
|
+
* - Open/close state management
|
|
19
|
+
* - Click-outside detection to close
|
|
20
|
+
* - Escape key handling to close
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* const { isOpen, toggle, close, containerRef } = useDropdown();
|
|
24
|
+
*
|
|
25
|
+
* return (
|
|
26
|
+
* <div ref={containerRef}>
|
|
27
|
+
* <Dropdown isOpen={isOpen} onToggle={toggle}>
|
|
28
|
+
* ...
|
|
29
|
+
* </Dropdown>
|
|
30
|
+
* </div>
|
|
31
|
+
* );
|
|
32
|
+
*/
|
|
33
|
+
export declare function useDropdown(): UseDropdownReturn;
|
|
34
|
+
//# sourceMappingURL=useDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropdown.d.ts","sourceRoot":"","sources":["../../src/hooks/useDropdown.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,yCAAyC;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,kCAAkC;IAClC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wBAAwB;IACxB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,yBAAyB;IACzB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,yEAAyE;IACzE,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CAChD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,IAAI,iBAAiB,CAsD/C"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { useState, useRef, useEffect, useCallback } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* useDropdown - Manages dropdown open/close state with click-outside and keyboard handling
|
|
4
|
+
*
|
|
5
|
+
* Provides:
|
|
6
|
+
* - Open/close state management
|
|
7
|
+
* - Click-outside detection to close
|
|
8
|
+
* - Escape key handling to close
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const { isOpen, toggle, close, containerRef } = useDropdown();
|
|
12
|
+
*
|
|
13
|
+
* return (
|
|
14
|
+
* <div ref={containerRef}>
|
|
15
|
+
* <Dropdown isOpen={isOpen} onToggle={toggle}>
|
|
16
|
+
* ...
|
|
17
|
+
* </Dropdown>
|
|
18
|
+
* </div>
|
|
19
|
+
* );
|
|
20
|
+
*/
|
|
21
|
+
export function useDropdown() {
|
|
22
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
23
|
+
const containerRef = useRef(null);
|
|
24
|
+
const toggle = useCallback(() => {
|
|
25
|
+
setIsOpen((prev) => !prev);
|
|
26
|
+
}, []);
|
|
27
|
+
const open = useCallback(() => {
|
|
28
|
+
setIsOpen(true);
|
|
29
|
+
}, []);
|
|
30
|
+
const close = useCallback(() => {
|
|
31
|
+
setIsOpen(false);
|
|
32
|
+
}, []);
|
|
33
|
+
// Close on click outside
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (!isOpen)
|
|
36
|
+
return;
|
|
37
|
+
function handleClickOutside(event) {
|
|
38
|
+
if (containerRef.current &&
|
|
39
|
+
!containerRef.current.contains(event.target)) {
|
|
40
|
+
setIsOpen(false);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
44
|
+
return () => document.removeEventListener('mousedown', handleClickOutside);
|
|
45
|
+
}, [isOpen]);
|
|
46
|
+
// Close on Escape key
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (!isOpen)
|
|
49
|
+
return;
|
|
50
|
+
function handleEscape(event) {
|
|
51
|
+
if (event.key === 'Escape') {
|
|
52
|
+
setIsOpen(false);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
document.addEventListener('keydown', handleEscape);
|
|
56
|
+
return () => document.removeEventListener('keydown', handleEscape);
|
|
57
|
+
}, [isOpen]);
|
|
58
|
+
return {
|
|
59
|
+
isOpen,
|
|
60
|
+
toggle,
|
|
61
|
+
open,
|
|
62
|
+
close,
|
|
63
|
+
containerRef,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=useDropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropdown.js","sourceRoot":"","sources":["../../src/hooks/useDropdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAgBjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,WAAW;IACzB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAElD,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE;QAC9B,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,EAAE;QAC5B,SAAS,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,EAAE;QAC7B,SAAS,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,yBAAyB;IACzB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,SAAS,kBAAkB,CAAC,KAAiB;YAC3C,IACE,YAAY,CAAC,OAAO;gBACpB,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EACpD,CAAC;gBACD,SAAS,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC;QACH,CAAC;QAED,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC;QAC3D,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC;IAC7E,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,sBAAsB;IACtB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,MAAM;YAAE,OAAO;QAEpB,SAAS,YAAY,CAAC,KAAoB;YACxC,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;gBAC3B,SAAS,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC;QACH,CAAC;QAED,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;QACnD,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IACrE,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO;QACL,MAAM;QACN,MAAM;QACN,IAAI;QACJ,KAAK;QACL,YAAY;KACb,CAAC;AACJ,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Destination, WalkerOS, Mapping, Elb } from '@walkeros/core';
|
|
3
3
|
import { RJSFSchema, UiSchema, WidgetProps, FieldProps } from '@rjsf/utils';
|
|
4
|
-
import React, { ReactNode, FC, PropsWithChildren } from 'react';
|
|
4
|
+
import React, { ReactNode, FormEvent, FC, PropsWithChildren, RefObject } from 'react';
|
|
5
5
|
import * as monaco_editor from 'monaco-editor';
|
|
6
6
|
import { editor } from 'monaco-editor';
|
|
7
7
|
export { Icon } from '@iconify/react';
|
|
@@ -465,6 +465,7 @@ interface CodeProps {
|
|
|
465
465
|
onChange?: (code: string) => void;
|
|
466
466
|
disabled?: boolean;
|
|
467
467
|
lineNumbers?: boolean;
|
|
468
|
+
minimap?: boolean;
|
|
468
469
|
folding?: boolean;
|
|
469
470
|
wordWrap?: boolean;
|
|
470
471
|
className?: string;
|
|
@@ -478,6 +479,8 @@ interface CodeProps {
|
|
|
478
479
|
packages?: string[];
|
|
479
480
|
sticky?: boolean;
|
|
480
481
|
ide?: boolean;
|
|
482
|
+
/** JSON Schema (Draft 7) for validation and IntelliSense in JSON mode */
|
|
483
|
+
jsonSchema?: Record<string, unknown>;
|
|
481
484
|
}
|
|
482
485
|
/**
|
|
483
486
|
* Code - Pure Monaco editor atom
|
|
@@ -511,7 +514,7 @@ interface CodeProps {
|
|
|
511
514
|
* autoHeight={{ min: 100, max: 600 }}
|
|
512
515
|
* />
|
|
513
516
|
*/
|
|
514
|
-
declare function Code({ code, language, onChange, disabled, lineNumbers, folding, wordWrap, className, beforeMount, onMount, autoHeight, fontSize, packages, sticky, ide, }: CodeProps): react_jsx_runtime.JSX.Element;
|
|
517
|
+
declare function Code({ code, language, onChange, disabled, lineNumbers, minimap, folding, wordWrap, className, beforeMount, onMount, autoHeight, fontSize, packages, sticky, ide, jsonSchema, }: CodeProps): react_jsx_runtime.JSX.Element;
|
|
515
518
|
|
|
516
519
|
/**
|
|
517
520
|
* Tab with code content for CodeBox
|
|
@@ -534,6 +537,7 @@ interface CodeBoxProps extends Omit<CodeProps, 'code'> {
|
|
|
534
537
|
showTrafficLights?: boolean;
|
|
535
538
|
showCopy?: boolean;
|
|
536
539
|
showFormat?: boolean;
|
|
540
|
+
showSettings?: boolean;
|
|
537
541
|
footer?: React.ReactNode;
|
|
538
542
|
height?: string | number;
|
|
539
543
|
style?: React.CSSProperties;
|
|
@@ -578,7 +582,7 @@ interface CodeBoxProps extends Omit<CodeProps, 'code'> {
|
|
|
578
582
|
* showFormat
|
|
579
583
|
* />
|
|
580
584
|
*/
|
|
581
|
-
declare function CodeBox({ code, language, onChange, disabled, autoHeight, label, header, showHeader, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, showTrafficLights, showCopy, showFormat, footer, height, style, className, ...codeProps }: CodeBoxProps): react_jsx_runtime.JSX.Element;
|
|
585
|
+
declare function CodeBox({ code, language, onChange, disabled, autoHeight, label, header, showHeader, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, showTrafficLights, showCopy, showFormat, showSettings, footer, height, style, className, ...codeProps }: CodeBoxProps): react_jsx_runtime.JSX.Element;
|
|
582
586
|
|
|
583
587
|
type CodeSnippetProps = Omit<CodeBoxProps, 'label' | 'showHeader'> & {
|
|
584
588
|
format?: boolean;
|
|
@@ -715,6 +719,192 @@ interface PropertyTableProps {
|
|
|
715
719
|
}
|
|
716
720
|
declare function PropertyTable({ schema, className }: PropertyTableProps): react_jsx_runtime.JSX.Element;
|
|
717
721
|
|
|
722
|
+
interface FormCardProps {
|
|
723
|
+
/** Card content */
|
|
724
|
+
children: React.ReactNode;
|
|
725
|
+
/** Card title */
|
|
726
|
+
title?: string;
|
|
727
|
+
/** Card subtitle */
|
|
728
|
+
subtitle?: string;
|
|
729
|
+
/** Footer content */
|
|
730
|
+
footer?: React.ReactNode;
|
|
731
|
+
/** Maximum width */
|
|
732
|
+
maxWidth?: 'sm' | 'md' | 'lg' | 'full';
|
|
733
|
+
/** Additional CSS class */
|
|
734
|
+
className?: string;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* FormCard - Container for form-based content
|
|
738
|
+
*
|
|
739
|
+
* Pure UI component for centered form layouts.
|
|
740
|
+
* Typically used for auth pages, settings, etc.
|
|
741
|
+
*
|
|
742
|
+
* @example
|
|
743
|
+
* <FormCard title="Sign in" maxWidth="sm">
|
|
744
|
+
* <form>...</form>
|
|
745
|
+
* </FormCard>
|
|
746
|
+
*/
|
|
747
|
+
declare function FormCard({ children, title, subtitle, footer, maxWidth, className, }: FormCardProps): react_jsx_runtime.JSX.Element;
|
|
748
|
+
|
|
749
|
+
interface DropdownProps {
|
|
750
|
+
/** Trigger element (button, link, etc.) */
|
|
751
|
+
trigger: React.ReactNode;
|
|
752
|
+
/** Whether dropdown is open (controlled) */
|
|
753
|
+
isOpen: boolean;
|
|
754
|
+
/** Toggle handler */
|
|
755
|
+
onToggle: () => void;
|
|
756
|
+
/** Dropdown content */
|
|
757
|
+
children: React.ReactNode;
|
|
758
|
+
/** Alignment of dropdown panel */
|
|
759
|
+
align?: 'left' | 'right';
|
|
760
|
+
/** ARIA label for accessibility */
|
|
761
|
+
ariaLabel?: string;
|
|
762
|
+
/** Additional CSS class */
|
|
763
|
+
className?: string;
|
|
764
|
+
}
|
|
765
|
+
interface DropdownItemProps {
|
|
766
|
+
/** Item content */
|
|
767
|
+
children: React.ReactNode;
|
|
768
|
+
/** Click handler */
|
|
769
|
+
onClick?: () => void;
|
|
770
|
+
/** Disabled state */
|
|
771
|
+
disabled?: boolean;
|
|
772
|
+
/** Visual variant */
|
|
773
|
+
variant?: 'default' | 'danger';
|
|
774
|
+
/** Additional CSS class */
|
|
775
|
+
className?: string;
|
|
776
|
+
}
|
|
777
|
+
interface DropdownDividerProps {
|
|
778
|
+
/** Additional CSS class */
|
|
779
|
+
className?: string;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Dropdown - Generic dropdown container (UI only)
|
|
783
|
+
*
|
|
784
|
+
* Pure UI component for dropdown menus.
|
|
785
|
+
* Click-outside and keyboard handling should be implemented in the parent
|
|
786
|
+
* via hooks like useDropdown.
|
|
787
|
+
*
|
|
788
|
+
* @example
|
|
789
|
+
* <Dropdown
|
|
790
|
+
* trigger={<button>Menu</button>}
|
|
791
|
+
* isOpen={isOpen}
|
|
792
|
+
* onToggle={toggle}
|
|
793
|
+
* align="right"
|
|
794
|
+
* >
|
|
795
|
+
* <DropdownItem onClick={handleAction}>Action</DropdownItem>
|
|
796
|
+
* <DropdownDivider />
|
|
797
|
+
* <DropdownItem onClick={handleLogout} variant="danger">Logout</DropdownItem>
|
|
798
|
+
* </Dropdown>
|
|
799
|
+
*/
|
|
800
|
+
declare function Dropdown({ trigger, isOpen, onToggle, children, align, ariaLabel, className, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
801
|
+
/**
|
|
802
|
+
* DropdownItem - Menu item within a dropdown
|
|
803
|
+
*
|
|
804
|
+
* @example
|
|
805
|
+
* <DropdownItem onClick={handleClick}>Action</DropdownItem>
|
|
806
|
+
*/
|
|
807
|
+
declare function DropdownItem({ children, onClick, disabled, variant, className, }: DropdownItemProps): react_jsx_runtime.JSX.Element;
|
|
808
|
+
/**
|
|
809
|
+
* DropdownDivider - Visual separator between menu items
|
|
810
|
+
*
|
|
811
|
+
* @example
|
|
812
|
+
* <DropdownDivider />
|
|
813
|
+
*/
|
|
814
|
+
declare function DropdownDivider({ className }: DropdownDividerProps): react_jsx_runtime.JSX.Element;
|
|
815
|
+
|
|
816
|
+
interface ConfigFormCardProps {
|
|
817
|
+
/** Current config value (JSON/code string) */
|
|
818
|
+
config: string;
|
|
819
|
+
/** Config change handler */
|
|
820
|
+
onConfigChange: (value: string) => void;
|
|
821
|
+
/** Form submit handler */
|
|
822
|
+
onSubmit: (e: FormEvent) => void;
|
|
823
|
+
/** Loading state */
|
|
824
|
+
loading?: boolean;
|
|
825
|
+
/** Error message (null if no error) */
|
|
826
|
+
error?: string | null;
|
|
827
|
+
/** Card title (default: "Configuration") */
|
|
828
|
+
title?: string;
|
|
829
|
+
/** Textarea label (default: "Configuration (JSON)") */
|
|
830
|
+
label?: string;
|
|
831
|
+
/** Submit button text (default: "Submit") */
|
|
832
|
+
submitText?: string;
|
|
833
|
+
/** Loading button text (default: "Processing...") */
|
|
834
|
+
loadingText?: string;
|
|
835
|
+
/** Number of textarea rows (default: 20) */
|
|
836
|
+
rows?: number;
|
|
837
|
+
/** Card max width */
|
|
838
|
+
maxWidth?: 'sm' | 'md' | 'lg' | 'full';
|
|
839
|
+
/** Additional CSS class */
|
|
840
|
+
className?: string;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* ConfigFormCard - Form for JSON/code configuration input (pure UI)
|
|
844
|
+
*
|
|
845
|
+
* Displays a textarea for entering configuration with submit button.
|
|
846
|
+
* Business logic (validation, API calls) is handled via callbacks.
|
|
847
|
+
*
|
|
848
|
+
* @example
|
|
849
|
+
* const { config, setConfig, loading, error, handleSubmit } = useBundleForm(); // App hook
|
|
850
|
+
*
|
|
851
|
+
* <ConfigFormCard
|
|
852
|
+
* config={config}
|
|
853
|
+
* onConfigChange={setConfig}
|
|
854
|
+
* onSubmit={handleSubmit}
|
|
855
|
+
* loading={loading}
|
|
856
|
+
* error={error}
|
|
857
|
+
* title="Bundle Configuration"
|
|
858
|
+
* label="Flow Configuration (JSON)"
|
|
859
|
+
* submitText="Bundle"
|
|
860
|
+
* loadingText="Bundling..."
|
|
861
|
+
* />
|
|
862
|
+
*/
|
|
863
|
+
declare function ConfigFormCard({ config, onConfigChange, onSubmit, loading, error, title, label, submitText, loadingText, rows, maxWidth, className, }: ConfigFormCardProps): react_jsx_runtime.JSX.Element;
|
|
864
|
+
|
|
865
|
+
interface SplitButtonAction {
|
|
866
|
+
key: string;
|
|
867
|
+
label: string;
|
|
868
|
+
onClick: () => void;
|
|
869
|
+
disabled?: boolean;
|
|
870
|
+
}
|
|
871
|
+
interface SplitButtonProps {
|
|
872
|
+
children: React.ReactNode;
|
|
873
|
+
onClick: () => void;
|
|
874
|
+
actions?: SplitButtonAction[];
|
|
875
|
+
variant?: 'primary' | 'default' | 'danger';
|
|
876
|
+
loading?: boolean;
|
|
877
|
+
loadingText?: string;
|
|
878
|
+
disabled?: boolean;
|
|
879
|
+
className?: string;
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* SplitButton - Primary button with dropdown actions
|
|
883
|
+
*
|
|
884
|
+
* Generic molecule: primary button + dropdown arrow.
|
|
885
|
+
* Click-outside and Escape to close.
|
|
886
|
+
*/
|
|
887
|
+
declare function SplitButton({ children, onClick, actions, variant, loading, loadingText, disabled, className, }: SplitButtonProps): react_jsx_runtime.JSX.Element;
|
|
888
|
+
|
|
889
|
+
interface FlowSelectorFlow {
|
|
890
|
+
name: string;
|
|
891
|
+
platform?: 'web' | 'server';
|
|
892
|
+
deploymentStatus?: string | null;
|
|
893
|
+
}
|
|
894
|
+
interface FlowSelectorProps {
|
|
895
|
+
flows: FlowSelectorFlow[];
|
|
896
|
+
selectedFlow: string;
|
|
897
|
+
onSelectFlow: (name: string) => void;
|
|
898
|
+
className?: string;
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* FlowSelector - Tab bar for selecting named flows
|
|
902
|
+
*
|
|
903
|
+
* Shows tabs with status dots for each named flow.
|
|
904
|
+
* Returns null when there is only one flow or none.
|
|
905
|
+
*/
|
|
906
|
+
declare function FlowSelector({ flows, selectedFlow, onSelectFlow, className, }: FlowSelectorProps): react_jsx_runtime.JSX.Element | null;
|
|
907
|
+
|
|
718
908
|
/**
|
|
719
909
|
* Destination schema bundle for runtime provision
|
|
720
910
|
*
|
|
@@ -1045,6 +1235,195 @@ interface PanelHintsProps {
|
|
|
1045
1235
|
}
|
|
1046
1236
|
declare function PanelHints({ title, hints, className, }: PanelHintsProps): react_jsx_runtime.JSX.Element;
|
|
1047
1237
|
|
|
1238
|
+
interface SpinnerProps {
|
|
1239
|
+
/** Size of the spinner */
|
|
1240
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1241
|
+
/** Additional CSS class */
|
|
1242
|
+
className?: string;
|
|
1243
|
+
}
|
|
1244
|
+
/**
|
|
1245
|
+
* Spinner - Loading indicator
|
|
1246
|
+
*
|
|
1247
|
+
* Pure UI component for showing loading state.
|
|
1248
|
+
* No internal state - controlled via parent.
|
|
1249
|
+
*
|
|
1250
|
+
* @example
|
|
1251
|
+
* <Spinner size="md" />
|
|
1252
|
+
*/
|
|
1253
|
+
declare function Spinner({ size, className }: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
1254
|
+
|
|
1255
|
+
interface AlertProps {
|
|
1256
|
+
/** Alert content */
|
|
1257
|
+
children: React.ReactNode;
|
|
1258
|
+
/** Optional title */
|
|
1259
|
+
title?: string;
|
|
1260
|
+
/** Visual variant */
|
|
1261
|
+
variant: 'error' | 'success' | 'warning' | 'info';
|
|
1262
|
+
/** ARIA role */
|
|
1263
|
+
role?: 'alert' | 'status';
|
|
1264
|
+
/** Additional CSS class */
|
|
1265
|
+
className?: string;
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* Alert - Feedback message component
|
|
1269
|
+
*
|
|
1270
|
+
* Pure UI component for displaying error, success, warning, or info messages.
|
|
1271
|
+
* No internal state - controlled via parent.
|
|
1272
|
+
*
|
|
1273
|
+
* @example
|
|
1274
|
+
* <Alert variant="error">Something went wrong</Alert>
|
|
1275
|
+
*
|
|
1276
|
+
* @example
|
|
1277
|
+
* <Alert variant="success" title="Check your email">
|
|
1278
|
+
* We sent a magic link to your inbox.
|
|
1279
|
+
* </Alert>
|
|
1280
|
+
*/
|
|
1281
|
+
declare function Alert({ children, title, variant, role, className, }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
1282
|
+
|
|
1283
|
+
interface FormFieldProps {
|
|
1284
|
+
/** Form field content (input, textarea, etc.) */
|
|
1285
|
+
children: React.ReactNode;
|
|
1286
|
+
/** Field label */
|
|
1287
|
+
label?: string;
|
|
1288
|
+
/** HTML id for the input (links label to input) */
|
|
1289
|
+
htmlFor?: string;
|
|
1290
|
+
/** Error message to display */
|
|
1291
|
+
error?: string;
|
|
1292
|
+
/** Whether the field is required */
|
|
1293
|
+
required?: boolean;
|
|
1294
|
+
/** Additional CSS class */
|
|
1295
|
+
className?: string;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* FormField - Label + input + error wrapper
|
|
1299
|
+
*
|
|
1300
|
+
* Pure UI component for consistent form field layout.
|
|
1301
|
+
* Wraps input elements with label and error message.
|
|
1302
|
+
*
|
|
1303
|
+
* @example
|
|
1304
|
+
* <FormField label="Email" htmlFor="email" error={errors.email}>
|
|
1305
|
+
* <input id="email" type="email" />
|
|
1306
|
+
* </FormField>
|
|
1307
|
+
*/
|
|
1308
|
+
declare function FormField({ children, label, htmlFor, error, required, className, }: FormFieldProps): react_jsx_runtime.JSX.Element;
|
|
1309
|
+
|
|
1310
|
+
interface FormInputProps {
|
|
1311
|
+
/** Current value (controlled) */
|
|
1312
|
+
value: string;
|
|
1313
|
+
/** Change handler */
|
|
1314
|
+
onChange: (value: string) => void;
|
|
1315
|
+
/** Field label */
|
|
1316
|
+
label?: string;
|
|
1317
|
+
/** Input type */
|
|
1318
|
+
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url';
|
|
1319
|
+
/** Placeholder text */
|
|
1320
|
+
placeholder?: string;
|
|
1321
|
+
/** Disabled state */
|
|
1322
|
+
disabled?: boolean;
|
|
1323
|
+
/** Autofocus on mount */
|
|
1324
|
+
autoFocus?: boolean;
|
|
1325
|
+
/** Autocomplete attribute */
|
|
1326
|
+
autoComplete?: string;
|
|
1327
|
+
/** Required field */
|
|
1328
|
+
required?: boolean;
|
|
1329
|
+
/** Error state (boolean shows error style, string shows error message) */
|
|
1330
|
+
error?: boolean | string;
|
|
1331
|
+
/** HTML id (auto-generated if not provided) */
|
|
1332
|
+
id?: string;
|
|
1333
|
+
/** Additional CSS class */
|
|
1334
|
+
className?: string;
|
|
1335
|
+
}
|
|
1336
|
+
/**
|
|
1337
|
+
* FormInput - Text input with label and error support
|
|
1338
|
+
*
|
|
1339
|
+
* Pure UI component for single-line text inputs.
|
|
1340
|
+
* Fully controlled - all state managed by parent.
|
|
1341
|
+
*
|
|
1342
|
+
* @example
|
|
1343
|
+
* <FormInput
|
|
1344
|
+
* label="Email"
|
|
1345
|
+
* type="email"
|
|
1346
|
+
* value={email}
|
|
1347
|
+
* onChange={setEmail}
|
|
1348
|
+
* error={emailError}
|
|
1349
|
+
* />
|
|
1350
|
+
*/
|
|
1351
|
+
declare function FormInput({ value, onChange, label, type, placeholder, disabled, autoFocus, autoComplete, required, error, id, className, }: FormInputProps): react_jsx_runtime.JSX.Element;
|
|
1352
|
+
|
|
1353
|
+
interface FormTextareaProps {
|
|
1354
|
+
/** Current value (controlled) */
|
|
1355
|
+
value: string;
|
|
1356
|
+
/** Change handler */
|
|
1357
|
+
onChange: (value: string) => void;
|
|
1358
|
+
/** Field label */
|
|
1359
|
+
label?: string;
|
|
1360
|
+
/** Number of visible rows */
|
|
1361
|
+
rows?: number;
|
|
1362
|
+
/** Placeholder text */
|
|
1363
|
+
placeholder?: string;
|
|
1364
|
+
/** Disabled state */
|
|
1365
|
+
disabled?: boolean;
|
|
1366
|
+
/** Spellcheck enabled */
|
|
1367
|
+
spellCheck?: boolean;
|
|
1368
|
+
/** Required field */
|
|
1369
|
+
required?: boolean;
|
|
1370
|
+
/** Error state (boolean shows error style, string shows error message) */
|
|
1371
|
+
error?: boolean | string;
|
|
1372
|
+
/** HTML id (auto-generated if not provided) */
|
|
1373
|
+
id?: string;
|
|
1374
|
+
/** Additional CSS class */
|
|
1375
|
+
className?: string;
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* FormTextarea - Multi-line text input with label and error support
|
|
1379
|
+
*
|
|
1380
|
+
* Pure UI component for multi-line text inputs.
|
|
1381
|
+
* Fully controlled - all state managed by parent.
|
|
1382
|
+
*
|
|
1383
|
+
* @example
|
|
1384
|
+
* <FormTextarea
|
|
1385
|
+
* label="Configuration"
|
|
1386
|
+
* value={config}
|
|
1387
|
+
* onChange={setConfig}
|
|
1388
|
+
* rows={15}
|
|
1389
|
+
* spellCheck={false}
|
|
1390
|
+
* />
|
|
1391
|
+
*/
|
|
1392
|
+
declare function FormTextarea({ value, onChange, label, rows, placeholder, disabled, spellCheck, required, error, id, className, }: FormTextareaProps): react_jsx_runtime.JSX.Element;
|
|
1393
|
+
|
|
1394
|
+
interface SubmitButtonProps {
|
|
1395
|
+
/** Button content */
|
|
1396
|
+
children: React.ReactNode;
|
|
1397
|
+
/** Text to show when loading */
|
|
1398
|
+
loadingText?: string;
|
|
1399
|
+
/** Loading state */
|
|
1400
|
+
loading?: boolean;
|
|
1401
|
+
/** Disabled state */
|
|
1402
|
+
disabled?: boolean;
|
|
1403
|
+
/** Visual variant */
|
|
1404
|
+
variant?: 'primary' | 'default' | 'danger';
|
|
1405
|
+
/** Full width button */
|
|
1406
|
+
fullWidth?: boolean;
|
|
1407
|
+
/** Button type */
|
|
1408
|
+
type?: 'submit' | 'button';
|
|
1409
|
+
/** Click handler (for type="button") */
|
|
1410
|
+
onClick?: () => void;
|
|
1411
|
+
/** Additional CSS class */
|
|
1412
|
+
className?: string;
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* SubmitButton - Form submit button with loading state
|
|
1416
|
+
*
|
|
1417
|
+
* Pure UI component for form submissions.
|
|
1418
|
+
* Shows spinner and loading text when loading=true.
|
|
1419
|
+
*
|
|
1420
|
+
* @example
|
|
1421
|
+
* <SubmitButton loading={isSubmitting} loadingText="Saving...">
|
|
1422
|
+
* Save
|
|
1423
|
+
* </SubmitButton>
|
|
1424
|
+
*/
|
|
1425
|
+
declare function SubmitButton({ children, loadingText, loading, disabled, variant, fullWidth, type, onClick, className, }: SubmitButtonProps): react_jsx_runtime.JSX.Element;
|
|
1426
|
+
|
|
1048
1427
|
/**
|
|
1049
1428
|
* MDXProvider - Makes components available in MDX files without explicit imports
|
|
1050
1429
|
*
|
|
@@ -1121,6 +1500,39 @@ declare const MDXCode: FC<PropsWithChildren<MDXCodeProps>>;
|
|
|
1121
1500
|
*/
|
|
1122
1501
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1123
1502
|
|
|
1503
|
+
interface UseDropdownReturn {
|
|
1504
|
+
/** Whether dropdown is currently open */
|
|
1505
|
+
isOpen: boolean;
|
|
1506
|
+
/** Toggle dropdown open/closed */
|
|
1507
|
+
toggle: () => void;
|
|
1508
|
+
/** Open the dropdown */
|
|
1509
|
+
open: () => void;
|
|
1510
|
+
/** Close the dropdown */
|
|
1511
|
+
close: () => void;
|
|
1512
|
+
/** Ref to attach to the container element for click-outside detection */
|
|
1513
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* useDropdown - Manages dropdown open/close state with click-outside and keyboard handling
|
|
1517
|
+
*
|
|
1518
|
+
* Provides:
|
|
1519
|
+
* - Open/close state management
|
|
1520
|
+
* - Click-outside detection to close
|
|
1521
|
+
* - Escape key handling to close
|
|
1522
|
+
*
|
|
1523
|
+
* @example
|
|
1524
|
+
* const { isOpen, toggle, close, containerRef } = useDropdown();
|
|
1525
|
+
*
|
|
1526
|
+
* return (
|
|
1527
|
+
* <div ref={containerRef}>
|
|
1528
|
+
* <Dropdown isOpen={isOpen} onToggle={toggle}>
|
|
1529
|
+
* ...
|
|
1530
|
+
* </Dropdown>
|
|
1531
|
+
* </div>
|
|
1532
|
+
* );
|
|
1533
|
+
*/
|
|
1534
|
+
declare function useDropdown(): UseDropdownReturn;
|
|
1535
|
+
|
|
1124
1536
|
declare const palenightTheme: editor.IStandaloneThemeData;
|
|
1125
1537
|
/**
|
|
1126
1538
|
* Register the palenight theme with Monaco Editor
|
|
@@ -1326,6 +1738,22 @@ declare function registerWalkerOSTypes(monaco: Monaco): void;
|
|
|
1326
1738
|
*/
|
|
1327
1739
|
declare function initializeMonacoTypes(monaco: Monaco): void;
|
|
1328
1740
|
|
|
1741
|
+
/**
|
|
1742
|
+
* Generate a unique model path for a Code instance.
|
|
1743
|
+
* Used as the `path` prop for @monaco-editor/react Editor.
|
|
1744
|
+
*/
|
|
1745
|
+
declare function generateModelPath(): string;
|
|
1746
|
+
/**
|
|
1747
|
+
* Register a JSON schema for a specific model path.
|
|
1748
|
+
* Triggers a global setDiagnosticsOptions update.
|
|
1749
|
+
*/
|
|
1750
|
+
declare function registerJsonSchema(modelPath: string, schema: Record<string, unknown>): void;
|
|
1751
|
+
/**
|
|
1752
|
+
* Unregister a JSON schema when a Code instance unmounts.
|
|
1753
|
+
* Triggers a global setDiagnosticsOptions update.
|
|
1754
|
+
*/
|
|
1755
|
+
declare function unregisterJsonSchema(modelPath: string): void;
|
|
1756
|
+
|
|
1329
1757
|
/**
|
|
1330
1758
|
* Formats captured function calls for display
|
|
1331
1759
|
*
|
|
@@ -1387,4 +1815,4 @@ declare function createRawCapture(destinationEnv: unknown): {
|
|
|
1387
1815
|
}[];
|
|
1388
1816
|
};
|
|
1389
1817
|
|
|
1390
|
-
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, type CodeProps, CodeSnippet, type CodeSnippetProps, CollectorBox, type CollectorBoxProps, ConfigEditor, type ConfigEditorBoxProps, DESTINATION_CONFIG_STRUCTURE, DestinationDemo, type DestinationDemoProps, DestinationInitDemo as DestinationInit, DestinationInitDemo, type DestinationInitDemoProps, DestinationDemo as DestinationPush, type DestinationSchemas, type ExplorerTheme, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, type FlowStageConfig, Footer, type FooterProps, Grid, type GridProps, Header, type HeaderProps, type HintItem, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, MAPPING_RULE_STRUCTURE, MDXCode, MDXProvider, MappingCode, type MappingCodeProps, MappingDemo, type MappingDemoProps, MappingKeyField, MappingKeyWidget, PanelHints, type PanelHintsProps, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, captureDestinationPush, cn, createCaptureFn, createFbqDestination, createGtagDestination, createPlausibleDestination, createRawCapture, formatCapturedCalls, initializeMonacoTypes, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSTypes };
|
|
1818
|
+
export { Alert, type AlertProps, 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, type CodeProps, CodeSnippet, type CodeSnippetProps, CollectorBox, type CollectorBoxProps, ConfigEditor, type ConfigEditorBoxProps, ConfigFormCard, type ConfigFormCardProps, DESTINATION_CONFIG_STRUCTURE, DestinationDemo, type DestinationDemoProps, DestinationInitDemo as DestinationInit, DestinationInitDemo, type DestinationInitDemoProps, DestinationDemo as DestinationPush, type DestinationSchemas, Dropdown, DropdownDivider, type DropdownDividerProps, DropdownItem, type DropdownItemProps, type DropdownProps, type ExplorerTheme, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, FlowSelector, type FlowSelectorFlow, type FlowSelectorProps, type FlowStageConfig, Footer, type FooterProps, FormCard, type FormCardProps, FormField, type FormFieldProps, FormInput, type FormInputProps, FormTextarea, type FormTextareaProps, Grid, type GridProps, Header, type HeaderProps, type HintItem, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, MAPPING_RULE_STRUCTURE, MDXCode, MDXProvider, MappingCode, type MappingCodeProps, MappingDemo, type MappingDemoProps, MappingKeyField, MappingKeyWidget, PanelHints, type PanelHintsProps, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, Spinner, type SpinnerProps, SplitButton, type SplitButtonAction, type SplitButtonProps, SubmitButton, type SubmitButtonProps, type UseDropdownReturn, captureDestinationPush, cn, createCaptureFn, createFbqDestination, createGtagDestination, createPlausibleDestination, createRawCapture, formatCapturedCalls, generateModelPath, initializeMonacoTypes, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerJsonSchema, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSTypes, unregisterJsonSchema, useDropdown };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,11 +23,21 @@ export { CodeBox } from './components/molecules/code-box';
|
|
|
23
23
|
export { CodeSnippet } from './components/molecules/code-snippet';
|
|
24
24
|
export { FlowMap } from './components/molecules/flow-map';
|
|
25
25
|
export { PropertyTable } from './components/molecules/property-table';
|
|
26
|
+
export { FormCard } from './components/molecules/form-card';
|
|
27
|
+
export { Dropdown, DropdownItem, DropdownDivider, } from './components/molecules/dropdown';
|
|
28
|
+
export { ConfigFormCard } from './components/molecules/config-form-card';
|
|
26
29
|
export type { ArchitectureFlowProps, FlowColumn, FlowSection, FlowItem, } from './components/molecules/architecture-flow';
|
|
27
30
|
export type { CodeBoxProps, CodeBoxTab } from './components/molecules/code-box';
|
|
28
31
|
export type { CodeSnippetProps } from './components/molecules/code-snippet';
|
|
29
32
|
export type { FlowMapProps, FlowStageConfig, } from './components/molecules/flow-map';
|
|
30
33
|
export type { PropertyTableProps } from './components/molecules/property-table';
|
|
34
|
+
export { SplitButton } from './components/molecules/split-button';
|
|
35
|
+
export type { SplitButtonProps, SplitButtonAction, } from './components/molecules/split-button';
|
|
36
|
+
export { FlowSelector } from './components/molecules/flow-selector';
|
|
37
|
+
export type { FlowSelectorProps, FlowSelectorFlow, } from './components/molecules/flow-selector';
|
|
38
|
+
export type { FormCardProps } from './components/molecules/form-card';
|
|
39
|
+
export type { DropdownProps, DropdownItemProps, DropdownDividerProps, } from './components/molecules/dropdown';
|
|
40
|
+
export type { ConfigFormCardProps } from './components/molecules/config-form-card';
|
|
31
41
|
export type { DestinationSchemas } from './types/schemas';
|
|
32
42
|
export { DESTINATION_CONFIG_STRUCTURE, MAPPING_RULE_STRUCTURE, } from './schemas/config-structures';
|
|
33
43
|
export { Preview } from './components/molecules/preview';
|
|
@@ -43,6 +53,12 @@ export { ButtonLink } from './components/atoms/button-link';
|
|
|
43
53
|
export { MappingKeyWidget } from './components/atoms/mapping-key';
|
|
44
54
|
export { MappingKeyField } from './components/atoms/mapping-key-field';
|
|
45
55
|
export { PanelHints } from './components/atoms/panel-hints';
|
|
56
|
+
export { Spinner } from './components/atoms/spinner';
|
|
57
|
+
export { Alert } from './components/atoms/alert';
|
|
58
|
+
export { FormField } from './components/atoms/form-field';
|
|
59
|
+
export { FormInput } from './components/atoms/form-input';
|
|
60
|
+
export { FormTextarea } from './components/atoms/form-textarea';
|
|
61
|
+
export { SubmitButton } from './components/atoms/submit-button';
|
|
46
62
|
export { Icon } from './components/atoms/icons';
|
|
47
63
|
export type { CodeProps } from './components/atoms/code';
|
|
48
64
|
export type { BoxProps, BoxTab } from './components/atoms/box';
|
|
@@ -53,13 +69,22 @@ export type { ButtonProps } from './components/atoms/button';
|
|
|
53
69
|
export type { ButtonGroupProps } from './components/atoms/button-group';
|
|
54
70
|
export type { ButtonLinkProps } from './components/atoms/button-link';
|
|
55
71
|
export type { PanelHintsProps, HintItem } from './components/atoms/panel-hints';
|
|
72
|
+
export type { SpinnerProps } from './components/atoms/spinner';
|
|
73
|
+
export type { AlertProps } from './components/atoms/alert';
|
|
74
|
+
export type { FormFieldProps } from './components/atoms/form-field';
|
|
75
|
+
export type { FormInputProps } from './components/atoms/form-input';
|
|
76
|
+
export type { FormTextareaProps } from './components/atoms/form-textarea';
|
|
77
|
+
export type { SubmitButtonProps } from './components/atoms/submit-button';
|
|
56
78
|
export { MDXProvider } from './providers/MDXProvider';
|
|
57
79
|
export { MDXCode } from './components/atoms/mdx-code';
|
|
58
80
|
export { cn } from './lib/utils';
|
|
81
|
+
export { useDropdown } from './hooks/useDropdown';
|
|
82
|
+
export type { UseDropdownReturn } from './hooks/useDropdown';
|
|
59
83
|
export { palenightTheme, lighthouseTheme, registerPalenightTheme, registerLighthouseTheme, registerAllThemes, } from './themes';
|
|
60
84
|
export type { ExplorerTheme } from './themes';
|
|
61
85
|
export { registerWalkerOSTypes, initializeMonacoTypes, loadPackageTypes, loadTypeLibraryFromURL, } from './utils/monaco-types';
|
|
62
86
|
export type { LoadPackageTypesOptions } from './utils/monaco-types';
|
|
87
|
+
export { registerJsonSchema, unregisterJsonSchema, generateModelPath, } from './utils/monaco-json-schema';
|
|
63
88
|
export { createGtagDestination, createFbqDestination, createPlausibleDestination, } from './helpers/destinations';
|
|
64
89
|
export { captureDestinationPush, formatCapturedCalls, createRawCapture, } from './helpers/capture';
|
|
65
90
|
//# sourceMappingURL=index.d.ts.map
|