ckeditor5-livewire 1.2.8 → 1.2.10
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +17 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -1
- package/src/index.ts +8 -0
package/dist/index.mjs
CHANGED
|
@@ -758,11 +758,11 @@ function L(i) {
|
|
|
758
758
|
const t = q(i), e = O(t, ({ content: r }) => r);
|
|
759
759
|
return _(e, (r) => typeof r == "string");
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function x(i) {
|
|
762
762
|
if (!i || typeof i != "object")
|
|
763
763
|
return i;
|
|
764
764
|
if (Array.isArray(i))
|
|
765
|
-
return i.map((r) =>
|
|
765
|
+
return i.map((r) => x(r));
|
|
766
766
|
const t = i;
|
|
767
767
|
if (t.$element && typeof t.$element == "string") {
|
|
768
768
|
const r = document.querySelector(t.$element);
|
|
@@ -770,7 +770,7 @@ function T(i) {
|
|
|
770
770
|
}
|
|
771
771
|
const e = /* @__PURE__ */ Object.create(null);
|
|
772
772
|
for (const [r, n] of Object.entries(i))
|
|
773
|
-
e[r] =
|
|
773
|
+
e[r] = x(n);
|
|
774
774
|
return e;
|
|
775
775
|
}
|
|
776
776
|
function et(i, t) {
|
|
@@ -779,12 +779,12 @@ function et(i, t) {
|
|
|
779
779
|
r.setStyle("height", `${t}px`, e.view.document.getRoot());
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
|
-
const
|
|
782
|
+
const T = Symbol.for("elixir-editor-watchdog");
|
|
783
783
|
async function rt(i) {
|
|
784
784
|
const { EditorWatchdog: t } = await import("ckeditor5"), e = new t(i);
|
|
785
785
|
return e.setCreator(async (...r) => {
|
|
786
786
|
const n = await i.create(...r);
|
|
787
|
-
return n[
|
|
787
|
+
return n[T] = e, n;
|
|
788
788
|
}), {
|
|
789
789
|
watchdog: e,
|
|
790
790
|
Constructor: {
|
|
@@ -793,7 +793,7 @@ async function rt(i) {
|
|
|
793
793
|
};
|
|
794
794
|
}
|
|
795
795
|
function it(i) {
|
|
796
|
-
return
|
|
796
|
+
return T in i ? i[T] : null;
|
|
797
797
|
}
|
|
798
798
|
class y extends H {
|
|
799
799
|
static the = new y();
|
|
@@ -1124,7 +1124,7 @@ class ct extends C {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
v(m) && "main" in l && (l = l.main);
|
|
1126
1126
|
const k = {
|
|
1127
|
-
...
|
|
1127
|
+
...x(d),
|
|
1128
1128
|
initialData: b,
|
|
1129
1129
|
licenseKey: h,
|
|
1130
1130
|
plugins: E,
|
|
@@ -1211,4 +1211,14 @@ function wt() {
|
|
|
1211
1211
|
U(i, t);
|
|
1212
1212
|
}
|
|
1213
1213
|
wt();
|
|
1214
|
+
export {
|
|
1215
|
+
C as ClassHook,
|
|
1216
|
+
y as ContextsRegistry,
|
|
1217
|
+
S as CustomEditorPluginsRegistry,
|
|
1218
|
+
at as EditableComponentHook,
|
|
1219
|
+
ct as EditorComponentHook,
|
|
1220
|
+
w as EditorsRegistry,
|
|
1221
|
+
lt as UIPartComponentHook,
|
|
1222
|
+
U as registerLivewireComponentHook
|
|
1223
|
+
};
|
|
1214
1224
|
//# sourceMappingURL=index.mjs.map
|