oasis-editor 0.0.119 → 0.0.121
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-1pwk-3zw.js → OasisEditorApp-XzK_1rLE.js} +3 -3
- package/dist/adapters/vue.d.ts +2 -1
- package/dist/app/controllers/useEditorLayout.d.ts +2 -2
- package/dist/{index-rlmjHSGT.js → index-DF_Uf74V.js} +1 -1
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/OasisEditorApp.d.ts +2 -1
- package/dist/ui/OasisEditorAppLazy.d.ts +2 -1
- package/dist/ui/app/EditorDialogsLayer.d.ts +2 -2
- package/dist/ui/app/EditorDragLayers.d.ts +2 -1
- package/dist/ui/app/EditorWorkspace.d.ts +2 -2
- package/dist/ui/app/createEditorEssentialsPlugin.d.ts +2 -1
- package/dist/ui/app/createEditorInteractionRuntime.d.ts +3 -2
- package/dist/ui/app/useEditorUiOptions.d.ts +3 -3
- package/dist/ui/components/CanvasEditorSurface.d.ts +2 -1
- package/dist/ui/components/CommentHighlightOverlay.d.ts +2 -2
- package/dist/ui/components/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/ui/components/Dialogs/LineSpacingDialog.d.ts +3 -1
- package/dist/ui/components/Dialogs/ParagraphDialog.d.ts +2 -1
- package/dist/ui/components/Dialogs/TextInputDialog.d.ts +3 -1
- package/dist/ui/components/Dialogs/table-properties/CellTabPanel.d.ts +2 -1
- package/dist/ui/components/Dialogs/table-properties/TableTabPanel.d.ts +2 -1
- package/dist/ui/components/DropCaret.d.ts +2 -1
- package/dist/ui/components/FindReplace/FindReplaceDialog.d.ts +2 -1
- package/dist/ui/components/Menubar/Menubar.d.ts +2 -1
- package/dist/ui/components/Outline/OutlinePanel.d.ts +2 -1
- package/dist/ui/components/Ruler/HorizontalRuler.d.ts +2 -2
- package/dist/ui/components/SelectionOverlay.d.ts +3 -1
- package/dist/ui/components/Toolbar/LineSpacingButton.d.ts +2 -1
- package/dist/ui/components/Toolbar/groups/TableGroup.d.ts +2 -1
- package/dist/ui/components/Toolbar/ribbon/RibbonRow.d.ts +2 -1
- package/dist/ui/components/Toolbar/ribbon/RibbonTabs.d.ts +2 -2
- package/dist/ui/components/WelcomeOverlay.d.ts +3 -1
- package/dist/ui/overlays/ResizeHandlesOverlay.d.ts +2 -1
- package/dist/ui/shells/DocumentShell.d.ts +2 -2
- package/dist/ui/shells/InlineShell.d.ts +2 -1
- package/dist/vue.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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 findParagraphTableLocation, R as buildTableCellLayout, T as PT_PER_PX, U as createEditorTableCell, V as createEditorTableRow, W as createEditorTable, X as PX_PER_POINT, Y as underlineStyleToCssDecorationStyle, Z as resolveImageSrc, _ as listKindForTag, $ as isParagraphTag, a0 as collectInlineRuns, a1 as parseParagraphStyle, a2 as getRunImage, a3 as InlineShell, a4 as BalloonShell, a5 as DocumentShell, a6 as createMemo, a7 as getCaretRectFromSnapshot, a8 as getParagraphRectFromSnapshot, a9 as createComponent, aa as CaretOverlay, ab as Show, ac as createRenderEffect, ad as style, ae as setAttribute, af as setStyleProperty, ag as memo, ah as template, ai as Button, aj as useI18n, ak as createEffect, al as TextField, am as Dialog, an as insert, ao as className, ap as Grid, aq as SelectField, ar as StatusText, as as ColorField, at as UNDERLINE_STYLE_OPTIONS, au as Stack, av as For, aw as ToggleChip, ax as FormField, ay as Checkbox, az as FieldGroup, aA as Tabs, aB as NumberField, aC as createStore, aD as reconcile, aE as RadioGroup, aF as Radio$1, aG as TextAreaField, aH as Text, aI as SurfaceButton, aJ as delegateEvents, aK as onMount, aL as onCleanup, aM as use, aN as PluginUiHost, aO as OasisEditorEditor, aP as OasisBrandMark, aQ as setPreciseFontPreference, aR as setWelcomeSeen, aS as enablePreciseFontMode, aT as TWIPS_PER_POINT, aU as PX_PER_INCH, aV as TWIPS_PER_INCH, aW as normalizeHex6, aX as TABLE_CONDITIONAL_FLAG_ATTRIBUTES, aY as TABLE_BORDER_EDGE_KEYS, aZ as resolveEffectiveParagraphStyle, a_ as resolveEffectiveTextStyleForParagraph, a$ as EMU_PER_PT, b0 as OOXML_ROTATION_UNITS, b1 as OOXML_PERCENT_DENOMINATOR, b2 as parseHexColorToRgb255, b3 as EMU_PER_PX, b4 as getRunEndnoteReference, b5 as iterateFootnoteReferenceRuns, b6 as iterateEndnoteReferenceRuns, b7 as imageContentTypeDefaults, b8 as getRunFieldChar, b9 as getRunFieldInstruction, ba as createEditorRun, bb as JSZip, bc as imageExtensionFromMime, bd as pxToPt$1, be as resolveFloatingObjectRect, bf as getTextBoxFloatingGeometry, bg as getPresetPathSegments, bh as buildListLabels, bi as DEFAULT_FONT_SIZE_PX, bj as resolveGradientAxis, bk as isDoubleUnderlineStyle, bl as isWavyUnderlineStyle, bm as underlineStyleLineWidthPx, bn as WAVY_UNDERLINE_WAVELENGTH_PX, bo as WAVY_UNDERLINE_AMPLITUDE_PX, bp as DOUBLE_UNDERLINE_OFFSET_PX, bq as underlineStyleDashArray, br as EMPHASIS_GLYPH, bs as rgb255ToHex, bt as getImageFloatingGeometry, bu as textStyleToFontSizePt, bv as TEXT_BASELINE_RATIO, bw as resolveOpenTypeFeatureTags, bx as resolveDecorationLineY, by as DOUBLE_STRIKE_OFFSET_PX, bz as resolveListLabel, bA as getListLabelInset, bB as getAlignedListLabelInset, bC as getParagraphBorderInsets, bD as buildSegmentTable, bE as buildCanvasTableLayout, bF as resolveCanvasTableWidth, bG as resolveFloatingTableRect, bH as normalizeFamily, bI as ROBOTO_FONT_FILES, bJ as loadFontAsset, bK as OFFICE_COMPAT_FONT_FAMILIES, bL as BinaryReader, bM as buildSfnt, bN as defaultFontDecoderRegistry, bO as SfntFontProgram, bP as collectPdfFontFamilies, bQ as outlineFrom, bR as getPageHeaderZoneTop, bS as getPageColumnRects, bT as findFootnoteReference, bU as resolveImporterForFile, bV as roundTo, bW as getDocumentSectionsCanonical, bX as getDocumentParagraphsCanonical, bY as getDocumentParagraphs, bZ as getDocumentPageSettings, b_ as getTableCellContentWidthForParagraph, b$ as layoutMetricsEpoch, c0 as bumpLayoutMetricsEpoch, c1 as createCanvasLayoutSnapshotProvider, c2 as on, c3 as debounce, c4 as unwrap, c5 as perfTimer, c6 as getRunTextBox, c7 as createEditorDocument, c8 as resolveResizedDimensions, c9 as resolveTextBoxRenderHeight, ca as getToolbarStyleState, cb as VERTICAL_HIT_WEIGHT, cc as getCachedCanvasImage, cd as measureParagraphMinContentWidthPx, ce as getEditableBlocksForZone, cf as findParagraphLocation, cg as createSectionBoundaryParagraph, ch as normalizePageSettings, ci as DEFAULT_EDITOR_PAGE_SETTINGS, cj as markStart, ck as markEnd, cl as getParagraphEntries, cm as getParagraphById, cn as createEditorFootnote, co as createFootnoteReferenceRun, cp as renumberFootnotes, cq as getHeadingLevel, cr as preciseFontModeVersion, cs as isPreciseFontModeEnabled, ct as resolveNamedTextStyle, cu as togglePreciseFontMode, cv as nextFontSizePt, cw as previousFontSizePt, cx as fontSizePtToPx, cy as createDefaultToolbarPreset, cz as MenuRegistry, cA as createToolbarRegistry, cB as Editor, cC as resolveCommandRef, cD as commandRefName, cE as createOasisEditorClient, cF as createEditorZoom, cG as startLongTaskObserver, cH as installGlobalReport, cI as applyStoredPreciseFontPreference, cJ as getWelcomeSeen, cK as isLocalFontAccessSupported, cL as EDITOR_SCROLL_PADDING_PX, cM as Toolbar, cN as OasisEditorLoading, cO as I18nProvider, cP as createTranslator, cQ as createEditorLogger, cR as registerDomStatsSurface } 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 findParagraphTableLocation, R as buildTableCellLayout, T as PT_PER_PX, U as createEditorTableCell, V as createEditorTableRow, W as createEditorTable, X as PX_PER_POINT, Y as underlineStyleToCssDecorationStyle, Z as resolveImageSrc, _ as listKindForTag, $ as isParagraphTag, a0 as collectInlineRuns, a1 as parseParagraphStyle, a2 as getRunImage, a3 as InlineShell, a4 as BalloonShell, a5 as DocumentShell, a6 as createMemo, a7 as getCaretRectFromSnapshot, a8 as getParagraphRectFromSnapshot, a9 as createComponent, aa as CaretOverlay, ab as Show, ac as createRenderEffect, ad as style, ae as setAttribute, af as setStyleProperty, ag as memo, ah as template, ai as Button, aj as useI18n, ak as createEffect, al as TextField, am as Dialog, an as insert, ao as className, ap as Grid, aq as SelectField, ar as StatusText, as as ColorField, at as UNDERLINE_STYLE_OPTIONS, au as Stack, av as For, aw as ToggleChip, ax as FormField, ay as Checkbox, az as FieldGroup, aA as Tabs, aB as NumberField, aC as createStore, aD as reconcile, aE as RadioGroup, aF as Radio$1, aG as TextAreaField, aH as Text, aI as SurfaceButton, aJ as delegateEvents, aK as onMount, aL as onCleanup, aM as use, aN as PluginUiHost, aO as OasisEditorEditor, aP as OasisBrandMark, aQ as setPreciseFontPreference, aR as setWelcomeSeen, aS as enablePreciseFontMode, aT as TWIPS_PER_POINT, aU as PX_PER_INCH, aV as TWIPS_PER_INCH, aW as normalizeHex6, aX as TABLE_CONDITIONAL_FLAG_ATTRIBUTES, aY as TABLE_BORDER_EDGE_KEYS, aZ as resolveEffectiveParagraphStyle, a_ as resolveEffectiveTextStyleForParagraph, a$ as EMU_PER_PT, b0 as OOXML_ROTATION_UNITS, b1 as OOXML_PERCENT_DENOMINATOR, b2 as parseHexColorToRgb255, b3 as EMU_PER_PX, b4 as getRunEndnoteReference, b5 as iterateFootnoteReferenceRuns, b6 as iterateEndnoteReferenceRuns, b7 as imageContentTypeDefaults, b8 as getRunFieldChar, b9 as getRunFieldInstruction, ba as createEditorRun, bb as JSZip, bc as imageExtensionFromMime, bd as pxToPt$1, be as resolveFloatingObjectRect, bf as getTextBoxFloatingGeometry, bg as getPresetPathSegments, bh as buildListLabels, bi as DEFAULT_FONT_SIZE_PX, bj as resolveGradientAxis, bk as isDoubleUnderlineStyle, bl as isWavyUnderlineStyle, bm as underlineStyleLineWidthPx, bn as WAVY_UNDERLINE_WAVELENGTH_PX, bo as WAVY_UNDERLINE_AMPLITUDE_PX, bp as DOUBLE_UNDERLINE_OFFSET_PX, bq as underlineStyleDashArray, br as EMPHASIS_GLYPH, bs as rgb255ToHex, bt as getImageFloatingGeometry, bu as textStyleToFontSizePt, bv as TEXT_BASELINE_RATIO, bw as resolveOpenTypeFeatureTags, bx as resolveDecorationLineY, by as DOUBLE_STRIKE_OFFSET_PX, bz as resolveListLabel, bA as getListLabelInset, bB as getAlignedListLabelInset, bC as getParagraphBorderInsets, bD as buildSegmentTable, bE as buildCanvasTableLayout, bF as resolveCanvasTableWidth, bG as resolveFloatingTableRect, bH as normalizeFamily, bI as ROBOTO_FONT_FILES, bJ as loadFontAsset, bK as OFFICE_COMPAT_FONT_FAMILIES, bL as BinaryReader, bM as buildSfnt, bN as defaultFontDecoderRegistry, bO as SfntFontProgram, bP as collectPdfFontFamilies, bQ as outlineFrom, bR as getPageHeaderZoneTop, bS as getPageColumnRects, bT as findFootnoteReference, bU as resolveImporterForFile, bV as roundTo, bW as getDocumentSectionsCanonical, bX as getDocumentParagraphsCanonical, bY as getDocumentParagraphs, bZ as getDocumentPageSettings, b_ as getTableCellContentWidthForParagraph, b$ as layoutMetricsEpoch, c0 as bumpLayoutMetricsEpoch, c1 as createCanvasLayoutSnapshotProvider, c2 as on, c3 as debounce, c4 as unwrap, c5 as perfTimer, c6 as getRunTextBox, c7 as createEditorDocument, c8 as resolveResizedDimensions, c9 as resolveTextBoxRenderHeight, ca as getToolbarStyleState, cb as VERTICAL_HIT_WEIGHT, cc as getCachedCanvasImage, cd as measureParagraphMinContentWidthPx, ce as getEditableBlocksForZone, cf as findParagraphLocation, cg as createSectionBoundaryParagraph, ch as normalizePageSettings, ci as DEFAULT_EDITOR_PAGE_SETTINGS, cj as markStart, ck as markEnd, cl as getParagraphEntries, cm as getParagraphById, cn as createEditorFootnote, co as createFootnoteReferenceRun, cp as renumberFootnotes, cq as getHeadingLevel, cr as preciseFontModeVersion, cs as isPreciseFontModeEnabled, ct as resolveNamedTextStyle, cu as togglePreciseFontMode, cv as nextFontSizePt, cw as previousFontSizePt, cx as fontSizePtToPx, cy as createDefaultToolbarPreset, cz as MenuRegistry, cA as createToolbarRegistry, cB as Editor, cC as resolveCommandRef, cD as commandRefName, cE as createOasisEditorClient, cF as createEditorZoom, cG as startLongTaskObserver, cH as installGlobalReport, cI as applyStoredPreciseFontPreference, cJ as getWelcomeSeen, cK as isLocalFontAccessSupported, cL as EDITOR_SCROLL_PADDING_PX, cM as Toolbar, cN as OasisEditorLoading, cO as I18nProvider, cP as createTranslator, cQ as createEditorLogger, cR as registerDomStatsSurface } from "./index-DF_Uf74V.js";
|
|
5
5
|
function projectHeaderFooterBlocksWithDependencies(blocks, deps, context = {}) {
|
|
6
6
|
const {
|
|
7
7
|
pageIndex,
|
|
@@ -51558,8 +51558,8 @@ function connectEditorClientHost(controller, deps) {
|
|
|
51558
51558
|
},
|
|
51559
51559
|
clearHistory: () => deps.clearHistory(),
|
|
51560
51560
|
importDocx: (file) => deps.docIO.handleImportFile(file),
|
|
51561
|
-
exportDocx: () => deps.docIO.handleExportDocx(),
|
|
51562
|
-
exportPdf: () => deps.docIO.handleExportPdf()
|
|
51561
|
+
exportDocx: () => Promise.resolve(deps.docIO.handleExportDocx()),
|
|
51562
|
+
exportPdf: () => Promise.resolve(deps.docIO.handleExportPdf())
|
|
51563
51563
|
});
|
|
51564
51564
|
}
|
|
51565
51565
|
const SHAPE_DEFAULT_WIDTH = 150;
|
package/dist/adapters/vue.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VNode, RendererNode, RendererElement } from 'vue';
|
|
1
2
|
import { OasisEditorAppProps, OasisEditorClient } from '../index.ts';
|
|
2
3
|
|
|
3
4
|
export declare const OasisEditor: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -8,7 +9,7 @@ export declare const OasisEditor: import('vue').DefineComponent<import('vue').Ex
|
|
|
8
9
|
class: StringConstructor;
|
|
9
10
|
style: () => string | Record<string, unknown>;
|
|
10
11
|
onClient: () => (client: OasisEditorClient) => void;
|
|
11
|
-
}>, () =>
|
|
12
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
12
13
|
[key: string]: any;
|
|
13
14
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
14
15
|
config: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorLayoutParagraph, EditorState } from '../../core/model.js';
|
|
1
|
+
import { EditorLayoutParagraph, EditorState, EditorLayoutDocument } from '../../core/model.js';
|
|
2
2
|
import { CaretBox, CommentHighlightBox, InputBox, SelectionBox } from '../../ui/editorUiTypes.js';
|
|
3
3
|
import { SelectedImageSelectionBox, SelectedTextBoxSelectionBox } from '../../ui/canvas/CanvasSelectionGeometry.js';
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ export interface LayoutInvalidation {
|
|
|
19
19
|
export declare function useEditorLayout(props: UseEditorLayoutProps): {
|
|
20
20
|
measuredBlockHeights: import('solid-js').Accessor<Record<string, number>>;
|
|
21
21
|
measuredParagraphLayouts: import('solid-js').Accessor<Record<string, EditorLayoutParagraph>>;
|
|
22
|
-
documentLayout: import('solid-js').Accessor<
|
|
22
|
+
documentLayout: import('solid-js').Accessor<EditorLayoutDocument>;
|
|
23
23
|
canvasSnapshotProvider: import('../../ui/canvas/canvasLayoutSnapshotProvider.js').CanvasLayoutSnapshotProvider;
|
|
24
24
|
inputBox: import('solid-js').Accessor<InputBox>;
|
|
25
25
|
selectionBoxes: import('solid-js').Accessor<SelectionBox[]>;
|
|
@@ -2539,7 +2539,7 @@ function OasisEditorAppLazy(props = {}) {
|
|
|
2539
2539
|
onCleanup(() => {
|
|
2540
2540
|
cancelled = true;
|
|
2541
2541
|
});
|
|
2542
|
-
import("./OasisEditorApp-
|
|
2542
|
+
import("./OasisEditorApp-XzK_1rLE.js").then((m) => {
|
|
2543
2543
|
cancelled = true;
|
|
2544
2544
|
setProgress(1);
|
|
2545
2545
|
setTimeout(() => setApp(() => m.OasisEditorApp), 180);
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cS, a4, ai, ay, as, cT, cU, cV, am, cW, a5, cB, az, cX, cY, ax, ap, cZ, c_, c$, a3, d0, cz, aB, d1, d2, d3, d4, d5, cN, d6, d7, d8, aF, aE, d9, aq, da, db, dc, dd, de, df, au, ar, dg, aI, aA, aH, aG, al, aw, cM, dh, cT as cT2, cZ as cZ2, d0 as d02, d9 as d92, da as da2, df as df2, di, cD, cy, dj, dk, dl, cA, dm, dn, cC } from "./index-
|
|
1
|
+
import { cS, a4, ai, ay, as, cT, cU, cV, am, cW, a5, cB, az, cX, cY, ax, ap, cZ, c_, c$, a3, d0, cz, aB, d1, d2, d3, d4, d5, cN, d6, d7, d8, aF, aE, d9, aq, da, db, dc, dd, de, df, au, ar, dg, aI, aA, aH, aG, al, aw, cM, dh, cT as cT2, cZ as cZ2, d0 as d02, d9 as d92, da as da2, df as df2, di, cD, cy, dj, dk, dl, cA, dm, dn, cC } from "./index-DF_Uf74V.js";
|
|
2
2
|
export {
|
|
3
3
|
cS as ActionRow,
|
|
4
4
|
a4 as BalloonShell,
|