oasis-editor 0.0.5 → 0.0.6

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.
@@ -68,6 +68,8 @@ export interface EditorParagraphStyle {
68
68
  widowControl?: boolean;
69
69
  /** `w:textDirection/@w:val`: paragraph flow direction (vertical text). */
70
70
  textDirection?: "lrTb" | "tbRl" | "btLr" | "lrTbV" | "tbRlV" | null;
71
+ /** `w:outlineLvl/@w:val`: outline level 0–8 (0 = Heading 1 … 8 = Heading 9). */
72
+ outlineLevel?: number | null;
71
73
  }
72
74
  /** Row properties from a conditional format's `w:trPr`. */
73
75
  export interface EditorConditionalRowStyle {
@@ -2270,7 +2270,7 @@ function OasisEditorAppLazy(props = {}) {
2270
2270
  onCleanup(() => {
2271
2271
  cancelled = true;
2272
2272
  });
2273
- import("./OasisEditorApp--PhUmweO.js").then((m) => {
2273
+ import("./OasisEditorApp-Co_pXhKM.js").then((m) => {
2274
2274
  cancelled = true;
2275
2275
  setProgress(1);
2276
2276
  setTimeout(() => setApp(() => m.OasisEditorApp), 180);
@@ -2849,7 +2849,8 @@ const DEFAULT_PARAGRAPH_STYLE = asRequired({
2849
2849
  keepWithNext: false,
2850
2850
  keepLinesTogether: false,
2851
2851
  widowControl: true,
2852
- textDirection: null
2852
+ textDirection: null,
2853
+ outlineLevel: null
2853
2854
  });
2854
2855
  const DEFAULT_EDITOR_PAGE_SETTINGS = {
2855
2856
  width: 816,
@@ -29899,7 +29900,8 @@ function normalizeImportedParagraphStyle(style2) {
29899
29900
  borderBottom: style2.borderBottom ?? void 0,
29900
29901
  borderLeft: style2.borderLeft ?? void 0,
29901
29902
  tabs: style2.tabs ?? void 0,
29902
- textDirection: style2.textDirection ?? void 0
29903
+ textDirection: style2.textDirection ?? void 0,
29904
+ outlineLevel: style2.outlineLevel ?? void 0
29903
29905
  });
29904
29906
  return normalized;
29905
29907
  }
@@ -30074,6 +30076,18 @@ function parseParagraphStyle$1(paragraphProperties) {
30074
30076
  if (textDirection) {
30075
30077
  style2.textDirection = textDirection;
30076
30078
  }
30079
+ const outlineLvlEl = getFirstChildByTagNameNS(
30080
+ paragraphProperties,
30081
+ WORD_NS,
30082
+ "outlineLvl"
30083
+ );
30084
+ const outlineLvlVal = getAttributeValue(outlineLvlEl, "val");
30085
+ if (outlineLvlVal !== void 0) {
30086
+ const level = Number(outlineLvlVal);
30087
+ if (Number.isFinite(level) && level >= 0 && level <= 8) {
30088
+ style2.outlineLevel = level;
30089
+ }
30090
+ }
30077
30091
  return emptyOrUndefined(style2);
30078
30092
  }
30079
30093
  function parseConditionalRowStyle(trPr) {
@@ -33118,7 +33132,7 @@ function importDocxInWorker(buffer, options = {}) {
33118
33132
  const worker = new Worker(
33119
33133
  new URL(
33120
33134
  /* @vite-ignore */
33121
- "" + new URL("assets/importDocxWorker-C6O0dO38.js", import.meta.url).href,
33135
+ "" + new URL("assets/importDocxWorker-CtfvrAfg.js", import.meta.url).href,
33122
33136
  import.meta.url
33123
33137
  ),
33124
33138
  {
@@ -1,4 +1,4 @@
1
- import { aM, bB, bC, bD, bE, bF, b1, bG, aN, aI, bH, bI, bJ, aL, bK, aG, bL, bM, bN, bO, bP, bx, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b6, b_, bw, b$, bD as bD2, bI as bI2, bK as bK2, bS as bS2, bU as bU2, bZ as bZ2, aK, aE, c0, c1, c2, aH, c3, c4, aJ } from "./index-Buc11g2W.js";
1
+ import { aM, bB, bC, bD, bE, bF, b1, bG, aN, aI, bH, bI, bJ, aL, bK, aG, bL, bM, bN, bO, bP, bx, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b6, b_, bw, b$, bD as bD2, bI as bI2, bK as bK2, bS as bS2, bU as bU2, bZ as bZ2, aK, aE, c0, c1, c2, aH, c3, c4, aJ } from "./index-BYewCj77.js";
2
2
  export {
3
3
  aM as BalloonShell,
4
4
  bB as Button,