dockview-vue
Advanced tools
Comparing version 1.14.1 to 1.14.2
@@ -202,4 +202,8 @@ "use strict"; | ||
if (!el.value) { | ||
throw new Error("element is not mounted"); | ||
throw new Error("dockview-vue: element is not mounted"); | ||
} | ||
const inst = vue.getCurrentInstance(); | ||
if (!inst) { | ||
throw new Error("dockview-vue: getCurrentInstance() returned null"); | ||
} | ||
const frameworkOptions = { | ||
@@ -209,12 +213,12 @@ parentElement: el.value, | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
options.name | ||
); | ||
return new VueRenderer(component, vue.getCurrentInstance()); | ||
return new VueRenderer(component, inst); | ||
}, | ||
createTabComponent(options) { | ||
let component = findComponent(vue.getCurrentInstance(), options.name); | ||
let component = findComponent(inst, options.name); | ||
if (!component && props.defaultTabComponent) { | ||
component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.defaultTabComponent | ||
@@ -224,3 +228,3 @@ ); | ||
if (component) { | ||
return new VueRenderer(component, vue.getCurrentInstance()); | ||
return new VueRenderer(component, inst); | ||
} | ||
@@ -231,3 +235,3 @@ return void 0; | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.watermarkComponent | ||
@@ -237,3 +241,3 @@ ); | ||
component, | ||
vue.getCurrentInstance() | ||
inst | ||
); | ||
@@ -243,3 +247,3 @@ } : void 0, | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.leftHeaderActionsComponent | ||
@@ -249,3 +253,3 @@ ); | ||
component, | ||
vue.getCurrentInstance(), | ||
inst, | ||
group | ||
@@ -256,3 +260,3 @@ ); | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.prefixHeaderActionsComponent | ||
@@ -262,3 +266,3 @@ ); | ||
component, | ||
vue.getCurrentInstance(), | ||
inst, | ||
group | ||
@@ -269,3 +273,3 @@ ); | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.rightHeaderActionsComponent | ||
@@ -275,3 +279,3 @@ ); | ||
component, | ||
vue.getCurrentInstance(), | ||
inst, | ||
group | ||
@@ -278,0 +282,0 @@ ); |
@@ -201,4 +201,8 @@ var __defProp = Object.defineProperty; | ||
if (!el.value) { | ||
throw new Error("element is not mounted"); | ||
throw new Error("dockview-vue: element is not mounted"); | ||
} | ||
const inst = getCurrentInstance(); | ||
if (!inst) { | ||
throw new Error("dockview-vue: getCurrentInstance() returned null"); | ||
} | ||
const frameworkOptions = { | ||
@@ -208,12 +212,12 @@ parentElement: el.value, | ||
const component = findComponent( | ||
getCurrentInstance(), | ||
inst, | ||
options.name | ||
); | ||
return new VueRenderer(component, getCurrentInstance()); | ||
return new VueRenderer(component, inst); | ||
}, | ||
createTabComponent(options) { | ||
let component = findComponent(getCurrentInstance(), options.name); | ||
let component = findComponent(inst, options.name); | ||
if (!component && props.defaultTabComponent) { | ||
component = findComponent( | ||
getCurrentInstance(), | ||
inst, | ||
props.defaultTabComponent | ||
@@ -223,3 +227,3 @@ ); | ||
if (component) { | ||
return new VueRenderer(component, getCurrentInstance()); | ||
return new VueRenderer(component, inst); | ||
} | ||
@@ -230,3 +234,3 @@ return void 0; | ||
const component = findComponent( | ||
getCurrentInstance(), | ||
inst, | ||
props.watermarkComponent | ||
@@ -236,3 +240,3 @@ ); | ||
component, | ||
getCurrentInstance() | ||
inst | ||
); | ||
@@ -242,3 +246,3 @@ } : void 0, | ||
const component = findComponent( | ||
getCurrentInstance(), | ||
inst, | ||
props.leftHeaderActionsComponent | ||
@@ -248,3 +252,3 @@ ); | ||
component, | ||
getCurrentInstance(), | ||
inst, | ||
group | ||
@@ -255,3 +259,3 @@ ); | ||
const component = findComponent( | ||
getCurrentInstance(), | ||
inst, | ||
props.prefixHeaderActionsComponent | ||
@@ -261,3 +265,3 @@ ); | ||
component, | ||
getCurrentInstance(), | ||
inst, | ||
group | ||
@@ -268,3 +272,3 @@ ); | ||
const component = findComponent( | ||
getCurrentInstance(), | ||
inst, | ||
props.rightHeaderActionsComponent | ||
@@ -274,3 +278,3 @@ ); | ||
component, | ||
getCurrentInstance(), | ||
inst, | ||
group | ||
@@ -277,0 +281,0 @@ ); |
@@ -202,4 +202,8 @@ (function(global, factory) { | ||
if (!el.value) { | ||
throw new Error("element is not mounted"); | ||
throw new Error("dockview-vue: element is not mounted"); | ||
} | ||
const inst = vue.getCurrentInstance(); | ||
if (!inst) { | ||
throw new Error("dockview-vue: getCurrentInstance() returned null"); | ||
} | ||
const frameworkOptions = { | ||
@@ -209,12 +213,12 @@ parentElement: el.value, | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
options.name | ||
); | ||
return new VueRenderer(component, vue.getCurrentInstance()); | ||
return new VueRenderer(component, inst); | ||
}, | ||
createTabComponent(options) { | ||
let component = findComponent(vue.getCurrentInstance(), options.name); | ||
let component = findComponent(inst, options.name); | ||
if (!component && props.defaultTabComponent) { | ||
component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.defaultTabComponent | ||
@@ -224,3 +228,3 @@ ); | ||
if (component) { | ||
return new VueRenderer(component, vue.getCurrentInstance()); | ||
return new VueRenderer(component, inst); | ||
} | ||
@@ -231,3 +235,3 @@ return void 0; | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.watermarkComponent | ||
@@ -237,3 +241,3 @@ ); | ||
component, | ||
vue.getCurrentInstance() | ||
inst | ||
); | ||
@@ -243,3 +247,3 @@ } : void 0, | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.leftHeaderActionsComponent | ||
@@ -249,3 +253,3 @@ ); | ||
component, | ||
vue.getCurrentInstance(), | ||
inst, | ||
group | ||
@@ -256,3 +260,3 @@ ); | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.prefixHeaderActionsComponent | ||
@@ -262,3 +266,3 @@ ); | ||
component, | ||
vue.getCurrentInstance(), | ||
inst, | ||
group | ||
@@ -269,3 +273,3 @@ ); | ||
const component = findComponent( | ||
vue.getCurrentInstance(), | ||
inst, | ||
props.rightHeaderActionsComponent | ||
@@ -275,3 +279,3 @@ ); | ||
component, | ||
vue.getCurrentInstance(), | ||
inst, | ||
group | ||
@@ -278,0 +282,0 @@ ); |
{ | ||
"name": "dockview-vue", | ||
"version": "1.14.1", | ||
"version": "1.14.2", | ||
"description": "Zero dependency layout manager supporting tabs, grids and splitviews", | ||
@@ -55,4 +55,4 @@ "keywords": [ | ||
"dependencies": { | ||
"dockview-core": "^1.14.1" | ||
"dockview-core": "^1.14.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1835
61143
Updateddockview-core@^1.14.2