oasis-editor 0.0.65 → 0.0.67
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-Bp4TNPC7.js → OasisEditorApp-KBzB35kG.js} +92 -76
- package/dist/assets/{importDocxWorker-BWyqey19.js → importDocxWorker-Bn1fun73.js} +1 -1
- package/dist/core/Editor.d.ts +13 -4
- package/dist/core/assertNever.d.ts +11 -0
- package/dist/{index-DhCqxHGZ.js → index-CH7dSKgO.js} +253 -240
- package/dist/oasis-editor.js +54 -54
- package/dist/oasis-editor.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/core/Editor.d.ts
CHANGED
|
@@ -3,14 +3,23 @@ import { CommandRegistry } from './commands/CommandRegistry.js';
|
|
|
3
3
|
import { PluginUiRegistry } from './plugins/PluginUiRegistry.js';
|
|
4
4
|
import { OasisEditor, OasisPlugin } from './plugin.js';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Options accepted by the synchronous `new Editor(...)` path. Plugins are
|
|
8
|
+
* deliberately absent: they need async initialization and so are only valid via
|
|
9
|
+
* {@link Editor.create}. Encoding that in the type (rather than a runtime throw)
|
|
10
|
+
* makes the precondition checkable at compile time (L1).
|
|
11
|
+
*/
|
|
12
|
+
export interface SynchronousEditorOptions {
|
|
7
13
|
doc?: EditorDocument;
|
|
8
|
-
plugins?: OasisPlugin[];
|
|
9
14
|
keymaps?: Array<{
|
|
10
15
|
key: string;
|
|
11
16
|
command: string;
|
|
12
17
|
}>;
|
|
13
18
|
}
|
|
19
|
+
/** Options accepted by the async {@link Editor.create} path, which adds plugins. */
|
|
20
|
+
export interface EditorCreateOptions extends SynchronousEditorOptions {
|
|
21
|
+
plugins?: OasisPlugin[];
|
|
22
|
+
}
|
|
14
23
|
export declare class Editor implements OasisEditor {
|
|
15
24
|
private stateStore;
|
|
16
25
|
private setState;
|
|
@@ -18,8 +27,8 @@ export declare class Editor implements OasisEditor {
|
|
|
18
27
|
private listeners;
|
|
19
28
|
readonly commands: CommandRegistry;
|
|
20
29
|
readonly ui: PluginUiRegistry;
|
|
21
|
-
constructor(options?:
|
|
22
|
-
static create(options?:
|
|
30
|
+
constructor(options?: SynchronousEditorOptions);
|
|
31
|
+
static create(options?: EditorCreateOptions): Promise<Editor>;
|
|
23
32
|
private initializeState;
|
|
24
33
|
get state(): EditorState;
|
|
25
34
|
dispatch(updater: (state: EditorState) => EditorState): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Exhaustiveness guard for discriminated-union dispatch. Put a call to this in
|
|
3
|
+
* the `default` arm of a `switch` over a union (e.g. `EditorBlockNode.type`):
|
|
4
|
+
* if a new variant is added, every visitor that forgot to handle it becomes a
|
|
5
|
+
* compile error here instead of silently falling through and dropping data.
|
|
6
|
+
*
|
|
7
|
+
* This is intentionally a tiny local helper, not a global visitor registry —
|
|
8
|
+
* each pipeline keeps its own dispatch but gains compile-time exhaustiveness
|
|
9
|
+
* (O2).
|
|
10
|
+
*/
|
|
11
|
+
export declare function assertNever(value: never, label?: string): never;
|
|
@@ -2483,7 +2483,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2483
2483
|
onCleanup(() => {
|
|
2484
2484
|
cancelled = true;
|
|
2485
2485
|
});
|
|
2486
|
-
import("./OasisEditorApp-
|
|
2486
|
+
import("./OasisEditorApp-KBzB35kG.js").then((m) => {
|
|
2487
2487
|
cancelled = true;
|
|
2488
2488
|
setProgress(1);
|
|
2489
2489
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -3353,11 +3353,21 @@ function getDocumentSectionsCanonical(document2) {
|
|
|
3353
3353
|
function getDocumentSections(document2) {
|
|
3354
3354
|
return getDocumentSectionsCanonical(document2);
|
|
3355
3355
|
}
|
|
3356
|
+
function assertNever(value, label = "value") {
|
|
3357
|
+
const tag = value && typeof value === "object" && "type" in value ? value.type : value;
|
|
3358
|
+
throw new Error(`Unhandled ${label}: ${String(tag)}`);
|
|
3359
|
+
}
|
|
3356
3360
|
function getBlockParagraphs(block) {
|
|
3357
|
-
|
|
3358
|
-
|
|
3361
|
+
switch (block.type) {
|
|
3362
|
+
case "paragraph":
|
|
3363
|
+
return [block];
|
|
3364
|
+
case "table":
|
|
3365
|
+
return block.rows.flatMap(
|
|
3366
|
+
(row) => row.cells.flatMap((cell) => cell.blocks)
|
|
3367
|
+
);
|
|
3368
|
+
default:
|
|
3369
|
+
return assertNever(block, "block");
|
|
3359
3370
|
}
|
|
3360
|
-
return block.rows.flatMap((row) => row.cells.flatMap((cell) => cell.blocks));
|
|
3361
3371
|
}
|
|
3362
3372
|
function flattenSectionZone(blocks) {
|
|
3363
3373
|
return blocks ? blocks.flatMap(getBlockParagraphs) : [];
|
|
@@ -3418,37 +3428,41 @@ class DocumentIndexBuilder {
|
|
|
3418
3428
|
}
|
|
3419
3429
|
indexBlock(block, blockIndex, ctx) {
|
|
3420
3430
|
let paraIndex = ctx.startIndex;
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3431
|
+
switch (block.type) {
|
|
3432
|
+
case "paragraph":
|
|
3433
|
+
this.recordParagraph(
|
|
3434
|
+
block,
|
|
3435
|
+
{
|
|
3436
|
+
sectionIndex: ctx.sectionIndex,
|
|
3437
|
+
zone: ctx.zone,
|
|
3438
|
+
paragraphIndexInSection: paraIndex,
|
|
3439
|
+
footnoteId: ctx.footnoteId
|
|
3440
|
+
},
|
|
3441
|
+
null
|
|
3442
|
+
);
|
|
3443
|
+
return paraIndex + 1;
|
|
3444
|
+
case "table":
|
|
3445
|
+
block.rows.forEach((row, rowIndex) => {
|
|
3446
|
+
row.cells.forEach((cell, cellIndex) => {
|
|
3447
|
+
cell.blocks.forEach((cp, cpIndex) => {
|
|
3448
|
+
this.recordParagraph(
|
|
3449
|
+
cp,
|
|
3450
|
+
{
|
|
3451
|
+
sectionIndex: ctx.sectionIndex,
|
|
3452
|
+
zone: ctx.zone,
|
|
3453
|
+
paragraphIndexInSection: paraIndex,
|
|
3454
|
+
footnoteId: ctx.footnoteId
|
|
3455
|
+
},
|
|
3456
|
+
{ blockIndex, rowIndex, cellIndex, paragraphIndex: cpIndex }
|
|
3457
|
+
);
|
|
3458
|
+
paraIndex += 1;
|
|
3459
|
+
});
|
|
3460
|
+
});
|
|
3448
3461
|
});
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3462
|
+
return paraIndex;
|
|
3463
|
+
default:
|
|
3464
|
+
return assertNever(block, "block");
|
|
3465
|
+
}
|
|
3452
3466
|
}
|
|
3453
3467
|
recordParagraph(paragraph, location, tableLocation) {
|
|
3454
3468
|
this.index.set(paragraph.id, { paragraph, location, tableLocation });
|
|
@@ -4450,20 +4464,13 @@ class Editor {
|
|
|
4450
4464
|
__publicField(this, "listeners", /* @__PURE__ */ new Map());
|
|
4451
4465
|
__publicField(this, "commands", new CommandRegistry());
|
|
4452
4466
|
__publicField(this, "ui", new PluginUiRegistry());
|
|
4453
|
-
if (options.plugins && options.plugins.length > 0) {
|
|
4454
|
-
throw new Error(
|
|
4455
|
-
"Editor plugins must be initialized with Editor.create(...)."
|
|
4456
|
-
);
|
|
4457
|
-
}
|
|
4458
4467
|
this.initializeState(options);
|
|
4459
4468
|
this.pluginCollection = new PluginCollection(this, []);
|
|
4460
4469
|
}
|
|
4461
4470
|
static async create(options = {}) {
|
|
4462
|
-
const
|
|
4463
|
-
editor
|
|
4464
|
-
|
|
4465
|
-
options.plugins ?? []
|
|
4466
|
-
);
|
|
4471
|
+
const { plugins = [], ...syncOptions } = options;
|
|
4472
|
+
const editor = new Editor(syncOptions);
|
|
4473
|
+
editor.pluginCollection = new PluginCollection(editor, plugins);
|
|
4467
4474
|
await editor.pluginCollection.initializeAll();
|
|
4468
4475
|
return editor;
|
|
4469
4476
|
}
|
|
@@ -13685,11 +13692,16 @@ function projectColumnTrackLayout(context2) {
|
|
|
13685
13692
|
if (track.blocks.length > 0 && (sourceBlock.type === "paragraph" ? getEffectiveParagraphStyle(sourceBlock, styles).pageBreakBefore : (_a = sourceBlock.style) == null ? void 0 : _a.pageBreakBefore)) {
|
|
13686
13693
|
track.flush();
|
|
13687
13694
|
}
|
|
13688
|
-
|
|
13689
|
-
|
|
13690
|
-
|
|
13695
|
+
switch (sourceBlock.type) {
|
|
13696
|
+
case "paragraph":
|
|
13697
|
+
paginateParagraphBlock(track, params, sourceBlock, nextBlock, index);
|
|
13698
|
+
break;
|
|
13699
|
+
case "table":
|
|
13700
|
+
paginateTableBlock(track, params, sourceBlock, index);
|
|
13701
|
+
break;
|
|
13702
|
+
default:
|
|
13703
|
+
assertNever(sourceBlock, "block");
|
|
13691
13704
|
}
|
|
13692
|
-
paginateTableBlock(track, params, sourceBlock, index);
|
|
13693
13705
|
}
|
|
13694
13706
|
return track.finalize();
|
|
13695
13707
|
}
|
|
@@ -35580,7 +35592,7 @@ function importDocxInWorker(buffer, options = {}) {
|
|
|
35580
35592
|
const worker = new Worker(
|
|
35581
35593
|
new URL(
|
|
35582
35594
|
/* @vite-ignore */
|
|
35583
|
-
"" + new URL("assets/importDocxWorker-
|
|
35595
|
+
"" + new URL("assets/importDocxWorker-Bn1fun73.js", import.meta.url).href,
|
|
35584
35596
|
import.meta.url
|
|
35585
35597
|
),
|
|
35586
35598
|
{
|
|
@@ -39916,192 +39928,193 @@ const OASIS_MENU_ITEMS = {
|
|
|
39916
39928
|
formatListsNumbered: "format_lists_numbered"
|
|
39917
39929
|
};
|
|
39918
39930
|
export {
|
|
39919
|
-
|
|
39920
|
-
|
|
39921
|
-
|
|
39922
|
-
|
|
39923
|
-
|
|
39931
|
+
EMU_PER_PT as $,
|
|
39932
|
+
createSignal as A,
|
|
39933
|
+
createEffect as B,
|
|
39934
|
+
onCleanup as C,
|
|
39935
|
+
buildCanvasLayoutSnapshot as D,
|
|
39924
39936
|
EMU_PER_PX as E,
|
|
39925
|
-
|
|
39926
|
-
|
|
39927
|
-
|
|
39928
|
-
|
|
39929
|
-
|
|
39930
|
-
|
|
39931
|
-
|
|
39932
|
-
|
|
39933
|
-
|
|
39934
|
-
|
|
39937
|
+
on as F,
|
|
39938
|
+
onMount as G,
|
|
39939
|
+
debounce as H,
|
|
39940
|
+
unwrap as I,
|
|
39941
|
+
getDocumentParagraphs as J,
|
|
39942
|
+
createEditorTableCell as K,
|
|
39943
|
+
createEditorTableRow as L,
|
|
39944
|
+
createEditorTable as M,
|
|
39945
|
+
getDocumentSectionsCanonical as N,
|
|
39946
|
+
createEditorDocument as O,
|
|
39935
39947
|
PT_PER_PX as P,
|
|
39936
|
-
|
|
39937
|
-
|
|
39938
|
-
|
|
39939
|
-
|
|
39940
|
-
|
|
39941
|
-
|
|
39942
|
-
|
|
39943
|
-
|
|
39944
|
-
|
|
39945
|
-
|
|
39946
|
-
|
|
39948
|
+
getPageContentWidth as Q,
|
|
39949
|
+
getDocumentPageSettings as R,
|
|
39950
|
+
getTableCellContentWidthForParagraph as S,
|
|
39951
|
+
resolveResizedDimensions as T,
|
|
39952
|
+
resolveImageSrc as U,
|
|
39953
|
+
resolveTextBoxRenderHeight as V,
|
|
39954
|
+
TWIPS_PER_POINT as W,
|
|
39955
|
+
PX_PER_INCH as X,
|
|
39956
|
+
TWIPS_PER_INCH as Y,
|
|
39957
|
+
resolveEffectiveParagraphStyle as Z,
|
|
39958
|
+
resolveEffectiveTextStyleForParagraph as _,
|
|
39947
39959
|
getParagraphLength as a,
|
|
39948
|
-
|
|
39949
|
-
|
|
39950
|
-
|
|
39951
|
-
|
|
39952
|
-
|
|
39953
|
-
|
|
39954
|
-
|
|
39955
|
-
|
|
39956
|
-
|
|
39957
|
-
|
|
39958
|
-
|
|
39959
|
-
|
|
39960
|
-
|
|
39961
|
-
|
|
39962
|
-
|
|
39963
|
-
|
|
39964
|
-
|
|
39965
|
-
|
|
39966
|
-
|
|
39967
|
-
|
|
39968
|
-
|
|
39969
|
-
|
|
39970
|
-
|
|
39971
|
-
|
|
39972
|
-
|
|
39973
|
-
|
|
39974
|
-
|
|
39975
|
-
|
|
39976
|
-
|
|
39977
|
-
|
|
39978
|
-
|
|
39979
|
-
|
|
39980
|
-
|
|
39981
|
-
|
|
39982
|
-
|
|
39983
|
-
|
|
39984
|
-
|
|
39985
|
-
|
|
39986
|
-
|
|
39987
|
-
|
|
39988
|
-
|
|
39989
|
-
|
|
39990
|
-
|
|
39991
|
-
|
|
39992
|
-
|
|
39993
|
-
|
|
39994
|
-
|
|
39995
|
-
|
|
39996
|
-
|
|
39997
|
-
|
|
39998
|
-
|
|
39999
|
-
|
|
40000
|
-
|
|
40001
|
-
|
|
40002
|
-
|
|
40003
|
-
|
|
40004
|
-
|
|
40005
|
-
|
|
40006
|
-
|
|
40007
|
-
|
|
40008
|
-
|
|
40009
|
-
|
|
40010
|
-
|
|
40011
|
-
|
|
39960
|
+
Editor as a$,
|
|
39961
|
+
iterateEndnoteReferenceRuns as a0,
|
|
39962
|
+
imageContentTypeDefaults as a1,
|
|
39963
|
+
JSZip as a2,
|
|
39964
|
+
imageExtensionFromMime as a3,
|
|
39965
|
+
pxToPt as a4,
|
|
39966
|
+
resolveFloatingObjectRect as a5,
|
|
39967
|
+
getTextBoxFloatingGeometry as a6,
|
|
39968
|
+
getPresetPathSegments as a7,
|
|
39969
|
+
projectBlocksLayout as a8,
|
|
39970
|
+
buildListLabels as a9,
|
|
39971
|
+
FOOTNOTE_MARKER_GUTTER_PX as aA,
|
|
39972
|
+
resolveImporterForFile as aB,
|
|
39973
|
+
createEditorStateFromDocument as aC,
|
|
39974
|
+
getDocumentParagraphsCanonical as aD,
|
|
39975
|
+
getToolbarStyleState as aE,
|
|
39976
|
+
STANDARD_FONT_SIZES_PT as aF,
|
|
39977
|
+
fontSizePxToPt as aG,
|
|
39978
|
+
probeLocalFontFamilies as aH,
|
|
39979
|
+
createInitialEditorState as aI,
|
|
39980
|
+
parseFontSizePtToPx as aJ,
|
|
39981
|
+
formatFontSizePt as aK,
|
|
39982
|
+
underlineStyleToCssDecorationStyle as aL,
|
|
39983
|
+
listKindForTag as aM,
|
|
39984
|
+
isParagraphTag as aN,
|
|
39985
|
+
collectInlineRuns as aO,
|
|
39986
|
+
parseParagraphStyle as aP,
|
|
39987
|
+
getCachedCanvasImage as aQ,
|
|
39988
|
+
getHeadingLevel as aR,
|
|
39989
|
+
preciseFontModeVersion as aS,
|
|
39990
|
+
isPreciseFontModeEnabled as aT,
|
|
39991
|
+
togglePreciseFontMode as aU,
|
|
39992
|
+
nextFontSizePt as aV,
|
|
39993
|
+
previousFontSizePt as aW,
|
|
39994
|
+
fontSizePtToPx as aX,
|
|
39995
|
+
createDefaultToolbarPreset as aY,
|
|
39996
|
+
MenuRegistry as aZ,
|
|
39997
|
+
createToolbarRegistry as a_,
|
|
39998
|
+
textStyleToFontSizePt as aa,
|
|
39999
|
+
PX_PER_POINT as ab,
|
|
40000
|
+
DEFAULT_FONT_SIZE_PX as ac,
|
|
40001
|
+
isDoubleUnderlineStyle as ad,
|
|
40002
|
+
isWavyUnderlineStyle as ae,
|
|
40003
|
+
underlineStyleLineWidthPx as af,
|
|
40004
|
+
underlineStyleDashArray as ag,
|
|
40005
|
+
resolveListLabel as ah,
|
|
40006
|
+
getListLabelInset as ai,
|
|
40007
|
+
getAlignedListLabelInset as aj,
|
|
40008
|
+
getParagraphBorderInsets as ak,
|
|
40009
|
+
buildSegmentTable as al,
|
|
40010
|
+
buildCanvasTableLayout as am,
|
|
40011
|
+
normalizeFamily as an,
|
|
40012
|
+
ROBOTO_FONT_FILES as ao,
|
|
40013
|
+
loadFontAsset as ap,
|
|
40014
|
+
OFFICE_COMPAT_FONT_FAMILIES as aq,
|
|
40015
|
+
buildSfnt as ar,
|
|
40016
|
+
defaultFontDecoderRegistry as as,
|
|
40017
|
+
SfntFontProgram as at,
|
|
40018
|
+
collectPdfFontFamilies as au,
|
|
40019
|
+
projectDocumentLayout as av,
|
|
40020
|
+
getPageHeaderZoneTop as aw,
|
|
40021
|
+
getPageBodyTop as ax,
|
|
40022
|
+
getPageColumnRects as ay,
|
|
40023
|
+
findFootnoteReference as az,
|
|
40012
40024
|
createEditorRun as b,
|
|
40013
|
-
|
|
40014
|
-
|
|
40015
|
-
|
|
40016
|
-
|
|
40017
|
-
|
|
40018
|
-
|
|
40019
|
-
|
|
40020
|
-
|
|
40021
|
-
|
|
40022
|
-
|
|
40023
|
-
|
|
40024
|
-
|
|
40025
|
-
|
|
40026
|
-
|
|
40027
|
-
|
|
40028
|
-
|
|
40029
|
-
|
|
40030
|
-
|
|
40031
|
-
|
|
40032
|
-
|
|
40033
|
-
|
|
40034
|
-
|
|
40035
|
-
|
|
40036
|
-
|
|
40037
|
-
|
|
40038
|
-
|
|
40039
|
-
|
|
40040
|
-
|
|
40041
|
-
|
|
40042
|
-
|
|
40043
|
-
|
|
40044
|
-
|
|
40045
|
-
|
|
40046
|
-
|
|
40047
|
-
|
|
40048
|
-
|
|
40049
|
-
|
|
40050
|
-
|
|
40051
|
-
|
|
40052
|
-
|
|
40053
|
-
|
|
40054
|
-
|
|
40055
|
-
|
|
40056
|
-
|
|
40057
|
-
|
|
40058
|
-
|
|
40059
|
-
|
|
40060
|
-
|
|
40061
|
-
|
|
40062
|
-
|
|
40063
|
-
|
|
40064
|
-
|
|
40065
|
-
|
|
40066
|
-
|
|
40067
|
-
|
|
40068
|
-
|
|
40069
|
-
|
|
40070
|
-
|
|
40071
|
-
|
|
40072
|
-
|
|
40073
|
-
|
|
40074
|
-
|
|
40075
|
-
|
|
40076
|
-
|
|
40025
|
+
DialogFooter as b$,
|
|
40026
|
+
resolveCommandRef as b0,
|
|
40027
|
+
commandRefName as b1,
|
|
40028
|
+
InlineShell as b2,
|
|
40029
|
+
BalloonShell as b3,
|
|
40030
|
+
DocumentShell as b4,
|
|
40031
|
+
createMemo as b5,
|
|
40032
|
+
getCaretRectFromSnapshot as b6,
|
|
40033
|
+
getParagraphRectFromSnapshot as b7,
|
|
40034
|
+
createComponent as b8,
|
|
40035
|
+
CaretOverlay as b9,
|
|
40036
|
+
getParagraphById as bA,
|
|
40037
|
+
PluginUiHost as bB,
|
|
40038
|
+
OasisEditorEditor as bC,
|
|
40039
|
+
perfTimer as bD,
|
|
40040
|
+
OasisBrandMark as bE,
|
|
40041
|
+
setPreciseFontPreference as bF,
|
|
40042
|
+
setWelcomeSeen as bG,
|
|
40043
|
+
enablePreciseFontMode as bH,
|
|
40044
|
+
createOasisEditorClient as bI,
|
|
40045
|
+
createEditorZoom as bJ,
|
|
40046
|
+
startLongTaskObserver as bK,
|
|
40047
|
+
installGlobalReport as bL,
|
|
40048
|
+
applyStoredPreciseFontPreference as bM,
|
|
40049
|
+
getWelcomeSeen as bN,
|
|
40050
|
+
isLocalFontAccessSupported as bO,
|
|
40051
|
+
EDITOR_SCROLL_PADDING_PX as bP,
|
|
40052
|
+
Toolbar as bQ,
|
|
40053
|
+
OasisEditorLoading as bR,
|
|
40054
|
+
I18nProvider as bS,
|
|
40055
|
+
createEditorLogger as bT,
|
|
40056
|
+
createTranslator as bU,
|
|
40057
|
+
registerDomStatsSurface as bV,
|
|
40058
|
+
Button as bW,
|
|
40059
|
+
Checkbox as bX,
|
|
40060
|
+
ColorPicker as bY,
|
|
40061
|
+
CommandRegistry as bZ,
|
|
40062
|
+
DEFAULT_PALETTE as b_,
|
|
40063
|
+
Show as ba,
|
|
40064
|
+
createRenderEffect as bb,
|
|
40065
|
+
style as bc,
|
|
40066
|
+
setAttribute as bd,
|
|
40067
|
+
setStyleProperty as be,
|
|
40068
|
+
memo as bf,
|
|
40069
|
+
template as bg,
|
|
40070
|
+
useI18n as bh,
|
|
40071
|
+
insert as bi,
|
|
40072
|
+
use as bj,
|
|
40073
|
+
addEventListener as bk,
|
|
40074
|
+
Dialog as bl,
|
|
40075
|
+
delegateEvents as bm,
|
|
40076
|
+
className as bn,
|
|
40077
|
+
For as bo,
|
|
40078
|
+
UNDERLINE_STYLE_OPTIONS as bp,
|
|
40079
|
+
Tabs as bq,
|
|
40080
|
+
measureParagraphMinContentWidthPx as br,
|
|
40081
|
+
getEditableBlocksForZone as bs,
|
|
40082
|
+
findParagraphLocation as bt,
|
|
40083
|
+
createSectionBoundaryParagraph as bu,
|
|
40084
|
+
normalizePageSettings as bv,
|
|
40085
|
+
DEFAULT_EDITOR_PAGE_SETTINGS as bw,
|
|
40086
|
+
markStart as bx,
|
|
40087
|
+
markEnd as by,
|
|
40088
|
+
getParagraphEntries as bz,
|
|
40077
40089
|
createEditorParagraphFromRuns as c,
|
|
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
|
-
|
|
40090
|
+
FloatingActionButton as c0,
|
|
40091
|
+
GridPicker as c1,
|
|
40092
|
+
IconButton as c2,
|
|
40093
|
+
Menu as c3,
|
|
40094
|
+
OASIS_BUILTIN_COMMANDS as c4,
|
|
40095
|
+
OASIS_MENU_ITEMS as c5,
|
|
40096
|
+
OASIS_TOOLBAR_ITEMS as c6,
|
|
40097
|
+
OasisEditorAppLazy as c7,
|
|
40098
|
+
OasisEditorContainer as c8,
|
|
40099
|
+
PluginCollection as c9,
|
|
40100
|
+
Popover as ca,
|
|
40101
|
+
RIBBON_TABS as cb,
|
|
40102
|
+
Select as cc,
|
|
40103
|
+
SelectField as cd,
|
|
40104
|
+
Separator as ce,
|
|
40105
|
+
SidePanel as cf,
|
|
40106
|
+
SidePanelBody as cg,
|
|
40107
|
+
SidePanelFooter as ch,
|
|
40108
|
+
SidePanelHeader as ci,
|
|
40109
|
+
SplitButton as cj,
|
|
40110
|
+
TextField as ck,
|
|
40111
|
+
Button$1 as cl,
|
|
40112
|
+
buildRibbonTabDefinitions as cm,
|
|
40113
|
+
createEditorCommandBus as cn,
|
|
40114
|
+
createOasisEditor as co,
|
|
40115
|
+
createOasisEditorContainer as cp,
|
|
40116
|
+
mount as cq,
|
|
40117
|
+
registerToolbarRenderer as cr,
|
|
40105
40118
|
getDocumentSections as d,
|
|
40106
40119
|
createEditorStyledRun as e,
|
|
40107
40120
|
getParagraphText as f,
|
|
@@ -40115,14 +40128,14 @@ export {
|
|
|
40115
40128
|
normalizeSelection as n,
|
|
40116
40129
|
isSelectionCollapsed as o,
|
|
40117
40130
|
positionToParagraphOffset as p,
|
|
40118
|
-
|
|
40119
|
-
|
|
40120
|
-
|
|
40121
|
-
|
|
40122
|
-
|
|
40123
|
-
|
|
40124
|
-
|
|
40125
|
-
|
|
40126
|
-
|
|
40127
|
-
|
|
40131
|
+
assertNever as q,
|
|
40132
|
+
createEditorParagraph as r,
|
|
40133
|
+
getBlockParagraphs as s,
|
|
40134
|
+
createEditorFootnote as t,
|
|
40135
|
+
createFootnoteReferenceRun as u,
|
|
40136
|
+
renumberFootnotes as v,
|
|
40137
|
+
iterateFootnoteReferenceRuns as w,
|
|
40138
|
+
getFootnoteDisplayMarker as x,
|
|
40139
|
+
findParagraphTableLocation as y,
|
|
40140
|
+
buildTableCellLayout as z
|
|
40128
40141
|
};
|