@voltro/devtools 0.71.1 → 0.72.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/CHANGELOG.md +383 -0
- package/THIRD-PARTY-NOTICES.md +29 -1
- package/dist/index.d.ts +113 -20
- package/dist/index.js +2801 -1493
- package/dist/styles.css +530 -483
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
export declare type Anchor = 'topLeft' | 'topMid' | 'topRight' | 'midLeft' | 'midRight' | 'bottomLeft' | 'bottomMid' | 'bottomRight';
|
|
4
|
-
|
|
5
3
|
/** The English defaults. A deployment overrides any subtree via
|
|
6
4
|
* {@link DevtoolsStringsProvider} or the `strings` prop; unspecified keys fall
|
|
7
5
|
* through to these. */
|
|
@@ -11,22 +9,78 @@ export declare const defaultDevtoolsStrings: DevtoolsStrings;
|
|
|
11
9
|
* anything that interpolates a value (count, name) is a function so a locale
|
|
12
10
|
* can reorder/pluralize. English defaults live in {@link defaultDevtoolsStrings}. */
|
|
13
11
|
export declare interface DevtoolsStrings {
|
|
14
|
-
/** The shell:
|
|
12
|
+
/** The shell: the closed capsule, the console chrome, docking, keyboard. */
|
|
15
13
|
readonly shell: {
|
|
16
14
|
/** aria-label on the open (dialog) surface (the full product name). */
|
|
17
15
|
readonly brand: string;
|
|
18
|
-
/** The bold brand word in the
|
|
16
|
+
/** The bold brand word in the console header. */
|
|
19
17
|
readonly brandWord: string;
|
|
20
|
-
/** The uppercase
|
|
18
|
+
/** The uppercase word beside the brand word in the header. */
|
|
21
19
|
readonly kicker: string;
|
|
22
|
-
/**
|
|
20
|
+
/** Capsule `aria-label` (screen-reader). */
|
|
23
21
|
readonly openLabel: string;
|
|
24
|
-
/**
|
|
22
|
+
/** Capsule `title` tooltip — includes the shortcut hint. */
|
|
25
23
|
readonly openTitle: string;
|
|
26
24
|
/** Close IconButton `title` tooltip. */
|
|
27
25
|
readonly closeTitle: string;
|
|
26
|
+
/** Search box placeholder. */
|
|
27
|
+
readonly searchPlaceholder: string;
|
|
28
|
+
/** Search box `aria-label`. */
|
|
29
|
+
readonly searchLabel: string;
|
|
30
|
+
/** The dock-menu button's tooltip and the menu's `aria-label`. */
|
|
31
|
+
readonly dockMenuTitle: string;
|
|
32
|
+
readonly dockBottom: string;
|
|
33
|
+
readonly dockTop: string;
|
|
34
|
+
readonly dockLeft: string;
|
|
35
|
+
readonly dockRight: string;
|
|
36
|
+
readonly dockWindow: string;
|
|
37
|
+
/** The "push the page" switch in the dock menu. */
|
|
38
|
+
readonly pushPage: string;
|
|
39
|
+
/** One line under the switch: what it does and where it cannot work. */
|
|
40
|
+
readonly pushPageHint: string;
|
|
41
|
+
/** Resize grip `aria-label`. */
|
|
42
|
+
readonly resizeLabel: string;
|
|
43
|
+
/** Window title bar tooltip (drag to move). */
|
|
44
|
+
readonly moveTitle: string;
|
|
45
|
+
/** Scope chip for the unified list. */
|
|
46
|
+
readonly scopeAll: string;
|
|
47
|
+
/** Connection words in the capsule + footer. */
|
|
48
|
+
readonly connected: string;
|
|
49
|
+
readonly recovering: string;
|
|
50
|
+
readonly degraded: string;
|
|
51
|
+
readonly offline: string;
|
|
52
|
+
/** Capsule chip words — rendered after the bold count. */
|
|
53
|
+
readonly live: string;
|
|
54
|
+
readonly pending: string;
|
|
55
|
+
readonly failed: string;
|
|
56
|
+
readonly errorsWord: (n: number) => string;
|
|
57
|
+
readonly warningsWord: (n: number) => string;
|
|
58
|
+
/** Result list. */
|
|
59
|
+
readonly results: (n: number) => string;
|
|
60
|
+
readonly noResults: string;
|
|
61
|
+
readonly noResultsHint: string;
|
|
62
|
+
readonly emptyAll: string;
|
|
63
|
+
readonly emptyAllHint: string;
|
|
64
|
+
/** Per-scope empty states (no query, no items of that source). */
|
|
65
|
+
readonly emptySubscriptions: string;
|
|
66
|
+
readonly emptySubscriptionsHint: string;
|
|
67
|
+
readonly emptyMutations: string;
|
|
68
|
+
readonly emptyMutationsHint: string;
|
|
69
|
+
readonly emptyTraces: string;
|
|
70
|
+
readonly emptyTracesHint: string;
|
|
71
|
+
readonly emptyLogs: string;
|
|
72
|
+
readonly emptyLogsHint: string;
|
|
73
|
+
readonly selectHint: string;
|
|
74
|
+
/** Footer key hints. */
|
|
75
|
+
readonly hintNavigate: string;
|
|
76
|
+
readonly hintOpen: string;
|
|
77
|
+
readonly hintToggle: string;
|
|
78
|
+
readonly hintDock: string;
|
|
79
|
+
/** The overlay's own error state — shown inside its chrome, never the page's. */
|
|
80
|
+
readonly crashTitle: string;
|
|
81
|
+
readonly crashReset: string;
|
|
28
82
|
};
|
|
29
|
-
/** The
|
|
83
|
+
/** The scope-chip labels. */
|
|
30
84
|
readonly tabs: {
|
|
31
85
|
readonly subscriptions: string;
|
|
32
86
|
readonly mutations: string;
|
|
@@ -37,6 +91,42 @@ export declare interface DevtoolsStrings {
|
|
|
37
91
|
readonly routes: string;
|
|
38
92
|
readonly runtimes: string;
|
|
39
93
|
readonly logs: string;
|
|
94
|
+
readonly workflows: string;
|
|
95
|
+
};
|
|
96
|
+
/** <WorkflowsPanel> — runs, steps, the start form and the signal sender. */
|
|
97
|
+
readonly workflows: {
|
|
98
|
+
readonly noApi: string;
|
|
99
|
+
readonly noDefinitions: string;
|
|
100
|
+
readonly noRuns: string;
|
|
101
|
+
readonly runsUnavailable: string;
|
|
102
|
+
readonly runs: (count: number) => string;
|
|
103
|
+
readonly runsBadge: (count: number) => string;
|
|
104
|
+
readonly runningBadge: (count: number) => string;
|
|
105
|
+
readonly child: string;
|
|
106
|
+
readonly start: string;
|
|
107
|
+
readonly starting: string;
|
|
108
|
+
readonly workflowLabel: string;
|
|
109
|
+
readonly payloadLabel: string;
|
|
110
|
+
readonly payloadHint: string;
|
|
111
|
+
readonly invalidJson: (message: string) => string;
|
|
112
|
+
readonly started: (executionId: string, status: string) => string;
|
|
113
|
+
readonly startFailed: (message: string) => string;
|
|
114
|
+
readonly steps: (count: number) => string;
|
|
115
|
+
readonly noSteps: string;
|
|
116
|
+
readonly events: (count: number) => string;
|
|
117
|
+
readonly attempt: (n: number) => string;
|
|
118
|
+
readonly input: string;
|
|
119
|
+
readonly output: string;
|
|
120
|
+
readonly error: string;
|
|
121
|
+
readonly trace: string;
|
|
122
|
+
readonly cancel: string;
|
|
123
|
+
readonly cancelResult: (kind: string) => string;
|
|
124
|
+
readonly awaiting: string;
|
|
125
|
+
readonly signalName: string;
|
|
126
|
+
readonly signalPayload: string;
|
|
127
|
+
readonly sendSignal: string;
|
|
128
|
+
readonly signalSent: (name: string) => string;
|
|
129
|
+
readonly actionFailed: (action: string, message: string) => string;
|
|
40
130
|
};
|
|
41
131
|
/** <SubscriptionsPanel> empty/section copy. */
|
|
42
132
|
readonly subscriptions: {
|
|
@@ -127,6 +217,8 @@ export declare function DevtoolsStringsProvider(props: {
|
|
|
127
217
|
readonly children: ReactNode;
|
|
128
218
|
}): ReactNode;
|
|
129
219
|
|
|
220
|
+
export declare type Dock = 'bottom' | 'top' | 'left' | 'right' | 'window';
|
|
221
|
+
|
|
130
222
|
/** A caller may override any subtree, not the whole object — deep-partial per
|
|
131
223
|
* section (each section is a flat bag of literals/functions, so a shallow
|
|
132
224
|
* per-section merge is exact). */
|
|
@@ -143,33 +235,34 @@ export declare const useDevtoolsStrings: (override?: PartialDevtoolsStrings) =>
|
|
|
143
235
|
* Main devtools overlay component. Mount once near the root of the
|
|
144
236
|
* app — typically by the framework's `mount()` auto-injection.
|
|
145
237
|
*
|
|
146
|
-
*
|
|
147
|
-
* user toggles/moves the overlay, the persisted localStorage
|
|
238
|
+
* `initialIsOpen` and `initialDock` are FIRST-RUN defaults for a foreign-host
|
|
239
|
+
* mount — once the user toggles/moves the overlay, the persisted localStorage
|
|
240
|
+
* state wins.
|
|
148
241
|
*
|
|
149
242
|
* The host page's CSS is unaffected: every Tailwind utility under
|
|
150
243
|
* `.vdt-scope` is prefixed `vdt:` and every token override is scoped
|
|
151
244
|
* to the wrapper class.
|
|
152
245
|
*/
|
|
153
|
-
export declare const VoltroDevtools: ({ initialIsOpen,
|
|
246
|
+
export declare const VoltroDevtools: ({ initialIsOpen, initialDock, strings, inspectToken, }?: VoltroDevtoolsProps) => ReactNode;
|
|
154
247
|
|
|
155
248
|
export declare interface VoltroDevtoolsProps {
|
|
156
|
-
/** Start with the
|
|
249
|
+
/** Start with the console open when nothing is persisted yet. A persisted
|
|
157
250
|
* open/closed choice (localStorage) always wins. Default `false`. */
|
|
158
251
|
readonly initialIsOpen?: boolean;
|
|
159
|
-
/**
|
|
160
|
-
* always wins. Default `'
|
|
161
|
-
readonly
|
|
162
|
-
/** Override any user-facing label the overlay renders (
|
|
163
|
-
* states, the
|
|
252
|
+
/** Where the console docks when nothing is persisted yet. A persisted dock
|
|
253
|
+
* always wins. Default `'bottom'`. */
|
|
254
|
+
readonly initialDock?: Dock;
|
|
255
|
+
/** Override any user-facing label the overlay renders (scope labels, empty
|
|
256
|
+
* states, the capsule tooltip, …). Deep-merged onto the English defaults —
|
|
164
257
|
* supply only the sections/keys you change. Nesting a
|
|
165
258
|
* `<DevtoolsStringsProvider>` above the overlay works too. */
|
|
166
259
|
readonly strings?: PartialDevtoolsStrings;
|
|
167
|
-
/** Bearer token for the `/_voltro/inspect/*` endpoints the
|
|
168
|
-
* / indexes
|
|
260
|
+
/** Bearer token for the `/_voltro/inspect/*` endpoints the traces / webhooks
|
|
261
|
+
* / indexes sources poll.
|
|
169
262
|
*
|
|
170
263
|
* Usually you want NOTHING here. `/_voltro/inspect/*` is fail-closed, but
|
|
171
264
|
* under `voltro dev` the vite proxy attaches the minted token server-side, so
|
|
172
|
-
*
|
|
265
|
+
* those sources are already authenticated and the browser never holds a
|
|
173
266
|
* credential. Set this only to reach an api the proxy does not front (a
|
|
174
267
|
* `voltro start` deploy with `VOLTRO_INSPECT_TOKEN` set, say) — and note that
|
|
175
268
|
* whatever you pass ships in the client bundle. */
|