oasis-editor 0.0.28 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OasisEditorApp-TgBKJPpl.js → OasisEditorApp-Bvkbr1KZ.js} +198 -6
- package/dist/assets/{importDocxWorker-DcrboJNQ.js → importDocxWorker-DVvaVtgj.js} +1 -1
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/tableOfContents.d.ts +32 -0
- package/dist/core/headings.d.ts +8 -0
- package/dist/i18n/locales/en.d.ts +2 -0
- package/dist/i18n/locales/pt-BR.d.ts +2 -0
- package/dist/{index-BaKkmGAh.js → index-BVAzjJsg.js} +174 -121
- package/dist/oasis-editor.js +54 -54
- package/dist/oasis-editor.umd.cjs +4 -4
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "insertFootnote", "pastePlainText", "bold", "italic", "underline", "strike", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "toggleTrackChanges", "acceptRevisions", "rejectRevisions", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "splitBlock", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setUnderlineStyle", "documentStyles", "print", "copy", "exportDocx", "exportPdf", "importDocument", "insertImage", "editImageAlt", "insertImageCaption", "outdent", "indent", "togglePageBreakBefore", "toggleKeepWithNext", "setSpacingAfter", "setSpacingBefore", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "setLineHeight", "setListFormat", "setListStartAt", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "setPageMargins", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellWidth", "insertTable"];
|
|
1
|
+
export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "insertFootnote", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "bold", "italic", "underline", "strike", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "toggleTrackChanges", "acceptRevisions", "rejectRevisions", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "splitBlock", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setUnderlineStyle", "documentStyles", "print", "copy", "exportDocx", "exportPdf", "importDocument", "insertImage", "editImageAlt", "insertImageCaption", "outdent", "indent", "togglePageBreakBefore", "toggleKeepWithNext", "setSpacingAfter", "setSpacingBefore", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "setLineHeight", "setListFormat", "setListStartAt", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "setPageMargins", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellWidth", "insertTable"];
|
|
2
2
|
export type OasisBuiltinCommand = (typeof OASIS_BUILTIN_COMMANDS)[number];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EditorState } from '../model.js';
|
|
2
|
+
|
|
3
|
+
/** Default TOC scope: outline levels 1–3, matching Word's `TOC \o "1-3"`. */
|
|
4
|
+
export declare const DEFAULT_TOC_MAX_LEVEL = 3;
|
|
5
|
+
/** A heading captured for a TOC entry. */
|
|
6
|
+
export interface TocHeading {
|
|
7
|
+
id: string;
|
|
8
|
+
level: number;
|
|
9
|
+
text: string;
|
|
10
|
+
}
|
|
11
|
+
/** Page number resolver: heading paragraph id → printed page number. */
|
|
12
|
+
export type TocPageNumberResolver = (headingId: string) => number | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Collect heading paragraphs (levels 1..maxLevel) in document order. Headings
|
|
15
|
+
* are detected case-insensitively via {@link getHeadingLevel}, so both the
|
|
16
|
+
* editor's own `heading1` and Word's imported `Heading1` styles qualify.
|
|
17
|
+
*/
|
|
18
|
+
export declare function collectTocHeadings(state: EditorState, maxLevel?: number): TocHeading[];
|
|
19
|
+
/**
|
|
20
|
+
* Insert a generated table of contents after the block holding the caret.
|
|
21
|
+
* Operates on section blocks (not the flattened paragraph list) so it is safe
|
|
22
|
+
* in documents containing tables.
|
|
23
|
+
*/
|
|
24
|
+
export declare function insertTableOfContents(state: EditorState, resolvePage?: TocPageNumberResolver, maxLevel?: number): EditorState;
|
|
25
|
+
/**
|
|
26
|
+
* Regenerate the entries of an existing TOC field from the current headings,
|
|
27
|
+
* preserving the field's begin/instruction/separate and end markers. Returns
|
|
28
|
+
* the unchanged state when no TOC field is present.
|
|
29
|
+
*/
|
|
30
|
+
export declare function updateTableOfContents(state: EditorState, resolvePage?: TocPageNumberResolver, maxLevel?: number): EditorState;
|
|
31
|
+
/** Whether a TOC field exists in the active section (for menu enablement). */
|
|
32
|
+
export declare function hasTableOfContents(state: EditorState): boolean;
|
package/dist/core/headings.d.ts
CHANGED
|
@@ -6,4 +6,12 @@ export interface OutlineItem {
|
|
|
6
6
|
text: string;
|
|
7
7
|
anchor: string;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Resolve the heading level (1-9) of a paragraph style id, or null if the style
|
|
11
|
+
* is not a heading. Case-insensitive and tolerant of an optional space, so it
|
|
12
|
+
* matches both the editor's own convention (`heading1`) and Word's imported
|
|
13
|
+
* style ids (`Heading1`, `Heading 1`). Keeping detection here means imported
|
|
14
|
+
* `styleId`s round-trip unchanged on export.
|
|
15
|
+
*/
|
|
16
|
+
export declare function getHeadingLevel(styleId: string | undefined): number | null;
|
|
9
17
|
export declare function outlineFrom(doc: EditorDocument): OutlineItem[];
|
|
@@ -412,6 +412,8 @@ export declare const en: {
|
|
|
412
412
|
"menu.view.outline": string;
|
|
413
413
|
"menu.view.fullscreen": string;
|
|
414
414
|
"menu.insert": string;
|
|
415
|
+
"menu.insert.toc": string;
|
|
416
|
+
"menu.insert.updateToc": string;
|
|
415
417
|
"menu.layout": string;
|
|
416
418
|
"menu.format": string;
|
|
417
419
|
"menu.format.align": string;
|
|
@@ -412,6 +412,8 @@ export declare const ptBR: {
|
|
|
412
412
|
"menu.view.outline": string;
|
|
413
413
|
"menu.view.fullscreen": string;
|
|
414
414
|
"menu.insert": string;
|
|
415
|
+
"menu.insert.toc": string;
|
|
416
|
+
"menu.insert.updateToc": string;
|
|
415
417
|
"menu.layout": string;
|
|
416
418
|
"menu.format": string;
|
|
417
419
|
"menu.format.align": string;
|
|
@@ -1843,6 +1843,8 @@ const en = {
|
|
|
1843
1843
|
"menu.view.outline": "Show Outline",
|
|
1844
1844
|
"menu.view.fullscreen": "Full Screen",
|
|
1845
1845
|
"menu.insert": "Insert",
|
|
1846
|
+
"menu.insert.toc": "Table of Contents",
|
|
1847
|
+
"menu.insert.updateToc": "Update Table of Contents",
|
|
1846
1848
|
"menu.layout": "Layout",
|
|
1847
1849
|
"menu.format": "Format",
|
|
1848
1850
|
"menu.format.align": "Align",
|
|
@@ -2299,6 +2301,8 @@ const ptBR = {
|
|
|
2299
2301
|
"menu.view.outline": "Mostrar Estrutura",
|
|
2300
2302
|
"menu.view.fullscreen": "Tela Inteira",
|
|
2301
2303
|
"menu.insert": "Inserir",
|
|
2304
|
+
"menu.insert.toc": "Sumário",
|
|
2305
|
+
"menu.insert.updateToc": "Atualizar Sumário",
|
|
2302
2306
|
"menu.layout": "Layout",
|
|
2303
2307
|
"menu.format": "Formatar",
|
|
2304
2308
|
"menu.format.align": "Alinhar",
|
|
@@ -2438,7 +2442,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2438
2442
|
onCleanup(() => {
|
|
2439
2443
|
cancelled = true;
|
|
2440
2444
|
});
|
|
2441
|
-
import("./OasisEditorApp-
|
|
2445
|
+
import("./OasisEditorApp-Bvkbr1KZ.js").then((m) => {
|
|
2442
2446
|
cancelled = true;
|
|
2443
2447
|
setProgress(1);
|
|
2444
2448
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -4381,6 +4385,8 @@ function createEditorCommandBus(editor) {
|
|
|
4381
4385
|
const OASIS_BUILTIN_COMMANDS = [
|
|
4382
4386
|
"selectAll",
|
|
4383
4387
|
"insertFootnote",
|
|
4388
|
+
"insertTableOfContents",
|
|
4389
|
+
"updateTableOfContents",
|
|
4384
4390
|
"pastePlainText",
|
|
4385
4391
|
"bold",
|
|
4386
4392
|
"italic",
|
|
@@ -4723,6 +4729,20 @@ const defaultMenuItems = [
|
|
|
4723
4729
|
command: "insertFootnote",
|
|
4724
4730
|
icon: "footnote"
|
|
4725
4731
|
},
|
|
4732
|
+
{
|
|
4733
|
+
id: "insert_toc",
|
|
4734
|
+
path: "Insert/Table of Contents",
|
|
4735
|
+
labelKey: "menu.insert.toc",
|
|
4736
|
+
command: "insertTableOfContents",
|
|
4737
|
+
icon: "list"
|
|
4738
|
+
},
|
|
4739
|
+
{
|
|
4740
|
+
id: "insert_toc_update",
|
|
4741
|
+
path: "Insert/Update Table of Contents",
|
|
4742
|
+
labelKey: "menu.insert.updateToc",
|
|
4743
|
+
command: "updateTableOfContents",
|
|
4744
|
+
icon: "refresh-cw"
|
|
4745
|
+
},
|
|
4726
4746
|
{ id: "insert_hr", path: "Insert/Horizontal Rule", hidden: true },
|
|
4727
4747
|
{
|
|
4728
4748
|
id: "insert_pageBreak",
|
|
@@ -5106,26 +5126,27 @@ function TitleBar(props) {
|
|
|
5106
5126
|
return _el$;
|
|
5107
5127
|
})();
|
|
5108
5128
|
}
|
|
5129
|
+
function getHeadingLevel(styleId) {
|
|
5130
|
+
if (!styleId) return null;
|
|
5131
|
+
const match = /^heading\s*([1-9])$/i.exec(styleId.trim());
|
|
5132
|
+
return match ? parseInt(match[1], 10) : null;
|
|
5133
|
+
}
|
|
5109
5134
|
function outlineFrom(doc) {
|
|
5110
5135
|
var _a;
|
|
5111
5136
|
const paragraphs = getDocumentParagraphs(doc);
|
|
5112
5137
|
const items = [];
|
|
5113
5138
|
for (const p of paragraphs) {
|
|
5114
|
-
const
|
|
5115
|
-
if (
|
|
5116
|
-
const
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
anchor: p.id
|
|
5126
|
-
// Using paragraph ID as the anchor
|
|
5127
|
-
});
|
|
5128
|
-
}
|
|
5139
|
+
const level = getHeadingLevel((_a = p.style) == null ? void 0 : _a.styleId);
|
|
5140
|
+
if (level !== null && level <= 6) {
|
|
5141
|
+
const text = getParagraphText(p).trim();
|
|
5142
|
+
if (text) {
|
|
5143
|
+
items.push({
|
|
5144
|
+
id: p.id,
|
|
5145
|
+
level,
|
|
5146
|
+
text,
|
|
5147
|
+
anchor: p.id
|
|
5148
|
+
// Using paragraph ID as the anchor
|
|
5149
|
+
});
|
|
5129
5150
|
}
|
|
5130
5151
|
}
|
|
5131
5152
|
}
|
|
@@ -11176,7 +11197,7 @@ function resolveTabAdvancePx(paragraph, styles, defaultTabStop, lineStartInset,
|
|
|
11176
11197
|
styles
|
|
11177
11198
|
);
|
|
11178
11199
|
const currentLeft = lineStartInset + lineWidth;
|
|
11179
|
-
const tabOrigin =
|
|
11200
|
+
const tabOrigin = 0;
|
|
11180
11201
|
const explicitStops = (paragraphStyle.tabs ?? []).filter((tab) => tab.type !== "clear" && Number.isFinite(tab.position)).map((tab) => ({
|
|
11181
11202
|
...tab,
|
|
11182
11203
|
positionPx: tabOrigin + tab.position * PX_PER_POINT$1
|
|
@@ -34403,6 +34424,24 @@ function applyConditionalTextStyle(paragraphs, textStyle) {
|
|
|
34403
34424
|
}
|
|
34404
34425
|
}
|
|
34405
34426
|
}
|
|
34427
|
+
function tableStyleParagraphInheritance(tableStylePPr, paragraphStyleId, styles) {
|
|
34428
|
+
if (!tableStylePPr) {
|
|
34429
|
+
return void 0;
|
|
34430
|
+
}
|
|
34431
|
+
const effectiveStyleId = paragraphStyleId ?? resolveDefaultParagraphStyleId(styles);
|
|
34432
|
+
const paragraphStyleDelta = resolveNamedParagraphStyle(
|
|
34433
|
+
effectiveStyleId,
|
|
34434
|
+
styles
|
|
34435
|
+
);
|
|
34436
|
+
const definedByParagraphStyle = new Set(Object.keys(paragraphStyleDelta));
|
|
34437
|
+
const filtered = {};
|
|
34438
|
+
for (const [key, value] of Object.entries(tableStylePPr)) {
|
|
34439
|
+
if (!definedByParagraphStyle.has(key)) {
|
|
34440
|
+
filtered[key] = value;
|
|
34441
|
+
}
|
|
34442
|
+
}
|
|
34443
|
+
return emptyOrUndefined(filtered);
|
|
34444
|
+
}
|
|
34406
34445
|
async function parseTableNode(tableNode, numberingMaps, zip, relsMap, assets, theme, styles) {
|
|
34407
34446
|
var _a, _b;
|
|
34408
34447
|
const gridCols = [];
|
|
@@ -34475,6 +34514,19 @@ async function parseTableNode(tableNode, numberingMaps, zip, relsMap, assets, th
|
|
|
34475
34514
|
WORD_NS,
|
|
34476
34515
|
"p"
|
|
34477
34516
|
)) {
|
|
34517
|
+
const paragraphStyleId = getAttributeValue(
|
|
34518
|
+
getFirstChildByTagNameNS(
|
|
34519
|
+
getFirstChildByTagNameNS(paragraphNode, WORD_NS, "pPr"),
|
|
34520
|
+
WORD_NS,
|
|
34521
|
+
"pStyle"
|
|
34522
|
+
),
|
|
34523
|
+
"val"
|
|
34524
|
+
) ?? void 0;
|
|
34525
|
+
const cellInheritedStyle = tableStyleParagraphInheritance(
|
|
34526
|
+
inheritedParagraphStyle,
|
|
34527
|
+
paragraphStyleId,
|
|
34528
|
+
styles
|
|
34529
|
+
);
|
|
34478
34530
|
paragraphs.push(
|
|
34479
34531
|
await parseParagraphNode(
|
|
34480
34532
|
paragraphNode,
|
|
@@ -34483,7 +34535,7 @@ async function parseTableNode(tableNode, numberingMaps, zip, relsMap, assets, th
|
|
|
34483
34535
|
relsMap,
|
|
34484
34536
|
assets,
|
|
34485
34537
|
theme,
|
|
34486
|
-
|
|
34538
|
+
cellInheritedStyle
|
|
34487
34539
|
)
|
|
34488
34540
|
);
|
|
34489
34541
|
autospacingFlags.push(
|
|
@@ -35798,7 +35850,7 @@ function importDocxInWorker(buffer, options = {}) {
|
|
|
35798
35850
|
const worker = new Worker(
|
|
35799
35851
|
new URL(
|
|
35800
35852
|
/* @vite-ignore */
|
|
35801
|
-
"" + new URL("assets/importDocxWorker-
|
|
35853
|
+
"" + new URL("assets/importDocxWorker-DVvaVtgj.js", import.meta.url).href,
|
|
35802
35854
|
import.meta.url
|
|
35803
35855
|
),
|
|
35804
35856
|
{
|
|
@@ -40133,7 +40185,7 @@ export {
|
|
|
40133
40185
|
imageExtensionFromMime as Z,
|
|
40134
40186
|
pxToPt as _,
|
|
40135
40187
|
getParagraphLength as a,
|
|
40136
|
-
|
|
40188
|
+
createComponent as a$,
|
|
40137
40189
|
buildCanvasTableLayout as a0,
|
|
40138
40190
|
resolveFloatingObjectRect as a1,
|
|
40139
40191
|
getTextBoxFloatingGeometry as a2,
|
|
@@ -40151,26 +40203,26 @@ export {
|
|
|
40151
40203
|
collectInlineRuns as aE,
|
|
40152
40204
|
parseParagraphStyle as aF,
|
|
40153
40205
|
t as aG,
|
|
40154
|
-
|
|
40155
|
-
|
|
40156
|
-
|
|
40157
|
-
|
|
40158
|
-
|
|
40159
|
-
|
|
40160
|
-
|
|
40161
|
-
|
|
40162
|
-
|
|
40163
|
-
|
|
40164
|
-
|
|
40165
|
-
|
|
40166
|
-
|
|
40167
|
-
|
|
40168
|
-
|
|
40169
|
-
|
|
40170
|
-
|
|
40171
|
-
|
|
40172
|
-
|
|
40173
|
-
|
|
40206
|
+
getHeadingLevel as aH,
|
|
40207
|
+
preciseFontModeVersion as aI,
|
|
40208
|
+
isPreciseFontModeEnabled as aJ,
|
|
40209
|
+
togglePreciseFontMode as aK,
|
|
40210
|
+
nextFontSizePt as aL,
|
|
40211
|
+
previousFontSizePt as aM,
|
|
40212
|
+
fontSizePtToPx as aN,
|
|
40213
|
+
createDefaultToolbarPreset as aO,
|
|
40214
|
+
defaultMenuItems as aP,
|
|
40215
|
+
MenuRegistry as aQ,
|
|
40216
|
+
createToolbarRegistry as aR,
|
|
40217
|
+
Editor as aS,
|
|
40218
|
+
resolveCommandRef as aT,
|
|
40219
|
+
commandRefName as aU,
|
|
40220
|
+
InlineShell as aV,
|
|
40221
|
+
BalloonShell as aW,
|
|
40222
|
+
DocumentShell as aX,
|
|
40223
|
+
createMemo as aY,
|
|
40224
|
+
getCaretRectFromSnapshot as aZ,
|
|
40225
|
+
getParagraphRectFromSnapshot as a_,
|
|
40174
40226
|
underlineStyleLineWidthPx as aa,
|
|
40175
40227
|
underlineStyleDashArray as ab,
|
|
40176
40228
|
getListLabelInset as ac,
|
|
@@ -40198,88 +40250,89 @@ export {
|
|
|
40198
40250
|
probeLocalFontFamilies as ay,
|
|
40199
40251
|
createInitialEditorState as az,
|
|
40200
40252
|
createEditorRun as b,
|
|
40201
|
-
|
|
40202
|
-
|
|
40203
|
-
|
|
40204
|
-
|
|
40205
|
-
|
|
40206
|
-
|
|
40207
|
-
|
|
40208
|
-
|
|
40209
|
-
|
|
40210
|
-
|
|
40211
|
-
|
|
40212
|
-
|
|
40213
|
-
|
|
40214
|
-
|
|
40215
|
-
|
|
40216
|
-
|
|
40217
|
-
|
|
40218
|
-
|
|
40219
|
-
|
|
40220
|
-
|
|
40221
|
-
|
|
40222
|
-
|
|
40223
|
-
|
|
40224
|
-
|
|
40225
|
-
|
|
40226
|
-
|
|
40227
|
-
|
|
40228
|
-
|
|
40229
|
-
|
|
40230
|
-
|
|
40231
|
-
|
|
40232
|
-
|
|
40233
|
-
|
|
40234
|
-
|
|
40235
|
-
|
|
40236
|
-
|
|
40237
|
-
|
|
40238
|
-
|
|
40239
|
-
|
|
40240
|
-
|
|
40241
|
-
|
|
40242
|
-
|
|
40243
|
-
|
|
40244
|
-
|
|
40245
|
-
|
|
40246
|
-
|
|
40247
|
-
|
|
40248
|
-
|
|
40249
|
-
|
|
40250
|
-
|
|
40251
|
-
|
|
40252
|
-
|
|
40253
|
-
|
|
40254
|
-
|
|
40255
|
-
|
|
40256
|
-
|
|
40257
|
-
|
|
40258
|
-
|
|
40259
|
-
|
|
40260
|
-
|
|
40261
|
-
|
|
40262
|
-
|
|
40263
|
-
|
|
40264
|
-
|
|
40253
|
+
PluginCollection as b$,
|
|
40254
|
+
CaretOverlay as b0,
|
|
40255
|
+
Show as b1,
|
|
40256
|
+
createRenderEffect as b2,
|
|
40257
|
+
style as b3,
|
|
40258
|
+
setAttribute as b4,
|
|
40259
|
+
setStyleProperty as b5,
|
|
40260
|
+
memo as b6,
|
|
40261
|
+
template as b7,
|
|
40262
|
+
insert as b8,
|
|
40263
|
+
use as b9,
|
|
40264
|
+
createEditorZoom as bA,
|
|
40265
|
+
startLongTaskObserver as bB,
|
|
40266
|
+
installGlobalReport as bC,
|
|
40267
|
+
applyStoredPreciseFontPreference as bD,
|
|
40268
|
+
getWelcomeSeen as bE,
|
|
40269
|
+
isLocalFontAccessSupported as bF,
|
|
40270
|
+
EDITOR_SCROLL_PADDING_PX as bG,
|
|
40271
|
+
Toolbar as bH,
|
|
40272
|
+
OasisEditorLoading as bI,
|
|
40273
|
+
createEditorLogger as bJ,
|
|
40274
|
+
getCachedCanvasImage as bK,
|
|
40275
|
+
registerDomStatsSurface as bL,
|
|
40276
|
+
Button as bM,
|
|
40277
|
+
Checkbox as bN,
|
|
40278
|
+
ColorPicker as bO,
|
|
40279
|
+
CommandRegistry as bP,
|
|
40280
|
+
DEFAULT_PALETTE as bQ,
|
|
40281
|
+
DialogFooter as bR,
|
|
40282
|
+
FloatingActionButton as bS,
|
|
40283
|
+
GridPicker as bT,
|
|
40284
|
+
IconButton as bU,
|
|
40285
|
+
Menu as bV,
|
|
40286
|
+
OASIS_BUILTIN_COMMANDS as bW,
|
|
40287
|
+
OASIS_MENU_ITEMS as bX,
|
|
40288
|
+
OASIS_TOOLBAR_ITEMS as bY,
|
|
40289
|
+
OasisEditorAppLazy as bZ,
|
|
40290
|
+
OasisEditorContainer as b_,
|
|
40291
|
+
addEventListener as ba,
|
|
40292
|
+
Dialog as bb,
|
|
40293
|
+
delegateEvents as bc,
|
|
40294
|
+
className as bd,
|
|
40295
|
+
For as be,
|
|
40296
|
+
UNDERLINE_STYLE_OPTIONS as bf,
|
|
40297
|
+
Tabs as bg,
|
|
40298
|
+
measureParagraphMinContentWidthPx as bh,
|
|
40299
|
+
getEditableBlocksForZone as bi,
|
|
40300
|
+
findParagraphLocation as bj,
|
|
40301
|
+
createSectionBoundaryParagraph as bk,
|
|
40302
|
+
normalizePageSettings as bl,
|
|
40303
|
+
DEFAULT_EDITOR_PAGE_SETTINGS as bm,
|
|
40304
|
+
markStart as bn,
|
|
40305
|
+
markEnd as bo,
|
|
40306
|
+
getParagraphEntries as bp,
|
|
40307
|
+
getParagraphById as bq,
|
|
40308
|
+
PluginUiHost as br,
|
|
40309
|
+
OasisEditorEditor as bs,
|
|
40310
|
+
perfTimer as bt,
|
|
40311
|
+
OasisBrandMark as bu,
|
|
40312
|
+
setPreciseFontPreference as bv,
|
|
40313
|
+
setWelcomeSeen as bw,
|
|
40314
|
+
enablePreciseFontMode as bx,
|
|
40315
|
+
createOasisEditorClient as by,
|
|
40316
|
+
setLocale as bz,
|
|
40265
40317
|
createEditorParagraphFromRuns as c,
|
|
40266
|
-
|
|
40267
|
-
|
|
40268
|
-
|
|
40269
|
-
|
|
40270
|
-
|
|
40271
|
-
|
|
40272
|
-
|
|
40273
|
-
|
|
40274
|
-
|
|
40275
|
-
|
|
40276
|
-
|
|
40277
|
-
|
|
40278
|
-
|
|
40279
|
-
|
|
40280
|
-
|
|
40281
|
-
|
|
40282
|
-
|
|
40318
|
+
Popover as c0,
|
|
40319
|
+
RIBBON_TABS as c1,
|
|
40320
|
+
RIBBON_TAB_DEFINITIONS as c2,
|
|
40321
|
+
Select as c3,
|
|
40322
|
+
SelectField as c4,
|
|
40323
|
+
Separator as c5,
|
|
40324
|
+
SidePanel as c6,
|
|
40325
|
+
SidePanelBody as c7,
|
|
40326
|
+
SidePanelFooter as c8,
|
|
40327
|
+
SidePanelHeader as c9,
|
|
40328
|
+
SplitButton as ca,
|
|
40329
|
+
TextField as cb,
|
|
40330
|
+
Button$1 as cc,
|
|
40331
|
+
createEditorCommandBus as cd,
|
|
40332
|
+
createOasisEditor as ce,
|
|
40333
|
+
createOasisEditorContainer as cf,
|
|
40334
|
+
mount as cg,
|
|
40335
|
+
registerToolbarRenderer as ch,
|
|
40283
40336
|
getDocumentSections as d,
|
|
40284
40337
|
createEditorStyledRun as e,
|
|
40285
40338
|
getParagraphText as f,
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aW, bM, bN, bO, bP, bQ, bb, bR, aX, aS, bS, bT, bU, aV, bV, aQ, bW, bX, bY, bZ, b_, bI, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, ca, bg, cb, bH, cc, bO as bO2, bT as bT2, bV as bV2, c3 as c32, c5 as c52, ca as ca2, aU, aO, cd, ce, cf, aR, cg, ch, aT } from "./index-BVAzjJsg.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
3
|
+
aW as BalloonShell,
|
|
4
|
+
bM as Button,
|
|
5
|
+
bN as Checkbox,
|
|
6
|
+
bO as ColorPicker,
|
|
7
|
+
bP as CommandRegistry,
|
|
8
|
+
bQ as DEFAULT_PALETTE,
|
|
9
|
+
bb as Dialog,
|
|
10
|
+
bR as DialogFooter,
|
|
11
|
+
aX as DocumentShell,
|
|
12
|
+
aS as Editor,
|
|
13
|
+
bS as FloatingActionButton,
|
|
14
|
+
bT as GridPicker,
|
|
15
|
+
bU as IconButton,
|
|
16
|
+
aV as InlineShell,
|
|
17
|
+
bV as Menu,
|
|
18
|
+
aQ as MenuRegistry,
|
|
19
|
+
bW as OASIS_BUILTIN_COMMANDS,
|
|
20
|
+
bX as OASIS_MENU_ITEMS,
|
|
21
|
+
bY as OASIS_TOOLBAR_ITEMS,
|
|
22
|
+
bZ as OasisEditorAppLazy,
|
|
23
|
+
b_ as OasisEditorContainer,
|
|
24
|
+
bI as OasisEditorLoading,
|
|
25
|
+
b$ as PluginCollection,
|
|
26
|
+
c0 as Popover,
|
|
27
|
+
c1 as RIBBON_TABS,
|
|
28
|
+
c2 as RIBBON_TAB_DEFINITIONS,
|
|
29
|
+
c3 as Select,
|
|
30
|
+
c4 as SelectField,
|
|
31
|
+
c5 as Separator,
|
|
32
|
+
c6 as SidePanel,
|
|
33
|
+
c7 as SidePanelBody,
|
|
34
|
+
c8 as SidePanelFooter,
|
|
35
|
+
c9 as SidePanelHeader,
|
|
36
|
+
ca as SplitButton,
|
|
37
|
+
bg as Tabs,
|
|
38
|
+
cb as TextField,
|
|
39
|
+
bH as Toolbar,
|
|
40
|
+
cc as ToolbarButton,
|
|
41
|
+
bO2 as ToolbarColorPicker,
|
|
42
|
+
bT2 as ToolbarGridPicker,
|
|
43
|
+
bV2 as ToolbarMenu,
|
|
44
|
+
c32 as ToolbarSelect,
|
|
45
|
+
c52 as ToolbarSeparator,
|
|
46
|
+
ca2 as ToolbarSplitButton,
|
|
47
|
+
aU as commandRefName,
|
|
48
|
+
aO as createDefaultToolbarPreset,
|
|
49
|
+
cd as createEditorCommandBus,
|
|
50
|
+
ce as createOasisEditor,
|
|
51
|
+
cf as createOasisEditorContainer,
|
|
52
|
+
aR as createToolbarRegistry,
|
|
53
|
+
cg as mount,
|
|
54
|
+
ch as registerToolbarRenderer,
|
|
55
|
+
aT as resolveCommandRef
|
|
56
56
|
};
|