@jackuait/blok 0.10.0-beta.15 → 0.10.0-beta.16
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/blok.mjs +2 -2
- package/dist/chunks/{blok-1213fGsk.mjs → blok-CEVrVqlx.mjs} +5 -7
- package/dist/chunks/{constants-Cr7GEExc.mjs → constants-BURnHRy_.mjs} +1 -1
- package/dist/chunks/{tools-DBEfU2dP.mjs → tools-Dt2I14vP.mjs} +1029 -885
- package/dist/full.mjs +3 -3
- package/dist/react.mjs +2 -2
- package/dist/tools.mjs +2 -2
- package/package.json +3 -6
- package/src/cli/commands/convert-gdocs/index.ts +24 -0
- package/src/cli/commands/convert-html/block-builder.ts +98 -88
- package/src/cli/commands/convert-html/preprocessor.ts +141 -67
- package/src/cli/commands/convert-html/sanitizer.ts +34 -35
- package/src/cli/index.ts +27 -1
- package/src/components/modules/toolbar/index.ts +5 -6
- package/src/tools/table/index.ts +136 -0
- package/src/tools/table/table-add-controls.ts +31 -2
- package/src/tools/table/table-cell-blocks.ts +13 -3
- package/src/tools/table/table-corner-drag.ts +247 -0
- package/src/types-internal/jsdom.d.ts +9 -0
- package/bin/blok.mjs +0 -10
- package/bin/convert-html.mjs +0 -3
- package/dist/convert-html.mjs +0 -631
- package/src/cli/commands/convert-html/standalone.ts +0 -20
package/dist/blok.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as e, t } from "./chunks/blok-
|
|
2
|
-
import { $n as n } from "./chunks/constants-
|
|
1
|
+
import { n as e, t } from "./chunks/blok-CEVrVqlx.mjs";
|
|
2
|
+
import { $n as n } from "./chunks/constants-BURnHRy_.mjs";
|
|
3
3
|
export { t as Blok, n as DATA_ATTR, e as version };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./chunk-D6kmoKXy.mjs";
|
|
2
|
-
import { $n as t, $t as n, An as r, At as i, Bn as a, Bt as o, C as s, Dn as c, E as l, En as u, Fn as d, Gn as f, Gt as p, Hn as m, In as h, It as g, Jn as _, Jt as v, Kn as ee, Kt as y, Ln as te, Mn as ne, Nn as re, On as ie, Ot as ae, Pn as oe, Qn as se, Qt as ce, Rn as le, S as ue, Sn as de, T as fe, Tn as pe, Un as b, Vn as me, Wn as he, Wt as ge, Xn as _e, Xt as ve, Yn as ye, Yt as be, Zn as x, Zt as xe, _ as Se, _n as Ce, an as we, b as S, bn as Te, dn as Ee, en as De, er as C, fn as Oe, ft as ke, g as Ae, gn as je, gt as Me, h as Ne, hn as Pe, in as w, jn as Fe, k as Ie, kn as Le, ln as Re, m as ze, mn as Be, nn as Ve, p as He, pn as Ue, qn as T, qt as We, rn as E, sn as Ge, tn as Ke, u as qe, un as Je, v as Ye, vn as Xe, vt as Ze, w as Qe, wn as D, x as $e, xn as et, y as tt, yn as nt, zn as rt, zt as it } from "./constants-
|
|
2
|
+
import { $n as t, $t as n, An as r, At as i, Bn as a, Bt as o, C as s, Dn as c, E as l, En as u, Fn as d, Gn as f, Gt as p, Hn as m, In as h, It as g, Jn as _, Jt as v, Kn as ee, Kt as y, Ln as te, Mn as ne, Nn as re, On as ie, Ot as ae, Pn as oe, Qn as se, Qt as ce, Rn as le, S as ue, Sn as de, T as fe, Tn as pe, Un as b, Vn as me, Wn as he, Wt as ge, Xn as _e, Xt as ve, Yn as ye, Yt as be, Zn as x, Zt as xe, _ as Se, _n as Ce, an as we, b as S, bn as Te, dn as Ee, en as De, er as C, fn as Oe, ft as ke, g as Ae, gn as je, gt as Me, h as Ne, hn as Pe, in as w, jn as Fe, k as Ie, kn as Le, ln as Re, m as ze, mn as Be, nn as Ve, p as He, pn as Ue, qn as T, qt as We, rn as E, sn as Ge, tn as Ke, u as qe, un as Je, v as Ye, vn as Xe, vt as Ze, w as Qe, wn as D, x as $e, xn as et, y as tt, yn as nt, zn as rt, zt as it } from "./constants-BURnHRy_.mjs";
|
|
3
3
|
import { n as at, t as O } from "./objectSpread2-CWwMYL_U.mjs";
|
|
4
4
|
import { n as k, t as ot } from "./tw-CqxBf-1Y.mjs";
|
|
5
5
|
import { r as st, t as ct } from "./lightweight-i18n-Cvv8CWh4.mjs";
|
|
@@ -10799,9 +10799,8 @@ var Dd = {
|
|
|
10799
10799
|
this.Blok.BlockManager.blocks.length === 1 && o.isEmpty && !v ? this.blockTunesToggler.hide() : this.blockTunesToggler.show(), this.open();
|
|
10800
10800
|
let ee = o.name === "header" && o.holder.querySelector("[data-blok-toggle-arrow]") !== null;
|
|
10801
10801
|
if ((o.name === "callout" || o.name === "toggle" || ee) && this.nodes.actions && (this.nodes.actions.style.pointerEvents = "none"), g && this.nodes.content) {
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
this.nodes.content.style.marginLeft = `${Math.max(e, t)}px`;
|
|
10802
|
+
let e = parseFloat(getComputedStyle(g).marginLeft) || 0;
|
|
10803
|
+
this.nodes.content.style.marginLeft = `${e}px`;
|
|
10805
10804
|
}
|
|
10806
10805
|
}
|
|
10807
10806
|
moveAndOpenForMultipleBlocks(e) {
|
|
@@ -10827,9 +10826,8 @@ var Dd = {
|
|
|
10827
10826
|
this.positioner.moveToY(this.nodes, c), s.appendChild(i), o && !this.Blok.ReadOnly.isEnabled && r.setupDraggable(o, this.Blok.DragManager);
|
|
10828
10827
|
let l = s.querySelector(`[${t.elementContent}]`);
|
|
10829
10828
|
if (l && this.toolboxInstance.updateLeftAlignElement(l), this.positioner.applyContentOffset(this.nodes, r), this.blockTunesToggler.show(), this.open(), l && this.nodes.content) {
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
this.nodes.content.style.marginLeft = `${Math.max(e, t)}px`;
|
|
10829
|
+
let e = parseFloat(getComputedStyle(l).marginLeft) || 0;
|
|
10830
|
+
this.nodes.content.style.marginLeft = `${e}px`;
|
|
10833
10831
|
}
|
|
10834
10832
|
}
|
|
10835
10833
|
close(e) {
|
|
@@ -130,7 +130,7 @@ var a = {
|
|
|
130
130
|
RIGHT: 2,
|
|
131
131
|
BACKWARD: 3,
|
|
132
132
|
FORWARD: 4
|
|
133
|
-
}, l = () => "0.10.0-beta.
|
|
133
|
+
}, l = () => "0.10.0-beta.16", u = /* @__PURE__ */ function(e) {
|
|
134
134
|
return e.VERBOSE = "VERBOSE", e.INFO = "INFO", e.WARN = "WARN", e.ERROR = "ERROR", e;
|
|
135
135
|
}({}), d = (e, t, n = "log", r, i = "color: inherit") => {
|
|
136
136
|
let a = typeof console > "u" ? void 0 : console;
|