@dxos/plugin-kanban 0.8.4-main.9735255 → 0.8.4-main.abd8ff62ef

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 (256) hide show
  1. package/dist/lib/browser/blueprints/index.mjs +23 -4
  2. package/dist/lib/browser/blueprints/index.mjs.map +4 -4
  3. package/dist/lib/browser/chunk-T32TEM55.mjs +105 -0
  4. package/dist/lib/browser/chunk-T32TEM55.mjs.map +7 -0
  5. package/dist/lib/browser/delete-card-7OSCNCW2.mjs +24 -0
  6. package/dist/lib/browser/delete-card-7OSCNCW2.mjs.map +7 -0
  7. package/dist/lib/browser/delete-card-field-NSB2RE3Z.mjs +42 -0
  8. package/dist/lib/browser/delete-card-field-NSB2RE3Z.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +20 -89
  10. package/dist/lib/browser/index.mjs.map +4 -4
  11. package/dist/lib/browser/meta.json +1 -1
  12. package/dist/lib/browser/operations/index.mjs +13 -0
  13. package/dist/lib/browser/operations/index.mjs.map +7 -0
  14. package/dist/lib/browser/restore-card-FO3WERIE.mjs +21 -0
  15. package/dist/lib/browser/restore-card-FO3WERIE.mjs.map +7 -0
  16. package/dist/lib/browser/restore-card-field-U5XYEEOW.mjs +40 -0
  17. package/dist/lib/browser/restore-card-field-U5XYEEOW.mjs.map +7 -0
  18. package/dist/lib/browser/translations.mjs +44 -0
  19. package/dist/lib/browser/translations.mjs.map +7 -0
  20. package/dist/lib/browser/types/index.mjs +154 -8
  21. package/dist/lib/browser/types/index.mjs.map +4 -4
  22. package/dist/lib/node-esm/blueprints/index.mjs +23 -4
  23. package/dist/lib/node-esm/blueprints/index.mjs.map +4 -4
  24. package/dist/lib/node-esm/chunk-W2RNFBMZ.mjs +106 -0
  25. package/dist/lib/node-esm/chunk-W2RNFBMZ.mjs.map +7 -0
  26. package/dist/lib/node-esm/delete-card-ZIREL6HN.mjs +25 -0
  27. package/dist/lib/node-esm/delete-card-ZIREL6HN.mjs.map +7 -0
  28. package/dist/lib/node-esm/delete-card-field-IPTEGVPP.mjs +43 -0
  29. package/dist/lib/node-esm/delete-card-field-IPTEGVPP.mjs.map +7 -0
  30. package/dist/lib/node-esm/index.mjs +20 -89
  31. package/dist/lib/node-esm/index.mjs.map +4 -4
  32. package/dist/lib/node-esm/meta.json +1 -1
  33. package/dist/lib/node-esm/operations/index.mjs +14 -0
  34. package/dist/lib/node-esm/operations/index.mjs.map +7 -0
  35. package/dist/lib/node-esm/restore-card-WJJ4YB7K.mjs +22 -0
  36. package/dist/lib/node-esm/restore-card-WJJ4YB7K.mjs.map +7 -0
  37. package/dist/lib/node-esm/restore-card-field-L24WJXAW.mjs +41 -0
  38. package/dist/lib/node-esm/restore-card-field-L24WJXAW.mjs.map +7 -0
  39. package/dist/lib/node-esm/translations.mjs +45 -0
  40. package/dist/lib/node-esm/translations.mjs.map +7 -0
  41. package/dist/lib/node-esm/types/index.mjs +154 -8
  42. package/dist/lib/node-esm/types/index.mjs.map +4 -4
  43. package/dist/types/src/KanbanPlugin.d.ts +1 -0
  44. package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
  45. package/dist/types/src/KanbanPlugin.node.d.ts +4 -0
  46. package/dist/types/src/KanbanPlugin.node.d.ts.map +1 -0
  47. package/dist/types/src/KanbanPlugin.test.d.ts +2 -0
  48. package/dist/types/src/KanbanPlugin.test.d.ts.map +1 -0
  49. package/dist/types/src/blueprints/index.d.ts +1 -1
  50. package/dist/types/src/blueprints/index.d.ts.map +1 -1
  51. package/dist/types/src/blueprints/kanban-blueprint.d.ts +3 -21
  52. package/dist/types/src/blueprints/kanban-blueprint.d.ts.map +1 -1
  53. package/dist/types/src/capabilities/{artifact-definition/artifact-definition.d.ts → artifact-definition.d.ts} +1 -1
  54. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -0
  55. package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
  56. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  57. package/dist/types/src/capabilities/index.d.ts +7 -3
  58. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  59. package/dist/types/src/capabilities/migrations.d.ts +5 -0
  60. package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
  61. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  62. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  63. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  64. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  65. package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
  66. package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
  67. package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts +57 -0
  68. package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts.map +1 -0
  69. package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts +72 -0
  70. package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts.map +1 -0
  71. package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts +10 -0
  72. package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts.map +1 -0
  73. package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts +9 -0
  74. package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts.map +1 -0
  75. package/dist/types/src/components/KanbanBoard/index.d.ts +2 -0
  76. package/dist/types/src/components/KanbanBoard/index.d.ts.map +1 -0
  77. package/dist/types/src/components/index.d.ts +1 -2
  78. package/dist/types/src/components/index.d.ts.map +1 -1
  79. package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts +6 -0
  80. package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts.map +1 -0
  81. package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts +79 -0
  82. package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts.map +1 -0
  83. package/dist/types/src/containers/KanbanContainer/index.d.ts +2 -0
  84. package/dist/types/src/containers/KanbanContainer/index.d.ts.map +1 -0
  85. package/dist/types/src/containers/KanbanSettings/KanbanSettings.d.ts +13 -0
  86. package/dist/types/src/containers/KanbanSettings/KanbanSettings.d.ts.map +1 -0
  87. package/dist/types/src/containers/KanbanSettings/index.d.ts +2 -0
  88. package/dist/types/src/containers/KanbanSettings/index.d.ts.map +1 -0
  89. package/dist/types/src/containers/index.d.ts +4 -0
  90. package/dist/types/src/containers/index.d.ts.map +1 -0
  91. package/dist/types/src/hooks/index.d.ts +7 -0
  92. package/dist/types/src/hooks/index.d.ts.map +1 -0
  93. package/dist/types/src/hooks/useEchoChangeCallback.d.ts +13 -0
  94. package/dist/types/src/hooks/useEchoChangeCallback.d.ts.map +1 -0
  95. package/dist/types/src/hooks/useItemsProjection.d.ts +10 -0
  96. package/dist/types/src/hooks/useItemsProjection.d.ts.map +1 -0
  97. package/dist/types/src/hooks/useKanbanBoardModel.browser.test.d.ts +2 -0
  98. package/dist/types/src/hooks/useKanbanBoardModel.browser.test.d.ts.map +1 -0
  99. package/dist/types/src/hooks/useKanbanBoardModel.d.ts +16 -0
  100. package/dist/types/src/hooks/useKanbanBoardModel.d.ts.map +1 -0
  101. package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts +22 -0
  102. package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts.map +1 -0
  103. package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts +19 -0
  104. package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts.map +1 -0
  105. package/dist/types/src/hooks/useProjectionModel.d.ts +15 -0
  106. package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -0
  107. package/dist/types/src/index.d.ts +2 -1
  108. package/dist/types/src/index.d.ts.map +1 -1
  109. package/dist/types/src/operations/definitions.d.ts +52 -0
  110. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  111. package/dist/types/src/operations/delete-card-field.d.ts +5 -0
  112. package/dist/types/src/operations/delete-card-field.d.ts.map +1 -0
  113. package/dist/types/src/operations/delete-card.d.ts +5 -0
  114. package/dist/types/src/operations/delete-card.d.ts.map +1 -0
  115. package/dist/types/src/operations/index.d.ts +4 -0
  116. package/dist/types/src/operations/index.d.ts.map +1 -0
  117. package/dist/types/src/operations/restore-card-field.d.ts +5 -0
  118. package/dist/types/src/operations/restore-card-field.d.ts.map +1 -0
  119. package/dist/types/src/operations/restore-card.d.ts +5 -0
  120. package/dist/types/src/operations/restore-card.d.ts.map +1 -0
  121. package/dist/types/src/playwright/board-manager.d.ts +5 -0
  122. package/dist/types/src/playwright/board-manager.d.ts.map +1 -0
  123. package/dist/types/src/playwright/playwright.config.d.ts +3 -0
  124. package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
  125. package/dist/types/src/playwright/smoke.spec.d.ts +2 -0
  126. package/dist/types/src/playwright/smoke.spec.d.ts.map +1 -0
  127. package/dist/types/src/testing/KanbanCardTileSimple.d.ts +7 -0
  128. package/dist/types/src/testing/KanbanCardTileSimple.d.ts.map +1 -0
  129. package/dist/types/src/testing/index.d.ts +2 -0
  130. package/dist/types/src/testing/index.d.ts.map +1 -0
  131. package/dist/types/src/translations.d.ts +48 -32
  132. package/dist/types/src/translations.d.ts.map +1 -1
  133. package/dist/types/src/types/Kanban.d.ts +109 -0
  134. package/dist/types/src/types/Kanban.d.ts.map +1 -0
  135. package/dist/types/src/types/constants.d.ts +6 -0
  136. package/dist/types/src/types/constants.d.ts.map +1 -0
  137. package/dist/types/src/types/index.d.ts +2 -0
  138. package/dist/types/src/types/index.d.ts.map +1 -1
  139. package/dist/types/src/types/migrations.test.d.ts +2 -0
  140. package/dist/types/src/types/migrations.test.d.ts.map +1 -0
  141. package/dist/types/src/types/schema.d.ts +15 -104
  142. package/dist/types/src/types/schema.d.ts.map +1 -1
  143. package/dist/types/src/types/types.d.ts +28 -0
  144. package/dist/types/src/types/types.d.ts.map +1 -1
  145. package/dist/types/src/util/arrangement.d.ts +72 -0
  146. package/dist/types/src/util/arrangement.d.ts.map +1 -0
  147. package/dist/types/src/util/arrangement.test.d.ts +2 -0
  148. package/dist/types/src/util/arrangement.test.d.ts.map +1 -0
  149. package/dist/types/src/util/index.d.ts +2 -0
  150. package/dist/types/src/util/index.d.ts.map +1 -0
  151. package/dist/types/tsconfig.tsbuildinfo +1 -1
  152. package/package.json +74 -52
  153. package/src/KanbanPlugin.node.ts +55 -0
  154. package/src/KanbanPlugin.test.ts +31 -0
  155. package/src/KanbanPlugin.tsx +42 -24
  156. package/src/blueprints/index.ts +1 -1
  157. package/src/blueprints/kanban-blueprint.ts +12 -9
  158. package/src/capabilities/{artifact-definition/artifact-definition.ts → artifact-definition.ts} +11 -10
  159. package/src/capabilities/blueprint-definition.ts +19 -0
  160. package/src/capabilities/index.ts +12 -3
  161. package/src/capabilities/migrations.ts +35 -0
  162. package/src/capabilities/operation-handler.ts +14 -0
  163. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +31 -22
  164. package/src/capabilities/undo-mappings.ts +34 -0
  165. package/src/components/KanbanBoard/KanbanBoard.stories.tsx +146 -0
  166. package/src/components/KanbanBoard/KanbanBoard.tsx +198 -0
  167. package/src/components/KanbanBoard/KanbanCard.tsx +98 -0
  168. package/src/components/KanbanBoard/KanbanColumn.tsx +71 -0
  169. package/src/components/KanbanBoard/index.ts +5 -0
  170. package/src/components/index.ts +1 -2
  171. package/src/{components → containers/KanbanContainer}/KanbanContainer.stories.tsx +85 -96
  172. package/src/containers/KanbanContainer/KanbanContainer.tsx +178 -0
  173. package/src/containers/KanbanContainer/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 +8 -0
  177. package/src/hooks/index.ts +10 -0
  178. package/src/hooks/useEchoChangeCallback.ts +30 -0
  179. package/src/hooks/useItemsProjection.ts +44 -0
  180. package/src/hooks/useKanbanBoardModel.browser.test.ts +235 -0
  181. package/src/hooks/useKanbanBoardModel.ts +157 -0
  182. package/src/hooks/useKanbanColumnEventHandler.ts +106 -0
  183. package/src/hooks/useKanbanItemEventHandler.ts +133 -0
  184. package/src/hooks/useProjectionModel.ts +58 -0
  185. package/src/index.ts +6 -2
  186. package/src/meta.ts +1 -1
  187. package/src/operations/definitions.ts +63 -0
  188. package/src/operations/delete-card-field.ts +47 -0
  189. package/src/operations/delete-card.ts +23 -0
  190. package/src/operations/index.ts +12 -0
  191. package/src/operations/restore-card-field.ts +41 -0
  192. package/src/operations/restore-card.ts +21 -0
  193. package/src/playwright/board-manager.ts +13 -0
  194. package/src/playwright/playwright.config.ts +19 -0
  195. package/src/playwright/smoke.spec.ts +107 -0
  196. package/src/testing/KanbanCardTileSimple.tsx +82 -0
  197. package/src/testing/index.ts +5 -0
  198. package/src/translations.ts +26 -18
  199. package/src/types/Kanban.ts +151 -0
  200. package/src/types/constants.ts +9 -0
  201. package/src/types/index.ts +2 -0
  202. package/src/types/migrations.test.ts +83 -0
  203. package/src/types/schema.ts +19 -77
  204. package/src/types/types.ts +35 -0
  205. package/src/util/arrangement.test.ts +218 -0
  206. package/src/util/arrangement.ts +177 -0
  207. package/src/util/index.ts +5 -0
  208. package/dist/lib/browser/blueprint-definition-T2544VMJ.mjs +0 -17
  209. package/dist/lib/browser/blueprint-definition-T2544VMJ.mjs.map +0 -7
  210. package/dist/lib/browser/chunk-L6N4ZDZ7.mjs +0 -35
  211. package/dist/lib/browser/chunk-L6N4ZDZ7.mjs.map +0 -7
  212. package/dist/lib/browser/chunk-XYQO4VL7.mjs +0 -150
  213. package/dist/lib/browser/chunk-XYQO4VL7.mjs.map +0 -7
  214. package/dist/lib/browser/operation-resolver-UEJHX42A.mjs +0 -162
  215. package/dist/lib/browser/operation-resolver-UEJHX42A.mjs.map +0 -7
  216. package/dist/lib/browser/react-surface-LFUJAPRL.mjs +0 -236
  217. package/dist/lib/browser/react-surface-LFUJAPRL.mjs.map +0 -7
  218. package/dist/lib/node-esm/blueprint-definition-APJQFSHJ.mjs +0 -18
  219. package/dist/lib/node-esm/blueprint-definition-APJQFSHJ.mjs.map +0 -7
  220. package/dist/lib/node-esm/chunk-NN6JMKIT.mjs +0 -152
  221. package/dist/lib/node-esm/chunk-NN6JMKIT.mjs.map +0 -7
  222. package/dist/lib/node-esm/chunk-ZHRMUKTF.mjs +0 -36
  223. package/dist/lib/node-esm/chunk-ZHRMUKTF.mjs.map +0 -7
  224. package/dist/lib/node-esm/operation-resolver-5RPWHZCF.mjs +0 -163
  225. package/dist/lib/node-esm/operation-resolver-5RPWHZCF.mjs.map +0 -7
  226. package/dist/lib/node-esm/react-surface-7TSGBRJL.mjs +0 -237
  227. package/dist/lib/node-esm/react-surface-7TSGBRJL.mjs.map +0 -7
  228. package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts.map +0 -1
  229. package/dist/types/src/capabilities/artifact-definition/index.d.ts +0 -3
  230. package/dist/types/src/capabilities/artifact-definition/index.d.ts.map +0 -1
  231. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +0 -9
  232. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +0 -1
  233. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +0 -3
  234. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +0 -1
  235. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  236. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  237. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  238. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  239. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  240. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  241. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
  242. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  243. package/dist/types/src/components/KanbanContainer.d.ts +0 -6
  244. package/dist/types/src/components/KanbanContainer.d.ts.map +0 -1
  245. package/dist/types/src/components/KanbanContainer.stories.d.ts +0 -75
  246. package/dist/types/src/components/KanbanContainer.stories.d.ts.map +0 -1
  247. package/dist/types/src/components/KanbanViewEditor.d.ts +0 -8
  248. package/dist/types/src/components/KanbanViewEditor.d.ts.map +0 -1
  249. package/src/capabilities/artifact-definition/index.ts +0 -7
  250. package/src/capabilities/blueprint-definition/blueprint-definition.ts +0 -23
  251. package/src/capabilities/blueprint-definition/index.ts +0 -7
  252. package/src/capabilities/operation-resolver/index.ts +0 -7
  253. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -133
  254. package/src/capabilities/react-surface/index.ts +0 -7
  255. package/src/components/KanbanContainer.tsx +0 -86
  256. package/src/components/KanbanViewEditor.tsx +0 -59
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
3
+ "sources": ["../../../../src/types/constants.ts", "../../../../src/types/Kanban.ts", "../../../../src/types/schema.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nexport const UNCATEGORIZED_VALUE = '__uncategorized__' as const;\nexport const UNCATEGORIZED_ATTRIBUTES = {\n title: 'Uncategorized',\n color: 'neutral',\n} as const;\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, Obj, Ref, Type } from '@dxos/echo';\nimport { View } from '@dxos/echo';\nimport { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/internal';\nimport { ViewAnnotation } from '@dxos/schema';\n\n/**\n * Per-column entry: ordered card ids plus an optional `hidden` flag that\n * removes the column from the rendered board (and from the model's column\n * list). Today only the uncategorized column is exposed in settings, but\n * the data structure supports per-column hiding generally.\n */\nconst ArrangementColumnEntry = Schema.Struct({\n ids: Schema.Array(Obj.ID),\n hidden: Schema.Boolean.pipe(Schema.optional),\n});\n\n/** Keyed by columnValue. */\nconst ArrangementColumns = Schema.Record({\n key: Schema.String,\n value: ArrangementColumnEntry,\n}).pipe(FormInputAnnotation.set(false));\n\n/** Column order and per-column card ids. */\nexport const Arrangement = Schema.Struct({\n order: Schema.Array(Schema.String).pipe(FormInputAnnotation.set(false)),\n columns: ArrangementColumns,\n}).pipe(FormInputAnnotation.set(false));\n\nexport type Arrangement = Schema.Schema.Type<typeof Arrangement>;\n\n/**\n * v1: pre-existing Kanban shape. Retained as the source for the v1→v2 migration.\n */\nexport const KanbanV1 = Schema.Struct({\n name: Schema.String.pipe(Schema.optional),\n view: Ref.Ref(View.View).pipe(FormInputAnnotation.set(false)),\n arrangement: Arrangement,\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.kanban',\n version: '0.1.0',\n }),\n);\n\n//\n// v2 — `spec` is a discriminated union of how items are sourced.\n//\n// Mirrors the canonical DXOS pattern (see `Trigger.Spec` in\n// `@dxos/functions/src/types/Trigger.ts` and `Sequence.Source` in\n// `@dxos/plugin-zen`): the `Type.object` schema is a flat `Schema.Struct`,\n// and the discriminated union lives one level down as a single field whose\n// variants are tagged with a `kind` literal.\n//\n\n/** View-variant: items come from running the View's query (the original behaviour). */\nexport const KanbanViewSpec = Schema.Struct({\n kind: Schema.Literal('view').pipe(FormInputAnnotation.set(false)),\n view: Ref.Ref(View.View).pipe(FormInputAnnotation.set(false)),\n});\nexport type KanbanViewSpec = Schema.Schema.Type<typeof KanbanViewSpec>;\n\n/** Items-variant: kanban owns its items as an explicit ref array (used by externally-synced kanbans). */\nexport const KanbanItemsSpec = Schema.Struct({\n kind: Schema.Literal('items').pipe(FormInputAnnotation.set(false)),\n /** Property path on each item that drives column membership (e.g. `'listName'`). */\n pivotField: Schema.String,\n /** Items owned directly by the kanban. */\n items: Schema.Array(Ref.Ref(Obj.Unknown)).pipe(FormInputAnnotation.set(false)),\n});\nexport type KanbanItemsSpec = Schema.Schema.Type<typeof KanbanItemsSpec>;\n\n/** Discriminated union of source specs. Distinguished by `kind`. */\nexport const KanbanSpec = Schema.Union(KanbanViewSpec, KanbanItemsSpec);\nexport type KanbanSpec = Schema.Schema.Type<typeof KanbanSpec>;\n\nexport const Kanban = Schema.Struct({\n name: Schema.String.pipe(Schema.optional),\n arrangement: Arrangement,\n /** How this kanban sources its items. Discriminated by `spec.kind`. */\n spec: KanbanSpec,\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.kanban',\n version: '0.2.0',\n }),\n LabelAnnotation.set(['name']),\n ViewAnnotation.set(['spec', 'view']),\n Annotation.IconAnnotation.set({\n icon: 'ph--kanban--regular',\n hue: 'green',\n }),\n);\n\n/** Instance type; narrow on `kanban.spec.kind` (or use the guards below). */\nexport interface Kanban extends Schema.Schema.Type<typeof Kanban> {}\n\n/** Narrowed view-variant kanban. */\nexport type KanbanView = Kanban & { spec: KanbanViewSpec };\n\n/** Narrowed items-variant kanban. */\nexport type KanbanItems = Kanban & { spec: KanbanItemsSpec };\n\nexport const isKanbanView = (kanban: Kanban): kanban is KanbanView => kanban.spec.kind === 'view';\nexport const isKanbanItems = (kanban: Kanban): kanban is KanbanItems => kanban.spec.kind === 'items';\n\ntype MakeViewProps = {\n name?: string;\n view: View.View;\n arrangement?: Arrangement;\n};\n\n/**\n * Make a view-variant kanban (items sourced via the View's query).\n */\nexport const make = (props: MakeViewProps): Kanban => {\n const { name, view, arrangement } = props;\n const order = arrangement?.order ?? [];\n const columns = arrangement?.columns ?? {};\n return Obj.make(Kanban, {\n name,\n arrangement: { order, columns },\n spec: { kind: 'view' as const, view: Ref.make(view) },\n });\n};\n\ntype MakeItemsProps = {\n name?: string;\n arrangement?: Arrangement;\n pivotField: string;\n items?: ReadonlyArray<Ref.Ref<Obj.Unknown>>;\n};\n\n/**\n * Make an items-variant kanban (items list owned by the kanban itself, e.g. populated by a sync integration).\n */\nexport const makeItems = (props: MakeItemsProps): Kanban => {\n const { name, arrangement, pivotField, items = [] } = props;\n const order = arrangement?.order ?? [];\n const columns = arrangement?.columns ?? {};\n return Obj.make(Kanban, {\n name,\n arrangement: { order, columns },\n spec: { kind: 'items' as const, pivotField, items },\n });\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { TypeInputOptionsAnnotation } from '@dxos/plugin-space/types';\n\n/**\n * Kanban data model.\n * A Kanban board is a collection of columns, each of which contains a collection of items.\n * The layout of columns and items is controlled by models.\n * The underlying data model may be represented by direct object relationships\n * (e.g., a column object containing an array of ordered items) or projections constructed\n * by the model (e.g., a query of items based on metadata within a column object).\n */\n\n// TODO(wittjosiah): Factor out?\nexport const PivotColumnAnnotationId = Symbol.for('@dxos/plugin-kanban/annotation/PivotColumn');\n\n/**\n * Settings common to every Kanban (view or items). Rendered as form fields\n * by `KanbanSettings`.\n */\nexport const KanbanSettingsSchema = Schema.Struct({\n hideUncategorized: Schema.Boolean.annotations({\n title: 'Hide uncategorized column',\n description: 'When enabled, items without a pivot value won’t be shown as a column.',\n }).pipe(Schema.optional),\n});\n\n/**\n * Settings for view-variant Kanbans only. Spreads {@link KanbanSettingsSchema}'s\n * fields and adds a column-field picker that binds the View’s pivot field.\n * Items-variant kanbans use a hardcoded `spec.pivotField` and don’t expose\n * this control.\n */\nexport const KanbanViewSettingsSchema = Schema.Struct({\n columnFieldId: Schema.String.annotations({\n title: 'Column field',\n }),\n ...KanbanSettingsSchema.fields,\n});\n\nexport const CreateKanbanSchema = Schema.Struct({\n name: Schema.optional(Schema.String),\n // TODO(wittjosiah): This should be a query input instead.\n typename: Schema.String.pipe(\n Schema.annotations({ title: 'Select card type' }),\n TypeInputOptionsAnnotation.set({\n location: ['database', 'runtime'],\n kind: ['user'],\n }),\n Schema.optional,\n ),\n initialPivotColumn: Schema.optional(\n Schema.String.annotations({\n [PivotColumnAnnotationId]: true,\n title: 'Pivot column',\n }),\n ),\n});\n"],
5
+ "mappings": "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",
6
+ "names": ["UNCATEGORIZED_VALUE", "UNCATEGORIZED_ATTRIBUTES", "title", "color", "Schema", "Annotation", "Obj", "Ref", "Type", "View", "FormInputAnnotation", "LabelAnnotation", "ViewAnnotation", "ArrangementColumnEntry", "Struct", "ids", "Array", "ID", "hidden", "Boolean", "pipe", "optional", "ArrangementColumns", "Record", "key", "String", "value", "set", "Arrangement", "order", "columns", "KanbanV1", "name", "view", "arrangement", "object", "typename", "version", "KanbanViewSpec", "kind", "Literal", "KanbanItemsSpec", "pivotField", "items", "Unknown", "KanbanSpec", "Union", "Kanban", "spec", "IconAnnotation", "icon", "hue", "isKanbanView", "kanban", "isKanbanItems", "make", "props", "makeItems", "Schema", "TypeInputOptionsAnnotation", "PivotColumnAnnotationId", "Symbol", "for", "KanbanSettingsSchema", "Struct", "hideUncategorized", "Boolean", "annotations", "title", "description", "pipe", "optional", "KanbanViewSettingsSchema", "columnFieldId", "String", "fields", "CreateKanbanSchema", "name", "typename", "set", "location", "kind", "initialPivotColumn"]
7
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":"AAMA,OAAO,EAAU,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAYrD,eAAO,MAAM,YAAY,4BA0BxB,CAAC"}
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,4BAuCxB,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":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAY7C,eAAO,MAAM,YAAY,4BAiCxB,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,2 +1,2 @@
1
- export * as KanbanBlueprint from './kanban-blueprint';
1
+ export { default as KanbanBlueprint } from './kanban-blueprint';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAC"}
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"}
@@ -1,22 +1,4 @@
1
- import { type FunctionDefinition } from '@dxos/functions';
2
- export declare const functions: FunctionDefinition[];
3
- export declare const tools: string[];
4
- export declare const Key = "dxos.org/blueprint/kanban";
5
- export declare const make: () => import("@dxos/echo/Obj").Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
6
- readonly description?: string | undefined;
7
- readonly name: string;
8
- readonly key: string;
9
- readonly instructions: {
10
- readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
11
- readonly content: string;
12
- }>;
13
- readonly inputs?: readonly {
14
- readonly function?: string | undefined;
15
- readonly name: string;
16
- readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
17
- readonly default?: any;
18
- }[] | undefined;
19
- };
20
- readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
21
- }>;
1
+ import { Blueprint } from '@dxos/compute';
2
+ declare const blueprint: Blueprint.Definition;
3
+ export default blueprint;
22
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":"AAKA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAG1D,eAAO,MAAM,SAAS,EAAE,kBAAkB,EAAO,CAAC;AAClD,eAAO,MAAM,KAAK,EAAE,MAAM,EAAO,CAAC;AAElC,eAAO,MAAM,GAAG,8BAA8B,CAAC;AAE/C,eAAO,MAAM,IAAI;;;;;;;;uBAWsxC,CAAC;6BAA0C,CAAC;;yBAAkF,CAAC;4BAA6I,CAAC;;;;EADhjD,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"}
@@ -7,6 +7,6 @@ declare global {
7
7
  dispatch?: PromiseIntentDispatcher;
8
8
  }
9
9
  }
10
- declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<any>, never, never>;
10
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<any>, never, never>;
11
11
  export default _default;
12
12
  //# sourceMappingURL=artifact-definition.d.ts.map
@@ -0,0 +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,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 type { Blueprint } from '@dxos/compute';
4
+ declare const blueprintDefinition: (props: []) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Blueprint.Definition>>[], Error, 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;AAGjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI/C,QAAA,MAAM,mBAAmB,iIAG8E,CAAC;eAEzF,mBAAmB"}
@@ -1,4 +1,8 @@
1
- export * from './blueprint-definition';
2
- export * from './operation-resolver';
3
- export * from './react-surface';
1
+ import { Capability } from '@dxos/app-framework';
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 Migrations: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/echo/Migration").ObjectMigration[]>>, Error>;
5
+ export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
6
+ export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
7
+ export declare const UndoMappings: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").UndoMapping[]>>, Error>;
4
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,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,UAAU,0IAA8D,CAAC;AACtF,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY,kJAAmE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as Effect from 'effect/Effect';
2
+ import { Capability } from '@dxos/app-framework';
3
+ declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<import("@dxos/echo/Migration").ObjectMigration[]>>, never, never>;
4
+ export default _default;
5
+ //# 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"}
@@ -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"}
@@ -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.ReactSurface>>, never, never>;
4
+ export default _default;
5
+ //# sourceMappingURL=react-surface.d.ts.map
@@ -0,0 +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;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,57 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import React, { type ComponentPropsWithoutRef, type ComponentType, type PropsWithChildren } from 'react';
3
+ import { Obj } from '@dxos/echo';
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;
27
+ type KanbanBoardRootProps = PropsWithChildren<{
28
+ kanban: Kanban.Kanban;
29
+ /** Required when providing context; Root derives columnFieldPath, pivotFieldId, getPivotAttributes from kanban + projection. */
30
+ projection: ProjectionModel;
31
+ /** Atom of items (e.g. from AtomQuery for DB, or Atom.make([]) for in-memory). */
32
+ items: Atom.Atom<Obj.Unknown[]>;
33
+ onCardAdd?: (columnValue: string | undefined) => string | undefined;
34
+ onCardRemove?: (card: Obj.Unknown) => void;
35
+ } & Pick<KanbanBoardContextValue, 'change' | 'itemTile'> & ComponentPropsWithoutRef<'div'>>;
36
+ export declare function KanbanBoardRoot({ children, kanban, projection, items, change, itemTile, onCardAdd, onCardRemove }: KanbanBoardRootProps): React.JSX.Element;
37
+ export declare namespace KanbanBoardRoot {
38
+ var displayName: string;
39
+ }
40
+ type KanbanBoardContentProps = {};
41
+ export declare const KanbanBoardContent: React.ForwardRefExoticComponent<Omit<KanbanBoardContentProps, "className"> & {
42
+ classNames?: import("@dxos/ui-types").ClassNameValue;
43
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
44
+ export declare const KanbanBoard: {
45
+ Root: {
46
+ ({ children, kanban, projection, items, change, itemTile, onCardAdd, onCardRemove, }: KanbanBoardRootProps): React.JSX.Element;
47
+ displayName: string;
48
+ };
49
+ Content: React.ForwardRefExoticComponent<Omit<KanbanBoardContentProps, "className"> & {
50
+ classNames?: import("@dxos/ui-types").ClassNameValue;
51
+ } & Pick<React.HTMLAttributes<Element>, "children" | "className" | "role" | "style"> & React.RefAttributes<HTMLDivElement>>;
52
+ Column: React.ForwardRefExoticComponent<KanbanColumnProps & React.RefAttributes<HTMLDivElement>>;
53
+ Card: React.ForwardRefExoticComponent<KanbanCardProps & React.RefAttributes<HTMLDivElement>>;
54
+ };
55
+ export { useKanbanBoard };
56
+ export type { KanbanBoardRootProps as KanbanBoardProps, KanbanCardProps, KanbanColumnProps };
57
+ //# 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;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;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;AA0HrF,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,10 @@
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'>;
5
+ /**
6
+ * Mosaic Tile for Kanban card.
7
+ * Uses Surface for content; requires plugin manager context.
8
+ */
9
+ export declare const KanbanCard: React.ForwardRefExoticComponent<KanbanCardProps & React.RefAttributes<HTMLDivElement>>;
10
+ //# 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;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,wFAsErB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { type MosaicTileProps } from '@dxos/react-ui-mosaic';
3
+ import { type ColumnStructure } from '#types';
4
+ export type KanbanColumnProps = Pick<MosaicTileProps<ColumnStructure>, 'location' | 'data' | 'debug'>;
5
+ /**
6
+ * Mosaic Tile for Kanban column.
7
+ */
8
+ export declare const KanbanColumn: React.ForwardRefExoticComponent<KanbanColumnProps & React.RefAttributes<HTMLDivElement>>;
9
+ //# 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,KAA4C,MAAM,OAAO,CAAC;AAGjE,OAAO,EAAS,KAAK,eAAe,EAAY,MAAM,uBAAuB,CAAC;AAG9E,OAAO,EAAE,KAAK,eAAe,EAAuB,MAAM,QAAQ,CAAC;AAMnE,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAEtG;;GAEG;AACH,eAAO,MAAM,YAAY,0FA+CxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './KanbanBoard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/KanbanBoard/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC"}
@@ -1,3 +1,2 @@
1
- export * from './KanbanContainer';
2
- export * from './KanbanViewEditor';
1
+ export * from './KanbanBoard';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
3
+ import { Kanban } from '#types';
4
+ export type KanbanContainerProps = AppSurface.ObjectArticleProps<Kanban.Kanban>;
5
+ export declare const KanbanContainer: (props: KanbanContainerProps) => React.JSX.Element;
6
+ //# sourceMappingURL=KanbanContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/KanbanContainer/KanbanContainer.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAUvD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAEhF,eAAO,MAAM,eAAe,UAAW,oBAAoB,sBAS1D,CAAC"}
@@ -0,0 +1,79 @@
1
+ import { type Decorator, type StoryObj } from '@storybook/react-vite';
2
+ import React from 'react';
3
+ declare const meta: {
4
+ title: string;
5
+ component: () => React.JSX.Element | null;
6
+ render: () => React.JSX.Element;
7
+ decorators: Decorator[];
8
+ parameters: {
9
+ layout: string;
10
+ translations: [{
11
+ readonly 'en-US': {
12
+ readonly [x: string]: {
13
+ readonly 'typename.label': 'Kanban';
14
+ readonly 'typename.label_zero': 'Kanbans';
15
+ readonly 'typename.label_one': 'Kanban';
16
+ readonly 'typename.label_other': 'Kanbans';
17
+ readonly 'object-name.placeholder': 'New kanban';
18
+ readonly 'add-object.label': 'Add kanban';
19
+ readonly 'rename-object.label': 'Rename kanban';
20
+ readonly 'delete-object.label': 'Delete kanban';
21
+ readonly 'object-deleted.label': 'Kanban deleted';
22
+ readonly 'action-menu.label'?: undefined;
23
+ readonly 'plugin.name'?: undefined;
24
+ readonly 'kanban-title.label'?: undefined;
25
+ readonly 'column-title.label'?: undefined;
26
+ readonly 'column-title.placeholder'?: undefined;
27
+ readonly 'add-column.label'?: undefined;
28
+ readonly 'add-card.label'?: undefined;
29
+ readonly 'new-column-name.label'?: undefined;
30
+ readonly 'remove-card.label'?: undefined;
31
+ readonly 'remove-empty-column.label'?: undefined;
32
+ readonly 'column-drag-handle.label'?: undefined;
33
+ readonly 'delete-column.label'?: undefined;
34
+ readonly 'card-field-deleted.label'?: undefined;
35
+ readonly 'card-deleted.label'?: undefined;
36
+ readonly 'select-pivot.placeholder'?: undefined;
37
+ } | {
38
+ readonly 'typename.label'?: undefined;
39
+ readonly 'typename.label_zero'?: undefined;
40
+ readonly 'typename.label_one'?: undefined;
41
+ readonly 'typename.label_other'?: undefined;
42
+ readonly 'object-name.placeholder'?: undefined;
43
+ readonly 'add-object.label'?: undefined;
44
+ readonly 'rename-object.label'?: undefined;
45
+ readonly 'delete-object.label'?: undefined;
46
+ readonly 'object-deleted.label'?: undefined;
47
+ readonly 'action-menu.label': 'Actions';
48
+ readonly 'plugin.name': 'Kanban';
49
+ readonly 'kanban-title.label': 'Title';
50
+ readonly 'column-title.label': 'Column title';
51
+ readonly 'column-title.placeholder': 'New column';
52
+ readonly 'add-column.label': 'Add column';
53
+ readonly 'add-card.label': 'Add card';
54
+ readonly 'new-column-name.label': 'New column name';
55
+ readonly 'remove-card.label': 'Remove card';
56
+ readonly 'remove-empty-column.label': 'Remove empty column';
57
+ readonly 'column-drag-handle.label': 'Drag to rearrange';
58
+ readonly 'delete-column.label': 'Delete column';
59
+ readonly 'card-field-deleted.label': 'Card field deleted';
60
+ readonly 'card-deleted.label': 'Card deleted';
61
+ readonly 'select-pivot.placeholder': 'Select a pivot column in board settings to display columns.';
62
+ };
63
+ };
64
+ }];
65
+ };
66
+ };
67
+ export default meta;
68
+ type Story = StoryObj<typeof meta>;
69
+ /**
70
+ * Default story using static runtime schema (immutable).
71
+ * Schema mutations are not allowed.
72
+ */
73
+ export declare const Default: Story;
74
+ /**
75
+ * Story variant that uses a mutable database schema (EchoSchema).
76
+ * This allows testing schema mutations like adding/removing fields.
77
+ */
78
+ export declare const MutableSchema: Story;
79
+ //# sourceMappingURL=KanbanContainer.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/KanbanContainer/KanbanContainer.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjF,OAAO,KAA2C,MAAM,OAAO,CAAC;AAkJhE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS+B,CAAC;eAE3B,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,KAiErB,CAAC;AAEF;;;GAGG;AAKH,eAAO,MAAM,aAAa,EAAE,KA2B3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { KanbanContainer as default } from './KanbanContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/KanbanContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
3
+ import { type Kanban } from '#types';
4
+ export type KanbanSettingsProps = AppSurface.ObjectPropertiesProps<Kanban.Kanban>;
5
+ /**
6
+ * Settings panel for a Kanban. Renders fields common to every kanban
7
+ * (currently the "Hide uncategorized column" toggle); for view-variant
8
+ * kanbans an additional "Column field" picker drives the View's pivot
9
+ * field. Items-variant kanbans use a hardcoded `spec.pivotField`, so that
10
+ * field is omitted there.
11
+ */
12
+ export declare const KanbanSettings: ({ subject: object }: KanbanSettingsProps) => React.JSX.Element;
13
+ //# sourceMappingURL=KanbanSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KanbanSettings.d.ts","sourceRoot":"","sources":["../../../../../src/containers/KanbanSettings/KanbanSettings.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAEhE,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQvD,OAAO,EAAE,KAAK,MAAM,EAAuE,MAAM,QAAQ,CAAC;AAE1G,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAElF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,wBAAyB,mBAAmB,sBAmEtE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { KanbanSettings as default } from './KanbanSettings';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/KanbanSettings/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type ComponentType } from 'react';
2
+ export declare const KanbanContainer: ComponentType<any>;
3
+ export declare const KanbanSettings: ComponentType<any>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/containers/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,OAAO,CAAC;AAEjD,eAAO,MAAM,eAAe,EAAE,aAAa,CAAC,GAAG,CAA2C,CAAC;AAC3F,eAAO,MAAM,cAAc,EAAE,aAAa,CAAC,GAAG,CAA0C,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './useEchoChangeCallback';
2
+ export * from './useItemsProjection';
3
+ export * from './useKanbanBoardModel';
4
+ export * from './useKanbanColumnEventHandler';
5
+ export * from './useKanbanItemEventHandler';
6
+ export * from './useProjectionModel';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Obj } from '@dxos/echo';
2
+ import { type Kanban, type KanbanChangeCallback } from '#types';
3
+ /**
4
+ * Creates a change callback for ECHO-backed kanban and items (plain function, no hooks).
5
+ * Use this when the kanban and items are stored in the ECHO database.
6
+ */
7
+ export declare const createEchoChangeCallback: <T extends Obj.Unknown>(kanban: Kanban.Kanban) => KanbanChangeCallback<T>;
8
+ /**
9
+ * Returns a memoized ECHO change callback for the given kanban.
10
+ * Returns null when kanban is undefined.
11
+ */
12
+ export declare const useEchoChangeCallback: <T extends Obj.Unknown = Obj.Unknown>(kanban: Kanban.Kanban | undefined) => KanbanChangeCallback<T> | null;
13
+ //# sourceMappingURL=useEchoChangeCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useEchoChangeCallback.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useEchoChangeCallback.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GAAI,CAAC,SAAS,GAAG,CAAC,OAAO,UAAU,MAAM,CAAC,MAAM,KAAG,oBAAoB,CAAC,CAAC,CAO5G,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,UAC/D,MAAM,CAAC,MAAM,GAAG,SAAS,KAChC,oBAAoB,CAAC,CAAC,CAAC,GAAG,IAAsF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ProjectionModel } from '@dxos/schema';
2
+ import { type Kanban } from '#types';
3
+ /**
4
+ * Minimal `ProjectionModel` for `spec.kind === 'items'` (no View). Supplies `pivotField`
5
+ * and column options from `arrangement.columns` keys—written by sync so columns exist
6
+ * before refs hydrate. Stubs `getFieldProjections` / `getHiddenProperties` for shared
7
+ * board/card UI; hides the pivot on the card body (column shows it); Expando cards render title only.
8
+ */
9
+ export declare const useItemsProjection: (kanban: Kanban.KanbanItems) => ProjectionModel;
10
+ //# sourceMappingURL=useItemsProjection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useItemsProjection.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useItemsProjection.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,WAAY,MAAM,CAAC,WAAW,KAAG,eA0B/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useKanbanBoardModel.browser.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKanbanBoardModel.browser.test.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useKanbanBoardModel.browser.test.ts"],"names":[],"mappings":""}