solid-intlayer 5.7.8 → 5.8.1-canary.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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/IntlayerNode.cjs +1 -1
  3. package/dist/cjs/UI/ContentSelector.cjs +1 -1
  4. package/dist/cjs/client/IntlayerProvider.cjs +1 -1
  5. package/dist/cjs/client/getBrowserLocale.cjs +1 -1
  6. package/dist/cjs/client/useDictionary.cjs +1 -1
  7. package/dist/cjs/client/useDictionaryAsync.cjs +1 -1
  8. package/dist/cjs/client/useDictionaryDynamic.cjs +1 -1
  9. package/dist/cjs/client/useIntlayer.cjs +1 -1
  10. package/dist/cjs/client/useLocale.cjs +1 -1
  11. package/dist/cjs/editor/ContentSelectorWrapper.cjs +1 -1
  12. package/dist/cjs/editor/IntlayerEditorProvider.cjs +1 -1
  13. package/dist/cjs/editor/contexts/CommunicatorContext.cjs +1 -1
  14. package/dist/cjs/editor/contexts/EditedContentContext.cjs +1 -1
  15. package/dist/cjs/editor/contexts/EditorProvider.cjs +1 -1
  16. package/dist/cjs/editor/contexts/useCrossFrameMessageListener.cjs +1 -1
  17. package/dist/cjs/plugins.cjs +1 -1
  18. package/dist/cjs/solidElement/renderSolidElement.cjs +1 -1
  19. package/dist/esm/IntlayerNode.mjs +9 -9
  20. package/dist/esm/UI/ContentSelector.mjs +30 -32
  21. package/dist/esm/client/IntlayerProvider.mjs +38 -42
  22. package/dist/esm/client/getBrowserLocale.mjs +41 -42
  23. package/dist/esm/client/useDictionary.mjs +9 -10
  24. package/dist/esm/client/useDictionaryAsync.mjs +8 -9
  25. package/dist/esm/client/useDictionaryDynamic.mjs +11 -12
  26. package/dist/esm/client/useIntlayer.mjs +8 -8
  27. package/dist/esm/client/useLocale.mjs +18 -19
  28. package/dist/esm/editor/ContentSelectorWrapper.mjs +22 -25
  29. package/dist/esm/editor/IntlayerEditorProvider.mjs +19 -20
  30. package/dist/esm/editor/contexts/CommunicatorContext.mjs +16 -16
  31. package/dist/esm/editor/contexts/EditedContentContext.mjs +81 -85
  32. package/dist/esm/editor/contexts/EditorProvider.mjs +7 -7
  33. package/dist/esm/editor/contexts/useCrossFrameMessageListener.mjs +16 -16
  34. package/dist/esm/plugins.mjs +9 -9
  35. package/dist/esm/solidElement/renderSolidElement.mjs +13 -14
  36. package/dist/types/client/useDictionaryAsync.d.ts +1 -1
  37. package/dist/types/client/useDictionaryAsync.d.ts.map +1 -1
  38. package/dist/web-Ch-xTpJg.js +1 -0
  39. package/dist/web-mv0y5CK4.mjs +567 -0
  40. package/package.json +14 -14
  41. package/dist/web-BFg6-54-.mjs +0 -443
  42. package/dist/web-qH6jV2Kc.js +0 -1
@@ -0,0 +1,567 @@
1
+ import { sharedConfig as u, createMemo as E, createRenderEffect as m, splitProps as x, untrack as $ } from "solid-js";
2
+ const L = [
3
+ "allowfullscreen",
4
+ "async",
5
+ "alpha",
6
+ "autofocus",
7
+ "autoplay",
8
+ "checked",
9
+ "controls",
10
+ "default",
11
+ "disabled",
12
+ "formnovalidate",
13
+ "hidden",
14
+ "indeterminate",
15
+ "inert",
16
+ "ismap",
17
+ "loop",
18
+ "multiple",
19
+ "muted",
20
+ "nomodule",
21
+ "novalidate",
22
+ "open",
23
+ "playsinline",
24
+ "readonly",
25
+ "required",
26
+ "reversed",
27
+ "seamless",
28
+ "selected",
29
+ "adauctionheaders",
30
+ "browsingtopics",
31
+ "credentialless",
32
+ "defaultchecked",
33
+ "defaultmuted",
34
+ "defaultselected",
35
+ "defer",
36
+ "disablepictureinpicture",
37
+ "disableremoteplayback",
38
+ "preservespitch",
39
+ "shadowrootclonable",
40
+ "shadowrootcustomelementregistry",
41
+ "shadowrootdelegatesfocus",
42
+ "shadowrootserializable",
43
+ "sharedstoragewritable"
44
+ ], I = /* @__PURE__ */ new Set([
45
+ "className",
46
+ "value",
47
+ "readOnly",
48
+ "noValidate",
49
+ "formNoValidate",
50
+ "isMap",
51
+ "noModule",
52
+ "playsInline",
53
+ "adAuctionHeaders",
54
+ "allowFullscreen",
55
+ "browsingTopics",
56
+ "defaultChecked",
57
+ "defaultMuted",
58
+ "defaultSelected",
59
+ "disablePictureInPicture",
60
+ "disableRemotePlayback",
61
+ "preservesPitch",
62
+ "shadowRootClonable",
63
+ "shadowRootCustomElementRegistry",
64
+ "shadowRootDelegatesFocus",
65
+ "shadowRootSerializable",
66
+ "sharedStorageWritable",
67
+ ...L
68
+ ]), O = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), k = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
69
+ className: "class",
70
+ htmlFor: "for"
71
+ }), D = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
72
+ class: "className",
73
+ novalidate: {
74
+ $: "noValidate",
75
+ FORM: 1
76
+ },
77
+ formnovalidate: {
78
+ $: "formNoValidate",
79
+ BUTTON: 1,
80
+ INPUT: 1
81
+ },
82
+ ismap: {
83
+ $: "isMap",
84
+ IMG: 1
85
+ },
86
+ nomodule: {
87
+ $: "noModule",
88
+ SCRIPT: 1
89
+ },
90
+ playsinline: {
91
+ $: "playsInline",
92
+ VIDEO: 1
93
+ },
94
+ readonly: {
95
+ $: "readOnly",
96
+ INPUT: 1,
97
+ TEXTAREA: 1
98
+ },
99
+ adauctionheaders: {
100
+ $: "adAuctionHeaders",
101
+ IFRAME: 1
102
+ },
103
+ allowfullscreen: {
104
+ $: "allowFullscreen",
105
+ IFRAME: 1
106
+ },
107
+ browsingtopics: {
108
+ $: "browsingTopics",
109
+ IMG: 1
110
+ },
111
+ defaultchecked: {
112
+ $: "defaultChecked",
113
+ INPUT: 1
114
+ },
115
+ defaultmuted: {
116
+ $: "defaultMuted",
117
+ AUDIO: 1,
118
+ VIDEO: 1
119
+ },
120
+ defaultselected: {
121
+ $: "defaultSelected",
122
+ OPTION: 1
123
+ },
124
+ disablepictureinpicture: {
125
+ $: "disablePictureInPicture",
126
+ VIDEO: 1
127
+ },
128
+ disableremoteplayback: {
129
+ $: "disableRemotePlayback",
130
+ AUDIO: 1,
131
+ VIDEO: 1
132
+ },
133
+ preservespitch: {
134
+ $: "preservesPitch",
135
+ AUDIO: 1,
136
+ VIDEO: 1
137
+ },
138
+ shadowrootclonable: {
139
+ $: "shadowRootClonable",
140
+ TEMPLATE: 1
141
+ },
142
+ shadowrootdelegatesfocus: {
143
+ $: "shadowRootDelegatesFocus",
144
+ TEMPLATE: 1
145
+ },
146
+ shadowrootserializable: {
147
+ $: "shadowRootSerializable",
148
+ TEMPLATE: 1
149
+ },
150
+ sharedstoragewritable: {
151
+ $: "sharedStorageWritable",
152
+ IFRAME: 1,
153
+ IMG: 1
154
+ }
155
+ });
156
+ function R(i, e) {
157
+ const t = D[i];
158
+ return typeof t == "object" ? t[e] ? t.$ : void 0 : t;
159
+ }
160
+ const p = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), F = /* @__PURE__ */ new Set([
161
+ "altGlyph",
162
+ "altGlyphDef",
163
+ "altGlyphItem",
164
+ "animate",
165
+ "animateColor",
166
+ "animateMotion",
167
+ "animateTransform",
168
+ "circle",
169
+ "clipPath",
170
+ "color-profile",
171
+ "cursor",
172
+ "defs",
173
+ "desc",
174
+ "ellipse",
175
+ "feBlend",
176
+ "feColorMatrix",
177
+ "feComponentTransfer",
178
+ "feComposite",
179
+ "feConvolveMatrix",
180
+ "feDiffuseLighting",
181
+ "feDisplacementMap",
182
+ "feDistantLight",
183
+ "feDropShadow",
184
+ "feFlood",
185
+ "feFuncA",
186
+ "feFuncB",
187
+ "feFuncG",
188
+ "feFuncR",
189
+ "feGaussianBlur",
190
+ "feImage",
191
+ "feMerge",
192
+ "feMergeNode",
193
+ "feMorphology",
194
+ "feOffset",
195
+ "fePointLight",
196
+ "feSpecularLighting",
197
+ "feSpotLight",
198
+ "feTile",
199
+ "feTurbulence",
200
+ "filter",
201
+ "font",
202
+ "font-face",
203
+ "font-face-format",
204
+ "font-face-name",
205
+ "font-face-src",
206
+ "font-face-uri",
207
+ "foreignObject",
208
+ "g",
209
+ "glyph",
210
+ "glyphRef",
211
+ "hkern",
212
+ "image",
213
+ "line",
214
+ "linearGradient",
215
+ "marker",
216
+ "mask",
217
+ "metadata",
218
+ "missing-glyph",
219
+ "mpath",
220
+ "path",
221
+ "pattern",
222
+ "polygon",
223
+ "polyline",
224
+ "radialGradient",
225
+ "rect",
226
+ "set",
227
+ "stop",
228
+ "svg",
229
+ "switch",
230
+ "symbol",
231
+ "text",
232
+ "textPath",
233
+ "tref",
234
+ "tspan",
235
+ "use",
236
+ "view",
237
+ "vkern"
238
+ ]), B = {
239
+ xlink: "http://www.w3.org/1999/xlink",
240
+ xml: "http://www.w3.org/XML/1998/namespace"
241
+ }, se = (i) => E(() => i());
242
+ function G(i, e, t) {
243
+ let l = t.length, n = e.length, o = l, f = 0, s = 0, c = e[n - 1].nextSibling, r = null;
244
+ for (; f < n || s < o; ) {
245
+ if (e[f] === t[s]) {
246
+ f++, s++;
247
+ continue;
248
+ }
249
+ for (; e[n - 1] === t[o - 1]; )
250
+ n--, o--;
251
+ if (n === f) {
252
+ const d = o < l ? s ? t[s - 1].nextSibling : t[o - s] : c;
253
+ for (; s < o; ) i.insertBefore(t[s++], d);
254
+ } else if (o === s)
255
+ for (; f < n; )
256
+ (!r || !r.has(e[f])) && e[f].remove(), f++;
257
+ else if (e[f] === t[o - 1] && t[s] === e[n - 1]) {
258
+ const d = e[--n].nextSibling;
259
+ i.insertBefore(t[s++], e[f++].nextSibling), i.insertBefore(t[--o], d), e[n] = t[o];
260
+ } else {
261
+ if (!r) {
262
+ r = /* @__PURE__ */ new Map();
263
+ let h = s;
264
+ for (; h < o; ) r.set(t[h], h++);
265
+ }
266
+ const d = r.get(e[f]);
267
+ if (d != null)
268
+ if (s < d && d < o) {
269
+ let h = f, a = 1, g;
270
+ for (; ++h < n && h < o && !((g = r.get(e[h])) == null || g !== d + a); )
271
+ a++;
272
+ if (a > d - s) {
273
+ const A = e[f];
274
+ for (; s < d; ) i.insertBefore(t[s++], A);
275
+ } else i.replaceChild(t[s++], e[f++]);
276
+ } else f++;
277
+ else e[f++].remove();
278
+ }
279
+ }
280
+ }
281
+ const N = "_$DX_DELEGATE";
282
+ function ne(i, e, t, l) {
283
+ let n;
284
+ const o = () => {
285
+ const s = document.createElement("template");
286
+ return s.innerHTML = i, s.content.firstChild;
287
+ }, f = () => (n || (n = o())).cloneNode(!0);
288
+ return f.cloneNode = f, f;
289
+ }
290
+ function V(i, e = window.document) {
291
+ const t = e[N] || (e[N] = /* @__PURE__ */ new Set());
292
+ for (let l = 0, n = i.length; l < n; l++) {
293
+ const o = i[l];
294
+ t.has(o) || (t.add(o), e.addEventListener(o, Q));
295
+ }
296
+ }
297
+ function T(i, e, t) {
298
+ y(i) || (t == null ? i.removeAttribute(e) : i.setAttribute(e, t));
299
+ }
300
+ function j(i, e, t, l) {
301
+ y(i) || (l == null ? i.removeAttributeNS(e, t) : i.setAttributeNS(e, t, l));
302
+ }
303
+ function U(i, e, t) {
304
+ y(i) || (t ? i.setAttribute(e, "") : i.removeAttribute(e));
305
+ }
306
+ function _(i, e) {
307
+ y(i) || (e == null ? i.removeAttribute("class") : i.className = e);
308
+ }
309
+ function H(i, e, t, l) {
310
+ if (l)
311
+ Array.isArray(t) ? (i[`$$${e}`] = t[0], i[`$$${e}Data`] = t[1]) : i[`$$${e}`] = t;
312
+ else if (Array.isArray(t)) {
313
+ const n = t[0];
314
+ i.addEventListener(e, t[0] = (o) => n.call(i, t[1], o));
315
+ } else i.addEventListener(e, t, typeof t != "function" && t);
316
+ }
317
+ function K(i, e, t = {}) {
318
+ const l = Object.keys(e || {}), n = Object.keys(t);
319
+ let o, f;
320
+ for (o = 0, f = n.length; o < f; o++) {
321
+ const s = n[o];
322
+ !s || s === "undefined" || e[s] || (P(i, s, !1), delete t[s]);
323
+ }
324
+ for (o = 0, f = l.length; o < f; o++) {
325
+ const s = l[o], c = !!e[s];
326
+ !s || s === "undefined" || t[s] === c || !c || (P(i, s, !0), t[s] = c);
327
+ }
328
+ return t;
329
+ }
330
+ function X(i, e, t) {
331
+ if (!e) return t ? T(i, "style") : e;
332
+ const l = i.style;
333
+ if (typeof e == "string") return l.cssText = e;
334
+ typeof t == "string" && (l.cssText = t = void 0), t || (t = {}), e || (e = {});
335
+ let n, o;
336
+ for (o in t)
337
+ e[o] == null && l.removeProperty(o), delete t[o];
338
+ for (o in e)
339
+ n = e[o], n !== t[o] && (l.setProperty(o, n), t[o] = n);
340
+ return t;
341
+ }
342
+ function q(i, e = {}, t, l) {
343
+ const n = {};
344
+ return l || m(() => n.children = w(i, e.children, n.children)), m(() => typeof e.ref == "function" && W(e.ref, i)), m(() => Y(i, e, t, !0, n, !0)), n;
345
+ }
346
+ function W(i, e, t) {
347
+ return $(() => i(e, t));
348
+ }
349
+ function oe(i, e, t, l) {
350
+ if (typeof e != "function") return w(i, e, l, t);
351
+ m((n) => w(i, e(), n, t), l);
352
+ }
353
+ function Y(i, e, t, l, n = {}, o = !1) {
354
+ e || (e = {});
355
+ for (const f in n)
356
+ if (!(f in e)) {
357
+ if (f === "children") continue;
358
+ n[f] = S(i, f, null, n[f], t, o, e);
359
+ }
360
+ for (const f in e) {
361
+ if (f === "children")
362
+ continue;
363
+ const s = e[f];
364
+ n[f] = S(i, f, s, n[f], t, o, e);
365
+ }
366
+ }
367
+ function z(i) {
368
+ let e, t;
369
+ return !y() || !(e = u.registry.get(t = Z())) ? i() : (u.completed && u.completed.add(e), u.registry.delete(t), e);
370
+ }
371
+ function y(i) {
372
+ return !!u.context && !u.done && (!i || i.isConnected);
373
+ }
374
+ function J(i) {
375
+ return i.toLowerCase().replace(/-([a-z])/g, (e, t) => t.toUpperCase());
376
+ }
377
+ function P(i, e, t) {
378
+ const l = e.trim().split(/\s+/);
379
+ for (let n = 0, o = l.length; n < o; n++) i.classList.toggle(l[n], t);
380
+ }
381
+ function S(i, e, t, l, n, o, f) {
382
+ let s, c, r, d, h;
383
+ if (e === "style") return X(i, t, l);
384
+ if (e === "classList") return K(i, t, l);
385
+ if (t === l) return l;
386
+ if (e === "ref")
387
+ o || t(i);
388
+ else if (e.slice(0, 3) === "on:") {
389
+ const a = e.slice(3);
390
+ l && i.removeEventListener(a, l, typeof l != "function" && l), t && i.addEventListener(a, t, typeof t != "function" && t);
391
+ } else if (e.slice(0, 10) === "oncapture:") {
392
+ const a = e.slice(10);
393
+ l && i.removeEventListener(a, l, !0), t && i.addEventListener(a, t, !0);
394
+ } else if (e.slice(0, 2) === "on") {
395
+ const a = e.slice(2).toLowerCase(), g = p.has(a);
396
+ if (!g && l) {
397
+ const A = Array.isArray(l) ? l[0] : l;
398
+ i.removeEventListener(a, A);
399
+ }
400
+ (g || t) && (H(i, a, t, g), g && V([a]));
401
+ } else if (e.slice(0, 5) === "attr:")
402
+ T(i, e.slice(5), t);
403
+ else if (e.slice(0, 5) === "bool:")
404
+ U(i, e.slice(5), t);
405
+ else if ((h = e.slice(0, 5) === "prop:") || (r = O.has(e)) || !n && ((d = R(e, i.tagName)) || (c = I.has(e))) || (s = i.nodeName.includes("-") || "is" in f)) {
406
+ if (h)
407
+ e = e.slice(5), c = !0;
408
+ else if (y(i)) return t;
409
+ e === "class" || e === "className" ? _(i, t) : s && !c && !r ? i[J(e)] = t : i[d || e] = t;
410
+ } else {
411
+ const a = n && e.indexOf(":") > -1 && B[e.split(":")[0]];
412
+ a ? j(i, a, e, t) : T(i, k[e] || e, t);
413
+ }
414
+ return t;
415
+ }
416
+ function Q(i) {
417
+ if (u.registry && u.events && u.events.find(([c, r]) => r === i))
418
+ return;
419
+ let e = i.target;
420
+ const t = `$$${i.type}`, l = i.target, n = i.currentTarget, o = (c) => Object.defineProperty(i, "target", {
421
+ configurable: !0,
422
+ value: c
423
+ }), f = () => {
424
+ const c = e[t];
425
+ if (c && !e.disabled) {
426
+ const r = e[`${t}Data`];
427
+ if (r !== void 0 ? c.call(e, r, i) : c.call(e, i), i.cancelBubble) return;
428
+ }
429
+ return e.host && typeof e.host != "string" && !e.host._$host && e.contains(i.target) && o(e.host), !0;
430
+ }, s = () => {
431
+ for (; f() && (e = e._$host || e.parentNode || e.host); ) ;
432
+ };
433
+ if (Object.defineProperty(i, "currentTarget", {
434
+ configurable: !0,
435
+ get() {
436
+ return e || document;
437
+ }
438
+ }), u.registry && !u.done && (u.done = _$HY.done = !0), i.composedPath) {
439
+ const c = i.composedPath();
440
+ o(c[0]);
441
+ for (let r = 0; r < c.length - 2 && (e = c[r], !!f()); r++) {
442
+ if (e._$host) {
443
+ e = e._$host, s();
444
+ break;
445
+ }
446
+ if (e.parentNode === n)
447
+ break;
448
+ }
449
+ } else s();
450
+ o(l);
451
+ }
452
+ function w(i, e, t, l, n) {
453
+ const o = y(i);
454
+ if (o) {
455
+ !t && (t = [...i.childNodes]);
456
+ let s = [];
457
+ for (let c = 0; c < t.length; c++) {
458
+ const r = t[c];
459
+ r.nodeType === 8 && r.data.slice(0, 2) === "!$" ? r.remove() : s.push(r);
460
+ }
461
+ t = s;
462
+ }
463
+ for (; typeof t == "function"; ) t = t();
464
+ if (e === t) return t;
465
+ const f = typeof e;
466
+ if (i = i, f === "string" || f === "number") {
467
+ if (o || f === "number" && (e = e.toString(), e === t))
468
+ return t;
469
+ t !== "" && typeof t == "string" ? t = i.firstChild.data = e : t = i.textContent = e;
470
+ } else if (e == null || f === "boolean") {
471
+ if (o) return t;
472
+ t = b(i, t, l);
473
+ } else {
474
+ if (f === "function")
475
+ return m(() => {
476
+ let s = e();
477
+ for (; typeof s == "function"; ) s = s();
478
+ t = w(i, s, t, l);
479
+ }), () => t;
480
+ if (Array.isArray(e)) {
481
+ const s = [], c = t && Array.isArray(t);
482
+ if (C(s, e, t, n))
483
+ return m(() => t = w(i, s, t, l, !0)), () => t;
484
+ if (o)
485
+ return s.length ? t = [...i.childNodes] : t;
486
+ s.length === 0 ? t = b(i, t, l) : c ? t.length === 0 ? M(i, s, l) : G(i, t, s) : (t && b(i), M(i, s)), t = s;
487
+ } else if (e.nodeType) {
488
+ if (o && e.parentNode) return t = e;
489
+ Array.isArray(t) ? b(i, t, null, e) : t == null || t === "" || !i.firstChild ? i.appendChild(e) : i.replaceChild(e, i.firstChild), t = e;
490
+ }
491
+ }
492
+ return t;
493
+ }
494
+ function C(i, e, t, l) {
495
+ let n = !1;
496
+ for (let o = 0, f = e.length; o < f; o++) {
497
+ let s = e[o], c = t && t[i.length], r;
498
+ if (!(s == null || s === !0 || s === !1)) if ((r = typeof s) == "object" && s.nodeType)
499
+ i.push(s);
500
+ else if (Array.isArray(s))
501
+ n = C(i, s, c) || n;
502
+ else if (r === "function")
503
+ if (l) {
504
+ for (; typeof s == "function"; ) s = s();
505
+ n = C(i, Array.isArray(s) ? s : [s], Array.isArray(c) ? c : [c]) || n;
506
+ } else
507
+ i.push(s), n = !0;
508
+ else {
509
+ const d = String(s);
510
+ c && c.nodeType === 3 && c.data === d ? i.push(c) : i.push(document.createTextNode(d));
511
+ }
512
+ }
513
+ return n;
514
+ }
515
+ function M(i, e, t = null) {
516
+ for (let l = 0, n = e.length; l < n; l++) i.insertBefore(e[l], t);
517
+ }
518
+ function b(i, e, t, l) {
519
+ if (t === void 0) return i.textContent = "";
520
+ const n = l || document.createTextNode("");
521
+ if (e.length) {
522
+ let o = !1;
523
+ for (let f = e.length - 1; f >= 0; f--) {
524
+ const s = e[f];
525
+ if (n !== s) {
526
+ const c = s.parentNode === i;
527
+ !o && !f ? c ? i.replaceChild(n, s) : i.insertBefore(n, t) : c && s.remove();
528
+ } else o = !0;
529
+ }
530
+ } else i.insertBefore(n, t);
531
+ return [n];
532
+ }
533
+ function Z() {
534
+ return u.getNextContextId();
535
+ }
536
+ const v = "http://www.w3.org/2000/svg";
537
+ function ee(i, e = !1, t = void 0) {
538
+ return e ? document.createElementNS(v, i) : document.createElement(i, {
539
+ is: t
540
+ });
541
+ }
542
+ function te(i, e) {
543
+ const t = E(i);
544
+ return E(() => {
545
+ const l = t();
546
+ switch (typeof l) {
547
+ case "function":
548
+ return $(() => l(e));
549
+ case "string":
550
+ const n = F.has(l), o = u.context ? z() : ee(l, n, $(() => e.is));
551
+ return q(o, e, n), o;
552
+ }
553
+ });
554
+ }
555
+ function le(i) {
556
+ const [, e] = x(i, ["component"]);
557
+ return te(() => i.component, e);
558
+ }
559
+ export {
560
+ le as D,
561
+ V as d,
562
+ oe as i,
563
+ se as m,
564
+ q as s,
565
+ ne as t,
566
+ W as u
567
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solid-intlayer",
3
- "version": "5.7.8",
3
+ "version": "5.8.1-canary.0",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your Solid applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -57,39 +57,39 @@
57
57
  ],
58
58
  "dependencies": {
59
59
  "js-cookie": "^3.0.5",
60
- "@intlayer/config": "5.7.8",
61
- "@intlayer/api": "5.7.8",
62
- "@intlayer/core": "5.7.8",
63
- "@intlayer/editor": "5.7.8"
60
+ "@intlayer/api": "5.8.1-canary.0",
61
+ "@intlayer/config": "5.8.1-canary.0",
62
+ "@intlayer/core": "5.8.1-canary.0",
63
+ "@intlayer/editor": "5.8.1-canary.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@solidjs/testing-library": "^0.8.10",
67
67
  "@testing-library/jest-dom": "^6.6.3",
68
68
  "@testing-library/user-event": "^14.6.1",
69
69
  "@types/js-cookie": "^3.0.6",
70
- "@types/node": "^22.15.30",
70
+ "@types/node": "^24.2.1",
71
71
  "@typescript-eslint/parser": "^8.33.1",
72
72
  "concurrently": "^9.1.2",
73
- "eslint": "^9.28.0",
73
+ "eslint": "^9.33.0",
74
74
  "jsdom": "^26.1.0",
75
75
  "prettier": "^3.5.3",
76
76
  "rimraf": "^6.0.1",
77
- "typescript": "^5.8.3",
78
- "vite": "^6.3.5",
77
+ "typescript": "^5.9.2",
78
+ "vite": "^7.1.2",
79
79
  "vite-plugin-dts": "^4.5.3",
80
80
  "vite-plugin-solid": "^2.11.6",
81
81
  "vitest": "^3.2.2",
82
+ "@utils/ts-config-types": "1.0.4",
82
83
  "@utils/eslint-config": "1.0.4",
83
84
  "@utils/ts-config": "1.0.4",
84
- "@utils/ts-config-types": "1.0.4",
85
85
  "@utils/tsup-config": "1.0.4"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "solid-js": "^1.9.5",
89
- "@intlayer/api": "5.7.8",
90
- "@intlayer/config": "5.7.8",
91
- "@intlayer/editor": "5.7.8",
92
- "@intlayer/core": "5.7.8"
89
+ "@intlayer/api": "5.8.1-canary.0",
90
+ "@intlayer/config": "5.8.1-canary.0",
91
+ "@intlayer/core": "5.8.1-canary.0",
92
+ "@intlayer/editor": "5.8.1-canary.0"
93
93
  },
94
94
  "engines": {
95
95
  "node": ">=14.18"