{ "version": 3, "sources": ["../src/index.ts"], "sourcesContent": ["/// \n\nimport * as Dialog from './lib/ui/components/primitives/Dialog'\nimport * as DropdownMenu from './lib/ui/components/primitives/DropdownMenu'\n\n// eslint-disable-next-line local/no-export-star\nexport * from '@tldraw/editor'\nexport { Tldraw } from './lib/Tldraw'\nexport { defaultShapeTools } from './lib/defaultShapeTools'\nexport { defaultShapeUtils } from './lib/defaultShapeUtils'\nexport { defaultTools } from './lib/defaultTools'\nexport { ArrowShapeTool } from './lib/shapes/arrow/ArrowShapeTool'\nexport { ArrowShapeUtil } from './lib/shapes/arrow/ArrowShapeUtil'\nexport { BookmarkShapeUtil } from './lib/shapes/bookmark/BookmarkShapeUtil'\nexport { DrawShapeTool } from './lib/shapes/draw/DrawShapeTool'\nexport { DrawShapeUtil } from './lib/shapes/draw/DrawShapeUtil'\nexport { EmbedShapeUtil } from './lib/shapes/embed/EmbedShapeUtil'\nexport { FrameShapeTool } from './lib/shapes/frame/FrameShapeTool'\nexport { FrameShapeUtil } from './lib/shapes/frame/FrameShapeUtil'\nexport { GeoShapeTool } from './lib/shapes/geo/GeoShapeTool'\nexport { GeoShapeUtil } from './lib/shapes/geo/GeoShapeUtil'\nexport { HighlightShapeTool } from './lib/shapes/highlight/HighlightShapeTool'\nexport { HighlightShapeUtil } from './lib/shapes/highlight/HighlightShapeUtil'\nexport { ImageShapeUtil } from './lib/shapes/image/ImageShapeUtil'\nexport { LineShapeTool } from './lib/shapes/line/LineShapeTool'\nexport { LineShapeUtil } from './lib/shapes/line/LineShapeUtil'\nexport { NoteShapeTool } from './lib/shapes/note/NoteShapeTool'\nexport { NoteShapeUtil } from './lib/shapes/note/NoteShapeUtil'\nexport { TextShapeTool } from './lib/shapes/text/TextShapeTool'\nexport { TextShapeUtil } from './lib/shapes/text/TextShapeUtil'\nexport { VideoShapeUtil } from './lib/shapes/video/VideoShapeUtil'\nexport { EraserTool } from './lib/tools/EraserTool/EraserTool'\nexport { HandTool } from './lib/tools/HandTool/HandTool'\nexport { LaserTool } from './lib/tools/LaserTool/LaserTool'\nexport { SelectTool } from './lib/tools/SelectTool/SelectTool'\nexport { ZoomTool } from './lib/tools/ZoomTool/ZoomTool'\n// UI\nexport { TldrawUi, type TldrawUiBaseProps, type TldrawUiProps } from './lib/ui/TldrawUi'\nexport {\n\tTldrawUiContextProvider,\n\ttype TldrawUiContextProviderProps,\n} from './lib/ui/TldrawUiContextProvider'\nexport { setDefaultUiAssetUrls } from './lib/ui/assetUrls'\nexport { ContextMenu, type TLUiContextMenuProps } from './lib/ui/components/ContextMenu'\nexport { OfflineIndicator } from './lib/ui/components/OfflineIndicator/OfflineIndicator'\nexport { Spinner } from './lib/ui/components/Spinner'\nexport { Button, type TLUiButtonProps } from './lib/ui/components/primitives/Button'\nexport { Icon, type TLUiIconProps } from './lib/ui/components/primitives/Icon'\nexport { Input, type TLUiInputProps } from './lib/ui/components/primitives/Input'\nexport {\n\tcompactMenuItems,\n\tfindMenuItem,\n\tmenuCustom,\n\tmenuGroup,\n\tmenuItem,\n\tmenuSubmenu,\n\ttype TLUiCustomMenuItem,\n\ttype TLUiMenuChild,\n\ttype TLUiMenuGroup,\n\ttype TLUiMenuItem,\n\ttype TLUiMenuSchema,\n\ttype TLUiSubMenu,\n} from './lib/ui/hooks/menuHelpers'\nexport {\n\tuseActions,\n\ttype TLUiActionItem,\n\ttype TLUiActionsContextType,\n} from './lib/ui/hooks/useActions'\nexport {\n\tuseActionsMenuSchema,\n\ttype TLUiActionsMenuSchemaContextType,\n} from './lib/ui/hooks/useActionsMenuSchema'\nexport { AssetUrlsProvider, useAssetUrls } from './lib/ui/hooks/useAssetUrls'\nexport { BreakPointProvider, useBreakpoint } from './lib/ui/hooks/useBreakpoint'\nexport { useCanRedo } from './lib/ui/hooks/useCanRedo'\nexport { useCanUndo } from './lib/ui/hooks/useCanUndo'\nexport { useMenuClipboardEvents, useNativeClipboardEvents } from './lib/ui/hooks/useClipboardEvents'\nexport {\n\tuseContextMenuSchema,\n\ttype TLUiContextTTLUiMenuSchemaContextType,\n} from './lib/ui/hooks/useContextMenuSchema'\nexport { useCopyAs } from './lib/ui/hooks/useCopyAs'\nexport {\n\tuseDialogs,\n\ttype TLUiDialog,\n\ttype TLUiDialogProps,\n\ttype TLUiDialogsContextType,\n} from './lib/ui/hooks/useDialogsProvider'\nexport {\n\tUiEventsProvider,\n\tuseUiEvents,\n\ttype EventsProviderProps,\n\ttype TLUiEventContextType,\n\ttype TLUiEventHandler,\n\ttype TLUiEventSource,\n} from './lib/ui/hooks/useEventsProvider'\nexport { useExportAs } from './lib/ui/hooks/useExportAs'\nexport {\n\tuseHelpMenuSchema,\n\ttype TLUiHelpMenuSchemaContextType,\n} from './lib/ui/hooks/useHelpMenuSchema'\nexport { useKeyboardShortcuts } from './lib/ui/hooks/useKeyboardShortcuts'\nexport {\n\tuseKeyboardShortcutsSchema,\n\ttype TLUiKeyboardShortcutsSchemaContextType,\n\ttype TLUiKeyboardShortcutsSchemaProviderProps,\n} from './lib/ui/hooks/useKeyboardShortcutsSchema'\nexport { useLocalStorageState } from './lib/ui/hooks/useLocalStorageState'\nexport { useMenuIsOpen } from './lib/ui/hooks/useMenuIsOpen'\nexport {\n\tuseMenuSchema,\n\ttype TLUiMenuSchemaContextType,\n\ttype TLUiMenuSchemaProviderProps,\n} from './lib/ui/hooks/useMenuSchema'\nexport { useReadonly } from './lib/ui/hooks/useReadonly'\nexport {\n\tuseToasts,\n\ttype TLUiToast,\n\ttype TLUiToastAction,\n\ttype TLUiToastsContextType,\n} from './lib/ui/hooks/useToastsProvider'\nexport {\n\ttoolbarItem,\n\tuseToolbarSchema,\n\ttype TLUiToolbarItem,\n\ttype TLUiToolbarSchemaContextType,\n} from './lib/ui/hooks/useToolbarSchema'\nexport {\n\tuseTools,\n\ttype TLUiToolItem,\n\ttype TLUiToolsContextType,\n\ttype TLUiToolsProviderProps,\n} from './lib/ui/hooks/useTools'\nexport { type TLUiTranslationKey } from './lib/ui/hooks/useTranslation/TLUiTranslationKey'\nexport { type TLUiTranslation } from './lib/ui/hooks/useTranslation/translations'\nexport {\n\tuseTranslation as useTranslation,\n\ttype TLUiTranslationContextType,\n} from './lib/ui/hooks/useTranslation/useTranslation'\nexport { type TLUiIconType } from './lib/ui/icon-types'\nexport { useDefaultHelpers, type TLUiOverrides } from './lib/ui/overrides'\nexport { setDefaultEditorAssetUrls } from './lib/utils/assetUrls'\nexport {\n\tDEFAULT_ACCEPTED_IMG_TYPE,\n\tDEFAULT_ACCEPTED_VID_TYPE,\n\tcontainBoxSize,\n\tgetResizedImageDataUrl,\n\tisGifAnimated,\n} from './lib/utils/assets'\nexport { buildFromV1Document, type LegacyTldrawDocument } from './lib/utils/buildFromV1Document'\nexport { getEmbedInfo } from './lib/utils/embeds'\nexport {\n\tTLDRAW_FILE_EXTENSION,\n\tparseAndLoadDocument,\n\tparseTldrawJsonFile,\n\tserializeTldrawJson,\n\tserializeTldrawJsonBlob,\n\ttype TldrawFile,\n} from './lib/utils/file'\nexport { truncateStringWithEllipsis } from './lib/utils/text'\nexport { Dialog, DropdownMenu }\n"], "mappings": "AAEA,YAAY,YAAY;AACxB,YAAY,kBAAkB;AAG9B,cAAc;AACd,SAAS,cAAc;AACvB,SAAS,yBAAyB;AAClC,SAAS,yBAAyB;AAClC,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAC9B,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,oBAAoB;AAC7B,SAAS,0BAA0B;AACnC,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAC9B,SAAS,qBAAqB;AAC9B,SAAS,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