@foldkit/devtools 0.168.0-canary.396b19976386 → 0.168.0-canary.49a14cc0865c
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 +4 -18
- package/dist/overlay.d.ts +26 -430
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +480 -523
- 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 Submodel 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,22 +21,10 @@ 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
|
|
25
24
|
import { Runtime } from 'foldkit'
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
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'),
|
|
26
|
+
const application = Runtime.makeApplication({
|
|
27
|
+
// ...
|
|
40
28
|
devTools: {
|
|
41
29
|
Message,
|
|
42
30
|
},
|
|
@@ -45,14 +33,12 @@ const application = ApplicationComposition.assembleApplication({
|
|
|
45
33
|
Runtime.run(application)
|
|
46
34
|
```
|
|
47
35
|
|
|
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
|
-
|
|
50
36
|
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.
|
|
51
37
|
|
|
52
38
|
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:
|
|
53
39
|
|
|
54
40
|
```typescript
|
|
55
|
-
const application =
|
|
41
|
+
const application = Runtime.makeApplication({
|
|
56
42
|
// ...
|
|
57
43
|
devTools: {
|
|
58
44
|
show: 'Always',
|
package/dist/overlay.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Context, Effect, HashSet,
|
|
2
|
-
import
|
|
1
|
+
import { Context, Effect, HashSet, Option, Schema, SubscriptionRef } from 'effect';
|
|
2
|
+
import * as Command from 'foldkit/command';
|
|
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<void>;
|
|
10
|
+
recordResolvedCommand: (id: number, submodelPath: 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,106 +26,19 @@ 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: Command.CommandDefinitionNoArgs<"LockScroll", Effect.Effect<{
|
|
30
30
|
readonly _tag: "CompletedLockScroll";
|
|
31
|
-
}
|
|
32
|
-
|
|
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<{
|
|
31
|
+
}, never, never>>;
|
|
32
|
+
export declare const UnlockScroll: Command.CommandDefinitionNoArgs<"UnlockScroll", Effect.Effect<{
|
|
51
33
|
readonly _tag: "CompletedUnlockScroll";
|
|
52
|
-
}, never,
|
|
53
|
-
|
|
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", {
|
|
34
|
+
}, never, never>>;
|
|
35
|
+
export declare const PersistDevToolsState: Command.CommandDefinitionWithArgs<"PersistDevToolsState", {
|
|
81
36
|
isOpen: Schema.Boolean;
|
|
82
37
|
isFlattened: Schema.Boolean;
|
|
83
38
|
}, Effect.Effect<{
|
|
84
39
|
readonly _tag: "CompletedPersistDevToolsState";
|
|
85
|
-
}, never,
|
|
86
|
-
|
|
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", {
|
|
40
|
+
}, never, never>>;
|
|
41
|
+
export declare const JumpToAndInspect: Command.CommandDefinitionWithArgs<"JumpToAndInspect", {
|
|
129
42
|
index: Schema.Number;
|
|
130
43
|
}, Effect.Effect<{
|
|
131
44
|
readonly _tag: "ReceivedInspectedState";
|
|
@@ -133,62 +46,8 @@ export declare const JumpToAndInspect: (import("foldkit/command").DefinitionWith
|
|
|
133
46
|
readonly maybeMessage: Option.Option<unknown>;
|
|
134
47
|
readonly changedPaths: HashSet.HashSet<string>;
|
|
135
48
|
readonly affectedPaths: HashSet.HashSet<string>;
|
|
136
|
-
}, never,
|
|
137
|
-
|
|
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", {
|
|
49
|
+
}, never, StoreService>>;
|
|
50
|
+
export declare const InspectState: Command.CommandDefinitionWithArgs<"InspectState", {
|
|
192
51
|
index: Schema.Number;
|
|
193
52
|
}, Effect.Effect<{
|
|
194
53
|
readonly _tag: "ReceivedInspectedState";
|
|
@@ -196,307 +55,44 @@ export declare const InspectState: (import("foldkit/command").DefinitionWithArgs
|
|
|
196
55
|
readonly maybeMessage: Option.Option<unknown>;
|
|
197
56
|
readonly changedPaths: HashSet.HashSet<string>;
|
|
198
57
|
readonly affectedPaths: HashSet.HashSet<string>;
|
|
199
|
-
}, never,
|
|
200
|
-
|
|
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, {
|
|
58
|
+
}, never, StoreService>>;
|
|
59
|
+
export declare const InspectLatest: Command.CommandDefinitionNoArgs<"InspectLatest", Effect.Effect<{
|
|
249
60
|
readonly _tag: "ReceivedInspectedState";
|
|
250
61
|
readonly model: unknown;
|
|
251
62
|
readonly maybeMessage: Option.Option<unknown>;
|
|
252
63
|
readonly changedPaths: HashSet.HashSet<string>;
|
|
253
64
|
readonly affectedPaths: HashSet.HashSet<string>;
|
|
254
|
-
}
|
|
255
|
-
|
|
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, {
|
|
65
|
+
}, never, StoreService>>;
|
|
66
|
+
export declare const Resume: Command.CommandDefinitionNoArgs<"Resume", Effect.Effect<{
|
|
284
67
|
readonly _tag: "CompletedResume";
|
|
285
|
-
}
|
|
286
|
-
|
|
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", {
|
|
68
|
+
}, never, StoreService>>;
|
|
69
|
+
export declare const Clear: Command.CommandDefinitionNoArgs<"Clear", Effect.Effect<{
|
|
299
70
|
readonly _tag: "CompletedClear";
|
|
300
|
-
}
|
|
301
|
-
|
|
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", {
|
|
71
|
+
}, never, StoreService>>;
|
|
72
|
+
export declare const CopyPayloadToClipboard: Command.CommandDefinitionWithArgs<"CopyPayloadToClipboard", {
|
|
346
73
|
targetId: Schema.String;
|
|
347
74
|
requestId: Schema.Number;
|
|
348
75
|
payload: Schema.Unknown;
|
|
349
76
|
}, Effect.Effect<{
|
|
350
|
-
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
351
|
-
readonly targetId: string;
|
|
352
|
-
readonly requestId: number;
|
|
353
|
-
} | {
|
|
354
77
|
readonly _tag: "SucceededCopyPayloadToClipboard";
|
|
355
78
|
readonly targetId: string;
|
|
356
79
|
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;
|
|
365
80
|
} | {
|
|
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
|
-
}, {
|
|
374
81
|
readonly _tag: "FailedCopyPayloadToClipboard";
|
|
375
82
|
readonly targetId: string;
|
|
376
83
|
readonly requestId: number;
|
|
377
|
-
}
|
|
378
|
-
|
|
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", {
|
|
84
|
+
}, never, never>>;
|
|
85
|
+
export declare const WaitBeforeHidingCopyIndicator: Command.CommandDefinitionWithArgs<"WaitBeforeHidingCopyIndicator", {
|
|
442
86
|
targetId: Schema.String;
|
|
443
87
|
requestId: Schema.Number;
|
|
444
88
|
}, Effect.Effect<{
|
|
445
89
|
readonly _tag: "CompletedWaitBeforeHidingCopyIndicator";
|
|
446
90
|
readonly targetId: string;
|
|
447
91
|
readonly requestId: number;
|
|
448
|
-
}, never,
|
|
449
|
-
|
|
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, {
|
|
92
|
+
}, never, never>>;
|
|
93
|
+
export declare const ScrollToTop: Command.CommandDefinitionNoArgs<"ScrollToTop", Effect.Effect<{
|
|
486
94
|
readonly _tag: "CompletedScrollToTop";
|
|
487
|
-
}
|
|
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
|
-
}>;
|
|
95
|
+
}, never, ShadowRootService>>;
|
|
500
96
|
export declare const createOverlay: (store: DevToolsStore, position: DevToolsPosition, mode: DevToolsMode, maybeBanner: Option.Option<string>) => Effect.Effect<void, never, import("effect/Scope").Scope>;
|
|
501
97
|
export {};
|
|
502
98
|
//# 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,EAGP,MAAM,EAIN,MAAM,EAGN,eAAe,EAEhB,MAAM,QAAQ,CAAA;AAGf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAGlB,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,uBAAuB,CAAA;AAW9B,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;;;;;;;;;;;;;;;;;;;;AA6ZrE,cAAM,YAAa,SAAQ,iBAE1B;CAAG;;AAEJ,cAAM,iBAAkB,SAAQ,sBAGC;CAAG;AAEpC,eAAO,MAAM,UAAU;;iBAGrB,CAAA;AAEF,eAAO,MAAM,YAAY;;iBAGvB,CAAA;AAoCF,eAAO,MAAM,oBAAoB;;;;;iBAkB/B,CAAA;AAuBF,eAAO,MAAM,gBAAgB;;;;;;;;wBAS3B,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;wBAIvB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;wBAOxB,CAAA;AAEF,eAAO,MAAM,MAAM;;wBAOjB,CAAA;AAEF,eAAO,MAAM,KAAK;;wBAOhB,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;iBAyBjC,CAAA;AAIF,eAAO,MAAM,6BAA6B;;;;;;;iBAezC,CAAA;AAED,eAAO,MAAM,WAAW;;6BAUtB,CAAA;AAwoEF,eAAO,MAAM,aAAa,UACjB,aAAa,YACV,gBAAgB,QACpB,YAAY,eACL,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,6DAqFhC,CAAA"}
|