@pixerate/editor-react 0.90.0 → 0.91.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 (481) 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/hooks/useToolRegistryView.d.cts +9 -0
  213. package/dist/hooks/useToolRegistryView.d.ts +9 -0
  214. package/dist/image-editor/AdjustmentLayersPanel.d.cts +13 -0
  215. package/dist/image-editor/AdjustmentLayersPanel.d.ts +13 -0
  216. package/dist/image-editor/BrushOptionsBar.d.cts +18 -0
  217. package/dist/image-editor/BrushOptionsBar.d.ts +18 -0
  218. package/dist/image-editor/ColorProfilePanel.d.cts +12 -0
  219. package/dist/image-editor/ColorProfilePanel.d.ts +12 -0
  220. package/dist/image-editor/ControlSlider.d.cts +12 -0
  221. package/dist/image-editor/ControlSlider.d.ts +12 -0
  222. package/dist/image-editor/CurvesEditor.d.cts +15 -0
  223. package/dist/image-editor/CurvesEditor.d.ts +15 -0
  224. package/dist/image-editor/FreeTransformOptionsBar.d.cts +14 -0
  225. package/dist/image-editor/FreeTransformOptionsBar.d.ts +14 -0
  226. package/dist/image-editor/Histogram.d.cts +14 -0
  227. package/dist/image-editor/Histogram.d.ts +14 -0
  228. package/dist/image-editor/ImageEditor.d.cts +22 -0
  229. package/dist/image-editor/ImageEditor.d.ts +22 -0
  230. package/dist/image-editor/ImageProviderEffectsPanel.d.cts +13 -0
  231. package/dist/image-editor/ImageProviderEffectsPanel.d.ts +13 -0
  232. package/dist/image-editor/LayerEffectsPanel.d.cts +14 -0
  233. package/dist/image-editor/LayerEffectsPanel.d.ts +14 -0
  234. package/dist/image-editor/LayersPanel.d.cts +22 -0
  235. package/dist/image-editor/LayersPanel.d.ts +22 -0
  236. package/dist/image-editor/PaintGradientEditor.d.cts +5 -0
  237. package/dist/image-editor/PaintGradientEditor.d.ts +5 -0
  238. package/dist/image-editor/RefineEdgePanel.d.cts +16 -0
  239. package/dist/image-editor/RefineEdgePanel.d.ts +16 -0
  240. package/dist/image-editor/SelectionOptionsBar.d.cts +18 -0
  241. package/dist/image-editor/SelectionOptionsBar.d.ts +18 -0
  242. package/dist/image-editor/ShapeOptionsBar.d.cts +14 -0
  243. package/dist/image-editor/ShapeOptionsBar.d.ts +14 -0
  244. package/dist/image-editor/TypeOptionsBar.d.cts +16 -0
  245. package/dist/image-editor/TypeOptionsBar.d.ts +16 -0
  246. package/dist/image-editor/index.cjs +0 -1
  247. package/dist/image-editor/index.d.cts +17 -296
  248. package/dist/image-editor/index.d.ts +17 -296
  249. package/dist/image-editor/index.js +4 -5
  250. package/dist/image-editor/useImageEditor.d.cts +70 -0
  251. package/dist/image-editor/useImageEditor.d.ts +70 -0
  252. package/dist/index.cjs +533 -514
  253. package/dist/index.d.cts +36 -802
  254. package/dist/index.d.ts +36 -802
  255. package/dist/index.js +59 -41
  256. package/dist/paint-editor/BrushPanel.d.cts +18 -0
  257. package/dist/paint-editor/BrushPanel.d.ts +18 -0
  258. package/dist/paint-editor/ColorPanel.d.cts +17 -0
  259. package/dist/paint-editor/ColorPanel.d.ts +17 -0
  260. package/dist/paint-editor/PaintCanvas.d.cts +40 -0
  261. package/dist/paint-editor/PaintCanvas.d.ts +40 -0
  262. package/dist/paint-editor/PaintEditor.d.cts +18 -0
  263. package/dist/paint-editor/PaintEditor.d.ts +18 -0
  264. package/dist/paint-editor/PaintEffectsPanel.d.cts +19 -0
  265. package/dist/paint-editor/PaintEffectsPanel.d.ts +19 -0
  266. package/dist/paint-editor/PaintGradientEditor.d.cts +5 -0
  267. package/dist/paint-editor/PaintGradientEditor.d.ts +5 -0
  268. package/dist/paint-editor/PaintGradientEditorView.d.cts +23 -0
  269. package/dist/paint-editor/PaintGradientEditorView.d.ts +23 -0
  270. package/dist/paint-editor/PaintLayersPanel.d.cts +12 -0
  271. package/dist/paint-editor/PaintLayersPanel.d.ts +12 -0
  272. package/dist/paint-editor/PaintToolbar.d.cts +17 -0
  273. package/dist/paint-editor/PaintToolbar.d.ts +17 -0
  274. package/dist/paint-editor/PaperPanel.d.cts +13 -0
  275. package/dist/paint-editor/PaperPanel.d.ts +13 -0
  276. package/dist/paint-editor/StickerPanel.d.cts +12 -0
  277. package/dist/paint-editor/StickerPanel.d.ts +12 -0
  278. package/dist/paint-editor/WetPanel.d.cts +14 -0
  279. package/dist/paint-editor/WetPanel.d.ts +14 -0
  280. package/dist/paint-editor/index.cjs +0 -1
  281. package/dist/paint-editor/index.d.cts +13 -211
  282. package/dist/paint-editor/index.d.ts +13 -211
  283. package/dist/paint-editor/index.js +3 -4
  284. package/dist/paint-editor/shared.d.cts +38 -0
  285. package/dist/paint-editor/shared.d.ts +38 -0
  286. package/dist/paint-editor/usePaintEditor.d.cts +22 -0
  287. package/dist/paint-editor/usePaintEditor.d.ts +22 -0
  288. package/dist/parameters/ParametersPanel.d.cts +27 -0
  289. package/dist/parameters/ParametersPanel.d.ts +27 -0
  290. package/dist/parameters/fields.d.cts +62 -0
  291. package/dist/parameters/fields.d.ts +62 -0
  292. package/dist/parameters/index.cjs +0 -1
  293. package/dist/parameters/index.d.cts +3 -121
  294. package/dist/parameters/index.d.ts +3 -121
  295. package/dist/parameters/index.js +1 -2
  296. package/dist/parameters/useParameters.d.cts +32 -0
  297. package/dist/parameters/useParameters.d.ts +32 -0
  298. package/dist/persistence/RecoveryPrompt.d.cts +20 -0
  299. package/dist/persistence/RecoveryPrompt.d.ts +20 -0
  300. package/dist/persistence/index.cjs +0 -1
  301. package/dist/persistence/index.d.cts +2 -77
  302. package/dist/persistence/index.d.ts +2 -77
  303. package/dist/persistence/index.js +1 -2
  304. package/dist/persistence/useAutosave.d.cts +54 -0
  305. package/dist/persistence/useAutosave.d.ts +54 -0
  306. package/dist/review/CommentButton.d.cts +12 -0
  307. package/dist/review/CommentButton.d.ts +12 -0
  308. package/dist/review/CommentsPanel.d.cts +21 -0
  309. package/dist/review/CommentsPanel.d.ts +21 -0
  310. package/dist/review/ReviewToolbar.d.cts +20 -0
  311. package/dist/review/ReviewToolbar.d.ts +20 -0
  312. package/dist/review/TrackedChangesList.d.cts +18 -0
  313. package/dist/review/TrackedChangesList.d.ts +18 -0
  314. package/dist/review/index.d.cts +6 -0
  315. package/dist/review/index.d.ts +6 -0
  316. package/dist/review/useDocumentCompare.d.cts +20 -0
  317. package/dist/review/useDocumentCompare.d.ts +20 -0
  318. package/dist/review/useReview.d.cts +32 -0
  319. package/dist/review/useReview.d.ts +32 -0
  320. package/dist/slots.d.cts +14 -0
  321. package/dist/slots.d.ts +14 -0
  322. package/dist/spreadsheet/FormulaHints.d.cts +24 -0
  323. package/dist/spreadsheet/FormulaHints.d.ts +24 -0
  324. package/dist/spreadsheet/NameManager.d.cts +14 -0
  325. package/dist/spreadsheet/NameManager.d.ts +14 -0
  326. package/dist/spreadsheet/SheetTabs.d.cts +13 -0
  327. package/dist/spreadsheet/SheetTabs.d.ts +13 -0
  328. package/dist/spreadsheet/SpreadsheetContextMenu.d.cts +14 -0
  329. package/dist/spreadsheet/SpreadsheetContextMenu.d.ts +14 -0
  330. package/dist/spreadsheet/SpreadsheetEditor.d.cts +24 -0
  331. package/dist/spreadsheet/SpreadsheetEditor.d.ts +24 -0
  332. package/dist/spreadsheet/SpreadsheetGroupRow.d.cts +19 -0
  333. package/dist/spreadsheet/SpreadsheetGroupRow.d.ts +19 -0
  334. package/dist/spreadsheet/SpreadsheetRulePanels.d.cts +18 -0
  335. package/dist/spreadsheet/SpreadsheetRulePanels.d.ts +18 -0
  336. package/dist/spreadsheet/SpreadsheetValidationDialog.d.cts +11 -0
  337. package/dist/spreadsheet/SpreadsheetValidationDialog.d.ts +11 -0
  338. package/dist/spreadsheet/index.cjs +0 -1
  339. package/dist/spreadsheet/index.d.cts +11 -309
  340. package/dist/spreadsheet/index.d.ts +11 -309
  341. package/dist/spreadsheet/index.js +1 -2
  342. package/dist/spreadsheet/useSpreadsheetEditor.d.cts +126 -0
  343. package/dist/spreadsheet/useSpreadsheetEditor.d.ts +126 -0
  344. package/dist/spreadsheet/useSpreadsheetTableInteractions.d.cts +30 -0
  345. package/dist/spreadsheet/useSpreadsheetTableInteractions.d.ts +30 -0
  346. package/dist/spreadsheet/useSpreadsheetViewport.d.cts +25 -0
  347. package/dist/spreadsheet/useSpreadsheetViewport.d.ts +25 -0
  348. package/dist/tables/InsertTableGrid.d.cts +25 -0
  349. package/dist/tables/InsertTableGrid.d.ts +25 -0
  350. package/dist/tables/TableBubbleMenu.d.cts +18 -0
  351. package/dist/tables/TableBubbleMenu.d.ts +18 -0
  352. package/dist/tables/TableToolbar.d.cts +23 -0
  353. package/dist/tables/TableToolbar.d.ts +23 -0
  354. package/dist/tables/index.d.cts +4 -0
  355. package/dist/tables/index.d.ts +4 -0
  356. package/dist/tables/useTableMenu.d.cts +17 -0
  357. package/dist/tables/useTableMenu.d.ts +17 -0
  358. package/dist/tokens/TokensPanel.d.cts +22 -0
  359. package/dist/tokens/TokensPanel.d.ts +22 -0
  360. package/dist/tokens/index.cjs +0 -1
  361. package/dist/tokens/index.d.cts +2 -54
  362. package/dist/tokens/index.d.ts +2 -54
  363. package/dist/tokens/index.js +0 -1
  364. package/dist/tokens/useTokens.d.cts +29 -0
  365. package/dist/tokens/useTokens.d.ts +29 -0
  366. package/dist/vector/VectorAppearancePanel.d.cts +14 -0
  367. package/dist/vector/VectorAppearancePanel.d.ts +14 -0
  368. package/dist/vector/VectorCanvas.d.cts +58 -0
  369. package/dist/vector/VectorCanvas.d.ts +58 -0
  370. package/dist/vector/VectorConnectorPanel.d.cts +12 -0
  371. package/dist/vector/VectorConnectorPanel.d.ts +12 -0
  372. package/dist/vector/VectorConstraintsPanel.d.cts +12 -0
  373. package/dist/vector/VectorConstraintsPanel.d.ts +12 -0
  374. package/dist/vector/VectorEditor.d.cts +23 -0
  375. package/dist/vector/VectorEditor.d.ts +23 -0
  376. package/dist/vector/VectorEffectsPanel.d.cts +13 -0
  377. package/dist/vector/VectorEffectsPanel.d.ts +13 -0
  378. package/dist/vector/VectorEnvelopePanel.d.cts +13 -0
  379. package/dist/vector/VectorEnvelopePanel.d.ts +13 -0
  380. package/dist/vector/VectorFramePanel.d.cts +12 -0
  381. package/dist/vector/VectorFramePanel.d.ts +12 -0
  382. package/dist/vector/VectorGeneratePanel.d.cts +15 -0
  383. package/dist/vector/VectorGeneratePanel.d.ts +15 -0
  384. package/dist/vector/VectorGradientEditor.d.cts +12 -0
  385. package/dist/vector/VectorGradientEditor.d.ts +12 -0
  386. package/dist/vector/VectorLensPanel.d.cts +12 -0
  387. package/dist/vector/VectorLensPanel.d.ts +12 -0
  388. package/dist/vector/VectorMaskPanel.d.cts +13 -0
  389. package/dist/vector/VectorMaskPanel.d.ts +13 -0
  390. package/dist/vector/VectorPagesPanel.d.cts +11 -0
  391. package/dist/vector/VectorPagesPanel.d.ts +11 -0
  392. package/dist/vector/VectorPerspectivePanel.d.cts +12 -0
  393. package/dist/vector/VectorPerspectivePanel.d.ts +12 -0
  394. package/dist/vector/VectorProviderEffectsPanel.d.cts +12 -0
  395. package/dist/vector/VectorProviderEffectsPanel.d.ts +12 -0
  396. package/dist/vector/VectorShadingPanel.d.cts +12 -0
  397. package/dist/vector/VectorShadingPanel.d.ts +12 -0
  398. package/dist/vector/VectorSymbolsPanel.d.cts +12 -0
  399. package/dist/vector/VectorSymbolsPanel.d.ts +12 -0
  400. package/dist/vector/VectorSymmetryPanel.d.cts +12 -0
  401. package/dist/vector/VectorSymmetryPanel.d.ts +12 -0
  402. package/dist/vector/VectorTextPanel.d.cts +14 -0
  403. package/dist/vector/VectorTextPanel.d.ts +14 -0
  404. package/dist/vector/VectorToolbar.d.cts +39 -0
  405. package/dist/vector/VectorToolbar.d.ts +39 -0
  406. package/dist/vector/VectorTracePanel.d.cts +12 -0
  407. package/dist/vector/VectorTracePanel.d.ts +12 -0
  408. package/dist/vector/VectorWidthPointEditor.d.cts +18 -0
  409. package/dist/vector/VectorWidthPointEditor.d.ts +18 -0
  410. package/dist/vector/index.cjs +0 -1
  411. package/dist/vector/index.d.cts +23 -384
  412. package/dist/vector/index.d.ts +23 -384
  413. package/dist/vector/index.js +2 -3
  414. package/dist/vector/useVectorEditor.d.cts +40 -0
  415. package/dist/vector/useVectorEditor.d.ts +40 -0
  416. package/dist/video-editor/ClipInspector.d.cts +14 -0
  417. package/dist/video-editor/ClipInspector.d.ts +14 -0
  418. package/dist/video-editor/MediaBin.d.cts +18 -0
  419. package/dist/video-editor/MediaBin.d.ts +18 -0
  420. package/dist/video-editor/TranscriptPanel.d.cts +17 -0
  421. package/dist/video-editor/TranscriptPanel.d.ts +17 -0
  422. package/dist/video-editor/VideoEditor.d.cts +41 -0
  423. package/dist/video-editor/VideoEditor.d.ts +41 -0
  424. package/dist/video-editor/VideoEffectsPanel.d.cts +13 -0
  425. package/dist/video-editor/VideoEffectsPanel.d.ts +13 -0
  426. package/dist/video-editor/VideoPreview.d.cts +17 -0
  427. package/dist/video-editor/VideoPreview.d.ts +17 -0
  428. package/dist/video-editor/VideoScopes.d.cts +17 -0
  429. package/dist/video-editor/VideoScopes.d.ts +17 -0
  430. package/dist/video-editor/VideoTimeline.d.cts +15 -0
  431. package/dist/video-editor/VideoTimeline.d.ts +15 -0
  432. package/dist/video-editor/VideoTransport.d.cts +14 -0
  433. package/dist/video-editor/VideoTransport.d.ts +14 -0
  434. package/dist/video-editor/index.cjs +0 -1
  435. package/dist/video-editor/index.d.cts +10 -203
  436. package/dist/video-editor/index.d.ts +10 -203
  437. package/dist/video-editor/index.js +2 -3
  438. package/dist/video-editor/useVideoEditor.d.cts +42 -0
  439. package/dist/video-editor/useVideoEditor.d.ts +42 -0
  440. package/package.json +124 -49
  441. package/dist/PaintGradientEditorView-CCPCY5Ib.d.cts +0 -14
  442. package/dist/PaintGradientEditorView-CCPCY5Ib.d.ts +0 -14
  443. package/dist/animation-editor/index.cjs.map +0 -1
  444. package/dist/animation-editor/index.js.map +0 -1
  445. package/dist/canvas/index.cjs.map +0 -1
  446. package/dist/canvas/index.js.map +0 -1
  447. package/dist/chart/index.cjs.map +0 -1
  448. package/dist/chart/index.js.map +0 -1
  449. package/dist/chunk-34HEZX7J.js.map +0 -1
  450. package/dist/chunk-4FQXRPBN.js.map +0 -1
  451. package/dist/chunk-4ZC2WCUO.js.map +0 -1
  452. package/dist/chunk-I3E4KSA2.js.map +0 -1
  453. package/dist/chunk-MO354USR.js.map +0 -1
  454. package/dist/chunk-SIEOYRHX.js.map +0 -1
  455. package/dist/chunk-WOQ3H7KA.js.map +0 -1
  456. package/dist/chunk-XWFU2CSG.js.map +0 -1
  457. package/dist/chunk-ZQZAKUUM.js.map +0 -1
  458. package/dist/commands/index.cjs.map +0 -1
  459. package/dist/commands/index.js.map +0 -1
  460. package/dist/effects/index.cjs.map +0 -1
  461. package/dist/effects/index.js.map +0 -1
  462. package/dist/generation/index.cjs.map +0 -1
  463. package/dist/generation/index.js.map +0 -1
  464. package/dist/image-editor/index.cjs.map +0 -1
  465. package/dist/image-editor/index.js.map +0 -1
  466. package/dist/index.cjs.map +0 -1
  467. package/dist/index.js.map +0 -1
  468. package/dist/paint-editor/index.cjs.map +0 -1
  469. package/dist/paint-editor/index.js.map +0 -1
  470. package/dist/parameters/index.cjs.map +0 -1
  471. package/dist/parameters/index.js.map +0 -1
  472. package/dist/persistence/index.cjs.map +0 -1
  473. package/dist/persistence/index.js.map +0 -1
  474. package/dist/spreadsheet/index.cjs.map +0 -1
  475. package/dist/spreadsheet/index.js.map +0 -1
  476. package/dist/tokens/index.cjs.map +0 -1
  477. package/dist/tokens/index.js.map +0 -1
  478. package/dist/vector/index.cjs.map +0 -1
  479. package/dist/vector/index.js.map +0 -1
  480. package/dist/video-editor/index.cjs.map +0 -1
  481. package/dist/video-editor/index.js.map +0 -1
@@ -1,296 +1,17 @@
1
- import { ToolRegistry } from '@pixerate/editor/tools';
2
- import { ImageEditorController, ImageEditorState, ImageEditorTool, CropBox, AspectRatio, ImageAdjustments, AdjustmentKind, AdjustmentLayerInit, AdjustmentLayerUpdate, ImageHistogram, DepthMaskOptions, CreateAnnotationPayload, Annotation, ImagePoint, ExportOptions, SerializedImageEditorState, AIResultOptions, ImageEditorOptions, ImageEffectsToolProviderOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer, SelectionToolOptions, SelectionMask, FreeTransformTool, ShapeToolOptions, TypeToolOptions, TextEditSession } from '@pixerate/editor/image-editor';
3
- import React__default from 'react';
4
- import { EffectProvider } from '@pixerate/editor/effects';
5
- import { P as PaintGradientEditorProps } from '../PaintGradientEditorView-CCPCY5Ib.cjs';
6
- import '@pixerate/editor/paint-editor';
7
-
8
- interface UseImageEditorReturn {
9
- controller: ImageEditorController;
10
- state: ImageEditorState;
11
- canUndo: boolean;
12
- canRedo: boolean;
13
- setTool: (tool: ImageEditorTool) => void;
14
- setCrop: (crop: CropBox | null, addToHistory?: boolean) => void;
15
- applyCropPreset: (ratio: AspectRatio) => void;
16
- resetCrop: () => void;
17
- rotate: (degrees: number) => void;
18
- setRotation: (degrees: number) => void;
19
- flipHorizontal: () => void;
20
- flipVertical: () => void;
21
- setAdjustments: (partial: Partial<ImageAdjustments>, commitToHistory?: boolean) => void;
22
- resetAdjustments: () => void;
23
- /** Update to Current Process: re-render the adjustments with the latest process (one undo step). */
24
- upgradeProcess: () => boolean;
25
- /** Adds an adjustment layer (one undo step) and returns its id. */
26
- addAdjustmentLayer: (init: AdjustmentKind | AdjustmentLayerInit, index?: number) => string;
27
- updateAdjustmentLayer: (id: string, update: AdjustmentLayerUpdate, commitToHistory?: boolean) => boolean;
28
- removeAdjustmentLayer: (id: string) => boolean;
29
- moveAdjustmentLayer: (id: string, toIndex: number) => boolean;
30
- toggleAdjustmentLayer: (id: string, enabled?: boolean) => boolean;
31
- /** Histogram of the last rendered preview (after adjustments and layers); null before a render. */
32
- histogram: ImageHistogram | null;
33
- setDepthMask: (partial: Partial<DepthMaskOptions>) => void;
34
- resetDepthMask: () => void;
35
- addAnnotation: (annotation: CreateAnnotationPayload) => string;
36
- updateAnnotation: (id: string, partial: Partial<Annotation>, commitToHistory?: boolean) => void;
37
- removeAnnotation: (id: string) => void;
38
- clearAnnotations: () => void;
39
- selectAnnotation: (id: string | null) => void;
40
- undo: () => boolean;
41
- redo: () => boolean;
42
- reset: () => void;
43
- zoomIn: (factor?: number) => void;
44
- zoomOut: (factor?: number) => void;
45
- resetZoom: () => void;
46
- setZoom: (zoom: number) => void;
47
- setPan: (pan: ImagePoint) => void;
48
- setComparing: (comparing: boolean) => void;
49
- loadImage: (src: string | HTMLImageElement) => Promise<void>;
50
- toDataURL: (options?: ExportOptions) => Promise<string>;
51
- toBlob: (options?: ExportOptions) => Promise<Blob>;
52
- toJSON: () => SerializedImageEditorState;
53
- loadJSON: (data: SerializedImageEditorState) => void;
54
- renderMask: (options?: {
55
- useAnnotations?: boolean;
56
- useCrop?: boolean;
57
- }) => Promise<HTMLCanvasElement>;
58
- toMaskDataURL: (options?: {
59
- useAnnotations?: boolean;
60
- useCrop?: boolean;
61
- }) => Promise<string>;
62
- toSourceDataURL: (options?: Pick<ExportOptions, 'format' | 'quality'>) => Promise<string>;
63
- /** In documents with several layers (or `target: 'new-layer'`) the result goes to a new layer. */
64
- applyInpaintedImage: (newDataUrl: string, options?: AIResultOptions) => Promise<string | void>;
65
- /** In documents with several layers (or `target: 'new-layer'`) the result's alpha masks the active layer. */
66
- applyBackgroundRemovedImage: (newDataUrl: string, options?: AIResultOptions) => Promise<string | void>;
67
- }
68
- declare function useImageEditor(options?: ImageEditorOptions): UseImageEditorReturn;
69
- /**
70
- * Registers the image editor's provider-effect tools (`search_effects`, `describe_effect`,
71
- * `apply_effect`, `add_effect_layer`, …) in `registry` while mounted. They work once an effects
72
- * provider is registered (see `useEffects`); before that the read tools say so and the write tools
73
- * refuse.
74
- */
75
- declare function useImageEffectsTools(registry: ToolRegistry | null | undefined, controller: ImageEditorController, options?: ImageEffectsToolProviderOptions): void;
76
-
77
- interface ImageEditorProps {
78
- editor?: UseImageEditorReturn;
79
- src?: string;
80
- className?: string;
81
- style?: React__default.CSSProperties;
82
- onSave?: (dataUrl: string) => void;
83
- exportOptions?: ExportOptions;
84
- onInpaint?: InpaintHook;
85
- onRemoveBackground?: RemoveBackgroundHook;
86
- aiHooks?: ImageEditorAIHooks;
87
- /**
88
- * An effects provider (see `@pixerate/editor/effects`), registered with the controller while
89
- * mounted: filter effects as smart filters and generator or overlay effects as effect layers,
90
- * with an Effects section in the Layers tab. Optional: without one the editor is as before.
91
- */
92
- effects?: EffectProvider | null;
93
- }
94
- declare const ImageEditor: React__default.FC<ImageEditorProps>;
95
-
96
- interface HistogramProps {
97
- histogram: ImageHistogram | null;
98
- /** `rgb` overlays the three channels on the luminance; a single channel draws just that one. */
99
- channel?: 'rgb' | 'luminance' | 'red' | 'green' | 'blue';
100
- height?: number;
101
- className?: string;
102
- style?: React__default.CSSProperties;
103
- }
104
- /** SVG histogram of an image (see `computeHistogram` / `controller.subscribeHistogram`). */
105
- declare const Histogram: React__default.FC<HistogramProps>;
106
- /** The preview histogram of an image editor, updated after every render. */
107
- declare function useImageHistogram(controller: ImageEditorController): ImageHistogram | null;
108
-
109
- interface ControlSliderProps {
110
- spec: ControlSpec;
111
- value: number;
112
- onChange: (value: number) => void;
113
- disabled?: boolean;
114
- /** Overrides `spec.label` (also the accessible name). */
115
- label?: string;
116
- }
117
- /** A labelled range input described by a control-table entry. */
118
- declare const ControlSlider: React__default.FC<ControlSliderProps>;
119
-
120
- interface CurvesEditorProps {
121
- points: CurvePoint[];
122
- /** `commit` is true for the first change of a gesture (one undo step), false for the drag moves. */
123
- onChange: (points: CurvePoint[], commit: boolean) => void;
124
- histogram?: ImageHistogram | null;
125
- channel?: 'master' | 'red' | 'green' | 'blue';
126
- size?: number;
127
- }
128
- /**
129
- * Curves editor over the histogram: click to add a point, drag to move it, double-click to
130
- * remove it.
131
- */
132
- declare const CurvesEditor: React__default.FC<CurvesEditorProps>;
133
-
134
- interface AdjustmentLayersPanelProps {
135
- controller: ImageEditorController;
136
- /** The current layers (`state.adjustments.layers`), bottom to top. Omit to follow the controller. */
137
- layers?: AdjustmentLayer[];
138
- histogram?: ImageHistogram | null;
139
- }
140
- /**
141
- * Adjustment-layer stack: add, reorder, show / hide and remove layers, and edit the selected
142
- * one (curves over the histogram, levels, hue/saturation ranges, colour balance, …).
143
- */
144
- declare const AdjustmentLayersPanel: React__default.FC<AdjustmentLayersPanelProps>;
145
-
146
- interface SelectionOptionsBarProps {
147
- controller: ImageEditorController;
148
- options: SelectionToolOptions;
149
- onOptionsChange: (next: SelectionToolOptions) => void;
150
- /** The current selection (pass `state.selection` so the bar re-renders with it). */
151
- selection?: SelectionMask | null;
152
- /** The current Quick Mask view flag (`state.quickMask`). */
153
- quickMask?: boolean;
154
- className?: string;
155
- }
156
- /**
157
- * Options bar of the selection tools: tool, mode (new / add / subtract / intersect), magic wand
158
- * tolerance and contiguous, anti-alias, sample merged, Select › All / Deselect / Inverse,
159
- * Modify (grow, shrink, feather, border, smooth) and the Quick Mask toggle.
160
- */
161
- declare const SelectionOptionsBar: React__default.FC<SelectionOptionsBarProps>;
162
-
163
- interface RefineEdgePanelProps {
164
- controller: ImageEditorController;
165
- /** The current selection (`state.selection`), so the panel re-renders with it. */
166
- selection?: SelectionMask | null;
167
- /** The adjustment layers (`state.adjustments.layers`), for the mask actions. */
168
- layers?: AdjustmentLayer[];
169
- className?: string;
170
- }
171
- /**
172
- * Refine Edge (snap the selection, e.g. a coarse AI mask, to the image's edges) and layer masks:
173
- * use the selection as an adjustment layer's mask, edit mask density and feather, load a mask
174
- * back as a selection.
175
- */
176
- declare const RefineEdgePanel: React__default.FC<RefineEdgePanelProps>;
177
-
178
- interface LayersPanelProps {
179
- controller: ImageEditorController;
180
- /** Thumbnail size in px (default 32). */
181
- thumbnailSize?: number;
182
- /** Show Open PSD / Export PSD (default true). */
183
- psd?: boolean;
184
- /** Base name of exported PSD files (default `image`). */
185
- psdFileName?: string;
186
- /** Show the active layer's effects section (default true). */
187
- effects?: boolean;
188
- className?: string;
189
- }
190
- /**
191
- * The layer stack, top first: visibility, thumbnails, names (double-click to rename), locks,
192
- * mask thumbnails (click to paint the mask, Shift-click to disable it), drag to reorder or drop
193
- * into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
194
- * (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
195
- * on or off) and the active layer's effects. Every action is one undo step on the controller.
196
- */
197
- declare const LayersPanel: React__default.FC<LayersPanelProps>;
198
-
199
- interface ColorProfilePanelProps {
200
- controller: ImageEditorController;
201
- className?: string;
202
- }
203
- /**
204
- * Colour management: the document's profile (working space) with Assign Profile and Convert to
205
- * Profile (intent, black point compensation), Image › Mode (RGB, CMYK, Lab), and View › Proof
206
- * Setup (profile, intent, simulate paper, gamut warning).
207
- */
208
- declare const ColorProfilePanel: React__default.FC<ColorProfilePanelProps>;
209
-
210
- interface LayerEffectsPanelProps {
211
- controller: ImageEditorController;
212
- /** The layer whose effects to show (default: the active layer). */
213
- layerId?: string | null;
214
- className?: string;
215
- }
216
- /**
217
- * A layer's effects (Photoshop's layer styles): the master switch, Scale Effects, an "Add effect"
218
- * menu, and each effect with its enabled toggle, remove button and, when expanded, its settings.
219
- * Every change is one undo step (a slider drag is one step too).
220
- */
221
- declare const LayerEffectsPanel: React__default.FC<LayerEffectsPanelProps>;
222
-
223
- interface BrushOptionsBarProps {
224
- controller: ImageEditorController;
225
- className?: string;
226
- }
227
- /**
228
- * The paint tools: Move / Brush / Mixer / Eraser, the brush's size, hardness, opacity, flow and
229
- * smoothing, pressure toggles, the foreground and background colours (D resets, X swaps) and
230
- * Edit › Fill / Clear on the active layer, and gradient paint for the brush (the colour changes as
231
- * the stroke goes; `PaintGradientEditor`). With the Mixer Brush: its load (Load brush / Clean
232
- * brush), Wet / Load / Mix, load and clean each stroke, and the RGB / Pigment mixing toggle.
233
- * With a retouching tool: the clone source (Alt-click the canvas to set it), Sample, the Spot
234
- * Healing type, the tone Range, Exposure / Strength and the Aligned / Protect tones / Vibrance
235
- * toggles that tool uses.
236
- * Shortcuts are handled by `handlePaintShortcut` in the editor.
237
- */
238
- declare const BrushOptionsBar: React__default.FC<BrushOptionsBarProps>;
239
-
240
- interface FreeTransformOptionsBarProps {
241
- tool: FreeTransformTool;
242
- className?: string;
243
- }
244
- /**
245
- * Free Transform's options bar (Photoshop's): the mode switch (Free, Rotate, Skew, Distort,
246
- * Perspective, Warp), the reference-point locator, X / Y of the reference point, W / H in percent
247
- * with the proportional chain, the angle and skews, the interpolation, and Commit (Enter) / Cancel
248
- * (Esc). In Warp mode the numbers give way to the warp style, bend, horizontal and vertical
249
- * distortion, orientation and grid. Typed values apply on Enter or when the field loses focus.
250
- */
251
- declare const FreeTransformOptionsBar: React__default.FC<FreeTransformOptionsBarProps>;
252
-
253
- interface ShapeOptionsBarProps {
254
- controller: ImageEditorController;
255
- options: ShapeToolOptions;
256
- onChange: (options: ShapeToolOptions) => void;
257
- className?: string;
258
- }
259
- /**
260
- * The shape tool's options: the kind to draw, fill and stroke (colour or none), stroke width and
261
- * the kind's own settings (corner radius, sides, points, line weight and arrowhead). Changes also
262
- * apply to the active shape layer, as one undo step each.
263
- */
264
- declare const ShapeOptionsBar: React__default.FC<ShapeOptionsBarProps>;
265
-
266
- interface TypeOptionsBarProps {
267
- controller: ImageEditorController;
268
- options: TypeToolOptions;
269
- onChange: (options: TypeToolOptions) => void;
270
- /** The text being edited on the canvas: changes style its selection (or all of it). */
271
- session?: TextEditSession | null;
272
- className?: string;
273
- }
274
- /**
275
- * The type tool's options: font family (from the editor's fonts), size, bold, italic, colour and
276
- * alignment. While text is being edited they style the selection (or the whole text); with a
277
- * type layer active they style all of it; otherwise they set what the next text uses.
278
- */
279
- declare const TypeOptionsBar: React__default.FC<TypeOptionsBarProps>;
280
-
281
- interface ImageProviderEffectsPanelProps {
282
- controller: ImageEditorController;
283
- className?: string;
284
- }
285
- /**
286
- * Provider effects in the image editor, for the active layer: its effect smart filters (apply,
287
- * turn on and off, opacity, reorder, change controls, remove) and, for an effect layer, its own
288
- * controls; plus adding effect layers. Applying a filter effect to a pixel layer converts it to a
289
- * smart object in the same undo step. Without a provider it says why nothing can be added.
290
- */
291
- declare function ImageProviderEffectsPanel({ controller, className }: ImageProviderEffectsPanelProps): React__default.JSX.Element;
292
-
293
- /** The gradient paint editor for the image editor's brush (see `PaintGradientEditorView`). */
294
- declare const PaintGradientEditor: React__default.FC<PaintGradientEditorProps>;
295
-
296
- export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ColorProfilePanel, type ColorProfilePanelProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, FreeTransformOptionsBar, type FreeTransformOptionsBarProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, ImageProviderEffectsPanel, type ImageProviderEffectsPanelProps, LayerEffectsPanel, type LayerEffectsPanelProps, LayersPanel, type LayersPanelProps, PaintGradientEditor, PaintGradientEditorProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, ShapeOptionsBar, type ShapeOptionsBarProps, TypeOptionsBar, type TypeOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageEffectsTools, useImageHistogram };
1
+ export * from './useImageEditor.cjs';
2
+ export * from './ImageEditor.cjs';
3
+ export * from './Histogram.cjs';
4
+ export * from './ControlSlider.cjs';
5
+ export * from './CurvesEditor.cjs';
6
+ export * from './AdjustmentLayersPanel.cjs';
7
+ export * from './SelectionOptionsBar.cjs';
8
+ export * from './RefineEdgePanel.cjs';
9
+ export * from './LayersPanel.cjs';
10
+ export * from './ColorProfilePanel.cjs';
11
+ export * from './LayerEffectsPanel.cjs';
12
+ export * from './BrushOptionsBar.cjs';
13
+ export * from './FreeTransformOptionsBar.cjs';
14
+ export * from './ShapeOptionsBar.cjs';
15
+ export * from './TypeOptionsBar.cjs';
16
+ export * from './ImageProviderEffectsPanel.cjs';
17
+ export * from './PaintGradientEditor.cjs';
@@ -1,296 +1,17 @@
1
- import { ToolRegistry } from '@pixerate/editor/tools';
2
- import { ImageEditorController, ImageEditorState, ImageEditorTool, CropBox, AspectRatio, ImageAdjustments, AdjustmentKind, AdjustmentLayerInit, AdjustmentLayerUpdate, ImageHistogram, DepthMaskOptions, CreateAnnotationPayload, Annotation, ImagePoint, ExportOptions, SerializedImageEditorState, AIResultOptions, ImageEditorOptions, ImageEffectsToolProviderOptions, InpaintHook, RemoveBackgroundHook, ImageEditorAIHooks, ControlSpec, CurvePoint, AdjustmentLayer, SelectionToolOptions, SelectionMask, FreeTransformTool, ShapeToolOptions, TypeToolOptions, TextEditSession } from '@pixerate/editor/image-editor';
3
- import React__default from 'react';
4
- import { EffectProvider } from '@pixerate/editor/effects';
5
- import { P as PaintGradientEditorProps } from '../PaintGradientEditorView-CCPCY5Ib.js';
6
- import '@pixerate/editor/paint-editor';
7
-
8
- interface UseImageEditorReturn {
9
- controller: ImageEditorController;
10
- state: ImageEditorState;
11
- canUndo: boolean;
12
- canRedo: boolean;
13
- setTool: (tool: ImageEditorTool) => void;
14
- setCrop: (crop: CropBox | null, addToHistory?: boolean) => void;
15
- applyCropPreset: (ratio: AspectRatio) => void;
16
- resetCrop: () => void;
17
- rotate: (degrees: number) => void;
18
- setRotation: (degrees: number) => void;
19
- flipHorizontal: () => void;
20
- flipVertical: () => void;
21
- setAdjustments: (partial: Partial<ImageAdjustments>, commitToHistory?: boolean) => void;
22
- resetAdjustments: () => void;
23
- /** Update to Current Process: re-render the adjustments with the latest process (one undo step). */
24
- upgradeProcess: () => boolean;
25
- /** Adds an adjustment layer (one undo step) and returns its id. */
26
- addAdjustmentLayer: (init: AdjustmentKind | AdjustmentLayerInit, index?: number) => string;
27
- updateAdjustmentLayer: (id: string, update: AdjustmentLayerUpdate, commitToHistory?: boolean) => boolean;
28
- removeAdjustmentLayer: (id: string) => boolean;
29
- moveAdjustmentLayer: (id: string, toIndex: number) => boolean;
30
- toggleAdjustmentLayer: (id: string, enabled?: boolean) => boolean;
31
- /** Histogram of the last rendered preview (after adjustments and layers); null before a render. */
32
- histogram: ImageHistogram | null;
33
- setDepthMask: (partial: Partial<DepthMaskOptions>) => void;
34
- resetDepthMask: () => void;
35
- addAnnotation: (annotation: CreateAnnotationPayload) => string;
36
- updateAnnotation: (id: string, partial: Partial<Annotation>, commitToHistory?: boolean) => void;
37
- removeAnnotation: (id: string) => void;
38
- clearAnnotations: () => void;
39
- selectAnnotation: (id: string | null) => void;
40
- undo: () => boolean;
41
- redo: () => boolean;
42
- reset: () => void;
43
- zoomIn: (factor?: number) => void;
44
- zoomOut: (factor?: number) => void;
45
- resetZoom: () => void;
46
- setZoom: (zoom: number) => void;
47
- setPan: (pan: ImagePoint) => void;
48
- setComparing: (comparing: boolean) => void;
49
- loadImage: (src: string | HTMLImageElement) => Promise<void>;
50
- toDataURL: (options?: ExportOptions) => Promise<string>;
51
- toBlob: (options?: ExportOptions) => Promise<Blob>;
52
- toJSON: () => SerializedImageEditorState;
53
- loadJSON: (data: SerializedImageEditorState) => void;
54
- renderMask: (options?: {
55
- useAnnotations?: boolean;
56
- useCrop?: boolean;
57
- }) => Promise<HTMLCanvasElement>;
58
- toMaskDataURL: (options?: {
59
- useAnnotations?: boolean;
60
- useCrop?: boolean;
61
- }) => Promise<string>;
62
- toSourceDataURL: (options?: Pick<ExportOptions, 'format' | 'quality'>) => Promise<string>;
63
- /** In documents with several layers (or `target: 'new-layer'`) the result goes to a new layer. */
64
- applyInpaintedImage: (newDataUrl: string, options?: AIResultOptions) => Promise<string | void>;
65
- /** In documents with several layers (or `target: 'new-layer'`) the result's alpha masks the active layer. */
66
- applyBackgroundRemovedImage: (newDataUrl: string, options?: AIResultOptions) => Promise<string | void>;
67
- }
68
- declare function useImageEditor(options?: ImageEditorOptions): UseImageEditorReturn;
69
- /**
70
- * Registers the image editor's provider-effect tools (`search_effects`, `describe_effect`,
71
- * `apply_effect`, `add_effect_layer`, …) in `registry` while mounted. They work once an effects
72
- * provider is registered (see `useEffects`); before that the read tools say so and the write tools
73
- * refuse.
74
- */
75
- declare function useImageEffectsTools(registry: ToolRegistry | null | undefined, controller: ImageEditorController, options?: ImageEffectsToolProviderOptions): void;
76
-
77
- interface ImageEditorProps {
78
- editor?: UseImageEditorReturn;
79
- src?: string;
80
- className?: string;
81
- style?: React__default.CSSProperties;
82
- onSave?: (dataUrl: string) => void;
83
- exportOptions?: ExportOptions;
84
- onInpaint?: InpaintHook;
85
- onRemoveBackground?: RemoveBackgroundHook;
86
- aiHooks?: ImageEditorAIHooks;
87
- /**
88
- * An effects provider (see `@pixerate/editor/effects`), registered with the controller while
89
- * mounted: filter effects as smart filters and generator or overlay effects as effect layers,
90
- * with an Effects section in the Layers tab. Optional: without one the editor is as before.
91
- */
92
- effects?: EffectProvider | null;
93
- }
94
- declare const ImageEditor: React__default.FC<ImageEditorProps>;
95
-
96
- interface HistogramProps {
97
- histogram: ImageHistogram | null;
98
- /** `rgb` overlays the three channels on the luminance; a single channel draws just that one. */
99
- channel?: 'rgb' | 'luminance' | 'red' | 'green' | 'blue';
100
- height?: number;
101
- className?: string;
102
- style?: React__default.CSSProperties;
103
- }
104
- /** SVG histogram of an image (see `computeHistogram` / `controller.subscribeHistogram`). */
105
- declare const Histogram: React__default.FC<HistogramProps>;
106
- /** The preview histogram of an image editor, updated after every render. */
107
- declare function useImageHistogram(controller: ImageEditorController): ImageHistogram | null;
108
-
109
- interface ControlSliderProps {
110
- spec: ControlSpec;
111
- value: number;
112
- onChange: (value: number) => void;
113
- disabled?: boolean;
114
- /** Overrides `spec.label` (also the accessible name). */
115
- label?: string;
116
- }
117
- /** A labelled range input described by a control-table entry. */
118
- declare const ControlSlider: React__default.FC<ControlSliderProps>;
119
-
120
- interface CurvesEditorProps {
121
- points: CurvePoint[];
122
- /** `commit` is true for the first change of a gesture (one undo step), false for the drag moves. */
123
- onChange: (points: CurvePoint[], commit: boolean) => void;
124
- histogram?: ImageHistogram | null;
125
- channel?: 'master' | 'red' | 'green' | 'blue';
126
- size?: number;
127
- }
128
- /**
129
- * Curves editor over the histogram: click to add a point, drag to move it, double-click to
130
- * remove it.
131
- */
132
- declare const CurvesEditor: React__default.FC<CurvesEditorProps>;
133
-
134
- interface AdjustmentLayersPanelProps {
135
- controller: ImageEditorController;
136
- /** The current layers (`state.adjustments.layers`), bottom to top. Omit to follow the controller. */
137
- layers?: AdjustmentLayer[];
138
- histogram?: ImageHistogram | null;
139
- }
140
- /**
141
- * Adjustment-layer stack: add, reorder, show / hide and remove layers, and edit the selected
142
- * one (curves over the histogram, levels, hue/saturation ranges, colour balance, …).
143
- */
144
- declare const AdjustmentLayersPanel: React__default.FC<AdjustmentLayersPanelProps>;
145
-
146
- interface SelectionOptionsBarProps {
147
- controller: ImageEditorController;
148
- options: SelectionToolOptions;
149
- onOptionsChange: (next: SelectionToolOptions) => void;
150
- /** The current selection (pass `state.selection` so the bar re-renders with it). */
151
- selection?: SelectionMask | null;
152
- /** The current Quick Mask view flag (`state.quickMask`). */
153
- quickMask?: boolean;
154
- className?: string;
155
- }
156
- /**
157
- * Options bar of the selection tools: tool, mode (new / add / subtract / intersect), magic wand
158
- * tolerance and contiguous, anti-alias, sample merged, Select › All / Deselect / Inverse,
159
- * Modify (grow, shrink, feather, border, smooth) and the Quick Mask toggle.
160
- */
161
- declare const SelectionOptionsBar: React__default.FC<SelectionOptionsBarProps>;
162
-
163
- interface RefineEdgePanelProps {
164
- controller: ImageEditorController;
165
- /** The current selection (`state.selection`), so the panel re-renders with it. */
166
- selection?: SelectionMask | null;
167
- /** The adjustment layers (`state.adjustments.layers`), for the mask actions. */
168
- layers?: AdjustmentLayer[];
169
- className?: string;
170
- }
171
- /**
172
- * Refine Edge (snap the selection, e.g. a coarse AI mask, to the image's edges) and layer masks:
173
- * use the selection as an adjustment layer's mask, edit mask density and feather, load a mask
174
- * back as a selection.
175
- */
176
- declare const RefineEdgePanel: React__default.FC<RefineEdgePanelProps>;
177
-
178
- interface LayersPanelProps {
179
- controller: ImageEditorController;
180
- /** Thumbnail size in px (default 32). */
181
- thumbnailSize?: number;
182
- /** Show Open PSD / Export PSD (default true). */
183
- psd?: boolean;
184
- /** Base name of exported PSD files (default `image`). */
185
- psdFileName?: string;
186
- /** Show the active layer's effects section (default true). */
187
- effects?: boolean;
188
- className?: string;
189
- }
190
- /**
191
- * The layer stack, top first: visibility, thumbnails, names (double-click to rename), locks,
192
- * mask thumbnails (click to paint the mask, Shift-click to disable it), drag to reorder or drop
193
- * into a group, opacity / fill / blend / clipping for the active layer, and the layer menu
194
- * (right-click a row, or the ⋯ button), an fx badge on rows with effects (click to switch them
195
- * on or off) and the active layer's effects. Every action is one undo step on the controller.
196
- */
197
- declare const LayersPanel: React__default.FC<LayersPanelProps>;
198
-
199
- interface ColorProfilePanelProps {
200
- controller: ImageEditorController;
201
- className?: string;
202
- }
203
- /**
204
- * Colour management: the document's profile (working space) with Assign Profile and Convert to
205
- * Profile (intent, black point compensation), Image › Mode (RGB, CMYK, Lab), and View › Proof
206
- * Setup (profile, intent, simulate paper, gamut warning).
207
- */
208
- declare const ColorProfilePanel: React__default.FC<ColorProfilePanelProps>;
209
-
210
- interface LayerEffectsPanelProps {
211
- controller: ImageEditorController;
212
- /** The layer whose effects to show (default: the active layer). */
213
- layerId?: string | null;
214
- className?: string;
215
- }
216
- /**
217
- * A layer's effects (Photoshop's layer styles): the master switch, Scale Effects, an "Add effect"
218
- * menu, and each effect with its enabled toggle, remove button and, when expanded, its settings.
219
- * Every change is one undo step (a slider drag is one step too).
220
- */
221
- declare const LayerEffectsPanel: React__default.FC<LayerEffectsPanelProps>;
222
-
223
- interface BrushOptionsBarProps {
224
- controller: ImageEditorController;
225
- className?: string;
226
- }
227
- /**
228
- * The paint tools: Move / Brush / Mixer / Eraser, the brush's size, hardness, opacity, flow and
229
- * smoothing, pressure toggles, the foreground and background colours (D resets, X swaps) and
230
- * Edit › Fill / Clear on the active layer, and gradient paint for the brush (the colour changes as
231
- * the stroke goes; `PaintGradientEditor`). With the Mixer Brush: its load (Load brush / Clean
232
- * brush), Wet / Load / Mix, load and clean each stroke, and the RGB / Pigment mixing toggle.
233
- * With a retouching tool: the clone source (Alt-click the canvas to set it), Sample, the Spot
234
- * Healing type, the tone Range, Exposure / Strength and the Aligned / Protect tones / Vibrance
235
- * toggles that tool uses.
236
- * Shortcuts are handled by `handlePaintShortcut` in the editor.
237
- */
238
- declare const BrushOptionsBar: React__default.FC<BrushOptionsBarProps>;
239
-
240
- interface FreeTransformOptionsBarProps {
241
- tool: FreeTransformTool;
242
- className?: string;
243
- }
244
- /**
245
- * Free Transform's options bar (Photoshop's): the mode switch (Free, Rotate, Skew, Distort,
246
- * Perspective, Warp), the reference-point locator, X / Y of the reference point, W / H in percent
247
- * with the proportional chain, the angle and skews, the interpolation, and Commit (Enter) / Cancel
248
- * (Esc). In Warp mode the numbers give way to the warp style, bend, horizontal and vertical
249
- * distortion, orientation and grid. Typed values apply on Enter or when the field loses focus.
250
- */
251
- declare const FreeTransformOptionsBar: React__default.FC<FreeTransformOptionsBarProps>;
252
-
253
- interface ShapeOptionsBarProps {
254
- controller: ImageEditorController;
255
- options: ShapeToolOptions;
256
- onChange: (options: ShapeToolOptions) => void;
257
- className?: string;
258
- }
259
- /**
260
- * The shape tool's options: the kind to draw, fill and stroke (colour or none), stroke width and
261
- * the kind's own settings (corner radius, sides, points, line weight and arrowhead). Changes also
262
- * apply to the active shape layer, as one undo step each.
263
- */
264
- declare const ShapeOptionsBar: React__default.FC<ShapeOptionsBarProps>;
265
-
266
- interface TypeOptionsBarProps {
267
- controller: ImageEditorController;
268
- options: TypeToolOptions;
269
- onChange: (options: TypeToolOptions) => void;
270
- /** The text being edited on the canvas: changes style its selection (or all of it). */
271
- session?: TextEditSession | null;
272
- className?: string;
273
- }
274
- /**
275
- * The type tool's options: font family (from the editor's fonts), size, bold, italic, colour and
276
- * alignment. While text is being edited they style the selection (or the whole text); with a
277
- * type layer active they style all of it; otherwise they set what the next text uses.
278
- */
279
- declare const TypeOptionsBar: React__default.FC<TypeOptionsBarProps>;
280
-
281
- interface ImageProviderEffectsPanelProps {
282
- controller: ImageEditorController;
283
- className?: string;
284
- }
285
- /**
286
- * Provider effects in the image editor, for the active layer: its effect smart filters (apply,
287
- * turn on and off, opacity, reorder, change controls, remove) and, for an effect layer, its own
288
- * controls; plus adding effect layers. Applying a filter effect to a pixel layer converts it to a
289
- * smart object in the same undo step. Without a provider it says why nothing can be added.
290
- */
291
- declare function ImageProviderEffectsPanel({ controller, className }: ImageProviderEffectsPanelProps): React__default.JSX.Element;
292
-
293
- /** The gradient paint editor for the image editor's brush (see `PaintGradientEditorView`). */
294
- declare const PaintGradientEditor: React__default.FC<PaintGradientEditorProps>;
295
-
296
- export { AdjustmentLayersPanel, type AdjustmentLayersPanelProps, BrushOptionsBar, type BrushOptionsBarProps, ColorProfilePanel, type ColorProfilePanelProps, ControlSlider, type ControlSliderProps, CurvesEditor, type CurvesEditorProps, FreeTransformOptionsBar, type FreeTransformOptionsBarProps, Histogram, type HistogramProps, ImageEditor, type ImageEditorProps, ImageProviderEffectsPanel, type ImageProviderEffectsPanelProps, LayerEffectsPanel, type LayerEffectsPanelProps, LayersPanel, type LayersPanelProps, PaintGradientEditor, PaintGradientEditorProps, RefineEdgePanel, type RefineEdgePanelProps, SelectionOptionsBar, type SelectionOptionsBarProps, ShapeOptionsBar, type ShapeOptionsBarProps, TypeOptionsBar, type TypeOptionsBarProps, type UseImageEditorReturn, useImageEditor, useImageEffectsTools, useImageHistogram };
1
+ export * from './useImageEditor.js';
2
+ export * from './ImageEditor.js';
3
+ export * from './Histogram.js';
4
+ export * from './ControlSlider.js';
5
+ export * from './CurvesEditor.js';
6
+ export * from './AdjustmentLayersPanel.js';
7
+ export * from './SelectionOptionsBar.js';
8
+ export * from './RefineEdgePanel.js';
9
+ export * from './LayersPanel.js';
10
+ export * from './ColorProfilePanel.js';
11
+ export * from './LayerEffectsPanel.js';
12
+ export * from './BrushOptionsBar.js';
13
+ export * from './FreeTransformOptionsBar.js';
14
+ export * from './ShapeOptionsBar.js';
15
+ export * from './TypeOptionsBar.js';
16
+ export * from './ImageProviderEffectsPanel.js';
17
+ export * from './PaintGradientEditor.js';
@@ -18,10 +18,10 @@ import {
18
18
  useImageEditor,
19
19
  useImageEffectsTools,
20
20
  useImageHistogram
21
- } from "../chunk-4FQXRPBN.js";
22
- import "../chunk-MO354USR.js";
23
- import "../chunk-WOQ3H7KA.js";
24
- import "../chunk-ZQZAKUUM.js";
21
+ } from "../chunk-SMMO7CZB.js";
22
+ import "../chunk-AJCWF6SN.js";
23
+ import "../chunk-5R67YSSD.js";
24
+ import "../chunk-OTGJEYHV.js";
25
25
  export {
26
26
  AdjustmentLayersPanel,
27
27
  BrushOptionsBar,
@@ -43,4 +43,3 @@ export {
43
43
  useImageEffectsTools,
44
44
  useImageHistogram
45
45
  };
46
- //# sourceMappingURL=index.js.map