@ggraphic/editor 0.0.0-stage → 0.0.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 (847) hide show
  1. package/LICENSE +373 -0
  2. package/NOTICE +2 -0
  3. package/README.md +8 -2
  4. package/THIRD_PARTY_NOTICES +7 -0
  5. package/dist/CanvasEditorProvider.d.ts +214 -0
  6. package/dist/CanvasEditorProvider.js +10 -0
  7. package/dist/ai/applyOperation.d.ts +75 -0
  8. package/dist/ai/applyOperation.js +354 -0
  9. package/dist/ai/describeCanvasElements.d.ts +17 -0
  10. package/dist/ai/describeCanvasElements.js +148 -0
  11. package/dist/ai/illustrationCapability.d.ts +6 -0
  12. package/dist/ai/illustrationCapability.js +20 -0
  13. package/dist/ai/types.d.ts +91 -0
  14. package/dist/ai/types.js +1 -0
  15. package/dist/blocks/liftedBlock.d.ts +61 -0
  16. package/dist/blocks/liftedBlock.js +117 -0
  17. package/dist/brand/bindPick.d.ts +18 -0
  18. package/dist/brand/bindPick.js +28 -0
  19. package/dist/brand/bindableFields.d.ts +9 -0
  20. package/dist/brand/bindableFields.js +61 -0
  21. package/dist/brand/brandRegistry.d.ts +18 -0
  22. package/dist/brand/brandRegistry.js +41 -0
  23. package/dist/brand/composerBrand.d.ts +146 -0
  24. package/dist/brand/composerBrand.js +6 -0
  25. package/dist/collab/documentVersion.d.ts +36 -0
  26. package/dist/collab/documentVersion.js +139 -0
  27. package/dist/collab/pageElementStateKeys.d.ts +33 -0
  28. package/dist/collab/pageElementStateKeys.js +148 -0
  29. package/dist/collab/pagesDoc.d.ts +152 -0
  30. package/dist/collab/pagesDoc.js +434 -0
  31. package/dist/collab/useAwarenessState.d.ts +12 -0
  32. package/dist/collab/useAwarenessState.js +47 -0
  33. package/dist/collab/useEmitHostStateChanges.d.ts +18 -0
  34. package/dist/collab/useEmitHostStateChanges.js +40 -0
  35. package/dist/collab/useSelectionAwareness.d.ts +22 -0
  36. package/dist/collab/useSelectionAwareness.js +60 -0
  37. package/dist/collab/useYjsCanvasBinding.d.ts +7 -0
  38. package/dist/collab/useYjsCanvasBinding.js +21 -0
  39. package/dist/collab/useYjsPageStateSync.d.ts +20 -0
  40. package/dist/collab/useYjsPageStateSync.js +49 -0
  41. package/dist/collab/useYjsPages.d.ts +73 -0
  42. package/dist/collab/useYjsPages.js +396 -0
  43. package/dist/collab/wrapCallbacksWithPageSync.d.ts +3 -0
  44. package/dist/collab/wrapCallbacksWithPageSync.js +62 -0
  45. package/dist/collab/ydocKeys.d.ts +50 -0
  46. package/dist/collab/ydocKeys.js +50 -0
  47. package/dist/collab/yjsBinding.d.ts +27 -0
  48. package/dist/collab/yjsBinding.js +105 -0
  49. package/dist/common/Lightbox.d.ts +8 -0
  50. package/dist/common/Lightbox.js +8 -0
  51. package/dist/common/imageSourceTypes.d.ts +1 -0
  52. package/dist/common/imageSourceTypes.js +1 -0
  53. package/dist/components/AddPageButton.d.ts +13 -0
  54. package/dist/components/AddPageButton.js +13 -0
  55. package/dist/components/CanvasAnnouncer.d.ts +8 -0
  56. package/dist/components/CanvasAnnouncer.js +10 -0
  57. package/dist/components/CanvasContextMenu/CanvasActionSheet.d.ts +12 -0
  58. package/dist/components/CanvasContextMenu/CanvasActionSheet.js +145 -0
  59. package/dist/components/CanvasContextMenu/CanvasContextMenu.d.ts +33 -0
  60. package/dist/components/CanvasContextMenu/CanvasContextMenu.js +107 -0
  61. package/dist/components/CanvasContextMenu/canvasMenuModel.d.ts +68 -0
  62. package/dist/components/CanvasContextMenu/canvasMenuModel.js +203 -0
  63. package/dist/components/CanvasEditor/CanvasEditorShell.d.ts +32 -0
  64. package/dist/components/CanvasEditor/CanvasEditorShell.js +1138 -0
  65. package/dist/components/CanvasEditor/PageWrapper.d.ts +7 -0
  66. package/dist/components/CanvasEditor/PageWrapper.js +103 -0
  67. package/dist/components/CanvasEditor/autoSwitchTab.d.ts +11 -0
  68. package/dist/components/CanvasEditor/autoSwitchTab.js +15 -0
  69. package/dist/components/CanvasEditor/blockInsertContext.d.ts +22 -0
  70. package/dist/components/CanvasEditor/blockInsertContext.js +5 -0
  71. package/dist/components/CanvasEditor/editorShell.d.ts +99 -0
  72. package/dist/components/CanvasEditor/editorShell.js +20 -0
  73. package/dist/components/CanvasEditor/hooks/useCanvasContextMenu.d.ts +32 -0
  74. package/dist/components/CanvasEditor/hooks/useCanvasContextMenu.js +140 -0
  75. package/dist/components/CanvasEditor/hooks/useLoadedConfigs.d.ts +13 -0
  76. package/dist/components/CanvasEditor/hooks/useLoadedConfigs.js +29 -0
  77. package/dist/components/CanvasEditor/hooks/useMobileSheetFit.d.ts +14 -0
  78. package/dist/components/CanvasEditor/hooks/useMobileSheetFit.js +56 -0
  79. package/dist/components/CanvasEditor/hooks/usePageRefs.d.ts +18 -0
  80. package/dist/components/CanvasEditor/hooks/usePageRefs.js +36 -0
  81. package/dist/components/CanvasEditor/hooks/usePageUndoRedoShortcuts.d.ts +25 -0
  82. package/dist/components/CanvasEditor/hooks/usePageUndoRedoShortcuts.js +49 -0
  83. package/dist/components/CanvasEditor/hooks/usePrintImpressumGate.d.ts +17 -0
  84. package/dist/components/CanvasEditor/hooks/usePrintImpressumGate.js +70 -0
  85. package/dist/components/CanvasEditor/hooks/useScrollToAddedPage.d.ts +17 -0
  86. package/dist/components/CanvasEditor/hooks/useScrollToAddedPage.js +31 -0
  87. package/dist/components/CanvasEditor/hooks/useToolbarHandlers.d.ts +75 -0
  88. package/dist/components/CanvasEditor/hooks/useToolbarHandlers.js +69 -0
  89. package/dist/components/CanvasEditor/hooks/useWorkAreaDeselect.d.ts +6 -0
  90. package/dist/components/CanvasEditor/hooks/useWorkAreaDeselect.js +56 -0
  91. package/dist/components/CanvasEditor/layersTab.d.ts +13 -0
  92. package/dist/components/CanvasEditor/layersTab.js +27 -0
  93. package/dist/components/CanvasEditor/mobileSelectionArea.d.ts +8 -0
  94. package/dist/components/CanvasEditor/mobileSelectionArea.js +27 -0
  95. package/dist/components/CanvasEditor/types.d.ts +202 -0
  96. package/dist/components/CanvasEditor/types.js +1 -0
  97. package/dist/components/CanvasEditorSkeleton.d.ts +16 -0
  98. package/dist/components/CanvasEditorSkeleton.js +24 -0
  99. package/dist/components/CanvasMetaBar.d.ts +16 -0
  100. package/dist/components/CanvasMetaBar.js +33 -0
  101. package/dist/components/CanvasRenderLayer.d.ts +37 -0
  102. package/dist/components/CanvasRenderLayer.js +54 -0
  103. package/dist/components/CanvasTextOverlay.d.ts +126 -0
  104. package/dist/components/CanvasTextOverlay.js +525 -0
  105. package/dist/components/ConfigCanvas.d.ts +35 -0
  106. package/dist/components/ConfigCanvas.js +30 -0
  107. package/dist/components/CropGhostOverlay.d.ts +13 -0
  108. package/dist/components/CropGhostOverlay.js +56 -0
  109. package/dist/components/CustomColorSwatch.d.ts +35 -0
  110. package/dist/components/CustomColorSwatch.js +80 -0
  111. package/dist/components/DownloadNotice.d.ts +7 -0
  112. package/dist/components/DownloadNotice.js +7 -0
  113. package/dist/components/GenericCanvas.d.ts +309 -0
  114. package/dist/components/GenericCanvas.js +780 -0
  115. package/dist/components/GenericCanvasElement.d.ts +34 -0
  116. package/dist/components/GenericCanvasElement.js +267 -0
  117. package/dist/components/MobileSelectionPill.d.ts +40 -0
  118. package/dist/components/MobileSelectionPill.js +85 -0
  119. package/dist/components/MultiSelectionTransformer.d.ts +39 -0
  120. package/dist/components/MultiSelectionTransformer.js +107 -0
  121. package/dist/components/PagePreview.d.ts +14 -0
  122. package/dist/components/PagePreview.js +63 -0
  123. package/dist/components/PageThumbnailStrip.d.ts +25 -0
  124. package/dist/components/PageThumbnailStrip.js +46 -0
  125. package/dist/components/PageToolbar.d.ts +12 -0
  126. package/dist/components/PageToolbar.js +20 -0
  127. package/dist/components/PrintGuides.d.ts +13 -0
  128. package/dist/components/PrintGuides.js +28 -0
  129. package/dist/components/RemoteSelectionOverlay.d.ts +15 -0
  130. package/dist/components/RemoteSelectionOverlay.js +29 -0
  131. package/dist/components/RichTextField.d.ts +34 -0
  132. package/dist/components/RichTextField.js +212 -0
  133. package/dist/components/SelectionPill.d.ts +56 -0
  134. package/dist/components/SelectionPill.js +123 -0
  135. package/dist/components/SlideNotesPanel.d.ts +13 -0
  136. package/dist/components/SlideNotesPanel.js +28 -0
  137. package/dist/components/SlotBudgetStatus.d.ts +12 -0
  138. package/dist/components/SlotBudgetStatus.js +64 -0
  139. package/dist/components/StandaloneCanvas.d.ts +33 -0
  140. package/dist/components/StandaloneCanvas.js +61 -0
  141. package/dist/components/TextFormatButtons.d.ts +61 -0
  142. package/dist/components/TextFormatButtons.js +123 -0
  143. package/dist/components/TextFormatControls.d.ts +26 -0
  144. package/dist/components/TextFormatControls.js +73 -0
  145. package/dist/components/Toolbar.d.ts +40 -0
  146. package/dist/components/Toolbar.js +26 -0
  147. package/dist/components/ToolbarStateBridge.d.ts +72 -0
  148. package/dist/components/ToolbarStateBridge.js +298 -0
  149. package/dist/components/TopBar/AutoSaveIndicator.d.ts +8 -0
  150. package/dist/components/TopBar/AutoSaveIndicator.js +44 -0
  151. package/dist/components/TopBar/ContextControls.d.ts +107 -0
  152. package/dist/components/TopBar/ContextControls.js +319 -0
  153. package/dist/components/TopBar/ContextToolbar.d.ts +14 -0
  154. package/dist/components/TopBar/ContextToolbar.js +20 -0
  155. package/dist/components/TopBar/CropModeControls.d.ts +35 -0
  156. package/dist/components/TopBar/CropModeControls.js +84 -0
  157. package/dist/components/TopBar/DownloadSection.d.ts +47 -0
  158. package/dist/components/TopBar/DownloadSection.js +102 -0
  159. package/dist/components/TopBar/MobileSelectionBar.d.ts +16 -0
  160. package/dist/components/TopBar/MobileSelectionBar.js +26 -0
  161. package/dist/components/TopBar/MobileSelectionControls.d.ts +10 -0
  162. package/dist/components/TopBar/MobileSelectionControls.js +43 -0
  163. package/dist/components/TopBar/MultiSelectionToolbar.d.ts +19 -0
  164. package/dist/components/TopBar/MultiSelectionToolbar.js +30 -0
  165. package/dist/components/TopBar/ShareDropdown.d.ts +54 -0
  166. package/dist/components/TopBar/ShareDropdown.js +110 -0
  167. package/dist/components/TopBar/TopBar.d.ts +6 -0
  168. package/dist/components/TopBar/TopBar.js +6 -0
  169. package/dist/components/TopBar/barTiles.d.ts +15 -0
  170. package/dist/components/TopBar/barTiles.js +34 -0
  171. package/dist/components/TopBar/modules/FloatingAiSuggestionBanner.d.ts +28 -0
  172. package/dist/components/TopBar/modules/FloatingAiSuggestionBanner.js +26 -0
  173. package/dist/components/TopBar/modules/FloatingBackgroundControls.d.ts +38 -0
  174. package/dist/components/TopBar/modules/FloatingBackgroundControls.js +133 -0
  175. package/dist/components/TopBar/modules/FloatingColorPicker.d.ts +16 -0
  176. package/dist/components/TopBar/modules/FloatingColorPicker.js +87 -0
  177. package/dist/components/TopBar/modules/FloatingFontRoleControl.d.ts +17 -0
  178. package/dist/components/TopBar/modules/FloatingFontRoleControl.js +37 -0
  179. package/dist/components/TopBar/modules/FloatingFontSizeControl.d.ts +7 -0
  180. package/dist/components/TopBar/modules/FloatingFontSizeControl.js +22 -0
  181. package/dist/components/TopBar/modules/FloatingGradientControl.d.ts +9 -0
  182. package/dist/components/TopBar/modules/FloatingGradientControl.js +35 -0
  183. package/dist/components/TopBar/modules/FloatingHistoryControls.d.ts +11 -0
  184. package/dist/components/TopBar/modules/FloatingHistoryControls.js +19 -0
  185. package/dist/components/TopBar/modules/FloatingImageLookControl.d.ts +9 -0
  186. package/dist/components/TopBar/modules/FloatingImageLookControl.js +15 -0
  187. package/dist/components/TopBar/modules/FloatingLayerControls.d.ts +9 -0
  188. package/dist/components/TopBar/modules/FloatingLayerControls.js +9 -0
  189. package/dist/components/TopBar/modules/FloatingOpacityControl.d.ts +11 -0
  190. package/dist/components/TopBar/modules/FloatingOpacityControl.js +19 -0
  191. package/dist/components/TopBar/modules/FloatingOutlineControl.d.ts +11 -0
  192. package/dist/components/TopBar/modules/FloatingOutlineControl.js +31 -0
  193. package/dist/components/TopBar/modules/FloatingPositionControl.d.ts +38 -0
  194. package/dist/components/TopBar/modules/FloatingPositionControl.js +74 -0
  195. package/dist/components/TopBar/modules/FloatingShadowControl.d.ts +12 -0
  196. package/dist/components/TopBar/modules/FloatingShadowControl.js +40 -0
  197. package/dist/components/TopBar/modules/FloatingTextAlignControl.d.ts +12 -0
  198. package/dist/components/TopBar/modules/FloatingTextAlignControl.js +27 -0
  199. package/dist/components/TransformHud.d.ts +11 -0
  200. package/dist/components/TransformHud.js +121 -0
  201. package/dist/components/WholeTextFormatControls.d.ts +10 -0
  202. package/dist/components/WholeTextFormatControls.js +37 -0
  203. package/dist/components/ZoomableViewport.d.ts +6 -0
  204. package/dist/components/ZoomableViewport.js +4 -0
  205. package/dist/components/accentMark.d.ts +20 -0
  206. package/dist/components/accentMark.js +24 -0
  207. package/dist/components/canvasItemLock.d.ts +13 -0
  208. package/dist/components/canvasItemLock.js +12 -0
  209. package/dist/components/kindRenderers.d.ts +118 -0
  210. package/dist/components/kindRenderers.js +151 -0
  211. package/dist/components/markColor.d.ts +13 -0
  212. package/dist/components/markColor.js +21 -0
  213. package/dist/components/markerMark.d.ts +19 -0
  214. package/dist/components/markerMark.js +26 -0
  215. package/dist/composer/cardFollowsText.d.ts +17 -0
  216. package/dist/composer/cardFollowsText.js +34 -0
  217. package/dist/composer/marks.d.ts +4 -0
  218. package/dist/composer/marks.js +15 -0
  219. package/dist/composer/steckbriefLayout.d.ts +147 -0
  220. package/dist/composer/steckbriefLayout.js +468 -0
  221. package/dist/composer/textFit.d.ts +31 -0
  222. package/dist/composer/textFit.js +89 -0
  223. package/dist/configs/buildSharepicText.d.ts +5 -0
  224. package/dist/configs/buildSharepicText.js +58 -0
  225. package/dist/configs/configLoader.d.ts +34 -0
  226. package/dist/configs/configLoader.js +60 -0
  227. package/dist/configs/factory/actionFactories.d.ts +172 -0
  228. package/dist/configs/factory/actionFactories.js +611 -0
  229. package/dist/configs/factory/baseTypes.d.ts +150 -0
  230. package/dist/configs/factory/baseTypes.js +8 -0
  231. package/dist/configs/factory/carryInstanceState.d.ts +82 -0
  232. package/dist/configs/factory/carryInstanceState.js +121 -0
  233. package/dist/configs/factory/createTextElement.d.ts +63 -0
  234. package/dist/configs/factory/createTextElement.js +63 -0
  235. package/dist/configs/factory/defineSection.d.ts +45 -0
  236. package/dist/configs/factory/defineSection.js +45 -0
  237. package/dist/configs/factory/layoutAccessors.d.ts +15 -0
  238. package/dist/configs/factory/layoutAccessors.js +20 -0
  239. package/dist/configs/featureInjector.d.ts +40 -0
  240. package/dist/configs/featureInjector.js +184 -0
  241. package/dist/configs/pageInheritance.d.ts +8 -0
  242. package/dist/configs/pageInheritance.js +82 -0
  243. package/dist/configs/placeholders.d.ts +14 -0
  244. package/dist/configs/placeholders.js +33 -0
  245. package/dist/configs/shareSection.d.ts +11 -0
  246. package/dist/configs/shareSection.js +65 -0
  247. package/dist/configs/types.d.ts +420 -0
  248. package/dist/configs/types.js +1 -0
  249. package/dist/configs/unifiedTabs.d.ts +26 -0
  250. package/dist/configs/unifiedTabs.js +6 -0
  251. package/dist/editorSeamTypes.d.ts +41 -0
  252. package/dist/editorSeamTypes.js +1 -0
  253. package/dist/export/pptx/buildPptxModel.d.ts +44 -0
  254. package/dist/export/pptx/buildPptxModel.js +612 -0
  255. package/dist/export/pptx/exportPptxDeck.d.ts +23 -0
  256. package/dist/export/pptx/exportPptxDeck.js +77 -0
  257. package/dist/export/pptx/pptxFonts.d.ts +26 -0
  258. package/dist/export/pptx/pptxFonts.js +41 -0
  259. package/dist/export/pptx/pptxUnits.d.ts +27 -0
  260. package/dist/export/pptx/pptxUnits.js +54 -0
  261. package/dist/export/pptx/textModel.d.ts +13 -0
  262. package/dist/export/pptx/textModel.js +115 -0
  263. package/dist/export/pptx/types.d.ts +161 -0
  264. package/dist/export/pptx/types.js +11 -0
  265. package/dist/export/pptx/writePptx.d.ts +40 -0
  266. package/dist/export/pptx/writePptx.js +206 -0
  267. package/dist/export/pptx/writeText.d.ts +19 -0
  268. package/dist/export/pptx/writeText.js +120 -0
  269. package/dist/export/printExport.d.ts +42 -0
  270. package/dist/export/printExport.js +94 -0
  271. package/dist/export/printPdf.d.ts +103 -0
  272. package/dist/export/printPdf.js +144 -0
  273. package/dist/export/slidesPdf.d.ts +9 -0
  274. package/dist/export/slidesPdf.js +31 -0
  275. package/dist/formats/index.d.ts +115 -0
  276. package/dist/formats/index.js +287 -0
  277. package/dist/groups/pageGroups.d.ts +32 -0
  278. package/dist/groups/pageGroups.js +91 -0
  279. package/dist/hooks/index.d.ts +29 -0
  280. package/dist/hooks/index.js +19 -0
  281. package/dist/hooks/useAiImageGeneration.d.ts +15 -0
  282. package/dist/hooks/useAiImageGeneration.js +73 -0
  283. package/dist/hooks/useAnnounce.d.ts +27 -0
  284. package/dist/hooks/useAnnounce.js +47 -0
  285. package/dist/hooks/useBoxSnap.d.ts +37 -0
  286. package/dist/hooks/useBoxSnap.js +49 -0
  287. package/dist/hooks/useCanvasAutoSave.d.ts +33 -0
  288. package/dist/hooks/useCanvasAutoSave.js +259 -0
  289. package/dist/hooks/useCanvasElementHandlers.d.ts +182 -0
  290. package/dist/hooks/useCanvasElementHandlers.js +326 -0
  291. package/dist/hooks/useCanvasHistorySetup.d.ts +37 -0
  292. package/dist/hooks/useCanvasHistorySetup.js +113 -0
  293. package/dist/hooks/useCanvasInteractions.d.ts +31 -0
  294. package/dist/hooks/useCanvasInteractions.js +103 -0
  295. package/dist/hooks/useCanvasKeyboardHandlers.d.ts +37 -0
  296. package/dist/hooks/useCanvasKeyboardHandlers.js +280 -0
  297. package/dist/hooks/useCanvasStoreReset.d.ts +25 -0
  298. package/dist/hooks/useCanvasStoreReset.js +35 -0
  299. package/dist/hooks/useCanvasUndoRedo.d.ts +34 -0
  300. package/dist/hooks/useCanvasUndoRedo.js +213 -0
  301. package/dist/hooks/useContextPress.d.ts +14 -0
  302. package/dist/hooks/useContextPress.js +45 -0
  303. package/dist/hooks/useCropSession.d.ts +23 -0
  304. package/dist/hooks/useCropSession.js +69 -0
  305. package/dist/hooks/useDebounce.d.ts +1 -0
  306. package/dist/hooks/useDebounce.js +14 -0
  307. package/dist/hooks/useDeckAutoSave.d.ts +30 -0
  308. package/dist/hooks/useDeckAutoSave.js +234 -0
  309. package/dist/hooks/useDeepSelect.d.ts +18 -0
  310. package/dist/hooks/useDeepSelect.js +135 -0
  311. package/dist/hooks/useElementSnapping.d.ts +13 -0
  312. package/dist/hooks/useElementSnapping.js +26 -0
  313. package/dist/hooks/useEmojiCatalog.d.ts +3 -0
  314. package/dist/hooks/useEmojiCatalog.js +13 -0
  315. package/dist/hooks/useFloatingModuleHandlers.d.ts +52 -0
  316. package/dist/hooks/useFloatingModuleHandlers.js +285 -0
  317. package/dist/hooks/useFloatingModuleState.d.ts +83 -0
  318. package/dist/hooks/useFloatingModuleState.js +250 -0
  319. package/dist/hooks/useFontGeneration.d.ts +10 -0
  320. package/dist/hooks/useFontGeneration.js +77 -0
  321. package/dist/hooks/useFontLoader.d.ts +53 -0
  322. package/dist/hooks/useFontLoader.js +129 -0
  323. package/dist/hooks/useGeometryReporter.d.ts +19 -0
  324. package/dist/hooks/useGeometryReporter.js +41 -0
  325. package/dist/hooks/useHoverOutline.d.ts +8 -0
  326. package/dist/hooks/useHoverOutline.js +78 -0
  327. package/dist/hooks/useIconCatalog.d.ts +12 -0
  328. package/dist/hooks/useIconCatalog.js +30 -0
  329. package/dist/hooks/useIconSearch.d.ts +2 -0
  330. package/dist/hooks/useIconSearch.js +14 -0
  331. package/dist/hooks/useIconSetsFor.d.ts +8 -0
  332. package/dist/hooks/useIconSetsFor.js +30 -0
  333. package/dist/hooks/useImageCoverFit.d.ts +17 -0
  334. package/dist/hooks/useImageCoverFit.js +35 -0
  335. package/dist/hooks/useIsCanvasMobile.d.ts +3 -0
  336. package/dist/hooks/useIsCanvasMobile.js +19 -0
  337. package/dist/hooks/useMarqueeSelection.d.ts +27 -0
  338. package/dist/hooks/useMarqueeSelection.js +140 -0
  339. package/dist/hooks/useMobileSheet.d.ts +48 -0
  340. package/dist/hooks/useMobileSheet.js +282 -0
  341. package/dist/hooks/useMultiPageExport.d.ts +30 -0
  342. package/dist/hooks/useMultiPageExport.js +117 -0
  343. package/dist/hooks/usePageManager.d.ts +132 -0
  344. package/dist/hooks/usePageManager.js +399 -0
  345. package/dist/hooks/usePageThumbnails.d.ts +10 -0
  346. package/dist/hooks/usePageThumbnails.js +122 -0
  347. package/dist/hooks/usePaginatedIcons.d.ts +11 -0
  348. package/dist/hooks/usePaginatedIcons.js +46 -0
  349. package/dist/hooks/useRovingToolbar.d.ts +17 -0
  350. package/dist/hooks/useRovingToolbar.js +76 -0
  351. package/dist/hooks/useSelectionAnnouncement.d.ts +13 -0
  352. package/dist/hooks/useSelectionAnnouncement.js +68 -0
  353. package/dist/hooks/useSnapScheduler.d.ts +20 -0
  354. package/dist/hooks/useSnapScheduler.js +61 -0
  355. package/dist/hooks/useTrackUnsplashDownload.d.ts +6 -0
  356. package/dist/hooks/useTrackUnsplashDownload.js +19 -0
  357. package/dist/hooks/useZoomGestures.d.ts +35 -0
  358. package/dist/hooks/useZoomGestures.js +185 -0
  359. package/dist/hostServices.d.ts +308 -0
  360. package/dist/hostServices.js +107 -0
  361. package/dist/i18n/de.d.ts +895 -0
  362. package/dist/i18n/de.js +959 -0
  363. package/dist/i18n/en.d.ts +3 -0
  364. package/dist/i18n/en.js +948 -0
  365. package/dist/i18n/messages.d.ts +28 -0
  366. package/dist/i18n/messages.js +66 -0
  367. package/dist/layouts/CanvasEditorLayout.d.ts +28 -0
  368. package/dist/layouts/CanvasEditorLayout.js +56 -0
  369. package/dist/layouts/index.d.ts +2 -0
  370. package/dist/layouts/index.js +2 -0
  371. package/dist/primitives/AssetPrimitive.d.ts +24 -0
  372. package/dist/primitives/AssetPrimitive.js +158 -0
  373. package/dist/primitives/CanvasBackground.d.ts +33 -0
  374. package/dist/primitives/CanvasBackground.js +44 -0
  375. package/dist/primitives/CanvasIcons.d.ts +19 -0
  376. package/dist/primitives/CanvasIcons.js +46 -0
  377. package/dist/primitives/CanvasImage.d.ts +73 -0
  378. package/dist/primitives/CanvasImage.js +460 -0
  379. package/dist/primitives/CanvasRichText.d.ts +25 -0
  380. package/dist/primitives/CanvasRichText.js +281 -0
  381. package/dist/primitives/CanvasStage.d.ts +84 -0
  382. package/dist/primitives/CanvasStage.js +291 -0
  383. package/dist/primitives/CanvasText.d.ts +91 -0
  384. package/dist/primitives/CanvasText.js +293 -0
  385. package/dist/primitives/ChartPrimitive.d.ts +24 -0
  386. package/dist/primitives/ChartPrimitive.js +318 -0
  387. package/dist/primitives/CircleBadge.d.ts +43 -0
  388. package/dist/primitives/CircleBadge.js +233 -0
  389. package/dist/primitives/FramePrimitive.d.ts +14 -0
  390. package/dist/primitives/FramePrimitive.js +406 -0
  391. package/dist/primitives/IconPrimitive.d.ts +28 -0
  392. package/dist/primitives/IconPrimitive.js +119 -0
  393. package/dist/primitives/IllustrationPrimitive.d.ts +16 -0
  394. package/dist/primitives/IllustrationPrimitive.js +184 -0
  395. package/dist/primitives/PillBadge.d.ts +45 -0
  396. package/dist/primitives/PillBadge.js +237 -0
  397. package/dist/primitives/ShapePrimitive.d.ts +12 -0
  398. package/dist/primitives/ShapePrimitive.js +521 -0
  399. package/dist/primitives/SnapGuidelines.d.ts +19 -0
  400. package/dist/primitives/SnapGuidelines.js +34 -0
  401. package/dist/primitives/UserImagePrimitive.d.ts +30 -0
  402. package/dist/primitives/UserImagePrimitive.js +494 -0
  403. package/dist/primitives/index.d.ts +18 -0
  404. package/dist/primitives/index.js +11 -0
  405. package/dist/sidebar/SidebarPanel.d.ts +8 -0
  406. package/dist/sidebar/SidebarPanel.js +219 -0
  407. package/dist/sidebar/SidebarTabBar.d.ts +2 -0
  408. package/dist/sidebar/SidebarTabBar.js +31 -0
  409. package/dist/sidebar/SubsectionTabBar.d.ts +13 -0
  410. package/dist/sidebar/SubsectionTabBar.js +30 -0
  411. package/dist/sidebar/UserUploadsProvider.d.ts +31 -0
  412. package/dist/sidebar/UserUploadsProvider.js +139 -0
  413. package/dist/sidebar/components/AltTextField.d.ts +21 -0
  414. package/dist/sidebar/components/AltTextField.js +60 -0
  415. package/dist/sidebar/components/SidebarHint.d.ts +7 -0
  416. package/dist/sidebar/components/SidebarHint.js +38 -0
  417. package/dist/sidebar/components/SidebarSlider.d.ts +16 -0
  418. package/dist/sidebar/components/SidebarSlider.js +9 -0
  419. package/dist/sidebar/components/TextFieldPrimitives.d.ts +26 -0
  420. package/dist/sidebar/components/TextFieldPrimitives.js +56 -0
  421. package/dist/sidebar/sections/ChartSettingsSection.d.ts +9 -0
  422. package/dist/sidebar/sections/ChartSettingsSection.js +75 -0
  423. package/dist/sidebar/sections/CombinedTextSection.d.ts +16 -0
  424. package/dist/sidebar/sections/CombinedTextSection.js +42 -0
  425. package/dist/sidebar/sections/DiagrammeSection.d.ts +9 -0
  426. package/dist/sidebar/sections/DiagrammeSection.js +41 -0
  427. package/dist/sidebar/sections/EffectsSection.d.ts +20 -0
  428. package/dist/sidebar/sections/EffectsSection.js +23 -0
  429. package/dist/sidebar/sections/FormenSection.d.ts +26 -0
  430. package/dist/sidebar/sections/FormenSection.js +428 -0
  431. package/dist/sidebar/sections/FrameSettingsSection.d.ts +8 -0
  432. package/dist/sidebar/sections/FrameSettingsSection.js +26 -0
  433. package/dist/sidebar/sections/GenericShareSection.d.ts +26 -0
  434. package/dist/sidebar/sections/GenericShareSection.js +262 -0
  435. package/dist/sidebar/sections/IconsSection.d.ts +8 -0
  436. package/dist/sidebar/sections/IconsSection.js +55 -0
  437. package/dist/sidebar/sections/IllustrationSettings.d.ts +9 -0
  438. package/dist/sidebar/sections/IllustrationSettings.js +32 -0
  439. package/dist/sidebar/sections/IllustrationThumb.d.ts +7 -0
  440. package/dist/sidebar/sections/IllustrationThumb.js +15 -0
  441. package/dist/sidebar/sections/ImageAdjustSection.d.ts +13 -0
  442. package/dist/sidebar/sections/ImageAdjustSection.js +84 -0
  443. package/dist/sidebar/sections/LayersSection.d.ts +25 -0
  444. package/dist/sidebar/sections/LayersSection.js +155 -0
  445. package/dist/sidebar/sections/RahmenSection.d.ts +7 -0
  446. package/dist/sidebar/sections/RahmenSection.js +18 -0
  447. package/dist/sidebar/sections/StudioGallery.d.ts +33 -0
  448. package/dist/sidebar/sections/StudioGallery.js +58 -0
  449. package/dist/sidebar/sections/UploadsSection.d.ts +11 -0
  450. package/dist/sidebar/sections/UploadsSection.js +130 -0
  451. package/dist/sidebar/sections/assets/AssetsSection.d.ts +59 -0
  452. package/dist/sidebar/sections/assets/AssetsSection.js +27 -0
  453. package/dist/sidebar/sections/assets/BackgroundCatalog.d.ts +9 -0
  454. package/dist/sidebar/sections/assets/BackgroundCatalog.js +49 -0
  455. package/dist/sidebar/sections/assets/CategoryCard.d.ts +14 -0
  456. package/dist/sidebar/sections/assets/CategoryCard.js +15 -0
  457. package/dist/sidebar/sections/assets/ElementGrid.d.ts +14 -0
  458. package/dist/sidebar/sections/assets/ElementGrid.js +34 -0
  459. package/dist/sidebar/sections/assets/ElementThumb.d.ts +10 -0
  460. package/dist/sidebar/sections/assets/ElementThumb.js +59 -0
  461. package/dist/sidebar/sections/assets/ElementTile.d.ts +32 -0
  462. package/dist/sidebar/sections/assets/ElementTile.js +60 -0
  463. package/dist/sidebar/sections/assets/ElementsPanel.d.ts +7 -0
  464. package/dist/sidebar/sections/assets/ElementsPanel.js +249 -0
  465. package/dist/sidebar/sections/assets/EmojiTonePicker.d.ts +8 -0
  466. package/dist/sidebar/sections/assets/EmojiTonePicker.js +26 -0
  467. package/dist/sidebar/sections/assets/FotosCatalog.d.ts +12 -0
  468. package/dist/sidebar/sections/assets/FotosCatalog.js +41 -0
  469. package/dist/sidebar/sections/assets/IconifyCatalog.d.ts +14 -0
  470. package/dist/sidebar/sections/assets/IconifyCatalog.js +133 -0
  471. package/dist/sidebar/sections/assets/RecentCarousel.d.ts +7 -0
  472. package/dist/sidebar/sections/assets/RecentCarousel.js +42 -0
  473. package/dist/sidebar/sections/assets/StickerCatalog.d.ts +14 -0
  474. package/dist/sidebar/sections/assets/StickerCatalog.js +49 -0
  475. package/dist/sidebar/sections/assets/constants.d.ts +4 -0
  476. package/dist/sidebar/sections/assets/constants.js +15 -0
  477. package/dist/sidebar/sections/assets/elementPanelHost.d.ts +45 -0
  478. package/dist/sidebar/sections/assets/elementPanelHost.js +1 -0
  479. package/dist/sidebar/sections/assets/elementSearch.d.ts +10 -0
  480. package/dist/sidebar/sections/assets/elementSearch.js +38 -0
  481. package/dist/sidebar/sections/assets/elementTypes.d.ts +67 -0
  482. package/dist/sidebar/sections/assets/elementTypes.js +24 -0
  483. package/dist/sidebar/sections/assets/index.d.ts +3 -0
  484. package/dist/sidebar/sections/assets/index.js +3 -0
  485. package/dist/sidebar/sections/assets/useElementCatalog.d.ts +42 -0
  486. package/dist/sidebar/sections/assets/useElementCatalog.js +371 -0
  487. package/dist/sidebar/sections/assets/useRecentElements.d.ts +21 -0
  488. package/dist/sidebar/sections/assets/useRecentElements.js +67 -0
  489. package/dist/sidebar/sections/assets/useStockPhotos.d.ts +22 -0
  490. package/dist/sidebar/sections/assets/useStockPhotos.js +96 -0
  491. package/dist/sidebar/sections/effects/EffectCard.d.ts +11 -0
  492. package/dist/sidebar/sections/effects/EffectCard.js +14 -0
  493. package/dist/sidebar/sections/effects/GradientSettings.d.ts +10 -0
  494. package/dist/sidebar/sections/effects/GradientSettings.js +32 -0
  495. package/dist/sidebar/sections/effects/OutlineSettings.d.ts +12 -0
  496. package/dist/sidebar/sections/effects/OutlineSettings.js +28 -0
  497. package/dist/sidebar/sections/effects/ShadowSettings.d.ts +13 -0
  498. package/dist/sidebar/sections/effects/ShadowSettings.js +37 -0
  499. package/dist/sidebar/sections/effects/effectsFor.d.ts +16 -0
  500. package/dist/sidebar/sections/effects/effectsFor.js +24 -0
  501. package/dist/sidebar/sections/index.d.ts +28 -0
  502. package/dist/sidebar/sections/index.js +36 -0
  503. package/dist/sidebar/sections/lazyWithPreload.d.ts +11 -0
  504. package/dist/sidebar/sections/lazyWithPreload.js +29 -0
  505. package/dist/sidebar/sections/tools/AiCreateTool.d.ts +4 -0
  506. package/dist/sidebar/sections/tools/AiCreateTool.js +58 -0
  507. package/dist/sidebar/sections/tools/AiEditTool.d.ts +4 -0
  508. package/dist/sidebar/sections/tools/AiEditTool.js +57 -0
  509. package/dist/sidebar/sections/tools/AltTextTool.d.ts +11 -0
  510. package/dist/sidebar/sections/tools/AltTextTool.js +78 -0
  511. package/dist/sidebar/sections/tools/BlobCreatorTool.d.ts +5 -0
  512. package/dist/sidebar/sections/tools/BlobCreatorTool.js +85 -0
  513. package/dist/sidebar/sections/tools/GradientTextTool.d.ts +5 -0
  514. package/dist/sidebar/sections/tools/GradientTextTool.js +102 -0
  515. package/dist/sidebar/sections/tools/ImageInputPicker.d.ts +7 -0
  516. package/dist/sidebar/sections/tools/ImageInputPicker.js +68 -0
  517. package/dist/sidebar/sections/tools/QRCodeTool.d.ts +5 -0
  518. package/dist/sidebar/sections/tools/QRCodeTool.js +63 -0
  519. package/dist/sidebar/sections/tools/RemoveBackgroundTool.d.ts +4 -0
  520. package/dist/sidebar/sections/tools/RemoveBackgroundTool.js +52 -0
  521. package/dist/sidebar/sections/tools/TextPathCreatorTool.d.ts +5 -0
  522. package/dist/sidebar/sections/tools/TextPathCreatorTool.js +123 -0
  523. package/dist/sidebar/sections/tools/ToolPanel.d.ts +26 -0
  524. package/dist/sidebar/sections/tools/ToolPanel.js +13 -0
  525. package/dist/sidebar/sections/tools/ToolTiles.d.ts +5 -0
  526. package/dist/sidebar/sections/tools/ToolTiles.js +76 -0
  527. package/dist/sidebar/sections/tools/ToolsSection.d.ts +15 -0
  528. package/dist/sidebar/sections/tools/ToolsSection.js +149 -0
  529. package/dist/sidebar/sections/tools/UnsplashLimitNotice.d.ts +8 -0
  530. package/dist/sidebar/sections/tools/UnsplashLimitNotice.js +22 -0
  531. package/dist/sidebar/sections/tools/UnsplashTool.d.ts +10 -0
  532. package/dist/sidebar/sections/tools/UnsplashTool.js +47 -0
  533. package/dist/sidebar/sections/tools/index.d.ts +1 -0
  534. package/dist/sidebar/sections/tools/index.js +2 -0
  535. package/dist/sidebar/sections/tools/toolTiles.css +335 -0
  536. package/dist/sidebar/sections/tools/useToolImagePlacement.d.ts +19 -0
  537. package/dist/sidebar/sections/tools/useToolImagePlacement.js +23 -0
  538. package/dist/sidebar/sections/whenIdle.d.ts +2 -0
  539. package/dist/sidebar/sections/whenIdle.js +10 -0
  540. package/dist/sidebar/sidebarStyles.d.ts +60 -0
  541. package/dist/sidebar/sidebarStyles.js +61 -0
  542. package/dist/sidebar/tabTypes.d.ts +27 -0
  543. package/dist/sidebar/tabTypes.js +1 -0
  544. package/dist/sidebar/types.d.ts +43 -0
  545. package/dist/sidebar/types.js +1 -0
  546. package/dist/sidebar/useImagePlacement.d.ts +17 -0
  547. package/dist/sidebar/useImagePlacement.js +28 -0
  548. package/dist/stores/AutoSaveStoreProvider.d.ts +28 -0
  549. package/dist/stores/AutoSaveStoreProvider.js +45 -0
  550. package/dist/stores/CanvasStoreProvider.d.ts +43 -0
  551. package/dist/stores/CanvasStoreProvider.js +74 -0
  552. package/dist/stores/createAutoSaveStore.d.ts +50 -0
  553. package/dist/stores/createAutoSaveStore.js +42 -0
  554. package/dist/stores/createCanvasEditorStore.d.ts +126 -0
  555. package/dist/stores/createCanvasEditorStore.js +266 -0
  556. package/dist/stores/useAutoSaveStore.d.ts +12 -0
  557. package/dist/stores/useAutoSaveStore.js +12 -0
  558. package/dist/styles/editor.css +445 -0
  559. package/dist/styles/index.css +4 -0
  560. package/dist/styles/tailwind.css +239 -0
  561. package/dist/styles/tokens.css +199 -0
  562. package/dist/templates/fontWidths.generated.d.ts +1 -0
  563. package/dist/templates/fontWidths.generated.js +17 -0
  564. package/dist/templates/registry.d.ts +59 -0
  565. package/dist/templates/registry.js +40 -0
  566. package/dist/templates/templateGeometry.d.ts +32 -0
  567. package/dist/templates/templateGeometry.js +887 -0
  568. package/dist/templates/testKinds.d.ts +15 -0
  569. package/dist/templates/testKinds.js +151 -0
  570. package/dist/testing/fixtureTemplates.d.ts +13 -0
  571. package/dist/testing/fixtureTemplates.js +376 -0
  572. package/dist/testing/stampKind.d.ts +91 -0
  573. package/dist/testing/stampKind.js +56 -0
  574. package/dist/types/editorTypes.d.ts +65 -0
  575. package/dist/types/editorTypes.js +21 -0
  576. package/dist/ui/alert-dialog.d.ts +18 -0
  577. package/dist/ui/alert-dialog.js +42 -0
  578. package/dist/ui/button.d.ts +10 -0
  579. package/dist/ui/button.js +29 -0
  580. package/dist/ui/dialog.d.ts +15 -0
  581. package/dist/ui/dialog.js +53 -0
  582. package/dist/ui/icon-button.d.ts +18 -0
  583. package/dist/ui/icon-button.js +54 -0
  584. package/dist/ui/input.d.ts +3 -0
  585. package/dist/ui/input.js +6 -0
  586. package/dist/ui/label.d.ts +4 -0
  587. package/dist/ui/label.js +8 -0
  588. package/dist/ui/masonry-grid.d.ts +11 -0
  589. package/dist/ui/masonry-grid.js +43 -0
  590. package/dist/ui/popover.d.ts +10 -0
  591. package/dist/ui/popover.js +26 -0
  592. package/dist/ui/select.d.ts +15 -0
  593. package/dist/ui/select.js +38 -0
  594. package/dist/ui/skeleton.d.ts +2 -0
  595. package/dist/ui/skeleton.js +7 -0
  596. package/dist/ui/switch.d.ts +6 -0
  597. package/dist/ui/switch.js +8 -0
  598. package/dist/utils/__snapshots__/kindSelection.vitest.ts.snap +1086 -0
  599. package/dist/utils/alignment.d.ts +21 -0
  600. package/dist/utils/alignment.js +54 -0
  601. package/dist/utils/axisLock.d.ts +30 -0
  602. package/dist/utils/axisLock.js +78 -0
  603. package/dist/utils/backgroundPhotoCrop.d.ts +28 -0
  604. package/dist/utils/backgroundPhotoCrop.js +28 -0
  605. package/dist/utils/balkenUtils.d.ts +22 -0
  606. package/dist/utils/balkenUtils.js +8 -0
  607. package/dist/utils/canvasAssets.d.ts +134 -0
  608. package/dist/utils/canvasAssets.js +121 -0
  609. package/dist/utils/canvasClipboard.d.ts +51 -0
  610. package/dist/utils/canvasClipboard.js +37 -0
  611. package/dist/utils/canvasCommandRegistry.d.ts +207 -0
  612. package/dist/utils/canvasCommandRegistry.js +124 -0
  613. package/dist/utils/canvasCommands.d.ts +106 -0
  614. package/dist/utils/canvasCommands.js +564 -0
  615. package/dist/utils/canvasFontFamilies.d.ts +12 -0
  616. package/dist/utils/canvasFontFamilies.js +24 -0
  617. package/dist/utils/canvasIcons.d.ts +68 -0
  618. package/dist/utils/canvasIcons.js +293 -0
  619. package/dist/utils/canvasImageSource.d.ts +12 -0
  620. package/dist/utils/canvasImageSource.js +19 -0
  621. package/dist/utils/canvasItem.d.ts +102 -0
  622. package/dist/utils/canvasItem.js +1 -0
  623. package/dist/utils/canvasLayerManager.d.ts +51 -0
  624. package/dist/utils/canvasLayerManager.js +107 -0
  625. package/dist/utils/canvasValueResolver.d.ts +9 -0
  626. package/dist/utils/canvasValueResolver.js +13 -0
  627. package/dist/utils/captureStage.d.ts +59 -0
  628. package/dist/utils/captureStage.js +152 -0
  629. package/dist/utils/chartTypes.d.ts +6 -0
  630. package/dist/utils/chartTypes.js +2 -0
  631. package/dist/utils/chartUtils.d.ts +49 -0
  632. package/dist/utils/chartUtils.js +191 -0
  633. package/dist/utils/circleBadgeUtils.d.ts +28 -0
  634. package/dist/utils/circleBadgeUtils.js +85 -0
  635. package/dist/utils/cn.d.ts +2 -0
  636. package/dist/utils/cn.js +66 -0
  637. package/dist/utils/collectAltTextPages.d.ts +6 -0
  638. package/dist/utils/collectAltTextPages.js +20 -0
  639. package/dist/utils/colorLuminance.d.ts +3 -0
  640. package/dist/utils/colorLuminance.js +14 -0
  641. package/dist/utils/colorNames.d.ts +2 -0
  642. package/dist/utils/colorNames.js +8 -0
  643. package/dist/utils/colorOptions.d.ts +20 -0
  644. package/dist/utils/colorOptions.js +20 -0
  645. package/dist/utils/cornerRadius.d.ts +14 -0
  646. package/dist/utils/cornerRadius.js +27 -0
  647. package/dist/utils/cornerReservation.d.ts +19 -0
  648. package/dist/utils/cornerReservation.js +7 -0
  649. package/dist/utils/coverFit.d.ts +117 -0
  650. package/dist/utils/coverFit.js +207 -0
  651. package/dist/utils/cropAspect.d.ts +47 -0
  652. package/dist/utils/cropAspect.js +53 -0
  653. package/dist/utils/cropGhost.d.ts +63 -0
  654. package/dist/utils/cropGhost.js +216 -0
  655. package/dist/utils/cropSession.d.ts +23 -0
  656. package/dist/utils/cropSession.js +92 -0
  657. package/dist/utils/cropTarget.d.ts +22 -0
  658. package/dist/utils/cropTarget.js +33 -0
  659. package/dist/utils/deepSelect.d.ts +43 -0
  660. package/dist/utils/deepSelect.js +74 -0
  661. package/dist/utils/downloadError.d.ts +2 -0
  662. package/dist/utils/downloadError.js +13 -0
  663. package/dist/utils/duplicateElement.d.ts +127 -0
  664. package/dist/utils/duplicateElement.js +235 -0
  665. package/dist/utils/editorFocus.d.ts +36 -0
  666. package/dist/utils/editorFocus.js +67 -0
  667. package/dist/utils/editorToast.d.ts +21 -0
  668. package/dist/utils/editorToast.js +7 -0
  669. package/dist/utils/elementKinds.d.ts +212 -0
  670. package/dist/utils/elementKinds.js +137 -0
  671. package/dist/utils/emoji/emojiCatalog.d.ts +12 -0
  672. package/dist/utils/emoji/emojiCatalog.en.json +9997 -0
  673. package/dist/utils/emoji/emojiCatalog.js +53 -0
  674. package/dist/utils/emoji/emojiCatalog.json +9913 -0
  675. package/dist/utils/ensureFontsReady.d.ts +12 -0
  676. package/dist/utils/ensureFontsReady.js +23 -0
  677. package/dist/utils/expandImage.d.ts +17 -0
  678. package/dist/utils/expandImage.js +76 -0
  679. package/dist/utils/externalIcons.d.ts +67 -0
  680. package/dist/utils/externalIcons.js +168 -0
  681. package/dist/utils/filterCache.d.ts +16 -0
  682. package/dist/utils/filterCache.js +31 -0
  683. package/dist/utils/filterUtils.d.ts +2 -0
  684. package/dist/utils/filterUtils.js +89 -0
  685. package/dist/utils/followStage.d.ts +2 -0
  686. package/dist/utils/followStage.js +48 -0
  687. package/dist/utils/fontAliases.d.ts +14 -0
  688. package/dist/utils/fontAliases.js +32 -0
  689. package/dist/utils/fontMarkSupport.d.ts +25 -0
  690. package/dist/utils/fontMarkSupport.js +26 -0
  691. package/dist/utils/frameUtils.d.ts +19 -0
  692. package/dist/utils/frameUtils.js +282 -0
  693. package/dist/utils/gradientFill.d.ts +55 -0
  694. package/dist/utils/gradientFill.js +57 -0
  695. package/dist/utils/gradientHitArea.d.ts +22 -0
  696. package/dist/utils/gradientHitArea.js +94 -0
  697. package/dist/utils/grain.d.ts +29 -0
  698. package/dist/utils/grain.js +103 -0
  699. package/dist/utils/grainSpec.d.ts +2 -0
  700. package/dist/utils/grainSpec.js +3 -0
  701. package/dist/utils/groupSnap.d.ts +27 -0
  702. package/dist/utils/groupSnap.js +54 -0
  703. package/dist/utils/handDrawn.d.ts +92 -0
  704. package/dist/utils/handDrawn.js +523 -0
  705. package/dist/utils/historyStamp.d.ts +22 -0
  706. package/dist/utils/historyStamp.js +31 -0
  707. package/dist/utils/hostStorageKeys.d.ts +16 -0
  708. package/dist/utils/hostStorageKeys.js +27 -0
  709. package/dist/utils/iconInstances.d.ts +80 -0
  710. package/dist/utils/iconInstances.js +109 -0
  711. package/dist/utils/illustrations/gophers.d.ts +11 -0
  712. package/dist/utils/illustrations/gophers.js +1236 -0
  713. package/dist/utils/illustrations/humaaans.d.ts +8 -0
  714. package/dist/utils/illustrations/humaaans.js +265 -0
  715. package/dist/utils/illustrations/illlustrations.d.ts +11 -0
  716. package/dist/utils/illustrations/illlustrations.js +929 -0
  717. package/dist/utils/illustrations/kawaii.d.ts +6 -0
  718. package/dist/utils/illustrations/kawaii.js +73 -0
  719. package/dist/utils/illustrations/opendoodles.d.ts +6 -0
  720. package/dist/utils/illustrations/opendoodles.js +271 -0
  721. package/dist/utils/illustrations/openpeeps.d.ts +9 -0
  722. package/dist/utils/illustrations/openpeeps.js +1522 -0
  723. package/dist/utils/illustrations/prefetchAnalytics.d.ts +78 -0
  724. package/dist/utils/illustrations/prefetchAnalytics.js +162 -0
  725. package/dist/utils/illustrations/registry.d.ts +24 -0
  726. package/dist/utils/illustrations/registry.js +104 -0
  727. package/dist/utils/illustrations/svgCache.d.ts +60 -0
  728. package/dist/utils/illustrations/svgCache.js +342 -0
  729. package/dist/utils/illustrations/transhumans.d.ts +8 -0
  730. package/dist/utils/illustrations/transhumans.js +313 -0
  731. package/dist/utils/illustrations/types.d.ts +25 -0
  732. package/dist/utils/illustrations/types.js +45 -0
  733. package/dist/utils/imageElementComparison.d.ts +19 -0
  734. package/dist/utils/imageElementComparison.js +121 -0
  735. package/dist/utils/imageFilters.d.ts +92 -0
  736. package/dist/utils/imageFilters.js +303 -0
  737. package/dist/utils/imageLook.d.ts +16 -0
  738. package/dist/utils/imageLook.js +39 -0
  739. package/dist/utils/keyboardCrop.d.ts +25 -0
  740. package/dist/utils/keyboardCrop.js +98 -0
  741. package/dist/utils/keyboardOwnership.d.ts +30 -0
  742. package/dist/utils/keyboardOwnership.js +93 -0
  743. package/dist/utils/layerLabels.d.ts +39 -0
  744. package/dist/utils/layerLabels.js +181 -0
  745. package/dist/utils/layerLock.d.ts +24 -0
  746. package/dist/utils/layerLock.js +52 -0
  747. package/dist/utils/layerSelection.d.ts +24 -0
  748. package/dist/utils/layerSelection.js +16 -0
  749. package/dist/utils/markerBoxes.d.ts +23 -0
  750. package/dist/utils/markerBoxes.js +73 -0
  751. package/dist/utils/markerColors.d.ts +9 -0
  752. package/dist/utils/markerColors.js +39 -0
  753. package/dist/utils/mediaDrop.d.ts +76 -0
  754. package/dist/utils/mediaDrop.js +95 -0
  755. package/dist/utils/mediaPlacement.d.ts +6 -0
  756. package/dist/utils/mediaPlacement.js +17 -0
  757. package/dist/utils/motifSizes.d.ts +8 -0
  758. package/dist/utils/motifSizes.js +9 -0
  759. package/dist/utils/multiSelect.d.ts +44 -0
  760. package/dist/utils/multiSelect.js +139 -0
  761. package/dist/utils/notch.d.ts +17 -0
  762. package/dist/utils/notch.js +23 -0
  763. package/dist/utils/orientElement.d.ts +46 -0
  764. package/dist/utils/orientElement.js +108 -0
  765. package/dist/utils/orientation.d.ts +119 -0
  766. package/dist/utils/orientation.js +411 -0
  767. package/dist/utils/pageCounter.d.ts +15 -0
  768. package/dist/utils/pageCounter.js +17 -0
  769. package/dist/utils/pendingImages.d.ts +10 -0
  770. package/dist/utils/pendingImages.js +25 -0
  771. package/dist/utils/photoCredit.d.ts +9 -0
  772. package/dist/utils/photoCredit.js +29 -0
  773. package/dist/utils/photoCredits.d.ts +5 -0
  774. package/dist/utils/photoCredits.js +17 -0
  775. package/dist/utils/photoPlaceholder.d.ts +22 -0
  776. package/dist/utils/photoPlaceholder.js +36 -0
  777. package/dist/utils/pillBadgeUtils.d.ts +40 -0
  778. package/dist/utils/pillBadgeUtils.js +94 -0
  779. package/dist/utils/pixelHitArea.d.ts +13 -0
  780. package/dist/utils/pixelHitArea.js +33 -0
  781. package/dist/utils/plainTextLayout.d.ts +11 -0
  782. package/dist/utils/plainTextLayout.js +64 -0
  783. package/dist/utils/printImageInfo.d.ts +9 -0
  784. package/dist/utils/printImageInfo.js +14 -0
  785. package/dist/utils/recacheNextFrame.d.ts +6 -0
  786. package/dist/utils/recacheNextFrame.js +15 -0
  787. package/dist/utils/removeElement.d.ts +17 -0
  788. package/dist/utils/removeElement.js +47 -0
  789. package/dist/utils/renderedBoxes.d.ts +19 -0
  790. package/dist/utils/renderedBoxes.js +67 -0
  791. package/dist/utils/resolveElementValue.d.ts +44 -0
  792. package/dist/utils/resolveElementValue.js +72 -0
  793. package/dist/utils/scrollBehavior.d.ts +6 -0
  794. package/dist/utils/scrollBehavior.js +17 -0
  795. package/dist/utils/searchTranslations.d.ts +20 -0
  796. package/dist/utils/searchTranslations.js +366 -0
  797. package/dist/utils/selectionCapabilities.d.ts +53 -0
  798. package/dist/utils/selectionCapabilities.js +52 -0
  799. package/dist/utils/shade.d.ts +24 -0
  800. package/dist/utils/shade.js +55 -0
  801. package/dist/utils/shapeDevices.d.ts +72 -0
  802. package/dist/utils/shapeDevices.js +100 -0
  803. package/dist/utils/shapeTransform.d.ts +29 -0
  804. package/dist/utils/shapeTransform.js +69 -0
  805. package/dist/utils/shapes.d.ts +62 -0
  806. package/dist/utils/shapes.js +836 -0
  807. package/dist/utils/smartCrop.d.ts +30 -0
  808. package/dist/utils/smartCrop.js +163 -0
  809. package/dist/utils/snapping.d.ts +116 -0
  810. package/dist/utils/snapping.js +426 -0
  811. package/dist/utils/stageCssScale.d.ts +7 -0
  812. package/dist/utils/stageCssScale.js +11 -0
  813. package/dist/utils/stateTypeAssertions.d.ts +99 -0
  814. package/dist/utils/stateTypeAssertions.js +197 -0
  815. package/dist/utils/straighten.d.ts +51 -0
  816. package/dist/utils/straighten.js +254 -0
  817. package/dist/utils/surfaceGlow.d.ts +7 -0
  818. package/dist/utils/surfaceGlow.js +27 -0
  819. package/dist/utils/templateElementInstance.d.ts +43 -0
  820. package/dist/utils/templateElementInstance.js +100 -0
  821. package/dist/utils/templateRotation.d.ts +24 -0
  822. package/dist/utils/templateRotation.js +56 -0
  823. package/dist/utils/textAlign.d.ts +17 -0
  824. package/dist/utils/textAlign.js +30 -0
  825. package/dist/utils/textEditorOpeners.d.ts +12 -0
  826. package/dist/utils/textEditorOpeners.js +40 -0
  827. package/dist/utils/textRouting.d.ts +17 -0
  828. package/dist/utils/textRouting.js +22 -0
  829. package/dist/utils/textUtils.d.ts +102 -0
  830. package/dist/utils/textUtils.js +250 -0
  831. package/dist/utils/touchInput.d.ts +7 -0
  832. package/dist/utils/touchInput.js +19 -0
  833. package/dist/utils/transformHudLabel.d.ts +3 -0
  834. package/dist/utils/transformHudLabel.js +12 -0
  835. package/dist/utils/unsplashLinks.d.ts +2 -0
  836. package/dist/utils/unsplashLinks.js +7 -0
  837. package/dist/utils/userFacingError.d.ts +10 -0
  838. package/dist/utils/userFacingError.js +10 -0
  839. package/dist/utils/userImageCrop.d.ts +4 -0
  840. package/dist/utils/userImageCrop.js +26 -0
  841. package/dist/utils/userImageUtils.d.ts +44 -0
  842. package/dist/utils/userImageUtils.js +136 -0
  843. package/dist/utils/viewport.d.ts +16 -0
  844. package/dist/utils/viewport.js +30 -0
  845. package/dist/utils/zipPageImages.d.ts +8 -0
  846. package/dist/utils/zipPageImages.js +29 -0
  847. package/package.json +105 -3
package/LICENSE ADDED
@@ -0,0 +1,373 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+
18
+ 1.4. "Covered Software"
19
+ means Source Code Form to which the initial Contributor has attached
20
+ the notice in Exhibit A, the Executable Form of such Source Code
21
+ Form, and Modifications of such Source Code Form, in each case
22
+ including portions thereof.
23
+
24
+ 1.5. "Incompatible With Secondary Licenses"
25
+ means
26
+
27
+ (a) that the initial Contributor has attached the notice described
28
+ in Exhibit B to the Covered Software; or
29
+
30
+ (b) that the Covered Software was made available under the terms of
31
+ version 1.1 or earlier of the License, but not also under the
32
+ terms of a Secondary License.
33
+
34
+ 1.6. "Executable Form"
35
+ means any form of the work other than Source Code Form.
36
+
37
+ 1.7. "Larger Work"
38
+ means a work that combines Covered Software with other material, in
39
+ a separate file or files, that is not Covered Software.
40
+
41
+ 1.8. "License"
42
+ means this document.
43
+
44
+ 1.9. "Licensable"
45
+ means having the right to grant, to the maximum extent possible,
46
+ whether at the time of the initial grant or subsequently, any and
47
+ all of the rights conveyed by this License.
48
+
49
+ 1.10. "Modifications"
50
+ means any of the following:
51
+
52
+ (a) any file in Source Code Form that results from an addition to,
53
+ deletion from, or modification of the contents of Covered
54
+ Software; or
55
+
56
+ (b) any new file in Source Code Form that contains any Covered
57
+ Software.
58
+
59
+ 1.11. "Patent Claims" of a Contributor
60
+ means any patent claim(s), including without limitation, method,
61
+ process, and apparatus claims, in any patent Licensable by such
62
+ Contributor that would be infringed, but for the grant of the
63
+ License, by the making, using, selling, offering for sale, having
64
+ made, import, or transfer of either its Contributions or its
65
+ Contributor Version.
66
+
67
+ 1.12. "Secondary License"
68
+ means either the GNU General Public License, Version 2.0, the GNU
69
+ Lesser General Public License, Version 2.1, the GNU Affero General
70
+ Public License, Version 3.0, or any later versions of those
71
+ licenses.
72
+
73
+ 1.13. "Source Code Form"
74
+ means the form of the work preferred for making modifications.
75
+
76
+ 1.14. "You" (or "Your")
77
+ means an individual or a legal entity exercising rights under this
78
+ License. For legal entities, "You" includes any entity that
79
+ controls, is controlled by, or is under common control with You. For
80
+ purposes of this definition, "control" means (a) the power, direct
81
+ or indirect, to cause the direction or management of such entity,
82
+ whether by contract or otherwise, or (b) ownership of more than
83
+ fifty percent (50%) of the outstanding shares or beneficial
84
+ ownership of such entity.
85
+
86
+ 2. License Grants and Conditions
87
+ --------------------------------
88
+
89
+ 2.1. Grants
90
+
91
+ Each Contributor hereby grants You a world-wide, royalty-free,
92
+ non-exclusive license:
93
+
94
+ (a) under intellectual property rights (other than patent or trademark)
95
+ Licensable by such Contributor to use, reproduce, make available,
96
+ modify, display, perform, distribute, and otherwise exploit its
97
+ Contributions, either on an unmodified basis, with Modifications, or
98
+ as part of a Larger Work; and
99
+
100
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
101
+ for sale, have made, import, and otherwise transfer either its
102
+ Contributions or its Contributor Version.
103
+
104
+ 2.2. Effective Date
105
+
106
+ The licenses granted in Section 2.1 with respect to any Contribution
107
+ become effective for each Contribution on the date the Contributor first
108
+ distributes such Contribution.
109
+
110
+ 2.3. Limitations on Grant Scope
111
+
112
+ The licenses granted in this Section 2 are the only rights granted under
113
+ this License. No additional rights or licenses will be implied from the
114
+ distribution or licensing of Covered Software under this License.
115
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
116
+ Contributor:
117
+
118
+ (a) for any code that a Contributor has removed from Covered Software;
119
+ or
120
+
121
+ (b) for infringements caused by: (i) Your and any other third party's
122
+ modifications of Covered Software, or (ii) the combination of its
123
+ Contributions with other software (except as part of its Contributor
124
+ Version); or
125
+
126
+ (c) under Patent Claims infringed by Covered Software in the absence of
127
+ its Contributions.
128
+
129
+ This License does not grant any rights in the trademarks, service marks,
130
+ or logos of any Contributor (except as may be necessary to comply with
131
+ the notice requirements in Section 3.4).
132
+
133
+ 2.4. Subsequent Licenses
134
+
135
+ No Contributor makes additional grants as a result of Your choice to
136
+ distribute the Covered Software under a subsequent version of this
137
+ License (see Section 10.2) or under the terms of a Secondary License (if
138
+ permitted under the terms of Section 3.3).
139
+
140
+ 2.5. Representation
141
+
142
+ Each Contributor represents that the Contributor believes its
143
+ Contributions are its original creation(s) or it has sufficient rights
144
+ to grant the rights to its Contributions conveyed by this License.
145
+
146
+ 2.6. Fair Use
147
+
148
+ This License is not intended to limit any rights You have under
149
+ applicable copyright doctrines of fair use, fair dealing, or other
150
+ equivalents.
151
+
152
+ 2.7. Conditions
153
+
154
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155
+ in Section 2.1.
156
+
157
+ 3. Responsibilities
158
+ -------------------
159
+
160
+ 3.1. Distribution of Source Form
161
+
162
+ All distribution of Covered Software in Source Code Form, including any
163
+ Modifications that You create or to which You contribute, must be under
164
+ the terms of this License. You must inform recipients that the Source
165
+ Code Form of the Covered Software is governed by the terms of this
166
+ License, and how they can obtain a copy of this License. You may not
167
+ attempt to alter or restrict the recipients' rights in the Source Code
168
+ Form.
169
+
170
+ 3.2. Distribution of Executable Form
171
+
172
+ If You distribute Covered Software in Executable Form then:
173
+
174
+ (a) such Covered Software must also be made available in Source Code
175
+ Form, as described in Section 3.1, and You must inform recipients of
176
+ the Executable Form how they can obtain a copy of such Source Code
177
+ Form by reasonable means in a timely manner, at a charge no more
178
+ than the cost of distribution to the recipient; and
179
+
180
+ (b) You may distribute such Executable Form under the terms of this
181
+ License, or sublicense it under different terms, provided that the
182
+ license for the Executable Form does not attempt to limit or alter
183
+ the recipients' rights in the Source Code Form under this License.
184
+
185
+ 3.3. Distribution of a Larger Work
186
+
187
+ You may create and distribute a Larger Work under terms of Your choice,
188
+ provided that You also comply with the requirements of this License for
189
+ the Covered Software. If the Larger Work is a combination of Covered
190
+ Software with a work governed by one or more Secondary Licenses, and the
191
+ Covered Software is not Incompatible With Secondary Licenses, this
192
+ License permits You to additionally distribute such Covered Software
193
+ under the terms of such Secondary License(s), so that the recipient of
194
+ the Larger Work may, at their option, further distribute the Covered
195
+ Software under the terms of either this License or such Secondary
196
+ License(s).
197
+
198
+ 3.4. Notices
199
+
200
+ You may not remove or alter the substance of any license notices
201
+ (including copyright notices, patent notices, disclaimers of warranty,
202
+ or limitations of liability) contained within the Source Code Form of
203
+ the Covered Software, except that You may alter any license notices to
204
+ the extent required to remedy known factual inaccuracies.
205
+
206
+ 3.5. Application of Additional Terms
207
+
208
+ You may choose to offer, and to charge a fee for, warranty, support,
209
+ indemnity or liability obligations to one or more recipients of Covered
210
+ Software. However, You may do so only on Your own behalf, and not on
211
+ behalf of any Contributor. You must make it absolutely clear that any
212
+ such warranty, support, indemnity, or liability obligation is offered by
213
+ You alone, and You hereby agree to indemnify every Contributor for any
214
+ liability incurred by such Contributor as a result of warranty, support,
215
+ indemnity or liability terms You offer. You may include additional
216
+ disclaimers of warranty and limitations of liability specific to any
217
+ jurisdiction.
218
+
219
+ 4. Inability to Comply Due to Statute or Regulation
220
+ ---------------------------------------------------
221
+
222
+ If it is impossible for You to comply with any of the terms of this
223
+ License with respect to some or all of the Covered Software due to
224
+ statute, judicial order, or regulation then You must: (a) comply with
225
+ the terms of this License to the maximum extent possible; and (b)
226
+ describe the limitations and the code they affect. Such description must
227
+ be placed in a text file included with all distributions of the Covered
228
+ Software under this License. Except to the extent prohibited by statute
229
+ or regulation, such description must be sufficiently detailed for a
230
+ recipient of ordinary skill to be able to understand it.
231
+
232
+ 5. Termination
233
+ --------------
234
+
235
+ 5.1. The rights granted under this License will terminate automatically
236
+ if You fail to comply with any of its terms. However, if You become
237
+ compliant, then the rights granted under this License from a particular
238
+ Contributor are reinstated (a) provisionally, unless and until such
239
+ Contributor explicitly and finally terminates Your grants, and (b) on an
240
+ ongoing basis, if such Contributor fails to notify You of the
241
+ non-compliance by some reasonable means prior to 60 days after You have
242
+ come back into compliance. Moreover, Your grants from a particular
243
+ Contributor are reinstated on an ongoing basis if such Contributor
244
+ notifies You of the non-compliance by some reasonable means, this is the
245
+ first time You have received notice of non-compliance with this License
246
+ from such Contributor, and You become compliant prior to 30 days after
247
+ Your receipt of the notice.
248
+
249
+ 5.2. If You initiate litigation against any entity by asserting a patent
250
+ infringement claim (excluding declaratory judgment actions,
251
+ counter-claims, and cross-claims) alleging that a Contributor Version
252
+ directly or indirectly infringes any patent, then the rights granted to
253
+ You by any and all Contributors for the Covered Software under Section
254
+ 2.1 of this License shall terminate.
255
+
256
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257
+ end user license agreements (excluding distributors and resellers) which
258
+ have been validly granted by You or Your distributors under this License
259
+ prior to termination shall survive termination.
260
+
261
+ ************************************************************************
262
+ * *
263
+ * 6. Disclaimer of Warranty *
264
+ * ------------------------- *
265
+ * *
266
+ * Covered Software is provided under this License on an "as is" *
267
+ * basis, without warranty of any kind, either expressed, implied, or *
268
+ * statutory, including, without limitation, warranties that the *
269
+ * Covered Software is free of defects, merchantable, fit for a *
270
+ * particular purpose or non-infringing. The entire risk as to the *
271
+ * quality and performance of the Covered Software is with You. *
272
+ * Should any Covered Software prove defective in any respect, You *
273
+ * (not any Contributor) assume the cost of any necessary servicing, *
274
+ * repair, or correction. This disclaimer of warranty constitutes an *
275
+ * essential part of this License. No use of any Covered Software is *
276
+ * authorized under this License except under this disclaimer. *
277
+ * *
278
+ ************************************************************************
279
+
280
+ ************************************************************************
281
+ * *
282
+ * 7. Limitation of Liability *
283
+ * -------------------------- *
284
+ * *
285
+ * Under no circumstances and under no legal theory, whether tort *
286
+ * (including negligence), contract, or otherwise, shall any *
287
+ * Contributor, or anyone who distributes Covered Software as *
288
+ * permitted above, be liable to You for any direct, indirect, *
289
+ * special, incidental, or consequential damages of any character *
290
+ * including, without limitation, damages for lost profits, loss of *
291
+ * goodwill, work stoppage, computer failure or malfunction, or any *
292
+ * and all other commercial damages or losses, even if such party *
293
+ * shall have been informed of the possibility of such damages. This *
294
+ * limitation of liability shall not apply to liability for death or *
295
+ * personal injury resulting from such party's negligence to the *
296
+ * extent applicable law prohibits such limitation. Some *
297
+ * jurisdictions do not allow the exclusion or limitation of *
298
+ * incidental or consequential damages, so this exclusion and *
299
+ * limitation may not apply to You. *
300
+ * *
301
+ ************************************************************************
302
+
303
+ 8. Litigation
304
+ -------------
305
+
306
+ Any litigation relating to this License may be brought only in the
307
+ courts of a jurisdiction where the defendant maintains its principal
308
+ place of business and such litigation shall be governed by laws of that
309
+ jurisdiction, without reference to its conflict-of-law provisions.
310
+ Nothing in this Section shall prevent a party's ability to bring
311
+ cross-claims or counter-claims.
312
+
313
+ 9. Miscellaneous
314
+ ----------------
315
+
316
+ This License represents the complete agreement concerning the subject
317
+ matter hereof. If any provision of this License is held to be
318
+ unenforceable, such provision shall be reformed only to the extent
319
+ necessary to make it enforceable. Any law or regulation which provides
320
+ that the language of a contract shall be construed against the drafter
321
+ shall not be used to construe this License against a Contributor.
322
+
323
+ 10. Versions of the License
324
+ ---------------------------
325
+
326
+ 10.1. New Versions
327
+
328
+ Mozilla Foundation is the license steward. Except as provided in Section
329
+ 10.3, no one other than the license steward has the right to modify or
330
+ publish new versions of this License. Each version will be given a
331
+ distinguishing version number.
332
+
333
+ 10.2. Effect of New Versions
334
+
335
+ You may distribute the Covered Software under the terms of the version
336
+ of the License under which You originally received the Covered Software,
337
+ or under the terms of any subsequent version published by the license
338
+ steward.
339
+
340
+ 10.3. Modified Versions
341
+
342
+ If you create software not governed by this License, and you want to
343
+ create a new license for such software, you may create and use a
344
+ modified version of this License if you rename the license and remove
345
+ any references to the name of the license steward (except to note that
346
+ such modified license differs from this License).
347
+
348
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
349
+ Licenses
350
+
351
+ If You choose to distribute Source Code Form that is Incompatible With
352
+ Secondary Licenses under the terms of this version of the License, the
353
+ notice described in Exhibit B of this License must be attached.
354
+
355
+ Exhibit A - Source Code Form License Notice
356
+ -------------------------------------------
357
+
358
+ This Source Code Form is subject to the terms of the Mozilla Public
359
+ License, v. 2.0. If a copy of the MPL was not distributed with this
360
+ file, You can obtain one at https://mozilla.org/MPL/2.0/.
361
+
362
+ If it is not possible or desirable to put the notice in a particular
363
+ file, then You may include the notice in a location (such as a LICENSE
364
+ file in a relevant directory) where a recipient would be likely to look
365
+ for such a notice.
366
+
367
+ You may add additional accurate notices of copyright ownership.
368
+
369
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
370
+ ---------------------------------------------------------
371
+
372
+ This Source Code Form is "Incompatible With Secondary Licenses", as
373
+ defined by the Mozilla Public License, v. 2.0.
package/NOTICE ADDED
@@ -0,0 +1,2 @@
1
+ Originally developed as part of netzbegruenung/Gruenerator (AGPL-3.0);
2
+ relicensed by the copyright holder under MPL-2.0.
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
- # Temporary Holding Version
1
+ # @ggraphic/editor
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > **Alpha, untested.** Early work in progress: the API and the document format can change without notice. See the [repository README](../../README.md#ggraphic).
4
+
5
+ The brand-neutral canvas editor of ggraphic, built on react-konva. Licensed under the [Mozilla Public License 2.0](./LICENSE). Code moves in from the host app's editor package only once it passes the boundary check (`scripts/check-ggraphic-core-boundary.mjs`), file by file and bottom-up: a file moves when it carries no brand content and every file it imports has moved already.
6
+
7
+ Each file is its own entry point (a host imports `@ggraphic/editor/utils/snapping`, not a barrel), so a module keeps its identity and a test can mock it by that path. The export map in `package.json` lists every file.
8
+
9
+ So far it holds the editor's leaf modules: geometry and snapping, selection and keyboard helpers, the icon catalogue, the autosave store, the Yjs page document, and the stage primitives that need nothing else (`CanvasBackground`, `IconPrimitive`, `TransformHud`).
@@ -0,0 +1,7 @@
1
+ This package bundles no third-party components.
2
+
3
+ Its npm dependencies keep their own licenses. The icon data comes at runtime from the
4
+ @iconify-json sets: Tabler, Flowbite, Heroicons, Iconoir and Bootstrap Icons (MIT),
5
+ Lucide (ISC) and Remix Icon (Apache-2.0). @iconify-json/ri is pinned to exactly 1.2.10
6
+ (Remix Icon 4.8.0): from Remix Icon 4.9.0 on, a license of its own applies that forbids
7
+ competing icon libraries.
@@ -0,0 +1,214 @@
1
+ import type { CanvasCarouselService, CanvasIconSearchService, CanvasFeedbackService, CanvasFileDeliveryService, CanvasImageShareService, CanvasImageUrlService, CanvasMediaLibraryService, CanvasPrintService, UseCanvasStudioAssets, UseCanvasUnsplashSearch } from './hostServices.js';
2
+ import type { ApplyResult, HostCanvasAiOperation, HostCanvasAiSnapshot } from '@ggraphic/editor/ai/types';
3
+ import type { StockImage } from '@ggraphic/editor/common/imageSourceTypes';
4
+ import type { AltTextPage, CanvasSpecEditBridge } from '@ggraphic/editor/editorSeamTypes';
5
+ import type { SlotBudget } from '@ggraphic/core';
6
+ import type { CanvasAiCapabilities } from '@ggraphic/schema';
7
+ import type { ComponentType, PropsWithChildren } from 'react';
8
+ /**
9
+ * Bridge between the canvas-editor's typed state/actions/capabilities and the
10
+ * host app's chat UI. Built inside `createChatSection` as a closure so the
11
+ * host never sees the generic TState/TActions and can render suggestion cards
12
+ * without depending on each template's internal types.
13
+ */
14
+ export interface CanvasAiEditBridge {
15
+ /** Capability list to send with the suggest request. */
16
+ capabilityList: CanvasAiCapabilities;
17
+ /** Builds a fresh CanvasAiSnapshot at request-time. */
18
+ getSnapshot: () => HostCanvasAiSnapshot;
19
+ /** Applies an array of operations and returns one ApplyResult per op. */
20
+ applyOperations: (ops: HostCanvasAiOperation[]) => ApplyResult[];
21
+ }
22
+ export type { AltTextPage, AltTextScope, CanvasSpecEditBridge, } from '@ggraphic/editor/editorSeamTypes';
23
+ /**
24
+ * Props passed to the host-supplied chat component when the user opens the
25
+ * Chat sidebar tab. The component renders inline inside the sidebar panel.
26
+ */
27
+ export interface ChatSectionContentProps {
28
+ /** Template id (e.g. 'zitat', 'simple'). */
29
+ canvasType: string;
30
+ /** Returns a structured German text description of the current canvas. */
31
+ getSharepicText: () => string;
32
+ /** Captures the current canvas as a PNG data URL (or null if not ready). */
33
+ captureCanvasImage?: () => Promise<string | null>;
34
+ /** Optional bridge to canvas-AI edit operations. Present only when the
35
+ * template declares AI capabilities. */
36
+ aiEdit?: CanvasAiEditBridge;
37
+ /** Present in the multi-page editor once its pages doc is synced. */
38
+ specEdit?: CanvasSpecEditBridge;
39
+ }
40
+ /**
41
+ * Services only a host's own UI reads. Empty here: a host declares its members
42
+ * by augmenting this interface (`declare module`), and `CanvasEditorServices`
43
+ * carries them.
44
+ */
45
+ export interface CanvasEditorHostServices {
46
+ }
47
+ export interface CanvasEditorServices extends CanvasEditorHostServices {
48
+ /** Fetch curated stock images by category */
49
+ fetchStockImages?: (category?: string | null) => Promise<{
50
+ success: boolean;
51
+ images: StockImage[];
52
+ categories: string[];
53
+ }>;
54
+ /** Fetch a stock image as a File object */
55
+ fetchStockImageAsFile?: (image: StockImage) => Promise<File>;
56
+ /** Search Unsplash images via backend proxy */
57
+ searchUnsplashImages?: (query: string, page?: number, perPage?: number) => Promise<{
58
+ results: StockImage[];
59
+ total: number;
60
+ total_pages: number;
61
+ }>;
62
+ /**
63
+ * The `utm_source` of links to Unsplash (API Terms: name the app). Defaults
64
+ * to `ggraphic`.
65
+ */
66
+ unsplashUtmSource?: string;
67
+ /**
68
+ * Who shares the hourly Unsplash quota, as the subject of the limit notice
69
+ * (e.g. „Product X“). Defaults to a generic „Der Editor“.
70
+ */
71
+ unsplashQuotaOwner?: string;
72
+ /** What the QR tool's preview encodes until a link is typed. Defaults to `https://example.org`. */
73
+ qrPreviewUrl?: string;
74
+ /** Track Unsplash download (API compliance) */
75
+ trackUnsplashDownload?: (image: StockImage) => Promise<void>;
76
+ /** Track live Unsplash API download */
77
+ trackUnsplashDownloadLive?: (downloadLocation: string) => Promise<void>;
78
+ /** Fetch Unsplash image as File */
79
+ fetchUnsplashImageAsFile?: (image: StockImage) => Promise<File>;
80
+ /**
81
+ * Upload an image blob to the host's media library and return a durable URL.
82
+ * In-editor image pickers call this so the persisted background is a stable
83
+ * URL that survives reloads/collaborators — never a session-local `blob:` URL.
84
+ * When omitted, pickers fall back to the (non-durable) object URL.
85
+ */
86
+ uploadImage?: (file: Blob, opts?: {
87
+ filename?: string;
88
+ }) => Promise<string | null>;
89
+ /** Open Unsplash search in browser */
90
+ openUnsplashSearch?: (query: string) => void;
91
+ /** Open the host's sticker creator. When omitted, the Sticker card offers no "Sticker erstellen". */
92
+ openStickerCreator?: () => void;
93
+ /**
94
+ * Generate an image from a text prompt via the host's AI image pipeline.
95
+ * The host is expected to wrap an authenticated endpoint that enforces
96
+ * per-user quota; the returned `remaining` is surfaced in the UI. When
97
+ * omitted, the AI-create tool is hidden.
98
+ */
99
+ generateAiImage?: (prompt: string, opts: {
100
+ variant: 'illustration' | 'realistic' | 'pixel';
101
+ width?: number;
102
+ height?: number;
103
+ }) => Promise<{
104
+ file: File;
105
+ remaining: number | null;
106
+ }>;
107
+ /**
108
+ * Remove the background of an image via the host's server-side
109
+ * background-removal pipeline. When omitted, the bg-removal tool is hidden.
110
+ */
111
+ removeBackgroundFromImage?: (file: File | Blob, onProgress?: (p: {
112
+ phase: string;
113
+ progress: number;
114
+ message: string;
115
+ }) => void) => Promise<{
116
+ file: File;
117
+ objectUrl: string;
118
+ }>;
119
+ /**
120
+ * Search across a large icon catalogue (`CanvasIconSearchService`). When
121
+ * omitted, the Elements tab offers the bundled icons only.
122
+ */
123
+ iconSearch?: CanvasIconSearchService;
124
+ /**
125
+ * Edit an image with a natural-language instruction via Flux. The host
126
+ * wraps the authenticated endpoint and rate-limit checks. When omitted,
127
+ * the AI-edit tool is hidden.
128
+ */
129
+ editAiImage?: (image: File, instruction: string) => Promise<{
130
+ file: File;
131
+ objectUrl: string;
132
+ }>;
133
+ /**
134
+ * „Erweitern" in the crop mode: AI-outpaints `image` to the aspect ratio
135
+ * `aspect` (width / height) of its frame. Reject with an `Error` carrying
136
+ * `userFacing: true` to have its message shown as the toast
137
+ * (consent, budget); any other error shows the editor's generic text. When omitted, the button is hidden.
138
+ */
139
+ expandImage?: (image: File, aspect: number) => Promise<File>;
140
+ /**
141
+ * One alt text per page, in the given order; `null` where a page failed.
142
+ * When omitted, the alt-text tool is hidden.
143
+ */
144
+ generateSlideAltTexts?: (pages: ReadonlyArray<Pick<AltTextPage, 'image' | 'texts'>>) => Promise<Array<string | null>>;
145
+ /** API base URL for multi-page export */
146
+ apiBaseUrl?: string;
147
+ /** Base URL for static assets (illustrations, etc.). Defaults to '' (same origin). */
148
+ assetBaseUrl?: string;
149
+ /**
150
+ * Brand locale of the signed-in user. Locale-scoped assets (AT vs DE logos)
151
+ * and host tiles are filtered by this; defaults to 'de-DE' when omitted.
152
+ */
153
+ userLocale?: 'de-DE' | 'de-AT';
154
+ /**
155
+ * Optional component rendered inside the Chat sidebar section. The host
156
+ * app (apps/web) supplies the actual chat UI here. When omitted, the Chat
157
+ * section shows a "not configured" hint.
158
+ */
159
+ ChatSectionContent?: ComponentType<ChatSectionContentProps>;
160
+ /**
161
+ * The viewer's media library (Uploads tab, image pickers). When omitted, the
162
+ * list is empty and an upload yields nothing. Hooks: see `hostServices.ts`.
163
+ */
164
+ mediaLibrary?: CanvasMediaLibraryService;
165
+ /** Autosave and draft publishing. When omitted, the editor does not autosave. */
166
+ imageShares?: CanvasImageShareService;
167
+ /**
168
+ * Where stored images are drawn and fetched from (`CanvasImageUrlService` in
169
+ * `hostServices.ts`). When omitted, every image loads from the URL it has
170
+ * (`plainImageUrls`).
171
+ */
172
+ imageUrls?: CanvasImageUrlService;
173
+ /**
174
+ * Hands exports to the user. When omitted, the editor uses a plain browser
175
+ * download and the Web Share API (`browserFileDelivery`).
176
+ */
177
+ fileDelivery?: CanvasFileDeliveryService;
178
+ /** Hook for the sticker and background galleries. When omitted, they stay empty. */
179
+ useStudioAssets?: UseCanvasStudioAssets;
180
+ /** Hook holding the Unsplash search state. When omitted, searches find nothing. */
181
+ useUnsplashSearch?: UseCanvasUnsplashSearch;
182
+ /**
183
+ * The impressum gate (`CanvasPrintService` in `hostServices.ts`). When
184
+ * omitted, no format carries an impressum; the PDF export still works.
185
+ */
186
+ print?: CanvasPrintService;
187
+ /**
188
+ * Where the host's feedback form opens from. When omitted, or while
189
+ * `canRequest()` is false, the share menu offers no „Feedback" entry.
190
+ */
191
+ feedback?: CanvasFeedbackService;
192
+ /**
193
+ * Keeps the carousel chrome true after page ops (`CanvasCarouselService`).
194
+ * When omitted, page ops leave the chrome as it is.
195
+ */
196
+ carousel?: CanvasCarouselService;
197
+ /**
198
+ * The text budget of a template element. While a text is selected, the editor
199
+ * warns when it exceeds the budget. Warns only: nothing is clamped. When omitted,
200
+ * the editor shows no budget status.
201
+ */
202
+ slotBudgets?: CanvasSlotBudgetService;
203
+ }
204
+ export interface CanvasSlotBudgetService {
205
+ /** The budget and role of element `elementId` on a page in state `pageState`, or null when it has none. */
206
+ budgetFor(pageState: Readonly<Record<string, unknown>>, elementId: string): {
207
+ budget: SlotBudget;
208
+ role: string;
209
+ } | null;
210
+ }
211
+ export declare function CanvasEditorProvider({ services, children, }: PropsWithChildren<{
212
+ services: CanvasEditorServices;
213
+ }>): import("react").JSX.Element;
214
+ export declare function useCanvasEditorServices(): CanvasEditorServices;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // SPDX-License-Identifier: MPL-2.0
3
+ import { createContext, useContext } from 'react';
4
+ const CanvasEditorContext = createContext({});
5
+ export function CanvasEditorProvider({ services, children, }) {
6
+ return _jsx(CanvasEditorContext.Provider, { value: services, children: children });
7
+ }
8
+ export function useCanvasEditorServices() {
9
+ return useContext(CanvasEditorContext);
10
+ }