UNPKG

vuestic-ui

Version:
1 lines 839 B
{"version":3,"file":"index.mjs","sources":["../../../../../../src/services/cache/plugin/index.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\nimport type { AppCache } from '../types'\nimport { defineVuesticPlugin } from '../../vue-plugin/utils'\n\nexport const VaAppCachePluginKey = Symbol('VaAppCachePlugin') as InjectionKey<AppCache>\n\n/** Creates color css variables and reactively updates on ColorConfig changes. */\nexport const CachePlugin = defineVuesticPlugin(() => ({\n install (app) {\n const cache: AppCache = {\n colorContrast: {},\n }\n\n app.provide(VaAppCachePluginKey, cache)\n },\n}))\n"],"names":[],"mappings":";AAIa,MAAA,sBAAsB,OAAO,kBAAkB;AAG/C,MAAA,cAAc,oBAAoB,OAAO;AAAA,EACpD,QAAS,KAAK;AACZ,UAAM,QAAkB;AAAA,MACtB,eAAe,CAAC;AAAA,IAAA;AAGd,QAAA,QAAQ,qBAAqB,KAAK;AAAA,EACxC;AACF,EAAE;"}