@dxos/plugin-board 0.8.4-main.2e9d522 → 0.8.4-main.406dc2a
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-RHMZXTJ7.mjs +129 -0
- package/dist/lib/browser/chunk-RHMZXTJ7.mjs.map +7 -0
- package/dist/lib/browser/chunk-Z6L4ZVCB.mjs +59 -0
- package/dist/lib/browser/chunk-Z6L4ZVCB.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +52 -49
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-TDOZP647.mjs → intent-resolver-H6OF7V77.mjs} +7 -7
- package/dist/lib/browser/{intent-resolver-TDOZP647.mjs.map → intent-resolver-H6OF7V77.mjs.map} +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-37LEVBKY.mjs +30 -0
- package/dist/lib/browser/react-surface-37LEVBKY.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +3 -3
- package/dist/lib/node-esm/chunk-AWLY252W.mjs +60 -0
- package/dist/lib/node-esm/chunk-AWLY252W.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XZA5WICX.mjs +131 -0
- package/dist/lib/node-esm/chunk-XZA5WICX.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +52 -49
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-IHQWKJNT.mjs → intent-resolver-L534P6FM.mjs} +7 -7
- package/dist/lib/node-esm/{intent-resolver-IHQWKJNT.mjs.map → intent-resolver-L534P6FM.mjs.map} +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-GVHSH2W2.mjs +31 -0
- package/dist/lib/node-esm/react-surface-GVHSH2W2.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +3 -3
- package/dist/types/src/BoardPlugin.d.ts +1 -1
- package/dist/types/src/BoardPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/BoardContainer.d.ts +2 -2
- package/dist/types/src/components/BoardContainer.d.ts.map +1 -1
- package/dist/types/src/components/BoardContainer.stories.d.ts +42 -5
- package/dist/types/src/components/BoardContainer.stories.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/types/Board.d.ts +88 -0
- package/dist/types/src/types/Board.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +1 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -42
- package/src/BoardPlugin.tsx +41 -43
- package/src/capabilities/react-surface.tsx +1 -1
- package/src/components/BoardContainer.stories.tsx +31 -48
- package/src/components/BoardContainer.tsx +86 -54
- package/src/index.ts +2 -0
- package/src/types/Board.ts +47 -0
- package/src/types/index.ts +1 -1
- package/dist/lib/browser/chunk-TDV6SJ64.mjs +0 -46
- package/dist/lib/browser/chunk-TDV6SJ64.mjs.map +0 -7
- package/dist/lib/browser/react-surface-XFSXU2JJ.mjs +0 -143
- package/dist/lib/browser/react-surface-XFSXU2JJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-K6CHLZYU.mjs +0 -48
- package/dist/lib/node-esm/chunk-K6CHLZYU.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-ZHPQBZWO.mjs +0 -144
- package/dist/lib/node-esm/react-surface-ZHPQBZWO.mjs.map +0 -7
- package/dist/types/src/types/schema.d.ts +0 -65
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/types/schema.ts +0 -45
|
@@ -1,8 +1,45 @@
|
|
|
1
|
-
import '@
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
declare const meta:
|
|
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
|
|
13
|
+
.Board.typename]: {
|
|
14
|
+
readonly 'typename label': "Board";
|
|
15
|
+
readonly 'typename label_zero': "Boards";
|
|
16
|
+
readonly 'typename label_one': "Board";
|
|
17
|
+
readonly 'typename label_other': "Boards";
|
|
18
|
+
readonly 'object name placeholder': "New board";
|
|
19
|
+
readonly 'rename object label': "Rename board";
|
|
20
|
+
readonly 'delete object label': "Delete board";
|
|
21
|
+
};
|
|
22
|
+
readonly [meta.id]: {
|
|
23
|
+
readonly 'plugin name': "Board";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
readonly 'en-US': {
|
|
28
|
+
readonly "react-ui-stack": {
|
|
29
|
+
readonly "resize label": "Drag to resize";
|
|
30
|
+
readonly "drag handle label": "Drag to rearrange";
|
|
31
|
+
readonly "pin start label": "Pin to the left sidebar";
|
|
32
|
+
readonly "pin end label": "Pin to the right sidebar";
|
|
33
|
+
readonly "increment start label": "Move to the left";
|
|
34
|
+
readonly "increment end label": "Move to the right";
|
|
35
|
+
readonly "close label": "Close";
|
|
36
|
+
readonly "minify label": "Minify";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
})[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
5
42
|
export default meta;
|
|
6
|
-
type Story = StoryObj<
|
|
43
|
+
type Story = StoryObj<typeof meta>;
|
|
7
44
|
export declare const Default: Story;
|
|
8
45
|
//# sourceMappingURL=BoardContainer.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoardContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/BoardContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"BoardContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/BoardContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAA8B,MAAM,OAAO,CAAC;AAkBnD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAkDjC,QAAA,MAAM,IAAI;;;;;;;;yBAlE4C,CAAQ,KAAK;qBACnE,KAAK,CAAE,QAAO,CAAC;;;;;;;;;yBAMf,CAAS,IAAG,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;CAwGf,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AAExB,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Obj, Type } from '@dxos/echo';
|
|
3
|
+
/**
|
|
4
|
+
* Board and layout.
|
|
5
|
+
*/
|
|
6
|
+
export declare const Board: Type.obj<Schema.Struct<{
|
|
7
|
+
name: Schema.optional<typeof Schema.String>;
|
|
8
|
+
items: Schema.mutable<Schema.Array$<Type.ref<Schema.Schema<Type.Expando, {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
id: string;
|
|
11
|
+
}, never>>>>;
|
|
12
|
+
layout: Schema.mutable<Schema.Struct<{
|
|
13
|
+
size: Schema.Struct<{
|
|
14
|
+
width: typeof Schema.Number;
|
|
15
|
+
height: typeof Schema.Number;
|
|
16
|
+
}>;
|
|
17
|
+
cells: Schema.mutable<Schema.Record$<typeof Schema.String, Schema.extend<Schema.Struct<{
|
|
18
|
+
x: typeof Schema.Number;
|
|
19
|
+
y: typeof Schema.Number;
|
|
20
|
+
}>, Schema.SchemaClass<{
|
|
21
|
+
readonly width?: number | undefined;
|
|
22
|
+
readonly height?: number | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
readonly width?: number | undefined;
|
|
25
|
+
readonly height?: number | undefined;
|
|
26
|
+
}, never>>>>;
|
|
27
|
+
}>>;
|
|
28
|
+
}>>;
|
|
29
|
+
export interface Board extends Schema.Schema.Type<typeof Board> {
|
|
30
|
+
}
|
|
31
|
+
export declare const makeBoard: (props?: Partial<Obj.MakeProps<typeof Board>>) => import("@dxos/live-object").Live<Type.OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
items: import("@dxos/echo/internal").Ref<Type.Expando>[];
|
|
34
|
+
layout: {
|
|
35
|
+
size: {
|
|
36
|
+
readonly width: number;
|
|
37
|
+
readonly height: number;
|
|
38
|
+
};
|
|
39
|
+
cells: {
|
|
40
|
+
[x: string]: {
|
|
41
|
+
readonly x: number;
|
|
42
|
+
readonly y: number;
|
|
43
|
+
} & {
|
|
44
|
+
readonly width?: number | undefined;
|
|
45
|
+
readonly height?: number | undefined;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
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
|
+
//# sourceMappingURL=Board.d.ts.map
|
|
@@ -0,0 +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,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMvC;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;0BAgCqF,CAAC;2BAA6C,CAAC;;0BAAqD,CAAC;2BAA6C,CAAC;;;GAtBzP,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;;;;;;;;;;;;;;;;;;;;;;;kCAakG,CAAC;mCAA6C,CAAC;;kCAAqD,CAAC;mCAA6C,CAAC;;;;;;AAX1P;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAO1B;CAAG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * as Board from './Board';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|