@sobree/core 0.1.11 → 0.1.12
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 +3 -3
- 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,7 +10315,7 @@ 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.12", 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, {
|