@ggraphic/editor 0.0.0-stage → 0.1.0-alpha.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.
- package/LICENSE +373 -0
- package/NOTICE +2 -0
- package/README.md +8 -2
- package/THIRD_PARTY_NOTICES +7 -0
- package/dist/CanvasEditorProvider.d.ts +214 -0
- package/dist/CanvasEditorProvider.js +10 -0
- package/dist/ai/applyOperation.d.ts +75 -0
- package/dist/ai/applyOperation.js +354 -0
- package/dist/ai/describeCanvasElements.d.ts +17 -0
- package/dist/ai/describeCanvasElements.js +148 -0
- package/dist/ai/illustrationCapability.d.ts +6 -0
- package/dist/ai/illustrationCapability.js +20 -0
- package/dist/ai/types.d.ts +91 -0
- package/dist/ai/types.js +1 -0
- package/dist/blocks/liftedBlock.d.ts +61 -0
- package/dist/blocks/liftedBlock.js +117 -0
- package/dist/brand/bindPick.d.ts +18 -0
- package/dist/brand/bindPick.js +28 -0
- package/dist/brand/bindableFields.d.ts +9 -0
- package/dist/brand/bindableFields.js +61 -0
- package/dist/brand/brandRegistry.d.ts +26 -0
- package/dist/brand/brandRegistry.js +56 -0
- package/dist/brand/composerBrand.d.ts +146 -0
- package/dist/brand/composerBrand.js +6 -0
- package/dist/brand/documentBrand.d.ts +16 -0
- package/dist/brand/documentBrand.js +6 -0
- package/dist/collab/documentVersion.d.ts +36 -0
- package/dist/collab/documentVersion.js +139 -0
- package/dist/collab/pageElementStateKeys.d.ts +33 -0
- package/dist/collab/pageElementStateKeys.js +148 -0
- package/dist/collab/pagesDoc.d.ts +152 -0
- package/dist/collab/pagesDoc.js +434 -0
- package/dist/collab/useAwarenessState.d.ts +12 -0
- package/dist/collab/useAwarenessState.js +47 -0
- package/dist/collab/useEmitHostStateChanges.d.ts +18 -0
- package/dist/collab/useEmitHostStateChanges.js +40 -0
- package/dist/collab/useSelectionAwareness.d.ts +22 -0
- package/dist/collab/useSelectionAwareness.js +60 -0
- package/dist/collab/useYjsCanvasBinding.d.ts +7 -0
- package/dist/collab/useYjsCanvasBinding.js +21 -0
- package/dist/collab/useYjsPageStateSync.d.ts +20 -0
- package/dist/collab/useYjsPageStateSync.js +49 -0
- package/dist/collab/useYjsPages.d.ts +73 -0
- package/dist/collab/useYjsPages.js +396 -0
- package/dist/collab/wrapCallbacksWithPageSync.d.ts +3 -0
- package/dist/collab/wrapCallbacksWithPageSync.js +62 -0
- package/dist/collab/ydocKeys.d.ts +50 -0
- package/dist/collab/ydocKeys.js +50 -0
- package/dist/collab/yjsBinding.d.ts +27 -0
- package/dist/collab/yjsBinding.js +105 -0
- package/dist/common/Lightbox.d.ts +8 -0
- package/dist/common/Lightbox.js +8 -0
- package/dist/common/imageSourceTypes.d.ts +1 -0
- package/dist/common/imageSourceTypes.js +1 -0
- package/dist/components/AddPageButton.d.ts +13 -0
- package/dist/components/AddPageButton.js +13 -0
- package/dist/components/CanvasAnnouncer.d.ts +8 -0
- package/dist/components/CanvasAnnouncer.js +10 -0
- package/dist/components/CanvasContextMenu/CanvasActionSheet.d.ts +12 -0
- package/dist/components/CanvasContextMenu/CanvasActionSheet.js +145 -0
- package/dist/components/CanvasContextMenu/CanvasContextMenu.d.ts +33 -0
- package/dist/components/CanvasContextMenu/CanvasContextMenu.js +107 -0
- package/dist/components/CanvasContextMenu/canvasMenuModel.d.ts +68 -0
- package/dist/components/CanvasContextMenu/canvasMenuModel.js +203 -0
- package/dist/components/CanvasEditor/CanvasEditorShell.d.ts +32 -0
- package/dist/components/CanvasEditor/CanvasEditorShell.js +1144 -0
- package/dist/components/CanvasEditor/PageWrapper.d.ts +7 -0
- package/dist/components/CanvasEditor/PageWrapper.js +103 -0
- package/dist/components/CanvasEditor/autoSwitchTab.d.ts +11 -0
- package/dist/components/CanvasEditor/autoSwitchTab.js +15 -0
- package/dist/components/CanvasEditor/blockInsertContext.d.ts +22 -0
- package/dist/components/CanvasEditor/blockInsertContext.js +5 -0
- package/dist/components/CanvasEditor/editorShell.d.ts +99 -0
- package/dist/components/CanvasEditor/editorShell.js +20 -0
- package/dist/components/CanvasEditor/hooks/useCanvasContextMenu.d.ts +32 -0
- package/dist/components/CanvasEditor/hooks/useCanvasContextMenu.js +140 -0
- package/dist/components/CanvasEditor/hooks/useLoadedConfigs.d.ts +13 -0
- package/dist/components/CanvasEditor/hooks/useLoadedConfigs.js +29 -0
- package/dist/components/CanvasEditor/hooks/useMobileSheetFit.d.ts +14 -0
- package/dist/components/CanvasEditor/hooks/useMobileSheetFit.js +56 -0
- package/dist/components/CanvasEditor/hooks/usePageRefs.d.ts +18 -0
- package/dist/components/CanvasEditor/hooks/usePageRefs.js +36 -0
- package/dist/components/CanvasEditor/hooks/usePageUndoRedoShortcuts.d.ts +25 -0
- package/dist/components/CanvasEditor/hooks/usePageUndoRedoShortcuts.js +49 -0
- package/dist/components/CanvasEditor/hooks/usePrintImpressumGate.d.ts +17 -0
- package/dist/components/CanvasEditor/hooks/usePrintImpressumGate.js +70 -0
- package/dist/components/CanvasEditor/hooks/useScrollToAddedPage.d.ts +17 -0
- package/dist/components/CanvasEditor/hooks/useScrollToAddedPage.js +31 -0
- package/dist/components/CanvasEditor/hooks/useToolbarHandlers.d.ts +75 -0
- package/dist/components/CanvasEditor/hooks/useToolbarHandlers.js +69 -0
- package/dist/components/CanvasEditor/hooks/useWorkAreaDeselect.d.ts +6 -0
- package/dist/components/CanvasEditor/hooks/useWorkAreaDeselect.js +56 -0
- package/dist/components/CanvasEditor/layersTab.d.ts +13 -0
- package/dist/components/CanvasEditor/layersTab.js +27 -0
- package/dist/components/CanvasEditor/mobileSelectionArea.d.ts +8 -0
- package/dist/components/CanvasEditor/mobileSelectionArea.js +27 -0
- package/dist/components/CanvasEditor/types.d.ts +202 -0
- package/dist/components/CanvasEditor/types.js +1 -0
- package/dist/components/CanvasEditorSkeleton.d.ts +16 -0
- package/dist/components/CanvasEditorSkeleton.js +24 -0
- package/dist/components/CanvasMetaBar.d.ts +16 -0
- package/dist/components/CanvasMetaBar.js +33 -0
- package/dist/components/CanvasRenderLayer.d.ts +37 -0
- package/dist/components/CanvasRenderLayer.js +54 -0
- package/dist/components/CanvasTextOverlay.d.ts +126 -0
- package/dist/components/CanvasTextOverlay.js +527 -0
- package/dist/components/ConfigCanvas.d.ts +35 -0
- package/dist/components/ConfigCanvas.js +30 -0
- package/dist/components/CropGhostOverlay.d.ts +13 -0
- package/dist/components/CropGhostOverlay.js +56 -0
- package/dist/components/CustomColorSwatch.d.ts +35 -0
- package/dist/components/CustomColorSwatch.js +81 -0
- package/dist/components/DownloadNotice.d.ts +7 -0
- package/dist/components/DownloadNotice.js +7 -0
- package/dist/components/GenericCanvas.d.ts +309 -0
- package/dist/components/GenericCanvas.js +787 -0
- package/dist/components/GenericCanvasElement.d.ts +34 -0
- package/dist/components/GenericCanvasElement.js +267 -0
- package/dist/components/MultiSelectionTransformer.d.ts +39 -0
- package/dist/components/MultiSelectionTransformer.js +107 -0
- package/dist/components/PagePreview.d.ts +14 -0
- package/dist/components/PagePreview.js +63 -0
- package/dist/components/PageThumbnailStrip.d.ts +25 -0
- package/dist/components/PageThumbnailStrip.js +46 -0
- package/dist/components/PageToolbar.d.ts +12 -0
- package/dist/components/PageToolbar.js +20 -0
- package/dist/components/PrintGuides.d.ts +13 -0
- package/dist/components/PrintGuides.js +28 -0
- package/dist/components/RemoteSelectionOverlay.d.ts +15 -0
- package/dist/components/RemoteSelectionOverlay.js +29 -0
- package/dist/components/RichTextField.d.ts +34 -0
- package/dist/components/RichTextField.js +216 -0
- package/dist/components/SelectionPill.d.ts +56 -0
- package/dist/components/SelectionPill.js +123 -0
- package/dist/components/SlideNotesPanel.d.ts +13 -0
- package/dist/components/SlideNotesPanel.js +28 -0
- package/dist/components/SlotBudgetStatus.d.ts +12 -0
- package/dist/components/SlotBudgetStatus.js +64 -0
- package/dist/components/StandaloneCanvas.d.ts +33 -0
- package/dist/components/StandaloneCanvas.js +61 -0
- package/dist/components/TextFormatButtons.d.ts +61 -0
- package/dist/components/TextFormatButtons.js +107 -0
- package/dist/components/TextFormatControls.d.ts +26 -0
- package/dist/components/TextFormatControls.js +73 -0
- package/dist/components/Toolbar.d.ts +40 -0
- package/dist/components/Toolbar.js +26 -0
- package/dist/components/ToolbarStateBridge.d.ts +72 -0
- package/dist/components/ToolbarStateBridge.js +298 -0
- package/dist/components/TopBar/AutoSaveIndicator.d.ts +8 -0
- package/dist/components/TopBar/AutoSaveIndicator.js +44 -0
- package/dist/components/TopBar/ContextControls.d.ts +107 -0
- package/dist/components/TopBar/ContextControls.js +321 -0
- package/dist/components/TopBar/ContextToolbar.d.ts +14 -0
- package/dist/components/TopBar/ContextToolbar.js +20 -0
- package/dist/components/TopBar/CropModeControls.d.ts +35 -0
- package/dist/components/TopBar/CropModeControls.js +84 -0
- package/dist/components/TopBar/DownloadSection.d.ts +47 -0
- package/dist/components/TopBar/DownloadSection.js +102 -0
- package/dist/components/TopBar/MobileSelectionBar.d.ts +16 -0
- package/dist/components/TopBar/MobileSelectionBar.js +26 -0
- package/dist/components/TopBar/MobileSelectionControls.d.ts +10 -0
- package/dist/components/TopBar/MobileSelectionControls.js +43 -0
- package/dist/components/TopBar/MultiSelectionToolbar.d.ts +19 -0
- package/dist/components/TopBar/MultiSelectionToolbar.js +30 -0
- package/dist/components/TopBar/ShareDropdown.d.ts +54 -0
- package/dist/components/TopBar/ShareDropdown.js +110 -0
- package/dist/components/TopBar/TopBar.d.ts +6 -0
- package/dist/components/TopBar/TopBar.js +6 -0
- package/dist/components/TopBar/barTiles.d.ts +15 -0
- package/dist/components/TopBar/barTiles.js +34 -0
- package/dist/components/TopBar/modules/FloatingAiSuggestionBanner.d.ts +28 -0
- package/dist/components/TopBar/modules/FloatingAiSuggestionBanner.js +26 -0
- package/dist/components/TopBar/modules/FloatingBackgroundControls.d.ts +38 -0
- package/dist/components/TopBar/modules/FloatingBackgroundControls.js +133 -0
- package/dist/components/TopBar/modules/FloatingColorPicker.d.ts +16 -0
- package/dist/components/TopBar/modules/FloatingColorPicker.js +89 -0
- package/dist/components/TopBar/modules/FloatingFontRoleControl.d.ts +17 -0
- package/dist/components/TopBar/modules/FloatingFontRoleControl.js +37 -0
- package/dist/components/TopBar/modules/FloatingFontSizeControl.d.ts +7 -0
- package/dist/components/TopBar/modules/FloatingFontSizeControl.js +22 -0
- package/dist/components/TopBar/modules/FloatingHistoryControls.d.ts +11 -0
- package/dist/components/TopBar/modules/FloatingHistoryControls.js +19 -0
- package/dist/components/TopBar/modules/FloatingImageLookControl.d.ts +9 -0
- package/dist/components/TopBar/modules/FloatingImageLookControl.js +15 -0
- package/dist/components/TopBar/modules/FloatingLayerControls.d.ts +9 -0
- package/dist/components/TopBar/modules/FloatingLayerControls.js +9 -0
- package/dist/components/TopBar/modules/FloatingOpacityControl.d.ts +11 -0
- package/dist/components/TopBar/modules/FloatingOpacityControl.js +19 -0
- package/dist/components/TopBar/modules/FloatingPositionControl.d.ts +38 -0
- package/dist/components/TopBar/modules/FloatingPositionControl.js +74 -0
- package/dist/components/TopBar/modules/FloatingTextAlignControl.d.ts +12 -0
- package/dist/components/TopBar/modules/FloatingTextAlignControl.js +27 -0
- package/dist/components/TransformHud.d.ts +11 -0
- package/dist/components/TransformHud.js +121 -0
- package/dist/components/WholeTextFormatControls.d.ts +10 -0
- package/dist/components/WholeTextFormatControls.js +37 -0
- package/dist/components/ZoomableViewport.d.ts +6 -0
- package/dist/components/ZoomableViewport.js +4 -0
- package/dist/components/accentMark.d.ts +20 -0
- package/dist/components/accentMark.js +24 -0
- package/dist/components/canvasItemLock.d.ts +13 -0
- package/dist/components/canvasItemLock.js +12 -0
- package/dist/components/kindRenderers.d.ts +118 -0
- package/dist/components/kindRenderers.js +151 -0
- package/dist/components/markColor.d.ts +13 -0
- package/dist/components/markColor.js +21 -0
- package/dist/components/markerMark.d.ts +24 -0
- package/dist/components/markerMark.js +22 -0
- package/dist/composer/cardFollowsText.d.ts +17 -0
- package/dist/composer/cardFollowsText.js +34 -0
- package/dist/composer/marks.d.ts +4 -0
- package/dist/composer/marks.js +15 -0
- package/dist/composer/steckbriefLayout.d.ts +147 -0
- package/dist/composer/steckbriefLayout.js +468 -0
- package/dist/composer/textFit.d.ts +31 -0
- package/dist/composer/textFit.js +89 -0
- package/dist/configs/buildSharepicText.d.ts +5 -0
- package/dist/configs/buildSharepicText.js +58 -0
- package/dist/configs/configLoader.d.ts +34 -0
- package/dist/configs/configLoader.js +60 -0
- package/dist/configs/factory/actionFactories.d.ts +201 -0
- package/dist/configs/factory/actionFactories.js +628 -0
- package/dist/configs/factory/baseTypes.d.ts +150 -0
- package/dist/configs/factory/baseTypes.js +8 -0
- package/dist/configs/factory/carryInstanceState.d.ts +82 -0
- package/dist/configs/factory/carryInstanceState.js +121 -0
- package/dist/configs/factory/createTextElement.d.ts +63 -0
- package/dist/configs/factory/createTextElement.js +63 -0
- package/dist/configs/factory/defineSection.d.ts +45 -0
- package/dist/configs/factory/defineSection.js +45 -0
- package/dist/configs/factory/layoutAccessors.d.ts +15 -0
- package/dist/configs/factory/layoutAccessors.js +20 -0
- package/dist/configs/featureInjector.d.ts +40 -0
- package/dist/configs/featureInjector.js +184 -0
- package/dist/configs/pageInheritance.d.ts +8 -0
- package/dist/configs/pageInheritance.js +82 -0
- package/dist/configs/placeholders.d.ts +14 -0
- package/dist/configs/placeholders.js +33 -0
- package/dist/configs/shareSection.d.ts +11 -0
- package/dist/configs/shareSection.js +65 -0
- package/dist/configs/types.d.ts +431 -0
- package/dist/configs/types.js +1 -0
- package/dist/configs/unifiedTabs.d.ts +26 -0
- package/dist/configs/unifiedTabs.js +6 -0
- package/dist/editorSeamTypes.d.ts +41 -0
- package/dist/editorSeamTypes.js +1 -0
- package/dist/export/pptx/buildPptxModel.d.ts +47 -0
- package/dist/export/pptx/buildPptxModel.js +612 -0
- package/dist/export/pptx/exportPptxDeck.d.ts +26 -0
- package/dist/export/pptx/exportPptxDeck.js +80 -0
- package/dist/export/pptx/pptxFonts.d.ts +26 -0
- package/dist/export/pptx/pptxFonts.js +41 -0
- package/dist/export/pptx/pptxUnits.d.ts +27 -0
- package/dist/export/pptx/pptxUnits.js +54 -0
- package/dist/export/pptx/textModel.d.ts +17 -0
- package/dist/export/pptx/textModel.js +118 -0
- package/dist/export/pptx/types.d.ts +161 -0
- package/dist/export/pptx/types.js +11 -0
- package/dist/export/pptx/writePptx.d.ts +40 -0
- package/dist/export/pptx/writePptx.js +206 -0
- package/dist/export/pptx/writeText.d.ts +19 -0
- package/dist/export/pptx/writeText.js +120 -0
- package/dist/export/printExport.d.ts +42 -0
- package/dist/export/printExport.js +94 -0
- package/dist/export/printPdf.d.ts +103 -0
- package/dist/export/printPdf.js +144 -0
- package/dist/export/slidesPdf.d.ts +9 -0
- package/dist/export/slidesPdf.js +31 -0
- package/dist/formats/index.d.ts +115 -0
- package/dist/formats/index.js +287 -0
- package/dist/groups/pageGroups.d.ts +32 -0
- package/dist/groups/pageGroups.js +91 -0
- package/dist/hooks/index.d.ts +29 -0
- package/dist/hooks/index.js +19 -0
- package/dist/hooks/useAiImageGeneration.d.ts +15 -0
- package/dist/hooks/useAiImageGeneration.js +73 -0
- package/dist/hooks/useAnnounce.d.ts +27 -0
- package/dist/hooks/useAnnounce.js +47 -0
- package/dist/hooks/useBoxSnap.d.ts +37 -0
- package/dist/hooks/useBoxSnap.js +49 -0
- package/dist/hooks/useCanvasAutoSave.d.ts +33 -0
- package/dist/hooks/useCanvasAutoSave.js +259 -0
- package/dist/hooks/useCanvasElementHandlers.d.ts +182 -0
- package/dist/hooks/useCanvasElementHandlers.js +326 -0
- package/dist/hooks/useCanvasHistorySetup.d.ts +37 -0
- package/dist/hooks/useCanvasHistorySetup.js +113 -0
- package/dist/hooks/useCanvasInteractions.d.ts +31 -0
- package/dist/hooks/useCanvasInteractions.js +103 -0
- package/dist/hooks/useCanvasKeyboardHandlers.d.ts +37 -0
- package/dist/hooks/useCanvasKeyboardHandlers.js +280 -0
- package/dist/hooks/useCanvasStoreReset.d.ts +25 -0
- package/dist/hooks/useCanvasStoreReset.js +35 -0
- package/dist/hooks/useCanvasUndoRedo.d.ts +34 -0
- package/dist/hooks/useCanvasUndoRedo.js +213 -0
- package/dist/hooks/useContextPress.d.ts +14 -0
- package/dist/hooks/useContextPress.js +45 -0
- package/dist/hooks/useCropSession.d.ts +23 -0
- package/dist/hooks/useCropSession.js +69 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useDebounce.js +14 -0
- package/dist/hooks/useDeckAutoSave.d.ts +30 -0
- package/dist/hooks/useDeckAutoSave.js +234 -0
- package/dist/hooks/useDeepSelect.d.ts +18 -0
- package/dist/hooks/useDeepSelect.js +135 -0
- package/dist/hooks/useElementSnapping.d.ts +13 -0
- package/dist/hooks/useElementSnapping.js +26 -0
- package/dist/hooks/useEmojiCatalog.d.ts +3 -0
- package/dist/hooks/useEmojiCatalog.js +13 -0
- package/dist/hooks/useFloatingModuleHandlers.d.ts +52 -0
- package/dist/hooks/useFloatingModuleHandlers.js +285 -0
- package/dist/hooks/useFloatingModuleState.d.ts +83 -0
- package/dist/hooks/useFloatingModuleState.js +250 -0
- package/dist/hooks/useFontGeneration.d.ts +10 -0
- package/dist/hooks/useFontGeneration.js +77 -0
- package/dist/hooks/useFontLoader.d.ts +53 -0
- package/dist/hooks/useFontLoader.js +129 -0
- package/dist/hooks/useGeometryReporter.d.ts +19 -0
- package/dist/hooks/useGeometryReporter.js +41 -0
- package/dist/hooks/useHoverOutline.d.ts +8 -0
- package/dist/hooks/useHoverOutline.js +78 -0
- package/dist/hooks/useIconCatalog.d.ts +12 -0
- package/dist/hooks/useIconCatalog.js +30 -0
- package/dist/hooks/useIconSearch.d.ts +2 -0
- package/dist/hooks/useIconSearch.js +14 -0
- package/dist/hooks/useIconSetsFor.d.ts +8 -0
- package/dist/hooks/useIconSetsFor.js +30 -0
- package/dist/hooks/useImageCoverFit.d.ts +17 -0
- package/dist/hooks/useImageCoverFit.js +35 -0
- package/dist/hooks/useIsCanvasMobile.d.ts +3 -0
- package/dist/hooks/useIsCanvasMobile.js +19 -0
- package/dist/hooks/useMarqueeSelection.d.ts +27 -0
- package/dist/hooks/useMarqueeSelection.js +140 -0
- package/dist/hooks/useMobileSheet.d.ts +48 -0
- package/dist/hooks/useMobileSheet.js +282 -0
- package/dist/hooks/useMultiPageExport.d.ts +30 -0
- package/dist/hooks/useMultiPageExport.js +117 -0
- package/dist/hooks/usePageManager.d.ts +132 -0
- package/dist/hooks/usePageManager.js +399 -0
- package/dist/hooks/usePageThumbnails.d.ts +10 -0
- package/dist/hooks/usePageThumbnails.js +122 -0
- package/dist/hooks/usePaginatedIcons.d.ts +11 -0
- package/dist/hooks/usePaginatedIcons.js +46 -0
- package/dist/hooks/useRovingToolbar.d.ts +17 -0
- package/dist/hooks/useRovingToolbar.js +76 -0
- package/dist/hooks/useSelectionAnnouncement.d.ts +13 -0
- package/dist/hooks/useSelectionAnnouncement.js +68 -0
- package/dist/hooks/useSnapScheduler.d.ts +20 -0
- package/dist/hooks/useSnapScheduler.js +61 -0
- package/dist/hooks/useTrackUnsplashDownload.d.ts +6 -0
- package/dist/hooks/useTrackUnsplashDownload.js +19 -0
- package/dist/hooks/useZoomGestures.d.ts +35 -0
- package/dist/hooks/useZoomGestures.js +185 -0
- package/dist/hostServices.d.ts +308 -0
- package/dist/hostServices.js +107 -0
- package/dist/i18n/de.d.ts +897 -0
- package/dist/i18n/de.js +961 -0
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.js +949 -0
- package/dist/i18n/messages.d.ts +28 -0
- package/dist/i18n/messages.js +66 -0
- package/dist/layouts/CanvasEditorLayout.d.ts +28 -0
- package/dist/layouts/CanvasEditorLayout.js +56 -0
- package/dist/layouts/index.d.ts +2 -0
- package/dist/layouts/index.js +2 -0
- package/dist/primitives/AssetPrimitive.d.ts +24 -0
- package/dist/primitives/AssetPrimitive.js +158 -0
- package/dist/primitives/CanvasBackground.d.ts +33 -0
- package/dist/primitives/CanvasBackground.js +44 -0
- package/dist/primitives/CanvasIcons.d.ts +19 -0
- package/dist/primitives/CanvasIcons.js +46 -0
- package/dist/primitives/CanvasImage.d.ts +73 -0
- package/dist/primitives/CanvasImage.js +460 -0
- package/dist/primitives/CanvasRichText.d.ts +25 -0
- package/dist/primitives/CanvasRichText.js +284 -0
- package/dist/primitives/CanvasStage.d.ts +84 -0
- package/dist/primitives/CanvasStage.js +292 -0
- package/dist/primitives/CanvasText.d.ts +91 -0
- package/dist/primitives/CanvasText.js +293 -0
- package/dist/primitives/ChartPrimitive.d.ts +24 -0
- package/dist/primitives/ChartPrimitive.js +318 -0
- package/dist/primitives/CircleBadge.d.ts +43 -0
- package/dist/primitives/CircleBadge.js +233 -0
- package/dist/primitives/FramePrimitive.d.ts +14 -0
- package/dist/primitives/FramePrimitive.js +406 -0
- package/dist/primitives/IconPrimitive.d.ts +28 -0
- package/dist/primitives/IconPrimitive.js +119 -0
- package/dist/primitives/IllustrationPrimitive.d.ts +16 -0
- package/dist/primitives/IllustrationPrimitive.js +184 -0
- package/dist/primitives/PillBadge.d.ts +45 -0
- package/dist/primitives/PillBadge.js +237 -0
- package/dist/primitives/ShapePrimitive.d.ts +12 -0
- package/dist/primitives/ShapePrimitive.js +521 -0
- package/dist/primitives/SnapGuidelines.d.ts +19 -0
- package/dist/primitives/SnapGuidelines.js +34 -0
- package/dist/primitives/UserImagePrimitive.d.ts +30 -0
- package/dist/primitives/UserImagePrimitive.js +496 -0
- package/dist/primitives/index.d.ts +18 -0
- package/dist/primitives/index.js +11 -0
- package/dist/sidebar/SidebarPanel.d.ts +8 -0
- package/dist/sidebar/SidebarPanel.js +219 -0
- package/dist/sidebar/SidebarTabBar.d.ts +2 -0
- package/dist/sidebar/SidebarTabBar.js +31 -0
- package/dist/sidebar/SubsectionTabBar.d.ts +13 -0
- package/dist/sidebar/SubsectionTabBar.js +30 -0
- package/dist/sidebar/UserUploadsProvider.d.ts +31 -0
- package/dist/sidebar/UserUploadsProvider.js +139 -0
- package/dist/sidebar/components/AltTextField.d.ts +21 -0
- package/dist/sidebar/components/AltTextField.js +60 -0
- package/dist/sidebar/components/SidebarHint.d.ts +7 -0
- package/dist/sidebar/components/SidebarHint.js +38 -0
- package/dist/sidebar/components/SidebarSlider.d.ts +16 -0
- package/dist/sidebar/components/SidebarSlider.js +9 -0
- package/dist/sidebar/components/TextFieldPrimitives.d.ts +26 -0
- package/dist/sidebar/components/TextFieldPrimitives.js +56 -0
- package/dist/sidebar/sections/ChartSettingsSection.d.ts +9 -0
- package/dist/sidebar/sections/ChartSettingsSection.js +78 -0
- package/dist/sidebar/sections/CombinedTextSection.d.ts +16 -0
- package/dist/sidebar/sections/CombinedTextSection.js +43 -0
- package/dist/sidebar/sections/DiagrammeSection.d.ts +9 -0
- package/dist/sidebar/sections/DiagrammeSection.js +40 -0
- package/dist/sidebar/sections/EffectsSection.d.ts +20 -0
- package/dist/sidebar/sections/EffectsSection.js +23 -0
- package/dist/sidebar/sections/FormenSection.d.ts +28 -0
- package/dist/sidebar/sections/FormenSection.js +440 -0
- package/dist/sidebar/sections/FrameSettingsSection.d.ts +8 -0
- package/dist/sidebar/sections/FrameSettingsSection.js +26 -0
- package/dist/sidebar/sections/GenericShareSection.d.ts +26 -0
- package/dist/sidebar/sections/GenericShareSection.js +262 -0
- package/dist/sidebar/sections/IconsSection.d.ts +8 -0
- package/dist/sidebar/sections/IconsSection.js +55 -0
- package/dist/sidebar/sections/IllustrationSettings.d.ts +9 -0
- package/dist/sidebar/sections/IllustrationSettings.js +33 -0
- package/dist/sidebar/sections/IllustrationThumb.d.ts +7 -0
- package/dist/sidebar/sections/IllustrationThumb.js +15 -0
- package/dist/sidebar/sections/ImageAdjustSection.d.ts +13 -0
- package/dist/sidebar/sections/ImageAdjustSection.js +85 -0
- package/dist/sidebar/sections/LayersSection.d.ts +25 -0
- package/dist/sidebar/sections/LayersSection.js +155 -0
- package/dist/sidebar/sections/RahmenSection.d.ts +7 -0
- package/dist/sidebar/sections/RahmenSection.js +18 -0
- package/dist/sidebar/sections/StudioGallery.d.ts +33 -0
- package/dist/sidebar/sections/StudioGallery.js +58 -0
- package/dist/sidebar/sections/UploadsSection.d.ts +11 -0
- package/dist/sidebar/sections/UploadsSection.js +130 -0
- package/dist/sidebar/sections/assets/AssetsSection.d.ts +59 -0
- package/dist/sidebar/sections/assets/AssetsSection.js +27 -0
- package/dist/sidebar/sections/assets/BackgroundCatalog.d.ts +9 -0
- package/dist/sidebar/sections/assets/BackgroundCatalog.js +49 -0
- package/dist/sidebar/sections/assets/CategoryCard.d.ts +14 -0
- package/dist/sidebar/sections/assets/CategoryCard.js +15 -0
- package/dist/sidebar/sections/assets/ElementGrid.d.ts +14 -0
- package/dist/sidebar/sections/assets/ElementGrid.js +34 -0
- package/dist/sidebar/sections/assets/ElementThumb.d.ts +10 -0
- package/dist/sidebar/sections/assets/ElementThumb.js +61 -0
- package/dist/sidebar/sections/assets/ElementTile.d.ts +32 -0
- package/dist/sidebar/sections/assets/ElementTile.js +60 -0
- package/dist/sidebar/sections/assets/ElementsPanel.d.ts +7 -0
- package/dist/sidebar/sections/assets/ElementsPanel.js +249 -0
- package/dist/sidebar/sections/assets/EmojiTonePicker.d.ts +8 -0
- package/dist/sidebar/sections/assets/EmojiTonePicker.js +26 -0
- package/dist/sidebar/sections/assets/FotosCatalog.d.ts +12 -0
- package/dist/sidebar/sections/assets/FotosCatalog.js +41 -0
- package/dist/sidebar/sections/assets/IconifyCatalog.d.ts +14 -0
- package/dist/sidebar/sections/assets/IconifyCatalog.js +133 -0
- package/dist/sidebar/sections/assets/RecentCarousel.d.ts +7 -0
- package/dist/sidebar/sections/assets/RecentCarousel.js +42 -0
- package/dist/sidebar/sections/assets/StickerCatalog.d.ts +14 -0
- package/dist/sidebar/sections/assets/StickerCatalog.js +49 -0
- package/dist/sidebar/sections/assets/constants.d.ts +4 -0
- package/dist/sidebar/sections/assets/constants.js +15 -0
- package/dist/sidebar/sections/assets/elementPanelHost.d.ts +45 -0
- package/dist/sidebar/sections/assets/elementPanelHost.js +1 -0
- package/dist/sidebar/sections/assets/elementSearch.d.ts +10 -0
- package/dist/sidebar/sections/assets/elementSearch.js +38 -0
- package/dist/sidebar/sections/assets/elementTypes.d.ts +67 -0
- package/dist/sidebar/sections/assets/elementTypes.js +24 -0
- package/dist/sidebar/sections/assets/index.d.ts +3 -0
- package/dist/sidebar/sections/assets/index.js +3 -0
- package/dist/sidebar/sections/assets/useElementCatalog.d.ts +43 -0
- package/dist/sidebar/sections/assets/useElementCatalog.js +386 -0
- package/dist/sidebar/sections/assets/useRecentElements.d.ts +21 -0
- package/dist/sidebar/sections/assets/useRecentElements.js +67 -0
- package/dist/sidebar/sections/assets/useStockPhotos.d.ts +22 -0
- package/dist/sidebar/sections/assets/useStockPhotos.js +96 -0
- package/dist/sidebar/sections/effects/EffectCard.d.ts +11 -0
- package/dist/sidebar/sections/effects/EffectCard.js +14 -0
- package/dist/sidebar/sections/effects/GradientSettings.d.ts +10 -0
- package/dist/sidebar/sections/effects/GradientSettings.js +34 -0
- package/dist/sidebar/sections/effects/OutlineSettings.d.ts +12 -0
- package/dist/sidebar/sections/effects/OutlineSettings.js +29 -0
- package/dist/sidebar/sections/effects/ShadowSettings.d.ts +13 -0
- package/dist/sidebar/sections/effects/ShadowSettings.js +38 -0
- package/dist/sidebar/sections/effects/effectsFor.d.ts +16 -0
- package/dist/sidebar/sections/effects/effectsFor.js +24 -0
- package/dist/sidebar/sections/index.d.ts +28 -0
- package/dist/sidebar/sections/index.js +36 -0
- package/dist/sidebar/sections/lazyWithPreload.d.ts +11 -0
- package/dist/sidebar/sections/lazyWithPreload.js +29 -0
- package/dist/sidebar/sections/tools/AiCreateTool.d.ts +4 -0
- package/dist/sidebar/sections/tools/AiCreateTool.js +58 -0
- package/dist/sidebar/sections/tools/AiEditTool.d.ts +4 -0
- package/dist/sidebar/sections/tools/AiEditTool.js +57 -0
- package/dist/sidebar/sections/tools/AltTextTool.d.ts +11 -0
- package/dist/sidebar/sections/tools/AltTextTool.js +78 -0
- package/dist/sidebar/sections/tools/BlobCreatorTool.d.ts +5 -0
- package/dist/sidebar/sections/tools/BlobCreatorTool.js +90 -0
- package/dist/sidebar/sections/tools/GradientTextTool.d.ts +5 -0
- package/dist/sidebar/sections/tools/GradientTextTool.js +104 -0
- package/dist/sidebar/sections/tools/ImageInputPicker.d.ts +7 -0
- package/dist/sidebar/sections/tools/ImageInputPicker.js +68 -0
- package/dist/sidebar/sections/tools/QRCodeTool.d.ts +5 -0
- package/dist/sidebar/sections/tools/QRCodeTool.js +63 -0
- package/dist/sidebar/sections/tools/RemoveBackgroundTool.d.ts +4 -0
- package/dist/sidebar/sections/tools/RemoveBackgroundTool.js +52 -0
- package/dist/sidebar/sections/tools/TextPathCreatorTool.d.ts +5 -0
- package/dist/sidebar/sections/tools/TextPathCreatorTool.js +125 -0
- package/dist/sidebar/sections/tools/ToolPanel.d.ts +26 -0
- package/dist/sidebar/sections/tools/ToolPanel.js +13 -0
- package/dist/sidebar/sections/tools/ToolTiles.d.ts +5 -0
- package/dist/sidebar/sections/tools/ToolTiles.js +76 -0
- package/dist/sidebar/sections/tools/ToolsSection.d.ts +15 -0
- package/dist/sidebar/sections/tools/ToolsSection.js +151 -0
- package/dist/sidebar/sections/tools/UnsplashLimitNotice.d.ts +8 -0
- package/dist/sidebar/sections/tools/UnsplashLimitNotice.js +22 -0
- package/dist/sidebar/sections/tools/UnsplashTool.d.ts +10 -0
- package/dist/sidebar/sections/tools/UnsplashTool.js +47 -0
- package/dist/sidebar/sections/tools/index.d.ts +1 -0
- package/dist/sidebar/sections/tools/index.js +2 -0
- package/dist/sidebar/sections/tools/toolTiles.css +335 -0
- package/dist/sidebar/sections/tools/useToolImagePlacement.d.ts +19 -0
- package/dist/sidebar/sections/tools/useToolImagePlacement.js +23 -0
- package/dist/sidebar/sections/whenIdle.d.ts +2 -0
- package/dist/sidebar/sections/whenIdle.js +10 -0
- package/dist/sidebar/sidebarStyles.d.ts +60 -0
- package/dist/sidebar/sidebarStyles.js +61 -0
- package/dist/sidebar/tabTypes.d.ts +27 -0
- package/dist/sidebar/tabTypes.js +1 -0
- package/dist/sidebar/types.d.ts +43 -0
- package/dist/sidebar/types.js +1 -0
- package/dist/sidebar/useImagePlacement.d.ts +17 -0
- package/dist/sidebar/useImagePlacement.js +28 -0
- package/dist/stores/AutoSaveStoreProvider.d.ts +28 -0
- package/dist/stores/AutoSaveStoreProvider.js +45 -0
- package/dist/stores/CanvasStoreProvider.d.ts +43 -0
- package/dist/stores/CanvasStoreProvider.js +74 -0
- package/dist/stores/createAutoSaveStore.d.ts +50 -0
- package/dist/stores/createAutoSaveStore.js +42 -0
- package/dist/stores/createCanvasEditorStore.d.ts +126 -0
- package/dist/stores/createCanvasEditorStore.js +266 -0
- package/dist/stores/useAutoSaveStore.d.ts +12 -0
- package/dist/stores/useAutoSaveStore.js +12 -0
- package/dist/styles/editor.css +445 -0
- package/dist/styles/index.css +4 -0
- package/dist/styles/tailwind.css +239 -0
- package/dist/styles/tokens.css +199 -0
- package/dist/templates/fontWidths.generated.d.ts +1 -0
- package/dist/templates/fontWidths.generated.js +17 -0
- package/dist/templates/registry.d.ts +59 -0
- package/dist/templates/registry.js +40 -0
- package/dist/templates/templateGeometry.d.ts +32 -0
- package/dist/templates/templateGeometry.js +887 -0
- package/dist/templates/testKinds.d.ts +15 -0
- package/dist/templates/testKinds.js +151 -0
- package/dist/testing/documentBrandConfig.d.ts +14 -0
- package/dist/testing/documentBrandConfig.js +60 -0
- package/dist/testing/documentBrandPacks.d.ts +10 -0
- package/dist/testing/documentBrandPacks.js +45 -0
- package/dist/testing/fixtureTemplates.d.ts +13 -0
- package/dist/testing/fixtureTemplates.js +376 -0
- package/dist/testing/stampKind.d.ts +91 -0
- package/dist/testing/stampKind.js +56 -0
- package/dist/types/editorTypes.d.ts +65 -0
- package/dist/types/editorTypes.js +21 -0
- package/dist/ui/alert-dialog.d.ts +18 -0
- package/dist/ui/alert-dialog.js +42 -0
- package/dist/ui/button.d.ts +10 -0
- package/dist/ui/button.js +29 -0
- package/dist/ui/dialog.d.ts +15 -0
- package/dist/ui/dialog.js +53 -0
- package/dist/ui/icon-button.d.ts +18 -0
- package/dist/ui/icon-button.js +54 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +6 -0
- package/dist/ui/label.d.ts +4 -0
- package/dist/ui/label.js +8 -0
- package/dist/ui/masonry-grid.d.ts +11 -0
- package/dist/ui/masonry-grid.js +43 -0
- package/dist/ui/popover.d.ts +10 -0
- package/dist/ui/popover.js +26 -0
- package/dist/ui/select.d.ts +15 -0
- package/dist/ui/select.js +38 -0
- package/dist/ui/skeleton.d.ts +2 -0
- package/dist/ui/skeleton.js +7 -0
- package/dist/ui/switch.d.ts +6 -0
- package/dist/ui/switch.js +8 -0
- package/dist/utils/__snapshots__/kindSelection.vitest.ts.snap +1086 -0
- package/dist/utils/alignment.d.ts +21 -0
- package/dist/utils/alignment.js +54 -0
- package/dist/utils/axisLock.d.ts +30 -0
- package/dist/utils/axisLock.js +78 -0
- package/dist/utils/backgroundPhotoCrop.d.ts +28 -0
- package/dist/utils/backgroundPhotoCrop.js +28 -0
- package/dist/utils/canvasAssets.d.ts +140 -0
- package/dist/utils/canvasAssets.js +121 -0
- package/dist/utils/canvasClipboard.d.ts +51 -0
- package/dist/utils/canvasClipboard.js +37 -0
- package/dist/utils/canvasCommandRegistry.d.ts +207 -0
- package/dist/utils/canvasCommandRegistry.js +124 -0
- package/dist/utils/canvasCommands.d.ts +106 -0
- package/dist/utils/canvasCommands.js +564 -0
- package/dist/utils/canvasFontFamilies.d.ts +12 -0
- package/dist/utils/canvasFontFamilies.js +24 -0
- package/dist/utils/canvasIcons.d.ts +68 -0
- package/dist/utils/canvasIcons.js +293 -0
- package/dist/utils/canvasImageSource.d.ts +12 -0
- package/dist/utils/canvasImageSource.js +19 -0
- package/dist/utils/canvasItem.d.ts +102 -0
- package/dist/utils/canvasItem.js +1 -0
- package/dist/utils/canvasLayerManager.d.ts +51 -0
- package/dist/utils/canvasLayerManager.js +107 -0
- package/dist/utils/canvasValueResolver.d.ts +9 -0
- package/dist/utils/canvasValueResolver.js +13 -0
- package/dist/utils/captureStage.d.ts +59 -0
- package/dist/utils/captureStage.js +152 -0
- package/dist/utils/chartTypes.d.ts +6 -0
- package/dist/utils/chartTypes.js +2 -0
- package/dist/utils/chartUtils.d.ts +49 -0
- package/dist/utils/chartUtils.js +191 -0
- package/dist/utils/circleBadgeUtils.d.ts +30 -0
- package/dist/utils/circleBadgeUtils.js +85 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.js +66 -0
- package/dist/utils/collectAltTextPages.d.ts +6 -0
- package/dist/utils/collectAltTextPages.js +20 -0
- package/dist/utils/colorLuminance.d.ts +3 -0
- package/dist/utils/colorLuminance.js +14 -0
- package/dist/utils/colorNames.d.ts +7 -0
- package/dist/utils/colorNames.js +17 -0
- package/dist/utils/colorOptions.d.ts +20 -0
- package/dist/utils/colorOptions.js +20 -0
- package/dist/utils/cornerRadius.d.ts +14 -0
- package/dist/utils/cornerRadius.js +27 -0
- package/dist/utils/cornerReservation.d.ts +19 -0
- package/dist/utils/cornerReservation.js +7 -0
- package/dist/utils/coverFit.d.ts +117 -0
- package/dist/utils/coverFit.js +207 -0
- package/dist/utils/cropAspect.d.ts +47 -0
- package/dist/utils/cropAspect.js +53 -0
- package/dist/utils/cropGhost.d.ts +63 -0
- package/dist/utils/cropGhost.js +216 -0
- package/dist/utils/cropSession.d.ts +23 -0
- package/dist/utils/cropSession.js +92 -0
- package/dist/utils/cropTarget.d.ts +22 -0
- package/dist/utils/cropTarget.js +33 -0
- package/dist/utils/deepSelect.d.ts +43 -0
- package/dist/utils/deepSelect.js +74 -0
- package/dist/utils/downloadError.d.ts +2 -0
- package/dist/utils/downloadError.js +13 -0
- package/dist/utils/duplicateElement.d.ts +127 -0
- package/dist/utils/duplicateElement.js +235 -0
- package/dist/utils/editorFocus.d.ts +36 -0
- package/dist/utils/editorFocus.js +67 -0
- package/dist/utils/editorToast.d.ts +21 -0
- package/dist/utils/editorToast.js +7 -0
- package/dist/utils/elementKinds.d.ts +212 -0
- package/dist/utils/elementKinds.js +137 -0
- package/dist/utils/emoji/emojiCatalog.d.ts +12 -0
- package/dist/utils/emoji/emojiCatalog.en.json +9997 -0
- package/dist/utils/emoji/emojiCatalog.js +53 -0
- package/dist/utils/emoji/emojiCatalog.json +9913 -0
- package/dist/utils/ensureFontsReady.d.ts +12 -0
- package/dist/utils/ensureFontsReady.js +23 -0
- package/dist/utils/expandImage.d.ts +17 -0
- package/dist/utils/expandImage.js +76 -0
- package/dist/utils/externalIcons.d.ts +67 -0
- package/dist/utils/externalIcons.js +168 -0
- package/dist/utils/filterCache.d.ts +16 -0
- package/dist/utils/filterCache.js +31 -0
- package/dist/utils/filterUtils.d.ts +2 -0
- package/dist/utils/filterUtils.js +89 -0
- package/dist/utils/followStage.d.ts +2 -0
- package/dist/utils/followStage.js +48 -0
- package/dist/utils/fontAliases.d.ts +14 -0
- package/dist/utils/fontAliases.js +32 -0
- package/dist/utils/fontMarkSupport.d.ts +26 -0
- package/dist/utils/fontMarkSupport.js +32 -0
- package/dist/utils/frameUtils.d.ts +20 -0
- package/dist/utils/frameUtils.js +283 -0
- package/dist/utils/gradientFill.d.ts +55 -0
- package/dist/utils/gradientFill.js +57 -0
- package/dist/utils/gradientHitArea.d.ts +22 -0
- package/dist/utils/gradientHitArea.js +94 -0
- package/dist/utils/grain.d.ts +29 -0
- package/dist/utils/grain.js +103 -0
- package/dist/utils/grainSpec.d.ts +2 -0
- package/dist/utils/grainSpec.js +3 -0
- package/dist/utils/groupSnap.d.ts +27 -0
- package/dist/utils/groupSnap.js +54 -0
- package/dist/utils/handDrawn.d.ts +92 -0
- package/dist/utils/handDrawn.js +523 -0
- package/dist/utils/historyStamp.d.ts +22 -0
- package/dist/utils/historyStamp.js +31 -0
- package/dist/utils/hostStorageKeys.d.ts +16 -0
- package/dist/utils/hostStorageKeys.js +27 -0
- package/dist/utils/iconInstances.d.ts +80 -0
- package/dist/utils/iconInstances.js +109 -0
- package/dist/utils/illustrations/gophers.d.ts +11 -0
- package/dist/utils/illustrations/gophers.js +1236 -0
- package/dist/utils/illustrations/humaaans.d.ts +8 -0
- package/dist/utils/illustrations/humaaans.js +265 -0
- package/dist/utils/illustrations/illlustrations.d.ts +11 -0
- package/dist/utils/illustrations/illlustrations.js +929 -0
- package/dist/utils/illustrations/kawaii.d.ts +6 -0
- package/dist/utils/illustrations/kawaii.js +73 -0
- package/dist/utils/illustrations/opendoodles.d.ts +6 -0
- package/dist/utils/illustrations/opendoodles.js +271 -0
- package/dist/utils/illustrations/openpeeps.d.ts +9 -0
- package/dist/utils/illustrations/openpeeps.js +1522 -0
- package/dist/utils/illustrations/prefetchAnalytics.d.ts +78 -0
- package/dist/utils/illustrations/prefetchAnalytics.js +162 -0
- package/dist/utils/illustrations/registry.d.ts +27 -0
- package/dist/utils/illustrations/registry.js +106 -0
- package/dist/utils/illustrations/svgCache.d.ts +60 -0
- package/dist/utils/illustrations/svgCache.js +349 -0
- package/dist/utils/illustrations/transhumans.d.ts +8 -0
- package/dist/utils/illustrations/transhumans.js +313 -0
- package/dist/utils/illustrations/types.d.ts +25 -0
- package/dist/utils/illustrations/types.js +45 -0
- package/dist/utils/imageElementComparison.d.ts +19 -0
- package/dist/utils/imageElementComparison.js +121 -0
- package/dist/utils/imageFilters.d.ts +94 -0
- package/dist/utils/imageFilters.js +304 -0
- package/dist/utils/imageLook.d.ts +18 -0
- package/dist/utils/imageLook.js +41 -0
- package/dist/utils/keyboardCrop.d.ts +25 -0
- package/dist/utils/keyboardCrop.js +98 -0
- package/dist/utils/keyboardOwnership.d.ts +30 -0
- package/dist/utils/keyboardOwnership.js +93 -0
- package/dist/utils/layerLabels.d.ts +39 -0
- package/dist/utils/layerLabels.js +181 -0
- package/dist/utils/layerLock.d.ts +24 -0
- package/dist/utils/layerLock.js +52 -0
- package/dist/utils/layerSelection.d.ts +24 -0
- package/dist/utils/layerSelection.js +16 -0
- package/dist/utils/markerBoxes.d.ts +38 -0
- package/dist/utils/markerBoxes.js +60 -0
- package/dist/utils/markerColors.d.ts +16 -0
- package/dist/utils/markerColors.js +32 -0
- package/dist/utils/mediaDrop.d.ts +76 -0
- package/dist/utils/mediaDrop.js +95 -0
- package/dist/utils/mediaPlacement.d.ts +6 -0
- package/dist/utils/mediaPlacement.js +17 -0
- package/dist/utils/motifSizes.d.ts +8 -0
- package/dist/utils/motifSizes.js +9 -0
- package/dist/utils/multiSelect.d.ts +44 -0
- package/dist/utils/multiSelect.js +139 -0
- package/dist/utils/notch.d.ts +17 -0
- package/dist/utils/notch.js +23 -0
- package/dist/utils/orientElement.d.ts +46 -0
- package/dist/utils/orientElement.js +108 -0
- package/dist/utils/orientation.d.ts +119 -0
- package/dist/utils/orientation.js +411 -0
- package/dist/utils/pageCounter.d.ts +15 -0
- package/dist/utils/pageCounter.js +17 -0
- package/dist/utils/pendingImages.d.ts +10 -0
- package/dist/utils/pendingImages.js +25 -0
- package/dist/utils/photoCredit.d.ts +9 -0
- package/dist/utils/photoCredit.js +29 -0
- package/dist/utils/photoCredits.d.ts +5 -0
- package/dist/utils/photoCredits.js +17 -0
- package/dist/utils/photoPlaceholder.d.ts +25 -0
- package/dist/utils/photoPlaceholder.js +38 -0
- package/dist/utils/pillBadgeUtils.d.ts +41 -0
- package/dist/utils/pillBadgeUtils.js +94 -0
- package/dist/utils/pixelHitArea.d.ts +13 -0
- package/dist/utils/pixelHitArea.js +33 -0
- package/dist/utils/plainTextLayout.d.ts +11 -0
- package/dist/utils/plainTextLayout.js +64 -0
- package/dist/utils/printImageInfo.d.ts +9 -0
- package/dist/utils/printImageInfo.js +14 -0
- package/dist/utils/recacheNextFrame.d.ts +6 -0
- package/dist/utils/recacheNextFrame.js +15 -0
- package/dist/utils/removeElement.d.ts +17 -0
- package/dist/utils/removeElement.js +47 -0
- package/dist/utils/renderedBoxes.d.ts +19 -0
- package/dist/utils/renderedBoxes.js +67 -0
- package/dist/utils/resolveElementValue.d.ts +44 -0
- package/dist/utils/resolveElementValue.js +72 -0
- package/dist/utils/scrollBehavior.d.ts +6 -0
- package/dist/utils/scrollBehavior.js +17 -0
- package/dist/utils/searchTranslations.d.ts +20 -0
- package/dist/utils/searchTranslations.js +366 -0
- package/dist/utils/selectionCapabilities.d.ts +53 -0
- package/dist/utils/selectionCapabilities.js +52 -0
- package/dist/utils/shade.d.ts +24 -0
- package/dist/utils/shade.js +55 -0
- package/dist/utils/shapeDevices.d.ts +72 -0
- package/dist/utils/shapeDevices.js +100 -0
- package/dist/utils/shapeTransform.d.ts +29 -0
- package/dist/utils/shapeTransform.js +69 -0
- package/dist/utils/shapes.d.ts +64 -0
- package/dist/utils/shapes.js +838 -0
- package/dist/utils/smartCrop.d.ts +30 -0
- package/dist/utils/smartCrop.js +163 -0
- package/dist/utils/snapping.d.ts +116 -0
- package/dist/utils/snapping.js +426 -0
- package/dist/utils/stageCssScale.d.ts +7 -0
- package/dist/utils/stageCssScale.js +11 -0
- package/dist/utils/stateTypeAssertions.d.ts +99 -0
- package/dist/utils/stateTypeAssertions.js +197 -0
- package/dist/utils/straighten.d.ts +51 -0
- package/dist/utils/straighten.js +254 -0
- package/dist/utils/surfaceGlow.d.ts +7 -0
- package/dist/utils/surfaceGlow.js +27 -0
- package/dist/utils/templateElementInstance.d.ts +43 -0
- package/dist/utils/templateElementInstance.js +100 -0
- package/dist/utils/templateRotation.d.ts +24 -0
- package/dist/utils/templateRotation.js +56 -0
- package/dist/utils/textAlign.d.ts +17 -0
- package/dist/utils/textAlign.js +30 -0
- package/dist/utils/textEditorOpeners.d.ts +12 -0
- package/dist/utils/textEditorOpeners.js +40 -0
- package/dist/utils/textRouting.d.ts +17 -0
- package/dist/utils/textRouting.js +22 -0
- package/dist/utils/textUtils.d.ts +102 -0
- package/dist/utils/textUtils.js +254 -0
- package/dist/utils/touchInput.d.ts +7 -0
- package/dist/utils/touchInput.js +19 -0
- package/dist/utils/transformHudLabel.d.ts +3 -0
- package/dist/utils/transformHudLabel.js +12 -0
- package/dist/utils/unsplashLinks.d.ts +2 -0
- package/dist/utils/unsplashLinks.js +7 -0
- package/dist/utils/userFacingError.d.ts +10 -0
- package/dist/utils/userFacingError.js +10 -0
- package/dist/utils/userImageCrop.d.ts +4 -0
- package/dist/utils/userImageCrop.js +26 -0
- package/dist/utils/userImageUtils.d.ts +44 -0
- package/dist/utils/userImageUtils.js +136 -0
- package/dist/utils/viewport.d.ts +16 -0
- package/dist/utils/viewport.js +30 -0
- package/dist/utils/zipPageImages.d.ts +9 -0
- package/dist/utils/zipPageImages.js +30 -0
- package/package.json +105 -3
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
/* SPDX-License-Identifier: MPL-2.0 */
|
|
2
|
+
/**
|
|
3
|
+
* @ggraphic/editor — editor rules
|
|
4
|
+
*
|
|
5
|
+
* Structural, layout, motion, rich-text and touch rules for the editor
|
|
6
|
+
* components. Declares no `--editor-*` token: the values come from the host, or
|
|
7
|
+
* from `tokens.css` (`@ggraphic/editor/styles` imports both).
|
|
8
|
+
*
|
|
9
|
+
* Not shipped here: compiled Tailwind. The components carry Tailwind utility
|
|
10
|
+
* classes (including theme colours such as `bg-editor-tile`). A host on
|
|
11
|
+
* Tailwind v4 imports `@ggraphic/editor/styles/tailwind` (scan, theme mapping,
|
|
12
|
+
* `touch-target`, `element-enter`, the `kbd` variant); any other host scans
|
|
13
|
+
* the core with an `@source` and maps the same names in its own `@theme`.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/* ── CanvasStage border overlay: neutral colours from the tokens. A host with
|
|
17
|
+
its own palette re-declares these rules after the import. ── */
|
|
18
|
+
.canvas-stage-container::after {
|
|
19
|
+
content: '';
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
right: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
border: 2px solid var(--editor-accent);
|
|
26
|
+
border-radius: 2px;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
z-index: 10;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Multi-page mode: border outside canvas, hidden by default */
|
|
32
|
+
.heterogeneous-multipage__page-wrapper .canvas-stage-container::after {
|
|
33
|
+
top: -2px;
|
|
34
|
+
left: -2px;
|
|
35
|
+
right: -2px;
|
|
36
|
+
bottom: -2px;
|
|
37
|
+
border-color: transparent;
|
|
38
|
+
transition: border-color 0.15s ease;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media (hover: hover) and (pointer: fine) {
|
|
42
|
+
.heterogeneous-multipage__page-wrapper:hover:not(.heterogeneous-multipage__page-wrapper--active)
|
|
43
|
+
.canvas-stage-container::after {
|
|
44
|
+
border-color: var(--editor-border-strong);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.heterogeneous-multipage__page-wrapper--active .canvas-stage-container::after {
|
|
49
|
+
border-color: var(--editor-accent);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* ── :has() body-level selectors ── */
|
|
53
|
+
|
|
54
|
+
/* Override layout to use natural page scroll instead of nested scroll */
|
|
55
|
+
.canvas-editor-layout:has(.heterogeneous-multipage__pages-container) {
|
|
56
|
+
height: auto;
|
|
57
|
+
min-height: 100dvh;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.canvas-editor-layout__main:has(.heterogeneous-multipage__pages-container) {
|
|
61
|
+
overflow: visible;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.canvas-editor-layout__canvas:has(.heterogeneous-multipage__pages-container) {
|
|
65
|
+
flex: none;
|
|
66
|
+
overflow: visible;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Keep one-finger scrolling, but route two-finger pinch to the editor zoom
|
|
70
|
+
(useZoomGestures) instead of the browser's page zoom. */
|
|
71
|
+
.canvas-editor-layout__canvas {
|
|
72
|
+
touch-action: pan-x pan-y;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* On a sharepic a finger never scrolls — it moves elements, two fingers zoom.
|
|
76
|
+
Konva only cancels `touchstart` on shapes, so without this a swipe over an
|
|
77
|
+
empty spot scrolled the pages. Scrolling stays possible beside and between
|
|
78
|
+
the pages; on mobile the page strip switches pages. */
|
|
79
|
+
.canvas-editor-layout__canvas .konvajs-content {
|
|
80
|
+
touch-action: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ── Zoom (CSS scale) on the entire pages container ── */
|
|
84
|
+
.heterogeneous-multipage__pages-container {
|
|
85
|
+
transform: scale(var(--canvas-zoom, 1));
|
|
86
|
+
transform-origin: top center;
|
|
87
|
+
transition: transform 0.12s ease-out;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Wheel/pinch zoom follows the fingers directly (useZoomGestures). */
|
|
91
|
+
.heterogeneous-multipage__pages-container[data-zooming] {
|
|
92
|
+
transition: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* ── Bottom-fixed bar: leave clearance so the last page can scroll above it.
|
|
96
|
+
The value covers the tallest variant (with thumbnail strip); without the
|
|
97
|
+
strip the bar is shorter and some slack is left over. Below 900px the
|
|
98
|
+
layout hides the bar entirely. ── */
|
|
99
|
+
.heterogeneous-multipage__pages-container.has-bottom-bar {
|
|
100
|
+
padding-bottom: 4.5rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (max-width: 899px) {
|
|
104
|
+
.heterogeneous-multipage__pages-container.has-bottom-bar {
|
|
105
|
+
padding-bottom: 0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* ── Mobile sidebar section padding (overrides global sidebar.css) — the
|
|
110
|
+
sheet owns the 20px gutter ── */
|
|
111
|
+
@media (max-width: 899px) {
|
|
112
|
+
.sidebar-section {
|
|
113
|
+
padding: 0;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* ── Mobile: the editor is one screen, not a scrolling page. Canvas, sheet and
|
|
118
|
+
bar share the column; the canvas area scrolls on its own and shrinks when
|
|
119
|
+
a sheet opens (see useMobileSheetFit). ── */
|
|
120
|
+
@media (max-width: 899px) {
|
|
121
|
+
.canvas-editor-layout:has(.heterogeneous-multipage__pages-container) {
|
|
122
|
+
height: 100dvh;
|
|
123
|
+
min-height: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.canvas-editor-layout__main:has(.heterogeneous-multipage__pages-container) {
|
|
127
|
+
overflow-y: auto;
|
|
128
|
+
overscroll-behavior: contain;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.canvas-editor-layout__main[data-sheet-open] {
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Scaled from the top-left corner: zoomed in, the pages overflow only to the
|
|
136
|
+
right, where the canvas column scrolls (a centred scale pushed the left
|
|
137
|
+
edge out of reach). The translateX re-centres them while they are
|
|
138
|
+
narrower than the column; useZoomGestures mirrors this offset. */
|
|
139
|
+
.heterogeneous-multipage__pages-container {
|
|
140
|
+
--canvas-total-scale: calc(var(--canvas-zoom, 1) * var(--canvas-sheet-scale, 1));
|
|
141
|
+
transform: translateY(var(--canvas-sheet-shift, 0px))
|
|
142
|
+
translateX(max(0px, calc((1 - var(--canvas-total-scale)) * 50%)))
|
|
143
|
+
scale(var(--canvas-total-scale));
|
|
144
|
+
transform-origin: top left;
|
|
145
|
+
transition: transform 0.22s ease;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.heterogeneous-multipage__pages-container[data-zooming] {
|
|
149
|
+
transition: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* ── Mobile sheet: slides in from the bottom, its content fades in once the
|
|
154
|
+
slide is done, and it slides back out before it unmounts. The phase
|
|
155
|
+
lives in data-state (SidebarPanel); transitionend or a 350 ms fallback
|
|
156
|
+
moves it on. Only the mobile <section> carries data-state. ── */
|
|
157
|
+
.sidebar-panel[data-state] {
|
|
158
|
+
transition: transform 280ms var(--editor-ease-drawer);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@starting-style {
|
|
162
|
+
.sidebar-panel[data-state='entering'] {
|
|
163
|
+
transform: translateY(100%);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.sidebar-panel[data-state='closing'] {
|
|
168
|
+
transform: translateY(100%);
|
|
169
|
+
transition: transform 200ms var(--editor-ease-out);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.sidebar-panel__content--in {
|
|
173
|
+
animation: sheet-content-in 150ms var(--editor-ease-out) both;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@keyframes sheet-content-in {
|
|
177
|
+
from {
|
|
178
|
+
opacity: 0;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Reduced motion: the sheet fades instead of sliding; the content fade stays. */
|
|
183
|
+
@media (prefers-reduced-motion: reduce) {
|
|
184
|
+
.sidebar-panel[data-state] {
|
|
185
|
+
transition: opacity 150ms var(--editor-ease-out);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@starting-style {
|
|
189
|
+
.sidebar-panel[data-state='entering'] {
|
|
190
|
+
transform: none;
|
|
191
|
+
opacity: 0;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.sidebar-panel[data-state='closing'] {
|
|
196
|
+
transform: none;
|
|
197
|
+
opacity: 0;
|
|
198
|
+
transition: opacity 150ms var(--editor-ease-out);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.heterogeneous-multipage__pages-container {
|
|
202
|
+
transition: none;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* ── Number input spinner hiding ── */
|
|
207
|
+
input[type='number'].hide-spinner::-webkit-outer-spin-button,
|
|
208
|
+
input[type='number'].hide-spinner::-webkit-inner-spin-button {
|
|
209
|
+
-webkit-appearance: none;
|
|
210
|
+
margin: 0;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
input[type='number'].hide-spinner {
|
|
214
|
+
-moz-appearance: textfield;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* ── Thin scrollbar: neutral colours from the tokens; a host with its own
|
|
218
|
+
palette re-declares these rules after the import. ── */
|
|
219
|
+
.scrollbar-thin {
|
|
220
|
+
scrollbar-width: thin;
|
|
221
|
+
scrollbar-color: var(--editor-border-strong) transparent;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.scrollbar-thin::-webkit-scrollbar {
|
|
225
|
+
width: 6px;
|
|
226
|
+
height: 6px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.scrollbar-thin::-webkit-scrollbar-track {
|
|
230
|
+
background: transparent;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.scrollbar-thin::-webkit-scrollbar-thumb {
|
|
234
|
+
background-color: var(--editor-border-strong);
|
|
235
|
+
border-radius: 3px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* ── RichTextField (tiptap) — ProseMirror bringt kein Styling mit ── */
|
|
239
|
+
/* Der Editor sitzt als Portal über dem Leinwand-Text und erbt dessen Schrift
|
|
240
|
+
und Farbe aus einem Inline-Style; hier steht nur, was ProseMirror selbst
|
|
241
|
+
nicht setzt. */
|
|
242
|
+
.canvas-rte {
|
|
243
|
+
position: relative;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.canvas-rte__content {
|
|
247
|
+
outline: 2px solid var(--editor-accent);
|
|
248
|
+
outline-offset: 2px;
|
|
249
|
+
white-space: pre-wrap;
|
|
250
|
+
overflow-wrap: anywhere;
|
|
251
|
+
background: none;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.canvas-rte__content p {
|
|
255
|
+
margin: 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/*
|
|
259
|
+
* Die Schrift des Feldes gilt bis ins letzte Kind.
|
|
260
|
+
*
|
|
261
|
+
* Das Overlay setzt `font-family` als Inline-Style auf den RAHMEN und lässt
|
|
262
|
+
* sie nach innen erben — so, wie Größe, Farbe und Zeilenhöhe es tun. Die
|
|
263
|
+
* globale Typografie der Web-App trägt aber
|
|
264
|
+
*
|
|
265
|
+
* p, li, div, span { font-family: 'PT Sans', Arial, sans-serif; }
|
|
266
|
+
*
|
|
267
|
+
* und ein Treffer auf dem Element selbst schlägt IMMER den geerbten Wert,
|
|
268
|
+
* egal wie niedrig seine Spezifität ist. Der ProseMirror-Knoten ist ein
|
|
269
|
+
* `div`, seine Absätze sind `p`: der Editor zeigte damit PT Sans, während
|
|
270
|
+
* die Leinwand daneben die Hausschrift zeichnete. Nur `font-family` war
|
|
271
|
+
* betroffen — für die übrigen Eigenschaften gibt es keine solche Regel,
|
|
272
|
+
* deshalb stimmten Größe und Farbe und nur die Schrift nicht.
|
|
273
|
+
*
|
|
274
|
+
* Der alte `<textarea>`-Editor war immun, weil `textarea` in jener Liste
|
|
275
|
+
* nicht vorkommt. Der Fehler kam also nicht mit tiptap, sondern mit dem
|
|
276
|
+
* Wechsel auf ein `contenteditable`-Element.
|
|
277
|
+
*
|
|
278
|
+
* `*` statt einer Aufzählung der vier Element-Namen: die Regel dort oben
|
|
279
|
+
* darf wachsen, ohne dass es hier wieder auffällt.
|
|
280
|
+
*/
|
|
281
|
+
.canvas-rte__content,
|
|
282
|
+
.canvas-rte__content * {
|
|
283
|
+
font-family: inherit;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/*
|
|
287
|
+
* Aufzählungen tragen den hängenden Einzug der Leinwand: der Marker steht am
|
|
288
|
+
* linken Rand des FELDES, und alle Zeilen eines Punktes fluchten dahinter —
|
|
289
|
+
* genau das, was `layoutRichTextBlock` zeichnet. Den Einzug reicht das Overlay
|
|
290
|
+
* als `--canvas-rte-list-indent` herein, mit derselben gemessenen Breite, auf
|
|
291
|
+
* der auch der Umbruch sitzt; ohne ihn bräche der Editor auf der vollen
|
|
292
|
+
* Feldbreite um, und der Text spränge beim Schließen neu.
|
|
293
|
+
*
|
|
294
|
+
* `list-style-type`, NICHT die Kurzform `list-style`: die setzt jede nicht
|
|
295
|
+
* genannte Langform auf ihren Anfangswert zurück. Sie stand hier eine Regel
|
|
296
|
+
* NACH `list-style-position: inside` und machte daraus wieder `outside` — der
|
|
297
|
+
* Marker hing damit links aus dem Feld heraus, neben dem Text statt in ihm.
|
|
298
|
+
*/
|
|
299
|
+
.canvas-rte__content ul,
|
|
300
|
+
.canvas-rte__content ol {
|
|
301
|
+
margin: 0;
|
|
302
|
+
padding-left: var(--canvas-rte-list-indent, 1em);
|
|
303
|
+
list-style-position: outside;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.canvas-rte__content ul {
|
|
307
|
+
list-style-type: disc;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.canvas-rte__content ol {
|
|
311
|
+
list-style-type: decimal;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/* Platzhalter der tiptap-Placeholder-Extension */
|
|
315
|
+
.canvas-rte__content p.is-editor-empty:first-child::before {
|
|
316
|
+
content: attr(data-placeholder);
|
|
317
|
+
float: left;
|
|
318
|
+
height: 0;
|
|
319
|
+
pointer-events: none;
|
|
320
|
+
color: var(--editor-placeholder);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.canvas-rte__floating-toolbar {
|
|
324
|
+
pointer-events: auto;
|
|
325
|
+
position: absolute;
|
|
326
|
+
bottom: 100%;
|
|
327
|
+
left: 0;
|
|
328
|
+
margin-bottom: 0.5rem;
|
|
329
|
+
border: 1px solid var(--editor-border);
|
|
330
|
+
border-radius: 0.5rem;
|
|
331
|
+
background: var(--editor-surface);
|
|
332
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/* `++Marker++` im Text-Editor: der Kasten der Leinwand, als Hintergrund des
|
|
336
|
+
Inline-Elements (bricht pro Zeile um, wie dort). */
|
|
337
|
+
.canvas-rte__content mark[data-marker] {
|
|
338
|
+
/* Eine eigene Passagenfarbe (`--mark-fill`/`--mark-ink`, gesetzt von der Mark) schlägt die der Vorlage. */
|
|
339
|
+
--marker-box: var(--mark-fill, var(--canvas-rte-marker-fill, transparent));
|
|
340
|
+
background: var(--marker-box);
|
|
341
|
+
/* Wie auf der Leinwand: eine eigene Akzentfarbe (von einer umschließenden
|
|
342
|
+
Akzent-Mark geerbt) schlägt die Schrift des Kastens. */
|
|
343
|
+
color: var(--mark-color, var(--mark-ink, var(--canvas-rte-marker-color, inherit)));
|
|
344
|
+
/* Der Innenabstand darf den Umbruch nicht ändern: als Schatten, nicht als padding. */
|
|
345
|
+
box-shadow:
|
|
346
|
+
0.18em 0 0 var(--marker-box),
|
|
347
|
+
-0.18em 0 0 var(--marker-box);
|
|
348
|
+
-webkit-box-decoration-break: clone;
|
|
349
|
+
box-decoration-break: clone;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/* `==Akzent==` im Text-Editor: so, wie die Leinwand den Lauf zeichnet. Die
|
|
353
|
+
Werte setzt das Overlay aus dem `TextAccent` des Feldes. */
|
|
354
|
+
.canvas-rte__content mark[data-accent] {
|
|
355
|
+
background: none;
|
|
356
|
+
color: var(--mark-color, var(--canvas-rte-accent-color, inherit));
|
|
357
|
+
font-family: var(--canvas-rte-accent-font, inherit);
|
|
358
|
+
font-style: var(--canvas-rte-accent-style, inherit);
|
|
359
|
+
font-weight: var(--canvas-rte-accent-weight, inherit);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* Eine eigene Farbe färbt nur — die Akzentschrift gehört zur Vorlagenfarbe
|
|
363
|
+
(wie `runFont` auf der Leinwand). */
|
|
364
|
+
.canvas-rte__content mark[data-accent][data-color] {
|
|
365
|
+
font-family: inherit;
|
|
366
|
+
font-style: inherit;
|
|
367
|
+
font-weight: inherit;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* ── Touch baseline (mobile feel) ──
|
|
371
|
+
Scoped to the editor: the legacy global `button { transition: ... 0.5s }`
|
|
372
|
+
(apps/web global.css) must stay untouched for the rest of the app.
|
|
373
|
+
Layered on purpose: apps/web imports global.css as `layer(legacy)` and
|
|
374
|
+
declares `base, legacy, components, utilities`, so `components` beats the
|
|
375
|
+
legacy fade while utilities (duration-*, touch-none, select-text) still
|
|
376
|
+
beat the baseline. Unlayered it would override every utility as well. */
|
|
377
|
+
@layer components {
|
|
378
|
+
/* Mobile only: desktop keeps trackpad swipe-back. */
|
|
379
|
+
@media (max-width: 899px) {
|
|
380
|
+
html:has(.canvas-editor-layout),
|
|
381
|
+
html:has(.canvas-editor-layout) body {
|
|
382
|
+
overscroll-behavior: none;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.canvas-editor-layout button {
|
|
387
|
+
transition-duration: 100ms;
|
|
388
|
+
transition-timing-function: var(--editor-ease-out);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.canvas-editor-layout :is(button, [role='button'], [role='tab']) {
|
|
392
|
+
touch-action: manipulation;
|
|
393
|
+
-webkit-user-select: none;
|
|
394
|
+
user-select: none;
|
|
395
|
+
-webkit-touch-callout: none;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.canvas-editor-layout img {
|
|
399
|
+
-webkit-touch-callout: none;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/* ── Horizontal scroller on mobile: fade the edge that has more content, so a
|
|
404
|
+
row without a scrollbar still says "there is more". Driven by the scroller's
|
|
405
|
+
own scroll timeline; with no overflow the timeline is inactive and nothing
|
|
406
|
+
fades. Browsers without scroll timelines simply show no fade. ── */
|
|
407
|
+
@property --canvas-fade-start {
|
|
408
|
+
syntax: '<length>';
|
|
409
|
+
inherits: false;
|
|
410
|
+
initial-value: 0px;
|
|
411
|
+
}
|
|
412
|
+
@property --canvas-fade-end {
|
|
413
|
+
syntax: '<length>';
|
|
414
|
+
inherits: false;
|
|
415
|
+
initial-value: 0px;
|
|
416
|
+
}
|
|
417
|
+
@supports (animation-timeline: scroll()) {
|
|
418
|
+
.canvas-scroll-fade-x {
|
|
419
|
+
mask-image: linear-gradient(
|
|
420
|
+
to right,
|
|
421
|
+
transparent,
|
|
422
|
+
#000 var(--canvas-fade-start),
|
|
423
|
+
#000 calc(100% - var(--canvas-fade-end)),
|
|
424
|
+
transparent
|
|
425
|
+
);
|
|
426
|
+
animation: canvas-scroll-fade-x linear both;
|
|
427
|
+
animation-timeline: scroll(self inline);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
@keyframes canvas-scroll-fade-x {
|
|
431
|
+
0% {
|
|
432
|
+
--canvas-fade-start: 0px;
|
|
433
|
+
--canvas-fade-end: 24px;
|
|
434
|
+
}
|
|
435
|
+
10% {
|
|
436
|
+
--canvas-fade-start: 24px;
|
|
437
|
+
}
|
|
438
|
+
90% {
|
|
439
|
+
--canvas-fade-end: 24px;
|
|
440
|
+
}
|
|
441
|
+
100% {
|
|
442
|
+
--canvas-fade-start: 24px;
|
|
443
|
+
--canvas-fade-end: 0px;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/* SPDX-License-Identifier: MPL-2.0 */
|
|
2
|
+
/**
|
|
3
|
+
* @ggraphic/editor — Tailwind v4 entry
|
|
4
|
+
*
|
|
5
|
+
* For hosts that build with Tailwind v4. Import it after `@import 'tailwindcss'`
|
|
6
|
+
* and the token defaults (`@ggraphic/editor/styles` or `.../styles/tokens`):
|
|
7
|
+
*
|
|
8
|
+
* @import 'tailwindcss';
|
|
9
|
+
* @import '@ggraphic/editor/styles';
|
|
10
|
+
* @import '@ggraphic/editor/styles/tailwind';
|
|
11
|
+
*
|
|
12
|
+
* It scans the core for the classes it uses, maps the theme names those
|
|
13
|
+
* classes use onto the custom properties of `tokens.css`, and adds the
|
|
14
|
+
* utilities and the variant that stock Tailwind does not have. A host with its
|
|
15
|
+
* own theme leaves this file out and maps the same names itself.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
@source "../**/*.{js,jsx,ts,tsx}";
|
|
19
|
+
|
|
20
|
+
/* Trefferfläche auf 44px (WCAG 2.2 „Target Size") bringen, ohne die Optik
|
|
21
|
+
anzufassen: ein unsichtbares Pseudo-Element deckt die fehlenden Pixel ab.
|
|
22
|
+
Nur auf Zeigergeräten. Voraussetzung: kein Vorfahre mit `overflow: hidden`,
|
|
23
|
+
und das Element benutzt `::after` nicht schon selbst. */
|
|
24
|
+
@utility touch-target {
|
|
25
|
+
@media (pointer: coarse) {
|
|
26
|
+
position: relative;
|
|
27
|
+
|
|
28
|
+
&::after {
|
|
29
|
+
content: '';
|
|
30
|
+
position: absolute;
|
|
31
|
+
inset: 50%;
|
|
32
|
+
min-width: 44px;
|
|
33
|
+
min-height: 44px;
|
|
34
|
+
translate: -50% -50%;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Elemente-Katalog: Einblenden beim Öffnen, je Kachel um 30 ms versetzt (max. 8 Kacheln, Index 0–7) */
|
|
40
|
+
@utility element-enter {
|
|
41
|
+
animation:
|
|
42
|
+
elementFade 0.2s var(--editor-ease-out) both,
|
|
43
|
+
elementRise 0.25s var(--editor-ease-out) both;
|
|
44
|
+
animation-delay: calc(min(var(--i, 0), 7) * 30ms);
|
|
45
|
+
|
|
46
|
+
@media (prefers-reduced-motion: reduce) {
|
|
47
|
+
animation: none;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* `kbd:` applies only while the last input was a key (data-focus-modality is
|
|
52
|
+
set on <html> by the editor), so focus rings show for keyboard users only. */
|
|
53
|
+
@custom-variant kbd (&:where([data-focus-modality="keyboard"] *));
|
|
54
|
+
|
|
55
|
+
@theme {
|
|
56
|
+
/* Brand-ramp steps the core's classes use */
|
|
57
|
+
--color-primary-50: var(--primary-50);
|
|
58
|
+
--color-primary-100: var(--primary-100);
|
|
59
|
+
--color-primary-500: var(--primary-500);
|
|
60
|
+
--color-primary-600: var(--primary-600);
|
|
61
|
+
--color-primary-700: var(--primary-700);
|
|
62
|
+
--color-secondary-600: var(--secondary-600);
|
|
63
|
+
--color-secondary-700: var(--secondary-700);
|
|
64
|
+
--color-grey-300: var(--grey-300);
|
|
65
|
+
--color-grey-400: var(--grey-text-weak-val);
|
|
66
|
+
--color-grey-500: var(--grey-text-val);
|
|
67
|
+
|
|
68
|
+
/* Semantic colours */
|
|
69
|
+
--color-background: var(--background-color);
|
|
70
|
+
--color-background-pure: var(--background-color-pure);
|
|
71
|
+
--color-background-alt: var(--background-color-alt);
|
|
72
|
+
--color-foreground: var(--font-color);
|
|
73
|
+
--color-foreground-muted: var(--font-color-muted);
|
|
74
|
+
--color-muted-foreground: var(--font-color-muted);
|
|
75
|
+
--color-accent: var(--interactive-accent-color);
|
|
76
|
+
--color-destructive: var(--error-red);
|
|
77
|
+
--color-hover-alt: var(--hover-color-alt);
|
|
78
|
+
--color-input-bg: var(--input-background);
|
|
79
|
+
--color-input-text: var(--input-text-color);
|
|
80
|
+
--color-input: var(--input-background);
|
|
81
|
+
--color-muted: var(--editor-tile);
|
|
82
|
+
--color-border: var(--border-color);
|
|
83
|
+
--color-ring: var(--interactive-accent-color);
|
|
84
|
+
--color-primary: var(--primary-600);
|
|
85
|
+
--color-primary-foreground: #ffffff;
|
|
86
|
+
|
|
87
|
+
/* Editor surfaces */
|
|
88
|
+
--color-editor-bg: var(--editor-bg);
|
|
89
|
+
--color-editor-canvas-bg: var(--editor-canvas-bg);
|
|
90
|
+
--color-editor-surface: var(--editor-surface);
|
|
91
|
+
--color-editor-surface-hover: var(--editor-surface-hover);
|
|
92
|
+
--color-editor-inset: var(--editor-inset);
|
|
93
|
+
--color-editor-tile: var(--editor-tile);
|
|
94
|
+
--color-editor-canvas-hover: var(--editor-canvas-hover);
|
|
95
|
+
--color-editor-border: var(--editor-border);
|
|
96
|
+
--color-editor-border-soft: var(--editor-border-soft);
|
|
97
|
+
--color-editor-border-strong: var(--editor-border-strong);
|
|
98
|
+
--color-editor-text: var(--editor-text);
|
|
99
|
+
--color-editor-text-secondary: var(--editor-text-secondary);
|
|
100
|
+
--color-editor-text-muted: var(--editor-text-muted);
|
|
101
|
+
--color-editor-placeholder: var(--editor-placeholder);
|
|
102
|
+
--color-editor-green-deep: var(--editor-green-deep);
|
|
103
|
+
--color-editor-accent: var(--editor-accent);
|
|
104
|
+
--color-editor-active-fg: var(--editor-active-fg);
|
|
105
|
+
--color-editor-active-bg: var(--editor-active-bg);
|
|
106
|
+
--color-editor-switch-off: var(--editor-switch-off);
|
|
107
|
+
--color-editor-switch-thumb-on: var(--editor-switch-thumb-on);
|
|
108
|
+
--color-editor-switch-thumb-off: var(--editor-switch-thumb-off);
|
|
109
|
+
--color-editor-active-soft: var(--editor-active-soft);
|
|
110
|
+
--color-editor-stack-back: var(--editor-stack-back);
|
|
111
|
+
--color-editor-stack-mid: var(--editor-stack-mid);
|
|
112
|
+
--color-editor-secondary-fg: var(--editor-secondary-fg);
|
|
113
|
+
--color-editor-danger-fg: var(--editor-danger-fg);
|
|
114
|
+
--color-editor-danger-bg: var(--editor-danger-bg);
|
|
115
|
+
--color-editor-primary-preview: var(--editor-primary-preview);
|
|
116
|
+
--color-editor-control-border: var(--editor-control-border);
|
|
117
|
+
--color-editor-control-bg: var(--editor-control-bg);
|
|
118
|
+
--color-editor-control-bg-hover: var(--editor-control-bg-hover);
|
|
119
|
+
--color-editor-icon-button-bg: var(--editor-icon-button-bg);
|
|
120
|
+
--color-editor-icon-button-bg-hover: var(--editor-icon-button-bg-hover);
|
|
121
|
+
--color-editor-icon-button-fg: var(--editor-icon-button-fg);
|
|
122
|
+
|
|
123
|
+
/* Spacing */
|
|
124
|
+
--spacing-xxs: var(--spacing-xxsmall);
|
|
125
|
+
--spacing-xs: var(--spacing-xsmall);
|
|
126
|
+
--spacing-sm: var(--spacing-small);
|
|
127
|
+
--spacing-md: var(--spacing-medium);
|
|
128
|
+
--spacing-lg: var(--spacing-large);
|
|
129
|
+
--spacing-xl: var(--spacing-xlarge);
|
|
130
|
+
|
|
131
|
+
/* Radii */
|
|
132
|
+
--radius-sm: var(--card-border-radius-small);
|
|
133
|
+
--radius-md: var(--card-border-radius-medium);
|
|
134
|
+
--radius-lg: var(--card-border-radius-large);
|
|
135
|
+
|
|
136
|
+
/* Layout */
|
|
137
|
+
--breakpoint-canvas-mobile: 900px;
|
|
138
|
+
|
|
139
|
+
/* Animations */
|
|
140
|
+
--animate-canvas-slide-down-fade: slideDownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
141
|
+
--animate-canvas-expand-width: expandWidth 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
142
|
+
--animate-auto-save-spin: auto-save-spin 0.8s linear infinite;
|
|
143
|
+
--animate-auto-save-check: auto-save-check-in 0.3s ease;
|
|
144
|
+
--animate-subsection-fade-in: subsectionFadeIn 0.15s ease-out;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@keyframes slideDownFade {
|
|
148
|
+
from {
|
|
149
|
+
opacity: 0;
|
|
150
|
+
transform: translateY(-8px) scale(0.96);
|
|
151
|
+
}
|
|
152
|
+
to {
|
|
153
|
+
opacity: 1;
|
|
154
|
+
transform: translateY(0) scale(1);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@keyframes expandWidth {
|
|
159
|
+
from {
|
|
160
|
+
opacity: 0;
|
|
161
|
+
transform: translateX(-10px);
|
|
162
|
+
}
|
|
163
|
+
to {
|
|
164
|
+
opacity: 1;
|
|
165
|
+
transform: translateX(0);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@keyframes auto-save-spin {
|
|
170
|
+
to {
|
|
171
|
+
transform: rotate(360deg);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@keyframes auto-save-check-in {
|
|
176
|
+
from {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
transform: scale(0.5);
|
|
179
|
+
}
|
|
180
|
+
to {
|
|
181
|
+
opacity: 1;
|
|
182
|
+
transform: scale(1);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@keyframes elementFade {
|
|
187
|
+
from {
|
|
188
|
+
opacity: 0;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@keyframes elementRise {
|
|
193
|
+
from {
|
|
194
|
+
transform: var(--enter-from, none);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@keyframes subsectionFadeIn {
|
|
199
|
+
from {
|
|
200
|
+
opacity: 0;
|
|
201
|
+
transform: translateY(4px);
|
|
202
|
+
}
|
|
203
|
+
to {
|
|
204
|
+
opacity: 1;
|
|
205
|
+
transform: translateY(0);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@keyframes sidebar-hint-popup-in {
|
|
210
|
+
from {
|
|
211
|
+
opacity: 0;
|
|
212
|
+
transform: translateX(-50%) translateY(8px);
|
|
213
|
+
}
|
|
214
|
+
to {
|
|
215
|
+
opacity: 1;
|
|
216
|
+
transform: translateX(-50%) translateY(0);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* Reduced motion: these entrances keep their fade and drop the movement. */
|
|
221
|
+
@media (prefers-reduced-motion: reduce) {
|
|
222
|
+
@keyframes subsectionFadeIn {
|
|
223
|
+
from {
|
|
224
|
+
opacity: 0;
|
|
225
|
+
}
|
|
226
|
+
to {
|
|
227
|
+
opacity: 1;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@keyframes slideDownFade {
|
|
232
|
+
from {
|
|
233
|
+
opacity: 0;
|
|
234
|
+
}
|
|
235
|
+
to {
|
|
236
|
+
opacity: 1;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|