oasis-editor 0.0.124 → 0.0.125

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.
@@ -2623,7 +2623,7 @@ function OasisEditorAppLazy(props = {}) {
2623
2623
  onCleanup(() => {
2624
2624
  cancelled = true;
2625
2625
  });
2626
- import("./OasisEditorApp-gxYuoU70.js").then((m) => {
2626
+ import("./OasisEditorApp-CZVAf0XI.js").then((m) => {
2627
2627
  cancelled = true;
2628
2628
  setProgress(1);
2629
2629
  setTimeout(() => setApp(() => m.OasisEditorApp), 180);
@@ -3365,7 +3365,23 @@ const DEFAULT_PARAGRAPH_STYLE = asRequired({
3365
3365
  keepLinesTogether: false,
3366
3366
  widowControl: true,
3367
3367
  textDirection: null,
3368
- outlineLevel: null
3368
+ outlineLevel: null,
3369
+ suppressLineNumbers: false,
3370
+ bidi: false,
3371
+ kinsoku: true,
3372
+ wordWrap: true,
3373
+ overflowPunct: true,
3374
+ topLinePunct: false,
3375
+ autoSpaceDE: true,
3376
+ autoSpaceDN: true,
3377
+ adjustRightInd: true,
3378
+ textAlignment: null,
3379
+ textboxTightWrap: null,
3380
+ divId: null,
3381
+ conditionalStyle: null,
3382
+ borderBetween: null,
3383
+ borderBar: null,
3384
+ framePrXml: null
3369
3385
  });
3370
3386
  const DEFAULT_EDITOR_PAGE_SETTINGS = {
3371
3387
  width: 816,
@@ -15031,9 +15047,36 @@ function getParagraphBorderInsets(style2) {
15031
15047
  bottom: edgeInset(style2.borderBottom)
15032
15048
  };
15033
15049
  }
15050
+ function paragraphBetweenBorderMatches(a, b) {
15051
+ const ba = a.borderBetween;
15052
+ const bb = b.borderBetween;
15053
+ if (!isVisibleBorder$1(ba) || !isVisibleBorder$1(bb)) {
15054
+ return false;
15055
+ }
15056
+ return ba.type === bb.type && ba.width === bb.width && ba.color === bb.color;
15057
+ }
15034
15058
  const VERTICAL_HIT_WEIGHT = 1e3;
15035
15059
  const TEXT_BASELINE_RATIO = 0.8;
15036
15060
  const NO_WRAP_MEASURE_WIDTH_PX = 1e5;
15061
+ function resolveTextAlignmentBaselineOffset(textAlignment, fontSizePx, lineHeightPx) {
15062
+ if (!textAlignment || textAlignment === "auto" || textAlignment === "baseline") {
15063
+ return 0;
15064
+ }
15065
+ if (fontSizePx >= lineHeightPx) {
15066
+ return 0;
15067
+ }
15068
+ const delta = fontSizePx - lineHeightPx;
15069
+ switch (textAlignment) {
15070
+ case "top":
15071
+ return TEXT_BASELINE_RATIO * delta;
15072
+ case "center":
15073
+ return (TEXT_BASELINE_RATIO - 0.5) * delta;
15074
+ case "bottom":
15075
+ return (1 - TEXT_BASELINE_RATIO) * -delta;
15076
+ default:
15077
+ return 0;
15078
+ }
15079
+ }
15037
15080
  function formatTimestamp() {
15038
15081
  const now = /* @__PURE__ */ new Date();
15039
15082
  const h = String(now.getHours()).padStart(2, "0");
@@ -21244,6 +21287,11 @@ function drawParagraph(ctx, paragraph, lines, state, originX, originY, onUpdate,
21244
21287
  slotByOffset.set(slot.offset, slot);
21245
21288
  }
21246
21289
  const baselineY = originY + line.top + line.height * TEXT_BASELINE_RATIO;
21290
+ const paragraphStyle = resolveEffectiveParagraphStyle(
21291
+ paragraph.style,
21292
+ state.document.styles
21293
+ );
21294
+ const textAlignment = paragraphStyle.textAlignment;
21247
21295
  const listPrefix = line.index === 0 ? resolveListPrefix(paragraph, state.document) : "";
21248
21296
  if (listPrefix) {
21249
21297
  const prefixStyles = resolveEffectiveTextStyleForParagraph(
@@ -21386,7 +21434,11 @@ function drawParagraph(ctx, paragraph, lines, state, originX, originY, onUpdate,
21386
21434
  state,
21387
21435
  styles,
21388
21436
  originX,
21389
- baselineY + renderMetrics.baselineOffset
21437
+ baselineY + renderMetrics.baselineOffset + resolveTextAlignmentBaselineOffset(
21438
+ textAlignment,
21439
+ fontSize,
21440
+ line.height
21441
+ )
21390
21442
  );
21391
21443
  if (styles.reflection) {
21392
21444
  drawFragmentReflection(
@@ -21395,7 +21447,11 @@ function drawParagraph(ctx, paragraph, lines, state, originX, originY, onUpdate,
21395
21447
  slotByOffset,
21396
21448
  styles,
21397
21449
  originX,
21398
- baselineY + renderMetrics.baselineOffset,
21450
+ baselineY + renderMetrics.baselineOffset + resolveTextAlignmentBaselineOffset(
21451
+ textAlignment,
21452
+ fontSize,
21453
+ line.height
21454
+ ),
21399
21455
  styles.reflection
21400
21456
  );
21401
21457
  }
@@ -21625,7 +21681,7 @@ function toCanvasEdge(border) {
21625
21681
  };
21626
21682
  }
21627
21683
  function drawParagraphDecorations(ctx, paragraphStyle, lines, originX, contentTop, contentWidth) {
21628
- const hasBorder = !!paragraphStyle.borderTop || !!paragraphStyle.borderRight || !!paragraphStyle.borderBottom || !!paragraphStyle.borderLeft;
21684
+ const hasBorder = !!paragraphStyle.borderTop || !!paragraphStyle.borderRight || !!paragraphStyle.borderBottom || !!paragraphStyle.borderLeft || !!paragraphStyle.borderBar;
21629
21685
  if (!paragraphStyle.shading && !hasBorder) {
21630
21686
  return;
21631
21687
  }
@@ -21655,11 +21711,17 @@ function drawParagraphDecorations(ctx, paragraphStyle, lines, originX, contentTo
21655
21711
  left: toCanvasEdge(paragraphStyle.borderLeft)
21656
21712
  });
21657
21713
  }
21714
+ if (paragraphStyle.borderBar) {
21715
+ drawBorderBox(ctx, left, contentTop, 0, boxHeight, {
21716
+ left: toCanvasEdge(paragraphStyle.borderBar)
21717
+ });
21718
+ }
21658
21719
  }
21659
21720
  function renderBlockList(ctx, state, blocks, originX, originY, contentWidth, pageIndex, onUpdate, pageSettings) {
21660
21721
  var _a;
21661
21722
  let cursorY = originY;
21662
- for (const block of blocks) {
21723
+ for (let blockIndex = 0; blockIndex < blocks.length; blockIndex += 1) {
21724
+ const block = blocks[blockIndex];
21663
21725
  if (block.sourceBlock.type === "paragraph" && block.layout) {
21664
21726
  const paragraphStyle = resolveEffectiveParagraphStyle(
21665
21727
  block.sourceBlock.style,
@@ -21752,6 +21814,30 @@ function renderBlockList(ctx, state, blocks, originX, originY, contentWidth, pag
21752
21814
  layer: "front"
21753
21815
  });
21754
21816
  }
21817
+ const nextBlock = blocks[blockIndex + 1];
21818
+ if ((nextBlock == null ? void 0 : nextBlock.sourceBlock.type) === "paragraph" && nextBlock.layout && nextBlock.sourceBlock.id !== block.sourceBlock.id) {
21819
+ const nextStyle = resolveEffectiveParagraphStyle(
21820
+ nextBlock.sourceBlock.style,
21821
+ state.document.styles
21822
+ );
21823
+ if (paragraphBetweenBorderMatches(paragraphStyle, nextStyle)) {
21824
+ let linesHeight = 0;
21825
+ for (const line of block.layout.lines) {
21826
+ linesHeight = Math.max(linesHeight, line.top + line.height);
21827
+ }
21828
+ const betweenY = textTop + linesHeight;
21829
+ const barLeft = originX + (paragraphStyle.indentLeft ?? 0);
21830
+ const barRight = originX + contentWidth - (paragraphStyle.indentRight ?? 0);
21831
+ drawBorderBox(
21832
+ ctx,
21833
+ barLeft,
21834
+ betweenY,
21835
+ Math.max(0, barRight - barLeft),
21836
+ 0,
21837
+ { top: toCanvasEdge(paragraphStyle.borderBetween) }
21838
+ );
21839
+ }
21840
+ }
21755
21841
  } else if (block.sourceBlock.type === "table") {
21756
21842
  const floating = (_a = block.sourceBlock.style) == null ? void 0 : _a.floating;
21757
21843
  if (floating && pageSettings) {
@@ -33030,6 +33116,12 @@ function parseDocxBoxBorders(container) {
33030
33116
  ),
33031
33117
  borderTopRightToBottomLeft: parseDocxBorder(
33032
33118
  getFirstChildByTagNameNS(container, WORD_NS, "tr2bl")
33119
+ ),
33120
+ borderBetween: parseDocxBorder(
33121
+ getFirstChildByTagNameNS(container, WORD_NS, "between")
33122
+ ),
33123
+ borderBar: parseDocxBorder(
33124
+ getFirstChildByTagNameNS(container, WORD_NS, "bar")
33033
33125
  )
33034
33126
  };
33035
33127
  }
@@ -33601,240 +33693,6 @@ function parseRunStyle(runProperties, theme) {
33601
33693
  }
33602
33694
  return emptyOrUndefined(styles);
33603
33695
  }
33604
- function normalizeImportedParagraphStyle(style2) {
33605
- if (!style2) {
33606
- return void 0;
33607
- }
33608
- const effective = resolveEffectiveParagraphStyle(
33609
- style2,
33610
- DEFAULT_EDITOR_STYLES
33611
- );
33612
- const defaultEffective = resolveEffectiveParagraphStyle(
33613
- void 0,
33614
- DEFAULT_EDITOR_STYLES
33615
- );
33616
- const normalized = stripUndefined({
33617
- styleId: style2.styleId,
33618
- align: effective.align !== defaultEffective.align ? effective.align : void 0,
33619
- spacingBefore: effective.spacingBefore !== defaultEffective.spacingBefore ? effective.spacingBefore : void 0,
33620
- spacingAfter: effective.spacingAfter !== defaultEffective.spacingAfter ? effective.spacingAfter : void 0,
33621
- contextualSpacing: style2.contextualSpacing !== void 0 || effective.contextualSpacing !== defaultEffective.contextualSpacing ? effective.contextualSpacing : void 0,
33622
- lineHeight: effective.lineHeight !== defaultEffective.lineHeight ? effective.lineHeight : void 0,
33623
- lineRule: effective.lineRule ?? void 0,
33624
- lineGridPitch: style2.lineGridPitch ?? void 0,
33625
- snapToGrid: style2.snapToGrid !== void 0 || effective.snapToGrid !== defaultEffective.snapToGrid ? effective.snapToGrid : void 0,
33626
- indentLeft: style2.indentLeft !== void 0 || effective.indentLeft !== defaultEffective.indentLeft ? effective.indentLeft : void 0,
33627
- indentRight: style2.indentRight !== void 0 || effective.indentRight !== defaultEffective.indentRight ? effective.indentRight : void 0,
33628
- indentFirstLine: style2.indentFirstLine !== void 0 || effective.indentFirstLine !== defaultEffective.indentFirstLine ? effective.indentFirstLine : void 0,
33629
- indentHanging: style2.indentHanging !== void 0 || effective.indentHanging !== defaultEffective.indentHanging ? effective.indentHanging : void 0,
33630
- mirrorIndents: style2.mirrorIndents !== void 0 || effective.mirrorIndents !== defaultEffective.mirrorIndents ? effective.mirrorIndents : void 0,
33631
- pageBreakBefore: style2.pageBreakBefore !== void 0 || effective.pageBreakBefore !== defaultEffective.pageBreakBefore ? effective.pageBreakBefore : void 0,
33632
- keepWithNext: style2.keepWithNext !== void 0 || effective.keepWithNext !== defaultEffective.keepWithNext ? effective.keepWithNext : void 0,
33633
- keepLinesTogether: style2.keepLinesTogether !== void 0 || effective.keepLinesTogether !== defaultEffective.keepLinesTogether ? effective.keepLinesTogether : void 0,
33634
- widowControl: style2.widowControl !== void 0 || effective.widowControl !== defaultEffective.widowControl ? effective.widowControl : void 0,
33635
- shading: style2.shading ?? void 0,
33636
- borderTop: style2.borderTop ?? void 0,
33637
- borderRight: style2.borderRight ?? void 0,
33638
- borderBottom: style2.borderBottom ?? void 0,
33639
- borderLeft: style2.borderLeft ?? void 0,
33640
- tabs: style2.tabs ?? void 0,
33641
- textDirection: style2.textDirection ?? void 0,
33642
- outlineLevel: style2.outlineLevel ?? void 0
33643
- });
33644
- return normalized;
33645
- }
33646
- function withDocxImplicitSingleLineHeight(style2) {
33647
- if ((style2 == null ? void 0 : style2.lineHeight) !== void 0) {
33648
- return style2;
33649
- }
33650
- return {
33651
- ...style2 ?? {},
33652
- lineHeight: DOCX_IMPLICIT_SINGLE_LINE_HEIGHT
33653
- };
33654
- }
33655
- function parseAutospacingFlags(paragraphProperties) {
33656
- const spacing = getFirstChildByTagNameNS(
33657
- paragraphProperties,
33658
- WORD_NS,
33659
- "spacing"
33660
- );
33661
- return {
33662
- before: isWordTrue(getAttributeValue(spacing, "beforeAutospacing")),
33663
- after: isWordTrue(getAttributeValue(spacing, "afterAutospacing"))
33664
- };
33665
- }
33666
- function parseParagraphTabs(paragraphProperties) {
33667
- const tabsElement = getFirstChildByTagNameNS(
33668
- paragraphProperties,
33669
- WORD_NS,
33670
- "tabs"
33671
- );
33672
- if (!tabsElement) {
33673
- return [];
33674
- }
33675
- const tabs = [];
33676
- for (const tabElement of getChildrenByTagNameNS(
33677
- tabsElement,
33678
- WORD_NS,
33679
- "tab"
33680
- )) {
33681
- const position2 = twipsToPoints(getAttributeValue(tabElement, "pos"));
33682
- if (position2 === void 0) {
33683
- continue;
33684
- }
33685
- const typeValue = getAttributeValue(tabElement, "val");
33686
- const type = typeValue === "center" || typeValue === "right" || typeValue === "decimal" || typeValue === "bar" || typeValue === "clear" ? typeValue : "left";
33687
- const leaderValue = getAttributeValue(tabElement, "leader");
33688
- const leader = leaderValue === "dot" || leaderValue === "hyphen" || leaderValue === "underscore" || leaderValue === "heavy" || leaderValue === "middleDot" ? leaderValue : leaderValue === "none" ? "none" : void 0;
33689
- tabs.push({
33690
- position: position2,
33691
- type,
33692
- ...leader !== void 0 ? { leader } : {}
33693
- });
33694
- }
33695
- return tabs;
33696
- }
33697
- function parseParagraphStyle$1(paragraphProperties, colors) {
33698
- if (!paragraphProperties) {
33699
- return void 0;
33700
- }
33701
- const style2 = {};
33702
- const styleId = parseStyleIdProperty(paragraphProperties, "pStyle");
33703
- if (styleId) {
33704
- style2.styleId = styleId;
33705
- }
33706
- const justification = getFirstChildByTagNameNS(
33707
- paragraphProperties,
33708
- WORD_NS,
33709
- "jc"
33710
- );
33711
- const justificationValue = getAttributeValue(justification, "val");
33712
- if (justificationValue === "left" || justificationValue === "start" || justificationValue === "center" || justificationValue === "right" || justificationValue === "end" || justificationValue === "justify") {
33713
- style2.align = justificationValue === "start" ? "left" : justificationValue === "end" ? "right" : justificationValue;
33714
- } else if (justificationValue === "both" || justificationValue === "distribute") {
33715
- style2.align = "justify";
33716
- }
33717
- const spacing = getFirstChildByTagNameNS(
33718
- paragraphProperties,
33719
- WORD_NS,
33720
- "spacing"
33721
- );
33722
- const before = getAttributeValue(spacing, "before");
33723
- const after = getAttributeValue(spacing, "after");
33724
- const line = getAttributeValue(spacing, "line");
33725
- const lineRule = getAttributeValue(spacing, "lineRule");
33726
- if (before) {
33727
- style2.spacingBefore = twipsToPx(before, 0);
33728
- }
33729
- if (after) {
33730
- style2.spacingAfter = twipsToPx(after, 0);
33731
- }
33732
- if (line) {
33733
- if (lineRule === "exact" || lineRule === "atLeast") {
33734
- style2.lineHeight = roundTo(Number(line) / 1440 * 96, 4);
33735
- style2.lineRule = lineRule;
33736
- } else {
33737
- style2.lineHeight = Number(line) / 240;
33738
- }
33739
- }
33740
- const contextualSpacing = parseOnOffProperty(
33741
- paragraphProperties,
33742
- "contextualSpacing"
33743
- );
33744
- if (contextualSpacing !== void 0) {
33745
- style2.contextualSpacing = contextualSpacing;
33746
- }
33747
- const snapToGrid = parseOnOffProperty(paragraphProperties, "snapToGrid");
33748
- if (snapToGrid !== void 0) {
33749
- style2.snapToGrid = snapToGrid;
33750
- }
33751
- const indent = getFirstChildByTagNameNS(paragraphProperties, WORD_NS, "ind");
33752
- const left = getAttributeValue(indent, "start") ?? getAttributeValue(indent, "left");
33753
- const right = getAttributeValue(indent, "end") ?? getAttributeValue(indent, "right");
33754
- const firstLine = getAttributeValue(indent, "firstLine");
33755
- const hanging = getAttributeValue(indent, "hanging");
33756
- if (left) {
33757
- style2.indentLeft = twipsToPx(left, 0);
33758
- }
33759
- if (right) {
33760
- style2.indentRight = twipsToPx(right, 0);
33761
- }
33762
- if (hanging) {
33763
- style2.indentHanging = twipsToPx(hanging, 0);
33764
- style2.indentFirstLine = void 0;
33765
- } else if (firstLine) {
33766
- style2.indentFirstLine = twipsToPx(firstLine, 0);
33767
- }
33768
- const tabs = parseParagraphTabs(paragraphProperties);
33769
- if (tabs.length > 0) {
33770
- style2.tabs = tabs;
33771
- }
33772
- const pageBreakBefore = parseOnOffProperty(
33773
- paragraphProperties,
33774
- "pageBreakBefore"
33775
- );
33776
- if (pageBreakBefore !== void 0) {
33777
- style2.pageBreakBefore = pageBreakBefore;
33778
- }
33779
- const keepNext = parseOnOffProperty(paragraphProperties, "keepNext");
33780
- if (keepNext !== void 0) {
33781
- style2.keepWithNext = keepNext;
33782
- }
33783
- const keepLines = parseOnOffProperty(paragraphProperties, "keepLines");
33784
- if (keepLines !== void 0) {
33785
- style2.keepLinesTogether = keepLines;
33786
- }
33787
- const widowControl = parseOnOffProperty(paragraphProperties, "widowControl");
33788
- if (widowControl !== void 0) {
33789
- style2.widowControl = widowControl;
33790
- }
33791
- const mirrorIndents = parseOnOffProperty(
33792
- paragraphProperties,
33793
- "mirrorIndents"
33794
- );
33795
- if (mirrorIndents !== void 0) {
33796
- style2.mirrorIndents = mirrorIndents;
33797
- }
33798
- const paragraphBorders = getFirstChildByTagNameNS(
33799
- paragraphProperties,
33800
- WORD_NS,
33801
- "pBdr"
33802
- );
33803
- if (paragraphBorders) {
33804
- const { borderTop, borderRight, borderBottom, borderLeft } = parseDocxBoxBorders(paragraphBorders);
33805
- if (borderTop) style2.borderTop = borderTop;
33806
- if (borderRight) style2.borderRight = borderRight;
33807
- if (borderBottom) style2.borderBottom = borderBottom;
33808
- if (borderLeft) style2.borderLeft = borderLeft;
33809
- }
33810
- const shading = getFirstChildByTagNameNS(paragraphProperties, WORD_NS, "shd");
33811
- const shadingFill = parseShdFill(shading, colors);
33812
- if (shadingFill) {
33813
- style2.shading = shadingFill;
33814
- }
33815
- const textDirection = parseTextDirection(
33816
- getAttributeValue(
33817
- getFirstChildByTagNameNS(paragraphProperties, WORD_NS, "textDirection"),
33818
- "val"
33819
- )
33820
- );
33821
- if (textDirection) {
33822
- style2.textDirection = textDirection;
33823
- }
33824
- const outlineLvlEl = getFirstChildByTagNameNS(
33825
- paragraphProperties,
33826
- WORD_NS,
33827
- "outlineLvl"
33828
- );
33829
- const outlineLvlVal = getAttributeValue(outlineLvlEl, "val");
33830
- if (outlineLvlVal !== void 0) {
33831
- const level = Number(outlineLvlVal);
33832
- if (Number.isFinite(level) && level >= 0 && level <= 8) {
33833
- style2.outlineLevel = level;
33834
- }
33835
- }
33836
- return emptyOrUndefined(style2);
33837
- }
33838
33696
  const TABLE_CONDITIONAL_FLAG_ATTRIBUTES = [
33839
33697
  ["firstRow", "firstRow"],
33840
33698
  ["lastRow", "lastRow"],
@@ -34372,6 +34230,355 @@ function collapseCellAutospacing(paragraphs, flags) {
34372
34230
  }
34373
34231
  }
34374
34232
  }
34233
+ function normalizeImportedParagraphStyle(style2) {
34234
+ if (!style2) {
34235
+ return void 0;
34236
+ }
34237
+ const effective = resolveEffectiveParagraphStyle(
34238
+ style2,
34239
+ DEFAULT_EDITOR_STYLES
34240
+ );
34241
+ const defaultEffective = resolveEffectiveParagraphStyle(
34242
+ void 0,
34243
+ DEFAULT_EDITOR_STYLES
34244
+ );
34245
+ const normalized = stripUndefined({
34246
+ styleId: style2.styleId,
34247
+ align: effective.align !== defaultEffective.align ? effective.align : void 0,
34248
+ spacingBefore: effective.spacingBefore !== defaultEffective.spacingBefore ? effective.spacingBefore : void 0,
34249
+ spacingAfter: effective.spacingAfter !== defaultEffective.spacingAfter ? effective.spacingAfter : void 0,
34250
+ contextualSpacing: style2.contextualSpacing !== void 0 || effective.contextualSpacing !== defaultEffective.contextualSpacing ? effective.contextualSpacing : void 0,
34251
+ lineHeight: effective.lineHeight !== defaultEffective.lineHeight ? effective.lineHeight : void 0,
34252
+ lineRule: effective.lineRule ?? void 0,
34253
+ lineGridPitch: style2.lineGridPitch ?? void 0,
34254
+ snapToGrid: style2.snapToGrid !== void 0 || effective.snapToGrid !== defaultEffective.snapToGrid ? effective.snapToGrid : void 0,
34255
+ indentLeft: style2.indentLeft !== void 0 || effective.indentLeft !== defaultEffective.indentLeft ? effective.indentLeft : void 0,
34256
+ indentRight: style2.indentRight !== void 0 || effective.indentRight !== defaultEffective.indentRight ? effective.indentRight : void 0,
34257
+ indentFirstLine: style2.indentFirstLine !== void 0 || effective.indentFirstLine !== defaultEffective.indentFirstLine ? effective.indentFirstLine : void 0,
34258
+ indentHanging: style2.indentHanging !== void 0 || effective.indentHanging !== defaultEffective.indentHanging ? effective.indentHanging : void 0,
34259
+ mirrorIndents: style2.mirrorIndents !== void 0 || effective.mirrorIndents !== defaultEffective.mirrorIndents ? effective.mirrorIndents : void 0,
34260
+ pageBreakBefore: style2.pageBreakBefore !== void 0 || effective.pageBreakBefore !== defaultEffective.pageBreakBefore ? effective.pageBreakBefore : void 0,
34261
+ keepWithNext: style2.keepWithNext !== void 0 || effective.keepWithNext !== defaultEffective.keepWithNext ? effective.keepWithNext : void 0,
34262
+ keepLinesTogether: style2.keepLinesTogether !== void 0 || effective.keepLinesTogether !== defaultEffective.keepLinesTogether ? effective.keepLinesTogether : void 0,
34263
+ widowControl: style2.widowControl !== void 0 || effective.widowControl !== defaultEffective.widowControl ? effective.widowControl : void 0,
34264
+ shading: style2.shading ?? void 0,
34265
+ borderTop: style2.borderTop ?? void 0,
34266
+ borderRight: style2.borderRight ?? void 0,
34267
+ borderBottom: style2.borderBottom ?? void 0,
34268
+ borderLeft: style2.borderLeft ?? void 0,
34269
+ tabs: style2.tabs ?? void 0,
34270
+ textDirection: style2.textDirection ?? void 0,
34271
+ outlineLevel: style2.outlineLevel ?? void 0,
34272
+ suppressLineNumbers: style2.suppressLineNumbers !== void 0 || effective.suppressLineNumbers !== defaultEffective.suppressLineNumbers ? effective.suppressLineNumbers : void 0,
34273
+ bidi: style2.bidi !== void 0 || effective.bidi !== defaultEffective.bidi ? effective.bidi : void 0,
34274
+ kinsoku: style2.kinsoku !== void 0 || effective.kinsoku !== defaultEffective.kinsoku ? effective.kinsoku : void 0,
34275
+ wordWrap: style2.wordWrap !== void 0 || effective.wordWrap !== defaultEffective.wordWrap ? effective.wordWrap : void 0,
34276
+ overflowPunct: style2.overflowPunct !== void 0 || effective.overflowPunct !== defaultEffective.overflowPunct ? effective.overflowPunct : void 0,
34277
+ topLinePunct: style2.topLinePunct !== void 0 || effective.topLinePunct !== defaultEffective.topLinePunct ? effective.topLinePunct : void 0,
34278
+ autoSpaceDE: style2.autoSpaceDE !== void 0 || effective.autoSpaceDE !== defaultEffective.autoSpaceDE ? effective.autoSpaceDE : void 0,
34279
+ autoSpaceDN: style2.autoSpaceDN !== void 0 || effective.autoSpaceDN !== defaultEffective.autoSpaceDN ? effective.autoSpaceDN : void 0,
34280
+ adjustRightInd: style2.adjustRightInd !== void 0 || effective.adjustRightInd !== defaultEffective.adjustRightInd ? effective.adjustRightInd : void 0,
34281
+ textAlignment: style2.textAlignment ?? void 0,
34282
+ textboxTightWrap: style2.textboxTightWrap ?? void 0,
34283
+ divId: style2.divId ?? void 0,
34284
+ conditionalStyle: style2.conditionalStyle ?? void 0,
34285
+ borderBetween: style2.borderBetween ?? void 0,
34286
+ borderBar: style2.borderBar ?? void 0,
34287
+ framePrXml: style2.framePrXml ?? void 0
34288
+ });
34289
+ return normalized;
34290
+ }
34291
+ function withDocxImplicitSingleLineHeight(style2) {
34292
+ if ((style2 == null ? void 0 : style2.lineHeight) !== void 0) {
34293
+ return style2;
34294
+ }
34295
+ return {
34296
+ ...style2 ?? {},
34297
+ lineHeight: DOCX_IMPLICIT_SINGLE_LINE_HEIGHT
34298
+ };
34299
+ }
34300
+ function parseAutospacingFlags(paragraphProperties) {
34301
+ const spacing = getFirstChildByTagNameNS(
34302
+ paragraphProperties,
34303
+ WORD_NS,
34304
+ "spacing"
34305
+ );
34306
+ return {
34307
+ before: isWordTrue(getAttributeValue(spacing, "beforeAutospacing")),
34308
+ after: isWordTrue(getAttributeValue(spacing, "afterAutospacing"))
34309
+ };
34310
+ }
34311
+ function parseParagraphTabs(paragraphProperties) {
34312
+ const tabsElement = getFirstChildByTagNameNS(
34313
+ paragraphProperties,
34314
+ WORD_NS,
34315
+ "tabs"
34316
+ );
34317
+ if (!tabsElement) {
34318
+ return [];
34319
+ }
34320
+ const tabs = [];
34321
+ for (const tabElement of getChildrenByTagNameNS(
34322
+ tabsElement,
34323
+ WORD_NS,
34324
+ "tab"
34325
+ )) {
34326
+ const position2 = twipsToPoints(getAttributeValue(tabElement, "pos"));
34327
+ if (position2 === void 0) {
34328
+ continue;
34329
+ }
34330
+ const typeValue = getAttributeValue(tabElement, "val");
34331
+ const type = typeValue === "center" || typeValue === "right" || typeValue === "decimal" || typeValue === "bar" || typeValue === "clear" ? typeValue : "left";
34332
+ const leaderValue = getAttributeValue(tabElement, "leader");
34333
+ const leader = leaderValue === "dot" || leaderValue === "hyphen" || leaderValue === "underscore" || leaderValue === "heavy" || leaderValue === "middleDot" ? leaderValue : leaderValue === "none" ? "none" : void 0;
34334
+ tabs.push({
34335
+ position: position2,
34336
+ type,
34337
+ ...leader !== void 0 ? { leader } : {}
34338
+ });
34339
+ }
34340
+ return tabs;
34341
+ }
34342
+ function parseParagraphStyle$1(paragraphProperties, colors) {
34343
+ if (!paragraphProperties) {
34344
+ return void 0;
34345
+ }
34346
+ const style2 = {};
34347
+ const styleId = parseStyleIdProperty(paragraphProperties, "pStyle");
34348
+ if (styleId) {
34349
+ style2.styleId = styleId;
34350
+ }
34351
+ const justification = getFirstChildByTagNameNS(
34352
+ paragraphProperties,
34353
+ WORD_NS,
34354
+ "jc"
34355
+ );
34356
+ const justificationValue = getAttributeValue(justification, "val");
34357
+ if (justificationValue === "left" || justificationValue === "start" || justificationValue === "center" || justificationValue === "right" || justificationValue === "end" || justificationValue === "justify") {
34358
+ style2.align = justificationValue === "start" ? "left" : justificationValue === "end" ? "right" : justificationValue;
34359
+ } else if (justificationValue === "both" || justificationValue === "distribute") {
34360
+ style2.align = "justify";
34361
+ }
34362
+ const spacing = getFirstChildByTagNameNS(
34363
+ paragraphProperties,
34364
+ WORD_NS,
34365
+ "spacing"
34366
+ );
34367
+ const before = getAttributeValue(spacing, "before");
34368
+ const after = getAttributeValue(spacing, "after");
34369
+ const line = getAttributeValue(spacing, "line");
34370
+ const lineRule = getAttributeValue(spacing, "lineRule");
34371
+ if (before) {
34372
+ style2.spacingBefore = twipsToPx(before, 0);
34373
+ }
34374
+ if (after) {
34375
+ style2.spacingAfter = twipsToPx(after, 0);
34376
+ }
34377
+ if (line) {
34378
+ if (lineRule === "exact" || lineRule === "atLeast") {
34379
+ style2.lineHeight = roundTo(Number(line) / 1440 * 96, 4);
34380
+ style2.lineRule = lineRule;
34381
+ } else {
34382
+ style2.lineHeight = Number(line) / 240;
34383
+ }
34384
+ }
34385
+ const contextualSpacing = parseOnOffProperty(
34386
+ paragraphProperties,
34387
+ "contextualSpacing"
34388
+ );
34389
+ if (contextualSpacing !== void 0) {
34390
+ style2.contextualSpacing = contextualSpacing;
34391
+ }
34392
+ const snapToGrid = parseOnOffProperty(paragraphProperties, "snapToGrid");
34393
+ if (snapToGrid !== void 0) {
34394
+ style2.snapToGrid = snapToGrid;
34395
+ }
34396
+ const indent = getFirstChildByTagNameNS(paragraphProperties, WORD_NS, "ind");
34397
+ const left = getAttributeValue(indent, "start") ?? getAttributeValue(indent, "left");
34398
+ const right = getAttributeValue(indent, "end") ?? getAttributeValue(indent, "right");
34399
+ const firstLine = getAttributeValue(indent, "firstLine");
34400
+ const hanging = getAttributeValue(indent, "hanging");
34401
+ if (left) {
34402
+ style2.indentLeft = twipsToPx(left, 0);
34403
+ }
34404
+ if (right) {
34405
+ style2.indentRight = twipsToPx(right, 0);
34406
+ }
34407
+ if (hanging) {
34408
+ style2.indentHanging = twipsToPx(hanging, 0);
34409
+ style2.indentFirstLine = void 0;
34410
+ } else if (firstLine) {
34411
+ style2.indentFirstLine = twipsToPx(firstLine, 0);
34412
+ }
34413
+ const tabs = parseParagraphTabs(paragraphProperties);
34414
+ if (tabs.length > 0) {
34415
+ style2.tabs = tabs;
34416
+ }
34417
+ const pageBreakBefore = parseOnOffProperty(
34418
+ paragraphProperties,
34419
+ "pageBreakBefore"
34420
+ );
34421
+ if (pageBreakBefore !== void 0) {
34422
+ style2.pageBreakBefore = pageBreakBefore;
34423
+ }
34424
+ const keepNext = parseOnOffProperty(paragraphProperties, "keepNext");
34425
+ if (keepNext !== void 0) {
34426
+ style2.keepWithNext = keepNext;
34427
+ }
34428
+ const keepLines = parseOnOffProperty(paragraphProperties, "keepLines");
34429
+ if (keepLines !== void 0) {
34430
+ style2.keepLinesTogether = keepLines;
34431
+ }
34432
+ const widowControl = parseOnOffProperty(paragraphProperties, "widowControl");
34433
+ if (widowControl !== void 0) {
34434
+ style2.widowControl = widowControl;
34435
+ }
34436
+ const mirrorIndents = parseOnOffProperty(
34437
+ paragraphProperties,
34438
+ "mirrorIndents"
34439
+ );
34440
+ if (mirrorIndents !== void 0) {
34441
+ style2.mirrorIndents = mirrorIndents;
34442
+ }
34443
+ const paragraphBorders = getFirstChildByTagNameNS(
34444
+ paragraphProperties,
34445
+ WORD_NS,
34446
+ "pBdr"
34447
+ );
34448
+ if (paragraphBorders) {
34449
+ const {
34450
+ borderTop,
34451
+ borderRight,
34452
+ borderBottom,
34453
+ borderLeft,
34454
+ borderBetween,
34455
+ borderBar
34456
+ } = parseDocxBoxBorders(paragraphBorders);
34457
+ if (borderTop) style2.borderTop = borderTop;
34458
+ if (borderRight) style2.borderRight = borderRight;
34459
+ if (borderBottom) style2.borderBottom = borderBottom;
34460
+ if (borderLeft) style2.borderLeft = borderLeft;
34461
+ if (borderBetween) style2.borderBetween = borderBetween;
34462
+ if (borderBar) style2.borderBar = borderBar;
34463
+ }
34464
+ const shading = getFirstChildByTagNameNS(paragraphProperties, WORD_NS, "shd");
34465
+ const shadingFill = parseShdFill(shading, colors);
34466
+ if (shadingFill) {
34467
+ style2.shading = shadingFill;
34468
+ }
34469
+ const textDirection = parseTextDirection(
34470
+ getAttributeValue(
34471
+ getFirstChildByTagNameNS(paragraphProperties, WORD_NS, "textDirection"),
34472
+ "val"
34473
+ )
34474
+ );
34475
+ if (textDirection) {
34476
+ style2.textDirection = textDirection;
34477
+ }
34478
+ const outlineLvlEl = getFirstChildByTagNameNS(
34479
+ paragraphProperties,
34480
+ WORD_NS,
34481
+ "outlineLvl"
34482
+ );
34483
+ const outlineLvlVal = getAttributeValue(outlineLvlEl, "val");
34484
+ if (outlineLvlVal !== void 0) {
34485
+ const level = Number(outlineLvlVal);
34486
+ if (Number.isFinite(level) && level >= 0 && level <= 8) {
34487
+ style2.outlineLevel = level;
34488
+ }
34489
+ }
34490
+ const suppressLineNumbers = parseOnOffProperty(
34491
+ paragraphProperties,
34492
+ "suppressLineNumbers"
34493
+ );
34494
+ if (suppressLineNumbers !== void 0) {
34495
+ style2.suppressLineNumbers = suppressLineNumbers;
34496
+ }
34497
+ const bidi = parseOnOffProperty(paragraphProperties, "bidi");
34498
+ if (bidi !== void 0) {
34499
+ style2.bidi = bidi;
34500
+ }
34501
+ const kinsoku = parseOnOffProperty(paragraphProperties, "kinsoku");
34502
+ if (kinsoku !== void 0) {
34503
+ style2.kinsoku = kinsoku;
34504
+ }
34505
+ const wordWrap = parseOnOffProperty(paragraphProperties, "wordWrap");
34506
+ if (wordWrap !== void 0) {
34507
+ style2.wordWrap = wordWrap;
34508
+ }
34509
+ const overflowPunct = parseOnOffProperty(
34510
+ paragraphProperties,
34511
+ "overflowPunct"
34512
+ );
34513
+ if (overflowPunct !== void 0) {
34514
+ style2.overflowPunct = overflowPunct;
34515
+ }
34516
+ const topLinePunct = parseOnOffProperty(paragraphProperties, "topLinePunct");
34517
+ if (topLinePunct !== void 0) {
34518
+ style2.topLinePunct = topLinePunct;
34519
+ }
34520
+ const autoSpaceDE = parseOnOffProperty(paragraphProperties, "autoSpaceDE");
34521
+ if (autoSpaceDE !== void 0) {
34522
+ style2.autoSpaceDE = autoSpaceDE;
34523
+ }
34524
+ const autoSpaceDN = parseOnOffProperty(paragraphProperties, "autoSpaceDN");
34525
+ if (autoSpaceDN !== void 0) {
34526
+ style2.autoSpaceDN = autoSpaceDN;
34527
+ }
34528
+ const adjustRightInd = parseOnOffProperty(
34529
+ paragraphProperties,
34530
+ "adjustRightInd"
34531
+ );
34532
+ if (adjustRightInd !== void 0) {
34533
+ style2.adjustRightInd = adjustRightInd;
34534
+ }
34535
+ const textAlignmentEl = getFirstChildByTagNameNS(
34536
+ paragraphProperties,
34537
+ WORD_NS,
34538
+ "textAlignment"
34539
+ );
34540
+ const textAlignmentVal = getAttributeValue(textAlignmentEl, "val");
34541
+ if (textAlignmentVal === "auto" || textAlignmentVal === "top" || textAlignmentVal === "center" || textAlignmentVal === "baseline" || textAlignmentVal === "bottom") {
34542
+ style2.textAlignment = textAlignmentVal;
34543
+ }
34544
+ const textboxTightWrapEl = getFirstChildByTagNameNS(
34545
+ paragraphProperties,
34546
+ WORD_NS,
34547
+ "textboxTightWrap"
34548
+ );
34549
+ const textboxTightWrapVal = getAttributeValue(textboxTightWrapEl, "val");
34550
+ if (textboxTightWrapVal === "none" || textboxTightWrapVal === "allLines" || textboxTightWrapVal === "firstLineOnly" || textboxTightWrapVal === "firstLastLine") {
34551
+ style2.textboxTightWrap = textboxTightWrapVal;
34552
+ }
34553
+ const divIdEl = getFirstChildByTagNameNS(
34554
+ paragraphProperties,
34555
+ WORD_NS,
34556
+ "divId"
34557
+ );
34558
+ const divIdVal = getAttributeValue(divIdEl, "val");
34559
+ if (divIdVal !== null) {
34560
+ const divId = Number(divIdVal);
34561
+ if (Number.isFinite(divId) && divId >= 0) {
34562
+ style2.divId = Math.floor(divId);
34563
+ }
34564
+ }
34565
+ const conditionalStyle = parseTableConditionalFlags(paragraphProperties);
34566
+ if (conditionalStyle) {
34567
+ style2.conditionalStyle = conditionalStyle;
34568
+ }
34569
+ const framePrEl = getFirstChildByTagNameNS(
34570
+ paragraphProperties,
34571
+ WORD_NS,
34572
+ "framePr"
34573
+ );
34574
+ if (framePrEl) {
34575
+ const frameDropCap = getAttributeValue(framePrEl, "dropCap");
34576
+ if (!frameDropCap || frameDropCap === "none") {
34577
+ style2.framePrXml = new XMLSerializer().serializeToString(framePrEl);
34578
+ }
34579
+ }
34580
+ return emptyOrUndefined(style2);
34581
+ }
34375
34582
  function parseImportedStyles(stylesXml, theme) {
34376
34583
  if (!stylesXml) {
34377
34584
  return void 0;
@@ -37294,7 +37501,7 @@ function importDocxInWorker(buffer, options = {}) {
37294
37501
  const worker = new Worker(
37295
37502
  new URL(
37296
37503
  /* @vite-ignore */
37297
- "" + new URL("assets/importDocxWorker-A73eR_fM.js", import.meta.url).href,
37504
+ "" + new URL("assets/importDocxWorker-C9tO3vbp.js", import.meta.url).href,
37298
37505
  import.meta.url
37299
37506
  ),
37300
37507
  {
@@ -43763,7 +43970,7 @@ export {
43763
43970
  FormField as ay,
43764
43971
  Checkbox as az,
43765
43972
  getPageBodyTop as b,
43766
- getTableCellContentWidthForParagraph as b$,
43973
+ getDocumentParagraphs as b$,
43767
43974
  EMU_PER_PT as b0,
43768
43975
  OOXML_ROTATION_UNITS as b1,
43769
43976
  OOXML_PERCENT_DENOMINATOR as b2,
@@ -43774,33 +43981,33 @@ export {
43774
43981
  iterateEndnoteReferenceRuns as b7,
43775
43982
  imageContentTypeDefaults as b8,
43776
43983
  getRunFieldChar as b9,
43777
- resolveListLabel as bA,
43778
- getListLabelInset as bB,
43779
- getAlignedListLabelInset as bC,
43780
- getParagraphBorderInsets as bD,
43781
- buildSegmentTable as bE,
43782
- buildCanvasTableLayout as bF,
43783
- resolveCanvasTableWidth as bG,
43784
- resolveFloatingTableRect as bH,
43785
- normalizeFamily as bI,
43786
- ROBOTO_FONT_FILES as bJ,
43787
- loadFontAsset as bK,
43788
- OFFICE_COMPAT_FONT_FAMILIES as bL,
43789
- BinaryReader as bM,
43790
- buildSfnt as bN,
43791
- defaultFontDecoderRegistry as bO,
43792
- SfntFontProgram as bP,
43793
- collectPdfFontFamilies as bQ,
43794
- outlineFrom as bR,
43795
- getPageHeaderZoneTop as bS,
43796
- getPageColumnRects as bT,
43797
- findFootnoteReference as bU,
43798
- resolveImporterForFile as bV,
43799
- roundTo as bW,
43800
- getDocumentSectionsCanonical as bX,
43801
- getDocumentParagraphsCanonical as bY,
43802
- getDocumentParagraphs as bZ,
43803
- getDocumentPageSettings as b_,
43984
+ DOUBLE_STRIKE_OFFSET_PX as bA,
43985
+ resolveListLabel as bB,
43986
+ getListLabelInset as bC,
43987
+ getAlignedListLabelInset as bD,
43988
+ getParagraphBorderInsets as bE,
43989
+ buildSegmentTable as bF,
43990
+ buildCanvasTableLayout as bG,
43991
+ resolveCanvasTableWidth as bH,
43992
+ resolveFloatingTableRect as bI,
43993
+ paragraphBetweenBorderMatches as bJ,
43994
+ normalizeFamily as bK,
43995
+ ROBOTO_FONT_FILES as bL,
43996
+ loadFontAsset as bM,
43997
+ OFFICE_COMPAT_FONT_FAMILIES as bN,
43998
+ BinaryReader as bO,
43999
+ buildSfnt as bP,
44000
+ defaultFontDecoderRegistry as bQ,
44001
+ SfntFontProgram as bR,
44002
+ collectPdfFontFamilies as bS,
44003
+ outlineFrom as bT,
44004
+ getPageHeaderZoneTop as bU,
44005
+ getPageColumnRects as bV,
44006
+ findFootnoteReference as bW,
44007
+ resolveImporterForFile as bX,
44008
+ roundTo as bY,
44009
+ getDocumentSectionsCanonical as bZ,
44010
+ getDocumentParagraphsCanonical as b_,
43804
44011
  getRunFieldInstruction as ba,
43805
44012
  createEditorRun as bb,
43806
44013
  JSZip as bc,
@@ -43823,101 +44030,103 @@ export {
43823
44030
  rgb255ToHex as bt,
43824
44031
  getImageFloatingGeometry as bu,
43825
44032
  textStyleToFontSizePt as bv,
43826
- TEXT_BASELINE_RATIO as bw,
43827
- resolveOpenTypeFeatureTags as bx,
43828
- resolveDecorationLineY as by,
43829
- DOUBLE_STRIKE_OFFSET_PX as bz,
44033
+ resolveTextAlignmentBaselineOffset as bw,
44034
+ TEXT_BASELINE_RATIO as bx,
44035
+ resolveOpenTypeFeatureTags as by,
44036
+ resolveDecorationLineY as bz,
43830
44037
  getPageContentWidth as c,
43831
- Heading as c$,
43832
- layoutMetricsEpoch as c0,
43833
- bumpLayoutMetricsEpoch as c1,
43834
- createCanvasLayoutSnapshotProvider as c2,
43835
- on as c3,
43836
- debounce as c4,
43837
- unwrap as c5,
43838
- perfTimer as c6,
43839
- getRunTextBox as c7,
43840
- createEditorDocument as c8,
43841
- resolveResizedDimensions as c9,
43842
- MenuRegistry as cA,
43843
- createToolbarRegistry as cB,
43844
- Editor as cC,
43845
- resolveCommandRef as cD,
43846
- commandRefName as cE,
43847
- createOasisEditorClient as cF,
43848
- createEditorZoom as cG,
43849
- startLongTaskObserver as cH,
43850
- installGlobalReport as cI,
43851
- applyStoredPreciseFontPreference as cJ,
43852
- getWelcomeSeen as cK,
43853
- isLocalFontAccessSupported as cL,
43854
- EDITOR_SCROLL_PADDING_PX as cM,
43855
- Toolbar as cN,
43856
- OasisEditorLoading as cO,
43857
- I18nProvider as cP,
43858
- createTranslator as cQ,
43859
- registerDomStatsSurface as cR,
43860
- createEditorLogger as cS,
43861
- ActionRow as cT,
43862
- ColorPicker as cU,
43863
- CommandRegistry as cV,
43864
- DEFAULT_PALETTE as cW,
43865
- DialogFooter as cX,
43866
- FieldRow as cY,
43867
- FloatingActionButton as cZ,
43868
- GridPicker as c_,
43869
- resolveTextBoxRenderHeight as ca,
43870
- getToolbarStyleState as cb,
43871
- VERTICAL_HIT_WEIGHT as cc,
43872
- getCachedCanvasImage as cd,
43873
- measureParagraphMinContentWidthPx as ce,
43874
- getEditableBlocksForZone as cf,
43875
- findParagraphLocation as cg,
43876
- createSectionBoundaryParagraph as ch,
43877
- normalizePageSettings as ci,
43878
- DEFAULT_EDITOR_PAGE_SETTINGS as cj,
43879
- markStart as ck,
43880
- markEnd as cl,
43881
- getParagraphEntries as cm,
43882
- getParagraphById as cn,
43883
- createEditorFootnote as co,
43884
- createFootnoteReferenceRun as cp,
43885
- renumberFootnotes as cq,
43886
- getHeadingLevel as cr,
43887
- preciseFontModeVersion as cs,
43888
- isPreciseFontModeEnabled as ct,
43889
- resolveNamedTextStyle as cu,
43890
- togglePreciseFontMode as cv,
43891
- nextFontSizePt as cw,
43892
- previousFontSizePt as cx,
43893
- fontSizePtToPx as cy,
43894
- createDefaultToolbarPreset as cz,
44038
+ FloatingActionButton as c$,
44039
+ getDocumentPageSettings as c0,
44040
+ getTableCellContentWidthForParagraph as c1,
44041
+ layoutMetricsEpoch as c2,
44042
+ bumpLayoutMetricsEpoch as c3,
44043
+ createCanvasLayoutSnapshotProvider as c4,
44044
+ on as c5,
44045
+ debounce as c6,
44046
+ unwrap as c7,
44047
+ perfTimer as c8,
44048
+ getRunTextBox as c9,
44049
+ fontSizePtToPx as cA,
44050
+ createDefaultToolbarPreset as cB,
44051
+ MenuRegistry as cC,
44052
+ createToolbarRegistry as cD,
44053
+ Editor as cE,
44054
+ resolveCommandRef as cF,
44055
+ commandRefName as cG,
44056
+ createOasisEditorClient as cH,
44057
+ createEditorZoom as cI,
44058
+ startLongTaskObserver as cJ,
44059
+ installGlobalReport as cK,
44060
+ applyStoredPreciseFontPreference as cL,
44061
+ getWelcomeSeen as cM,
44062
+ isLocalFontAccessSupported as cN,
44063
+ EDITOR_SCROLL_PADDING_PX as cO,
44064
+ Toolbar as cP,
44065
+ OasisEditorLoading as cQ,
44066
+ I18nProvider as cR,
44067
+ createTranslator as cS,
44068
+ registerDomStatsSurface as cT,
44069
+ createEditorLogger as cU,
44070
+ ActionRow as cV,
44071
+ ColorPicker as cW,
44072
+ CommandRegistry as cX,
44073
+ DEFAULT_PALETTE as cY,
44074
+ DialogFooter as cZ,
44075
+ FieldRow as c_,
44076
+ createEditorDocument as ca,
44077
+ resolveResizedDimensions as cb,
44078
+ resolveTextBoxRenderHeight as cc,
44079
+ getToolbarStyleState as cd,
44080
+ VERTICAL_HIT_WEIGHT as ce,
44081
+ getCachedCanvasImage as cf,
44082
+ measureParagraphMinContentWidthPx as cg,
44083
+ getEditableBlocksForZone as ch,
44084
+ findParagraphLocation as ci,
44085
+ createSectionBoundaryParagraph as cj,
44086
+ normalizePageSettings as ck,
44087
+ DEFAULT_EDITOR_PAGE_SETTINGS as cl,
44088
+ markStart as cm,
44089
+ markEnd as cn,
44090
+ getParagraphEntries as co,
44091
+ getParagraphById as cp,
44092
+ createEditorFootnote as cq,
44093
+ createFootnoteReferenceRun as cr,
44094
+ renumberFootnotes as cs,
44095
+ getHeadingLevel as ct,
44096
+ preciseFontModeVersion as cu,
44097
+ isPreciseFontModeEnabled as cv,
44098
+ resolveNamedTextStyle as cw,
44099
+ togglePreciseFontMode as cx,
44100
+ nextFontSizePt as cy,
44101
+ previousFontSizePt as cz,
43895
44102
  domTextMeasurer as d,
43896
- IconButton as d0,
43897
- Menu as d1,
43898
- OASIS_BUILTIN_COMMANDS as d2,
43899
- OASIS_MENU_ITEMS as d3,
43900
- OASIS_TOOLBAR_ITEMS as d4,
43901
- OasisEditorAppLazy as d5,
43902
- OasisEditorContainer as d6,
43903
- PluginCollection as d7,
43904
- Popover as d8,
43905
- RIBBON_TABS as d9,
43906
- Select as da,
43907
- Separator as db,
43908
- SidePanel as dc,
43909
- SidePanelBody as dd,
43910
- SidePanelFooter as de,
43911
- SidePanelHeader as df,
43912
- SplitButton as dg,
43913
- StyleGallery as dh,
43914
- Button$1 as di,
43915
- buildRibbonTabDefinitions as dj,
43916
- createEditorCommandBus as dk,
43917
- createOasisEditor as dl,
43918
- createOasisEditorContainer as dm,
43919
- mount as dn,
43920
- registerToolbarRenderer as dp,
44103
+ GridPicker as d0,
44104
+ Heading as d1,
44105
+ IconButton as d2,
44106
+ Menu as d3,
44107
+ OASIS_BUILTIN_COMMANDS as d4,
44108
+ OASIS_MENU_ITEMS as d5,
44109
+ OASIS_TOOLBAR_ITEMS as d6,
44110
+ OasisEditorAppLazy as d7,
44111
+ OasisEditorContainer as d8,
44112
+ PluginCollection as d9,
44113
+ Popover as da,
44114
+ RIBBON_TABS as db,
44115
+ Select as dc,
44116
+ Separator as dd,
44117
+ SidePanel as de,
44118
+ SidePanelBody as df,
44119
+ SidePanelFooter as dg,
44120
+ SidePanelHeader as dh,
44121
+ SplitButton as di,
44122
+ StyleGallery as dj,
44123
+ Button$1 as dk,
44124
+ buildRibbonTabDefinitions as dl,
44125
+ createEditorCommandBus as dm,
44126
+ createOasisEditor as dn,
44127
+ createOasisEditorContainer as dp,
44128
+ mount as dq,
44129
+ registerToolbarRenderer as dr,
43921
44130
  estimateTableBlockHeight as e,
43922
44131
  getParagraphText as f,
43923
44132
  getProjectedParagraphBlockHeight as g,