@dxos/plugin-kanban 0.8.4-main.5ea62a8 → 0.8.4-main.66e292d
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/{blueprint-definition-GFG7LX2C.mjs → blueprint-definition-UYVX622Q.mjs} +3 -3
- package/dist/lib/browser/{blueprint-definition-GFG7LX2C.mjs.map → blueprint-definition-UYVX622Q.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-NCNNL74W.mjs → chunk-B7EZTXV2.mjs} +35 -16
- package/dist/lib/browser/chunk-B7EZTXV2.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +25 -28
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-2IYZ7TZE.mjs → intent-resolver-ANBDVEJ2.mjs} +18 -15
- package/dist/lib/browser/intent-resolver-ANBDVEJ2.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-XRHHQ4OI.mjs → react-surface-7ONRKYBB.mjs} +63 -76
- package/dist/lib/browser/react-surface-7ONRKYBB.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +5 -3
- package/dist/lib/node-esm/{blueprint-definition-MIMDXMUM.mjs → blueprint-definition-42P47FUY.mjs} +3 -3
- package/dist/lib/node-esm/{blueprint-definition-MIMDXMUM.mjs.map → blueprint-definition-42P47FUY.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-5B3LKGA7.mjs → chunk-WBN5YQGD.mjs} +35 -16
- package/dist/lib/node-esm/chunk-WBN5YQGD.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +25 -28
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-T7CEL6EN.mjs → intent-resolver-X4UZDRI7.mjs} +18 -15
- package/dist/lib/node-esm/intent-resolver-X4UZDRI7.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-BTB5JAKG.mjs → react-surface-D7XTGTZL.mjs} +63 -76
- package/dist/lib/node-esm/react-surface-D7XTGTZL.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +5 -3
- package/dist/types/src/KanbanPlugin.d.ts +1 -1
- package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/KanbanContainer.d.ts +3 -3
- package/dist/types/src/components/KanbanContainer.d.ts.map +1 -1
- package/dist/types/src/components/KanbanContainer.stories.d.ts +23 -10
- package/dist/types/src/components/KanbanContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/KanbanViewEditor.d.ts +3 -3
- package/dist/types/src/components/KanbanViewEditor.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +0 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +21 -9
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +14 -43
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +41 -41
- package/src/KanbanPlugin.tsx +45 -51
- package/src/capabilities/artifact-definition.ts +9 -8
- package/src/capabilities/intent-resolver.ts +8 -13
- package/src/capabilities/react-surface.tsx +19 -20
- package/src/components/KanbanContainer.stories.tsx +41 -53
- package/src/components/KanbanContainer.tsx +14 -27
- package/src/components/KanbanViewEditor.tsx +18 -19
- package/src/meta.ts +7 -5
- package/src/translations.ts +5 -5
- package/src/types/schema.ts +22 -10
- package/dist/lib/browser/chunk-NCNNL74W.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-2IYZ7TZE.mjs.map +0 -7
- package/dist/lib/browser/react-surface-XRHHQ4OI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5B3LKGA7.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-T7CEL6EN.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-BTB5JAKG.mjs.map +0 -7
|
@@ -1,39 +1,52 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { Kanban } from '@dxos/react-ui-kanban/types';
|
|
5
3
|
declare const meta: {
|
|
6
4
|
title: string;
|
|
7
5
|
component: () => React.JSX.Element | null;
|
|
8
6
|
render: () => React.JSX.Element;
|
|
7
|
+
decorators: import("@storybook/react").Decorator[];
|
|
9
8
|
parameters: {
|
|
9
|
+
layout: string;
|
|
10
10
|
translations: [{
|
|
11
11
|
readonly 'en-US': {
|
|
12
|
-
readonly [
|
|
12
|
+
readonly [x: string]: {
|
|
13
13
|
readonly 'typename label': "Kanban";
|
|
14
14
|
readonly 'typename label_zero': "Kanbans";
|
|
15
15
|
readonly 'typename label_one': "Kanban";
|
|
16
16
|
readonly 'typename label_other': "Kanbans";
|
|
17
17
|
readonly 'object name placeholder': "New kanban";
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
readonly 'rename object label': "Rename kanban";
|
|
19
|
+
readonly 'delete object label': "Delete kanban";
|
|
20
|
+
readonly 'object deleted label': "Kanban deleted";
|
|
21
|
+
readonly 'plugin name'?: undefined;
|
|
22
|
+
readonly 'kanban title label'?: undefined;
|
|
23
|
+
readonly 'column title label'?: undefined;
|
|
24
|
+
readonly 'column title placeholder'?: undefined;
|
|
25
|
+
readonly 'add column label'?: undefined;
|
|
26
|
+
readonly 'delete column label'?: undefined;
|
|
27
|
+
readonly 'card field deleted label'?: undefined;
|
|
28
|
+
readonly 'card deleted label'?: undefined;
|
|
29
|
+
} | {
|
|
20
30
|
readonly 'plugin name': "Kanban";
|
|
21
31
|
readonly 'kanban title label': "Title";
|
|
22
32
|
readonly 'column title label': "Column title";
|
|
23
33
|
readonly 'column title placeholder': "New column";
|
|
24
|
-
readonly 'item title label': "Item title";
|
|
25
|
-
readonly 'item title placeholder': "New item";
|
|
26
34
|
readonly 'add column label': "Add column";
|
|
27
|
-
readonly 'add item label': "Add card";
|
|
28
35
|
readonly 'delete column label': "Delete column";
|
|
29
|
-
readonly 'delete item label': "Delete card";
|
|
30
36
|
readonly 'card field deleted label': "Card field deleted";
|
|
31
37
|
readonly 'card deleted label': "Card deleted";
|
|
38
|
+
readonly 'typename label'?: undefined;
|
|
39
|
+
readonly 'typename label_zero'?: undefined;
|
|
40
|
+
readonly 'typename label_one'?: undefined;
|
|
41
|
+
readonly 'typename label_other'?: undefined;
|
|
42
|
+
readonly 'object name placeholder'?: undefined;
|
|
43
|
+
readonly 'rename object label'?: undefined;
|
|
44
|
+
readonly 'delete object label'?: undefined;
|
|
45
|
+
readonly 'object deleted label'?: undefined;
|
|
32
46
|
};
|
|
33
47
|
};
|
|
34
48
|
}];
|
|
35
49
|
};
|
|
36
|
-
decorators: import("@storybook/react").Decorator[];
|
|
37
50
|
};
|
|
38
51
|
export default meta;
|
|
39
52
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"KanbanContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAsB,MAAM,OAAO,CAAC;AAyH3C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4C8B,CAAC;AAEzC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Kanban } from '@dxos/react-ui-kanban/types';
|
|
3
3
|
type KanbanViewEditorProps = {
|
|
4
|
-
|
|
4
|
+
object: Kanban.Kanban;
|
|
5
5
|
};
|
|
6
|
-
export declare const KanbanViewEditor: ({
|
|
6
|
+
export declare const KanbanViewEditor: ({ object }: KanbanViewEditorProps) => React.JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=KanbanViewEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanViewEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanViewEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAQpD,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"KanbanViewEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanViewEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAQpD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAK1D,KAAK,qBAAqB,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAA;CAAE,CAAC;AAEvD,eAAO,MAAM,gBAAgB,GAAI,YAAY,qBAAqB,sBAyCjE,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,eAAO,MAAM,IAAI,EAAE,UAWlB,CAAC"}
|
|
@@ -1,27 +1,39 @@
|
|
|
1
|
-
import { Kanban } from '@dxos/react-ui-kanban/types';
|
|
2
|
-
import { meta } from './meta';
|
|
3
1
|
export declare const translations: [{
|
|
4
2
|
readonly 'en-US': {
|
|
5
|
-
readonly [
|
|
3
|
+
readonly [x: string]: {
|
|
6
4
|
readonly 'typename label': "Kanban";
|
|
7
5
|
readonly 'typename label_zero': "Kanbans";
|
|
8
6
|
readonly 'typename label_one': "Kanban";
|
|
9
7
|
readonly 'typename label_other': "Kanbans";
|
|
10
8
|
readonly 'object name placeholder': "New kanban";
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
readonly 'rename object label': "Rename kanban";
|
|
10
|
+
readonly 'delete object label': "Delete kanban";
|
|
11
|
+
readonly 'object deleted label': "Kanban deleted";
|
|
12
|
+
readonly 'plugin name'?: undefined;
|
|
13
|
+
readonly 'kanban title label'?: undefined;
|
|
14
|
+
readonly 'column title label'?: undefined;
|
|
15
|
+
readonly 'column title placeholder'?: undefined;
|
|
16
|
+
readonly 'add column label'?: undefined;
|
|
17
|
+
readonly 'delete column label'?: undefined;
|
|
18
|
+
readonly 'card field deleted label'?: undefined;
|
|
19
|
+
readonly 'card deleted label'?: undefined;
|
|
20
|
+
} | {
|
|
13
21
|
readonly 'plugin name': "Kanban";
|
|
14
22
|
readonly 'kanban title label': "Title";
|
|
15
23
|
readonly 'column title label': "Column title";
|
|
16
24
|
readonly 'column title placeholder': "New column";
|
|
17
|
-
readonly 'item title label': "Item title";
|
|
18
|
-
readonly 'item title placeholder': "New item";
|
|
19
25
|
readonly 'add column label': "Add column";
|
|
20
|
-
readonly 'add item label': "Add card";
|
|
21
26
|
readonly 'delete column label': "Delete column";
|
|
22
|
-
readonly 'delete item label': "Delete card";
|
|
23
27
|
readonly 'card field deleted label': "Card field deleted";
|
|
24
28
|
readonly 'card deleted label': "Card deleted";
|
|
29
|
+
readonly 'typename label'?: undefined;
|
|
30
|
+
readonly 'typename label_zero'?: undefined;
|
|
31
|
+
readonly 'typename label_one'?: undefined;
|
|
32
|
+
readonly 'typename label_other'?: undefined;
|
|
33
|
+
readonly 'object name placeholder'?: undefined;
|
|
34
|
+
readonly 'rename object label'?: undefined;
|
|
35
|
+
readonly 'delete object label'?: undefined;
|
|
36
|
+
readonly 'object deleted label'?: undefined;
|
|
25
37
|
};
|
|
26
38
|
};
|
|
27
39
|
}];
|
|
@@ -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":"AAUA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBM,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Kanban } from '@dxos/react-ui-kanban/types';
|
|
3
|
+
import { View } from '@dxos/schema';
|
|
2
4
|
/**
|
|
3
5
|
* Kanban data model.
|
|
4
6
|
* A Kanban board is a collection of columns, each of which contains a collection of items.
|
|
@@ -8,14 +10,17 @@ import { Schema } from 'effect';
|
|
|
8
10
|
* by the model (e.g., a query of items based on metadata within a column object).
|
|
9
11
|
*/
|
|
10
12
|
export declare const PivotColumnAnnotationId: unique symbol;
|
|
13
|
+
export declare const SettingsSchema: Schema.Struct<{
|
|
14
|
+
columnFieldId: Schema.SchemaClass<string, string, never>;
|
|
15
|
+
}>;
|
|
11
16
|
export declare const CreateKanbanSchema: Schema.Struct<{
|
|
12
17
|
name: Schema.optional<typeof Schema.String>;
|
|
13
18
|
typename: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
14
19
|
initialPivotColumn: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
15
20
|
}>;
|
|
16
21
|
export declare namespace KanbanAction {
|
|
17
|
-
const Create_base: Schema.TaggedClass<Create,
|
|
18
|
-
readonly _tag: Schema.tag
|
|
22
|
+
const Create_base: Schema.TaggedClass<Create, `${string}/create`, {
|
|
23
|
+
readonly _tag: Schema.tag<`${string}/create`>;
|
|
19
24
|
} & {
|
|
20
25
|
input: Schema.extend<Schema.Struct<{
|
|
21
26
|
space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
|
|
@@ -25,50 +30,16 @@ export declare namespace KanbanAction {
|
|
|
25
30
|
initialPivotColumn: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
26
31
|
}>>;
|
|
27
32
|
output: Schema.Struct<{
|
|
28
|
-
object:
|
|
29
|
-
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
30
|
-
query: Schema.Schema<import("@dxos/echo-schema").QueryType, import("@dxos/echo-schema").QueryType, never>;
|
|
31
|
-
projection: Schema.mutable<Schema.Struct<{
|
|
32
|
-
schema: Schema.optional<Schema.Schema<import("@dxos/echo-schema").JsonSchemaType, import("@dxos/echo-schema").JsonSchemaType, never>>;
|
|
33
|
-
fields: Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
|
|
34
|
-
id: typeof Schema.String;
|
|
35
|
-
path: Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
36
|
-
visible: Schema.optional<typeof Schema.Boolean>;
|
|
37
|
-
referencePath: Schema.optional<Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
38
|
-
}>>>>;
|
|
39
|
-
pivotFieldId: Schema.optional<typeof Schema.String>;
|
|
40
|
-
}>>;
|
|
41
|
-
presentation: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo/Type").Expando, {
|
|
42
|
-
[x: string]: any;
|
|
43
|
-
id: string;
|
|
44
|
-
}, never>>;
|
|
45
|
-
}>>;
|
|
33
|
+
object: Schema.Schema<Kanban.Kanban, Kanban.KanbanEncoded, never>;
|
|
46
34
|
}>;
|
|
47
35
|
}>;
|
|
48
36
|
export class Create extends Create_base {
|
|
49
37
|
}
|
|
50
|
-
const DeleteCardField_base: Schema.TaggedClass<DeleteCardField,
|
|
51
|
-
readonly _tag: Schema.tag
|
|
38
|
+
const DeleteCardField_base: Schema.TaggedClass<DeleteCardField, `${string}/delete-card-field`, {
|
|
39
|
+
readonly _tag: Schema.tag<`${string}/delete-card-field`>;
|
|
52
40
|
} & {
|
|
53
41
|
input: Schema.Struct<{
|
|
54
|
-
view:
|
|
55
|
-
name: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
56
|
-
query: Schema.Schema<import("@dxos/echo-schema").QueryType, import("@dxos/echo-schema").QueryType, never>;
|
|
57
|
-
projection: Schema.mutable<Schema.Struct<{
|
|
58
|
-
schema: Schema.optional<Schema.Schema<import("@dxos/echo-schema").JsonSchemaType, import("@dxos/echo-schema").JsonSchemaType, never>>;
|
|
59
|
-
fields: Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
|
|
60
|
-
id: typeof Schema.String;
|
|
61
|
-
path: Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
|
|
62
|
-
visible: Schema.optional<typeof Schema.Boolean>;
|
|
63
|
-
referencePath: Schema.optional<Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
|
|
64
|
-
}>>>>;
|
|
65
|
-
pivotFieldId: Schema.optional<typeof Schema.String>;
|
|
66
|
-
}>>;
|
|
67
|
-
presentation: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo/Type").Expando, {
|
|
68
|
-
[x: string]: any;
|
|
69
|
-
id: string;
|
|
70
|
-
}, never>>;
|
|
71
|
-
}>>;
|
|
42
|
+
view: Schema.Schema<View.View, View.ViewEncoded, never>;
|
|
72
43
|
fieldId: typeof Schema.String;
|
|
73
44
|
deletionData: Schema.optional<Schema.Struct<{
|
|
74
45
|
field: Schema.mutable<Schema.Struct<{
|
|
@@ -85,8 +56,8 @@ export declare namespace KanbanAction {
|
|
|
85
56
|
}>;
|
|
86
57
|
export class DeleteCardField extends DeleteCardField_base {
|
|
87
58
|
}
|
|
88
|
-
const DeleteCard_base: Schema.TaggedClass<DeleteCard,
|
|
89
|
-
readonly _tag: Schema.tag
|
|
59
|
+
const DeleteCard_base: Schema.TaggedClass<DeleteCard, `${string}/delete-card`, {
|
|
60
|
+
readonly _tag: Schema.tag<`${string}/delete-card`>;
|
|
90
61
|
} & {
|
|
91
62
|
input: Schema.Struct<{
|
|
92
63
|
card: typeof Schema.Any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAe,IAAI,EAAE,MAAM,cAAc,CAAC;AAIjD;;;;;;;GAOG;AAGH,eAAO,MAAM,uBAAuB,eAA2D,CAAC;AAEhG,eAAO,MAAM,cAAc;;EAIzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;EAkB7B,CAAC;AAEH,yBAAiB,YAAY,CAAC;;;;;;;;;;;;;;;IAG5B,MAAM,OAAO,MAAO,SAAQ,WAK1B;KAAG;;;;;;;;;;;;;;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAgBnC;KAAG;;;;;;;;;IAEL,MAAM,OAAO,UAAW,SAAQ,eAK9B;KAAG;;CACN"}
|