allyhub 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (717) hide show
  1. package/dist/commands/align.js +1 -1
  2. package/dist/commands/check.js +1 -1
  3. package/dist/commands/cloud-tools.js +5 -5
  4. package/dist/commands/cloud.js +1 -1
  5. package/dist/commands/dev.js +5 -5
  6. package/dist/commands/export.js +3 -0
  7. package/dist/commands/frames/doc.js +1 -1
  8. package/dist/commands/frames/piece.js +1 -1
  9. package/dist/commands/frames/sheet.js +1 -1
  10. package/dist/commands/frames.js +9 -9
  11. package/dist/commands/index.js +1 -1
  12. package/dist/commands/inspect/combos.js +1 -1
  13. package/dist/commands/inspect/common.js +2 -2
  14. package/dist/commands/inspect/facts.js +2 -2
  15. package/dist/commands/migrate.js +3 -0
  16. package/dist/commands/skills.js +3 -3
  17. package/dist/commands/upgrade.js +5 -0
  18. package/dist/commands.json +1 -1
  19. package/dist/help.js +3 -3
  20. package/dist/main.js +8 -7
  21. package/dist/node_modules/@allyhub/3d-extension/package.json +2 -2
  22. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  23. package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
  24. package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
  25. package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
  26. package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
  27. package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
  28. package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
  29. package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
  30. package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
  31. package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
  32. package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
  33. package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
  34. package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
  35. package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
  36. package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
  37. package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
  38. package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
  39. package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
  40. package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
  41. package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
  42. package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
  43. package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
  44. package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
  45. package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
  46. package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
  47. package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
  48. package/dist/node_modules/@allyhub/blocks/package.json +19 -0
  49. package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
  50. package/dist/node_modules/@allyhub/browser/package.json +1 -1
  51. package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
  52. package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
  53. package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
  54. package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
  55. package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
  56. package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
  57. package/dist/node_modules/@allyhub/build/package.json +5 -1
  58. package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
  59. package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
  60. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -1
  61. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
  62. package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
  63. package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
  64. package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
  65. package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
  66. package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
  67. package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
  68. package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
  69. package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
  70. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  71. package/dist/node_modules/@allyhub/check/dist/check.js +1 -1
  72. package/dist/node_modules/@allyhub/check/package.json +1 -1
  73. package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
  74. package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
  75. package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
  76. package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
  77. package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
  78. package/dist/node_modules/@allyhub/cloud/package.json +1 -1
  79. package/dist/node_modules/@allyhub/components/package.json +1 -1
  80. package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
  81. package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
  82. package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
  83. package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
  84. package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
  85. package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
  86. package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
  87. package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
  88. package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
  89. package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
  90. package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
  91. package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
  92. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
  93. package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
  94. package/dist/node_modules/@allyhub/doc/dist/block-shapes.js +2 -0
  95. package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
  96. package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
  97. package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
  98. package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
  99. package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
  100. package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
  101. package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
  102. package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
  103. package/dist/node_modules/@allyhub/doc/dist/merges.js +2 -0
  104. package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
  105. package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
  106. package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
  107. package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
  108. package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
  109. package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
  110. package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
  111. package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
  112. package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
  113. package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
  114. package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
  115. package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
  116. package/dist/node_modules/@allyhub/doc/package.json +5 -1
  117. package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
  118. package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
  119. package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
  120. package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
  121. package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
  122. package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
  123. package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
  124. package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
  125. package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
  126. package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
  127. package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
  128. package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
  129. package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
  130. package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
  131. package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
  132. package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
  133. package/dist/node_modules/@allyhub/export/package.json +1 -1
  134. package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
  135. package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
  136. package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
  137. package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
  138. package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
  139. package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
  140. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
  141. package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
  142. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
  143. package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
  144. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
  145. package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
  146. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
  147. package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
  148. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
  149. package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
  150. package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +67 -0
  151. package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
  152. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
  153. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
  154. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  155. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
  156. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  157. package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
  158. package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
  159. package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
  160. package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
  161. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  162. package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
  163. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
  164. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  165. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +12 -3
  166. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
  167. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  168. package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
  169. package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
  170. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  171. package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
  172. package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
  173. package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
  174. package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
  175. package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
  176. package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
  177. package/dist/node_modules/@allyhub/i18n/package.json +1 -1
  178. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
  179. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
  180. package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
  181. package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
  182. package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
  183. package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
  184. package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +2 -2
  185. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
  186. package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
  187. package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
  188. package/dist/node_modules/@allyhub/image-render/package.json +1 -1
  189. package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
  190. package/dist/node_modules/@allyhub/image-sdk/dist/block.js +2 -0
  191. package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
  192. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +1 -1
  193. package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
  194. package/dist/node_modules/@allyhub/jobs/package.json +1 -1
  195. package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -3
  196. package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
  197. package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
  198. package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
  199. package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -1
  200. package/dist/node_modules/@allyhub/measure/package.json +1 -1
  201. package/dist/node_modules/@allyhub/media/package.json +1 -1
  202. package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
  203. package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
  204. package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
  205. package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
  206. package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
  207. package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
  208. package/dist/node_modules/@allyhub/model/package.json +1 -1
  209. package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
  210. package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
  211. package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
  212. package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
  213. package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
  214. package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
  215. package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
  216. package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
  217. package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
  218. package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
  219. package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
  220. package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
  221. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  222. package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
  223. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
  224. package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
  225. package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
  226. package/dist/node_modules/@allyhub/piece/dist/media.d.ts +8 -2
  227. package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
  228. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +3 -0
  229. package/dist/node_modules/@allyhub/piece/package.json +1 -1
  230. package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
  231. package/dist/node_modules/@allyhub/project/package.json +1 -1
  232. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  233. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  234. package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
  235. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  236. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
  237. package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
  238. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  239. package/dist/node_modules/@allyhub/registry/package.json +1 -1
  240. package/dist/node_modules/@allyhub/render/package.json +1 -1
  241. package/dist/node_modules/@allyhub/report-extension/LICENSE +241 -0
  242. package/dist/node_modules/@allyhub/report-extension/dist/build.js +3 -0
  243. package/dist/node_modules/@allyhub/report-extension/dist/check.js +37 -0
  244. package/dist/node_modules/@allyhub/report-extension/dist/cli/index.js +4 -0
  245. package/dist/node_modules/@allyhub/report-extension/dist/export.js +2 -0
  246. package/dist/node_modules/@allyhub/report-extension/dist/inline.js +58 -0
  247. package/dist/node_modules/@allyhub/report-extension/dist/page.js +23 -0
  248. package/dist/node_modules/@allyhub/report-extension/dist/project-tools.js +33 -0
  249. package/dist/node_modules/@allyhub/report-extension/dist/styles.js +2 -0
  250. package/dist/node_modules/@allyhub/report-extension/dist/theme.js +2 -0
  251. package/dist/node_modules/@allyhub/report-extension/dist/tools.js +2 -0
  252. package/dist/node_modules/@allyhub/report-extension/dist/workspace.js +2 -0
  253. package/dist/node_modules/@allyhub/report-extension/package.json +185 -0
  254. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/STYLE.md +180 -0
  255. package/dist/node_modules/@allyhub/report-extension/styles/allyhub/style.json +15 -0
  256. package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
  257. package/dist/node_modules/@allyhub/runtime/package.json +1 -1
  258. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
  259. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
  260. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  261. package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
  262. package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
  263. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  264. package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
  265. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
  267. package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
  269. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  270. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  271. package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
  272. package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
  273. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  274. package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
  275. package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
  276. package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
  277. package/dist/node_modules/@allyhub/sheet/dist/html.js +8 -8
  278. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  279. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  280. package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
  281. package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
  282. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
  283. package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
  284. package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
  285. package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
  286. package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
  287. package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
  288. package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
  289. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  290. package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
  291. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  292. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  293. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  294. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  295. package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
  296. package/dist/node_modules/@allyhub/sheet/dist/xlsx/tile-shapes.js +2 -0
  297. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  298. package/dist/node_modules/@allyhub/sheet/package.json +1 -1
  299. package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
  300. package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
  301. package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
  302. package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
  303. package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
  304. package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
  305. package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
  306. package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
  307. package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
  308. package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
  309. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  310. package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
  311. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  312. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  313. package/dist/node_modules/@allyhub/slides-core/dist/code.js +1 -1
  314. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  315. package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
  316. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  317. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  318. package/dist/node_modules/@allyhub/slides-core/dist/model.js +1 -1
  319. package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
  320. package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
  321. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  322. package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
  323. package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
  324. package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
  325. package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
  326. package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
  327. package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
  328. package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
  329. package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
  330. package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
  331. package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
  332. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  333. package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
  334. package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
  335. package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
  336. package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
  337. package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
  338. package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
  339. package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
  340. package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
  341. package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
  342. package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
  343. package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
  344. package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
  345. package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
  346. package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
  347. package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
  348. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
  349. package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
  350. package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
  351. package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
  352. package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
  353. package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
  354. package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
  355. package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
  356. package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
  357. package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
  358. package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
  359. package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
  360. package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
  361. package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
  362. package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +1 -1
  363. package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
  364. package/dist/node_modules/@allyhub/stage/package.json +1 -1
  365. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/LICENSE +93 -0
  366. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
  367. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
  368. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
  369. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
  370. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
  371. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
  372. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
  373. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
  374. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
  375. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
  376. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
  377. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
  378. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
  379. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
  380. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
  381. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
  382. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
  383. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
  384. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
  385. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
  386. package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
  387. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
  388. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
  389. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  390. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
  391. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
  392. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
  393. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
  394. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
  395. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
  396. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
  397. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
  398. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
  399. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
  400. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
  401. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
  402. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
  403. package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
  404. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
  405. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
  406. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
  407. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
  408. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
  409. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
  410. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
  411. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
  412. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
  413. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
  414. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
  415. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
  416. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
  417. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
  418. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
  419. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
  420. package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
  421. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
  422. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
  423. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
  424. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
  425. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
  426. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
  427. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
  428. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
  429. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
  430. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
  431. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
  432. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
  433. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
  434. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
  435. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
  436. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
  437. package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
  438. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
  439. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
  440. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
  441. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
  442. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
  443. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
  444. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
  445. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
  446. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
  447. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
  448. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
  449. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
  450. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
  451. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
  452. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
  453. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
  454. package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
  455. package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
  456. package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
  457. package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
  458. package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
  459. package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
  460. package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
  461. package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
  462. package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
  463. package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
  464. package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
  465. package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
  466. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  467. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
  468. package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
  469. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  470. package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
  471. package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
  472. package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
  473. package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
  474. package/dist/node_modules/@allyhub/video-extension/package.json +2 -25
  475. package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
  476. package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
  477. package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
  478. package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
  479. package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
  480. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
  481. package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
  482. package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
  483. package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
  484. package/dist/node_modules/@allyhub/website/package.json +1 -1
  485. package/dist/node_modules/@allyhub/website-extension/package.json +3 -3
  486. package/dist/node_modules/@allyhub/x-extension/package.json +1 -3
  487. package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
  488. package/dist/node_modules/@allyhub/x-model/package.json +1 -1
  489. package/dist/node_modules/@allyhub/x-view/package.json +1 -1
  490. package/dist/package.json +15 -14
  491. package/dist/self-upgrade.js +2 -0
  492. package/dist/text/batch-text.js +1 -1
  493. package/dist/text/facts-text.js +5 -5
  494. package/dist/text/format.js +2 -2
  495. package/dist/update-notice.js +3 -0
  496. package/dist/version.js +1 -1
  497. package/dist/works.js +1 -1
  498. package/editor-web/assets/{abnfDiagram-WEYOIA3C-DYaMS_BB.js → abnfDiagram-WEYOIA3C-B4tvwU6C.js} +1 -1
  499. package/editor-web/assets/{architecture-WOLXFQ4H-g_Tjfl_y.js → architecture-WOLXFQ4H-V2fA0vY2.js} +1 -1
  500. package/editor-web/assets/{architectureDiagram-ZHVYKT53-CqdhofOL.js → architectureDiagram-ZHVYKT53-B6B7XN0M.js} +1 -1
  501. package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
  502. package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
  503. package/editor-web/assets/article-DW4eD_8K.js +3 -0
  504. package/editor-web/assets/article-Dm2dIEwc.js +7 -0
  505. package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
  506. package/editor-web/assets/{bar-button-J9vbfzTx.js → bar-button-CJmpgNg4.js} +1 -1
  507. package/editor-web/assets/{blockDiagram-RJAE7QA3-Bc-28Bci.js → blockDiagram-RJAE7QA3-BizcUGOM.js} +1 -1
  508. package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
  509. package/editor-web/assets/{c4Diagram-XDPPPE54-CTGJb8FB.js → c4Diagram-XDPPPE54-CBHS0dQ0.js} +1 -1
  510. package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
  511. package/editor-web/assets/channel-dyUtlVPg.js +1 -0
  512. package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
  513. package/editor-web/assets/chip-BdQRH3FL.js +1 -0
  514. package/editor-web/assets/{chunk-2E7WHVMD-B2MPOVTU.js → chunk-2E7WHVMD-CMPBck_Q.js} +1 -1
  515. package/editor-web/assets/{chunk-4EMNKR2T-BUV1ZHP0.js → chunk-4EMNKR2T-Df22Adpt.js} +1 -1
  516. package/editor-web/assets/{chunk-55XCU76K-BZlpspL5.js → chunk-55XCU76K-CYrZ6_Q7.js} +1 -1
  517. package/editor-web/assets/{chunk-7S6XSTFO-CpKeisWE.js → chunk-7S6XSTFO-BfdG9NNW.js} +1 -1
  518. package/editor-web/assets/{chunk-AQDTSKZB-BJqwAPyo.js → chunk-AQDTSKZB-BCzZMoTJ.js} +1 -1
  519. package/editor-web/assets/{chunk-DSNLSHJZ-D6oPWl_W.js → chunk-DSNLSHJZ-DT0xT8Wf.js} +1 -1
  520. package/editor-web/assets/{chunk-HAGFOTED-B5pk4MZF.js → chunk-HAGFOTED-Bg3-EotU.js} +1 -1
  521. package/editor-web/assets/{chunk-HNE4Q36P-DHbSPvxQ.js → chunk-HNE4Q36P-BrSym24V.js} +1 -1
  522. package/editor-web/assets/{chunk-NQOKRVIF-CcL_GcRA.js → chunk-NQOKRVIF-CMxgkJWF.js} +1 -1
  523. package/editor-web/assets/{chunk-UHW7PFBP-YgiOL6XE.js → chunk-UHW7PFBP-DWEwoyPy.js} +1 -1
  524. package/editor-web/assets/{chunk-VQ5W62QI-p14b4UYc.js → chunk-VQ5W62QI-eTFh5_T9.js} +1 -1
  525. package/editor-web/assets/{chunk-WQQL4CDK-BWW0x-XH.js → chunk-WQQL4CDK-4PTupr9T.js} +1 -1
  526. package/editor-web/assets/{chunk-YZO67HFG-oG3qd68C.js → chunk-YZO67HFG-D5XAAFWm.js} +1 -1
  527. package/editor-web/assets/{chunk-ZAUX2LTX-CpcheH0u.js → chunk-ZAUX2LTX-CPsdaisO.js} +1 -1
  528. package/editor-web/assets/{chunk-ZCHMQSOR-cWQvLl1w.js → chunk-ZCHMQSOR-ClnuUyfy.js} +1 -1
  529. package/editor-web/assets/{classDiagram-v2-4MYWR3UA-7PG7YcdU.js → classDiagram-v2-4MYWR3UA-CM21waNF.js} +1 -1
  530. package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
  531. package/editor-web/assets/{collaborator-BU4qU7O3.js → collaborator-CbTacvkB.js} +1 -1
  532. package/editor-web/assets/color-picker-BmKFn2ww.js +1 -0
  533. package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
  534. package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
  535. package/editor-web/assets/{cynefin-EF2NZ3EQ-CtcknEQ_.js → cynefin-EF2NZ3EQ-CJUHTgee.js} +1 -1
  536. package/editor-web/assets/{cynefinDiagram-WF24UDRP-Ca7VIsjN.js → cynefinDiagram-WF24UDRP-C9RIfuIV.js} +1 -1
  537. package/editor-web/assets/{dagre-NK4GIZVX-BzcSLtsr.js → dagre-NK4GIZVX-g-01KdpO.js} +1 -1
  538. package/editor-web/assets/deck-C0VxrlzX.js +1 -0
  539. package/editor-web/assets/{diagram-CBK3MWTC-DpRmTGlG.js → diagram-CBK3MWTC-CbOjWUu-.js} +1 -1
  540. package/editor-web/assets/{diagram-I5XIIV2D-BTrs_AX8.js → diagram-I5XIIV2D-C6psNS8J.js} +1 -1
  541. package/editor-web/assets/{diagram-ODIL2UCW-CkIVjPqH.js → diagram-ODIL2UCW-C9PUE46P.js} +1 -1
  542. package/editor-web/assets/{diagram-PFBEJUXE-BlFMbAG1.js → diagram-PFBEJUXE-vJ_pnB33.js} +1 -1
  543. package/editor-web/assets/{diagram-RJA3I4VV-D3f8VJ-D.js → diagram-RJA3I4VV-FwYlEfJ-.js} +1 -1
  544. package/editor-web/assets/{diagram-TYUNFSNR-Bbpngj6F.js → diagram-TYUNFSNR-FKpIxeUc.js} +1 -1
  545. package/editor-web/assets/{dist-DruvDNQe.js → dist-B8_6sJ_V.js} +5 -5
  546. package/editor-web/assets/dist-BI_BaYhO.js +19 -0
  547. package/editor-web/assets/dist-BaWFMuvr.js +1 -0
  548. package/editor-web/assets/dist-BdmMT8fP.js +5 -0
  549. package/editor-web/assets/dist-BgKyM9U6.js +3 -0
  550. package/editor-web/assets/dist-BqijryYd.js +1 -0
  551. package/editor-web/assets/dist-ByguWp3a.js +16 -0
  552. package/editor-web/assets/dist-CB-_0-X4.js +41 -0
  553. package/editor-web/assets/dist-CCP24Lel.js +19 -0
  554. package/editor-web/assets/dist-Cg0Z26Kv.js +6 -0
  555. package/editor-web/assets/dist-CtYjYJdv.js +1 -0
  556. package/editor-web/assets/dist-D07Kj8GR.js +1 -0
  557. package/editor-web/assets/dist-D2rGVz9C.js +1 -0
  558. package/editor-web/assets/dist-D3DwRF1k.js +547 -0
  559. package/editor-web/assets/dist-DCI21ljp.js +6 -0
  560. package/editor-web/assets/dist-DH8oJJw9.js +35 -0
  561. package/editor-web/assets/dist-DIJnhQFK.js +9 -0
  562. package/editor-web/assets/dist-DJvfQvM7.js +24 -0
  563. package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
  564. package/editor-web/assets/dist-DmCDcb2_.js +4 -0
  565. package/editor-web/assets/dist-H0z_DXDz.js +19 -0
  566. package/editor-web/assets/dist-QLXI7XGS.js +82 -0
  567. package/editor-web/assets/{docx-draw-CoK1oqQD.js → docx-draw-Dxb67W2d.js} +1 -1
  568. package/editor-web/assets/{ebnfDiagram-V4P3TTPT-BaKj-yL6.js → ebnfDiagram-V4P3TTPT-DBymUM-F.js} +1 -1
  569. package/editor-web/assets/{elk-QONTBCTQ-Cn2qv1_U.js → elk-QONTBCTQ-BNYR3OlS.js} +1 -1
  570. package/editor-web/assets/{erDiagram-KYQIGQAA-Bd7AEIDo.js → erDiagram-KYQIGQAA-cTNyOqW6.js} +1 -1
  571. package/editor-web/assets/esm-Cl3GKSDd.js +21 -0
  572. package/editor-web/assets/{eventmodeling-K75KTNOO-Sfp7_461.js → eventmodeling-K75KTNOO-C6FUZeXP.js} +1 -1
  573. package/editor-web/assets/eye-DwfE1USj.js +1 -0
  574. package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
  575. package/editor-web/assets/flowDiagram-IUGLLWBU-ukTovy07.js +1 -0
  576. package/editor-web/assets/{ganttDiagram-R7GPNTJY-CBqcGdHI.js → ganttDiagram-R7GPNTJY-LD9mqQ1x.js} +1 -1
  577. package/editor-web/assets/{gitGraph-VSP46ZUC-WTokXKTW.js → gitGraph-VSP46ZUC-CtCBcQFl.js} +1 -1
  578. package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BIWZHD9q.js → gitGraphDiagram-PDYL7XHY-DYQpOozz.js} +1 -1
  579. package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
  580. package/editor-web/assets/{hint-rlht0uxG.js → hint-F4fIBnVU.js} +1 -1
  581. package/editor-web/assets/index-Cah2zchD.css +2 -0
  582. package/editor-web/assets/index-omhSywJb.js +28 -0
  583. package/editor-web/assets/{info-OHQRW6UA-COC6G-_J.js → info-OHQRW6UA-IXInKPRO.js} +1 -1
  584. package/editor-web/assets/{infoDiagram-MVDRKAX5-DpaqdKBD.js → infoDiagram-MVDRKAX5-Ds7Cei7T.js} +1 -1
  585. package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-Dyn2MAy1.js → ishikawaDiagram-HPEHV2GE-DWs3qtAX.js} +1 -1
  586. package/editor-web/assets/iso-UwGLGD3F.js +1 -0
  587. package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
  588. package/editor-web/assets/{journeyDiagram-BOSHW7O7-DeSVfmm7.js → journeyDiagram-BOSHW7O7-BkNKVYBA.js} +1 -1
  589. package/editor-web/assets/{kanban-definition-FNSA4HC5-Bfg0lj7B.js → kanban-definition-FNSA4HC5-D3dMswnI.js} +1 -1
  590. package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
  591. package/editor-web/assets/{mermaid-parser.core-CyhovuYE.js → mermaid-parser.core-D_W_0X0N.js} +3 -3
  592. package/editor-web/assets/{mermaid.core-Dx1fBVUG.js → mermaid.core-Bkirj-s5.js} +4 -4
  593. package/editor-web/assets/{mindmap-definition-6OY57UG3-QEU2HF_m.js → mindmap-definition-6OY57UG3-CMKkAAvI.js} +1 -1
  594. package/editor-web/assets/minus-ngE8owxs.js +1 -0
  595. package/editor-web/assets/{packet-JDAUHWVQ-ReJTa_hw.js → packet-JDAUHWVQ-CzCkgCfg.js} +1 -1
  596. package/editor-web/assets/palette-DchDLJj6.js +1 -0
  597. package/editor-web/assets/panes-BexRuZd2.js +3 -0
  598. package/editor-web/assets/{pegDiagram-ECIUJNBX-Bo1jFrvb.js → pegDiagram-ECIUJNBX-C8qHkx7M.js} +1 -1
  599. package/editor-web/assets/{pie-XZMESJXO-BrtYafNA.js → pie-XZMESJXO-BJqgxMrD.js} +1 -1
  600. package/editor-web/assets/{pieDiagram-GNMPY74T-Cj0zQqs_.js → pieDiagram-GNMPY74T-DyNntV5y.js} +1 -1
  601. package/editor-web/assets/{progress-CwKcXARv.js → progress-D1Uv3d1b.js} +1 -1
  602. package/editor-web/assets/{quadrantDiagram-D57K4MC3-D5npDAVn.js → quadrantDiagram-D57K4MC3-BHa-69ir.js} +1 -1
  603. package/editor-web/assets/{radar-ABXABTNO-C8RDrRqi.js → radar-ABXABTNO-BeRPjBBR.js} +1 -1
  604. package/editor-web/assets/{railroad-I3PHUGI6-ebDrmYTK.js → railroad-I3PHUGI6-BaRQqRsK.js} +1 -1
  605. package/editor-web/assets/{railroad-abnf-LNEFI6M7-BxKuqg6V.js → railroad-abnf-LNEFI6M7-BZfwomxZ.js} +1 -1
  606. package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DOclnfpr.js → railroad-ebnf-DWYD2UWJ-DbgqpEF5.js} +1 -1
  607. package/editor-web/assets/{railroad-peg-JR7BVNR7-DN0A1fpq.js → railroad-peg-JR7BVNR7-BYOf3PsQ.js} +1 -1
  608. package/editor-web/assets/{railroadDiagram-Y72NRBL7-B3PjoVWw.js → railroadDiagram-Y72NRBL7-B5OAzOsD.js} +1 -1
  609. package/editor-web/assets/react-Byupo4pA.js +1 -0
  610. package/editor-web/assets/replace-CLLMtF4e.js +1 -0
  611. package/editor-web/assets/{requirementDiagram-EQYSW5RA-DLdzkQk5.js → requirementDiagram-EQYSW5RA-wqYNoqO0.js} +1 -1
  612. package/editor-web/assets/ribbon-tabs-B3IC9WOt.js +1 -0
  613. package/editor-web/assets/row-DqS4-5b1.js +1 -0
  614. package/editor-web/assets/{sankeyDiagram-SY24JHO5-Dip4Piv_.js → sankeyDiagram-SY24JHO5-Crf6GRsa.js} +1 -1
  615. package/editor-web/assets/schemas-C21MyseF.js +1 -0
  616. package/editor-web/assets/{iso-DoC-ZoBr.js → schemas-DlRAoVtq.js} +1 -1
  617. package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
  618. package/editor-web/assets/search-D75Bi2GU.js +1 -0
  619. package/editor-web/assets/{sequenceDiagram-BLEHNHQU-QnPcoybL.js → sequenceDiagram-BLEHNHQU-DUcHz4_d.js} +1 -1
  620. package/editor-web/assets/{session-DMlLCFWg.js → session--OJYv_B7.js} +1 -1
  621. package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
  622. package/editor-web/assets/snapshots-DYooVfOx.js +1 -0
  623. package/editor-web/assets/sound-DkR3qxSt.js +1 -0
  624. package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
  625. package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-D103CiMX.js → stateDiagram-v2-A6IESKWZ-DbeLdnpS.js} +1 -1
  626. package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
  627. package/editor-web/assets/{surface-DtCjIlrq.js → surface-BUoi7cmR.js} +1 -1
  628. package/editor-web/assets/swatch-DCmD1gZl.js +1 -0
  629. package/editor-web/assets/{swimlanes-B3ENRKFQ-y4gCqEoa.js → swimlanes-B3ENRKFQ-BDi6AeJI.js} +1 -1
  630. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-2wwOmxbv.js +8 -0
  631. package/editor-web/assets/{switch-8MU4Nfxe.js → switch-b6GCy_ix.js} +1 -1
  632. package/editor-web/assets/syntax-Bqyhj0dw.js +1 -0
  633. package/editor-web/assets/table-BW43XXVd.js +1 -0
  634. package/editor-web/assets/tablet-C6oePHEW.js +1 -0
  635. package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
  636. package/editor-web/assets/{textarea-D7TnPwv1.js → textarea-Bu6uPEqT.js} +1 -1
  637. package/editor-web/assets/{timeline-definition-JXYKGLGB-BMp76v4V.js → timeline-definition-JXYKGLGB-B0awa2hh.js} +1 -1
  638. package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
  639. package/editor-web/assets/trash-2-SFReAxVM.js +1 -0
  640. package/editor-web/assets/{treeView-D4JQ5SDB-Q_GYyk0b.js → treeView-D4JQ5SDB-C91G0IGm.js} +1 -1
  641. package/editor-web/assets/{treemap-SAJKECNS-B5lRWdQB.js → treemap-SAJKECNS-CiOWiwl2.js} +1 -1
  642. package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
  643. package/editor-web/assets/updating-D0GEtwnJ.js +1 -0
  644. package/editor-web/assets/{usecaseDiagram-WPOLBNNX--QRllA-U.js → usecaseDiagram-WPOLBNNX-DMYM1MRe.js} +1 -1
  645. package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CzkATPA3.js → vennDiagram-Q3Y3IDCW-DQIJ5vvN.js} +1 -1
  646. package/editor-web/assets/video-mMOFXHYK.js +1 -0
  647. package/editor-web/assets/{wardley-7MLQ67FV-BXzwcdJa.js → wardley-7MLQ67FV-C3H9HG8r.js} +1 -1
  648. package/editor-web/assets/{wardleyDiagram-IVAIDKWA-BQvC8Agx.js → wardleyDiagram-IVAIDKWA-DgsjqY1Y.js} +1 -1
  649. package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
  650. package/editor-web/assets/{words-CaUHhQHf.js → words-B2jQwWpp.js} +3 -3
  651. package/editor-web/assets/words-DgMuEmDO.js +3 -0
  652. package/editor-web/assets/workbook-NtMEyLgf.js +41 -0
  653. package/editor-web/assets/{x-DlhyIKuu.js → x-BAJilkKD.js} +1 -1
  654. package/editor-web/assets/{xychartDiagram-4URNHDU4-aY-lsD5o.js → xychartDiagram-4URNHDU4-DzsGI527.js} +1 -1
  655. package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
  656. package/editor-web/index.html +9 -9
  657. package/package.json +6 -3
  658. package/CHANGELOG.md +0 -251
  659. package/dist/commands/render.js +0 -3
  660. package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
  661. package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
  662. package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
  663. package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
  664. package/editor-web/assets/article-8evPh712.js +0 -3
  665. package/editor-web/assets/article-BhRtWYMd.js +0 -7
  666. package/editor-web/assets/calc-worker-oEIqrrTM.js +0 -45
  667. package/editor-web/assets/channel-wIj_OqDm.js +0 -1
  668. package/editor-web/assets/chart-amT4lgX3.js +0 -2
  669. package/editor-web/assets/chart-file-dGiRgFcH.js +0 -1
  670. package/editor-web/assets/code-CD-CbJG9.js +0 -1
  671. package/editor-web/assets/deck-C7fN0Qtn.js +0 -1
  672. package/editor-web/assets/dist-3iovns9K.js +0 -16
  673. package/editor-web/assets/dist-BkHnbOEj.js +0 -4
  674. package/editor-web/assets/dist-BvOrNcK-.js +0 -19
  675. package/editor-web/assets/dist-CEIszq39.js +0 -1
  676. package/editor-web/assets/dist-CU5RbLNH.js +0 -1
  677. package/editor-web/assets/dist-CWZj8IAm.js +0 -1
  678. package/editor-web/assets/dist-C_Mtrnif.js +0 -17
  679. package/editor-web/assets/dist-CdqpwdCV.js +0 -24
  680. package/editor-web/assets/dist-CjT76RAw.js +0 -43
  681. package/editor-web/assets/dist-CpzEn9T8.js +0 -6
  682. package/editor-web/assets/dist-CrFYWl5-.js +0 -3
  683. package/editor-web/assets/dist-D3C6FyrO.js +0 -82
  684. package/editor-web/assets/dist-D4eBFGVL.js +0 -1
  685. package/editor-web/assets/dist-DTcjb3cP.js +0 -18
  686. package/editor-web/assets/dist-D_WSM29I.js +0 -17
  687. package/editor-web/assets/dist-Dp_9ISjP.js +0 -531
  688. package/editor-web/assets/dist-J-tPYKGS.js +0 -5
  689. package/editor-web/assets/dist-YW8hS4IM.js +0 -9
  690. package/editor-web/assets/esm-Cjv8ogpP.js +0 -21
  691. package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
  692. package/editor-web/assets/flowDiagram-IUGLLWBU-BlVUglzw.js +0 -1
  693. package/editor-web/assets/index-BQWZnyAQ.js +0 -28
  694. package/editor-web/assets/index-Dvh1t1om.css +0 -2
  695. package/editor-web/assets/layout-SWqqA0yV.js +0 -1
  696. package/editor-web/assets/minus-CbPnUIOy.js +0 -1
  697. package/editor-web/assets/props-form-BpSXbrSF.js +0 -1
  698. package/editor-web/assets/react-Edyoga_4.js +0 -1
  699. package/editor-web/assets/row-C_svyL8o.js +0 -1
  700. package/editor-web/assets/schemas-CQ_UU8-Z.js +0 -1
  701. package/editor-web/assets/search-Ba2BbT6T.js +0 -1
  702. package/editor-web/assets/slides-7xWhREpt.js +0 -1
  703. package/editor-web/assets/snapshots-BLX4NTQC.js +0 -1
  704. package/editor-web/assets/sound-bTlco_K3.js +0 -1
  705. package/editor-web/assets/split-tFGKk-x8.js +0 -3
  706. package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
  707. package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
  708. package/editor-web/assets/swatch-DhztHwPU.js +0 -1
  709. package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DKzB_wSf.js +0 -8
  710. package/editor-web/assets/syntax-CU_WPKxt.js +0 -1
  711. package/editor-web/assets/table-DRbddzx0.js +0 -1
  712. package/editor-web/assets/tabs-CuEawka3.js +0 -1
  713. package/editor-web/assets/tag-CIfWT8B_.js +0 -1
  714. package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
  715. package/editor-web/assets/video-D0uTbHWx.js +0 -1
  716. package/editor-web/assets/words-XlXG79Ur.js +0 -3
  717. package/editor-web/assets/workbook-CiCXkjmN.js +0 -45
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-euu7Wcd9.js";var t=e(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-euu7Wcd9.js";var t=e(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]);export{t};
@@ -0,0 +1,3 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{a as t,b as n,c as r,f as i,m as a,s as o}from"./react-Byupo4pA.js";import{Et as s,ht as c,kt as l,n as u,t as d}from"./x-BAJilkKD.js";import{t as f}from"./session--OJYv_B7.js";import{t as p}from"./jsx-runtime-DePvh3-m.js";import{A as m,C as h,f as g,m as _,u as v}from"./bar-button-CJmpgNg4.js";import{C as y,E as ee,S as b,b as x,i as te}from"./dist-DCI21ljp.js";import{n as ne,t as S}from"./italic-BV7iHxoP.js";import{t as C}from"./code-Ch6AB5bZ.js";import{c as re,d as w,i as ie,l as ae,n as oe,o as se,r as ce,s as le,t as ue,u as T}from"./panes-BexRuZd2.js";import{t as E}from"./link-CFOv3nz-.js";import{D,O}from"./dist-DQ6RpEJD.js";import{t as de}from"./minus-ngE8owxs.js";import{O as k,T as A,n as j,nt as M,o as N,s as fe,t as pe,ut as P}from"./dist-QLXI7XGS.js";import{n as F,t as I}from"./undo-2-DCbMWoug.js";import{t as me}from"./sigma-B4AWtnVA.js";import{n as he,t as L}from"./table-BW43XXVd.js";import{a as R,g as ge}from"./index-omhSywJb.js";import{n as _e,t as ve}from"./updating-D0GEtwnJ.js";import{t as ye}from"./collaborator-CbTacvkB.js";import{t as be}from"./row-DqS4-5b1.js";import{c as xe,n as Se,s as Ce,t as we}from"./dist-DIJnhQFK.js";import{i as Te,n as Ee,r as De,t as Oe}from"./dist-B8_6sJ_V.js";import{S as ke,_ as Ae,a as je,c as Me,g as z,h as Ne,i as Pe,m as Fe,o as Ie,r as Le,s as Re,t as B,u as V,v as ze,x as Be}from"./words-B2jQwWpp.js";var H=e(n(),1),U=p(),Ve=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function He(e,t){if(e.title!==t.title||!Ve(e.cover,t.cover))return{head:!0};for(let n=0;n<t.blocks.length;n++)if(!Ve(e.blocks[n],t.blocks[n]))return{block:n};if(e.blocks.length>t.blocks.length&&t.blocks.length>0)return{block:t.blocks.length-1}}function Ue(e,t){let n=z(e),r=e=>e.from<=t.to&&t.from<=e.to;if(n.head&&r(n.head))return{head:!0};let i=n.lines.findIndex(r);return i<0?void 0:{block:i}}function We(e,t){if(e.from!==void 0&&e.path===t.path)return Ue(t.text,{from:e.from,to:e.to??e.from})}var W=new xe(`xArticleAgent`),Ge=A.create({name:`xArticleAgent`,addProseMirrorPlugins(){return[new Ce({key:W,state:{init:()=>null,apply:(e,t)=>{let n=e.getMeta(W);return n===void 0?t:n}},props:{decorations(e){let t=W.getState(e);if(!t)return null;let n;return e.doc.forEach((e,r,i)=>{i===t.block&&(n=we.node(r,r+e.nodeSize,{class:`ak-x-agent`,"data-agent":t.label,"data-testid":`x-agent-block`}))}),n?Se.create(e.doc,[n]):null}}})]}});function Ke(e,t){e.isDestroyed||e.view.dispatch(e.state.tr.setMeta(W,t))}var G={image:`xImage`,post:`xPost`,link:`xLink`,latex:`xLatex`,markdown:`xMarkdown`};function qe(e){let t=[];return e.bold===!0&&t.push({type:`bold`}),e.italic===!0&&t.push({type:`italic`}),e.strike===!0&&t.push({type:`strike`}),e.link!==void 0&&t.push({type:`link`,attrs:{href:e.link}}),{type:`text`,text:e.text,...t.length>0?{marks:t}:{}}}var K=e=>({type:`paragraph`,...e.length>0?{content:e.filter(e=>e.text!==``).map(qe)}:{}});function q(e){let t=e.map(e=>{switch(e.type){case`paragraph`:return K(e.runs);case`h1`:case`h2`:return{type:`heading`,attrs:{level:e.type===`h1`?1:2},...e.runs.length>0?{content:e.runs.map(qe)}:{}};case`quote`:return{type:`blockquote`,content:[K(e.runs)]};case`ul`:case`ol`:return{type:e.type===`ul`?`bulletList`:`orderedList`,content:e.items.map(e=>({type:`listItem`,content:[K(e)]}))};case`image`:return{type:G.image,attrs:{file:e.file,alt:e.alt??``,caption:e.caption??``}};case`post`:return{type:G.post,attrs:{url:e.url,id:e.id}};case`link`:return{type:G.link,attrs:{url:e.url}};case`divider`:return{type:`horizontalRule`};case`latex`:return{type:G.latex,attrs:{tex:e.tex}};case`markdown`:return{type:G.markdown,attrs:{markdown:e.markdown}}}});return{type:`doc`,content:t.length>0?t:[{type:`paragraph`}]}}function Je(e){let t=e.marks??[],n=e=>t.some(t=>t.type===e),r=t.find(e=>e.type===`link`)?.attrs?.href;return{text:e.text??``,...n(`bold`)?{bold:!0}:{},...n(`italic`)?{italic:!0}:{},...n(`strike`)?{strike:!0}:{},...r===void 0?{}:{link:r}}}var J=e=>(e?.content??[]).map(e=>e.type===`hardBreak`?{text:` `}:Je(e)),Y=(e,t)=>{let n=e.attrs?.[t];return typeof n==`string`?n:``};function X(e){let t=[];for(let n of e.content??[])switch(n.type){case`paragraph`:t.push({type:`paragraph`,runs:J(n)});break;case`heading`:{let e=Number(n.attrs?.level??1);t.push({type:e<=1?`h1`:`h2`,runs:J(n)});break}case`blockquote`:for(let e of n.content??[])t.push({type:`quote`,runs:J(e)});break;case`bulletList`:case`orderedList`:t.push({type:n.type===`bulletList`?`ul`:`ol`,items:(n.content??[]).map(e=>(e.content??[]).flatMap(e=>J(e)))});break;case`horizontalRule`:t.push({type:`divider`});break;case G.image:{let e=Y(n,`alt`),r=Y(n,`caption`);t.push({type:`image`,file:Y(n,`file`),...e===``?{}:{alt:e},...r===``?{}:{caption:r}});break}case G.post:t.push({type:`post`,url:Y(n,`url`),id:Y(n,`id`)});break;case G.link:t.push({type:`link`,url:Y(n,`url`)});break;case G.latex:t.push({type:`latex`,tex:Y(n,`tex`)});break;case G.markdown:t.push({type:`markdown`,markdown:Y(n,`markdown`)})}let n=t[0];return t.length===1&&n?.type===`paragraph`&&n.runs.every(e=>e.text===``)?[]:t}var Ye=new xe(`x-found`);function Xe(e){let t=[];return e.descendants((e,n)=>{if(!e.isTextblock)return!0;let r=e.textContent;for(let e of Be(r))t.push(we.inline(n+1+e.start,n+1+e.end,{class:`ak-x-link`}));return!1}),Se.create(e,t)}var Ze=A.create({name:`xFound`,addProseMirrorPlugins(){return[new Ce({key:Ye,state:{init:(e,t)=>Xe(t.doc),apply:(e,t)=>e.docChanged?Xe(e.doc):t},props:{decorations:e=>Ye.getState(e)}})]}}),Qe=(0,H.createContext)(()=>void 0),Z=e=>typeof e==`string`?e:``;function $e({node:e,updateAttributes:t}){let n=B(),r=(0,H.useContext)(Qe),i=Z(e.attrs.file),a=r(i),o=ze(i.split(`#`)[0]?.split(`.`).pop()??``);return(0,U.jsxs)(j,{as:`figure`,"data-x":`image`,className:`relative`,children:[(0,U.jsxs)(`div`,{className:`ak-x-a-picture`,children:[a===void 0?(0,U.jsx)(`div`,{className:`ak-x-made`,children:i}):o===`video`?(0,U.jsx)(re,{src:a,file:i,controls:!0,muted:!0,playsInline:!0,className:`w-full`}):(0,U.jsx)(`img`,{src:a,alt:Z(e.attrs.alt)}),(0,U.jsxs)(`div`,{className:`ak-x-labels`,contentEditable:!1,children:[o===`gif`?(0,U.jsx)(`span`,{className:`ak-x-label`,children:n.gif}):null,(0,U.jsx)(T,{most:ke.alt,alt:Z(e.attrs.alt),onAlt:e=>{t({alt:e})},trigger:(0,U.jsx)(u,{variant:`secondary`,size:`xs`,className:`bg-media/75 text-on-media font-bold`,"aria-label":n.altText,children:n.alt})})]})]}),(0,U.jsx)(`input`,{className:`mt-2 w-full bg-transparent text-left text-[13px] leading-4 text-[var(--ak-x-caption)] outline-none`,value:Z(e.attrs.caption),placeholder:n.caption,"aria-label":n.caption,dir:`auto`,onChange:e=>{t({caption:e.target.value})}})]})}function et({node:e}){return(0,U.jsx)(j,{"data-x":`link`,children:(0,U.jsx)(Re,{url:Z(e.attrs.url)})})}function tt({node:e}){return(0,U.jsx)(j,{className:`ak-x-a-post`,"data-x":`post`,children:Ne(Z(e.attrs.url))})}function nt(e){return function({node:t,updateAttributes:n,selected:r}){let i=B(),a=e===`tex`?i.article.equation:i.article.code,o=Z(t.attrs[e]);return!r&&o.trim()!==``?(0,U.jsx)(j,{"data-x":e,children:e===`tex`?(0,U.jsx)(Ie,{tex:o}):(0,U.jsx)(Me,{markdown:o})}):(0,U.jsx)(j,{as:`pre`,"data-latex":e===`tex`?``:void 0,children:(0,U.jsx)(`textarea`,{className:`block w-full resize-none bg-transparent font-[inherit] outline-none [field-sizing:content]`,value:o,"aria-label":a,placeholder:a,spellCheck:!1,onChange:t=>{n({[e]:t.target.value})}})})}}function Q(e,t,n){return k.create({name:e,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return Object.fromEntries(t.map(e=>[e,{default:``}]))},parseHTML(){return[{tag:`div[data-node="${e}"]`}]},renderHTML({HTMLAttributes:t}){return[`div`,M(t,{"data-node":e})]},addNodeView(){return N(n)}})}var rt=[Q(G.image,[`file`,`alt`,`caption`],$e),Q(G.post,[`url`,`id`],tt),Q(G.link,[`url`],et),Q(G.latex,[`tex`],nt(`tex`)),Q(G.markdown,[`markdown`],nt(`markdown`))],it=/^https?:\/\/(?:www\.)?(?:x|twitter)\.com\/[A-Za-z0-9_]+\/status\/([0-9]{1,19})/u,at=3e4;function ot(e){return z(e).issues.some(e=>e.rule===`article-markup`||e.rule===`format`)}var st=class{head;listeners=new Set;body;show;session;constructor(e){this.session=e;let{article:t}=z(e.text);this.head={title:t.title,cover:t.cover,state:e.state,held:ot(e.text)},e.attach({save:e=>{let t=this.article();if(t===void 0||ot(e))return;let n=Ae(t);return n===Ae(z(e).article)?void 0:n},take:(e,t,n)=>{let{article:r}=z(e),i=n?.kind===`agent`?He(z(t).article,r):void 0;this.set({title:r.title,cover:r.cover,held:ot(e),...i===void 0?{}:{landed:{spot:i,at:Date.now()}}}),this.show?.(r)}}),e.onState(e=>{this.set({state:e})})}get read(){return z(this.session.text).article}bind(e,t){this.body=e,this.show=t}article(){if(this.body!==void 0)return{title:this.head.title,...this.head.cover?{cover:this.head.cover}:{},blocks:this.body()}}get(){return this.head}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}set(e){this.head={...this.head,...e};for(let e of this.listeners)e()}edited(e={}){Object.keys(e).length>0&&this.set(e),this.session.edited()}};function $(e){return(0,U.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":e.label,title:e.label,"aria-pressed":e.on,disabled:e.disabled,className:c(e.on===!0&&`bg-here`),onMouseDown:e=>{e.preventDefault()},onClick:e.onClick,children:e.children})}function ct(e){let t=B(),[n,r]=(0,H.useState)(!1),[i,a]=(0,H.useState)(``),o=i.trim()===``?void 0:e.check?.(i.trim());return(0,U.jsxs)(x,{open:n,onOpenChange:e=>{r(e),e&&a(``)},children:[(0,U.jsx)(y,{asChild:!0,children:(0,U.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":e.label,title:e.label,disabled:e.disabled,children:e.icon})}),(0,U.jsx)(b,{className:`w-80`,align:`start`,children:(0,U.jsxs)(`form`,{className:`flex flex-col gap-2`,onSubmit:t=>{t.preventDefault(),i.trim()!==``&&o===void 0&&(e.onAnswer(i.trim()),r(!1))},children:[(0,U.jsx)(R,{autoFocus:!0,value:i,placeholder:e.hint,"aria-label":e.hint,onChange:e=>{a(e.target.value)}}),o===void 0?null:(0,U.jsx)(`p`,{className:`text-destructive text-xs`,children:o}),(0,U.jsx)(u,{type:`submit`,size:`sm`,className:`self-end`,disabled:i.trim()===``||o!==void 0,children:t.article.add})]})})]})}function lt({dir:e,entry:t,insert:n,divider:r}){let i=B().article,[a,o]=(0,H.useState)(!1),[s,l]=(0,H.useState)(`menu`),[d,f]=(0,H.useState)(``),p=()=>{o(!1)},h=(e,t,n)=>(0,U.jsx)(be,{size:`dense`,icon:t,onClick:n,children:e}),g=(e,t,n)=>{let r=d.trim()===``?void 0:t(d.trim());return(0,U.jsxs)(`form`,{className:`flex w-80 flex-col gap-2`,onSubmit:e=>{e.preventDefault(),d.trim()!==``&&r===void 0&&(n(d.trim()),p())},children:[(0,U.jsx)(R,{autoFocus:!0,value:d,placeholder:e,"aria-label":e,onChange:e=>{f(e.target.value)}}),r===void 0?null:(0,U.jsx)(`p`,{className:`text-destructive text-xs`,children:r}),(0,U.jsx)(u,{type:`submit`,size:`sm`,className:`self-end`,disabled:d.trim()===``||r!==void 0,children:i.add})]})};return(0,U.jsxs)(x,{open:a,onOpenChange:e=>{o(e),e&&(l(`menu`),f(``))},children:[(0,U.jsx)(y,{asChild:!0,children:(0,U.jsxs)(u,{variant:`ghost`,size:`sm`,className:`gap-1 px-2`,children:[i.insert,(0,U.jsx)(m,{})]})}),(0,U.jsx)(b,{className:c(s===`menu`?`w-48 p-1`:`w-auto`),align:`start`,children:s===`menu`?(0,U.jsxs)(`div`,{role:`menu`,children:[h(i.media,(0,U.jsx)(w,{}),()=>{l(`media`)}),h(i.post,(0,U.jsx)(ge,{}),()=>{l(`post`)}),h(i.linkCard,(0,U.jsx)(E,{}),()=>{l(`link`)}),h(i.divider,(0,U.jsx)(de,{}),()=>{r(),p()}),h(i.code,(0,U.jsx)(C,{}),()=>{n(G.markdown,{markdown:"```\n\n```"}),p()}),h(i.equation,(0,U.jsx)(me,{}),()=>{n(G.latex,{tex:``}),p()}),h(i.table,(0,U.jsx)(L,{}),()=>{n(G.markdown,{markdown:`| A | B |
2
+ | - | - |
3
+ | | |`}),p()})]}):s===`media`?(0,U.jsx)(ie,{self:t,types:Pe,testId:`x-picker`,onPick:t=>{n(G.image,{file:le(e,t),alt:``,caption:``}),p()}}):s===`post`?g(i.postHint,e=>it.test(e)?void 0:i.notPost,e=>{n(G.post,{url:e,id:it.exec(e)?.[1]??``})}):g(i.linkHint,e=>/^https?:\/\/\S+$/u.test(e)?void 0:i.notLink,e=>{n(G.link,{url:e})})})]})}function ut({editor:e}){let t=B().article,n=()=>e.chain().focus(),r=e.isActive(`heading`,{level:1})?t.heading:e.isActive(`heading`,{level:2})?t.subheading:t.paragraph;return(0,U.jsxs)(v,{children:[(0,U.jsx)(h,{asChild:!0,children:(0,U.jsxs)(u,{variant:`ghost`,size:`sm`,className:`w-32 justify-between gap-1 px-2`,onMouseDown:e=>{e.preventDefault()},children:[r,(0,U.jsx)(m,{})]})}),(0,U.jsxs)(g,{align:`start`,className:`ak-x w-48`,children:[(0,U.jsx)(_,{className:`text-[31px] leading-10 font-extrabold`,onSelect:()=>n().setHeading({level:1}).run(),children:t.heading}),(0,U.jsx)(_,{className:`text-[26px] leading-9 font-extrabold`,onSelect:()=>n().setHeading({level:2}).run(),children:t.subheading}),(0,U.jsx)(_,{className:`text-[15px] font-bold`,onSelect:()=>n().setParagraph().run(),children:t.paragraph})]})]})}function dt({editor:e,dir:t,entry:n}){let r=B(),i=r.article,[,a]=(0,H.useState)(0);(0,H.useEffect)(()=>{let t=()=>{a(e=>e+1)};return e.on(`transaction`,t),()=>{e.off(`transaction`,t)}},[e]);let o=()=>e.chain().focus(),s=(t,n)=>{let{$from:r}=e.state.selection;r.depth>1?o().insertContentAt(r.after(1),{type:t,attrs:n}).run():o().insertContent({type:t,attrs:n}).run()},c=e.getText().split(/\s+/u).filter(e=>e!==``).length;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{label:r.undo,disabled:!e.can().undo(),onClick:()=>o().undo().run(),children:(0,U.jsx)(I,{})}),(0,U.jsx)($,{label:r.redo,disabled:!e.can().redo(),onClick:()=>o().redo().run(),children:(0,U.jsx)(F,{})}),(0,U.jsx)(`span`,{className:`bg-rule mx-1 h-5 w-px`,"aria-hidden":`true`}),(0,U.jsx)($,{label:i.bold,on:e.isActive(`bold`),onClick:()=>o().toggleBold().run(),children:(0,U.jsx)(ne,{})}),(0,U.jsx)($,{label:i.italic,on:e.isActive(`italic`),onClick:()=>o().toggleItalic().run(),children:(0,U.jsx)(S,{})}),(0,U.jsx)($,{label:i.strike,on:e.isActive(`strike`),onClick:()=>o().toggleStrike().run(),children:(0,U.jsx)(he,{})}),(0,U.jsx)(ut,{editor:e}),(0,U.jsx)(`span`,{className:`bg-rule mx-1 h-5 w-px`,"aria-hidden":`true`}),(0,U.jsx)($,{label:i.quote,on:e.isActive(`blockquote`),onClick:()=>o().toggleBlockquote().run(),children:(0,U.jsx)(P,{})}),(0,U.jsx)($,{label:i.bullets,on:e.isActive(`bulletList`),onClick:()=>o().toggleBulletList().run(),children:(0,U.jsx)(D,{})}),(0,U.jsx)($,{label:i.numbers,on:e.isActive(`orderedList`),onClick:()=>o().toggleOrderedList().run(),children:(0,U.jsx)(O,{})}),(0,U.jsx)(`span`,{className:`bg-rule mx-1 h-5 w-px`,"aria-hidden":`true`}),e.isActive(`link`)?(0,U.jsx)($,{label:i.removeLink,on:!0,onClick:()=>o().extendMarkRange(`link`).unsetLink().run(),children:(0,U.jsx)(d,{})}):(0,U.jsx)(ct,{label:i.link,hint:i.linkHint,icon:(0,U.jsx)(E,{}),disabled:e.state.selection.empty,onAnswer:e=>{o().extendMarkRange(`link`).setLink({href:e}).run()}}),(0,U.jsx)(lt,{dir:t,entry:n,insert:s,divider:()=>o().setHorizontalRule().run()}),(0,U.jsx)(`span`,{className:`text-muted-foreground ml-2 text-xs tabular-nums`,children:i.words(c)})]})}function ft({doc:e,dir:n,entry:o}){let c=B(),f=r(),p=a(),[m,h]=ce(),g=(0,H.useSyncExternalStore)(t=>e.subscribe(t),()=>e.get()),_=p||g.held,v=(0,H.useMemo)(()=>e.read,[e]),[ne,S]=(0,H.useState)(()=>v.blocks.flatMap(e=>e.type===`image`?[e.file]:[])),C=fe({textDirection:`auto`,editable:!_,immediatelyRender:!0,extensions:[Oe.configure({heading:{levels:[1,2]},listItem:!1,blockquote:!1,code:!1,codeBlock:!1,underline:!1,hardBreak:!1,link:{openOnClick:!1,autolink:!0}}),Ee.extend({content:`paragraph`}),De.extend({content:`paragraph`}),Te.configure({placeholder:c.article.body}),Ze,Ge,...rt],content:q(v.blocks),onUpdate:({editor:t,transaction:n})=>{n.docChanged&&(S(X(t.getJSON()).flatMap(e=>e.type===`image`?[e.file]:[])),e.edited())}}),[re,T]=(0,H.useState)(()=>v.blocks);(0,H.useEffect)(()=>{e.bind(()=>X(C.getJSON()),e=>{C.commands.setContent(q(e.blocks),{emitUpdate:!1}),S(e.blocks.flatMap(e=>e.type===`image`?[e.file]:[])),T(e.blocks)})},[e,C]),(0,H.useEffect)(()=>{C.setEditable(!_)},[C,_]),(0,H.useEffect)(()=>{let e=()=>{T(X(C.getJSON()))};return C.on(`update`,e),()=>{C.off(`update`,e)}},[C]);let E=(0,H.useDeferredValue)(re),{agent:D,following:O}=t(),de=ee(),k=(()=>{if(D?.doing===void 0)return;let t=g.landed,n=t!==void 0&&t.at>=D.at-at;return n&&D.source?.path===o?t.spot:(D.source?We(D.source,{path:o,text:e.session.text}):void 0)??(n?t.spot:void 0)})(),A=k&&`block`in k?k.block:void 0,j=k!==void 0&&`head`in k,M=D?de(D):``,N=(0,H.useRef)(null),P=(0,H.useRef)(null);(0,H.useEffect)(()=>{Ke(C,A===void 0?null:{block:A,label:M})},[C,A,M]),(0,H.useEffect)(()=>{let e=P.current;if(e){for(let t of e.querySelectorAll(`[data-agent]`))t.removeAttribute(`data-agent`);(j?e.querySelector(`.ak-x-a-title`):A===void 0?null:e.querySelector(`.ak-x-a-body`)?.children[A])?.setAttribute(`data-agent`,``)}},[A,j,E,g.title]),(0,H.useEffect)(()=>{O&&k!==void 0&&((j?N.current?.querySelector(`.ak-x-a-title`):N.current?.querySelector(`[data-testid="x-agent-block"]`))?.scrollIntoView({block:`nearest`}),P.current?.querySelector(`[data-agent]`)?.scrollIntoView({block:`nearest`}))},[O,k,j,g.landed]),i({hold:()=>Promise.resolve({key:`${o}@${String(e.session.text.length)}`,what:`The X article ${o}`,source:{path:o}}),locate:t=>{let n=z(e.session.text),r=e=>{let t=e?.getBoundingClientRect();return t&&t.width>0&&t.height>0?{x:t.x,y:t.y,width:t.width,height:t.height}:void 0},i=s(t)[0],a=e=>e!==void 0&&i!==void 0&&i.x>=e.x&&i.x<=e.x+e.width&&i.y>=e.y&&i.y<=e.y+e.height,c=[{as:`where it is written`,head:[`.ak-x-a-cover`,`.ak-x-a-title`].map(e=>N.current?.querySelector(e)),blocks:[...N.current?.querySelector(`.ak-x-a-body .ProseMirror`)?.children??[]]},{as:`as X will show it`,head:[`.ak-x-a-cover`,`.ak-x-a-title`].map(e=>P.current?.querySelector(e)),blocks:[...P.current?.querySelector(`.ak-x-a-body`)?.children??[]]}],u=e=>e===void 0?{}:{line:e.from,...e.to>e.from?{endLine:e.to}:{}},d=c.some(e=>e.head.some(e=>{let n=r(e);return n!==void 0&&l(t,n)})),f=new Set;for(let e of c)e.blocks.forEach((e,n)=>{let i=r(e);i&&l(t,i)&&f.add(n)});let p=[...d?[{name:`the article's head: its cover and title`,source:{path:o,...u(n.head)},...g.title===``?{}:{text:g.title}}]:[],...[...f].sort((e,t)=>e-t).map(e=>{let t=c.map(t=>t.blocks[e]?.textContent.trim()??``).find(e=>e!==``)??``;return{name:`block ${String(e+1)} of the article`,source:{path:o,...u(n.lines[e])},...t===``?{}:{text:t}}})],m=c.flatMap(e=>{if(e.head.some(e=>a(r(e))))return[`in the article's head, ${e.as}`];let t=e.blocks.findIndex(e=>a(r(e)));return t<0?[]:[`in block ${String(t+1)}, ${e.as}`]}).at(0);return Promise.resolve({elements:p,...m===void 0?{}:{where:m}})}});let F=se(n,[...g.cover?[g.cover.file]:[],...ne]),I=(0,H.useMemo)(()=>e=>F.get(e),[F]),[me,he]=(0,H.useState)(!1),L=g.cover===void 0?void 0:F.get(g.cover.file),R=f?.theme===`dark`,ge=(0,U.jsxs)(x,{open:me,onOpenChange:he,children:[(0,U.jsx)(`div`,{className:`group/cover ak-x-a-cover relative`,children:g.cover===void 0?_?null:(0,U.jsx)(y,{asChild:!0,children:(0,U.jsxs)(u,{variant:`ghost`,className:`size-full flex-col gap-2 rounded-none text-[13px] font-normal text-[var(--ak-x-muted)]`,"aria-label":c.article.addCover,children:[(0,U.jsx)(`span`,{className:`grid size-10 place-items-center rounded-full bg-[var(--ak-x-muted)] text-[var(--ak-x-bg)]`,children:(0,U.jsx)(w,{className:`size-5`})}),c.article.coverHint]})}):(0,U.jsxs)(U.Fragment,{children:[L===void 0?(0,U.jsx)(`div`,{className:`ak-x-made`,children:g.cover.file}):(0,U.jsx)(`img`,{src:L,alt:g.cover.alt??``}),_?null:(0,U.jsxs)(`div`,{className:`absolute top-2 right-2 flex gap-1`,children:[(0,U.jsx)(y,{asChild:!0,children:(0,U.jsxs)(u,{variant:`secondary`,size:`sm`,className:`bg-media/75 text-on-media`,children:[(0,U.jsx)(w,{}),c.article.changeCover]})}),(0,U.jsx)(u,{variant:`secondary`,size:`icon-sm`,className:`bg-media/75 text-on-media`,"aria-label":c.article.removeCover,title:c.article.removeCover,onClick:()=>{e.edited({cover:void 0})},children:(0,U.jsx)(d,{})})]})]})}),(0,U.jsx)(b,{className:`w-auto`,align:`center`,children:(0,U.jsx)(ie,{self:o,types:Le,testId:`x-picker`,onPick:t=>{he(!1),e.edited({cover:{file:le(n,t)}})}})})]}),ve=(0,U.jsxs)(`div`,{ref:N,className:`ak-x ak-x-editing min-h-full`,"data-theme":R?`dark`:`light`,children:[ge,(0,U.jsxs)(`div`,{className:`ak-x-e-page`,children:[(0,U.jsxs)(`div`,{className:`relative`,children:[(0,U.jsx)(`textarea`,{className:`ak-x-a-title block w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-[var(--ak-x-muted)]`,value:g.title,placeholder:c.article.title,"aria-label":c.article.title,readOnly:_,dir:`auto`,"data-testid":`x-article-title`,onChange:t=>{_||e.edited({title:t.target.value.replace(/\n/gu,` `)})}}),D&&j?(0,U.jsx)(ye,{"data-testid":`x-agent-head`,label:M,className:`-inset-1`}):null]}),(0,U.jsxs)(`div`,{className:`ak-x-e-by`,children:[(0,U.jsx)(`div`,{className:`ak-x-avatar`,"aria-hidden":`true`,children:V.name.slice(0,1)}),(0,U.jsx)(`span`,{className:`ak-x-name`,children:V.name}),(0,U.jsxs)(`span`,{className:`ak-x-handle`,children:[`@`,V.handle]})]}),(0,U.jsx)(Qe.Provider,{value:I,children:(0,U.jsx)(`div`,{className:`ak-x-a-body`,"data-testid":`x-article-body`,children:(0,U.jsx)(pe,{editor:C,className:`[&_.ProseMirror]:outline-none`})})})]})]}),be=(0,U.jsx)(`div`,{ref:P,className:`ak-x ak-x-column`,"data-theme":R?`dark`:`light`,children:(0,U.jsx)(je,{article:{title:g.title,...g.cover?{cover:g.cover}:{},blocks:E},source:I})});return(0,U.jsxs)(`div`,{className:`bg-background flex size-full flex-col`,"data-testid":`x-article-editor`,children:[(0,U.jsx)(te,{start:(0,U.jsxs)(U.Fragment,{children:[_||m!==`edit`?null:(0,U.jsx)(dt,{editor:C,dir:n,entry:o}),(0,U.jsx)(`span`,{className:`flex-1`}),(0,U.jsx)(ue,{pane:m,onPane:h})]}),saved:{state:g.state},exports:{}}),(0,U.jsx)(Fe.Provider,{value:ae,children:(0,U.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[g.held?(0,U.jsx)(_e,{}):null,(0,U.jsx)(oe,{pane:m,edit:ve,preview:be,width:600,background:R?`#000000`:`#ffffff`,testId:`x-preview`})]})})]})}function pt(){let e=B(),t=o(),n=r(),i=n?.item.entry,a=n?.item.dir??``,[s,c]=(0,H.useState)(),[l,u]=(0,H.useState)(!1);return(0,H.useEffect)(()=>{if(i===void 0)return;let e,n=!0;return f.open(t,i).then(t=>{n?(e=t,c(new st(t))):t.close()},e=>{reportError(e),n&&u(!0)}),()=>{n=!1,e?.close()}},[t,i]),l?(0,U.jsx)(`div`,{className:`flex size-full`,"data-testid":`x-article-editor`,"data-state":`updating`,children:(0,U.jsx)(ve,{})}):!s||i===void 0?(0,U.jsx)(`div`,{className:`text-muted-foreground flex size-full items-center justify-center text-sm`,"data-testid":`x-article-editor`,"data-state":`loading`,children:e.article.loading}):(0,U.jsx)(ft,{doc:s,dir:a,entry:i})}export{pt as XArticleEditor,pt as default,X as fromDoc,q as toDoc};
@@ -0,0 +1,7 @@
1
+ import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{a as t,b as n,c as r,f as i,m as a,s as o}from"./react-Byupo4pA.js";import{Et as s,ht as c,kt as l,n as u,t as d}from"./x-BAJilkKD.js";import{C as f,S as p,T as m}from"./schemas-DlRAoVtq.js";import{t as ee}from"./session--OJYv_B7.js";import{t as h}from"./jsx-runtime-DePvh3-m.js";import{A as g,C as _,f as te,j as v,m as y,u as ne}from"./bar-button-CJmpgNg4.js";import{C as b,E as re,S as x,b as S,i as ie}from"./dist-DCI21ljp.js";import{t as C}from"./createLucideIcon-euu7Wcd9.js";import{n as w,t as T}from"./italic-BV7iHxoP.js";import{t as E}from"./copy-SoaMYqsN.js";import{d as ae,i as oe,l as se,n as ce,o as le,r as ue,s as de,t as fe,u as pe}from"./panes-BexRuZd2.js";import{t as D}from"./link-CFOv3nz-.js";import{D as O,O as k}from"./dist-DQ6RpEJD.js";import{t as A}from"./minus-ngE8owxs.js";import{O as j,T as M,n as N,nt as P,o as me,s as he,t as ge,ut as F}from"./dist-QLXI7XGS.js";import{n as I,t as L}from"./undo-2-DCbMWoug.js";import{a as _e,y as ve}from"./index-omhSywJb.js";import{n as ye,t as be}from"./updating-D0GEtwnJ.js";import{t as xe}from"./collaborator-CbTacvkB.js";import{S as Se,h as Ce,i as we,n as Te,p as Ee,r as De,t as Oe}from"./syntax-C0iPON60.js";import{i as ke,n as Ae,t as je}from"./syntax-BIEjjMZL.js";import{r as Me,t as Ne}from"./browser-DEGNhKTV.js";import{n as Pe,r as Fe,t as Ie}from"./lib-KOEbW83T.js";import{c as Le,n as Re,s as ze,t as Be}from"./dist-DIJnhQFK.js";import{i as Ve,n as He,r as Ue,t as We}from"./dist-B8_6sJ_V.js";import{d as Ge,l as Ke,o as qe,p as Je,r as Ye,s as Xe,t as R,v as Ze}from"./words-DgMuEmDO.js";var Qe=C(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),$e=C(`square-play`,[[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z`,key:`kmsa83`}]]),et=p({title:f().optional(),cover:m([f().min(1),p({file:f().min(1),alt:f().optional()})]).optional()}),tt=/^<br\s*\/?>$/iu,nt=/^https?:\/\/\S+$/u,rt={extensions:[Fe([`yaml`]),Te(),Oe(),De(),je()],mdastExtensions:[Ie([`yaml`]),Ce(),Ee(),we(),Ae()]},it={extensions:[Pe([`yaml`])],bullet:`-`,emphasis:`*`,strong:`*`,rule:`-`,fences:!0},at=e=>`${e.bold===!0?`b`:``}${e.italic===!0?`i`:``}|${e.link??``}`;function z(e){let t=[];for(let n of e){if(n.text===``)continue;let e=t.at(-1);e&&at(e)===at(n)?t[t.length-1]={...e,text:e.text+n.text}:t.push(n)}return t}function B(e,t,n,r={}){let i=[];for(let a of e)switch(a.type){case`text`:i.push({...r,text:a.value.replace(/\n/gu,` `)});break;case`break`:i.push({...r,text:` `});break;case`strong`:i.push(...B(a.children,t,n,{...r,bold:!0}));break;case`emphasis`:i.push(...B(a.children,t,n,{...r,italic:!0}));break;case`delete`:t(a,`strikethrough, which LinkedIn's article editor does not have: its words are kept plain`),i.push(...B(a.children,t,n,r));break;case`link`:i.push(...B(a.children,t,n,{...r,link:a.url}));break;case`linkReference`:{let e=n.get(a.identifier.toLowerCase());i.push(...B(a.children,t,n,e===void 0?r:{...r,link:e}));break}case`footnoteReference`:t(a,`a footnote, which LinkedIn's blocks do not hold: write the source in the words, or as a link`);break;case`inlineCode`:t(a,`inline code, which LinkedIn's article editor does not style: write it as words, or as a code snippet`),i.push({...r,text:a.value});break;case`image`:t(a,`a picture inside a line: LinkedIn takes a picture as a block of its own, on a line of its own`);break;case`inlineMath`:t(a,`an equation, which LinkedIn's article editor does not have`),i.push({...r,text:a.value});break;case`html`:/^<!--[\s\S]*-->$/u.test(a.value.trim())||t(a,`HTML, which LinkedIn's blocks do not hold`);break;default:t(a,`${a.type}, which LinkedIn's blocks do not hold`)}return i}var ot=e=>e.map(e=>`value`in e?e.value:`children`in e?ot(e.children):``).join(``);function V(e){let t=[],n=(e,n)=>{t.push({rule:`article-markup`,line:e.position?.start.line,message:`${n[0]?.toUpperCase()??``}${n.slice(1)}.`})},r=Se(e,rt),i=new Map;for(let e of r.children)e.type===`definition`&&i.set(e.identifier.toLowerCase(),e.url);let a=``,o,s=[],c=e=>{switch(e.type){case`yaml`:{let n;try{n=Ne(e.value)}catch(n){t.push({rule:`format`,line:e.position?.start.line,message:`Its front matter is not YAML: ${n.message.split(`
2
+ `)[0]??``}`});break}let r=et.safeParse(n??{});if(!r.success){t.push({rule:`format`,line:e.position?.start.line,message:`Its front matter takes a title and a cover (a file, or { file, alt }): ${r.error.issues.map(e=>e.message).join(`; `)}`});break}a=r.data.title??``;let i=r.data.cover;o=i===void 0?void 0:typeof i==`string`?{file:i}:{file:i.file,...i.alt===void 0?{}:{alt:i.alt}};break}case`paragraph`:{let t=e.children.filter(e=>e.type===`image`),r=e.children.filter(e=>e.type!==`image`&&e.type!==`break`&&(e.type!==`text`||e.value.trim()!==``));if(t.length>0&&r.length===0){for(let e of t)s.push({type:`image`,file:e.url,...e.alt?{alt:e.alt}:{},...e.title?{caption:e.title}:{}});break}let a=ot(e.children).trim();if(!a.includes(` `)&&nt.test(a)){s.push({type:`embed`,url:a});break}s.push({type:`paragraph`,runs:z(B(e.children,n,i))});break}case`heading`:e.depth>2&&n(e,`a heading of level ${String(e.depth)}: LinkedIn has a Heading (#) and a Subheading (##)`),s.push({type:e.depth===1?`h1`:`h2`,runs:z(B(e.children,n,i))});break;case`blockquote`:for(let t of e.children)t.type===`paragraph`?s.push({type:`quote`,runs:z(B(t.children,n,i))}):n(t,`${t.type} inside a quote, which LinkedIn's blocks do not hold`);break;case`list`:{let t=[],r=()=>{t.length>0&&s.push({type:e.ordered===!0?`ol`:`ul`,items:t}),t=[]};e.ordered===!0&&(e.start??1)!==1&&n(e,`a numbered list starting at ${String(e.start)}: LinkedIn numbers every list from 1`);for(let a of e.children){let[e,...o]=a.children;t.push(e?.type===`paragraph`?z(B(e.children,n,i)):[]),e!==void 0&&e.type!==`paragraph`&&o.unshift(e);for(let e of o)e.type===`list`?n(e,`a list inside a list: LinkedIn's lists are one level deep`):(r(),c(e))}r();break}case`thematicBreak`:s.push({type:`divider`});break;case`code`:s.push({type:`code`,code:e.value,...e.lang?{lang:e.lang}:{}});break;case`math`:n(e,`an equation, which LinkedIn's article editor does not have`);break;case`table`:n(e,`a table, which LinkedIn's article editor does not have: a picture of it, or a list`);break;case`html`:if(tt.test(e.value.trim())){s.push({type:`paragraph`,runs:[]});break}if(/^<!--[\s\S]*-->$/u.test(e.value.trim()))break;n(e,`HTML, which LinkedIn's blocks do not hold (an empty line is <br /> alone)`);break;case`definition`:break;case`footnoteDefinition`:n(e,`a footnote, which LinkedIn's blocks do not hold: write the source in the words, or as a link`);break;default:n(e,`${e.type}, which LinkedIn's blocks do not hold`)}},l=[],u;for(let e of r.children){let t=s.length;c(e);let n=e.position&&{from:e.position.start.line,to:e.position.end.line};if(n){e.type===`yaml`&&(u=n);for(let e=t;e<s.length;e++)l.push(n)}}return a.trim()===``&&t.push({rule:`article-title`,line:1,message:`It has no title: LinkedIn's article needs one (front matter: title: …).`}),{article:{title:a,...o?{cover:o}:{},blocks:s},issues:t,lines:l,head:u}}function H(e){return e.map(e=>{let t={type:`text`,value:e.text};return e.italic===!0&&(t={type:`emphasis`,children:[t]}),e.bold===!0&&(t={type:`strong`,children:[t]}),e.link!==void 0&&(t={type:`link`,url:e.link,children:[t]}),t})}function st(e){switch(e.type){case`paragraph`:return e.runs.every(e=>e.text===``)?[{type:`html`,value:`<br />`}]:[{type:`paragraph`,children:H(e.runs)}];case`h1`:case`h2`:return[{type:`heading`,depth:e.type===`h1`?1:2,children:H(e.runs)}];case`quote`:return[{type:`blockquote`,children:[{type:`paragraph`,children:H(e.runs)}]}];case`ul`:case`ol`:return[{type:`list`,ordered:e.type===`ol`,spread:!1,children:e.items.map(e=>({type:`listItem`,spread:!1,children:[{type:`paragraph`,children:H(e)}]}))}];case`image`:return[{type:`paragraph`,children:[{type:`image`,url:e.file,alt:e.alt??``,title:e.caption??null}]}];case`embed`:return[{type:`paragraph`,children:[{type:`text`,value:e.url}]}];case`divider`:return[{type:`thematicBreak`}];case`code`:return[{type:`code`,lang:e.lang??null,value:e.code}]}}function ct(e){let t={title:e.title};e.cover&&(t.cover=e.cover.alt===void 0?e.cover.file:{file:e.cover.file,alt:e.cover.alt});let n={type:`root`,children:[{type:`yaml`,value:Me(t,{lineWidth:0}).trimEnd()},...e.blocks.flatMap(st)]};return ke(n,it)}var U=e=>e.replace(/&/gu,`&amp;`).replace(/</gu,`&lt;`).replace(/>/gu,`&gt;`).replace(/"/gu,`&quot;`);function W(e){return e.map(e=>{let t=U(e.text);return e.italic===!0&&(t=`<em>${t}</em>`),e.bold===!0&&(t=`<strong>${t}</strong>`),e.link!==void 0&&(t=`<a href="${U(e.link)}">${t}</a>`),t}).join(``)}function lt(e,t){switch(e.type){case`paragraph`:return e.runs.length===0?`<p><br></p>`:`<p>${W(e.runs)}</p>`;case`h1`:return`<h1>${W(e.runs)}</h1>`;case`h2`:return`<h2>${W(e.runs)}</h2>`;case`quote`:return`<blockquote><p>${W(e.runs)}</p></blockquote>`;case`ul`:case`ol`:return`<${e.type}>${e.items.map(e=>`<li>${W(e)}</li>`).join(``)}</${e.type}>`;case`code`:return`<pre><code>${U(e.code)}</code></pre>`;case`divider`:return`<hr>`;case`embed`:return`<p><a href="${U(e.url)}">${U(e.url)}</a></p>`;case`image`:{let n=t(e.file);return n===void 0?``:`<figure><img src="${U(n)}" alt="${U(e.alt??``)}">${e.caption===void 0?``:`<figcaption>${U(e.caption)}</figcaption>`}</figure>`}}}function ut(e,t=()=>void 0){return e.blocks.map(e=>lt(e,t)).filter(e=>e!==``).join(`
3
+ `)}function dt(e){return e.blocks.map(e=>{switch(e.type){case`ul`:return e.items.map(e=>`• ${e.map(e=>e.text).join(``)}`).join(`
4
+ `);case`ol`:return e.items.map((e,t)=>`${String(t+1)}. ${e.map(e=>e.text).join(``)}`).join(`
5
+ `);case`code`:return e.code;case`divider`:return`---`;case`embed`:return e.url;case`image`:return e.caption??``;default:return e.runs.map(e=>e.text).join(``)}}).join(`
6
+
7
+ `)}var G=e(n(),1),K=h(),ft=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function pt(e,t){if(e.title!==t.title||!ft(e.cover,t.cover))return{head:!0};for(let n=0;n<t.blocks.length;n++)if(!ft(e.blocks[n],t.blocks[n]))return{block:n};if(e.blocks.length>t.blocks.length&&t.blocks.length>0)return{block:t.blocks.length-1}}function mt(e,t){let n=V(e),r=e=>e.from<=t.to&&t.from<=e.to;if(n.head&&r(n.head))return{head:!0};let i=n.lines.findIndex(r);return i<0?void 0:{block:i}}function ht(e,t){if(e.from!==void 0&&e.path===t.path)return mt(t.text,{from:e.from,to:e.to??e.from})}var q=new Le(`liArticleAgent`),gt=M.create({name:`liArticleAgent`,addProseMirrorPlugins(){return[new ze({key:q,state:{init:()=>null,apply:(e,t)=>{let n=e.getMeta(q);return n===void 0?t:n}},props:{decorations(e){let t=q.getState(e);if(!t)return null;let n;return e.doc.forEach((e,r,i)=>{i===t.block&&(n=Be.node(r,r+e.nodeSize,{class:`ak-li-agent`,"data-agent":t.label,"data-testid":`linkedin-agent-block`}))}),n?Re.create(e.doc,[n]):null}}})]}});function _t(e,t){e.isDestroyed||e.view.dispatch(e.state.tr.setMeta(q,t))}var J={image:`liImage`,embed:`liEmbed`};function vt(e){let t=[];return e.bold===!0&&t.push({type:`bold`}),e.italic===!0&&t.push({type:`italic`}),e.link!==void 0&&t.push({type:`link`,attrs:{href:e.link}}),{type:`text`,text:e.text,...t.length>0?{marks:t}:{}}}var yt=e=>({type:`paragraph`,...e.length>0?{content:e.filter(e=>e.text!==``).map(vt)}:{}});function bt(e){let t=e.map(e=>{switch(e.type){case`paragraph`:return yt(e.runs);case`h1`:case`h2`:return{type:`heading`,attrs:{level:e.type===`h1`?1:2},...e.runs.length>0?{content:e.runs.map(vt)}:{}};case`quote`:return{type:`blockquote`,content:[yt(e.runs)]};case`ul`:case`ol`:return{type:e.type===`ul`?`bulletList`:`orderedList`,content:e.items.map(e=>({type:`listItem`,content:[yt(e)]}))};case`code`:return{type:`codeBlock`,attrs:{language:e.lang??null},...e.code===``?{}:{content:[{type:`text`,text:e.code}]}};case`image`:return{type:J.image,attrs:{file:e.file,alt:e.alt??``,caption:e.caption??``}};case`embed`:return{type:J.embed,attrs:{url:e.url}};case`divider`:return{type:`horizontalRule`}}});return{type:`doc`,content:t.length>0?t:[{type:`paragraph`}]}}function xt(e){let t=e.marks??[],n=e=>t.some(t=>t.type===e),r=t.find(e=>e.type===`link`)?.attrs?.href;return{text:e.text??``,...n(`bold`)?{bold:!0}:{},...n(`italic`)?{italic:!0}:{},...r===void 0?{}:{link:r}}}var Y=e=>(e?.content??[]).map(e=>e.type===`hardBreak`?{text:` `}:xt(e)),X=(e,t)=>{let n=e.attrs?.[t];return typeof n==`string`?n:``};function Z(e){let t=[];for(let n of e.content??[])switch(n.type){case`paragraph`:t.push({type:`paragraph`,runs:Y(n)});break;case`heading`:{let e=Number(n.attrs?.level??1);t.push({type:e<=1?`h1`:`h2`,runs:Y(n)});break}case`blockquote`:for(let e of n.content??[])t.push({type:`quote`,runs:Y(e)});break;case`bulletList`:case`orderedList`:t.push({type:n.type===`bulletList`?`ul`:`ol`,items:(n.content??[]).map(e=>(e.content??[]).flatMap(e=>Y(e)))});break;case`codeBlock`:{let e=X(n,`language`);t.push({type:`code`,code:(n.content??[]).map(e=>e.text??``).join(``),...e===``?{}:{lang:e}});break}case`horizontalRule`:t.push({type:`divider`});break;case J.image:{let e=X(n,`alt`),r=X(n,`caption`);t.push({type:`image`,file:X(n,`file`),...e===``?{}:{alt:e},...r===``?{}:{caption:r}});break}case J.embed:t.push({type:`embed`,url:X(n,`url`)})}let n=t[0];return t.length===1&&n?.type===`paragraph`&&n.runs.every(e=>e.text===``)?[]:t}var St=(0,G.createContext)(()=>void 0),Q=e=>typeof e==`string`?e:``;function Ct({node:e,updateAttributes:t}){let n=R(),r=(0,G.useContext)(St),i=Q(e.attrs.file),a=r(i);return(0,K.jsxs)(N,{as:`figure`,"data-li":`image`,className:`relative`,children:[(0,K.jsxs)(`div`,{className:`relative`,children:[a===void 0?(0,K.jsx)(`div`,{className:`ak-li-made`,children:i}):(0,K.jsx)(`img`,{src:a,alt:Q(e.attrs.alt)}),(0,K.jsx)(`div`,{className:`absolute bottom-2 left-2`,contentEditable:!1,children:(0,K.jsx)(pe,{most:Ze.alt,alt:Q(e.attrs.alt),onAlt:e=>{t({alt:e})},trigger:(0,K.jsx)(u,{variant:`secondary`,size:`xs`,className:`bg-media/75 text-on-media font-bold`,children:n.alt})})})]}),(0,K.jsx)(`input`,{className:`mt-2 w-full bg-transparent text-center text-sm text-[var(--ak-li-muted)] outline-none`,value:Q(e.attrs.caption),placeholder:n.article.caption,"aria-label":n.article.caption,dir:`auto`,onChange:e=>{t({caption:e.target.value})}})]})}function wt({node:e}){return(0,K.jsx)(N,{"data-li":`embed`,children:(0,K.jsx)(Ge,{url:Q(e.attrs.url)})})}function Tt(e,t,n){return j.create({name:e,group:`block`,atom:!0,selectable:!0,draggable:!0,addAttributes(){return Object.fromEntries(t.map(e=>[e,{default:``}]))},parseHTML(){return[{tag:`div[data-node="${e}"]`}]},renderHTML({HTMLAttributes:t}){return[`div`,P(t,{"data-node":e})]},addNodeView(){return me(n)}})}var Et=[Tt(J.image,[`file`,`alt`,`caption`],Ct),Tt(J.embed,[`url`],wt)],Dt=3e4;function Ot(e){return V(e).issues.some(e=>e.rule===`article-markup`||e.rule===`format`)}var kt=class{head;listeners=new Set;body;show;session;constructor(e){this.session=e;let{article:t}=V(e.text);this.head={title:t.title,cover:t.cover,state:e.state,held:Ot(e.text)},e.attach({save:e=>{let t=this.article();if(t===void 0||Ot(e))return;let n=ct(t);return n===ct(V(e).article)?void 0:n},take:(e,t,n)=>{let{article:r}=V(e),i=n?.kind===`agent`?pt(V(t).article,r):void 0;this.set({title:r.title,cover:r.cover,held:Ot(e),...i===void 0?{}:{landed:{spot:i,at:Date.now()}}}),this.show?.(r)}}),e.onState(e=>{this.set({state:e})})}get read(){return V(this.session.text).article}bind(e,t){this.body=e,this.show=t}article(){if(this.body!==void 0)return{title:this.head.title,...this.head.cover?{cover:this.head.cover}:{},blocks:this.body()}}get(){return this.head}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}set(e){this.head={...this.head,...e};for(let e of this.listeners)e()}edited(e={}){Object.keys(e).length>0&&this.set(e),this.session.edited()}};function $(e){return(0,K.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":e.label,title:e.label,"aria-pressed":e.on,disabled:e.disabled,className:c(e.on===!0&&`bg-here`),onMouseDown:e=>{e.preventDefault()},onClick:e.onClick,children:e.children})}function At(e){let t=R(),[n,r]=(0,G.useState)(!1),[i,a]=(0,G.useState)(``),o=i.trim()===``||/^https?:\/\/\S+$/u.test(i.trim())?void 0:t.article.notLink;return(0,K.jsxs)(S,{open:n,onOpenChange:e=>{r(e),e&&a(``)},children:[(0,K.jsx)(b,{asChild:!0,children:(0,K.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":e.label,title:e.label,disabled:e.disabled,children:e.icon})}),(0,K.jsx)(x,{className:`w-80`,align:`start`,children:(0,K.jsxs)(`form`,{className:`flex flex-col gap-2`,onSubmit:t=>{t.preventDefault(),i.trim()!==``&&o===void 0&&(e.onAnswer(i.trim()),r(!1))},children:[(0,K.jsx)(_e,{autoFocus:!0,value:i,placeholder:e.hint,"aria-label":e.hint,onChange:e=>{a(e.target.value)}}),o===void 0?null:(0,K.jsx)(`p`,{className:`text-destructive text-xs`,children:o}),(0,K.jsx)(u,{type:`submit`,size:`sm`,className:`self-end`,disabled:i.trim()===``||o!==void 0,children:t.article.add})]})})]})}function jt({editor:e}){let t=R().article,n=()=>e.chain().focus(),r=e.isActive(`heading`,{level:1})?t.heading:e.isActive(`heading`,{level:2})?t.subheading:t.normal;return(0,K.jsxs)(ne,{children:[(0,K.jsx)(_,{asChild:!0,children:(0,K.jsxs)(u,{variant:`ghost`,size:`sm`,className:`w-28 justify-between gap-1 px-2`,"aria-label":t.style,onMouseDown:e=>{e.preventDefault()},children:[r,(0,K.jsx)(g,{})]})}),(0,K.jsxs)(te,{align:`start`,className:`w-44`,children:[(0,K.jsx)(y,{className:`text-sm`,onSelect:()=>n().setParagraph().run(),children:t.normal}),(0,K.jsx)(y,{className:`text-base font-semibold`,onSelect:()=>n().setHeading({level:1}).run(),children:t.heading}),(0,K.jsx)(y,{className:`text-sm font-semibold`,onSelect:()=>n().setHeading({level:2}).run(),children:t.subheading})]})]})}function Mt({article:e}){let t=R().article,[n,r]=(0,G.useState)(!1);return(0,G.useEffect)(()=>{if(!n)return;let e=setTimeout(()=>{r(!1)},4e3);return()=>{clearTimeout(e)}},[n]),(0,K.jsxs)(u,{variant:`outline`,size:`sm`,className:`gap-1`,title:n?t.copied:t.copy,"data-testid":`linkedin-copy`,onClick:()=>{let t=e(),n=ut(t),i=dt(t);navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([n],{type:`text/html`}),"text/plain":new Blob([i],{type:`text/plain`})})]).then(()=>{r(!0)})},children:[n?(0,K.jsx)(v,{}):(0,K.jsx)(E,{}),n?t.copied:t.copy]})}function Nt({editor:e,dir:t,entry:n}){let r=R(),i=r.article,[,a]=(0,G.useState)(0);(0,G.useEffect)(()=>{let t=()=>{a(e=>e+1)};return e.on(`transaction`,t),()=>{e.off(`transaction`,t)}},[e]);let[o,s]=(0,G.useState)(!1),c=()=>e.chain().focus(),l=(t,n)=>{let{$from:r}=e.state.selection;r.depth>1?c().insertContentAt(r.after(1),{type:t,attrs:n}).run():c().insertContent({type:t,attrs:n}).run()},f=e.getText().split(/\s+/u).filter(e=>e!==``).length;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)($,{label:r.undo,disabled:!e.can().undo(),onClick:()=>c().undo().run(),children:(0,K.jsx)(L,{})}),(0,K.jsx)($,{label:r.redo,disabled:!e.can().redo(),onClick:()=>c().redo().run(),children:(0,K.jsx)(I,{})}),(0,K.jsx)(`span`,{className:`bg-rule mx-1 h-5 w-px`,"aria-hidden":`true`}),(0,K.jsx)(jt,{editor:e}),(0,K.jsx)($,{label:i.bold,on:e.isActive(`bold`),onClick:()=>c().toggleBold().run(),children:(0,K.jsx)(w,{})}),(0,K.jsx)($,{label:i.italic,on:e.isActive(`italic`),onClick:()=>c().toggleItalic().run(),children:(0,K.jsx)(T,{})}),(0,K.jsx)($,{label:i.bullets,on:e.isActive(`bulletList`),onClick:()=>c().toggleBulletList().run(),children:(0,K.jsx)(O,{})}),(0,K.jsx)($,{label:i.numbers,on:e.isActive(`orderedList`),onClick:()=>c().toggleOrderedList().run(),children:(0,K.jsx)(k,{})}),(0,K.jsx)($,{label:i.quote,on:e.isActive(`blockquote`),onClick:()=>c().toggleBlockquote().run(),children:(0,K.jsx)(F,{})}),(0,K.jsx)($,{label:i.code,on:e.isActive(`codeBlock`),onClick:()=>c().toggleCodeBlock().run(),children:(0,K.jsx)(Qe,{})}),(0,K.jsx)($,{label:i.divider,onClick:()=>c().setHorizontalRule().run(),children:(0,K.jsx)(A,{})}),e.isActive(`link`)?(0,K.jsx)($,{label:i.removeLink,on:!0,onClick:()=>c().extendMarkRange(`link`).unsetLink().run(),children:(0,K.jsx)(d,{})}):(0,K.jsx)(At,{label:i.link,hint:i.linkHint,icon:(0,K.jsx)(D,{}),disabled:e.state.selection.empty,onAnswer:e=>{c().extendMarkRange(`link`).setLink({href:e}).run()}}),(0,K.jsx)(At,{label:i.embed,hint:i.embedHint,icon:(0,K.jsx)($e,{}),onAnswer:e=>{l(J.embed,{url:e})}}),(0,K.jsxs)(S,{open:o,onOpenChange:s,children:[(0,K.jsx)(b,{asChild:!0,children:(0,K.jsx)(u,{variant:`ghost`,size:`icon-sm`,"aria-label":i.image,title:i.image,children:(0,K.jsx)(ve,{})})}),(0,K.jsx)(x,{className:`w-auto`,align:`start`,children:(0,K.jsx)(oe,{self:n,types:qe,testId:`linkedin-picker`,onPick:e=>{s(!1),l(J.image,{file:de(t,e),alt:``,caption:``})}})})]}),(0,K.jsx)(`span`,{className:`text-muted-foreground ml-2 text-xs tabular-nums`,children:i.words(f)})]})}function Pt({doc:e,dir:n,entry:o}){let c=R(),f=r(),p=a(),[m,ee]=ue(),h=(0,G.useSyncExternalStore)(t=>e.subscribe(t),()=>e.get()),g=p||h.held,_=(0,G.useMemo)(()=>e.read,[e]),[te,v]=(0,G.useState)(()=>_.blocks.flatMap(e=>e.type===`image`?[e.file]:[])),y=he({textDirection:`auto`,editable:!g,immediatelyRender:!0,extensions:[We.configure({heading:{levels:[1,2]},listItem:!1,blockquote:!1,code:!1,strike:!1,underline:!1,hardBreak:!1,link:{openOnClick:!1,autolink:!0}}),He.extend({content:`paragraph`}),Ue.extend({content:`paragraph`}),Ve.configure({placeholder:c.article.body}),gt,...Et],content:bt(_.blocks),onUpdate:({editor:t,transaction:n})=>{n.docChanged&&(v(Z(t.getJSON()).flatMap(e=>e.type===`image`?[e.file]:[])),e.edited())}}),[ne,C]=(0,G.useState)(()=>_.blocks);(0,G.useEffect)(()=>{e.bind(()=>Z(y.getJSON()),e=>{y.commands.setContent(bt(e.blocks),{emitUpdate:!1}),v(e.blocks.flatMap(e=>e.type===`image`?[e.file]:[])),C(e.blocks)})},[e,y]),(0,G.useEffect)(()=>{y.setEditable(!g)},[y,g]),(0,G.useEffect)(()=>{let e=()=>{C(Z(y.getJSON()))};return y.on(`update`,e),()=>{y.off(`update`,e)}},[y]);let w=(0,G.useDeferredValue)(ne),{agent:T,following:E}=t(),pe=re(),D=(()=>{if(T?.doing===void 0)return;let t=h.landed,n=t!==void 0&&t.at>=T.at-Dt;return n&&T.source?.path===o?t.spot:(T.source?ht(T.source,{path:o,text:e.session.text}):void 0)??(n?t.spot:void 0)})(),O=D&&`block`in D?D.block:void 0,k=D!==void 0&&`head`in D,A=T?pe(T):``,j=(0,G.useRef)(null),M=(0,G.useRef)(null);(0,G.useEffect)(()=>{_t(y,O===void 0?null:{block:O,label:A})},[y,O,A]),(0,G.useEffect)(()=>{let e=M.current;if(e){for(let t of e.querySelectorAll(`[data-agent]`))t.removeAttribute(`data-agent`);(k?e.querySelector(`.ak-li-a-title`):O===void 0?null:e.querySelector(`.ak-li-a-body`)?.children[O])?.setAttribute(`data-agent`,``)}},[O,k,w,h.title]),(0,G.useEffect)(()=>{E&&D!==void 0&&((k?j.current?.querySelector(`.ak-li-a-title`):j.current?.querySelector(`[data-testid="linkedin-agent-block"]`))?.scrollIntoView({block:`nearest`}),M.current?.querySelector(`[data-agent]`)?.scrollIntoView({block:`nearest`}))},[E,D,k,h.landed]),i({hold:()=>Promise.resolve({key:`${o}@${String(e.session.text.length)}`,what:`The LinkedIn article ${o}`,source:{path:o}}),locate:t=>{let n=V(e.session.text),r=e=>{let t=e?.getBoundingClientRect();return t&&t.width>0&&t.height>0?{x:t.x,y:t.y,width:t.width,height:t.height}:void 0},i=s(t)[0],a=e=>e!==void 0&&i!==void 0&&i.x>=e.x&&i.x<=e.x+e.width&&i.y>=e.y&&i.y<=e.y+e.height,c=[{as:`where it is written`,head:[`.ak-li-a-cover`,`.ak-li-a-title`].map(e=>j.current?.querySelector(e)),blocks:[...j.current?.querySelector(`.ak-li-a-body .ProseMirror`)?.children??[]]},{as:`as LinkedIn will show it`,head:[`.ak-li-a-cover`,`.ak-li-a-title`].map(e=>M.current?.querySelector(e)),blocks:[...M.current?.querySelector(`.ak-li-a-body`)?.children??[]]}],u=e=>e===void 0?{}:{line:e.from,...e.to>e.from?{endLine:e.to}:{}},d=c.some(e=>e.head.some(e=>{let n=r(e);return n!==void 0&&l(t,n)})),f=new Set;for(let e of c)e.blocks.forEach((e,n)=>{let i=r(e);i&&l(t,i)&&f.add(n)});let p=[...d?[{name:`the article's head: its cover and title`,source:{path:o,...u(n.head)},...h.title===``?{}:{text:h.title}}]:[],...[...f].sort((e,t)=>e-t).map(e=>{let t=c.map(t=>t.blocks[e]?.textContent.trim()??``).find(e=>e!==``)??``;return{name:`block ${String(e+1)} of the article`,source:{path:o,...u(n.lines[e])},...t===``?{}:{text:t}}})],m=c.flatMap(e=>{if(e.head.some(e=>a(r(e))))return[`in the article's head, ${e.as}`];let t=e.blocks.findIndex(e=>a(r(e)));return t<0?[]:[`in block ${String(t+1)}, ${e.as}`]}).at(0);return Promise.resolve({elements:p,...m===void 0?{}:{where:m}})}});let N=le(n,[...h.cover?[h.cover.file]:[],...te]),P=(0,G.useMemo)(()=>e=>N.get(e),[N]),[me,F]=(0,G.useState)(!1),I=h.cover===void 0?void 0:N.get(h.cover.file),L=f?.theme===`dark`,_e=(0,K.jsxs)(S,{open:me,onOpenChange:F,children:[(0,K.jsx)(`div`,{className:`ak-li-a-cover ak-li-e-cover relative`,children:h.cover===void 0?g?null:(0,K.jsx)(b,{asChild:!0,children:(0,K.jsxs)(u,{variant:`ghost`,className:`size-full flex-col gap-2 rounded-none text-sm font-normal text-[var(--ak-li-muted)]`,children:[(0,K.jsx)(ae,{className:`size-6`}),c.article.addCover]})}):(0,K.jsxs)(K.Fragment,{children:[I===void 0?(0,K.jsx)(`div`,{className:`ak-li-made`,children:h.cover.file}):/\.mp4$/iu.test(h.cover.file)?(0,K.jsx)(`video`,{src:I,muted:!0,playsInline:!0,className:`w-full`}):(0,K.jsx)(`img`,{src:I,alt:h.cover.alt??``}),g?null:(0,K.jsxs)(`div`,{className:`absolute top-2 right-2 flex gap-1`,children:[(0,K.jsx)(b,{asChild:!0,children:(0,K.jsxs)(u,{variant:`secondary`,size:`sm`,className:`bg-media/75 text-on-media`,children:[(0,K.jsx)(ae,{}),c.article.changeCover]})}),(0,K.jsx)(u,{variant:`secondary`,size:`icon-sm`,className:`bg-media/75 text-on-media`,"aria-label":c.article.removeCover,title:c.article.removeCover,onClick:()=>{e.edited({cover:void 0})},children:(0,K.jsx)(d,{})})]})]})}),(0,K.jsx)(x,{className:`w-auto`,align:`center`,children:(0,K.jsx)(oe,{self:o,types:Ye,testId:`linkedin-picker`,onPick:t=>{F(!1),e.edited({cover:{file:de(n,t)}})}})})]}),ve=(0,K.jsxs)(`div`,{ref:j,className:`ak-li ak-li-editing min-h-full`,"data-theme":L?`dark`:`light`,children:[_e,(0,K.jsxs)(`div`,{className:`ak-li-e-page`,children:[(0,K.jsxs)(`div`,{className:`relative`,children:[(0,K.jsx)(`textarea`,{className:`ak-li-a-title block w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-[var(--ak-li-muted)]`,value:h.title,placeholder:c.article.title,"aria-label":c.article.title,readOnly:g,dir:`auto`,"data-testid":`linkedin-article-title`,onChange:t=>{g||e.edited({title:t.target.value.replace(/\n/gu,` `)})}}),T&&k?(0,K.jsx)(xe,{"data-testid":`linkedin-agent-head`,label:A,className:`-inset-1`}):null]}),(0,K.jsx)(Ke,{}),(0,K.jsx)(St.Provider,{value:P,children:(0,K.jsx)(`div`,{className:`ak-li-a-body`,"data-testid":`linkedin-article-body`,children:(0,K.jsx)(ge,{editor:y,className:`[&_.ProseMirror]:outline-none`})})})]})]}),be=()=>({title:h.title,...h.cover?{cover:h.cover}:{},blocks:Z(y.getJSON())}),Se=(0,K.jsx)(`div`,{ref:M,className:`ak-li ak-li-page`,"data-theme":L?`dark`:`light`,children:(0,K.jsx)(Xe,{article:{title:h.title,...h.cover?{cover:h.cover}:{},blocks:w},source:P})});return(0,K.jsxs)(`div`,{className:`bg-background flex size-full flex-col`,"data-testid":`linkedin-article-editor`,children:[(0,K.jsx)(ie,{start:(0,K.jsxs)(K.Fragment,{children:[g||m!==`edit`?null:(0,K.jsx)(Nt,{editor:y,dir:n,entry:o}),(0,K.jsx)(`span`,{className:`flex-1`}),(0,K.jsx)(fe,{pane:m,onPane:ee}),(0,K.jsx)(Mt,{article:be})]}),saved:{state:h.state},exports:{}}),(0,K.jsx)(Je.Provider,{value:se,children:(0,K.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[h.held?(0,K.jsx)(ye,{}):null,(0,K.jsx)(ce,{pane:m,edit:ve,preview:Se,width:632,background:L?`#000000`:`#f4f2ee`,testId:`linkedin-preview`})]})})]})}function Ft(){let e=R(),t=o(),n=r(),i=n?.item.entry,a=n?.item.dir??``,[s,c]=(0,G.useState)(),[l,u]=(0,G.useState)(!1);return(0,G.useEffect)(()=>{if(i===void 0)return;let e,n=!0;return ee.open(t,i).then(t=>{n?(e=t,c(new kt(t))):t.close()},e=>{reportError(e),n&&u(!0)}),()=>{n=!1,e?.close()}},[t,i]),l?(0,K.jsx)(`div`,{className:`flex size-full`,"data-testid":`linkedin-article-editor`,"data-state":`updating`,children:(0,K.jsx)(be,{})}):!s||i===void 0?(0,K.jsx)(`div`,{className:`text-muted-foreground flex size-full items-center justify-center text-sm`,"data-testid":`linkedin-article-editor`,"data-state":`loading`,children:e.article.loading}):(0,K.jsx)(Pt,{doc:s,dir:a,entry:i})}export{Ft as LinkedInArticleEditor,Ft as default,Z as fromDoc,bt as toDoc};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-lm_6n8YT.js";var t=e(`audio-lines`,[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-euu7Wcd9.js";var t=e(`audio-lines`,[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]);export{t};