@dxos/plugin-board 0.8.4-main.3eb6e50203 → 0.8.4-main.422d1c7879
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/{chunk-7VKDDGS7.mjs → chunk-FL67SBF5.mjs} +8 -5
- package/dist/lib/browser/chunk-FL67SBF5.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +51 -28
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/{chunk-UGVRNKWV.mjs → chunk-5GGKJL4Z.mjs} +8 -5
- package/dist/lib/node-esm/chunk-5GGKJL4Z.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +51 -28
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/BoardPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/BoardContainer/BoardContainer.d.ts +6 -0
- package/dist/types/src/containers/BoardContainer/BoardContainer.d.ts.map +1 -0
- package/dist/types/src/containers/BoardContainer/BoardContainer.stories.d.ts +47 -0
- package/dist/types/src/containers/BoardContainer/BoardContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/BoardContainer/index.d.ts +2 -0
- package/dist/types/src/containers/BoardContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +3 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +12 -11
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Board.d.ts +3 -3
- package/dist/types/src/types/Board.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +50 -50
- package/src/BoardPlugin.tsx +20 -7
- package/src/capabilities/index.ts +3 -1
- package/src/capabilities/react-surface.tsx +31 -0
- package/src/components/index.ts +0 -2
- package/src/{components → containers/BoardContainer}/BoardContainer.stories.tsx +18 -17
- package/src/{components → containers/BoardContainer}/BoardContainer.tsx +33 -30
- package/src/containers/BoardContainer/index.ts +5 -0
- package/src/containers/index.ts +7 -0
- package/src/index.ts +0 -1
- package/src/meta.ts +1 -1
- package/src/translations.ts +12 -11
- package/src/types/Board.ts +7 -3
- package/dist/lib/browser/chunk-7VKDDGS7.mjs.map +0 -7
- package/dist/lib/browser/chunk-DCLJ4HOC.mjs +0 -159
- package/dist/lib/browser/chunk-DCLJ4HOC.mjs.map +0 -7
- package/dist/lib/browser/react-surface-3ECZMYLQ.mjs +0 -32
- package/dist/lib/browser/react-surface-3ECZMYLQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HICZFU5T.mjs +0 -161
- package/dist/lib/node-esm/chunk-HICZFU5T.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UGVRNKWV.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-W7FPI7BR.mjs +0 -33
- package/dist/lib/node-esm/react-surface-W7FPI7BR.mjs.map +0 -7
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/components/BoardContainer.d.ts +0 -6
- package/dist/types/src/components/BoardContainer.d.ts.map +0 -1
- package/dist/types/src/components/BoardContainer.stories.d.ts +0 -45
- package/dist/types/src/components/BoardContainer.stories.d.ts.map +0 -1
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -27
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Board } from '#types';
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
render: () => React.JSX.Element | null;
|
|
7
|
+
decorators: import("@storybook/react").Decorator[];
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: string;
|
|
10
|
+
translations: ({
|
|
11
|
+
readonly 'en-US': {
|
|
12
|
+
readonly [Board.Board.typename]: {
|
|
13
|
+
readonly 'typename.label': "Board";
|
|
14
|
+
readonly 'typename.label_zero': "Boards";
|
|
15
|
+
readonly 'typename.label_one': "Board";
|
|
16
|
+
readonly 'typename.label_other': "Boards";
|
|
17
|
+
readonly 'object-name.placeholder': "New board";
|
|
18
|
+
readonly 'add-object.label': "Add board";
|
|
19
|
+
readonly 'rename-object.label': "Rename board";
|
|
20
|
+
readonly 'delete-object.label': "Delete board";
|
|
21
|
+
readonly 'object-deleted.label': "Board deleted";
|
|
22
|
+
};
|
|
23
|
+
readonly [meta.
|
|
24
|
+
id]: {
|
|
25
|
+
readonly 'plugin.name': "Board";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
} | {
|
|
29
|
+
readonly 'en-US': {
|
|
30
|
+
readonly "@dxos/react-ui-stack": {
|
|
31
|
+
readonly "resize.label": "Drag to resize";
|
|
32
|
+
readonly "drag-handle.label": "Drag to rearrange";
|
|
33
|
+
readonly "pin-start.label": "Pin to the left sidebar";
|
|
34
|
+
readonly "pin-end.label": "Pin to the right sidebar";
|
|
35
|
+
readonly "increment-start.label": "Move to the left";
|
|
36
|
+
readonly "increment-end.label": "Move to the right";
|
|
37
|
+
readonly "close.label": "Close";
|
|
38
|
+
readonly "minify.label": "Minify";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
})[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default meta;
|
|
45
|
+
type Story = StoryObj<typeof meta>;
|
|
46
|
+
export declare const Default: Story;
|
|
47
|
+
//# sourceMappingURL=BoardContainer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoardContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/BoardContainer/BoardContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAcnD,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAmD/B,QAAA,MAAM,IAAI;;;;;;;;yBA/DC,CAAQ,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;;;;;;;;;;;yBAOsB,CAAQ,IAAI;oBAC1E,EAAC,CAAC;;;;;;;;;;;;;;;;;;;CAmGD,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/BoardContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,GAAG,CAA0C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AAExB,cAAc,eAAe,CAAC"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { meta } from '
|
|
2
|
-
import { Board } from '
|
|
1
|
+
import { meta } from '#meta';
|
|
2
|
+
import { Board } from '#types';
|
|
3
3
|
export declare const translations: [{
|
|
4
4
|
readonly 'en-US': {
|
|
5
5
|
readonly [Board.Board.typename]: {
|
|
6
|
-
readonly 'typename
|
|
7
|
-
readonly 'typename
|
|
8
|
-
readonly 'typename
|
|
9
|
-
readonly 'typename
|
|
10
|
-
readonly 'object
|
|
11
|
-
readonly '
|
|
12
|
-
readonly '
|
|
13
|
-
readonly 'object
|
|
6
|
+
readonly 'typename.label': "Board";
|
|
7
|
+
readonly 'typename.label_zero': "Boards";
|
|
8
|
+
readonly 'typename.label_one': "Board";
|
|
9
|
+
readonly 'typename.label_other': "Boards";
|
|
10
|
+
readonly 'object-name.placeholder': "New board";
|
|
11
|
+
readonly 'add-object.label': "Add board";
|
|
12
|
+
readonly 'rename-object.label': "Rename board";
|
|
13
|
+
readonly 'delete-object.label': "Delete board";
|
|
14
|
+
readonly 'object-deleted.label': "Board deleted";
|
|
14
15
|
};
|
|
15
16
|
readonly [meta.id]: {
|
|
16
|
-
readonly 'plugin
|
|
17
|
+
readonly 'plugin.name': "Board";
|
|
17
18
|
};
|
|
18
19
|
};
|
|
19
20
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;;;;;;;;;;UAUrB;QACD,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;UAER;;EAGwB,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { Obj, Type } from '@dxos/echo';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const Board: Type.Obj<{
|
|
7
7
|
readonly name?: string | undefined;
|
|
8
|
-
readonly items: readonly import("@dxos/echo/internal").Ref<
|
|
8
|
+
readonly items: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
9
9
|
readonly layout: {
|
|
10
10
|
readonly size: {
|
|
11
11
|
readonly width: number;
|
|
@@ -24,9 +24,9 @@ export declare const Board: Type.Obj<{
|
|
|
24
24
|
}, Schema.Struct.Fields>;
|
|
25
25
|
export interface Board extends Schema.Schema.Type<typeof Board> {
|
|
26
26
|
}
|
|
27
|
-
export declare const makeBoard: (props?: Partial<Obj.MakeProps<typeof Board>>) => Obj.
|
|
27
|
+
export declare const makeBoard: (props?: Partial<Obj.MakeProps<typeof Board>>) => Obj.OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
28
28
|
readonly name?: string | undefined;
|
|
29
|
-
readonly items: readonly import("@dxos/echo/internal").Ref<
|
|
29
|
+
readonly items: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
30
30
|
readonly layout: {
|
|
31
31
|
readonly size: {
|
|
32
32
|
readonly width: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Board.d.ts","sourceRoot":"","sources":["../../../../src/types/Board.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,
|
|
1
|
+
{"version":3,"file":"Board.d.ts","sourceRoot":"","sources":["../../../../src/types/Board.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAc,GAAG,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAIxD;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;wBAcjB,CAAC;AAEF,MAAM,WAAW,KAAM,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC;CAAG;AAElE,eAAO,MAAM,SAAS,GAAI,QAAO,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,KAAK,CAAC,CAAM;;;;;;;;;;;;;;;;;;EAKtE,CAAC"}
|