oasis-editor 0.0.81 → 0.0.82
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { a as assertNever, c as createSignal, b as createEditorStateFromDocument, d as createInitialEditorState, S as STANDARD_FONT_SIZES_PT, f as fontSizePxToPt, p as probeLocalFontFamilies, e as createEditorParagraphFromRuns, i as isInlineObjectRun, g as createEditorStyledRun, h as getParagraphLength, j as getParagraphText, k as getActiveZone, l as getDocumentSections, m as getActiveSectionIndex, n as getParagraphs, o as normalizeSelection, q as positionToParagraphOffset, r as paragraphOffsetToPosition, s as clampPosition, t as findParagraphIndex, u as createCollapsedSelection, v as isSelectionCollapsed, w as parseFontSizePtToPx, x as formatFontSizePt, y as createEditorParagraph, z as getBlockParagraphs, A as findParagraphTableLocation, B as buildTableCellLayout, P as PT_PER_PX, C as createEditorTableCell, D as createEditorTableRow, E as createEditorTable, F as underlineStyleToCssDecorationStyle, G as resolveImageSrc, H as listKindForTag, I as isParagraphTag, J as collectInlineRuns, K as parseParagraphStyle, L as InlineShell, M as BalloonShell, N as DocumentShell, O as createMemo, Q as buildCanvasLayoutSnapshot, R as getCaretRectFromSnapshot, T as getParagraphRectFromSnapshot, U as createComponent, V as CaretOverlay, W as Show, X as createRenderEffect, Y as style, Z as setAttribute, _ as setStyleProperty, $ as memo, a0 as template, a1 as useI18n, a2 as createEffect, a3 as insert, a4 as use, a5 as addEventListener, a6 as Dialog, a7 as delegateEvents, a8 as className, a9 as For, aa as UNDERLINE_STYLE_OPTIONS, ab as Tabs, ac as onMount, ad as onCleanup, ae as PluginUiHost, af as OasisEditorEditor, ag as OasisBrandMark, ah as setPreciseFontPreference, ai as setWelcomeSeen, aj as enablePreciseFontMode, ak as TWIPS_PER_POINT, al as PX_PER_INCH, am as TWIPS_PER_INCH, an as resolveEffectiveParagraphStyle, ao as resolveEffectiveTextStyleForParagraph, ap as EMU_PER_PX, aq as EMU_PER_PT, ar as
|
|
4
|
+
import { a as assertNever, c as createSignal, b as createEditorStateFromDocument, d as createInitialEditorState, S as STANDARD_FONT_SIZES_PT, f as fontSizePxToPt, p as probeLocalFontFamilies, e as createEditorParagraphFromRuns, i as isInlineObjectRun, g as createEditorStyledRun, h as getParagraphLength, j as getParagraphText, k as getActiveZone, l as getDocumentSections, m as getActiveSectionIndex, n as getParagraphs, o as normalizeSelection, q as positionToParagraphOffset, r as paragraphOffsetToPosition, s as clampPosition, t as findParagraphIndex, u as createCollapsedSelection, v as isSelectionCollapsed, w as parseFontSizePtToPx, x as formatFontSizePt, y as createEditorParagraph, z as getBlockParagraphs, A as findParagraphTableLocation, B as buildTableCellLayout, P as PT_PER_PX, C as createEditorTableCell, D as createEditorTableRow, E as createEditorTable, F as underlineStyleToCssDecorationStyle, G as resolveImageSrc, H as listKindForTag, I as isParagraphTag, J as collectInlineRuns, K as parseParagraphStyle, L as InlineShell, M as BalloonShell, N as DocumentShell, O as createMemo, Q as buildCanvasLayoutSnapshot, R as getCaretRectFromSnapshot, T as getParagraphRectFromSnapshot, U as createComponent, V as CaretOverlay, W as Show, X as createRenderEffect, Y as style, Z as setAttribute, _ as setStyleProperty, $ as memo, a0 as template, a1 as useI18n, a2 as createEffect, a3 as insert, a4 as use, a5 as addEventListener, a6 as Dialog, a7 as delegateEvents, a8 as className, a9 as For, aa as UNDERLINE_STYLE_OPTIONS, ab as Tabs, ac as onMount, ad as onCleanup, ae as PluginUiHost, af as OasisEditorEditor, ag as OasisBrandMark, ah as setPreciseFontPreference, ai as setWelcomeSeen, aj as enablePreciseFontMode, ak as TWIPS_PER_POINT, al as PX_PER_INCH, am as TWIPS_PER_INCH, an as resolveEffectiveParagraphStyle, ao as resolveEffectiveTextStyleForParagraph, ap as EMU_PER_PX, aq as EMU_PER_PT, ar as visitRun, as as iterateFootnoteReferenceRuns, at as iterateEndnoteReferenceRuns, au as imageContentTypeDefaults, av as createEditorRun, aw as JSZip, ax as imageExtensionFromMime, ay as pxToPt$1, az as resolveFloatingObjectRect, aA as getTextBoxFloatingGeometry, aB as getPresetPathSegments, aC as projectBlocksLayout, aD as buildListLabels, aE as textStyleToFontSizePt, aF as PX_PER_POINT, aG as DEFAULT_FONT_SIZE_PX, aH as isDoubleUnderlineStyle, aI as isWavyUnderlineStyle, aJ as underlineStyleLineWidthPx, aK as underlineStyleDashArray, aL as resolveListLabel, aM as getListLabelInset, aN as getAlignedListLabelInset, aO as getParagraphBorderInsets, aP as buildSegmentTable, aQ as buildCanvasTableLayout, aR as normalizeFamily, aS as ROBOTO_FONT_FILES, aT as loadFontAsset, aU as OFFICE_COMPAT_FONT_FAMILIES, aV as buildSfnt, aW as defaultFontDecoderRegistry, aX as SfntFontProgram, aY as collectPdfFontFamilies, aZ as projectDocumentLayout, a_ as getPageContentWidth, a$ as getPageHeaderZoneTop, b0 as getPageBodyTop, b1 as getPageColumnRects, b2 as findFootnoteReference, b3 as FOOTNOTE_MARKER_GUTTER_PX, b4 as resolveImporterForFile, b5 as getDocumentSectionsCanonical, b6 as getDocumentParagraphsCanonical, b7 as getDocumentParagraphs, b8 as getDocumentPageSettings, b9 as getTableCellContentWidthForParagraph, ba as on, bb as debounce, bc as unwrap, bd as perfTimer, be as createEditorDocument, bf as resolveResizedDimensions, bg as resolveTextBoxRenderHeight, bh as getToolbarStyleState, bi as getCachedCanvasImage, bj as measureParagraphMinContentWidthPx, bk as getEditableBlocksForZone, bl as findParagraphLocation, bm as createSectionBoundaryParagraph, bn as normalizePageSettings, bo as DEFAULT_EDITOR_PAGE_SETTINGS, bp as markStart, bq as markEnd, br as getParagraphEntries, bs as getParagraphById, bt as createEditorFootnote, bu as createFootnoteReferenceRun, bv as renumberFootnotes, bw as getFootnoteDisplayMarker, bx as getHeadingLevel, by as preciseFontModeVersion, bz as isPreciseFontModeEnabled, bA as togglePreciseFontMode, bB as nextFontSizePt, bC as previousFontSizePt, bD as fontSizePtToPx, bE as createDefaultToolbarPreset, bF as MenuRegistry, bG as createToolbarRegistry, bH as Editor, bI as resolveCommandRef, bJ as commandRefName, bK as createOasisEditorClient, bL as createEditorZoom, bM as startLongTaskObserver, bN as installGlobalReport, bO as applyStoredPreciseFontPreference, bP as getWelcomeSeen, bQ as isLocalFontAccessSupported, bR as EDITOR_SCROLL_PADDING_PX, bS as Toolbar, bT as OasisEditorLoading, bU as I18nProvider, bV as createTranslator, bW as createEditorLogger, bX as registerDomStatsSurface } from "./index-BNz5Hsd-.js";
|
|
5
5
|
function cloneBlock(block) {
|
|
6
6
|
switch (block.type) {
|
|
7
7
|
case "paragraph":
|
|
@@ -33859,73 +33859,35 @@ function serializeRun(run, context, paragraphStyleId, styles, serializeBlocksXml
|
|
|
33859
33859
|
paragraphStyleId,
|
|
33860
33860
|
styles
|
|
33861
33861
|
);
|
|
33862
|
-
|
|
33863
|
-
|
|
33864
|
-
|
|
33865
|
-
|
|
33866
|
-
|
|
33867
|
-
)
|
|
33868
|
-
|
|
33869
|
-
|
|
33870
|
-
|
|
33871
|
-
|
|
33872
|
-
|
|
33873
|
-
const result = serializeEndnoteReference(
|
|
33874
|
-
run,
|
|
33875
|
-
materializedRunStyle,
|
|
33876
|
-
context
|
|
33877
|
-
);
|
|
33878
|
-
if (result !== null) {
|
|
33879
|
-
return result;
|
|
33880
|
-
}
|
|
33881
|
-
}
|
|
33882
|
-
if (run.fieldChar) {
|
|
33883
|
-
return serializeFieldCharRun(
|
|
33884
|
-
run.fieldChar,
|
|
33885
|
-
serializeRunProperties(materializedRunStyle)
|
|
33886
|
-
);
|
|
33887
|
-
}
|
|
33888
|
-
if (run.fieldInstruction !== void 0) {
|
|
33889
|
-
return serializeInstrTextRun(
|
|
33890
|
-
run.fieldInstruction,
|
|
33891
|
-
serializeRunProperties(materializedRunStyle)
|
|
33892
|
-
);
|
|
33893
|
-
}
|
|
33894
|
-
if (run.field) {
|
|
33895
|
-
return serializeFieldRun(
|
|
33896
|
-
run.field.type,
|
|
33897
|
-
serializeRunProperties(materializedRunStyle)
|
|
33898
|
-
);
|
|
33899
|
-
}
|
|
33900
|
-
if (run.textBox) {
|
|
33901
|
-
return serializeTextBoxRun(
|
|
33902
|
-
run,
|
|
33903
|
-
run.textBox,
|
|
33862
|
+
const runProps = () => serializeRunProperties(materializedRunStyle);
|
|
33863
|
+
const asText = () => `<w:r>${runProps()}${serializeRunText(run.text)}</w:r>`;
|
|
33864
|
+
return visitRun(run, {
|
|
33865
|
+
footnoteReference: (r) => serializeFootnoteReference(r, materializedRunStyle, context) ?? asText(),
|
|
33866
|
+
endnoteReference: (r) => serializeEndnoteReference(r, materializedRunStyle, context) ?? asText(),
|
|
33867
|
+
fieldChar: (r) => serializeFieldCharRun(r.fieldChar, runProps()),
|
|
33868
|
+
fieldInstruction: (r) => serializeInstrTextRun(r.fieldInstruction, runProps()),
|
|
33869
|
+
field: (r) => serializeFieldRun(r.field.type, runProps()),
|
|
33870
|
+
textBox: (r) => serializeTextBoxRun(
|
|
33871
|
+
r,
|
|
33872
|
+
r.textBox,
|
|
33904
33873
|
context,
|
|
33905
33874
|
styles,
|
|
33906
|
-
|
|
33875
|
+
runProps(),
|
|
33907
33876
|
serializeBlocksXml2
|
|
33908
|
-
)
|
|
33909
|
-
|
|
33910
|
-
|
|
33911
|
-
|
|
33912
|
-
|
|
33913
|
-
|
|
33914
|
-
|
|
33915
|
-
|
|
33916
|
-
context,
|
|
33917
|
-
serializeRunProperties(materializedRunStyle)
|
|
33918
|
-
);
|
|
33919
|
-
if (result !== null) {
|
|
33920
|
-
return result;
|
|
33877
|
+
),
|
|
33878
|
+
image: (r) => {
|
|
33879
|
+
const rId = context.imageMap.get(r.id);
|
|
33880
|
+
if (rId) {
|
|
33881
|
+
const result = serializeImageRun(r.id, rId, context, runProps());
|
|
33882
|
+
if (result !== null) {
|
|
33883
|
+
return result;
|
|
33884
|
+
}
|
|
33921
33885
|
}
|
|
33922
|
-
|
|
33923
|
-
|
|
33924
|
-
|
|
33925
|
-
|
|
33926
|
-
|
|
33927
|
-
}
|
|
33928
|
-
return `<w:r>${serializeRunProperties(materializedRunStyle)}${serializeRunText(run.text)}</w:r>`;
|
|
33886
|
+
return asText();
|
|
33887
|
+
},
|
|
33888
|
+
sym: (r) => `<w:r>${runProps()}<w:sym w:font="${escapeXml(r.sym.font)}" w:char="${r.sym.char}"/></w:r>`,
|
|
33889
|
+
text: () => asText()
|
|
33890
|
+
});
|
|
33929
33891
|
}
|
|
33930
33892
|
function serializeRunWithRelationships(run, context, paragraphStyleId, styles, serializeBlocksXml2) {
|
|
33931
33893
|
var _a;
|
|
@@ -2483,7 +2483,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2483
2483
|
onCleanup(() => {
|
|
2484
2484
|
cancelled = true;
|
|
2485
2485
|
});
|
|
2486
|
-
import("./OasisEditorApp-
|
|
2486
|
+
import("./OasisEditorApp-DnKmTPKR.js").then((m) => {
|
|
2487
2487
|
cancelled = true;
|
|
2488
2488
|
setProgress(1);
|
|
2489
2489
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -3020,6 +3020,31 @@ function isInlineObjectRun(run) {
|
|
|
3020
3020
|
const kind = getRunKind(run);
|
|
3021
3021
|
return kind === "image" || kind === "textBox";
|
|
3022
3022
|
}
|
|
3023
|
+
function visitRun(run, visitor) {
|
|
3024
|
+
const kind = getRunKind(run);
|
|
3025
|
+
switch (kind) {
|
|
3026
|
+
case "footnoteReference":
|
|
3027
|
+
return visitor.footnoteReference(run);
|
|
3028
|
+
case "endnoteReference":
|
|
3029
|
+
return visitor.endnoteReference(run);
|
|
3030
|
+
case "fieldChar":
|
|
3031
|
+
return visitor.fieldChar(run);
|
|
3032
|
+
case "fieldInstruction":
|
|
3033
|
+
return visitor.fieldInstruction(run);
|
|
3034
|
+
case "field":
|
|
3035
|
+
return visitor.field(run);
|
|
3036
|
+
case "textBox":
|
|
3037
|
+
return visitor.textBox(run);
|
|
3038
|
+
case "image":
|
|
3039
|
+
return visitor.image(run);
|
|
3040
|
+
case "sym":
|
|
3041
|
+
return visitor.sym(run);
|
|
3042
|
+
case "text":
|
|
3043
|
+
return visitor.text(run);
|
|
3044
|
+
default:
|
|
3045
|
+
return assertNever(kind, "run kind");
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
3023
3048
|
const EDITOR_ASSET_REF_PREFIX = "asset:";
|
|
3024
3049
|
function asRequired(value) {
|
|
3025
3050
|
return value;
|
|
@@ -39992,7 +40017,7 @@ export {
|
|
|
39992
40017
|
setAttribute as Z,
|
|
39993
40018
|
setStyleProperty as _,
|
|
39994
40019
|
assertNever as a,
|
|
39995
|
-
|
|
40020
|
+
getPageHeaderZoneTop as a$,
|
|
39996
40021
|
template as a0,
|
|
39997
40022
|
useI18n as a1,
|
|
39998
40023
|
createEffect as a2,
|
|
@@ -40003,33 +40028,33 @@ export {
|
|
|
40003
40028
|
delegateEvents as a7,
|
|
40004
40029
|
className as a8,
|
|
40005
40030
|
For as a9,
|
|
40006
|
-
|
|
40007
|
-
|
|
40008
|
-
|
|
40009
|
-
|
|
40010
|
-
|
|
40011
|
-
|
|
40012
|
-
|
|
40013
|
-
|
|
40014
|
-
|
|
40015
|
-
|
|
40016
|
-
|
|
40017
|
-
|
|
40018
|
-
|
|
40019
|
-
|
|
40020
|
-
|
|
40021
|
-
|
|
40022
|
-
|
|
40023
|
-
|
|
40024
|
-
|
|
40025
|
-
|
|
40026
|
-
|
|
40027
|
-
|
|
40028
|
-
|
|
40029
|
-
|
|
40030
|
-
|
|
40031
|
-
|
|
40032
|
-
|
|
40031
|
+
getTextBoxFloatingGeometry as aA,
|
|
40032
|
+
getPresetPathSegments as aB,
|
|
40033
|
+
projectBlocksLayout as aC,
|
|
40034
|
+
buildListLabels as aD,
|
|
40035
|
+
textStyleToFontSizePt as aE,
|
|
40036
|
+
PX_PER_POINT as aF,
|
|
40037
|
+
DEFAULT_FONT_SIZE_PX as aG,
|
|
40038
|
+
isDoubleUnderlineStyle as aH,
|
|
40039
|
+
isWavyUnderlineStyle as aI,
|
|
40040
|
+
underlineStyleLineWidthPx as aJ,
|
|
40041
|
+
underlineStyleDashArray as aK,
|
|
40042
|
+
resolveListLabel as aL,
|
|
40043
|
+
getListLabelInset as aM,
|
|
40044
|
+
getAlignedListLabelInset as aN,
|
|
40045
|
+
getParagraphBorderInsets as aO,
|
|
40046
|
+
buildSegmentTable as aP,
|
|
40047
|
+
buildCanvasTableLayout as aQ,
|
|
40048
|
+
normalizeFamily as aR,
|
|
40049
|
+
ROBOTO_FONT_FILES as aS,
|
|
40050
|
+
loadFontAsset as aT,
|
|
40051
|
+
OFFICE_COMPAT_FONT_FAMILIES as aU,
|
|
40052
|
+
buildSfnt as aV,
|
|
40053
|
+
defaultFontDecoderRegistry as aW,
|
|
40054
|
+
SfntFontProgram as aX,
|
|
40055
|
+
collectPdfFontFamilies as aY,
|
|
40056
|
+
projectDocumentLayout as aZ,
|
|
40057
|
+
getPageContentWidth as a_,
|
|
40033
40058
|
UNDERLINE_STYLE_OPTIONS as aa,
|
|
40034
40059
|
Tabs as ab,
|
|
40035
40060
|
onMount as ac,
|
|
@@ -40047,110 +40072,111 @@ export {
|
|
|
40047
40072
|
resolveEffectiveTextStyleForParagraph as ao,
|
|
40048
40073
|
EMU_PER_PX as ap,
|
|
40049
40074
|
EMU_PER_PT as aq,
|
|
40050
|
-
|
|
40051
|
-
|
|
40052
|
-
|
|
40053
|
-
|
|
40054
|
-
|
|
40055
|
-
|
|
40056
|
-
|
|
40057
|
-
|
|
40058
|
-
|
|
40075
|
+
visitRun as ar,
|
|
40076
|
+
iterateFootnoteReferenceRuns as as,
|
|
40077
|
+
iterateEndnoteReferenceRuns as at,
|
|
40078
|
+
imageContentTypeDefaults as au,
|
|
40079
|
+
createEditorRun as av,
|
|
40080
|
+
JSZip as aw,
|
|
40081
|
+
imageExtensionFromMime as ax,
|
|
40082
|
+
pxToPt as ay,
|
|
40083
|
+
resolveFloatingObjectRect as az,
|
|
40059
40084
|
createEditorStateFromDocument as b,
|
|
40060
|
-
|
|
40061
|
-
|
|
40062
|
-
|
|
40063
|
-
|
|
40064
|
-
|
|
40065
|
-
|
|
40066
|
-
|
|
40067
|
-
|
|
40068
|
-
|
|
40069
|
-
|
|
40070
|
-
|
|
40071
|
-
|
|
40072
|
-
|
|
40073
|
-
|
|
40074
|
-
|
|
40075
|
-
|
|
40076
|
-
|
|
40077
|
-
|
|
40078
|
-
|
|
40079
|
-
|
|
40080
|
-
|
|
40081
|
-
|
|
40082
|
-
|
|
40083
|
-
|
|
40084
|
-
|
|
40085
|
-
|
|
40086
|
-
|
|
40087
|
-
|
|
40088
|
-
|
|
40089
|
-
|
|
40090
|
-
|
|
40091
|
-
|
|
40092
|
-
|
|
40093
|
-
|
|
40094
|
-
|
|
40095
|
-
|
|
40096
|
-
|
|
40097
|
-
|
|
40098
|
-
|
|
40099
|
-
|
|
40100
|
-
|
|
40101
|
-
|
|
40102
|
-
|
|
40103
|
-
|
|
40104
|
-
|
|
40105
|
-
|
|
40106
|
-
|
|
40107
|
-
|
|
40108
|
-
|
|
40109
|
-
|
|
40110
|
-
|
|
40111
|
-
|
|
40112
|
-
|
|
40113
|
-
|
|
40114
|
-
|
|
40115
|
-
|
|
40116
|
-
|
|
40117
|
-
|
|
40118
|
-
|
|
40119
|
-
|
|
40120
|
-
|
|
40121
|
-
|
|
40122
|
-
|
|
40123
|
-
|
|
40085
|
+
CommandRegistry as b$,
|
|
40086
|
+
getPageBodyTop as b0,
|
|
40087
|
+
getPageColumnRects as b1,
|
|
40088
|
+
findFootnoteReference as b2,
|
|
40089
|
+
FOOTNOTE_MARKER_GUTTER_PX as b3,
|
|
40090
|
+
resolveImporterForFile as b4,
|
|
40091
|
+
getDocumentSectionsCanonical as b5,
|
|
40092
|
+
getDocumentParagraphsCanonical as b6,
|
|
40093
|
+
getDocumentParagraphs as b7,
|
|
40094
|
+
getDocumentPageSettings as b8,
|
|
40095
|
+
getTableCellContentWidthForParagraph as b9,
|
|
40096
|
+
togglePreciseFontMode as bA,
|
|
40097
|
+
nextFontSizePt as bB,
|
|
40098
|
+
previousFontSizePt as bC,
|
|
40099
|
+
fontSizePtToPx as bD,
|
|
40100
|
+
createDefaultToolbarPreset as bE,
|
|
40101
|
+
MenuRegistry as bF,
|
|
40102
|
+
createToolbarRegistry as bG,
|
|
40103
|
+
Editor as bH,
|
|
40104
|
+
resolveCommandRef as bI,
|
|
40105
|
+
commandRefName as bJ,
|
|
40106
|
+
createOasisEditorClient as bK,
|
|
40107
|
+
createEditorZoom as bL,
|
|
40108
|
+
startLongTaskObserver as bM,
|
|
40109
|
+
installGlobalReport as bN,
|
|
40110
|
+
applyStoredPreciseFontPreference as bO,
|
|
40111
|
+
getWelcomeSeen as bP,
|
|
40112
|
+
isLocalFontAccessSupported as bQ,
|
|
40113
|
+
EDITOR_SCROLL_PADDING_PX as bR,
|
|
40114
|
+
Toolbar as bS,
|
|
40115
|
+
OasisEditorLoading as bT,
|
|
40116
|
+
I18nProvider as bU,
|
|
40117
|
+
createTranslator as bV,
|
|
40118
|
+
createEditorLogger as bW,
|
|
40119
|
+
registerDomStatsSurface as bX,
|
|
40120
|
+
Button as bY,
|
|
40121
|
+
Checkbox as bZ,
|
|
40122
|
+
ColorPicker as b_,
|
|
40123
|
+
on as ba,
|
|
40124
|
+
debounce as bb,
|
|
40125
|
+
unwrap as bc,
|
|
40126
|
+
perfTimer as bd,
|
|
40127
|
+
createEditorDocument as be,
|
|
40128
|
+
resolveResizedDimensions as bf,
|
|
40129
|
+
resolveTextBoxRenderHeight as bg,
|
|
40130
|
+
getToolbarStyleState as bh,
|
|
40131
|
+
getCachedCanvasImage as bi,
|
|
40132
|
+
measureParagraphMinContentWidthPx as bj,
|
|
40133
|
+
getEditableBlocksForZone as bk,
|
|
40134
|
+
findParagraphLocation as bl,
|
|
40135
|
+
createSectionBoundaryParagraph as bm,
|
|
40136
|
+
normalizePageSettings as bn,
|
|
40137
|
+
DEFAULT_EDITOR_PAGE_SETTINGS as bo,
|
|
40138
|
+
markStart as bp,
|
|
40139
|
+
markEnd as bq,
|
|
40140
|
+
getParagraphEntries as br,
|
|
40141
|
+
getParagraphById as bs,
|
|
40142
|
+
createEditorFootnote as bt,
|
|
40143
|
+
createFootnoteReferenceRun as bu,
|
|
40144
|
+
renumberFootnotes as bv,
|
|
40145
|
+
getFootnoteDisplayMarker as bw,
|
|
40146
|
+
getHeadingLevel as bx,
|
|
40147
|
+
preciseFontModeVersion as by,
|
|
40148
|
+
isPreciseFontModeEnabled as bz,
|
|
40124
40149
|
createSignal as c,
|
|
40125
|
-
|
|
40126
|
-
|
|
40127
|
-
|
|
40128
|
-
|
|
40129
|
-
|
|
40130
|
-
|
|
40131
|
-
|
|
40132
|
-
|
|
40133
|
-
|
|
40134
|
-
|
|
40135
|
-
|
|
40136
|
-
|
|
40137
|
-
|
|
40138
|
-
|
|
40139
|
-
|
|
40140
|
-
|
|
40141
|
-
|
|
40142
|
-
|
|
40143
|
-
|
|
40144
|
-
|
|
40145
|
-
|
|
40146
|
-
|
|
40147
|
-
|
|
40148
|
-
|
|
40149
|
-
|
|
40150
|
-
|
|
40151
|
-
|
|
40152
|
-
|
|
40153
|
-
|
|
40150
|
+
DEFAULT_PALETTE as c0,
|
|
40151
|
+
DialogFooter as c1,
|
|
40152
|
+
FloatingActionButton as c2,
|
|
40153
|
+
GridPicker as c3,
|
|
40154
|
+
IconButton as c4,
|
|
40155
|
+
Menu as c5,
|
|
40156
|
+
OASIS_BUILTIN_COMMANDS as c6,
|
|
40157
|
+
OASIS_MENU_ITEMS as c7,
|
|
40158
|
+
OASIS_TOOLBAR_ITEMS as c8,
|
|
40159
|
+
OasisEditorAppLazy as c9,
|
|
40160
|
+
OasisEditorContainer as ca,
|
|
40161
|
+
PluginCollection as cb,
|
|
40162
|
+
Popover as cc,
|
|
40163
|
+
RIBBON_TABS as cd,
|
|
40164
|
+
Select as ce,
|
|
40165
|
+
SelectField as cf,
|
|
40166
|
+
Separator as cg,
|
|
40167
|
+
SidePanel as ch,
|
|
40168
|
+
SidePanelBody as ci,
|
|
40169
|
+
SidePanelFooter as cj,
|
|
40170
|
+
SidePanelHeader as ck,
|
|
40171
|
+
SplitButton as cl,
|
|
40172
|
+
TextField as cm,
|
|
40173
|
+
Button$1 as cn,
|
|
40174
|
+
buildRibbonTabDefinitions as co,
|
|
40175
|
+
createEditorCommandBus as cp,
|
|
40176
|
+
createOasisEditor as cq,
|
|
40177
|
+
createOasisEditorContainer as cr,
|
|
40178
|
+
mount as cs,
|
|
40179
|
+
registerToolbarRenderer as ct,
|
|
40154
40180
|
createInitialEditorState as d,
|
|
40155
40181
|
createEditorParagraphFromRuns as e,
|
|
40156
40182
|
fontSizePxToPt as f,
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { M,
|
|
1
|
+
import { M, bY, bZ, b_, b$, c0, a6, c1, N, bH, c2, c3, c4, L, c5, bF, c6, c7, c8, c9, ca, bT, cb, cc, cd, ce, cf, cg, ch, ci, cj, ck, cl, ab, cm, bS, cn, b_ as b_2, c3 as c32, c5 as c52, ce as ce2, cg as cg2, cl as cl2, co, bJ, bE, cp, cq, cr, bG, cs, ct, bI } from "./index-BNz5Hsd-.js";
|
|
2
2
|
export {
|
|
3
3
|
M as BalloonShell,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
bY as Button,
|
|
5
|
+
bZ as Checkbox,
|
|
6
|
+
b_ as ColorPicker,
|
|
7
|
+
b$ as CommandRegistry,
|
|
8
|
+
c0 as DEFAULT_PALETTE,
|
|
9
9
|
a6 as Dialog,
|
|
10
|
-
|
|
10
|
+
c1 as DialogFooter,
|
|
11
11
|
N as DocumentShell,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
bH as Editor,
|
|
13
|
+
c2 as FloatingActionButton,
|
|
14
|
+
c3 as GridPicker,
|
|
15
|
+
c4 as IconButton,
|
|
16
16
|
L as InlineShell,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
c5 as Menu,
|
|
18
|
+
bF as MenuRegistry,
|
|
19
|
+
c6 as OASIS_BUILTIN_COMMANDS,
|
|
20
|
+
c7 as OASIS_MENU_ITEMS,
|
|
21
|
+
c8 as OASIS_TOOLBAR_ITEMS,
|
|
22
|
+
c9 as OasisEditorAppLazy,
|
|
23
|
+
ca as OasisEditorContainer,
|
|
24
|
+
bT as OasisEditorLoading,
|
|
25
|
+
cb as PluginCollection,
|
|
26
|
+
cc as Popover,
|
|
27
|
+
cd as RIBBON_TABS,
|
|
28
|
+
ce as Select,
|
|
29
|
+
cf as SelectField,
|
|
30
|
+
cg as Separator,
|
|
31
|
+
ch as SidePanel,
|
|
32
|
+
ci as SidePanelBody,
|
|
33
|
+
cj as SidePanelFooter,
|
|
34
|
+
ck as SidePanelHeader,
|
|
35
|
+
cl as SplitButton,
|
|
36
36
|
ab as Tabs,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
37
|
+
cm as TextField,
|
|
38
|
+
bS as Toolbar,
|
|
39
|
+
cn as ToolbarButton,
|
|
40
|
+
b_2 as ToolbarColorPicker,
|
|
41
|
+
c32 as ToolbarGridPicker,
|
|
42
|
+
c52 as ToolbarMenu,
|
|
43
|
+
ce2 as ToolbarSelect,
|
|
44
|
+
cg2 as ToolbarSeparator,
|
|
45
|
+
cl2 as ToolbarSplitButton,
|
|
46
|
+
co as buildRibbonTabDefinitions,
|
|
47
|
+
bJ as commandRefName,
|
|
48
|
+
bE as createDefaultToolbarPreset,
|
|
49
|
+
cp as createEditorCommandBus,
|
|
50
|
+
cq as createOasisEditor,
|
|
51
|
+
cr as createOasisEditorContainer,
|
|
52
|
+
bG as createToolbarRegistry,
|
|
53
|
+
cs as mount,
|
|
54
|
+
ct as registerToolbarRenderer,
|
|
55
|
+
bI as resolveCommandRef
|
|
56
56
|
};
|