Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

build: add missing dependencies: pica, lodash (#5656)

Igor Berlenko933c6a223716
diff --git a/package.json b/package.json
index 436e0de234..f5189072a8 100644
--- a/package.json
+++ b/package.json
@@ -42,6 +42,7 @@
"open-color": "1.9.1",
"pako": "1.0.11",
"perfect-freehand": "1.0.16",
+ "pica": "7.1.1",
"png-chunk-text": "1.0.0",
"png-chunks-encode": "1.0.0",
"png-chunks-extract": "1.0.0",
diff --git a/src/components/LibraryMenuItems.tsx b/src/components/LibraryMenuItems.tsx
index 01223baed8..b39003cda4 100644
--- a/src/components/LibraryMenuItems.tsx
+++ b/src/components/LibraryMenuItems.tsx
@@ -1,4 +1,3 @@
-import { chunk } from "lodash";
import React, { useCallback, useState } from "react";
import { saveLibraryAsJSON, serializeLibraryAsJSON } from "../data/json";
import Library from "../data/library";
@@ -11,7 +10,7 @@ import {
LibraryItem,
LibraryItems,
} from "../types";
-import { arrayToMap, muteFSAbortError } from "../utils";
+import { arrayToMap, chunk, muteFSAbortError } from "../utils";
import { useDevice } from "./App";
import ConfirmDialog from "./ConfirmDialog";
import { close, exportToFileIcon, load, publishIcon, trash } from "./icons";
diff --git a/src/excalidraw-app/collab/Portal.tsx b/src/excalidraw-app/collab/Portal.tsx
index 95e0e7aa4e..2d073c86aa 100644
--- a/src/excalidraw-app/collab/Portal.tsx
+++ b/src/excalidraw-app/collab/Portal.tsx
@@ -14,7 +14,7 @@ import {
} from "../app_constants";
import { UserIdleState } from "../../types";
import { trackEvent } from "../../analytics";
-import { throttle } from "lodash";
+import throttle from "lodash.throttle";
import { newElementWith } from "../../element/mutateElement";
import { BroadcastedExcalidrawElement } from "./reconciliation";
import { encryptData } from "../../data/encryption";
diff --git a/yarn.lock b/yarn.lock
index 64e577c585..98fb485d8f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -9032,6 +9032,17 @@ performance-now@^2.1.0:
resolved "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz"
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
+ version "7.1.1"
+ resolved "https://registry.yarnpkg.com/pica/-/pica-7.1.1.tgz#c68b42f5cfa6cc26eaec5cfa10cc0a5299ef3b7a"
+ integrity sha512-WY73tMvNzXWEld2LicT9Y260L43isrZ85tPuqRyvtkljSDLmnNFQmZICt4xUJMVulmcc6L9O7jbBrtx3DOz/YQ==
+ dependencies:
+ glur "^1.1.2"
+ inherits "^2.0.3"
+ multimath "^2.0.0"
+ object-assign "^4.1.1"
+ webworkify "^1.5.0"
+
pica@^7.1.0:
version "7.1.0"
resolved "https://registry.npmjs.org/pica/-/pica-7.1.0.tgz"