@dxos/plugin-kanban 0.8.4-main.74a063c4e0 → 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.
Files changed (251) hide show
  1. package/LICENSE +102 -5
  2. package/README.md +1 -1
  3. package/dist/lib/neutral/KanbanArticle-NEJ3LNBO.mjs +132 -0
  4. package/dist/lib/neutral/KanbanArticle-NEJ3LNBO.mjs.map +7 -0
  5. package/dist/lib/neutral/KanbanPlugin.mjs +36 -0
  6. package/dist/lib/neutral/KanbanPlugin.mjs.map +7 -0
  7. package/dist/lib/neutral/KanbanPlugin.node.mjs +27 -0
  8. package/dist/lib/neutral/KanbanPlugin.node.mjs.map +7 -0
  9. package/dist/lib/neutral/KanbanSettings-G6M47NSK.mjs +83 -0
  10. package/dist/lib/neutral/KanbanSettings-G6M47NSK.mjs.map +7 -0
  11. package/dist/lib/neutral/blueprint-definition-FHVIEKTQ.mjs +15 -0
  12. package/dist/lib/neutral/blueprint-definition-FHVIEKTQ.mjs.map +7 -0
  13. package/dist/lib/neutral/blueprints/index.mjs +8 -0
  14. package/dist/lib/neutral/capabilities/index.mjs +19 -0
  15. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  16. package/dist/lib/neutral/chunk-BGWIKRS5.mjs +8 -0
  17. package/dist/lib/neutral/chunk-BGWIKRS5.mjs.map +7 -0
  18. package/dist/lib/neutral/chunk-KDPM77BD.mjs +21 -0
  19. package/dist/lib/neutral/chunk-KDPM77BD.mjs.map +7 -0
  20. package/dist/lib/neutral/chunk-OQ72EEGU.mjs +254 -0
  21. package/dist/lib/neutral/chunk-OQ72EEGU.mjs.map +7 -0
  22. package/dist/lib/{browser/blueprints/index.mjs → neutral/chunk-ZTQW5KQS.mjs} +4 -5
  23. package/dist/lib/neutral/chunk-ZTQW5KQS.mjs.map +7 -0
  24. package/dist/lib/neutral/components/index.mjs +243 -0
  25. package/dist/lib/neutral/components/index.mjs.map +7 -0
  26. package/dist/lib/neutral/containers/index.mjs +11 -0
  27. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  28. package/dist/lib/neutral/create-object-DKBSI46K.mjs +40 -0
  29. package/dist/lib/neutral/create-object-DKBSI46K.mjs.map +7 -0
  30. package/dist/lib/{browser/delete-card-VPNVIWOA.mjs → neutral/delete-card-356CBACE.mjs} +6 -14
  31. package/dist/lib/neutral/delete-card-356CBACE.mjs.map +7 -0
  32. package/dist/lib/{browser/delete-card-field-4HHF2GYX.mjs → neutral/delete-card-field-IRCZL2BR.mjs} +6 -14
  33. package/dist/lib/neutral/delete-card-field-IRCZL2BR.mjs.map +7 -0
  34. package/dist/lib/neutral/hooks/index.mjs +432 -0
  35. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  36. package/dist/lib/neutral/index.mjs +34 -0
  37. package/dist/lib/neutral/index.mjs.map +7 -0
  38. package/dist/lib/neutral/meta.json +1 -0
  39. package/dist/lib/neutral/meta.mjs +8 -0
  40. package/dist/lib/neutral/meta.mjs.map +7 -0
  41. package/dist/lib/neutral/migrations-IWBT35UT.mjs +31 -0
  42. package/dist/lib/neutral/migrations-IWBT35UT.mjs.map +7 -0
  43. package/dist/lib/neutral/operation-handler-B7IW6MXU.mjs +13 -0
  44. package/dist/lib/neutral/operation-handler-B7IW6MXU.mjs.map +7 -0
  45. package/dist/lib/neutral/operations/index.mjs +8 -0
  46. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  47. package/dist/lib/neutral/plugin.mjs +16 -0
  48. package/dist/lib/neutral/plugin.mjs.map +7 -0
  49. package/dist/lib/neutral/react-surface-QROEHBRW.mjs +93 -0
  50. package/dist/lib/neutral/react-surface-QROEHBRW.mjs.map +7 -0
  51. package/dist/lib/{browser/restore-card-4GG2RYKR.mjs → neutral/restore-card-P25Y4YSE.mjs} +6 -14
  52. package/dist/lib/neutral/restore-card-P25Y4YSE.mjs.map +7 -0
  53. package/dist/lib/{browser/restore-card-field-3T26ACYX.mjs → neutral/restore-card-field-NHR3R4XI.mjs} +6 -14
  54. package/dist/lib/neutral/restore-card-field-NHR3R4XI.mjs.map +7 -0
  55. package/dist/lib/neutral/testing/index.mjs +60 -0
  56. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  57. package/dist/lib/neutral/translations.mjs +44 -0
  58. package/dist/lib/neutral/translations.mjs.map +7 -0
  59. package/dist/lib/neutral/types/index.mjs +22 -0
  60. package/dist/lib/neutral/types/index.mjs.map +7 -0
  61. package/dist/lib/neutral/undo-mappings-6CHW6BOF.mjs +42 -0
  62. package/dist/lib/neutral/undo-mappings-6CHW6BOF.mjs.map +7 -0
  63. package/dist/types/src/KanbanPlugin.d.ts +1 -0
  64. package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
  65. package/dist/types/src/KanbanPlugin.node.d.ts +4 -0
  66. package/dist/types/src/KanbanPlugin.node.d.ts.map +1 -0
  67. package/dist/types/src/KanbanPlugin.test.d.ts +2 -0
  68. package/dist/types/src/KanbanPlugin.test.d.ts.map +1 -0
  69. package/dist/types/src/blueprints/kanban-blueprint.d.ts +2 -2
  70. package/dist/types/src/blueprints/kanban-blueprint.d.ts.map +1 -1
  71. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
  72. package/dist/types/src/capabilities/blueprint-definition.d.ts +2 -2
  73. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
  74. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  75. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  76. package/dist/types/src/capabilities/index.d.ts +9 -2
  77. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  78. package/dist/types/src/capabilities/migrations.d.ts +6 -0
  79. package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
  80. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  81. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  82. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  83. package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -1
  84. package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts +9 -37
  85. package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts.map +1 -1
  86. package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts +24 -24
  87. package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts.map +1 -1
  88. package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts +2 -3
  89. package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts.map +1 -1
  90. package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts +2 -3
  91. package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts.map +1 -1
  92. package/dist/types/src/components/KanbanBoard/context.d.ts +38 -0
  93. package/dist/types/src/components/KanbanBoard/context.d.ts.map +1 -0
  94. package/dist/types/src/containers/KanbanArticle/KanbanArticle.d.ts +6 -0
  95. package/dist/types/src/containers/KanbanArticle/KanbanArticle.d.ts.map +1 -0
  96. package/dist/types/src/containers/{KanbanContainer/KanbanContainer.stories.d.ts → KanbanArticle/KanbanArticle.stories.d.ts} +25 -25
  97. package/dist/types/src/containers/KanbanArticle/KanbanArticle.stories.d.ts.map +1 -0
  98. package/dist/types/src/containers/KanbanArticle/index.d.ts +2 -0
  99. package/dist/types/src/containers/KanbanArticle/index.d.ts.map +1 -0
  100. package/dist/types/src/containers/KanbanSettings/KanbanSettings.d.ts +13 -0
  101. package/dist/types/src/containers/KanbanSettings/KanbanSettings.d.ts.map +1 -0
  102. package/dist/types/src/containers/KanbanSettings/index.d.ts +2 -0
  103. package/dist/types/src/containers/KanbanSettings/index.d.ts.map +1 -0
  104. package/dist/types/src/containers/index.d.ts +2 -2
  105. package/dist/types/src/containers/index.d.ts.map +1 -1
  106. package/dist/types/src/hooks/index.d.ts +1 -0
  107. package/dist/types/src/hooks/index.d.ts.map +1 -1
  108. package/dist/types/src/hooks/useEchoChangeCallback.d.ts.map +1 -1
  109. package/dist/types/src/hooks/useItemsProjection.d.ts +10 -0
  110. package/dist/types/src/hooks/useItemsProjection.d.ts.map +1 -0
  111. package/dist/types/src/hooks/useKanbanBoardModel.browser.test.d.ts +2 -0
  112. package/dist/types/src/hooks/useKanbanBoardModel.browser.test.d.ts.map +1 -0
  113. package/dist/types/src/hooks/useKanbanBoardModel.d.ts.map +1 -1
  114. package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts +1 -1
  115. package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts.map +1 -1
  116. package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts +1 -1
  117. package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts.map +1 -1
  118. package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -1
  119. package/dist/types/src/index.d.ts +3 -1
  120. package/dist/types/src/index.d.ts.map +1 -1
  121. package/dist/types/src/operations/delete-card-field.d.ts +3 -3
  122. package/dist/types/src/operations/delete-card-field.d.ts.map +1 -1
  123. package/dist/types/src/operations/delete-card.d.ts +3 -3
  124. package/dist/types/src/operations/delete-card.d.ts.map +1 -1
  125. package/dist/types/src/operations/index.d.ts +1 -2
  126. package/dist/types/src/operations/index.d.ts.map +1 -1
  127. package/dist/types/src/operations/restore-card-field.d.ts +3 -3
  128. package/dist/types/src/operations/restore-card-field.d.ts.map +1 -1
  129. package/dist/types/src/operations/restore-card.d.ts +3 -3
  130. package/dist/types/src/operations/restore-card.d.ts.map +1 -1
  131. package/dist/types/src/playwright/board-manager.d.ts.map +1 -1
  132. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -1
  133. package/dist/types/src/plugin.d.ts +4 -0
  134. package/dist/types/src/plugin.d.ts.map +1 -0
  135. package/dist/types/src/translations.d.ts +24 -24
  136. package/dist/types/src/translations.d.ts.map +1 -1
  137. package/dist/types/src/types/Kanban.d.ts +78 -7
  138. package/dist/types/src/types/Kanban.d.ts.map +1 -1
  139. package/dist/types/src/{operations/definitions.d.ts → types/KanbanOperation.d.ts} +3 -3
  140. package/dist/types/src/types/KanbanOperation.d.ts.map +1 -0
  141. package/dist/types/src/types/constants.d.ts +3 -3
  142. package/dist/types/src/types/constants.d.ts.map +1 -1
  143. package/dist/types/src/types/index.d.ts +2 -1
  144. package/dist/types/src/types/index.d.ts.map +1 -1
  145. package/dist/types/src/types/migrations.test.d.ts +2 -0
  146. package/dist/types/src/types/migrations.test.d.ts.map +1 -0
  147. package/dist/types/src/types/schema.d.ts +15 -1
  148. package/dist/types/src/types/schema.d.ts.map +1 -1
  149. package/dist/types/src/types/types.d.ts +2 -2
  150. package/dist/types/src/util/arrangement.d.ts +7 -3
  151. package/dist/types/src/util/arrangement.d.ts.map +1 -1
  152. package/dist/types/tsconfig.tsbuildinfo +1 -1
  153. package/package.json +104 -78
  154. package/src/KanbanPlugin.node.ts +21 -0
  155. package/src/KanbanPlugin.test.ts +31 -0
  156. package/src/KanbanPlugin.tsx +19 -40
  157. package/src/blueprints/kanban-blueprint.ts +2 -3
  158. package/src/capabilities/artifact-definition.ts +4 -5
  159. package/src/capabilities/blueprint-definition.ts +2 -0
  160. package/src/capabilities/create-object.ts +40 -0
  161. package/src/capabilities/index.ts +4 -1
  162. package/src/capabilities/migrations.ts +35 -0
  163. package/src/capabilities/operation-handler.ts +1 -1
  164. package/src/capabilities/react-surface.tsx +19 -12
  165. package/src/capabilities/undo-mappings.ts +1 -1
  166. package/src/components/KanbanBoard/KanbanBoard.stories.tsx +10 -7
  167. package/src/components/KanbanBoard/KanbanBoard.tsx +20 -49
  168. package/src/components/KanbanBoard/KanbanCard.tsx +76 -61
  169. package/src/components/KanbanBoard/KanbanColumn.tsx +16 -13
  170. package/src/components/KanbanBoard/context.ts +54 -0
  171. package/src/containers/{KanbanContainer/KanbanContainer.stories.tsx → KanbanArticle/KanbanArticle.stories.tsx} +30 -24
  172. package/src/containers/KanbanArticle/KanbanArticle.tsx +178 -0
  173. package/src/containers/KanbanArticle/index.ts +5 -0
  174. package/src/containers/KanbanSettings/KanbanSettings.tsx +94 -0
  175. package/src/containers/KanbanSettings/index.ts +5 -0
  176. package/src/containers/index.ts +2 -2
  177. package/src/hooks/index.ts +1 -0
  178. package/src/hooks/useEchoChangeCallback.ts +2 -2
  179. package/src/hooks/useItemsProjection.ts +44 -0
  180. package/src/hooks/{useKanbanBoardModel.test.ts → useKanbanBoardModel.browser.test.ts} +4 -5
  181. package/src/hooks/useKanbanBoardModel.ts +18 -5
  182. package/src/hooks/useProjectionModel.ts +2 -2
  183. package/src/index.ts +3 -2
  184. package/src/operations/delete-card-field.ts +3 -3
  185. package/src/operations/delete-card.ts +3 -3
  186. package/src/operations/index.ts +1 -3
  187. package/src/operations/restore-card-field.ts +3 -3
  188. package/src/operations/restore-card.ts +3 -3
  189. package/src/playwright/smoke.spec.ts +3 -3
  190. package/src/plugin.ts +11 -0
  191. package/src/types/Kanban.ts +93 -14
  192. package/src/{operations/definitions.ts → types/KanbanOperation.ts} +5 -1
  193. package/src/types/index.ts +3 -1
  194. package/src/types/migrations.test.ts +82 -0
  195. package/src/types/schema.ts +20 -2
  196. package/src/types/types.ts +2 -2
  197. package/src/util/arrangement.test.ts +11 -2
  198. package/src/util/arrangement.ts +24 -14
  199. package/dist/lib/browser/blueprints/index.mjs.map +0 -7
  200. package/dist/lib/browser/chunk-A3PBV3S5.mjs +0 -105
  201. package/dist/lib/browser/chunk-A3PBV3S5.mjs.map +0 -7
  202. package/dist/lib/browser/delete-card-VPNVIWOA.mjs.map +0 -7
  203. package/dist/lib/browser/delete-card-field-4HHF2GYX.mjs.map +0 -7
  204. package/dist/lib/browser/index.mjs +0 -121
  205. package/dist/lib/browser/index.mjs.map +0 -7
  206. package/dist/lib/browser/meta.json +0 -1
  207. package/dist/lib/browser/operations/index.mjs +0 -13
  208. package/dist/lib/browser/operations/index.mjs.map +0 -7
  209. package/dist/lib/browser/restore-card-4GG2RYKR.mjs.map +0 -7
  210. package/dist/lib/browser/restore-card-field-3T26ACYX.mjs.map +0 -7
  211. package/dist/lib/browser/types/index.mjs +0 -100
  212. package/dist/lib/browser/types/index.mjs.map +0 -7
  213. package/dist/lib/node-esm/blueprints/index.mjs +0 -28
  214. package/dist/lib/node-esm/blueprints/index.mjs.map +0 -7
  215. package/dist/lib/node-esm/chunk-6LELYA2G.mjs +0 -106
  216. package/dist/lib/node-esm/chunk-6LELYA2G.mjs.map +0 -7
  217. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
  218. package/dist/lib/node-esm/delete-card-5PW5OMFN.mjs +0 -33
  219. package/dist/lib/node-esm/delete-card-5PW5OMFN.mjs.map +0 -7
  220. package/dist/lib/node-esm/delete-card-field-KPJU2AQ3.mjs +0 -51
  221. package/dist/lib/node-esm/delete-card-field-KPJU2AQ3.mjs.map +0 -7
  222. package/dist/lib/node-esm/index.mjs +0 -122
  223. package/dist/lib/node-esm/index.mjs.map +0 -7
  224. package/dist/lib/node-esm/meta.json +0 -1
  225. package/dist/lib/node-esm/operations/index.mjs +0 -14
  226. package/dist/lib/node-esm/operations/index.mjs.map +0 -7
  227. package/dist/lib/node-esm/restore-card-X2TKMU5A.mjs +0 -30
  228. package/dist/lib/node-esm/restore-card-X2TKMU5A.mjs.map +0 -7
  229. package/dist/lib/node-esm/restore-card-field-IUTL4RTR.mjs +0 -49
  230. package/dist/lib/node-esm/restore-card-field-IUTL4RTR.mjs.map +0 -7
  231. package/dist/lib/node-esm/types/index.mjs +0 -101
  232. package/dist/lib/node-esm/types/index.mjs.map +0 -7
  233. package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts +0 -6
  234. package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts.map +0 -1
  235. package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts.map +0 -1
  236. package/dist/types/src/containers/KanbanContainer/index.d.ts +0 -2
  237. package/dist/types/src/containers/KanbanContainer/index.d.ts.map +0 -1
  238. package/dist/types/src/containers/KanbanViewEditor/KanbanViewEditor.d.ts +0 -6
  239. package/dist/types/src/containers/KanbanViewEditor/KanbanViewEditor.d.ts.map +0 -1
  240. package/dist/types/src/containers/KanbanViewEditor/index.d.ts +0 -2
  241. package/dist/types/src/containers/KanbanViewEditor/index.d.ts.map +0 -1
  242. package/dist/types/src/hooks/useKanbanBoardModel.test.d.ts +0 -2
  243. package/dist/types/src/hooks/useKanbanBoardModel.test.d.ts.map +0 -1
  244. package/dist/types/src/operations/definitions.d.ts.map +0 -1
  245. package/src/containers/KanbanContainer/KanbanContainer.tsx +0 -96
  246. package/src/containers/KanbanContainer/index.ts +0 -5
  247. package/src/containers/KanbanViewEditor/KanbanViewEditor.tsx +0 -63
  248. package/src/containers/KanbanViewEditor/index.ts +0 -5
  249. /package/dist/lib/{browser/chunk-J5LGTIGS.mjs.map → neutral/blueprints/index.mjs.map} +0 -0
  250. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
  251. /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/restore-card.ts"],
4
+ "sourcesContent": ["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\nimport { Obj } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\n\nimport { KanbanOperation } from '../types';\n\nconst handler: Operation.WithHandler<typeof KanbanOperation.RestoreCard> = KanbanOperation.RestoreCard.pipe(\n Operation.withHandler(({ card }) =>\n Effect.sync(() => {\n const db = Obj.getDatabase(card);\n invariant(db);\n db.add(card);\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;AAEA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAI1B,IAAA,eAA2EC;cAIrEC,wBAAUC,YAAAA,KAAAA,UAAAA,YAAAA,CAAAA,EAAAA,KAAAA,MAAAA,YAAAA,MAAAA;AACVA,QAAM,KAACC,IAAAA,YAAAA,IAAAA;AACT,YAAA,IAAA,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,GAAA,GAAA,QAAA,GAAA,CAAA,MAAA,EAAA,EAAA,CAAA;AAIJ,KAAA,IAAeC,IAAAA;;;",
6
+ "names": ["Effect", "Operation", "Obj", "invariant", "KanbanOperation", "invariant", "db", "card", "handler"]
7
+ }
@@ -1,28 +1,20 @@
1
1
  import {
2
- RestoreCardField
3
- } from "./chunk-A3PBV3S5.mjs";
2
+ KanbanOperation_exports
3
+ } from "./chunk-OQ72EEGU.mjs";
4
4
  import "./chunk-J5LGTIGS.mjs";
5
5
 
6
6
  // src/operations/restore-card-field.ts
7
7
  import * as Effect from "effect/Effect";
8
8
  import { Capabilities, Capability } from "@dxos/app-framework";
9
+ import { Operation } from "@dxos/compute";
9
10
  import { JsonSchema, Obj } from "@dxos/echo";
10
11
  import { invariant } from "@dxos/invariant";
11
- import { Operation } from "@dxos/operation";
12
12
  import { ProjectionModel, createEchoChangeCallback, getTypenameFromQuery } from "@dxos/schema";
13
13
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-kanban/src/operations/restore-card-field.ts";
14
- var handler = RestoreCardField.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ view, field, props, index }) {
14
+ var handler = KanbanOperation_exports.RestoreCardField.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ view, field, props, index }) {
15
15
  const registry = yield* Capability.get(Capabilities.AtomRegistry);
16
16
  const db = Obj.getDatabase(view);
17
- invariant(db, "Database not found", {
18
- F: __dxlog_file,
19
- L: 19,
20
- S: this,
21
- A: [
22
- "db",
23
- "'Database not found'"
24
- ]
25
- });
17
+ invariant(db, "Database not found", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 12, S: this, A: ["db", "'Database not found'"] });
26
18
  const schema = yield* Effect.promise(() => db.schemaRegistry.query({
27
19
  typename: getTypenameFromQuery(view.query.ast),
28
20
  location: [
@@ -45,4 +37,4 @@ var restore_card_field_default = handler;
45
37
  export {
46
38
  restore_card_field_default as default
47
39
  };
48
- //# sourceMappingURL=restore-card-field-3T26ACYX.mjs.map
40
+ //# sourceMappingURL=restore-card-field-NHR3R4XI.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/restore-card-field.ts"],
4
+ "sourcesContent": ["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { JsonSchema, Obj } from '@dxos/echo';\nimport { type EchoSchema } from '@dxos/echo/internal';\nimport { invariant } from '@dxos/invariant';\nimport { ProjectionModel, createEchoChangeCallback, getTypenameFromQuery } from '@dxos/schema';\n\nimport { KanbanOperation } from '../types';\n\nconst handler: Operation.WithHandler<typeof KanbanOperation.RestoreCardField> = KanbanOperation.RestoreCardField.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ view, field, props, index }) {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const db = Obj.getDatabase(view);\n invariant(db, 'Database not found');\n const schema = yield* Effect.promise(() =>\n db.schemaRegistry\n .query({\n typename: getTypenameFromQuery(view.query.ast)!,\n location: ['database', 'runtime'],\n })\n .first(),\n );\n\n const projection = new ProjectionModel({\n registry,\n view,\n baseSchema: JsonSchema.toJsonSchema(schema),\n change: createEchoChangeCallback(view, schema as EchoSchema),\n });\n\n projection.setFieldProjection({ field, props }, index);\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;AAEA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,WAAW;AAEhC,SAASC,iBAAiB;AAC1B,SAASC,iBAAiBC,0BAA0BC,4BAA4B;AAIhF,IAAA,eAAgFC;IAI1E,UAAWC,wBAAgBC,iBAAAA,KAAAA,UAAAA,YAAAA,kBAAAA,WAAAA,EAAAA,MAAAA,OAAAA,OAAAA,MAAAA,GAAAA;AAC3BC,QAAAA,WAAc,OAAA,WAAA,IAAA,aAAA,YAAA;AACd,QAAMC,KAAAA,IAAS,YAAOC,IAAOC;YAGvBC,IAAAA,sBAAUC,EAAAA,YAA0BC,YAAS,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,MAAA,sBAAA,EAAA,CAAA;iBAC7CC,OAAU,eAAA,MAAA,GAAA,eAAA,MAAA;cAAC,qBAAA,KAAA,MAAA,GAAA;cAAY;MAAU;MAE7B;IAGJC;EACJC,CAAAA,EAAAA,MAAAA,CAAAA;QACAV,aAAAA,IAAAA,gBAAAA;IACAW;IACAC;IACF,YAAA,WAAA,aAAA,MAAA;IAEAH,QAAWI,yBAAmB,MAAA,MAAA;;aAASC,mBAAAA;IAASC;IAClD;EAIJ,GAAA,KAAA;;;",
6
+ "names": ["Effect", "Capabilities", "Capability", "Operation", "JsonSchema", "Obj", "invariant", "ProjectionModel", "createEchoChangeCallback", "getTypenameFromQuery", "KanbanOperation", "Obj", "view", "invariant", "schema", "Effect", "promise", "typename", "getTypenameFromQuery", "query", "location", "projection", "registry", "baseSchema", "change", "setFieldProjection", "props", "index"]
7
+ }
@@ -0,0 +1,60 @@
1
+ import "../chunk-J5LGTIGS.mjs";
2
+
3
+ // src/testing/KanbanCardTileSimple.tsx
4
+ import React, { forwardRef, useCallback, useMemo, useState } from "react";
5
+ import { Obj } from "@dxos/echo";
6
+ import { Card, Toolbar, useTranslation } from "@dxos/react-ui";
7
+ import { Menu, createMenuAction } from "@dxos/react-ui-menu";
8
+ import { Focus, Mosaic, useBoard } from "@dxos/react-ui-mosaic";
9
+ import { useKanbanBoard } from "#components";
10
+ import { meta } from "#meta";
11
+ var KANBAN_CARD_TILE_SIMPLE_NAME = "KanbanCardTileSimple";
12
+ var KanbanCardTileSimple = /* @__PURE__ */ forwardRef(({ data, location, debug }, forwardedRef) => {
13
+ const { t } = useTranslation(meta.id);
14
+ const { model } = useBoard(KANBAN_CARD_TILE_SIMPLE_NAME);
15
+ const { onCardRemove } = useKanbanBoard(KANBAN_CARD_TILE_SIMPLE_NAME);
16
+ const [dragHandle, setDragHandle] = useState(null);
17
+ const dragHandleRef = useCallback((el) => setDragHandle(el), []);
18
+ const menuItems = useMemo(() => onCardRemove ? [
19
+ createMenuAction("remove", () => onCardRemove(data), {
20
+ label: t("remove-card.label"),
21
+ icon: "ph--trash--regular"
22
+ })
23
+ ] : [], [
24
+ onCardRemove,
25
+ data,
26
+ t
27
+ ]);
28
+ return /* @__PURE__ */ React.createElement(Menu.Root, null, /* @__PURE__ */ React.createElement(Mosaic.Tile, {
29
+ asChild: true,
30
+ id: model.getItemId(data),
31
+ data,
32
+ location,
33
+ debug,
34
+ dragHandle
35
+ }, /* @__PURE__ */ React.createElement(Focus.Item, {
36
+ asChild: true
37
+ }, /* @__PURE__ */ React.createElement(Card.Root, {
38
+ ref: forwardedRef,
39
+ "data-testid": "board-item"
40
+ }, /* @__PURE__ */ React.createElement(Card.Toolbar, null, /* @__PURE__ */ React.createElement(Card.DragHandle, {
41
+ ref: dragHandleRef
42
+ }), /* @__PURE__ */ React.createElement(Card.Title, null, Obj.getLabel(data)), /* @__PURE__ */ React.createElement(Menu.Trigger, {
43
+ asChild: true,
44
+ disabled: !menuItems?.length
45
+ }, /* @__PURE__ */ React.createElement(Toolbar.IconButton, {
46
+ iconOnly: true,
47
+ variant: "ghost",
48
+ icon: "ph--dots-three-vertical--regular",
49
+ label: t("action-menu.label")
50
+ })), /* @__PURE__ */ React.createElement(Menu.Content, {
51
+ items: menuItems
52
+ })), /* @__PURE__ */ React.createElement(Card.Content, null, /* @__PURE__ */ React.createElement(Card.Section, null, /* @__PURE__ */ React.createElement("pre", {
53
+ className: "p-2 text-xs text-description whitespace-pre-wrap"
54
+ }, JSON.stringify(data, null, 2))))))));
55
+ });
56
+ KanbanCardTileSimple.displayName = KANBAN_CARD_TILE_SIMPLE_NAME;
57
+ export {
58
+ KanbanCardTileSimple
59
+ };
60
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/testing/KanbanCardTileSimple.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React, { forwardRef, useCallback, useMemo, useState } from 'react';\n\nimport { Obj } from '@dxos/echo';\nimport { Card, Toolbar, useTranslation } from '@dxos/react-ui';\nimport { Menu, createMenuAction } from '@dxos/react-ui-menu';\nimport { Focus, Mosaic, useBoard } from '@dxos/react-ui-mosaic';\n\nimport { type KanbanCardProps, useKanbanBoard } from '#components';\nimport { meta } from '#meta';\n\nconst KANBAN_CARD_TILE_SIMPLE_NAME = 'KanbanCardTileSimple';\n\n/**\n * Card tile without Surface; for stories and tests when plugin manager is not available.\n */\nexport const KanbanCardTileSimple = forwardRef<HTMLDivElement, KanbanCardProps>(\n ({ data, location, debug }, forwardedRef) => {\n const { t } = useTranslation(meta.id);\n const { model } = useBoard(KANBAN_CARD_TILE_SIMPLE_NAME);\n const { onCardRemove } = useKanbanBoard(KANBAN_CARD_TILE_SIMPLE_NAME);\n const [dragHandle, setDragHandle] = useState<HTMLButtonElement | null>(null);\n const dragHandleRef = useCallback((el: HTMLButtonElement | null) => setDragHandle(el), []);\n\n const menuItems = useMemo(\n () =>\n onCardRemove\n ? [\n createMenuAction('remove', () => onCardRemove(data), {\n label: t('remove-card.label'),\n icon: 'ph--trash--regular',\n }),\n ]\n : [],\n [onCardRemove, data, t],\n );\n\n return (\n <Menu.Root>\n <Mosaic.Tile\n asChild\n id={model.getItemId(data)}\n data={data}\n location={location}\n debug={debug}\n dragHandle={dragHandle}\n >\n <Focus.Item asChild>\n <Card.Root ref={forwardedRef} data-testid='board-item'>\n <Card.Toolbar>\n <Card.DragHandle ref={dragHandleRef} />\n <Card.Title>{Obj.getLabel(data)}</Card.Title>\n {/* TODO(wittjosiah): Reconcile with Card.Menu. */}\n <Menu.Trigger asChild disabled={!menuItems?.length}>\n <Toolbar.IconButton\n iconOnly\n variant='ghost'\n icon='ph--dots-three-vertical--regular'\n label={t('action-menu.label')}\n />\n </Menu.Trigger>\n <Menu.Content items={menuItems} />\n </Card.Toolbar>\n <Card.Content>\n <Card.Section>\n <pre className='p-2 text-xs text-description whitespace-pre-wrap'>\n {JSON.stringify(data, null, 2)}\n </pre>\n </Card.Section>\n </Card.Content>\n </Card.Root>\n </Focus.Item>\n </Mosaic.Tile>\n </Menu.Root>\n );\n },\n);\n\nKanbanCardTileSimple.displayName = KANBAN_CARD_TILE_SIMPLE_NAME;\n"],
5
+ "mappings": ";;;AAIA,OAAOA,SAASC,YAAYC,aAAaC,SAASC,gBAAgB;AAElE,SAASC,WAAW;AACpB,SAASC,MAAMC,SAASC,sBAAsB;AAC9C,SAASC,MAAMC,wBAAwB;AACvC,SAASC,OAAOC,QAAQC,gBAAgB;AAExC,SAA+BC,sBAAsB;AACrD,SAASC,YAAY;AAErB,IAAMC,+BAA+B;AAK9B,IAAMC,uBAAuBhB,2BAClC,CAAC,EAAEiB,MAAMC,UAAUC,MAAK,GAAIC,iBAAAA;AAC1B,QAAM,EAAEC,EAAC,IAAKd,eAAeO,KAAKQ,EAAE;AACpC,QAAM,EAAEC,MAAK,IAAKX,SAASG,4BAAAA;AAC3B,QAAM,EAAES,aAAY,IAAKX,eAAeE,4BAAAA;AACxC,QAAM,CAACU,YAAYC,aAAAA,IAAiBvB,SAAmC,IAAA;AACvE,QAAMwB,gBAAgB1B,YAAY,CAAC2B,OAAiCF,cAAcE,EAAAA,GAAK,CAAA,CAAE;AAEzF,QAAMC,YAAY3B,QAChB,MACEsB,eACI;IACEf,iBAAiB,UAAU,MAAMe,aAAaP,IAAAA,GAAO;MACnDa,OAAOT,EAAE,mBAAA;MACTU,MAAM;IACR,CAAA;MAEF,CAAA,GACN;IAACP;IAAcP;IAAMI;GAAE;AAGzB,SACE,sBAAA,cAACb,KAAKwB,MAAI,MACR,sBAAA,cAACrB,OAAOsB,MAAI;IACVC,SAAAA;IACAZ,IAAIC,MAAMY,UAAUlB,IAAAA;IACpBA;IACAC;IACAC;IACAM;KAEA,sBAAA,cAACf,MAAM0B,MAAI;IAACF,SAAAA;KACV,sBAAA,cAAC7B,KAAK2B,MAAI;IAACK,KAAKjB;IAAckB,eAAY;KACxC,sBAAA,cAACjC,KAAKC,SAAO,MACX,sBAAA,cAACD,KAAKkC,YAAU;IAACF,KAAKV;MACtB,sBAAA,cAACtB,KAAKmC,OAAK,MAAEpC,IAAIqC,SAASxB,IAAAA,CAAAA,GAE1B,sBAAA,cAACT,KAAKkC,SAAO;IAACR,SAAAA;IAAQS,UAAU,CAACd,WAAWe;KAC1C,sBAAA,cAACtC,QAAQuC,YAAU;IACjBC,UAAAA;IACAC,SAAQ;IACRhB,MAAK;IACLD,OAAOT,EAAE,mBAAA;OAGb,sBAAA,cAACb,KAAKwC,SAAO;IAACC,OAAOpB;OAEvB,sBAAA,cAACxB,KAAK2C,SAAO,MACX,sBAAA,cAAC3C,KAAK6C,SAAO,MACX,sBAAA,cAACC,OAAAA;IAAIC,WAAU;KACZC,KAAKC,UAAUrC,MAAM,MAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAS9C,CAAA;AAGFD,qBAAqBuC,cAAcxC;",
6
+ "names": ["React", "forwardRef", "useCallback", "useMemo", "useState", "Obj", "Card", "Toolbar", "useTranslation", "Menu", "createMenuAction", "Focus", "Mosaic", "useBoard", "useKanbanBoard", "meta", "KANBAN_CARD_TILE_SIMPLE_NAME", "KanbanCardTileSimple", "data", "location", "debug", "forwardedRef", "t", "id", "model", "onCardRemove", "dragHandle", "setDragHandle", "dragHandleRef", "el", "menuItems", "label", "icon", "Root", "Tile", "asChild", "getItemId", "Item", "ref", "data-testid", "DragHandle", "Title", "getLabel", "Trigger", "disabled", "length", "IconButton", "iconOnly", "variant", "Content", "items", "Section", "pre", "className", "JSON", "stringify", "displayName"]
7
+ }
@@ -0,0 +1,44 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/translations.ts
4
+ import { Type } from "@dxos/echo";
5
+ import { meta } from "#meta";
6
+ import { Kanban } from "#types";
7
+ var translations = [
8
+ {
9
+ "en-US": {
10
+ [Type.getTypename(Kanban.Kanban)]: {
11
+ "typename.label": "Kanban",
12
+ "typename.label_zero": "Kanbans",
13
+ "typename.label_one": "Kanban",
14
+ "typename.label_other": "Kanbans",
15
+ "object-name.placeholder": "New kanban",
16
+ "add-object.label": "Add kanban",
17
+ "rename-object.label": "Rename kanban",
18
+ "delete-object.label": "Delete kanban",
19
+ "object-deleted.label": "Kanban deleted"
20
+ },
21
+ [meta.id]: {
22
+ "action-menu.label": "Actions",
23
+ "plugin.name": "Kanban",
24
+ "kanban-title.label": "Title",
25
+ "column-title.label": "Column title",
26
+ "column-title.placeholder": "New column",
27
+ "add-column.label": "Add column",
28
+ "add-card.label": "Add card",
29
+ "new-column-name.label": "New column name",
30
+ "remove-card.label": "Remove card",
31
+ "remove-empty-column.label": "Remove empty column",
32
+ "column-drag-handle.label": "Drag to rearrange",
33
+ "delete-column.label": "Delete column",
34
+ "card-field-deleted.label": "Card field deleted",
35
+ "card-deleted.label": "Card deleted",
36
+ "select-pivot.placeholder": "Select a pivot column in board settings to display columns."
37
+ }
38
+ }
39
+ }
40
+ ];
41
+ export {
42
+ translations
43
+ };
44
+ //# 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 } from '@dxos/echo';\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Kanban } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Type.getTypename(Kanban.Kanban)]: {\n 'typename.label': 'Kanban',\n 'typename.label_zero': 'Kanbans',\n 'typename.label_one': 'Kanban',\n 'typename.label_other': 'Kanbans',\n 'object-name.placeholder': 'New kanban',\n 'add-object.label': 'Add kanban',\n 'rename-object.label': 'Rename kanban',\n 'delete-object.label': 'Delete kanban',\n 'object-deleted.label': 'Kanban deleted',\n },\n [meta.id]: {\n 'action-menu.label': 'Actions',\n 'plugin.name': 'Kanban',\n 'kanban-title.label': 'Title',\n 'column-title.label': 'Column title',\n 'column-title.placeholder': 'New column',\n 'add-column.label': 'Add column',\n 'add-card.label': 'Add card',\n 'new-column-name.label': 'New column name',\n 'remove-card.label': 'Remove card',\n 'remove-empty-column.label': 'Remove empty column',\n 'column-drag-handle.label': 'Drag to rearrange',\n 'delete-column.label': 'Delete column',\n 'card-field-deleted.label': 'Card field deleted',\n 'card-deleted.label': 'Card deleted',\n 'select-pivot.placeholder': 'Select a pivot column in board settings to display columns.',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAIA,SAASA,YAAY;AAGrB,SAASC,YAAY;AACrB,SAASC,cAAc;AAEhB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACH,KAAKI,YAAYF,OAAOA,MAAM,CAAA,GAAI;QACjC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACD,KAAKI,EAAE,GAAG;QACT,qBAAqB;QACrB,eAAe;QACf,sBAAsB;QACtB,sBAAsB;QACtB,4BAA4B;QAC5B,oBAAoB;QACpB,kBAAkB;QAClB,yBAAyB;QACzB,qBAAqB;QACrB,6BAA6B;QAC7B,4BAA4B;QAC5B,uBAAuB;QACvB,4BAA4B;QAC5B,sBAAsB;QACtB,4BAA4B;MAC9B;IACF;EACF;;",
6
+ "names": ["Type", "meta", "Kanban", "translations", "getTypename", "id"]
7
+ }
@@ -0,0 +1,22 @@
1
+ import {
2
+ CreateKanbanSchema,
3
+ KanbanOperation_exports,
4
+ KanbanSettingsSchema,
5
+ KanbanViewSettingsSchema,
6
+ Kanban_exports,
7
+ PivotColumnAnnotationId,
8
+ UNCATEGORIZED_ATTRIBUTES,
9
+ UNCATEGORIZED_VALUE
10
+ } from "../chunk-OQ72EEGU.mjs";
11
+ import "../chunk-J5LGTIGS.mjs";
12
+ export {
13
+ CreateKanbanSchema,
14
+ Kanban_exports as Kanban,
15
+ KanbanOperation_exports as KanbanOperation,
16
+ KanbanSettingsSchema,
17
+ KanbanViewSettingsSchema,
18
+ PivotColumnAnnotationId,
19
+ UNCATEGORIZED_ATTRIBUTES,
20
+ UNCATEGORIZED_VALUE
21
+ };
22
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,42 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/capabilities/undo-mappings.ts
4
+ import * as Effect from "effect/Effect";
5
+ import { Capabilities, Capability, UndoMapping } from "@dxos/app-framework";
6
+ import { meta } from "#meta";
7
+ import { KanbanOperation } from "#types";
8
+ var undo_mappings_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.UndoMapping, [
9
+ UndoMapping.make({
10
+ operation: KanbanOperation.DeleteCardField,
11
+ inverse: KanbanOperation.RestoreCardField,
12
+ deriveContext: (input, output) => ({
13
+ view: input.view,
14
+ field: output.field,
15
+ props: output.props,
16
+ index: output.index
17
+ }),
18
+ message: [
19
+ "card-field-deleted.label",
20
+ {
21
+ ns: meta.id
22
+ }
23
+ ]
24
+ }),
25
+ UndoMapping.make({
26
+ operation: KanbanOperation.DeleteCard,
27
+ inverse: KanbanOperation.RestoreCard,
28
+ deriveContext: (_input, output) => ({
29
+ card: output.card
30
+ }),
31
+ message: [
32
+ "card-deleted.label",
33
+ {
34
+ ns: meta.id
35
+ }
36
+ ]
37
+ })
38
+ ])));
39
+ export {
40
+ undo_mappings_default as default
41
+ };
42
+ //# sourceMappingURL=undo-mappings-6CHW6BOF.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/undo-mappings.ts"],
4
+ "sourcesContent": ["// Copyright 2025 DXOS.org\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability, UndoMapping } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\nimport { KanbanOperation } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.UndoMapping, [\n UndoMapping.make({\n operation: KanbanOperation.DeleteCardField,\n inverse: KanbanOperation.RestoreCardField,\n deriveContext: (input, output) => ({\n view: input.view,\n field: output.field,\n props: output.props,\n index: output.index,\n }),\n message: ['card-field-deleted.label', { ns: meta.id }],\n }),\n UndoMapping.make({\n operation: KanbanOperation.DeleteCard,\n inverse: KanbanOperation.RestoreCard,\n deriveContext: (_input, output) => ({\n card: output.card,\n }),\n message: ['card-deleted.label', { ns: meta.id }],\n }),\n ]),\n ),\n);\n"],
5
+ "mappings": ";;;AAEA,YAAYA,YAAY;AAExB,SAASC,cAAcC,YAAYC,mBAAmB;AAEtD,SAASC,YAAY;AACrB,SAASC,uBAAuB;AAEhC,IAAA,wBAAeH,WAAWI,WAAW,MAC5BC,eACLL,WAAWM,YAAYP,aAAaE,aAAa;EAC/CA,YAAYM,KAAK;IACfC,WAAWL,gBAAgBM;IAC3BC,SAASP,gBAAgBQ;IACzBC,eAAe,CAACC,OAAOC,YAAY;MACjCC,MAAMF,MAAME;MACZC,OAAOF,OAAOE;MACdC,OAAOH,OAAOG;MACdC,OAAOJ,OAAOI;IAChB;IACAC,SAAS;MAAC;MAA4B;QAAEC,IAAIlB,KAAKmB;MAAG;;EACtD,CAAA;EACApB,YAAYM,KAAK;IACfC,WAAWL,gBAAgBmB;IAC3BZ,SAASP,gBAAgBoB;IACzBX,eAAe,CAACY,QAAQV,YAAY;MAClCW,MAAMX,OAAOW;IACf;IACAN,SAAS;MAAC;MAAsB;QAAEC,IAAIlB,KAAKmB;MAAG;;EAChD,CAAA;CACD,CAAA,CAAA;",
6
+ "names": ["Effect", "Capabilities", "Capability", "UndoMapping", "meta", "KanbanOperation", "makeModule", "succeed", "contributes", "make", "operation", "DeleteCardField", "inverse", "RestoreCardField", "deriveContext", "input", "output", "view", "field", "props", "index", "message", "ns", "id", "DeleteCard", "RestoreCard", "_input", "card"]
7
+ }
@@ -1,3 +1,4 @@
1
1
  import { Plugin } from '@dxos/app-framework';
2
2
  export declare const KanbanPlugin: Plugin.PluginFactory<void>;
3
+ export default KanbanPlugin;
3
4
  //# sourceMappingURL=KanbanPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanPlugin.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAc7C,eAAO,MAAM,YAAY,4BAmCxB,CAAC"}
1
+ {"version":3,"file":"KanbanPlugin.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAgB7C,eAAO,MAAM,YAAY,4BAaxB,CAAC;eAEa,YAAY"}
@@ -0,0 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const KanbanPlugin: Plugin.PluginFactory<void>;
3
+ export default KanbanPlugin;
4
+ //# sourceMappingURL=KanbanPlugin.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanPlugin.node.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.node.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,YAAY,4BAOxB,CAAC;eAEa,YAAY"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=KanbanPlugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.test.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { type AppCapabilities } from '@dxos/app-toolkit';
2
- declare const blueprint: AppCapabilities.BlueprintDefinition;
1
+ import { Blueprint } from '@dxos/compute';
2
+ declare const blueprint: Blueprint.Definition;
3
3
  export default blueprint;
4
4
  //# sourceMappingURL=kanban-blueprint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kanban-blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/kanban-blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAkBzD,QAAA,MAAM,SAAS,EAAE,eAAe,CAAC,mBAGhC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"kanban-blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/kanban-blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAY,MAAM,eAAe,CAAC;AAiBpD,QAAA,MAAM,SAAS,EAAE,SAAS,CAAC,UAG1B,CAAC;eAEa,SAAS"}
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAgB,UAAU,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAO7F,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAW7D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF;;AAED,wBAkHE"}
1
+ {"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAgB,UAAU,EAAE,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAM7F,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAWrD,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF"}
@@ -1,6 +1,6 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { Capability } from '@dxos/app-framework';
3
- import { AppCapabilities } from '@dxos/app-toolkit';
4
- declare const blueprintDefinition: (props: []) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<AppCapabilities.BlueprintDefinition>>[], Error, Capability.Service>;
3
+ import type { Blueprint } from '@dxos/compute';
4
+ declare const blueprintDefinition: (props: []) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Blueprint.Definition>>[], Error, Capability.Service>;
5
5
  export default blueprintDefinition;
6
6
  //# sourceMappingURL=blueprint-definition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,QAAA,MAAM,mBAAmB,gJAG8E,CAAC;AAExG,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI/C,QAAA,MAAM,mBAAmB,iIAG8E,CAAC;eAEzF,mBAAmB"}
@@ -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;AAIjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1,6 +1,13 @@
1
1
  import { Capability } from '@dxos/app-framework';
2
- import { OperationHandlerSet } from '@dxos/operation';
3
- export declare const BlueprintDefinition: Capability.LazyCapability<[], Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.BlueprintDefinition>>[], Error>;
2
+ import type { Blueprint, OperationHandlerSet } from '@dxos/compute';
3
+ export declare const BlueprintDefinition: Capability.LazyCapability<[], Capability.Capability<Capability.InterfaceDef<Blueprint.Definition>>[], Error>;
4
+ export declare const CreateObject: Capability.LazyCapability<void, 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<import("@dxos/plugin-space").SpaceCapabilities.CreateObjectCustomPanelProps>;
9
+ }>>>, Error>;
10
+ export declare const Migrations: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/echo/Migration").ObjectMigration[]>>, Error>;
4
11
  export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
5
12
  export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
6
13
  export declare const UndoMappings: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").UndoMapping[]>>, Error>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,yJAAiF,CAAC;AAClH,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,kJAAmE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpE,eAAO,MAAM,mBAAmB,8GAAiF,CAAC;AAClH,eAAO,MAAM,YAAY;;;;;YAAmE,CAAC;AAC7F,eAAO,MAAM,UAAU,0IAA8D,CAAC;AACtF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,kJAAmE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { Migration } from '@dxos/echo';
4
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Migration.ObjectMigration[]>>, never, never>;
5
+ export default _default;
6
+ //# sourceMappingURL=migrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as Effect from 'effect/Effect';
2
2
  import { Capability } from '@dxos/app-framework';
3
- import type { OperationHandlerSet } from '@dxos/operation';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
4
  declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=operation-handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;;AAI3D,wBAIE"}
1
+ {"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/operation-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;AAW/D,wBAmEE"}
1
+ {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"undo-mappings.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/undo-mappings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAe,MAAM,qBAAqB,CAAC;;AAK5E,wBAwBE"}
1
+ {"version":3,"file":"undo-mappings.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/undo-mappings.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAe,MAAM,qBAAqB,CAAC"}
@@ -1,29 +1,9 @@
1
1
  import { type Atom } from '@effect-atom/atom-react';
2
- import React, { type ComponentPropsWithoutRef, type ComponentType, type PropsWithChildren } from 'react';
2
+ import React, { type ComponentPropsWithoutRef, type PropsWithChildren } from 'react';
3
3
  import { Obj } from '@dxos/echo';
4
4
  import type { ProjectionModel } from '@dxos/schema';
5
- import { type Kanban, type KanbanChangeCallback } from '#types';
6
- import { type KanbanCardProps } from './KanbanCard';
7
- import { type KanbanColumnProps } from './KanbanColumn';
8
- /**
9
- * Context value for the Kanban board.
10
- * Items are Echo objects (Obj.Unknown).
11
- */
12
- type KanbanBoardContextValue = {
13
- kanbanId: string;
14
- projection: ProjectionModel | undefined;
15
- columnFieldPath: string | undefined;
16
- change: KanbanChangeCallback<Obj.Unknown>;
17
- pivotFieldId: string | undefined;
18
- getPivotAttributes: (columnValue: string) => {
19
- title: string;
20
- color: string;
21
- };
22
- itemTile?: ComponentType<KanbanCardProps>;
23
- onCardAdd?: (columnValue: string | undefined) => string | undefined;
24
- onCardRemove?: (card: Obj.Unknown) => void;
25
- };
26
- declare const useKanbanBoard: (consumerName: string) => KanbanBoardContextValue;
5
+ import { type Kanban } from '#types';
6
+ import { type KanbanBoardContextValue, type KanbanCardProps, type KanbanColumnProps, useKanbanBoard } from './context';
27
7
  type KanbanBoardRootProps = PropsWithChildren<{
28
8
  kanban: Kanban.Kanban;
29
9
  /** Required when providing context; Root derives columnFieldPath, pivotFieldId, getPivotAttributes from kanban + projection. */
@@ -33,18 +13,14 @@ type KanbanBoardRootProps = PropsWithChildren<{
33
13
  onCardAdd?: (columnValue: string | undefined) => string | undefined;
34
14
  onCardRemove?: (card: Obj.Unknown) => void;
35
15
  } & Pick<KanbanBoardContextValue, 'change' | 'itemTile'> & ComponentPropsWithoutRef<'div'>>;
36
- export declare const KanbanBoardRoot: {
37
- ({ children, kanban, projection, items, change, itemTile, onCardAdd, onCardRemove, }: KanbanBoardRootProps): React.JSX.Element;
38
- displayName: string;
39
- };
16
+ export declare function KanbanBoardRoot({ children, kanban, projection, items, change, itemTile, onCardAdd, onCardRemove }: KanbanBoardRootProps): React.JSX.Element;
17
+ export declare namespace KanbanBoardRoot {
18
+ var displayName: string;
19
+ }
40
20
  type KanbanBoardContentProps = {};
41
21
  export declare const KanbanBoardContent: React.ForwardRefExoticComponent<Omit<KanbanBoardContentProps, "className"> & {
42
22
  classNames?: import("@dxos/ui-types").ClassNameValue;
43
- } & {
44
- className?: string;
45
- children?: React.ReactNode;
46
- role?: string;
47
- } & React.RefAttributes<HTMLDivElement>>;
23
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
48
24
  export declare const KanbanBoard: {
49
25
  Root: {
50
26
  ({ children, kanban, projection, items, change, itemTile, onCardAdd, onCardRemove, }: KanbanBoardRootProps): React.JSX.Element;
@@ -52,11 +28,7 @@ export declare const KanbanBoard: {
52
28
  };
53
29
  Content: React.ForwardRefExoticComponent<Omit<KanbanBoardContentProps, "className"> & {
54
30
  classNames?: import("@dxos/ui-types").ClassNameValue;
55
- } & {
56
- className?: string;
57
- children?: React.ReactNode;
58
- role?: string;
59
- } & React.RefAttributes<HTMLDivElement>>;
31
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
60
32
  Column: React.ForwardRefExoticComponent<KanbanColumnProps & React.RefAttributes<HTMLDivElement>>;
61
33
  Card: React.ForwardRefExoticComponent<KanbanCardProps & React.RefAttributes<HTMLDivElement>>;
62
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAmB,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,EAAE,EACZ,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,iBAAiB,EAIvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,oBAAoB,EAAiD,MAAM,QAAQ,CAAC;AAE/G,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAUtE;;;GAGG;AACH,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,eAAe,GAAG,SAAS,CAAC;IACxC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,EAAE,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC1C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,kBAAkB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,QAAQ,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,QAAA,MAA2B,cAAc,mDASvC,CAAC;AAQH,KAAK,oBAAoB,GAAG,iBAAiB,CAC3C;IACE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,gIAAgI;IAChI,UAAU,EAAE,eAAe,CAAC;IAC5B,kFAAkF;IAClF,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC5C,GAAG,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,UAAU,CAAC,GACtD,wBAAwB,CAAC,KAAK,CAAC,CAClC,CAAC;AAEF,eAAO,MAAM,eAAe;0FASzB,oBAAoB;;CAmDtB,CAAC;AAUF,KAAK,uBAAuB,GAAG,EAAE,CAAC;AAElC,eAAO,MAAM,kBAAkB;;;;;;wCAqB7B,CAAC;AAQH,eAAO,MAAM,WAAW;;8FA5FrB,oBAAoB;;;;;;;;;;;;CAiGtB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,YAAY,EAAE,oBAAoB,IAAI,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAmB,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAoC,MAAM,OAAO,CAAC;AAEvH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,EAAE,KAAK,MAAM,EAAiD,MAAM,QAAQ,CAAC;AAEpF,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,cAAc,EACf,MAAM,WAAW,CAAC;AAYnB,KAAK,oBAAoB,GAAG,iBAAiB,CAC3C;IACE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,gIAAgI;IAChI,UAAU,EAAE,eAAe,CAAC;IAC5B,kFAAkF;IAClF,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,GAAG,SAAS,CAAC;IACpE,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC5C,GAAG,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,UAAU,CAAC,GACtD,wBAAwB,CAAC,KAAK,CAAC,CAClC,CAAC;wCAE8B,EAC9B,QAAQ,EACR,MAAM,EACN,UAAU,EACV,KAAK,EACL,MAAM,EACN,QAAqB,EACrB,SAAS,EACT,YAAY,EACb,EAAE,oBAAoB;;;;AAkEvB,KAAK,uBAAuB,GAAG,EAAE,CAAC;AAElC,eAAO,MAAM,kBAAkB;;2HAqB7B,CAAC;AAQH,eAAO,MAAM,WAAW;IACtB,IAAI;8FAlGH,oBAAoB;;;IAmGrB,OAAO;;;IACP,MAAM;IACN,IAAI;CACL,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,YAAY,EAAE,oBAAoB,IAAI,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC"}
@@ -9,15 +9,15 @@ declare const meta: {
9
9
  translations: [{
10
10
  readonly 'en-US': {
11
11
  readonly [x: string]: {
12
- readonly 'typename.label': "Kanban";
13
- readonly 'typename.label_zero': "Kanbans";
14
- readonly 'typename.label_one': "Kanban";
15
- readonly 'typename.label_other': "Kanbans";
16
- readonly 'object-name.placeholder': "New kanban";
17
- readonly 'add-object.label': "Add kanban";
18
- readonly 'rename-object.label': "Rename kanban";
19
- readonly 'delete-object.label': "Delete kanban";
20
- readonly 'object-deleted.label': "Kanban deleted";
12
+ readonly 'typename.label': 'Kanban';
13
+ readonly 'typename.label_zero': 'Kanbans';
14
+ readonly 'typename.label_one': 'Kanban';
15
+ readonly 'typename.label_other': 'Kanbans';
16
+ readonly 'object-name.placeholder': 'New kanban';
17
+ readonly 'add-object.label': 'Add kanban';
18
+ readonly 'rename-object.label': 'Rename kanban';
19
+ readonly 'delete-object.label': 'Delete kanban';
20
+ readonly 'object-deleted.label': 'Kanban deleted';
21
21
  readonly 'action-menu.label'?: undefined;
22
22
  readonly 'plugin.name'?: undefined;
23
23
  readonly 'kanban-title.label'?: undefined;
@@ -34,21 +34,6 @@ declare const meta: {
34
34
  readonly 'card-deleted.label'?: undefined;
35
35
  readonly 'select-pivot.placeholder'?: undefined;
36
36
  } | {
37
- readonly 'action-menu.label': "Actions";
38
- readonly 'plugin.name': "Kanban";
39
- readonly 'kanban-title.label': "Title";
40
- readonly 'column-title.label': "Column title";
41
- readonly 'column-title.placeholder': "New column";
42
- readonly 'add-column.label': "Add column";
43
- readonly 'add-card.label': "Add card";
44
- readonly 'new-column-name.label': "New column name";
45
- readonly 'remove-card.label': "Remove card";
46
- readonly 'remove-empty-column.label': "Remove empty column";
47
- readonly 'column-drag-handle.label': "Drag to rearrange";
48
- readonly 'delete-column.label': "Delete column";
49
- readonly 'card-field-deleted.label': "Card field deleted";
50
- readonly 'card-deleted.label': "Card deleted";
51
- readonly 'select-pivot.placeholder': "Select a pivot column in board settings to display columns.";
52
37
  readonly 'typename.label'?: undefined;
53
38
  readonly 'typename.label_zero'?: undefined;
54
39
  readonly 'typename.label_one'?: undefined;
@@ -58,6 +43,21 @@ declare const meta: {
58
43
  readonly 'rename-object.label'?: undefined;
59
44
  readonly 'delete-object.label'?: undefined;
60
45
  readonly 'object-deleted.label'?: undefined;
46
+ readonly 'action-menu.label': 'Actions';
47
+ readonly 'plugin.name': 'Kanban';
48
+ readonly 'kanban-title.label': 'Title';
49
+ readonly 'column-title.label': 'Column title';
50
+ readonly 'column-title.placeholder': 'New column';
51
+ readonly 'add-column.label': 'Add column';
52
+ readonly 'add-card.label': 'Add card';
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 'delete-column.label': 'Delete column';
58
+ readonly 'card-field-deleted.label': 'Card field deleted';
59
+ readonly 'card-deleted.label': 'Card deleted';
60
+ readonly 'select-pivot.placeholder': 'Select a pivot column in board settings to display columns.';
61
61
  };
62
62
  };
63
63
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanBoard.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgE,MAAM,OAAO,CAAC;AAsHrF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
1
+ {"version":3,"file":"KanbanBoard.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanBoard.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAgE,MAAM,OAAO,CAAC;AAyHrF,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import { Obj } from '@dxos/echo';
3
- import { type MosaicTileProps } from '@dxos/react-ui-mosaic';
4
- export type KanbanCardProps = Pick<MosaicTileProps<Obj.Unknown>, 'location' | 'data' | 'debug'>;
2
+ import { type KanbanCardProps } from './context';
3
+ export { type KanbanCardProps };
5
4
  /**
6
5
  * Mosaic Tile for Kanban card.
7
6
  * Uses Surface for content; requires plugin manager context.
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAI1E,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,EAAiB,KAAK,eAAe,EAAY,MAAM,uBAAuB,CAAC;AAQtF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAEhG;;;GAGG;AACH,eAAO,MAAM,UAAU,wFA0DrB,CAAC"}
1
+ {"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAW1E,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,WAAW,CAAC;AAEjE,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC;AAIhC;;;GAGG;AACH,eAAO,MAAM,UAAU,wFAyEtB,CAAC"}