vue-intlayer 5.4.2 → 5.5.0

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 e=require("./installIntlayer.cjs"),t=require("./useDictionary.cjs"),l=require("./useIntlayer.cjs"),n=require("./useLocale.cjs");exports.INTLAYER_SYMBOL=e.INTLAYER_SYMBOL;exports.createIntlayerClient=e.createIntlayerClient;exports.installIntlayer=e.installIntlayer;exports.useDictionary=t.useDictionary;exports.useIntlayer=l.useIntlayer;exports.useLocale=n.useLocale;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./installIntlayer.cjs"),l=require("./useDictionary.cjs"),t=require("./useIntlayer.cjs"),n=require("./useLocale.cjs");exports.INTLAYER_SYMBOL=e.INTLAYER_SYMBOL;exports.createIntlayerClient=e.createIntlayerClient;exports.installIntlayer=e.installIntlayer;exports.useDictionary=l.useDictionary;exports.isUpdatableNode=t.isUpdatableNode;exports.useIntlayer=t.useIntlayer;exports.useLocale=n.useLocale;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("../getDictionary.cjs"),l=require("./computedProxy.cjs"),s=require("./installIntlayer.cjs"),a=(c,n)=>{const e=t.inject(s.INTLAYER_SYMBOL),r=t.computed(()=>{var o;return n??((o=e==null?void 0:e.locale)==null?void 0:o.value)}),i=t.computed(()=>u.getDictionary(c,r.value));return l.computedProxy(i)};exports.useDictionary=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),u=require("../getDictionary.cjs"),p=require("./installIntlayer.cjs"),d=require("./useIntlayer.cjs"),f=(s,a)=>{const o=c.inject(p.INTLAYER_SYMBOL),l=c.computed(()=>{var n;return a??((n=o==null?void 0:o.locale)==null?void 0:n.value)}),t=c.reactive({});return c.watchEffect(()=>{const n=u.getDictionary(s,l.value);for(const e in n){const i=t[e],r=n[e];e in t&&d.isUpdatableNode(i)?i.__update(r):t[e]=r}for(const e in t)e in n||delete t[e]}),t};exports.useDictionary=f;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),u=require("../getIntlayer.cjs"),s=require("./computedProxy.cjs"),a=require("./installIntlayer.cjs"),i=(o,r)=>{const e=t.inject(a.INTLAYER_SYMBOL),c=t.computed(()=>{var n;return r??((n=e==null?void 0:e.locale)==null?void 0:n.value)}),l=t.computed(()=>u.getIntlayer(o,c.value));return s.computedProxy(l)};exports.useIntlayer=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),p=require("../getIntlayer.cjs"),d=require("./installIntlayer.cjs"),s=n=>!!n&&typeof n=="object"&&typeof n.__update=="function",f=(n,a)=>{const l=o.inject(d.INTLAYER_SYMBOL),u=o.computed(()=>a??l.locale.value),t=o.reactive({});return o.watchEffect(()=>{const c=p.getIntlayer(n,u.value);for(const e in c){const r=t[e],i=c[e];e in t&&s(r)?r.__update(i):t[e]=i}for(const e in t)e in c||delete t[e]}),t};exports.isUpdatableNode=s;exports.useIntlayer=f;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@intlayer/editor"),e=require("vue"),t=require("./createSharedComposable.cjs"),o=require("./useCrossFrameMessageListener.cjs"),n=t.createSharedComposable(()=>{const a=o.useCrossFrameMessageListener(r.MessageKey.INTLAYER_IFRAME_CLICKED),c=e.getCurrentInstance(),s=()=>{a()};c?(e.onMounted(()=>window.addEventListener("mousedown",s)),e.onBeforeUnmount(()=>window.removeEventListener("mousedown",s))):console.warn("useIframeClickInterceptor must be called within a component setup function")}),i=t.createSharedComposable(()=>{n(),o.useCrossFrameMessageListener(`${r.MessageKey.INTLAYER_IFRAME_CLICKED}/get`,r.mergeIframeClick)});exports.useIframeClickInterceptor=n;exports.useIframeClickMerger=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@intlayer/editor"),e=require("vue"),o=require("./createSharedComposable.cjs"),t=require("./useCrossFrameMessageListener.cjs"),n=o.createSharedComposable(()=>{const a=t.useCrossFrameMessageListener(r.MessageKey.INTLAYER_IFRAME_CLICKED),c=e.getCurrentInstance(),s=()=>{a()};c?(e.onMounted(()=>window.addEventListener("mousedown",s)),e.onBeforeUnmount(()=>window.removeEventListener("mousedown",s))):console.warn("useIframeClickInterceptor must be called within a component setup function")}),i=o.createSharedComposable(()=>{n(),t.useCrossFrameMessageListener(r.MessageKey.INTLAYER_IFRAME_CLICKED,r.mergeIframeClick)});exports.useIframeClickInterceptor=n;exports.useIframeClickMerger=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./client/installIntlayer.cjs"),r=require("./client/useDictionary.cjs"),a=require("./client/useIntlayer.cjs"),l=require("./client/useLocale.cjs"),i=require("./getDictionary.cjs"),o=require("./getIntlayer.cjs"),e=require("./markdown/installIntlayerMarkdown.cjs"),t=require("./plugins.cjs");exports.INTLAYER_SYMBOL=n.INTLAYER_SYMBOL;exports.createIntlayerClient=n.createIntlayerClient;exports.installIntlayer=n.installIntlayer;exports.useDictionary=r.useDictionary;exports.useIntlayer=a.useIntlayer;exports.useLocale=l.useLocale;exports.getDictionary=i.getDictionary;exports.getIntlayer=o.getIntlayer;exports.INTLAYER_MARKDOWN_SYMBOL=e.INTLAYER_MARKDOWN_SYMBOL;exports.createIntlayerMarkdownClient=e.createIntlayerMarkdownClient;exports.installIntlayerMarkdown=e.installIntlayerMarkdown;exports.useMarkdown=e.useMarkdown;exports.intlayerNodePlugins=t.intlayerNodePlugins;exports.markdownPlugin=t.markdownPlugin;exports.markdownStringPlugin=t.markdownStringPlugin;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./client/installIntlayer.cjs"),a=require("./client/useDictionary.cjs"),r=require("./client/useIntlayer.cjs"),l=require("./client/useLocale.cjs"),i=require("./getDictionary.cjs"),o=require("./getIntlayer.cjs"),e=require("./markdown/installIntlayerMarkdown.cjs"),t=require("./plugins.cjs");exports.INTLAYER_SYMBOL=n.INTLAYER_SYMBOL;exports.createIntlayerClient=n.createIntlayerClient;exports.installIntlayer=n.installIntlayer;exports.useDictionary=a.useDictionary;exports.isUpdatableNode=r.isUpdatableNode;exports.useIntlayer=r.useIntlayer;exports.useLocale=l.useLocale;exports.getDictionary=i.getDictionary;exports.getIntlayer=o.getIntlayer;exports.INTLAYER_MARKDOWN_SYMBOL=e.INTLAYER_MARKDOWN_SYMBOL;exports.createIntlayerMarkdownClient=e.createIntlayerMarkdownClient;exports.installIntlayerMarkdown=e.installIntlayerMarkdown;exports.useMarkdown=e.useMarkdown;exports.intlayerNodePlugins=t.intlayerNodePlugins;exports.markdownPlugin=t.markdownPlugin;exports.markdownStringPlugin=t.markdownStringPlugin;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=t=>{const{children:e,value:r,additionalProps:n={}}=t;return{render:()=>typeof e=="function"?e():e,toString:()=>r,value:r,...n}};exports.renderIntlayerNode=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),l=({value:u,children:t,additionalProps:d={}})=>{const e=o.ref(u);let a=typeof t=="function"?()=>t():()=>t;const n={render:()=>(e.value,a()),toString:()=>e.value,get raw(){return e.value},set raw(r){e.value=r},value:void 0,__update(r){a=r.render,this.raw=r.raw},...d};return n.value=n,o.markRaw(n)};exports.renderIntlayerNode=l;
@@ -1,12 +1,13 @@
1
1
  import { INTLAYER_SYMBOL as t, createIntlayerClient as o, installIntlayer as a } from "./installIntlayer.mjs";
2
2
  import { useDictionary as n } from "./useDictionary.mjs";
3
- import { useIntlayer as i } from "./useIntlayer.mjs";
4
- import { useLocale as p } from "./useLocale.mjs";
3
+ import { isUpdatableNode as p, useIntlayer as s } from "./useIntlayer.mjs";
4
+ import { useLocale as m } from "./useLocale.mjs";
5
5
  export {
6
6
  t as INTLAYER_SYMBOL,
7
7
  o as createIntlayerClient,
8
8
  a as installIntlayer,
9
+ p as isUpdatableNode,
9
10
  n as useDictionary,
10
- i as useIntlayer,
11
- p as useLocale
11
+ s as useIntlayer,
12
+ m as useLocale
12
13
  };
@@ -1,16 +1,25 @@
1
- import { inject as i, computed as r } from "vue";
2
- import { getDictionary as p } from "../getDictionary.mjs";
3
- import { computedProxy as a } from "./computedProxy.mjs";
4
- import { INTLAYER_SYMBOL as u } from "./installIntlayer.mjs";
5
- const g = (c, e) => {
6
- const o = i(u), m = r(() => {
7
- var t;
8
- return e ?? ((t = o == null ? void 0 : o.locale) == null ? void 0 : t.value);
9
- }), n = r(
10
- () => p(c, m.value)
11
- );
12
- return a(n);
1
+ import { inject as a, computed as f, reactive as m, watchEffect as l } from "vue";
2
+ import { getDictionary as u } from "../getDictionary.mjs";
3
+ import { INTLAYER_SYMBOL as d } from "./installIntlayer.mjs";
4
+ import { isUpdatableNode as g } from "./useIntlayer.mjs";
5
+ const E = (i, p) => {
6
+ const n = a(d), s = f(() => {
7
+ var e;
8
+ return p ?? ((e = n == null ? void 0 : n.locale) == null ? void 0 : e.value);
9
+ }), t = m({});
10
+ return l(() => {
11
+ const e = u(
12
+ i,
13
+ s.value
14
+ );
15
+ for (const o in e) {
16
+ const c = t[o], r = e[o];
17
+ o in t && g(c) ? c.__update(r) : t[o] = r;
18
+ }
19
+ for (const o in t)
20
+ o in e || delete t[o];
21
+ }), t;
13
22
  };
14
23
  export {
15
- g as useDictionary
24
+ E as useDictionary
16
25
  };
@@ -1,14 +1,19 @@
1
- import { inject as l, computed as e } from "vue";
2
- import { getIntlayer as p } from "../getIntlayer.mjs";
3
- import { computedProxy as a } from "./computedProxy.mjs";
4
- import { INTLAYER_SYMBOL as u } from "./installIntlayer.mjs";
5
- const d = (r, c) => {
6
- const o = l(u), m = e(() => {
7
- var t;
8
- return c ?? ((t = o == null ? void 0 : o.locale) == null ? void 0 : t.value);
9
- }), n = e(() => p(r, m.value));
10
- return a(n);
1
+ import { inject as a, computed as f, reactive as l, watchEffect as u } from "vue";
2
+ import { getIntlayer as m } from "../getIntlayer.mjs";
3
+ import { INTLAYER_SYMBOL as d } from "./installIntlayer.mjs";
4
+ const y = (o) => !!o && typeof o == "object" && typeof o.__update == "function", b = (o, i) => {
5
+ const p = a(d), s = f(() => i ?? p.locale.value), e = l({});
6
+ return u(() => {
7
+ const n = m(o, s.value);
8
+ for (const t in n) {
9
+ const c = e[t], r = n[t];
10
+ t in e && y(c) ? c.__update(r) : e[t] = r;
11
+ }
12
+ for (const t in e)
13
+ t in n || delete e[t];
14
+ }), e;
11
15
  };
12
16
  export {
13
- d as useIntlayer
17
+ y as isUpdatableNode,
18
+ b as useIntlayer
14
19
  };
@@ -13,7 +13,7 @@ const I = n(() => {
13
13
  );
14
14
  }), d = n(() => {
15
15
  I(), r(
16
- `${o.INTLAYER_IFRAME_CLICKED}/get`,
16
+ o.INTLAYER_IFRAME_CLICKED,
17
17
  m
18
18
  );
19
19
  });
@@ -1,25 +1,26 @@
1
1
  import { INTLAYER_SYMBOL as t, createIntlayerClient as o, installIntlayer as n } from "./client/installIntlayer.mjs";
2
2
  import { useDictionary as l } from "./client/useDictionary.mjs";
3
- import { useIntlayer as m } from "./client/useIntlayer.mjs";
4
- import { useLocale as f } from "./client/useLocale.mjs";
5
- import { getDictionary as x } from "./getDictionary.mjs";
6
- import { getIntlayer as s } from "./getIntlayer.mjs";
7
- import { INTLAYER_MARKDOWN_SYMBOL as d, createIntlayerMarkdownClient as g, installIntlayerMarkdown as M, useMarkdown as c } from "./markdown/installIntlayerMarkdown.mjs";
8
- import { intlayerNodePlugins as w, markdownPlugin as L, markdownStringPlugin as N } from "./plugins.mjs";
3
+ import { isUpdatableNode as m, useIntlayer as p } from "./client/useIntlayer.mjs";
4
+ import { useLocale as d } from "./client/useLocale.mjs";
5
+ import { getDictionary as s } from "./getDictionary.mjs";
6
+ import { getIntlayer as I } from "./getIntlayer.mjs";
7
+ import { INTLAYER_MARKDOWN_SYMBOL as g, createIntlayerMarkdownClient as M, installIntlayerMarkdown as c, useMarkdown as k } from "./markdown/installIntlayerMarkdown.mjs";
8
+ import { intlayerNodePlugins as L, markdownPlugin as N, markdownStringPlugin as Y } from "./plugins.mjs";
9
9
  export {
10
- d as INTLAYER_MARKDOWN_SYMBOL,
10
+ g as INTLAYER_MARKDOWN_SYMBOL,
11
11
  t as INTLAYER_SYMBOL,
12
12
  o as createIntlayerClient,
13
- g as createIntlayerMarkdownClient,
14
- x as getDictionary,
15
- s as getIntlayer,
13
+ M as createIntlayerMarkdownClient,
14
+ s as getDictionary,
15
+ I as getIntlayer,
16
16
  n as installIntlayer,
17
- M as installIntlayerMarkdown,
18
- w as intlayerNodePlugins,
19
- L as markdownPlugin,
20
- N as markdownStringPlugin,
17
+ c as installIntlayerMarkdown,
18
+ L as intlayerNodePlugins,
19
+ m as isUpdatableNode,
20
+ N as markdownPlugin,
21
+ Y as markdownStringPlugin,
21
22
  l as useDictionary,
22
- m as useIntlayer,
23
- f as useLocale,
24
- c as useMarkdown
23
+ p as useIntlayer,
24
+ d as useLocale,
25
+ k as useMarkdown
25
26
  };
@@ -1,12 +1,33 @@
1
- const o = (n) => {
2
- const { children: r, value: e, additionalProps: t = {} } = n;
3
- return {
4
- render: () => typeof r == "function" ? r() : r,
5
- toString: () => e,
6
- value: e,
7
- ...t
1
+ import { ref as d, markRaw as v } from "vue";
2
+ const w = ({
3
+ value: o,
4
+ children: t,
5
+ additionalProps: u = {}
6
+ }) => {
7
+ const e = d(o);
8
+ let a = typeof t == "function" ? () => t() : () => t;
9
+ const n = {
10
+ /* component renderer */
11
+ render: () => (e.value, a()),
12
+ /* string interpolation */
13
+ toString: () => e.value,
14
+ /* reactive getter/setter for the primitive value */
15
+ get raw() {
16
+ return e.value;
17
+ },
18
+ set raw(r) {
19
+ e.value = r;
20
+ },
21
+ /* circular ref for the “.value” trick */
22
+ value: void 0,
23
+ /* called by useIntlayer when the dictionary entry changes */
24
+ __update(r) {
25
+ a = r.render, this.raw = r.raw;
26
+ },
27
+ ...u
8
28
  };
29
+ return n.value = n, v(n);
9
30
  };
10
31
  export {
11
- o as renderIntlayerNode
32
+ w as renderIntlayerNode
12
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useDictionary.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIlD,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,UAAU,EAChD,YAAY,CAAC,EACb,SAAS,aAAa,KACrB,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAYnC,CAAC"}
1
+ {"version":3,"file":"useDictionary.d.ts","sourceRoot":"","sources":["../../../src/client/useDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIlD,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,UAAU,EAChD,YAAY,CAAC,EACb,SAAS,aAAa,KACrB,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC,CAmCnC,CAAC"}
@@ -2,10 +2,9 @@ import { LocalesValues } from '@intlayer/config/client';
2
2
  import { DictionaryKeys } from '@intlayer/core';
3
3
  import { IntlayerDictionaryTypesConnector } from 'intlayer';
4
4
  import { DeepTransformContent } from '../plugins';
5
- /**
6
- * On the client side, Hook that picking one dictionary by its key and return the content
7
- *
8
- * If the locale is not provided, it will use the locale from the client context
9
- */
5
+ /** guard utility — true only for objects generated by `renderIntlayerNode()` */
6
+ export declare const isUpdatableNode: (val: unknown) => val is {
7
+ __update: (n: unknown) => void;
8
+ };
10
9
  export declare const useIntlayer: <T extends DictionaryKeys>(key: T, locale?: LocalesValues) => DeepTransformContent<IntlayerDictionaryTypesConnector[T]["content"]>;
11
10
  //# sourceMappingURL=useIntlayer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntlayer.d.ts","sourceRoot":"","sources":["../../../src/client/useIntlayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIlD;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,cAAc,EAClD,KAAK,CAAC,EACN,SAAS,aAAa,KACrB,oBAAoB,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CASrE,CAAC"}
1
+ {"version":3,"file":"useIntlayer.d.ts","sourceRoot":"","sources":["../../../src/client/useIntlayer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAEjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGlD,gFAAgF;AAChF,eAAO,MAAM,eAAe,GAC1B,KAAK,OAAO,KACX,GAAG,IAAI;IAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CAGG,CAAC;AAE9C,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,cAAc,EAClD,KAAK,CAAC,EACN,SAAS,aAAa,KACrB,oBAAoB,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAmCrE,CAAC"}
@@ -1,36 +1,14 @@
1
- import { NodeProps } from '@intlayer/core';
2
1
  import { VNode, VNodeChild } from 'vue';
3
- export type IntlayerNode<T = NodeProps['children'], AdditionalProps = {}> = {
4
- value: T;
2
+ export type IntlayerNode<T = string> = {
3
+ raw: T;
5
4
  render: () => VNode;
6
5
  toString: () => T;
7
- } & AdditionalProps;
8
- interface RenderIntlayerNodeProps<T> {
6
+ value: IntlayerNode<T>;
7
+ __update: (next: IntlayerNode<T>) => void;
8
+ };
9
+ export declare const renderIntlayerNode: <T extends string | number | boolean | null | undefined>({ value, children, additionalProps, }: {
9
10
  value: T;
10
11
  children: VNodeChild | (() => VNodeChild);
11
- additionalProps?: Record<string, any>;
12
- }
13
- /**
14
- * Creates a dual-purpose object that acts both as a Vue component (renders a <span>)
15
- * and a primitive value (returns the raw value when coerced to a string).
16
- *
17
- * This is useful when you want a value that can be used in templates both as:
18
- * - an interpolated string (e.g. `{{ value }}`)
19
- * - a component tag (e.g. `<value />`)
20
- *
21
- * @template T - The type of the primitive text value (string, number, boolean, null, or undefined).
22
- * @param {T} text - The value to render and stringify.
23
- * @returns {{
24
- * render: () => import('vue').VNode,
25
- * toString: () => T
26
- * }} An object with `render()` for Vue and `toString()` for string interpolation.
27
- *
28
- * @example
29
- * const title = dual('Hello');
30
- * // In template:
31
- * // {{ title }} -> "Hello"
32
- * // <title /> -> <span>Hello</span>
33
- */
34
- export declare const renderIntlayerNode: <T extends number | string | boolean | null | undefined>(props: RenderIntlayerNodeProps<T>) => IntlayerNode<T>;
35
- export {};
12
+ additionalProps?: Record<string, unknown>;
13
+ }) => IntlayerNode<T>;
36
14
  //# sourceMappingURL=renderIntlayerNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderIntlayerNode.d.ts","sourceRoot":"","sources":["../../src/renderIntlayerNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAE7C,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,EAAE,eAAe,GAAG,EAAE,IAAI;IAC1E,KAAK,EAAE,CAAC,CAAC;IACT,MAAM,EAAE,MAAM,KAAK,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC,CAAC;CACnB,GAAG,eAAe,CAAC;AAEpB,UAAU,uBAAuB,CAAC,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,UAAU,GAAG,CAAC,MAAM,UAAU,CAAC,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACvC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,kBAAkB,GAC7B,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EAEtD,OAAO,uBAAuB,CAAC,CAAC,CAAC,KAChC,YAAY,CAAC,CAAC,CAkBhB,CAAC"}
1
+ {"version":3,"file":"renderIntlayerNode.d.ts","sourceRoot":"","sources":["../../src/renderIntlayerNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAC;AAEhE,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,MAAM,IAAI;IACrC,GAAG,EAAE,CAAC,CAAC;IACP,MAAM,EAAE,MAAM,KAAK,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,EACtD,uCAIC;IACD,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,UAAU,GAAG,CAAC,MAAM,UAAU,CAAC,CAAC;IAC1C,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC3C,KAAG,YAAY,CAAC,CAAC,CA2DjB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intlayer",
3
- "version": "5.4.2",
3
+ "version": "5.5.0",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Vue applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -70,11 +70,11 @@
70
70
  "dependencies": {
71
71
  "js-cookie": "^3.0.5",
72
72
  "uuid": "^11.1.0",
73
- "@intlayer/config": "5.4.2",
74
- "@intlayer/core": "5.4.2",
75
- "@intlayer/api": "5.4.2",
76
- "@intlayer/dictionaries-entry": "5.4.2",
77
- "@intlayer/editor": "5.4.2"
73
+ "@intlayer/config": "5.5.0",
74
+ "@intlayer/api": "5.5.0",
75
+ "@intlayer/dictionaries-entry": "5.5.0",
76
+ "@intlayer/core": "5.5.0",
77
+ "@intlayer/editor": "5.5.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@types/js-cookie": "^3.0.6",
@@ -89,19 +89,19 @@
89
89
  "typescript": "^5.8.2",
90
90
  "vite": "^6.3.1",
91
91
  "vite-plugin-dts": "^4.5.3",
92
+ "@intlayer/backend": "5.5.0",
92
93
  "@utils/eslint-config": "1.0.4",
93
94
  "@utils/ts-config": "1.0.4",
94
95
  "@utils/ts-config-types": "1.0.4",
95
- "@intlayer/backend": "5.4.2",
96
96
  "@utils/tsup-config": "1.0.4"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "vue": "^3.5.13",
100
- "@intlayer/dictionaries-entry": "5.4.2",
101
- "@intlayer/api": "5.4.2",
102
- "@intlayer/core": "5.4.2",
103
- "@intlayer/config": "5.4.2",
104
- "intlayer": "5.4.2"
100
+ "@intlayer/api": "5.5.0",
101
+ "@intlayer/config": "5.5.0",
102
+ "@intlayer/core": "5.5.0",
103
+ "@intlayer/dictionaries-entry": "5.5.0",
104
+ "intlayer": "5.5.0"
105
105
  },
106
106
  "engines": {
107
107
  "node": ">=14.18"
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),y=n=>new Proxy({},{get(p,u){const o=r.computed(()=>n.value[u]);return new Proxy({},{get(c,e){const t=r.unref(o);return e==="value"?t:t[e]},apply(c,e,t){return r.unref(o).apply(e,t)},getPrototypeOf(){return Object.getPrototypeOf(r.unref(o))}})}});exports.computedProxy=y;
@@ -1,24 +0,0 @@
1
- import { computed as y, unref as o } from "vue";
2
- const a = (n) => new Proxy({}, {
3
- get(c, u) {
4
- const r = y(() => n.value[u]);
5
- return new Proxy(
6
- {},
7
- {
8
- get(p, e) {
9
- const t = o(r);
10
- return e === "value" ? t : t[e];
11
- },
12
- apply(p, e, t) {
13
- return o(r).apply(e, t);
14
- },
15
- getPrototypeOf() {
16
- return Object.getPrototypeOf(o(r));
17
- }
18
- }
19
- );
20
- }
21
- });
22
- export {
23
- a as computedProxy
24
- };
@@ -1,3 +0,0 @@
1
- import { ComputedRef } from 'vue';
2
- export declare const computedProxy: <T extends object>(src: ComputedRef<T>) => T;
3
- //# sourceMappingURL=computedProxy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"computedProxy.d.ts","sourceRoot":"","sources":["../../../src/client/computedProxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAmB,MAAM,KAAK,CAAC;AAEnD,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,EAAE,KAAK,WAAW,CAAC,CAAC,CAAC,KAAG,CAuBlE,CAAC"}