@budibase/frontend-core 2.30.3 → 2.30.5

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",
3
+ "version": "2.30.5",
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.3",
10
- "@budibase/shared-core": "2.30.3",
11
- "@budibase/types": "2.30.3",
9
+ "@budibase/bbui": "2.30.5",
10
+ "@budibase/shared-core": "2.30.5",
11
+ "@budibase/types": "2.30.5",
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": "bb6092e58b80d4343bf3b720881f2dc01a30d1c9"
17
+ "gitHead": "0b5a0aaf95a20cbbfe99b205157760dad6f4698e"
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 { clipboard, subscribe, copyAllowed, pasteAllowed, selectedCellCount } =
7
- getContext("grid")
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
@@ -58,7 +58,7 @@
58
58
  case "c":
59
59
  return handle(() => dispatch("copy"))
60
60
  case "v":
61
- return handle(() => dispatch("paste"))
61
+ return dispatch("paste")
62
62
  case "Enter":
63
63
  return handle(() => {
64
64
  if ($config.canAddRows) {