@inzombieland/core 1.18.54 → 1.18.56

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,7 +1,6 @@
1
- import { defineOtpInputPlugin, defineSanitizeHtmlPlugin, defineSanitizeUrlPlugin, defineVarletPlugin } from "./plugins/index.mjs";
1
+ import { defineOtpInputPlugin, defineSanitizeHtmlPlugin, defineSanitizeUrlPlugin } from "./plugins/index.mjs";
2
2
  export function defineVuePlugins(app) {
3
3
  defineOtpInputPlugin(app);
4
4
  defineSanitizeHtmlPlugin(app);
5
5
  defineSanitizeUrlPlugin(app);
6
- defineVarletPlugin(app);
7
6
  }
@@ -1,4 +1,3 @@
1
- import { StyleProvider, Themes, Locale as VarletLocale } from "@varlet/ui";
2
1
  import { setNotifyDefaultOptions, Locale as VantLocale } from "vant";
3
2
  import enUS from "vant/es/locale/lang/en-US";
4
3
  import ruRU from "vant/es/locale/lang/ru-RU";
@@ -39,11 +38,9 @@ function initApplication() {
39
38
  if (theme2?.value === "dark") {
40
39
  document.documentElement.classList.remove("light", "van-theme-light");
41
40
  document.documentElement.classList.add("dark", "van-theme-dark");
42
- StyleProvider(Themes.dark);
43
41
  } else {
44
42
  document.documentElement.classList.remove("dark", "van-theme-dark");
45
43
  document.documentElement.classList.add("light", "van-theme-light");
46
- StyleProvider(null);
47
44
  }
48
45
  },
49
46
  { immediate: true }
@@ -56,11 +53,9 @@ function initApplication() {
56
53
  }
57
54
  if (locale2?.value === "en") {
58
55
  VantLocale.use("en-US", enUS);
59
- VarletLocale.add("en-US", VarletLocale.enUS);
60
56
  }
61
57
  if (locale2?.value === "ru") {
62
58
  VantLocale.use("ru-RU", ruRU);
63
- VarletLocale.add("en-US", VarletLocale.enUS);
64
59
  }
65
60
  const localeCookie = useCookies("locale", { maxAge: 60 * 60 * 24 * 365 });
66
61
  localeCookie.value = locale2?.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inzombieland/core",
3
- "version": "1.18.54",
3
+ "version": "1.18.56",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "main": "./index.mjs",
@@ -10,7 +10,6 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@fingerprintjs/fingerprintjs": "^4.6.2",
13
- "@varlet/ui": "^3.10.5",
14
13
  "@vueuse/core": "^12.8.2",
15
14
  "centrifuge": "^5.5.2",
16
15
  "cookie-es": "^2.0.0",
@@ -1,4 +1,3 @@
1
1
  export * from "./otp-input";
2
2
  export * from "./sanitize-html";
3
3
  export * from "./sanitize-url";
4
- export * from "./varlet-ui";
package/plugins/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
1
  export * from "./otp-input.mjs";
2
2
  export * from "./sanitize-html.mjs";
3
3
  export * from "./sanitize-url.mjs";
4
- export * from "./varlet-ui.mjs";
@@ -1,9 +0,0 @@
1
- import type { createApp } from "vue";
2
- import "@varlet/ui/es/button/style/index";
3
- import "@varlet/ui/es/chip/style/index";
4
- import "@varlet/ui/es/icon/style/index";
5
- import "@varlet/ui/es/link/style/index";
6
- import "@varlet/ui/es/styles/elevation.css";
7
- type App = ReturnType<typeof createApp>;
8
- export declare function defineVarletPlugin(app: App): void;
9
- export {};
@@ -1,12 +0,0 @@
1
- import { Button, Chip, Icon, Link } from "@varlet/ui";
2
- import "@varlet/ui/es/button/style/index";
3
- import "@varlet/ui/es/chip/style/index";
4
- import "@varlet/ui/es/icon/style/index";
5
- import "@varlet/ui/es/link/style/index";
6
- import "@varlet/ui/es/styles/elevation.css";
7
- export function defineVarletPlugin(app) {
8
- app.use(Button);
9
- app.use(Chip);
10
- app.use(Icon);
11
- app.use(Link);
12
- }