@ggraphic/editor 0.1.0-alpha.2 → 0.1.0-alpha.3

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 (439) hide show
  1. package/LICENSE +661 -373
  2. package/NOTICE +2 -1
  3. package/README.md +1 -1
  4. package/dist/CanvasEditorProvider.js +1 -1
  5. package/dist/ai/applyOperation.js +1 -1
  6. package/dist/ai/describeCanvasElements.js +1 -1
  7. package/dist/ai/illustrationCapability.js +1 -1
  8. package/dist/blocks/liftedBlock.js +1 -1
  9. package/dist/brand/bindPick.js +1 -1
  10. package/dist/brand/brandRegistry.js +1 -1
  11. package/dist/collab/documentVersion.js +1 -1
  12. package/dist/collab/pageElementStateKeys.js +1 -1
  13. package/dist/collab/pagesDoc.js +1 -1
  14. package/dist/collab/useAwarenessState.js +1 -1
  15. package/dist/collab/useEmitHostStateChanges.js +1 -1
  16. package/dist/collab/useSelectionAwareness.js +1 -1
  17. package/dist/collab/useYjsCanvasBinding.js +1 -1
  18. package/dist/collab/useYjsPageStateSync.d.ts +1 -15
  19. package/dist/collab/useYjsPageStateSync.js +76 -6
  20. package/dist/collab/wrapCallbacksWithPageSync.js +1 -1
  21. package/dist/collab/ydocKeys.js +1 -1
  22. package/dist/collab/yjsBinding.js +1 -1
  23. package/dist/common/Lightbox.js +1 -1
  24. package/dist/components/AddPageButton.js +1 -1
  25. package/dist/components/CanvasAnnouncer.js +1 -1
  26. package/dist/components/CanvasContextMenu/CanvasActionSheet.js +1 -1
  27. package/dist/components/CanvasContextMenu/CanvasContextMenu.js +1 -1
  28. package/dist/components/CanvasContextMenu/canvasMenuModel.js +1 -1
  29. package/dist/components/CanvasEditor/CanvasEditorShell.js +3 -3
  30. package/dist/components/CanvasEditor/PageWrapper.js +1 -1
  31. package/dist/components/CanvasEditor/blockInsertContext.js +1 -1
  32. package/dist/components/CanvasEditor/editorShell.d.ts +8 -2
  33. package/dist/components/CanvasEditor/hooks/useCanvasContextMenu.js +1 -1
  34. package/dist/components/CanvasEditor/hooks/useLoadedConfigs.js +1 -1
  35. package/dist/components/CanvasEditor/hooks/useMobileSheetFit.js +1 -1
  36. package/dist/components/CanvasEditor/hooks/usePageRefs.js +1 -1
  37. package/dist/components/CanvasEditor/hooks/usePageUndoRedoShortcuts.js +1 -1
  38. package/dist/components/CanvasEditor/hooks/usePrintImpressumGate.js +1 -1
  39. package/dist/components/CanvasEditor/hooks/useScrollToAddedPage.js +1 -1
  40. package/dist/components/CanvasEditor/hooks/useToolbarHandlers.js +1 -1
  41. package/dist/components/CanvasEditor/hooks/useWorkAreaDeselect.js +1 -1
  42. package/dist/components/CanvasEditor/layersTab.js +1 -1
  43. package/dist/components/CanvasEditor/types.d.ts +2 -0
  44. package/dist/components/CanvasEditorSkeleton.js +2 -2
  45. package/dist/components/CanvasMetaBar.js +1 -1
  46. package/dist/components/CanvasRenderLayer.js +1 -1
  47. package/dist/components/CanvasTextOverlay.js +1 -1
  48. package/dist/components/ConfigCanvas.js +1 -1
  49. package/dist/components/CropGhostOverlay.js +1 -1
  50. package/dist/components/CustomColorSwatch.js +1 -1
  51. package/dist/components/GenericCanvas.d.ts +11 -0
  52. package/dist/components/GenericCanvas.js +65 -18
  53. package/dist/components/GenericCanvasElement.js +5 -3
  54. package/dist/components/MultiSelectionTransformer.js +1 -1
  55. package/dist/components/PagePreview.js +1 -1
  56. package/dist/components/PageThumbnailStrip.js +1 -1
  57. package/dist/components/PageToolbar.js +1 -1
  58. package/dist/components/PrintGuides.js +1 -1
  59. package/dist/components/RemoteSelectionOverlay.js +1 -1
  60. package/dist/components/RichTextField.js +1 -1
  61. package/dist/components/SelectionPill.js +1 -1
  62. package/dist/components/SlideNotesPanel.js +1 -1
  63. package/dist/components/SlotBudgetStatus.js +1 -1
  64. package/dist/components/StandaloneCanvas.js +1 -1
  65. package/dist/components/TextFormatControls.js +1 -1
  66. package/dist/components/Toolbar.js +1 -1
  67. package/dist/components/ToolbarStateBridge.js +1 -1
  68. package/dist/components/TopBar/AutoSaveIndicator.js +1 -1
  69. package/dist/components/TopBar/CropModeControls.js +1 -1
  70. package/dist/components/TopBar/DownloadSection.js +1 -1
  71. package/dist/components/TopBar/MobileSelectionControls.js +1 -1
  72. package/dist/components/TopBar/ShareDropdown.js +1 -1
  73. package/dist/components/TopBar/barTiles.js +1 -1
  74. package/dist/components/TopBar/modules/FloatingAiSuggestionBanner.js +1 -1
  75. package/dist/components/TopBar/modules/FloatingBackgroundControls.js +1 -1
  76. package/dist/components/TopBar/modules/FloatingFontRoleControl.js +1 -1
  77. package/dist/components/TopBar/modules/FloatingFontSizeControl.js +1 -1
  78. package/dist/components/TopBar/modules/FloatingHistoryControls.js +1 -1
  79. package/dist/components/TopBar/modules/FloatingImageLookControl.js +1 -1
  80. package/dist/components/TopBar/modules/FloatingLayerControls.js +1 -1
  81. package/dist/components/TopBar/modules/FloatingOpacityControl.js +1 -1
  82. package/dist/components/TopBar/modules/FloatingPositionControl.js +1 -1
  83. package/dist/components/TopBar/modules/FloatingTextAlignControl.js +1 -1
  84. package/dist/components/TransformHud.js +1 -1
  85. package/dist/components/WholeTextFormatControls.js +1 -1
  86. package/dist/components/accentMark.js +1 -1
  87. package/dist/components/canvasItemLock.js +1 -1
  88. package/dist/components/kindRenderers.js +1 -1
  89. package/dist/components/markColor.js +1 -1
  90. package/dist/composer/cardFollowsText.js +1 -1
  91. package/dist/composer/marks.js +1 -1
  92. package/dist/composer/steckbriefLayout.js +1 -1
  93. package/dist/composer/textFit.js +1 -1
  94. package/dist/configs/buildCanvasText.js +1 -1
  95. package/dist/configs/buildSharepicText.js +1 -1
  96. package/dist/configs/configLoader.js +1 -1
  97. package/dist/configs/factory/actionFactories.d.ts +7 -3
  98. package/dist/configs/factory/actionFactories.js +28 -12
  99. package/dist/configs/factory/baseTypes.js +1 -1
  100. package/dist/configs/factory/carryInstanceState.js +1 -1
  101. package/dist/configs/factory/createTextElement.js +1 -1
  102. package/dist/configs/featureInjector.js +1 -1
  103. package/dist/configs/pageInheritance.d.ts +10 -1
  104. package/dist/configs/pageInheritance.js +38 -10
  105. package/dist/configs/placeholders.js +1 -1
  106. package/dist/configs/shareSection.js +1 -1
  107. package/dist/configs/types.d.ts +9 -1
  108. package/dist/configs/unifiedTabs.js +1 -1
  109. package/dist/embed/EmbeddedEditor.d.ts +2 -2
  110. package/dist/embed/EmbeddedEditor.js +2 -2
  111. package/dist/embed/GgraphicEditor.js +1 -1
  112. package/dist/embed/blankPage.d.ts +6 -0
  113. package/dist/embed/blankPage.js +7 -0
  114. package/dist/embed/index.d.ts +1 -0
  115. package/dist/embed/index.js +2 -1
  116. package/dist/entries/ai.js +1 -1
  117. package/dist/entries/brand.js +1 -1
  118. package/dist/entries/canvas.js +1 -1
  119. package/dist/entries/collab.js +1 -1
  120. package/dist/entries/config.d.ts +1 -1
  121. package/dist/entries/elements.js +1 -1
  122. package/dist/entries/embed.d.ts +1 -1
  123. package/dist/entries/embed.js +2 -2
  124. package/dist/entries/export.js +1 -1
  125. package/dist/entries/host.d.ts +2 -1
  126. package/dist/entries/host.js +2 -1
  127. package/dist/entries/hostReact.js +1 -1
  128. package/dist/entries/i18n.js +1 -1
  129. package/dist/entries/illustrations/gophers.js +1 -1
  130. package/dist/entries/illustrations/humaaans.js +1 -1
  131. package/dist/entries/illustrations/illlustrations.js +1 -1
  132. package/dist/entries/illustrations/kawaii.js +1 -1
  133. package/dist/entries/illustrations/opendoodles.js +1 -1
  134. package/dist/entries/illustrations/openpeeps.js +1 -1
  135. package/dist/entries/illustrations/transhumans.js +1 -1
  136. package/dist/entries/kinds.js +1 -1
  137. package/dist/entries/page.js +1 -1
  138. package/dist/entries/shell.d.ts +1 -0
  139. package/dist/entries/shell.js +1 -1
  140. package/dist/entries/sidebar.js +1 -1
  141. package/dist/entries/store.js +1 -1
  142. package/dist/entries/templates.d.ts +1 -1
  143. package/dist/entries/templates.js +2 -2
  144. package/dist/entries/text.js +1 -1
  145. package/dist/export/pptx/buildPptxModel.js +1 -1
  146. package/dist/export/pptx/exportPptxDeck.js +1 -1
  147. package/dist/export/pptx/pptxFonts.js +1 -1
  148. package/dist/export/pptx/pptxUnits.js +1 -1
  149. package/dist/export/pptx/types.js +1 -1
  150. package/dist/export/pptx/writePptx.js +1 -1
  151. package/dist/export/pptx/writeText.js +1 -1
  152. package/dist/export/printExport.js +1 -1
  153. package/dist/export/printPdf.js +1 -1
  154. package/dist/export/slidesPdf.js +1 -1
  155. package/dist/formats/index.d.ts +2 -0
  156. package/dist/formats/index.js +1 -1
  157. package/dist/groups/pageGroups.js +1 -1
  158. package/dist/hooks/editorBox.js +1 -1
  159. package/dist/hooks/index.js +1 -1
  160. package/dist/hooks/stageFit.js +1 -1
  161. package/dist/hooks/useAiImageGeneration.js +1 -1
  162. package/dist/hooks/useAnnounce.js +1 -1
  163. package/dist/hooks/useBoxSnap.js +1 -1
  164. package/dist/hooks/useCanvasAutoSave.js +1 -1
  165. package/dist/hooks/useCanvasElementHandlers.js +1 -1
  166. package/dist/hooks/useCanvasHistorySetup.d.ts +2 -0
  167. package/dist/hooks/useCanvasHistorySetup.js +3 -2
  168. package/dist/hooks/useCanvasInteractions.js +1 -1
  169. package/dist/hooks/useCanvasKeyboardHandlers.js +1 -1
  170. package/dist/hooks/useCanvasStoreReset.js +1 -1
  171. package/dist/hooks/useCanvasUndoRedo.d.ts +2 -0
  172. package/dist/hooks/useCanvasUndoRedo.js +5 -1
  173. package/dist/hooks/useContextPress.js +1 -1
  174. package/dist/hooks/useCropSession.js +1 -1
  175. package/dist/hooks/useDebounce.js +1 -1
  176. package/dist/hooks/useDeckAutoSave.js +1 -1
  177. package/dist/hooks/useDeepSelect.js +1 -1
  178. package/dist/hooks/useElementSnapping.js +1 -1
  179. package/dist/hooks/useEmojiCatalog.js +1 -1
  180. package/dist/hooks/useFloatingModuleState.js +1 -1
  181. package/dist/hooks/useFontGeneration.js +1 -1
  182. package/dist/hooks/useFontLoader.js +1 -1
  183. package/dist/hooks/useGeometryReporter.js +1 -1
  184. package/dist/hooks/useHoverOutline.js +1 -1
  185. package/dist/hooks/useIconCatalog.js +1 -1
  186. package/dist/hooks/useIconSearch.js +1 -1
  187. package/dist/hooks/useIconSetsFor.js +1 -1
  188. package/dist/hooks/useImageCoverFit.js +1 -1
  189. package/dist/hooks/useIsCanvasMobile.js +1 -1
  190. package/dist/hooks/useMarqueeSelection.js +1 -1
  191. package/dist/hooks/useMobileSheet.js +1 -1
  192. package/dist/hooks/useMultiPageExport.js +1 -1
  193. package/dist/hooks/usePageManager.d.ts +2 -1
  194. package/dist/hooks/usePageManager.js +7 -5
  195. package/dist/hooks/usePageThumbnails.js +1 -1
  196. package/dist/hooks/usePaginatedIcons.js +1 -1
  197. package/dist/hooks/useRovingToolbar.js +1 -1
  198. package/dist/hooks/useSelectionAnnouncement.js +1 -1
  199. package/dist/hooks/useSnapScheduler.js +1 -1
  200. package/dist/hooks/useTrackUnsplashDownload.js +1 -1
  201. package/dist/hooks/useZoomGestures.js +1 -1
  202. package/dist/hostServices.js +1 -1
  203. package/dist/i18n/catalogue.js +1 -1
  204. package/dist/i18n/de.js +1 -1
  205. package/dist/i18n/messages.js +1 -1
  206. package/dist/layouts/CanvasEditorLayout.js +2 -2
  207. package/dist/layouts/index.js +1 -1
  208. package/dist/page/actions.js +1 -1
  209. package/dist/page/config.js +1 -1
  210. package/dist/page/fitting.js +1 -1
  211. package/dist/page/hug.js +1 -1
  212. package/dist/page/instantiate.js +1 -1
  213. package/dist/page/logoSize.js +1 -1
  214. package/dist/page/templatePack.js +1 -1
  215. package/dist/primitives/AssetPrimitive.js +8 -6
  216. package/dist/primitives/CanvasBackground.js +1 -1
  217. package/dist/primitives/CanvasIcons.js +1 -1
  218. package/dist/primitives/CanvasImage.js +1 -1
  219. package/dist/primitives/CanvasRichText.js +1 -1
  220. package/dist/primitives/CanvasStage.js +1 -1
  221. package/dist/primitives/CanvasText.js +1 -1
  222. package/dist/primitives/ChartPrimitive.js +1 -1
  223. package/dist/primitives/FramePrimitive.js +1 -1
  224. package/dist/primitives/IconPrimitive.js +1 -1
  225. package/dist/primitives/IllustrationPrimitive.js +1 -1
  226. package/dist/primitives/PillBadge.js +2 -2
  227. package/dist/primitives/ShapePrimitive.js +1 -1
  228. package/dist/primitives/SnapGuidelines.js +1 -1
  229. package/dist/primitives/UserImagePrimitive.js +13 -7
  230. package/dist/primitives/index.js +1 -1
  231. package/dist/sidebar/SidebarPanel.js +1 -1
  232. package/dist/sidebar/SidebarTabBar.js +1 -1
  233. package/dist/sidebar/SubsectionTabBar.js +1 -1
  234. package/dist/sidebar/UserUploadsProvider.js +1 -1
  235. package/dist/sidebar/components/AltTextField.js +1 -1
  236. package/dist/sidebar/components/SidebarHint.js +1 -1
  237. package/dist/sidebar/components/SidebarSlider.js +1 -1
  238. package/dist/sidebar/components/TextFieldPrimitives.js +1 -1
  239. package/dist/sidebar/coreSidebarParts.js +1 -1
  240. package/dist/sidebar/sections/AssetGallery.js +1 -1
  241. package/dist/sidebar/sections/ChartSettingsSection.js +1 -1
  242. package/dist/sidebar/sections/ChartsSection.js +1 -1
  243. package/dist/sidebar/sections/CombinedTextSection.js +1 -1
  244. package/dist/sidebar/sections/DiagrammeSection.js +1 -1
  245. package/dist/sidebar/sections/FormenSection.js +1 -1
  246. package/dist/sidebar/sections/FrameSettingsSection.js +1 -1
  247. package/dist/sidebar/sections/FramesSection.js +1 -1
  248. package/dist/sidebar/sections/GenericShareSection.js +1 -1
  249. package/dist/sidebar/sections/IconsSection.js +1 -1
  250. package/dist/sidebar/sections/IllustrationSettings.js +1 -1
  251. package/dist/sidebar/sections/IllustrationThumb.js +1 -1
  252. package/dist/sidebar/sections/ImageAdjustSection.js +1 -1
  253. package/dist/sidebar/sections/LayersSection.js +1 -1
  254. package/dist/sidebar/sections/RahmenSection.js +1 -1
  255. package/dist/sidebar/sections/ShapesSection.js +1 -1
  256. package/dist/sidebar/sections/StudioGallery.js +1 -1
  257. package/dist/sidebar/sections/UploadsSection.js +1 -1
  258. package/dist/sidebar/sections/assets/AssetsSection.js +1 -1
  259. package/dist/sidebar/sections/assets/BackgroundCatalog.js +1 -1
  260. package/dist/sidebar/sections/assets/CategoryCard.js +1 -1
  261. package/dist/sidebar/sections/assets/ElementGrid.js +1 -1
  262. package/dist/sidebar/sections/assets/ElementThumb.js +1 -1
  263. package/dist/sidebar/sections/assets/ElementTile.js +1 -1
  264. package/dist/sidebar/sections/assets/ElementsPanel.js +1 -1
  265. package/dist/sidebar/sections/assets/EmojiTonePicker.js +1 -1
  266. package/dist/sidebar/sections/assets/FotosCatalog.js +1 -1
  267. package/dist/sidebar/sections/assets/IconifyCatalog.js +1 -1
  268. package/dist/sidebar/sections/assets/RecentCarousel.js +1 -1
  269. package/dist/sidebar/sections/assets/StickerCatalog.js +1 -1
  270. package/dist/sidebar/sections/assets/constants.js +1 -1
  271. package/dist/sidebar/sections/assets/elementSearch.js +1 -1
  272. package/dist/sidebar/sections/assets/elementTypes.js +1 -1
  273. package/dist/sidebar/sections/assets/index.js +1 -1
  274. package/dist/sidebar/sections/assets/useRecentElements.js +1 -1
  275. package/dist/sidebar/sections/assets/useStockPhotos.js +1 -1
  276. package/dist/sidebar/sections/effects/EffectCard.js +1 -1
  277. package/dist/sidebar/sections/effects/GradientSettings.js +1 -1
  278. package/dist/sidebar/sections/effects/OutlineSettings.js +1 -1
  279. package/dist/sidebar/sections/effects/ShadowSettings.js +1 -1
  280. package/dist/sidebar/sections/effects/effectsFor.js +1 -1
  281. package/dist/sidebar/sections/index.js +1 -1
  282. package/dist/sidebar/sections/lazyWithPreload.js +1 -1
  283. package/dist/sidebar/sections/registerBundledIconSets.js +1 -1
  284. package/dist/sidebar/sections/tools/AiCreateTool.js +1 -1
  285. package/dist/sidebar/sections/tools/AiEditTool.js +1 -1
  286. package/dist/sidebar/sections/tools/AltTextTool.js +1 -1
  287. package/dist/sidebar/sections/tools/ImageInputPicker.js +1 -1
  288. package/dist/sidebar/sections/tools/QRCodeTool.js +1 -1
  289. package/dist/sidebar/sections/tools/RemoveBackgroundTool.js +1 -1
  290. package/dist/sidebar/sections/tools/ToolPanel.js +1 -1
  291. package/dist/sidebar/sections/tools/ToolTiles.js +1 -1
  292. package/dist/sidebar/sections/tools/ToolsSection.js +1 -1
  293. package/dist/sidebar/sections/tools/UnsplashLimitNotice.js +1 -1
  294. package/dist/sidebar/sections/tools/UnsplashTool.js +1 -1
  295. package/dist/sidebar/sections/tools/index.js +1 -1
  296. package/dist/sidebar/sections/tools/toolTiles.css +1 -1
  297. package/dist/sidebar/sections/tools/useToolImagePlacement.js +1 -1
  298. package/dist/sidebar/sections/usePreloadSections.js +1 -1
  299. package/dist/sidebar/sections/whenIdle.js +1 -1
  300. package/dist/sidebar/sidebarStyles.js +1 -1
  301. package/dist/sidebar/useImagePlacement.js +1 -1
  302. package/dist/stores/AutoSaveStoreProvider.js +1 -1
  303. package/dist/stores/CanvasStoreProvider.js +1 -1
  304. package/dist/stores/createAutoSaveStore.js +1 -1
  305. package/dist/stores/createCanvasEditorStore.d.ts +11 -0
  306. package/dist/stores/createCanvasEditorStore.js +47 -1
  307. package/dist/stores/useAutoSaveStore.js +1 -1
  308. package/dist/styles/compiled.css +2 -2
  309. package/dist/styles/editor.css +1 -1
  310. package/dist/styles/index.css +1 -1
  311. package/dist/styles/tailwind.css +1 -1
  312. package/dist/styles/tokens.css +1 -1
  313. package/dist/templates/fontWidths.generated.js +1 -1
  314. package/dist/templates/registry.js +1 -1
  315. package/dist/templates/templateGeometry.js +1 -1
  316. package/dist/templates/testKinds.js +1 -1
  317. package/dist/testing/documentBrandPacks.js +1 -1
  318. package/dist/testing/fixtureTemplates.js +1 -1
  319. package/dist/testing/stampKind.js +1 -1
  320. package/dist/types/editorTypes.js +1 -1
  321. package/dist/ui/alert-dialog.js +1 -1
  322. package/dist/ui/button.js +1 -1
  323. package/dist/ui/dialog.js +1 -1
  324. package/dist/ui/editorScope.js +1 -1
  325. package/dist/ui/icon-button.js +1 -1
  326. package/dist/ui/label.js +1 -1
  327. package/dist/ui/masonry-grid.js +1 -1
  328. package/dist/ui/popover.js +1 -1
  329. package/dist/ui/select.js +1 -1
  330. package/dist/ui/skeleton.js +1 -1
  331. package/dist/ui/switch.js +1 -1
  332. package/dist/utils/alignment.js +1 -1
  333. package/dist/utils/axisLock.js +1 -1
  334. package/dist/utils/backgroundPhotoCrop.js +1 -1
  335. package/dist/utils/canvasAssets.js +1 -1
  336. package/dist/utils/canvasClipboard.js +1 -1
  337. package/dist/utils/canvasCommandRegistry.js +1 -1
  338. package/dist/utils/canvasCommands.js +1 -1
  339. package/dist/utils/canvasFontFamilies.js +1 -1
  340. package/dist/utils/canvasIcons.js +1 -1
  341. package/dist/utils/canvasLayerManager.d.ts +4 -0
  342. package/dist/utils/canvasLayerManager.js +12 -7
  343. package/dist/utils/captureStage.js +1 -1
  344. package/dist/utils/chartTypes.js +1 -1
  345. package/dist/utils/chartUtils.js +1 -1
  346. package/dist/utils/circleBadgeUtils.js +1 -1
  347. package/dist/utils/cn.js +1 -1
  348. package/dist/utils/collectAltTextPages.js +1 -1
  349. package/dist/utils/colorLuminance.js +1 -1
  350. package/dist/utils/coverFit.js +1 -1
  351. package/dist/utils/cropAspect.js +1 -1
  352. package/dist/utils/cropGhost.js +1 -1
  353. package/dist/utils/cropSession.js +1 -1
  354. package/dist/utils/cropTarget.js +1 -1
  355. package/dist/utils/deepSelect.js +1 -1
  356. package/dist/utils/downloadError.js +1 -1
  357. package/dist/utils/duplicateElement.js +1 -1
  358. package/dist/utils/editorFocus.js +1 -1
  359. package/dist/utils/elementKinds.js +1 -1
  360. package/dist/utils/emoji/emojiCatalog.js +1 -1
  361. package/dist/utils/ensureFontsReady.d.ts +8 -2
  362. package/dist/utils/ensureFontsReady.js +20 -10
  363. package/dist/utils/expandImage.js +1 -1
  364. package/dist/utils/externalIcons.js +1 -1
  365. package/dist/utils/filterCache.js +1 -1
  366. package/dist/utils/filterUtils.js +1 -1
  367. package/dist/utils/fontAliases.js +1 -1
  368. package/dist/utils/fontGeneration.js +1 -1
  369. package/dist/utils/fontMarkSupport.js +1 -1
  370. package/dist/utils/fontSpecs.js +1 -1
  371. package/dist/utils/gradientFill.js +1 -1
  372. package/dist/utils/gradientHitArea.js +1 -1
  373. package/dist/utils/grain.js +1 -1
  374. package/dist/utils/grainSpec.js +1 -1
  375. package/dist/utils/groupSnap.js +1 -1
  376. package/dist/utils/handDrawn.js +1 -1
  377. package/dist/utils/historyStamp.js +1 -1
  378. package/dist/utils/hostStorageKeys.js +1 -1
  379. package/dist/utils/iconInstances.js +1 -1
  380. package/dist/utils/illustrations/gophers.js +1 -1
  381. package/dist/utils/illustrations/humaaans.js +1 -1
  382. package/dist/utils/illustrations/illlustrations.js +1 -1
  383. package/dist/utils/illustrations/kawaii.js +1 -1
  384. package/dist/utils/illustrations/opendoodles.js +1 -1
  385. package/dist/utils/illustrations/openpeeps.js +1 -1
  386. package/dist/utils/illustrations/prefetchAnalytics.js +1 -1
  387. package/dist/utils/illustrations/registry.js +1 -1
  388. package/dist/utils/illustrations/svgCache.js +1 -1
  389. package/dist/utils/illustrations/transhumans.js +1 -1
  390. package/dist/utils/illustrations/types.js +1 -1
  391. package/dist/utils/imageElementComparison.js +1 -1
  392. package/dist/utils/imageFilters.js +1 -1
  393. package/dist/utils/imageLook.js +1 -1
  394. package/dist/utils/keyboardCrop.js +1 -1
  395. package/dist/utils/keyboardOwnership.js +1 -1
  396. package/dist/utils/layerLabels.js +1 -1
  397. package/dist/utils/layerLock.js +1 -1
  398. package/dist/utils/layerSelection.js +1 -1
  399. package/dist/utils/mediaDrop.js +1 -1
  400. package/dist/utils/mediaPlacement.js +1 -1
  401. package/dist/utils/motifSizes.js +1 -1
  402. package/dist/utils/multiSelect.js +1 -1
  403. package/dist/utils/notch.js +1 -1
  404. package/dist/utils/orientElement.js +1 -1
  405. package/dist/utils/orientation.js +1 -1
  406. package/dist/utils/pageCounter.js +1 -1
  407. package/dist/utils/pendingImages.d.ts +17 -4
  408. package/dist/utils/pendingImages.js +18 -14
  409. package/dist/utils/photoCredit.js +1 -1
  410. package/dist/utils/photoPlaceholder.js +1 -1
  411. package/dist/utils/pillBadgeUtils.js +1 -1
  412. package/dist/utils/plainTextLayout.js +1 -1
  413. package/dist/utils/rebaseHistoryState.d.ts +71 -0
  414. package/dist/utils/rebaseHistoryState.js +208 -0
  415. package/dist/utils/removeElement.js +1 -1
  416. package/dist/utils/renderedBoxes.js +1 -1
  417. package/dist/utils/resolveElementValue.js +1 -1
  418. package/dist/utils/scrollBehavior.js +1 -1
  419. package/dist/utils/searchTranslations.js +1 -1
  420. package/dist/utils/selectionCapabilities.js +1 -1
  421. package/dist/utils/shade.js +1 -1
  422. package/dist/utils/shapeTransform.js +1 -1
  423. package/dist/utils/smartCrop.js +1 -1
  424. package/dist/utils/snapping.js +1 -1
  425. package/dist/utils/stateTypeAssertions.js +1 -1
  426. package/dist/utils/straighten.js +1 -1
  427. package/dist/utils/surfaceGlow.js +1 -1
  428. package/dist/utils/templateElementInstance.js +1 -1
  429. package/dist/utils/templateRotation.js +1 -1
  430. package/dist/utils/textAlign.js +1 -1
  431. package/dist/utils/textEditorOpeners.js +1 -1
  432. package/dist/utils/textRouting.js +1 -1
  433. package/dist/utils/transformHudLabel.js +1 -1
  434. package/dist/utils/unsplashLinks.js +1 -1
  435. package/dist/utils/userImageCrop.js +1 -1
  436. package/dist/utils/viewport.js +1 -1
  437. package/dist/utils/zipPageImages.js +1 -1
  438. package/package.json +4 -4
  439. package/skills/ggraphic-embed/SKILL.md +13 -13
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * CanvasIcons - Renders selected Tabler icons on the Konva canvas
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * CanvasImage - Draggable, transformable image layer
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * CanvasRichText — ein Textblock mit Aufzählung und/oder Inline-Auszeichnung.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * CanvasStage - Responsive Konva Stage wrapper
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * CanvasText - Draggable, transformable, editable text layer
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * ChartPrimitive — renders a ChartInstance as a Konva.Image.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useRef, useEffect, useState, useCallback, memo } from 'react';
4
4
  import { Circle, Group, Image as KonvaImage, Line, Rect, Shape, Transformer } from 'react-konva';
5
5
  import { LOCKED_TRANSFORMER, useIsItemLocked } from '../components/canvasItemLock.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useState, useEffect, useRef, useCallback, memo } from 'react';
4
4
  import { Image, Group, Rect, Transformer } from 'react-konva';
5
5
  import { LOCKED_TRANSFORMER, useIsItemLocked } from '../components/canvasItemLock.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useState, useEffect, useRef, memo } from 'react';
4
4
  import { Image, Group, Rect, Transformer } from 'react-konva';
5
5
  import { activeBrand } from '../brand/brandRegistry.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * PillBadge - Reusable Konva component for rendering a pill-shaped badge with text
5
5
  *
@@ -154,8 +154,8 @@ function PillBadgeInner({ id, text, x, y, backgroundColor, textColor, fontSize,
154
154
  };
155
155
  textarea.addEventListener('blur', removeTextarea);
156
156
  textarea.addEventListener('keydown', (e) => {
157
+ // Escape schliesst ab wie im Text (`CanvasTextOverlay`): das Getippte bleibt (#163).
157
158
  if (e.key === 'Escape') {
158
- textarea.value = text;
159
159
  textarea.blur();
160
160
  }
161
161
  if (e.key === 'Enter' && !e.shiftKey) {
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useRef, useEffect, useState, memo } from 'react';
4
4
  import { Rect, Circle, RegularPolygon, Star, Path, Ellipse, Ring, Line, Arrow, Shape, Transformer, } from 'react-konva';
5
5
  import { LOCKED_TRANSFORMER, useIsItemLocked } from '../components/canvasItemLock.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * SnapGuidelines - Visual guidelines shown when elements snap to center or other elements
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * UserImagePrimitive - Draggable, transformable user-uploaded image
5
5
  *
@@ -19,7 +19,7 @@ import { clampPan, covers, framedPhotoRect, panOfFramedPhoto, visiblePart, } fro
19
19
  import { cropAspectRatio, frameForAspect } from '../utils/cropAspect.js';
20
20
  import { notchPx, traceNotch } from '../utils/notch.js';
21
21
  import { ELEMENT_TRANSFORMER } from '../utils/orientation.js';
22
- import { useTrackPendingImage } from '../utils/pendingImages.js';
22
+ import { useImageRetry, useTrackPendingImage } from '../utils/pendingImages.js';
23
23
  import { cacheFiltered, usePreviewCaptureRatio } from '../utils/filterCache.js';
24
24
  import { recacheNextFrame } from '../utils/recacheNextFrame.js';
25
25
  import { clampPointToStraightPhoto, frameForAspectOnStraightPhoto, panOfStraightPhoto, panStraightPhoto, STRAIGHT_DRAW_ATTR, straightDrawOf, straightFramedPhoto, straightPhotoCovers, straightScaleCrop, straightSceneFunc, } from '../utils/straighten.js';
@@ -56,6 +56,8 @@ function UserImagePrimitiveInner({ userImage, isSelected, onSelect, onDragEnd, o
56
56
  const transformerRef = useRef(null);
57
57
  const [image, setImage] = useState(null);
58
58
  const [settled, setSettled] = useState(null);
59
+ // A retry (`retryFailedImages`) loads the same source again.
60
+ const retry = useImageRetry(userImage.id);
59
61
  const appliedAspectRef = useRef('free');
60
62
  useEffect(() => {
61
63
  const src = userImage.src;
@@ -64,15 +66,19 @@ function UserImagePrimitiveInner({ userImage, isSelected, onSelect, onDragEnd, o
64
66
  img.src = src;
65
67
  img.onload = () => {
66
68
  setImage(img);
67
- setSettled({ src, ok: true });
69
+ setSettled({ src, retry, ok: true });
68
70
  };
69
- img.onerror = () => setSettled({ src, ok: false });
71
+ img.onerror = () => setSettled({ src, retry, ok: false });
70
72
  return () => {
71
73
  img.onload = null;
72
74
  img.onerror = null;
73
75
  };
74
- }, [userImage.src]);
75
- useTrackPendingImage(userImage.id, userImage.src, settled?.src !== userImage.src ? 'loading' : settled.ok ? 'loaded' : 'failed');
76
+ }, [userImage.src, retry]);
77
+ useTrackPendingImage(userImage.id, userImage.src, settled?.src !== userImage.src || settled.retry !== retry
78
+ ? 'loading'
79
+ : settled.ok
80
+ ? 'loaded'
81
+ : 'failed');
76
82
  useEffect(() => {
77
83
  if (isSelected && transformerRef.current && groupRef.current) {
78
84
  transformerRef.current.nodes([groupRef.current]);
@@ -223,7 +229,7 @@ function UserImagePrimitiveInner({ userImage, isSelected, onSelect, onDragEnd, o
223
229
  // The notch is a share of the canvas width; the group's scale is already in the node.
224
230
  const notchSize = notchPx(userImage.notch, snapProps.stageWidth) / (userImage.scale || 1);
225
231
  const notchClipped = (node) => notchSize > 0 ? (_jsx(Group, { name: "notch-clip", clipFunc: (ctx) => traceNotch(ctx, userImage.width, userImage.height, notchSize), children: node })) : (node);
226
- const noPhoto = !userImage.src || (settled?.src === userImage.src && !settled.ok);
232
+ const noPhoto = !userImage.src || (settled?.src === userImage.src && settled.retry === retry && !settled.ok);
227
233
  if (!image && !noPhoto)
228
234
  return null;
229
235
  if (!image || noPhoto) {
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  export { CanvasStage } from './CanvasStage.js';
3
3
  export { CanvasBackground } from './CanvasBackground.js';
4
4
  export { CanvasText } from './CanvasText.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useMobileSheet } from '../hooks/useMobileSheet.js';
4
4
  import { useMessages } from '../i18n/messages.js';
5
5
  import { cn } from '../utils/cn.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useMessages } from '../i18n/messages.js';
4
4
  import { cn } from '../utils/cn.js';
5
5
  import { memo, useCallback } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useRovingToolbar } from '../hooks/useRovingToolbar.js';
4
4
  import { useMessages } from '../i18n/messages.js';
5
5
  import { cn } from '../utils/cn.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { createContext, useContext, useCallback, useEffect, useMemo, useRef, useState, } from 'react';
4
4
  import { messages } from '../i18n/messages.js';
5
5
  import { toast } from '../utils/editorToast.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useAnnounce } from '../../hooks/useAnnounce.js';
4
4
  import { messages, useMessages } from '../../i18n/messages.js';
5
5
  import { useAutoSaveStore, useAutoSaveStoreApi } from '../../stores/useAutoSaveStore.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useMessages } from '../../i18n/messages.js';
4
4
  import { cn } from '../../utils/cn.js';
5
5
  import { useState, useRef, useEffect } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { Slider } from 'radix-ui';
4
4
  export function SidebarSlider({ value, onValueChange, min = 0, max = 1, step = 0.01, label, hideLabel = false, unit = '', showValue = true, }) {
5
5
  const handleValueChange = (values) => {
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useMessages } from '../../i18n/messages.js';
4
4
  import { useCallback, useRef, useEffect } from 'react';
5
5
  import { PiMinus, PiPlus } from 'react-icons/pi';
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  import { PiShareFat, PiSquaresFour, PiTextAa, PiToolbox, PiUploadSimple } from 'react-icons/pi';
3
3
  import { AssetsSection, CombinedTextSection, GenericShareSection, ToolsSection, UploadsSection, } from './sections/index.js';
4
4
  /** The components and icons behind `coreSidebar()`; the editor shell provides them. */
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useCanvasEditorServices } from '../../CanvasEditorProvider.js';
4
4
  import { useNoAssetLibrary, } from '../../hostServices.js';
5
5
  import { useMessages } from '../../i18n/messages.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useDocumentBrand } from '../../brand/documentBrand.js';
4
4
  import { CustomColorSwatch } from '../../components/CustomColorSwatch.js';
5
5
  import { useMessages } from '../../i18n/messages.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useDocumentBrand } from '../../brand/documentBrand.js';
4
4
  import { useMessages } from '../../i18n/messages.js';
5
5
  import { CHART_GROUP_LABELS, CHART_GROUP_ORDER, CHART_TYPE_DEFS, } from '../../utils/chartUtils.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useDocumentBrand } from '../../brand/documentBrand.js';
4
4
  import { messages, useMessages } from '../../i18n/messages.js';
5
5
  import { cn } from '../../utils/cn.js';
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  /** @deprecated Moved to `./ChartsSection.js`. This path is removed in the next alpha. */
3
3
  export { ChartTypePreview } from './ChartsSection.js';
4
4
  /** @deprecated Use `ChartsSection`. */
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  /** @deprecated Moved to `./ShapesSection.js`. This path is removed in the next alpha. */
3
3
  export { ALL_PALETTE_SHAPES, HandShapePreview, getShapeVariant, } from './ShapesSection.js';
4
4
  /** @deprecated Use `ShapesSection`. */
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useMessages } from '../../i18n/messages.js';
4
4
  import { useCallback, useEffect, useState } from 'react';
5
5
  import { PiTrash } from 'react-icons/pi';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { FRAME_PRESET_PATHS } from '../../utils/frameUtils.js';
4
4
  const PREVIEW_GRADIENT_ID = 'rahmen-preset-preview-gradient';
5
5
  /** The gradient every `FramePresetPreview` fills with; render once per document. */
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useCanvasEditorServices } from '../../CanvasEditorProvider.js';
4
4
  import { browserFileDelivery } from '../../hostServices.js';
5
5
  import { useMessages } from '../../i18n/messages.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useIconCatalog } from '../../hooks/useIconCatalog.js';
4
4
  import { usePaginatedIcons } from '../../hooks/usePaginatedIcons.js';
5
5
  import { Skeleton } from '../../ui/skeleton.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { bindPatch } from '../../brand/bindPick.js';
4
4
  import { useDocumentBrand } from '../../brand/documentBrand.js';
5
5
  import { CustomColorSwatch } from '../../components/CustomColorSwatch.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useCanvasEditorServices } from '../../CanvasEditorProvider.js';
4
4
  import { getIllustrationPath, getIllustrationThumbPath, } from '../../utils/illustrations/registry.js';
5
5
  /** Illustration thumbnail that falls back to the full SVG when no pre-rendered thumb exists. */
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useDocumentBrand } from '../../brand/documentBrand.js';
4
4
  import { CustomColorSwatch } from '../../components/CustomColorSwatch.js';
5
5
  import { useMessages } from '../../i18n/messages.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  /**
4
4
  * „Ebenen": jedes Element der aktiven Seite als Eintrag, vorderstes zuerst —
5
5
  * der Weg zu allem auf der Fläche ohne Maus und für Screenreader (#4953).
@@ -1,3 +1,3 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  /** @deprecated Moved to `./FramesSection.js`. This path is removed in the next alpha. */
3
3
  export { FramePresetPreview, FramePreviewDefs } from './FramesSection.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useMessages } from '../../i18n/messages.js';
4
4
  import { cn } from '../../utils/cn.js';
5
5
  import { activeBrand } from '../../brand/brandRegistry.js';
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  /** @deprecated Moved to `./AssetGallery.js`. This path is removed in the next alpha. */
3
3
  export { GalleryTabs, useGalleryScopes } from './AssetGallery.js';
4
4
  /** @deprecated Use `AssetGalleryGrid`. */
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useCanvasEditorServices } from '../../CanvasEditorProvider.js';
4
4
  import { plainImageUrls } from '../../hostServices.js';
5
5
  import { useMessages } from '../../i18n/messages.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { registeredAssetCatalog } from '../../../utils/canvasAssets.js';
4
4
  import { prefetchBackground } from '../../../utils/illustrations/svgCache.js';
5
5
  import { useEffect } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useCanvasEditorServices } from '../../../CanvasEditorProvider.js';
4
4
  import { plainImageUrls, } from '../../../hostServices.js';
5
5
  import { useMessages } from '../../../i18n/messages.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { cn } from '../../../utils/cn.js';
4
4
  import { memo } from 'react';
5
5
  const FAN = 'transition-transform duration-[400ms] ease-[cubic-bezier(.2,.8,.2,1)] motion-reduce:transition-none';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useEffect, useRef, useState } from 'react';
4
4
  import { ElementTile } from './ElementTile.js';
5
5
  const PAGE_SIZE = 48;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useDocumentBrand } from '../../../brand/documentBrand.js';
4
4
  import { plainAssetImageUrls, registeredAssetCatalog } from '../../../utils/canvasAssets.js';
5
5
  import { cn } from '../../../utils/cn.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useMessages } from '../../../i18n/messages.js';
4
4
  import { cn } from '../../../utils/cn.js';
5
5
  import { onThumbnailHover } from '../../../utils/illustrations/svgCache.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useCanvasEditorServices } from '../../../CanvasEditorProvider.js';
4
4
  import { useDebounce } from '../../../hooks/useDebounce.js';
5
5
  import { messages, useMessages } from '../../../i18n/messages.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useMessages } from '../../../i18n/messages.js';
4
4
  import { cn } from '../../../utils/cn.js';
5
5
  import { useRef } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useCanvasEditorServices } from '../../../CanvasEditorProvider.js';
4
4
  import { useNoUnsplashSearch } from '../../../hostServices.js';
5
5
  import { useMessages } from '../../../i18n/messages.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useCanvasEditorServices } from '../../../CanvasEditorProvider.js';
4
4
  import { useMessages } from '../../../i18n/messages.js';
5
5
  import { cn } from '../../../utils/cn.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useMessages } from '../../../i18n/messages.js';
4
4
  import { cn } from '../../../utils/cn.js';
5
5
  import { useCallback, useEffect, useRef, useState } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useCanvasEditorServices } from '../../../CanvasEditorProvider.js';
4
4
  import { useMessages } from '../../../i18n/messages.js';
5
5
  import { registeredAssetCatalog, studioStickerId } from '../../../utils/canvasAssets.js';
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  import { Planet, Cat, Ghost, IceCream, Browser, Mug, SpeechBubble, Backpack, CreditCard, File, Folder, } from 'react-kawaii';
3
3
  export const PREVIEW_COMPONENTS = {
4
4
  planet: Planet,
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  import { rankByQuery } from '../../../utils/filterUtils.js';
3
3
  /** Caps per kind in the search across all categories; a category's own search pages instead. */
4
4
  const GLOBAL_CAP = {
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  import { ELEMENT_DRAG_TYPE, MEDIA_DRAG_TYPE, } from '../../../utils/mediaDrop.js';
3
3
  /** Drag type and JSON for a tile. */
4
4
  export function dragDataFor(action) {
@@ -1,3 +1,3 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  export { AssetsSection } from './AssetsSection.js';
3
3
  export { prefetchStockPhotos } from './useStockPhotos.js';
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  import { getHostStorageKey, onHostStorageKeysChange } from '../../../utils/hostStorageKeys.js';
3
3
  import { onAssetCatalogChange, plainAssetImageUrls, registeredAssetCatalog, } from '../../../utils/canvasAssets.js';
4
4
  import { create } from 'zustand';
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  import { messages } from '../../../i18n/catalogue.js';
3
3
  import { useCanvasEditorServices } from '../../../CanvasEditorProvider.js';
4
4
  import { plainAssetImageUrls, registeredAssetCatalog } from '../../../utils/canvasAssets.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { useId } from 'react';
4
4
  import { useMessages } from '../../../i18n/messages.js';
5
5
  import { CONTROL_GROUP, CONTROL_GROUP_HEADER, CONTROL_GROUP_LABEL } from '../../sidebarStyles.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { Slider } from 'radix-ui';
4
4
  import { useDocumentBrand } from '../../../brand/documentBrand.js';
5
5
  import { CustomColorSwatch } from '../../../components/CustomColorSwatch.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { Slider } from 'radix-ui';
4
4
  import { useDocumentBrand } from '../../../brand/documentBrand.js';
5
5
  import { CustomColorSwatch } from '../../../components/CustomColorSwatch.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { Slider } from 'radix-ui';
4
4
  import { useDocumentBrand } from '../../../brand/documentBrand.js';
5
5
  import { CustomColorSwatch } from '../../../components/CustomColorSwatch.js';
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  import { STROKE_ONLY_SHAPES } from '../../../utils/shapes.js';
3
3
  /**
4
4
  * Welche Effekte die Auswahl kennt — für den Knopf „Effekte“ in der Leiste und
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  /**
3
3
  * The core's sidebar sections, for template configs to list.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- // SPDX-License-Identifier: MPL-2.0
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
3
  import { lazy, useState } from 'react';
4
4
  /**
5
5
  * `lazy()` with a `preload()`. React.lazy suspends on its first render even when
@@ -1,4 +1,4 @@
1
- // SPDX-License-Identifier: MPL-2.0
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
2
  import { addCollection } from '@iconify/react';
3
3
  import { onIconSetLoaded } from '../../utils/canvasIcons.js';
4
4
  /**