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.
- package/dist/{OasisEditorApp-m8k4gBW1.js → OasisEditorApp-kxR9P2nm.js} +707 -12
- package/dist/assets/{importDocxWorker-BV6LezJZ.js → importDocxWorker-BulqJDJj.js} +1 -1
- package/dist/core/model/types/documentComments.d.ts +5 -0
- package/dist/core/model/types/styles.d.ts +11 -0
- package/dist/core/textStyleMappings.d.ts +7 -0
- package/dist/export/pdf/writer/PdfFontTable.d.ts +1 -1
- package/dist/export/pdf/writer/pdfTypes.d.ts +5 -0
- package/dist/import/docx/commentsXml.d.ts +2 -0
- package/dist/{index-BiTnt_yD.js → index-CNuDp_SC.js} +197 -124
- package/dist/oasis-editor.js +50 -50
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/text/fonts/core/types.d.ts +6 -1
- package/dist/text/fonts/layout/OpenTypeLayouter.d.ts +21 -0
- package/dist/text/fonts/opentype/GsubTable.d.ts +41 -0
- package/dist/ui/canvas/canvasFontResolution.d.ts +28 -0
- package/dist/ui/canvas/canvasParagraphPainter.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
41834
|
-
|
|
41835
|
-
|
|
41836
|
-
|
|
41837
|
-
|
|
41838
|
-
|
|
41839
|
-
|
|
41840
|
-
|
|
41841
|
-
|
|
41842
|
-
|
|
41843
|
-
|
|
41844
|
-
|
|
41845
|
-
|
|
41846
|
-
|
|
41847
|
-
|
|
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
|
-
|
|
41876
|
-
|
|
41877
|
-
|
|
41878
|
-
|
|
41879
|
-
|
|
41880
|
-
|
|
41881
|
-
|
|
41882
|
-
|
|
41883
|
-
|
|
41884
|
-
|
|
41885
|
-
|
|
41886
|
-
|
|
41887
|
-
|
|
41888
|
-
|
|
41889
|
-
|
|
41890
|
-
|
|
41891
|
-
|
|
41892
|
-
|
|
41893
|
-
|
|
41894
|
-
|
|
41895
|
-
|
|
41896
|
-
|
|
41897
|
-
|
|
41898
|
-
|
|
41899
|
-
|
|
41900
|
-
|
|
41901
|
-
|
|
41902
|
-
|
|
41903
|
-
|
|
41904
|
-
|
|
41905
|
-
|
|
41906
|
-
|
|
41907
|
-
|
|
41908
|
-
|
|
41909
|
-
|
|
41910
|
-
|
|
41911
|
-
|
|
41912
|
-
|
|
41913
|
-
|
|
41914
|
-
|
|
41915
|
-
|
|
41916
|
-
|
|
41917
|
-
|
|
41918
|
-
|
|
41919
|
-
|
|
41920
|
-
|
|
41921
|
-
|
|
41922
|
-
|
|
41923
|
-
|
|
41924
|
-
|
|
41925
|
-
|
|
41926
|
-
|
|
41927
|
-
|
|
41928
|
-
|
|
41929
|
-
|
|
41930
|
-
|
|
41931
|
-
|
|
41932
|
-
|
|
41933
|
-
|
|
41934
|
-
|
|
41935
|
-
|
|
41936
|
-
|
|
41937
|
-
|
|
41938
|
-
|
|
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
|
-
|
|
41941
|
-
|
|
41942
|
-
|
|
41943
|
-
|
|
41944
|
-
|
|
41945
|
-
|
|
41946
|
-
|
|
41947
|
-
|
|
41948
|
-
|
|
41949
|
-
|
|
41950
|
-
|
|
41951
|
-
|
|
41952
|
-
|
|
41953
|
-
|
|
41954
|
-
|
|
41955
|
-
|
|
41956
|
-
|
|
41957
|
-
|
|
41958
|
-
|
|
41959
|
-
|
|
41960
|
-
|
|
41961
|
-
|
|
41962
|
-
|
|
41963
|
-
|
|
41964
|
-
|
|
41965
|
-
|
|
41966
|
-
|
|
41967
|
-
|
|
41968
|
-
|
|
41969
|
-
|
|
41970
|
-
|
|
41971
|
-
|
|
41972
|
-
|
|
41973
|
-
|
|
41974
|
-
|
|
41975
|
-
|
|
41976
|
-
|
|
41977
|
-
|
|
41978
|
-
|
|
41979
|
-
|
|
41980
|
-
|
|
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,
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { O,
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
10
|
+
cd as DialogFooter,
|
|
11
11
|
Q as DocumentShell,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
bT as Editor,
|
|
13
|
+
ce as FloatingActionButton,
|
|
14
|
+
cf as GridPicker,
|
|
15
|
+
cg as IconButton,
|
|
16
16
|
N as InlineShell,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
};
|