oasis-editor 0.0.139 → 0.0.140
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 { E as EMPTY_PROJECTION_CONTEXT, d as domTextMeasurer, g as getProjectedParagraphBlockHeight, e as estimateTableBlockHeight, p as projectParagraphLayout, a as getPageBodyBottom, b as getPageBodyTop, c as getPageContentWidth, F as FOOTNOTE_MARKER_GUTTER_PX, f as getParagraphText, h as getBlockParagraphs, i as getRunFootnoteReference, l as listReferencedEndnotes, j as getFootnoteDisplayMarker, k as createProjectionContext, m as getDocumentSections, n as getRunField, o as projectBlocksLayout, v as visitRun, q as assertNever, r as createSignal, s as createEditorStateFromDocument, t as createInitialEditorState, S as STANDARD_FONT_SIZES_PT, u as fontSizePxToPt, w as probeLocalFontFamilies, x as createEditorParagraphFromRuns, y as isInlineObjectRun, z as createEditorStyledRun, A as getParagraphLength, B as getActiveZone, C as getActiveSectionIndex, D as getParagraphs, G as normalizeSelection, H as positionToParagraphOffset, I as paragraphOffsetToPosition, J as clampPosition, K as findParagraphIndex, L as createCollapsedSelection, M as isSelectionCollapsed, N as parseFontSizePtToPx, O as formatFontSizePt, P as createEditorParagraph, Q as resolveDefaultParagraphStyleId, R as findParagraphTableLocation, T as buildTableCellLayout, U as PT_PER_PX, V as createEditorTableCell, W as createEditorTableRow, X as createEditorTable, Y as PX_PER_POINT, Z as underlineStyleToCssDecorationStyle, _ as resolveImageSrc, $ as listKindForTag, a0 as isParagraphTag, a1 as collectInlineRuns, a2 as parseParagraphStyle, a3 as getRunImage, a4 as InlineShell, a5 as BalloonShell, a6 as DocumentShell, a7 as createMemo, a8 as getCaretRectFromSnapshot, a9 as getParagraphRectFromSnapshot, aa as createComponent, ab as CaretOverlay, ac as Show, ad as createRenderEffect, ae as style, af as setStyleProperty, ag as setAttribute, ah as memo, ai as template, aj as Button, ak as useI18n, al as createEffect, am as TextField, an as Dialog, ao as insert, ap as className, aq as Grid, ar as SelectField, as as StatusText, at as ColorField, au as UNDERLINE_STYLE_OPTIONS, av as Stack, aw as For, ax as ToggleChip, ay as FormField, az as Checkbox, aA as FieldGroup, aB as Tabs, aC as NumberField, aD as parseNumber, aE as createStore, aF as reconcile, aG as RadioGroup, aH as Radio$1, aI as TextAreaField, aJ as Text, aK as SurfaceButton, aL as delegateEvents, aM as onMount, aN as onCleanup, aO as CheckIcon, aP as use, aQ as PluginUiHost, aR as OasisEditorEditor, aS as OasisBrandMark, aT as setPreciseFontPreference, aU as setWelcomeSeen, aV as enablePreciseFontMode, aW as TWIPS_PER_POINT, aX as PX_PER_INCH, aY as TWIPS_PER_INCH, aZ as normalizeHex6, a_ as TABLE_CONDITIONAL_FLAG_ATTRIBUTES, a$ as TABLE_BORDER_EDGE_KEYS, b0 as resolveEffectiveParagraphStyle, b1 as resolveEffectiveTextStyleForParagraph, b2 as EMU_PER_PT, b3 as OOXML_ROTATION_UNITS, b4 as OOXML_PERCENT_DENOMINATOR, b5 as parseHexColorToRgb255, b6 as EMU_PER_PX, b7 as getRunEndnoteReference, b8 as iterateFootnoteReferenceRuns, b9 as iterateEndnoteReferenceRuns, ba as imageContentTypeDefaults, bb as getRunFieldChar, bc as getRunFieldInstruction, bd as createEditorRun, be as JSZip, bf as imageExtensionFromMime, bg as pxToPt$1, bh as resolveFloatingObjectRect, bi as getTextBoxFloatingGeometry, bj as getPresetPathSegments, bk as buildListLabels, bl as lineDashPatternPt, bm as DEFAULT_FONT_SIZE_PX, bn as resolveGradientAxis, bo as isDoubleUnderlineStyle, bp as isWavyUnderlineStyle, bq as underlineStyleLineWidthPx, br as WAVY_UNDERLINE_WAVELENGTH_PX, bs as WAVY_UNDERLINE_AMPLITUDE_PX, bt as DOUBLE_UNDERLINE_OFFSET_PX, bu as underlineStyleDashArray, bv as EMPHASIS_GLYPH, bw as rgb255ToHex, bx as getImageFloatingGeometry, by as textStyleToFontSizePt, bz as resolveTextAlignmentBaselineOffset, bA as TEXT_BASELINE_RATIO, bB as resolveRenderedTextChar, bC as resolveOpenTypeFeatureTags, bD as isLowercaseSmallCapsChar, bE as resolveDecorationLineY, bF as DOUBLE_STRIKE_OFFSET_PX, bG as resolveListLabel, bH as getListLabelInset, bI as getAlignedListLabelInset, bJ as getParagraphBorderInsets, bK as buildSegmentTable, bL as buildCanvasTableLayout, bM as resolveCanvasTableWidth, bN as resolveFloatingTableRect, bO as paragraphBetweenBorderMatches, bP as normalizeFamily, bQ as ROBOTO_FONT_FILES, bR as loadFontAsset, bS as getRemotePdfFontFaces, bT as OFFICE_COMPAT_FONT_FAMILIES, bU as BinaryReader, bV as buildSfnt, bW as defaultFontDecoderRegistry, bX as SfntFontProgram, bY as zlibSync, bZ as collectPdfFontFamilies, b_ as outlineFrom, b$ as getPageHeaderZoneTop, c0 as getPageColumnRects, c1 as findFootnoteReference, c2 as resolveImporterForFile, c3 as roundTo, c4 as getDocumentSectionsCanonical, c5 as getDocumentParagraphsCanonical, c6 as getDocumentParagraphs, c7 as PX_PER_CM, c8 as getDocumentPageSettings, c9 as getTableCellContentWidthForParagraph, ca as layoutMetricsEpoch, cb as bumpLayoutMetricsEpoch, cc as createCanvasLayoutSnapshotProvider, cd as on, ce as debounce, cf as unwrap, cg as perfTimer, ch as prepareDocumentFonts, ci as getRunTextBox, cj as createEditorDocument, ck as resolveResizedDimensions, cl as axisSignForDirection, cm as clamp$1, cn as MIN_RESIZE_SIZE_PX, co as resolveTextBoxRenderHeight, cp as getToolbarStyleState, cq as VERTICAL_HIT_WEIGHT, cr as getCachedCanvasImage, cs as measureParagraphMinContentWidthPx, ct as getEditableBlocksForZone, cu as findParagraphLocation, cv as createSectionBoundaryParagraph, cw as normalizePageSettings, cx as DEFAULT_EDITOR_PAGE_SETTINGS, cy as markStart, cz as markEnd, cA as getParagraphEntries, cB as getParagraphById, cC as createEditorFootnote, cD as createFootnoteReferenceRun, cE as renumberFootnotes, cF as preciseFontModeVersion, cG as isPreciseFontModeEnabled, cH as getHeadingLevel, cI as togglePreciseFontMode, cJ as nextFontSizePt, cK as previousFontSizePt, cL as fontSizePtToPx, cM as resolveNamedTextStyle, cN as resolveNamedTableStyle, cO as resolveEffectiveTableStyle, cP as createDefaultToolbarPreset, cQ as MenuRegistry, cR as createToolbarRegistry, cS as Editor, cT as resolveCommandRef, cU as commandRefName, cV as createOasisEditorClient, cW as createEditorZoom, cX as startLongTaskObserver, cY as installGlobalReport, cZ as applyStoredPreciseFontPreference, c_ as getWelcomeSeen, c$ as isLocalFontAccessSupported, d0 as EDITOR_SCROLL_PADDING_PX, d1 as Toolbar, d2 as OasisEditorLoading, d3 as I18nProvider, d4 as createTranslator, d5 as registerDomStatsSurface, d6 as createEditorLogger } from "./index-
|
|
4
|
+
import { E as EMPTY_PROJECTION_CONTEXT, d as domTextMeasurer, g as getProjectedParagraphBlockHeight, e as estimateTableBlockHeight, p as projectParagraphLayout, a as getPageBodyBottom, b as getPageBodyTop, c as getPageContentWidth, F as FOOTNOTE_MARKER_GUTTER_PX, f as getParagraphText, h as getBlockParagraphs, i as getRunFootnoteReference, l as listReferencedEndnotes, j as getFootnoteDisplayMarker, k as createProjectionContext, m as getDocumentSections, n as getRunField, o as projectBlocksLayout, v as visitRun, q as assertNever, r as createSignal, s as createEditorStateFromDocument, t as createInitialEditorState, S as STANDARD_FONT_SIZES_PT, u as fontSizePxToPt, w as probeLocalFontFamilies, x as createEditorParagraphFromRuns, y as isInlineObjectRun, z as createEditorStyledRun, A as getParagraphLength, B as getActiveZone, C as getActiveSectionIndex, D as getParagraphs, G as normalizeSelection, H as positionToParagraphOffset, I as paragraphOffsetToPosition, J as clampPosition, K as findParagraphIndex, L as createCollapsedSelection, M as isSelectionCollapsed, N as parseFontSizePtToPx, O as formatFontSizePt, P as createEditorParagraph, Q as resolveDefaultParagraphStyleId, R as findParagraphTableLocation, T as buildTableCellLayout, U as PT_PER_PX, V as createEditorTableCell, W as createEditorTableRow, X as createEditorTable, Y as PX_PER_POINT, Z as underlineStyleToCssDecorationStyle, _ as resolveImageSrc, $ as listKindForTag, a0 as isParagraphTag, a1 as collectInlineRuns, a2 as parseParagraphStyle, a3 as getRunImage, a4 as InlineShell, a5 as BalloonShell, a6 as DocumentShell, a7 as createMemo, a8 as getCaretRectFromSnapshot, a9 as getParagraphRectFromSnapshot, aa as createComponent, ab as CaretOverlay, ac as Show, ad as createRenderEffect, ae as style, af as setStyleProperty, ag as setAttribute, ah as memo, ai as template, aj as Button, ak as useI18n, al as createEffect, am as TextField, an as Dialog, ao as insert, ap as className, aq as Grid, ar as SelectField, as as StatusText, at as ColorField, au as UNDERLINE_STYLE_OPTIONS, av as Stack, aw as For, ax as ToggleChip, ay as FormField, az as Checkbox, aA as FieldGroup, aB as Tabs, aC as NumberField, aD as parseNumber, aE as createStore, aF as reconcile, aG as RadioGroup, aH as Radio$1, aI as TextAreaField, aJ as Text, aK as SurfaceButton, aL as delegateEvents, aM as onMount, aN as onCleanup, aO as CheckIcon, aP as use, aQ as PluginUiHost, aR as OasisEditorEditor, aS as OasisBrandMark, aT as setPreciseFontPreference, aU as setWelcomeSeen, aV as enablePreciseFontMode, aW as TWIPS_PER_POINT, aX as PX_PER_INCH, aY as TWIPS_PER_INCH, aZ as normalizeHex6, a_ as TABLE_CONDITIONAL_FLAG_ATTRIBUTES, a$ as TABLE_BORDER_EDGE_KEYS, b0 as resolveEffectiveParagraphStyle, b1 as resolveEffectiveTextStyleForParagraph, b2 as EMU_PER_PT, b3 as OOXML_ROTATION_UNITS, b4 as OOXML_PERCENT_DENOMINATOR, b5 as parseHexColorToRgb255, b6 as EMU_PER_PX, b7 as getRunEndnoteReference, b8 as iterateFootnoteReferenceRuns, b9 as iterateEndnoteReferenceRuns, ba as imageContentTypeDefaults, bb as getRunFieldChar, bc as getRunFieldInstruction, bd as createEditorRun, be as JSZip, bf as imageExtensionFromMime, bg as pxToPt$1, bh as resolveFloatingObjectRect, bi as getTextBoxFloatingGeometry, bj as getPresetPathSegments, bk as buildListLabels, bl as lineDashPatternPt, bm as DEFAULT_FONT_SIZE_PX, bn as resolveGradientAxis, bo as isDoubleUnderlineStyle, bp as isWavyUnderlineStyle, bq as underlineStyleLineWidthPx, br as WAVY_UNDERLINE_WAVELENGTH_PX, bs as WAVY_UNDERLINE_AMPLITUDE_PX, bt as DOUBLE_UNDERLINE_OFFSET_PX, bu as underlineStyleDashArray, bv as EMPHASIS_GLYPH, bw as rgb255ToHex, bx as getImageFloatingGeometry, by as textStyleToFontSizePt, bz as resolveTextAlignmentBaselineOffset, bA as TEXT_BASELINE_RATIO, bB as resolveRenderedTextChar, bC as resolveOpenTypeFeatureTags, bD as isLowercaseSmallCapsChar, bE as resolveDecorationLineY, bF as DOUBLE_STRIKE_OFFSET_PX, bG as resolveListLabel, bH as getListLabelInset, bI as getAlignedListLabelInset, bJ as getParagraphBorderInsets, bK as buildSegmentTable, bL as buildCanvasTableLayout, bM as resolveCanvasTableWidth, bN as resolveFloatingTableRect, bO as paragraphBetweenBorderMatches, bP as normalizeFamily, bQ as ROBOTO_FONT_FILES, bR as loadFontAsset, bS as getRemotePdfFontFaces, bT as OFFICE_COMPAT_FONT_FAMILIES, bU as BinaryReader, bV as buildSfnt, bW as defaultFontDecoderRegistry, bX as SfntFontProgram, bY as zlibSync, bZ as collectPdfFontFamilies, b_ as outlineFrom, b$ as getPageHeaderZoneTop, c0 as getPageColumnRects, c1 as findFootnoteReference, c2 as resolveImporterForFile, c3 as roundTo, c4 as getDocumentSectionsCanonical, c5 as getDocumentParagraphsCanonical, c6 as getDocumentParagraphs, c7 as PX_PER_CM, c8 as getDocumentPageSettings, c9 as getTableCellContentWidthForParagraph, ca as layoutMetricsEpoch, cb as bumpLayoutMetricsEpoch, cc as createCanvasLayoutSnapshotProvider, cd as on, ce as debounce, cf as unwrap, cg as perfTimer, ch as prepareDocumentFonts, ci as getRunTextBox, cj as createEditorDocument, ck as resolveResizedDimensions, cl as axisSignForDirection, cm as clamp$1, cn as MIN_RESIZE_SIZE_PX, co as resolveTextBoxRenderHeight, cp as getToolbarStyleState, cq as VERTICAL_HIT_WEIGHT, cr as getCachedCanvasImage, cs as measureParagraphMinContentWidthPx, ct as getEditableBlocksForZone, cu as findParagraphLocation, cv as createSectionBoundaryParagraph, cw as normalizePageSettings, cx as DEFAULT_EDITOR_PAGE_SETTINGS, cy as markStart, cz as markEnd, cA as getParagraphEntries, cB as getParagraphById, cC as createEditorFootnote, cD as createFootnoteReferenceRun, cE as renumberFootnotes, cF as preciseFontModeVersion, cG as isPreciseFontModeEnabled, cH as getHeadingLevel, cI as togglePreciseFontMode, cJ as nextFontSizePt, cK as previousFontSizePt, cL as fontSizePtToPx, cM as resolveNamedTextStyle, cN as resolveNamedTableStyle, cO as resolveEffectiveTableStyle, cP as createDefaultToolbarPreset, cQ as MenuRegistry, cR as createToolbarRegistry, cS as Editor, cT as resolveCommandRef, cU as commandRefName, cV as createOasisEditorClient, cW as createEditorZoom, cX as startLongTaskObserver, cY as installGlobalReport, cZ as applyStoredPreciseFontPreference, c_ as getWelcomeSeen, c$ as isLocalFontAccessSupported, d0 as EDITOR_SCROLL_PADDING_PX, d1 as Toolbar, d2 as OasisEditorLoading, d3 as I18nProvider, d4 as createTranslator, d5 as registerDomStatsSurface, d6 as createEditorLogger } from "./index-C_F1o38Z.js";
|
|
5
5
|
function projectHeaderFooterBlocksWithDependencies(blocks, deps, context = {}) {
|
|
6
6
|
const {
|
|
7
7
|
pageIndex,
|
|
@@ -55846,7 +55846,7 @@ var _tmpl$ = /* @__PURE__ */ template(`<div class="oasis-editor-shell oasis-edit
|
|
|
55846
55846
|
function OasisEditorApp(props = {}) {
|
|
55847
55847
|
var _a;
|
|
55848
55848
|
const runtimeClient = ((_a = props.runtime) == null ? void 0 : _a.client) ?? createOasisEditorClient();
|
|
55849
|
-
const [uiOverrides] = createSignal({});
|
|
55849
|
+
const [uiOverrides, setUiOverrides] = createSignal({});
|
|
55850
55850
|
const ui = () => {
|
|
55851
55851
|
var _a2;
|
|
55852
55852
|
return {
|
|
@@ -55864,6 +55864,24 @@ function OasisEditorApp(props = {}) {
|
|
|
55864
55864
|
readOnly: uiOverrides().readOnly
|
|
55865
55865
|
}
|
|
55866
55866
|
});
|
|
55867
|
+
const getUiState = () => ({
|
|
55868
|
+
...ui(),
|
|
55869
|
+
readOnly: documentOptions().readOnly
|
|
55870
|
+
});
|
|
55871
|
+
const updateUiState = (patch) => {
|
|
55872
|
+
setUiOverrides((current) => ({
|
|
55873
|
+
...current,
|
|
55874
|
+
...patch,
|
|
55875
|
+
toolbar: {
|
|
55876
|
+
...current.toolbar ?? {},
|
|
55877
|
+
...patch.toolbar ?? {}
|
|
55878
|
+
}
|
|
55879
|
+
}));
|
|
55880
|
+
return {
|
|
55881
|
+
...getUiState(),
|
|
55882
|
+
...patch
|
|
55883
|
+
};
|
|
55884
|
+
};
|
|
55867
55885
|
const runtimeOptions = () => props.runtime ?? {};
|
|
55868
55886
|
syncCanvasDebugApiVisibility();
|
|
55869
55887
|
const translator = createTranslator(() => ui().locale ?? "pt-BR");
|
|
@@ -56032,6 +56050,9 @@ function OasisEditorApp(props = {}) {
|
|
|
56032
56050
|
runtimeClient,
|
|
56033
56051
|
runtimeOptions,
|
|
56034
56052
|
documentOptions,
|
|
56053
|
+
getUiState,
|
|
56054
|
+
updateUiState,
|
|
56055
|
+
zoom,
|
|
56035
56056
|
importInputRef,
|
|
56036
56057
|
imageInputRef,
|
|
56037
56058
|
setLinkDialog,
|
|
@@ -2731,7 +2731,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2731
2731
|
onCleanup(() => {
|
|
2732
2732
|
cancelled = true;
|
|
2733
2733
|
});
|
|
2734
|
-
import("./OasisEditorApp-
|
|
2734
|
+
import("./OasisEditorApp-vqeSS8FT.js").then((m) => {
|
|
2735
2735
|
cancelled = true;
|
|
2736
2736
|
setProgress(1);
|
|
2737
2737
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
|
@@ -4381,8 +4381,12 @@ function cloneDocument(document2) {
|
|
|
4381
4381
|
return structuredClone(document2);
|
|
4382
4382
|
}
|
|
4383
4383
|
function normalizeDocument(document2) {
|
|
4384
|
+
var _a2;
|
|
4384
4385
|
const next = cloneDocument(document2);
|
|
4385
4386
|
next.schemaVersion = next.schemaVersion ?? EDITOR_SCHEMA_VERSION;
|
|
4387
|
+
if (!((_a2 = next.sections) == null ? void 0 : _a2.length)) {
|
|
4388
|
+
next.sections = getDocumentSectionsCanonical(next);
|
|
4389
|
+
}
|
|
4386
4390
|
return next;
|
|
4387
4391
|
}
|
|
4388
4392
|
function validateDocument(document2) {
|
|
@@ -4428,7 +4432,9 @@ function allNodes(document2) {
|
|
|
4428
4432
|
});
|
|
4429
4433
|
});
|
|
4430
4434
|
});
|
|
4431
|
-
document2.
|
|
4435
|
+
getDocumentSectionsCanonical(document2).forEach(
|
|
4436
|
+
(section) => visitBlocks(section.blocks)
|
|
4437
|
+
);
|
|
4432
4438
|
return result;
|
|
4433
4439
|
}
|
|
4434
4440
|
function resolveParagraph(document2, selector) {
|
|
@@ -4487,7 +4493,7 @@ function replaceParagraph(document2, id, update) {
|
|
|
4487
4493
|
}
|
|
4488
4494
|
return false;
|
|
4489
4495
|
};
|
|
4490
|
-
document2.
|
|
4496
|
+
getDocumentSectionsCanonical(document2).some((section) => visit(section.blocks));
|
|
4491
4497
|
}
|
|
4492
4498
|
function queryDocument(document2) {
|
|
4493
4499
|
const outline = () => getDocumentParagraphsCanonical(document2).flatMap((p) => {
|
|
@@ -4525,6 +4531,7 @@ function applyDocumentOperations(document2, operations) {
|
|
|
4525
4531
|
const next = normalizeDocument(document2);
|
|
4526
4532
|
const changedNodeIds = [];
|
|
4527
4533
|
const createdNodeIds = [];
|
|
4534
|
+
const sections = next.sections;
|
|
4528
4535
|
for (const operation of operations) {
|
|
4529
4536
|
if (operation.op === "insertText" || operation.op === "replaceText") {
|
|
4530
4537
|
const paragraph = resolveParagraph(next, operation.target);
|
|
@@ -4555,7 +4562,7 @@ function applyDocumentOperations(document2, operations) {
|
|
|
4555
4562
|
changedNodeIds.push(paragraph.id);
|
|
4556
4563
|
} else if (operation.op === "insertParagraph" || operation.op === "insertBlocks" || operation.op === "insertTable") {
|
|
4557
4564
|
const blocks = operation.op === "insertParagraph" ? [createEditorParagraph(operation.text ?? "")] : operation.op === "insertTable" ? [createTable(operation.rows)] : operation.blocks;
|
|
4558
|
-
|
|
4565
|
+
sections[0].blocks.push(...blocks);
|
|
4559
4566
|
blocks.forEach((b) => {
|
|
4560
4567
|
createdNodeIds.push(b.id);
|
|
4561
4568
|
changedNodeIds.push(b.id);
|
|
@@ -4577,7 +4584,7 @@ function applyDocumentOperations(document2, operations) {
|
|
|
4577
4584
|
}
|
|
4578
4585
|
return blocks.some((b) => b.type === "table" && b.rows.some((r) => r.cells.some((c) => remove(c.blocks))));
|
|
4579
4586
|
};
|
|
4580
|
-
if (!
|
|
4587
|
+
if (!sections.some((section) => remove(section.blocks))) throw new Error("NODE_NOT_FOUND");
|
|
4581
4588
|
changedNodeIds.push(target);
|
|
4582
4589
|
} else throw new Error("UNSUPPORTED_OPERATION");
|
|
4583
4590
|
}
|
|
@@ -4837,7 +4844,9 @@ function createOasisEditorClient() {
|
|
|
4837
4844
|
var _a2, _b2;
|
|
4838
4845
|
if ((_a2 = request.signal) == null ? void 0 : _a2.aborted) return { ok: false, error: { code: "ABORTED", message: "Import aborted" } };
|
|
4839
4846
|
try {
|
|
4840
|
-
const data = request.data instanceof Blob ? request.data : new Blob([
|
|
4847
|
+
const data = request.data instanceof Blob ? request.data : new Blob([
|
|
4848
|
+
request.data instanceof Uint8Array ? Uint8Array.from(request.data).buffer : request.data
|
|
4849
|
+
]);
|
|
4841
4850
|
const file = new File([data], request.filename ?? "document.docx", { type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document" });
|
|
4842
4851
|
await requireHost().importDocx(file);
|
|
4843
4852
|
version2 += 1;
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d7, a5, aj, az, at, d8, d9, da, an, db, a6, dc, cS, aA, dd, de, ay, aq, df, dg, dh, a4, di, cQ, aC, dj, dk, dl, dm, dn, d2, dp, dq, dr, aH, aG, ds, ar, dt, du, dv, dw, dx, dy, av, as, dz, aK, aB, aJ, aI, am, ax, d1, dA, d8 as d82, df as df2, di as di2, ds as ds2, dt as dt2, dy as dy2, dB, dC, cU, cP, dD, dE, dF, dG, dH, dI, dJ, cR, dK, dL, dM, cT, dN } from "./index-
|
|
1
|
+
import { d7, a5, aj, az, at, d8, d9, da, an, db, a6, dc, cS, aA, dd, de, ay, aq, df, dg, dh, a4, di, cQ, aC, dj, dk, dl, dm, dn, d2, dp, dq, dr, aH, aG, ds, ar, dt, du, dv, dw, dx, dy, av, as, dz, aK, aB, aJ, aI, am, ax, d1, dA, d8 as d82, df as df2, di as di2, ds as ds2, dt as dt2, dy as dy2, dB, dC, cU, cP, dD, dE, dF, dG, dH, dI, dJ, cR, dK, dL, dM, cT, dN } from "./index-C_F1o38Z.js";
|
|
2
2
|
export {
|
|
3
3
|
d7 as ActionRow,
|
|
4
4
|
a5 as BalloonShell,
|