diff --git a/packages/builder/src/builderStore/store/frontend.js b/packages/builder/src/builderStore/store/frontend.js index 8746cf94ac..9a7e2715da 100644 --- a/packages/builder/src/builderStore/store/frontend.js +++ b/packages/builder/src/builderStore/store/frontend.js @@ -305,7 +305,6 @@ export const getFrontendStore = () => { _id: uuid(), _component: definition.component, _styles: { normal: {}, hover: {}, active: {} }, - _transition: "", _instanceName: `New ${definition.name}`, ...cloneDeep(props), ...extras, @@ -508,15 +507,6 @@ export const getFrontendStore = () => { selected._styles = { normal: {}, hover: {}, active: {} } await store.actions.preview.saveSelected() }, - updateTransition: async transition => { - const selected = get(selectedComponent) - if (transition == null || transition === "") { - selected._transition = "" - } else { - selected._transition = transition - } - await store.actions.preview.saveSelected() - }, updateProp: async (name, value) => { let component = get(selectedComponent) if (!name || !component) { diff --git a/packages/builder/src/builderStore/store/screenTemplates/utils/Component.js b/packages/builder/src/builderStore/store/screenTemplates/utils/Component.js index c4085e483c..182736a1d5 100644 --- a/packages/builder/src/builderStore/store/screenTemplates/utils/Component.js +++ b/packages/builder/src/builderStore/store/screenTemplates/utils/Component.js @@ -14,7 +14,6 @@ export class Component extends BaseStructure { active: {}, selected: {}, }, - _transition: "", _instanceName: "", _children: [], } @@ -40,11 +39,6 @@ export class Component extends BaseStructure { return this } - transition(transition) { - this._json._transition = transition - return this - } - // Shorthand for custom props "type" type(type) { this._json.type = type diff --git a/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte b/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte index 124ea888f4..a4c057abba 100644 --- a/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte +++ b/packages/builder/src/components/design/NavigationPanel/NewScreenModal.svelte @@ -55,7 +55,6 @@ if (routeError) return false draftScreen.props._instanceName = name - draftScreen.props._transition = "fade" draftScreen.props._component = baseComponent draftScreen.routing = { route, roleId } diff --git a/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte b/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte index dfc11f3dae..1db95e7de5 100644 --- a/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/DesignView.svelte @@ -8,7 +8,6 @@ export let componentInstance = {} export let onStyleChanged = () => {} export let onCustomStyleChanged = () => {} - export let onUpdateTransition = () => {} export let onResetStyles = () => {} let selectedCategory = "normal" @@ -24,14 +23,6 @@ { value: "active", text: "Active" }, ] - const transitions = [ - "none", - "fade", - "blur", - "fly", - "scale", // slide is hidden because it does not seem to result in any effect - ] - const capitalize = ([first, ...rest]) => first.toUpperCase() + rest.join("") $: groups = componentDefinition?.styleable ? Object.keys(allStyles) : [] @@ -78,18 +69,6 @@ {/if} - {#if componentDefinition?.transitionable} -
-