@budibase/frontend-core 2.30.3 → 2.30.4
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/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/frontend-core",
|
|
3
|
-
"version": "2.30.
|
|
3
|
+
"version": "2.30.4",
|
|
4
4
|
"description": "Budibase frontend core libraries used in builder and client",
|
|
5
5
|
"author": "Budibase",
|
|
6
6
|
"license": "MPL-2.0",
|
|
7
7
|
"svelte": "src/index.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@budibase/bbui": "2.30.
|
|
10
|
-
"@budibase/shared-core": "2.30.
|
|
11
|
-
"@budibase/types": "2.30.
|
|
9
|
+
"@budibase/bbui": "2.30.4",
|
|
10
|
+
"@budibase/shared-core": "2.30.4",
|
|
11
|
+
"@budibase/types": "2.30.4",
|
|
12
12
|
"dayjs": "^1.10.8",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
14
|
"shortid": "2.2.15",
|
|
15
15
|
"socket.io-client": "^4.7.5"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "31ecd970317f72024de072a54e4d6759333e2b80"
|
|
18
18
|
}
|
|
@@ -2,9 +2,16 @@
|
|
|
2
2
|
import { Modal, ModalContent, ProgressBar } from "@budibase/bbui"
|
|
3
3
|
import { getContext, onMount } from "svelte"
|
|
4
4
|
import { sleep } from "../../../utils/utils"
|
|
5
|
+
import { get } from "svelte/store"
|
|
5
6
|
|
|
6
|
-
const {
|
|
7
|
-
|
|
7
|
+
const {
|
|
8
|
+
clipboard,
|
|
9
|
+
subscribe,
|
|
10
|
+
copyAllowed,
|
|
11
|
+
pasteAllowed,
|
|
12
|
+
selectedCellCount,
|
|
13
|
+
focusedCellAPI,
|
|
14
|
+
} = getContext("grid")
|
|
8
15
|
const duration = 260
|
|
9
16
|
|
|
10
17
|
let modal
|
|
@@ -19,10 +26,15 @@
|
|
|
19
26
|
}
|
|
20
27
|
|
|
21
28
|
const handlePasteRequest = async () => {
|
|
29
|
+
// If a cell is active then let the native paste action take over
|
|
30
|
+
if (get(focusedCellAPI)?.isActive()) {
|
|
31
|
+
return
|
|
32
|
+
}
|
|
22
33
|
progressPercentage = 0
|
|
23
34
|
if (!$pasteAllowed) {
|
|
24
35
|
return
|
|
25
36
|
}
|
|
37
|
+
|
|
26
38
|
// Prompt if paste will update multiple cells
|
|
27
39
|
const multiCellPaste = $selectedCellCount > 1
|
|
28
40
|
const prompt = $clipboard.multiCellCopy || multiCellPaste
|