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.
- package/dist/cjs/client/index.cjs +1 -1
- package/dist/cjs/client/useDictionary.cjs +1 -1
- package/dist/cjs/client/useIntlayer.cjs +1 -1
- package/dist/cjs/editor/useIframeClickInterceptor.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/renderIntlayerNode.cjs +1 -1
- package/dist/esm/client/index.mjs +5 -4
- package/dist/esm/client/useDictionary.mjs +22 -13
- package/dist/esm/client/useIntlayer.mjs +16 -11
- package/dist/esm/editor/useIframeClickInterceptor.mjs +1 -1
- package/dist/esm/index.mjs +18 -17
- package/dist/esm/renderIntlayerNode.mjs +29 -8
- package/dist/types/client/useDictionary.d.ts.map +1 -1
- package/dist/types/client/useIntlayer.d.ts +4 -5
- package/dist/types/client/useIntlayer.d.ts.map +1 -1
- package/dist/types/renderIntlayerNode.d.ts +8 -30
- package/dist/types/renderIntlayerNode.d.ts.map +1 -1
- package/package.json +12 -12
- package/dist/cjs/client/computedProxy.cjs +0 -1
- package/dist/esm/client/computedProxy.mjs +0 -24
- package/dist/types/client/computedProxy.d.ts +0 -3
- package/dist/types/client/computedProxy.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./installIntlayer.cjs"),
|
|
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
|
|
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
|
|
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"),
|
|
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;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./client/installIntlayer.cjs"),
|
|
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=
|
|
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
|
|
4
|
-
import { useLocale as
|
|
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
|
-
|
|
11
|
-
|
|
11
|
+
s as useIntlayer,
|
|
12
|
+
m as useLocale
|
|
12
13
|
};
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { getDictionary as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
var
|
|
8
|
-
return
|
|
9
|
-
}),
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
24
|
+
E as useDictionary
|
|
16
25
|
};
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { getIntlayer as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
17
|
+
y as isUpdatableNode,
|
|
18
|
+
b as useIntlayer
|
|
14
19
|
};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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 {
|
|
4
|
-
import { useLocale as
|
|
5
|
-
import { getDictionary as
|
|
6
|
-
import { getIntlayer as
|
|
7
|
-
import { INTLAYER_MARKDOWN_SYMBOL as
|
|
8
|
-
import { intlayerNodePlugins as
|
|
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
|
-
|
|
10
|
+
g as INTLAYER_MARKDOWN_SYMBOL,
|
|
11
11
|
t as INTLAYER_SYMBOL,
|
|
12
12
|
o as createIntlayerClient,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
M as createIntlayerMarkdownClient,
|
|
14
|
+
s as getDictionary,
|
|
15
|
+
I as getIntlayer,
|
|
16
16
|
n as installIntlayer,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
N as
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
p as useIntlayer,
|
|
24
|
+
d as useLocale,
|
|
25
|
+
k as useMarkdown
|
|
25
26
|
};
|
|
@@ -1,12 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
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 =
|
|
4
|
-
|
|
2
|
+
export type IntlayerNode<T = string> = {
|
|
3
|
+
raw: T;
|
|
5
4
|
render: () => VNode;
|
|
6
5
|
toString: () => T;
|
|
7
|
-
|
|
8
|
-
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
74
|
-
"@intlayer/
|
|
75
|
-
"@intlayer/
|
|
76
|
-
"@intlayer/
|
|
77
|
-
"@intlayer/editor": "5.
|
|
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/
|
|
101
|
-
"@intlayer/
|
|
102
|
-
"@intlayer/core": "5.
|
|
103
|
-
"@intlayer/
|
|
104
|
-
"intlayer": "5.
|
|
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 +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"}
|