maz-ui 4.2.1-beta.1 → 4.2.1-beta.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.
@@ -1,4 +1,4 @@
1
- import { ref, watch, onMounted, computed, toValue } from "vue";
1
+ import { ref, nextTick, watch, onMounted, computed, toValue } from "vue";
2
2
  import { MazUiTranslations } from "@maz-ui/translations";
3
3
  function isServer() {
4
4
  return typeof document > "u" || typeof globalThis.window > "u";
@@ -356,9 +356,11 @@ function injectThemeCSS(finalPreset, config) {
356
356
  if (!config.injectFullCSS)
357
357
  return;
358
358
  const fullCSS = generateCSS(finalPreset, cssOptions);
359
- config.strategy === "runtime" ? injectCSS(CSS_ID, fullCSS) : config.strategy === "hybrid" && requestIdleCallback(() => {
359
+ config.strategy === "runtime" ? injectCSS(CSS_ID, fullCSS) : config.strategy === "hybrid" && (typeof requestIdleCallback < "u" ? requestIdleCallback(() => {
360
360
  injectCSS(CSS_ID, fullCSS);
361
- }, { timeout: 100 });
361
+ }, { timeout: 100 }) : nextTick(() => {
362
+ injectCSS(CSS_ID, fullCSS);
363
+ }));
362
364
  }
363
365
  function injectThemeState(app, themeState) {
364
366
  app.provide("mazThemeState", themeState), app.config.globalProperties.$mazThemeState = themeState;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maz-ui",
3
3
  "type": "module",
4
- "version": "4.2.1-beta.1",
4
+ "version": "4.2.1-beta.2",
5
5
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -175,26 +175,25 @@
175
175
  "@floating-ui/vue": "^1.1.9",
176
176
  "chart.js": "^4.5.1",
177
177
  "dayjs": "^1.11.18",
178
- "libphonenumber-js": "^1.12.24",
178
+ "libphonenumber-js": "^1.12.25",
179
179
  "valibot": "^1.1.0",
180
180
  "vue-chartjs": "^5.3.2",
181
- "@maz-ui/cli": "4.2.1-beta.1",
182
181
  "@maz-ui/icons": "4.1.8-beta.1",
182
+ "@maz-ui/themes": "4.2.1-beta.2",
183
183
  "@maz-ui/translations": "4.2.1-beta.0",
184
184
  "@maz-ui/utils": "4.2.1-beta.0",
185
- "@maz-ui/themes": "4.2.1-beta.0"
185
+ "@maz-ui/cli": "4.2.1-beta.2"
186
186
  },
187
187
  "devDependencies": {
188
188
  "@vitejs/plugin-vue": "^6.0.1",
189
- "@vitest/coverage-v8": "^3.2.4",
190
189
  "@vue/compiler-sfc": "^3.5.22",
191
190
  "@vue/test-utils": "^2.4.6",
192
191
  "@vue/tsconfig": "^0.8.1",
193
192
  "autoprefixer": "^10.4.21",
194
193
  "glob": "^11.0.3",
195
- "jsdom": "^27.0.0",
194
+ "jsdom": "^27.0.1",
196
195
  "lightningcss": "^1.30.2",
197
- "nuxt": "^4.1.3",
196
+ "nuxt": "^4.2.0",
198
197
  "postcss": "^8.5.6",
199
198
  "postcss-html": "^1.8.0",
200
199
  "postcss-import": "^16.1.1",
@@ -210,17 +209,16 @@
210
209
  "stylelint-scss": "^6.12.0",
211
210
  "tailwindcss": "^3.4.16",
212
211
  "unplugin-auto-import": "^20.2.0",
213
- "unplugin-vue-components": "^29.1.0",
214
- "vite": "^7.1.10",
212
+ "unplugin-vue-components": "^30.0.0",
213
+ "vite": "^7.1.12",
215
214
  "vite-plugin-dts": "^4.5.4",
216
215
  "vite-plugin-lib-inject-css": "^2.2.2",
217
216
  "vite-svg-loader": "^5.1.0",
218
- "vitest": "^3.2.4",
219
217
  "vue": "^3.5.22",
220
218
  "vue-router": "^4.6.3",
221
- "vue-tsc": "^3.1.1",
222
- "@maz-ui/eslint-config": "4.1.8-beta.1",
223
- "@maz-ui/node": "4.2.1-beta.1"
219
+ "vue-tsc": "^3.1.2",
220
+ "@maz-ui/node": "4.2.1-beta.2",
221
+ "@maz-ui/eslint-config": "4.2.1-beta.2"
224
222
  },
225
223
  "lint-staged": {
226
224
  "*.{js,ts,vue,mjs,mts,cjs,md,yml,json}": "cross-env NODE_ENV=production eslint --fix",