@vasakgroup/plugin-config-manager 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-js/index.cjs CHANGED
@@ -39,7 +39,7 @@ const useConfigStore = () => {
39
39
  const loadConfig = async () => {
40
40
  config.value = await readConfig();
41
41
  setMode();
42
- setProperties();
42
+ await setProperties();
43
43
  };
44
44
  const setMode = () => {
45
45
  if (config.value?.style?.darkmode) {
@@ -49,11 +49,11 @@ const useConfigStore = () => {
49
49
  document.documentElement.classList.remove("dark");
50
50
  }
51
51
  };
52
- const setProperties = () => {
52
+ const setProperties = async () => {
53
53
  if (config.value?.style) {
54
54
  const { "color-scheme": colorScheme, radius } = config.value.style;
55
- const scheme = getSchemeById(colorScheme);
56
- if (scheme !== null) {
55
+ const scheme = await getSchemeById(colorScheme);
56
+ if (scheme !== null && scheme !== undefined) {
57
57
  const darkScheme = scheme.scheme.colors.dark;
58
58
  const lightScheme = scheme.scheme.colors.light;
59
59
  // Colores de Marca
package/dist-js/index.js CHANGED
@@ -37,7 +37,7 @@ const useConfigStore = () => {
37
37
  const loadConfig = async () => {
38
38
  config.value = await readConfig();
39
39
  setMode();
40
- setProperties();
40
+ await setProperties();
41
41
  };
42
42
  const setMode = () => {
43
43
  if (config.value?.style?.darkmode) {
@@ -47,11 +47,11 @@ const useConfigStore = () => {
47
47
  document.documentElement.classList.remove("dark");
48
48
  }
49
49
  };
50
- const setProperties = () => {
50
+ const setProperties = async () => {
51
51
  if (config.value?.style) {
52
52
  const { "color-scheme": colorScheme, radius } = config.value.style;
53
- const scheme = getSchemeById(colorScheme);
54
- if (scheme !== null) {
53
+ const scheme = await getSchemeById(colorScheme);
54
+ if (scheme !== null && scheme !== undefined) {
55
55
  const darkScheme = scheme.scheme.colors.dark;
56
56
  const lightScheme = scheme.scheme.colors.light;
57
57
  // Colores de Marca
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vasakgroup/plugin-config-manager",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "author": "Joaquin (Pato) Decima <jdecima@vasak.net.ar>",
5
5
  "description": "A tauri plugin for managing configuration in a Vue 3 application using Pinia.",
6
6
  "type": "module",
@@ -22,13 +22,13 @@
22
22
  "pretest": "bun run build"
23
23
  },
24
24
  "dependencies": {
25
- "@tauri-apps/api": "^2.9.1",
25
+ "@tauri-apps/api": "^2.10.1",
26
26
  "pinia": "^3.0.4",
27
- "vue": "^3.5.26"
27
+ "vue": "^3.5.28"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@rollup/plugin-typescript": "^12.3.0",
31
- "rollup": "^4.55.1",
31
+ "rollup": "^4.58.0",
32
32
  "typescript": "^5.9.3",
33
33
  "tslib": "^2.8.1"
34
34
  },