@dxos/plugin-deck 0.8.2-main.2f9c567 → 0.8.2-main.36232bc
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/dist/lib/browser/{chunk-PGSJT5PG.mjs → chunk-6HJZL3WT.mjs} +2 -2
- package/dist/lib/browser/{chunk-AHTP72DY.mjs → chunk-STZ4VVW6.mjs} +14 -28
- package/dist/lib/browser/chunk-STZ4VVW6.mjs.map +7 -0
- package/dist/lib/browser/{chunk-RKYIMUKW.mjs → chunk-WFTGOFIF.mjs} +8 -8
- package/dist/lib/browser/chunk-ZMJMCN7O.mjs +157 -0
- package/dist/lib/browser/chunk-ZMJMCN7O.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +3 -3
- package/dist/lib/browser/{intent-resolver-NO6L67KF.mjs → intent-resolver-JKWXWUV6.mjs} +23 -23
- package/dist/lib/browser/intent-resolver-JKWXWUV6.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-5RWCIUXV.mjs → react-root-7JVQQA4K.mjs} +5 -5
- package/dist/lib/browser/{react-surface-DIDOPTH7.mjs → react-surface-MQ7QJ7JJ.mjs} +5 -5
- package/dist/lib/browser/{settings-C7LX2GXF.mjs → settings-6NU7CF2B.mjs} +2 -2
- package/dist/lib/browser/{state-AX74YEJD.mjs → state-Z6UY2Z3M.mjs} +2 -2
- package/dist/lib/browser/{tools-7W7KZRAX.mjs → tools-VDVQTJMD.mjs} +7 -7
- package/dist/lib/browser/tools-VDVQTJMD.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +1 -1
- package/dist/lib/browser/{url-handler-AF5SYROZ.mjs → url-handler-3CARFXQK.mjs} +2 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/tools.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Popover.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +104 -104
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +29 -30
- package/src/capabilities/intent-resolver.ts +32 -32
- package/src/capabilities/tools.ts +3 -4
- package/src/components/DeckLayout/Popover.tsx +3 -18
- package/src/components/Plank/Plank.tsx +1 -3
- package/src/components/Plank/PlankHeading.tsx +0 -3
- package/src/types.ts +71 -72
- package/dist/lib/browser/chunk-AHTP72DY.mjs.map +0 -7
- package/dist/lib/browser/chunk-E7TOEOGO.mjs +0 -157
- package/dist/lib/browser/chunk-E7TOEOGO.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-NO6L67KF.mjs.map +0 -7
- package/dist/lib/browser/tools-7W7KZRAX.mjs.map +0 -7
- /package/dist/lib/browser/{chunk-PGSJT5PG.mjs.map → chunk-6HJZL3WT.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-RKYIMUKW.mjs.map → chunk-WFTGOFIF.mjs.map} +0 -0
- /package/dist/lib/browser/{react-root-5RWCIUXV.mjs.map → react-root-7JVQQA4K.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-DIDOPTH7.mjs.map → react-surface-MQ7QJ7JJ.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-C7LX2GXF.mjs.map → settings-6NU7CF2B.mjs.map} +0 -0
- /package/dist/lib/browser/{state-AX74YEJD.mjs.map → state-Z6UY2Z3M.mjs.map} +0 -0
- /package/dist/lib/browser/{url-handler-AF5SYROZ.mjs.map → url-handler-3CARFXQK.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjH,OAAO,EAAmB,KAAK,IAAI,EAAW,M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BAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;AAtGz6N,wBAqGI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe;;qBAW6rF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,i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AiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAwF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;;;qBAAqF,YAAY;sBAAsC,iBAAiB;uBAAgD,iBAAiB;sBAAgD,iBAAiB;;2BAAkE,iBAAiB;qFAXx7U,CAAC;AACzE,eAAO,MAAM,cAAc,8LAA2C,CAAC;AACvE,eAAO,MAAM,YAAY,4LAAmC,CAAC;AAC7D,eAAO,MAAM,SAAS,gJAAgC,CAAC;AACvD,eAAO,MAAM,oBAAoB,mPAA0C,CAAC;AAC5E,eAAO,MAAM,SAAS;;;qDAAqC,CAAC;AAC5D,eAAO,MAAM,YAAY,gMAAwC,CAAC;AAClE,eAAO,MAAM,KAAK,wKAAgC,CAAC;AACnD,eAAO,MAAM,UAAU,8LAAsC,CAAC;AAE9D,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,uBAAuB,EAC7B,MAAM,qBAAqB,CAAC;AAS7B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,CAAC,EAAE,uBAAuB,CAAC;QACnC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;KAC1B;CACF;;AAED,wBAkDK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/DeckLayout/Popover.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA4C,MAAM,OAAO,CAAC;AAOhG,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;AAUzD,eAAO,MAAM,WAAW,iBAAkB,oBAAoB,sBA+B7D,CAAC;AAEF,eAAO,MAAM,cAAc,yBAiC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.tsx"],"names":[],"mappings":"AAIA,OAAO,KASN,MAAM,OAAO,CAAC;AAsBf,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,IAAI,EAAqB,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAKhH,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC;
|
|
1
|
+
{"version":3,"file":"Plank.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/Plank.tsx"],"names":[],"mappings":"AAIA,OAAO,KASN,MAAM,OAAO,CAAC;AAsBf,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,IAAI,EAAqB,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAKhH,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B,CAAC;AAsJF,eAAO,MAAM,KAAK,qBAAmC,UAAU,sBA+B9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlankHeading.d.ts","sourceRoot":"","sources":["../../../../../src/components/Plank/PlankHeading.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2E,MAAM,OAAO,CAAC;AAGhG,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAa,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAM5E,OAAO,EAAoC,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAMnG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;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1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S } from '@dxos/echo-schema';
|
|
2
2
|
import { type DeepReadonly } from '@dxos/util';
|
|
3
3
|
export { ATTENDABLE_PATH_SEPARATOR } from '@dxos/react-ui-attention';
|
|
4
4
|
export declare const PLANK_COMPANION_TYPE = "dxos.org/plugin/deck/plank-companion";
|
|
@@ -9,144 +9,144 @@ export declare const OverscrollOptions: readonly ["none", "centering"];
|
|
|
9
9
|
export type Overscroll = (typeof OverscrollOptions)[number];
|
|
10
10
|
export type Part = 'solo' | 'deck' | 'complementary';
|
|
11
11
|
export type ResolvedPart = Part | 'solo-primary' | 'solo-companion';
|
|
12
|
-
export declare const DeckSettingsSchema:
|
|
13
|
-
showHints:
|
|
14
|
-
enableDeck:
|
|
15
|
-
enableNativeRedirect:
|
|
16
|
-
enableStatusbar:
|
|
17
|
-
newPlankPositioning:
|
|
18
|
-
overscroll:
|
|
12
|
+
export declare const DeckSettingsSchema: S.mutable<S.Struct<{
|
|
13
|
+
showHints: S.optional<typeof S.Boolean>;
|
|
14
|
+
enableDeck: S.optional<typeof S.Boolean>;
|
|
15
|
+
enableNativeRedirect: S.optional<typeof S.Boolean>;
|
|
16
|
+
enableStatusbar: S.optional<typeof S.Boolean>;
|
|
17
|
+
newPlankPositioning: S.optional<S.Literal<["start", "end"]>>;
|
|
18
|
+
overscroll: S.optional<S.Literal<["none", "centering"]>>;
|
|
19
19
|
}>>;
|
|
20
|
-
export type DeckSettingsProps =
|
|
21
|
-
export declare const PlankSizing:
|
|
22
|
-
export type PlankSizing =
|
|
23
|
-
export declare const DeckState:
|
|
20
|
+
export type DeckSettingsProps = S.Schema.Type<typeof DeckSettingsSchema>;
|
|
21
|
+
export declare const PlankSizing: S.Record$<typeof S.String, typeof S.Number>;
|
|
22
|
+
export type PlankSizing = S.Schema.Type<typeof PlankSizing>;
|
|
23
|
+
export declare const DeckState: S.Struct<{
|
|
24
24
|
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
25
|
-
initialized: typeof
|
|
26
|
-
active:
|
|
27
|
-
activeCompanions:
|
|
28
|
-
inactive:
|
|
29
|
-
solo:
|
|
30
|
-
fullscreen: typeof
|
|
31
|
-
plankSizing:
|
|
32
|
-
companionFrameSizing:
|
|
25
|
+
initialized: typeof S.Boolean;
|
|
26
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
27
|
+
activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
|
|
28
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
29
|
+
solo: S.optional<typeof S.String>;
|
|
30
|
+
fullscreen: typeof S.Boolean;
|
|
31
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
32
|
+
companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
33
33
|
}>;
|
|
34
|
-
export type DeckState =
|
|
34
|
+
export type DeckState = S.Schema.Type<typeof DeckState>;
|
|
35
35
|
export declare const defaultDeck: DeckState;
|
|
36
|
-
declare const LayoutMode:
|
|
37
|
-
export type LayoutMode =
|
|
36
|
+
declare const LayoutMode: S.Literal<["deck", "solo", "solo--fullscreen"]>;
|
|
37
|
+
export type LayoutMode = S.Schema.Type<typeof LayoutMode>;
|
|
38
38
|
export declare const isLayoutMode: (value: any) => value is LayoutMode;
|
|
39
39
|
export declare const getMode: (deck: DeckState | DeepReadonly<DeckState>) => LayoutMode;
|
|
40
|
-
export declare const DeckPluginState:
|
|
41
|
-
sidebarState:
|
|
42
|
-
complementarySidebarState:
|
|
43
|
-
complementarySidebarPanel:
|
|
44
|
-
dialogOpen: typeof
|
|
45
|
-
dialogBlockAlign:
|
|
46
|
-
dialogType:
|
|
40
|
+
export declare const DeckPluginState: S.mutable<S.Struct<{
|
|
41
|
+
sidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
42
|
+
complementarySidebarState: S.Literal<["closed", "collapsed", "expanded"]>;
|
|
43
|
+
complementarySidebarPanel: S.optional<typeof S.String>;
|
|
44
|
+
dialogOpen: typeof S.Boolean;
|
|
45
|
+
dialogBlockAlign: S.optional<S.Literal<["start", "center", "end"]>>;
|
|
46
|
+
dialogType: S.optional<S.Literal<["default", "alert"]>>;
|
|
47
47
|
/** Data to be passed to the dialog Surface. */
|
|
48
|
-
dialogContent:
|
|
49
|
-
popoverOpen: typeof
|
|
50
|
-
popoverSide:
|
|
51
|
-
popoverAnchor:
|
|
52
|
-
popoverAnchorId:
|
|
48
|
+
dialogContent: S.optional<typeof S.Any>;
|
|
49
|
+
popoverOpen: typeof S.Boolean;
|
|
50
|
+
popoverSide: S.optional<S.Literal<["top", "right", "bottom", "left"]>>;
|
|
51
|
+
popoverAnchor: S.optional<typeof S.Any>;
|
|
52
|
+
popoverAnchorId: S.optional<typeof S.String>;
|
|
53
53
|
/** Data to be passed to the popover Surface. */
|
|
54
|
-
popoverContent:
|
|
55
|
-
toasts:
|
|
56
|
-
id:
|
|
57
|
-
title:
|
|
58
|
-
ns: typeof
|
|
59
|
-
count:
|
|
54
|
+
popoverContent: S.optional<typeof S.Any>;
|
|
55
|
+
toasts: S.mutable<S.Array$<S.Struct<{
|
|
56
|
+
id: S.SchemaClass<string, string, never>;
|
|
57
|
+
title: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
58
|
+
ns: typeof S.String;
|
|
59
|
+
count: S.optional<typeof S.Number>;
|
|
60
60
|
}>>>>]>>;
|
|
61
|
-
description:
|
|
62
|
-
ns: typeof
|
|
63
|
-
count:
|
|
61
|
+
description: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
62
|
+
ns: typeof S.String;
|
|
63
|
+
count: S.optional<typeof S.Number>;
|
|
64
64
|
}>>>>]>>;
|
|
65
|
-
icon:
|
|
66
|
-
duration:
|
|
67
|
-
closeLabel:
|
|
68
|
-
ns: typeof
|
|
69
|
-
count:
|
|
65
|
+
icon: S.optional<S.SchemaClass<string, string, never>>;
|
|
66
|
+
duration: S.optional<S.SchemaClass<number, number, never>>;
|
|
67
|
+
closeLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
68
|
+
ns: typeof S.String;
|
|
69
|
+
count: S.optional<typeof S.Number>;
|
|
70
70
|
}>>>>]>>;
|
|
71
|
-
actionLabel:
|
|
72
|
-
ns: typeof
|
|
73
|
-
count:
|
|
71
|
+
actionLabel: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
72
|
+
ns: typeof S.String;
|
|
73
|
+
count: S.optional<typeof S.Number>;
|
|
74
74
|
}>>>>]>>;
|
|
75
|
-
actionAlt:
|
|
76
|
-
ns: typeof
|
|
77
|
-
count:
|
|
75
|
+
actionAlt: S.optional<S.Union<[typeof S.String, S.mutable<S.Tuple2<typeof S.String, S.mutable<S.Struct<{
|
|
76
|
+
ns: typeof S.String;
|
|
77
|
+
count: S.optional<typeof S.Number>;
|
|
78
78
|
}>>>>]>>;
|
|
79
|
-
onAction:
|
|
79
|
+
onAction: S.optional<S.SchemaClass<any, any, never>>;
|
|
80
80
|
}>>>;
|
|
81
|
-
currentUndoId:
|
|
82
|
-
activeDeck: typeof
|
|
83
|
-
previousDeck: typeof
|
|
84
|
-
decks:
|
|
81
|
+
currentUndoId: S.optional<typeof S.String>;
|
|
82
|
+
activeDeck: typeof S.String;
|
|
83
|
+
previousDeck: typeof S.String;
|
|
84
|
+
decks: S.mutable<S.Record$<typeof S.String, S.mutable<S.Struct<{
|
|
85
85
|
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
86
|
-
initialized: typeof
|
|
87
|
-
active:
|
|
88
|
-
activeCompanions:
|
|
89
|
-
inactive:
|
|
90
|
-
solo:
|
|
91
|
-
fullscreen: typeof
|
|
92
|
-
plankSizing:
|
|
93
|
-
companionFrameSizing:
|
|
86
|
+
initialized: typeof S.Boolean;
|
|
87
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
88
|
+
activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
|
|
89
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
90
|
+
solo: S.optional<typeof S.String>;
|
|
91
|
+
fullscreen: typeof S.Boolean;
|
|
92
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
93
|
+
companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
94
94
|
}>>>>;
|
|
95
|
-
previousMode:
|
|
96
|
-
deck:
|
|
95
|
+
previousMode: S.mutable<S.Record$<typeof S.String, S.Literal<["deck", "solo", "solo--fullscreen"]>>>;
|
|
96
|
+
deck: S.mutable<S.Struct<{
|
|
97
97
|
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
98
|
-
initialized: typeof
|
|
99
|
-
active:
|
|
100
|
-
activeCompanions:
|
|
101
|
-
inactive:
|
|
102
|
-
solo:
|
|
103
|
-
fullscreen: typeof
|
|
104
|
-
plankSizing:
|
|
105
|
-
companionFrameSizing:
|
|
98
|
+
initialized: typeof S.Boolean;
|
|
99
|
+
active: S.mutable<S.Array$<typeof S.String>>;
|
|
100
|
+
activeCompanions: S.optional<S.mutable<S.Record$<typeof S.String, typeof S.String>>>;
|
|
101
|
+
inactive: S.mutable<S.Array$<typeof S.String>>;
|
|
102
|
+
solo: S.optional<typeof S.String>;
|
|
103
|
+
fullscreen: typeof S.Boolean;
|
|
104
|
+
plankSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
105
|
+
companionFrameSizing: S.mutable<S.Record$<typeof S.String, typeof S.Number>>;
|
|
106
106
|
}>>;
|
|
107
107
|
/** The identifier of a component to scroll into view when it is mounted. */
|
|
108
|
-
scrollIntoView:
|
|
108
|
+
scrollIntoView: S.optional<typeof S.String>;
|
|
109
109
|
}>>;
|
|
110
|
-
export type DeckPluginState =
|
|
110
|
+
export type DeckPluginState = S.Schema.Type<typeof DeckPluginState>;
|
|
111
111
|
export declare const DECK_ACTION: string;
|
|
112
112
|
export declare namespace DeckAction {
|
|
113
|
-
const PartAdjustmentSchema:
|
|
114
|
-
export type PartAdjustment =
|
|
115
|
-
export const Adjustment:
|
|
116
|
-
id: typeof
|
|
117
|
-
type:
|
|
113
|
+
const PartAdjustmentSchema: S.Union<[S.Literal<["close"]>, S.Literal<["companion"]>, S.Literal<["solo"]>, S.Literal<["solo--fullscreen"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
114
|
+
export type PartAdjustment = S.Schema.Type<typeof PartAdjustmentSchema>;
|
|
115
|
+
export const Adjustment: S.mutable<S.Struct<{
|
|
116
|
+
id: typeof S.String;
|
|
117
|
+
type: S.Union<[S.Literal<["close"]>, S.Literal<["companion"]>, S.Literal<["solo"]>, S.Literal<["solo--fullscreen"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
118
118
|
}>>;
|
|
119
|
-
export type Adjustment =
|
|
120
|
-
const Adjust_base:
|
|
121
|
-
readonly _tag:
|
|
119
|
+
export type Adjustment = S.Schema.Type<typeof Adjustment>;
|
|
120
|
+
const Adjust_base: S.TaggedClass<Adjust, `${string}/adjust`, {
|
|
121
|
+
readonly _tag: S.tag<`${string}/adjust`>;
|
|
122
122
|
} & {
|
|
123
|
-
input:
|
|
124
|
-
id: typeof
|
|
125
|
-
type:
|
|
123
|
+
input: S.mutable<S.Struct<{
|
|
124
|
+
id: typeof S.String;
|
|
125
|
+
type: S.Union<[S.Literal<["close"]>, S.Literal<["companion"]>, S.Literal<["solo"]>, S.Literal<["solo--fullscreen"]>, S.Literal<["increment-start"]>, S.Literal<["increment-end"]>]>;
|
|
126
126
|
}>>;
|
|
127
|
-
output: typeof
|
|
127
|
+
output: typeof S.Void;
|
|
128
128
|
}>;
|
|
129
129
|
export class Adjust extends Adjust_base {
|
|
130
130
|
}
|
|
131
|
-
const UpdatePlankSize_base:
|
|
132
|
-
readonly _tag:
|
|
131
|
+
const UpdatePlankSize_base: S.TaggedClass<UpdatePlankSize, `${string}/update-plank-size`, {
|
|
132
|
+
readonly _tag: S.tag<`${string}/update-plank-size`>;
|
|
133
133
|
} & {
|
|
134
|
-
input:
|
|
135
|
-
id: typeof
|
|
136
|
-
size: typeof
|
|
134
|
+
input: S.Struct<{
|
|
135
|
+
id: typeof S.String;
|
|
136
|
+
size: typeof S.Number;
|
|
137
137
|
}>;
|
|
138
|
-
output: typeof
|
|
138
|
+
output: typeof S.Void;
|
|
139
139
|
}>;
|
|
140
140
|
export class UpdatePlankSize extends UpdatePlankSize_base {
|
|
141
141
|
}
|
|
142
|
-
const ChangeCompanion_base:
|
|
143
|
-
readonly _tag:
|
|
142
|
+
const ChangeCompanion_base: S.TaggedClass<ChangeCompanion, `${string}/change-companion`, {
|
|
143
|
+
readonly _tag: S.tag<`${string}/change-companion`>;
|
|
144
144
|
} & {
|
|
145
|
-
input:
|
|
146
|
-
primary: typeof
|
|
147
|
-
companion:
|
|
145
|
+
input: S.Struct<{
|
|
146
|
+
primary: typeof S.String;
|
|
147
|
+
companion: S.Union<[typeof S.String, typeof S.Null]>;
|
|
148
148
|
}>;
|
|
149
|
-
output: typeof
|
|
149
|
+
output: typeof S.Void;
|
|
150
150
|
}>;
|
|
151
151
|
export class ChangeCompanion extends ChangeCompanion_base {
|
|
152
152
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AACtC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,oBAAo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;;;;;;;;QAArF,qFAAqF;;;;;;;;;;IAgErF,4EAA4E;;GAE5D,CAAC;AAEnB,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAEpE,eAAO,MAAM,WAAW,QAA0B,CAAC;AAEnD,yBAAiB,UAAU,CAAC;IAC1B,MAAM,oBAAoB,+KAOzB,CAAC;IACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;IACxE,MAAM,CAAC,MAAM,UAAU;;;OAAoE,CAAC;IAC5F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;;;;;;;;;;IAG1D,MAAM,OAAO,MAAO,SAAQ,WAG1B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;CACN"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-deck",
|
|
3
|
-
"version": "0.8.2-main.
|
|
3
|
+
"version": "0.8.2-main.36232bc",
|
|
4
4
|
"description": "DXOS Surface plugin for the main application layout.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -34,30 +34,30 @@
|
|
|
34
34
|
"@fluentui/react-tabster": "^9.24.2",
|
|
35
35
|
"@preact/signals-core": "^1.6.0",
|
|
36
36
|
"@radix-ui/react-context": "1.1.1",
|
|
37
|
-
"effect": "3.
|
|
37
|
+
"effect": "3.13.3",
|
|
38
38
|
"immer": "^10.1.1",
|
|
39
|
-
"@dxos/app-framework": "0.8.2-main.
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/echo-schema": "0.8.2-main.
|
|
43
|
-
"@dxos/debug": "0.8.2-main.
|
|
44
|
-
"@dxos/echo-signals": "0.8.2-main.
|
|
45
|
-
"@dxos/invariant": "0.8.2-main.
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/local-storage": "0.8.2-main.
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/plugin-attention": "0.8.2-main.
|
|
51
|
-
"@dxos/plugin-
|
|
52
|
-
"@dxos/plugin-theme": "0.8.2-main.
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/react-ui-attention": "0.8.2-main.
|
|
56
|
-
"@dxos/react-ui-form": "0.8.2-main.
|
|
57
|
-
"@dxos/react-ui-stack": "0.8.2-main.
|
|
58
|
-
"@dxos/react-ui-tabs": "0.8.2-main.
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
39
|
+
"@dxos/app-framework": "0.8.2-main.36232bc",
|
|
40
|
+
"@dxos/artifact": "0.8.2-main.36232bc",
|
|
41
|
+
"@dxos/async": "0.8.2-main.36232bc",
|
|
42
|
+
"@dxos/echo-schema": "0.8.2-main.36232bc",
|
|
43
|
+
"@dxos/debug": "0.8.2-main.36232bc",
|
|
44
|
+
"@dxos/echo-signals": "0.8.2-main.36232bc",
|
|
45
|
+
"@dxos/invariant": "0.8.2-main.36232bc",
|
|
46
|
+
"@dxos/keyboard": "0.8.2-main.36232bc",
|
|
47
|
+
"@dxos/live-object": "0.8.2-main.36232bc",
|
|
48
|
+
"@dxos/local-storage": "0.8.2-main.36232bc",
|
|
49
|
+
"@dxos/log": "0.8.2-main.36232bc",
|
|
50
|
+
"@dxos/plugin-attention": "0.8.2-main.36232bc",
|
|
51
|
+
"@dxos/plugin-graph": "0.8.2-main.36232bc",
|
|
52
|
+
"@dxos/plugin-theme": "0.8.2-main.36232bc",
|
|
53
|
+
"@dxos/plugin-observability": "0.8.2-main.36232bc",
|
|
54
|
+
"@dxos/react-client": "0.8.2-main.36232bc",
|
|
55
|
+
"@dxos/react-ui-attention": "0.8.2-main.36232bc",
|
|
56
|
+
"@dxos/react-ui-form": "0.8.2-main.36232bc",
|
|
57
|
+
"@dxos/react-ui-stack": "0.8.2-main.36232bc",
|
|
58
|
+
"@dxos/react-ui-tabs": "0.8.2-main.36232bc",
|
|
59
|
+
"@dxos/react-ui-text-tooltip": "0.8.2-main.36232bc",
|
|
60
|
+
"@dxos/util": "0.8.2-main.36232bc"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -66,17 +66,16 @@
|
|
|
66
66
|
"react": "~18.2.0",
|
|
67
67
|
"react-dom": "~18.2.0",
|
|
68
68
|
"vite": "5.4.7",
|
|
69
|
-
"@dxos/react-ui": "0.8.2-main.
|
|
70
|
-
"@dxos/react-ui-theme": "0.8.2-main.
|
|
71
|
-
"@dxos/storybook-utils": "0.8.2-main.
|
|
69
|
+
"@dxos/react-ui": "0.8.2-main.36232bc",
|
|
70
|
+
"@dxos/react-ui-theme": "0.8.2-main.36232bc",
|
|
71
|
+
"@dxos/storybook-utils": "0.8.2-main.36232bc"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@phosphor-icons/react": "^2.0.5",
|
|
75
|
-
"effect": "^3.13.3",
|
|
76
75
|
"react": "~18.2.0",
|
|
77
76
|
"react-dom": "~18.2.0",
|
|
78
|
-
"@dxos/react-ui-theme": "0.8.2-main.
|
|
79
|
-
"@dxos/react-ui": "0.8.2-main.
|
|
77
|
+
"@dxos/react-ui-theme": "0.8.2-main.36232bc",
|
|
78
|
+
"@dxos/react-ui": "0.8.2-main.36232bc"
|
|
80
79
|
},
|
|
81
80
|
"publishConfig": {
|
|
82
81
|
"access": "public"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { batch } from '@preact/signals-core';
|
|
6
|
-
import {
|
|
6
|
+
import { Effect, pipe } from 'effect';
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
9
|
Capabilities,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
createIntent,
|
|
16
16
|
chain,
|
|
17
17
|
} from '@dxos/app-framework';
|
|
18
|
-
import { getTypename } from '@dxos/echo-schema';
|
|
18
|
+
import { getTypename, S } from '@dxos/echo-schema';
|
|
19
19
|
import { invariant } from '@dxos/invariant';
|
|
20
20
|
import { isLiveObject } from '@dxos/live-object';
|
|
21
21
|
import { log } from '@dxos/log';
|
|
@@ -67,10 +67,10 @@ export default (context: PluginsContext) =>
|
|
|
67
67
|
}),
|
|
68
68
|
createResolver({
|
|
69
69
|
intent: LayoutAction.UpdateLayout,
|
|
70
|
-
// TODO(wittjosiah): This should be able to just be `
|
|
70
|
+
// TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.UpdateSidebar.fields.input)`
|
|
71
71
|
// but the filter is not being applied correctly.
|
|
72
|
-
filter: (data): data is
|
|
73
|
-
|
|
72
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.UpdateSidebar.fields.input> =>
|
|
73
|
+
S.is(LayoutAction.UpdateSidebar.fields.input)(data),
|
|
74
74
|
resolve: ({ options }) => {
|
|
75
75
|
const layout = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
76
76
|
const next = options?.state ?? layout.sidebarState;
|
|
@@ -81,10 +81,10 @@ export default (context: PluginsContext) =>
|
|
|
81
81
|
}),
|
|
82
82
|
createResolver({
|
|
83
83
|
intent: LayoutAction.UpdateLayout,
|
|
84
|
-
// TODO(wittjosiah): This should be able to just be `
|
|
84
|
+
// TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.UpdateComplementary.fields.input)`
|
|
85
85
|
// but the filter is not being applied correctly.
|
|
86
|
-
filter: (data): data is
|
|
87
|
-
|
|
86
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.UpdateComplementary.fields.input> =>
|
|
87
|
+
S.is(LayoutAction.UpdateComplementary.fields.input)(data),
|
|
88
88
|
resolve: ({ subject, options }) => {
|
|
89
89
|
const layout = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
90
90
|
|
|
@@ -100,10 +100,10 @@ export default (context: PluginsContext) =>
|
|
|
100
100
|
}),
|
|
101
101
|
createResolver({
|
|
102
102
|
intent: LayoutAction.UpdateLayout,
|
|
103
|
-
// TODO(wittjosiah): This should be able to just be `
|
|
103
|
+
// TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.UpdateDialog.fields.input)`
|
|
104
104
|
// but the filter is not being applied correctly.
|
|
105
|
-
filter: (data): data is
|
|
106
|
-
|
|
105
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.UpdateDialog.fields.input> =>
|
|
106
|
+
S.is(LayoutAction.UpdateDialog.fields.input)(data),
|
|
107
107
|
resolve: ({ subject, options }) => {
|
|
108
108
|
const layout = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
109
109
|
layout.dialogOpen = options.state ?? Boolean(subject);
|
|
@@ -114,10 +114,10 @@ export default (context: PluginsContext) =>
|
|
|
114
114
|
}),
|
|
115
115
|
createResolver({
|
|
116
116
|
intent: LayoutAction.UpdateLayout,
|
|
117
|
-
// TODO(wittjosiah): This should be able to just be `
|
|
117
|
+
// TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.UpdatePopover.fields.input)`
|
|
118
118
|
// but the filter is not being applied correctly.
|
|
119
|
-
filter: (data): data is
|
|
120
|
-
|
|
119
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.UpdatePopover.fields.input> =>
|
|
120
|
+
S.is(LayoutAction.UpdatePopover.fields.input)(data),
|
|
121
121
|
resolve: ({ subject, options }) => {
|
|
122
122
|
const layout = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
123
123
|
layout.popoverOpen = options.state ?? Boolean(subject);
|
|
@@ -133,10 +133,10 @@ export default (context: PluginsContext) =>
|
|
|
133
133
|
}),
|
|
134
134
|
createResolver({
|
|
135
135
|
intent: LayoutAction.UpdateLayout,
|
|
136
|
-
// TODO(wittjosiah): This should be able to just be `
|
|
136
|
+
// TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.AddToast.fields.input)`
|
|
137
137
|
// but the filter is not being applied correctly.
|
|
138
|
-
filter: (data): data is
|
|
139
|
-
|
|
138
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.AddToast.fields.input> =>
|
|
139
|
+
S.is(LayoutAction.AddToast.fields.input)(data),
|
|
140
140
|
resolve: ({ subject }) => {
|
|
141
141
|
const layout = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
142
142
|
layout.toasts.push(subject);
|
|
@@ -144,10 +144,10 @@ export default (context: PluginsContext) =>
|
|
|
144
144
|
}),
|
|
145
145
|
createResolver({
|
|
146
146
|
intent: LayoutAction.UpdateLayout,
|
|
147
|
-
// TODO(wittjosiah): This should be able to just be `
|
|
147
|
+
// TODO(wittjosiah): This should be able to just be `S.is(LayoutAction.SetLayoutMode.fields.input)`
|
|
148
148
|
// but the filter is not being applied correctly.
|
|
149
|
-
filter: (data): data is
|
|
150
|
-
if (!
|
|
149
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.SetLayoutMode.fields.input> => {
|
|
150
|
+
if (!S.is(LayoutAction.SetLayoutMode.fields.input)(data)) {
|
|
151
151
|
return false;
|
|
152
152
|
}
|
|
153
153
|
|
|
@@ -202,8 +202,8 @@ export default (context: PluginsContext) =>
|
|
|
202
202
|
}),
|
|
203
203
|
createResolver({
|
|
204
204
|
intent: LayoutAction.UpdateLayout,
|
|
205
|
-
filter: (data): data is
|
|
206
|
-
|
|
205
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.SwitchWorkspace.fields.input> =>
|
|
206
|
+
S.is(LayoutAction.SwitchWorkspace.fields.input)(data),
|
|
207
207
|
resolve: ({ subject }) => {
|
|
208
208
|
const state = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
209
209
|
batch(() => {
|
|
@@ -228,8 +228,8 @@ export default (context: PluginsContext) =>
|
|
|
228
228
|
}),
|
|
229
229
|
createResolver({
|
|
230
230
|
intent: LayoutAction.UpdateLayout,
|
|
231
|
-
filter: (data): data is
|
|
232
|
-
|
|
231
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.RevertWorkspace.fields.input> =>
|
|
232
|
+
S.is(LayoutAction.RevertWorkspace.fields.input)(data),
|
|
233
233
|
resolve: () => {
|
|
234
234
|
const state = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
235
235
|
return {
|
|
@@ -239,8 +239,8 @@ export default (context: PluginsContext) =>
|
|
|
239
239
|
}),
|
|
240
240
|
createResolver({
|
|
241
241
|
intent: LayoutAction.UpdateLayout,
|
|
242
|
-
filter: (data): data is
|
|
243
|
-
|
|
242
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.Open.fields.input> =>
|
|
243
|
+
S.is(LayoutAction.Open.fields.input)(data),
|
|
244
244
|
resolve: ({ subject, options }) =>
|
|
245
245
|
Effect.gen(function* () {
|
|
246
246
|
const { graph } = context.requestCapability(Capabilities.AppGraph);
|
|
@@ -301,8 +301,8 @@ export default (context: PluginsContext) =>
|
|
|
301
301
|
}),
|
|
302
302
|
createResolver({
|
|
303
303
|
intent: LayoutAction.UpdateLayout,
|
|
304
|
-
filter: (data): data is
|
|
305
|
-
|
|
304
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.Close.fields.input> =>
|
|
305
|
+
S.is(LayoutAction.Close.fields.input)(data),
|
|
306
306
|
resolve: ({ subject }) => {
|
|
307
307
|
const state = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
308
308
|
const attention = context.requestCapability(AttentionCapabilities.Attention);
|
|
@@ -324,8 +324,8 @@ export default (context: PluginsContext) =>
|
|
|
324
324
|
}),
|
|
325
325
|
createResolver({
|
|
326
326
|
intent: LayoutAction.UpdateLayout,
|
|
327
|
-
filter: (data): data is
|
|
328
|
-
|
|
327
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.Set.fields.input> =>
|
|
328
|
+
S.is(LayoutAction.Set.fields.input)(data),
|
|
329
329
|
resolve: ({ subject }) => {
|
|
330
330
|
const state = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
331
331
|
const attention = context.requestCapability(AttentionCapabilities.Attention);
|
|
@@ -337,8 +337,8 @@ export default (context: PluginsContext) =>
|
|
|
337
337
|
}),
|
|
338
338
|
createResolver({
|
|
339
339
|
intent: LayoutAction.UpdateLayout,
|
|
340
|
-
filter: (data): data is
|
|
341
|
-
|
|
340
|
+
filter: (data): data is S.Schema.Type<typeof LayoutAction.ScrollIntoView.fields.input> =>
|
|
341
|
+
S.is(LayoutAction.ScrollIntoView.fields.input)(data),
|
|
342
342
|
resolve: ({ subject }) => {
|
|
343
343
|
const layout = context.requestCapability(DeckCapabilities.MutableDeckState);
|
|
344
344
|
layout.scrollIntoView = subject;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Schema } from 'effect';
|
|
6
|
-
|
|
7
5
|
import {
|
|
8
6
|
contributes,
|
|
9
7
|
createIntent,
|
|
@@ -12,6 +10,7 @@ import {
|
|
|
12
10
|
type PromiseIntentDispatcher,
|
|
13
11
|
} from '@dxos/app-framework';
|
|
14
12
|
import { defineTool, ToolResult } from '@dxos/artifact';
|
|
13
|
+
import { S } from '@dxos/echo-schema';
|
|
15
14
|
import { invariant } from '@dxos/invariant';
|
|
16
15
|
|
|
17
16
|
import { meta } from '../meta';
|
|
@@ -36,8 +35,8 @@ export default () =>
|
|
|
36
35
|
`,
|
|
37
36
|
caption: 'Showing item...',
|
|
38
37
|
// TODO(wittjosiah): Refactor Layout/Navigation/Deck actions so that they can be used directly.
|
|
39
|
-
schema:
|
|
40
|
-
id:
|
|
38
|
+
schema: S.Struct({
|
|
39
|
+
id: S.String.annotations({
|
|
41
40
|
description: 'The ID of the item to show.',
|
|
42
41
|
}),
|
|
43
42
|
}),
|