vue-intlayer 7.1.8-canary.0 → 7.1.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.
- package/dist/cjs/editor/communicator.cjs +1 -1
- package/dist/cjs/editor/createSharedComposable.cjs +1 -1
- package/dist/cjs/editor/index.cjs +1 -1
- package/dist/cjs/editor/useCrossFrameMessageListener.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/plugins.cjs +1 -1
- package/dist/esm/editor/communicator.mjs +17 -20
- package/dist/esm/editor/createSharedComposable.mjs +3 -6
- package/dist/esm/editor/index.mjs +6 -4
- package/dist/esm/editor/useCrossFrameMessageListener.mjs +13 -14
- package/dist/esm/index.mjs +28 -22
- package/dist/esm/plugins.mjs +48 -43
- package/dist/types/editor/createSharedComposable.d.ts +1 -1
- package/dist/types/editor/index.d.ts +1 -0
- package/dist/types/editor/installIntlayerEditor.d.ts +2 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@intlayer/config/built"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@intlayer/config/built"),r=require("vue"),l=()=>Math.random().toString(36).slice(2),{editor:n}=u,o={postMessage:()=>null,allowedOrigins:[n?.applicationURL,n?.editorURL,n?.cmsURL],senderId:""};let e=null;const c=Symbol("Communicator"),i=(t={postMessage:()=>null})=>e||(e=r.reactive({...o,...t,senderId:l()}),e),m=(t,s={postMessage:()=>null})=>{const a=i(s);t.provide(c,a)},d=()=>{try{return r.inject(c,o)}catch{return console.warn("useCommunicator: inject can only be used in setup(). Returning default communicator."),o}};exports.createCommunicator=i;exports.installCommunicator=m;exports.useCommunicator=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),c=t=>s.getCurrentScope()?(s.onScopeDispose(t),!0):!1,p=t=>{let r=0,o,e;const n=()=>{r-=1,e&&r<=0&&(e.stop(),o=void 0,e=void 0)};return(...i)=>(r+=1,e||(e=s.effectScope(!0),o=e.run(()=>t(...i))),c(n),o)};exports.createSharedComposable=p;exports.tryOnScopeDispose=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../ContentSelectorWrapper.vue_vue_type_script_setup_true_lang-B4fMFrZy.js"),t=require("./installIntlayerEditor.cjs");exports.ContentSelectorWrapper=e._sfc_main;exports.installIntlayerEditor=t.installIntlayerEditor;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../ContentSelectorWrapper.vue_vue_type_script_setup_true_lang-B4fMFrZy.js"),t=require("./installIntlayerEditor.cjs"),r=require("./useEditor.cjs");exports.ContentSelectorWrapper=e._sfc_main;exports.installIntlayerEditor=t.installIntlayerEditor;exports.useEditor=r.useEditor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@intlayer/editor"),c=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@intlayer/editor"),c=require("vue"),l=require("./communicator.cjs"),o=new Map;let u=!1;const p=(e,t)=>{let s=o.get(e);s||(s=new Set,o.set(e,s)),s.add(t)},f=(e,t)=>{const s=o.get(e);s&&(s.delete(t),s.size===0&&o.delete(e))},m=(e,t)=>{u||window&&(window.addEventListener("message",s=>{const{type:n,data:i,senderId:a}=s.data??{};n&&a!==t&&(!e||e.includes("*")||e.some(r=>d.compareUrls(r,s.origin)))&&o.get(n)?.forEach(r=>{r(i)})}),u=!0)},b=(e,t)=>{const{allowedOrigins:s,postMessage:n,senderId:i}=l.useCommunicator()??{};return m(s,i),t?(p(e,t),c.onScopeDispose(()=>f(e,t))):c.getCurrentInstance()||console.warn("useCrossFrameMessageListener called outside a component without a callback; nothing to listen for."),r=>{n({type:e,data:r,senderId:i})}};exports.useCrossFrameMessageListener=b;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./client/installIntlayer.cjs"),i=require("./client/useDictionary.cjs"),a=require("./client/useDictionaryAsync.cjs"),o=require("./client/useDictionaryDynamic.cjs"),e=require("./client/useIntlayer.cjs"),l=require("./client/useLoadDynamic.cjs"),s=require("./client/useLocale.cjs"),c=require("../ContentSelectorWrapper.vue_vue_type_script_setup_true_lang-B4fMFrZy.js"),u=require("./editor/installIntlayerEditor.cjs"),y=require("./editor/useEditor.cjs"),d=require("./getDictionary.cjs"),_=require("./getIntlayer.cjs"),t=require("./markdown/installIntlayerMarkdown.cjs"),r=require("./plugins.cjs");exports.INTLAYER_SYMBOL=n.INTLAYER_SYMBOL;exports.createIntlayerClient=n.createIntlayerClient;exports.installIntlayer=n.installIntlayer;exports.useDictionary=i.useDictionary;exports.useDictionaryAsync=a.useDictionaryAsync;exports.useDictionaryDynamic=o.useDictionaryDynamic;exports.atPath=e.atPath;exports.isComponentLike=e.isComponentLike;exports.isObjectLike=e.isObjectLike;exports.toComponent=e.toComponent;exports.useIntlayer=e.useIntlayer;exports.useLoadDynamic=l.useLoadDynamic;exports.useLocale=s.useLocale;exports.ContentSelectorWrapper=c._sfc_main;exports.installIntlayerEditor=u.installIntlayerEditor;exports.useEditor=y.useEditor;exports.getDictionary=d.getDictionary;exports.getIntlayer=_.getIntlayer;exports.INTLAYER_MARKDOWN_SYMBOL=t.INTLAYER_MARKDOWN_SYMBOL;exports.createIntlayerMarkdownClient=t.createIntlayerMarkdownClient;exports.installIntlayerMarkdown=t.installIntlayerMarkdown;exports.useMarkdown=t.useMarkdown;exports.intlayerNodePlugins=r.intlayerNodePlugins;exports.markdownPlugin=r.markdownPlugin;exports.markdownStringPlugin=r.markdownStringPlugin;
|
package/dist/cjs/plugins.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("@intlayer/core"),i=require("@intlayer/types"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("@intlayer/core"),i=require("@intlayer/types"),u=require("vue"),l=require("../ContentSelectorWrapper.vue_vue_type_script_setup_true_lang-B4fMFrZy.js");require("./editor/installIntlayerEditor.cjs");require("@intlayer/config/built");require("@intlayer/editor");require("./editor/communicator.cjs");require("@intlayer/unmerged-dictionaries-entry");require("./client/useLocaleStorage.cjs");const k=require("./markdown/installIntlayerMarkdown.cjs"),o=require("./renderIntlayerNode.cjs"),m={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{children:n,...t})=>o.renderIntlayerNode({...t,value:n,children:()=>u.h(l._sfc_main,{dictionaryKey:t.dictionaryKey,keyPath:t.keyPath},{default:()=>n})})},y={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,n,t)=>{const{plugins:d,...a}=n,s=p.getMarkdownMetadata(e),c=t(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:r=>typeof r=="string"||typeof r=="number"||typeof r=="boolean"||!r,transform:(r,g)=>o.renderIntlayerNode({...g,value:r,children:e})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return o.renderIntlayerNode({...n,value:e,children:()=>u.h(l._sfc_main,{dictionaryKey:a.dictionaryKey,keyPath:a.keyPath},{default:()=>{const{renderMarkdown:r}=k.useMarkdown();return r(e)}}),additionalProps:{metadata:c}})}},P={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===i.NodeType.Markdown,transform:(e,n,t)=>{const d=[...n.keyPath,{type:i.NodeType.Markdown}],a=e[i.NodeType.Markdown];return t(a,{...n,children:a,keyPath:d,plugins:[y,...n.plugins??[]]})}};exports.intlayerNodePlugins=m;exports.markdownPlugin=P;exports.markdownStringPlugin=y;
|
|
@@ -1,36 +1,33 @@
|
|
|
1
1
|
import i from "@intlayer/config/built";
|
|
2
|
-
import { inject as a, reactive as
|
|
3
|
-
const
|
|
2
|
+
import { inject as a, reactive as u } from "vue";
|
|
3
|
+
const l = () => Math.random().toString(36).slice(2), { editor: o } = i, e = {
|
|
4
4
|
postMessage: () => null,
|
|
5
5
|
allowedOrigins: [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
o?.applicationURL,
|
|
7
|
+
o?.editorURL,
|
|
8
|
+
o?.cmsURL
|
|
9
9
|
],
|
|
10
10
|
senderId: ""
|
|
11
11
|
};
|
|
12
|
-
let
|
|
13
|
-
const r = Symbol("Communicator"), m = (
|
|
14
|
-
...
|
|
15
|
-
...
|
|
16
|
-
senderId:
|
|
17
|
-
}),
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
},
|
|
12
|
+
let n = null;
|
|
13
|
+
const r = Symbol("Communicator"), m = (t = { postMessage: () => null }) => n || (n = u({
|
|
14
|
+
...e,
|
|
15
|
+
...t,
|
|
16
|
+
senderId: l()
|
|
17
|
+
}), n), g = (t, c = { postMessage: () => null }) => {
|
|
18
|
+
const s = m(c);
|
|
19
|
+
t.provide(r, s);
|
|
20
|
+
}, C = () => {
|
|
21
21
|
try {
|
|
22
|
-
return a(r,
|
|
22
|
+
return a(r, e);
|
|
23
23
|
} catch {
|
|
24
24
|
return console.warn(
|
|
25
25
|
"useCommunicator: inject can only be used in setup(). Returning default communicator."
|
|
26
|
-
),
|
|
27
|
-
postMessage: () => null,
|
|
28
|
-
senderId: ""
|
|
29
|
-
};
|
|
26
|
+
), e;
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
29
|
export {
|
|
33
30
|
m as createCommunicator,
|
|
34
31
|
g as installCommunicator,
|
|
35
|
-
|
|
32
|
+
C as useCommunicator
|
|
36
33
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { effectScope as
|
|
2
|
-
|
|
3
|
-
return c() ? (i(t), !0) : !1;
|
|
4
|
-
}
|
|
5
|
-
const a = (t) => {
|
|
1
|
+
import { effectScope as c, getCurrentScope as n, onScopeDispose as i } from "vue";
|
|
2
|
+
const u = (t) => n() ? (i(t), !0) : !1, a = (t) => {
|
|
6
3
|
let r = 0, o, e;
|
|
7
4
|
const s = () => {
|
|
8
5
|
r -= 1, e && r <= 0 && (e.stop(), o = void 0, e = void 0);
|
|
9
6
|
};
|
|
10
|
-
return (...
|
|
7
|
+
return (...p) => (r += 1, e || (e = c(!0), o = e.run(() => t(...p))), u(s), o);
|
|
11
8
|
};
|
|
12
9
|
export {
|
|
13
10
|
a as createSharedComposable,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { installIntlayerEditor as
|
|
1
|
+
import { _ as t } from "../../ContentSelectorWrapper.vue_vue_type_script_setup_true_lang-HcQvp9bv.mjs";
|
|
2
|
+
import { installIntlayerEditor as p } from "./installIntlayerEditor.mjs";
|
|
3
|
+
import { useEditor as l } from "./useEditor.mjs";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
t as ContentSelectorWrapper,
|
|
6
|
+
p as installIntlayerEditor,
|
|
7
|
+
l as useEditor
|
|
6
8
|
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { compareUrls as u } from "@intlayer/editor";
|
|
2
|
-
import { onScopeDispose as
|
|
3
|
-
import { useCommunicator as
|
|
2
|
+
import { onScopeDispose as d, getCurrentInstance as p } from "vue";
|
|
3
|
+
import { useCommunicator as f } from "./communicator.mjs";
|
|
4
4
|
const o = /* @__PURE__ */ new Map();
|
|
5
5
|
let c = !1;
|
|
6
|
-
|
|
6
|
+
const m = (e, t) => {
|
|
7
7
|
let s = o.get(e);
|
|
8
8
|
s || (s = /* @__PURE__ */ new Set(), o.set(e, s)), s.add(t);
|
|
9
|
-
}
|
|
10
|
-
function l(e, t) {
|
|
9
|
+
}, l = (e, t) => {
|
|
11
10
|
const s = o.get(e);
|
|
12
11
|
s && (s.delete(t), s.size === 0 && o.delete(e));
|
|
13
|
-
}
|
|
14
|
-
function w(e, t) {
|
|
12
|
+
}, w = (e, t) => {
|
|
15
13
|
c || window && (window.addEventListener("message", (s) => {
|
|
16
|
-
const { type: n, data:
|
|
17
|
-
n &&
|
|
14
|
+
const { type: n, data: a, senderId: i } = s.data ?? {};
|
|
15
|
+
n && i !== t && (!e || e.includes("*") || e.some((r) => u(r, s.origin))) && o.get(n)?.forEach((r) => {
|
|
16
|
+
r(a);
|
|
17
|
+
});
|
|
18
18
|
}), c = !0);
|
|
19
|
-
}
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
return w(s, i), t ? (m(e, t), f(() => l(e, t))) : d() || console.warn(
|
|
19
|
+
}, L = (e, t) => {
|
|
20
|
+
const { allowedOrigins: s, postMessage: n, senderId: a } = f() ?? {};
|
|
21
|
+
return w(s, a), t ? (m(e, t), d(() => l(e, t))) : p() || console.warn(
|
|
23
22
|
"useCrossFrameMessageListener called outside a component without a callback; nothing to listen for."
|
|
24
23
|
), (r) => {
|
|
25
|
-
n({ type: e, data: r, senderId:
|
|
24
|
+
n({ type: e, data: r, senderId: a });
|
|
26
25
|
};
|
|
27
26
|
};
|
|
28
27
|
export {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,35 +1,41 @@
|
|
|
1
1
|
import { INTLAYER_SYMBOL as o, createIntlayerClient as t, installIntlayer as n } from "./client/installIntlayer.mjs";
|
|
2
2
|
import { useDictionary as i } from "./client/useDictionary.mjs";
|
|
3
3
|
import { useDictionaryAsync as m } from "./client/useDictionaryAsync.mjs";
|
|
4
|
-
import { useDictionaryDynamic as
|
|
5
|
-
import { atPath as
|
|
6
|
-
import { useLoadDynamic as
|
|
4
|
+
import { useDictionaryDynamic as s } from "./client/useDictionaryDynamic.mjs";
|
|
5
|
+
import { atPath as f, isComponentLike as x, isObjectLike as c, toComponent as u, useIntlayer as d } from "./client/useIntlayer.mjs";
|
|
6
|
+
import { useLoadDynamic as L } from "./client/useLoadDynamic.mjs";
|
|
7
7
|
import { useLocale as D } from "./client/useLocale.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { _ as M } from "../ContentSelectorWrapper.vue_vue_type_script_setup_true_lang-HcQvp9bv.mjs";
|
|
9
|
+
import { installIntlayerEditor as C } from "./editor/installIntlayerEditor.mjs";
|
|
10
|
+
import { useEditor as E } from "./editor/useEditor.mjs";
|
|
11
|
+
import { getDictionary as O } from "./getDictionary.mjs";
|
|
12
|
+
import { getIntlayer as S } from "./getIntlayer.mjs";
|
|
13
|
+
import { INTLAYER_MARKDOWN_SYMBOL as _, createIntlayerMarkdownClient as R, installIntlayerMarkdown as B, useMarkdown as T } from "./markdown/installIntlayerMarkdown.mjs";
|
|
14
|
+
import { intlayerNodePlugins as b, markdownPlugin as h, markdownStringPlugin as j } from "./plugins.mjs";
|
|
12
15
|
export {
|
|
13
|
-
|
|
16
|
+
M as ContentSelectorWrapper,
|
|
17
|
+
_ as INTLAYER_MARKDOWN_SYMBOL,
|
|
14
18
|
o as INTLAYER_SYMBOL,
|
|
15
|
-
|
|
19
|
+
f as atPath,
|
|
16
20
|
t as createIntlayerClient,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
R as createIntlayerMarkdownClient,
|
|
22
|
+
O as getDictionary,
|
|
23
|
+
S as getIntlayer,
|
|
20
24
|
n as installIntlayer,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
x as
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
C as installIntlayerEditor,
|
|
26
|
+
B as installIntlayerMarkdown,
|
|
27
|
+
b as intlayerNodePlugins,
|
|
28
|
+
x as isComponentLike,
|
|
29
|
+
c as isObjectLike,
|
|
30
|
+
h as markdownPlugin,
|
|
31
|
+
j as markdownStringPlugin,
|
|
27
32
|
u as toComponent,
|
|
28
33
|
i as useDictionary,
|
|
29
34
|
m as useDictionaryAsync,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
d as
|
|
35
|
+
s as useDictionaryDynamic,
|
|
36
|
+
E as useEditor,
|
|
37
|
+
d as useIntlayer,
|
|
38
|
+
L as useLoadDynamic,
|
|
33
39
|
D as useLocale,
|
|
34
|
-
|
|
40
|
+
T as useMarkdown
|
|
35
41
|
};
|
package/dist/esm/plugins.mjs
CHANGED
|
@@ -1,91 +1,96 @@
|
|
|
1
|
-
import { getMarkdownMetadata as
|
|
2
|
-
import { NodeType as
|
|
1
|
+
import { getMarkdownMetadata as c } from "@intlayer/core";
|
|
2
|
+
import { NodeType as e } from "@intlayer/types";
|
|
3
3
|
import { h as y } from "vue";
|
|
4
|
-
import { _ as
|
|
4
|
+
import { _ as m } from "../ContentSelectorWrapper.vue_vue_type_script_setup_true_lang-HcQvp9bv.mjs";
|
|
5
5
|
import "./editor/installIntlayerEditor.mjs";
|
|
6
|
-
import
|
|
6
|
+
import "@intlayer/config/built";
|
|
7
|
+
import "@intlayer/editor";
|
|
8
|
+
import "./editor/communicator.mjs";
|
|
9
|
+
import "@intlayer/unmerged-dictionaries-entry";
|
|
10
|
+
import "./client/useLocaleStorage.mjs";
|
|
11
|
+
import { useMarkdown as u } from "./markdown/installIntlayerMarkdown.mjs";
|
|
7
12
|
import { renderIntlayerNode as i } from "./renderIntlayerNode.mjs";
|
|
8
|
-
const
|
|
13
|
+
const x = {
|
|
9
14
|
id: "intlayer-node-plugin",
|
|
10
|
-
canHandle: (
|
|
11
|
-
transform: (
|
|
12
|
-
...
|
|
13
|
-
value:
|
|
15
|
+
canHandle: (t) => typeof t == "bigint" || typeof t == "string" || typeof t == "number",
|
|
16
|
+
transform: (t, { children: n, ...a }) => i({
|
|
17
|
+
...a,
|
|
18
|
+
value: n,
|
|
14
19
|
children: () => y(
|
|
15
20
|
// EditorSelectorRenderer, // Maximum stack size exceeded
|
|
16
|
-
|
|
21
|
+
m,
|
|
17
22
|
{
|
|
18
|
-
dictionaryKey:
|
|
19
|
-
keyPath:
|
|
23
|
+
dictionaryKey: a.dictionaryKey,
|
|
24
|
+
keyPath: a.keyPath
|
|
20
25
|
},
|
|
21
26
|
{
|
|
22
|
-
default: () =>
|
|
27
|
+
default: () => n
|
|
23
28
|
}
|
|
24
29
|
)
|
|
25
30
|
})
|
|
26
31
|
}, f = {
|
|
27
32
|
id: "markdown-string-plugin",
|
|
28
|
-
canHandle: (
|
|
29
|
-
transform: (
|
|
33
|
+
canHandle: (t) => typeof t == "string",
|
|
34
|
+
transform: (t, n, a) => {
|
|
30
35
|
const {
|
|
31
36
|
plugins: d,
|
|
32
37
|
// Removed to avoid next error - Functions cannot be passed directly to Client Components
|
|
33
|
-
...
|
|
34
|
-
} =
|
|
38
|
+
...o
|
|
39
|
+
} = n, l = c(t), p = a(l, {
|
|
35
40
|
plugins: [{
|
|
36
41
|
id: "markdown-metadata-plugin",
|
|
37
|
-
canHandle: (
|
|
38
|
-
transform: (
|
|
39
|
-
...
|
|
40
|
-
value:
|
|
41
|
-
children:
|
|
42
|
+
canHandle: (r) => typeof r == "string" || typeof r == "number" || typeof r == "boolean" || !r,
|
|
43
|
+
transform: (r, s) => i({
|
|
44
|
+
...s,
|
|
45
|
+
value: r,
|
|
46
|
+
children: t
|
|
42
47
|
})
|
|
43
48
|
}],
|
|
44
|
-
dictionaryKey:
|
|
49
|
+
dictionaryKey: o.dictionaryKey,
|
|
45
50
|
keyPath: []
|
|
46
51
|
});
|
|
47
52
|
return i({
|
|
48
|
-
...
|
|
49
|
-
value:
|
|
53
|
+
...n,
|
|
54
|
+
value: t,
|
|
50
55
|
children: () => y(
|
|
51
56
|
// EditorSelectorRenderer, // Maximum stack size exceeded
|
|
52
|
-
|
|
57
|
+
m,
|
|
53
58
|
{
|
|
54
|
-
dictionaryKey:
|
|
55
|
-
keyPath:
|
|
59
|
+
dictionaryKey: o.dictionaryKey,
|
|
60
|
+
keyPath: o.keyPath
|
|
56
61
|
},
|
|
57
62
|
{
|
|
58
63
|
default: () => {
|
|
59
|
-
const { renderMarkdown:
|
|
60
|
-
return
|
|
64
|
+
const { renderMarkdown: r } = u();
|
|
65
|
+
return r(t);
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
),
|
|
64
69
|
additionalProps: {
|
|
65
|
-
metadata:
|
|
70
|
+
metadata: p
|
|
66
71
|
}
|
|
67
72
|
});
|
|
68
73
|
}
|
|
69
|
-
},
|
|
74
|
+
}, I = {
|
|
70
75
|
id: "markdown-plugin",
|
|
71
|
-
canHandle: (
|
|
72
|
-
transform: (
|
|
76
|
+
canHandle: (t) => typeof t == "object" && t?.nodeType === e.Markdown,
|
|
77
|
+
transform: (t, n, a) => {
|
|
73
78
|
const d = [
|
|
74
|
-
...
|
|
79
|
+
...n.keyPath,
|
|
75
80
|
{
|
|
76
|
-
type:
|
|
81
|
+
type: e.Markdown
|
|
77
82
|
}
|
|
78
|
-
],
|
|
79
|
-
return
|
|
80
|
-
...
|
|
81
|
-
children:
|
|
83
|
+
], o = t[e.Markdown];
|
|
84
|
+
return a(o, {
|
|
85
|
+
...n,
|
|
86
|
+
children: o,
|
|
82
87
|
keyPath: d,
|
|
83
|
-
plugins: [f, ...
|
|
88
|
+
plugins: [f, ...n.plugins ?? []]
|
|
84
89
|
});
|
|
85
90
|
}
|
|
86
91
|
};
|
|
87
92
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
93
|
+
x as intlayerNodePlugins,
|
|
94
|
+
I as markdownPlugin,
|
|
90
95
|
f as markdownStringPlugin
|
|
91
96
|
};
|
|
@@ -4,7 +4,7 @@ export type SharedComposableReturn<T extends AnyFn = AnyFn> = T;
|
|
|
4
4
|
* Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const tryOnScopeDispose: (fn: () => void) => boolean;
|
|
8
8
|
/**
|
|
9
9
|
* Make a composable function usable with multiple Vue instances.
|
|
10
10
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { IntlayerProvider } from '../client';
|
|
2
3
|
/**
|
|
3
4
|
* Vue-side replacement for the former <IntlayerEditorProvider> React component.
|
|
4
5
|
*
|
|
@@ -11,4 +12,4 @@ import { App } from 'vue';
|
|
|
11
12
|
* </script>
|
|
12
13
|
* ```
|
|
13
14
|
*/
|
|
14
|
-
export declare const installIntlayerEditor: (app: App, localeProvider?:
|
|
15
|
+
export declare const installIntlayerEditor: (app: App, localeProvider?: IntlayerProvider) => void;
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-intlayer",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Vue applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
"typecheck": "vue-tsc --noEmit --project tsconfig.types.json"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@intlayer/api": "7.1.
|
|
90
|
-
"@intlayer/config": "7.1.
|
|
91
|
-
"@intlayer/core": "7.1.
|
|
92
|
-
"@intlayer/editor": "7.1.
|
|
93
|
-
"@intlayer/types": "7.1.
|
|
94
|
-
"@intlayer/unmerged-dictionaries-entry": "7.1.
|
|
89
|
+
"@intlayer/api": "7.1.9",
|
|
90
|
+
"@intlayer/config": "7.1.9",
|
|
91
|
+
"@intlayer/core": "7.1.9",
|
|
92
|
+
"@intlayer/editor": "7.1.9",
|
|
93
|
+
"@intlayer/types": "7.1.9",
|
|
94
|
+
"@intlayer/unmerged-dictionaries-entry": "7.1.9"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@types/node": "24.10.1",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"vue-tsc": "3.1.1"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
|
-
"intlayer": "7.1.
|
|
113
|
+
"intlayer": "7.1.9",
|
|
114
114
|
"vue": ">=3.0.0"
|
|
115
115
|
},
|
|
116
116
|
"peerDependenciesMeta": {
|