vue-intlayer 7.3.7 → 7.3.9

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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@intlayer/config/built"),i=require("vue");require("@intlayer/core");require("@intlayer/editor");require("@intlayer/types");require("../editor/communicator.cjs");require("./useLocaleStorage.cjs");const y=require("../editor/installIntlayerEditor.cjs"),o=Symbol("intlayer");let r=null;const a=(t,n=!0)=>{if(r)return r;const{defaultLocale:l}=s.internationalization??{},e=i.ref(t??l),c=u=>{e.value=u};return r={locale:i.readonly(e),setLocale:c,isCookieEnabled:n},r},d=(t,n,l=!0)=>{const e=a(n,l);t.provide(o,e),y.installIntlayerEditor(t,e)};exports.INTLAYER_SYMBOL=o;exports.createIntlayerClient=a;exports.installIntlayer=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@intlayer/config/built"),i=require("vue");require("@intlayer/core");require("@intlayer/editor");require("@intlayer/types");require("../editor/communicator.cjs");require("./useLocaleStorage.cjs");const y=require("../editor/installIntlayerEditor.cjs"),o=Symbol("intlayer");let r=null;const a=(e,n=!0)=>{if(r)return r;const{defaultLocale:l}=s.internationalization??{},t=i.ref(e??l),c=u=>{t.value=u};return r={locale:i.readonly(t),setLocale:c,isCookieEnabled:n},r},d=(e,n,l=!0)=>{const t=a(n,l);return e.provide(o,t),y.installIntlayerEditor(e,t),e};exports.INTLAYER_SYMBOL=o;exports.createIntlayerClient=a;exports.installIntlayer=d;
@@ -6,24 +6,24 @@ import "@intlayer/types";
6
6
  import "../editor/communicator.mjs";
7
7
  import "./useLocaleStorage.mjs";
8
8
  import { installIntlayerEditor as s } from "../editor/installIntlayerEditor.mjs";
9
- const p = Symbol("intlayer");
10
- let r = null;
11
- const u = (o, e = !0) => {
12
- if (r) return r;
13
- const { defaultLocale: n } = a.internationalization ?? {}, t = c(o ?? n), i = (l) => {
14
- t.value = l;
9
+ const u = Symbol("intlayer");
10
+ let o = null;
11
+ const f = (t, e = !0) => {
12
+ if (o) return o;
13
+ const { defaultLocale: n } = a.internationalization ?? {}, r = c(t ?? n), i = (l) => {
14
+ r.value = l;
15
15
  };
16
- return r = {
17
- locale: m(t),
16
+ return o = {
17
+ locale: m(r),
18
18
  setLocale: i,
19
19
  isCookieEnabled: e
20
- }, r;
21
- }, S = (o, e, n = !0) => {
22
- const t = u(e, n);
23
- o.provide(p, t), s(o, t);
20
+ }, o;
21
+ }, S = (t, e, n = !0) => {
22
+ const r = f(e, n);
23
+ return t.provide(u, r), s(t, r), t;
24
24
  };
25
25
  export {
26
- p as INTLAYER_SYMBOL,
27
- u as createIntlayerClient,
26
+ u as INTLAYER_SYMBOL,
27
+ f as createIntlayerClient,
28
28
  S as installIntlayer
29
29
  };
@@ -13,4 +13,4 @@ export declare const createIntlayerClient: (locale?: LocalesValues, isCookieEnab
13
13
  /**
14
14
  * Helper to install the Intlayer provider into the app
15
15
  */
16
- export declare const installIntlayer: (app: App, locale?: LocalesValues, isCookieEnabled?: boolean) => void;
16
+ export declare const installIntlayer: (app: App, locale?: LocalesValues, isCookieEnabled?: boolean) => App<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intlayer",
3
- "version": "7.3.7",
3
+ "version": "7.3.9",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Vue applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -87,12 +87,12 @@
87
87
  "typecheck": "vue-tsc --noEmit --project tsconfig.types.json"
88
88
  },
89
89
  "dependencies": {
90
- "@intlayer/api": "7.3.7",
91
- "@intlayer/config": "7.3.7",
92
- "@intlayer/core": "7.3.7",
93
- "@intlayer/editor": "7.3.7",
94
- "@intlayer/types": "7.3.7",
95
- "@intlayer/unmerged-dictionaries-entry": "7.3.7"
90
+ "@intlayer/api": "7.3.9",
91
+ "@intlayer/config": "7.3.9",
92
+ "@intlayer/core": "7.3.9",
93
+ "@intlayer/editor": "7.3.9",
94
+ "@intlayer/types": "7.3.9",
95
+ "@intlayer/unmerged-dictionaries-entry": "7.3.9"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@types/node": "24.10.1",
@@ -111,7 +111,7 @@
111
111
  "vue-tsc": "3.1.5"
112
112
  },
113
113
  "peerDependencies": {
114
- "intlayer": "7.3.7",
114
+ "intlayer": "7.3.9",
115
115
  "vue": ">=3.0.0"
116
116
  },
117
117
  "peerDependenciesMeta": {