refactor(core): set vue flow version as regular string instead of ref

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-04-26 10:15:39 +02:00
committed by Braks
parent aa62e19ed9
commit 260a3d9a86
3 changed files with 3 additions and 5 deletions
@@ -61,6 +61,7 @@ export class Storage {
...toRefs(reactiveState),
emits,
id,
vueFlowVersion: typeof __VUE_FLOW_VERSION__ !== 'undefined' ? __VUE_FLOW_VERSION__ : 'UNKNOWN',
$destroy: () => {
this.remove(id)
},
-2
View File
@@ -132,8 +132,6 @@ function defaultState(): State {
__experimentalFeatures: {
nestedFlow: false,
},
vueFlowVersion: typeof __VUE_FLOW_VERSION__ !== 'undefined' ? __VUE_FLOW_VERSION__ : '-',
}
}
+2 -3
View File
@@ -143,9 +143,6 @@ export interface State extends Omit<FlowOptions, 'id' | 'modelValue'> {
disableKeyboardA11y: boolean
ariaLiveMessage: string
/** current vue flow version you're using */
readonly vueFlowVersion: string
}
export type SetElements = (elements: Elements | ((elements: FlowElements) => Elements)) => void
@@ -311,6 +308,8 @@ export type ComputedGetters = {
export type VueFlowStore = {
readonly id: string
readonly emits: FlowHooksEmit
/** current vue flow version you're using */
readonly vueFlowVersion: string
} & FlowHooksOn &
ToRefs<State> &
Readonly<ComputedGetters> &