oasis-editor 0.0.29 → 0.0.30

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.
@@ -2442,7 +2442,7 @@ function OasisEditorAppLazy(props = {}) {
2442
2442
  onCleanup(() => {
2443
2443
  cancelled = true;
2444
2444
  });
2445
- import("./OasisEditorApp-D0fgzHt5.js").then((m) => {
2445
+ import("./OasisEditorApp-Bvkbr1KZ.js").then((m) => {
2446
2446
  cancelled = true;
2447
2447
  setProgress(1);
2448
2448
  setTimeout(() => setApp(() => m.OasisEditorApp), 180);
@@ -34424,6 +34424,24 @@ function applyConditionalTextStyle(paragraphs, textStyle) {
34424
34424
  }
34425
34425
  }
34426
34426
  }
34427
+ function tableStyleParagraphInheritance(tableStylePPr, paragraphStyleId, styles) {
34428
+ if (!tableStylePPr) {
34429
+ return void 0;
34430
+ }
34431
+ const effectiveStyleId = paragraphStyleId ?? resolveDefaultParagraphStyleId(styles);
34432
+ const paragraphStyleDelta = resolveNamedParagraphStyle(
34433
+ effectiveStyleId,
34434
+ styles
34435
+ );
34436
+ const definedByParagraphStyle = new Set(Object.keys(paragraphStyleDelta));
34437
+ const filtered = {};
34438
+ for (const [key, value] of Object.entries(tableStylePPr)) {
34439
+ if (!definedByParagraphStyle.has(key)) {
34440
+ filtered[key] = value;
34441
+ }
34442
+ }
34443
+ return emptyOrUndefined(filtered);
34444
+ }
34427
34445
  async function parseTableNode(tableNode, numberingMaps, zip, relsMap, assets, theme, styles) {
34428
34446
  var _a, _b;
34429
34447
  const gridCols = [];
@@ -34496,6 +34514,19 @@ async function parseTableNode(tableNode, numberingMaps, zip, relsMap, assets, th
34496
34514
  WORD_NS,
34497
34515
  "p"
34498
34516
  )) {
34517
+ const paragraphStyleId = getAttributeValue(
34518
+ getFirstChildByTagNameNS(
34519
+ getFirstChildByTagNameNS(paragraphNode, WORD_NS, "pPr"),
34520
+ WORD_NS,
34521
+ "pStyle"
34522
+ ),
34523
+ "val"
34524
+ ) ?? void 0;
34525
+ const cellInheritedStyle = tableStyleParagraphInheritance(
34526
+ inheritedParagraphStyle,
34527
+ paragraphStyleId,
34528
+ styles
34529
+ );
34499
34530
  paragraphs.push(
34500
34531
  await parseParagraphNode(
34501
34532
  paragraphNode,
@@ -34504,7 +34535,7 @@ async function parseTableNode(tableNode, numberingMaps, zip, relsMap, assets, th
34504
34535
  relsMap,
34505
34536
  assets,
34506
34537
  theme,
34507
- inheritedParagraphStyle
34538
+ cellInheritedStyle
34508
34539
  )
34509
34540
  );
34510
34541
  autospacingFlags.push(
@@ -35819,7 +35850,7 @@ function importDocxInWorker(buffer, options = {}) {
35819
35850
  const worker = new Worker(
35820
35851
  new URL(
35821
35852
  /* @vite-ignore */
35822
- "" + new URL("assets/importDocxWorker-DcrboJNQ.js", import.meta.url).href,
35853
+ "" + new URL("assets/importDocxWorker-DVvaVtgj.js", import.meta.url).href,
35823
35854
  import.meta.url
35824
35855
  ),
35825
35856
  {
@@ -1,4 +1,4 @@
1
- import { aW, bM, bN, bO, bP, bQ, bb, bR, aX, aS, bS, bT, bU, aV, bV, aQ, bW, bX, bY, bZ, b_, bI, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, ca, bg, cb, bH, cc, bO as bO2, bT as bT2, bV as bV2, c3 as c32, c5 as c52, ca as ca2, aU, aO, cd, ce, cf, aR, cg, ch, aT } from "./index-CMOt03WH.js";
1
+ import { aW, bM, bN, bO, bP, bQ, bb, bR, aX, aS, bS, bT, bU, aV, bV, aQ, bW, bX, bY, bZ, b_, bI, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, ca, bg, cb, bH, cc, bO as bO2, bT as bT2, bV as bV2, c3 as c32, c5 as c52, ca as ca2, aU, aO, cd, ce, cf, aR, cg, ch, aT } from "./index-BVAzjJsg.js";
2
2
  export {
3
3
  aW as BalloonShell,
4
4
  bM as Button,