oasis-editor 0.0.97 → 0.0.99

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.
@@ -34,6 +34,11 @@ export interface EditorComment {
34
34
  initials?: string;
35
35
  /** `w:comment/@w:date` as an epoch millisecond timestamp. */
36
36
  date?: number;
37
+ /**
38
+ * `w16du:dateUtc` companion UTC timestamp (epoch ms). Round-trip metadata
39
+ * only — preserved verbatim so the UTC date survives export.
40
+ */
41
+ dateUtc?: number;
37
42
  /** Resolved/"done" state (`w15:commentEx/@w15:done`). */
38
43
  resolved?: boolean;
39
44
  /** Flattened comment body text (bodies in scope are single paragraphs). */
@@ -60,6 +60,17 @@ export interface EditorTextStyle {
60
60
  glow?: EditorGlow | null;
61
61
  /** `w14:reflection` — mirrored copy of glyphs fading below the baseline. */
62
62
  reflection?: EditorReflection | null;
63
+ /**
64
+ * `w14:scene3d` — opaque serialized XML preserved verbatim for round-trip.
65
+ * 3D scene/camera is not rendered on any surface; the blob is re-emitted so
66
+ * the property is never silently dropped.
67
+ */
68
+ scene3dXml?: string | null;
69
+ /**
70
+ * `w14:props3d` — opaque serialized XML preserved verbatim for round-trip.
71
+ * 3D extrusion/bevel material is not rendered; re-emitted to avoid data loss.
72
+ */
73
+ props3dXml?: string | null;
63
74
  highlight?: string | null;
64
75
  shading?: string | null;
65
76
  language?: EditorTextLanguage | null;
@@ -5,4 +5,11 @@ export declare function underlineStyleToCssDecorationStyle(underlineStyle: Under
5
5
  export declare function isDoubleUnderlineStyle(underlineStyle: UnderlineStyle): boolean;
6
6
  export declare function isWavyUnderlineStyle(underlineStyle: UnderlineStyle): boolean;
7
7
  export declare function underlineStyleLineWidthPx(underlineStyle: UnderlineStyle): number;
8
+ /**
9
+ * Resolves the OpenType GSUB feature tags a run explicitly enables, mirroring the
10
+ * CSS semantics in `styleCss.ts` (only enabled features, no implicit liga/kern).
11
+ * Used by the PDF shaper to drive glyph substitution. Returns a sorted, de-duped
12
+ * array so it doubles as a stable cache key.
13
+ */
14
+ export declare function resolveOpenTypeFeatureTags(style: EditorTextStyle): string[];
8
15
  export declare function underlineStyleDashArray(underlineStyle: UnderlineStyle): number[] | undefined;
@@ -22,7 +22,7 @@ export declare class PdfFontTable {
22
22
  * Unicode run, recording the glyphs used for subsetting. Returns `null` when
23
23
  * the run produced no glyphs so the caller can skip emission entirely.
24
24
  */
25
- buildUnicodeShowCommand(state: OasisPdfUnicodeFontState, text: string): string | null;
25
+ buildUnicodeShowCommand(state: OasisPdfUnicodeFontState, text: string, features?: readonly string[]): string | null;
26
26
  /**
27
27
  * Emits the font objects (base-14 dictionaries and embedded Unicode font
28
28
  * programs) for every referenced resource and returns the `/Font` resource
@@ -73,6 +73,11 @@ export interface OasisPdfTextOptions {
73
73
  strokeColor?: string;
74
74
  /** Stroke line width in pt for render modes 1 and 2. Defaults to 3% of fontSize. */
75
75
  strokeWidth?: number;
76
+ /**
77
+ * OpenType GSUB feature tags to apply when shaping this run with an embedded
78
+ * Unicode font (e.g. `["liga", "onum", "ss01"]`). Ignored by base-14 fonts.
79
+ */
80
+ fontFeatures?: readonly string[];
76
81
  }
77
82
  export interface OasisPdfImageResource {
78
83
  resourceName: string;
@@ -2,6 +2,8 @@ export interface ParsedCommentBody {
2
2
  author: string;
3
3
  initials?: string;
4
4
  date?: number;
5
+ /** `w16du:dateUtc` companion UTC timestamp (epoch ms). */
6
+ dateUtc?: number;
5
7
  text: string;
6
8
  resolved?: boolean;
7
9
  /** `w14:paraId` of the comment's (first) paragraph — links to commentsEx. */
@@ -2519,7 +2519,7 @@ function OasisEditorAppLazy(props = {}) {
2519
2519
  onCleanup(() => {
2520
2520
  cancelled = true;
2521
2521
  });
2522
- import("./OasisEditorApp-m8k4gBW1.js").then((m) => {
2522
+ import("./OasisEditorApp-kxR9P2nm.js").then((m) => {
2523
2523
  cancelled = true;
2524
2524
  setProgress(1);
2525
2525
  setTimeout(() => setApp(() => m.OasisEditorApp), 180);
@@ -15222,6 +15222,17 @@ function resolveCanvasTextRenderMetrics(styles, fontSize) {
15222
15222
  baselineOffset: -explicitBaselineShift
15223
15223
  };
15224
15224
  }
15225
+ function applyCanvasTextFeatureHints(ctx, styles, fontSizePx) {
15226
+ const featureCtx = ctx;
15227
+ const threshold = styles == null ? void 0 : styles.kerningThreshold;
15228
+ const kerningActive = threshold !== void 0 && threshold !== null && Number.isFinite(threshold) && fontSizePx / PX_PER_POINT >= threshold;
15229
+ if ("fontKerning" in featureCtx) {
15230
+ featureCtx.fontKerning = kerningActive ? "normal" : "none";
15231
+ }
15232
+ if ("textRendering" in featureCtx) {
15233
+ featureCtx.textRendering = (styles == null ? void 0 : styles.ligatures) && styles.ligatures !== "none" ? "optimizeLegibility" : "optimizeSpeed";
15234
+ }
15235
+ }
15225
15236
  function resolveVerticalMode(direction) {
15226
15237
  switch (direction) {
15227
15238
  case "tbRl":
@@ -20923,6 +20934,33 @@ function underlineStyleLineWidthPx(underlineStyle) {
20923
20934
  return 1;
20924
20935
  }
20925
20936
  }
20937
+ function resolveOpenTypeFeatureTags(style2) {
20938
+ const tags = /* @__PURE__ */ new Set();
20939
+ switch (style2.ligatures) {
20940
+ case "standard":
20941
+ tags.add("liga");
20942
+ break;
20943
+ case "contextual":
20944
+ tags.add("calt");
20945
+ break;
20946
+ case "historical":
20947
+ tags.add("hlig");
20948
+ break;
20949
+ case "standardContextual":
20950
+ tags.add("liga");
20951
+ tags.add("calt");
20952
+ break;
20953
+ }
20954
+ if (style2.numberForm === "lining") tags.add("lnum");
20955
+ if (style2.numberForm === "oldStyle") tags.add("onum");
20956
+ if (style2.numberSpacing === "proportional") tags.add("pnum");
20957
+ if (style2.numberSpacing === "tabular") tags.add("tnum");
20958
+ if (typeof style2.stylisticSet === "number" && style2.stylisticSet >= 1 && style2.stylisticSet <= 20) {
20959
+ tags.add(`ss${String(style2.stylisticSet).padStart(2, "0")}`);
20960
+ }
20961
+ if (style2.contextualAlternates) tags.add("calt");
20962
+ return Array.from(tags).sort();
20963
+ }
20926
20964
  function underlineStyleDashArray(underlineStyle) {
20927
20965
  switch (underlineStyle) {
20928
20966
  case "dotted":
@@ -21200,6 +21238,7 @@ function drawParagraph(ctx, paragraph, lines, state, originX, originY, onUpdate,
21200
21238
  const renderMetrics = resolveCanvasTextRenderMetrics(styles, fontSize);
21201
21239
  ctx.save();
21202
21240
  ctx.font = `${fontStyle} ${fontWeight} ${renderMetrics.fontSize}px ${fontFamily}`;
21241
+ applyCanvasTextFeatureHints(ctx, styles, fontSize);
21203
21242
  logCanvasFontUse({
21204
21243
  requestedFamily: styles.fontFamily,
21205
21244
  metricFamily,
@@ -21487,7 +21526,7 @@ function resolveCanvasTextFill(ctx, styles, line, fragment, originX, originY) {
21487
21526
  return gradient;
21488
21527
  }
21489
21528
  function drawStyledText(ctx, text, x, y, scale, styles) {
21490
- const hasEffects = styles.outline || styles.shadow || styles.textShadow || styles.glow || styles.emboss || styles.imprint || styles.textOutline;
21529
+ const hasEffects = styles.outline || styles.shadow || styles.textShadow || styles.glow || styles.emboss || styles.imprint || styles.textOutline || styles.reflection;
21491
21530
  if (!hasEffects) {
21492
21531
  drawScaledText(ctx, text, x, y, scale);
21493
21532
  return;
@@ -21556,6 +21595,24 @@ function drawStyledText(ctx, text, x, y, scale, styles) {
21556
21595
  drawScaledText(ctx, text, x, y, scale);
21557
21596
  }
21558
21597
  ctx.restore();
21598
+ if (styles.reflection) {
21599
+ const ref = styles.reflection;
21600
+ const distPx = ref.distPt * PX_PER_POINT;
21601
+ const avgAlpha = Math.max(
21602
+ 0,
21603
+ Math.min(1, (ref.startAlpha + ref.endAlpha) / 2)
21604
+ );
21605
+ ctx.save();
21606
+ ctx.shadowColor = "transparent";
21607
+ ctx.globalAlpha = avgAlpha;
21608
+ if (ref.blurPt > 0 && "filter" in ctx) {
21609
+ ctx.filter = `blur(${ref.blurPt * PX_PER_POINT}px)`;
21610
+ }
21611
+ ctx.translate(0, 2 * y + distPx);
21612
+ ctx.scale(1, -1);
21613
+ drawScaledText(ctx, text, x, y, scale);
21614
+ ctx.restore();
21615
+ }
21559
21616
  }
21560
21617
  function drawFragmentBorder(ctx, line, fragment, originX, originY, border) {
21561
21618
  if (border.type === "none" || border.width <= 0) return;
@@ -33568,6 +33625,8 @@ function normalizeImportedRunStyle(style2, paragraphStyleId) {
33568
33625
  textShadow: dd(effective.textShadow, defaultEffective.textShadow),
33569
33626
  glow: dd(effective.glow, defaultEffective.glow),
33570
33627
  reflection: dd(effective.reflection, defaultEffective.reflection),
33628
+ scene3dXml: dd(effective.scene3dXml, defaultEffective.scene3dXml),
33629
+ props3dXml: dd(effective.props3dXml, defaultEffective.props3dXml),
33571
33630
  highlight: dd(effective.highlight, defaultEffective.highlight),
33572
33631
  shading: dd(effective.shading, defaultEffective.shading),
33573
33632
  language: dd(effective.language, defaultEffective.language),
@@ -33853,6 +33912,14 @@ function parseRunStyle(runProperties, theme) {
33853
33912
  if (reflectionEl) {
33854
33913
  styles.reflection = parseW14Reflection(reflectionEl);
33855
33914
  }
33915
+ const scene3dEl = getFirstW14Child(runProperties, "scene3d");
33916
+ if (scene3dEl) {
33917
+ styles.scene3dXml = new XMLSerializer().serializeToString(scene3dEl);
33918
+ }
33919
+ const props3dEl = getFirstW14Child(runProperties, "props3d");
33920
+ if (props3dEl) {
33921
+ styles.props3dXml = new XMLSerializer().serializeToString(props3dEl);
33922
+ }
33856
33923
  const highlight = getFirstChildByTagNameNS(
33857
33924
  runProperties,
33858
33925
  WORD_NS,
@@ -36837,6 +36904,7 @@ function extractCommentRangesFromSections(sections) {
36837
36904
  return ranges;
36838
36905
  }
36839
36906
  const WORD15_NS = "http://schemas.microsoft.com/office/word/2012/wordml";
36907
+ const WORD16DU_NS = "http://schemas.microsoft.com/office/word/2023/wordml/word16du";
36840
36908
  function flattenCommentText(element) {
36841
36909
  let out = "";
36842
36910
  for (let index = 0; index < element.childNodes.length; index += 1) {
@@ -36909,6 +36977,7 @@ function parseCommentsXml(commentsXml, commentsExtendedXml) {
36909
36977
  const author = getAttributeValue(comment, "author") ?? "";
36910
36978
  const initials = getAttributeValue(comment, "initials") ?? void 0;
36911
36979
  const date = parseDate(getAttributeValue(comment, "date"));
36980
+ const dateUtc = parseDate(comment.getAttributeNS(WORD16DU_NS, "dateUtc"));
36912
36981
  const paragraphs = getChildrenByTagNameNS(comment, WORD_NS, "p");
36913
36982
  const text = paragraphs.map((p) => flattenCommentText(p)).join("\n").trim();
36914
36983
  const paraId = paragraphs.length > 0 ? getAttributeValue(paragraphs[0], "paraId") ?? void 0 : void 0;
@@ -36917,6 +36986,7 @@ function parseCommentsXml(commentsXml, commentsExtendedXml) {
36917
36986
  author,
36918
36987
  ...initials ? { initials } : {},
36919
36988
  ...date !== void 0 ? { date } : {},
36989
+ ...dateUtc !== void 0 ? { dateUtc } : {},
36920
36990
  text,
36921
36991
  ...resolved ? { resolved } : {},
36922
36992
  ...paraId ? { paraId } : {}
@@ -37312,6 +37382,7 @@ function buildEditorComments(ranges, bodies) {
37312
37382
  author: (body == null ? void 0 : body.author) ?? "",
37313
37383
  ...(body == null ? void 0 : body.initials) ? { initials: body.initials } : {},
37314
37384
  ...(body == null ? void 0 : body.date) !== void 0 ? { date: body.date } : {},
37385
+ ...(body == null ? void 0 : body.dateUtc) !== void 0 ? { dateUtc: body.dateUtc } : {},
37315
37386
  ...(body == null ? void 0 : body.resolved) ? { resolved: body.resolved } : {},
37316
37387
  text: (body == null ? void 0 : body.text) ?? "",
37317
37388
  ...(range == null ? void 0 : range.start) ? { start: range.start } : {},
@@ -37426,7 +37497,7 @@ function importDocxInWorker(buffer, options = {}) {
37426
37497
  const worker = new Worker(
37427
37498
  new URL(
37428
37499
  /* @vite-ignore */
37429
- "" + new URL("assets/importDocxWorker-BV6LezJZ.js", import.meta.url).href,
37500
+ "" + new URL("assets/importDocxWorker-BulqJDJj.js", import.meta.url).href,
37430
37501
  import.meta.url
37431
37502
  ),
37432
37503
  {
@@ -41807,7 +41878,7 @@ export {
41807
41878
  createRenderEffect as Z,
41808
41879
  style as _,
41809
41880
  assertNever as a,
41810
- loadFontAsset as a$,
41881
+ ROBOTO_FONT_FILES as a$,
41811
41882
  setStyleProperty as a0,
41812
41883
  memo as a1,
41813
41884
  template as a2,
@@ -41830,21 +41901,21 @@ export {
41830
41901
  getImageFloatingGeometry as aJ,
41831
41902
  textStyleToFontSizePt as aK,
41832
41903
  PX_PER_POINT as aL,
41833
- DEFAULT_FONT_SIZE_PX as aM,
41834
- isDoubleUnderlineStyle as aN,
41835
- isWavyUnderlineStyle as aO,
41836
- underlineStyleLineWidthPx as aP,
41837
- underlineStyleDashArray as aQ,
41838
- resolveListLabel as aR,
41839
- getListLabelInset as aS,
41840
- getAlignedListLabelInset as aT,
41841
- getParagraphBorderInsets as aU,
41842
- buildSegmentTable as aV,
41843
- buildCanvasTableLayout as aW,
41844
- resolveCanvasTableWidth as aX,
41845
- resolveFloatingTableRect as aY,
41846
- normalizeFamily as aZ,
41847
- ROBOTO_FONT_FILES as a_,
41904
+ resolveOpenTypeFeatureTags as aM,
41905
+ DEFAULT_FONT_SIZE_PX as aN,
41906
+ isDoubleUnderlineStyle as aO,
41907
+ isWavyUnderlineStyle as aP,
41908
+ underlineStyleLineWidthPx as aQ,
41909
+ underlineStyleDashArray as aR,
41910
+ resolveListLabel as aS,
41911
+ getListLabelInset as aT,
41912
+ getAlignedListLabelInset as aU,
41913
+ getParagraphBorderInsets as aV,
41914
+ buildSegmentTable as aW,
41915
+ buildCanvasTableLayout as aX,
41916
+ resolveCanvasTableWidth as aY,
41917
+ resolveFloatingTableRect as aZ,
41918
+ normalizeFamily as a_,
41848
41919
  className as aa,
41849
41920
  For as ab,
41850
41921
  UNDERLINE_STYLE_OPTIONS as ac,
@@ -41872,112 +41943,114 @@ export {
41872
41943
  getRunFieldChar as ay,
41873
41944
  getRunFieldInstruction as az,
41874
41945
  createEditorStateFromDocument as b,
41875
- EDITOR_SCROLL_PADDING_PX as b$,
41876
- OFFICE_COMPAT_FONT_FAMILIES as b0,
41877
- buildSfnt as b1,
41878
- defaultFontDecoderRegistry as b2,
41879
- SfntFontProgram as b3,
41880
- collectPdfFontFamilies as b4,
41881
- projectDocumentLayout as b5,
41882
- getPageContentWidth as b6,
41883
- getPageHeaderZoneTop as b7,
41884
- getPageBodyTop as b8,
41885
- getPageColumnRects as b9,
41886
- getParagraphEntries as bA,
41887
- getParagraphById as bB,
41888
- createEditorFootnote as bC,
41889
- createFootnoteReferenceRun as bD,
41890
- renumberFootnotes as bE,
41891
- getFootnoteDisplayMarker as bF,
41892
- getHeadingLevel as bG,
41893
- preciseFontModeVersion as bH,
41894
- isPreciseFontModeEnabled as bI,
41895
- resolveNamedTextStyle as bJ,
41896
- togglePreciseFontMode as bK,
41897
- nextFontSizePt as bL,
41898
- previousFontSizePt as bM,
41899
- fontSizePtToPx as bN,
41900
- createDefaultToolbarPreset as bO,
41901
- MenuRegistry as bP,
41902
- createToolbarRegistry as bQ,
41903
- Editor as bR,
41904
- resolveCommandRef as bS,
41905
- commandRefName as bT,
41906
- createOasisEditorClient as bU,
41907
- createEditorZoom as bV,
41908
- startLongTaskObserver as bW,
41909
- installGlobalReport as bX,
41910
- applyStoredPreciseFontPreference as bY,
41911
- getWelcomeSeen as bZ,
41912
- isLocalFontAccessSupported as b_,
41913
- findFootnoteReference as ba,
41914
- FOOTNOTE_MARKER_GUTTER_PX as bb,
41915
- resolveImporterForFile as bc,
41916
- getDocumentSectionsCanonical as bd,
41917
- getDocumentParagraphsCanonical as be,
41918
- getDocumentParagraphs as bf,
41919
- getDocumentPageSettings as bg,
41920
- getTableCellContentWidthForParagraph as bh,
41921
- on as bi,
41922
- debounce as bj,
41923
- unwrap as bk,
41924
- perfTimer as bl,
41925
- getRunTextBox as bm,
41926
- createEditorDocument as bn,
41927
- resolveResizedDimensions as bo,
41928
- resolveTextBoxRenderHeight as bp,
41929
- getToolbarStyleState as bq,
41930
- getCachedCanvasImage as br,
41931
- measureParagraphMinContentWidthPx as bs,
41932
- getEditableBlocksForZone as bt,
41933
- findParagraphLocation as bu,
41934
- createSectionBoundaryParagraph as bv,
41935
- normalizePageSettings as bw,
41936
- DEFAULT_EDITOR_PAGE_SETTINGS as bx,
41937
- markStart as by,
41938
- markEnd as bz,
41946
+ getWelcomeSeen as b$,
41947
+ loadFontAsset as b0,
41948
+ OFFICE_COMPAT_FONT_FAMILIES as b1,
41949
+ BinaryReader as b2,
41950
+ buildSfnt as b3,
41951
+ defaultFontDecoderRegistry as b4,
41952
+ SfntFontProgram as b5,
41953
+ collectPdfFontFamilies as b6,
41954
+ projectDocumentLayout as b7,
41955
+ getPageContentWidth as b8,
41956
+ getPageHeaderZoneTop as b9,
41957
+ markStart as bA,
41958
+ markEnd as bB,
41959
+ getParagraphEntries as bC,
41960
+ getParagraphById as bD,
41961
+ createEditorFootnote as bE,
41962
+ createFootnoteReferenceRun as bF,
41963
+ renumberFootnotes as bG,
41964
+ getFootnoteDisplayMarker as bH,
41965
+ getHeadingLevel as bI,
41966
+ preciseFontModeVersion as bJ,
41967
+ isPreciseFontModeEnabled as bK,
41968
+ resolveNamedTextStyle as bL,
41969
+ togglePreciseFontMode as bM,
41970
+ nextFontSizePt as bN,
41971
+ previousFontSizePt as bO,
41972
+ fontSizePtToPx as bP,
41973
+ createDefaultToolbarPreset as bQ,
41974
+ MenuRegistry as bR,
41975
+ createToolbarRegistry as bS,
41976
+ Editor as bT,
41977
+ resolveCommandRef as bU,
41978
+ commandRefName as bV,
41979
+ createOasisEditorClient as bW,
41980
+ createEditorZoom as bX,
41981
+ startLongTaskObserver as bY,
41982
+ installGlobalReport as bZ,
41983
+ applyStoredPreciseFontPreference as b_,
41984
+ getPageBodyTop as ba,
41985
+ getPageColumnRects as bb,
41986
+ findFootnoteReference as bc,
41987
+ FOOTNOTE_MARKER_GUTTER_PX as bd,
41988
+ resolveImporterForFile as be,
41989
+ getDocumentSectionsCanonical as bf,
41990
+ getDocumentParagraphsCanonical as bg,
41991
+ getDocumentParagraphs as bh,
41992
+ getDocumentPageSettings as bi,
41993
+ getTableCellContentWidthForParagraph as bj,
41994
+ on as bk,
41995
+ debounce as bl,
41996
+ unwrap as bm,
41997
+ perfTimer as bn,
41998
+ getRunTextBox as bo,
41999
+ createEditorDocument as bp,
42000
+ resolveResizedDimensions as bq,
42001
+ resolveTextBoxRenderHeight as br,
42002
+ getToolbarStyleState as bs,
42003
+ getCachedCanvasImage as bt,
42004
+ measureParagraphMinContentWidthPx as bu,
42005
+ getEditableBlocksForZone as bv,
42006
+ findParagraphLocation as bw,
42007
+ createSectionBoundaryParagraph as bx,
42008
+ normalizePageSettings as by,
42009
+ DEFAULT_EDITOR_PAGE_SETTINGS as bz,
41939
42010
  createSignal as c,
41940
- Toolbar as c0,
41941
- OasisEditorLoading as c1,
41942
- I18nProvider as c2,
41943
- createTranslator as c3,
41944
- createEditorLogger as c4,
41945
- registerDomStatsSurface as c5,
41946
- Button as c6,
41947
- Checkbox as c7,
41948
- ColorPicker as c8,
41949
- CommandRegistry as c9,
41950
- createEditorCommandBus as cA,
41951
- createOasisEditor as cB,
41952
- createOasisEditorContainer as cC,
41953
- mount as cD,
41954
- registerToolbarRenderer as cE,
41955
- DEFAULT_PALETTE as ca,
41956
- DialogFooter as cb,
41957
- FloatingActionButton as cc,
41958
- GridPicker as cd,
41959
- IconButton as ce,
41960
- Menu as cf,
41961
- OASIS_BUILTIN_COMMANDS as cg,
41962
- OASIS_MENU_ITEMS as ch,
41963
- OASIS_TOOLBAR_ITEMS as ci,
41964
- OasisEditorAppLazy as cj,
41965
- OasisEditorContainer as ck,
41966
- PluginCollection as cl,
41967
- Popover as cm,
41968
- RIBBON_TABS as cn,
41969
- Select as co,
41970
- SelectField as cp,
41971
- Separator as cq,
41972
- SidePanel as cr,
41973
- SidePanelBody as cs,
41974
- SidePanelFooter as ct,
41975
- SidePanelHeader as cu,
41976
- SplitButton as cv,
41977
- StyleGallery as cw,
41978
- TextField as cx,
41979
- Button$1 as cy,
41980
- buildRibbonTabDefinitions as cz,
42011
+ isLocalFontAccessSupported as c0,
42012
+ EDITOR_SCROLL_PADDING_PX as c1,
42013
+ Toolbar as c2,
42014
+ OasisEditorLoading as c3,
42015
+ I18nProvider as c4,
42016
+ createTranslator as c5,
42017
+ createEditorLogger as c6,
42018
+ registerDomStatsSurface as c7,
42019
+ Button as c8,
42020
+ Checkbox as c9,
42021
+ Button$1 as cA,
42022
+ buildRibbonTabDefinitions as cB,
42023
+ createEditorCommandBus as cC,
42024
+ createOasisEditor as cD,
42025
+ createOasisEditorContainer as cE,
42026
+ mount as cF,
42027
+ registerToolbarRenderer as cG,
42028
+ ColorPicker as ca,
42029
+ CommandRegistry as cb,
42030
+ DEFAULT_PALETTE as cc,
42031
+ DialogFooter as cd,
42032
+ FloatingActionButton as ce,
42033
+ GridPicker as cf,
42034
+ IconButton as cg,
42035
+ Menu as ch,
42036
+ OASIS_BUILTIN_COMMANDS as ci,
42037
+ OASIS_MENU_ITEMS as cj,
42038
+ OASIS_TOOLBAR_ITEMS as ck,
42039
+ OasisEditorAppLazy as cl,
42040
+ OasisEditorContainer as cm,
42041
+ PluginCollection as cn,
42042
+ Popover as co,
42043
+ RIBBON_TABS as cp,
42044
+ Select as cq,
42045
+ SelectField as cr,
42046
+ Separator as cs,
42047
+ SidePanel as ct,
42048
+ SidePanelBody as cu,
42049
+ SidePanelFooter as cv,
42050
+ SidePanelHeader as cw,
42051
+ SplitButton as cx,
42052
+ StyleGallery as cy,
42053
+ TextField as cz,
41981
42054
  createInitialEditorState as d,
41982
42055
  createEditorParagraphFromRuns as e,
41983
42056
  fontSizePxToPt as f,
@@ -1,57 +1,57 @@
1
- import { O, c6, c7, c8, c9, ca, a8, cb, Q, bR, cc, cd, ce, N, cf, bP, cg, ch, ci, cj, ck, c1, cl, cm, cn, co, cp, cq, cr, cs, ct, cu, cv, cw, ad, cx, c0, cy, c8 as c82, cd as cd2, cf as cf2, co as co2, cq as cq2, cv as cv2, cz, bT, bO, cA, cB, cC, bQ, cD, cE, bS } from "./index-BiTnt_yD.js";
1
+ import { O, c8, c9, ca, cb, cc, a8, cd, Q, bT, ce, cf, cg, N, ch, bR, ci, cj, ck, cl, cm, c3, cn, co, cp, cq, cr, cs, ct, cu, cv, cw, cx, cy, ad, cz, c2, cA, ca as ca2, cf as cf2, ch as ch2, cq as cq2, cs as cs2, cx as cx2, cB, bV, bQ, cC, cD, cE, bS, cF, cG, bU } from "./index-CNuDp_SC.js";
2
2
  export {
3
3
  O as BalloonShell,
4
- c6 as Button,
5
- c7 as Checkbox,
6
- c8 as ColorPicker,
7
- c9 as CommandRegistry,
8
- ca as DEFAULT_PALETTE,
4
+ c8 as Button,
5
+ c9 as Checkbox,
6
+ ca as ColorPicker,
7
+ cb as CommandRegistry,
8
+ cc as DEFAULT_PALETTE,
9
9
  a8 as Dialog,
10
- cb as DialogFooter,
10
+ cd as DialogFooter,
11
11
  Q as DocumentShell,
12
- bR as Editor,
13
- cc as FloatingActionButton,
14
- cd as GridPicker,
15
- ce as IconButton,
12
+ bT as Editor,
13
+ ce as FloatingActionButton,
14
+ cf as GridPicker,
15
+ cg as IconButton,
16
16
  N as InlineShell,
17
- cf as Menu,
18
- bP as MenuRegistry,
19
- cg as OASIS_BUILTIN_COMMANDS,
20
- ch as OASIS_MENU_ITEMS,
21
- ci as OASIS_TOOLBAR_ITEMS,
22
- cj as OasisEditorAppLazy,
23
- ck as OasisEditorContainer,
24
- c1 as OasisEditorLoading,
25
- cl as PluginCollection,
26
- cm as Popover,
27
- cn as RIBBON_TABS,
28
- co as Select,
29
- cp as SelectField,
30
- cq as Separator,
31
- cr as SidePanel,
32
- cs as SidePanelBody,
33
- ct as SidePanelFooter,
34
- cu as SidePanelHeader,
35
- cv as SplitButton,
36
- cw as StyleGallery,
17
+ ch as Menu,
18
+ bR as MenuRegistry,
19
+ ci as OASIS_BUILTIN_COMMANDS,
20
+ cj as OASIS_MENU_ITEMS,
21
+ ck as OASIS_TOOLBAR_ITEMS,
22
+ cl as OasisEditorAppLazy,
23
+ cm as OasisEditorContainer,
24
+ c3 as OasisEditorLoading,
25
+ cn as PluginCollection,
26
+ co as Popover,
27
+ cp as RIBBON_TABS,
28
+ cq as Select,
29
+ cr as SelectField,
30
+ cs as Separator,
31
+ ct as SidePanel,
32
+ cu as SidePanelBody,
33
+ cv as SidePanelFooter,
34
+ cw as SidePanelHeader,
35
+ cx as SplitButton,
36
+ cy as StyleGallery,
37
37
  ad as Tabs,
38
- cx as TextField,
39
- c0 as Toolbar,
40
- cy as ToolbarButton,
41
- c82 as ToolbarColorPicker,
42
- cd2 as ToolbarGridPicker,
43
- cf2 as ToolbarMenu,
44
- co2 as ToolbarSelect,
45
- cq2 as ToolbarSeparator,
46
- cv2 as ToolbarSplitButton,
47
- cz as buildRibbonTabDefinitions,
48
- bT as commandRefName,
49
- bO as createDefaultToolbarPreset,
50
- cA as createEditorCommandBus,
51
- cB as createOasisEditor,
52
- cC as createOasisEditorContainer,
53
- bQ as createToolbarRegistry,
54
- cD as mount,
55
- cE as registerToolbarRenderer,
56
- bS as resolveCommandRef
38
+ cz as TextField,
39
+ c2 as Toolbar,
40
+ cA as ToolbarButton,
41
+ ca2 as ToolbarColorPicker,
42
+ cf2 as ToolbarGridPicker,
43
+ ch2 as ToolbarMenu,
44
+ cq2 as ToolbarSelect,
45
+ cs2 as ToolbarSeparator,
46
+ cx2 as ToolbarSplitButton,
47
+ cB as buildRibbonTabDefinitions,
48
+ bV as commandRefName,
49
+ bQ as createDefaultToolbarPreset,
50
+ cC as createEditorCommandBus,
51
+ cD as createOasisEditor,
52
+ cE as createOasisEditorContainer,
53
+ bS as createToolbarRegistry,
54
+ cF as mount,
55
+ cG as registerToolbarRenderer,
56
+ bU as resolveCommandRef
57
57
  };