@dxos/plugin-kanban 0.8.4-main.ae835ea → 0.8.4-main.bc674ce

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.
Files changed (120) hide show
  1. package/dist/lib/browser/blueprint-definition-T2544VMJ.mjs +17 -0
  2. package/dist/lib/browser/blueprint-definition-T2544VMJ.mjs.map +7 -0
  3. package/dist/lib/browser/blueprints/index.mjs +8 -0
  4. package/dist/lib/browser/blueprints/index.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  6. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-L6N4ZDZ7.mjs +35 -0
  8. package/dist/lib/browser/chunk-L6N4ZDZ7.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-XYQO4VL7.mjs +150 -0
  10. package/dist/lib/browser/chunk-XYQO4VL7.mjs.map +7 -0
  11. package/dist/lib/browser/index.mjs +58 -65
  12. package/dist/lib/browser/index.mjs.map +4 -4
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/operation-resolver-UEJHX42A.mjs +162 -0
  15. package/dist/lib/browser/operation-resolver-UEJHX42A.mjs.map +7 -0
  16. package/dist/lib/browser/react-surface-LFUJAPRL.mjs +236 -0
  17. package/dist/lib/browser/react-surface-LFUJAPRL.mjs.map +7 -0
  18. package/dist/lib/browser/types/index.mjs +8 -5
  19. package/dist/lib/node-esm/blueprint-definition-APJQFSHJ.mjs +18 -0
  20. package/dist/lib/node-esm/blueprint-definition-APJQFSHJ.mjs.map +7 -0
  21. package/dist/lib/node-esm/blueprints/index.mjs +9 -0
  22. package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
  23. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  24. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  25. package/dist/lib/node-esm/chunk-NN6JMKIT.mjs +152 -0
  26. package/dist/lib/node-esm/chunk-NN6JMKIT.mjs.map +7 -0
  27. package/dist/lib/node-esm/chunk-ZHRMUKTF.mjs +36 -0
  28. package/dist/lib/node-esm/chunk-ZHRMUKTF.mjs.map +7 -0
  29. package/dist/lib/node-esm/index.mjs +58 -65
  30. package/dist/lib/node-esm/index.mjs.map +4 -4
  31. package/dist/lib/node-esm/meta.json +1 -1
  32. package/dist/lib/node-esm/operation-resolver-5RPWHZCF.mjs +163 -0
  33. package/dist/lib/node-esm/operation-resolver-5RPWHZCF.mjs.map +7 -0
  34. package/dist/lib/node-esm/react-surface-7TSGBRJL.mjs +237 -0
  35. package/dist/lib/node-esm/react-surface-7TSGBRJL.mjs.map +7 -0
  36. package/dist/lib/node-esm/types/index.mjs +8 -5
  37. package/dist/types/src/KanbanPlugin.d.ts +2 -1
  38. package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
  39. package/dist/types/src/blueprints/index.d.ts +2 -0
  40. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  41. package/dist/types/src/blueprints/kanban-blueprint.d.ts +22 -0
  42. package/dist/types/src/blueprints/kanban-blueprint.d.ts.map +1 -0
  43. package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts +12 -0
  44. package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts.map +1 -0
  45. package/dist/types/src/capabilities/artifact-definition/index.d.ts +3 -0
  46. package/dist/types/src/capabilities/artifact-definition/index.d.ts.map +1 -0
  47. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +9 -0
  48. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
  49. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
  50. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
  51. package/dist/types/src/capabilities/index.d.ts +3 -3
  52. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  53. package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
  54. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  55. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
  56. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  57. package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
  58. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  59. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
  60. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  61. package/dist/types/src/components/KanbanContainer.d.ts +4 -5
  62. package/dist/types/src/components/KanbanContainer.d.ts.map +1 -1
  63. package/dist/types/src/components/KanbanContainer.stories.d.ts +46 -12
  64. package/dist/types/src/components/KanbanContainer.stories.d.ts.map +1 -1
  65. package/dist/types/src/components/KanbanViewEditor.d.ts +3 -3
  66. package/dist/types/src/components/KanbanViewEditor.d.ts.map +1 -1
  67. package/dist/types/src/meta.d.ts +2 -2
  68. package/dist/types/src/meta.d.ts.map +1 -1
  69. package/dist/types/src/translations.d.ts +21 -9
  70. package/dist/types/src/translations.d.ts.map +1 -1
  71. package/dist/types/src/types/schema.d.ts +98 -43
  72. package/dist/types/src/types/schema.d.ts.map +1 -1
  73. package/dist/types/tsconfig.tsbuildinfo +1 -1
  74. package/package.json +63 -47
  75. package/src/KanbanPlugin.tsx +34 -53
  76. package/src/blueprints/index.ts +5 -0
  77. package/src/blueprints/kanban-blueprint.ts +24 -0
  78. package/src/capabilities/artifact-definition/artifact-definition.ts +150 -0
  79. package/src/capabilities/artifact-definition/index.ts +7 -0
  80. package/src/capabilities/blueprint-definition/blueprint-definition.ts +23 -0
  81. package/src/capabilities/blueprint-definition/index.ts +7 -0
  82. package/src/capabilities/index.ts +3 -5
  83. package/src/capabilities/operation-resolver/index.ts +7 -0
  84. package/src/capabilities/operation-resolver/operation-resolver.ts +133 -0
  85. package/src/capabilities/react-surface/index.ts +7 -0
  86. package/src/capabilities/react-surface/react-surface.tsx +86 -0
  87. package/src/components/KanbanContainer.stories.tsx +197 -104
  88. package/src/components/KanbanContainer.tsx +37 -46
  89. package/src/components/KanbanViewEditor.tsx +36 -41
  90. package/src/meta.ts +2 -2
  91. package/src/translations.ts +5 -5
  92. package/src/types/schema.ts +84 -38
  93. package/dist/lib/browser/blueprint-definition-UYVX622Q.mjs +0 -28
  94. package/dist/lib/browser/blueprint-definition-UYVX622Q.mjs.map +0 -7
  95. package/dist/lib/browser/chunk-3UDST345.mjs +0 -85
  96. package/dist/lib/browser/chunk-3UDST345.mjs.map +0 -7
  97. package/dist/lib/browser/intent-resolver-VVBNS2TO.mjs +0 -111
  98. package/dist/lib/browser/intent-resolver-VVBNS2TO.mjs.map +0 -7
  99. package/dist/lib/browser/react-surface-FNXJ6VJX.mjs +0 -255
  100. package/dist/lib/browser/react-surface-FNXJ6VJX.mjs.map +0 -7
  101. package/dist/lib/node-esm/blueprint-definition-42P47FUY.mjs +0 -30
  102. package/dist/lib/node-esm/blueprint-definition-42P47FUY.mjs.map +0 -7
  103. package/dist/lib/node-esm/chunk-JBOARUAT.mjs +0 -87
  104. package/dist/lib/node-esm/chunk-JBOARUAT.mjs.map +0 -7
  105. package/dist/lib/node-esm/intent-resolver-ACN7UALP.mjs +0 -112
  106. package/dist/lib/node-esm/intent-resolver-ACN7UALP.mjs.map +0 -7
  107. package/dist/lib/node-esm/react-surface-ZHYHCV5N.mjs +0 -256
  108. package/dist/lib/node-esm/react-surface-ZHYHCV5N.mjs.map +0 -7
  109. package/dist/types/src/capabilities/artifact-definition.d.ts +0 -11
  110. package/dist/types/src/capabilities/artifact-definition.d.ts.map +0 -1
  111. package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -5
  112. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
  113. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  114. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  115. package/dist/types/src/capabilities/react-surface.d.ts +0 -4
  116. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  117. package/src/capabilities/artifact-definition.ts +0 -148
  118. package/src/capabilities/blueprint-definition.ts +0 -30
  119. package/src/capabilities/intent-resolver.ts +0 -71
  120. package/src/capabilities/react-surface.tsx +0 -84
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;;AAWzD,wBAkEE"}
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import { type DataType } from '@dxos/schema';
3
- export declare const KanbanContainer: ({ view }: {
4
- view: DataType.View;
5
- role: string;
6
- }) => React.JSX.Element;
2
+ import { type SurfaceComponentProps } from '@dxos/app-framework/react';
3
+ import { type Kanban } from '@dxos/react-ui-kanban/types';
4
+ export type KanbanContainerProps = SurfaceComponentProps<Kanban.Kanban>;
5
+ export declare const KanbanContainer: ({ role, subject: object }: KanbanContainerProps) => React.JSX.Element;
7
6
  //# sourceMappingURL=KanbanContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAUzE,OAAO,EAAE,KAAK,QAAQ,EAAyC,MAAM,cAAc,CAAC;AAIpF,eAAO,MAAM,eAAe,GAAI,UAAU;IAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,sBA4E9E,CAAC"}
1
+ {"version":3,"file":"KanbanContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAG5E,OAAO,EAAE,KAAK,qBAAqB,EAAwC,MAAM,2BAA2B,CAAC;AAK7G,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAM1D,MAAM,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAExE,eAAO,MAAM,eAAe,GAAI,2BAA2B,oBAAoB,sBAgE9E,CAAC"}
@@ -1,41 +1,75 @@
1
- import { type StoryObj } from '@storybook/react-vite';
1
+ import { type Decorator, type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
- import { Kanban } from '@dxos/react-ui-kanban/types';
4
3
  declare const meta: {
5
4
  title: string;
6
5
  component: () => React.JSX.Element | null;
7
6
  render: () => React.JSX.Element;
8
- decorators: import("@storybook/react").Decorator[];
7
+ decorators: Decorator[];
9
8
  parameters: {
10
9
  layout: string;
11
- translations: [{
10
+ translations: ({
12
11
  readonly 'en-US': {
13
- readonly [Kanban.Kanban.typename]: {
12
+ readonly [x: string]: {
14
13
  readonly 'typename label': "Kanban";
15
14
  readonly 'typename label_zero': "Kanbans";
16
15
  readonly 'typename label_one': "Kanban";
17
16
  readonly 'typename label_other': "Kanbans";
18
17
  readonly 'object name placeholder': "New kanban";
19
- };
20
- readonly [meta.id]: {
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
+ } | {
21
30
  readonly 'plugin name': "Kanban";
22
31
  readonly 'kanban title label': "Title";
23
32
  readonly 'column title label': "Column title";
24
33
  readonly 'column title placeholder': "New column";
25
- readonly 'item title label': "Item title";
26
- readonly 'item title placeholder': "New item";
27
34
  readonly 'add column label': "Add column";
28
- readonly 'add item label': "Add card";
29
35
  readonly 'delete column label': "Delete column";
30
- readonly 'delete item label': "Delete card";
31
36
  readonly 'card field deleted label': "Card field deleted";
32
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;
46
+ };
47
+ };
48
+ } | {
49
+ readonly 'en-US': {
50
+ readonly "@dxos/react-ui-kanban": {
51
+ readonly "add card label": "Add card";
52
+ readonly "add column label": "Add column";
53
+ readonly "new column name label": "New column name";
54
+ readonly "remove card label": "Remove card";
55
+ readonly "remove empty column label": "Remove empty column";
56
+ readonly "column drag handle label": "Drag to rearrange";
57
+ readonly "action menu label": "Action menu";
33
58
  };
34
59
  };
35
- }];
60
+ })[];
36
61
  };
37
62
  };
38
63
  export default meta;
39
64
  type Story = StoryObj<typeof meta>;
65
+ /**
66
+ * Default story using static runtime schema (immutable).
67
+ * Schema mutations are not allowed.
68
+ */
40
69
  export declare const Default: Story;
70
+ /**
71
+ * Story variant that uses a mutable database schema (EchoSchema).
72
+ * This allows testing schema mutations like adding/removing fields.
73
+ */
74
+ export declare const MutableSchema: Story;
41
75
  //# sourceMappingURL=KanbanContainer.stories.d.ts.map
@@ -1 +1 @@
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,KAA2C,MAAM,OAAO,CAAC;AAkBhE,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAwHrD,QAAA,MAAM,IAAI;;;;;;;;;yBAxIyC,CAAQ,MAAM,CAAC,MAC9D,CAAC,QAAQ,CAAC;;;;;;;yBAIK,CAAQ,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;CA8KK,CAAC;AAEzC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
1
+ {"version":3,"file":"KanbanContainer.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanContainer.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,KAAkC,MAAM,OAAO,CAAC;AAgKvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS+B,CAAC;AAE1C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAmErB,CAAC;AAEF;;;GAGG;AAKH,eAAO,MAAM,aAAa,EAAE,KAsB3B,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { type DataType } from '@dxos/schema';
2
+ import { type Kanban } from '@dxos/react-ui-kanban/types';
3
3
  type KanbanViewEditorProps = {
4
- view: DataType.View;
4
+ object: Kanban.Kanban;
5
5
  };
6
- export declare const KanbanViewEditor: ({ view }: KanbanViewEditorProps) => React.JSX.Element;
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,QAAQ,EAAyC,MAAM,cAAc,CAAC;AAEpF,KAAK,qBAAqB,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAA;CAAE,CAAC;AAErD,eAAO,MAAM,gBAAgB,GAAI,UAAU,qBAAqB,sBA+C/D,CAAC"}
1
+ {"version":3,"file":"KanbanViewEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/KanbanViewEditor.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAQhE,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,sBAsCjE,CAAC"}
@@ -1,3 +1,3 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const meta: PluginMeta;
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,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,eAAO,MAAM,IAAI,EAAE,UAWlB,CAAC"}
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"}
@@ -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 [Kanban.Kanban.typename]: {
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
- readonly [meta.id]: {
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":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;;;;;;UAMvB;QACD,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;UAaR;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBM,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import * as Schema from 'effect/Schema';
2
- import { DataType } from '@dxos/schema';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { View } from '@dxos/schema';
3
4
  /**
4
5
  * Kanban data model.
5
6
  * A Kanban board is a collection of columns, each of which contains a collection of items.
@@ -9,59 +10,113 @@ import { DataType } from '@dxos/schema';
9
10
  * by the model (e.g., a query of items based on metadata within a column object).
10
11
  */
11
12
  export declare const PivotColumnAnnotationId: unique symbol;
13
+ export declare const SettingsSchema: Schema.Struct<{
14
+ columnFieldId: Schema.SchemaClass<string, string, never>;
15
+ }>;
12
16
  export declare const CreateKanbanSchema: Schema.Struct<{
13
17
  name: Schema.optional<typeof Schema.String>;
14
18
  typename: Schema.optional<Schema.SchemaClass<string, string, never>>;
15
19
  initialPivotColumn: Schema.optional<Schema.SchemaClass<string, string, never>>;
16
20
  }>;
17
- export declare namespace KanbanAction {
18
- const Create_base: Schema.TaggedClass<Create, `${string}/create`, {
19
- readonly _tag: Schema.tag<`${string}/create`>;
20
- } & {
21
- input: Schema.extend<Schema.Struct<{
22
- space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
23
- }>, Schema.Struct<{
24
- name: Schema.optional<typeof Schema.String>;
25
- typename: Schema.optional<Schema.SchemaClass<string, string, never>>;
26
- initialPivotColumn: Schema.optional<Schema.SchemaClass<string, string, never>>;
27
- }>>;
28
- output: Schema.Struct<{
29
- object: Schema.Schema<DataType.View, import("@dxos/schema").ViewEncoded, never>;
21
+ export declare namespace KanbanOperation {
22
+ const DeleteCardFieldOutput: Schema.Struct<{
23
+ field: Schema.Struct<{
24
+ id: typeof Schema.String;
25
+ path: Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
26
+ visible: Schema.optional<typeof Schema.Boolean>;
27
+ referencePath: Schema.optional<Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
30
28
  }>;
29
+ props: Schema.SchemaClass<any, any, never>;
30
+ index: Schema.SchemaClass<number, number, never>;
31
31
  }>;
32
- export class Create extends Create_base {
33
- }
34
- const DeleteCardField_base: Schema.TaggedClass<DeleteCardField, `${string}/delete-card-field`, {
35
- readonly _tag: Schema.tag<`${string}/delete-card-field`>;
36
- } & {
37
- input: Schema.Struct<{
38
- view: Schema.Schema<DataType.View, import("@dxos/schema").ViewEncoded, never>;
39
- fieldId: typeof Schema.String;
40
- deletionData: Schema.optional<Schema.Struct<{
41
- field: Schema.mutable<Schema.Struct<{
32
+ type DeleteCardFieldOutput = Schema.Schema.Type<typeof DeleteCardFieldOutput>;
33
+ const DeleteCardField: Omit<{
34
+ readonly meta: {
35
+ readonly key: `${string}/delete-card-field`;
36
+ readonly name: "Delete Card Field";
37
+ };
38
+ readonly services: readonly [typeof Capability.Service];
39
+ readonly schema: {
40
+ readonly input: Schema.Struct<{
41
+ view: import("@dxos/echo/Type").Obj<View.View, Schema.Struct.Fields>;
42
+ fieldId: typeof Schema.String;
43
+ }>;
44
+ readonly output: Schema.Struct<{
45
+ field: Schema.Struct<{
42
46
  id: typeof Schema.String;
43
47
  path: Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
44
48
  visible: Schema.optional<typeof Schema.Boolean>;
45
49
  referencePath: Schema.optional<Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
46
- }>>;
47
- props: typeof Schema.Any;
48
- index: typeof Schema.Number;
49
- }>>;
50
- }>;
51
- output: typeof Schema.Void;
52
- }>;
53
- export class DeleteCardField extends DeleteCardField_base {
54
- }
55
- const DeleteCard_base: Schema.TaggedClass<DeleteCard, `${string}/delete-card`, {
56
- readonly _tag: Schema.tag<`${string}/delete-card`>;
57
- } & {
58
- input: Schema.Struct<{
59
- card: typeof Schema.Any;
60
- }>;
61
- output: typeof Schema.Void;
50
+ }>;
51
+ props: Schema.SchemaClass<any, any, never>;
52
+ index: Schema.SchemaClass<number, number, never>;
53
+ }>;
54
+ };
55
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
56
+ readonly executionMode: "sync" | "async";
57
+ };
58
+ const DeleteCardOutput: Schema.Struct<{
59
+ card: Schema.SchemaClass<any, any, never>;
62
60
  }>;
63
- export class DeleteCard extends DeleteCard_base {
64
- }
65
- export {};
61
+ type DeleteCardOutput = Schema.Schema.Type<typeof DeleteCardOutput>;
62
+ const DeleteCard: Omit<{
63
+ readonly meta: {
64
+ readonly key: `${string}/delete-card`;
65
+ readonly name: "Delete Card";
66
+ };
67
+ readonly schema: {
68
+ readonly input: Schema.Struct<{
69
+ card: typeof Schema.Any;
70
+ }>;
71
+ readonly output: Schema.Struct<{
72
+ card: Schema.SchemaClass<any, any, never>;
73
+ }>;
74
+ };
75
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
76
+ readonly executionMode: "sync" | "async";
77
+ };
78
+ /**
79
+ * Restore a deleted card field (inverse of DeleteCardField).
80
+ */
81
+ const RestoreCardField: Omit<{
82
+ readonly meta: {
83
+ readonly key: `${string}/restore-card-field`;
84
+ readonly name: "Restore Card Field";
85
+ };
86
+ readonly services: readonly [typeof Capability.Service];
87
+ readonly schema: {
88
+ readonly input: Schema.Struct<{
89
+ view: import("@dxos/echo/Type").Obj<View.View, Schema.Struct.Fields>;
90
+ field: Schema.Struct<{
91
+ id: typeof Schema.String;
92
+ path: Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>;
93
+ visible: Schema.optional<typeof Schema.Boolean>;
94
+ referencePath: Schema.optional<Schema.Schema<import("@dxos/effect").JsonPath, import("@dxos/effect").JsonPath, never>>;
95
+ }>;
96
+ props: Schema.SchemaClass<any, any, never>;
97
+ index: Schema.SchemaClass<number, number, never>;
98
+ }>;
99
+ readonly output: typeof Schema.Void;
100
+ };
101
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
102
+ readonly executionMode: "sync" | "async";
103
+ };
104
+ /**
105
+ * Restore a deleted card (inverse of DeleteCard).
106
+ */
107
+ const RestoreCard: Omit<{
108
+ readonly meta: {
109
+ readonly key: `${string}/restore-card`;
110
+ readonly name: "Restore Card";
111
+ };
112
+ readonly schema: {
113
+ readonly input: Schema.Struct<{
114
+ card: Schema.SchemaClass<any, any, never>;
115
+ }>;
116
+ readonly output: typeof Schema.Void;
117
+ };
118
+ }, "executionMode"> & import("effect/Pipeable").Pipeable & {
119
+ readonly executionMode: "sync" | "async";
120
+ };
66
121
  }
67
122
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,QAAQ,EAAqC,MAAM,cAAc,CAAC;AAI3E;;;;;;;GAOG;AAGH,eAAO,MAAM,uBAAuB,eAA2D,CAAC;AAEhG,eAAO,MAAM,kBAAkB;;;;EAc7B,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"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,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;AAIH,yBAAiB,eAAe,CAAC;IACxB,MAAM,qBAAqB;;;;;;;;;MAIhC,CAAC;IAEH,KAAY,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAE9E,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;KAU1B,CAAC;IAEI,MAAM,gBAAgB;;MAE3B,CAAC;IAEH,KAAY,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;IAEpE,MAAM,UAAU;;;;;;;;;;;;;;;KAQrB,CAAC;IAEH;;OAEG;IACI,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;KAY3B,CAAC;IAEH;;OAEG;IACI,MAAM,WAAW;;;;;;;;;;;;;KAQtB,CAAC;CACJ"}