@pie-element/complex-rubric 7.1.2-next.8 → 7.1.2-next.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/browser/author/index.js +42 -21
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/delivery/index.js +2 -2
- package/dist/browser/{delivery-DXCj5eSt.js → delivery-pJV8UW81.js} +2 -2
- package/dist/browser/{delivery-DXCj5eSt.js.map → delivery-pJV8UW81.js.map} +1 -1
- package/dist/browser/print/index.js +2 -2
- package/dist/browser/{private-tags-DHNGEZ31.js → private-tags-CNbLLFnr.js} +488 -486
- package/dist/browser/{private-tags-DHNGEZ31.js.map → private-tags-CNbLLFnr.js.map} +1 -1
- package/dist/index.iife.js +7 -7
- package/dist/private-tags.js +1 -1
- package/module/print.js +15915 -0
- package/module/print.js.map +1 -0
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e, r as t, t as n } from "../rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { $ as r, A as i, At as a, B as o, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, Mt as x, N as S, O as C, Ot as w, P as ee, Q as T, R as te, S as ne, St as E, T as re, U as ie, V as ae, W as oe, X as se, Y as ce, Z as le, _ as ue, _t as D, a as de, at as fe, c as pe, ct as me, d as he, dt as O, et as ge, f as _e, ft as ve, g as ye, gt as be, h as xe, ht as Se, it as Ce, j as we, jt as Te, k as Ee, kt as De, l as Oe, lt as ke, m as Ae, mt as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, u as Ue, ut as We, v as Ge, vt as Ke, w as qe, wt as Je, x as Ye, xt as Xe, y as Ze, yt as Qe, z as $e } from "../private-tags-
|
|
2
|
+
import { $ as r, A as i, At as a, B as o, C as s, Ct as c, D as l, Dt as u, E as d, Et as f, F as p, G as m, H as h, I as g, J as _, K as v, L as y, M as b, Mt as x, N as S, O as C, Ot as w, P as ee, Q as T, R as te, S as ne, St as E, T as re, U as ie, V as ae, W as oe, X as se, Y as ce, Z as le, _ as ue, _t as D, a as de, at as fe, c as pe, ct as me, d as he, dt as O, et as ge, f as _e, ft as ve, g as ye, gt as be, h as xe, ht as Se, it as Ce, j as we, jt as Te, k as Ee, kt as De, l as Oe, lt as ke, m as Ae, mt as je, nt as Me, o as Ne, ot as Pe, p as Fe, pt as Ie, q as Le, r as Re, rt as ze, s as Be, st as Ve, t as He, u as Ue, ut as We, v as Ge, vt as Ke, w as qe, wt as Je, x as Ye, xt as Xe, y as Ze, yt as Qe, z as $e } from "../private-tags-CNbLLFnr.js";
|
|
3
3
|
import * as k from "react";
|
|
4
4
|
import A, { Component as et, createContext as tt, createElement as nt, createRef as rt, forwardRef as it, memo as at, useCallback as ot, useContext as st, useDebugValue as ct, useEffect as j, useLayoutEffect as lt, useMemo as ut, useReducer as dt, useRef as M, useState as ft, version as pt } from "react";
|
|
5
5
|
import { Fragment as mt, jsx as N, jsxs as P } from "react/jsx-runtime";
|
|
@@ -45701,34 +45701,55 @@ var S3 = qT.create({
|
|
|
45701
45701
|
},
|
|
45702
45702
|
addNodeView() {
|
|
45703
45703
|
if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
|
|
45704
|
-
let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize
|
|
45705
|
-
|
|
45706
|
-
|
|
45707
|
-
|
|
45704
|
+
let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
|
|
45705
|
+
"src",
|
|
45706
|
+
"width",
|
|
45707
|
+
"height"
|
|
45708
|
+
]);
|
|
45709
|
+
return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
|
|
45710
|
+
let l = document.createElement("img");
|
|
45711
|
+
l.draggable = !1;
|
|
45712
|
+
let u = Fw(this.options.HTMLAttributes, s);
|
|
45713
|
+
Object.entries(u).forEach(([e, t]) => {
|
|
45708
45714
|
if (t != null) switch (e) {
|
|
45715
|
+
case "src":
|
|
45709
45716
|
case "width":
|
|
45710
45717
|
case "height": break;
|
|
45711
|
-
default:
|
|
45712
|
-
c.setAttribute(e, t);
|
|
45713
|
-
break;
|
|
45718
|
+
default: l.setAttribute(e, t);
|
|
45714
45719
|
}
|
|
45715
|
-
}),
|
|
45716
|
-
let
|
|
45717
|
-
|
|
45718
|
-
|
|
45719
|
-
|
|
45720
|
-
|
|
45720
|
+
}), u.src !== null && (l.src = u.src);
|
|
45721
|
+
let d = { ...s }, f = (e) => {
|
|
45722
|
+
if (typeof e == "string" && e !== "") {
|
|
45723
|
+
l.getAttribute("src") !== e && (l.src = e);
|
|
45724
|
+
return;
|
|
45725
|
+
}
|
|
45726
|
+
l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
|
|
45727
|
+
};
|
|
45728
|
+
f(s.src);
|
|
45729
|
+
let p = new bE({
|
|
45730
|
+
element: l,
|
|
45731
|
+
editor: c,
|
|
45732
|
+
node: a,
|
|
45733
|
+
getPos: o,
|
|
45721
45734
|
onResize: (e, t) => {
|
|
45722
|
-
|
|
45735
|
+
l.style.width = `${e}px`, l.style.height = `${t}px`;
|
|
45723
45736
|
},
|
|
45724
45737
|
onCommit: (e, t) => {
|
|
45725
|
-
let n =
|
|
45738
|
+
let n = o();
|
|
45726
45739
|
n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
|
|
45727
45740
|
width: e,
|
|
45728
45741
|
height: t
|
|
45729
45742
|
}).run();
|
|
45730
45743
|
},
|
|
45731
|
-
onUpdate: (e
|
|
45744
|
+
onUpdate: (e) => {
|
|
45745
|
+
if (e.type !== a.type) return !1;
|
|
45746
|
+
let t = Iw(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
|
|
45747
|
+
return Object.keys(d).forEach((e) => {
|
|
45748
|
+
!i.has(e) && !(e in t) && l.removeAttribute(e);
|
|
45749
|
+
}), Object.entries(t).forEach(([e, t]) => {
|
|
45750
|
+
i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
|
|
45751
|
+
}), f(t.src), d = t, !0;
|
|
45752
|
+
},
|
|
45732
45753
|
options: {
|
|
45733
45754
|
directions: e,
|
|
45734
45755
|
min: {
|
|
@@ -45737,10 +45758,10 @@ var S3 = qT.create({
|
|
|
45737
45758
|
},
|
|
45738
45759
|
preserveAspectRatio: r === !0
|
|
45739
45760
|
}
|
|
45740
|
-
}),
|
|
45741
|
-
|
|
45742
|
-
|
|
45743
|
-
|
|
45761
|
+
}), m = p.dom, h = () => {
|
|
45762
|
+
m.style.visibility = "", m.style.pointerEvents = "";
|
|
45763
|
+
};
|
|
45764
|
+
return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
|
|
45744
45765
|
};
|
|
45745
45766
|
},
|
|
45746
45767
|
addCommands() {
|