@fastkit/vue-color-scheme
Advanced tools
Comparing version 0.8.10 to 0.8.11
@@ -172,3 +172,2 @@ 'use strict'; | ||
class VueColorSchemePlugin { | ||
installedApps = new Set(); | ||
settings; | ||
@@ -186,13 +185,4 @@ constructor(settings) { | ||
install(app) { | ||
const { installedApps } = this; | ||
if (installedApps.has(app)) | ||
return; | ||
const unmountApp = app.unmount; | ||
installedApps.add(app); | ||
const $color = new VueColorSchemeService(this.settings); | ||
$color.provide(app); | ||
app.unmount = function () { | ||
installedApps.delete(app); | ||
unmountApp(); | ||
}; | ||
} | ||
@@ -199,0 +189,0 @@ } |
@@ -172,3 +172,2 @@ 'use strict'; | ||
class VueColorSchemePlugin { | ||
installedApps = new Set(); | ||
settings; | ||
@@ -186,13 +185,4 @@ constructor(settings) { | ||
install(app) { | ||
const { installedApps } = this; | ||
if (installedApps.has(app)) | ||
return; | ||
const unmountApp = app.unmount; | ||
installedApps.add(app); | ||
const $color = new VueColorSchemeService(this.settings); | ||
$color.provide(app); | ||
app.unmount = function () { | ||
installedApps.delete(app); | ||
unmountApp(); | ||
}; | ||
} | ||
@@ -199,0 +189,0 @@ } |
@@ -114,3 +114,2 @@ import { App } from 'vue'; | ||
export declare class VueColorSchemePlugin { | ||
readonly installedApps: Set<App<any>>; | ||
readonly settings: VueColorSchemeServiceSettings; | ||
@@ -117,0 +116,0 @@ constructor(settings: VueColorSchemePluginSettings); |
{ | ||
"name": "@fastkit/vue-color-scheme", | ||
"version": "0.8.10", | ||
"version": "0.8.11", | ||
"description": "@fastkit/vue-color-scheme", | ||
@@ -33,6 +33,6 @@ "buildOptions": { | ||
"dependencies": { | ||
"@fastkit/color-scheme": "0.8.10", | ||
"@fastkit/tiny-logger": "0.8.10", | ||
"@fastkit/vue-utils": "0.8.10" | ||
"@fastkit/color-scheme": "0.8.11", | ||
"@fastkit/tiny-logger": "0.8.11", | ||
"@fastkit/vue-utils": "0.8.11" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
23211
689
+ Added@fastkit/body-scroll-lock@0.8.11(transitive)
+ Added@fastkit/color@0.8.11(transitive)
+ Added@fastkit/color-scheme@0.8.11(transitive)
+ Added@fastkit/helpers@0.8.11(transitive)
+ Added@fastkit/keybord@0.8.11(transitive)
+ Added@fastkit/tiny-logger@0.8.11(transitive)
+ Added@fastkit/visibility@0.8.11(transitive)
+ Added@fastkit/vue-utils@0.8.11(transitive)
- Removed@fastkit/body-scroll-lock@0.8.10(transitive)
- Removed@fastkit/color@0.8.10(transitive)
- Removed@fastkit/color-scheme@0.8.10(transitive)
- Removed@fastkit/helpers@0.8.10(transitive)
- Removed@fastkit/keybord@0.8.10(transitive)
- Removed@fastkit/tiny-logger@0.8.10(transitive)
- Removed@fastkit/visibility@0.8.10(transitive)
- Removed@fastkit/vue-utils@0.8.10(transitive)
Updated@fastkit/color-scheme@0.8.11
Updated@fastkit/tiny-logger@0.8.11
Updated@fastkit/vue-utils@0.8.11