@dxos/plugin-kanban 0.8.4-main.fd6878d → 0.9.0

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 (275) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +398 -0
  3. package/README.md +1 -1
  4. package/dist/lib/neutral/KanbanArticle-T4CPKAZH.mjs +132 -0
  5. package/dist/lib/neutral/KanbanArticle-T4CPKAZH.mjs.map +7 -0
  6. package/dist/lib/neutral/KanbanPlugin.mjs +44 -0
  7. package/dist/lib/neutral/KanbanPlugin.mjs.map +7 -0
  8. package/dist/lib/neutral/KanbanPlugin.node.mjs +27 -0
  9. package/dist/lib/neutral/KanbanPlugin.node.mjs.map +7 -0
  10. package/dist/lib/neutral/KanbanPlugin.workerd.mjs +21 -0
  11. package/dist/lib/neutral/KanbanPlugin.workerd.mjs.map +7 -0
  12. package/dist/lib/neutral/KanbanSettings-5WOS4CUE.mjs +83 -0
  13. package/dist/lib/neutral/KanbanSettings-5WOS4CUE.mjs.map +7 -0
  14. package/dist/lib/neutral/blueprint-definition-6DV3Q5MC.mjs +15 -0
  15. package/dist/lib/neutral/blueprint-definition-6DV3Q5MC.mjs.map +7 -0
  16. package/dist/lib/neutral/blueprints/index.mjs +8 -0
  17. package/dist/lib/neutral/capabilities/index.mjs +17 -0
  18. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  19. package/dist/lib/neutral/chunk-6ZHHQWO5.mjs +39 -0
  20. package/dist/lib/neutral/chunk-6ZHHQWO5.mjs.map +7 -0
  21. package/dist/lib/neutral/chunk-DAKIZO46.mjs +246 -0
  22. package/dist/lib/neutral/chunk-DAKIZO46.mjs.map +7 -0
  23. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  24. package/dist/lib/neutral/chunk-M5ISZWZU.mjs +8 -0
  25. package/dist/lib/neutral/chunk-M5ISZWZU.mjs.map +7 -0
  26. package/dist/lib/neutral/chunk-ZTQW5KQS.mjs +26 -0
  27. package/dist/lib/neutral/chunk-ZTQW5KQS.mjs.map +7 -0
  28. package/dist/lib/neutral/components/index.mjs +243 -0
  29. package/dist/lib/neutral/components/index.mjs.map +7 -0
  30. package/dist/lib/neutral/containers/index.mjs +11 -0
  31. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  32. package/dist/lib/neutral/create-object-DKBSI46K.mjs +40 -0
  33. package/dist/lib/neutral/create-object-DKBSI46K.mjs.map +7 -0
  34. package/dist/lib/neutral/delete-card-VNAV3CZV.mjs +24 -0
  35. package/dist/lib/neutral/delete-card-VNAV3CZV.mjs.map +7 -0
  36. package/dist/lib/neutral/delete-card-field-XHOLGS6L.mjs +39 -0
  37. package/dist/lib/neutral/delete-card-field-XHOLGS6L.mjs.map +7 -0
  38. package/dist/lib/neutral/hooks/index.mjs +431 -0
  39. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  40. package/dist/lib/neutral/index.mjs +34 -0
  41. package/dist/lib/neutral/index.mjs.map +7 -0
  42. package/dist/lib/neutral/meta.json +1 -0
  43. package/dist/lib/neutral/meta.mjs +8 -0
  44. package/dist/lib/neutral/meta.mjs.map +7 -0
  45. package/dist/lib/neutral/operation-handler-B7IW6MXU.mjs +13 -0
  46. package/dist/lib/neutral/operation-handler-B7IW6MXU.mjs.map +7 -0
  47. package/dist/lib/neutral/operations/index.mjs +8 -0
  48. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  49. package/dist/lib/neutral/plugin.mjs +16 -0
  50. package/dist/lib/neutral/plugin.mjs.map +7 -0
  51. package/dist/lib/neutral/react-surface-VZEVEJL5.mjs +91 -0
  52. package/dist/lib/neutral/react-surface-VZEVEJL5.mjs.map +7 -0
  53. package/dist/lib/neutral/restore-card-EKVEPATL.mjs +21 -0
  54. package/dist/lib/neutral/restore-card-EKVEPATL.mjs.map +7 -0
  55. package/dist/lib/neutral/restore-card-field-TQCTGGNO.mjs +37 -0
  56. package/dist/lib/neutral/restore-card-field-TQCTGGNO.mjs.map +7 -0
  57. package/dist/lib/neutral/testing/index.mjs +62 -0
  58. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  59. package/dist/lib/neutral/translations.mjs +44 -0
  60. package/dist/lib/neutral/translations.mjs.map +7 -0
  61. package/dist/lib/neutral/types/index.mjs +22 -0
  62. package/dist/lib/neutral/types/index.mjs.map +7 -0
  63. package/dist/lib/neutral/undo-mappings-6CHW6BOF.mjs +42 -0
  64. package/dist/lib/neutral/undo-mappings-6CHW6BOF.mjs.map +7 -0
  65. package/dist/types/src/KanbanPlugin.d.ts +3 -1
  66. package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
  67. package/dist/types/src/KanbanPlugin.node.d.ts +4 -0
  68. package/dist/types/src/KanbanPlugin.node.d.ts.map +1 -0
  69. package/dist/types/src/KanbanPlugin.test.d.ts +2 -0
  70. package/dist/types/src/KanbanPlugin.test.d.ts.map +1 -0
  71. package/dist/types/src/KanbanPlugin.workerd.d.ts +4 -0
  72. package/dist/types/src/KanbanPlugin.workerd.d.ts.map +1 -0
  73. package/dist/types/src/blueprints/index.d.ts +2 -0
  74. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  75. package/dist/types/src/blueprints/kanban-blueprint.d.ts +4 -0
  76. package/dist/types/src/blueprints/kanban-blueprint.d.ts.map +1 -0
  77. package/dist/types/src/capabilities/artifact-definition.d.ts +3 -2
  78. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
  79. package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
  80. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  81. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  82. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  83. package/dist/types/src/capabilities/index.d.ts +13 -2
  84. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  85. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  86. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  87. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  88. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  89. package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
  90. package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
  91. package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts +37 -0
  92. package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts.map +1 -0
  93. package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts +72 -0
  94. package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts.map +1 -0
  95. package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts +9 -0
  96. package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts.map +1 -0
  97. package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts +8 -0
  98. package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts.map +1 -0
  99. package/dist/types/src/components/KanbanBoard/context.d.ts +38 -0
  100. package/dist/types/src/components/KanbanBoard/context.d.ts.map +1 -0
  101. package/dist/types/src/components/KanbanBoard/index.d.ts +2 -0
  102. package/dist/types/src/components/KanbanBoard/index.d.ts.map +1 -0
  103. package/dist/types/src/components/index.d.ts +1 -2
  104. package/dist/types/src/components/index.d.ts.map +1 -1
  105. package/dist/types/src/containers/KanbanArticle/KanbanArticle.d.ts +6 -0
  106. package/dist/types/src/containers/KanbanArticle/KanbanArticle.d.ts.map +1 -0
  107. package/dist/types/src/containers/KanbanArticle/KanbanArticle.stories.d.ts +79 -0
  108. package/dist/types/src/containers/KanbanArticle/KanbanArticle.stories.d.ts.map +1 -0
  109. package/dist/types/src/containers/KanbanArticle/index.d.ts +2 -0
  110. package/dist/types/src/containers/KanbanArticle/index.d.ts.map +1 -0
  111. package/dist/types/src/containers/KanbanSettings/KanbanSettings.d.ts +13 -0
  112. package/dist/types/src/containers/KanbanSettings/KanbanSettings.d.ts.map +1 -0
  113. package/dist/types/src/containers/KanbanSettings/index.d.ts +2 -0
  114. package/dist/types/src/containers/KanbanSettings/index.d.ts.map +1 -0
  115. package/dist/types/src/containers/index.d.ts +4 -0
  116. package/dist/types/src/containers/index.d.ts.map +1 -0
  117. package/dist/types/src/hooks/index.d.ts +7 -0
  118. package/dist/types/src/hooks/index.d.ts.map +1 -0
  119. package/dist/types/src/hooks/useEchoChangeCallback.d.ts +13 -0
  120. package/dist/types/src/hooks/useEchoChangeCallback.d.ts.map +1 -0
  121. package/dist/types/src/hooks/useItemsProjection.d.ts +10 -0
  122. package/dist/types/src/hooks/useItemsProjection.d.ts.map +1 -0
  123. package/dist/types/src/hooks/useKanbanBoardModel.browser.test.d.ts +2 -0
  124. package/dist/types/src/hooks/useKanbanBoardModel.browser.test.d.ts.map +1 -0
  125. package/dist/types/src/hooks/useKanbanBoardModel.d.ts +16 -0
  126. package/dist/types/src/hooks/useKanbanBoardModel.d.ts.map +1 -0
  127. package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts +22 -0
  128. package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts.map +1 -0
  129. package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts +19 -0
  130. package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts.map +1 -0
  131. package/dist/types/src/hooks/useProjectionModel.d.ts +15 -0
  132. package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -0
  133. package/dist/types/src/index.d.ts +3 -1
  134. package/dist/types/src/index.d.ts.map +1 -1
  135. package/dist/types/src/meta.d.ts +2 -3
  136. package/dist/types/src/meta.d.ts.map +1 -1
  137. package/dist/types/src/operations/delete-card-field.d.ts +5 -0
  138. package/dist/types/src/operations/delete-card-field.d.ts.map +1 -0
  139. package/dist/types/src/operations/delete-card.d.ts +5 -0
  140. package/dist/types/src/operations/delete-card.d.ts.map +1 -0
  141. package/dist/types/src/operations/index.d.ts +3 -0
  142. package/dist/types/src/operations/index.d.ts.map +1 -0
  143. package/dist/types/src/operations/restore-card-field.d.ts +5 -0
  144. package/dist/types/src/operations/restore-card-field.d.ts.map +1 -0
  145. package/dist/types/src/operations/restore-card.d.ts +5 -0
  146. package/dist/types/src/operations/restore-card.d.ts.map +1 -0
  147. package/dist/types/src/playwright/board-manager.d.ts +5 -0
  148. package/dist/types/src/playwright/board-manager.d.ts.map +1 -0
  149. package/dist/types/src/playwright/playwright.config.d.ts +3 -0
  150. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
  151. package/dist/types/src/playwright/smoke.spec.d.ts +2 -0
  152. package/dist/types/src/playwright/smoke.spec.d.ts.map +1 -0
  153. package/dist/types/src/plugin.d.ts +4 -0
  154. package/dist/types/src/plugin.d.ts.map +1 -0
  155. package/dist/types/src/testing/KanbanCardTileSimple.d.ts +7 -0
  156. package/dist/types/src/testing/KanbanCardTileSimple.d.ts.map +1 -0
  157. package/dist/types/src/testing/index.d.ts +2 -0
  158. package/dist/types/src/testing/index.d.ts.map +1 -0
  159. package/dist/types/src/translations.d.ts +50 -22
  160. package/dist/types/src/translations.d.ts.map +1 -1
  161. package/dist/types/src/types/Kanban.d.ts +94 -0
  162. package/dist/types/src/types/Kanban.d.ts.map +1 -0
  163. package/dist/types/src/types/KanbanOperation.d.ts +52 -0
  164. package/dist/types/src/types/KanbanOperation.d.ts.map +1 -0
  165. package/dist/types/src/types/constants.d.ts +6 -0
  166. package/dist/types/src/types/constants.d.ts.map +1 -0
  167. package/dist/types/src/types/index.d.ts +3 -1
  168. package/dist/types/src/types/index.d.ts.map +1 -1
  169. package/dist/types/src/types/schema.d.ts +18 -95
  170. package/dist/types/src/types/schema.d.ts.map +1 -1
  171. package/dist/types/src/types/types.d.ts +28 -0
  172. package/dist/types/src/types/types.d.ts.map +1 -1
  173. package/dist/types/src/util/arrangement.d.ts +72 -0
  174. package/dist/types/src/util/arrangement.d.ts.map +1 -0
  175. package/dist/types/src/util/arrangement.test.d.ts +2 -0
  176. package/dist/types/src/util/arrangement.test.d.ts.map +1 -0
  177. package/dist/types/src/util/index.d.ts +2 -0
  178. package/dist/types/src/util/index.d.ts.map +1 -0
  179. package/dist/types/tsconfig.tsbuildinfo +1 -1
  180. package/package.json +127 -55
  181. package/src/KanbanPlugin.node.ts +21 -0
  182. package/src/KanbanPlugin.test.ts +31 -0
  183. package/src/KanbanPlugin.tsx +24 -52
  184. package/src/KanbanPlugin.workerd.ts +18 -0
  185. package/src/blueprints/index.ts +5 -0
  186. package/src/blueprints/kanban-blueprint.ts +27 -0
  187. package/src/capabilities/artifact-definition.ts +119 -114
  188. package/src/capabilities/blueprint-definition.ts +19 -0
  189. package/src/capabilities/create-object.ts +40 -0
  190. package/src/capabilities/index.ts +16 -3
  191. package/src/capabilities/operation-handler.ts +14 -0
  192. package/src/capabilities/react-surface.tsx +90 -69
  193. package/src/capabilities/undo-mappings.ts +34 -0
  194. package/src/components/KanbanBoard/KanbanBoard.stories.tsx +145 -0
  195. package/src/components/KanbanBoard/KanbanBoard.tsx +164 -0
  196. package/src/components/KanbanBoard/KanbanCard.tsx +101 -0
  197. package/src/components/KanbanBoard/KanbanColumn.tsx +72 -0
  198. package/src/components/KanbanBoard/context.ts +54 -0
  199. package/src/components/KanbanBoard/index.ts +5 -0
  200. package/src/components/index.ts +1 -2
  201. package/src/containers/KanbanArticle/KanbanArticle.stories.tsx +277 -0
  202. package/src/containers/KanbanArticle/KanbanArticle.tsx +179 -0
  203. package/src/containers/KanbanArticle/index.ts +5 -0
  204. package/src/containers/KanbanSettings/KanbanSettings.tsx +94 -0
  205. package/src/containers/KanbanSettings/index.ts +5 -0
  206. package/src/containers/index.ts +8 -0
  207. package/src/hooks/index.ts +10 -0
  208. package/src/hooks/useEchoChangeCallback.ts +30 -0
  209. package/src/hooks/useItemsProjection.ts +44 -0
  210. package/src/hooks/useKanbanBoardModel.browser.test.ts +230 -0
  211. package/src/hooks/useKanbanBoardModel.ts +156 -0
  212. package/src/hooks/useKanbanColumnEventHandler.ts +106 -0
  213. package/src/hooks/useKanbanItemEventHandler.ts +133 -0
  214. package/src/hooks/useProjectionModel.ts +58 -0
  215. package/src/index.ts +3 -2
  216. package/src/meta.ts +27 -8
  217. package/src/operations/delete-card-field.ts +42 -0
  218. package/src/operations/delete-card.ts +23 -0
  219. package/src/operations/index.ts +10 -0
  220. package/src/operations/restore-card-field.ts +36 -0
  221. package/src/operations/restore-card.ts +21 -0
  222. package/src/playwright/board-manager.ts +13 -0
  223. package/src/playwright/playwright.config.ts +19 -0
  224. package/src/playwright/smoke.spec.ts +107 -0
  225. package/src/plugin.ts +11 -0
  226. package/src/testing/KanbanCardTileSimple.tsx +82 -0
  227. package/src/testing/index.ts +5 -0
  228. package/src/translations.ts +28 -20
  229. package/src/types/Kanban.ts +134 -0
  230. package/src/types/KanbanOperation.ts +79 -0
  231. package/src/types/constants.ts +9 -0
  232. package/src/types/index.ts +4 -1
  233. package/src/types/schema.ts +33 -45
  234. package/src/types/types.ts +35 -0
  235. package/src/util/arrangement.test.ts +217 -0
  236. package/src/util/arrangement.ts +177 -0
  237. package/src/util/index.ts +5 -0
  238. package/src/vite-env.d.ts +10 -0
  239. package/dist/lib/browser/chunk-5BR6HNHI.mjs +0 -108
  240. package/dist/lib/browser/chunk-5BR6HNHI.mjs.map +0 -7
  241. package/dist/lib/browser/index.mjs +0 -99
  242. package/dist/lib/browser/index.mjs.map +0 -7
  243. package/dist/lib/browser/intent-resolver-65UVYRI2.mjs +0 -111
  244. package/dist/lib/browser/intent-resolver-65UVYRI2.mjs.map +0 -7
  245. package/dist/lib/browser/meta.json +0 -1
  246. package/dist/lib/browser/react-surface-KX5U6PJ2.mjs +0 -256
  247. package/dist/lib/browser/react-surface-KX5U6PJ2.mjs.map +0 -7
  248. package/dist/lib/browser/types/index.mjs +0 -13
  249. package/dist/lib/node-esm/chunk-WLFZKRIJ.mjs +0 -110
  250. package/dist/lib/node-esm/chunk-WLFZKRIJ.mjs.map +0 -7
  251. package/dist/lib/node-esm/index.mjs +0 -100
  252. package/dist/lib/node-esm/index.mjs.map +0 -7
  253. package/dist/lib/node-esm/intent-resolver-R3MYQATZ.mjs +0 -112
  254. package/dist/lib/node-esm/intent-resolver-R3MYQATZ.mjs.map +0 -7
  255. package/dist/lib/node-esm/meta.json +0 -1
  256. package/dist/lib/node-esm/react-surface-BAMERRU5.mjs +0 -257
  257. package/dist/lib/node-esm/react-surface-BAMERRU5.mjs.map +0 -7
  258. package/dist/lib/node-esm/types/index.mjs +0 -14
  259. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  260. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  261. package/dist/types/src/components/KanbanContainer.d.ts +0 -7
  262. package/dist/types/src/components/KanbanContainer.d.ts.map +0 -1
  263. package/dist/types/src/components/KanbanContainer.stories.d.ts +0 -10
  264. package/dist/types/src/components/KanbanContainer.stories.d.ts.map +0 -1
  265. package/dist/types/src/components/KanbanViewEditor.d.ts +0 -8
  266. package/dist/types/src/components/KanbanViewEditor.d.ts.map +0 -1
  267. package/dist/types/src/types/kanban.d.ts +0 -11
  268. package/dist/types/src/types/kanban.d.ts.map +0 -1
  269. package/src/capabilities/intent-resolver.ts +0 -70
  270. package/src/components/KanbanContainer.stories.tsx +0 -189
  271. package/src/components/KanbanContainer.tsx +0 -95
  272. package/src/components/KanbanViewEditor.tsx +0 -60
  273. package/src/types/kanban.ts +0 -29
  274. /package/dist/lib/{browser/types → neutral/blueprints}/index.mjs.map +0 -0
  275. /package/dist/lib/{node-esm/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
@@ -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 { Obj, Type } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { ProjectionModel, createEchoChangeCallback, getTypeURIFromQuery } 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 types = db.graph.registry.list().filter(Type.isType);\n const type = types.find((t) => Type.getURI(t) === getTypeURIFromQuery(view.query.ast));\n invariant(type, 'Schema not found');\n\n invariant(Type.isType(type), 'expected stored Type.Type for card schema');\n const projection = new ProjectionModel({\n registry,\n view,\n baseSchema: type.jsonSchema,\n change: createEchoChangeCallback(view, type),\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,KAAKC,YAAY;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiBC,0BAA0BC,2BAA2B;AAI/E,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,IAAQC,YAASC,IAAQ;AAC/B,YAAMC,IAAOH,sBAAuBI,EAAAA,YAAOC,YAAOC,GAAAA,cAAyBC,GAAAA,IAAK,GAACC,MAAG,GAAA,CAAA,MAAA,sBAAA,EAAA,CAAA;AACpFT,QAAAA,QAAUI,GAAM,MAAA,SAAA,KAAA,EAAA,OAAA,KAAA,MAAA;AAEhBJ,QAAAA,OAAUU,MAAKC,KAAOP,CAAAA,MAAO,KAAA,OAAA,CAAA,MAAA,oBAAA,KAAA,MAAA,GAAA,CAAA;AAC7B,YAAMQ,MAAAA,oBAAiBC,EAAAA,YAAgB,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,QAAA,oBAAA,EAAA,CAAA;YACrCV,KAAAA,OAAAA,IAAAA,GAAAA,6CAAAA,EAAAA,YAAAA,YAAAA,GAAAA,cAAAA,GAAAA,IAAAA,GAAAA,MAAAA,GAAAA,CAAAA,qBAAAA,6CAAAA,EAAAA,CAAAA;QACAJ,aAAAA,IAAAA,gBAAAA;IACAe;IACAC;IACF,YAAA,KAAA;IAEAH,QAAWI,yBAAmB,MAAA,IAAA;;aAASC,mBAAAA;IAASC;IAClD;EAIJ,GAAA,KAAA;;;",
6
+ "names": ["Effect", "Capabilities", "Capability", "Operation", "Obj", "Type", "invariant", "ProjectionModel", "createEchoChangeCallback", "getTypeURIFromQuery", "KanbanOperation", "Obj", "view", "invariant", "types", "db", "registry", "type", "getURI", "t", "getTypeURIFromQuery", "query", "ast", "Type", "isType", "projection", "ProjectionModel", "baseSchema", "change", "setFieldProjection", "props", "index"]
7
+ }
@@ -0,0 +1,62 @@
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.Header, 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.Body, null, /* @__PURE__ */ React.createElement(Card.Row, {
53
+ fullWidth: true
54
+ }, /* @__PURE__ */ React.createElement("pre", {
55
+ className: "p-2 text-xs text-description whitespace-pre-wrap"
56
+ }, JSON.stringify(data, null, 2))))))));
57
+ });
58
+ KanbanCardTileSimple.displayName = KANBAN_CARD_TILE_SIMPLE_NAME;
59
+ export {
60
+ KanbanCardTileSimple
61
+ };
62
+ //# 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.Header>\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.Header>\n <Card.Body>\n <Card.Row fullWidth>\n <pre className='p-2 text-xs text-description whitespace-pre-wrap'>\n {JSON.stringify(data, null, 2)}\n </pre>\n </Card.Row>\n </Card.Body>\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,KAAKkC,QAAM,MACV,sBAAA,cAAClC,KAAKmC,YAAU;IAACH,KAAKV;MACtB,sBAAA,cAACtB,KAAKoC,OAAK,MAAErC,IAAIsC,SAASzB,IAAAA,CAAAA,GAE1B,sBAAA,cAACT,KAAKmC,SAAO;IAACT,SAAAA;IAAQU,UAAU,CAACf,WAAWgB;KAC1C,sBAAA,cAACvC,QAAQwC,YAAU;IACjBC,UAAAA;IACAC,SAAQ;IACRjB,MAAK;IACLD,OAAOT,EAAE,mBAAA;OAGb,sBAAA,cAACb,KAAKyC,SAAO;IAACC,OAAOrB;OAEvB,sBAAA,cAACxB,KAAK8C,MAAI,MACR,sBAAA,cAAC9C,KAAK+C,KAAG;IAACC,WAAAA;KACR,sBAAA,cAACC,OAAAA;IAAIC,WAAU;KACZC,KAAKC,UAAUxC,MAAM,MAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAS9C,CAAA;AAGFD,qBAAqB0C,cAAc3C;",
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", "Header", "DragHandle", "Title", "getLabel", "Trigger", "disabled", "length", "IconButton", "iconOnly", "variant", "Content", "items", "Body", "Row", "fullWidth", "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-DAKIZO46.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,2 +1,4 @@
1
- export declare const KanbanPlugin: () => import("@dxos/app-framework").Plugin;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const KanbanPlugin: Plugin.PluginFactory<void>;
3
+ export default KanbanPlugin;
2
4
  //# sourceMappingURL=KanbanPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanPlugin.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY,4CA0CrB,CAAC"}
1
+ {"version":3,"file":"KanbanPlugin.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAW7C,eAAO,MAAM,YAAY,4BAYxB,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":""}
@@ -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.workerd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanPlugin.workerd.d.ts","sourceRoot":"","sources":["../../../src/KanbanPlugin.workerd.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,YAAY,4BAIxB,CAAC;eAEa,YAAY"}
@@ -0,0 +1,2 @@
1
+ export { default as KanbanBlueprint } from './kanban-blueprint';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Blueprint } from '@dxos/compute';
2
+ declare const blueprint: Blueprint.Definition;
3
+ export default blueprint;
4
+ //# sourceMappingURL=kanban-blueprint.d.ts.map
@@ -0,0 +1 @@
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,4 +1,5 @@
1
- import { type PromiseIntentDispatcher } from '@dxos/app-framework';
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability, type PromiseIntentDispatcher } from '@dxos/app-framework';
2
3
  import { type Space } from '@dxos/react-client/echo';
3
4
  declare global {
4
5
  interface ToolContextExtensions {
@@ -6,6 +7,6 @@ declare global {
6
7
  dispatch?: PromiseIntentDispatcher;
7
8
  }
8
9
  }
9
- declare const _default: () => import("@dxos/app-framework").Capability<any>;
10
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<any>, never, never>;
10
11
  export default _default;
11
12
  //# sourceMappingURL=artifact-definition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/artifact-definition.ts"],"names":[],"mappings":"AAUA,OAAO,EAAgB,KAAK,uBAAuB,EAAoC,MAAM,qBAAqB,CAAC;AAMnH,OAAO,EAAU,KAAK,KAAK,EAAoB,MAAM,yBAAyB,CAAC;AAY/E,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,QAAQ,CAAC,EAAE,uBAAuB,CAAC;KACpC;CACF;;AAED,wBA+GE"}
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"}
@@ -0,0 +1,6 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ import { AppCapabilities } from '@dxos/app-toolkit';
4
+ declare const blueprintDefinition: () => Effect.Effect<Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[], never, Capability.Service>;
5
+ export default blueprintDefinition;
6
+ //# sourceMappingURL=blueprint-definition.d.ts.map
@@ -0,0 +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;AAKpD,QAAA,MAAM,mBAAmB,EAAE,MAAM,MAAM,CAAC,MAAM,CAC5C,UAAU,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,mBAAmB,CAAC,EAAE,EACnE,KAAK,EACL,UAAU,CAAC,OAAO,CACoF,CAAC;eAE1F,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,3 +1,14 @@
1
- export declare const IntentResolver: (props?: import("@dxos/app-framework").PluginContext | undefined) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
2
- export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
1
+ import { Capability } from '@dxos/app-framework';
2
+ import { type AppCapabilities } from '@dxos/app-toolkit';
3
+ import type { OperationHandlerSet } from '@dxos/compute';
4
+ export declare const BlueprintDefinition: Capability.LazyCapability<void, Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[]>;
5
+ export declare const CreateObject: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<Readonly<{
6
+ id: string;
7
+ createObject: import("@dxos/plugin-space").CreateObject;
8
+ inputSchema?: import("effect/Schema").Schema.AnyNoContext;
9
+ customPanel?: import("react").ComponentType<import("@dxos/plugin-space").SpaceCapabilities.CreateObjectCustomPanelProps>;
10
+ }>>>, Error>;
11
+ export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
12
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
13
+ export declare const UndoMappings: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").UndoMapping[]>>, Error>;
3
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,kPAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC"}
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,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAIzD,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,cAAc,CACzD,IAAI,EACJ,UAAU,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,mBAAmB,CAAC,EAAE,CACa,CAAC;AACnF,eAAO,MAAM,YAAY;;;;;YAAmE,CAAC;AAC7F,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 type { OperationHandlerSet } from '@dxos/compute';
4
+ declare const _default: (props: OperationHandlerSet.OperationHandlerSet) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
5
+ export default _default;
6
+ //# sourceMappingURL=operation-handler.d.ts.map
@@ -0,0 +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,eAAe,CAAC"}
@@ -1,4 +1,5 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.ReactSurface>>, never, never>;
3
4
  export default _default;
4
5
  //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAA+C,MAAM,qBAAqB,CAAC;;AAahG,wBA+DK"}
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"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capabilities, Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Capabilities.UndoMapping[]>>, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=undo-mappings.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,37 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import React, { type ComponentPropsWithoutRef, type PropsWithChildren } from 'react';
3
+ import { Obj } from '@dxos/echo';
4
+ import type { ProjectionModel } from '@dxos/schema';
5
+ import { type Kanban } from '#types';
6
+ import { type KanbanBoardContextValue, type KanbanCardProps, type KanbanColumnProps, useKanbanBoard } from './context';
7
+ type KanbanBoardRootProps = PropsWithChildren<{
8
+ kanban: Kanban.Kanban;
9
+ /** Required when providing context; Root derives columnFieldPath, pivotFieldId, getPivotAttributes from kanban + projection. */
10
+ projection: ProjectionModel;
11
+ /** Atom of items (e.g. from AtomQuery for DB, or Atom.make([]) for in-memory). */
12
+ items: Atom.Atom<Obj.Unknown[]>;
13
+ onCardAdd?: (columnValue: string | undefined) => string | undefined;
14
+ onCardRemove?: (card: Obj.Unknown) => void;
15
+ } & Pick<KanbanBoardContextValue, 'change' | 'itemTile'> & ComponentPropsWithoutRef<'div'>>;
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
+ }
20
+ type KanbanBoardContentProps = {};
21
+ export declare const KanbanBoardContent: React.ForwardRefExoticComponent<Omit<KanbanBoardContentProps, "className"> & {
22
+ classNames?: import("@dxos/ui-types").ClassNameValue;
23
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
24
+ export declare const KanbanBoard: {
25
+ Root: {
26
+ ({ children, kanban, projection, items, change, itemTile, onCardAdd, onCardRemove, }: KanbanBoardRootProps): React.JSX.Element;
27
+ displayName: string;
28
+ };
29
+ Content: React.ForwardRefExoticComponent<Omit<KanbanBoardContentProps, "className"> & {
30
+ classNames?: import("@dxos/ui-types").ClassNameValue;
31
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
32
+ Column: React.ForwardRefExoticComponent<KanbanColumnProps & React.RefAttributes<HTMLDivElement>>;
33
+ Card: React.ForwardRefExoticComponent<KanbanCardProps & React.RefAttributes<HTMLDivElement>>;
34
+ };
35
+ export { useKanbanBoard };
36
+ export type { KanbanBoardRootProps as KanbanBoardProps, KanbanCardProps, KanbanColumnProps };
37
+ //# sourceMappingURL=KanbanBoard.d.ts.map
@@ -0,0 +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;AACrE,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAoC,MAAM,OAAO,CAAC;AAEvH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,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"}
@@ -0,0 +1,72 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: () => React.JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ translations: [{
10
+ readonly 'en-US': {
11
+ readonly [x: string]: {
12
+ readonly 'typename.label': '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
+ readonly 'action-menu.label'?: undefined;
22
+ readonly 'plugin.name'?: undefined;
23
+ readonly 'kanban-title.label'?: undefined;
24
+ readonly 'column-title.label'?: undefined;
25
+ readonly 'column-title.placeholder'?: undefined;
26
+ readonly 'add-column.label'?: undefined;
27
+ readonly 'add-card.label'?: undefined;
28
+ readonly 'new-column-name.label'?: undefined;
29
+ readonly 'remove-card.label'?: undefined;
30
+ readonly 'remove-empty-column.label'?: undefined;
31
+ readonly 'column-drag-handle.label'?: undefined;
32
+ readonly 'delete-column.label'?: undefined;
33
+ readonly 'card-field-deleted.label'?: undefined;
34
+ readonly 'card-deleted.label'?: undefined;
35
+ readonly 'select-pivot.placeholder'?: undefined;
36
+ } | {
37
+ readonly 'typename.label'?: undefined;
38
+ readonly 'typename.label_zero'?: undefined;
39
+ readonly 'typename.label_one'?: undefined;
40
+ readonly 'typename.label_other'?: undefined;
41
+ readonly 'object-name.placeholder'?: undefined;
42
+ readonly 'add-object.label'?: undefined;
43
+ readonly 'rename-object.label'?: undefined;
44
+ readonly 'delete-object.label'?: undefined;
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
+ };
62
+ };
63
+ }];
64
+ };
65
+ };
66
+ export default meta;
67
+ type Story = StoryObj<typeof meta>;
68
+ /**
69
+ * In-memory board with Echo-shaped objects. No plugin manager, client, or Space.
70
+ */
71
+ export declare const Default: Story;
72
+ //# sourceMappingURL=KanbanBoard.stories.d.ts.map
@@ -0,0 +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;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"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { type KanbanCardProps } from './context';
3
+ export { type KanbanCardProps };
4
+ /**
5
+ * Mosaic Tile for Kanban card.
6
+ * Uses Surface for content; requires plugin manager context.
7
+ */
8
+ export declare const KanbanCard: React.ForwardRefExoticComponent<KanbanCardProps & React.RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=KanbanCard.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { type KanbanColumnProps } from './context';
3
+ export { type KanbanColumnProps };
4
+ /**
5
+ * Mosaic Tile for Kanban column.
6
+ */
7
+ export declare const KanbanColumn: React.ForwardRefExoticComponent<KanbanColumnProps & React.RefAttributes<HTMLDivElement>>;
8
+ //# sourceMappingURL=KanbanColumn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanColumn.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/KanbanColumn.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmC,MAAM,OAAO,CAAC;AAQxD,OAAO,EAAE,KAAK,iBAAiB,EAAkB,MAAM,WAAW,CAAC;AAEnE,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAC;AAIlC;;GAEG;AACH,eAAO,MAAM,YAAY,0FAgDxB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { type ComponentType } from 'react';
2
+ import { type Obj } from '@dxos/echo';
3
+ import { type MosaicTileProps } from '@dxos/react-ui-mosaic';
4
+ import { type ProjectionModel } from '@dxos/schema';
5
+ import { type ColumnStructure, type KanbanChangeCallback } from '#types';
6
+ /**
7
+ * Card tile props. Defined here (rather than in `KanbanCard.tsx`) so the
8
+ * context type can reference it without forming a cycle through that
9
+ * module's runtime exports — webkit treats the resulting TDZ as a hard
10
+ * error while other engines are lenient.
11
+ */
12
+ export type KanbanCardProps = Pick<MosaicTileProps<Obj.Unknown>, 'location' | 'data' | 'debug' | 'draggable'>;
13
+ /**
14
+ * Column tile props. See note on {@link KanbanCardProps}.
15
+ */
16
+ export type KanbanColumnProps = Pick<MosaicTileProps<ColumnStructure>, 'location' | 'data' | 'debug' | 'draggable'>;
17
+ /**
18
+ * Context value for the Kanban board.
19
+ * Items are Echo objects (Obj.Unknown).
20
+ */
21
+ export type KanbanBoardContextValue = {
22
+ kanbanId: string;
23
+ projection: ProjectionModel | undefined;
24
+ columnFieldPath: string | undefined;
25
+ change: KanbanChangeCallback<Obj.Unknown>;
26
+ pivotFieldId: string | undefined;
27
+ getPivotAttributes: (columnValue: string) => {
28
+ title: string;
29
+ color: string;
30
+ };
31
+ itemTile?: ComponentType<KanbanCardProps>;
32
+ onCardAdd?: (columnValue: string | undefined) => string | undefined;
33
+ onCardRemove?: (card: Obj.Unknown) => void;
34
+ };
35
+ export declare const KanbanBoardContext: import("react").FC<KanbanBoardContextValue & {
36
+ children: React.ReactNode;
37
+ }>, useKanbanBoard: (consumerName: string) => KanbanBoardContextValue;
38
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/context.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAiD,MAAM,QAAQ,CAAC;AAIxH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC,CAAC;AAE9G;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC,CAAC;AAEpH;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,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,eAAO,MAAO,kBAAkB;;IAAE,cAAc,mDAS9C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './KanbanBoard';
2
+ //# sourceMappingURL=index.d.ts.map