@pie-element/number-line 13.1.2-next.8 → 13.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 +1 -1
- package/dist/browser/{delivery-CZfH4Rjb.js → delivery-RCwd5oLH.js} +1510 -1508
- package/dist/browser/delivery-RCwd5oLH.js.map +1 -0
- package/dist/index.iife.js +22 -22
- package/package.json +5 -5
- package/dist/browser/delivery-CZfH4Rjb.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ds as e, Es as t, Et as n, Ln as r, Pn as i, _ as a, b as o, c as s, g as c, h as l, ni as u, o as d, p as f, s as p, t as m, u as h, v as g, ws as _, y as v } from "../dist-clbS3pcd.js";
|
|
2
|
-
import { $ as y, A as b, At as x, B as S, C, Ct as w, D as T, Dt as E, E as ee, Et as D, F as O, Ft as te, G as ne, H as re, I as ie, It as ae, J as oe, K as se, L as ce, Lt as le, M as ue, Mt as de, N as fe, Nt as pe, O as me, Ot as he, P as k, Pt as ge, Q as _e, R as ve, Rt as ye, S as be, St as xe, T as Se, Tt as A, U as j, V as Ce, W as we, X as Te, Y as Ee, Z as De, _ as Oe, _t as ke, a as Ae, at as je, b as Me, bt as Ne, c as Pe, ct as Fe, d as Ie, dt as Le, et as Re, f as ze, ft as M, g as Be, gt as Ve, h as He, ht as Ue, i as We, it as Ge, j as Ke, jt as qe, k as Je, kt as Ye, l as Xe, lt as Ze, m as Qe, mt as N, n as $e, nt as et, o as tt, ot as nt, p as rt, pt as it, q as at, rt as ot, s as st, st as ct, tt as lt, u as ut, ut as dt, v as ft, vt as pt, w as mt, wt as ht, x as gt, xt as _t, y as vt, yt } from "../delivery-
|
|
2
|
+
import { $ as y, A as b, At as x, B as S, C, Ct as w, D as T, Dt as E, E as ee, Et as D, F as O, Ft as te, G as ne, H as re, I as ie, It as ae, J as oe, K as se, L as ce, Lt as le, M as ue, Mt as de, N as fe, Nt as pe, O as me, Ot as he, P as k, Pt as ge, Q as _e, R as ve, Rt as ye, S as be, St as xe, T as Se, Tt as A, U as j, V as Ce, W as we, X as Te, Y as Ee, Z as De, _ as Oe, _t as ke, a as Ae, at as je, b as Me, bt as Ne, c as Pe, ct as Fe, d as Ie, dt as Le, et as Re, f as ze, ft as M, g as Be, gt as Ve, h as He, ht as Ue, i as We, it as Ge, j as Ke, jt as qe, k as Je, kt as Ye, l as Xe, lt as Ze, m as Qe, mt as N, n as $e, nt as et, o as tt, ot as nt, p as rt, pt as it, q as at, rt as ot, s as st, st as ct, tt as lt, u as ut, ut as dt, v as ft, vt as pt, w as mt, wt as ht, x as gt, xt as _t, y as vt, yt } from "../delivery-RCwd5oLH.js";
|
|
3
3
|
import { t as bt } from "../impureFunctionsAny.generated-DOBSXSdK.js";
|
|
4
4
|
import * as P from "react";
|
|
5
5
|
import xt, { Component as St, createContext as Ct, createElement as wt, createRef as Tt, forwardRef as Et, memo as Dt, useCallback as Ot, useContext as kt, useDebugValue as At, useEffect as jt, useLayoutEffect as Mt, useMemo as Nt, useRef as Pt, useState as Ft, version as It } from "react";
|
|
@@ -40221,34 +40221,55 @@ var uJ = Gx.create({
|
|
|
40221
40221
|
},
|
|
40222
40222
|
addNodeView() {
|
|
40223
40223
|
if (!this.options.resize || !this.options.resize.enabled || typeof document > "u") return null;
|
|
40224
|
-
let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize
|
|
40225
|
-
|
|
40226
|
-
|
|
40227
|
-
|
|
40224
|
+
let { directions: e, minWidth: t, minHeight: n, alwaysPreserveAspectRatio: r } = this.options.resize, i = /* @__PURE__ */ new Set([
|
|
40225
|
+
"src",
|
|
40226
|
+
"width",
|
|
40227
|
+
"height"
|
|
40228
|
+
]);
|
|
40229
|
+
return ({ node: a, getPos: o, HTMLAttributes: s, editor: c }) => {
|
|
40230
|
+
let l = document.createElement("img");
|
|
40231
|
+
l.draggable = !1;
|
|
40232
|
+
let u = Nb(this.options.HTMLAttributes, s);
|
|
40233
|
+
Object.entries(u).forEach(([e, t]) => {
|
|
40228
40234
|
if (t != null) switch (e) {
|
|
40235
|
+
case "src":
|
|
40229
40236
|
case "width":
|
|
40230
40237
|
case "height": break;
|
|
40231
|
-
default:
|
|
40232
|
-
c.setAttribute(e, t);
|
|
40233
|
-
break;
|
|
40238
|
+
default: l.setAttribute(e, t);
|
|
40234
40239
|
}
|
|
40235
|
-
}),
|
|
40236
|
-
let
|
|
40237
|
-
|
|
40238
|
-
|
|
40239
|
-
|
|
40240
|
-
|
|
40240
|
+
}), u.src !== null && (l.src = u.src);
|
|
40241
|
+
let d = { ...s }, f = (e) => {
|
|
40242
|
+
if (typeof e == "string" && e !== "") {
|
|
40243
|
+
l.getAttribute("src") !== e && (l.src = e);
|
|
40244
|
+
return;
|
|
40245
|
+
}
|
|
40246
|
+
l.hasAttribute("src") && l.removeAttribute("src"), l.src !== "" && (l.src = "");
|
|
40247
|
+
};
|
|
40248
|
+
f(s.src);
|
|
40249
|
+
let p = new vS({
|
|
40250
|
+
element: l,
|
|
40251
|
+
editor: c,
|
|
40252
|
+
node: a,
|
|
40253
|
+
getPos: o,
|
|
40241
40254
|
onResize: (e, t) => {
|
|
40242
|
-
|
|
40255
|
+
l.style.width = `${e}px`, l.style.height = `${t}px`;
|
|
40243
40256
|
},
|
|
40244
40257
|
onCommit: (e, t) => {
|
|
40245
|
-
let n =
|
|
40258
|
+
let n = o();
|
|
40246
40259
|
n !== void 0 && this.editor.chain().setNodeSelection(n).updateAttributes(this.name, {
|
|
40247
40260
|
width: e,
|
|
40248
40261
|
height: t
|
|
40249
40262
|
}).run();
|
|
40250
40263
|
},
|
|
40251
|
-
onUpdate: (e
|
|
40264
|
+
onUpdate: (e) => {
|
|
40265
|
+
if (e.type !== a.type) return !1;
|
|
40266
|
+
let t = Pb(e, c.extensionManager.attributes.filter((t) => t.type === e.type.name));
|
|
40267
|
+
return Object.keys(d).forEach((e) => {
|
|
40268
|
+
!i.has(e) && !(e in t) && l.removeAttribute(e);
|
|
40269
|
+
}), Object.entries(t).forEach(([e, t]) => {
|
|
40270
|
+
i.has(e) || (t == null ? l.removeAttribute(e) : l.setAttribute(e, t));
|
|
40271
|
+
}), f(t.src), d = t, !0;
|
|
40272
|
+
},
|
|
40252
40273
|
options: {
|
|
40253
40274
|
directions: e,
|
|
40254
40275
|
min: {
|
|
@@ -40257,10 +40278,10 @@ var uJ = Gx.create({
|
|
|
40257
40278
|
},
|
|
40258
40279
|
preserveAspectRatio: r === !0
|
|
40259
40280
|
}
|
|
40260
|
-
}),
|
|
40261
|
-
|
|
40262
|
-
|
|
40263
|
-
|
|
40281
|
+
}), m = p.dom, h = () => {
|
|
40282
|
+
m.style.visibility = "", m.style.pointerEvents = "";
|
|
40283
|
+
};
|
|
40284
|
+
return m.style.visibility = "hidden", m.style.pointerEvents = "none", l.complete && l.naturalWidth > 0 ? h() : (l.onload = h, l.onerror = h), p;
|
|
40264
40285
|
};
|
|
40265
40286
|
},
|
|
40266
40287
|
addCommands() {
|