@dxos/plugin-board 0.8.4-main.dedc0f3 → 0.8.4-main.dfabb4ec29
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/BoardContainer-HS5KHT4R.mjs +164 -0
- package/dist/lib/neutral/BoardContainer-HS5KHT4R.mjs.map +7 -0
- package/dist/lib/neutral/BoardPlugin.mjs +30 -0
- package/dist/lib/neutral/BoardPlugin.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +11 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-EFV3E7KE.mjs +19 -0
- package/dist/lib/neutral/chunk-EFV3E7KE.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-XXGRE3CK.mjs +37 -0
- package/dist/lib/neutral/chunk-XXGRE3CK.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +1 -0
- package/dist/lib/neutral/containers/index.mjs +9 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-object-OWHPPT3P.mjs +27 -0
- package/dist/lib/neutral/create-object-OWHPPT3P.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +12 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +12 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-FZYKJHNB.mjs +26 -0
- package/dist/lib/neutral/react-surface-FZYKJHNB.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +29 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/types/index.mjs +2 -1
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/BoardPlugin.d.ts +3 -1
- package/dist/types/src/BoardPlugin.d.ts.map +1 -1
- package/dist/types/src/BoardPlugin.test.d.ts +2 -0
- package/dist/types/src/BoardPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +8 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- 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 +54 -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 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +3 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +22 -13
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Board.d.ts +26 -68
- package/dist/types/src/types/Board.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +101 -58
- package/src/BoardPlugin.test.ts +27 -0
- package/src/BoardPlugin.tsx +16 -52
- package/src/capabilities/create-object.ts +30 -0
- package/src/capabilities/index.ts +3 -3
- package/src/capabilities/react-surface.tsx +23 -14
- package/src/components/index.ts +0 -2
- package/src/containers/BoardContainer/BoardContainer.stories.tsx +122 -0
- package/src/containers/BoardContainer/BoardContainer.tsx +182 -0
- package/src/containers/BoardContainer/index.ts +5 -0
- package/src/containers/index.ts +7 -0
- package/src/index.ts +0 -3
- package/src/meta.ts +9 -5
- package/src/plugin.ts +9 -0
- package/src/translations.ts +12 -10
- package/src/types/Board.ts +12 -22
- package/dist/lib/browser/chunk-V67SBM4U.mjs +0 -59
- package/dist/lib/browser/chunk-V67SBM4U.mjs.map +0 -7
- package/dist/lib/browser/chunk-YYCPOFRP.mjs +0 -106
- package/dist/lib/browser/chunk-YYCPOFRP.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -91
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-6NM32ZSV.mjs +0 -33
- package/dist/lib/browser/intent-resolver-6NM32ZSV.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-PQP6ODCJ.mjs +0 -30
- package/dist/lib/browser/react-surface-PQP6ODCJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RNEIWFZQ.mjs +0 -108
- package/dist/lib/node-esm/chunk-RNEIWFZQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XCGDC6OV.mjs +0 -60
- package/dist/lib/node-esm/chunk-XCGDC6OV.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -92
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-5DQ5PPTT.mjs +0 -34
- package/dist/lib/node-esm/intent-resolver-5DQ5PPTT.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-KXSZZOEH.mjs +0 -31
- package/dist/lib/node-esm/react-surface-KXSZZOEH.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -8
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/BoardContainer.d.ts +0 -8
- package/dist/types/src/components/BoardContainer.d.ts.map +0 -1
- package/dist/types/src/components/BoardContainer.stories.d.ts +0 -44
- package/dist/types/src/components/BoardContainer.stories.d.ts.map +0 -1
- package/src/capabilities/intent-resolver.ts +0 -34
- package/src/components/BoardContainer.stories.tsx +0 -122
- package/src/components/BoardContainer.tsx +0 -89
- /package/dist/lib/{browser/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{node-esm/types → neutral/components}/index.mjs.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoardPlugin.d.ts","sourceRoot":"","sources":["../../../src/BoardPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BoardPlugin.d.ts","sourceRoot":"","sources":["../../../src/BoardPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAS7C,eAAO,MAAM,WAAW,4BAMvB,CAAC;eAEa,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoardPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/BoardPlugin.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
5
|
+
id: string;
|
|
6
|
+
createObject: import("@dxos/plugin-space").CreateObject;
|
|
7
|
+
inputSchema?: import("effect/Schema").Schema.AnyNoContext;
|
|
8
|
+
customPanel?: import("react").ComponentType<SpaceCapabilities.CreateObjectCustomPanelProps>;
|
|
9
|
+
}>>>, never, never>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=create-object.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-object.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/create-object.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
export declare const CreateObject: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
|
|
3
|
+
id: string;
|
|
4
|
+
createObject: import("@dxos/plugin-space").CreateObject;
|
|
5
|
+
inputSchema?: import("effect/Schema").Schema.AnyNoContext;
|
|
6
|
+
customPanel?: import("react").ComponentType<import("@dxos/plugin-space").SpaceCapabilities.CreateObjectCustomPanelProps>;
|
|
7
|
+
}>>>, Error>;
|
|
8
|
+
export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
|
|
3
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;YAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,iJAAmE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
|
|
3
4
|
export default _default;
|
|
4
5
|
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
3
|
+
import { type Board as BoardType } from '#types';
|
|
4
|
+
export type BoardContainerProps = AppSurface.ObjectArticleProps<BoardType.Board>;
|
|
5
|
+
export declare const BoardContainer: ({ role, subject: board, attendableId }: BoardContainerProps) => React.JSX.Element;
|
|
6
|
+
//# sourceMappingURL=BoardContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoardContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/BoardContainer/BoardContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAalD,OAAO,EAAE,KAAK,KAAK,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAQjD,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAEjF,eAAO,MAAM,cAAc,2CAA4C,mBAAmB,sBAqJzF,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
render: () => React.JSX.Element | null;
|
|
6
|
+
decorators: import("@storybook/react").Decorator[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
translations: ({
|
|
10
|
+
readonly 'en-US': {
|
|
11
|
+
readonly [x: string]: {
|
|
12
|
+
readonly 'typename.label': 'Board';
|
|
13
|
+
readonly 'typename.label_zero': 'Boards';
|
|
14
|
+
readonly 'typename.label_one': 'Board';
|
|
15
|
+
readonly 'typename.label_other': 'Boards';
|
|
16
|
+
readonly 'object-name.placeholder': 'New board';
|
|
17
|
+
readonly 'add-object.label': 'Add board';
|
|
18
|
+
readonly 'rename-object.label': 'Rename board';
|
|
19
|
+
readonly 'delete-object.label': 'Delete board';
|
|
20
|
+
readonly 'object-deleted.label': 'Board deleted';
|
|
21
|
+
readonly 'plugin.name'?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
readonly 'typename.label'?: undefined;
|
|
24
|
+
readonly 'typename.label_zero'?: undefined;
|
|
25
|
+
readonly 'typename.label_one'?: undefined;
|
|
26
|
+
readonly 'typename.label_other'?: undefined;
|
|
27
|
+
readonly 'object-name.placeholder'?: undefined;
|
|
28
|
+
readonly 'add-object.label'?: undefined;
|
|
29
|
+
readonly 'rename-object.label'?: undefined;
|
|
30
|
+
readonly 'delete-object.label'?: undefined;
|
|
31
|
+
readonly 'object-deleted.label'?: undefined;
|
|
32
|
+
readonly 'plugin.name': 'Board';
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
readonly 'en-US': {
|
|
37
|
+
readonly "@dxos/react-ui-stack": {
|
|
38
|
+
readonly 'resize.label': 'Drag to resize';
|
|
39
|
+
readonly 'drag-handle.label': 'Drag to rearrange';
|
|
40
|
+
readonly 'pin-start.label': 'Pin to the left sidebar';
|
|
41
|
+
readonly 'pin-end.label': 'Pin to the right sidebar';
|
|
42
|
+
readonly 'increment-start.label': 'Move to the left';
|
|
43
|
+
readonly 'increment-end.label': 'Move to the right';
|
|
44
|
+
readonly 'close.label': 'Close';
|
|
45
|
+
readonly 'minify.label': 'Minify';
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
})[];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export default meta;
|
|
52
|
+
type Story = StoryObj<typeof meta>;
|
|
53
|
+
export declare const Default: Story;
|
|
54
|
+
//# 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;AAiEnD,QAAA,MAAM,IAAI;IACR,KAAK;IACL,MAAM;IACN,UAAU;IAqCV,UAAU;QACR,MAAM;QACN,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEf,CAAC;eAEa,IAAI;AAEnB,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"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const meta:
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const meta: Plugin.Meta;
|
|
3
3
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAWzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,WAAW,4BAA6C,CAAC"}
|
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { meta } from './meta';
|
|
2
|
-
import { Board } from './types';
|
|
3
1
|
export declare const translations: [{
|
|
4
2
|
readonly 'en-US': {
|
|
5
|
-
readonly [
|
|
6
|
-
readonly 'typename
|
|
7
|
-
readonly 'typename
|
|
8
|
-
readonly 'typename
|
|
9
|
-
readonly 'typename
|
|
10
|
-
readonly 'object
|
|
11
|
-
readonly '
|
|
12
|
-
readonly '
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
readonly 'plugin
|
|
3
|
+
readonly [x: string]: {
|
|
4
|
+
readonly 'typename.label': 'Board';
|
|
5
|
+
readonly 'typename.label_zero': 'Boards';
|
|
6
|
+
readonly 'typename.label_one': 'Board';
|
|
7
|
+
readonly 'typename.label_other': 'Boards';
|
|
8
|
+
readonly 'object-name.placeholder': 'New board';
|
|
9
|
+
readonly 'add-object.label': 'Add board';
|
|
10
|
+
readonly 'rename-object.label': 'Rename board';
|
|
11
|
+
readonly 'delete-object.label': 'Delete board';
|
|
12
|
+
readonly 'object-deleted.label': 'Board deleted';
|
|
13
|
+
readonly 'plugin.name'?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
readonly 'typename.label'?: undefined;
|
|
16
|
+
readonly 'typename.label_zero'?: undefined;
|
|
17
|
+
readonly 'typename.label_one'?: undefined;
|
|
18
|
+
readonly 'typename.label_other'?: undefined;
|
|
19
|
+
readonly 'object-name.placeholder'?: undefined;
|
|
20
|
+
readonly 'add-object.label'?: undefined;
|
|
21
|
+
readonly 'rename-object.label'?: undefined;
|
|
22
|
+
readonly 'delete-object.label'?: undefined;
|
|
23
|
+
readonly 'object-deleted.label'?: undefined;
|
|
24
|
+
readonly 'plugin.name': 'Board';
|
|
16
25
|
};
|
|
17
26
|
};
|
|
18
27
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,YAAY;;;uCAIC,OAAO;4CACF,QAAQ;2CACT,OAAO;6CACL,QAAQ;gDACL,WAAW;yCAClB,WAAW;4CACR,cAAc;4CACd,cAAc;6CACb,eAAe;;;;;;;;;;;;oCAGxB,OAAO;;;EAIC,CAAC"}
|
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
2
|
import { Obj, Type } from '@dxos/echo';
|
|
3
3
|
/**
|
|
4
4
|
* Board and layout.
|
|
5
5
|
*/
|
|
6
|
-
export declare const Board: Type.
|
|
7
|
-
name
|
|
8
|
-
items:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly height?: number | undefined;
|
|
26
|
-
}, never>>>>;
|
|
27
|
-
}>>;
|
|
28
|
-
}>>;
|
|
6
|
+
export declare const Board: Type.Obj<{
|
|
7
|
+
readonly name?: string | undefined;
|
|
8
|
+
readonly items: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
9
|
+
readonly layout: {
|
|
10
|
+
readonly size: {
|
|
11
|
+
readonly width: number;
|
|
12
|
+
readonly height: number;
|
|
13
|
+
};
|
|
14
|
+
readonly cells: {
|
|
15
|
+
[x: string]: {
|
|
16
|
+
readonly x: number;
|
|
17
|
+
readonly y: number;
|
|
18
|
+
} & {
|
|
19
|
+
readonly width?: number | undefined;
|
|
20
|
+
readonly height?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}, Schema.Struct.Fields>;
|
|
29
25
|
export interface Board extends Schema.Schema.Type<typeof Board> {
|
|
30
26
|
}
|
|
31
|
-
export declare const makeBoard: (props?: Partial<Obj.MakeProps<typeof Board>>) => import("@dxos/
|
|
32
|
-
name?: string | undefined;
|
|
33
|
-
items: import("@dxos/echo
|
|
34
|
-
layout: {
|
|
35
|
-
size: {
|
|
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
|
+
readonly name?: string | undefined;
|
|
29
|
+
readonly items: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
30
|
+
readonly layout: {
|
|
31
|
+
readonly size: {
|
|
36
32
|
readonly width: number;
|
|
37
33
|
readonly height: number;
|
|
38
34
|
};
|
|
39
|
-
cells: {
|
|
35
|
+
readonly cells: {
|
|
40
36
|
[x: string]: {
|
|
41
37
|
readonly x: number;
|
|
42
38
|
readonly y: number;
|
|
@@ -47,42 +43,4 @@ export declare const makeBoard: (props?: Partial<Obj.MakeProps<typeof Board>>) =
|
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
45
|
}>;
|
|
50
|
-
declare const Create_base: Schema.TaggedClass<Create, `${string}/action/create`, {
|
|
51
|
-
readonly _tag: Schema.tag<`${string}/action/create`>;
|
|
52
|
-
} & {
|
|
53
|
-
input: Schema.Struct<{
|
|
54
|
-
name: Schema.optional<typeof Schema.String>;
|
|
55
|
-
}>;
|
|
56
|
-
output: Schema.Struct<{
|
|
57
|
-
object: Type.obj<Schema.Struct<{
|
|
58
|
-
name: Schema.optional<typeof Schema.String>;
|
|
59
|
-
items: Schema.mutable<Schema.Array$<Type.ref<Schema.Schema<Type.Expando, {
|
|
60
|
-
[x: string]: any;
|
|
61
|
-
id: string;
|
|
62
|
-
}, never>>>>;
|
|
63
|
-
layout: Schema.mutable<Schema.Struct<{
|
|
64
|
-
size: Schema.Struct<{
|
|
65
|
-
width: typeof Schema.Number;
|
|
66
|
-
height: typeof Schema.Number;
|
|
67
|
-
}>;
|
|
68
|
-
cells: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.extend<Schema.Struct<{
|
|
69
|
-
x: typeof Schema.Number;
|
|
70
|
-
y: typeof Schema.Number;
|
|
71
|
-
}>, Schema.SchemaClass<{
|
|
72
|
-
readonly width?: number | undefined;
|
|
73
|
-
readonly height?: number | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
readonly width?: number | undefined;
|
|
76
|
-
readonly height?: number | undefined;
|
|
77
|
-
}, never>>>>;
|
|
78
|
-
}>>;
|
|
79
|
-
}>>;
|
|
80
|
-
}>;
|
|
81
|
-
}>;
|
|
82
|
-
/**
|
|
83
|
-
* Create board.
|
|
84
|
-
*/
|
|
85
|
-
export declare class Create extends Create_base {
|
|
86
|
-
}
|
|
87
|
-
export {};
|
|
88
46
|
//# sourceMappingURL=Board.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Board.d.ts","sourceRoot":"","sources":["../../../../src/types/Board.ts"],"names":[],"mappings":"AAIA,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,WAAW,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,KAAK,CAAC,CAAC;;;;;;;;;;;;;;;;;;EAKjE,CAAC"}
|