@sobree/core 0.1.11 → 0.1.13
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.js +10 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2659,7 +2659,7 @@ function Ea(t) {
|
|
|
2659
2659
|
const e = {}, n = A(k(t, "pStyle"));
|
|
2660
2660
|
if (n) {
|
|
2661
2661
|
const f = n.match(/^heading\s*([1-6])$/i);
|
|
2662
|
-
f
|
|
2662
|
+
f && (e.headingLevel = Number(f[1])), e.styleId = n;
|
|
2663
2663
|
}
|
|
2664
2664
|
const r = A(k(t, "jc"));
|
|
2665
2665
|
r && (r === "left" || r === "start" ? e.alignment = "left" : r === "right" || r === "end" ? e.alignment = "right" : r === "center" ? e.alignment = "center" : (r === "both" || r === "distribute") && (e.alignment = "justify"));
|
|
@@ -2683,7 +2683,7 @@ function Ea(t) {
|
|
|
2683
2683
|
const o = k(t, "numPr");
|
|
2684
2684
|
if (o) {
|
|
2685
2685
|
const f = A(k(o, "numId")), d = A(k(o, "ilvl"));
|
|
2686
|
-
f !== null && (e.numId = Number(f)
|
|
2686
|
+
f !== null && Number(f) !== 0 && (e.numId = Number(f), d !== null && (e.numLevel = Number(d)));
|
|
2687
2687
|
}
|
|
2688
2688
|
const s = k(t, "tabs");
|
|
2689
2689
|
if (s) {
|
|
@@ -10315,19 +10315,23 @@ function Zd(t) {
|
|
|
10315
10315
|
const i = t.getDocument(), o = i.sections.slice(), s = o.length - 1, a = o[s];
|
|
10316
10316
|
a && (o.push(structuredClone(a)), t.setDocument({ ...i, sections: o }));
|
|
10317
10317
|
}
|
|
10318
|
-
const Qd = "0.1.
|
|
10318
|
+
const Qd = "0.1.13", eh = Qd;
|
|
10319
10319
|
function th(t = document) {
|
|
10320
10320
|
const e = t.createElement("div");
|
|
10321
10321
|
return e.className = "sobree-version-badge", e.textContent = `@sobree/core v${eh}`, e.setAttribute("aria-hidden", "true"), Object.assign(e.style, {
|
|
10322
10322
|
position: "fixed",
|
|
10323
|
-
bottom: "
|
|
10323
|
+
bottom: "8px",
|
|
10324
10324
|
left: "50%",
|
|
10325
10325
|
transform: "translateX(-50%)",
|
|
10326
10326
|
pointerEvents: "none",
|
|
10327
10327
|
userSelect: "none",
|
|
10328
10328
|
zIndex: "2147483647",
|
|
10329
|
-
font: "11px/1
|
|
10330
|
-
color: "rgba(0, 0, 0, 0.
|
|
10329
|
+
font: "11px/1 system-ui, -apple-system, sans-serif",
|
|
10330
|
+
color: "rgba(0, 0, 0, 0.6)",
|
|
10331
|
+
background: "rgba(255, 255, 255, 0.85)",
|
|
10332
|
+
padding: "3px 9px",
|
|
10333
|
+
borderRadius: "999px",
|
|
10334
|
+
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.2)"
|
|
10331
10335
|
}), t.body.appendChild(e), () => e.remove();
|
|
10332
10336
|
}
|
|
10333
10337
|
class nh {
|