@foldkit/devtools 0.112.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.
@@ -0,0 +1,66 @@
1
+ import { Context, Effect, HashSet, Option, Schema as S, SubscriptionRef } from 'effect';
2
+ import * as Command from 'foldkit/command';
3
+ import { type CommandRecord, type DevToolsStore, type MountRecord, type StoreState } from 'foldkit/devtools-host';
4
+ import type { DevToolsMode, DevToolsPosition } from 'foldkit/runtime';
5
+ declare const StoreService_base: Context.ServiceClass<StoreService, "foldkit/DevToolsStore", Readonly<{
6
+ recordInit: (model: unknown, commands: ReadonlyArray<CommandRecord>, mountStarts?: ReadonlyArray<MountRecord>) => Effect.Effect<void>;
7
+ recordMessage: (message: Readonly<{
8
+ _tag: string;
9
+ }>, modelBeforeUpdate: unknown, modelAfterUpdate: unknown, commands: ReadonlyArray<CommandRecord>, isModelChanged: boolean) => Effect.Effect<void>;
10
+ updateLatestModel: (model: unknown) => Effect.Effect<void>;
11
+ attachRenderedMounts: (mountStarts: ReadonlyArray<MountRecord>, mountEnds: ReadonlyArray<MountRecord>) => Effect.Effect<void>;
12
+ getModelAtIndex: (index: number) => Effect.Effect<unknown>;
13
+ getMessageAtIndex: (index: number) => Effect.Effect<Option.Option<unknown>>;
14
+ getDiffAtIndex: (index: number) => Effect.Effect<Readonly<{
15
+ changedPaths: HashSet.HashSet<string>;
16
+ affectedPaths: HashSet.HashSet<string>;
17
+ }>>;
18
+ jumpTo: (index: number) => Effect.Effect<void>;
19
+ resume: Effect.Effect<void>;
20
+ clear: Effect.Effect<void>;
21
+ stateRef: SubscriptionRef.SubscriptionRef<StoreState>;
22
+ }>>;
23
+ declare class StoreService extends StoreService_base {
24
+ }
25
+ declare const ShadowRootService_base: Context.ServiceClass<ShadowRootService, "foldkit/DevToolsShadowRoot", ShadowRoot>;
26
+ declare class ShadowRootService extends ShadowRootService_base {
27
+ }
28
+ export declare const LockScroll: Command.CommandDefinitionNoArgs<"LockScroll", Effect.Effect<{
29
+ readonly _tag: "LockedScroll";
30
+ }, never, never>>;
31
+ export declare const UnlockScroll: Command.CommandDefinitionNoArgs<"UnlockScroll", Effect.Effect<{
32
+ readonly _tag: "UnlockedScroll";
33
+ }, never, never>>;
34
+ export declare const JumpTo: Command.CommandDefinitionWithArgs<"JumpTo", {
35
+ index: S.Number;
36
+ }, Effect.Effect<{
37
+ readonly _tag: "CompletedJump";
38
+ }, never, StoreService>>;
39
+ export declare const InspectState: Command.CommandDefinitionWithArgs<"InspectState", {
40
+ index: S.Number;
41
+ }, Effect.Effect<{
42
+ readonly _tag: "ReceivedInspectedState";
43
+ readonly model: unknown;
44
+ readonly maybeMessage: Option.Option<unknown>;
45
+ readonly changedPaths: HashSet.HashSet<string>;
46
+ readonly affectedPaths: HashSet.HashSet<string>;
47
+ }, never, StoreService>>;
48
+ export declare const InspectLatest: Command.CommandDefinitionNoArgs<"InspectLatest", Effect.Effect<{
49
+ readonly _tag: "ReceivedInspectedState";
50
+ readonly model: unknown;
51
+ readonly maybeMessage: Option.Option<unknown>;
52
+ readonly changedPaths: HashSet.HashSet<string>;
53
+ readonly affectedPaths: HashSet.HashSet<string>;
54
+ }, never, StoreService>>;
55
+ export declare const Resume: Command.CommandDefinitionNoArgs<"Resume", Effect.Effect<{
56
+ readonly _tag: "CompletedResume";
57
+ }, never, StoreService>>;
58
+ export declare const Clear: Command.CommandDefinitionNoArgs<"Clear", Effect.Effect<{
59
+ readonly _tag: "CompletedClear";
60
+ }, never, StoreService>>;
61
+ export declare const ScrollToTop: Command.CommandDefinitionNoArgs<"ScrollToTop", Effect.Effect<{
62
+ readonly _tag: "ScrolledToTop";
63
+ }, never, ShadowRootService>>;
64
+ export declare const createOverlay: (store: DevToolsStore, position: DevToolsPosition, mode: DevToolsMode, maybeBanner: Option.Option<string>) => Effect.Effect<void, never, import("effect/Scope").Scope>;
65
+ export {};
66
+ //# sourceMappingURL=overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../src/overlay.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,EACP,MAAM,EAGN,OAAO,EAGP,MAAM,EAKN,MAAM,IAAI,CAAC,EAGX,eAAe,EAEhB,MAAM,QAAQ,CAAA;AACf,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;;oFA2D/B,CAAC;;;;;;;;;;;;;;;;;AAmPvC,cAAM,YAAa,SAAQ,iBAE1B;CAAG;;AAEJ,cAAM,iBAAkB,SAAQ,sBAGC;CAAG;AAEpC,eAAO,MAAM,UAAU;;iBAGsB,CAAA;AAE7C,eAAO,MAAM,YAAY;;iBAGwB,CAAA;AAWjD,eAAO,MAAM,MAAM;;;;wBAUlB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;wBAIqB,CAAA;AAE9C,eAAO,MAAM,aAAa;;;;;;wBASzB,CAAA;AAED,eAAO,MAAM,MAAM;;wBASlB,CAAA;AAED,eAAO,MAAM,KAAK;;wBASjB,CAAA;AAED,eAAO,MAAM,WAAW;;6BAYvB,CAAA;AA+rDD,eAAO,MAAM,aAAa,GACxB,OAAO,aAAa,EACpB,UAAU,gBAAgB,EAC1B,MAAM,YAAY,EAClB,aAAa,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,6DAuEhC,CAAA"}