@sixb/app 0.2.4 → 0.2.6

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 (306) 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/components/agent-threads.d.ts.map +1 -1
  10. package/dist/agent/components/composer-place.d.ts.map +1 -1
  11. package/dist/agent/components/composer-settings.d.ts +1 -1
  12. package/dist/agent/components/composer-settings.d.ts.map +1 -1
  13. package/dist/agent/components/composer.d.ts +22 -5
  14. package/dist/agent/components/composer.d.ts.map +1 -1
  15. package/dist/agent/components/computer-place.d.ts +24 -6
  16. package/dist/agent/components/computer-place.d.ts.map +1 -1
  17. package/dist/agent/components/context-meter.d.ts +1 -1
  18. package/dist/agent/components/context-meter.d.ts.map +1 -1
  19. package/dist/agent/components/conversation-panel.d.ts +5 -2
  20. package/dist/agent/components/conversation-panel.d.ts.map +1 -1
  21. package/dist/agent/components/message-parts.d.ts +2 -1
  22. package/dist/agent/components/message-parts.d.ts.map +1 -1
  23. package/dist/agent/components/message-view.d.ts +13 -3
  24. package/dist/agent/components/message-view.d.ts.map +1 -1
  25. package/dist/agent/components/pending-messages.d.ts +20 -0
  26. package/dist/agent/components/pending-messages.d.ts.map +1 -0
  27. package/dist/agent/components/sandbox-recovery.d.ts +11 -2
  28. package/dist/agent/components/sandbox-recovery.d.ts.map +1 -1
  29. package/dist/agent/components/threads-button.d.ts +1 -1
  30. package/dist/agent/components/threads-button.d.ts.map +1 -1
  31. package/dist/agent/components/transcript.d.ts +13 -0
  32. package/dist/agent/components/transcript.d.ts.map +1 -1
  33. package/dist/agent/conversation.d.ts +7 -6
  34. package/dist/agent/conversation.d.ts.map +1 -1
  35. package/dist/agent/delegation/interpret.d.ts +5 -0
  36. package/dist/agent/delegation/interpret.d.ts.map +1 -1
  37. package/dist/agent/delegation/use-children.d.ts.map +1 -1
  38. package/dist/agent/format.d.ts +7 -0
  39. package/dist/agent/format.d.ts.map +1 -1
  40. package/dist/agent/hooks/thread-queries.d.ts +1548 -0
  41. package/dist/agent/hooks/thread-queries.d.ts.map +1 -0
  42. package/dist/agent/hooks/use-agent-conversation.d.ts +51 -6
  43. package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
  44. package/dist/agent/hooks/use-thread-lists.d.ts +80 -3
  45. package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
  46. package/dist/agent/hooks/use-thread-place.d.ts +49 -0
  47. package/dist/agent/hooks/use-thread-place.d.ts.map +1 -0
  48. package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
  49. package/dist/agent/i18n/en.d.ts +107 -6
  50. package/dist/agent/i18n/en.d.ts.map +1 -1
  51. package/dist/agent/i18n/fr.d.ts.map +1 -1
  52. package/dist/agent/i18n/index.d.ts +180 -12
  53. package/dist/agent/i18n/index.d.ts.map +1 -1
  54. package/dist/agent/inbox-handoff.d.ts +10 -0
  55. package/dist/agent/inbox-handoff.d.ts.map +1 -0
  56. package/dist/agent/live-run.d.ts +8 -1
  57. package/dist/agent/live-run.d.ts.map +1 -1
  58. package/dist/agent/model-selection.d.ts +3 -2
  59. package/dist/agent/model-selection.d.ts.map +1 -1
  60. package/dist/agent/moves.d.ts +40 -0
  61. package/dist/agent/moves.d.ts.map +1 -0
  62. package/dist/agent/search/interpret.d.ts +101 -0
  63. package/dist/agent/search/interpret.d.ts.map +1 -0
  64. package/dist/agent/search/search-tool-view.d.ts +10 -0
  65. package/dist/agent/search/search-tool-view.d.ts.map +1 -0
  66. package/dist/agent/thread-reader-state.d.ts +30 -0
  67. package/dist/agent/thread-reader-state.d.ts.map +1 -0
  68. package/dist/agent/thread-state.d.ts +26 -0
  69. package/dist/agent/thread-state.d.ts.map +1 -0
  70. package/dist/agent/tool-views/built-in.d.ts.map +1 -1
  71. package/dist/agent/tool-views/registry.d.ts +5 -6
  72. package/dist/agent/tool-views/registry.d.ts.map +1 -1
  73. package/dist/agent/types.d.ts +9 -1
  74. package/dist/agent/types.d.ts.map +1 -1
  75. package/dist/agent/view-file/view-file-tool-view.d.ts +2 -1
  76. package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -1
  77. package/dist/artifacts/card-preview.d.ts.map +1 -1
  78. package/dist/artifacts/editor/block-handle.d.ts +20 -0
  79. package/dist/artifacts/editor/block-handle.d.ts.map +1 -0
  80. package/dist/artifacts/editor/blocks.d.ts +34 -0
  81. package/dist/artifacts/editor/blocks.d.ts.map +1 -0
  82. package/dist/artifacts/editor/callout-view.d.ts +7 -0
  83. package/dist/artifacts/editor/callout-view.d.ts.map +1 -0
  84. package/dist/artifacts/editor/document-editor.d.ts +30 -0
  85. package/dist/artifacts/editor/document-editor.d.ts.map +1 -0
  86. package/dist/artifacts/editor/figure-view.d.ts +12 -0
  87. package/dist/artifacts/editor/figure-view.d.ts.map +1 -0
  88. package/dist/artifacts/editor/find-blocks.d.ts +6 -0
  89. package/dist/artifacts/editor/find-blocks.d.ts.map +1 -0
  90. package/dist/artifacts/editor/markdown-document.d.ts +12 -0
  91. package/dist/artifacts/editor/markdown-document.d.ts.map +1 -0
  92. package/dist/artifacts/editor/messages.d.ts +4 -0
  93. package/dist/artifacts/editor/messages.d.ts.map +1 -0
  94. package/dist/artifacts/editor/schema.d.ts +21 -0
  95. package/dist/artifacts/editor/schema.d.ts.map +1 -0
  96. package/dist/artifacts/editor/selection-toolbar.d.ts +35 -0
  97. package/dist/artifacts/editor/selection-toolbar.d.ts.map +1 -0
  98. package/dist/artifacts/editor/slash-menu.d.ts +43 -0
  99. package/dist/artifacts/editor/slash-menu.d.ts.map +1 -0
  100. package/dist/artifacts/editor/upload.d.ts +12 -0
  101. package/dist/artifacts/editor/upload.d.ts.map +1 -0
  102. package/dist/artifacts/file-source.d.ts +5 -0
  103. package/dist/artifacts/file-source.d.ts.map +1 -1
  104. package/dist/artifacts/frame-editor/bundle.d.ts +7 -0
  105. package/dist/artifacts/frame-editor/bundle.d.ts.map +1 -0
  106. package/dist/artifacts/frame-editor/commands.d.ts +93 -0
  107. package/dist/artifacts/frame-editor/commands.d.ts.map +1 -0
  108. package/dist/artifacts/frame-editor/entry.d.ts +2 -0
  109. package/dist/artifacts/frame-editor/entry.d.ts.map +1 -0
  110. package/dist/artifacts/frame-editor/frame.d.ts +5 -0
  111. package/dist/artifacts/frame-editor/frame.d.ts.map +1 -0
  112. package/dist/artifacts/frame-editor/keys.d.ts +8 -0
  113. package/dist/artifacts/frame-editor/keys.d.ts.map +1 -0
  114. package/dist/artifacts/frame-editor/protocol.d.ts +186 -0
  115. package/dist/artifacts/frame-editor/protocol.d.ts.map +1 -0
  116. package/dist/artifacts/frame-editor/schema.d.ts +34 -0
  117. package/dist/artifacts/frame-editor/schema.d.ts.map +1 -0
  118. package/dist/artifacts/frame-editor/style.d.ts +2 -0
  119. package/dist/artifacts/frame-editor/style.d.ts.map +1 -0
  120. package/dist/artifacts/frame.d.ts +2 -2
  121. package/dist/artifacts/frame.d.ts.map +1 -1
  122. package/dist/artifacts/live/boards.d.ts +2 -0
  123. package/dist/artifacts/live/boards.d.ts.map +1 -1
  124. package/dist/artifacts/live/document.d.ts +32 -0
  125. package/dist/artifacts/live/document.d.ts.map +1 -0
  126. package/dist/artifacts/live/header.d.ts +4 -4
  127. package/dist/artifacts/live/header.d.ts.map +1 -1
  128. package/dist/artifacts/live/presence.d.ts.map +1 -1
  129. package/dist/artifacts/live/session.d.ts +2 -0
  130. package/dist/artifacts/live/session.d.ts.map +1 -1
  131. package/dist/artifacts/live/view.d.ts +4 -3
  132. package/dist/artifacts/live/view.d.ts.map +1 -1
  133. package/dist/artifacts/messages.d.ts +226 -2
  134. package/dist/artifacts/messages.d.ts.map +1 -1
  135. package/dist/artifacts/pdf.d.ts +8 -0
  136. package/dist/artifacts/pdf.d.ts.map +1 -0
  137. package/dist/artifacts/queries.d.ts +80 -0
  138. package/dist/artifacts/queries.d.ts.map +1 -1
  139. package/dist/artifacts/references/references.d.ts +3 -3
  140. package/dist/artifacts/references/references.d.ts.map +1 -1
  141. package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -1
  142. package/dist/artifacts/renderers/canvas/comment-pins.d.ts +4 -2
  143. package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -1
  144. package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -1
  145. package/dist/artifacts/renderers/canvas/comments.d.ts +2 -1
  146. package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -1
  147. package/dist/artifacts/renderers/designed-document.d.ts +28 -0
  148. package/dist/artifacts/renderers/designed-document.d.ts.map +1 -0
  149. package/dist/artifacts/renderers/document-tree.d.ts +2 -0
  150. package/dist/artifacts/renderers/document-tree.d.ts.map +1 -1
  151. package/dist/artifacts/renderers/document.d.ts +9 -1
  152. package/dist/artifacts/renderers/document.d.ts.map +1 -1
  153. package/dist/artifacts/renderers/live-frame.d.ts +145 -0
  154. package/dist/artifacts/renderers/live-frame.d.ts.map +1 -0
  155. package/dist/artifacts/renderers/page-editor.d.ts +16 -0
  156. package/dist/artifacts/renderers/page-editor.d.ts.map +1 -0
  157. package/dist/artifacts/renderers/page.d.ts +10 -1
  158. package/dist/artifacts/renderers/page.d.ts.map +1 -1
  159. package/dist/artifacts/viewer.d.ts.map +1 -1
  160. package/dist/{chunk-pxd07kvx.js → chunk-096d52h2.js} +1 -1
  161. package/dist/{chunk-yrcm1pbg.js → chunk-94d7enwc.js} +491 -2128
  162. package/dist/chunk-94d7enwc.js.map +27 -0
  163. package/dist/{chunk-970s5nkn.js → chunk-ezntd3yy.js} +1 -1
  164. package/dist/{chunk-kymx9y5e.js → chunk-qjw5r2vk.js} +12729 -5044
  165. package/dist/chunk-qjw5r2vk.js.map +242 -0
  166. package/dist/chunk-y51c4tsz.js +11 -0
  167. package/dist/chunk-y51c4tsz.js.map +10 -0
  168. package/dist/createCustomApp.d.ts +8 -1
  169. package/dist/createCustomApp.d.ts.map +1 -1
  170. package/dist/index.d.ts +4 -2
  171. package/dist/index.d.ts.map +1 -1
  172. package/dist/index.js +13 -6
  173. package/dist/index.js.map +5 -5
  174. package/dist/pages/console/data/accounts.d.ts +94 -0
  175. package/dist/pages/console/data/accounts.d.ts.map +1 -0
  176. package/dist/pages/console/data/connectors.d.ts.map +1 -1
  177. package/dist/pages/console/data/live-updates.d.ts.map +1 -1
  178. package/dist/pages/console/data/messages.d.ts +52 -0
  179. package/dist/pages/console/data/messages.d.ts.map +1 -1
  180. package/dist/pages/console/data/shared.d.ts.map +1 -1
  181. package/dist/pages/console/data/sync-button.d.ts.map +1 -1
  182. package/dist/pages/console/data/syncs.d.ts.map +1 -1
  183. package/dist/pages/settings/usage/breakdown.d.ts.map +1 -1
  184. package/dist/pages/settings/usage/page.d.ts +4 -1
  185. package/dist/pages/settings/usage/page.d.ts.map +1 -1
  186. package/dist/pages/settings/usage/spend-model.d.ts +43 -19
  187. package/dist/pages/settings/usage/spend-model.d.ts.map +1 -1
  188. package/dist/pages.js +23044 -22570
  189. package/dist/pages.js.map +17 -16
  190. package/dist/server.d.ts +1 -1
  191. package/dist/server.d.ts.map +1 -1
  192. package/dist/server.js +40 -3
  193. package/dist/server.js.map +3 -3
  194. package/dist/shell/search-command.d.ts.map +1 -1
  195. package/package.json +22 -5
  196. package/src/agent/activity-label.ts +3 -0
  197. package/src/agent/agent-chat.tsx +58 -39
  198. package/src/agent/agent-execution-trace.tsx +2 -2
  199. package/src/agent/agent-panel.tsx +6 -4
  200. package/src/agent/agent.css +254 -0
  201. package/src/agent/artifact-panel.tsx +77 -22
  202. package/src/agent/components/agent-threads.tsx +42 -2
  203. package/src/agent/components/composer-place.tsx +2 -7
  204. package/src/agent/components/composer-settings.tsx +20 -10
  205. package/src/agent/components/composer.tsx +342 -104
  206. package/src/agent/components/computer-place.tsx +415 -70
  207. package/src/agent/components/context-meter.tsx +7 -3
  208. package/src/agent/components/conversation-panel.tsx +99 -54
  209. package/src/agent/components/message-parts.tsx +367 -59
  210. package/src/agent/components/message-view.tsx +428 -9
  211. package/src/agent/components/pending-messages.tsx +342 -0
  212. package/src/agent/components/sandbox-recovery.tsx +36 -17
  213. package/src/agent/components/threads-button.tsx +3 -2
  214. package/src/agent/components/transcript.tsx +198 -38
  215. package/src/agent/conversation.ts +219 -55
  216. package/src/agent/delegation/interpret.ts +31 -7
  217. package/src/agent/format.ts +52 -0
  218. package/src/agent/hooks/thread-queries.ts +75 -0
  219. package/src/agent/hooks/use-agent-conversation.ts +801 -211
  220. package/src/agent/hooks/use-thread-lists.ts +72 -7
  221. package/src/agent/hooks/use-thread-place.ts +239 -0
  222. package/src/agent/hooks/use-thread-stream.ts +10 -0
  223. package/src/agent/i18n/en.ts +150 -27
  224. package/src/agent/i18n/fr.ts +148 -31
  225. package/src/agent/inbox-handoff.ts +47 -0
  226. package/src/agent/live-run.ts +61 -2
  227. package/src/agent/model-selection.ts +3 -2
  228. package/src/agent/moves.ts +174 -0
  229. package/src/agent/react-router.tsx +2 -2
  230. package/src/agent/search/interpret.ts +367 -0
  231. package/src/agent/search/search-tool-view.tsx +235 -0
  232. package/src/agent/thread-reader-state.ts +75 -0
  233. package/src/agent/thread-state.ts +114 -0
  234. package/src/agent/tool-views/built-in.tsx +16 -0
  235. package/src/agent/tool-views/registry.tsx +28 -2
  236. package/src/agent/types.ts +13 -0
  237. package/src/agent/view-file/view-file-tool-view.tsx +33 -19
  238. package/src/artifacts/artifacts.css +398 -0
  239. package/src/artifacts/card-preview.tsx +6 -1
  240. package/src/artifacts/editor/block-handle.tsx +278 -0
  241. package/src/artifacts/editor/blocks.ts +216 -0
  242. package/src/artifacts/editor/callout-view.tsx +31 -0
  243. package/src/artifacts/editor/document-editor.tsx +484 -0
  244. package/src/artifacts/editor/figure-view.tsx +66 -0
  245. package/src/artifacts/editor/find-blocks.ts +19 -0
  246. package/src/artifacts/editor/markdown-document.tsx +72 -0
  247. package/src/artifacts/editor/messages.ts +4 -0
  248. package/src/artifacts/editor/schema.ts +159 -0
  249. package/src/artifacts/editor/selection-toolbar.tsx +364 -0
  250. package/src/artifacts/editor/slash-menu.tsx +251 -0
  251. package/src/artifacts/editor/upload.ts +40 -0
  252. package/src/artifacts/file-source.ts +11 -0
  253. package/src/artifacts/frame-editor/bundle.ts +8 -0
  254. package/src/artifacts/frame-editor/commands.ts +565 -0
  255. package/src/artifacts/frame-editor/entry.ts +6 -0
  256. package/src/artifacts/frame-editor/frame.ts +847 -0
  257. package/src/artifacts/frame-editor/generated/editor.txt +149 -0
  258. package/src/artifacts/frame-editor/generated.d.ts +5 -0
  259. package/src/artifacts/frame-editor/keys.ts +323 -0
  260. package/src/artifacts/frame-editor/protocol.ts +151 -0
  261. package/src/artifacts/frame-editor/schema.ts +293 -0
  262. package/src/artifacts/frame-editor/style.ts +58 -0
  263. package/src/artifacts/frame.tsx +11 -3
  264. package/src/artifacts/live/boards.ts +46 -3
  265. package/src/artifacts/live/document.ts +89 -0
  266. package/src/artifacts/live/header.tsx +9 -14
  267. package/src/artifacts/live/presence.ts +5 -1
  268. package/src/artifacts/live/session.ts +9 -2
  269. package/src/artifacts/live/view.ts +14 -8
  270. package/src/artifacts/messages.ts +138 -2
  271. package/src/artifacts/pdf.ts +50 -0
  272. package/src/artifacts/references/references.tsx +46 -11
  273. package/src/artifacts/renderers/canvas/board-editor.tsx +11 -144
  274. package/src/artifacts/renderers/canvas/comment-pins.tsx +5 -0
  275. package/src/artifacts/renderers/canvas/comments-panel.tsx +58 -1
  276. package/src/artifacts/renderers/canvas/comments.ts +8 -4
  277. package/src/artifacts/renderers/designed-document.tsx +277 -0
  278. package/src/artifacts/renderers/document-tree.ts +9 -0
  279. package/src/artifacts/renderers/document.tsx +13 -102
  280. package/src/artifacts/renderers/live-frame.ts +163 -0
  281. package/src/artifacts/renderers/page-editor.tsx +613 -0
  282. package/src/artifacts/renderers/page.tsx +21 -4
  283. package/src/artifacts/viewer.tsx +87 -41
  284. package/src/createCustomApp.ts +57 -3
  285. package/src/index.ts +10 -0
  286. package/src/pages/console/data/accounts.tsx +509 -0
  287. package/src/pages/console/data/connectors.tsx +7 -15
  288. package/src/pages/console/data/live-updates.ts +2 -0
  289. package/src/pages/console/data/messages.ts +79 -0
  290. package/src/pages/console/data/projections.tsx +4 -0
  291. package/src/pages/console/data/shared.tsx +1 -0
  292. package/src/pages/console/data/sync-button.tsx +56 -16
  293. package/src/pages/console/data/syncs.tsx +66 -41
  294. package/src/pages/console/ontology/lineage/trail.tsx +3 -0
  295. package/src/pages/section-ui.tsx +1 -1
  296. package/src/pages/settings/usage/breakdown.tsx +5 -2
  297. package/src/pages/settings/usage/filter-menu.tsx +1 -1
  298. package/src/pages/settings/usage/page.tsx +32 -13
  299. package/src/pages/settings/usage/spend-chart.tsx +2 -2
  300. package/src/pages/settings/usage/spend-model.ts +118 -50
  301. package/src/server.ts +1 -0
  302. package/src/shell/search-command.tsx +2 -0
  303. package/dist/chunk-kymx9y5e.js.map +0 -211
  304. package/dist/chunk-yrcm1pbg.js.map +0 -34
  305. /package/dist/{chunk-pxd07kvx.js.map → chunk-096d52h2.js.map} +0 -0
  306. /package/dist/{chunk-970s5nkn.js.map → chunk-ezntd3yy.js.map} +0 -0
@@ -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,IAA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AAkB,CAiBtE"}
@@ -1,9 +1,13 @@
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 };
5
5
  export type Agent = GetAgentResponse;
6
6
  export type AgentThread = ListAgentThreadsResponse["threads"][number];
7
+ /** How far the reader's place in a thread has reached, and what is new to them. */
8
+ export type AgentThreadRead = NonNullable<AgentThread["read"]>;
9
+ /** A thread's newest run: enough to offer Continue or Retry without reading it. */
10
+ export type AgentThreadLastRun = NonNullable<AgentThread["lastRun"]>;
7
11
  /** What a new conversation's sandbox is made from, as the project's sandbox declares its params. */
8
12
  export type AgentThreadSandboxParams = NonNullable<CreateAgentThreadData["body"]["sandbox"]>;
9
13
  export type AgentMessage = ListAgentThreadMessagesResponse["messages"][number];
@@ -14,6 +18,10 @@ export type AgentFileRef = Extract<AgentMessagePart, {
14
18
  export type AgentContextPart = Extract<AgentMessagePart, {
15
19
  type: "context";
16
20
  }>;
21
+ /** A message waiting in a conversation's inbox: a steer, or a turn queued behind one. */
22
+ export type AgentInboxItem = ListAgentThreadInboxResponse["items"][number];
23
+ /** Where a message goes while a turn runs: into it, behind it, or after stopping it. */
24
+ export type AgentMessageDelivery = "auto" | "steer" | "queue" | "send_now";
17
25
  export type AgentRun = GetAgentRunResponse;
18
26
  /** A conversation's context against its model's limits: what the context meter shows. */
19
27
  export type AgentThreadContext = GetAgentThreadContextResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":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AAY,GAAG,OAAO,CAAC,gBAAgB,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,SAAS,CAAC,CAAA;AAEjF,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,CAAA;AAE7E,yFAAyF;AACzF,MAAM,MAAM,cAAc,GAAG,4BAA4B,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;AAE1E,wFAAwF;AACxF,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAA;AAE1E,MAAM,MAAM,QAAQ,GAAG,mBAAmB,CAAA;AAE1C,yFAAyF;AACzF,MAAM,MAAM,kBAAkB,GAAG,6BAA6B,CAAA;AAE9D,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAE/C,MAAM,MAAM,aAAa,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;AAElE,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"card-preview.d.ts","sourceRoot":"","sources":["../../src/artifacts/card-preview.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAK/C,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAErE,OAAO,EAAE,KAAK,eAAe,EAAoD,MAAM,WAAW,CAAA;AASlG,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAYzE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,IAAI,EACJ,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAA;IAC/B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B,+BAGA;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,OAAO,EACP,OAAO,GACR,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAA;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,QAAQ,CA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CAAA;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,CAmBA"}
@@ -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,QAAQ,EAAE,cAAc,CAAA;IACjC,6DAA6D;IAC7D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B,+BAgFA;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAA;AAEvD,yDAAyD;AACzD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE/D;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,QAAQ,EACR,MAAM,EACN,UAAU,EACV,MAAM,EACN,YAAY,EACZ,QAAe,GAChB,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;IAC5C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,GAAG;QACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KAC9B,CAAA;IACD,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAA;IACtC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;IACjC,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAA;IAC5C,QAAQ,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACzC,qDAAqD;IACrD,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IAC9C,QAAQ,CAAC,YAAY,EAAE,MAAM,IAAI,CAAA;IACjC,wFAAwF;IACxF,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC5B,+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,MAAM,EAAE,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,cAAc,CAAA;AAGjE,OAAO,EAAE,KAAK,GAAG,EAAsE,MAAM,OAAO,CAAA;AAEpG,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAMhD,UAAU,UAAU;IAClB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,CAAA;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAA;IAC7B,QAAQ,CAAC,KAAK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K,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/artif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UAAU,CA0Bb;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,8BAA8B;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,oCAAoC;IACpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B,GAAG,UAAU,CA6Bb;AAED,+FAA+F;AAC/F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;IAC/B,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B,GAAG,UAAU,CAuBb;AAED,uFAAuF;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"}
@@ -0,0 +1,93 @@
1
+ import type { Editor } from "@tiptap/core";
2
+ import type { Fragment, Node as ProseMirrorNode, ResolvedPos, Schema } from "@tiptap/pm/model";
3
+ import { Selection, type Transaction } from "@tiptap/pm/state";
4
+ import type { EditorView } from "@tiptap/pm/view";
5
+ import type { EditorRect, PageBlockId } from "./protocol";
6
+ /** Blocks of words where Enter starts a new line rather than a new block: a cell, a caption. */
7
+ export declare const SINGLE_BLOCK_TAGS: ReadonlySet<string>;
8
+ export declare const LIST_TAGS: ReadonlySet<string>;
9
+ /** The block of words the selection is in, and where it starts. */
10
+ export declare function wordsAt(selection: Selection): {
11
+ node: ProseMirrorNode;
12
+ pos: number;
13
+ } | null;
14
+ export declare function tagOf(node: ProseMirrorNode | null | undefined): string;
15
+ /** A block of words, made by the editor: spaced as the block before it when written back. */
16
+ export declare function words(schema: Schema, tag: string, open?: string, content?: Fragment | null): ProseMirrorNode;
17
+ export declare function box(schema: Schema, tag: string, children: readonly ProseMirrorNode[], open?: string): ProseMirrorNode;
18
+ /** A start tag without its `id`, which a copy must not repeat. */
19
+ export declare function withoutId(open: string, tag: string): string;
20
+ /**
21
+ * The start tag the page wrote for `tag` nearest before `pos`, else first after it, so a new
22
+ * heading or table looks like the page's others; a plain one where it wrote none.
23
+ */
24
+ export declare function likeOpen(doc: ProseMirrorNode, pos: number, tag: string): string;
25
+ /** A new block of the kind `id`, as it is made where `pos` is. */
26
+ export declare function makeBlock(schema: Schema, doc: ProseMirrorNode, pos: number, id: PageBlockId): ProseMirrorNode | null;
27
+ /**
28
+ * Where a block goes after the one at `pos`: right after it, or after the list or table it is
29
+ * part of, where a block of any kind may stand.
30
+ */
31
+ export declare function placeAfter(doc: ProseMirrorNode, pos: number): number;
32
+ /**
33
+ * Puts `made` where the block of words at `pos` is: in its place when it is empty and may be
34
+ * replaced, else after it. Returns where `made` starts.
35
+ */
36
+ export declare function placeBlock(tr: Transaction, pos: number, made: ProseMirrorNode): number;
37
+ /** Puts the caret in the first words of the block at `at`, or on a new paragraph after it. */
38
+ export declare function caretInto(tr: Transaction, at: number): void;
39
+ /** Makes a block of the kind `id` where the caret is, in place of `range`: what `/` typed. */
40
+ export declare function insertBlock(editor: Editor, id: PageBlockId, range?: {
41
+ readonly from: number;
42
+ readonly to: number;
43
+ }): boolean;
44
+ /**
45
+ * Turns the block of words at `pos`, or the one the caret is in, into a block of the kind `id`,
46
+ * keeping its words: a paragraph into a heading, a list item out of its list into a paragraph.
47
+ */
48
+ export declare function turnInto(editor: Editor, id: PageBlockId, pos?: number): boolean;
49
+ /**
50
+ * Whether the block at `pos` may be turned into another kind: a block of words that stands where
51
+ * any block may. A cell, a caption, or words in a table's row cannot: a heading there is not HTML.
52
+ */
53
+ export declare function turnable(doc: ProseMirrorNode, pos: number): boolean;
54
+ /**
55
+ * Takes the list item at `pos` out of its list as `replacement`: before the list when it is the
56
+ * first item, after it when the last, and between the two halves of the list otherwise. The caret
57
+ * goes into it. Returns where it starts.
58
+ */
59
+ export declare function liftOut(tr: Transaction, pos: number, replacement: ProseMirrorNode): number;
60
+ /** A copy of the block at `pos` right after it, without the ids that would repeat. */
61
+ export declare function duplicate(editor: Editor, pos: number): boolean;
62
+ /** Deletes the block at `pos`, and a box it leaves empty with it. */
63
+ export declare function remove(editor: Editor, pos: number): boolean;
64
+ /** Moves the block at `pos` past its sibling before (`-1`) or after (`1`) it. Returns where it is. */
65
+ export declare function move(editor: Editor, pos: number, by: -1 | 1): number | null;
66
+ /**
67
+ * The block the pointer is beside: the innermost block under it, or, between blocks, the nearer
68
+ * of the two; never the box around them, whose handle would be far from the pointer. In the margin
69
+ * beside a block, where its handle is, the block on that line. A table is pointed at whole.
70
+ */
71
+ export declare function blockAt(view: EditorView, x: number, y: number): {
72
+ node: ProseMirrorNode;
73
+ pos: number;
74
+ } | null;
75
+ /** What a node draws as, measured: a node drawn through its children is as big as they are. */
76
+ export declare function rectOf(dom: globalThis.Node | null | undefined): EditorRect | null;
77
+ /**
78
+ * Where the block at `dragged` would land, dropped at a point: before or after the block there,
79
+ * whichever half of it the point is in. A list item lands among list items; anything else beside
80
+ * a list, not in it. Null where it cannot land: on itself, or inside itself.
81
+ */
82
+ export declare function dropTarget(view: EditorView, dragged: number, x: number, y: number): {
83
+ at: number;
84
+ line: EditorRect;
85
+ } | null;
86
+ /**
87
+ * Moves the block at `dragged` to `at`, as a drop does. A box it was all of goes with it, as
88
+ * `remove` takes it: a list whose only item moves into another list leaves no empty list behind.
89
+ */
90
+ export declare function moveTo(editor: Editor, dragged: number, at: number): boolean;
91
+ /** The kind of block the block of words at `$pos` is, as "Turn into" names it. */
92
+ export declare function blockKind($pos: ResolvedPos): PageBlockId | null;
93
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/artifacts/frame-editor/commands.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,IAAI,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9F,OAAO,EAAiB,SAAS,EAAiB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAOzD,gGAAgG;AAChG,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAShD,CAAA;AAEF,eAAO,MAAM,SAAS,EAAE,WAAW,CAAC,MAAM,CAAiC,CAAA;AAmB3E,mEAAmE;AACnE,wBAAgB,OAAO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,GAAG,UAAU,GAAG,IAAI,CAoBjF;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,MAAM,EACf,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,IAAI,CAmBzC;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAwB3E;AAED,kFAAkF;AAClF,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,GAAG,IAAI,CAc/D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../../../src/artifacts/frame-editor/entry.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare function startFrameEditor({ port, body, }: {
2
+ readonly port: MessagePort;
3
+ readonly body: HTMLElement;
4
+ }): void;
5
+ //# sourceMappingURL=frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame.d.ts","sourceRoot":"","sources":["../../../src/artifacts/frame-editor/frame.ts"],"names":[],"mappings":"AAkFA,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,IAAI,GACL,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAC3B,GAAG,IAAI,CAiiBP"}
@@ -0,0 +1,8 @@
1
+ import { type Editor, Extension } from "@tiptap/core";
2
+ import type { PageMark } from "./protocol";
3
+ export interface PageKeysOptions {
4
+ readonly toggleMark: (editor: Editor, mark: PageMark) => void;
5
+ readonly onLink: () => void;
6
+ }
7
+ export declare const PageKeys: Extension<PageKeysOptions, any>;
8
+ //# sourceMappingURL=keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../src/artifacts/frame-editor/keys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAcrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAoB1C,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAC7D,QAAQ,CAAC,MAAM,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,eAAO,MAAM,QAAQ,iCAuDnB,CAAA"}