diff --git a/packages/builder/package.json b/packages/builder/package.json index 7dfd29354a..32f5c8e245 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -61,9 +61,11 @@ "@budibase/client": "^0.1.1", "@budibase/colorpicker": "^1.0.1", "@nx-js/compiler-util": "^2.0.0", + "britecharts": "^2.16.0", "@sentry/browser": "5.19.1", "@svelteschool/svelte-forms": "^0.7.0", "codemirror": "^5.51.0", + "d3-selection": "^1.4.1", "date-fns": "^1.29.0", "deepmerge": "^4.2.2", "feather-icons": "^4.21.0", @@ -73,7 +75,7 @@ "mustache": "^4.0.1", "posthog-js": "^1.3.1", "safe-buffer": "^5.1.2", - "shortid": "^2.2.8", + "shortid": "^2.2.15", "string_decoder": "^1.2.0", "svelte-portal": "^0.1.0", "svelte-simple-modal": "^0.4.2", diff --git a/packages/builder/src/builderStore/store/index.js b/packages/builder/src/builderStore/store/index.js index c6ab194379..5b78ea0979 100644 --- a/packages/builder/src/builderStore/store/index.js +++ b/packages/builder/src/builderStore/store/index.js @@ -255,7 +255,7 @@ const setCurrentPage = store => pageName => { * @param {string} componentToAdd - name of the component to add to the application * @param {string} presetName - name of the component preset if defined */ -const addChildComponent = store => (componentToAdd, presetName) => { +const addChildComponent = store => (componentToAdd, presetProps = {}) => { store.update(state => { function findSlot(component_array) { for (let i = 0; i < component_array.length; i += 1) { @@ -278,8 +278,6 @@ const addChildComponent = store => (componentToAdd, presetName) => { const component = getComponentDefinition(state, componentToAdd) - const presetProps = presetName ? component.presets[presetName] : {} - const instanceId = get(backendUiStore).selectedDatabase._id const instanceName = get_capitalised_name(componentToAdd) diff --git a/packages/builder/src/components/common/Checkbox.svelte b/packages/builder/src/components/common/Checkbox.svelte index fe3f5756eb..3c5888d7c8 100644 --- a/packages/builder/src/components/common/Checkbox.svelte +++ b/packages/builder/src/components/common/Checkbox.svelte @@ -12,22 +12,24 @@ -