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