@pixerate/editor-react 0.89.0 → 0.90.1

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 (479) hide show
  1. package/dist/animation-editor/AnimationEditor.d.cts +33 -0
  2. package/dist/animation-editor/AnimationEditor.d.ts +33 -0
  3. package/dist/animation-editor/AnimationEffectsPanel.d.cts +14 -0
  4. package/dist/animation-editor/AnimationEffectsPanel.d.ts +14 -0
  5. package/dist/animation-editor/AnimationStage.d.cts +24 -0
  6. package/dist/animation-editor/AnimationStage.d.ts +24 -0
  7. package/dist/animation-editor/CommandInspector.d.cts +14 -0
  8. package/dist/animation-editor/CommandInspector.d.ts +14 -0
  9. package/dist/animation-editor/CommandList.d.cts +16 -0
  10. package/dist/animation-editor/CommandList.d.ts +16 -0
  11. package/dist/animation-editor/CommitInput.d.cts +6 -0
  12. package/dist/animation-editor/CommitInput.d.ts +6 -0
  13. package/dist/animation-editor/EasePicker.d.cts +18 -0
  14. package/dist/animation-editor/EasePicker.d.ts +18 -0
  15. package/dist/animation-editor/PlayheadScrubber.d.cts +12 -0
  16. package/dist/animation-editor/PlayheadScrubber.d.ts +12 -0
  17. package/dist/animation-editor/SceneSettings.d.cts +12 -0
  18. package/dist/animation-editor/SceneSettings.d.ts +12 -0
  19. package/dist/animation-editor/ShotInspector.d.cts +14 -0
  20. package/dist/animation-editor/ShotInspector.d.ts +14 -0
  21. package/dist/animation-editor/ShotTimeline.d.cts +11 -0
  22. package/dist/animation-editor/ShotTimeline.d.ts +11 -0
  23. package/dist/animation-editor/index.cjs +0 -1
  24. package/dist/animation-editor/index.d.cts +11 -195
  25. package/dist/animation-editor/index.d.ts +11 -195
  26. package/dist/animation-editor/index.js +2 -3
  27. package/dist/animation-editor/useAnimationEditor.d.cts +34 -0
  28. package/dist/animation-editor/useAnimationEditor.d.ts +34 -0
  29. package/dist/canvas/AgentPresenceLayer.d.cts +11 -0
  30. package/dist/canvas/AgentPresenceLayer.d.ts +11 -0
  31. package/dist/canvas/AnimationTimeline.d.cts +22 -0
  32. package/dist/canvas/AnimationTimeline.d.ts +22 -0
  33. package/dist/canvas/CanvasComponentsPanel.d.cts +44 -0
  34. package/dist/canvas/CanvasComponentsPanel.d.ts +44 -0
  35. package/dist/canvas/CanvasDrawLayer.d.cts +23 -0
  36. package/dist/canvas/CanvasDrawLayer.d.ts +23 -0
  37. package/dist/canvas/CanvasEffects.d.cts +52 -0
  38. package/dist/canvas/CanvasEffects.d.ts +52 -0
  39. package/dist/canvas/CanvasGuidesLayer.d.cts +20 -0
  40. package/dist/canvas/CanvasGuidesLayer.d.ts +20 -0
  41. package/dist/canvas/DiagramPresenceLayer.d.cts +14 -0
  42. package/dist/canvas/DiagramPresenceLayer.d.ts +14 -0
  43. package/dist/canvas/MermaidDiagramNode.d.cts +37 -0
  44. package/dist/canvas/MermaidDiagramNode.d.ts +37 -0
  45. package/dist/canvas/MermaidFamilyScene.d.cts +29 -0
  46. package/dist/canvas/MermaidFamilyScene.d.ts +29 -0
  47. package/dist/canvas/MermaidThumbnail.d.cts +15 -0
  48. package/dist/canvas/MermaidThumbnail.d.ts +15 -0
  49. package/dist/canvas/ShapeNode.d.cts +31 -0
  50. package/dist/canvas/ShapeNode.d.ts +31 -0
  51. package/dist/canvas/TokenBindingPicker.d.cts +37 -0
  52. package/dist/canvas/TokenBindingPicker.d.ts +37 -0
  53. package/dist/canvas/index.cjs +0 -1
  54. package/dist/canvas/index.d.cts +40 -1084
  55. package/dist/canvas/index.d.ts +40 -1084
  56. package/dist/canvas/index.js +2 -3
  57. package/dist/canvas/useCanvasAnimation.d.cts +97 -0
  58. package/dist/canvas/useCanvasAnimation.d.ts +97 -0
  59. package/dist/canvas/useCanvasArrange.d.cts +80 -0
  60. package/dist/canvas/useCanvasArrange.d.ts +80 -0
  61. package/dist/canvas/useCanvasAutoLayout.d.cts +54 -0
  62. package/dist/canvas/useCanvasAutoLayout.d.ts +54 -0
  63. package/dist/canvas/useCanvasCapture.d.cts +20 -0
  64. package/dist/canvas/useCanvasCapture.d.ts +20 -0
  65. package/dist/canvas/useCanvasClipboard.d.cts +14 -0
  66. package/dist/canvas/useCanvasClipboard.d.ts +14 -0
  67. package/dist/canvas/useCanvasComponents.d.cts +74 -0
  68. package/dist/canvas/useCanvasComponents.d.ts +74 -0
  69. package/dist/canvas/useCanvasDocking.d.cts +15 -0
  70. package/dist/canvas/useCanvasDocking.d.ts +15 -0
  71. package/dist/canvas/useCanvasDraw.d.cts +37 -0
  72. package/dist/canvas/useCanvasDraw.d.ts +37 -0
  73. package/dist/canvas/useCanvasExplosion.d.cts +16 -0
  74. package/dist/canvas/useCanvasExplosion.d.ts +16 -0
  75. package/dist/canvas/useCanvasGraph.d.cts +27 -0
  76. package/dist/canvas/useCanvasGraph.d.ts +27 -0
  77. package/dist/canvas/useCanvasLayout.d.cts +25 -0
  78. package/dist/canvas/useCanvasLayout.d.ts +25 -0
  79. package/dist/canvas/useCanvasMeasure.d.cts +41 -0
  80. package/dist/canvas/useCanvasMeasure.d.ts +41 -0
  81. package/dist/canvas/useCanvasScenes.d.cts +61 -0
  82. package/dist/canvas/useCanvasScenes.d.ts +61 -0
  83. package/dist/canvas/useCanvasShortcuts.d.cts +22 -0
  84. package/dist/canvas/useCanvasShortcuts.d.ts +22 -0
  85. package/dist/canvas/useCanvasTokens.d.cts +24 -0
  86. package/dist/canvas/useCanvasTokens.d.ts +24 -0
  87. package/dist/canvas/useDiagramDirector.d.cts +21 -0
  88. package/dist/canvas/useDiagramDirector.d.ts +21 -0
  89. package/dist/canvas/useMermaidDiagram.d.cts +79 -0
  90. package/dist/canvas/useMermaidDiagram.d.ts +79 -0
  91. package/dist/canvas/useShapeBrushstroke.d.cts +37 -0
  92. package/dist/canvas/useShapeBrushstroke.d.ts +37 -0
  93. package/dist/canvas/useStreamingCanvas.d.cts +17 -0
  94. package/dist/canvas/useStreamingCanvas.d.ts +17 -0
  95. package/dist/chart/ChartCanvas.d.cts +44 -0
  96. package/dist/chart/ChartCanvas.d.ts +44 -0
  97. package/dist/chart/ChartDataGrid.d.cts +24 -0
  98. package/dist/chart/ChartDataGrid.d.ts +24 -0
  99. package/dist/chart/ChartEditor.d.cts +20 -0
  100. package/dist/chart/ChartEditor.d.ts +20 -0
  101. package/dist/chart/ChartInspector.d.cts +14 -0
  102. package/dist/chart/ChartInspector.d.ts +14 -0
  103. package/dist/chart/ChartStreamingView.d.cts +40 -0
  104. package/dist/chart/ChartStreamingView.d.ts +40 -0
  105. package/dist/chart/index.cjs +0 -1
  106. package/dist/chart/index.d.cts +7 -212
  107. package/dist/chart/index.d.ts +7 -212
  108. package/dist/chart/index.js +1 -2
  109. package/dist/chart/styles.d.cts +7 -0
  110. package/dist/chart/styles.d.ts +7 -0
  111. package/dist/chart/useChartEditor.d.cts +64 -0
  112. package/dist/chart/useChartEditor.d.ts +64 -0
  113. package/dist/chart-node/ChartNodeView.d.cts +27 -0
  114. package/dist/chart-node/ChartNodeView.d.ts +27 -0
  115. package/dist/chart-node/index.d.cts +1 -0
  116. package/dist/chart-node/index.d.ts +1 -0
  117. package/dist/{chunk-WOQ3H7KA.js → chunk-5R67YSSD.js} +1 -2
  118. package/dist/{chunk-SIEOYRHX.js → chunk-AILJ4JOW.js} +0 -1
  119. package/dist/{chunk-MO354USR.js → chunk-AJCWF6SN.js} +0 -1
  120. package/dist/{chunk-I3E4KSA2.js → chunk-FLS7Q32M.js} +0 -1
  121. package/dist/{chunk-34HEZX7J.js → chunk-GML6BYCN.js} +0 -1
  122. package/dist/{chunk-XWFU2CSG.js → chunk-NNM633RN.js} +0 -1
  123. package/dist/{chunk-ZQZAKUUM.js → chunk-OTGJEYHV.js} +0 -1
  124. package/dist/{chunk-4ZC2WCUO.js → chunk-SMLHUEEQ.js} +0 -1
  125. package/dist/{chunk-4FQXRPBN.js → chunk-SMMO7CZB.js} +2 -3
  126. package/dist/commands/CommandPalette.d.cts +16 -0
  127. package/dist/commands/CommandPalette.d.ts +16 -0
  128. package/dist/commands/index.cjs +0 -1
  129. package/dist/commands/index.d.cts +3 -69
  130. package/dist/commands/index.d.ts +3 -69
  131. package/dist/commands/index.js +1 -2
  132. package/dist/commands/useCommandPalette.d.cts +24 -0
  133. package/dist/commands/useCommandPalette.d.ts +24 -0
  134. package/dist/commands/useCommandShortcuts.d.cts +26 -0
  135. package/dist/commands/useCommandShortcuts.d.ts +26 -0
  136. package/dist/components/BubbleMenu.d.cts +13 -0
  137. package/dist/components/BubbleMenu.d.ts +13 -0
  138. package/dist/components/EditorContent.d.cts +6 -0
  139. package/dist/components/EditorContent.d.ts +6 -0
  140. package/dist/components/ExportDocxButton.d.cts +12 -0
  141. package/dist/components/ExportDocxButton.d.ts +12 -0
  142. package/dist/components/MergePreview.d.cts +28 -0
  143. package/dist/components/MergePreview.d.ts +28 -0
  144. package/dist/components/OutlinePanel.d.cts +28 -0
  145. package/dist/components/OutlinePanel.d.ts +28 -0
  146. package/dist/components/StylesGallery.d.cts +31 -0
  147. package/dist/components/StylesGallery.d.ts +31 -0
  148. package/dist/components/TemplateRenderer.d.cts +26 -0
  149. package/dist/components/TemplateRenderer.d.ts +26 -0
  150. package/dist/components/VariableForm.d.cts +27 -0
  151. package/dist/components/VariableForm.d.ts +27 -0
  152. package/dist/effects/EffectParameters.d.cts +28 -0
  153. package/dist/effects/EffectParameters.d.ts +28 -0
  154. package/dist/effects/EffectThumbnail.d.cts +15 -0
  155. package/dist/effects/EffectThumbnail.d.ts +15 -0
  156. package/dist/effects/EffectsBrowser.d.cts +22 -0
  157. package/dist/effects/EffectsBrowser.d.ts +22 -0
  158. package/dist/effects/index.cjs +0 -1
  159. package/dist/effects/index.d.cts +4 -82
  160. package/dist/effects/index.d.ts +4 -82
  161. package/dist/effects/index.js +2 -3
  162. package/dist/effects/useEffects.d.cts +16 -0
  163. package/dist/effects/useEffects.d.ts +16 -0
  164. package/dist/find-replace/FindReplaceBar.d.cts +19 -0
  165. package/dist/find-replace/FindReplaceBar.d.ts +19 -0
  166. package/dist/find-replace/index.d.cts +2 -0
  167. package/dist/find-replace/index.d.ts +2 -0
  168. package/dist/find-replace/useFindReplace.d.cts +24 -0
  169. package/dist/find-replace/useFindReplace.d.ts +24 -0
  170. package/dist/generation/AssetMentionChips.d.cts +24 -0
  171. package/dist/generation/AssetMentionChips.d.ts +24 -0
  172. package/dist/generation/GenerationHistory.d.cts +43 -0
  173. package/dist/generation/GenerationHistory.d.ts +43 -0
  174. package/dist/generation/GenerationSettings.d.cts +26 -0
  175. package/dist/generation/GenerationSettings.d.ts +26 -0
  176. package/dist/generation/JobProgress.d.cts +14 -0
  177. package/dist/generation/JobProgress.d.ts +14 -0
  178. package/dist/generation/index.cjs +0 -1
  179. package/dist/generation/index.d.cts +5 -124
  180. package/dist/generation/index.d.ts +5 -124
  181. package/dist/generation/index.js +1 -2
  182. package/dist/generation/useGenerationPlan.d.cts +18 -0
  183. package/dist/generation/useGenerationPlan.d.ts +18 -0
  184. package/dist/hooks/useAgentToolProvider.d.cts +11 -0
  185. package/dist/hooks/useAgentToolProvider.d.ts +11 -0
  186. package/dist/hooks/useDismissGuard.d.cts +26 -0
  187. package/dist/hooks/useDismissGuard.d.ts +26 -0
  188. package/dist/hooks/useDocxExport.d.cts +14 -0
  189. package/dist/hooks/useDocxExport.d.ts +14 -0
  190. package/dist/hooks/useEditor.d.cts +20 -0
  191. package/dist/hooks/useEditor.d.ts +20 -0
  192. package/dist/hooks/useFileImport.d.cts +23 -0
  193. package/dist/hooks/useFileImport.d.ts +23 -0
  194. package/dist/hooks/useHistory.d.cts +27 -0
  195. package/dist/hooks/useHistory.d.ts +27 -0
  196. package/dist/hooks/useHistoryDirty.d.cts +27 -0
  197. package/dist/hooks/useHistoryDirty.d.ts +27 -0
  198. package/dist/hooks/useHistoryShortcuts.d.cts +21 -0
  199. package/dist/hooks/useHistoryShortcuts.d.ts +21 -0
  200. package/dist/hooks/useMergePreview.d.cts +49 -0
  201. package/dist/hooks/useMergePreview.d.ts +49 -0
  202. package/dist/hooks/useNavigationGuard.d.cts +27 -0
  203. package/dist/hooks/useNavigationGuard.d.ts +27 -0
  204. package/dist/hooks/useOutline.d.cts +12 -0
  205. package/dist/hooks/useOutline.d.ts +12 -0
  206. package/dist/hooks/useParagraphStyles.d.cts +24 -0
  207. package/dist/hooks/useParagraphStyles.d.ts +24 -0
  208. package/dist/hooks/usePromptEditor.d.cts +57 -0
  209. package/dist/hooks/usePromptEditor.d.ts +57 -0
  210. package/dist/hooks/useToolBridge.d.cts +14 -0
  211. package/dist/hooks/useToolBridge.d.ts +14 -0
  212. package/dist/image-editor/AdjustmentLayersPanel.d.cts +13 -0
  213. package/dist/image-editor/AdjustmentLayersPanel.d.ts +13 -0
  214. package/dist/image-editor/BrushOptionsBar.d.cts +18 -0
  215. package/dist/image-editor/BrushOptionsBar.d.ts +18 -0
  216. package/dist/image-editor/ColorProfilePanel.d.cts +12 -0
  217. package/dist/image-editor/ColorProfilePanel.d.ts +12 -0
  218. package/dist/image-editor/ControlSlider.d.cts +12 -0
  219. package/dist/image-editor/ControlSlider.d.ts +12 -0
  220. package/dist/image-editor/CurvesEditor.d.cts +15 -0
  221. package/dist/image-editor/CurvesEditor.d.ts +15 -0
  222. package/dist/image-editor/FreeTransformOptionsBar.d.cts +14 -0
  223. package/dist/image-editor/FreeTransformOptionsBar.d.ts +14 -0
  224. package/dist/image-editor/Histogram.d.cts +14 -0
  225. package/dist/image-editor/Histogram.d.ts +14 -0
  226. package/dist/image-editor/ImageEditor.d.cts +22 -0
  227. package/dist/image-editor/ImageEditor.d.ts +22 -0
  228. package/dist/image-editor/ImageProviderEffectsPanel.d.cts +13 -0
  229. package/dist/image-editor/ImageProviderEffectsPanel.d.ts +13 -0
  230. package/dist/image-editor/LayerEffectsPanel.d.cts +14 -0
  231. package/dist/image-editor/LayerEffectsPanel.d.ts +14 -0
  232. package/dist/image-editor/LayersPanel.d.cts +22 -0
  233. package/dist/image-editor/LayersPanel.d.ts +22 -0
  234. package/dist/image-editor/PaintGradientEditor.d.cts +5 -0
  235. package/dist/image-editor/PaintGradientEditor.d.ts +5 -0
  236. package/dist/image-editor/RefineEdgePanel.d.cts +16 -0
  237. package/dist/image-editor/RefineEdgePanel.d.ts +16 -0
  238. package/dist/image-editor/SelectionOptionsBar.d.cts +18 -0
  239. package/dist/image-editor/SelectionOptionsBar.d.ts +18 -0
  240. package/dist/image-editor/ShapeOptionsBar.d.cts +14 -0
  241. package/dist/image-editor/ShapeOptionsBar.d.ts +14 -0
  242. package/dist/image-editor/TypeOptionsBar.d.cts +16 -0
  243. package/dist/image-editor/TypeOptionsBar.d.ts +16 -0
  244. package/dist/image-editor/index.cjs +0 -1
  245. package/dist/image-editor/index.d.cts +17 -296
  246. package/dist/image-editor/index.d.ts +17 -296
  247. package/dist/image-editor/index.js +4 -5
  248. package/dist/image-editor/useImageEditor.d.cts +70 -0
  249. package/dist/image-editor/useImageEditor.d.ts +70 -0
  250. package/dist/index.cjs +0 -1
  251. package/dist/index.d.cts +35 -802
  252. package/dist/index.d.ts +35 -802
  253. package/dist/index.js +9 -10
  254. package/dist/paint-editor/BrushPanel.d.cts +18 -0
  255. package/dist/paint-editor/BrushPanel.d.ts +18 -0
  256. package/dist/paint-editor/ColorPanel.d.cts +17 -0
  257. package/dist/paint-editor/ColorPanel.d.ts +17 -0
  258. package/dist/paint-editor/PaintCanvas.d.cts +40 -0
  259. package/dist/paint-editor/PaintCanvas.d.ts +40 -0
  260. package/dist/paint-editor/PaintEditor.d.cts +18 -0
  261. package/dist/paint-editor/PaintEditor.d.ts +18 -0
  262. package/dist/paint-editor/PaintEffectsPanel.d.cts +19 -0
  263. package/dist/paint-editor/PaintEffectsPanel.d.ts +19 -0
  264. package/dist/paint-editor/PaintGradientEditor.d.cts +5 -0
  265. package/dist/paint-editor/PaintGradientEditor.d.ts +5 -0
  266. package/dist/paint-editor/PaintGradientEditorView.d.cts +23 -0
  267. package/dist/paint-editor/PaintGradientEditorView.d.ts +23 -0
  268. package/dist/paint-editor/PaintLayersPanel.d.cts +12 -0
  269. package/dist/paint-editor/PaintLayersPanel.d.ts +12 -0
  270. package/dist/paint-editor/PaintToolbar.d.cts +17 -0
  271. package/dist/paint-editor/PaintToolbar.d.ts +17 -0
  272. package/dist/paint-editor/PaperPanel.d.cts +13 -0
  273. package/dist/paint-editor/PaperPanel.d.ts +13 -0
  274. package/dist/paint-editor/StickerPanel.d.cts +12 -0
  275. package/dist/paint-editor/StickerPanel.d.ts +12 -0
  276. package/dist/paint-editor/WetPanel.d.cts +14 -0
  277. package/dist/paint-editor/WetPanel.d.ts +14 -0
  278. package/dist/paint-editor/index.cjs +0 -1
  279. package/dist/paint-editor/index.d.cts +13 -211
  280. package/dist/paint-editor/index.d.ts +13 -211
  281. package/dist/paint-editor/index.js +3 -4
  282. package/dist/paint-editor/shared.d.cts +38 -0
  283. package/dist/paint-editor/shared.d.ts +38 -0
  284. package/dist/paint-editor/usePaintEditor.d.cts +22 -0
  285. package/dist/paint-editor/usePaintEditor.d.ts +22 -0
  286. package/dist/parameters/ParametersPanel.d.cts +27 -0
  287. package/dist/parameters/ParametersPanel.d.ts +27 -0
  288. package/dist/parameters/fields.d.cts +62 -0
  289. package/dist/parameters/fields.d.ts +62 -0
  290. package/dist/parameters/index.cjs +0 -1
  291. package/dist/parameters/index.d.cts +3 -121
  292. package/dist/parameters/index.d.ts +3 -121
  293. package/dist/parameters/index.js +1 -2
  294. package/dist/parameters/useParameters.d.cts +32 -0
  295. package/dist/parameters/useParameters.d.ts +32 -0
  296. package/dist/persistence/RecoveryPrompt.d.cts +20 -0
  297. package/dist/persistence/RecoveryPrompt.d.ts +20 -0
  298. package/dist/persistence/index.cjs +0 -1
  299. package/dist/persistence/index.d.cts +2 -77
  300. package/dist/persistence/index.d.ts +2 -77
  301. package/dist/persistence/index.js +1 -2
  302. package/dist/persistence/useAutosave.d.cts +54 -0
  303. package/dist/persistence/useAutosave.d.ts +54 -0
  304. package/dist/review/CommentButton.d.cts +12 -0
  305. package/dist/review/CommentButton.d.ts +12 -0
  306. package/dist/review/CommentsPanel.d.cts +21 -0
  307. package/dist/review/CommentsPanel.d.ts +21 -0
  308. package/dist/review/ReviewToolbar.d.cts +20 -0
  309. package/dist/review/ReviewToolbar.d.ts +20 -0
  310. package/dist/review/TrackedChangesList.d.cts +18 -0
  311. package/dist/review/TrackedChangesList.d.ts +18 -0
  312. package/dist/review/index.d.cts +6 -0
  313. package/dist/review/index.d.ts +6 -0
  314. package/dist/review/useDocumentCompare.d.cts +20 -0
  315. package/dist/review/useDocumentCompare.d.ts +20 -0
  316. package/dist/review/useReview.d.cts +32 -0
  317. package/dist/review/useReview.d.ts +32 -0
  318. package/dist/slots.d.cts +14 -0
  319. package/dist/slots.d.ts +14 -0
  320. package/dist/spreadsheet/FormulaHints.d.cts +24 -0
  321. package/dist/spreadsheet/FormulaHints.d.ts +24 -0
  322. package/dist/spreadsheet/NameManager.d.cts +14 -0
  323. package/dist/spreadsheet/NameManager.d.ts +14 -0
  324. package/dist/spreadsheet/SheetTabs.d.cts +13 -0
  325. package/dist/spreadsheet/SheetTabs.d.ts +13 -0
  326. package/dist/spreadsheet/SpreadsheetContextMenu.d.cts +14 -0
  327. package/dist/spreadsheet/SpreadsheetContextMenu.d.ts +14 -0
  328. package/dist/spreadsheet/SpreadsheetEditor.d.cts +24 -0
  329. package/dist/spreadsheet/SpreadsheetEditor.d.ts +24 -0
  330. package/dist/spreadsheet/SpreadsheetGroupRow.d.cts +19 -0
  331. package/dist/spreadsheet/SpreadsheetGroupRow.d.ts +19 -0
  332. package/dist/spreadsheet/SpreadsheetRulePanels.d.cts +18 -0
  333. package/dist/spreadsheet/SpreadsheetRulePanels.d.ts +18 -0
  334. package/dist/spreadsheet/SpreadsheetValidationDialog.d.cts +11 -0
  335. package/dist/spreadsheet/SpreadsheetValidationDialog.d.ts +11 -0
  336. package/dist/spreadsheet/index.cjs +0 -1
  337. package/dist/spreadsheet/index.d.cts +11 -309
  338. package/dist/spreadsheet/index.d.ts +11 -309
  339. package/dist/spreadsheet/index.js +1 -2
  340. package/dist/spreadsheet/useSpreadsheetEditor.d.cts +126 -0
  341. package/dist/spreadsheet/useSpreadsheetEditor.d.ts +126 -0
  342. package/dist/spreadsheet/useSpreadsheetTableInteractions.d.cts +30 -0
  343. package/dist/spreadsheet/useSpreadsheetTableInteractions.d.ts +30 -0
  344. package/dist/spreadsheet/useSpreadsheetViewport.d.cts +25 -0
  345. package/dist/spreadsheet/useSpreadsheetViewport.d.ts +25 -0
  346. package/dist/tables/InsertTableGrid.d.cts +25 -0
  347. package/dist/tables/InsertTableGrid.d.ts +25 -0
  348. package/dist/tables/TableBubbleMenu.d.cts +18 -0
  349. package/dist/tables/TableBubbleMenu.d.ts +18 -0
  350. package/dist/tables/TableToolbar.d.cts +23 -0
  351. package/dist/tables/TableToolbar.d.ts +23 -0
  352. package/dist/tables/index.d.cts +4 -0
  353. package/dist/tables/index.d.ts +4 -0
  354. package/dist/tables/useTableMenu.d.cts +17 -0
  355. package/dist/tables/useTableMenu.d.ts +17 -0
  356. package/dist/tokens/TokensPanel.d.cts +22 -0
  357. package/dist/tokens/TokensPanel.d.ts +22 -0
  358. package/dist/tokens/index.cjs +0 -1
  359. package/dist/tokens/index.d.cts +2 -54
  360. package/dist/tokens/index.d.ts +2 -54
  361. package/dist/tokens/index.js +0 -1
  362. package/dist/tokens/useTokens.d.cts +29 -0
  363. package/dist/tokens/useTokens.d.ts +29 -0
  364. package/dist/vector/VectorAppearancePanel.d.cts +14 -0
  365. package/dist/vector/VectorAppearancePanel.d.ts +14 -0
  366. package/dist/vector/VectorCanvas.d.cts +58 -0
  367. package/dist/vector/VectorCanvas.d.ts +58 -0
  368. package/dist/vector/VectorConnectorPanel.d.cts +12 -0
  369. package/dist/vector/VectorConnectorPanel.d.ts +12 -0
  370. package/dist/vector/VectorConstraintsPanel.d.cts +12 -0
  371. package/dist/vector/VectorConstraintsPanel.d.ts +12 -0
  372. package/dist/vector/VectorEditor.d.cts +23 -0
  373. package/dist/vector/VectorEditor.d.ts +23 -0
  374. package/dist/vector/VectorEffectsPanel.d.cts +13 -0
  375. package/dist/vector/VectorEffectsPanel.d.ts +13 -0
  376. package/dist/vector/VectorEnvelopePanel.d.cts +13 -0
  377. package/dist/vector/VectorEnvelopePanel.d.ts +13 -0
  378. package/dist/vector/VectorFramePanel.d.cts +12 -0
  379. package/dist/vector/VectorFramePanel.d.ts +12 -0
  380. package/dist/vector/VectorGeneratePanel.d.cts +15 -0
  381. package/dist/vector/VectorGeneratePanel.d.ts +15 -0
  382. package/dist/vector/VectorGradientEditor.d.cts +12 -0
  383. package/dist/vector/VectorGradientEditor.d.ts +12 -0
  384. package/dist/vector/VectorLensPanel.d.cts +12 -0
  385. package/dist/vector/VectorLensPanel.d.ts +12 -0
  386. package/dist/vector/VectorMaskPanel.d.cts +13 -0
  387. package/dist/vector/VectorMaskPanel.d.ts +13 -0
  388. package/dist/vector/VectorPagesPanel.d.cts +11 -0
  389. package/dist/vector/VectorPagesPanel.d.ts +11 -0
  390. package/dist/vector/VectorPerspectivePanel.d.cts +12 -0
  391. package/dist/vector/VectorPerspectivePanel.d.ts +12 -0
  392. package/dist/vector/VectorProviderEffectsPanel.d.cts +12 -0
  393. package/dist/vector/VectorProviderEffectsPanel.d.ts +12 -0
  394. package/dist/vector/VectorShadingPanel.d.cts +12 -0
  395. package/dist/vector/VectorShadingPanel.d.ts +12 -0
  396. package/dist/vector/VectorSymbolsPanel.d.cts +12 -0
  397. package/dist/vector/VectorSymbolsPanel.d.ts +12 -0
  398. package/dist/vector/VectorSymmetryPanel.d.cts +12 -0
  399. package/dist/vector/VectorSymmetryPanel.d.ts +12 -0
  400. package/dist/vector/VectorTextPanel.d.cts +14 -0
  401. package/dist/vector/VectorTextPanel.d.ts +14 -0
  402. package/dist/vector/VectorToolbar.d.cts +39 -0
  403. package/dist/vector/VectorToolbar.d.ts +39 -0
  404. package/dist/vector/VectorTracePanel.d.cts +12 -0
  405. package/dist/vector/VectorTracePanel.d.ts +12 -0
  406. package/dist/vector/VectorWidthPointEditor.d.cts +18 -0
  407. package/dist/vector/VectorWidthPointEditor.d.ts +18 -0
  408. package/dist/vector/index.cjs +14 -2
  409. package/dist/vector/index.d.cts +23 -384
  410. package/dist/vector/index.d.ts +23 -384
  411. package/dist/vector/index.js +17 -4
  412. package/dist/vector/useVectorEditor.d.cts +40 -0
  413. package/dist/vector/useVectorEditor.d.ts +40 -0
  414. package/dist/video-editor/ClipInspector.d.cts +14 -0
  415. package/dist/video-editor/ClipInspector.d.ts +14 -0
  416. package/dist/video-editor/MediaBin.d.cts +18 -0
  417. package/dist/video-editor/MediaBin.d.ts +18 -0
  418. package/dist/video-editor/TranscriptPanel.d.cts +17 -0
  419. package/dist/video-editor/TranscriptPanel.d.ts +17 -0
  420. package/dist/video-editor/VideoEditor.d.cts +41 -0
  421. package/dist/video-editor/VideoEditor.d.ts +41 -0
  422. package/dist/video-editor/VideoEffectsPanel.d.cts +13 -0
  423. package/dist/video-editor/VideoEffectsPanel.d.ts +13 -0
  424. package/dist/video-editor/VideoPreview.d.cts +17 -0
  425. package/dist/video-editor/VideoPreview.d.ts +17 -0
  426. package/dist/video-editor/VideoScopes.d.cts +17 -0
  427. package/dist/video-editor/VideoScopes.d.ts +17 -0
  428. package/dist/video-editor/VideoTimeline.d.cts +15 -0
  429. package/dist/video-editor/VideoTimeline.d.ts +15 -0
  430. package/dist/video-editor/VideoTransport.d.cts +14 -0
  431. package/dist/video-editor/VideoTransport.d.ts +14 -0
  432. package/dist/video-editor/index.cjs +0 -1
  433. package/dist/video-editor/index.d.cts +10 -203
  434. package/dist/video-editor/index.d.ts +10 -203
  435. package/dist/video-editor/index.js +2 -3
  436. package/dist/video-editor/useVideoEditor.d.cts +42 -0
  437. package/dist/video-editor/useVideoEditor.d.ts +42 -0
  438. package/package.json +124 -49
  439. package/dist/PaintGradientEditorView-CCPCY5Ib.d.cts +0 -14
  440. package/dist/PaintGradientEditorView-CCPCY5Ib.d.ts +0 -14
  441. package/dist/animation-editor/index.cjs.map +0 -1
  442. package/dist/animation-editor/index.js.map +0 -1
  443. package/dist/canvas/index.cjs.map +0 -1
  444. package/dist/canvas/index.js.map +0 -1
  445. package/dist/chart/index.cjs.map +0 -1
  446. package/dist/chart/index.js.map +0 -1
  447. package/dist/chunk-34HEZX7J.js.map +0 -1
  448. package/dist/chunk-4FQXRPBN.js.map +0 -1
  449. package/dist/chunk-4ZC2WCUO.js.map +0 -1
  450. package/dist/chunk-I3E4KSA2.js.map +0 -1
  451. package/dist/chunk-MO354USR.js.map +0 -1
  452. package/dist/chunk-SIEOYRHX.js.map +0 -1
  453. package/dist/chunk-WOQ3H7KA.js.map +0 -1
  454. package/dist/chunk-XWFU2CSG.js.map +0 -1
  455. package/dist/chunk-ZQZAKUUM.js.map +0 -1
  456. package/dist/commands/index.cjs.map +0 -1
  457. package/dist/commands/index.js.map +0 -1
  458. package/dist/effects/index.cjs.map +0 -1
  459. package/dist/effects/index.js.map +0 -1
  460. package/dist/generation/index.cjs.map +0 -1
  461. package/dist/generation/index.js.map +0 -1
  462. package/dist/image-editor/index.cjs.map +0 -1
  463. package/dist/image-editor/index.js.map +0 -1
  464. package/dist/index.cjs.map +0 -1
  465. package/dist/index.js.map +0 -1
  466. package/dist/paint-editor/index.cjs.map +0 -1
  467. package/dist/paint-editor/index.js.map +0 -1
  468. package/dist/parameters/index.cjs.map +0 -1
  469. package/dist/parameters/index.js.map +0 -1
  470. package/dist/persistence/index.cjs.map +0 -1
  471. package/dist/persistence/index.js.map +0 -1
  472. package/dist/spreadsheet/index.cjs.map +0 -1
  473. package/dist/spreadsheet/index.js.map +0 -1
  474. package/dist/tokens/index.cjs.map +0 -1
  475. package/dist/tokens/index.js.map +0 -1
  476. package/dist/vector/index.cjs.map +0 -1
  477. package/dist/vector/index.js.map +0 -1
  478. package/dist/video-editor/index.cjs.map +0 -1
  479. package/dist/video-editor/index.js.map +0 -1
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import { type ChartSparklineOptions, type ChartStreamFormat, type ChartTheme, type ChartValue } from '@pixerate/editor/chart';
3
+ export interface ChartStreamingViewProps {
4
+ /** Mermaid (xychart-beta, pie, radar-beta) or a JSON chart spec, as far as it has arrived. */
5
+ source: string;
6
+ /** Nothing more will arrive: the final chart is drawn at once and problems are reported. */
7
+ complete?: boolean;
8
+ format?: ChartStreamFormat;
9
+ width?: number;
10
+ height?: number;
11
+ theme?: Partial<ChartTheme>;
12
+ /** How often a new layout is adopted while streaming (ms, default 300). */
13
+ adoptInterval?: number;
14
+ /** Tween length between layouts (ms, default 450; 0 to switch at once). */
15
+ tween?: number;
16
+ /** Shown before anything can be drawn. */
17
+ placeholder?: React.ReactNode;
18
+ /** Called with the parse problems once `complete`. */
19
+ onIssues?: (issues: {
20
+ message: string;
21
+ line?: number;
22
+ }[]) => void;
23
+ className?: string;
24
+ }
25
+ /**
26
+ * Draws a chart whose source is still arriving (e.g. from a model): series appear as their
27
+ * values come in, the value axis only grows so it does not jump, and each new layout tweens
28
+ * from the last. Read-only; load the final spec into a `ChartController` to edit it.
29
+ */
30
+ export declare function ChartStreamingView({ source, complete, format, width, height, theme, adoptInterval, tween, placeholder, onIssues, className }: ChartStreamingViewProps): React.JSX.Element;
31
+ export interface ChartSparklineProps extends Omit<ChartSparklineOptions, 'width' | 'height'> {
32
+ values: readonly ChartValue[];
33
+ width?: number;
34
+ height?: number;
35
+ /** Accessible label (default: first and last value). */
36
+ label?: string;
37
+ className?: string;
38
+ }
39
+ /** A word-sized chart: line, column or win/loss. */
40
+ export declare function ChartSparkline({ values, width, height, label, className, ...options }: ChartSparklineProps): React.JSX.Element;
@@ -883,4 +883,3 @@ function ChartSparkline({ values, width = 80, height = 20, label, className, ...
883
883
  useChartToolProvider,
884
884
  useOfficeChartToolProvider
885
885
  });
886
- //# sourceMappingURL=index.cjs.map
@@ -1,212 +1,7 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
3
- import { ToolRegistry } from '@pixerate/editor/tools';
4
- import { ChartToolProviderOptions, ChartController, ChartState, ChartSelection, ChartSpecPatch, ChartActionResult, ChartType, ChartCommandOptions, ChartControllerOptions, ChartScene, ChartPresence, ChartDirector, OfficeChartToolProviderOptions, ChartTheme, ChartTextMeasure, ChartMark, DownloadChartPngOptions, ChartSparklineOptions, ChartValue, ChartStreamFormat } from '@pixerate/editor/chart';
5
-
6
- /** A `ChartController` created once for the component's lifetime. */
7
- declare function useChartController(options?: ChartControllerOptions): ChartController;
8
- /** The controller's state (re-renders on every change). */
9
- declare function useChartState(controller: ChartController): ChartState;
10
- interface UseChartEditorResult {
11
- controller: ChartController;
12
- state: ChartState;
13
- spec: ChartState['spec'];
14
- selection: ChartSelection | null;
15
- update: (patch: ChartSpecPatch) => ChartActionResult;
16
- setType: (type: ChartType) => ChartActionResult;
17
- setValue: (seriesId: string, index: number, value: unknown) => ChartActionResult;
18
- select: (selection: ChartSelection | null) => void;
19
- undo: () => void;
20
- redo: () => void;
21
- }
22
- /**
23
- * Subscribes to a chart controller and exposes its state with bound actions. Pass options
24
- * instead of a controller to create one for the component's lifetime.
25
- */
26
- declare function useChartEditor(controllerOrOptions?: ChartController | ChartControllerOptions): UseChartEditorResult;
27
- /** Anything with `register(specs) → unregister` (a `CommandRegistry`). */
28
- interface ChartCommandTarget {
29
- register(specs: any): () => void;
30
- }
31
- /**
32
- * Registers the controller's palette / agent commands (`chart.describe`, `chart.update`,
33
- * `chart.setValues`, …) in `registry` while mounted.
34
- */
35
- declare function useChartCommands(registry: ChartCommandTarget | null | undefined, controller: ChartController, options?: ChartCommandOptions): void;
36
- /** `useChartToolProvider` options: `rasterize` defaults to a canvas rasterizer in the browser (`false` turns PNG off). */
37
- type ChartToolProviderHookOptions = Omit<ChartToolProviderOptions, 'rasterize'> & {
38
- rasterize?: ChartToolProviderOptions['rasterize'] | false;
39
- };
40
- /**
41
- * Registers the chart's agent tools (`createChartToolProvider`) with a `ToolRegistry` while
42
- * mounted. Options are read when the controller or registry changes. In the browser,
43
- * `render_chart { format: "png" }` works out of the box (`createChartRasterizer`).
44
- */
45
- declare function useChartToolProvider(registry: ToolRegistry | null | undefined, controller: ChartController, options?: ChartToolProviderHookOptions): void;
46
- /**
47
- * Registers the Office-file chart tools (`createOfficeChartToolProvider`: `list_file_charts`,
48
- * `get_file_chart`, and `load_file_chart` with a `controller`) while mounted. `files` and
49
- * `readOnly` are read on every call, so they can change without re-registering.
50
- */
51
- declare function useOfficeChartToolProvider(registry: ToolRegistry | null | undefined, options?: OfficeChartToolProviderOptions): void;
52
- /**
53
- * A `ChartPresence` and `ChartDirector` for a chart: pass `presence` and `sceneRef` to
54
- * `ChartCanvas`, and `director` to `useChartToolProvider` so agent edits are acted out with a
55
- * cursor.
56
- */
57
- declare function useChartDirector(controller: ChartController, options?: {
58
- speed?: number;
59
- size?: {
60
- width: number;
61
- height: number;
62
- };
63
- }): {
64
- sceneRef: React.RefObject<ChartScene | null>;
65
- presence: ChartPresence;
66
- director: ChartDirector;
67
- };
68
-
69
- declare const chartInputClass = "h-7 w-full min-w-0 rounded-md border border-input bg-background px-2 text-xs text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50";
70
- declare const chartButtonClass = "inline-flex h-7 items-center justify-center gap-1 rounded-md border border-input bg-background px-2 text-xs text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-50";
71
- declare const chartIconButtonClass = "inline-flex h-6 w-6 shrink-0 items-center justify-center rounded text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-40";
72
- declare const chartSegmentClass: (active: boolean) => string;
73
- declare const chartLabelClass = "text-[11px] font-medium text-muted-foreground";
74
- declare const chartSectionClass = "space-y-2 border-b border-border pb-3 last:border-b-0";
75
- declare const chartCellClass = "h-7 w-full min-w-[4.5rem] bg-transparent px-2 text-right text-xs tabular-nums text-foreground focus-visible:bg-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-primary";
76
-
77
- interface ChartCanvasProps {
78
- controller: ChartController;
79
- /** Scene width; with `responsive` this is only the fallback before the container is measured (default 640). */
80
- width?: number;
81
- /** Scene height in pixels (default 400). */
82
- height?: number;
83
- /** Follow the container's width (default `true`). */
84
- responsive?: boolean;
85
- /** Colours and type (default: shadcn-style CSS variables). */
86
- theme?: Partial<ChartTheme>;
87
- /** Click to select, drag bars and points, keyboard editing (default `true`). */
88
- editable?: boolean;
89
- /** Text width for layout (default: an estimate). */
90
- measureText?: ChartTextMeasure;
91
- emptyMessage?: string;
92
- className?: string;
93
- /** Agent cursors to draw over the chart (see `ChartDirector`). */
94
- presence?: ChartPresence;
95
- /** Receives the scene as drawn (e.g. for `ChartDirector`'s `scene`). */
96
- sceneRef?: {
97
- current: ChartScene | null;
98
- };
99
- }
100
- /** SVG attributes for one mark (colours go in `style` so CSS variables work). */
101
- declare function renderChartMark(mark: ChartMark, fontFamily: string, interactive: boolean): React__default.ReactNode;
102
- /** Agent cursors and notes, drawn in scene coordinates inside the chart's SVG. */
103
- declare function ChartPresenceLayer({ presence }: {
104
- presence: ChartPresence;
105
- }): React__default.JSX.Element;
106
- /** A laid-out scene as an SVG (no interaction): for read-only views, streaming and exports. */
107
- declare function ChartSceneSvg({ scene, label, className }: {
108
- scene: ChartScene;
109
- label?: string;
110
- className?: string;
111
- }): React__default.JSX.Element;
112
- /**
113
- * Draws a chart controller's spec as SVG. Click a mark to select it, drag a bar or point to
114
- * change its value (one undo step; Alt for fine steps, Shift to keep one axis on scatter
115
- * charts, Ctrl / ⌘ to skip snapping, Escape to cancel), and with the chart focused use
116
- * ← → ↑ ↓, Delete and Escape (see `handleChartKey`).
117
- */
118
- declare function ChartCanvas({ controller, width, height, responsive, theme, editable, measureText, emptyMessage, className, presence, sceneRef }: ChartCanvasProps): React__default.JSX.Element;
119
-
120
- type CommitInputProps = {
121
- value: string;
122
- /** Called with the typed text. Return `false` to show the stored value again (a refused edit). */
123
- onCommit: (value: string) => boolean | void;
124
- } & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'defaultValue'>;
125
- /** A text box that commits on blur or Enter and resets on Escape. Follows `value` unless the user is typing. */
126
- declare function ChartCommitInput({ value, onCommit, onKeyDown, onBlur, ...rest }: CommitInputProps): React__default.JSX.Element;
127
- interface ChartDataGridProps {
128
- controller: ChartController;
129
- /** Header of the category column (default "Category"). */
130
- categoryHeader?: string;
131
- /** Hide the add / delete buttons. */
132
- readOnly?: boolean;
133
- className?: string;
134
- }
135
- /**
136
- * The chart's data as an editable grid: categories down the side, one column per series
137
- * (name, colour, show / hide, delete). Cells take numbers as people type them (`1,200`,
138
- * `12%`, blank for a gap); pasting TSV or CSV fills and grows the grid from the cell.
139
- */
140
- declare function ChartDataGrid({ controller, categoryHeader, readOnly, className }: ChartDataGridProps): React__default.JSX.Element;
141
-
142
- interface ChartInspectorProps {
143
- controller: ChartController;
144
- /** Which sections to show (default: all that apply to the chart). */
145
- sections?: readonly ChartInspectorSection[];
146
- className?: string;
147
- }
148
- type ChartInspectorSection = 'type' | 'style' | 'titles' | 'options' | 'legend' | 'axes' | 'series';
149
- /**
150
- * Settings for a chart controller: type, titles, stacking and line options, legend, both
151
- * axes and the selected series. Every change is one undo step.
152
- */
153
- declare function ChartInspector({ controller, sections, className }: ChartInspectorProps): React__default.JSX.Element;
154
-
155
- interface ChartEditorProps {
156
- controller: ChartController;
157
- /** The settings sidebar (default `true`). */
158
- showInspector?: boolean;
159
- /** The data grid under the chart (default `true`). */
160
- showDataGrid?: boolean;
161
- /** Undo / redo, Download PNG and the selection readout (default `true`). */
162
- showToolbar?: boolean;
163
- /** Size, theme, scale and file name for the toolbar's Download PNG (default 800 × 450, light theme). */
164
- pngOptions?: DownloadChartPngOptions;
165
- /** Chart height in pixels (default 380). */
166
- height?: number;
167
- canvasProps?: Omit<ChartCanvasProps, 'controller' | 'height'>;
168
- className?: string;
169
- }
170
- /** Toolbar, chart, settings sidebar and data grid for a `ChartController`. */
171
- declare function ChartEditor({ controller, showInspector, showDataGrid, showToolbar, pngOptions, height, canvasProps, className }: ChartEditorProps): React__default.JSX.Element;
172
-
173
- interface ChartStreamingViewProps {
174
- /** Mermaid (xychart-beta, pie, radar-beta) or a JSON chart spec, as far as it has arrived. */
175
- source: string;
176
- /** Nothing more will arrive: the final chart is drawn at once and problems are reported. */
177
- complete?: boolean;
178
- format?: ChartStreamFormat;
179
- width?: number;
180
- height?: number;
181
- theme?: Partial<ChartTheme>;
182
- /** How often a new layout is adopted while streaming (ms, default 300). */
183
- adoptInterval?: number;
184
- /** Tween length between layouts (ms, default 450; 0 to switch at once). */
185
- tween?: number;
186
- /** Shown before anything can be drawn. */
187
- placeholder?: React__default.ReactNode;
188
- /** Called with the parse problems once `complete`. */
189
- onIssues?: (issues: {
190
- message: string;
191
- line?: number;
192
- }[]) => void;
193
- className?: string;
194
- }
195
- /**
196
- * Draws a chart whose source is still arriving (e.g. from a model): series appear as their
197
- * values come in, the value axis only grows so it does not jump, and each new layout tweens
198
- * from the last. Read-only; load the final spec into a `ChartController` to edit it.
199
- */
200
- declare function ChartStreamingView({ source, complete, format, width, height, theme, adoptInterval, tween, placeholder, onIssues, className }: ChartStreamingViewProps): React__default.JSX.Element;
201
- interface ChartSparklineProps extends Omit<ChartSparklineOptions, 'width' | 'height'> {
202
- values: readonly ChartValue[];
203
- width?: number;
204
- height?: number;
205
- /** Accessible label (default: first and last value). */
206
- label?: string;
207
- className?: string;
208
- }
209
- /** A word-sized chart: line, column or win/loss. */
210
- declare function ChartSparkline({ values, width, height, label, className, ...options }: ChartSparklineProps): React__default.JSX.Element;
211
-
212
- export { ChartCanvas, type ChartCanvasProps, type ChartCommandTarget, ChartCommitInput, ChartDataGrid, type ChartDataGridProps, ChartEditor, type ChartEditorProps, ChartInspector, type ChartInspectorProps, type ChartInspectorSection, ChartPresenceLayer, ChartSceneSvg, ChartSparkline, type ChartSparklineProps, ChartStreamingView, type ChartStreamingViewProps, type ChartToolProviderHookOptions, type UseChartEditorResult, chartButtonClass, chartCellClass, chartIconButtonClass, chartInputClass, chartLabelClass, chartSectionClass, chartSegmentClass, renderChartMark, useChartCommands, useChartController, useChartDirector, useChartEditor, useChartState, useChartToolProvider, useOfficeChartToolProvider };
1
+ export * from './useChartEditor.cjs';
2
+ export * from './styles.cjs';
3
+ export * from './ChartCanvas.cjs';
4
+ export * from './ChartDataGrid.cjs';
5
+ export * from './ChartInspector.cjs';
6
+ export * from './ChartEditor.cjs';
7
+ export * from './ChartStreamingView.cjs';
@@ -1,212 +1,7 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
3
- import { ToolRegistry } from '@pixerate/editor/tools';
4
- import { ChartToolProviderOptions, ChartController, ChartState, ChartSelection, ChartSpecPatch, ChartActionResult, ChartType, ChartCommandOptions, ChartControllerOptions, ChartScene, ChartPresence, ChartDirector, OfficeChartToolProviderOptions, ChartTheme, ChartTextMeasure, ChartMark, DownloadChartPngOptions, ChartSparklineOptions, ChartValue, ChartStreamFormat } from '@pixerate/editor/chart';
5
-
6
- /** A `ChartController` created once for the component's lifetime. */
7
- declare function useChartController(options?: ChartControllerOptions): ChartController;
8
- /** The controller's state (re-renders on every change). */
9
- declare function useChartState(controller: ChartController): ChartState;
10
- interface UseChartEditorResult {
11
- controller: ChartController;
12
- state: ChartState;
13
- spec: ChartState['spec'];
14
- selection: ChartSelection | null;
15
- update: (patch: ChartSpecPatch) => ChartActionResult;
16
- setType: (type: ChartType) => ChartActionResult;
17
- setValue: (seriesId: string, index: number, value: unknown) => ChartActionResult;
18
- select: (selection: ChartSelection | null) => void;
19
- undo: () => void;
20
- redo: () => void;
21
- }
22
- /**
23
- * Subscribes to a chart controller and exposes its state with bound actions. Pass options
24
- * instead of a controller to create one for the component's lifetime.
25
- */
26
- declare function useChartEditor(controllerOrOptions?: ChartController | ChartControllerOptions): UseChartEditorResult;
27
- /** Anything with `register(specs) → unregister` (a `CommandRegistry`). */
28
- interface ChartCommandTarget {
29
- register(specs: any): () => void;
30
- }
31
- /**
32
- * Registers the controller's palette / agent commands (`chart.describe`, `chart.update`,
33
- * `chart.setValues`, …) in `registry` while mounted.
34
- */
35
- declare function useChartCommands(registry: ChartCommandTarget | null | undefined, controller: ChartController, options?: ChartCommandOptions): void;
36
- /** `useChartToolProvider` options: `rasterize` defaults to a canvas rasterizer in the browser (`false` turns PNG off). */
37
- type ChartToolProviderHookOptions = Omit<ChartToolProviderOptions, 'rasterize'> & {
38
- rasterize?: ChartToolProviderOptions['rasterize'] | false;
39
- };
40
- /**
41
- * Registers the chart's agent tools (`createChartToolProvider`) with a `ToolRegistry` while
42
- * mounted. Options are read when the controller or registry changes. In the browser,
43
- * `render_chart { format: "png" }` works out of the box (`createChartRasterizer`).
44
- */
45
- declare function useChartToolProvider(registry: ToolRegistry | null | undefined, controller: ChartController, options?: ChartToolProviderHookOptions): void;
46
- /**
47
- * Registers the Office-file chart tools (`createOfficeChartToolProvider`: `list_file_charts`,
48
- * `get_file_chart`, and `load_file_chart` with a `controller`) while mounted. `files` and
49
- * `readOnly` are read on every call, so they can change without re-registering.
50
- */
51
- declare function useOfficeChartToolProvider(registry: ToolRegistry | null | undefined, options?: OfficeChartToolProviderOptions): void;
52
- /**
53
- * A `ChartPresence` and `ChartDirector` for a chart: pass `presence` and `sceneRef` to
54
- * `ChartCanvas`, and `director` to `useChartToolProvider` so agent edits are acted out with a
55
- * cursor.
56
- */
57
- declare function useChartDirector(controller: ChartController, options?: {
58
- speed?: number;
59
- size?: {
60
- width: number;
61
- height: number;
62
- };
63
- }): {
64
- sceneRef: React.RefObject<ChartScene | null>;
65
- presence: ChartPresence;
66
- director: ChartDirector;
67
- };
68
-
69
- declare const chartInputClass = "h-7 w-full min-w-0 rounded-md border border-input bg-background px-2 text-xs text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50";
70
- declare const chartButtonClass = "inline-flex h-7 items-center justify-center gap-1 rounded-md border border-input bg-background px-2 text-xs text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-50";
71
- declare const chartIconButtonClass = "inline-flex h-6 w-6 shrink-0 items-center justify-center rounded text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-40";
72
- declare const chartSegmentClass: (active: boolean) => string;
73
- declare const chartLabelClass = "text-[11px] font-medium text-muted-foreground";
74
- declare const chartSectionClass = "space-y-2 border-b border-border pb-3 last:border-b-0";
75
- declare const chartCellClass = "h-7 w-full min-w-[4.5rem] bg-transparent px-2 text-right text-xs tabular-nums text-foreground focus-visible:bg-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-primary";
76
-
77
- interface ChartCanvasProps {
78
- controller: ChartController;
79
- /** Scene width; with `responsive` this is only the fallback before the container is measured (default 640). */
80
- width?: number;
81
- /** Scene height in pixels (default 400). */
82
- height?: number;
83
- /** Follow the container's width (default `true`). */
84
- responsive?: boolean;
85
- /** Colours and type (default: shadcn-style CSS variables). */
86
- theme?: Partial<ChartTheme>;
87
- /** Click to select, drag bars and points, keyboard editing (default `true`). */
88
- editable?: boolean;
89
- /** Text width for layout (default: an estimate). */
90
- measureText?: ChartTextMeasure;
91
- emptyMessage?: string;
92
- className?: string;
93
- /** Agent cursors to draw over the chart (see `ChartDirector`). */
94
- presence?: ChartPresence;
95
- /** Receives the scene as drawn (e.g. for `ChartDirector`'s `scene`). */
96
- sceneRef?: {
97
- current: ChartScene | null;
98
- };
99
- }
100
- /** SVG attributes for one mark (colours go in `style` so CSS variables work). */
101
- declare function renderChartMark(mark: ChartMark, fontFamily: string, interactive: boolean): React__default.ReactNode;
102
- /** Agent cursors and notes, drawn in scene coordinates inside the chart's SVG. */
103
- declare function ChartPresenceLayer({ presence }: {
104
- presence: ChartPresence;
105
- }): React__default.JSX.Element;
106
- /** A laid-out scene as an SVG (no interaction): for read-only views, streaming and exports. */
107
- declare function ChartSceneSvg({ scene, label, className }: {
108
- scene: ChartScene;
109
- label?: string;
110
- className?: string;
111
- }): React__default.JSX.Element;
112
- /**
113
- * Draws a chart controller's spec as SVG. Click a mark to select it, drag a bar or point to
114
- * change its value (one undo step; Alt for fine steps, Shift to keep one axis on scatter
115
- * charts, Ctrl / ⌘ to skip snapping, Escape to cancel), and with the chart focused use
116
- * ← → ↑ ↓, Delete and Escape (see `handleChartKey`).
117
- */
118
- declare function ChartCanvas({ controller, width, height, responsive, theme, editable, measureText, emptyMessage, className, presence, sceneRef }: ChartCanvasProps): React__default.JSX.Element;
119
-
120
- type CommitInputProps = {
121
- value: string;
122
- /** Called with the typed text. Return `false` to show the stored value again (a refused edit). */
123
- onCommit: (value: string) => boolean | void;
124
- } & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange' | 'defaultValue'>;
125
- /** A text box that commits on blur or Enter and resets on Escape. Follows `value` unless the user is typing. */
126
- declare function ChartCommitInput({ value, onCommit, onKeyDown, onBlur, ...rest }: CommitInputProps): React__default.JSX.Element;
127
- interface ChartDataGridProps {
128
- controller: ChartController;
129
- /** Header of the category column (default "Category"). */
130
- categoryHeader?: string;
131
- /** Hide the add / delete buttons. */
132
- readOnly?: boolean;
133
- className?: string;
134
- }
135
- /**
136
- * The chart's data as an editable grid: categories down the side, one column per series
137
- * (name, colour, show / hide, delete). Cells take numbers as people type them (`1,200`,
138
- * `12%`, blank for a gap); pasting TSV or CSV fills and grows the grid from the cell.
139
- */
140
- declare function ChartDataGrid({ controller, categoryHeader, readOnly, className }: ChartDataGridProps): React__default.JSX.Element;
141
-
142
- interface ChartInspectorProps {
143
- controller: ChartController;
144
- /** Which sections to show (default: all that apply to the chart). */
145
- sections?: readonly ChartInspectorSection[];
146
- className?: string;
147
- }
148
- type ChartInspectorSection = 'type' | 'style' | 'titles' | 'options' | 'legend' | 'axes' | 'series';
149
- /**
150
- * Settings for a chart controller: type, titles, stacking and line options, legend, both
151
- * axes and the selected series. Every change is one undo step.
152
- */
153
- declare function ChartInspector({ controller, sections, className }: ChartInspectorProps): React__default.JSX.Element;
154
-
155
- interface ChartEditorProps {
156
- controller: ChartController;
157
- /** The settings sidebar (default `true`). */
158
- showInspector?: boolean;
159
- /** The data grid under the chart (default `true`). */
160
- showDataGrid?: boolean;
161
- /** Undo / redo, Download PNG and the selection readout (default `true`). */
162
- showToolbar?: boolean;
163
- /** Size, theme, scale and file name for the toolbar's Download PNG (default 800 × 450, light theme). */
164
- pngOptions?: DownloadChartPngOptions;
165
- /** Chart height in pixels (default 380). */
166
- height?: number;
167
- canvasProps?: Omit<ChartCanvasProps, 'controller' | 'height'>;
168
- className?: string;
169
- }
170
- /** Toolbar, chart, settings sidebar and data grid for a `ChartController`. */
171
- declare function ChartEditor({ controller, showInspector, showDataGrid, showToolbar, pngOptions, height, canvasProps, className }: ChartEditorProps): React__default.JSX.Element;
172
-
173
- interface ChartStreamingViewProps {
174
- /** Mermaid (xychart-beta, pie, radar-beta) or a JSON chart spec, as far as it has arrived. */
175
- source: string;
176
- /** Nothing more will arrive: the final chart is drawn at once and problems are reported. */
177
- complete?: boolean;
178
- format?: ChartStreamFormat;
179
- width?: number;
180
- height?: number;
181
- theme?: Partial<ChartTheme>;
182
- /** How often a new layout is adopted while streaming (ms, default 300). */
183
- adoptInterval?: number;
184
- /** Tween length between layouts (ms, default 450; 0 to switch at once). */
185
- tween?: number;
186
- /** Shown before anything can be drawn. */
187
- placeholder?: React__default.ReactNode;
188
- /** Called with the parse problems once `complete`. */
189
- onIssues?: (issues: {
190
- message: string;
191
- line?: number;
192
- }[]) => void;
193
- className?: string;
194
- }
195
- /**
196
- * Draws a chart whose source is still arriving (e.g. from a model): series appear as their
197
- * values come in, the value axis only grows so it does not jump, and each new layout tweens
198
- * from the last. Read-only; load the final spec into a `ChartController` to edit it.
199
- */
200
- declare function ChartStreamingView({ source, complete, format, width, height, theme, adoptInterval, tween, placeholder, onIssues, className }: ChartStreamingViewProps): React__default.JSX.Element;
201
- interface ChartSparklineProps extends Omit<ChartSparklineOptions, 'width' | 'height'> {
202
- values: readonly ChartValue[];
203
- width?: number;
204
- height?: number;
205
- /** Accessible label (default: first and last value). */
206
- label?: string;
207
- className?: string;
208
- }
209
- /** A word-sized chart: line, column or win/loss. */
210
- declare function ChartSparkline({ values, width, height, label, className, ...options }: ChartSparklineProps): React__default.JSX.Element;
211
-
212
- export { ChartCanvas, type ChartCanvasProps, type ChartCommandTarget, ChartCommitInput, ChartDataGrid, type ChartDataGridProps, ChartEditor, type ChartEditorProps, ChartInspector, type ChartInspectorProps, type ChartInspectorSection, ChartPresenceLayer, ChartSceneSvg, ChartSparkline, type ChartSparklineProps, ChartStreamingView, type ChartStreamingViewProps, type ChartToolProviderHookOptions, type UseChartEditorResult, chartButtonClass, chartCellClass, chartIconButtonClass, chartInputClass, chartLabelClass, chartSectionClass, chartSegmentClass, renderChartMark, useChartCommands, useChartController, useChartDirector, useChartEditor, useChartState, useChartToolProvider, useOfficeChartToolProvider };
1
+ export * from './useChartEditor.js';
2
+ export * from './styles.js';
3
+ export * from './ChartCanvas.js';
4
+ export * from './ChartDataGrid.js';
5
+ export * from './ChartInspector.js';
6
+ export * from './ChartEditor.js';
7
+ export * from './ChartStreamingView.js';
@@ -20,7 +20,7 @@ import {
20
20
  useChartState,
21
21
  useChartToolProvider,
22
22
  useOfficeChartToolProvider
23
- } from "../chunk-SIEOYRHX.js";
23
+ } from "../chunk-AILJ4JOW.js";
24
24
 
25
25
  // src/chart/ChartEditor.tsx
26
26
  import { useState } from "react";
@@ -138,4 +138,3 @@ export {
138
138
  useChartToolProvider,
139
139
  useOfficeChartToolProvider
140
140
  };
141
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ export declare const chartInputClass = "h-7 w-full min-w-0 rounded-md border border-input bg-background px-2 text-xs text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50";
2
+ export declare const chartButtonClass = "inline-flex h-7 items-center justify-center gap-1 rounded-md border border-input bg-background px-2 text-xs text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-50";
3
+ export declare const chartIconButtonClass = "inline-flex h-6 w-6 shrink-0 items-center justify-center rounded text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-40";
4
+ export declare const chartSegmentClass: (active: boolean) => string;
5
+ export declare const chartLabelClass = "text-[11px] font-medium text-muted-foreground";
6
+ export declare const chartSectionClass = "space-y-2 border-b border-border pb-3 last:border-b-0";
7
+ export declare const chartCellClass = "h-7 w-full min-w-[4.5rem] bg-transparent px-2 text-right text-xs tabular-nums text-foreground focus-visible:bg-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-primary";
@@ -0,0 +1,7 @@
1
+ export declare const chartInputClass = "h-7 w-full min-w-0 rounded-md border border-input bg-background px-2 text-xs text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:cursor-not-allowed disabled:opacity-50";
2
+ export declare const chartButtonClass = "inline-flex h-7 items-center justify-center gap-1 rounded-md border border-input bg-background px-2 text-xs text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-50";
3
+ export declare const chartIconButtonClass = "inline-flex h-6 w-6 shrink-0 items-center justify-center rounded text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary disabled:pointer-events-none disabled:opacity-40";
4
+ export declare const chartSegmentClass: (active: boolean) => string;
5
+ export declare const chartLabelClass = "text-[11px] font-medium text-muted-foreground";
6
+ export declare const chartSectionClass = "space-y-2 border-b border-border pb-3 last:border-b-0";
7
+ export declare const chartCellClass = "h-7 w-full min-w-[4.5rem] bg-transparent px-2 text-right text-xs tabular-nums text-foreground focus-visible:bg-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-primary";
@@ -0,0 +1,64 @@
1
+ import type { ToolRegistry } from '@pixerate/editor/tools';
2
+ import { ChartController, ChartDirector, ChartPresence, type OfficeChartToolProviderOptions, type ChartScene, type ChartToolProviderOptions, type ChartActionResult, type ChartCommandOptions, type ChartControllerOptions, type ChartSelection, type ChartSpecPatch, type ChartState, type ChartType } from '@pixerate/editor/chart';
3
+ /** A `ChartController` created once for the component's lifetime. */
4
+ export declare function useChartController(options?: ChartControllerOptions): ChartController;
5
+ /** The controller's state (re-renders on every change). */
6
+ export declare function useChartState(controller: ChartController): ChartState;
7
+ export interface UseChartEditorResult {
8
+ controller: ChartController;
9
+ state: ChartState;
10
+ spec: ChartState['spec'];
11
+ selection: ChartSelection | null;
12
+ update: (patch: ChartSpecPatch) => ChartActionResult;
13
+ setType: (type: ChartType) => ChartActionResult;
14
+ setValue: (seriesId: string, index: number, value: unknown) => ChartActionResult;
15
+ select: (selection: ChartSelection | null) => void;
16
+ undo: () => void;
17
+ redo: () => void;
18
+ }
19
+ /**
20
+ * Subscribes to a chart controller and exposes its state with bound actions. Pass options
21
+ * instead of a controller to create one for the component's lifetime.
22
+ */
23
+ export declare function useChartEditor(controllerOrOptions?: ChartController | ChartControllerOptions): UseChartEditorResult;
24
+ /** Anything with `register(specs) → unregister` (a `CommandRegistry`). */
25
+ export interface ChartCommandTarget {
26
+ register(specs: any): () => void;
27
+ }
28
+ /**
29
+ * Registers the controller's palette / agent commands (`chart.describe`, `chart.update`,
30
+ * `chart.setValues`, …) in `registry` while mounted.
31
+ */
32
+ export declare function useChartCommands(registry: ChartCommandTarget | null | undefined, controller: ChartController, options?: ChartCommandOptions): void;
33
+ /** `useChartToolProvider` options: `rasterize` defaults to a canvas rasterizer in the browser (`false` turns PNG off). */
34
+ export type ChartToolProviderHookOptions = Omit<ChartToolProviderOptions, 'rasterize'> & {
35
+ rasterize?: ChartToolProviderOptions['rasterize'] | false;
36
+ };
37
+ /**
38
+ * Registers the chart's agent tools (`createChartToolProvider`) with a `ToolRegistry` while
39
+ * mounted. Options are read when the controller or registry changes. In the browser,
40
+ * `render_chart { format: "png" }` works out of the box (`createChartRasterizer`).
41
+ */
42
+ export declare function useChartToolProvider(registry: ToolRegistry | null | undefined, controller: ChartController, options?: ChartToolProviderHookOptions): void;
43
+ /**
44
+ * Registers the Office-file chart tools (`createOfficeChartToolProvider`: `list_file_charts`,
45
+ * `get_file_chart`, and `load_file_chart` with a `controller`) while mounted. `files` and
46
+ * `readOnly` are read on every call, so they can change without re-registering.
47
+ */
48
+ export declare function useOfficeChartToolProvider(registry: ToolRegistry | null | undefined, options?: OfficeChartToolProviderOptions): void;
49
+ /**
50
+ * A `ChartPresence` and `ChartDirector` for a chart: pass `presence` and `sceneRef` to
51
+ * `ChartCanvas`, and `director` to `useChartToolProvider` so agent edits are acted out with a
52
+ * cursor.
53
+ */
54
+ export declare function useChartDirector(controller: ChartController, options?: {
55
+ speed?: number;
56
+ size?: {
57
+ width: number;
58
+ height: number;
59
+ };
60
+ }): {
61
+ sceneRef: import("react").RefObject<ChartScene | null>;
62
+ presence: ChartPresence;
63
+ director: ChartDirector;
64
+ };
@@ -0,0 +1,64 @@
1
+ import type { ToolRegistry } from '@pixerate/editor/tools';
2
+ import { ChartController, ChartDirector, ChartPresence, type OfficeChartToolProviderOptions, type ChartScene, type ChartToolProviderOptions, type ChartActionResult, type ChartCommandOptions, type ChartControllerOptions, type ChartSelection, type ChartSpecPatch, type ChartState, type ChartType } from '@pixerate/editor/chart';
3
+ /** A `ChartController` created once for the component's lifetime. */
4
+ export declare function useChartController(options?: ChartControllerOptions): ChartController;
5
+ /** The controller's state (re-renders on every change). */
6
+ export declare function useChartState(controller: ChartController): ChartState;
7
+ export interface UseChartEditorResult {
8
+ controller: ChartController;
9
+ state: ChartState;
10
+ spec: ChartState['spec'];
11
+ selection: ChartSelection | null;
12
+ update: (patch: ChartSpecPatch) => ChartActionResult;
13
+ setType: (type: ChartType) => ChartActionResult;
14
+ setValue: (seriesId: string, index: number, value: unknown) => ChartActionResult;
15
+ select: (selection: ChartSelection | null) => void;
16
+ undo: () => void;
17
+ redo: () => void;
18
+ }
19
+ /**
20
+ * Subscribes to a chart controller and exposes its state with bound actions. Pass options
21
+ * instead of a controller to create one for the component's lifetime.
22
+ */
23
+ export declare function useChartEditor(controllerOrOptions?: ChartController | ChartControllerOptions): UseChartEditorResult;
24
+ /** Anything with `register(specs) → unregister` (a `CommandRegistry`). */
25
+ export interface ChartCommandTarget {
26
+ register(specs: any): () => void;
27
+ }
28
+ /**
29
+ * Registers the controller's palette / agent commands (`chart.describe`, `chart.update`,
30
+ * `chart.setValues`, …) in `registry` while mounted.
31
+ */
32
+ export declare function useChartCommands(registry: ChartCommandTarget | null | undefined, controller: ChartController, options?: ChartCommandOptions): void;
33
+ /** `useChartToolProvider` options: `rasterize` defaults to a canvas rasterizer in the browser (`false` turns PNG off). */
34
+ export type ChartToolProviderHookOptions = Omit<ChartToolProviderOptions, 'rasterize'> & {
35
+ rasterize?: ChartToolProviderOptions['rasterize'] | false;
36
+ };
37
+ /**
38
+ * Registers the chart's agent tools (`createChartToolProvider`) with a `ToolRegistry` while
39
+ * mounted. Options are read when the controller or registry changes. In the browser,
40
+ * `render_chart { format: "png" }` works out of the box (`createChartRasterizer`).
41
+ */
42
+ export declare function useChartToolProvider(registry: ToolRegistry | null | undefined, controller: ChartController, options?: ChartToolProviderHookOptions): void;
43
+ /**
44
+ * Registers the Office-file chart tools (`createOfficeChartToolProvider`: `list_file_charts`,
45
+ * `get_file_chart`, and `load_file_chart` with a `controller`) while mounted. `files` and
46
+ * `readOnly` are read on every call, so they can change without re-registering.
47
+ */
48
+ export declare function useOfficeChartToolProvider(registry: ToolRegistry | null | undefined, options?: OfficeChartToolProviderOptions): void;
49
+ /**
50
+ * A `ChartPresence` and `ChartDirector` for a chart: pass `presence` and `sceneRef` to
51
+ * `ChartCanvas`, and `director` to `useChartToolProvider` so agent edits are acted out with a
52
+ * cursor.
53
+ */
54
+ export declare function useChartDirector(controller: ChartController, options?: {
55
+ speed?: number;
56
+ size?: {
57
+ width: number;
58
+ height: number;
59
+ };
60
+ }): {
61
+ sceneRef: import("react").RefObject<ChartScene | null>;
62
+ presence: ChartPresence;
63
+ director: ChartDirector;
64
+ };