@dxos/plugin-simple-layout 0.9.1-main.c7dcc2e112 → 0.9.1-staging.ee54ba693a
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/neutral/capabilities/index.mjs +1 -1
- package/dist/lib/neutral/components/index.mjs +9 -8
- package/dist/lib/neutral/components/index.mjs.map +3 -3
- package/dist/lib/neutral/hooks/index.mjs +4 -4
- package/dist/lib/neutral/hooks/index.mjs.map +3 -3
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{react-surface-GV3O3I25.mjs → react-surface-UBGUUGUS.mjs} +3 -2
- package/dist/lib/neutral/react-surface-UBGUUGUS.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +0 -1
- package/dist/lib/neutral/translations.mjs.map +2 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-root.d.ts +1 -5
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/capabilities/spotlight-dismiss.d.ts +1 -1
- package/dist/types/src/capabilities/state.d.ts +1 -11
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/url-handler.d.ts +1 -1
- package/dist/types/src/components/ContentError.stories.d.ts +0 -1
- package/dist/types/src/components/ContentError.stories.d.ts.map +1 -1
- package/dist/types/src/components/MobileLayout/MobileLayout.d.ts +1 -1
- package/dist/types/src/components/MobileLayout/MobileLayout.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts +3 -4
- package/dist/types/src/components/SimpleLayout/AppBar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts +0 -1
- package/dist/types/src/components/SimpleLayout/NavBar.stories.d.ts.map +1 -1
- package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts +0 -1
- package/dist/types/src/components/SimpleLayout/SimpleLayout.stories.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +4 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +0 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +35 -35
- package/src/capabilities/react-surface.tsx +2 -1
- package/src/components/Home/Home.tsx +2 -2
- package/src/components/MobileLayout/MobileLayout.stories.tsx +12 -12
- package/src/components/MobileLayout/MobileLayout.tsx +1 -1
- package/src/components/SimpleLayout/AppBar.stories.tsx +3 -3
- package/src/components/SimpleLayout/SimpleLayout.tsx +6 -6
- package/src/hooks/actions.ts +2 -2
- package/src/hooks/useCompanions.ts +2 -2
- package/src/translations.ts +0 -1
- package/dist/lib/neutral/react-surface-GV3O3I25.mjs.map +0 -7
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import { Atom } from '@effect-atom/atom-react';
|
|
2
1
|
import * as Effect from 'effect/Effect';
|
|
3
2
|
import { Capability } from '@dxos/app-framework';
|
|
4
3
|
import { SimpleLayoutCapabilities } from '#types';
|
|
5
4
|
export type SimpleLayoutStateOptions = {
|
|
6
5
|
initialState?: Partial<SimpleLayoutCapabilities.SimpleLayoutState>;
|
|
7
6
|
};
|
|
8
|
-
declare const _default: (props: SimpleLayoutStateOptions | undefined) => Effect.Effect<[Capability.Capability
|
|
9
|
-
mode: string;
|
|
10
|
-
dialogOpen: boolean;
|
|
11
|
-
sidebarOpen: boolean;
|
|
12
|
-
complementarySidebarOpen: boolean;
|
|
13
|
-
workspace: string;
|
|
14
|
-
active: string[];
|
|
15
|
-
inactive: string[];
|
|
16
|
-
scrollIntoView: string | undefined;
|
|
17
|
-
}>>>>], never, never>;
|
|
7
|
+
declare const _default: (props: SimpleLayoutStateOptions | undefined) => Effect.Effect<[Capability.Any, Capability.Any], never, never>;
|
|
18
8
|
export default _default;
|
|
19
9
|
//# sourceMappingURL=state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/state.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAYlD,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,OAAO,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAC;CACpE,CAAC"}
|
|
@@ -7,6 +7,6 @@ import { Capability } from '@dxos/app-framework';
|
|
|
7
7
|
*
|
|
8
8
|
* On Tauri, also listens for deep links via the deep-link plugin.
|
|
9
9
|
*/
|
|
10
|
-
declare const _default: (props: void) => Effect.Effect<Capability.
|
|
10
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Any, Error, Capability.Service>;
|
|
11
11
|
export default _default;
|
|
12
12
|
//# sourceMappingURL=url-handler.d.ts.map
|
|
@@ -16,7 +16,6 @@ declare const meta: {
|
|
|
16
16
|
readonly 'en-US': {
|
|
17
17
|
readonly [x: string]: {
|
|
18
18
|
readonly 'plugin.name': 'Simple layout';
|
|
19
|
-
readonly 'settings.title': 'Simple layout settings';
|
|
20
19
|
readonly 'workspaces.heading': 'Workspaces';
|
|
21
20
|
readonly 'settings.heading': 'Settings';
|
|
22
21
|
readonly 'back.label': 'Back';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentError.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentError.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjE,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ContentError.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ContentError.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAOjE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ4B,CAAC;eAExB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAIvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC"}
|
|
@@ -31,5 +31,5 @@ export declare const MobileLayout: {
|
|
|
31
31
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
32
32
|
};
|
|
33
33
|
export { useMobileLayout };
|
|
34
|
-
export type {
|
|
34
|
+
export type { MobileLayoutPanelProps, MobileLayoutRootProps };
|
|
35
35
|
//# sourceMappingURL=MobileLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/MobileLayout/MobileLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAoD,MAAM,OAAO,CAAC;AAIxG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAatD,KAAK,wBAAwB,GAAG;IAC9B,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,QAAA,MAA6B,eAAe,oDAA+D,CAAC;AAM5G,KAAK,qBAAqB,GAAG,eAAe,CAC1C,iBAAiB,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD,CAAC,CACH,CAAC;AA0CF,KAAK,sBAAsB,GAAG,eAAe,CAC3C,iBAAiB,CAAC;IAChB,IAAI,CAAC,EAAE;QACL,GAAG,EAAE,OAAO,CAAC;QACb,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC,CACH,CAAC;AA6BF,eAAO,MAAM,YAAY;IACvB,IAAI;qBAlFW,MAAM;+BACI,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI;;;;IAkFrD,KAAK;eApCI;YACL,GAAG,EAAE,OAAO,CAAC;YACb,MAAM,EAAE,OAAO,CAAC;SACjB;;;;CAkCJ,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"MobileLayout.d.ts","sourceRoot":"","sources":["../../../../../src/components/MobileLayout/MobileLayout.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAoD,MAAM,OAAO,CAAC;AAIxG,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAatD,KAAK,wBAAwB,GAAG;IAC9B,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,QAAA,MAA6B,eAAe,oDAA+D,CAAC;AAM5G,KAAK,qBAAqB,GAAG,eAAe,CAC1C,iBAAiB,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD,CAAC,CACH,CAAC;AA0CF,KAAK,sBAAsB,GAAG,eAAe,CAC3C,iBAAiB,CAAC;IAChB,IAAI,CAAC,EAAE;QACL,GAAG,EAAE,OAAO,CAAC;QACb,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC,CACH,CAAC;AA6BF,eAAO,MAAM,YAAY;IACvB,IAAI;qBAlFW,MAAM;+BACI,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI;;;;IAkFrD,KAAK;eApCI;YACL,GAAG,EAAE,OAAO,CAAC;YACb,MAAM,EAAE,OAAO,CAAC;SACjB;;;;CAkCJ,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,YAAY,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -2,12 +2,12 @@ import { type StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { type ActionGraphProps } from '@dxos/react-ui-menu';
|
|
4
4
|
import { type AppBarProps } from './AppBar';
|
|
5
|
-
type
|
|
5
|
+
type StoryArgs = Omit<AppBarProps, 'actions'> & {
|
|
6
6
|
actions: ActionGraphProps;
|
|
7
7
|
};
|
|
8
8
|
declare const meta: {
|
|
9
9
|
title: string;
|
|
10
|
-
render: ({ actions: actionsProp, ...props }:
|
|
10
|
+
render: ({ actions: actionsProp, ...props }: StoryArgs) => React.JSX.Element;
|
|
11
11
|
decorators: import("@storybook/react").Decorator[];
|
|
12
12
|
parameters: {
|
|
13
13
|
layout: string;
|
|
@@ -22,7 +22,6 @@ declare const meta: {
|
|
|
22
22
|
readonly 'en-US': {
|
|
23
23
|
readonly [x: string]: {
|
|
24
24
|
readonly 'plugin.name': 'Simple layout';
|
|
25
|
-
readonly 'settings.title': 'Simple layout settings';
|
|
26
25
|
readonly 'workspaces.heading': 'Workspaces';
|
|
27
26
|
readonly 'settings.heading': 'Settings';
|
|
28
27
|
readonly 'back.label': 'Back';
|
|
@@ -45,7 +44,7 @@ declare const meta: {
|
|
|
45
44
|
};
|
|
46
45
|
};
|
|
47
46
|
export default meta;
|
|
48
|
-
type Story = StoryObj<
|
|
47
|
+
type Story = StoryObj<StoryArgs>;
|
|
49
48
|
export declare const Default: Story;
|
|
50
49
|
export declare const NoBackButton: Story;
|
|
51
50
|
export declare const LongTitle: Story;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppBar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/AppBar.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,qBAAqB,CAAC;AAO9E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAyBpD,KAAK,
|
|
1
|
+
{"version":3,"file":"AppBar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/AppBar.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,qBAAqB,CAAC;AAO9E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAyBpD,KAAK,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC9C,OAAO,EAAE,gBAAgB,CAAC;CAC3B,CAAC;AAWF,QAAA,MAAM,IAAI;;iDATgD,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwB9B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;AAEjC,eAAO,MAAM,OAAO,EAAE,KAiCrB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAO1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAQvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC"}
|
|
@@ -19,7 +19,6 @@ declare const meta: {
|
|
|
19
19
|
readonly 'en-US': {
|
|
20
20
|
readonly [x: string]: {
|
|
21
21
|
readonly 'plugin.name': 'Simple layout';
|
|
22
|
-
readonly 'settings.title': 'Simple layout settings';
|
|
23
22
|
readonly 'workspaces.heading': 'Workspaces';
|
|
24
23
|
readonly 'settings.heading': 'Settings';
|
|
25
24
|
readonly 'back.label': 'Back';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/NavBar.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAqFvC,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"NavBar.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/NavBar.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAkB,MAAM,OAAO,CAAC;AAqFvC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQqB,CAAC;eAEjB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAQnC,eAAO,MAAM,OAAO,EAAE,KA8BrB,CAAC;AAQF,eAAO,MAAM,cAAc,EAAE,KAG5B,CAAC;AAQF,eAAO,MAAM,KAAK,EAAE,KAGnB,CAAC"}
|
|
@@ -19,7 +19,6 @@ declare const meta: {
|
|
|
19
19
|
readonly 'en-US': {
|
|
20
20
|
readonly [x: string]: {
|
|
21
21
|
readonly 'plugin.name': 'Simple layout';
|
|
22
|
-
readonly 'settings.title': 'Simple layout settings';
|
|
23
22
|
readonly 'workspaces.heading': 'Workspaces';
|
|
24
23
|
readonly 'settings.heading': 'Settings';
|
|
25
24
|
readonly 'back.label': 'Back';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA8DjE;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;QAIN,MAAM;QACN,YAAY
|
|
1
|
+
{"version":3,"file":"SimpleLayout.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SimpleLayout/SimpleLayout.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA8DjE;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;QAIN,MAAM;QACN,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEqB,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare const meta: {
|
|
|
16
16
|
} | undefined;
|
|
17
17
|
readonly dependsOn?: readonly string[] | undefined;
|
|
18
18
|
readonly spec?: string | undefined;
|
|
19
|
+
readonly createdAt?: string | undefined;
|
|
19
20
|
readonly author?: string | undefined;
|
|
20
21
|
};
|
|
21
22
|
readonly release?: {
|
|
@@ -24,6 +25,9 @@ export declare const meta: {
|
|
|
24
25
|
readonly dependencies?: {
|
|
25
26
|
readonly [x: string]: string;
|
|
26
27
|
} | undefined;
|
|
28
|
+
readonly pluginKey?: string | undefined;
|
|
29
|
+
readonly manifestHash?: string | undefined;
|
|
30
|
+
readonly createdAt?: string | undefined;
|
|
27
31
|
} | undefined;
|
|
28
32
|
};
|
|
29
33
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC"}
|
|
@@ -9,7 +9,6 @@ export declare const translations: [{
|
|
|
9
9
|
readonly 'en-US': {
|
|
10
10
|
readonly [x: string]: {
|
|
11
11
|
readonly 'plugin.name': 'Simple layout';
|
|
12
|
-
readonly 'settings.title': 'Simple layout settings';
|
|
13
12
|
readonly 'workspaces.heading': 'Workspaces';
|
|
14
13
|
readonly 'settings.heading': 'Settings';
|
|
15
14
|
readonly 'back.label': 'Back';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY;;;;;;;;;;oCAKF,eAAe;
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY;;;;;;;;;;oCAKF,eAAe;2CACR,YAAY;yCACd,UAAU;mCAChB,MAAM;qCACJ,QAAQ;4CACD,eAAe;sCACrB,SAAS;uCACR,UAAU;wCACT,WAAW;8CACL,YAAY;+CACX,mBAAmB;qCAC7B,QAAQ;2CACF,cAAc;4CACb,eAAe;8CACb,iBAAiB;2CACpB,SAAS;mCACjB,MAAM;;;EAIG,CAAC"}
|