@foldkit/devtools 0.168.0-canary.76fa0d1ee2a5 → 0.168.0-canary.c701daa80af1
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/README.md +18 -4
- package/dist/overlay.d.ts +430 -26
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +523 -480
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The in-browser DevTools overlay for [Foldkit](https://foldkit.dev).
|
|
4
4
|
|
|
5
|
-
The overlay displays every Message flowing through your app and lets you inspect the Model, Message, Commands, and Mounts at any point in time. Time-travel mode rewinds the UI to any past Model, Inspect mode browses snapshots without pausing the app, and
|
|
5
|
+
The overlay displays every Message flowing through your app and lets you inspect the Model, Message, Commands, and Mounts at any point in time. Time-travel mode rewinds the UI to any past Model, Inspect mode browses snapshots without pausing the app, and Block drill-in scopes the Message list to a nested module. It renders inside a shadow DOM, so it won't interfere with your styles or layout.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -21,10 +21,22 @@ yarn add --dev @foldkit/devtools
|
|
|
21
21
|
With `@foldkit/vite-plugin`, installing this package as a development dependency is enough to mount the overlay during development. The plugin leaves it out of production builds:
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
+
// src/entry.ts
|
|
24
25
|
import { Runtime } from 'foldkit'
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
import {
|
|
28
|
+
ApplicationComposition,
|
|
29
|
+
init,
|
|
30
|
+
update,
|
|
31
|
+
view,
|
|
32
|
+
Message,
|
|
33
|
+
} from './application'
|
|
34
|
+
|
|
35
|
+
const application = ApplicationComposition.assembleApplication({
|
|
36
|
+
init,
|
|
37
|
+
update,
|
|
38
|
+
view,
|
|
39
|
+
container: document.getElementById('root'),
|
|
28
40
|
devTools: {
|
|
29
41
|
Message,
|
|
30
42
|
},
|
|
@@ -33,12 +45,14 @@ const application = Runtime.makeApplication({
|
|
|
33
45
|
Runtime.run(application)
|
|
34
46
|
```
|
|
35
47
|
|
|
48
|
+
`Application` is the typed authoring value created by `makeApplicationDefinition({ Model, Message })`. Export `ApplicationComposition = Application.makeComposition({ bindings })` from `application.ts`, or call `makeComposition()` for a root without child Bindings. Complete that Composition with `ApplicationComposition.assembleApplication` in the entry point.
|
|
49
|
+
|
|
36
50
|
The `devTools` configuration is optional unless you need settings such as `Message`, `position`, or `excludeFromHistory`. Recording and the WebSocket bridge that the [DevTools MCP server](https://foldkit.dev/ai/mcp) connects to live in Foldkit's core Runtime.
|
|
37
51
|
|
|
38
52
|
To include the overlay in production, move `@foldkit/devtools` to regular `dependencies` and set `show: 'Always'`. The dependency section is the build-time opt-in, and `show` controls whether the Runtime mounts it:
|
|
39
53
|
|
|
40
54
|
```typescript
|
|
41
|
-
const application =
|
|
55
|
+
const application = ApplicationComposition.assembleApplication({
|
|
42
56
|
// ...
|
|
43
57
|
devTools: {
|
|
44
58
|
show: 'Always',
|
package/dist/overlay.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Context, Effect, HashSet, Option, Schema, SubscriptionRef } from 'effect';
|
|
2
|
-
import
|
|
1
|
+
import { Context, Effect, HashSet, Layer, Option, Schema, SubscriptionRef } from 'effect';
|
|
2
|
+
import { KeyValueStore } from 'effect/persistence';
|
|
3
3
|
import { type CommandRecord, type DevToolsStore, type MountRecord, type StoreState } from 'foldkit/devtools-host';
|
|
4
4
|
import type { DevToolsMode, DevToolsPosition } from 'foldkit/runtime';
|
|
5
5
|
declare const StoreService_base: Context.ServiceClass<StoreService, "foldkit/DevToolsStore", Readonly<{
|
|
6
6
|
recordInit: (model: unknown, commands: ReadonlyArray<CommandRecord>, mountStarts?: ReadonlyArray<MountRecord>) => Effect.Effect<void>;
|
|
7
7
|
recordMessage: (message: Readonly<{
|
|
8
8
|
_tag: string;
|
|
9
|
-
}>, modelBeforeUpdate: unknown, modelAfterUpdate: unknown, commands: ReadonlyArray<CommandRecord>, isModelChanged: boolean) => Effect.Effect<
|
|
10
|
-
recordResolvedCommand: (id: number,
|
|
9
|
+
}>, modelBeforeUpdate: unknown, modelAfterUpdate: unknown, commands: ReadonlyArray<CommandRecord>, isModelChanged: boolean) => Effect.Effect<number>;
|
|
10
|
+
recordResolvedCommand: (id: number, blockPath: ReadonlyArray<string>) => Effect.Effect<void>;
|
|
11
11
|
updateLatestModel: (model: unknown) => Effect.Effect<void>;
|
|
12
12
|
attachRenderedMounts: (mountStarts: ReadonlyArray<MountRecord>, mountEnds: ReadonlyArray<MountRecord>) => Effect.Effect<void>;
|
|
13
13
|
getModelAtIndex: (index: number) => Effect.Effect<unknown>;
|
|
@@ -26,19 +26,106 @@ declare class StoreService extends StoreService_base {
|
|
|
26
26
|
declare const ShadowRootService_base: Context.ServiceClass<ShadowRootService, "foldkit/DevToolsShadowRoot", ShadowRoot>;
|
|
27
27
|
declare class ShadowRootService extends ShadowRootService_base {
|
|
28
28
|
}
|
|
29
|
-
export declare const LockScroll:
|
|
29
|
+
export declare const LockScroll: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/LockScroll", {
|
|
30
30
|
readonly _tag: "CompletedLockScroll";
|
|
31
|
-
}
|
|
32
|
-
|
|
31
|
+
}> | (import("foldkit/command").DefinitionNoArgs<"Application/LockScroll", Effect.Effect<{
|
|
32
|
+
readonly _tag: "CompletedLockScroll";
|
|
33
|
+
}, never, import("foldkit/command").Handler<"Application/LockScroll", void, {
|
|
34
|
+
readonly _tag: "CompletedLockScroll";
|
|
35
|
+
}>>> & Readonly<{
|
|
36
|
+
toLayer: import("foldkit/command").ToLayer<"Application/LockScroll", void, {
|
|
37
|
+
readonly _tag: "CompletedLockScroll";
|
|
38
|
+
}>;
|
|
39
|
+
}>)) & Readonly<{
|
|
40
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/LockScroll", void, {
|
|
41
|
+
readonly _tag: "CompletedLockScroll";
|
|
42
|
+
}>, never, never>;
|
|
43
|
+
}> & Readonly<{
|
|
44
|
+
toLayer: import("foldkit/command").ToLayer<"Application/LockScroll", void, {
|
|
45
|
+
readonly _tag: "CompletedLockScroll";
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
48
|
+
export declare const UnlockScroll: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/UnlockScroll", {
|
|
49
|
+
readonly _tag: "CompletedUnlockScroll";
|
|
50
|
+
}> | (import("foldkit/command").DefinitionNoArgs<"Application/UnlockScroll", Effect.Effect<{
|
|
33
51
|
readonly _tag: "CompletedUnlockScroll";
|
|
34
|
-
}, never,
|
|
35
|
-
|
|
52
|
+
}, never, import("foldkit/command").Handler<"Application/UnlockScroll", void, {
|
|
53
|
+
readonly _tag: "CompletedUnlockScroll";
|
|
54
|
+
}>>> & Readonly<{
|
|
55
|
+
toLayer: import("foldkit/command").ToLayer<"Application/UnlockScroll", void, {
|
|
56
|
+
readonly _tag: "CompletedUnlockScroll";
|
|
57
|
+
}>;
|
|
58
|
+
}>)) & Readonly<{
|
|
59
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/UnlockScroll", void, {
|
|
60
|
+
readonly _tag: "CompletedUnlockScroll";
|
|
61
|
+
}>, never, never>;
|
|
62
|
+
}> & Readonly<{
|
|
63
|
+
toLayer: import("foldkit/command").ToLayer<"Application/UnlockScroll", void, {
|
|
64
|
+
readonly _tag: "CompletedUnlockScroll";
|
|
65
|
+
}>;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const PersistDevToolsState: (import("foldkit/command").DefinitionWithArgs<"Application/PersistDevToolsState", {
|
|
68
|
+
isOpen: Schema.Boolean;
|
|
69
|
+
isFlattened: Schema.Boolean;
|
|
70
|
+
}, Pick<{
|
|
71
|
+
readonly isOpen: boolean;
|
|
72
|
+
readonly isFlattened: boolean;
|
|
73
|
+
}, "isFlattened" | "isOpen">, Effect.Effect<{
|
|
74
|
+
readonly _tag: "CompletedPersistDevToolsState";
|
|
75
|
+
}, never, import("foldkit/command").Handler<"Application/PersistDevToolsState", {
|
|
76
|
+
readonly isOpen: boolean;
|
|
77
|
+
readonly isFlattened: boolean;
|
|
78
|
+
}, {
|
|
79
|
+
readonly _tag: "CompletedPersistDevToolsState";
|
|
80
|
+
}>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/PersistDevToolsState", {
|
|
36
81
|
isOpen: Schema.Boolean;
|
|
37
82
|
isFlattened: Schema.Boolean;
|
|
38
83
|
}, Effect.Effect<{
|
|
39
84
|
readonly _tag: "CompletedPersistDevToolsState";
|
|
40
|
-
}, never,
|
|
41
|
-
|
|
85
|
+
}, never, import("foldkit/command").Handler<"Application/PersistDevToolsState", {
|
|
86
|
+
readonly isOpen: boolean;
|
|
87
|
+
readonly isFlattened: boolean;
|
|
88
|
+
}, {
|
|
89
|
+
readonly _tag: "CompletedPersistDevToolsState";
|
|
90
|
+
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/PersistDevToolsState", {
|
|
91
|
+
isOpen: Schema.Boolean;
|
|
92
|
+
isFlattened: Schema.Boolean;
|
|
93
|
+
}, {
|
|
94
|
+
readonly _tag: "CompletedPersistDevToolsState";
|
|
95
|
+
}>) & Readonly<{
|
|
96
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/PersistDevToolsState", {
|
|
97
|
+
readonly isOpen: boolean;
|
|
98
|
+
readonly isFlattened: boolean;
|
|
99
|
+
}, {
|
|
100
|
+
readonly _tag: "CompletedPersistDevToolsState";
|
|
101
|
+
}>, never, KeyValueStore.KeyValueStore>;
|
|
102
|
+
}> & Readonly<{
|
|
103
|
+
toLayer: import("foldkit/command").ToLayer<"Application/PersistDevToolsState", {
|
|
104
|
+
readonly isOpen: boolean;
|
|
105
|
+
readonly isFlattened: boolean;
|
|
106
|
+
}, {
|
|
107
|
+
readonly _tag: "CompletedPersistDevToolsState";
|
|
108
|
+
}>;
|
|
109
|
+
}>;
|
|
110
|
+
export declare const JumpToAndInspect: (import("foldkit/command").DefinitionWithArgs<"Application/JumpToAndInspect", {
|
|
111
|
+
index: Schema.Number;
|
|
112
|
+
}, Pick<{
|
|
113
|
+
readonly index: number;
|
|
114
|
+
}, "index">, Effect.Effect<{
|
|
115
|
+
readonly _tag: "ReceivedInspectedState";
|
|
116
|
+
readonly model: unknown;
|
|
117
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
118
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
119
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
120
|
+
}, never, import("foldkit/command").Handler<"Application/JumpToAndInspect", {
|
|
121
|
+
readonly index: number;
|
|
122
|
+
}, {
|
|
123
|
+
readonly _tag: "ReceivedInspectedState";
|
|
124
|
+
readonly model: unknown;
|
|
125
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
126
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
127
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
128
|
+
}>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/JumpToAndInspect", {
|
|
42
129
|
index: Schema.Number;
|
|
43
130
|
}, Effect.Effect<{
|
|
44
131
|
readonly _tag: "ReceivedInspectedState";
|
|
@@ -46,8 +133,62 @@ export declare const JumpToAndInspect: Command.CommandDefinitionWithArgs<"JumpTo
|
|
|
46
133
|
readonly maybeMessage: Option.Option<unknown>;
|
|
47
134
|
readonly changedPaths: HashSet.HashSet<string>;
|
|
48
135
|
readonly affectedPaths: HashSet.HashSet<string>;
|
|
49
|
-
}, never,
|
|
50
|
-
|
|
136
|
+
}, never, import("foldkit/command").Handler<"Application/JumpToAndInspect", {
|
|
137
|
+
readonly index: number;
|
|
138
|
+
}, {
|
|
139
|
+
readonly _tag: "ReceivedInspectedState";
|
|
140
|
+
readonly model: unknown;
|
|
141
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
142
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
143
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
144
|
+
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/JumpToAndInspect", {
|
|
145
|
+
index: Schema.Number;
|
|
146
|
+
}, {
|
|
147
|
+
readonly _tag: "ReceivedInspectedState";
|
|
148
|
+
readonly model: unknown;
|
|
149
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
150
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
151
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
152
|
+
}>) & Readonly<{
|
|
153
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/JumpToAndInspect", {
|
|
154
|
+
readonly index: number;
|
|
155
|
+
}, {
|
|
156
|
+
readonly _tag: "ReceivedInspectedState";
|
|
157
|
+
readonly model: unknown;
|
|
158
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
159
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
160
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
161
|
+
}>, never, StoreService>;
|
|
162
|
+
}> & Readonly<{
|
|
163
|
+
toLayer: import("foldkit/command").ToLayer<"Application/JumpToAndInspect", {
|
|
164
|
+
readonly index: number;
|
|
165
|
+
}, {
|
|
166
|
+
readonly _tag: "ReceivedInspectedState";
|
|
167
|
+
readonly model: unknown;
|
|
168
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
169
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
170
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
171
|
+
}>;
|
|
172
|
+
}>;
|
|
173
|
+
export declare const InspectState: (import("foldkit/command").DefinitionWithArgs<"Application/InspectState", {
|
|
174
|
+
index: Schema.Number;
|
|
175
|
+
}, Pick<{
|
|
176
|
+
readonly index: number;
|
|
177
|
+
}, "index">, Effect.Effect<{
|
|
178
|
+
readonly _tag: "ReceivedInspectedState";
|
|
179
|
+
readonly model: unknown;
|
|
180
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
181
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
182
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
183
|
+
}, never, import("foldkit/command").Handler<"Application/InspectState", {
|
|
184
|
+
readonly index: number;
|
|
185
|
+
}, {
|
|
186
|
+
readonly _tag: "ReceivedInspectedState";
|
|
187
|
+
readonly model: unknown;
|
|
188
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
189
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
190
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
191
|
+
}>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/InspectState", {
|
|
51
192
|
index: Schema.Number;
|
|
52
193
|
}, Effect.Effect<{
|
|
53
194
|
readonly _tag: "ReceivedInspectedState";
|
|
@@ -55,44 +196,307 @@ export declare const InspectState: Command.CommandDefinitionWithArgs<"InspectSta
|
|
|
55
196
|
readonly maybeMessage: Option.Option<unknown>;
|
|
56
197
|
readonly changedPaths: HashSet.HashSet<string>;
|
|
57
198
|
readonly affectedPaths: HashSet.HashSet<string>;
|
|
58
|
-
}, never,
|
|
59
|
-
|
|
199
|
+
}, never, import("foldkit/command").Handler<"Application/InspectState", {
|
|
200
|
+
readonly index: number;
|
|
201
|
+
}, {
|
|
202
|
+
readonly _tag: "ReceivedInspectedState";
|
|
203
|
+
readonly model: unknown;
|
|
204
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
205
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
206
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
207
|
+
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/InspectState", {
|
|
208
|
+
index: Schema.Number;
|
|
209
|
+
}, {
|
|
210
|
+
readonly _tag: "ReceivedInspectedState";
|
|
211
|
+
readonly model: unknown;
|
|
212
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
213
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
214
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
215
|
+
}>) & Readonly<{
|
|
216
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/InspectState", {
|
|
217
|
+
readonly index: number;
|
|
218
|
+
}, {
|
|
219
|
+
readonly _tag: "ReceivedInspectedState";
|
|
220
|
+
readonly model: unknown;
|
|
221
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
222
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
223
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
224
|
+
}>, never, StoreService>;
|
|
225
|
+
}> & Readonly<{
|
|
226
|
+
toLayer: import("foldkit/command").ToLayer<"Application/InspectState", {
|
|
227
|
+
readonly index: number;
|
|
228
|
+
}, {
|
|
229
|
+
readonly _tag: "ReceivedInspectedState";
|
|
230
|
+
readonly model: unknown;
|
|
231
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
232
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
233
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
234
|
+
}>;
|
|
235
|
+
}>;
|
|
236
|
+
export declare const InspectLatest: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/InspectLatest", {
|
|
237
|
+
readonly _tag: "ReceivedInspectedState";
|
|
238
|
+
readonly model: unknown;
|
|
239
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
240
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
241
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
242
|
+
}> | (import("foldkit/command").DefinitionNoArgs<"Application/InspectLatest", Effect.Effect<{
|
|
243
|
+
readonly _tag: "ReceivedInspectedState";
|
|
244
|
+
readonly model: unknown;
|
|
245
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
246
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
247
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
248
|
+
}, never, import("foldkit/command").Handler<"Application/InspectLatest", void, {
|
|
60
249
|
readonly _tag: "ReceivedInspectedState";
|
|
61
250
|
readonly model: unknown;
|
|
62
251
|
readonly maybeMessage: Option.Option<unknown>;
|
|
63
252
|
readonly changedPaths: HashSet.HashSet<string>;
|
|
64
253
|
readonly affectedPaths: HashSet.HashSet<string>;
|
|
65
|
-
}
|
|
66
|
-
|
|
254
|
+
}>>> & Readonly<{
|
|
255
|
+
toLayer: import("foldkit/command").ToLayer<"Application/InspectLatest", void, {
|
|
256
|
+
readonly _tag: "ReceivedInspectedState";
|
|
257
|
+
readonly model: unknown;
|
|
258
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
259
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
260
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
261
|
+
}>;
|
|
262
|
+
}>)) & Readonly<{
|
|
263
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/InspectLatest", void, {
|
|
264
|
+
readonly _tag: "ReceivedInspectedState";
|
|
265
|
+
readonly model: unknown;
|
|
266
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
267
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
268
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
269
|
+
}>, never, StoreService>;
|
|
270
|
+
}> & Readonly<{
|
|
271
|
+
toLayer: import("foldkit/command").ToLayer<"Application/InspectLatest", void, {
|
|
272
|
+
readonly _tag: "ReceivedInspectedState";
|
|
273
|
+
readonly model: unknown;
|
|
274
|
+
readonly maybeMessage: Option.Option<unknown>;
|
|
275
|
+
readonly changedPaths: HashSet.HashSet<string>;
|
|
276
|
+
readonly affectedPaths: HashSet.HashSet<string>;
|
|
277
|
+
}>;
|
|
278
|
+
}>;
|
|
279
|
+
export declare const Resume: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/Resume", {
|
|
280
|
+
readonly _tag: "CompletedResume";
|
|
281
|
+
}> | (import("foldkit/command").DefinitionNoArgs<"Application/Resume", Effect.Effect<{
|
|
282
|
+
readonly _tag: "CompletedResume";
|
|
283
|
+
}, never, import("foldkit/command").Handler<"Application/Resume", void, {
|
|
67
284
|
readonly _tag: "CompletedResume";
|
|
68
|
-
}
|
|
69
|
-
|
|
285
|
+
}>>> & Readonly<{
|
|
286
|
+
toLayer: import("foldkit/command").ToLayer<"Application/Resume", void, {
|
|
287
|
+
readonly _tag: "CompletedResume";
|
|
288
|
+
}>;
|
|
289
|
+
}>)) & Readonly<{
|
|
290
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/Resume", void, {
|
|
291
|
+
readonly _tag: "CompletedResume";
|
|
292
|
+
}>, never, StoreService>;
|
|
293
|
+
}> & Readonly<{
|
|
294
|
+
toLayer: import("foldkit/command").ToLayer<"Application/Resume", void, {
|
|
295
|
+
readonly _tag: "CompletedResume";
|
|
296
|
+
}>;
|
|
297
|
+
}>;
|
|
298
|
+
export declare const Clear: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/Clear", {
|
|
70
299
|
readonly _tag: "CompletedClear";
|
|
71
|
-
}
|
|
72
|
-
|
|
300
|
+
}> | (import("foldkit/command").DefinitionNoArgs<"Application/Clear", Effect.Effect<{
|
|
301
|
+
readonly _tag: "CompletedClear";
|
|
302
|
+
}, never, import("foldkit/command").Handler<"Application/Clear", void, {
|
|
303
|
+
readonly _tag: "CompletedClear";
|
|
304
|
+
}>>> & Readonly<{
|
|
305
|
+
toLayer: import("foldkit/command").ToLayer<"Application/Clear", void, {
|
|
306
|
+
readonly _tag: "CompletedClear";
|
|
307
|
+
}>;
|
|
308
|
+
}>)) & Readonly<{
|
|
309
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/Clear", void, {
|
|
310
|
+
readonly _tag: "CompletedClear";
|
|
311
|
+
}>, never, StoreService>;
|
|
312
|
+
}> & Readonly<{
|
|
313
|
+
toLayer: import("foldkit/command").ToLayer<"Application/Clear", void, {
|
|
314
|
+
readonly _tag: "CompletedClear";
|
|
315
|
+
}>;
|
|
316
|
+
}>;
|
|
317
|
+
export declare const CopyPayloadToClipboard: (import("foldkit/command").DefinitionWithArgs<"Application/CopyPayloadToClipboard", {
|
|
318
|
+
targetId: Schema.String;
|
|
319
|
+
requestId: Schema.Number;
|
|
320
|
+
payload: Schema.Unknown;
|
|
321
|
+
}, Pick<{
|
|
322
|
+
readonly targetId: string;
|
|
323
|
+
readonly requestId: number;
|
|
324
|
+
readonly payload: unknown;
|
|
325
|
+
}, "payload" | "requestId" | "targetId">, Effect.Effect<{
|
|
326
|
+
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
327
|
+
readonly targetId: string;
|
|
328
|
+
readonly requestId: number;
|
|
329
|
+
} | {
|
|
330
|
+
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
331
|
+
readonly targetId: string;
|
|
332
|
+
readonly requestId: number;
|
|
333
|
+
}, never, import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
|
|
334
|
+
readonly targetId: string;
|
|
335
|
+
readonly requestId: number;
|
|
336
|
+
readonly payload: unknown;
|
|
337
|
+
}, {
|
|
338
|
+
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
339
|
+
readonly targetId: string;
|
|
340
|
+
readonly requestId: number;
|
|
341
|
+
} | {
|
|
342
|
+
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
343
|
+
readonly targetId: string;
|
|
344
|
+
readonly requestId: number;
|
|
345
|
+
}>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/CopyPayloadToClipboard", {
|
|
73
346
|
targetId: Schema.String;
|
|
74
347
|
requestId: Schema.Number;
|
|
75
348
|
payload: Schema.Unknown;
|
|
76
349
|
}, Effect.Effect<{
|
|
350
|
+
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
351
|
+
readonly targetId: string;
|
|
352
|
+
readonly requestId: number;
|
|
353
|
+
} | {
|
|
77
354
|
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
78
355
|
readonly targetId: string;
|
|
79
356
|
readonly requestId: number;
|
|
357
|
+
}, never, import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
|
|
358
|
+
readonly targetId: string;
|
|
359
|
+
readonly requestId: number;
|
|
360
|
+
readonly payload: unknown;
|
|
361
|
+
}, {
|
|
362
|
+
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
363
|
+
readonly targetId: string;
|
|
364
|
+
readonly requestId: number;
|
|
80
365
|
} | {
|
|
366
|
+
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
367
|
+
readonly targetId: string;
|
|
368
|
+
readonly requestId: number;
|
|
369
|
+
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/CopyPayloadToClipboard", {
|
|
370
|
+
targetId: Schema.String;
|
|
371
|
+
requestId: Schema.Number;
|
|
372
|
+
payload: Schema.Unknown;
|
|
373
|
+
}, {
|
|
81
374
|
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
82
375
|
readonly targetId: string;
|
|
83
376
|
readonly requestId: number;
|
|
84
|
-
}
|
|
85
|
-
|
|
377
|
+
} | {
|
|
378
|
+
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
379
|
+
readonly targetId: string;
|
|
380
|
+
readonly requestId: number;
|
|
381
|
+
}>) & Readonly<{
|
|
382
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
|
|
383
|
+
readonly targetId: string;
|
|
384
|
+
readonly requestId: number;
|
|
385
|
+
readonly payload: unknown;
|
|
386
|
+
}, {
|
|
387
|
+
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
388
|
+
readonly targetId: string;
|
|
389
|
+
readonly requestId: number;
|
|
390
|
+
} | {
|
|
391
|
+
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
392
|
+
readonly targetId: string;
|
|
393
|
+
readonly requestId: number;
|
|
394
|
+
}>, never, never>;
|
|
395
|
+
}> & Readonly<{
|
|
396
|
+
toLayer: import("foldkit/command").ToLayer<"Application/CopyPayloadToClipboard", {
|
|
397
|
+
readonly targetId: string;
|
|
398
|
+
readonly requestId: number;
|
|
399
|
+
readonly payload: unknown;
|
|
400
|
+
}, {
|
|
401
|
+
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
402
|
+
readonly targetId: string;
|
|
403
|
+
readonly requestId: number;
|
|
404
|
+
} | {
|
|
405
|
+
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
406
|
+
readonly targetId: string;
|
|
407
|
+
readonly requestId: number;
|
|
408
|
+
}>;
|
|
409
|
+
}>;
|
|
410
|
+
/** Provides the DevTools clipboard Command handler. */
|
|
411
|
+
export declare const CopyPayloadToClipboardLayer: Layer.Layer<import("foldkit/command").Handler<"Application/CopyPayloadToClipboard", {
|
|
412
|
+
readonly targetId: string;
|
|
413
|
+
readonly requestId: number;
|
|
414
|
+
readonly payload: unknown;
|
|
415
|
+
}, {
|
|
416
|
+
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
417
|
+
readonly targetId: string;
|
|
418
|
+
readonly requestId: number;
|
|
419
|
+
} | {
|
|
420
|
+
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
421
|
+
readonly targetId: string;
|
|
422
|
+
readonly requestId: number;
|
|
423
|
+
}>, never, never>;
|
|
424
|
+
export declare const WaitBeforeHidingCopyIndicator: (import("foldkit/command").DefinitionWithArgs<"Application/WaitBeforeHidingCopyIndicator", {
|
|
425
|
+
targetId: Schema.String;
|
|
426
|
+
requestId: Schema.Number;
|
|
427
|
+
}, Pick<{
|
|
428
|
+
readonly targetId: string;
|
|
429
|
+
readonly requestId: number;
|
|
430
|
+
}, "requestId" | "targetId">, Effect.Effect<{
|
|
431
|
+
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
432
|
+
readonly targetId: string;
|
|
433
|
+
readonly requestId: number;
|
|
434
|
+
}, never, import("foldkit/command").Handler<"Application/WaitBeforeHidingCopyIndicator", {
|
|
435
|
+
readonly targetId: string;
|
|
436
|
+
readonly requestId: number;
|
|
437
|
+
}, {
|
|
438
|
+
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
439
|
+
readonly targetId: string;
|
|
440
|
+
readonly requestId: number;
|
|
441
|
+
}>>> | import("foldkit/command").DefinitionWithArgsNameKeyed<"Application/WaitBeforeHidingCopyIndicator", {
|
|
86
442
|
targetId: Schema.String;
|
|
87
443
|
requestId: Schema.Number;
|
|
88
444
|
}, Effect.Effect<{
|
|
89
445
|
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
90
446
|
readonly targetId: string;
|
|
91
447
|
readonly requestId: number;
|
|
92
|
-
}, never,
|
|
93
|
-
|
|
448
|
+
}, never, import("foldkit/command").Handler<"Application/WaitBeforeHidingCopyIndicator", {
|
|
449
|
+
readonly targetId: string;
|
|
450
|
+
readonly requestId: number;
|
|
451
|
+
}, {
|
|
452
|
+
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
453
|
+
readonly targetId: string;
|
|
454
|
+
readonly requestId: number;
|
|
455
|
+
}>>> | import("foldkit/command").LayeredCommandDefinitionWithArgs<"Application/WaitBeforeHidingCopyIndicator", {
|
|
456
|
+
targetId: Schema.String;
|
|
457
|
+
requestId: Schema.Number;
|
|
458
|
+
}, {
|
|
459
|
+
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
460
|
+
readonly targetId: string;
|
|
461
|
+
readonly requestId: number;
|
|
462
|
+
}>) & Readonly<{
|
|
463
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/WaitBeforeHidingCopyIndicator", {
|
|
464
|
+
readonly targetId: string;
|
|
465
|
+
readonly requestId: number;
|
|
466
|
+
}, {
|
|
467
|
+
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
468
|
+
readonly targetId: string;
|
|
469
|
+
readonly requestId: number;
|
|
470
|
+
}>, never, never>;
|
|
471
|
+
}> & Readonly<{
|
|
472
|
+
toLayer: import("foldkit/command").ToLayer<"Application/WaitBeforeHidingCopyIndicator", {
|
|
473
|
+
readonly targetId: string;
|
|
474
|
+
readonly requestId: number;
|
|
475
|
+
}, {
|
|
476
|
+
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
477
|
+
readonly targetId: string;
|
|
478
|
+
readonly requestId: number;
|
|
479
|
+
}>;
|
|
480
|
+
}>;
|
|
481
|
+
export declare const ScrollToTop: (import("foldkit/command").LayeredCommandDefinitionNoArgs<"Application/ScrollToTop", {
|
|
482
|
+
readonly _tag: "CompletedScrollToTop";
|
|
483
|
+
}> | (import("foldkit/command").DefinitionNoArgs<"Application/ScrollToTop", Effect.Effect<{
|
|
484
|
+
readonly _tag: "CompletedScrollToTop";
|
|
485
|
+
}, never, import("foldkit/command").Handler<"Application/ScrollToTop", void, {
|
|
94
486
|
readonly _tag: "CompletedScrollToTop";
|
|
95
|
-
}
|
|
487
|
+
}>>> & Readonly<{
|
|
488
|
+
toLayer: import("foldkit/command").ToLayer<"Application/ScrollToTop", void, {
|
|
489
|
+
readonly _tag: "CompletedScrollToTop";
|
|
490
|
+
}>;
|
|
491
|
+
}>)) & Readonly<{
|
|
492
|
+
layer: Layer.Layer<import("foldkit/command").Handler<"Application/ScrollToTop", void, {
|
|
493
|
+
readonly _tag: "CompletedScrollToTop";
|
|
494
|
+
}>, never, ShadowRootService>;
|
|
495
|
+
}> & Readonly<{
|
|
496
|
+
toLayer: import("foldkit/command").ToLayer<"Application/ScrollToTop", void, {
|
|
497
|
+
readonly _tag: "CompletedScrollToTop";
|
|
498
|
+
}>;
|
|
499
|
+
}>;
|
|
96
500
|
export declare const createOverlay: (store: DevToolsStore, position: DevToolsPosition, mode: DevToolsMode, maybeBanner: Option.Option<string>) => Effect.Effect<void, never, import("effect/Scope").Scope>;
|
|
97
501
|
export {};
|
|
98
502
|
//# sourceMappingURL=overlay.d.ts.map
|
package/dist/overlay.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../src/overlay.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,EACP,MAAM,EAGN,OAAO,
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../src/overlay.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,EACP,MAAM,EAGN,OAAO,EACP,KAAK,EAGL,MAAM,EAIN,MAAM,EAGN,eAAe,EAGhB,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAGlB,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,uBAAuB,CAAA;AAK9B,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;;;;;;;;;;;;;;;;;;;;AAgdrE,cAAM,YAAa,SAAQ,iBAE1B;CAAG;;AAEJ,cAAM,iBAAkB,SAAQ,sBAGC;CAAG;AA+CpC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;EAKrB,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAKvB,CAAA;AA4BF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBhC,CAAA;AAyBD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe5B,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQvB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWxB,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;EAOjB,CAAA;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;EAOhB,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiClC,CAAA;AACD,uDAAuD;AACvD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;iBAA+B,CAAA;AAIvE,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBzC,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;EActB,CAAA;AA6nEF,eAAO,MAAM,aAAa,UACjB,aAAa,YACV,gBAAgB,QACpB,YAAY,eACL,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,6DAmDhC,CAAA"}
|