@excalidraw/common 0.18.0-de715913e → 0.18.0-f29e9df
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/dev/index.js +7 -1
- package/dist/dev/index.js.map +2 -2
- package/dist/prod/index.js +3 -3
- package/dist/types/common/src/constants.d.ts +1 -0
- package/dist/types/element/src/delta.d.ts +2 -2
- package/dist/types/element/src/store.d.ts +3 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +15 -1
- package/dist/types/excalidraw/components/App.d.ts +6 -2
- package/dist/types/excalidraw/components/shapes.d.ts +129 -1
- package/dist/types/excalidraw/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/dev/index.js
CHANGED
|
@@ -647,9 +647,14 @@ var isAndroid = /\b(android)\b/i.test(navigator.userAgent);
|
|
|
647
647
|
var isFirefox = typeof window !== "undefined" && "netscape" in window && navigator.userAgent.indexOf("rv:") > 1 && navigator.userAgent.indexOf("Gecko") > 1;
|
|
648
648
|
var isChrome = navigator.userAgent.indexOf("Chrome") !== -1;
|
|
649
649
|
var isSafari = !isChrome && navigator.userAgent.indexOf("Safari") !== -1;
|
|
650
|
-
var isIOS = /iPad|iPhone
|
|
650
|
+
var isIOS = /iPad|iPhone/i.test(navigator.platform) || // iPadOS 13+
|
|
651
651
|
navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
|
652
652
|
var isBrave = () => navigator.brave?.isBrave?.name === "isBrave";
|
|
653
|
+
var isMobile = isIOS || /android|webos|ipod|blackberry|iemobile|opera mini/i.test(
|
|
654
|
+
navigator.userAgent.toLowerCase()
|
|
655
|
+
) || /android|ios|ipod|blackberry|windows phone/i.test(
|
|
656
|
+
navigator.platform.toLowerCase()
|
|
657
|
+
);
|
|
653
658
|
var supportsResizeObserver = typeof window !== "undefined" && "ResizeObserver" in window;
|
|
654
659
|
var APP_NAME = "Excalidraw";
|
|
655
660
|
var TEXT_AUTOWRAP_THRESHOLD = 36;
|
|
@@ -2326,6 +2331,7 @@ export {
|
|
|
2326
2331
|
isLatinChar,
|
|
2327
2332
|
isLocalLink,
|
|
2328
2333
|
isMemberOf,
|
|
2334
|
+
isMobile,
|
|
2329
2335
|
isPrimitive,
|
|
2330
2336
|
isProdEnv,
|
|
2331
2337
|
isPromiseLike,
|