@dxos/plugin-board 0.8.4-main.72ec0f3 → 0.8.4-main.765dc60934
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/BoardArticle-6DBQWLP5.mjs +164 -0
- package/dist/lib/neutral/BoardArticle-6DBQWLP5.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-M5JHK3ZQ.mjs +26 -0
- package/dist/lib/neutral/react-surface-M5JHK3ZQ.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/BoardArticle/BoardArticle.d.ts +6 -0
- package/dist/types/src/containers/BoardArticle/BoardArticle.d.ts.map +1 -0
- package/dist/types/src/containers/BoardArticle/BoardArticle.stories.d.ts +54 -0
- package/dist/types/src/containers/BoardArticle/BoardArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/BoardArticle/index.d.ts +2 -0
- package/dist/types/src/containers/BoardArticle/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 +25 -67
- package/dist/types/src/types/Board.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +102 -60
- package/src/BoardPlugin.test.ts +27 -0
- package/src/BoardPlugin.tsx +16 -51
- 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/BoardArticle/BoardArticle.stories.tsx +122 -0
- package/src/containers/BoardArticle/BoardArticle.tsx +182 -0
- package/src/containers/BoardArticle/index.ts +5 -0
- package/src/containers/index.ts +7 -0
- package/src/index.ts +0 -3
- package/src/meta.ts +3 -3
- package/src/plugin.ts +9 -0
- package/src/translations.ts +12 -10
- package/src/types/Board.ts +10 -20
- package/dist/lib/browser/chunk-6IYOP7JD.mjs +0 -64
- package/dist/lib/browser/chunk-6IYOP7JD.mjs.map +0 -7
- package/dist/lib/browser/chunk-UDI6JPP5.mjs +0 -143
- package/dist/lib/browser/chunk-UDI6JPP5.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -90
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MGJCQT3N.mjs +0 -33
- package/dist/lib/browser/intent-resolver-MGJCQT3N.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-PBKZGBFJ.mjs +0 -30
- package/dist/lib/browser/react-surface-PBKZGBFJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-LJPQ2ELJ.mjs +0 -145
- package/dist/lib/node-esm/chunk-LJPQ2ELJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WFLKZNL3.mjs +0 -65
- package/dist/lib/node-esm/chunk-WFLKZNL3.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -91
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-TV2AARM7.mjs +0 -34
- package/dist/lib/node-esm/intent-resolver-TV2AARM7.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-NELFNJ6M.mjs +0 -31
- package/dist/lib/node-esm/react-surface-NELFNJ6M.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 -45
- 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 -125
- package/src/components/BoardContainer.tsx +0 -146
- /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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/plugin.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const BoardPlugin = Plugin.lazy(meta, () => import('#plugin'));\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,SAASA,cAAc;AAIhB,IAAMC,cAAcC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "BoardPlugin", "Plugin", "lazy", "meta"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/capabilities/react-surface.tsx
|
|
4
|
+
import * as Effect from "effect/Effect";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
7
|
+
import { Surface } from "@dxos/app-framework/ui";
|
|
8
|
+
import { AppSurface } from "@dxos/app-toolkit/ui";
|
|
9
|
+
import { BoardArticle } from "#containers";
|
|
10
|
+
import { Board } from "#types";
|
|
11
|
+
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
|
|
12
|
+
Surface.create({
|
|
13
|
+
id: "root",
|
|
14
|
+
// TODO(wittjosiah): Split into multiple surfaces if this filter proves too strict for non-article roles.
|
|
15
|
+
filter: AppSurface.oneOf(AppSurface.object(AppSurface.Article, Board.Board), AppSurface.object(AppSurface.Section, Board.Board)),
|
|
16
|
+
component: ({ role, data }) => /* @__PURE__ */ React.createElement(BoardArticle, {
|
|
17
|
+
role,
|
|
18
|
+
subject: data.subject,
|
|
19
|
+
attendableId: data.attendableId
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
])));
|
|
23
|
+
export {
|
|
24
|
+
react_surface_default as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=react-surface-M5JHK3ZQ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { AppSurface } from '@dxos/app-toolkit/ui';\n\nimport { BoardArticle } from '#containers';\nimport { Board } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: 'root',\n // TODO(wittjosiah): Split into multiple surfaces if this filter proves too strict for non-article roles.\n filter: AppSurface.oneOf(\n AppSurface.object(AppSurface.Article, Board.Board),\n AppSurface.object(AppSurface.Section, Board.Board),\n ),\n component: ({ role, data }) => (\n <BoardArticle role={role} subject={data.subject} attendableId={data.attendableId} />\n ),\n }),\n ]),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,kBAAkB;AAE3B,SAASC,oBAAoB;AAC7B,SAASC,aAAa;AAEtB,IAAA,wBAAeJ,WAAWK,WAAW,MAC5BC,eACLN,WAAWO,YAAYR,aAAaS,cAAc;EAChDP,QAAQQ,OAAO;IACbC,IAAI;;IAEJC,QAAQT,WAAWU,MACjBV,WAAWW,OAAOX,WAAWY,SAASV,MAAMA,KAAK,GACjDF,WAAWW,OAAOX,WAAWa,SAASX,MAAMA,KAAK,CAAA;IAEnDY,WAAW,CAAC,EAAEC,MAAMC,KAAI,MACtB,sBAAA,cAACf,cAAAA;MAAac;MAAYE,SAASD,KAAKC;MAASC,cAAcF,KAAKE;;EAExE,CAAA;CACD,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "React", "Capabilities", "Capability", "Surface", "AppSurface", "BoardArticle", "Board", "makeModule", "succeed", "contributes", "ReactSurface", "create", "id", "filter", "oneOf", "object", "Article", "Section", "component", "role", "data", "subject", "attendableId"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/translations.ts
|
|
4
|
+
import { meta } from "#meta";
|
|
5
|
+
import { Board } from "#types";
|
|
6
|
+
var translations = [
|
|
7
|
+
{
|
|
8
|
+
"en-US": {
|
|
9
|
+
[Board.Board.typename]: {
|
|
10
|
+
"typename.label": "Board",
|
|
11
|
+
"typename.label_zero": "Boards",
|
|
12
|
+
"typename.label_one": "Board",
|
|
13
|
+
"typename.label_other": "Boards",
|
|
14
|
+
"object-name.placeholder": "New board",
|
|
15
|
+
"add-object.label": "Add board",
|
|
16
|
+
"rename-object.label": "Rename board",
|
|
17
|
+
"delete-object.label": "Delete board",
|
|
18
|
+
"object-deleted.label": "Board deleted"
|
|
19
|
+
},
|
|
20
|
+
[meta.id]: {
|
|
21
|
+
"plugin.name": "Board"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
export {
|
|
27
|
+
translations
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=translations.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Board } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Board.Board.typename]: {\n 'typename.label': 'Board',\n 'typename.label_zero': 'Boards',\n 'typename.label_one': 'Board',\n 'typename.label_other': 'Boards',\n 'object-name.placeholder': 'New board',\n 'add-object.label': 'Add board',\n 'rename-object.label': 'Rename board',\n 'delete-object.label': 'Delete board',\n 'object-deleted.label': 'Board deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Board',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;AAMA,SAASA,YAAY;AACrB,SAASC,aAAa;AAEf,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,MAAMA,MAAME,QAAQ,GAAG;QACtB,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACH,KAAKI,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;",
|
|
6
|
+
"names": ["meta", "Board", "translations", "typename", "id"]
|
|
7
|
+
}
|
|
@@ -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 BoardArticleProps = AppSurface.ObjectArticleProps<BoardType.Board>;
|
|
5
|
+
export declare const BoardArticle: ({ role, subject: board, attendableId }: BoardArticleProps) => React.JSX.Element;
|
|
6
|
+
//# sourceMappingURL=BoardArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoardArticle.d.ts","sourceRoot":"","sources":["../../../../../src/containers/BoardArticle/BoardArticle.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,iBAAiB,GAAG,UAAU,CAAC,kBAAkB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAE/E,eAAO,MAAM,YAAY,2CAA4C,iBAAiB,sBAqJrF,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=BoardArticle.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BoardArticle.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/BoardArticle/BoardArticle.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/BoardArticle/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,IAAI,OAAO,EAAE,MAAM,gBAAgB,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,YAAY,EAAE,aAAa,CAAC,GAAG,CAAwC,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"}
|
|
@@ -3,40 +3,36 @@ 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/internal").Ref<
|
|
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,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,WAAW,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,KAAK,CAAC,CAAC;;;;;;;;;;;;;;;;;;EAKjE,CAAC"}
|