diff --git a/lerna.json b/lerna.json index e5ad209fd4..0118865b37 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.11.15-alpha.0", + "version": "2.11.15-alpha.1", "npmClient": "yarn", "packages": [ "packages/*" diff --git a/packages/builder/src/components/design/settings/controls/FieldConfiguration.svelte b/packages/builder/src/components/design/settings/controls/FieldConfiguration.svelte deleted file mode 100644 index 80f4829d71..0000000000 --- a/packages/builder/src/components/design/settings/controls/FieldConfiguration.svelte +++ /dev/null @@ -1,91 +0,0 @@ - - -Configure columns - - - Configure the columns in your {subject.toLowerCase()}. - - - - diff --git a/packages/frontend-core/src/components/grid/stores/clipboard.js b/packages/frontend-core/src/components/grid/stores/clipboard.js index 71db36de9b..200df29902 100644 --- a/packages/frontend-core/src/components/grid/stores/clipboard.js +++ b/packages/frontend-core/src/components/grid/stores/clipboard.js @@ -1,4 +1,5 @@ import { writable, get } from "svelte/store" +import { Helpers } from "@budibase/bbui" export const createStores = () => { const copiedCell = writable(null) @@ -12,7 +13,16 @@ export const createActions = context => { const { copiedCell, focusedCellAPI } = context const copy = () => { - copiedCell.set(get(focusedCellAPI)?.getValue()) + const value = get(focusedCellAPI)?.getValue() + copiedCell.set(value) + + // Also copy a stringified version to the clipboard + let stringified = "" + if (value != null && value !== "") { + // Only conditionally stringify to avoid redundant quotes around text + stringified = typeof value === "object" ? JSON.stringify(value) : value + } + Helpers.copyToClipboard(stringified) } const paste = () => {