@ibodr/draw 0.2.23 → 0.3.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/dist/index.d.ts +21 -1
- package/dist/index.mjs +22 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -3897,6 +3897,22 @@ interface DrUiOverrides {
|
|
|
3897
3897
|
translations?: DrUiTranslationProviderProps['overrides'];
|
|
3898
3898
|
}
|
|
3899
3899
|
|
|
3900
|
+
/**
|
|
3901
|
+
* Внешний контроллер горячих клавиш одного экземпляра редактора.
|
|
3902
|
+
* Без него редактор обрабатывает клавиши сам.
|
|
3903
|
+
*/
|
|
3904
|
+
type DrawShortcutController = {
|
|
3905
|
+
instanceId: string;
|
|
3906
|
+
owns(id: string): boolean;
|
|
3907
|
+
};
|
|
3908
|
+
/** @public */
|
|
3909
|
+
declare function DrawShortcutControllerProvider({ controller, children, }: {
|
|
3910
|
+
controller: DrawShortcutController | null;
|
|
3911
|
+
children: ReactNode;
|
|
3912
|
+
}): React$1.FunctionComponentElement<React$1.ProviderProps<DrawShortcutController | null>>;
|
|
3913
|
+
/** @public */
|
|
3914
|
+
declare function useDrawShortcutController(): DrawShortcutController | null;
|
|
3915
|
+
|
|
3900
3916
|
/** @public */
|
|
3901
3917
|
interface DrUiContextProviderProps {
|
|
3902
3918
|
/**
|
|
@@ -3915,6 +3931,10 @@ interface DrUiContextProviderProps {
|
|
|
3915
3931
|
* Callback for when an event occurs in the UI.
|
|
3916
3932
|
*/
|
|
3917
3933
|
onUiEvent?: DrUiEventHandler;
|
|
3934
|
+
/**
|
|
3935
|
+
* Внешний контроллер переназначаемых команд этого экземпляра редактора.
|
|
3936
|
+
*/
|
|
3937
|
+
shortcutController?: DrawShortcutController | null;
|
|
3918
3938
|
/**
|
|
3919
3939
|
* Whether to always should the mobile breakpoints.
|
|
3920
3940
|
*/
|
|
@@ -6340,4 +6360,4 @@ interface WrapSelectionOptions {
|
|
|
6340
6360
|
*/
|
|
6341
6361
|
declare const WrapSelectionExtension: Extension<WrapSelectionOptions, any>;
|
|
6342
6362
|
|
|
6343
|
-
export { type A11yPriority, type A11yProviderProps, type ASPECT_RATIO_OPTION, ASPECT_RATIO_OPTIONS, ASPECT_RATIO_TO_VALUE, AccessibilityMenu, type ActionsProviderProps, type AlertSeverity, AlignMenuItems, ArrangeMenuSubmenu, ArrowBindingHintOverlayUtil, ArrowBindingUtil, ArrowDownToolbarItem, ArrowHintOverlayUtil, ArrowLeftToolbarItem, ArrowRightToolbarItem, type ArrowShapeOptions, ArrowShapeTool, ArrowShapeUtil, type ArrowShapeUtilDisplayValues, type ArrowTargetState, ArrowToolbarItem, ArrowUpToolbarItem, AssetToolbarItem, AssetUrlsProvider, type AssetUrlsProviderProps, type BasePathBuilderOpts, BookmarkAssetUtil, type BookmarkShapeOptions, BookmarkShapeUtil, type BookmarkShapeUtilDisplayValues, type BoxWidthHeight, BreakPointProvider, type BreakPointProviderProps, BrushOverlayUtil, type BrushOverlayUtilDisplayValues, type BrushOverlayUtilOptions, CenteredTopPanelContainer, type CenteredTopPanelContainerProps, CheckBoxToolbarItem, ClipboardMenuGroup, CloudToolbarItem, CollaboratorBrushOverlayUtil, CollaboratorCursorBadge, CollaboratorCursorOverlayUtil, CollaboratorCursorPointer, CollaboratorCursors, type CollaboratorCursorsProps, CollaboratorHintOverlayUtil, CollaboratorScribbleOverlayUtil, CollaboratorShapeIndicatorOverlayUtil, ColorSchemeMenu, CommentToolbarItem, DefaultContextMenu as ContextMenu, ConversionsMenuGroup, ConvertToBookmarkMenuItem, ConvertToEmbedMenuItem, CopyAsMenuGroup, type CopyAsOptions, CopyMenuItem, type CropBoxOptions, type CubicBezierToPathBuilderCommand, CursorChatItem, type CustomDebugFlags, type CustomEmbedDefinition, CutMenuItem, DEFAULT_COLLABORATOR_CURSOR_LAYOUT, DEFAULT_EMBED_DEFINITIONS, DEFAULT_MAX_ASSET_SIZE, DEFAULT_MAX_IMAGE_DIMENSION, DRAW_FILE_EXTENSION, type DashedPathBuilderOpts, DebugFlags, type DebugFlagsProps, DefaultA11yAnnouncer, DefaultActionsMenu, DefaultActionsMenuContent, DefaultCollaboratorCursor, DefaultContextMenu, DefaultContextMenuContent, DefaultDebugMenu, DefaultDebugMenuContent, DefaultDialogs, type DefaultEmbedConfig, type DefaultEmbedDefinitionType, DefaultFollowingIndicator, DefaultFontFaces, DefaultHelpMenu, DefaultHelpMenuContent, DefaultHelperButtons, DefaultHelperButtonsContent, DefaultImageToolbar, DefaultImageToolbarContent, type DefaultImageToolbarContentProps, DefaultKeyboardShortcutsDialog, DefaultKeyboardShortcutsDialogContent, DefaultMainMenu, DefaultMainMenuContent, DefaultMenuPanel, DefaultMinimap, DefaultNavigationPanel, DefaultNoteShapeAttribution, DefaultPageMenu, DefaultPeopleMenu, DefaultPeopleMenuAvatar, DefaultPeopleMenuContent, type DefaultPeopleMenuContentProps, DefaultPeopleMenuFacePile, DefaultPeopleMenuItem, type DefaultPeopleMenuProps, DefaultQuickActions, DefaultQuickActionsContent, DefaultRichTextToolbar, DefaultRichTextToolbarContent, type DefaultRichTextToolbarContentProps, DefaultSharePanel, DefaultStylePanel, DefaultStylePanelContent, DefaultToasts, DefaultToolbar, DefaultToolbarContent, type DefaultToolbarProps, DefaultUserPresenceEditor, DefaultVideoToolbar, DefaultVideoToolbarContent, type DefaultVideoToolbarContentProps, DefaultZoomMenu, DefaultZoomMenuContent, DeleteMenuItem, DiamondToolbarItem, DistributeMenuItems, type DrArcArrowInfo, type DrArcInfo, type DrArrowBindingHintOverlay, type DrArrowBindings, type DrArrowHintOverlay, type DrArrowInfo, type DrArrowPoint, type DrBrushOverlay, type DrCollaboratorBrushOverlay, type DrCollaboratorCursorOverlay, type DrCollaboratorCursorScaleOptions, type DrCollaboratorHintOverlay, type DrCollaboratorScribbleOverlay, type DrCollaboratorShapeIndicatorOverlay, type DrComponents, type DrCopyType, type DrDefaultExternalContentHandlerOpts, type DrDefaultFont, type DrDefaultFonts, type DrEditorAssetUrls, type DrElbowArrowInfo, type DrEmbedDefinition, type DrEmbedResult, type DrEmbedShapePermissions, type DrExternalContentProps, type DrNoteShapeAttributionComponent, type DrNoteShapeAttributionProps, type DrScribbleOverlay, type DrSelectionForegroundOverlay, type DrShapeHandleOverlay, type DrShapeIndicatorOverlay, type DrSnapIndicatorOverlay, type DrStraightArrowInfo, type DrTypeFace, type DrUiA11y, type DrUiA11yContextType, type DrUiActionItem, type DrUiActionsContextType, type DrUiActionsMenuProps, type DrUiAssetUrlOverrides, type DrUiAssetUrls, type DrUiButtonCheckProps, type DrUiButtonIconProps, type DrUiButtonLabelProps, type DrUiButtonProps, type DrUiComponents, type DrUiComponentsProviderProps, type DrUiContextMenuProps, type DrUiContextProviderProps, type DrUiContextualToolbarProps, type DrUiDebugMenuProps, type DrUiDialog, type DrUiDialogBodyProps, type DrUiDialogFooterProps, type DrUiDialogHeaderProps, type DrUiDialogProps, type DrUiDialogTitleProps, type DrUiDialogsContextType, type DrUiDialogsProviderProps, type DrUiDropdownMenuCheckboxItemProps, type DrUiDropdownMenuContentProps, type DrUiDropdownMenuGroupProps, type DrUiDropdownMenuItemProps, type DrUiDropdownMenuRootProps, type DrUiDropdownMenuSubContentProps, type DrUiDropdownMenuSubProps, type DrUiDropdownMenuSubTriggerProps, type DrUiDropdownMenuTriggerProps, type DrUiEventContextType, type DrUiEventData, type DrUiEventHandler, type DrUiEventMap, type DrUiEventSource, type DrUiHelpMenuProps, type DrUiHelperButtonsProps, type DrUiIconJsx, type DrUiIconProps, type DrUiIconType, type DrUiImageToolbarProps, type DrUiInputProps, type DrUiKbdProps, type DrUiKeyboardShortcutsDialogProps, type DrUiLayoutProps, type DrUiMainMenuProps, type DrUiMenuActionCheckboxItemProps, type DrUiMenuActionItemProps, type DrUiMenuCheckboxItemProps, type DrUiMenuContextProviderProps, type DrUiMenuContextType, type DrUiMenuGroupProps, type DrUiMenuItemProps, type DrUiMenuSubmenuProps, type DrUiMenuToolItemProps, type DrUiOverrideHelpers, type DrUiOverrides, type DrUiPeopleMenuAvatarProps, type DrUiPeopleMenuFacePileProps, type DrUiPeopleMenuItemProps, type DrUiPopoverContentProps, type DrUiPopoverProps, type DrUiPopoverTriggerProps, type DrUiQuickActionsProps, type DrUiRichTextToolbarProps, type DrUiSelectContentProps, type DrUiSelectItemProps, type DrUiSelectProps, type DrUiSelectTriggerProps, type DrUiSelectValueProps, type DrUiSliderProps, type DrUiStylePanelProps, type DrUiToast, type DrUiToastAction, type DrUiToastsContextType, type DrUiToastsProviderProps, type DrUiToolItem, type DrUiToolbarButtonProps, type DrUiToolbarProps, type DrUiToolbarToggleGroupProps, type DrUiToolbarToggleItemProps, type DrUiToolsContextType, type DrUiToolsProviderProps, type DrUiTranslation, type DrUiTranslationContextType, type DrUiTranslationKey, type DrUiTranslationProviderProps, type DrUiVideoToolbarProps, type DrUiZoomMenuProps, DrV1AlignStyle, type DrV1ArrowBinding, type DrV1ArrowShape, type DrV1Asset, DrV1AssetType, type DrV1BaseAsset, type DrV1BaseBinding, type DrV1BaseShape, type DrV1Binding, type DrV1Bounds, DrV1ColorStyle, DrV1DashStyle, DrV1Decoration, type DrV1Document, type DrV1DrawShape, type DrV1EllipseShape, DrV1FontStyle, type DrV1GroupShape, type DrV1Handle, type DrV1ImageAsset, type DrV1ImageShape, type DrV1Page, type DrV1PageState, type DrV1RectangleShape, type DrV1Shape, type DrV1ShapeStyles, DrV1ShapeType, DrV1SizeStyle, type DrV1StickyShape, type DrV1TextShape, type DrV1TriangleShape, type DrV1VideoAsset, type DrV1VideoShape, type DrZoomBrushOverlay, Draw, type DrawBaseProps, type DrawFile, type DrawFileParseError, DrawImage, type DrawImageProps, type DrawPathBuilderDOpts, type DrawPathBuilderOpts, type DrawProps, type DrawShapeOptions, DrawShapeTool, DrawShapeUtil, type DrawShapeUtilDisplayValues, DrawToolbarItem, DrawUi, DrawUiA11yProvider, DrawUiButton, DrawUiButtonCheck, DrawUiButtonIcon, DrawUiButtonLabel, DrawUiColumn, DrawUiComponentsProvider, DrawUiContextProvider, DrawUiContextualToolbar, DrawUiDialogBody, DrawUiDialogCloseButton, DrawUiDialogFooter, DrawUiDialogHeader, DrawUiDialogTitle, DrawUiDialogsProvider, DrawUiDropdownMenuCheckboxItem, DrawUiDropdownMenuContent, DrawUiDropdownMenuGroup, DrawUiDropdownMenuIndicator, DrawUiDropdownMenuItem, DrawUiDropdownMenuRoot, DrawUiDropdownMenuSub, DrawUiDropdownMenuSubContent, DrawUiDropdownMenuSubTrigger, DrawUiDropdownMenuTrigger, DrawUiEventsProvider, DrawUiGrid, DrawUiIcon, DrawUiInFrontOfTheCanvas, DrawUiInput, DrawUiKbd, DrawUiMenuActionCheckboxItem, DrawUiMenuActionItem, DrawUiMenuCheckboxItem, DrawUiMenuContextProvider, DrawUiMenuGroup, DrawUiMenuItem, DrawUiMenuSubmenu, DrawUiMenuToolItem, type DrawUiOrientationContext, DrawUiOrientationProvider, type DrawUiOrientationProviderProps, DrawUiPopover, DrawUiPopoverContent, DrawUiPopoverTrigger, type DrawUiProps, DrawUiRow, DrawUiSelect, DrawUiSelectContent, DrawUiSelectItem, DrawUiSelectTrigger, DrawUiSelectValue, DrawUiSlider, DrawUiToastsProvider, DrawUiToolbar, DrawUiToolbarButton, DrawUiToolbarToggleGroup, DrawUiToolbarToggleItem, DrawUiTooltip, type DrawUiTooltipProps, DrawUiTooltipProvider, type DrawUiTooltipProviderProps, DrawUiTranslationProvider, DuplicateMenuItem, EditLinkMenuItem, EditMenuSubmenu, EditSubmenu, type ElbowArrowBox, type ElbowArrowBoxEdges, type ElbowArrowBoxes, type ElbowArrowEdge, type ElbowArrowInfo, type ElbowArrowInfoWithoutRoute, type ElbowArrowMidpointHandle, type ElbowArrowOptions, type ElbowArrowRange, type ElbowArrowRoute, type ElbowArrowSide, type ElbowArrowSideReason, type ElbowArrowTargetBox, EllipseToolbarItem, type EmbedDefinition, type EmbedShapeOptions, EmbedShapeUtil, type EmbedShapeUtilDisplayValues, EraserTool, EraserToolbarItem, type EventsProviderProps, ExampleDialog, type ExampleDialogProps, ExportAsMenuGroup, type ExportAsOptions, ExportFileContentSubMenu, ExtrasGroup, FeatureFlags, type FeatureFlagsProps, FitFrameToContentMenuItem, type FrameShapeOptions, FrameShapeTool, FrameShapeUtil, type FrameShapeUtilDisplayValues, FrameToolbarItem, type GeoShapeOptions, GeoShapeTool, GeoShapeUtil, type GeoShapeUtilDisplayValues, type GeoTypeDefinition, type GoogleMapsEmbedConfig, GroupMenuItem, GroupOrUngroupMenuItem, HandTool, HandToolbarItem, HeartToolbarItem, HexagonToolbarItem, type HighlightShapeOptions, HighlightShapeTool, HighlightShapeUtil, type HighlightShapeUtilDisplayValues, HighlightToolbarItem, ImageAssetUtil, type ImageShapeOptions, ImageShapeUtil, type ImageShapeUtilDisplayValues, InputModeMenu, KeyboardShiftEnterTweakExtension, KeyboardShortcutsMenuItem, LanguageMenu, LaserTool, LaserToolbarItem, type LineShapeOptions, LineShapeTool, LineShapeUtil, type LineShapeUtilDisplayValues, type LineToPathBuilderCommand, LineToolbarItem, LockGroup, type MiroPasteInfo, MiscMenuGroup, MobileStylePanel, MoveToPageMenu, type MoveToPathBuilderCommand, type NonePathBuilderOpts, type NoteShapeOptions, NoteShapeTool, NoteShapeUtil, type NoteShapeUtilDisplayValues, NoteToolbarItem, OfflineIndicator, type OnDragFromToolbarToCreateShapesOpts, OvalToolbarItem, OverflowingToolbar, type OverflowingToolbarProps, PORTRAIT_BREAKPOINT, PageItemInput, type PageItemInputProps, PageItemSubmenu, type PageItemSubmenuProps, PasteMenuItem, PathBuilder, type PathBuilderCommand, type PathBuilderCommandBase, type PathBuilderCommandInfo, type PathBuilderCommandOpts, PathBuilderGeometry2d, type PathBuilderLineOpts, type PathBuilderOpts, type PathBuilderToDOpts, DefaultPeopleMenu as PeopleMenu, type DefaultPeopleMenuProps as PeopleMenuProps, PlainTextArea, PlainTextLabel, type PlainTextLabelProps, PreferencesGroup, PrintItem, RTL_LANGUAGES, RectangleToolbarItem, RemoveFrameMenuItem, ReorderMenuItems, ReorderMenuSubmenu, RhombusToolbarItem, RichTextArea, RichTextLabel, type RichTextLabelProps, RichTextSVG, type RichTextSVGProps, RotateCWMenuItem, STROKE_SIZES, ScribbleOverlayUtil, SelectAllMenuItem, SelectTool, SelectToolbarItem, SelectionForegroundOverlayUtil, ShapeHandleOverlayUtil, ShapeIndicatorOverlayUtil, type ShapeOptionsWithDisplayValues, SnapIndicatorOverlayUtil, type SolidPathBuilderOpts, Spinner, StackMenuItems, StarToolbarItem, type StrokeOptions, type StrokePoint, StylePanelArrowKindPicker, StylePanelArrowheadPicker, StylePanelButtonPicker, StylePanelButtonPickerInline, type StylePanelButtonPickerProps, StylePanelColorPicker, type StylePanelContext, StylePanelContextProvider, type StylePanelContextProviderProps, StylePanelDashPicker, StylePanelDoubleDropdownPicker, StylePanelDoubleDropdownPickerInline, type StylePanelDoubleDropdownPickerProps, StylePanelDropdownPicker, StylePanelDropdownPickerInline, type StylePanelDropdownPickerProps, StylePanelFillPicker, StylePanelFontPicker, StylePanelGeoShapePicker, StylePanelLabelAlignPicker, StylePanelOpacityPicker, StylePanelSection, type StylePanelSectionProps, StylePanelSizePicker, StylePanelSplinePicker, StylePanelSubheading, type StylePanelSubheadingProps, StylePanelTextAlignPicker, type StyleValuesForUi, TaskItem, type TaskItemOptions, TaskList, type TaskListOptions, type TextAreaProps, type TextShapeOptions, TextShapeTool, TextShapeUtil, type TextShapeUtilDisplayValues, TextToolbarItem, ToggleAutoSizeMenuItem, ToggleDebugModeItem, ToggleDynamicSizeModeItem, ToggleEdgeScrollingItem, ToggleEnhancedA11yModeItem, ToggleFocusModeItem, ToggleGridItem, ToggleInvertZoomItem, ToggleKeyboardShortcutsItem, ToggleLockMenuItem, TogglePasteAtCursorItem, ToggleReduceMotionItem, ToggleSnapModeItem, ToggleToolLockItem, ToggleToolLockedButton, type ToggleToolLockedButtonProps, ToggleTransparentBgMenuItem, ToggleWrapModeItem, ToolbarItem, type ToolbarItemProps, TrapezoidToolbarItem, TriangleToolbarItem, UndoRedoGroup, UngroupMenuItem, UnlockAllMenuItem, type UpdateArrowTargetStateOpts, type UseImageOrVideoAssetOptions, VideoAssetUtil, type VideoShapeOptions, VideoShapeUtil, type VideoShapeUtilDisplayValues, ViewSubmenu, WrapSelectionExtension, type WrapSelectionOptions, XBoxToolbarItem, ZoomBrushOverlayUtil, ZoomOrRotateMenuItem, ZoomTo100MenuItem, ZoomToFitMenuItem, ZoomToSelectionMenuItem, ZoomTool, allDefaultFontFaces, buildFromV1Document, centerSelectionAroundPoint, clearArrowTargetState, containBoxSize, copyAs, createBookmarkFromUrl, createEmptyBookmarkShape, createShapesForAssets, decodeMiroClipboardHtml, defaultAddFontsFromNode, defaultAssetUtils, defaultBindingUtils, defaultEditorAssetUrls, defaultGeoTypeDefinitions, defaultHandleExternalDrawContent, defaultHandleExternalEmbedContent, defaultHandleExternalExcalidrawContent, defaultHandleExternalFileAsset, defaultHandleExternalFileContent, defaultHandleExternalFileReplaceContent, defaultHandleExternalMiroContent, defaultHandleExternalSvgTextContent, defaultHandleExternalTextContent, defaultHandleExternalUrlAsset, defaultHandleExternalUrlContent, defaultOverlayUtils, defaultShapeTools, defaultShapeUtils, defaultTools, defaultWrappingPairs, downloadFile, downsizeImage, embedShapePermissionDefaults, exportAs, extractMiroDataPayload, fitFrameToContent, getArrowBindings, getArrowInfo, getArrowTargetState, getArrowTerminalsInArrowSpace, getAssetInfo, getCollaboratorCursorScale, getColorStyleItems, getCropBox, getDefaultCrop, getDisplayValues, getEmbedInfo, getFontFamily, getFontStyleItems, getGeoTypeDefinition, getHitShapeOnCanvasPointerDown, getPointsFromDrawSegment, getPointsFromDrawSegments, getStroke, getStrokeOutlinePoints, getStrokePoints, getSvgPathFromStrokePoints, getTipTapDefaultExtensions, getUncroppedSize, handleNativeOrMenuCopy, hideAllTooltips, iconTypes, mergeCollaboratorCursorLayout, notifyIfFileNotAllowed, onDragFromToolbarToCreateShape, parseAndLoadDocument, parseDrawJsonFile, preloadFont, putExcalidrawContent, putMiroContent, registerDefaultExternalContentHandlers, registerDefaultSideEffects, removeFrame, renderHtmlFromRichText, renderHtmlFromRichTextForMeasurement, renderHtmlFromRichTextWithExtensions, renderPlaintextFromRichText, renderRichTextFromHTML, sanitizeSvg, serializeDrawJson, serializeDrawJsonBlob, setDefaultEditorAssetUrls, setDefaultUiAssetUrls, startEditingShapeWithRichText, summarizeMiroClipboard, tipTapDefaultExtensions, truncateStringWithEllipsis, unknownEmbedShapePermissionOverrides, unwrapLabel, updateArrowTargetState, useA11y, useActions, useAssetUrls, useBreakpoint, useCanApplySelectionAction, useCanRedo, useCanUndo, useCollaborationStatus, useCopyAs, useCurrentTranslation, useDefaultHelpers, useDialogs, useDirection, useDrawUiComponents, useDrawUiOrientation, useEditablePlainText, useEditableRichText, useExportAs, useImageOrVideoAsset, useIsToolSelected, useKeyboardShortcuts, useLocalStorageState, useMaybeCurrentTranslation, useMenuClipboardEvents, useMenuIsOpen, useNativeClipboardEvents, usePrefersReducedMotion, useReadonly, useRelevantStyles, useSelectedShapesAnnouncer, useShowCollaborationUi, useStylePanelContext, useToasts, useTools, useTranslation, useUiEvents, useUnlockedSelectedShapesCount };
|
|
6363
|
+
export { type A11yPriority, type A11yProviderProps, type ASPECT_RATIO_OPTION, ASPECT_RATIO_OPTIONS, ASPECT_RATIO_TO_VALUE, AccessibilityMenu, type ActionsProviderProps, type AlertSeverity, AlignMenuItems, ArrangeMenuSubmenu, ArrowBindingHintOverlayUtil, ArrowBindingUtil, ArrowDownToolbarItem, ArrowHintOverlayUtil, ArrowLeftToolbarItem, ArrowRightToolbarItem, type ArrowShapeOptions, ArrowShapeTool, ArrowShapeUtil, type ArrowShapeUtilDisplayValues, type ArrowTargetState, ArrowToolbarItem, ArrowUpToolbarItem, AssetToolbarItem, AssetUrlsProvider, type AssetUrlsProviderProps, type BasePathBuilderOpts, BookmarkAssetUtil, type BookmarkShapeOptions, BookmarkShapeUtil, type BookmarkShapeUtilDisplayValues, type BoxWidthHeight, BreakPointProvider, type BreakPointProviderProps, BrushOverlayUtil, type BrushOverlayUtilDisplayValues, type BrushOverlayUtilOptions, CenteredTopPanelContainer, type CenteredTopPanelContainerProps, CheckBoxToolbarItem, ClipboardMenuGroup, CloudToolbarItem, CollaboratorBrushOverlayUtil, CollaboratorCursorBadge, CollaboratorCursorOverlayUtil, CollaboratorCursorPointer, CollaboratorCursors, type CollaboratorCursorsProps, CollaboratorHintOverlayUtil, CollaboratorScribbleOverlayUtil, CollaboratorShapeIndicatorOverlayUtil, ColorSchemeMenu, CommentToolbarItem, DefaultContextMenu as ContextMenu, ConversionsMenuGroup, ConvertToBookmarkMenuItem, ConvertToEmbedMenuItem, CopyAsMenuGroup, type CopyAsOptions, CopyMenuItem, type CropBoxOptions, type CubicBezierToPathBuilderCommand, CursorChatItem, type CustomDebugFlags, type CustomEmbedDefinition, CutMenuItem, DEFAULT_COLLABORATOR_CURSOR_LAYOUT, DEFAULT_EMBED_DEFINITIONS, DEFAULT_MAX_ASSET_SIZE, DEFAULT_MAX_IMAGE_DIMENSION, DRAW_FILE_EXTENSION, type DashedPathBuilderOpts, DebugFlags, type DebugFlagsProps, DefaultA11yAnnouncer, DefaultActionsMenu, DefaultActionsMenuContent, DefaultCollaboratorCursor, DefaultContextMenu, DefaultContextMenuContent, DefaultDebugMenu, DefaultDebugMenuContent, DefaultDialogs, type DefaultEmbedConfig, type DefaultEmbedDefinitionType, DefaultFollowingIndicator, DefaultFontFaces, DefaultHelpMenu, DefaultHelpMenuContent, DefaultHelperButtons, DefaultHelperButtonsContent, DefaultImageToolbar, DefaultImageToolbarContent, type DefaultImageToolbarContentProps, DefaultKeyboardShortcutsDialog, DefaultKeyboardShortcutsDialogContent, DefaultMainMenu, DefaultMainMenuContent, DefaultMenuPanel, DefaultMinimap, DefaultNavigationPanel, DefaultNoteShapeAttribution, DefaultPageMenu, DefaultPeopleMenu, DefaultPeopleMenuAvatar, DefaultPeopleMenuContent, type DefaultPeopleMenuContentProps, DefaultPeopleMenuFacePile, DefaultPeopleMenuItem, type DefaultPeopleMenuProps, DefaultQuickActions, DefaultQuickActionsContent, DefaultRichTextToolbar, DefaultRichTextToolbarContent, type DefaultRichTextToolbarContentProps, DefaultSharePanel, DefaultStylePanel, DefaultStylePanelContent, DefaultToasts, DefaultToolbar, DefaultToolbarContent, type DefaultToolbarProps, DefaultUserPresenceEditor, DefaultVideoToolbar, DefaultVideoToolbarContent, type DefaultVideoToolbarContentProps, DefaultZoomMenu, DefaultZoomMenuContent, DeleteMenuItem, DiamondToolbarItem, DistributeMenuItems, type DrArcArrowInfo, type DrArcInfo, type DrArrowBindingHintOverlay, type DrArrowBindings, type DrArrowHintOverlay, type DrArrowInfo, type DrArrowPoint, type DrBrushOverlay, type DrCollaboratorBrushOverlay, type DrCollaboratorCursorOverlay, type DrCollaboratorCursorScaleOptions, type DrCollaboratorHintOverlay, type DrCollaboratorScribbleOverlay, type DrCollaboratorShapeIndicatorOverlay, type DrComponents, type DrCopyType, type DrDefaultExternalContentHandlerOpts, type DrDefaultFont, type DrDefaultFonts, type DrEditorAssetUrls, type DrElbowArrowInfo, type DrEmbedDefinition, type DrEmbedResult, type DrEmbedShapePermissions, type DrExternalContentProps, type DrNoteShapeAttributionComponent, type DrNoteShapeAttributionProps, type DrScribbleOverlay, type DrSelectionForegroundOverlay, type DrShapeHandleOverlay, type DrShapeIndicatorOverlay, type DrSnapIndicatorOverlay, type DrStraightArrowInfo, type DrTypeFace, type DrUiA11y, type DrUiA11yContextType, type DrUiActionItem, type DrUiActionsContextType, type DrUiActionsMenuProps, type DrUiAssetUrlOverrides, type DrUiAssetUrls, type DrUiButtonCheckProps, type DrUiButtonIconProps, type DrUiButtonLabelProps, type DrUiButtonProps, type DrUiComponents, type DrUiComponentsProviderProps, type DrUiContextMenuProps, type DrUiContextProviderProps, type DrUiContextualToolbarProps, type DrUiDebugMenuProps, type DrUiDialog, type DrUiDialogBodyProps, type DrUiDialogFooterProps, type DrUiDialogHeaderProps, type DrUiDialogProps, type DrUiDialogTitleProps, type DrUiDialogsContextType, type DrUiDialogsProviderProps, type DrUiDropdownMenuCheckboxItemProps, type DrUiDropdownMenuContentProps, type DrUiDropdownMenuGroupProps, type DrUiDropdownMenuItemProps, type DrUiDropdownMenuRootProps, type DrUiDropdownMenuSubContentProps, type DrUiDropdownMenuSubProps, type DrUiDropdownMenuSubTriggerProps, type DrUiDropdownMenuTriggerProps, type DrUiEventContextType, type DrUiEventData, type DrUiEventHandler, type DrUiEventMap, type DrUiEventSource, type DrUiHelpMenuProps, type DrUiHelperButtonsProps, type DrUiIconJsx, type DrUiIconProps, type DrUiIconType, type DrUiImageToolbarProps, type DrUiInputProps, type DrUiKbdProps, type DrUiKeyboardShortcutsDialogProps, type DrUiLayoutProps, type DrUiMainMenuProps, type DrUiMenuActionCheckboxItemProps, type DrUiMenuActionItemProps, type DrUiMenuCheckboxItemProps, type DrUiMenuContextProviderProps, type DrUiMenuContextType, type DrUiMenuGroupProps, type DrUiMenuItemProps, type DrUiMenuSubmenuProps, type DrUiMenuToolItemProps, type DrUiOverrideHelpers, type DrUiOverrides, type DrUiPeopleMenuAvatarProps, type DrUiPeopleMenuFacePileProps, type DrUiPeopleMenuItemProps, type DrUiPopoverContentProps, type DrUiPopoverProps, type DrUiPopoverTriggerProps, type DrUiQuickActionsProps, type DrUiRichTextToolbarProps, type DrUiSelectContentProps, type DrUiSelectItemProps, type DrUiSelectProps, type DrUiSelectTriggerProps, type DrUiSelectValueProps, type DrUiSliderProps, type DrUiStylePanelProps, type DrUiToast, type DrUiToastAction, type DrUiToastsContextType, type DrUiToastsProviderProps, type DrUiToolItem, type DrUiToolbarButtonProps, type DrUiToolbarProps, type DrUiToolbarToggleGroupProps, type DrUiToolbarToggleItemProps, type DrUiToolsContextType, type DrUiToolsProviderProps, type DrUiTranslation, type DrUiTranslationContextType, type DrUiTranslationKey, type DrUiTranslationProviderProps, type DrUiVideoToolbarProps, type DrUiZoomMenuProps, DrV1AlignStyle, type DrV1ArrowBinding, type DrV1ArrowShape, type DrV1Asset, DrV1AssetType, type DrV1BaseAsset, type DrV1BaseBinding, type DrV1BaseShape, type DrV1Binding, type DrV1Bounds, DrV1ColorStyle, DrV1DashStyle, DrV1Decoration, type DrV1Document, type DrV1DrawShape, type DrV1EllipseShape, DrV1FontStyle, type DrV1GroupShape, type DrV1Handle, type DrV1ImageAsset, type DrV1ImageShape, type DrV1Page, type DrV1PageState, type DrV1RectangleShape, type DrV1Shape, type DrV1ShapeStyles, DrV1ShapeType, DrV1SizeStyle, type DrV1StickyShape, type DrV1TextShape, type DrV1TriangleShape, type DrV1VideoAsset, type DrV1VideoShape, type DrZoomBrushOverlay, Draw, type DrawBaseProps, type DrawFile, type DrawFileParseError, DrawImage, type DrawImageProps, type DrawPathBuilderDOpts, type DrawPathBuilderOpts, type DrawProps, type DrawShapeOptions, DrawShapeTool, DrawShapeUtil, type DrawShapeUtilDisplayValues, type DrawShortcutController, DrawShortcutControllerProvider, DrawToolbarItem, DrawUi, DrawUiA11yProvider, DrawUiButton, DrawUiButtonCheck, DrawUiButtonIcon, DrawUiButtonLabel, DrawUiColumn, DrawUiComponentsProvider, DrawUiContextProvider, DrawUiContextualToolbar, DrawUiDialogBody, DrawUiDialogCloseButton, DrawUiDialogFooter, DrawUiDialogHeader, DrawUiDialogTitle, DrawUiDialogsProvider, DrawUiDropdownMenuCheckboxItem, DrawUiDropdownMenuContent, DrawUiDropdownMenuGroup, DrawUiDropdownMenuIndicator, DrawUiDropdownMenuItem, DrawUiDropdownMenuRoot, DrawUiDropdownMenuSub, DrawUiDropdownMenuSubContent, DrawUiDropdownMenuSubTrigger, DrawUiDropdownMenuTrigger, DrawUiEventsProvider, DrawUiGrid, DrawUiIcon, DrawUiInFrontOfTheCanvas, DrawUiInput, DrawUiKbd, DrawUiMenuActionCheckboxItem, DrawUiMenuActionItem, DrawUiMenuCheckboxItem, DrawUiMenuContextProvider, DrawUiMenuGroup, DrawUiMenuItem, DrawUiMenuSubmenu, DrawUiMenuToolItem, type DrawUiOrientationContext, DrawUiOrientationProvider, type DrawUiOrientationProviderProps, DrawUiPopover, DrawUiPopoverContent, DrawUiPopoverTrigger, type DrawUiProps, DrawUiRow, DrawUiSelect, DrawUiSelectContent, DrawUiSelectItem, DrawUiSelectTrigger, DrawUiSelectValue, DrawUiSlider, DrawUiToastsProvider, DrawUiToolbar, DrawUiToolbarButton, DrawUiToolbarToggleGroup, DrawUiToolbarToggleItem, DrawUiTooltip, type DrawUiTooltipProps, DrawUiTooltipProvider, type DrawUiTooltipProviderProps, DrawUiTranslationProvider, DuplicateMenuItem, EditLinkMenuItem, EditMenuSubmenu, EditSubmenu, type ElbowArrowBox, type ElbowArrowBoxEdges, type ElbowArrowBoxes, type ElbowArrowEdge, type ElbowArrowInfo, type ElbowArrowInfoWithoutRoute, type ElbowArrowMidpointHandle, type ElbowArrowOptions, type ElbowArrowRange, type ElbowArrowRoute, type ElbowArrowSide, type ElbowArrowSideReason, type ElbowArrowTargetBox, EllipseToolbarItem, type EmbedDefinition, type EmbedShapeOptions, EmbedShapeUtil, type EmbedShapeUtilDisplayValues, EraserTool, EraserToolbarItem, type EventsProviderProps, ExampleDialog, type ExampleDialogProps, ExportAsMenuGroup, type ExportAsOptions, ExportFileContentSubMenu, ExtrasGroup, FeatureFlags, type FeatureFlagsProps, FitFrameToContentMenuItem, type FrameShapeOptions, FrameShapeTool, FrameShapeUtil, type FrameShapeUtilDisplayValues, FrameToolbarItem, type GeoShapeOptions, GeoShapeTool, GeoShapeUtil, type GeoShapeUtilDisplayValues, type GeoTypeDefinition, type GoogleMapsEmbedConfig, GroupMenuItem, GroupOrUngroupMenuItem, HandTool, HandToolbarItem, HeartToolbarItem, HexagonToolbarItem, type HighlightShapeOptions, HighlightShapeTool, HighlightShapeUtil, type HighlightShapeUtilDisplayValues, HighlightToolbarItem, ImageAssetUtil, type ImageShapeOptions, ImageShapeUtil, type ImageShapeUtilDisplayValues, InputModeMenu, KeyboardShiftEnterTweakExtension, KeyboardShortcutsMenuItem, LanguageMenu, LaserTool, LaserToolbarItem, type LineShapeOptions, LineShapeTool, LineShapeUtil, type LineShapeUtilDisplayValues, type LineToPathBuilderCommand, LineToolbarItem, LockGroup, type MiroPasteInfo, MiscMenuGroup, MobileStylePanel, MoveToPageMenu, type MoveToPathBuilderCommand, type NonePathBuilderOpts, type NoteShapeOptions, NoteShapeTool, NoteShapeUtil, type NoteShapeUtilDisplayValues, NoteToolbarItem, OfflineIndicator, type OnDragFromToolbarToCreateShapesOpts, OvalToolbarItem, OverflowingToolbar, type OverflowingToolbarProps, PORTRAIT_BREAKPOINT, PageItemInput, type PageItemInputProps, PageItemSubmenu, type PageItemSubmenuProps, PasteMenuItem, PathBuilder, type PathBuilderCommand, type PathBuilderCommandBase, type PathBuilderCommandInfo, type PathBuilderCommandOpts, PathBuilderGeometry2d, type PathBuilderLineOpts, type PathBuilderOpts, type PathBuilderToDOpts, DefaultPeopleMenu as PeopleMenu, type DefaultPeopleMenuProps as PeopleMenuProps, PlainTextArea, PlainTextLabel, type PlainTextLabelProps, PreferencesGroup, PrintItem, RTL_LANGUAGES, RectangleToolbarItem, RemoveFrameMenuItem, ReorderMenuItems, ReorderMenuSubmenu, RhombusToolbarItem, RichTextArea, RichTextLabel, type RichTextLabelProps, RichTextSVG, type RichTextSVGProps, RotateCWMenuItem, STROKE_SIZES, ScribbleOverlayUtil, SelectAllMenuItem, SelectTool, SelectToolbarItem, SelectionForegroundOverlayUtil, ShapeHandleOverlayUtil, ShapeIndicatorOverlayUtil, type ShapeOptionsWithDisplayValues, SnapIndicatorOverlayUtil, type SolidPathBuilderOpts, Spinner, StackMenuItems, StarToolbarItem, type StrokeOptions, type StrokePoint, StylePanelArrowKindPicker, StylePanelArrowheadPicker, StylePanelButtonPicker, StylePanelButtonPickerInline, type StylePanelButtonPickerProps, StylePanelColorPicker, type StylePanelContext, StylePanelContextProvider, type StylePanelContextProviderProps, StylePanelDashPicker, StylePanelDoubleDropdownPicker, StylePanelDoubleDropdownPickerInline, type StylePanelDoubleDropdownPickerProps, StylePanelDropdownPicker, StylePanelDropdownPickerInline, type StylePanelDropdownPickerProps, StylePanelFillPicker, StylePanelFontPicker, StylePanelGeoShapePicker, StylePanelLabelAlignPicker, StylePanelOpacityPicker, StylePanelSection, type StylePanelSectionProps, StylePanelSizePicker, StylePanelSplinePicker, StylePanelSubheading, type StylePanelSubheadingProps, StylePanelTextAlignPicker, type StyleValuesForUi, TaskItem, type TaskItemOptions, TaskList, type TaskListOptions, type TextAreaProps, type TextShapeOptions, TextShapeTool, TextShapeUtil, type TextShapeUtilDisplayValues, TextToolbarItem, ToggleAutoSizeMenuItem, ToggleDebugModeItem, ToggleDynamicSizeModeItem, ToggleEdgeScrollingItem, ToggleEnhancedA11yModeItem, ToggleFocusModeItem, ToggleGridItem, ToggleInvertZoomItem, ToggleKeyboardShortcutsItem, ToggleLockMenuItem, TogglePasteAtCursorItem, ToggleReduceMotionItem, ToggleSnapModeItem, ToggleToolLockItem, ToggleToolLockedButton, type ToggleToolLockedButtonProps, ToggleTransparentBgMenuItem, ToggleWrapModeItem, ToolbarItem, type ToolbarItemProps, TrapezoidToolbarItem, TriangleToolbarItem, UndoRedoGroup, UngroupMenuItem, UnlockAllMenuItem, type UpdateArrowTargetStateOpts, type UseImageOrVideoAssetOptions, VideoAssetUtil, type VideoShapeOptions, VideoShapeUtil, type VideoShapeUtilDisplayValues, ViewSubmenu, WrapSelectionExtension, type WrapSelectionOptions, XBoxToolbarItem, ZoomBrushOverlayUtil, ZoomOrRotateMenuItem, ZoomTo100MenuItem, ZoomToFitMenuItem, ZoomToSelectionMenuItem, ZoomTool, allDefaultFontFaces, buildFromV1Document, centerSelectionAroundPoint, clearArrowTargetState, containBoxSize, copyAs, createBookmarkFromUrl, createEmptyBookmarkShape, createShapesForAssets, decodeMiroClipboardHtml, defaultAddFontsFromNode, defaultAssetUtils, defaultBindingUtils, defaultEditorAssetUrls, defaultGeoTypeDefinitions, defaultHandleExternalDrawContent, defaultHandleExternalEmbedContent, defaultHandleExternalExcalidrawContent, defaultHandleExternalFileAsset, defaultHandleExternalFileContent, defaultHandleExternalFileReplaceContent, defaultHandleExternalMiroContent, defaultHandleExternalSvgTextContent, defaultHandleExternalTextContent, defaultHandleExternalUrlAsset, defaultHandleExternalUrlContent, defaultOverlayUtils, defaultShapeTools, defaultShapeUtils, defaultTools, defaultWrappingPairs, downloadFile, downsizeImage, embedShapePermissionDefaults, exportAs, extractMiroDataPayload, fitFrameToContent, getArrowBindings, getArrowInfo, getArrowTargetState, getArrowTerminalsInArrowSpace, getAssetInfo, getCollaboratorCursorScale, getColorStyleItems, getCropBox, getDefaultCrop, getDisplayValues, getEmbedInfo, getFontFamily, getFontStyleItems, getGeoTypeDefinition, getHitShapeOnCanvasPointerDown, getPointsFromDrawSegment, getPointsFromDrawSegments, getStroke, getStrokeOutlinePoints, getStrokePoints, getSvgPathFromStrokePoints, getTipTapDefaultExtensions, getUncroppedSize, handleNativeOrMenuCopy, hideAllTooltips, iconTypes, mergeCollaboratorCursorLayout, notifyIfFileNotAllowed, onDragFromToolbarToCreateShape, parseAndLoadDocument, parseDrawJsonFile, preloadFont, putExcalidrawContent, putMiroContent, registerDefaultExternalContentHandlers, registerDefaultSideEffects, removeFrame, renderHtmlFromRichText, renderHtmlFromRichTextForMeasurement, renderHtmlFromRichTextWithExtensions, renderPlaintextFromRichText, renderRichTextFromHTML, sanitizeSvg, serializeDrawJson, serializeDrawJsonBlob, setDefaultEditorAssetUrls, setDefaultUiAssetUrls, startEditingShapeWithRichText, summarizeMiroClipboard, tipTapDefaultExtensions, truncateStringWithEllipsis, unknownEmbedShapePermissionOverrides, unwrapLabel, updateArrowTargetState, useA11y, useActions, useAssetUrls, useBreakpoint, useCanApplySelectionAction, useCanRedo, useCanUndo, useCollaborationStatus, useCopyAs, useCurrentTranslation, useDefaultHelpers, useDialogs, useDirection, useDrawShortcutController, useDrawUiComponents, useDrawUiOrientation, useEditablePlainText, useEditableRichText, useExportAs, useImageOrVideoAsset, useIsToolSelected, useKeyboardShortcuts, useLocalStorageState, useMaybeCurrentTranslation, useMenuClipboardEvents, useMenuIsOpen, useNativeClipboardEvents, usePrefersReducedMotion, useReadonly, useRelevantStyles, useSelectedShapesAnnouncer, useShowCollaborationUi, useStylePanelContext, useToasts, useTools, useTranslation, useUiEvents, useUnlockedSelectedShapesCount };
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { objectMapValues, WeakCache, useMaybeEditor, uniqueId, useValue, assert,
|
|
|
2
2
|
export * from '@ibodr/editor';
|
|
3
3
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import * as React4 from 'react';
|
|
5
|
-
import React4__default, { createContext, forwardRef, useRef, useContext, useEffect, memo, cloneElement, useLayoutEffect, useState, useCallback, useMemo } from 'react';
|
|
5
|
+
import React4__default, { createContext, forwardRef, useRef, useContext, useEffect, memo, cloneElement, useLayoutEffect, useState, useCallback, useMemo, createElement } from 'react';
|
|
6
6
|
import { Extension, getMarkRange, extensions, getHTMLFromFragment, getText, getSchema, getTextSerializersFromSchema, generateJSON } from '@tiptap/core';
|
|
7
7
|
export { Extension, Mark, Node, getSchema, mergeAttributes } from '@tiptap/core';
|
|
8
8
|
import { Code } from '@tiptap/extension-code';
|
|
@@ -16237,6 +16237,18 @@ function FrameToolbarItem() {
|
|
|
16237
16237
|
function LaserToolbarItem() {
|
|
16238
16238
|
return /* @__PURE__ */ jsx(ToolbarItem, { tool: "laser" });
|
|
16239
16239
|
}
|
|
16240
|
+
var DrawShortcutControllerContext = createContext(null);
|
|
16241
|
+
function DrawShortcutControllerProvider({
|
|
16242
|
+
controller,
|
|
16243
|
+
children
|
|
16244
|
+
}) {
|
|
16245
|
+
return createElement(DrawShortcutControllerContext.Provider, { value: controller }, children);
|
|
16246
|
+
}
|
|
16247
|
+
function useDrawShortcutController() {
|
|
16248
|
+
return useContext(DrawShortcutControllerContext);
|
|
16249
|
+
}
|
|
16250
|
+
|
|
16251
|
+
// src/lib/ui/hooks/useKeyboardShortcuts.ts
|
|
16240
16252
|
var SKIP_KBDS = [
|
|
16241
16253
|
// we set these in useNativeClipboardEvents instead
|
|
16242
16254
|
"copy",
|
|
@@ -16251,6 +16263,7 @@ function useKeyboardShortcuts() {
|
|
|
16251
16263
|
const actions = useActions();
|
|
16252
16264
|
const tools = useTools();
|
|
16253
16265
|
const commentingEnabled = useCommentingEnabled();
|
|
16266
|
+
const shortcutController = useDrawShortcutController();
|
|
16254
16267
|
const isFocused = useValue("is focused", () => editor.getInstanceState().isFocused, [editor]);
|
|
16255
16268
|
useEffect(() => {
|
|
16256
16269
|
if (!isFocused) return;
|
|
@@ -16264,6 +16277,7 @@ function useKeyboardShortcuts() {
|
|
|
16264
16277
|
if (!action.kbd) continue;
|
|
16265
16278
|
if (isReadonlyMode && !action.readonlyOk) continue;
|
|
16266
16279
|
if (SKIP_KBDS.includes(action.id)) continue;
|
|
16280
|
+
if (shortcutController?.owns(action.id)) continue;
|
|
16267
16281
|
register(getHotkeysStringFromKbd(action.kbd), (event) => {
|
|
16268
16282
|
if (areShortcutsDisabled2(editor) && !action.isRequiredA11yAction) return;
|
|
16269
16283
|
preventDefault(event);
|
|
@@ -16275,6 +16289,7 @@ function useKeyboardShortcuts() {
|
|
|
16275
16289
|
continue;
|
|
16276
16290
|
}
|
|
16277
16291
|
if (SKIP_KBDS.includes(tool.id)) continue;
|
|
16292
|
+
if (shortcutController?.owns(tool.id)) continue;
|
|
16278
16293
|
if (tool.id === "comment" && !commentingEnabled) continue;
|
|
16279
16294
|
register(getHotkeysStringFromKbd(tool.kbd), (event) => {
|
|
16280
16295
|
if (areShortcutsDisabled2(editor)) return;
|
|
@@ -16341,7 +16356,7 @@ function useKeyboardShortcuts() {
|
|
|
16341
16356
|
body.removeEventListener("keydown", handleKeyDown);
|
|
16342
16357
|
body.removeEventListener("keyup", handleKeyUp);
|
|
16343
16358
|
};
|
|
16344
|
-
}, [actions, tools, isReadonlyMode, editor, isFocused, commentingEnabled]);
|
|
16359
|
+
}, [actions, tools, isReadonlyMode, editor, isFocused, commentingEnabled, shortcutController]);
|
|
16345
16360
|
}
|
|
16346
16361
|
function dispatchCommaPointerEvent(editor, e, name) {
|
|
16347
16362
|
const { x, y, z } = editor.inputs.getCurrentPagePoint();
|
|
@@ -38218,17 +38233,18 @@ var DrawUiContextProvider = track(function DrawUiContextProvider2({
|
|
|
38218
38233
|
onUiEvent,
|
|
38219
38234
|
forceMobile,
|
|
38220
38235
|
mediaMimeTypes,
|
|
38236
|
+
shortcutController = null,
|
|
38221
38237
|
children
|
|
38222
38238
|
}) {
|
|
38223
38239
|
const editor = useMaybeEditor();
|
|
38224
|
-
return /* @__PURE__ */ jsx(MimeTypeContext.Provider, { value: mediaMimeTypes, children: /* @__PURE__ */ jsx(AssetUrlsProvider, { assetUrls: useDefaultUiAssetUrlsWithOverrides(assetUrls), children: /* @__PURE__ */ jsx(
|
|
38240
|
+
return /* @__PURE__ */ jsx(DrawShortcutControllerProvider, { controller: shortcutController, children: /* @__PURE__ */ jsx(MimeTypeContext.Provider, { value: mediaMimeTypes, children: /* @__PURE__ */ jsx(AssetUrlsProvider, { assetUrls: useDefaultUiAssetUrlsWithOverrides(assetUrls), children: /* @__PURE__ */ jsx(
|
|
38225
38241
|
DrawUiTranslationProvider,
|
|
38226
38242
|
{
|
|
38227
38243
|
overrides: useMergedTranslationOverrides(overrides),
|
|
38228
38244
|
locale: editor?.user.getLocale() ?? defaultUserPreferences.locale,
|
|
38229
38245
|
children: /* @__PURE__ */ jsx(DrawUiTooltipProvider, { children: /* @__PURE__ */ jsx(DrawUiEventsProvider, { onEvent: onUiEvent, children: /* @__PURE__ */ jsx(DrawUiToastsProvider, { children: /* @__PURE__ */ jsx(DrawUiDialogsProvider, { context: "tla", children: /* @__PURE__ */ jsx(DrawUiA11yProvider, { children: /* @__PURE__ */ jsx(BreakPointProvider, { forceMobile, children: /* @__PURE__ */ jsx(DrawUiComponentsProvider, { overrides: components, children: /* @__PURE__ */ jsx(InternalProviders, { overrides, children }) }) }) }) }) }) }) })
|
|
38230
38246
|
}
|
|
38231
|
-
) }) });
|
|
38247
|
+
) }) }) });
|
|
38232
38248
|
});
|
|
38233
38249
|
function InternalProviders({
|
|
38234
38250
|
overrides,
|
|
@@ -40264,7 +40280,7 @@ init_sanitizeSvg();
|
|
|
40264
40280
|
// src/index.ts
|
|
40265
40281
|
registerDrawLibraryVersion(
|
|
40266
40282
|
"@ibodr/draw",
|
|
40267
|
-
"0.
|
|
40283
|
+
"0.3.0",
|
|
40268
40284
|
"esm"
|
|
40269
40285
|
);
|
|
40270
40286
|
/*!
|
|
@@ -40295,6 +40311,6 @@ registerDrawLibraryVersion(
|
|
|
40295
40311
|
* Source: https://github.com/jaywcjlove/hotkeys-js
|
|
40296
40312
|
*/
|
|
40297
40313
|
|
|
40298
|
-
export { ASPECT_RATIO_OPTIONS, ASPECT_RATIO_TO_VALUE, AccessibilityMenu, AlignMenuItems, ArrangeMenuSubmenu, ArrowBindingHintOverlayUtil, ArrowBindingUtil, ArrowDownToolbarItem, ArrowHintOverlayUtil, ArrowLeftToolbarItem, ArrowRightToolbarItem, ArrowShapeTool, ArrowShapeUtil, ArrowToolbarItem, ArrowUpToolbarItem, AssetToolbarItem, AssetUrlsProvider, BookmarkAssetUtil, BookmarkShapeUtil, BreakPointProvider, BrushOverlayUtil, CenteredTopPanelContainer, CheckBoxToolbarItem, ClipboardMenuGroup, CloudToolbarItem, CollaboratorBrushOverlayUtil, CollaboratorCursorBadge, CollaboratorCursorOverlayUtil, CollaboratorCursorPointer, CollaboratorCursors, CollaboratorHintOverlayUtil, CollaboratorScribbleOverlayUtil, CollaboratorShapeIndicatorOverlayUtil, ColorSchemeMenu, CommentToolbarItem, DefaultContextMenu as ContextMenu, ConversionsMenuGroup, ConvertToBookmarkMenuItem, ConvertToEmbedMenuItem, CopyAsMenuGroup, CopyMenuItem, CursorChatItem, CutMenuItem, DEFAULT_COLLABORATOR_CURSOR_LAYOUT, DEFAULT_EMBED_DEFINITIONS, DEFAULT_MAX_ASSET_SIZE, DEFAULT_MAX_IMAGE_DIMENSION, DRAW_FILE_EXTENSION, DebugFlags, DefaultA11yAnnouncer, DefaultActionsMenu, DefaultActionsMenuContent, DefaultCollaboratorCursor, DefaultContextMenu, DefaultContextMenuContent, DefaultDebugMenu, DefaultDebugMenuContent, DefaultDialogs, DefaultFollowingIndicator, DefaultFontFaces, DefaultHelpMenu, DefaultHelpMenuContent, DefaultHelperButtons, DefaultHelperButtonsContent, DefaultImageToolbar, DefaultImageToolbarContent, DefaultKeyboardShortcutsDialog, DefaultKeyboardShortcutsDialogContent, DefaultMainMenu, DefaultMainMenuContent, DefaultMenuPanel, DefaultMinimap, DefaultNavigationPanel, DefaultNoteShapeAttribution, DefaultPageMenu, DefaultPeopleMenu, DefaultPeopleMenuAvatar, DefaultPeopleMenuContent, DefaultPeopleMenuFacePile, DefaultPeopleMenuItem, DefaultQuickActions, DefaultQuickActionsContent, DefaultRichTextToolbar, DefaultRichTextToolbarContent, DefaultSharePanel, DefaultStylePanel, DefaultStylePanelContent, DefaultToasts, DefaultToolbar, DefaultToolbarContent, DefaultUserPresenceEditor, DefaultVideoToolbar, DefaultVideoToolbarContent, DefaultZoomMenu, DefaultZoomMenuContent, DeleteMenuItem, DiamondToolbarItem, DistributeMenuItems, DrV1AlignStyle, DrV1AssetType, DrV1ColorStyle, DrV1DashStyle, DrV1Decoration, DrV1FontStyle, DrV1ShapeType, DrV1SizeStyle, Draw, DrawImage, DrawShapeTool, DrawShapeUtil, DrawToolbarItem, DrawUi, DrawUiA11yProvider, DrawUiButton, DrawUiButtonCheck, DrawUiButtonIcon, DrawUiButtonLabel, DrawUiColumn, DrawUiComponentsProvider, DrawUiContextProvider, DrawUiContextualToolbar, DrawUiDialogBody, DrawUiDialogCloseButton, DrawUiDialogFooter, DrawUiDialogHeader, DrawUiDialogTitle, DrawUiDialogsProvider, DrawUiDropdownMenuCheckboxItem, DrawUiDropdownMenuContent, DrawUiDropdownMenuGroup, DrawUiDropdownMenuIndicator, DrawUiDropdownMenuItem, DrawUiDropdownMenuRoot, DrawUiDropdownMenuSub, DrawUiDropdownMenuSubContent, DrawUiDropdownMenuSubTrigger, DrawUiDropdownMenuTrigger, DrawUiEventsProvider, DrawUiGrid, DrawUiIcon, DrawUiInFrontOfTheCanvas, DrawUiInput, DrawUiKbd, DrawUiMenuActionCheckboxItem, DrawUiMenuActionItem, DrawUiMenuCheckboxItem, DrawUiMenuContextProvider, DrawUiMenuGroup, DrawUiMenuItem, DrawUiMenuSubmenu, DrawUiMenuToolItem, DrawUiOrientationProvider, DrawUiPopover, DrawUiPopoverContent, DrawUiPopoverTrigger, DrawUiRow, DrawUiSelect, DrawUiSelectContent, DrawUiSelectItem, DrawUiSelectTrigger, DrawUiSelectValue, DrawUiSlider, DrawUiToastsProvider, DrawUiToolbar, DrawUiToolbarButton, DrawUiToolbarToggleGroup, DrawUiToolbarToggleItem, DrawUiTooltip, DrawUiTooltipProvider, DrawUiTranslationProvider, DuplicateMenuItem, EditLinkMenuItem, EditMenuSubmenu, EditSubmenu, EllipseToolbarItem, EmbedShapeUtil, EraserTool, EraserToolbarItem, ExampleDialog, ExportAsMenuGroup, ExportFileContentSubMenu, ExtrasGroup, FeatureFlags, FitFrameToContentMenuItem, FrameShapeTool, FrameShapeUtil, FrameToolbarItem, GeoShapeTool, GeoShapeUtil, GroupMenuItem, GroupOrUngroupMenuItem, HandTool, HandToolbarItem, HeartToolbarItem, HexagonToolbarItem, HighlightShapeTool, HighlightShapeUtil, HighlightToolbarItem, ImageAssetUtil, ImageShapeUtil, InputModeMenu, KeyboardShiftEnterTweakExtension, KeyboardShortcutsMenuItem, LanguageMenu, LaserTool, LaserToolbarItem, LineShapeTool, LineShapeUtil, LineToolbarItem, LockGroup, MiscMenuGroup, MobileStylePanel, MoveToPageMenu, NoteShapeTool, NoteShapeUtil, NoteToolbarItem, OfflineIndicator, OvalToolbarItem, OverflowingToolbar, PORTRAIT_BREAKPOINT, PageItemInput, PageItemSubmenu, PasteMenuItem, PathBuilder, PathBuilderGeometry2d, DefaultPeopleMenu as PeopleMenu, PlainTextArea, PlainTextLabel, PreferencesGroup, PrintItem, RTL_LANGUAGES, RectangleToolbarItem, RemoveFrameMenuItem, ReorderMenuItems, ReorderMenuSubmenu, RhombusToolbarItem, RichTextArea, RichTextLabel, RichTextSVG, RotateCWMenuItem, STROKE_SIZES, ScribbleOverlayUtil, SelectAllMenuItem, SelectTool, SelectToolbarItem, SelectionForegroundOverlayUtil, ShapeHandleOverlayUtil, ShapeIndicatorOverlayUtil, SnapIndicatorOverlayUtil, Spinner, StackMenuItems, StarToolbarItem, StylePanelArrowKindPicker, StylePanelArrowheadPicker, StylePanelButtonPicker, StylePanelButtonPickerInline, StylePanelColorPicker, StylePanelContextProvider, StylePanelDashPicker, StylePanelDoubleDropdownPicker, StylePanelDoubleDropdownPickerInline, StylePanelDropdownPicker, StylePanelDropdownPickerInline, StylePanelFillPicker, StylePanelFontPicker, StylePanelGeoShapePicker, StylePanelLabelAlignPicker, StylePanelOpacityPicker, StylePanelSection, StylePanelSizePicker, StylePanelSplinePicker, StylePanelSubheading, StylePanelTextAlignPicker, TextShapeTool, TextShapeUtil, TextToolbarItem, ToggleAutoSizeMenuItem, ToggleDebugModeItem, ToggleDynamicSizeModeItem, ToggleEdgeScrollingItem, ToggleEnhancedA11yModeItem, ToggleFocusModeItem, ToggleGridItem, ToggleInvertZoomItem, ToggleKeyboardShortcutsItem, ToggleLockMenuItem, TogglePasteAtCursorItem, ToggleReduceMotionItem, ToggleSnapModeItem, ToggleToolLockItem, ToggleToolLockedButton, ToggleTransparentBgMenuItem, ToggleWrapModeItem, ToolbarItem, TrapezoidToolbarItem, TriangleToolbarItem, UndoRedoGroup, UngroupMenuItem, UnlockAllMenuItem, VideoAssetUtil, VideoShapeUtil, ViewSubmenu, WrapSelectionExtension, XBoxToolbarItem, ZoomBrushOverlayUtil, ZoomOrRotateMenuItem, ZoomTo100MenuItem, ZoomToFitMenuItem, ZoomToSelectionMenuItem, ZoomTool, allDefaultFontFaces, buildFromV1Document, centerSelectionAroundPoint, clearArrowTargetState, containBoxSize, copyAs, createBookmarkFromUrl, createEmptyBookmarkShape, createShapesForAssets, decodeMiroClipboardHtml, defaultAddFontsFromNode, defaultAssetUtils, defaultBindingUtils, defaultEditorAssetUrls, defaultGeoTypeDefinitions, defaultHandleExternalDrawContent, defaultHandleExternalEmbedContent, defaultHandleExternalExcalidrawContent, defaultHandleExternalFileAsset, defaultHandleExternalFileContent, defaultHandleExternalFileReplaceContent, defaultHandleExternalMiroContent, defaultHandleExternalSvgTextContent, defaultHandleExternalTextContent, defaultHandleExternalUrlAsset, defaultHandleExternalUrlContent, defaultOverlayUtils, defaultShapeTools, defaultShapeUtils, defaultTools, defaultWrappingPairs, downloadFile, downsizeImage, embedShapePermissionDefaults, exportAs, extractMiroDataPayload, fitFrameToContent, getArrowBindings, getArrowInfo, getArrowTargetState, getArrowTerminalsInArrowSpace, getAssetInfo, getCollaboratorCursorScale, getColorStyleItems, getCropBox, getDefaultCrop, getDisplayValues, getEmbedInfo, getFontFamily, getFontStyleItems, getGeoTypeDefinition, getHitShapeOnCanvasPointerDown, getPointsFromDrawSegment, getPointsFromDrawSegments, getStroke, getStrokeOutlinePoints, getStrokePoints, getSvgPathFromStrokePoints, getTipTapDefaultExtensions, getUncroppedSize, handleNativeOrMenuCopy, hideAllTooltips, iconTypes, mergeCollaboratorCursorLayout, notifyIfFileNotAllowed, onDragFromToolbarToCreateShape, parseAndLoadDocument, parseDrawJsonFile, preloadFont, putExcalidrawContent, putMiroContent, registerDefaultExternalContentHandlers, registerDefaultSideEffects, removeFrame, renderHtmlFromRichText, renderHtmlFromRichTextForMeasurement, renderHtmlFromRichTextWithExtensions, renderPlaintextFromRichText, renderRichTextFromHTML, sanitizeSvg, serializeDrawJson, serializeDrawJsonBlob, setDefaultEditorAssetUrls, setDefaultUiAssetUrls, startEditingShapeWithRichText, summarizeMiroClipboard, tipTapDefaultExtensions, truncateStringWithEllipsis, unknownEmbedShapePermissionOverrides, unwrapLabel, updateArrowTargetState, useA11y, useActions, useAssetUrls, useBreakpoint, useCanApplySelectionAction, useCanRedo, useCanUndo, useCollaborationStatus, useCopyAs, useCurrentTranslation, useDefaultHelpers, useDialogs, useDirection, useDrawUiComponents, useDrawUiOrientation, useEditablePlainText, useEditableRichText, useExportAs, useImageOrVideoAsset, useIsToolSelected, useKeyboardShortcuts, useLocalStorageState, useMaybeCurrentTranslation, useMenuClipboardEvents, useMenuIsOpen, useNativeClipboardEvents, usePrefersReducedMotion, useReadonly, useRelevantStyles, useSelectedShapesAnnouncer, useShowCollaborationUi, useStylePanelContext, useToasts, useTools, useTranslation, useUiEvents, useUnlockedSelectedShapesCount };
|
|
40314
|
+
export { ASPECT_RATIO_OPTIONS, ASPECT_RATIO_TO_VALUE, AccessibilityMenu, AlignMenuItems, ArrangeMenuSubmenu, ArrowBindingHintOverlayUtil, ArrowBindingUtil, ArrowDownToolbarItem, ArrowHintOverlayUtil, ArrowLeftToolbarItem, ArrowRightToolbarItem, ArrowShapeTool, ArrowShapeUtil, ArrowToolbarItem, ArrowUpToolbarItem, AssetToolbarItem, AssetUrlsProvider, BookmarkAssetUtil, BookmarkShapeUtil, BreakPointProvider, BrushOverlayUtil, CenteredTopPanelContainer, CheckBoxToolbarItem, ClipboardMenuGroup, CloudToolbarItem, CollaboratorBrushOverlayUtil, CollaboratorCursorBadge, CollaboratorCursorOverlayUtil, CollaboratorCursorPointer, CollaboratorCursors, CollaboratorHintOverlayUtil, CollaboratorScribbleOverlayUtil, CollaboratorShapeIndicatorOverlayUtil, ColorSchemeMenu, CommentToolbarItem, DefaultContextMenu as ContextMenu, ConversionsMenuGroup, ConvertToBookmarkMenuItem, ConvertToEmbedMenuItem, CopyAsMenuGroup, CopyMenuItem, CursorChatItem, CutMenuItem, DEFAULT_COLLABORATOR_CURSOR_LAYOUT, DEFAULT_EMBED_DEFINITIONS, DEFAULT_MAX_ASSET_SIZE, DEFAULT_MAX_IMAGE_DIMENSION, DRAW_FILE_EXTENSION, DebugFlags, DefaultA11yAnnouncer, DefaultActionsMenu, DefaultActionsMenuContent, DefaultCollaboratorCursor, DefaultContextMenu, DefaultContextMenuContent, DefaultDebugMenu, DefaultDebugMenuContent, DefaultDialogs, DefaultFollowingIndicator, DefaultFontFaces, DefaultHelpMenu, DefaultHelpMenuContent, DefaultHelperButtons, DefaultHelperButtonsContent, DefaultImageToolbar, DefaultImageToolbarContent, DefaultKeyboardShortcutsDialog, DefaultKeyboardShortcutsDialogContent, DefaultMainMenu, DefaultMainMenuContent, DefaultMenuPanel, DefaultMinimap, DefaultNavigationPanel, DefaultNoteShapeAttribution, DefaultPageMenu, DefaultPeopleMenu, DefaultPeopleMenuAvatar, DefaultPeopleMenuContent, DefaultPeopleMenuFacePile, DefaultPeopleMenuItem, DefaultQuickActions, DefaultQuickActionsContent, DefaultRichTextToolbar, DefaultRichTextToolbarContent, DefaultSharePanel, DefaultStylePanel, DefaultStylePanelContent, DefaultToasts, DefaultToolbar, DefaultToolbarContent, DefaultUserPresenceEditor, DefaultVideoToolbar, DefaultVideoToolbarContent, DefaultZoomMenu, DefaultZoomMenuContent, DeleteMenuItem, DiamondToolbarItem, DistributeMenuItems, DrV1AlignStyle, DrV1AssetType, DrV1ColorStyle, DrV1DashStyle, DrV1Decoration, DrV1FontStyle, DrV1ShapeType, DrV1SizeStyle, Draw, DrawImage, DrawShapeTool, DrawShapeUtil, DrawShortcutControllerProvider, DrawToolbarItem, DrawUi, DrawUiA11yProvider, DrawUiButton, DrawUiButtonCheck, DrawUiButtonIcon, DrawUiButtonLabel, DrawUiColumn, DrawUiComponentsProvider, DrawUiContextProvider, DrawUiContextualToolbar, DrawUiDialogBody, DrawUiDialogCloseButton, DrawUiDialogFooter, DrawUiDialogHeader, DrawUiDialogTitle, DrawUiDialogsProvider, DrawUiDropdownMenuCheckboxItem, DrawUiDropdownMenuContent, DrawUiDropdownMenuGroup, DrawUiDropdownMenuIndicator, DrawUiDropdownMenuItem, DrawUiDropdownMenuRoot, DrawUiDropdownMenuSub, DrawUiDropdownMenuSubContent, DrawUiDropdownMenuSubTrigger, DrawUiDropdownMenuTrigger, DrawUiEventsProvider, DrawUiGrid, DrawUiIcon, DrawUiInFrontOfTheCanvas, DrawUiInput, DrawUiKbd, DrawUiMenuActionCheckboxItem, DrawUiMenuActionItem, DrawUiMenuCheckboxItem, DrawUiMenuContextProvider, DrawUiMenuGroup, DrawUiMenuItem, DrawUiMenuSubmenu, DrawUiMenuToolItem, DrawUiOrientationProvider, DrawUiPopover, DrawUiPopoverContent, DrawUiPopoverTrigger, DrawUiRow, DrawUiSelect, DrawUiSelectContent, DrawUiSelectItem, DrawUiSelectTrigger, DrawUiSelectValue, DrawUiSlider, DrawUiToastsProvider, DrawUiToolbar, DrawUiToolbarButton, DrawUiToolbarToggleGroup, DrawUiToolbarToggleItem, DrawUiTooltip, DrawUiTooltipProvider, DrawUiTranslationProvider, DuplicateMenuItem, EditLinkMenuItem, EditMenuSubmenu, EditSubmenu, EllipseToolbarItem, EmbedShapeUtil, EraserTool, EraserToolbarItem, ExampleDialog, ExportAsMenuGroup, ExportFileContentSubMenu, ExtrasGroup, FeatureFlags, FitFrameToContentMenuItem, FrameShapeTool, FrameShapeUtil, FrameToolbarItem, GeoShapeTool, GeoShapeUtil, GroupMenuItem, GroupOrUngroupMenuItem, HandTool, HandToolbarItem, HeartToolbarItem, HexagonToolbarItem, HighlightShapeTool, HighlightShapeUtil, HighlightToolbarItem, ImageAssetUtil, ImageShapeUtil, InputModeMenu, KeyboardShiftEnterTweakExtension, KeyboardShortcutsMenuItem, LanguageMenu, LaserTool, LaserToolbarItem, LineShapeTool, LineShapeUtil, LineToolbarItem, LockGroup, MiscMenuGroup, MobileStylePanel, MoveToPageMenu, NoteShapeTool, NoteShapeUtil, NoteToolbarItem, OfflineIndicator, OvalToolbarItem, OverflowingToolbar, PORTRAIT_BREAKPOINT, PageItemInput, PageItemSubmenu, PasteMenuItem, PathBuilder, PathBuilderGeometry2d, DefaultPeopleMenu as PeopleMenu, PlainTextArea, PlainTextLabel, PreferencesGroup, PrintItem, RTL_LANGUAGES, RectangleToolbarItem, RemoveFrameMenuItem, ReorderMenuItems, ReorderMenuSubmenu, RhombusToolbarItem, RichTextArea, RichTextLabel, RichTextSVG, RotateCWMenuItem, STROKE_SIZES, ScribbleOverlayUtil, SelectAllMenuItem, SelectTool, SelectToolbarItem, SelectionForegroundOverlayUtil, ShapeHandleOverlayUtil, ShapeIndicatorOverlayUtil, SnapIndicatorOverlayUtil, Spinner, StackMenuItems, StarToolbarItem, StylePanelArrowKindPicker, StylePanelArrowheadPicker, StylePanelButtonPicker, StylePanelButtonPickerInline, StylePanelColorPicker, StylePanelContextProvider, StylePanelDashPicker, StylePanelDoubleDropdownPicker, StylePanelDoubleDropdownPickerInline, StylePanelDropdownPicker, StylePanelDropdownPickerInline, StylePanelFillPicker, StylePanelFontPicker, StylePanelGeoShapePicker, StylePanelLabelAlignPicker, StylePanelOpacityPicker, StylePanelSection, StylePanelSizePicker, StylePanelSplinePicker, StylePanelSubheading, StylePanelTextAlignPicker, TextShapeTool, TextShapeUtil, TextToolbarItem, ToggleAutoSizeMenuItem, ToggleDebugModeItem, ToggleDynamicSizeModeItem, ToggleEdgeScrollingItem, ToggleEnhancedA11yModeItem, ToggleFocusModeItem, ToggleGridItem, ToggleInvertZoomItem, ToggleKeyboardShortcutsItem, ToggleLockMenuItem, TogglePasteAtCursorItem, ToggleReduceMotionItem, ToggleSnapModeItem, ToggleToolLockItem, ToggleToolLockedButton, ToggleTransparentBgMenuItem, ToggleWrapModeItem, ToolbarItem, TrapezoidToolbarItem, TriangleToolbarItem, UndoRedoGroup, UngroupMenuItem, UnlockAllMenuItem, VideoAssetUtil, VideoShapeUtil, ViewSubmenu, WrapSelectionExtension, XBoxToolbarItem, ZoomBrushOverlayUtil, ZoomOrRotateMenuItem, ZoomTo100MenuItem, ZoomToFitMenuItem, ZoomToSelectionMenuItem, ZoomTool, allDefaultFontFaces, buildFromV1Document, centerSelectionAroundPoint, clearArrowTargetState, containBoxSize, copyAs, createBookmarkFromUrl, createEmptyBookmarkShape, createShapesForAssets, decodeMiroClipboardHtml, defaultAddFontsFromNode, defaultAssetUtils, defaultBindingUtils, defaultEditorAssetUrls, defaultGeoTypeDefinitions, defaultHandleExternalDrawContent, defaultHandleExternalEmbedContent, defaultHandleExternalExcalidrawContent, defaultHandleExternalFileAsset, defaultHandleExternalFileContent, defaultHandleExternalFileReplaceContent, defaultHandleExternalMiroContent, defaultHandleExternalSvgTextContent, defaultHandleExternalTextContent, defaultHandleExternalUrlAsset, defaultHandleExternalUrlContent, defaultOverlayUtils, defaultShapeTools, defaultShapeUtils, defaultTools, defaultWrappingPairs, downloadFile, downsizeImage, embedShapePermissionDefaults, exportAs, extractMiroDataPayload, fitFrameToContent, getArrowBindings, getArrowInfo, getArrowTargetState, getArrowTerminalsInArrowSpace, getAssetInfo, getCollaboratorCursorScale, getColorStyleItems, getCropBox, getDefaultCrop, getDisplayValues, getEmbedInfo, getFontFamily, getFontStyleItems, getGeoTypeDefinition, getHitShapeOnCanvasPointerDown, getPointsFromDrawSegment, getPointsFromDrawSegments, getStroke, getStrokeOutlinePoints, getStrokePoints, getSvgPathFromStrokePoints, getTipTapDefaultExtensions, getUncroppedSize, handleNativeOrMenuCopy, hideAllTooltips, iconTypes, mergeCollaboratorCursorLayout, notifyIfFileNotAllowed, onDragFromToolbarToCreateShape, parseAndLoadDocument, parseDrawJsonFile, preloadFont, putExcalidrawContent, putMiroContent, registerDefaultExternalContentHandlers, registerDefaultSideEffects, removeFrame, renderHtmlFromRichText, renderHtmlFromRichTextForMeasurement, renderHtmlFromRichTextWithExtensions, renderPlaintextFromRichText, renderRichTextFromHTML, sanitizeSvg, serializeDrawJson, serializeDrawJsonBlob, setDefaultEditorAssetUrls, setDefaultUiAssetUrls, startEditingShapeWithRichText, summarizeMiroClipboard, tipTapDefaultExtensions, truncateStringWithEllipsis, unknownEmbedShapePermissionOverrides, unwrapLabel, updateArrowTargetState, useA11y, useActions, useAssetUrls, useBreakpoint, useCanApplySelectionAction, useCanRedo, useCanUndo, useCollaborationStatus, useCopyAs, useCurrentTranslation, useDefaultHelpers, useDialogs, useDirection, useDrawShortcutController, useDrawUiComponents, useDrawUiOrientation, useEditablePlainText, useEditableRichText, useExportAs, useImageOrVideoAsset, useIsToolSelected, useKeyboardShortcuts, useLocalStorageState, useMaybeCurrentTranslation, useMenuClipboardEvents, useMenuIsOpen, useNativeClipboardEvents, usePrefersReducedMotion, useReadonly, useRelevantStyles, useSelectedShapesAnnouncer, useShowCollaborationUi, useStylePanelContext, useToasts, useTools, useTranslation, useUiEvents, useUnlockedSelectedShapesCount };
|
|
40299
40315
|
//# sourceMappingURL=index.mjs.map
|
|
40300
40316
|
//# sourceMappingURL=index.mjs.map
|