solid-intlayer 8.3.0 → 8.3.2
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/chunk-C91j1N6u.js +1 -0
- package/dist/cjs/IntlayerNode.cjs +1 -1
- package/dist/cjs/UI/ContentSelector.cjs +1 -1
- package/dist/cjs/client/IntlayerProvider.cjs +1 -1
- package/dist/cjs/client/format/useIntl.cjs +1 -1
- package/dist/cjs/client/getBrowserLocale.cjs +1 -1
- package/dist/cjs/client/index.cjs +1 -1
- package/dist/cjs/client/t.cjs +1 -1
- package/dist/cjs/client/useContent.cjs +1 -1
- package/dist/cjs/client/useDictionary.cjs +1 -1
- package/dist/cjs/client/useDictionaryAsync.cjs +1 -1
- package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
- package/dist/cjs/client/useIntlayer.cjs +1 -1
- package/dist/cjs/client/useLoadDynamic.cjs +1 -1
- package/dist/cjs/client/useLocale.cjs +1 -1
- package/dist/cjs/client/useLocaleBase.cjs +1 -1
- package/dist/cjs/client/useLocaleStorage.cjs +1 -1
- package/dist/cjs/client/useRewriteURL.cjs +1 -1
- package/dist/cjs/client/useTraduction.cjs +1 -1
- package/dist/cjs/editor/ContentSelectorWrapper.cjs +1 -1
- package/dist/cjs/editor/IntlayerEditorProvider.cjs +1 -1
- package/dist/cjs/editor/contexts/CommunicatorContext.cjs +1 -1
- package/dist/cjs/editor/contexts/ConfigurationContext.cjs +1 -1
- package/dist/cjs/editor/contexts/DictionariesRecordContext.cjs +1 -1
- package/dist/cjs/editor/contexts/EditedContentContext.cjs +1 -1
- package/dist/cjs/editor/contexts/EditorEnabledContext.cjs +1 -1
- package/dist/cjs/editor/contexts/EditorProvider.cjs +1 -1
- package/dist/cjs/editor/contexts/FocusDictionaryContext.cjs +1 -1
- package/dist/cjs/editor/contexts/index.cjs +1 -1
- package/dist/cjs/editor/contexts/useCrossFrameMessageListener.cjs +1 -1
- package/dist/cjs/editor/contexts/useCrossFrameState.cjs +1 -1
- package/dist/cjs/editor/contexts/useCrossURLPathState.cjs +1 -1
- package/dist/cjs/editor/contexts/useIframeClickInterceptor.cjs +1 -1
- package/dist/cjs/editor/index.cjs +1 -1
- package/dist/cjs/editor/useEditedContentRenderer.cjs +1 -1
- package/dist/cjs/getDictionary.cjs +1 -1
- package/dist/cjs/getIntlayer.cjs +1 -1
- package/dist/cjs/html/HTMLProvider.cjs +1 -1
- package/dist/cjs/html/HTMLRenderer.cjs +1 -1
- package/dist/cjs/html/index.cjs +1 -1
- package/dist/cjs/html/types.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/markdown/MarkdownProvider.cjs +1 -1
- package/dist/cjs/markdown/MarkdownRenderer.cjs +1 -1
- package/dist/cjs/markdown/compiler.cjs +1 -1
- package/dist/cjs/markdown/index.cjs +1 -1
- package/dist/cjs/markdown/runtime.cjs +1 -1
- package/dist/cjs/plugins.cjs +1 -1
- package/dist/cjs/solidElement/renderSolidElement.cjs +1 -1
- package/dist/esm/IntlayerNode.mjs +9 -17
- package/dist/esm/UI/ContentSelector.mjs +57 -56
- package/dist/esm/client/IntlayerProvider.mjs +56 -66
- package/dist/esm/client/format/useIntl.mjs +8 -11
- package/dist/esm/client/getBrowserLocale.mjs +79 -95
- package/dist/esm/client/index.mjs +11 -36
- package/dist/esm/client/t.mjs +9 -9
- package/dist/esm/client/useContent.mjs +12 -12
- package/dist/esm/client/useDictionary.mjs +2 -13
- package/dist/esm/client/useDictionaryAsync.mjs +2 -11
- package/dist/esm/client/useDictionaryDynamic.mjs +2 -15
- package/dist/esm/client/useIntlayer.mjs +2 -13
- package/dist/esm/client/useLoadDynamic.mjs +15 -21
- package/dist/esm/client/useLocale.mjs +23 -36
- package/dist/esm/client/useLocaleBase.mjs +14 -18
- package/dist/esm/client/useLocaleStorage.mjs +18 -25
- package/dist/esm/client/useRewriteURL.mjs +14 -18
- package/dist/esm/client/useTraduction.mjs +9 -12
- package/dist/esm/editor/ContentSelectorWrapper.mjs +2 -24
- package/dist/esm/editor/IntlayerEditorProvider.mjs +36 -58
- package/dist/esm/editor/contexts/CommunicatorContext.mjs +29 -28
- package/dist/esm/editor/contexts/ConfigurationContext.mjs +18 -20
- package/dist/esm/editor/contexts/DictionariesRecordContext.mjs +39 -44
- package/dist/esm/editor/contexts/EditedContentContext.mjs +135 -154
- package/dist/esm/editor/contexts/EditorEnabledContext.mjs +19 -27
- package/dist/esm/editor/contexts/EditorProvider.mjs +68 -80
- package/dist/esm/editor/contexts/FocusDictionaryContext.mjs +41 -47
- package/dist/esm/editor/contexts/index.mjs +11 -38
- package/dist/esm/editor/contexts/useCrossFrameMessageListener.mjs +30 -34
- package/dist/esm/editor/contexts/useCrossFrameState.mjs +44 -56
- package/dist/esm/editor/contexts/useCrossURLPathState.mjs +23 -24
- package/dist/esm/editor/contexts/useIframeClickInterceptor.mjs +17 -18
- package/dist/esm/editor/index.mjs +2 -4
- package/dist/esm/editor/useEditedContentRenderer.mjs +15 -28
- package/dist/esm/getDictionary.mjs +2 -16
- package/dist/esm/getIntlayer.mjs +2 -16
- package/dist/esm/html/HTMLProvider.mjs +12 -15
- package/dist/esm/html/HTMLRenderer.mjs +28 -51
- package/dist/esm/html/index.mjs +3 -10
- package/dist/esm/html/types.mjs +0 -1
- package/dist/esm/index.mjs +17 -54
- package/dist/esm/markdown/MarkdownProvider.mjs +33 -41
- package/dist/esm/markdown/MarkdownRenderer.mjs +36 -41
- package/dist/esm/markdown/compiler.mjs +6 -8
- package/dist/esm/markdown/index.mjs +5 -17
- package/dist/esm/markdown/runtime.mjs +21 -40
- package/dist/esm/plugins.mjs +2 -20
- package/dist/esm/solidElement/renderSolidElement.mjs +32 -29
- package/dist/getDictionary-DKdSGWHu.mjs +188 -0
- package/dist/getDictionary-DxYuk0_0.js +1 -0
- package/dist/types/IntlayerNode.d.ts +1 -2
- package/dist/types/client/useDictionary.d.ts +1 -1
- package/dist/types/getDictionary.d.ts +1 -2
- package/dist/types/getIntlayer.d.ts +1 -2
- package/dist/types/plugins.d.ts +15 -10
- package/package.json +11 -11
- package/dist/plugins-FXnYVZH5.mjs +0 -229
- package/dist/plugins-lDhO98Wy.js +0 -1
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { createComponent as s, mergeProps as c, Dynamic as w } from "solid-js/web";
|
|
2
|
-
import M from "@intlayer/config/built";
|
|
3
|
-
import { getHTML as H, splitInsertionTemplate as C } from "@intlayer/core/interpreter";
|
|
4
|
-
import { getMarkdownMetadata as S } from "@intlayer/core/markdown";
|
|
5
|
-
import { HTML_TAGS as b } from "@intlayer/core/transpiler";
|
|
6
|
-
import { NodeType as d } from "@intlayer/types/nodeType";
|
|
7
|
-
import { isSameKeyPath as T } from "@intlayer/core/utils";
|
|
8
|
-
import { createMemo as h } from "solid-js";
|
|
9
|
-
import "@intlayer/core/formatters";
|
|
10
|
-
import { useIntlayerContext as K } from "./esm/client/IntlayerProvider.mjs";
|
|
11
|
-
import "@intlayer/core/localization";
|
|
12
|
-
import "@intlayer/types/locales";
|
|
13
|
-
import { EditedContentRenderer as v } from "./esm/editor/useEditedContentRenderer.mjs";
|
|
14
|
-
import { renderIntlayerNode as f } from "./esm/IntlayerNode.mjs";
|
|
15
|
-
import "./esm/markdown/MarkdownProvider.mjs";
|
|
16
|
-
import { MarkdownMetadataRenderer as I, MarkdownRenderer as R } from "./esm/markdown/MarkdownRenderer.mjs";
|
|
17
|
-
import { renderSolidElement as L } from "./esm/solidElement/renderSolidElement.mjs";
|
|
18
|
-
import "./esm/client/useLocaleStorage.mjs";
|
|
19
|
-
import "./esm/client/useLocaleBase.mjs";
|
|
20
|
-
import { ContentSelector as E } from "./esm/UI/ContentSelector.mjs";
|
|
21
|
-
import "@intlayer/editor";
|
|
22
|
-
import "./esm/editor/contexts/ConfigurationContext.mjs";
|
|
23
|
-
import "./esm/editor/contexts/DictionariesRecordContext.mjs";
|
|
24
|
-
import "./esm/editor/contexts/EditedContentContext.mjs";
|
|
25
|
-
import { useEditorEnabled as N } from "./esm/editor/contexts/EditorEnabledContext.mjs";
|
|
26
|
-
import "./esm/editor/contexts/CommunicatorContext.mjs";
|
|
27
|
-
import { useFocusDictionary as j } from "./esm/editor/contexts/FocusDictionaryContext.mjs";
|
|
28
|
-
const x = (e) => {
|
|
29
|
-
const {
|
|
30
|
-
focusedContent: t,
|
|
31
|
-
setFocusedContent: n
|
|
32
|
-
} = j(), a = h(() => e.keyPath.filter((o) => o.type !== d.Translation)), r = () => n({
|
|
33
|
-
dictionaryKey: e.dictionaryKey,
|
|
34
|
-
keyPath: a()
|
|
35
|
-
}), m = h(() => (t?.dictionaryKey === e.dictionaryKey && (t?.keyPath?.length ?? 0) > 0 && T(t?.keyPath ?? [], a())) ?? !1);
|
|
36
|
-
return s(E, {
|
|
37
|
-
onPress: r,
|
|
38
|
-
get isSelecting() {
|
|
39
|
-
return m();
|
|
40
|
-
},
|
|
41
|
-
get children() {
|
|
42
|
-
return e.children;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}, y = (e) => {
|
|
46
|
-
const {
|
|
47
|
-
enabled: t
|
|
48
|
-
} = N(), {
|
|
49
|
-
disableEditor: n
|
|
50
|
-
} = K();
|
|
51
|
-
return t() && !n ? s(x, c(e, {
|
|
52
|
-
get children() {
|
|
53
|
-
return e.children;
|
|
54
|
-
}
|
|
55
|
-
})) : e.children;
|
|
56
|
-
}, ge = {
|
|
57
|
-
id: "intlayer-node-plugin",
|
|
58
|
-
canHandle: (e) => typeof e == "bigint" || typeof e == "string" || typeof e == "number",
|
|
59
|
-
transform: (e, {
|
|
60
|
-
plugins: t,
|
|
61
|
-
// Removed to avoid next error - Functions cannot be passed directly to Client Components
|
|
62
|
-
...n
|
|
63
|
-
}) => f({
|
|
64
|
-
...n,
|
|
65
|
-
value: n.children,
|
|
66
|
-
children: M?.editor.enabled ? s(y, c(n, {
|
|
67
|
-
get children() {
|
|
68
|
-
return s(v, c(n, {
|
|
69
|
-
get children() {
|
|
70
|
-
return n.children;
|
|
71
|
-
}
|
|
72
|
-
}));
|
|
73
|
-
}
|
|
74
|
-
})) : n.children
|
|
75
|
-
})
|
|
76
|
-
}, fe = {
|
|
77
|
-
id: "solid-node-plugin",
|
|
78
|
-
canHandle: (e) => typeof e == "object" && e?.props !== void 0 || typeof Node < "u" && e instanceof Node,
|
|
79
|
-
transform: (e, {
|
|
80
|
-
plugins: t,
|
|
81
|
-
// Removed to avoid next error - Functions cannot be passed directly to Client Components
|
|
82
|
-
...n
|
|
83
|
-
}) => f({
|
|
84
|
-
...n,
|
|
85
|
-
value: "[[solid-element]]",
|
|
86
|
-
children: s(y, c(n, {
|
|
87
|
-
get children() {
|
|
88
|
-
return typeof Node < "u" && e instanceof Node ? e : L(e);
|
|
89
|
-
}
|
|
90
|
-
}))
|
|
91
|
-
})
|
|
92
|
-
}, D = (e, t) => {
|
|
93
|
-
const n = C(e, t);
|
|
94
|
-
return n.isSimple, n.parts;
|
|
95
|
-
}, ye = {
|
|
96
|
-
id: "insertion-plugin",
|
|
97
|
-
canHandle: (e) => typeof e == "object" && e?.nodeType === d.Insertion,
|
|
98
|
-
transform: (e, t, n) => {
|
|
99
|
-
const a = [...t.keyPath, {
|
|
100
|
-
type: d.Insertion
|
|
101
|
-
}], r = e[d.Insertion];
|
|
102
|
-
return n(r, {
|
|
103
|
-
...t,
|
|
104
|
-
children: r,
|
|
105
|
-
keyPath: a,
|
|
106
|
-
plugins: [{
|
|
107
|
-
id: "insertion-string-plugin",
|
|
108
|
-
canHandle: (o) => typeof o == "string",
|
|
109
|
-
transform: (o, u, g) => {
|
|
110
|
-
const p = g(o, {
|
|
111
|
-
...u,
|
|
112
|
-
children: o,
|
|
113
|
-
plugins: [...(t.plugins ?? []).filter((i) => i.id !== "intlayer-node-plugin")]
|
|
114
|
-
});
|
|
115
|
-
return (i) => {
|
|
116
|
-
const l = D(p, i);
|
|
117
|
-
return g(l, {
|
|
118
|
-
...u,
|
|
119
|
-
plugins: t.plugins,
|
|
120
|
-
children: l
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
}, ...t.plugins ?? []]
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}, A = {
|
|
128
|
-
id: "markdown-string-plugin",
|
|
129
|
-
canHandle: (e) => typeof e == "string",
|
|
130
|
-
transform: (e, t, n) => {
|
|
131
|
-
const {
|
|
132
|
-
plugins: a,
|
|
133
|
-
// Removed to avoid next error - Functions cannot be passed directly to Client Components
|
|
134
|
-
...r
|
|
135
|
-
} = t, m = S(e), u = n(m, {
|
|
136
|
-
plugins: [{
|
|
137
|
-
id: "markdown-metadata-plugin",
|
|
138
|
-
canHandle: (i) => typeof i == "string" || typeof i == "number" || typeof i == "boolean" || !i,
|
|
139
|
-
transform: (i, l) => f({
|
|
140
|
-
...l,
|
|
141
|
-
value: i,
|
|
142
|
-
children: s(y, c(r, {
|
|
143
|
-
get children() {
|
|
144
|
-
return s(I, c(r, {
|
|
145
|
-
get metadataKeyPath() {
|
|
146
|
-
return l.keyPath;
|
|
147
|
-
},
|
|
148
|
-
children: e
|
|
149
|
-
}));
|
|
150
|
-
}
|
|
151
|
-
}))
|
|
152
|
-
})
|
|
153
|
-
}],
|
|
154
|
-
dictionaryKey: r.dictionaryKey,
|
|
155
|
-
keyPath: []
|
|
156
|
-
}), g = (i) => f({
|
|
157
|
-
...t,
|
|
158
|
-
value: e,
|
|
159
|
-
children: s(y, c(r, {
|
|
160
|
-
get children() {
|
|
161
|
-
return s(R, c(r, {
|
|
162
|
-
components: i,
|
|
163
|
-
children: e
|
|
164
|
-
}));
|
|
165
|
-
}
|
|
166
|
-
})),
|
|
167
|
-
additionalProps: {
|
|
168
|
-
metadata: u
|
|
169
|
-
}
|
|
170
|
-
}), p = g();
|
|
171
|
-
return new Proxy(p, {
|
|
172
|
-
get(i, l, P) {
|
|
173
|
-
return l === "value" ? e : l === "metadata" ? u : l === "use" ? (k) => g(k) : Reflect.get(i, l, P);
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
}, pe = {
|
|
178
|
-
id: "markdown-plugin",
|
|
179
|
-
canHandle: (e) => typeof e == "object" && e?.nodeType === d.Markdown,
|
|
180
|
-
transform: (e, t, n) => {
|
|
181
|
-
const a = [...t.keyPath, {
|
|
182
|
-
type: d.Markdown
|
|
183
|
-
}], r = e[d.Markdown];
|
|
184
|
-
return n(r, {
|
|
185
|
-
...t,
|
|
186
|
-
children: r,
|
|
187
|
-
keyPath: a,
|
|
188
|
-
plugins: [A, ...t.plugins ?? []]
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
}, F = () => {
|
|
192
|
-
const e = {};
|
|
193
|
-
for (const t of b)
|
|
194
|
-
e[t] = ({
|
|
195
|
-
children: n,
|
|
196
|
-
...a
|
|
197
|
-
}) => s(w, c({
|
|
198
|
-
component: t
|
|
199
|
-
}, a, {
|
|
200
|
-
children: n
|
|
201
|
-
}));
|
|
202
|
-
return e;
|
|
203
|
-
}, _ = F(), he = {
|
|
204
|
-
id: "html-plugin",
|
|
205
|
-
canHandle: (e) => typeof e == "object" && e?.nodeType === d.HTML,
|
|
206
|
-
transform: (e) => {
|
|
207
|
-
const t = e[d.HTML], n = (m) => {
|
|
208
|
-
const o = {
|
|
209
|
-
..._,
|
|
210
|
-
...m
|
|
211
|
-
};
|
|
212
|
-
return H(t, o);
|
|
213
|
-
}, r = [n()];
|
|
214
|
-
return new Proxy(r, {
|
|
215
|
-
get(m, o, u) {
|
|
216
|
-
return o === "value" ? t : o === "use" ? (g) => n(g) : Reflect.get(m, o, u);
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
export {
|
|
222
|
-
y as C,
|
|
223
|
-
ye as a,
|
|
224
|
-
A as b,
|
|
225
|
-
he as h,
|
|
226
|
-
ge as i,
|
|
227
|
-
pe as m,
|
|
228
|
-
fe as s
|
|
229
|
-
};
|
package/dist/plugins-lDhO98Wy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("solid-js/web"),w=require("@intlayer/config/built"),P=require("@intlayer/core/interpreter"),T=require("@intlayer/core/markdown"),N=require("@intlayer/core/transpiler"),s=require("@intlayer/types/nodeType"),M=require("@intlayer/core/utils"),f=require("solid-js");require("@intlayer/core/formatters");const S=require("./cjs/client/IntlayerProvider.cjs");require("@intlayer/core/localization");require("@intlayer/types/locales");const H=require("./cjs/editor/useEditedContentRenderer.cjs"),m=require("./cjs/IntlayerNode.cjs");require("./cjs/markdown/MarkdownProvider.cjs");const h=require("./cjs/markdown/MarkdownRenderer.cjs"),b=require("./cjs/solidElement/renderSolidElement.cjs");require("./cjs/client/useLocaleStorage.cjs");require("./cjs/client/useLocaleBase.cjs");const I=require("./cjs/UI/ContentSelector.cjs");require("@intlayer/editor");require("./cjs/editor/contexts/ConfigurationContext.cjs");require("./cjs/editor/contexts/DictionariesRecordContext.cjs");require("./cjs/editor/contexts/EditedContentContext.cjs");const K=require("./cjs/editor/contexts/EditorEnabledContext.cjs");require("./cjs/editor/contexts/CommunicatorContext.cjs");const _=require("./cjs/editor/contexts/FocusDictionaryContext.cjs"),E=e=>{const{focusedContent:n,setFocusedContent:t}=_.useFocusDictionary(),l=f.createMemo(()=>e.keyPath.filter(a=>a.type!==s.NodeType.Translation)),o=()=>t({dictionaryKey:e.dictionaryKey,keyPath:l()}),c=f.createMemo(()=>(n?.dictionaryKey===e.dictionaryKey&&(n?.keyPath?.length??0)>0&&M.isSameKeyPath(n?.keyPath??[],l()))??!1);return r.createComponent(I.ContentSelector,{onPress:o,get isSelecting(){return c()},get children(){return e.children}})},y=e=>{const{enabled:n}=K.useEditorEnabled(),{disableEditor:t}=S.useIntlayerContext();return n()&&!t?r.createComponent(E,r.mergeProps(e,{get children(){return e.children}})):e.children},R={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:n,...t})=>m.renderIntlayerNode({...t,value:t.children,children:w?.editor.enabled?r.createComponent(y,r.mergeProps(t,{get children(){return r.createComponent(H.EditedContentRenderer,r.mergeProps(t,{get children(){return t.children}}))}})):t.children})},v={id:"solid-node-plugin",canHandle:e=>typeof e=="object"&&e?.props!==void 0||typeof Node<"u"&&e instanceof Node,transform:(e,{plugins:n,...t})=>m.renderIntlayerNode({...t,value:"[[solid-element]]",children:r.createComponent(y,r.mergeProps(t,{get children(){return typeof Node<"u"&&e instanceof Node?e:b.renderSolidElement(e)}}))})},x=(e,n)=>{const t=P.splitInsertionTemplate(e,n);return t.isSimple,t.parts},L={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===s.NodeType.Insertion,transform:(e,n,t)=>{const l=[...n.keyPath,{type:s.NodeType.Insertion}],o=e[s.NodeType.Insertion];return t(o,{...n,children:o,keyPath:l,plugins:[{id:"insertion-string-plugin",canHandle:a=>typeof a=="string",transform:(a,u,g)=>{const p=g(a,{...u,children:a,plugins:[...(n.plugins??[]).filter(i=>i.id!=="intlayer-node-plugin")]});return i=>{const d=x(p,i);return g(d,{...u,plugins:n.plugins,children:d})}}},...n.plugins??[]]})}},q={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,n,t)=>{const{plugins:l,...o}=n,c=T.getMarkdownMetadata(e),u=t(c,{plugins:[{id:"markdown-metadata-plugin",canHandle:i=>typeof i=="string"||typeof i=="number"||typeof i=="boolean"||!i,transform:(i,d)=>m.renderIntlayerNode({...d,value:i,children:r.createComponent(y,r.mergeProps(o,{get children(){return r.createComponent(h.MarkdownMetadataRenderer,r.mergeProps(o,{get metadataKeyPath(){return d.keyPath},children:e}))}}))})}],dictionaryKey:o.dictionaryKey,keyPath:[]}),g=i=>m.renderIntlayerNode({...n,value:e,children:r.createComponent(y,r.mergeProps(o,{get children(){return r.createComponent(h.MarkdownRenderer,r.mergeProps(o,{components:i,children:e}))}})),additionalProps:{metadata:u}}),p=g();return new Proxy(p,{get(i,d,k){return d==="value"?e:d==="metadata"?u:d==="use"?C=>g(C):Reflect.get(i,d,k)}})}},j={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===s.NodeType.Markdown,transform:(e,n,t)=>{const l=[...n.keyPath,{type:s.NodeType.Markdown}],o=e[s.NodeType.Markdown];return t(o,{...n,children:o,keyPath:l,plugins:[q,...n.plugins??[]]})}},D=()=>{const e={};for(const n of N.HTML_TAGS)e[n]=({children:t,...l})=>r.createComponent(r.Dynamic,r.mergeProps({component:n},l,{children:t}));return e},F=D(),A={id:"html-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===s.NodeType.HTML,transform:e=>{const n=e[s.NodeType.HTML],t=c=>{const a={...F,...c};return P.getHTML(n,a)},o=[t()];return new Proxy(o,{get(c,a,u){return a==="value"?n:a==="use"?g=>t(g):Reflect.get(c,a,u)}})}};exports.ContentSelectorRenderer=y;exports.htmlPlugin=A;exports.insertionPlugin=L;exports.intlayerNodePlugins=R;exports.markdownPlugin=j;exports.markdownStringPlugin=q;exports.solidNodePlugins=v;
|