oasis-editor 0.0.115 → 0.0.116
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-C1dyjJoH.js → OasisEditorApp-DY_N4M54.js} +337 -111
- package/dist/adapters/react.d.ts +11 -0
- package/dist/adapters/ui.d.ts +2 -0
- package/dist/adapters/vue.d.ts +23 -0
- package/dist/assets/{importDocxWorker-D0F0jbcF.js → importDocxWorker-nIS-zjkj.js} +1 -1
- package/dist/core/html/inlineImageParser.d.ts +7 -0
- package/dist/core/layoutConstants.d.ts +18 -0
- package/dist/{index-Cq3YFYX2.js → index-DLKF27_V.js} +427 -304
- package/dist/layoutProjection/blocksPaginationTypes.d.ts +2 -0
- package/dist/layoutProjection/headerFooterLayoutContext.d.ts +2 -0
- package/dist/layoutProjection/paginationTrack.d.ts +2 -0
- package/dist/layoutProjection/paragraphPagination.d.ts +8 -3
- package/dist/layoutProjection/sectionPagination.d.ts +3 -0
- package/dist/layoutProjection/tableRowSlicing.d.ts +2 -1
- package/dist/oasis-editor.js +55 -55
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/react.d.ts +7 -8
- package/dist/react.js +18 -22
- package/dist/ui/canvas/table/prepareCells.d.ts +1 -1
- package/dist/ui/canvas/table/resolveRowHeights.d.ts +1 -1
- package/dist/ui/components/FindReplace/FindReplaceDialog.d.ts +1 -2
- package/dist/ui/components/Menubar/Menubar.d.ts +1 -2
- package/dist/ui/components/PageBreak.d.ts +1 -1
- package/dist/ui.d.ts +2 -42
- package/dist/ui.js +19 -18
- package/dist/utils/performanceMetrics.d.ts +0 -6
- package/dist/utils/round.d.ts +7 -0
- package/dist/vue.d.ts +22 -8
- package/dist/vue.js +18 -24
- package/package.json +9 -6
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { EditorImageRunData } from '../model.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Conservative allowlist for image sources pulled in from pasted/imported HTML.
|
|
5
|
+
* Only inline `data:image/...` and app-controlled `blob:` URLs are accepted;
|
|
6
|
+
* remote schemes (`http(s):`, `javascript:`, …) are rejected so untrusted
|
|
7
|
+
* markup cannot smuggle external requests or unexpected payloads into a document.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isAllowedImageSrc(src: string): boolean;
|
|
3
10
|
export declare function parseInlineImage(element: Element): EditorImageRunData | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Weight applied to the vertical distance when scoring caret/hit-test
|
|
3
|
+
* candidates: a closer line always wins over horizontal proximity. Used by the
|
|
4
|
+
* pagination caret search, the canvas hit-test service and caret geometry.
|
|
5
|
+
*/
|
|
6
|
+
export declare const VERTICAL_HIT_WEIGHT = 1000;
|
|
7
|
+
/**
|
|
8
|
+
* Fraction of a line's height at which the text baseline sits (top + 80%).
|
|
9
|
+
* Shared by the canvas paragraph painter and the PDF text/list painters so the
|
|
10
|
+
* baseline can never drift between on-screen and exported rendering.
|
|
11
|
+
*/
|
|
12
|
+
export declare const TEXT_BASELINE_RATIO = 0.8;
|
|
13
|
+
/**
|
|
14
|
+
* Effectively-unbounded width (in CSS px) used to measure content that must not
|
|
15
|
+
* wrap (e.g. table cell intrinsic widths). Single source for the value that was
|
|
16
|
+
* redefined in tablePagination, tableGeometry and the canvas cell prep.
|
|
17
|
+
*/
|
|
18
|
+
export declare const NO_WRAP_MEASURE_WIDTH_PX = 100000;
|