tldraw 4.1.0-canary.e2133d922c9e → 4.1.0-canary.e653ec63c99b
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-cjs/index.d.ts +19 -0
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/lib/canvas/TldrawCropHandles.js +1 -1
- package/dist-cjs/lib/canvas/TldrawScribble.js +1 -1
- package/dist-cjs/lib/canvas/TldrawSelectionForeground.js +1 -1
- package/dist-cjs/lib/defaultEmbedDefinitions.js +24 -6
- package/dist-cjs/lib/defaultEmbedDefinitions.js.map +2 -2
- package/dist-cjs/lib/defaultExternalContentHandlers.js +1 -1
- package/dist-cjs/lib/defaultExternalContentHandlers.js.map +2 -2
- package/dist-cjs/lib/shapes/bookmark/BookmarkShapeUtil.js +1 -1
- package/dist-cjs/lib/shapes/frame/FrameShapeUtil.js +1 -1
- package/dist-cjs/lib/shapes/image/ImageShapeUtil.js +1 -1
- package/dist-cjs/lib/shapes/shared/HyperlinkButton.js +1 -1
- package/dist-cjs/lib/shapes/shared/PlainTextLabel.js +1 -1
- package/dist-cjs/lib/shapes/shared/RichTextLabel.js +1 -1
- package/dist-cjs/lib/shapes/shared/ShapeFill.js +1 -1
- package/dist-cjs/lib/shapes/text/PlainTextArea.js +1 -1
- package/dist-cjs/lib/shapes/text/RichTextArea.js +1 -1
- package/dist-cjs/lib/shapes/video/VideoShapeUtil.js +1 -1
- package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/Idle.js +1 -1
- package/dist-cjs/lib/tools/SelectTool/childStates/Crop/children/Idle.js.map +2 -2
- package/dist-cjs/lib/tools/SelectTool/childStates/Idle.js +1 -1
- package/dist-cjs/lib/tools/SelectTool/childStates/Idle.js.map +2 -2
- package/dist-cjs/lib/ui/TldrawUi.js +2 -2
- package/dist-cjs/lib/ui/components/DebugMenu/DefaultDebugMenuContent.js +1 -1
- package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialog.js +1 -1
- package/dist-cjs/lib/ui/components/Minimap/DefaultMinimap.js +1 -1
- package/dist-cjs/lib/ui/components/OfflineIndicator/OfflineIndicator.js +1 -1
- package/dist-cjs/lib/ui/components/SharePanel/UserPresenceColorPicker.js +1 -1
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanel.js +1 -1
- package/dist-cjs/lib/ui/components/StylePanel/DefaultStylePanelContent.js +1 -1
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelDoubleDropdownPicker.js +1 -1
- package/dist-cjs/lib/ui/components/StylePanel/StylePanelDropdownPicker.js +1 -1
- package/dist-cjs/lib/ui/components/Toolbar/DefaultToolbar.js +1 -1
- package/dist-cjs/lib/ui/components/Toolbar/OverflowingToolbar.js +1 -1
- package/dist-cjs/lib/ui/components/Toolbar/ToggleToolLockedButton.js +1 -1
- package/dist-cjs/lib/ui/components/primitives/Button/TldrawUiButton.js +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiContextualToolbar.js +1 -1
- package/dist-cjs/lib/ui/components/primitives/TldrawUiDialog.js +1 -1
- package/dist-cjs/lib/ui/components/primitives/TldrawUiDropdownMenu.js +1 -1
- package/dist-cjs/lib/ui/components/primitives/TldrawUiIcon.js +1 -1
- package/dist-cjs/lib/ui/components/primitives/TldrawUiInput.js +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiPopover.js +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiSlider.js +1 -1
- package/dist-cjs/lib/ui/components/primitives/TldrawUiToolbar.js +2 -2
- package/dist-cjs/lib/ui/components/primitives/TldrawUiTooltip.js +1 -1
- package/dist-cjs/lib/ui/components/primitives/layout.js +1 -1
- package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuGroup.js +1 -1
- package/dist-cjs/lib/ui/context/actions.js +1 -1
- package/dist-cjs/lib/ui/context/breakpoints.js +1 -1
- package/dist-cjs/lib/ui/context/events.js +1 -1
- package/dist-cjs/lib/ui/hooks/useClipboardEvents.js +1 -1
- package/dist-cjs/lib/ui/hooks/useKeyboardShortcuts.js +1 -1
- package/dist-cjs/lib/ui/hooks/useLocalStorageState.js +1 -1
- package/dist-cjs/lib/ui/hooks/useTools.js +1 -1
- package/dist-cjs/lib/ui/hooks/useTranslation/useTranslation.js +1 -1
- package/dist-cjs/lib/ui/version.js +3 -3
- package/dist-cjs/lib/ui/version.js.map +1 -1
- package/dist-cjs/lib/utils/text/richText.js +4 -4
- package/dist-esm/index.d.mts +19 -0
- package/dist-esm/index.mjs +1 -1
- package/dist-esm/lib/defaultEmbedDefinitions.mjs +24 -6
- package/dist-esm/lib/defaultEmbedDefinitions.mjs.map +2 -2
- package/dist-esm/lib/defaultExternalContentHandlers.mjs +1 -1
- package/dist-esm/lib/defaultExternalContentHandlers.mjs.map +2 -2
- package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/Idle.mjs +1 -1
- package/dist-esm/lib/tools/SelectTool/childStates/Crop/children/Idle.mjs.map +2 -2
- package/dist-esm/lib/tools/SelectTool/childStates/Idle.mjs +1 -1
- package/dist-esm/lib/tools/SelectTool/childStates/Idle.mjs.map +2 -2
- package/dist-esm/lib/ui/version.mjs +3 -3
- package/dist-esm/lib/ui/version.mjs.map +1 -1
- package/package.json +11 -11
- package/src/lib/defaultEmbedDefinitions.ts +19 -0
- package/src/lib/defaultExternalContentHandlers.ts +1 -1
- package/src/lib/shapes/text/TextShapeTool.test.ts +74 -0
- package/src/lib/tools/SelectTool/childStates/Crop/children/Idle.ts +1 -1
- package/src/lib/tools/SelectTool/childStates/Idle.ts +1 -1
- package/src/lib/ui/version.ts +3 -3
package/dist-cjs/lib/ui/components/KeyboardShortcutsDialog/DefaultKeyboardShortcutsDialog.js
CHANGED
|
@@ -32,7 +32,7 @@ __export(DefaultKeyboardShortcutsDialog_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(DefaultKeyboardShortcutsDialog_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_classnames = __toESM(require("classnames"));
|
|
35
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
36
36
|
var import_react = require("react");
|
|
37
37
|
var import_constants = require("../../constants");
|
|
38
38
|
var import_breakpoints = require("../../context/breakpoints");
|
|
@@ -33,7 +33,7 @@ __export(DefaultMinimap_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(DefaultMinimap_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
|
-
var React = __toESM(require("react"));
|
|
36
|
+
var React = __toESM(require("react"), 1);
|
|
37
37
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
38
38
|
var import_MinimapManager = require("./MinimapManager");
|
|
39
39
|
function DefaultMinimap() {
|
|
@@ -32,7 +32,7 @@ __export(OfflineIndicator_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(OfflineIndicator_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_classnames = __toESM(require("classnames"));
|
|
35
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
36
36
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
37
37
|
var import_TldrawUiIcon = require("../primitives/TldrawUiIcon");
|
|
38
38
|
function OfflineIndicator() {
|
|
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(UserPresenceColorPicker_exports);
|
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
36
|
var import_radix_ui = require("radix-ui");
|
|
37
|
-
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_react = __toESM(require("react"), 1);
|
|
38
38
|
var import_events = require("../../context/events");
|
|
39
39
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
40
40
|
var import_TldrawUiButton = require("../primitives/Button/TldrawUiButton");
|
|
@@ -33,7 +33,7 @@ __export(DefaultStylePanel_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(DefaultStylePanel_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
37
37
|
var import_react = require("react");
|
|
38
38
|
var import_useRelevantStyles = require("../../hooks/useRelevantStyles");
|
|
39
39
|
var import_DefaultStylePanelContent = require("./DefaultStylePanelContent");
|
|
@@ -46,7 +46,7 @@ __export(DefaultStylePanelContent_exports, {
|
|
|
46
46
|
module.exports = __toCommonJS(DefaultStylePanelContent_exports);
|
|
47
47
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
48
48
|
var import_editor = require("@tldraw/editor");
|
|
49
|
-
var import_react = __toESM(require("react"));
|
|
49
|
+
var import_react = __toESM(require("react"), 1);
|
|
50
50
|
var import_styles = require("../../../styles");
|
|
51
51
|
var import_events = require("../../context/events");
|
|
52
52
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
@@ -33,7 +33,7 @@ __export(StylePanelDoubleDropdownPicker_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(StylePanelDoubleDropdownPicker_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
|
-
var React = __toESM(require("react"));
|
|
36
|
+
var React = __toESM(require("react"), 1);
|
|
37
37
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
38
38
|
var import_TldrawUiButtonIcon = require("../primitives/Button/TldrawUiButtonIcon");
|
|
39
39
|
var import_TldrawUiPopover = require("../primitives/TldrawUiPopover");
|
|
@@ -33,7 +33,7 @@ __export(StylePanelDropdownPicker_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(StylePanelDropdownPicker_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
|
-
var React = __toESM(require("react"));
|
|
36
|
+
var React = __toESM(require("react"), 1);
|
|
37
37
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
38
38
|
var import_TldrawUiButtonIcon = require("../primitives/Button/TldrawUiButtonIcon");
|
|
39
39
|
var import_TldrawUiButtonLabel = require("../primitives/Button/TldrawUiButtonLabel");
|
|
@@ -33,7 +33,7 @@ __export(DefaultToolbar_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(DefaultToolbar_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
37
37
|
var import_react = require("react");
|
|
38
38
|
var import_constants = require("../../constants");
|
|
39
39
|
var import_breakpoints = require("../../context/breakpoints");
|
|
@@ -35,7 +35,7 @@ __export(OverflowingToolbar_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(OverflowingToolbar_exports);
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
37
|
var import_editor = require("@tldraw/editor");
|
|
38
|
-
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
39
39
|
var import_react = require("react");
|
|
40
40
|
var import_constants = require("../../constants");
|
|
41
41
|
var import_breakpoints = require("../../context/breakpoints");
|
|
@@ -33,7 +33,7 @@ __export(ToggleToolLockedButton_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(ToggleToolLockedButton_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
37
37
|
var import_constants = require("../../constants");
|
|
38
38
|
var import_actions = require("../../context/actions");
|
|
39
39
|
var import_breakpoints = require("../../context/breakpoints");
|
|
@@ -32,8 +32,8 @@ __export(TldrawUiButton_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(TldrawUiButton_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_classnames = __toESM(require("classnames"));
|
|
36
|
-
var React = __toESM(require("react"));
|
|
35
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
36
|
+
var React = __toESM(require("react"), 1);
|
|
37
37
|
const namedClassNamesSoThatICanGrepForThis = {
|
|
38
38
|
normal: "tlui-button__normal",
|
|
39
39
|
primary: "tlui-button__primary",
|
|
@@ -36,7 +36,7 @@ __export(TldrawUiContextualToolbar_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(TldrawUiContextualToolbar_exports);
|
|
37
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
38
|
var import_editor = require("@tldraw/editor");
|
|
39
|
-
var import_classnames = __toESM(require("classnames"));
|
|
39
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
40
40
|
var import_react = require("react");
|
|
41
41
|
var import_react_dom = require("react-dom");
|
|
42
42
|
var import_TldrawUiToolbar = require("./TldrawUiToolbar");
|
|
@@ -36,7 +36,7 @@ __export(TldrawUiDialog_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(TldrawUiDialog_exports);
|
|
38
38
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
|
-
var import_classnames = __toESM(require("classnames"));
|
|
39
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
40
40
|
var import_radix_ui = require("radix-ui");
|
|
41
41
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
42
42
|
var import_TldrawUiButton = require("./Button/TldrawUiButton");
|
|
@@ -42,7 +42,7 @@ __export(TldrawUiDropdownMenu_exports, {
|
|
|
42
42
|
module.exports = __toCommonJS(TldrawUiDropdownMenu_exports);
|
|
43
43
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
44
|
var import_editor = require("@tldraw/editor");
|
|
45
|
-
var import_classnames = __toESM(require("classnames"));
|
|
45
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
46
46
|
var import_radix_ui = require("radix-ui");
|
|
47
47
|
var import_useMenuIsOpen = require("../../hooks/useMenuIsOpen");
|
|
48
48
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
@@ -32,7 +32,7 @@ __export(TldrawUiIcon_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(TldrawUiIcon_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_classnames = __toESM(require("classnames"));
|
|
35
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
36
36
|
var import_react = require("react");
|
|
37
37
|
var import_asset_urls = require("../../context/asset-urls");
|
|
38
38
|
const TldrawUiIcon = (0, import_react.memo)(function TldrawUiIcon2({
|
|
@@ -33,8 +33,8 @@ __export(TldrawUiInput_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(TldrawUiInput_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
37
|
-
var React = __toESM(require("react"));
|
|
36
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
37
|
+
var React = __toESM(require("react"), 1);
|
|
38
38
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
39
39
|
var import_TldrawUiIcon = require("./TldrawUiIcon");
|
|
40
40
|
const TldrawUiInput = React.forwardRef(
|
|
@@ -35,9 +35,9 @@ __export(TldrawUiPopover_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(TldrawUiPopover_exports);
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
37
|
var import_editor = require("@tldraw/editor");
|
|
38
|
-
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
39
39
|
var import_radix_ui = require("radix-ui");
|
|
40
|
-
var import_react = __toESM(require("react"));
|
|
40
|
+
var import_react = __toESM(require("react"), 1);
|
|
41
41
|
var import_useMenuIsOpen = require("../../hooks/useMenuIsOpen");
|
|
42
42
|
function TldrawUiPopover({ id, children, onOpenChange, open, className }) {
|
|
43
43
|
const [isOpen, handleOpenChange] = (0, import_useMenuIsOpen.useMenuIsOpen)(id, onOpenChange);
|
|
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(TldrawUiSlider_exports);
|
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
36
|
var import_radix_ui = require("radix-ui");
|
|
37
|
-
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_react = __toESM(require("react"), 1);
|
|
38
38
|
var import_useTranslation = require("../../hooks/useTranslation/useTranslation");
|
|
39
39
|
var import_TldrawUiTooltip = require("./TldrawUiTooltip");
|
|
40
40
|
const TldrawUiSlider = import_react.default.forwardRef(function Slider({
|
|
@@ -35,9 +35,9 @@ __export(TldrawUiToolbar_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(TldrawUiToolbar_exports);
|
|
37
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
-
var import_classnames = __toESM(require("classnames"));
|
|
38
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
39
39
|
var import_radix_ui = require("radix-ui");
|
|
40
|
-
var import_react = __toESM(require("react"));
|
|
40
|
+
var import_react = __toESM(require("react"), 1);
|
|
41
41
|
var import_layout = require("./layout");
|
|
42
42
|
var import_TldrawUiTooltip = require("./TldrawUiTooltip");
|
|
43
43
|
const LayoutByOrientation = {
|
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(TldrawUiTooltip_exports);
|
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
37
|
var import_editor = require("@tldraw/editor");
|
|
38
38
|
var import_radix_ui = require("radix-ui");
|
|
39
|
-
var import_react = __toESM(require("react"));
|
|
39
|
+
var import_react = __toESM(require("react"), 1);
|
|
40
40
|
var import_layout = require("./layout");
|
|
41
41
|
const DEFAULT_TOOLTIP_DELAY_MS = 700;
|
|
42
42
|
class TooltipManager {
|
|
@@ -36,7 +36,7 @@ __export(layout_exports, {
|
|
|
36
36
|
});
|
|
37
37
|
module.exports = __toCommonJS(layout_exports);
|
|
38
38
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
|
-
var import_classnames = __toESM(require("classnames"));
|
|
39
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
40
40
|
var import_radix_ui = require("radix-ui");
|
|
41
41
|
var import_react = require("react");
|
|
42
42
|
const TldrawUiOrientationContext = (0, import_react.createContext)({
|
|
@@ -32,7 +32,7 @@ __export(TldrawUiMenuGroup_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(TldrawUiMenuGroup_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_classnames = __toESM(require("classnames"));
|
|
35
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
36
36
|
var import_actions = require("../../../context/actions");
|
|
37
37
|
var import_useTranslation = require("../../../hooks/useTranslation/useTranslation");
|
|
38
38
|
var import_layout = require("../layout");
|
|
@@ -37,7 +37,7 @@ __export(actions_exports, {
|
|
|
37
37
|
module.exports = __toCommonJS(actions_exports);
|
|
38
38
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
39
39
|
var import_editor = require("@tldraw/editor");
|
|
40
|
-
var React = __toESM(require("react"));
|
|
40
|
+
var React = __toESM(require("react"), 1);
|
|
41
41
|
var import_frames = require("../../utils/frames/frames");
|
|
42
42
|
var import_A11y = require("../components/A11y");
|
|
43
43
|
var import_EditLinkDialog = require("../components/EditLinkDialog");
|
|
@@ -34,7 +34,7 @@ __export(breakpoints_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(breakpoints_exports);
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
36
|
var import_editor = require("@tldraw/editor");
|
|
37
|
-
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_react = __toESM(require("react"), 1);
|
|
38
38
|
var import_constants = require("../constants");
|
|
39
39
|
const BreakpointContext = import_react.default.createContext(null);
|
|
40
40
|
function BreakPointProvider({ forceMobile = false, children }) {
|
|
@@ -34,7 +34,7 @@ __export(events_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(events_exports);
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
-
var React = __toESM(require("react"));
|
|
37
|
+
var React = __toESM(require("react"), 1);
|
|
38
38
|
const defaultEventHandler = () => void 0;
|
|
39
39
|
const EventsContext = React.createContext(null);
|
|
40
40
|
function TldrawUiEventsProvider({ onEvent, children }) {
|
|
@@ -34,7 +34,7 @@ __export(useClipboardEvents_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(useClipboardEvents_exports);
|
|
36
36
|
var import_editor = require("@tldraw/editor");
|
|
37
|
-
var import_lz_string = __toESM(require("lz-string"));
|
|
37
|
+
var import_lz_string = __toESM(require("lz-string"), 1);
|
|
38
38
|
var import_react = require("react");
|
|
39
39
|
var import_clipboard = require("../../utils/clipboard");
|
|
40
40
|
var import_events = require("../context/events");
|
|
@@ -33,7 +33,7 @@ __export(useKeyboardShortcuts_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(useKeyboardShortcuts_exports);
|
|
35
35
|
var import_editor = require("@tldraw/editor");
|
|
36
|
-
var import_hotkeys_js = __toESM(require("hotkeys-js"));
|
|
36
|
+
var import_hotkeys_js = __toESM(require("hotkeys-js"), 1);
|
|
37
37
|
var import_react = require("react");
|
|
38
38
|
var import_actions = require("../context/actions");
|
|
39
39
|
var import_useReadonly = require("./useReadonly");
|
|
@@ -32,7 +32,7 @@ __export(useLocalStorageState_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(useLocalStorageState_exports);
|
|
34
34
|
var import_editor = require("@tldraw/editor");
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_react = __toESM(require("react"), 1);
|
|
36
36
|
function useLocalStorageState(key, defaultValue) {
|
|
37
37
|
const [state, setState] = import_react.default.useState(defaultValue);
|
|
38
38
|
import_react.default.useLayoutEffect(() => {
|
|
@@ -36,7 +36,7 @@ __export(useTools_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(useTools_exports);
|
|
37
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
38
|
var import_editor = require("@tldraw/editor");
|
|
39
|
-
var React = __toESM(require("react"));
|
|
39
|
+
var React = __toESM(require("react"), 1);
|
|
40
40
|
var import_EmbedDialog = require("../components/EmbedDialog");
|
|
41
41
|
var import_a11y = require("../context/a11y");
|
|
42
42
|
var import_events = require("../context/events");
|
|
@@ -35,7 +35,7 @@ __export(useTranslation_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(useTranslation_exports);
|
|
37
37
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
-
var React = __toESM(require("react"));
|
|
38
|
+
var React = __toESM(require("react"), 1);
|
|
39
39
|
var import_asset_urls = require("../../context/asset-urls");
|
|
40
40
|
var import_defaultTranslation = require("./defaultTranslation");
|
|
41
41
|
var import_translations = require("./translations");
|
|
@@ -22,10 +22,10 @@ __export(version_exports, {
|
|
|
22
22
|
version: () => version
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(version_exports);
|
|
25
|
-
const version = "4.1.0-canary.
|
|
25
|
+
const version = "4.1.0-canary.e653ec63c99b";
|
|
26
26
|
const publishDates = {
|
|
27
27
|
major: "2025-09-18T14:39:22.803Z",
|
|
28
|
-
minor: "2025-
|
|
29
|
-
patch: "2025-
|
|
28
|
+
minor: "2025-10-02T09:36:59.846Z",
|
|
29
|
+
patch: "2025-10-02T09:36:59.846Z"
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/lib/ui/version.ts"],
|
|
4
|
-
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '4.1.0-canary.
|
|
4
|
+
"sourcesContent": ["// This file is automatically generated by internal/scripts/refresh-assets.ts.\n// Do not edit manually. Or do, I'm a comment, not a cop.\n\nexport const version = '4.1.0-canary.e653ec63c99b'\nexport const publishDates = {\n\tmajor: '2025-09-18T14:39:22.803Z',\n\tminor: '2025-10-02T09:36:59.846Z',\n\tpatch: '2025-10-02T09:36:59.846Z',\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,UAAU;AAChB,MAAM,eAAe;AAAA,EAC3B,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACR;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -39,10 +39,10 @@ __export(richText_exports, {
|
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(richText_exports);
|
|
41
41
|
var import_core = require("@tiptap/core");
|
|
42
|
-
var import_extension_code = __toESM(require("@tiptap/extension-code"));
|
|
43
|
-
var import_extension_highlight = __toESM(require("@tiptap/extension-highlight"));
|
|
44
|
-
var import_extension_link = __toESM(require("@tiptap/extension-link"));
|
|
45
|
-
var import_starter_kit = __toESM(require("@tiptap/starter-kit"));
|
|
42
|
+
var import_extension_code = __toESM(require("@tiptap/extension-code"), 1);
|
|
43
|
+
var import_extension_highlight = __toESM(require("@tiptap/extension-highlight"), 1);
|
|
44
|
+
var import_extension_link = __toESM(require("@tiptap/extension-link"), 1);
|
|
45
|
+
var import_starter_kit = __toESM(require("@tiptap/starter-kit"), 1);
|
|
46
46
|
var import_editor = require("@tldraw/editor");
|
|
47
47
|
var import_defaultFonts = require("../../shapes/shared/defaultFonts");
|
|
48
48
|
var import_textDirection = require("./textDirection");
|
package/dist-esm/index.d.mts
CHANGED
|
@@ -636,6 +636,7 @@ export declare function DebugFlags(): JSX_2.Element | null;
|
|
|
636
636
|
/** @public */
|
|
637
637
|
export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
638
638
|
readonly doesResize: true;
|
|
639
|
+
readonly embedOnPaste: false;
|
|
639
640
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
640
641
|
readonly height: 500;
|
|
641
642
|
readonly hostnames: readonly ["beta.tldraw.com", "tldraw.com", "localhost:3000"];
|
|
@@ -650,6 +651,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
650
651
|
readonly width: 720;
|
|
651
652
|
}, {
|
|
652
653
|
readonly doesResize: true;
|
|
654
|
+
readonly embedOnPaste: true;
|
|
653
655
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
654
656
|
readonly height: 500;
|
|
655
657
|
readonly hostnames: readonly ["figma.com"];
|
|
@@ -659,6 +661,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
659
661
|
readonly width: 720;
|
|
660
662
|
}, {
|
|
661
663
|
readonly doesResize: true;
|
|
664
|
+
readonly embedOnPaste: true;
|
|
662
665
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
663
666
|
readonly height: 500;
|
|
664
667
|
readonly hostnames: readonly ["google.*"];
|
|
@@ -671,6 +674,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
671
674
|
readonly width: 720;
|
|
672
675
|
}, {
|
|
673
676
|
readonly doesResize: true;
|
|
677
|
+
readonly embedOnPaste: true;
|
|
674
678
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
675
679
|
readonly height: 500;
|
|
676
680
|
readonly hostnames: readonly ["val.town"];
|
|
@@ -682,6 +686,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
682
686
|
readonly width: 720;
|
|
683
687
|
}, {
|
|
684
688
|
readonly doesResize: true;
|
|
689
|
+
readonly embedOnPaste: true;
|
|
685
690
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
686
691
|
readonly height: 500;
|
|
687
692
|
readonly hostnames: readonly ["codesandbox.io"];
|
|
@@ -693,6 +698,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
693
698
|
readonly width: 720;
|
|
694
699
|
}, {
|
|
695
700
|
readonly doesResize: true;
|
|
701
|
+
readonly embedOnPaste: true;
|
|
696
702
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
697
703
|
readonly height: 400;
|
|
698
704
|
readonly hostnames: readonly ["codepen.io"];
|
|
@@ -704,6 +710,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
704
710
|
readonly width: 520;
|
|
705
711
|
}, {
|
|
706
712
|
readonly doesResize: false;
|
|
713
|
+
readonly embedOnPaste: true;
|
|
707
714
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
708
715
|
readonly height: 400;
|
|
709
716
|
readonly hostnames: readonly ["scratch.mit.edu"];
|
|
@@ -713,6 +720,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
713
720
|
readonly width: 520;
|
|
714
721
|
}, {
|
|
715
722
|
readonly doesResize: true;
|
|
723
|
+
readonly embedOnPaste: true;
|
|
716
724
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
717
725
|
readonly height: 450;
|
|
718
726
|
readonly hostnames: readonly ["*.youtube.com", "youtube.com", "youtu.be"];
|
|
@@ -727,6 +735,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
727
735
|
readonly width: 800;
|
|
728
736
|
}, {
|
|
729
737
|
readonly doesResize: true;
|
|
738
|
+
readonly embedOnPaste: true;
|
|
730
739
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
731
740
|
readonly height: 500;
|
|
732
741
|
readonly hostnames: readonly ["calendar.google.*"];
|
|
@@ -742,6 +751,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
742
751
|
readonly width: 720;
|
|
743
752
|
}, {
|
|
744
753
|
readonly doesResize: true;
|
|
754
|
+
readonly embedOnPaste: true;
|
|
745
755
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
746
756
|
readonly height: 500;
|
|
747
757
|
readonly hostnames: readonly ["docs.google.*"];
|
|
@@ -756,6 +766,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
756
766
|
readonly width: 720;
|
|
757
767
|
}, {
|
|
758
768
|
readonly doesResize: true;
|
|
769
|
+
readonly embedOnPaste: true;
|
|
759
770
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
760
771
|
readonly height: 500;
|
|
761
772
|
readonly hostnames: readonly ["gist.github.com"];
|
|
@@ -765,6 +776,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
765
776
|
readonly width: 720;
|
|
766
777
|
}, {
|
|
767
778
|
readonly doesResize: true;
|
|
779
|
+
readonly embedOnPaste: true;
|
|
768
780
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
769
781
|
readonly height: 500;
|
|
770
782
|
readonly hostnames: readonly ["replit.com"];
|
|
@@ -774,6 +786,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
774
786
|
readonly width: 720;
|
|
775
787
|
}, {
|
|
776
788
|
readonly doesResize: true;
|
|
789
|
+
readonly embedOnPaste: true;
|
|
777
790
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
778
791
|
readonly height: 500;
|
|
779
792
|
readonly hostnames: readonly ["felt.com"];
|
|
@@ -783,6 +796,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
783
796
|
readonly width: 720;
|
|
784
797
|
}, {
|
|
785
798
|
readonly doesResize: true;
|
|
799
|
+
readonly embedOnPaste: true;
|
|
786
800
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
787
801
|
readonly height: 500;
|
|
788
802
|
readonly hostnames: readonly ["open.spotify.com"];
|
|
@@ -794,6 +808,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
794
808
|
readonly width: 720;
|
|
795
809
|
}, {
|
|
796
810
|
readonly doesResize: true;
|
|
811
|
+
readonly embedOnPaste: true;
|
|
797
812
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
798
813
|
readonly height: 360;
|
|
799
814
|
readonly hostnames: readonly ["vimeo.com", "player.vimeo.com"];
|
|
@@ -804,6 +819,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
804
819
|
readonly width: 640;
|
|
805
820
|
}, {
|
|
806
821
|
readonly doesResize: true;
|
|
822
|
+
readonly embedOnPaste: true;
|
|
807
823
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
808
824
|
readonly height: 500;
|
|
809
825
|
readonly hostnames: readonly ["excalidraw.com"];
|
|
@@ -815,6 +831,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
815
831
|
}, {
|
|
816
832
|
readonly backgroundColor: "#fff";
|
|
817
833
|
readonly doesResize: true;
|
|
834
|
+
readonly embedOnPaste: true;
|
|
818
835
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
819
836
|
readonly height: 500;
|
|
820
837
|
readonly hostnames: readonly ["observablehq.com"];
|
|
@@ -825,6 +842,7 @@ export declare const DEFAULT_EMBED_DEFINITIONS: readonly [{
|
|
|
825
842
|
readonly width: 720;
|
|
826
843
|
}, {
|
|
827
844
|
readonly doesResize: true;
|
|
845
|
+
readonly embedOnPaste: true;
|
|
828
846
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|
|
829
847
|
readonly height: 450;
|
|
830
848
|
readonly hostnames: readonly ["desmos.com"];
|
|
@@ -1428,6 +1446,7 @@ export declare interface EmbedDefinition {
|
|
|
1428
1446
|
readonly overridePermissions?: TLEmbedShapePermissions;
|
|
1429
1447
|
readonly instructionLink?: string;
|
|
1430
1448
|
readonly backgroundColor?: string;
|
|
1449
|
+
readonly embedOnPaste?: boolean;
|
|
1431
1450
|
readonly overrideOutlineRadius?: number;
|
|
1432
1451
|
readonly toEmbedUrl: (url: string) => string | undefined;
|
|
1433
1452
|
readonly fromEmbedUrl: (url: string) => string | undefined;
|