@dxos/plugin-simple-layout 0.8.4-main.422d1c7879 → 0.8.4-main.51f1e5ca51
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/index.mjs +3 -35
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/translations.mjs +34 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +3 -35
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/translations.mjs +36 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/types/src/SimpleLayoutPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.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/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/spotlight-dismiss.d.ts +1 -1
- package/dist/types/src/capabilities/spotlight-dismiss.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/url-handler.d.ts.map +1 -1
- package/dist/types/src/components/ContentError.stories.d.ts +21 -21
- package/dist/types/src/components/ContentError.stories.d.ts.map +1 -1
- package/dist/types/src/components/DebugOverlay/DebugOverlay.d.ts.map +1 -1
- package/dist/types/src/components/Home/Home.d.ts.map +1 -1
- package/dist/types/src/components/Loading/Loading.stories.d.ts.map +1 -1
- package/dist/types/src/components/MobileLayout/MobileLayout.d.ts +2 -2
- package/dist/types/src/components/MobileLayout/MobileLayout.d.ts.map +1 -1
- package/dist/types/src/components/MobileLayout/MobileLayout.stories.d.ts.map +1 -1
- package/dist/types/src/components/NavBranch/NavBranch.d.ts.map +1 -1
- package/dist/types/src/components/Popover/Popover.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/AppBar.d.ts +1 -1
- package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts +21 -21
- package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/Drawer.d.ts +4 -7
- package/dist/types/src/components/SimpleLayout/Drawer.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/Main.d.ts +4 -7
- package/dist/types/src/components/SimpleLayout/Main.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/NavBar.d.ts +1 -1
- package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts +22 -22
- package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts +21 -21
- package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts.map +1 -1
- package/dist/types/src/components/hooks.d.ts.map +1 -1
- package/dist/types/src/hooks/actions.d.ts +1 -1
- package/dist/types/src/hooks/actions.d.ts.map +1 -1
- package/dist/types/src/hooks/useAppBarProps.d.ts +1 -1
- package/dist/types/src/hooks/useAppBarProps.d.ts.map +1 -1
- package/dist/types/src/hooks/useCompanions.d.ts.map +1 -1
- package/dist/types/src/hooks/useDrawerActions.d.ts.map +1 -1
- package/dist/types/src/operations/close.d.ts +1 -1
- package/dist/types/src/operations/close.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/open.d.ts +1 -1
- package/dist/types/src/operations/open.d.ts.map +1 -1
- package/dist/types/src/operations/revert-workspace.d.ts +1 -1
- package/dist/types/src/operations/revert-workspace.d.ts.map +1 -1
- package/dist/types/src/operations/set-layout-mode.d.ts +1 -1
- package/dist/types/src/operations/set-layout-mode.d.ts.map +1 -1
- package/dist/types/src/operations/set.d.ts +1 -1
- package/dist/types/src/operations/set.d.ts.map +1 -1
- package/dist/types/src/operations/switch-workspace.d.ts +1 -1
- package/dist/types/src/operations/switch-workspace.d.ts.map +1 -1
- package/dist/types/src/operations/update-complementary.d.ts +1 -1
- package/dist/types/src/operations/update-complementary.d.ts.map +1 -1
- package/dist/types/src/operations/update-dialog.d.ts +1 -1
- package/dist/types/src/operations/update-dialog.d.ts.map +1 -1
- package/dist/types/src/operations/update-popover.d.ts +1 -1
- package/dist/types/src/operations/update-popover.d.ts.map +1 -1
- package/dist/types/src/operations/update-sidebar.d.ts +1 -1
- package/dist/types/src/operations/update-sidebar.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +21 -22
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +37 -30
- package/src/SimpleLayoutPlugin.ts +1 -2
- package/src/capabilities/app-graph-builder.ts +1 -1
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +1 -1
- package/src/components/ContentError.stories.tsx +1 -1
- package/src/components/NavBranch/NavBranch.tsx +1 -5
- package/src/components/SimpleLayout/AppBar.stories.tsx +2 -1
- package/src/components/SimpleLayout/NavBar.stories.tsx +2 -1
- package/src/components/SimpleLayout/SimpleLayout.stories.tsx +2 -2
- package/src/hooks/useAppBarProps.ts +0 -20
- package/src/meta.ts +1 -1
- package/src/operations/close.ts +1 -1
- package/src/operations/index.ts +1 -1
- package/src/operations/open.ts +1 -1
- package/src/operations/revert-workspace.ts +1 -1
- package/src/operations/set-layout-mode.ts +1 -1
- package/src/operations/set.ts +1 -1
- package/src/operations/switch-workspace.ts +1 -1
- package/src/operations/update-complementary.ts +1 -1
- package/src/operations/update-dialog.ts +1 -1
- package/src/operations/update-popover.ts +1 -1
- package/src/operations/update-sidebar.ts +1 -1
- package/src/translations.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-simple-layout",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.51f1e5ca51",
|
|
4
4
|
"description": "Simple layout plugin for minimal UI contexts like popover windows.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"#hooks": "./src/hooks/index.ts",
|
|
19
19
|
"#meta": "./src/meta.ts",
|
|
20
20
|
"#operations": "./src/operations/index.ts",
|
|
21
|
+
"#translations": "./src/translations.ts",
|
|
21
22
|
"#types": "./src/types/index.ts"
|
|
22
23
|
},
|
|
23
24
|
"exports": {
|
|
@@ -26,6 +27,12 @@
|
|
|
26
27
|
"browser": "./dist/lib/browser/index.mjs",
|
|
27
28
|
"node": "./dist/lib/node-esm/index.mjs",
|
|
28
29
|
"types": "./dist/types/src/index.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./translations": {
|
|
32
|
+
"source": "./src/translations.ts",
|
|
33
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
34
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
35
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
29
36
|
}
|
|
30
37
|
},
|
|
31
38
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -39,23 +46,23 @@
|
|
|
39
46
|
"@radix-ui/react-context": "1.1.1",
|
|
40
47
|
"@tauri-apps/plugin-deep-link": "^2.2.0",
|
|
41
48
|
"@tauri-apps/plugin-haptics": "^2.3.2",
|
|
42
|
-
"@dxos/app-
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/react-ui-
|
|
53
|
-
"@dxos/react-ui-
|
|
54
|
-
"@dxos/react-ui-
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/util": "0.8.4-main.
|
|
58
|
-
"@dxos/
|
|
49
|
+
"@dxos/app-framework": "0.8.4-main.51f1e5ca51",
|
|
50
|
+
"@dxos/async": "0.8.4-main.51f1e5ca51",
|
|
51
|
+
"@dxos/compute": "0.8.4-main.51f1e5ca51",
|
|
52
|
+
"@dxos/app-toolkit": "0.8.4-main.51f1e5ca51",
|
|
53
|
+
"@dxos/context": "0.8.4-main.51f1e5ca51",
|
|
54
|
+
"@dxos/echo": "0.8.4-main.51f1e5ca51",
|
|
55
|
+
"@dxos/log": "0.8.4-main.51f1e5ca51",
|
|
56
|
+
"@dxos/plugin-client": "0.8.4-main.51f1e5ca51",
|
|
57
|
+
"@dxos/react-ui-attention": "0.8.4-main.51f1e5ca51",
|
|
58
|
+
"@dxos/plugin-graph": "0.8.4-main.51f1e5ca51",
|
|
59
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.51f1e5ca51",
|
|
60
|
+
"@dxos/react-ui-menu": "0.8.4-main.51f1e5ca51",
|
|
61
|
+
"@dxos/react-ui-search": "0.8.4-main.51f1e5ca51",
|
|
62
|
+
"@dxos/react-ui-stack": "0.8.4-main.51f1e5ca51",
|
|
63
|
+
"@dxos/schema": "0.8.4-main.51f1e5ca51",
|
|
64
|
+
"@dxos/util": "0.8.4-main.51f1e5ca51",
|
|
65
|
+
"@dxos/effect": "0.8.4-main.51f1e5ca51"
|
|
59
66
|
},
|
|
60
67
|
"devDependencies": {
|
|
61
68
|
"@types/react": "~19.2.7",
|
|
@@ -63,23 +70,23 @@
|
|
|
63
70
|
"effect": "3.20.0",
|
|
64
71
|
"react": "~19.2.3",
|
|
65
72
|
"react-dom": "~19.2.3",
|
|
66
|
-
"vite": "^
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/plugin-
|
|
69
|
-
"@dxos/plugin-
|
|
70
|
-
"@dxos/plugin-testing": "0.8.4-main.
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
73
|
+
"vite": "^8.0.10",
|
|
74
|
+
"@dxos/app-graph": "0.8.4-main.51f1e5ca51",
|
|
75
|
+
"@dxos/plugin-preview": "0.8.4-main.51f1e5ca51",
|
|
76
|
+
"@dxos/plugin-search": "0.8.4-main.51f1e5ca51",
|
|
77
|
+
"@dxos/plugin-testing": "0.8.4-main.51f1e5ca51",
|
|
78
|
+
"@dxos/plugin-space": "0.8.4-main.51f1e5ca51",
|
|
79
|
+
"@dxos/react-ui": "0.8.4-main.51f1e5ca51",
|
|
80
|
+
"@dxos/schema": "0.8.4-main.51f1e5ca51",
|
|
81
|
+
"@dxos/storybook-utils": "0.8.4-main.51f1e5ca51",
|
|
82
|
+
"@dxos/ui-theme": "0.8.4-main.51f1e5ca51"
|
|
76
83
|
},
|
|
77
84
|
"peerDependencies": {
|
|
78
85
|
"effect": "3.20.0",
|
|
79
86
|
"react": "~19.2.3",
|
|
80
87
|
"react-dom": "~19.2.3",
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/ui
|
|
88
|
+
"@dxos/ui-theme": "0.8.4-main.51f1e5ca51",
|
|
89
|
+
"@dxos/react-ui": "0.8.4-main.51f1e5ca51"
|
|
83
90
|
},
|
|
84
91
|
"publishConfig": {
|
|
85
92
|
"access": "public"
|
|
@@ -15,10 +15,9 @@ import {
|
|
|
15
15
|
UrlHandler,
|
|
16
16
|
} from '#capabilities';
|
|
17
17
|
import { meta } from '#meta';
|
|
18
|
+
import { translations } from '#translations';
|
|
18
19
|
import { SimpleLayoutEvents } from '#types';
|
|
19
20
|
|
|
20
|
-
import { translations } from './translations';
|
|
21
|
-
|
|
22
21
|
export type SimpleLayoutPluginOptions = {
|
|
23
22
|
/** Determines if running in popover window context (hides mobile-specific UI). */
|
|
24
23
|
isPopover?: boolean;
|
|
@@ -11,7 +11,7 @@ import { GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';
|
|
|
11
11
|
export default Capability.makeModule(
|
|
12
12
|
Effect.fnUntraced(function* () {
|
|
13
13
|
const extensions = yield* GraphBuilder.createExtension({
|
|
14
|
-
id: 'org.dxos.plugin.
|
|
14
|
+
id: 'org.dxos.plugin.simpleLayout.not-found',
|
|
15
15
|
match: NodeMatcher.whenRoot,
|
|
16
16
|
connector: () => Effect.succeed([AppNode.makeNotFound()]),
|
|
17
17
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Capability } from '@dxos/app-framework';
|
|
6
|
-
import { OperationHandlerSet } from '@dxos/
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
9
9
|
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
6
|
-
import type { OperationHandlerSet } from '@dxos/
|
|
6
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
import { SimpleLayoutOperationHandlerSet } from '#operations';
|
|
9
9
|
|
|
@@ -18,7 +18,7 @@ type SurfaceData = {
|
|
|
18
18
|
properties: Record<string, any>;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
const ALLOWED_DISPOSITIONS = ['workspace', 'user-account', 'pin-end'
|
|
21
|
+
const ALLOWED_DISPOSITIONS = ['workspace', 'user-account', 'pin-end'];
|
|
22
22
|
|
|
23
23
|
export default Capability.makeModule(() =>
|
|
24
24
|
Effect.succeed(
|
|
@@ -7,7 +7,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
7
7
|
import { ErrorFallback } from '@dxos/react-ui';
|
|
8
8
|
import { withTheme } from '@dxos/react-ui/testing';
|
|
9
9
|
|
|
10
|
-
import { translations } from '
|
|
10
|
+
import { translations } from '#translations';
|
|
11
11
|
|
|
12
12
|
const meta = {
|
|
13
13
|
title: 'plugins/plugin-simple-layout/components/ErrorFallback',
|
|
@@ -35,12 +35,8 @@ export const NavBranch = ({ id }: NavBranchProps) => {
|
|
|
35
35
|
|
|
36
36
|
const children = useConnections(graph, id, 'child');
|
|
37
37
|
|
|
38
|
-
// TODO(wittjosiah): Move alternate-tree nodes to a non-child relation so they don't need filtering.
|
|
39
38
|
const visibleChildren = useMemo(
|
|
40
|
-
() =>
|
|
41
|
-
children.filter(
|
|
42
|
-
(node) => node.properties.disposition !== 'alternate-tree' && node.properties.disposition !== 'hidden',
|
|
43
|
-
),
|
|
39
|
+
() => children.filter((node) => node.properties.disposition !== 'hidden'),
|
|
44
40
|
[children],
|
|
45
41
|
);
|
|
46
42
|
|
|
@@ -11,7 +11,8 @@ import { type ActionGraphProps, createMenuAction } from '@dxos/react-ui-menu';
|
|
|
11
11
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
12
12
|
import { withRegistry } from '@dxos/storybook-utils';
|
|
13
13
|
|
|
14
|
-
import { translations } from '
|
|
14
|
+
import { translations } from '#translations';
|
|
15
|
+
|
|
15
16
|
import { MobileLayout } from '../MobileLayout';
|
|
16
17
|
import { AppBar, type AppBarProps } from './AppBar';
|
|
17
18
|
|
|
@@ -11,7 +11,8 @@ import { type ActionGraphProps, createGapSeparator, createMenuAction, createMenu
|
|
|
11
11
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
12
12
|
import { withRegistry } from '@dxos/storybook-utils';
|
|
13
13
|
|
|
14
|
-
import { translations } from '
|
|
14
|
+
import { translations } from '#translations';
|
|
15
|
+
|
|
15
16
|
import { NavBar } from './NavBar';
|
|
16
17
|
|
|
17
18
|
const MAIN_MENU_GROUP_ID = 'navbar-main-menu';
|
|
@@ -13,15 +13,15 @@ import { ClientPlugin } from '@dxos/plugin-client';
|
|
|
13
13
|
import { SearchPlugin } from '@dxos/plugin-search';
|
|
14
14
|
import { SpacePlugin } from '@dxos/plugin-space';
|
|
15
15
|
import { corePlugins } from '@dxos/plugin-testing';
|
|
16
|
-
import { translations as searchTranslation } from '@dxos/react-ui-search';
|
|
16
|
+
import { translations as searchTranslation } from '@dxos/react-ui-search/translations';
|
|
17
17
|
import { withLayout } from '@dxos/react-ui/testing';
|
|
18
18
|
|
|
19
19
|
import { ReactRoot, ReactSurface, State } from '#capabilities';
|
|
20
20
|
import { meta as pluginMeta } from '#meta';
|
|
21
|
+
import { translations } from '#translations';
|
|
21
22
|
import { SimpleLayoutEvents } from '#types';
|
|
22
23
|
|
|
23
24
|
import { type SimpleLayoutPluginOptions } from '../../SimpleLayoutPlugin';
|
|
24
|
-
import { translations } from '../../translations';
|
|
25
25
|
import { SimpleLayout } from './SimpleLayout';
|
|
26
26
|
|
|
27
27
|
const createPluginManager = ({ isPopover }: { isPopover?: boolean }) => {
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Atom, useAtomValue } from '@effect-atom/atom-react';
|
|
6
|
-
import * as Effect from 'effect/Effect';
|
|
7
6
|
import * as Option from 'effect/Option';
|
|
8
7
|
import { useCallback, useMemo } from 'react';
|
|
9
8
|
|
|
@@ -55,25 +54,6 @@ export const useAppBarProps = (): Omit<AppBarProps, 'classNames'> => {
|
|
|
55
54
|
relation: 'child',
|
|
56
55
|
}));
|
|
57
56
|
|
|
58
|
-
// Add alternate-tree action (e.g. Settings) from the workspace node.
|
|
59
|
-
const workspaceConnections = state.workspace ? get(graph.connections(state.workspace, 'child')) : [];
|
|
60
|
-
const alternateTreeNode = workspaceConnections.find(
|
|
61
|
-
(node: Node.Node) => node.properties.disposition === 'alternate-tree',
|
|
62
|
-
);
|
|
63
|
-
if (alternateTreeNode && activeId !== alternateTreeNode.id) {
|
|
64
|
-
const settingsAction = {
|
|
65
|
-
id: `appbar-settings-${alternateTreeNode.id}`,
|
|
66
|
-
type: Node.ActionType,
|
|
67
|
-
data: () => Effect.promise(() => invokePromise(LayoutOperation.Open, { subject: [alternateTreeNode.id] })),
|
|
68
|
-
properties: {
|
|
69
|
-
label: alternateTreeNode.properties.label ?? alternateTreeNode.id,
|
|
70
|
-
icon: alternateTreeNode.properties.icon ?? 'ph--placeholder--regular',
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
nodes.push(settingsAction);
|
|
74
|
-
edges.push({ source: 'root', target: settingsAction.id, relation: 'child' });
|
|
75
|
-
}
|
|
76
|
-
|
|
77
57
|
return { nodes, edges };
|
|
78
58
|
}),
|
|
79
59
|
[graph, stateAtom],
|
package/src/meta.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type Plugin } from '@dxos/app-framework';
|
|
|
6
6
|
import { trim } from '@dxos/util';
|
|
7
7
|
|
|
8
8
|
export const meta: Plugin.Meta = {
|
|
9
|
-
id: 'org.dxos.plugin.
|
|
9
|
+
id: 'org.dxos.plugin.simpleLayout',
|
|
10
10
|
name: 'Simple Layout',
|
|
11
11
|
description: trim`
|
|
12
12
|
Minimal layout plugin for simplified UI contexts like popover windows.
|
package/src/operations/close.ts
CHANGED
package/src/operations/index.ts
CHANGED
package/src/operations/open.ts
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
createEdgeExistenceChecker,
|
|
10
10
|
validateNavigationTarget,
|
|
11
11
|
} from '@dxos/app-toolkit';
|
|
12
|
+
import { Operation } from '@dxos/compute';
|
|
12
13
|
import { Context } from '@dxos/context';
|
|
13
|
-
import { Operation } from '@dxos/operation';
|
|
14
14
|
import { ClientCapabilities } from '@dxos/plugin-client/types';
|
|
15
15
|
|
|
16
16
|
import { layoutStateAccess } from './state-access';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
6
|
-
import { Operation } from '@dxos/
|
|
6
|
+
import { Operation } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
const handler: Operation.WithHandler<typeof LayoutOperation.SetLayoutMode> = LayoutOperation.SetLayoutMode.pipe(
|
|
9
9
|
Operation.withHandler(Effect.fnUntraced(function* () {})),
|
package/src/operations/set.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { isPinnedWorkspace, LayoutOperation } from '@dxos/app-toolkit';
|
|
6
|
-
import { Operation } from '@dxos/
|
|
6
|
+
import { Operation } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
import { layoutStateAccess } from './state-access';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
6
|
-
import { Operation } from '@dxos/
|
|
6
|
+
import { Operation } from '@dxos/compute';
|
|
7
7
|
import { getLinkedVariant } from '@dxos/react-ui-attention';
|
|
8
8
|
|
|
9
9
|
import { layoutStateAccess } from './state-access';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Effect from 'effect/Effect';
|
|
4
4
|
|
|
5
5
|
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
6
|
-
import { Operation } from '@dxos/
|
|
6
|
+
import { Operation } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
const handler: Operation.WithHandler<typeof LayoutOperation.UpdateSidebar> = LayoutOperation.UpdateSidebar.pipe(
|
|
9
9
|
Operation.withHandler(() => Effect.void),
|
package/src/translations.ts
CHANGED