@sixb/app 0.2.3 → 0.2.5

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 (329) hide show
  1. package/assets/connector-icons/README.md +1 -0
  2. package/assets/connector-icons/ctm.png +0 -0
  3. package/dist/agent/activity-label.d.ts.map +1 -1
  4. package/dist/agent/agent-chat.d.ts +3 -1
  5. package/dist/agent/agent-chat.d.ts.map +1 -1
  6. package/dist/agent/agent-panel.d.ts.map +1 -1
  7. package/dist/agent/artifact-panel.d.ts +3 -1
  8. package/dist/agent/artifact-panel.d.ts.map +1 -1
  9. package/dist/agent/background/background-tool-row.d.ts.map +1 -1
  10. package/dist/agent/background/interpret.d.ts +1 -1
  11. package/dist/agent/background/interpret.d.ts.map +1 -1
  12. package/dist/agent/components/composer-settings.d.ts +1 -1
  13. package/dist/agent/components/composer-settings.d.ts.map +1 -1
  14. package/dist/agent/components/composer.d.ts +22 -5
  15. package/dist/agent/components/composer.d.ts.map +1 -1
  16. package/dist/agent/components/context-meter.d.ts +1 -1
  17. package/dist/agent/components/context-meter.d.ts.map +1 -1
  18. package/dist/agent/components/conversation-panel.d.ts +8 -2
  19. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  20. package/dist/agent/components/message-parts.d.ts +2 -1
  21. package/dist/agent/components/message-parts.d.ts.map +1 -1
  22. package/dist/agent/components/message-view.d.ts.map +1 -1
  23. package/dist/agent/components/pending-messages.d.ts +20 -0
  24. package/dist/agent/components/pending-messages.d.ts.map +1 -0
  25. package/dist/agent/components/sandbox-recovery.d.ts +11 -2
  26. package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
  27. package/dist/agent/components/threads-button.d.ts +1 -1
  28. package/dist/agent/components/threads-button.d.ts.map +1 -1
  29. package/dist/agent/components/transcript.d.ts +5 -0
  30. package/dist/agent/components/transcript.d.ts.map +1 -1
  31. package/dist/agent/conversation.d.ts +3 -6
  32. package/dist/agent/conversation.d.ts.map +1 -1
  33. package/dist/agent/delegation/agent-exchange.d.ts +16 -0
  34. package/dist/agent/delegation/agent-exchange.d.ts.map +1 -0
  35. package/dist/agent/delegation/child-card.d.ts +3 -3
  36. package/dist/agent/delegation/child-card.d.ts.map +1 -1
  37. package/dist/agent/delegation/child-parts.d.ts +1 -10
  38. package/dist/agent/delegation/child-parts.d.ts.map +1 -1
  39. package/dist/agent/delegation/child-work.d.ts.map +1 -1
  40. package/dist/agent/delegation/interpret.d.ts +9 -10
  41. package/dist/agent/delegation/interpret.d.ts.map +1 -1
  42. package/dist/agent/delegation/use-children.d.ts.map +1 -1
  43. package/dist/agent/file-edits/file-edit-tool-view.d.ts +10 -0
  44. package/dist/agent/file-edits/file-edit-tool-view.d.ts.map +1 -0
  45. package/dist/agent/file-edits/interpret.d.ts +25 -0
  46. package/dist/agent/file-edits/interpret.d.ts.map +1 -0
  47. package/dist/agent/hooks/use-agent-conversation.d.ts +16 -4
  48. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  49. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
  50. package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
  51. package/dist/agent/i18n/en.d.ts +114 -5
  52. package/dist/agent/i18n/en.d.ts.map +1 -1
  53. package/dist/agent/i18n/fr.d.ts.map +1 -1
  54. package/dist/agent/i18n/index.d.ts +190 -8
  55. package/dist/agent/i18n/index.d.ts.map +1 -1
  56. package/dist/agent/inbox-handoff.d.ts +10 -0
  57. package/dist/agent/inbox-handoff.d.ts.map +1 -0
  58. package/dist/agent/live-run.d.ts +8 -1
  59. package/dist/agent/live-run.d.ts.map +1 -1
  60. package/dist/agent/message-agent/interpret.d.ts +2 -2
  61. package/dist/agent/message-agent/interpret.d.ts.map +1 -1
  62. package/dist/agent/publish-artifact/interpret.d.ts +1 -1
  63. package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
  64. package/dist/agent/questions/interpret.d.ts +31 -0
  65. package/dist/agent/questions/interpret.d.ts.map +1 -0
  66. package/dist/agent/questions/question-card.d.ts +16 -0
  67. package/dist/agent/questions/question-card.d.ts.map +1 -0
  68. package/dist/agent/questions/question-composer.d.ts +15 -0
  69. package/dist/agent/questions/question-composer.d.ts.map +1 -0
  70. package/dist/agent/read/interpret.d.ts +8 -1
  71. package/dist/agent/read/interpret.d.ts.map +1 -1
  72. package/dist/agent/read/read-tool-view.d.ts.map +1 -1
  73. package/dist/agent/search/interpret.d.ts +101 -0
  74. package/dist/agent/search/interpret.d.ts.map +1 -0
  75. package/dist/agent/search/search-tool-view.d.ts +10 -0
  76. package/dist/agent/search/search-tool-view.d.ts.map +1 -0
  77. package/dist/agent/thread-state.d.ts +26 -0
  78. package/dist/agent/thread-state.d.ts.map +1 -0
  79. package/dist/agent/tool-views/built-in.d.ts.map +1 -1
  80. package/dist/agent/tool-views/registry.d.ts +5 -6
  81. package/dist/agent/tool-views/registry.d.ts.map +1 -1
  82. package/dist/agent/types.d.ts +5 -1
  83. package/dist/agent/types.d.ts.map +1 -1
  84. package/dist/agent/view-file/view-file-tool-view.d.ts +2 -1
  85. package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -1
  86. package/dist/agent/waits.d.ts +14 -0
  87. package/dist/agent/waits.d.ts.map +1 -0
  88. package/dist/artifacts/card-preview.d.ts.map +1 -1
  89. package/dist/artifacts/edit-session.d.ts +11 -1
  90. package/dist/artifacts/edit-session.d.ts.map +1 -1
  91. package/dist/artifacts/editor/block-handle.d.ts +20 -0
  92. package/dist/artifacts/editor/block-handle.d.ts.map +1 -0
  93. package/dist/artifacts/editor/blocks.d.ts +34 -0
  94. package/dist/artifacts/editor/blocks.d.ts.map +1 -0
  95. package/dist/artifacts/editor/callout-view.d.ts +7 -0
  96. package/dist/artifacts/editor/callout-view.d.ts.map +1 -0
  97. package/dist/artifacts/editor/document-editor.d.ts +30 -0
  98. package/dist/artifacts/editor/document-editor.d.ts.map +1 -0
  99. package/dist/artifacts/editor/figure-view.d.ts +12 -0
  100. package/dist/artifacts/editor/figure-view.d.ts.map +1 -0
  101. package/dist/artifacts/editor/find-blocks.d.ts +6 -0
  102. package/dist/artifacts/editor/find-blocks.d.ts.map +1 -0
  103. package/dist/artifacts/editor/markdown-document.d.ts +12 -0
  104. package/dist/artifacts/editor/markdown-document.d.ts.map +1 -0
  105. package/dist/artifacts/editor/messages.d.ts +4 -0
  106. package/dist/artifacts/editor/messages.d.ts.map +1 -0
  107. package/dist/artifacts/editor/schema.d.ts +21 -0
  108. package/dist/artifacts/editor/schema.d.ts.map +1 -0
  109. package/dist/artifacts/editor/selection-toolbar.d.ts +35 -0
  110. package/dist/artifacts/editor/selection-toolbar.d.ts.map +1 -0
  111. package/dist/artifacts/editor/slash-menu.d.ts +43 -0
  112. package/dist/artifacts/editor/slash-menu.d.ts.map +1 -0
  113. package/dist/artifacts/editor/upload.d.ts +12 -0
  114. package/dist/artifacts/editor/upload.d.ts.map +1 -0
  115. package/dist/artifacts/file-source.d.ts +5 -0
  116. package/dist/artifacts/file-source.d.ts.map +1 -1
  117. package/dist/artifacts/frame-editor/bundle.d.ts +7 -0
  118. package/dist/artifacts/frame-editor/bundle.d.ts.map +1 -0
  119. package/dist/artifacts/frame-editor/commands.d.ts +93 -0
  120. package/dist/artifacts/frame-editor/commands.d.ts.map +1 -0
  121. package/dist/artifacts/frame-editor/entry.d.ts +2 -0
  122. package/dist/artifacts/frame-editor/entry.d.ts.map +1 -0
  123. package/dist/artifacts/frame-editor/frame.d.ts +5 -0
  124. package/dist/artifacts/frame-editor/frame.d.ts.map +1 -0
  125. package/dist/artifacts/frame-editor/keys.d.ts +8 -0
  126. package/dist/artifacts/frame-editor/keys.d.ts.map +1 -0
  127. package/dist/artifacts/frame-editor/protocol.d.ts +186 -0
  128. package/dist/artifacts/frame-editor/protocol.d.ts.map +1 -0
  129. package/dist/artifacts/frame-editor/schema.d.ts +34 -0
  130. package/dist/artifacts/frame-editor/schema.d.ts.map +1 -0
  131. package/dist/artifacts/frame-editor/style.d.ts +2 -0
  132. package/dist/artifacts/frame-editor/style.d.ts.map +1 -0
  133. package/dist/artifacts/frame.d.ts +2 -2
  134. package/dist/artifacts/frame.d.ts.map +1 -1
  135. package/dist/artifacts/live/boards.d.ts +2 -0
  136. package/dist/artifacts/live/boards.d.ts.map +1 -1
  137. package/dist/artifacts/live/document.d.ts +32 -0
  138. package/dist/artifacts/live/document.d.ts.map +1 -0
  139. package/dist/artifacts/live/header.d.ts +4 -4
  140. package/dist/artifacts/live/header.d.ts.map +1 -1
  141. package/dist/artifacts/live/presence.d.ts.map +1 -1
  142. package/dist/artifacts/live/session.d.ts +2 -0
  143. package/dist/artifacts/live/session.d.ts.map +1 -1
  144. package/dist/artifacts/live/view.d.ts +4 -3
  145. package/dist/artifacts/live/view.d.ts.map +1 -1
  146. package/dist/artifacts/messages.d.ts +278 -2
  147. package/dist/artifacts/messages.d.ts.map +1 -1
  148. package/dist/artifacts/pdf.d.ts +8 -0
  149. package/dist/artifacts/pdf.d.ts.map +1 -0
  150. package/dist/artifacts/queries.d.ts +80 -0
  151. package/dist/artifacts/queries.d.ts.map +1 -1
  152. package/dist/artifacts/references/references.d.ts +3 -3
  153. package/dist/artifacts/references/references.d.ts.map +1 -1
  154. package/dist/artifacts/renderers/canvas/board-editor.d.ts +11 -4
  155. package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -1
  156. package/dist/artifacts/renderers/canvas/board.d.ts +14 -2
  157. package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
  158. package/dist/artifacts/renderers/canvas/canvas.d.ts +4 -3
  159. package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -1
  160. package/dist/artifacts/renderers/canvas/comment-pins.d.ts +4 -2
  161. package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -1
  162. package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -1
  163. package/dist/artifacts/renderers/canvas/comments.d.ts +2 -1
  164. package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -1
  165. package/dist/artifacts/renderers/canvas/controls.d.ts +15 -4
  166. package/dist/artifacts/renderers/canvas/controls.d.ts.map +1 -1
  167. package/dist/artifacts/renderers/canvas/focus.d.ts +19 -5
  168. package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
  169. package/dist/artifacts/renderers/canvas/gestures.d.ts +46 -0
  170. package/dist/artifacts/renderers/canvas/gestures.d.ts.map +1 -0
  171. package/dist/artifacts/renderers/canvas/page-resize.d.ts +21 -0
  172. package/dist/artifacts/renderers/canvas/page-resize.d.ts.map +1 -0
  173. package/dist/artifacts/renderers/canvas/page-size-controls.d.ts +21 -0
  174. package/dist/artifacts/renderers/canvas/page-size-controls.d.ts.map +1 -0
  175. package/dist/artifacts/renderers/canvas/page-size.d.ts +93 -0
  176. package/dist/artifacts/renderers/canvas/page-size.d.ts.map +1 -0
  177. package/dist/artifacts/renderers/canvas/page-zoom.d.ts +64 -0
  178. package/dist/artifacts/renderers/canvas/page-zoom.d.ts.map +1 -0
  179. package/dist/artifacts/renderers/canvas/shown-size.d.ts +26 -0
  180. package/dist/artifacts/renderers/canvas/shown-size.d.ts.map +1 -0
  181. package/dist/artifacts/renderers/designed-document.d.ts +28 -0
  182. package/dist/artifacts/renderers/designed-document.d.ts.map +1 -0
  183. package/dist/artifacts/renderers/document-tree.d.ts +2 -0
  184. package/dist/artifacts/renderers/document-tree.d.ts.map +1 -1
  185. package/dist/artifacts/renderers/document.d.ts +9 -1
  186. package/dist/artifacts/renderers/document.d.ts.map +1 -1
  187. package/dist/artifacts/renderers/live-frame.d.ts +145 -0
  188. package/dist/artifacts/renderers/live-frame.d.ts.map +1 -0
  189. package/dist/artifacts/renderers/page-editor.d.ts +16 -0
  190. package/dist/artifacts/renderers/page-editor.d.ts.map +1 -0
  191. package/dist/artifacts/renderers/page.d.ts +10 -1
  192. package/dist/artifacts/renderers/page.d.ts.map +1 -1
  193. package/dist/artifacts/viewer.d.ts.map +1 -1
  194. package/dist/{chunk-001c4gnk.js → chunk-4fex83k2.js} +19965 -13027
  195. package/dist/chunk-4fex83k2.js.map +239 -0
  196. package/dist/{chunk-5crvhjp2.js → chunk-4wm09prf.js} +1633 -1999
  197. package/dist/chunk-4wm09prf.js.map +27 -0
  198. package/dist/{chunk-fwb9mxwm.js → chunk-5sgac68y.js} +1 -1
  199. package/dist/{chunk-kes4ygmz.js → chunk-69qgh20f.js} +1 -1
  200. package/dist/chunk-y51c4tsz.js +11 -0
  201. package/dist/chunk-y51c4tsz.js.map +10 -0
  202. package/dist/index.d.ts +4 -1
  203. package/dist/index.d.ts.map +1 -1
  204. package/dist/index.js +13 -6
  205. package/dist/index.js.map +5 -5
  206. package/dist/pages/console/data/messages.d.ts +6 -0
  207. package/dist/pages/console/data/messages.d.ts.map +1 -1
  208. package/dist/pages/console/data/shared.d.ts.map +1 -1
  209. package/dist/pages.js +12 -5
  210. package/dist/pages.js.map +6 -6
  211. package/dist/shell/search-command.d.ts.map +1 -1
  212. package/package.json +22 -5
  213. package/src/agent/activity-label.ts +9 -1
  214. package/src/agent/agent-chat.tsx +57 -37
  215. package/src/agent/agent-execution-trace.tsx +2 -2
  216. package/src/agent/agent-panel.tsx +6 -4
  217. package/src/agent/agent.css +254 -0
  218. package/src/agent/artifact-panel.tsx +77 -22
  219. package/src/agent/background/background-tool-row.tsx +24 -10
  220. package/src/agent/background/interpret.ts +60 -51
  221. package/src/agent/components/composer-settings.tsx +20 -10
  222. package/src/agent/components/composer.tsx +342 -104
  223. package/src/agent/components/context-meter.tsx +7 -3
  224. package/src/agent/components/conversation-panel.tsx +96 -37
  225. package/src/agent/components/message-parts.tsx +390 -64
  226. package/src/agent/components/message-view.tsx +12 -2
  227. package/src/agent/components/pending-messages.tsx +338 -0
  228. package/src/agent/components/sandbox-recovery.tsx +36 -17
  229. package/src/agent/components/threads-button.tsx +3 -2
  230. package/src/agent/components/transcript.tsx +92 -45
  231. package/src/agent/conversation.ts +203 -54
  232. package/src/agent/delegation/agent-exchange.tsx +53 -0
  233. package/src/agent/delegation/child-card.tsx +6 -40
  234. package/src/agent/delegation/child-parts.tsx +1 -84
  235. package/src/agent/delegation/child-work.tsx +19 -5
  236. package/src/agent/delegation/interpret.ts +64 -61
  237. package/src/agent/delegation/model.ts +1 -1
  238. package/src/agent/file-edits/file-edit-tool-view.tsx +126 -0
  239. package/src/agent/file-edits/interpret.ts +120 -0
  240. package/src/agent/hooks/use-agent-conversation.ts +360 -92
  241. package/src/agent/hooks/use-thread-stream.ts +10 -0
  242. package/src/agent/i18n/en.ts +134 -16
  243. package/src/agent/i18n/fr.ts +122 -16
  244. package/src/agent/inbox-handoff.ts +47 -0
  245. package/src/agent/live-run.ts +23 -2
  246. package/src/agent/message-agent/interpret.ts +4 -3
  247. package/src/agent/publish-artifact/interpret.ts +14 -5
  248. package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +2 -2
  249. package/src/agent/questions/interpret.ts +90 -0
  250. package/src/agent/questions/question-card.tsx +57 -0
  251. package/src/agent/questions/question-composer.tsx +257 -0
  252. package/src/agent/react-router.tsx +2 -2
  253. package/src/agent/read/interpret.ts +34 -1
  254. package/src/agent/read/read-tool-view.tsx +20 -4
  255. package/src/agent/search/interpret.ts +367 -0
  256. package/src/agent/search/search-tool-view.tsx +235 -0
  257. package/src/agent/thread-state.ts +114 -0
  258. package/src/agent/tool-views/built-in.tsx +33 -6
  259. package/src/agent/tool-views/registry.tsx +28 -2
  260. package/src/agent/types.ts +7 -0
  261. package/src/agent/view-file/view-file-tool-view.tsx +33 -19
  262. package/src/agent/waits.ts +50 -0
  263. package/src/artifacts/artifacts.css +434 -0
  264. package/src/artifacts/card-preview.tsx +6 -1
  265. package/src/artifacts/edit-session.tsx +15 -1
  266. package/src/artifacts/editor/block-handle.tsx +278 -0
  267. package/src/artifacts/editor/blocks.ts +216 -0
  268. package/src/artifacts/editor/callout-view.tsx +31 -0
  269. package/src/artifacts/editor/document-editor.tsx +484 -0
  270. package/src/artifacts/editor/figure-view.tsx +66 -0
  271. package/src/artifacts/editor/find-blocks.ts +19 -0
  272. package/src/artifacts/editor/markdown-document.tsx +72 -0
  273. package/src/artifacts/editor/messages.ts +4 -0
  274. package/src/artifacts/editor/schema.ts +159 -0
  275. package/src/artifacts/editor/selection-toolbar.tsx +364 -0
  276. package/src/artifacts/editor/slash-menu.tsx +251 -0
  277. package/src/artifacts/editor/upload.ts +40 -0
  278. package/src/artifacts/file-source.ts +11 -0
  279. package/src/artifacts/frame-editor/bundle.ts +8 -0
  280. package/src/artifacts/frame-editor/commands.ts +565 -0
  281. package/src/artifacts/frame-editor/entry.ts +6 -0
  282. package/src/artifacts/frame-editor/frame.ts +847 -0
  283. package/src/artifacts/frame-editor/generated/editor.txt +149 -0
  284. package/src/artifacts/frame-editor/generated.d.ts +5 -0
  285. package/src/artifacts/frame-editor/keys.ts +323 -0
  286. package/src/artifacts/frame-editor/protocol.ts +151 -0
  287. package/src/artifacts/frame-editor/schema.ts +293 -0
  288. package/src/artifacts/frame-editor/style.ts +58 -0
  289. package/src/artifacts/frame.tsx +14 -5
  290. package/src/artifacts/live/boards.ts +46 -3
  291. package/src/artifacts/live/document.ts +89 -0
  292. package/src/artifacts/live/header.tsx +9 -14
  293. package/src/artifacts/live/presence.ts +5 -1
  294. package/src/artifacts/live/session.ts +4 -2
  295. package/src/artifacts/live/view.ts +14 -8
  296. package/src/artifacts/messages.ts +192 -2
  297. package/src/artifacts/pdf.ts +50 -0
  298. package/src/artifacts/references/references.tsx +46 -11
  299. package/src/artifacts/renderers/canvas/board-editor.tsx +44 -155
  300. package/src/artifacts/renderers/canvas/board.tsx +70 -8
  301. package/src/artifacts/renderers/canvas/canvas.tsx +66 -15
  302. package/src/artifacts/renderers/canvas/comment-pins.tsx +5 -0
  303. package/src/artifacts/renderers/canvas/comments-panel.tsx +58 -1
  304. package/src/artifacts/renderers/canvas/comments.ts +8 -4
  305. package/src/artifacts/renderers/canvas/controls.tsx +64 -30
  306. package/src/artifacts/renderers/canvas/focus.tsx +200 -56
  307. package/src/artifacts/renderers/canvas/gestures.ts +265 -0
  308. package/src/artifacts/renderers/canvas/page-resize.tsx +542 -0
  309. package/src/artifacts/renderers/canvas/page-size-controls.tsx +193 -0
  310. package/src/artifacts/renderers/canvas/page-size.ts +218 -0
  311. package/src/artifacts/renderers/canvas/page-zoom.ts +280 -0
  312. package/src/artifacts/renderers/canvas/shown-size.ts +105 -0
  313. package/src/artifacts/renderers/designed-document.tsx +277 -0
  314. package/src/artifacts/renderers/document-tree.ts +9 -0
  315. package/src/artifacts/renderers/document.tsx +13 -102
  316. package/src/artifacts/renderers/live-frame.ts +163 -0
  317. package/src/artifacts/renderers/page-editor.tsx +613 -0
  318. package/src/artifacts/renderers/page.tsx +21 -4
  319. package/src/artifacts/viewer.tsx +101 -41
  320. package/src/index.ts +8 -0
  321. package/src/pages/console/data/messages.ts +6 -0
  322. package/src/pages/console/data/projections.tsx +4 -0
  323. package/src/pages/console/data/shared.tsx +1 -0
  324. package/src/pages/console/ontology/lineage/trail.tsx +3 -0
  325. package/src/shell/search-command.tsx +2 -0
  326. package/dist/chunk-001c4gnk.js.map +0 -204
  327. package/dist/chunk-5crvhjp2.js.map +0 -28
  328. /package/dist/{chunk-fwb9mxwm.js.map → chunk-5sgac68y.js.map} +0 -0
  329. /package/dist/{chunk-kes4ygmz.js.map → chunk-69qgh20f.js.map} +0 -0
@@ -0,0 +1,26 @@
1
+ import type { AgentContextEntryInput } from "@sixb/core/agents/context";
2
+ import type { ViewerTarget } from "../artifacts/target";
3
+ import type { AgentFileRef } from "./types";
4
+ export interface ThreadComposerDraft {
5
+ readonly text: string;
6
+ readonly attachments: readonly AgentFileRef[];
7
+ readonly explicitContext: readonly AgentContextEntryInput[];
8
+ }
9
+ export declare class ThreadStateStore {
10
+ private readonly entries;
11
+ readDraft(draftKey: string): ThreadComposerDraft | null;
12
+ writeDraft(draftKey: string, draft: ThreadComposerDraft): void;
13
+ clearDraft(draftKey: string): void;
14
+ readPanelTarget(scopeKey: string): ViewerTarget | null;
15
+ writePanelTarget(scopeKey: string, target: ViewerTarget | null): void;
16
+ private touch;
17
+ }
18
+ /** Return the `ThreadStateStore` scoped to an app-lifetime owner such as `QueryClient`. */
19
+ export declare function threadStateStoreFor(owner: object): ThreadStateStore;
20
+ export declare const ThreadStateContext: import("react").Context<ThreadStateStore | null>;
21
+ /**
22
+ * The surrounding conversation store when inside `AgentChat`, or a mount-local store when a
23
+ * component such as `ArtifactPanelRoot` is rendered standalone.
24
+ */
25
+ export declare function useThreadStateStore(owner?: object | null): ThreadStateStore;
26
+ //# sourceMappingURL=thread-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thread-state.d.ts","sourceRoot":"","sources":["../../src/agent/thread-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,SAAS,YAAY,EAAE,CAAA;IAC7C,QAAQ,CAAC,eAAe,EAAE,SAAS,sBAAsB,EAAE,CAAA;CAC5D;AAOD,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsC;IAE9D,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI;IAMvD,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,GAAG,IAAI;IAkB9D,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAIlC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;IAKtD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI;IAkBrE,OAAO,CAAC,KAAK;CASd;AAID,2FAA2F;AAC3F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAOnE;AAED,eAAO,MAAM,kBAAkB,kDAA+C,CAAA;AAE9E;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,gBAAgB,CAO3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../../src/agent/tool-views/built-in.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AA+D9C,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAE/D"}
1
+ {"version":3,"file":"built-in.d.ts","sourceRoot":"","sources":["../../../src/agent/tool-views/built-in.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAyF9C,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAE/D"}
@@ -11,13 +11,11 @@ export declare function AgentToolViewsProvider({ views, children, }: {
11
11
  }): import("react").JSX.Element;
12
12
  /** The project's view of a tool, which takes the place of the framework's. */
13
13
  export declare function useAgentToolView(toolName: string): AgentToolView | undefined;
14
- /**
15
- * The views of the turn's tools shown in the answer, in call order. Each call keeps its row in the
16
- * work; a view that fails shows nothing here.
17
- */
18
- export declare function AnswerToolViews({ parts }: {
14
+ interface AnswerToolViewsProps {
19
15
  readonly parts: readonly NormalizedPart[];
20
- }): (import("react").JSX.Element | null)[];
16
+ }
17
+ declare function AnswerToolViewsList({ parts }: AnswerToolViewsProps): (import("react").JSX.Element | null)[] | null;
18
+ export declare const AnswerToolViews: import("react").MemoExoticComponent<typeof AnswerToolViewsList>;
21
19
  /** A call shown through the project's view, or through `fallback` when the view throws. */
22
20
  export declare function ProjectToolView({ view, tool, fallback, }: {
23
21
  readonly view: AgentToolView;
@@ -25,4 +23,5 @@ export declare function ProjectToolView({ view, tool, fallback, }: {
25
23
  readonly fallback: ReactNode;
26
24
  }): import("react").JSX.Element;
27
25
  export declare function toolViewProps(tool: NormalizedTool): AgentToolViewProps;
26
+ export {};
28
27
  //# sourceMappingURL=registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/agent/tool-views/registry.tsx"],"names":[],"mappings":"AACA,OAAO,EAA4B,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AACrF,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAkB,MAAM,UAAU,CAAA;AAMtF;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,+BAMA;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAE5E;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,CAAA;CAAE,0CAUvF;AAED,2FAA2F;AAC3F,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,+BAQA;AAOD,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,kBAAkB,CAiBtE"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/agent/tool-views/registry.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkC,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAA;AAC3F,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9D,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAkB,MAAM,UAAU,CAAA;AAMtF;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,KAAK,EACL,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,+BAMA;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAE5E;AAqBD,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,cAAc,EAAE,CAAA;CAC1C;AAMD,iBAAS,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,oBAAoB,iDAW3D;AAED,eAAO,MAAM,eAAe,iEAA6C,CAAA;AAEzE,2FAA2F;AAC3F,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;IAC7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,+BAQA;AAOD,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,kBAAkB,CAiBtE"}
@@ -1,4 +1,4 @@
1
- import type { CreateAgentThreadData, GetAgentResponse, GetAgentRunResponse, GetAgentThreadContextResponse, ListAgentThreadMessagesResponse, ListAgentThreadsResponse, ListModelsResponse } from "@sixb/client";
1
+ import type { CreateAgentThreadData, GetAgentResponse, GetAgentRunResponse, GetAgentThreadContextResponse, ListAgentThreadInboxResponse, ListAgentThreadMessagesResponse, ListAgentThreadsResponse, ListModelsResponse } from "@sixb/client";
2
2
  import type { AgentContextEntryInput, AgentContextInput } from "@sixb/core/agents/context";
3
3
  import type { ModelReasoningLevel } from "@sixb/core/models";
4
4
  export type { AgentContextEntryInput, AgentContextInput };
@@ -14,6 +14,10 @@ export type AgentFileRef = Extract<AgentMessagePart, {
14
14
  export type AgentContextPart = Extract<AgentMessagePart, {
15
15
  type: "context";
16
16
  }>;
17
+ /** A message waiting in a conversation's inbox: a steer, or a turn queued behind one. */
18
+ export type AgentInboxItem = ListAgentThreadInboxResponse["items"][number];
19
+ /** Where a message goes while a turn runs: into it, behind it, or after stopping it. */
20
+ export type AgentMessageDelivery = "auto" | "steer" | "queue" | "send_now";
17
21
  export type AgentRun = GetAgentRunResponse;
18
22
  /** A conversation's context against its model's limits: what the context meter shows. */
19
23
  export type AgentThreadContext = GetAgentThreadContextResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/agent/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,6BAA6B,EAC7B,+BAA+B,EAC/B,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC1F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,YAAY,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,CAAA;AAKzD,MAAM,MAAM,KAAK,GAAG,gBAAgB,CAAA;AAEpC,MAAM,MAAM,WAAW,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC,MAA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MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,SAAS,CAAC,CAAA;IAC3D,QAAQ,CAAC,SAAS,CAAC,EAAE,mBAAmB,CAAA;CACzC"}
@@ -1,7 +1,8 @@
1
1
  import type { NormalizedTool } from "../parts";
2
2
  /**
3
3
  * A file the agent viewed. It belongs to the work, not to the answer, so it stays in the trace: an
4
- * image as a small preview, any other file as a compact chip, each opening in the artifact panel.
4
+ * image as an inline thumbnail beside its label, any other file as a compact chip, each opening in
5
+ * the artifact panel.
5
6
  */
6
7
  export declare function ViewFileToolView({ tool }: {
7
8
  tool: NormalizedTool;
@@ -1 +1 @@
1
- {"version":3,"file":"view-file-tool-view.d.ts","sourceRoot":"","sources":["../../../src/agent/view-file/view-file-tool-view.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,UAAU,CAAA;AAG9D;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,+BA4BlE"}
1
+ {"version":3,"file":"view-file-tool-view.d.ts","sourceRoot":"","sources":["../../../src/agent/view-file/view-file-tool-view.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,UAAU,CAAA;AAG9D;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,+BAsDlE"}
@@ -0,0 +1,14 @@
1
+ import type { NormalizedTool } from "./parts";
2
+ /** The tools that read or stop a background command, today's and earlier threads'. */
3
+ export declare const COMMAND_TOOLS: ReadonlySet<string>;
4
+ /** What a `wait` or a `stop` names: the ids it was called with, as the model wrote them. */
5
+ export declare function namedIds(tool: Pick<NormalizedTool, "toolName" | "input">): readonly string[];
6
+ /** Whether an id names a background command rather than a sub-agent. */
7
+ export declare function isCommandId(id: string): boolean;
8
+ /** Whether a call waits for, or stops, one of the Agent's sub-agents: its row stands for it. */
9
+ export declare function waitsForChildren(tool: Pick<NormalizedTool, "toolName" | "input">): boolean;
10
+ /** Whether a call reads, waits for, or stops background commands alone. */
11
+ export declare function waitsForCommandsOnly(tool: Pick<NormalizedTool, "toolName" | "input">): boolean;
12
+ /** Whether a call stops what it names. */
13
+ export declare function isStop(tool: Pick<NormalizedTool, "toolName">): boolean;
14
+ //# sourceMappingURL=waits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waits.d.ts","sourceRoot":"","sources":["../../src/agent/waits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAM7C,sFAAsF;AACtF,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,MAAM,CAK5C,CAAA;AAEF,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,SAAS,MAAM,EAAE,CAQ5F;AAED,wEAAwE;AACxE,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED,gGAAgG;AAChG,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,OAAO,CAI1F;AAED,2EAA2E;AAC3E,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,OAAO,CAAC,GAAG,OAAO,CAE9F;AAED,0CAA0C;AAC1C,wBAAgB,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAAG,OAAO,CAEtE"}
@@ -1 +1 @@
1
- {"version":3,"file":"card-preview.d.ts","sourceRoot":"","sources":["../../src/artifacts/card-preview.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAA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B,KAAK,EACL,MAAM,EACN,KAAK,EACL,IAAI,EACJ,KAAa,EACb,SAAS,GACV,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B,+BA2BA;AA4HD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;CAAE,+BAe3E;AAmKD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE,CAM1D;AA+GD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,CAmBA"}
@@ -16,12 +16,22 @@ interface EditSession {
16
16
  /** Whether the reader is editing the version shown. */
17
17
  readonly editing: boolean;
18
18
  readonly report: (draft: ArtifactDraft | null) => void;
19
+ /**
20
+ * Starts editing, as the header's Edit does: absent while the reader edits already, or may not
21
+ * change the artifact.
22
+ */
23
+ readonly start?: (() => void) | undefined;
19
24
  }
20
- export declare function EditSessionProvider({ editing, report, children, }: EditSession & {
25
+ export declare function EditSessionProvider({ editing, report, start, children, }: EditSession & {
21
26
  readonly children: ReactNode;
22
27
  }): import("react").JSX.Element;
23
28
  /** Whether the version shown is being edited: a renderer that edits shows its editing tools. */
24
29
  export declare function useArtifactEditing(): boolean;
30
+ /**
31
+ * Starts editing from within the artifact, as the header's Edit does, for a change the reader
32
+ * makes there; null while they edit already, or may not change it.
33
+ */
34
+ export declare function useStartEditing(): (() => void) | null;
25
35
  /** Tells the viewer what the renderer's draft holds, for the header's Save. */
26
36
  export declare function useReportDraft(draft: ArtifactDraft | null): void;
27
37
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"edit-session.d.ts","sourceRoot":"","sources":["../../src/artifacts/edit-session.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAiB,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAG5E,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,WAAW,CAAA;AAElE,iGAAiG;AACjG,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,6FAA6F;IAC7F,QAAQ,CAAC,KAAK,EAAE,MAAM,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAA;IACxD,6DAA6D;IAC7D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,yEAAyE;IACzE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B;AAED,UAAU,WAAW;IACnB,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAA;CACvD;AAID,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,MAAM,EACN,QAAQ,GACT,EAAE,WAAW,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMhD;AAED,gGAAgG;AAChG,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,KAAK,E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AAK,EACL,QAAQ,GACT,EAAE,WAAW,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAMhD;AAED,gGAAgG;AAChG,wBAAgB,kBAAkB,IAAI,OAAO,CAE5C;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAErD;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,GAAG,IAAI,CAMhE;AAOD;;;;GAIG;AACH,wBAAsB,SAAS,CAC7B,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,aAAa,EACpB,OAAO,GAAE;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAO,GAC/C,OAAO,CAAC,sBAAsB,CAAC,CA0CjC"}
@@ -0,0 +1,20 @@
1
+ import type { Editor } from "@tiptap/core";
2
+ import type { BlockChoice, BlockType } from "./blocks";
3
+ import type { EditorMessages } from "./messages";
4
+ export declare function BlockHandle({ editor, types, messages, }: {
5
+ readonly editor: Editor;
6
+ readonly types: readonly BlockType[];
7
+ readonly messages: EditorMessages;
8
+ }): import("react").JSX.Element;
9
+ /** What can be done to a block from its handle's menu, whichever editor it is in. */
10
+ export declare function BlockMenuItems({ textual, types, messages, onTurnInto, onDuplicate, onMove, onRemove, }: {
11
+ /** Whether it holds words, which "Turn into" changes. */
12
+ readonly textual: boolean;
13
+ readonly types: readonly BlockChoice[];
14
+ readonly messages: EditorMessages;
15
+ readonly onTurnInto: (id: string) => void;
16
+ readonly onDuplicate: () => void;
17
+ readonly onMove: (by: -1 | 1) => void;
18
+ readonly onRemove: () => void;
19
+ }): import("react").JSX.Element;
20
+ //# sourceMappingURL=block-handle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block-handle.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/block-handle.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAM1C,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAiBhD,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,KAAK,EACL,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAA;IACpC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;CAClC,+BAuKA;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAU,EACV,WAAW,EACX,MAAM,EACN,QAAQ,GACT,EAAE;IACD,yDAAyD;IACzD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;IACtC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;IACjC,QAAQ,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,QAAQ,CAAC,WAAW,EAAE,MAAM,IAAI,CAAA;IAChC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,CAAA;IACrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAA;CAC9B,+BA+CA"}
@@ -0,0 +1,34 @@
1
+ import type { Editor, Range } from "@tiptap/core";
2
+ import { type LucideIcon } from "lucide-react";
3
+ import type { EditorMessages } from "./messages";
4
+ export type BlockTypeId = "paragraph" | "heading1" | "heading2" | "heading3" | "bulletList" | "orderedList" | "taskList" | "quote" | "callout" | "warning" | "codeBlock" | "table" | "image" | "divider";
5
+ export interface BlockType {
6
+ readonly id: BlockTypeId;
7
+ readonly icon: LucideIcon;
8
+ readonly label: string;
9
+ readonly description: string;
10
+ /** Words besides its label it is found by. */
11
+ readonly keywords: readonly string[];
12
+ /** What typed at the start of a line makes it. */
13
+ readonly shortcut?: string;
14
+ /** Whether a block of text may be turned into it, keeping its words. */
15
+ readonly turnsInto: boolean;
16
+ /** Makes it, in place of `range` when given (the typed `/` and query). */
17
+ readonly make: (editor: Editor, range?: Range) => void;
18
+ /** Whether the block the selection is in is one. */
19
+ readonly isActive: (editor: Editor) => boolean;
20
+ }
21
+ /** A kind of block as the menus show it, whichever editor makes it. */
22
+ export type BlockChoice = Pick<BlockType, "icon" | "label" | "description" | "keywords" | "shortcut" | "turnsInto"> & {
23
+ readonly id: string;
24
+ };
25
+ /**
26
+ * The blocks a person can make. `pickImage` is how an image is chosen, which the `/` menu offers
27
+ * where the editor can upload one.
28
+ */
29
+ export declare function blockTypes(messages: EditorMessages["blocks"], options?: {
30
+ readonly pickImage?: () => void;
31
+ }): readonly BlockType[];
32
+ /** The icon a callout of `kind` shows. */
33
+ export declare function calloutIcon(kind: string): LucideIcon;
34
+ //# sourceMappingURL=blocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAYL,KAAK,UAAU,EAKhB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAKhD,MAAM,MAAM,WAAW,GACnB,WAAW,GACX,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,aAAa,GACb,UAAU,GACV,OAAO,GACP,SAAS,GACT,SAAS,GACT,WAAW,GACX,OAAO,GACP,OAAO,GACP,SAAS,CAAA;AAEb,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IACpC,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,wEAAwE;IACxE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAA;IAC3B,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAA;IACtD,oDAAoD;IACpD,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAA;CAC/C;AAED,uEAAuE;AACvE,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,SAAS,EACT,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,UAAU,GAAG,UAAU,GAAG,WAAW,CACzE,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA;AAE3B;;;GAGG;AACH,wBAAgB,UAAU,CACxB,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAAC,EAClC,OAAO,GAAE;IAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CAAO,GAChD,SAAS,SAAS,EAAE,CA0ItB;AAED,0CAA0C;AAC1C,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAIpD"}
@@ -0,0 +1,7 @@
1
+ import { type NodeViewProps } from "@tiptap/react";
2
+ /**
3
+ * A callout as it reads, its kind's icon beside its blocks. A click on the icon takes it to the
4
+ * next kind: note, tip, important, warning, caution.
5
+ */
6
+ export declare function CalloutView({ node, updateAttributes, editor }: NodeViewProps): import("react").JSX.Element;
7
+ //# sourceMappingURL=callout-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callout-view.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/callout-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,aAAa,EAAmB,MAAM,eAAe,CAAA;AAIpF;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,EAAE,aAAa,+BAsB5E"}
@@ -0,0 +1,30 @@
1
+ import type { Awareness } from "y-protocols/awareness";
2
+ import type * as Y from "yjs";
3
+ import type { EditorMessages } from "./messages";
4
+ export interface DocumentEditorProps {
5
+ /** `document.md` as the live document holds it. */
6
+ readonly fragment: Y.XmlFragment;
7
+ readonly awareness: Awareness;
8
+ /** The reader may change it. */
9
+ readonly editable: boolean;
10
+ /** Where one of its image paths is served from. */
11
+ readonly imageSource: (src: string) => string | null;
12
+ readonly messages: EditorMessages;
13
+ /** The artifact's theme, as the document page applies it. */
14
+ readonly theme?: {
15
+ readonly className?: string;
16
+ readonly style?: React.CSSProperties;
17
+ };
18
+ /**
19
+ * Stores an image a person adds as a file of the document, and says where its blocks point to
20
+ * it; throws, saying why, when it cannot. Without it, images are not added.
21
+ */
22
+ readonly uploadImage?: (file: File) => Promise<{
23
+ readonly src: string;
24
+ readonly alt: string;
25
+ }>;
26
+ /** The section to open at: the slug of its heading, as the document page names it. */
27
+ readonly part?: string;
28
+ }
29
+ export declare function DocumentEditor({ fragment, awareness, editable, imageSource, messages, theme, uploadImage, part, }: DocumentEditorProps): import("react").JSX.Element;
30
+ //# sourceMappingURL=document-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-editor.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/document-editor.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,KAAK,CAAC,MAAM,KAAK,CAAA;AAK7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAUhD,MAAM,WAAW,mBAAmB;IAClC,mDAAmD;IACnD,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,WAAW,CAAA;IAChC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAA;IAC7B,gCAAgC;IAChC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;IAC1B,mDAAmD;IACnD,QAAQ,CAAC,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;IACpD,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;IACjC,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;KAAE,CAAA;IACtF;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;QAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC9F,sFAAsF;IACtF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,KAAK,EACL,WAAW,EACX,IAAI,GACL,EAAE,mBAAmB,+BAmOrB"}
@@ -0,0 +1,12 @@
1
+ import { type NodeViewProps } from "@tiptap/react";
2
+ /** Where a document's image path is served from, and what an empty caption says. */
3
+ export declare const FigureContext: import("react").Context<{
4
+ readonly source: (src: string) => string | null;
5
+ readonly caption: string;
6
+ }>;
7
+ /**
8
+ * A figure as it reads: the image, and its caption, which is typed into in place. The caption is
9
+ * the image's title, as Markdown keeps it.
10
+ */
11
+ export declare function FigureView({ node, updateAttributes, selected, editor }: NodeViewProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=figure-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"figure-view.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/figure-view.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,eAAe,CAAA;AAKnE,oFAAoF;AACpF,eAAO,MAAM,aAAa;qBACP,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI;sBAC7B,MAAM;EACa,CAAA;AAEvC;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,aAAa,+BAgDrF"}
@@ -0,0 +1,6 @@
1
+ /** The kinds of block a query finds, best first: by label, then by keyword. */
2
+ export declare function findBlockTypes<Type extends {
3
+ readonly label: string;
4
+ readonly keywords: readonly string[];
5
+ }>(types: readonly Type[], query: string): Type[];
6
+ //# sourceMappingURL=find-blocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-blocks.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/find-blocks.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,wBAAgB,cAAc,CAC5B,IAAI,SAAS;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,EAC7E,KAAK,EAAE,SAAS,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,CAe/C"}
@@ -0,0 +1,12 @@
1
+ import { type ArtifactVersion } from "../queries";
2
+ /**
3
+ * A Markdown document's body: once the live document holds its blocks, the editor, which
4
+ * everyone who may change it types into as it is shown; until then, and for an older version, the
5
+ * document page.
6
+ */
7
+ export declare function MarkdownDocument({ version, latestVersion, part, }: {
8
+ readonly version: ArtifactVersion;
9
+ readonly latestVersion: number;
10
+ readonly part?: string;
11
+ }): import("react").JSX.Element;
12
+ //# sourceMappingURL=markdown-document.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-document.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/markdown-document.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,YAAY,CAAA;AAMrE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,aAAa,EACb,IAAI,GACL,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,+BA+CA"}
@@ -0,0 +1,4 @@
1
+ import type { ArtifactMessages } from "../messages";
2
+ /** The editor's words, in the reader's locale. */
3
+ export type EditorMessages = ArtifactMessages["editor"];
4
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,kDAAkD;AAClD,MAAM,MAAM,cAAc,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { type AnyExtension, Node } from "@tiptap/core";
2
+ import { CALLOUT_KINDS } from "../renderers/document-tree";
3
+ /** A `> [!NOTE]` quote: a block of blocks of one kind. */
4
+ export declare const CalloutNode: Node<any, any>;
5
+ /** Markdown the editor does not model, a footnote or raw HTML, kept as it was written. */
6
+ export declare const MarkdownBlock: Node<any, any>;
7
+ /** The same, within a line of text. */
8
+ export declare const MarkdownInline: Node<any, any>;
9
+ /** A fenced code block: its language, and the rest of its info string. */
10
+ export declare const CodeBlockWithMeta: Node<import("@tiptap/extension-code-block").CodeBlockOptions, any>;
11
+ /** A figure: an image alone in its paragraph, its title its caption. */
12
+ export declare const Figure: Node<import("@tiptap/extension-image").ImageOptions, any>;
13
+ /**
14
+ * The document's schema. `codeBlock` keeps its info string's meta, a heading its level, an
15
+ * ordered list its start: what writing it back as Markdown needs.
16
+ */
17
+ export declare function documentSchemaExtensions(options?: {
18
+ readonly callout?: AnyExtension;
19
+ }): AnyExtension[];
20
+ export { CALLOUT_KINDS };
21
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAmB,IAAI,EAAE,MAAM,cAAc,CAAA;AAMvE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAO1D,0DAA0D;AAC1D,eAAO,MAAM,WAAW,gBAoBtB,CAAA;AAEF,0FAA0F;AAC1F,eAAO,MAAM,aAAa,gBAexB,CAAA;AAEF,uCAAuC;AACvC,eAAO,MAAM,cAAc,gBAgBzB,CAAA;AAYF,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,oEAI5B,CAAA;AAqBF,wEAAwE;AACxE,eAAO,MAAM,MAAM,2DASgC,CAAA;AAEnD;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,GAAE;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;CAAO,GAChD,YAAY,EAAE,CA6BhB;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,35 @@
1
+ import type { Editor } from "@tiptap/core";
2
+ import type { BlockChoice, BlockType } from "./blocks";
3
+ import type { EditorMessages } from "./messages";
4
+ export declare function SelectionToolbar({ editor, types, messages, linkRequest, }: {
5
+ readonly editor: Editor;
6
+ readonly types: readonly BlockType[];
7
+ readonly messages: EditorMessages;
8
+ /** Bumped by ⌘K: opens the link field over the selection. */
9
+ readonly linkRequest: number;
10
+ }): import("react").JSX.Element;
11
+ export type ToolbarMode = "marks" | "link" | "turnInto";
12
+ /** The marks over selected words the toolbar toggles. */
13
+ export type ToolbarMark = "bold" | "italic" | "strike" | "code";
14
+ /**
15
+ * The toolbar's contents, whichever editor it is over: the block the words are in, their marks,
16
+ * and their link, or the field that edits it, or the kinds of block to turn theirs into.
17
+ */
18
+ export declare function SelectionToolbarBody({ mode, onMode, marks, types, messages, onMark, onTurnInto, onLink, onCancelLink, turnable, }: {
19
+ readonly mode: ToolbarMode;
20
+ readonly onMode: (mode: ToolbarMode) => void;
21
+ readonly marks: Readonly<Record<ToolbarMark, boolean>> & {
22
+ readonly link: string | null;
23
+ readonly block: string | null;
24
+ };
25
+ readonly types: readonly BlockChoice[];
26
+ readonly messages: EditorMessages;
27
+ readonly onMark: (mark: ToolbarMark) => void;
28
+ readonly onTurnInto: (id: string) => void;
29
+ /** Sets the words' link, or removes it with null. */
30
+ readonly onLink: (href: string | null) => void;
31
+ readonly onCancelLink: () => void;
32
+ /** Whether the words' block may be turned into another kind; a table's cell may not. */
33
+ readonly turnable?: boolean;
34
+ }): import("react").JSX.Element;
35
+ //# sourceMappingURL=selection-toolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-toolbar.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/selection-toolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAiB1C,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAMhD,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,KAAK,EACL,QAAQ,EACR,WAAW,GACZ,EAAE;IACD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAA;IACpC,QAAQ,CAAC,QAA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BAyGA"}
@@ -0,0 +1,43 @@
1
+ import { type Editor, Extension, type Range } from "@tiptap/core";
2
+ import { type Ref } from "react";
3
+ import type { BlockChoice, BlockType } from "./blocks";
4
+ import type { EditorMessages } from "./messages";
5
+ interface SlashState {
6
+ readonly open: boolean;
7
+ readonly items: readonly BlockType[];
8
+ readonly index: number;
9
+ readonly rect: DOMRect | null;
10
+ readonly range: Range | null;
11
+ readonly editor: Editor | null;
12
+ }
13
+ /** The `/` menu's state, for one editor. */
14
+ export declare class SlashMenuStore {
15
+ private state;
16
+ private readonly listeners;
17
+ get: () => SlashState;
18
+ subscribe: (listener: () => void) => (() => void);
19
+ set(next: Partial<SlashState>): void;
20
+ close(): void;
21
+ /** Makes the block at `index`, in place of the typed `/` and query. */
22
+ choose(index?: number): void;
23
+ }
24
+ /** The `/` trigger, which fills `store` as the person types. */
25
+ export declare function SlashCommand(store: SlashMenuStore, types: () => readonly BlockType[]): Extension<any, any>;
26
+ export declare const SLASH_MENU_WIDTH = 304;
27
+ export declare const SLASH_MENU_MAX_HEIGHT = 360;
28
+ /** The menu itself, below the `/`, or above it when the page ends first. */
29
+ export declare function SlashMenu({ store, messages, }: {
30
+ readonly store: SlashMenuStore;
31
+ readonly messages: EditorMessages;
32
+ }): import("react").ReactPortal | null;
33
+ /** The `/` menu's list: the kinds of block that match, the one pointed at marked. */
34
+ export declare function SlashMenuItems({ items, index: pointed, messages, listRef, onPoint, onChoose, }: {
35
+ readonly items: readonly BlockChoice[];
36
+ readonly index: number;
37
+ readonly messages: EditorMessages;
38
+ readonly listRef?: Ref<HTMLDivElement>;
39
+ readonly onPoint: (index: number) => void;
40
+ readonly onChoose: (index: number) => void;
41
+ }): import("react").JSX.Element;
42
+ export {};
43
+ //# sourceMappingURL=slash-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slash-menu.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/slash-menu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,M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,EAAE,cAAc,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;CAClC,sCA2CA;AAED,qFAAqF;AACrF,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,KAAK,EAAE,OAAO,EACd,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;IACtC,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C,+BA4CA"}
@@ -0,0 +1,12 @@
1
+ import type { LiveArtifact } from "../live/session";
2
+ import type { ArtifactVersion } from "../queries";
3
+ /**
4
+ * Stores a picture a person adds to a document as a file of it, beside its entry under its own
5
+ * name made safe, as a board's pictures are, and says where the document points to it. Throws,
6
+ * saying why, when it cannot: too large, or no live document to add it to.
7
+ */
8
+ export declare function useImageUpload(live: LiveArtifact | null, version: ArtifactVersion): (file: File) => Promise<{
9
+ readonly src: string;
10
+ readonly alt: string;
11
+ }>;
12
+ //# sourceMappingURL=upload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/artifacts/editor/upload.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAGjD;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,GAAG,IAAI,EACzB,OAAO,EAAE,eAAe,GACvB,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAoBzE"}
@@ -68,4 +68,9 @@ export declare function modelCallFileSource(input: {
68
68
  }): FileSource;
69
69
  /** The file's name to show: its own, or a word for a file in the reader's language. */
70
70
  export declare function useFileName(source: FileSource): string;
71
+ /** Where a designed document's version downloads as a PDF, once printed. */
72
+ export declare function documentPdfUrl(version: {
73
+ readonly artifactId: string;
74
+ readonly version: number;
75
+ }, key?: string): string;
71
76
  //# sourceMappingURL=file-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-source.d.ts","sourceRoot":"","sources":["../../src/artifacts/file-source.ts"],"names":[],"mappings":"AAYA,6DAA6D;AAC7D,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,gDAAgD;IAChD,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACtD;AAED,wB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AuF;AACvF,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAGtD;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAC5B,OAAO,EAAE;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAClE,GAAG,CAAC,EAAE,MAAM,GACX,MAAM,CAKR"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The editor's script, which the app sends a designed document's frame to run, built from
3
+ * `./entry.ts` by `bun run generate:frame-editor`. Imported only when a reader starts editing, so
4
+ * the app loads it then.
5
+ */
6
+ export declare const FRAME_EDITOR_SCRIPT: string;
7
+ //# sourceMappingURL=bundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../../src/artifacts/frame-editor/bundle.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAa,CAAA"}