@dxos/plugin-deck 0.8.1 → 0.8.2-main.2f9c567
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/{check-app-scheme-SEYECDHI.mjs → check-app-scheme-O7JPE4TM.mjs} +2 -3
- package/dist/lib/browser/check-app-scheme-O7JPE4TM.mjs.map +7 -0
- package/dist/lib/browser/{chunk-FJBMNSUC.mjs → chunk-AHTP72DY.mjs} +207 -162
- package/dist/lib/browser/chunk-AHTP72DY.mjs.map +7 -0
- package/dist/lib/browser/chunk-E7TOEOGO.mjs +157 -0
- package/dist/lib/browser/chunk-E7TOEOGO.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6ZSOFCPP.mjs → chunk-PGSJT5PG.mjs} +8 -7
- package/dist/lib/browser/{chunk-6ZSOFCPP.mjs.map → chunk-PGSJT5PG.mjs.map} +3 -3
- package/dist/lib/browser/chunk-RKYIMUKW.mjs +24 -0
- package/dist/lib/browser/{chunk-B4LOJUWW.mjs.map → chunk-RKYIMUKW.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +5 -3
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/{intent-resolver-UDYKO2QW.mjs → intent-resolver-NO6L67KF.mjs} +78 -53
- package/dist/lib/browser/intent-resolver-NO6L67KF.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-root-XLXN2VEW.mjs → react-root-5RWCIUXV.mjs} +5 -5
- package/dist/lib/browser/{react-surface-WNGMZL7I.mjs → react-surface-DIDOPTH7.mjs} +5 -5
- package/dist/lib/browser/{settings-HMDGSBGO.mjs → settings-C7LX2GXF.mjs} +4 -4
- package/dist/lib/browser/settings-C7LX2GXF.mjs.map +7 -0
- package/dist/lib/browser/{state-7TN26M42.mjs → state-AX74YEJD.mjs} +6 -5
- package/dist/lib/browser/state-AX74YEJD.mjs.map +7 -0
- package/dist/lib/browser/{tools-SC6QEN7R.mjs → tools-7W7KZRAX.mjs} +7 -7
- package/dist/lib/browser/tools-7W7KZRAX.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +1 -1
- package/dist/lib/browser/{url-handler-ODG4B6NX.mjs → url-handler-AF5SYROZ.mjs} +2 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +8 -6
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/check-app-scheme.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +5 -4
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/tools.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ContentEmpty.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Dialog.d.ts +3 -0
- package/dist/types/src/components/DeckLayout/Dialog.d.ts.map +1 -0
- package/dist/types/src/components/DeckLayout/Popover.d.ts +5 -0
- package/dist/types/src/components/DeckLayout/Popover.d.ts.map +1 -0
- package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankControls.d.ts +2 -2
- package/dist/types/src/components/Plank/PlankControls.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankError.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankHeading.d.ts +3 -2
- package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/ComplementarySidebar.d.ts.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +106 -104
- package/dist/types/src/types.d.ts.map +1 -1
- package/dist/types/src/util/layoutAppliesTopbar.d.ts +2 -1
- package/dist/types/src/util/layoutAppliesTopbar.d.ts.map +1 -1
- package/dist/types/src/util/useHoistStatusbar.d.ts +2 -1
- package/dist/types/src/util/useHoistStatusbar.d.ts.map +1 -1
- package/package.json +31 -29
- package/src/capabilities/check-app-scheme.ts +3 -5
- package/src/capabilities/index.ts +2 -2
- package/src/capabilities/intent-resolver.ts +120 -96
- package/src/capabilities/settings.ts +2 -2
- package/src/capabilities/state.ts +3 -2
- package/src/capabilities/tools.ts +4 -3
- package/src/components/DeckLayout/ContentEmpty.tsx +6 -2
- package/src/components/DeckLayout/DeckLayout.tsx +114 -181
- package/src/components/DeckLayout/Dialog.tsx +36 -0
- package/src/components/DeckLayout/Popover.tsx +104 -0
- package/src/components/Plank/Plank.tsx +6 -3
- package/src/components/Plank/PlankControls.tsx +40 -34
- package/src/components/Plank/PlankError.tsx +2 -6
- package/src/components/Plank/PlankHeading.tsx +12 -5
- package/src/components/Sidebar/ComplementarySidebar.tsx +30 -20
- package/src/components/Sidebar/Sidebar.tsx +5 -3
- package/src/translations.ts +2 -0
- package/src/types.ts +75 -71
- package/src/util/layoutAppliesTopbar.ts +8 -2
- package/src/util/useHoistStatusbar.ts +9 -4
- package/dist/lib/browser/check-app-scheme-SEYECDHI.mjs.map +0 -7
- package/dist/lib/browser/chunk-B4LOJUWW.mjs +0 -24
- package/dist/lib/browser/chunk-FJBMNSUC.mjs.map +0 -7
- package/dist/lib/browser/chunk-RJNCG4ND.mjs +0 -154
- package/dist/lib/browser/chunk-RJNCG4ND.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-UDYKO2QW.mjs.map +0 -7
- package/dist/lib/browser/settings-HMDGSBGO.mjs.map +0 -7
- package/dist/lib/browser/state-7TN26M42.mjs.map +0 -7
- package/dist/lib/browser/tools-SC6QEN7R.mjs.map +0 -7
- package/dist/types/src/components/DeckLayout/Fullscreen.d.ts +0 -5
- package/dist/types/src/components/DeckLayout/Fullscreen.d.ts.map +0 -1
- package/src/components/DeckLayout/Fullscreen.tsx +0 -31
- /package/dist/lib/browser/{react-root-XLXN2VEW.mjs.map → react-root-5RWCIUXV.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-WNGMZL7I.mjs.map → react-surface-DIDOPTH7.mjs.map} +0 -0
- /package/dist/lib/browser/{url-handler-ODG4B6NX.mjs.map → url-handler-AF5SYROZ.mjs.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import { type DeepReadonly } from '@dxos/util';
|
|
2
3
|
export { ATTENDABLE_PATH_SEPARATOR } from '@dxos/react-ui-attention';
|
|
3
4
|
export declare const PLANK_COMPANION_TYPE = "dxos.org/plugin/deck/plank-companion";
|
|
4
5
|
export declare const DECK_COMPANION_TYPE = "dxos.org/plugin/deck/deck-companion";
|
|
@@ -8,143 +9,144 @@ export declare const OverscrollOptions: readonly ["none", "centering"];
|
|
|
8
9
|
export type Overscroll = (typeof OverscrollOptions)[number];
|
|
9
10
|
export type Part = 'solo' | 'deck' | 'complementary';
|
|
10
11
|
export type ResolvedPart = Part | 'solo-primary' | 'solo-companion';
|
|
11
|
-
export declare const DeckSettingsSchema:
|
|
12
|
-
showHints:
|
|
13
|
-
enableDeck:
|
|
14
|
-
enableNativeRedirect:
|
|
15
|
-
enableStatusbar:
|
|
16
|
-
newPlankPositioning:
|
|
17
|
-
overscroll:
|
|
12
|
+
export declare const DeckSettingsSchema: Schema.mutable<Schema.Struct<{
|
|
13
|
+
showHints: Schema.optional<typeof Schema.Boolean>;
|
|
14
|
+
enableDeck: Schema.optional<typeof Schema.Boolean>;
|
|
15
|
+
enableNativeRedirect: Schema.optional<typeof Schema.Boolean>;
|
|
16
|
+
enableStatusbar: Schema.optional<typeof Schema.Boolean>;
|
|
17
|
+
newPlankPositioning: Schema.optional<Schema.Literal<["start", "end"]>>;
|
|
18
|
+
overscroll: Schema.optional<Schema.Literal<["none", "centering"]>>;
|
|
18
19
|
}>>;
|
|
19
|
-
export type DeckSettingsProps =
|
|
20
|
-
export declare const PlankSizing:
|
|
21
|
-
export type PlankSizing =
|
|
22
|
-
export declare const DeckState:
|
|
20
|
+
export type DeckSettingsProps = Schema.Schema.Type<typeof DeckSettingsSchema>;
|
|
21
|
+
export declare const PlankSizing: Schema.Record$<typeof Schema.String, typeof Schema.Number>;
|
|
22
|
+
export type PlankSizing = Schema.Schema.Type<typeof PlankSizing>;
|
|
23
|
+
export declare const DeckState: Schema.Struct<{
|
|
23
24
|
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
24
|
-
initialized: typeof
|
|
25
|
-
active:
|
|
26
|
-
activeCompanions:
|
|
27
|
-
inactive:
|
|
28
|
-
solo:
|
|
29
|
-
fullscreen: typeof
|
|
30
|
-
plankSizing:
|
|
31
|
-
companionFrameSizing:
|
|
25
|
+
initialized: typeof Schema.Boolean;
|
|
26
|
+
active: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
27
|
+
activeCompanions: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.String>>>;
|
|
28
|
+
inactive: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
29
|
+
solo: Schema.optional<typeof Schema.String>;
|
|
30
|
+
fullscreen: typeof Schema.Boolean;
|
|
31
|
+
plankSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
32
|
+
companionFrameSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
32
33
|
}>;
|
|
33
|
-
export type DeckState =
|
|
34
|
+
export type DeckState = Schema.Schema.Type<typeof DeckState>;
|
|
34
35
|
export declare const defaultDeck: DeckState;
|
|
35
|
-
declare const LayoutMode:
|
|
36
|
-
export type LayoutMode =
|
|
36
|
+
declare const LayoutMode: Schema.Literal<["deck", "solo", "solo--fullscreen"]>;
|
|
37
|
+
export type LayoutMode = Schema.Schema.Type<typeof LayoutMode>;
|
|
37
38
|
export declare const isLayoutMode: (value: any) => value is LayoutMode;
|
|
38
|
-
export declare const getMode: (deck: DeckState) => LayoutMode;
|
|
39
|
-
export declare const DeckPluginState:
|
|
40
|
-
sidebarState:
|
|
41
|
-
complementarySidebarState:
|
|
42
|
-
complementarySidebarPanel:
|
|
43
|
-
dialogOpen: typeof
|
|
39
|
+
export declare const getMode: (deck: DeckState | DeepReadonly<DeckState>) => LayoutMode;
|
|
40
|
+
export declare const DeckPluginState: Schema.mutable<Schema.Struct<{
|
|
41
|
+
sidebarState: Schema.Literal<["closed", "collapsed", "expanded"]>;
|
|
42
|
+
complementarySidebarState: Schema.Literal<["closed", "collapsed", "expanded"]>;
|
|
43
|
+
complementarySidebarPanel: Schema.optional<typeof Schema.String>;
|
|
44
|
+
dialogOpen: typeof Schema.Boolean;
|
|
45
|
+
dialogBlockAlign: Schema.optional<Schema.Literal<["start", "center", "end"]>>;
|
|
46
|
+
dialogType: Schema.optional<Schema.Literal<["default", "alert"]>>;
|
|
44
47
|
/** Data to be passed to the dialog Surface. */
|
|
45
|
-
dialogContent:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
dialogContent: Schema.optional<typeof Schema.Any>;
|
|
49
|
+
popoverOpen: typeof Schema.Boolean;
|
|
50
|
+
popoverSide: Schema.optional<Schema.Literal<["top", "right", "bottom", "left"]>>;
|
|
51
|
+
popoverAnchor: Schema.optional<typeof Schema.Any>;
|
|
52
|
+
popoverAnchorId: Schema.optional<typeof Schema.String>;
|
|
50
53
|
/** Data to be passed to the popover Surface. */
|
|
51
|
-
popoverContent:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
count: S.optional<typeof S.Number>;
|
|
54
|
+
popoverContent: Schema.optional<typeof Schema.Any>;
|
|
55
|
+
toasts: Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
56
|
+
id: Schema.SchemaClass<string, string, never>;
|
|
57
|
+
title: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
58
|
+
ns: typeof Schema.String;
|
|
59
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
58
60
|
}>>>>]>>;
|
|
59
|
-
description:
|
|
60
|
-
ns: typeof
|
|
61
|
-
count:
|
|
61
|
+
description: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
62
|
+
ns: typeof Schema.String;
|
|
63
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
62
64
|
}>>>>]>>;
|
|
63
|
-
icon:
|
|
64
|
-
duration:
|
|
65
|
-
closeLabel:
|
|
66
|
-
ns: typeof
|
|
67
|
-
count:
|
|
65
|
+
icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
66
|
+
duration: Schema.optional<Schema.SchemaClass<number, number, never>>;
|
|
67
|
+
closeLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
68
|
+
ns: typeof Schema.String;
|
|
69
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
68
70
|
}>>>>]>>;
|
|
69
|
-
actionLabel:
|
|
70
|
-
ns: typeof
|
|
71
|
-
count:
|
|
71
|
+
actionLabel: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
72
|
+
ns: typeof Schema.String;
|
|
73
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
72
74
|
}>>>>]>>;
|
|
73
|
-
actionAlt:
|
|
74
|
-
ns: typeof
|
|
75
|
-
count:
|
|
75
|
+
actionAlt: Schema.optional<Schema.Union<[typeof Schema.String, Schema.mutable<Schema.Tuple2<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
76
|
+
ns: typeof Schema.String;
|
|
77
|
+
count: Schema.optional<typeof Schema.Number>;
|
|
76
78
|
}>>>>]>>;
|
|
77
|
-
onAction:
|
|
79
|
+
onAction: Schema.optional<Schema.SchemaClass<any, any, never>>;
|
|
78
80
|
}>>>;
|
|
79
|
-
currentUndoId:
|
|
80
|
-
activeDeck: typeof
|
|
81
|
-
previousDeck: typeof
|
|
82
|
-
decks:
|
|
81
|
+
currentUndoId: Schema.optional<typeof Schema.String>;
|
|
82
|
+
activeDeck: typeof Schema.String;
|
|
83
|
+
previousDeck: typeof Schema.String;
|
|
84
|
+
decks: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.mutable<Schema.Struct<{
|
|
83
85
|
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
84
|
-
initialized: typeof
|
|
85
|
-
active:
|
|
86
|
-
activeCompanions:
|
|
87
|
-
inactive:
|
|
88
|
-
solo:
|
|
89
|
-
fullscreen: typeof
|
|
90
|
-
plankSizing:
|
|
91
|
-
companionFrameSizing:
|
|
86
|
+
initialized: typeof Schema.Boolean;
|
|
87
|
+
active: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
88
|
+
activeCompanions: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.String>>>;
|
|
89
|
+
inactive: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
90
|
+
solo: Schema.optional<typeof Schema.String>;
|
|
91
|
+
fullscreen: typeof Schema.Boolean;
|
|
92
|
+
plankSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
93
|
+
companionFrameSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
92
94
|
}>>>>;
|
|
93
|
-
previousMode:
|
|
94
|
-
deck:
|
|
95
|
+
previousMode: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.Literal<["deck", "solo", "solo--fullscreen"]>>>;
|
|
96
|
+
deck: Schema.mutable<Schema.Struct<{
|
|
95
97
|
/** If false, the deck has not yet left solo mode and new planks should be soloed. */
|
|
96
|
-
initialized: typeof
|
|
97
|
-
active:
|
|
98
|
-
activeCompanions:
|
|
99
|
-
inactive:
|
|
100
|
-
solo:
|
|
101
|
-
fullscreen: typeof
|
|
102
|
-
plankSizing:
|
|
103
|
-
companionFrameSizing:
|
|
98
|
+
initialized: typeof Schema.Boolean;
|
|
99
|
+
active: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
100
|
+
activeCompanions: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.String>>>;
|
|
101
|
+
inactive: Schema.mutable<Schema.Array$<typeof Schema.String>>;
|
|
102
|
+
solo: Schema.optional<typeof Schema.String>;
|
|
103
|
+
fullscreen: typeof Schema.Boolean;
|
|
104
|
+
plankSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
105
|
+
companionFrameSizing: Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Number>>;
|
|
104
106
|
}>>;
|
|
105
107
|
/** The identifier of a component to scroll into view when it is mounted. */
|
|
106
|
-
scrollIntoView:
|
|
108
|
+
scrollIntoView: Schema.optional<typeof Schema.String>;
|
|
107
109
|
}>>;
|
|
108
|
-
export type DeckPluginState =
|
|
110
|
+
export type DeckPluginState = Schema.Schema.Type<typeof DeckPluginState>;
|
|
109
111
|
export declare const DECK_ACTION: string;
|
|
110
112
|
export declare namespace DeckAction {
|
|
111
|
-
const PartAdjustmentSchema:
|
|
112
|
-
export type PartAdjustment =
|
|
113
|
-
export const Adjustment:
|
|
114
|
-
id: typeof
|
|
115
|
-
type:
|
|
113
|
+
const PartAdjustmentSchema: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
|
|
114
|
+
export type PartAdjustment = Schema.Schema.Type<typeof PartAdjustmentSchema>;
|
|
115
|
+
export const Adjustment: Schema.mutable<Schema.Struct<{
|
|
116
|
+
id: typeof Schema.String;
|
|
117
|
+
type: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
|
|
116
118
|
}>>;
|
|
117
|
-
export type Adjustment =
|
|
118
|
-
const Adjust_base:
|
|
119
|
-
readonly _tag:
|
|
119
|
+
export type Adjustment = Schema.Schema.Type<typeof Adjustment>;
|
|
120
|
+
const Adjust_base: Schema.TaggedClass<Adjust, `${string}/adjust`, {
|
|
121
|
+
readonly _tag: Schema.tag<`${string}/adjust`>;
|
|
120
122
|
} & {
|
|
121
|
-
input:
|
|
122
|
-
id: typeof
|
|
123
|
-
type:
|
|
123
|
+
input: Schema.mutable<Schema.Struct<{
|
|
124
|
+
id: typeof Schema.String;
|
|
125
|
+
type: Schema.Union<[Schema.Literal<["close"]>, Schema.Literal<["companion"]>, Schema.Literal<["solo"]>, Schema.Literal<["solo--fullscreen"]>, Schema.Literal<["increment-start"]>, Schema.Literal<["increment-end"]>]>;
|
|
124
126
|
}>>;
|
|
125
|
-
output: typeof
|
|
127
|
+
output: typeof Schema.Void;
|
|
126
128
|
}>;
|
|
127
129
|
export class Adjust extends Adjust_base {
|
|
128
130
|
}
|
|
129
|
-
const UpdatePlankSize_base:
|
|
130
|
-
readonly _tag:
|
|
131
|
+
const UpdatePlankSize_base: Schema.TaggedClass<UpdatePlankSize, `${string}/update-plank-size`, {
|
|
132
|
+
readonly _tag: Schema.tag<`${string}/update-plank-size`>;
|
|
131
133
|
} & {
|
|
132
|
-
input:
|
|
133
|
-
id: typeof
|
|
134
|
-
size: typeof
|
|
134
|
+
input: Schema.Struct<{
|
|
135
|
+
id: typeof Schema.String;
|
|
136
|
+
size: typeof Schema.Number;
|
|
135
137
|
}>;
|
|
136
|
-
output: typeof
|
|
138
|
+
output: typeof Schema.Void;
|
|
137
139
|
}>;
|
|
138
140
|
export class UpdatePlankSize extends UpdatePlankSize_base {
|
|
139
141
|
}
|
|
140
|
-
const ChangeCompanion_base:
|
|
141
|
-
readonly _tag:
|
|
142
|
+
const ChangeCompanion_base: Schema.TaggedClass<ChangeCompanion, `${string}/change-companion`, {
|
|
143
|
+
readonly _tag: Schema.tag<`${string}/change-companion`>;
|
|
142
144
|
} & {
|
|
143
|
-
input:
|
|
144
|
-
primary: typeof
|
|
145
|
-
companion:
|
|
145
|
+
input: Schema.Struct<{
|
|
146
|
+
primary: typeof Schema.String;
|
|
147
|
+
companion: Schema.Union<[typeof Schema.String, typeof Schema.Null]>;
|
|
146
148
|
}>;
|
|
147
|
-
output: typeof
|
|
149
|
+
output: typeof Schema.Void;
|
|
148
150
|
}>;
|
|
149
151
|
export class ChangeCompanion extends ChangeCompanion_base {
|
|
150
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":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAC3E,eAAO,MAAM,mBAAmB,wCAAwC,CAAC;AAGzE,eAAO,MAAM,iBAAiB,2BAA4B,CAAC;AAC3D,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,iBAAiB,gCAAiC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,MAAM,MAAM,IAAI,GAAG,MAA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AAC,MAAM,CAAC,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAC7E,MAAM,CAAC,MAAM,UAAU;;;OAAmF,CAAC;IAC3G,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;;;;;;;;;;IAG/D,MAAM,OAAO,MAAO,SAAQ,WAG1B;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAMnC;KAAG;;CACN"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { type LayoutMode } from '../types';
|
|
2
|
+
export declare const layoutAppliesTopbar: (breakpoint: string, layoutMode?: LayoutMode) => boolean;
|
|
2
3
|
//# sourceMappingURL=layoutAppliesTopbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layoutAppliesTopbar.d.ts","sourceRoot":"","sources":["../../../../src/util/layoutAppliesTopbar.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,eAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"layoutAppliesTopbar.d.ts","sourceRoot":"","sources":["../../../../src/util/layoutAppliesTopbar.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,mBAAmB,eAAgB,MAAM,eAAe,UAAU,YAM9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/util/useHoistStatusbar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useHoistStatusbar.d.ts","sourceRoot":"","sources":["../../../../src/util/useHoistStatusbar.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAqB,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9D,eAAO,MAAM,iBAAiB,eAAgB,MAAM,eAAe,UAAU,KAAG,OAY/E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-deck",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2-main.2f9c567",
|
|
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",
|
|
@@ -33,30 +33,31 @@
|
|
|
33
33
|
"dependencies": {
|
|
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.14.21",
|
|
37
38
|
"immer": "^10.1.1",
|
|
38
|
-
"@dxos/app-framework": "0.8.
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/plugin-
|
|
50
|
-
"@dxos/plugin-
|
|
51
|
-
"@dxos/plugin-theme": "0.8.
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/react-ui-attention": "0.8.
|
|
55
|
-
"@dxos/react-ui-form": "0.8.
|
|
56
|
-
"@dxos/react-ui-stack": "0.8.
|
|
57
|
-
"@dxos/react-ui-tabs": "0.8.
|
|
58
|
-
"@dxos/util": "0.8.
|
|
59
|
-
"@dxos/react-ui-text-tooltip": "0.8.
|
|
39
|
+
"@dxos/app-framework": "0.8.2-main.2f9c567",
|
|
40
|
+
"@dxos/async": "0.8.2-main.2f9c567",
|
|
41
|
+
"@dxos/artifact": "0.8.2-main.2f9c567",
|
|
42
|
+
"@dxos/echo-schema": "0.8.2-main.2f9c567",
|
|
43
|
+
"@dxos/debug": "0.8.2-main.2f9c567",
|
|
44
|
+
"@dxos/echo-signals": "0.8.2-main.2f9c567",
|
|
45
|
+
"@dxos/invariant": "0.8.2-main.2f9c567",
|
|
46
|
+
"@dxos/live-object": "0.8.2-main.2f9c567",
|
|
47
|
+
"@dxos/log": "0.8.2-main.2f9c567",
|
|
48
|
+
"@dxos/local-storage": "0.8.2-main.2f9c567",
|
|
49
|
+
"@dxos/keyboard": "0.8.2-main.2f9c567",
|
|
50
|
+
"@dxos/plugin-attention": "0.8.2-main.2f9c567",
|
|
51
|
+
"@dxos/plugin-observability": "0.8.2-main.2f9c567",
|
|
52
|
+
"@dxos/plugin-theme": "0.8.2-main.2f9c567",
|
|
53
|
+
"@dxos/react-client": "0.8.2-main.2f9c567",
|
|
54
|
+
"@dxos/plugin-graph": "0.8.2-main.2f9c567",
|
|
55
|
+
"@dxos/react-ui-attention": "0.8.2-main.2f9c567",
|
|
56
|
+
"@dxos/react-ui-form": "0.8.2-main.2f9c567",
|
|
57
|
+
"@dxos/react-ui-stack": "0.8.2-main.2f9c567",
|
|
58
|
+
"@dxos/react-ui-tabs": "0.8.2-main.2f9c567",
|
|
59
|
+
"@dxos/util": "0.8.2-main.2f9c567",
|
|
60
|
+
"@dxos/react-ui-text-tooltip": "0.8.2-main.2f9c567"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -65,16 +66,17 @@
|
|
|
65
66
|
"react": "~18.2.0",
|
|
66
67
|
"react-dom": "~18.2.0",
|
|
67
68
|
"vite": "5.4.7",
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/react-ui": "0.8.
|
|
70
|
-
"@dxos/
|
|
69
|
+
"@dxos/react-ui": "0.8.2-main.2f9c567",
|
|
70
|
+
"@dxos/react-ui-theme": "0.8.2-main.2f9c567",
|
|
71
|
+
"@dxos/storybook-utils": "0.8.2-main.2f9c567"
|
|
71
72
|
},
|
|
72
73
|
"peerDependencies": {
|
|
73
74
|
"@phosphor-icons/react": "^2.0.5",
|
|
75
|
+
"effect": "^3.13.3",
|
|
74
76
|
"react": "~18.2.0",
|
|
75
77
|
"react-dom": "~18.2.0",
|
|
76
|
-
"@dxos/react-ui": "0.8.
|
|
77
|
-
"@dxos/react-ui
|
|
78
|
+
"@dxos/react-ui-theme": "0.8.2-main.2f9c567",
|
|
79
|
+
"@dxos/react-ui": "0.8.2-main.2f9c567"
|
|
78
80
|
},
|
|
79
81
|
"publishConfig": {
|
|
80
82
|
"access": "public"
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
//
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
|
-
//
|
|
5
|
-
// Copyright 2025 DXOS.org
|
|
6
|
-
//
|
|
7
4
|
|
|
8
5
|
import { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';
|
|
9
6
|
|
|
@@ -34,8 +31,9 @@ const checkAppScheme = (url: string) => {
|
|
|
34
31
|
};
|
|
35
32
|
|
|
36
33
|
export default async (context: PluginsContext) => {
|
|
37
|
-
const
|
|
38
|
-
|
|
34
|
+
const settings = context
|
|
35
|
+
.requestCapability(Capabilities.SettingsStore)
|
|
36
|
+
.getStore<DeckSettingsProps>(DECK_PLUGIN)?.value;
|
|
39
37
|
if (!isSocket && settings?.enableNativeRedirect) {
|
|
40
38
|
checkAppScheme(appScheme);
|
|
41
39
|
}
|
|
@@ -6,11 +6,11 @@ import { lazy } from '@dxos/app-framework';
|
|
|
6
6
|
|
|
7
7
|
export const AppGraphBuilder = lazy(() => import('./app-graph-builder'));
|
|
8
8
|
export const CheckAppScheme = lazy(() => import('./check-app-scheme'));
|
|
9
|
+
export const DeckSettings = lazy(() => import('./settings'));
|
|
10
|
+
export const DeckState = lazy(() => import('./state'));
|
|
9
11
|
export const LayoutIntentResolver = lazy(() => import('./intent-resolver'));
|
|
10
12
|
export const ReactRoot = lazy(() => import('./react-root'));
|
|
11
13
|
export const ReactSurface = lazy(() => import('./react-surface'));
|
|
12
|
-
export const DeckSettings = lazy(() => import('./settings'));
|
|
13
|
-
export const DeckState = lazy(() => import('./state'));
|
|
14
14
|
export const Tools = lazy(() => import('./tools'));
|
|
15
15
|
export const UrlHandler = lazy(() => import('./url-handler'));
|
|
16
16
|
|