@dxos/plugin-deck 0.8.4-main.21d9917 → 0.8.4-main.2244d791bb
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/{app-graph-builder-DTVCULQ4.mjs → app-graph-builder-X7LCO5KE.mjs} +13 -12
- package/dist/lib/browser/app-graph-builder-X7LCO5KE.mjs.map +7 -0
- package/dist/lib/browser/{check-app-scheme-JSRXXIYF.mjs → check-app-scheme-PGISDJX7.mjs} +8 -8
- package/dist/lib/browser/check-app-scheme-PGISDJX7.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ATFPDN6J.mjs → chunk-DONG2FYU.mjs} +12 -9
- package/dist/lib/browser/chunk-DONG2FYU.mjs.map +7 -0
- package/dist/lib/browser/{chunk-EREEXCHO.mjs → chunk-JGC4ZLG3.mjs} +102 -81
- package/dist/lib/browser/chunk-JGC4ZLG3.mjs.map +7 -0
- package/dist/lib/browser/{chunk-UNG4CLLP.mjs → chunk-YT3AJVUU.mjs} +8 -8
- package/dist/lib/browser/chunk-YT3AJVUU.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +36 -34
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{operation-resolver-CDYBLZJ4.mjs → operation-resolver-XJFR3PNQ.mjs} +86 -84
- package/dist/lib/browser/operation-resolver-XJFR3PNQ.mjs.map +7 -0
- package/dist/lib/browser/{react-root-LYNEKGHM.mjs → react-root-AJFHKHRL.mjs} +6 -6
- package/dist/lib/browser/react-root-AJFHKHRL.mjs.map +7 -0
- package/dist/lib/browser/{react-surface-RPKD7XUR.mjs → react-surface-KBRBGEXY.mjs} +11 -10
- package/dist/lib/browser/react-surface-KBRBGEXY.mjs.map +7 -0
- package/dist/lib/browser/{settings-OMHVGZ6V.mjs → settings-ES42FGLG.mjs} +5 -4
- package/dist/lib/browser/settings-ES42FGLG.mjs.map +7 -0
- package/dist/lib/browser/{state-OC3BSB6E.mjs → state-YMI6IDEL.mjs} +7 -6
- package/dist/lib/browser/state-YMI6IDEL.mjs.map +7 -0
- package/dist/lib/browser/{toolkit-R53LD3EA.mjs → toolkit-VRD54KY3.mjs} +8 -7
- package/dist/lib/browser/toolkit-VRD54KY3.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/browser/{url-handler-53TE6JZO.mjs → url-handler-37UPOB3U.mjs} +11 -10
- package/dist/lib/browser/url-handler-37UPOB3U.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-473BNZDJ.mjs → app-graph-builder-US54I64T.mjs} +13 -12
- package/dist/lib/node-esm/app-graph-builder-US54I64T.mjs.map +7 -0
- package/dist/lib/node-esm/{check-app-scheme-IVYRHKRH.mjs → check-app-scheme-CK6EVG5D.mjs} +8 -8
- package/dist/lib/node-esm/check-app-scheme-CK6EVG5D.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-V6VEXRD4.mjs → chunk-7NPS347C.mjs} +102 -81
- package/dist/lib/node-esm/chunk-7NPS347C.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-XAKTY3EB.mjs → chunk-CVYHPJIN.mjs} +12 -9
- package/dist/lib/node-esm/chunk-CVYHPJIN.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-SKEVPQ7E.mjs → chunk-ZMJPCZ3V.mjs} +8 -8
- package/dist/lib/node-esm/chunk-ZMJPCZ3V.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +36 -34
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{operation-resolver-WUOE33ID.mjs → operation-resolver-ZQGNATPX.mjs} +86 -84
- package/dist/lib/node-esm/operation-resolver-ZQGNATPX.mjs.map +7 -0
- package/dist/lib/node-esm/{react-root-L7H43AS3.mjs → react-root-2S77ABBS.mjs} +6 -6
- package/dist/lib/node-esm/react-root-2S77ABBS.mjs.map +7 -0
- package/dist/lib/node-esm/{react-surface-77DKVMDV.mjs → react-surface-FIHMAFXH.mjs} +11 -10
- package/dist/lib/node-esm/react-surface-FIHMAFXH.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-2HB6FKIK.mjs → settings-E3TH3FAW.mjs} +5 -4
- package/dist/lib/node-esm/settings-E3TH3FAW.mjs.map +7 -0
- package/dist/lib/node-esm/{state-JRQ45ACJ.mjs → state-WQEFBQMD.mjs} +7 -6
- package/dist/lib/node-esm/state-WQEFBQMD.mjs.map +7 -0
- package/dist/lib/node-esm/{toolkit-JLPZNNKB.mjs → toolkit-ME546G5T.mjs} +8 -7
- package/dist/lib/node-esm/toolkit-ME546G5T.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/lib/node-esm/{url-handler-QGF2R24T.mjs → url-handler-2KYHXINK.mjs} +11 -10
- package/dist/lib/node-esm/url-handler-2KYHXINK.mjs.map +7 -0
- package/dist/types/src/DeckPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/check-app-scheme/check-app-scheme.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +3 -2
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state/index.d.ts +2 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/state/state.d.ts +2 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/toolkit/index.d.ts +1 -1
- package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts +3 -2
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -1
- package/dist/types/src/capabilities/url-handler/url-handler.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/ActiveNode.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts +1 -0
- package/dist/types/src/components/DeckLayout/DeckLayout.stories.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Dialog.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Popover.d.ts.map +1 -1
- package/dist/types/src/components/DeckLayout/Toast.d.ts +3 -3
- package/dist/types/src/components/DeckLayout/Toast.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.d.ts.map +1 -1
- package/dist/types/src/components/Plank/Plank.stories.d.ts +1 -0
- package/dist/types/src/components/Plank/Plank.stories.d.ts.map +1 -1
- package/dist/types/src/components/Plank/PlankHeading.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +2 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +2 -0
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -42
- package/src/DeckPlugin.ts +12 -11
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +11 -10
- package/src/capabilities/check-app-scheme/check-app-scheme.ts +12 -8
- package/src/capabilities/operation-resolver/operation-resolver.ts +95 -80
- package/src/capabilities/react-root/react-root.tsx +2 -2
- package/src/capabilities/react-surface/react-surface.tsx +8 -7
- package/src/capabilities/settings/settings.ts +3 -2
- package/src/capabilities/state/state.ts +5 -4
- package/src/capabilities/toolkit/toolkit.ts +6 -5
- package/src/capabilities/url-handler/url-handler.ts +8 -7
- package/src/components/DeckLayout/ActiveNode.tsx +3 -2
- package/src/components/DeckLayout/Banner.tsx +4 -4
- package/src/components/DeckLayout/ContentEmpty.tsx +2 -2
- package/src/components/DeckLayout/DeckLayout.stories.tsx +5 -4
- package/src/components/DeckLayout/DeckMain.tsx +7 -7
- package/src/components/DeckLayout/Dialog.tsx +9 -3
- package/src/components/DeckLayout/Popover.tsx +21 -5
- package/src/components/DeckLayout/StatusBar.tsx +3 -3
- package/src/components/DeckLayout/Toast.tsx +3 -3
- package/src/components/DeckSettings/DeckSettings.tsx +21 -21
- package/src/components/Plank/Plank.stories.tsx +4 -3
- package/src/components/Plank/Plank.tsx +5 -4
- package/src/components/Plank/PlankControls.tsx +1 -1
- package/src/components/Plank/PlankHeading.tsx +7 -6
- package/src/components/Sidebar/ComplementarySidebar.tsx +19 -15
- package/src/components/Sidebar/Sidebar.tsx +2 -2
- package/src/components/Sidebar/SidebarButton.tsx +9 -9
- package/src/hooks/useCompanions.ts +1 -1
- package/src/hooks/useDeckCompanions.ts +1 -1
- package/src/hooks/useDeckState.ts +3 -3
- package/src/hooks/useHoistStatusbar.ts +1 -1
- package/src/translations.ts +1 -0
- package/src/types/capabilities.ts +2 -2
- package/src/types/events.ts +4 -3
- package/src/types/schema.ts +7 -3
- package/dist/lib/browser/app-graph-builder-DTVCULQ4.mjs.map +0 -7
- package/dist/lib/browser/check-app-scheme-JSRXXIYF.mjs.map +0 -7
- package/dist/lib/browser/chunk-ATFPDN6J.mjs.map +0 -7
- package/dist/lib/browser/chunk-EREEXCHO.mjs.map +0 -7
- package/dist/lib/browser/chunk-UNG4CLLP.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-CDYBLZJ4.mjs.map +0 -7
- package/dist/lib/browser/react-root-LYNEKGHM.mjs.map +0 -7
- package/dist/lib/browser/react-surface-RPKD7XUR.mjs.map +0 -7
- package/dist/lib/browser/settings-OMHVGZ6V.mjs.map +0 -7
- package/dist/lib/browser/state-OC3BSB6E.mjs.map +0 -7
- package/dist/lib/browser/toolkit-R53LD3EA.mjs.map +0 -7
- package/dist/lib/browser/url-handler-53TE6JZO.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-473BNZDJ.mjs.map +0 -7
- package/dist/lib/node-esm/check-app-scheme-IVYRHKRH.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SKEVPQ7E.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-V6VEXRD4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XAKTY3EB.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-WUOE33ID.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-L7H43AS3.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-77DKVMDV.mjs.map +0 -7
- package/dist/lib/node-esm/settings-2HB6FKIK.mjs.map +0 -7
- package/dist/lib/node-esm/state-JRQ45ACJ.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-JLPZNNKB.mjs.map +0 -7
- package/dist/lib/node-esm/url-handler-QGF2R24T.mjs.map +0 -7
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
useHoistStatusbar,
|
|
9
9
|
useMainSize,
|
|
10
10
|
useNodeActionExpander
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZMJPCZ3V.mjs";
|
|
12
12
|
import {
|
|
13
13
|
calculateOverscroll,
|
|
14
14
|
layoutAppliesTopbar,
|
|
@@ -22,27 +22,28 @@ import {
|
|
|
22
22
|
PLANK_COMPANION_TYPE,
|
|
23
23
|
getMode,
|
|
24
24
|
meta
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CVYHPJIN.mjs";
|
|
26
26
|
|
|
27
27
|
// src/components/DeckLayout/Banner.tsx
|
|
28
28
|
import React9 from "react";
|
|
29
|
-
import { Surface as Surface5 } from "@dxos/app-framework/
|
|
29
|
+
import { Surface as Surface5 } from "@dxos/app-framework/ui";
|
|
30
30
|
import { useTranslation as useTranslation6 } from "@dxos/react-ui";
|
|
31
31
|
import { mx as mx5, osTranslations } from "@dxos/ui-theme";
|
|
32
32
|
|
|
33
33
|
// src/components/Sidebar/ComplementarySidebar.tsx
|
|
34
34
|
import React7, { Fragment as Fragment2, useCallback as useCallback5, useEffect as useEffect3, useMemo as useMemo3, useState as useState2 } from "react";
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { IconButton as IconButton4, Main, toLocalizedString as toLocalizedString2, useTranslation as useTranslation5 } from "@dxos/react-ui";
|
|
35
|
+
import { Surface as Surface3, useOperationInvoker as useOperationInvoker5 } from "@dxos/app-framework/ui";
|
|
36
|
+
import { LayoutOperation as LayoutOperation4 } from "@dxos/app-toolkit";
|
|
37
|
+
import { IconButton as IconButton4, Main, ScrollArea, toLocalizedString as toLocalizedString2, useTranslation as useTranslation5 } from "@dxos/react-ui";
|
|
38
38
|
import { Tabs } from "@dxos/react-ui-tabs";
|
|
39
39
|
import { mx as mx4 } from "@dxos/ui-theme";
|
|
40
40
|
|
|
41
41
|
// src/components/Plank/Plank.tsx
|
|
42
42
|
import { useFocusFinders } from "@fluentui/react-tabster";
|
|
43
43
|
import React5, { memo as memo2, useCallback as useCallback3, useLayoutEffect, useMemo as useMemo2, useRef } from "react";
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
44
|
+
import { Surface as Surface2, useOperationInvoker as useOperationInvoker3 } from "@dxos/app-framework/ui";
|
|
45
|
+
import { LayoutOperation as LayoutOperation2 } from "@dxos/app-toolkit";
|
|
46
|
+
import { useAppGraph as useAppGraph2 } from "@dxos/app-toolkit/ui";
|
|
46
47
|
import { debounce } from "@dxos/async";
|
|
47
48
|
import { useNode } from "@dxos/plugin-graph";
|
|
48
49
|
import { ATTENDABLE_PATH_SEPARATOR, useAttentionAttributes } from "@dxos/react-ui-attention";
|
|
@@ -56,8 +57,9 @@ import { descriptionMessage, mx as mx2 } from "@dxos/ui-theme";
|
|
|
56
57
|
|
|
57
58
|
// src/components/Plank/PlankHeading.tsx
|
|
58
59
|
import React2, { Fragment, memo, useCallback as useCallback2, useEffect, useMemo } from "react";
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
60
|
+
import { Surface, useOperationInvoker as useOperationInvoker2 } from "@dxos/app-framework/ui";
|
|
61
|
+
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
62
|
+
import { useAppGraph } from "@dxos/app-toolkit/ui";
|
|
61
63
|
import { Graph, useActionRunner } from "@dxos/plugin-graph";
|
|
62
64
|
import { Icon, IconButton as IconButton2, Popover, toLocalizedString, useTranslation as useTranslation2 } from "@dxos/react-ui";
|
|
63
65
|
import { StackItem } from "@dxos/react-ui-stack";
|
|
@@ -73,7 +75,7 @@ var fixedComplementarySidebarToggleStyles = mx(sidebarToggleStyles, "inline-end-
|
|
|
73
75
|
|
|
74
76
|
// src/components/Plank/PlankControls.tsx
|
|
75
77
|
import React, { forwardRef, useCallback } from "react";
|
|
76
|
-
import { useOperationInvoker } from "@dxos/app-framework/
|
|
78
|
+
import { useOperationInvoker } from "@dxos/app-framework/ui";
|
|
77
79
|
import { invariant } from "@dxos/invariant";
|
|
78
80
|
import { ButtonGroup, IconButton, useTranslation } from "@dxos/react-ui";
|
|
79
81
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-deck/src/components/Plank/PlankControls.tsx";
|
|
@@ -257,11 +259,11 @@ var PlankHeading = /* @__PURE__ */ memo(({ id, part, node, deckEnabled, canIncre
|
|
|
257
259
|
});
|
|
258
260
|
} else if (eventType === "close") {
|
|
259
261
|
if (part === "complementary") {
|
|
260
|
-
return invokeSync(
|
|
262
|
+
return invokeSync(LayoutOperation.UpdateComplementary, {
|
|
261
263
|
state: "collapsed"
|
|
262
264
|
});
|
|
263
265
|
} else {
|
|
264
|
-
return invokeSync(
|
|
266
|
+
return invokeSync(LayoutOperation.Close, {
|
|
265
267
|
subject: [
|
|
266
268
|
id
|
|
267
269
|
]
|
|
@@ -326,7 +328,7 @@ var PlankHeading = /* @__PURE__ */ memo(({ id, part, node, deckEnabled, canIncre
|
|
|
326
328
|
triggerLabel: t("actions menu label"),
|
|
327
329
|
actions: sigilActions,
|
|
328
330
|
onAction: handleAction
|
|
329
|
-
}, /* @__PURE__ */ React2.createElement(Surface, {
|
|
331
|
+
}, /* @__PURE__ */ React2.createElement(Surface.Surface, {
|
|
330
332
|
role: "menu-footer",
|
|
331
333
|
data: {
|
|
332
334
|
subject: node.data
|
|
@@ -344,7 +346,7 @@ var PlankHeading = /* @__PURE__ */ memo(({ id, part, node, deckEnabled, canIncre
|
|
|
344
346
|
...pending && {
|
|
345
347
|
classNames: "text-description"
|
|
346
348
|
}
|
|
347
|
-
}, label3))), node && part !== "complementary" && /* @__PURE__ */ React2.createElement(Surface, {
|
|
349
|
+
}, label3))), node && part !== "complementary" && /* @__PURE__ */ React2.createElement(Surface.Surface, {
|
|
348
350
|
role: "navbar-end",
|
|
349
351
|
data: {
|
|
350
352
|
subject: node.data
|
|
@@ -484,7 +486,7 @@ var PlankComponent = /* @__PURE__ */ memo2(({ layoutMode, id, part, path, order,
|
|
|
484
486
|
behavior: "smooth",
|
|
485
487
|
inline: "center"
|
|
486
488
|
});
|
|
487
|
-
void invokePromise(
|
|
489
|
+
void invokePromise(LayoutOperation2.ScrollIntoView, {
|
|
488
490
|
subject: void 0
|
|
489
491
|
});
|
|
490
492
|
}
|
|
@@ -550,7 +552,7 @@ var PlankComponent = /* @__PURE__ */ memo2(({ layoutMode, id, part, path, order,
|
|
|
550
552
|
primaryId: primary?.id,
|
|
551
553
|
companioned,
|
|
552
554
|
companions
|
|
553
|
-
}), /* @__PURE__ */ React5.createElement(Surface2, {
|
|
555
|
+
}), /* @__PURE__ */ React5.createElement(Surface2.Surface, {
|
|
554
556
|
key: node.id,
|
|
555
557
|
role: "article",
|
|
556
558
|
data,
|
|
@@ -565,16 +567,16 @@ var PlankComponent = /* @__PURE__ */ memo2(({ layoutMode, id, part, path, order,
|
|
|
565
567
|
|
|
566
568
|
// src/components/Sidebar/SidebarButton.tsx
|
|
567
569
|
import React6, { useCallback as useCallback4 } from "react";
|
|
568
|
-
import {
|
|
569
|
-
import {
|
|
570
|
+
import { useOperationInvoker as useOperationInvoker4 } from "@dxos/app-framework/ui";
|
|
571
|
+
import { LayoutOperation as LayoutOperation3 } from "@dxos/app-toolkit";
|
|
570
572
|
import { IconButton as IconButton3, useTranslation as useTranslation4 } from "@dxos/react-ui";
|
|
571
573
|
var ToggleSidebarButton = ({ classNames, variant = "ghost" }) => {
|
|
572
|
-
const {
|
|
574
|
+
const { updateState } = useDeckState();
|
|
573
575
|
const { t } = useTranslation4(meta.id);
|
|
574
576
|
const handleClick = useCallback4(() => {
|
|
575
|
-
updateState((
|
|
576
|
-
...
|
|
577
|
-
sidebarState:
|
|
577
|
+
updateState((state) => ({
|
|
578
|
+
...state,
|
|
579
|
+
sidebarState: state.sidebarState === "expanded" ? "collapsed" : "expanded"
|
|
578
580
|
}));
|
|
579
581
|
}, [
|
|
580
582
|
updateState
|
|
@@ -593,8 +595,8 @@ var CloseSidebarButton = () => {
|
|
|
593
595
|
const { updateState } = useDeckState();
|
|
594
596
|
const { t } = useTranslation4(meta.id);
|
|
595
597
|
const handleClick = useCallback4(() => {
|
|
596
|
-
updateState((
|
|
597
|
-
...
|
|
598
|
+
updateState((state) => ({
|
|
599
|
+
...state,
|
|
598
600
|
sidebarState: "collapsed"
|
|
599
601
|
}));
|
|
600
602
|
}, [
|
|
@@ -617,13 +619,13 @@ var ToggleComplementarySidebarButton = ({ inR0, classNames, current }) => {
|
|
|
617
619
|
const companions = useDeckCompanions();
|
|
618
620
|
const handleClick = useCallback4(() => {
|
|
619
621
|
const nextState = state.complementarySidebarState === "expanded" ? "collapsed" : "expanded";
|
|
620
|
-
updateState((
|
|
621
|
-
...
|
|
622
|
+
updateState((state2) => ({
|
|
623
|
+
...state2,
|
|
622
624
|
complementarySidebarState: nextState
|
|
623
625
|
}));
|
|
624
626
|
const subject = state.complementarySidebarPanel ?? (companions[0] && getCompanionId(companions[0].id));
|
|
625
627
|
if (nextState === "expanded" && !current && subject) {
|
|
626
|
-
invokeSync(
|
|
628
|
+
invokeSync(LayoutOperation3.UpdateComplementary, {
|
|
627
629
|
subject
|
|
628
630
|
});
|
|
629
631
|
}
|
|
@@ -676,17 +678,17 @@ var ComplementarySidebar = ({ current }) => {
|
|
|
676
678
|
const handleTabClick = useCallback5((event) => {
|
|
677
679
|
const nextValue = event.currentTarget.getAttribute("data-value");
|
|
678
680
|
if (nextValue === activeId) {
|
|
679
|
-
updateState((
|
|
680
|
-
...
|
|
681
|
-
complementarySidebarState:
|
|
681
|
+
updateState((state2) => ({
|
|
682
|
+
...state2,
|
|
683
|
+
complementarySidebarState: state2.complementarySidebarState === "expanded" ? "collapsed" : "expanded"
|
|
682
684
|
}));
|
|
683
685
|
} else {
|
|
684
686
|
setInternalValue(nextValue);
|
|
685
|
-
updateState((
|
|
686
|
-
...
|
|
687
|
+
updateState((state2) => ({
|
|
688
|
+
...state2,
|
|
687
689
|
complementarySidebarState: "expanded"
|
|
688
690
|
}));
|
|
689
|
-
invokeSync(
|
|
691
|
+
invokeSync(LayoutOperation4.UpdateComplementary, {
|
|
690
692
|
subject: nextValue
|
|
691
693
|
});
|
|
692
694
|
}
|
|
@@ -705,7 +707,7 @@ var ComplementarySidebar = ({ current }) => {
|
|
|
705
707
|
]);
|
|
706
708
|
useEffect3(() => {
|
|
707
709
|
if (!activeId) {
|
|
708
|
-
invokeSync(
|
|
710
|
+
invokeSync(LayoutOperation4.UpdateComplementary, {
|
|
709
711
|
state: "collapsed"
|
|
710
712
|
});
|
|
711
713
|
}
|
|
@@ -744,7 +746,7 @@ var ComplementarySidebar = ({ current }) => {
|
|
|
744
746
|
})))), !hoistStatusbar && /* @__PURE__ */ React7.createElement("div", {
|
|
745
747
|
role: "none",
|
|
746
748
|
className: "grid grid-cols-1 auto-rows-[--rail-item] p-1 overflow-y-auto"
|
|
747
|
-
}, /* @__PURE__ */ React7.createElement(Surface3, {
|
|
749
|
+
}, /* @__PURE__ */ React7.createElement(Surface3.Surface, {
|
|
748
750
|
role: "status-bar--r0-footer",
|
|
749
751
|
limit: 1
|
|
750
752
|
})), /* @__PURE__ */ React7.createElement("div", {
|
|
@@ -773,7 +775,7 @@ var ComplementarySidebarPanel = ({ companion, activeId, data, hoistStatusbar })
|
|
|
773
775
|
if (getCompanionId(companion.id) !== activeId && !data) {
|
|
774
776
|
return null;
|
|
775
777
|
}
|
|
776
|
-
const Wrapper = companion.properties.fixed ? Fragment2 :
|
|
778
|
+
const Wrapper = companion.properties.fixed ? Fragment2 : ScrollAreaWrapper;
|
|
777
779
|
return /* @__PURE__ */ React7.createElement(React7.Fragment, null, /* @__PURE__ */ React7.createElement("div", {
|
|
778
780
|
role: "none",
|
|
779
781
|
className: "flex items-center p-1 gap-1 border-be border-subduedSeparator"
|
|
@@ -788,7 +790,7 @@ var ComplementarySidebarPanel = ({ companion, activeId, data, hoistStatusbar })
|
|
|
788
790
|
}), /* @__PURE__ */ React7.createElement("div", {
|
|
789
791
|
role: "none",
|
|
790
792
|
className: "pli-1"
|
|
791
|
-
}, toLocalizedString2(companion.properties.label, t))), /* @__PURE__ */ React7.createElement(Wrapper, null, /* @__PURE__ */ React7.createElement(Surface3, {
|
|
793
|
+
}, toLocalizedString2(companion.properties.label, t))), /* @__PURE__ */ React7.createElement(Wrapper, null, /* @__PURE__ */ React7.createElement(Surface3.Surface, {
|
|
792
794
|
role: `deck-companion--${getCompanionId(companion.id)}`,
|
|
793
795
|
data,
|
|
794
796
|
fallback: PlankContentError,
|
|
@@ -796,20 +798,22 @@ var ComplementarySidebarPanel = ({ companion, activeId, data, hoistStatusbar })
|
|
|
796
798
|
})), !hoistStatusbar && /* @__PURE__ */ React7.createElement("div", {
|
|
797
799
|
role: "contentinfo",
|
|
798
800
|
className: "flex flex-wrap justify-center items-center border-bs border-subduedSeparator pbs-1 pbe-[max(env(safe-area-inset-bottom),0.25rem)]"
|
|
799
|
-
}, /* @__PURE__ */ React7.createElement(Surface3, {
|
|
801
|
+
}, /* @__PURE__ */ React7.createElement(Surface3.Surface, {
|
|
800
802
|
role: "status-bar--r1-footer",
|
|
801
803
|
limit: 1
|
|
802
804
|
})));
|
|
803
805
|
};
|
|
804
|
-
var
|
|
805
|
-
return /* @__PURE__ */ React7.createElement(
|
|
806
|
-
|
|
807
|
-
|
|
806
|
+
var ScrollAreaWrapper = ({ children }) => {
|
|
807
|
+
return /* @__PURE__ */ React7.createElement(ScrollArea.Root, {
|
|
808
|
+
thin: true,
|
|
809
|
+
orientation: "vertical",
|
|
810
|
+
classNames: "grow"
|
|
811
|
+
}, /* @__PURE__ */ React7.createElement(ScrollArea.Viewport, null, children));
|
|
808
812
|
};
|
|
809
813
|
|
|
810
814
|
// src/components/Sidebar/Sidebar.tsx
|
|
811
815
|
import React8, { useMemo as useMemo4 } from "react";
|
|
812
|
-
import { Surface as Surface4 } from "@dxos/app-framework/
|
|
816
|
+
import { Surface as Surface4 } from "@dxos/app-framework/ui";
|
|
813
817
|
import { Main as Main2 } from "@dxos/react-ui";
|
|
814
818
|
var label2 = [
|
|
815
819
|
"sidebar title",
|
|
@@ -842,7 +846,7 @@ var Sidebar = () => {
|
|
|
842
846
|
topbar && "block-start-[calc(env(safe-area-inset-top)+var(--rail-size))]",
|
|
843
847
|
hoistStatusbar && "block-end-[--statusbar-size]"
|
|
844
848
|
]
|
|
845
|
-
}, /* @__PURE__ */ React8.createElement(Surface4, {
|
|
849
|
+
}, /* @__PURE__ */ React8.createElement(Surface4.Surface, {
|
|
846
850
|
role: "navigation",
|
|
847
851
|
data: navigationData,
|
|
848
852
|
limit: 1
|
|
@@ -864,16 +868,16 @@ var Banner = ({ variant, classNames }) => {
|
|
|
864
868
|
}, /* @__PURE__ */ React9.createElement("div", {
|
|
865
869
|
role: "none",
|
|
866
870
|
className: "grid bs-full pointer-fine:p-1 max-is-md mli-auto pointer-events-auto"
|
|
867
|
-
}, /* @__PURE__ */ React9.createElement(Surface5, {
|
|
871
|
+
}, /* @__PURE__ */ React9.createElement(Surface5.Surface, {
|
|
868
872
|
role: "search-input",
|
|
869
873
|
limit: 1
|
|
870
874
|
}))), /* @__PURE__ */ React9.createElement("span", {
|
|
871
875
|
role: "none",
|
|
872
876
|
className: "grow"
|
|
873
|
-
}), /* @__PURE__ */ React9.createElement(Surface5, {
|
|
877
|
+
}), /* @__PURE__ */ React9.createElement(Surface5.Surface, {
|
|
874
878
|
role: "header-end",
|
|
875
879
|
limit: 1
|
|
876
|
-
}), /* @__PURE__ */ React9.createElement(Surface5, {
|
|
880
|
+
}), /* @__PURE__ */ React9.createElement(Surface5.Surface, {
|
|
877
881
|
role: "notch-start",
|
|
878
882
|
limit: 1
|
|
879
883
|
}));
|
|
@@ -885,7 +889,8 @@ import { Mosaic } from "@dxos/react-ui-mosaic";
|
|
|
885
889
|
|
|
886
890
|
// src/components/DeckLayout/ActiveNode.tsx
|
|
887
891
|
import React10 from "react";
|
|
888
|
-
import { Surface as Surface6
|
|
892
|
+
import { Surface as Surface6 } from "@dxos/app-framework/ui";
|
|
893
|
+
import { useAppGraph as useAppGraph3 } from "@dxos/app-toolkit/ui";
|
|
889
894
|
import { useNode as useNode2 } from "@dxos/plugin-graph";
|
|
890
895
|
import { useAttended } from "@dxos/react-ui-attention";
|
|
891
896
|
var ActiveNode = () => {
|
|
@@ -896,7 +901,7 @@ var ActiveNode = () => {
|
|
|
896
901
|
return /* @__PURE__ */ React10.createElement("div", {
|
|
897
902
|
role: "none",
|
|
898
903
|
className: "sr-only"
|
|
899
|
-
}, /* @__PURE__ */ React10.createElement(Surface6, {
|
|
904
|
+
}, /* @__PURE__ */ React10.createElement(Surface6.Surface, {
|
|
900
905
|
role: "document-title",
|
|
901
906
|
data: {
|
|
902
907
|
subject: activeNode
|
|
@@ -907,8 +912,8 @@ var ActiveNode = () => {
|
|
|
907
912
|
|
|
908
913
|
// src/components/DeckLayout/DeckMain.tsx
|
|
909
914
|
import React14, { Fragment as Fragment3, useCallback as useCallback6, useEffect as useEffect4, useMemo as useMemo5, useRef as useRef2 } from "react";
|
|
910
|
-
import {
|
|
911
|
-
import {
|
|
915
|
+
import { useAtomCapability, useOperationInvoker as useOperationInvoker6, usePluginManager } from "@dxos/app-framework/ui";
|
|
916
|
+
import { LayoutOperation as LayoutOperation5 } from "@dxos/app-toolkit";
|
|
912
917
|
import { AttentionCapabilities } from "@dxos/plugin-attention";
|
|
913
918
|
import { Main as Main3, useMediaQuery, useOnTransition } from "@dxos/react-ui";
|
|
914
919
|
import { DEFAULT_HORIZONTAL_SIZE, Stack, StackContext } from "@dxos/react-ui-stack";
|
|
@@ -916,7 +921,7 @@ import { mainPaddingTransitions, mx as mx6 } from "@dxos/ui-theme";
|
|
|
916
921
|
|
|
917
922
|
// src/components/DeckLayout/ContentEmpty.tsx
|
|
918
923
|
import React11 from "react";
|
|
919
|
-
import { Surface as Surface7 } from "@dxos/app-framework/
|
|
924
|
+
import { Surface as Surface7 } from "@dxos/app-framework/ui";
|
|
920
925
|
var ContentEmpty = () => {
|
|
921
926
|
const breakpoint = useBreakpoints();
|
|
922
927
|
const { deck } = useDeckState();
|
|
@@ -926,7 +931,7 @@ var ContentEmpty = () => {
|
|
|
926
931
|
role: "none",
|
|
927
932
|
className: "grid place-items-center p-8 relative bg-deckSurface",
|
|
928
933
|
"data-testid": "layoutPlugin.firstRunMessage"
|
|
929
|
-
}, /* @__PURE__ */ React11.createElement(Surface7, {
|
|
934
|
+
}, /* @__PURE__ */ React11.createElement(Surface7.Surface, {
|
|
930
935
|
role: "keyshortcuts"
|
|
931
936
|
}), !topbar && /* @__PURE__ */ React11.createElement(ToggleSidebarButton, {
|
|
932
937
|
variant: "default",
|
|
@@ -936,7 +941,7 @@ var ContentEmpty = () => {
|
|
|
936
941
|
|
|
937
942
|
// src/components/DeckLayout/StatusBar.tsx
|
|
938
943
|
import React12 from "react";
|
|
939
|
-
import { Surface as Surface8 } from "@dxos/app-framework/
|
|
944
|
+
import { Surface as Surface8 } from "@dxos/app-framework/ui";
|
|
940
945
|
import { useLandmarkMover } from "@dxos/react-ui";
|
|
941
946
|
var StatusBar = ({ showHints }) => {
|
|
942
947
|
const mover = useLandmarkMover(void 0, "3");
|
|
@@ -944,10 +949,10 @@ var StatusBar = ({ showHints }) => {
|
|
|
944
949
|
role: "contentinfo",
|
|
945
950
|
className: "fixed block-end-0 inset-inline-0 bs-[--statusbar-size] border-bs border-separator z-[2] flex text-description",
|
|
946
951
|
...mover
|
|
947
|
-
}, showHints && /* @__PURE__ */ React12.createElement(Surface8, {
|
|
952
|
+
}, showHints && /* @__PURE__ */ React12.createElement(Surface8.Surface, {
|
|
948
953
|
role: "hints",
|
|
949
954
|
limit: 1
|
|
950
|
-
}), /* @__PURE__ */ React12.createElement(Surface8, {
|
|
955
|
+
}), /* @__PURE__ */ React12.createElement(Surface8.Surface, {
|
|
951
956
|
role: "status-bar",
|
|
952
957
|
limit: 1
|
|
953
958
|
}));
|
|
@@ -990,12 +995,12 @@ var DeckMain = () => {
|
|
|
990
995
|
const attention = pluginManager.capabilities.get(AttentionCapabilities.Attention);
|
|
991
996
|
const attended = attention.getCurrent();
|
|
992
997
|
shouldRevert.current = true;
|
|
993
|
-
invokeSync(
|
|
998
|
+
invokeSync(LayoutOperation5.SetLayoutMode, {
|
|
994
999
|
subject: attended[0],
|
|
995
1000
|
mode: "solo"
|
|
996
1001
|
});
|
|
997
1002
|
} else if (isNotMobile && layoutMode === "solo" && shouldRevert.current) {
|
|
998
|
-
invokeSync(
|
|
1003
|
+
invokeSync(LayoutOperation5.SetLayoutMode, {
|
|
999
1004
|
revert: true
|
|
1000
1005
|
});
|
|
1001
1006
|
}
|
|
@@ -1006,7 +1011,7 @@ var DeckMain = () => {
|
|
|
1006
1011
|
]);
|
|
1007
1012
|
useEffect4(() => {
|
|
1008
1013
|
if (!settings?.enableDeck && layoutMode === "deck") {
|
|
1009
|
-
invokeSync(
|
|
1014
|
+
invokeSync(LayoutOperation5.SetLayoutMode, {
|
|
1010
1015
|
subject: active[0],
|
|
1011
1016
|
mode: "solo"
|
|
1012
1017
|
});
|
|
@@ -1179,7 +1184,7 @@ var PlankSeparator = ({ order, encapsulate }) => order > 0 ? /* @__PURE__ */ Rea
|
|
|
1179
1184
|
|
|
1180
1185
|
// src/components/DeckLayout/Dialog.tsx
|
|
1181
1186
|
import React15, { useCallback as useCallback7 } from "react";
|
|
1182
|
-
import { Surface as Surface9 } from "@dxos/app-framework/
|
|
1187
|
+
import { Surface as Surface9 } from "@dxos/app-framework/ui";
|
|
1183
1188
|
import { AlertDialog, Dialog as NaturalDialog } from "@dxos/react-ui";
|
|
1184
1189
|
var Dialog = () => {
|
|
1185
1190
|
const { state, updateEphemeral } = useDeckState();
|
|
@@ -1200,7 +1205,7 @@ var Dialog = () => {
|
|
|
1200
1205
|
onOpenChange: handleOpenChange
|
|
1201
1206
|
}, dialogBlockAlign === "end" ? (
|
|
1202
1207
|
// TODO(burdon): Placeholder creates a suspense boundary; replace with defaults.
|
|
1203
|
-
/* @__PURE__ */ React15.createElement(Surface9, {
|
|
1208
|
+
/* @__PURE__ */ React15.createElement(Surface9.Surface, {
|
|
1204
1209
|
role: "dialog",
|
|
1205
1210
|
data: dialogContent,
|
|
1206
1211
|
limit: 1,
|
|
@@ -1211,7 +1216,7 @@ var Dialog = () => {
|
|
|
1211
1216
|
blockAlign: dialogBlockAlign,
|
|
1212
1217
|
classNames: dialogOverlayClasses,
|
|
1213
1218
|
style: dialogOverlayStyle
|
|
1214
|
-
}, /* @__PURE__ */ React15.createElement(Surface9, {
|
|
1219
|
+
}, /* @__PURE__ */ React15.createElement(Surface9.Surface, {
|
|
1215
1220
|
role: "dialog",
|
|
1216
1221
|
data: dialogContent,
|
|
1217
1222
|
limit: 1,
|
|
@@ -1222,7 +1227,8 @@ var Dialog = () => {
|
|
|
1222
1227
|
// src/components/DeckLayout/Popover.tsx
|
|
1223
1228
|
import { createContext } from "@radix-ui/react-context";
|
|
1224
1229
|
import React16, { useCallback as useCallback8, useEffect as useEffect5, useRef as useRef3, useState as useState3 } from "react";
|
|
1225
|
-
import { Surface as Surface10 } from "@dxos/app-framework/
|
|
1230
|
+
import { Surface as Surface10, useOperationInvoker as useOperationInvoker7 } from "@dxos/app-framework/ui";
|
|
1231
|
+
import { LayoutOperation as LayoutOperation6 } from "@dxos/app-toolkit";
|
|
1226
1232
|
import { Popover as Popover2, toLocalizedString as toLocalizedString3, useTranslation as useTranslation7 } from "@dxos/react-ui";
|
|
1227
1233
|
import { Card } from "@dxos/react-ui-mosaic";
|
|
1228
1234
|
var DEBOUNCE_DELAY = 40;
|
|
@@ -1265,6 +1271,7 @@ var PopoverContent = () => {
|
|
|
1265
1271
|
const { t } = useTranslation7(meta.id);
|
|
1266
1272
|
const { state, updateEphemeral } = useDeckState();
|
|
1267
1273
|
const { setOpen } = useDeckPopoverContext("PopoverContent");
|
|
1274
|
+
const { invokeSync } = useOperationInvoker7();
|
|
1268
1275
|
const handleClose = useCallback8(() => {
|
|
1269
1276
|
setOpen(false);
|
|
1270
1277
|
updateEphemeral((state2) => ({
|
|
@@ -1295,17 +1302,31 @@ var PopoverContent = () => {
|
|
|
1295
1302
|
hideWhenDetached: true,
|
|
1296
1303
|
onInteractOutside: handleInteractOutside,
|
|
1297
1304
|
onEscapeKeyDown: handleInteractOutside
|
|
1298
|
-
}, /* @__PURE__ */ React16.createElement(Popover2.Viewport, null, state.popoverKind === "
|
|
1299
|
-
|
|
1300
|
-
})), /* @__PURE__ */ React16.createElement(Surface10, {
|
|
1301
|
-
role: "card--content",
|
|
1305
|
+
}, /* @__PURE__ */ React16.createElement(Popover2.Viewport, null, state.popoverKind === "base" && /* @__PURE__ */ React16.createElement(Surface10.Surface, {
|
|
1306
|
+
role: "popover",
|
|
1302
1307
|
data: state.popoverContent,
|
|
1303
1308
|
limit: 1
|
|
1304
|
-
})
|
|
1305
|
-
|
|
1309
|
+
}), state.popoverKind === "card" && /* @__PURE__ */ React16.createElement(Card.Root, {
|
|
1310
|
+
border: false,
|
|
1311
|
+
classNames: "popover-card-max-width"
|
|
1312
|
+
}, /* @__PURE__ */ React16.createElement(Card.Toolbar, null, state.popoverContentRef ? /* @__PURE__ */ React16.createElement(Card.ToolbarIconButton, {
|
|
1313
|
+
icon: "ph--arrow-square-out--regular",
|
|
1314
|
+
iconOnly: true,
|
|
1315
|
+
label: t("open item label"),
|
|
1316
|
+
onClick: () => {
|
|
1317
|
+
invokeSync(LayoutOperation6.Open, {
|
|
1318
|
+
subject: [
|
|
1319
|
+
state.popoverContentRef
|
|
1320
|
+
]
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
}) : /* @__PURE__ */ React16.createElement("div", null), state.popoverTitle ? /* @__PURE__ */ React16.createElement(Card.Title, null, toLocalizedString3(state.popoverTitle, t)) : /* @__PURE__ */ React16.createElement("span", null), /* @__PURE__ */ React16.createElement(Card.Close, {
|
|
1324
|
+
onClick: handleClose
|
|
1325
|
+
})), /* @__PURE__ */ React16.createElement(Surface10.Surface, {
|
|
1326
|
+
role: "card--content",
|
|
1306
1327
|
data: state.popoverContent,
|
|
1307
1328
|
limit: 1
|
|
1308
|
-
})), /* @__PURE__ */ React16.createElement(Popover2.Arrow, null)));
|
|
1329
|
+
}))), /* @__PURE__ */ React16.createElement(Popover2.Arrow, null)));
|
|
1309
1330
|
};
|
|
1310
1331
|
|
|
1311
1332
|
// src/components/DeckLayout/Toast.tsx
|
|
@@ -1362,15 +1383,15 @@ var DeckLayout = ({ onDismissToast }) => {
|
|
|
1362
1383
|
// src/components/DeckSettings/DeckSettings.tsx
|
|
1363
1384
|
import React19 from "react";
|
|
1364
1385
|
import { Input, Select, useTranslation as useTranslation9 } from "@dxos/react-ui";
|
|
1365
|
-
import {
|
|
1386
|
+
import { Settings } from "@dxos/react-ui-form";
|
|
1366
1387
|
var isSocket = !!globalThis.__args;
|
|
1367
1388
|
var DeckSettings = ({ settings, onSettingsChange }) => {
|
|
1368
1389
|
const { t } = useTranslation9(meta.id);
|
|
1369
|
-
return /* @__PURE__ */ React19.createElement(
|
|
1390
|
+
return /* @__PURE__ */ React19.createElement(Settings.Root, null, /* @__PURE__ */ React19.createElement(Settings.Section, {
|
|
1370
1391
|
title: t("settings title", {
|
|
1371
1392
|
ns: meta.id
|
|
1372
1393
|
})
|
|
1373
|
-
}, /* @__PURE__ */ React19.createElement(
|
|
1394
|
+
}, /* @__PURE__ */ React19.createElement(Settings.Group, null, /* @__PURE__ */ React19.createElement(Settings.ItemInput, {
|
|
1374
1395
|
title: t("settings enable deck label")
|
|
1375
1396
|
}, /* @__PURE__ */ React19.createElement(Input.Switch, {
|
|
1376
1397
|
checked: settings.enableDeck,
|
|
@@ -1378,7 +1399,7 @@ var DeckSettings = ({ settings, onSettingsChange }) => {
|
|
|
1378
1399
|
...s,
|
|
1379
1400
|
enableDeck: checked
|
|
1380
1401
|
}))
|
|
1381
|
-
})), /* @__PURE__ */ React19.createElement(
|
|
1402
|
+
})), /* @__PURE__ */ React19.createElement(Settings.ItemInput, {
|
|
1382
1403
|
title: t("settings encapsulated planks label")
|
|
1383
1404
|
}, /* @__PURE__ */ React19.createElement(Input.Switch, {
|
|
1384
1405
|
checked: settings.encapsulatedPlanks ?? false,
|
|
@@ -1386,7 +1407,7 @@ var DeckSettings = ({ settings, onSettingsChange }) => {
|
|
|
1386
1407
|
...s,
|
|
1387
1408
|
encapsulatedPlanks: checked
|
|
1388
1409
|
}))
|
|
1389
|
-
})), /* @__PURE__ */ React19.createElement(
|
|
1410
|
+
})), /* @__PURE__ */ React19.createElement(Settings.ItemInput, {
|
|
1390
1411
|
title: t("select new plank positioning label")
|
|
1391
1412
|
}, /* @__PURE__ */ React19.createElement(Select.Root, {
|
|
1392
1413
|
disabled: !settings.enableDeck,
|
|
@@ -1400,7 +1421,7 @@ var DeckSettings = ({ settings, onSettingsChange }) => {
|
|
|
1400
1421
|
}), /* @__PURE__ */ React19.createElement(Select.Portal, null, /* @__PURE__ */ React19.createElement(Select.Content, null, /* @__PURE__ */ React19.createElement(Select.Viewport, null, NewPlankPositions.map((position) => /* @__PURE__ */ React19.createElement(Select.Option, {
|
|
1401
1422
|
key: position,
|
|
1402
1423
|
value: position
|
|
1403
|
-
}, t(`settings new plank position ${position} label`)))), /* @__PURE__ */ React19.createElement(Select.Arrow, null))))), /* @__PURE__ */ React19.createElement(
|
|
1424
|
+
}, t(`settings new plank position ${position} label`)))), /* @__PURE__ */ React19.createElement(Select.Arrow, null))))), /* @__PURE__ */ React19.createElement(Settings.ItemInput, {
|
|
1404
1425
|
title: t("settings overscroll label")
|
|
1405
1426
|
}, /* @__PURE__ */ React19.createElement(Select.Root, {
|
|
1406
1427
|
disabled: !settings.enableDeck,
|
|
@@ -1414,7 +1435,7 @@ var DeckSettings = ({ settings, onSettingsChange }) => {
|
|
|
1414
1435
|
}), /* @__PURE__ */ React19.createElement(Select.Portal, null, /* @__PURE__ */ React19.createElement(Select.Content, null, /* @__PURE__ */ React19.createElement(Select.Viewport, null, OverscrollOptions.map((option) => /* @__PURE__ */ React19.createElement(Select.Option, {
|
|
1415
1436
|
key: option,
|
|
1416
1437
|
value: option
|
|
1417
|
-
}, t(`settings overscroll ${option} label`)))), /* @__PURE__ */ React19.createElement(Select.Arrow, null))))), /* @__PURE__ */ React19.createElement(
|
|
1438
|
+
}, t(`settings overscroll ${option} label`)))), /* @__PURE__ */ React19.createElement(Select.Arrow, null))))), /* @__PURE__ */ React19.createElement(Settings.ItemInput, {
|
|
1418
1439
|
title: t("settings enable statusbar label")
|
|
1419
1440
|
}, /* @__PURE__ */ React19.createElement(Input.Switch, {
|
|
1420
1441
|
checked: settings.enableStatusbar,
|
|
@@ -1422,7 +1443,7 @@ var DeckSettings = ({ settings, onSettingsChange }) => {
|
|
|
1422
1443
|
...s,
|
|
1423
1444
|
enableStatusbar: checked
|
|
1424
1445
|
}))
|
|
1425
|
-
})), /* @__PURE__ */ React19.createElement(
|
|
1446
|
+
})), /* @__PURE__ */ React19.createElement(Settings.ItemInput, {
|
|
1426
1447
|
title: t("settings show hints label")
|
|
1427
1448
|
}, /* @__PURE__ */ React19.createElement(Input.Switch, {
|
|
1428
1449
|
checked: settings.showHints,
|
|
@@ -1430,7 +1451,7 @@ var DeckSettings = ({ settings, onSettingsChange }) => {
|
|
|
1430
1451
|
...s,
|
|
1431
1452
|
showHints: checked
|
|
1432
1453
|
}))
|
|
1433
|
-
})), !isSocket && /* @__PURE__ */ React19.createElement(
|
|
1454
|
+
})), !isSocket && /* @__PURE__ */ React19.createElement(Settings.ItemInput, {
|
|
1434
1455
|
title: t("settings native redirect label")
|
|
1435
1456
|
}, /* @__PURE__ */ React19.createElement(Input.Switch, {
|
|
1436
1457
|
checked: settings.enableNativeRedirect,
|
|
@@ -1446,4 +1467,4 @@ export {
|
|
|
1446
1467
|
DeckLayout,
|
|
1447
1468
|
DeckSettings
|
|
1448
1469
|
};
|
|
1449
|
-
//# sourceMappingURL=chunk-
|
|
1470
|
+
//# sourceMappingURL=chunk-7NPS347C.mjs.map
|