oasis-editor 0.0.124 → 0.0.126
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-gxYuoU70.js → OasisEditorApp-DFgUxV_0.js} +142 -6
- package/dist/assets/{importDocxWorker-A73eR_fM.js → importDocxWorker-ayg-B322.js} +1 -1
- package/dist/core/layoutConstants.d.ts +13 -0
- package/dist/core/model/types/styles.d.ts +46 -0
- package/dist/export/docx/borders.d.ts +2 -0
- package/dist/import/docx/borders.d.ts +4 -0
- package/dist/{index-zlwh4WsF.js → index-BGUkA0aZ.js} +585 -363
- package/dist/layoutProjection/index.d.ts +1 -1
- package/dist/layoutProjection/paragraphBorders.d.ts +8 -0
- package/dist/oasis-editor.js +49 -49
- package/dist/oasis-editor.umd.cjs +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { FOOTNOTE_MARKER_GUTTER_PX, PARAGRAPH_BORDER_PADDING_PX, PX_PER_POINT, } from './constants.js';
|
|
2
|
-
export { getParagraphBorderInsets, type ParagraphBorderInsets, } from './paragraphBorders.js';
|
|
2
|
+
export { getParagraphBorderInsets, paragraphBetweenBorderMatches, type ParagraphBorderInsets, } from './paragraphBorders.js';
|
|
3
3
|
export { estimateParagraphBlockHeight } from './blockHeights.js';
|
|
4
4
|
export { estimateTableBlockHeight } from './tableProjection.js';
|
|
5
5
|
export { clearProjectedParagraphLayoutCache, measureParagraphLayoutFromRects, projectParagraphLayout, projectParagraphLayoutWithExclusions, resolveClosestOffsetInMeasuredLayout, } from './paragraphProjection.js';
|
|
@@ -12,3 +12,11 @@ export interface ParagraphBorderInsets {
|
|
|
12
12
|
* height) and the canvas/PDF painters (to size the box and offset the text).
|
|
13
13
|
*/
|
|
14
14
|
export declare function getParagraphBorderInsets(style: EditorParagraphStyle): ParagraphBorderInsets;
|
|
15
|
+
/**
|
|
16
|
+
* Word draws a `w:between` paragraph border only when two *consecutive*
|
|
17
|
+
* paragraphs both define a matching `between` edge (same style, width, and
|
|
18
|
+
* color). This predicate encodes that matching rule so the canvas and PDF
|
|
19
|
+
* renderers share one source of truth. Returns false when either side has no
|
|
20
|
+
* visible `between` border.
|
|
21
|
+
*/
|
|
22
|
+
export declare function paragraphBetweenBorderMatches(a: EditorParagraphStyle, b: EditorParagraphStyle): boolean;
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cV, a5, aj, az, at, cW, cX, cY, an, cZ, a6, cE, aA, c_, c$, ay, aq, d0, d1, d2, a4, d3, cC, aC, d4, d5, d6, d7, d8, cQ, d9, da, db, aG, aF, dc, ar, dd, de, df, dg, dh, di, av, as, dj, aJ, aB, aI, aH, am, ax, cP, dk, cW as cW2, d0 as d02, d3 as d32, dc as dc2, dd as dd2, di as di2, dl, cG, cB, dm, dn, dp, cD, dq, dr, cF } from "./index-BGUkA0aZ.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
cV as ActionRow,
|
|
4
4
|
a5 as BalloonShell,
|
|
5
5
|
aj as Button,
|
|
6
6
|
az as Checkbox,
|
|
7
7
|
at as ColorField,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
cW as ColorPicker,
|
|
9
|
+
cX as CommandRegistry,
|
|
10
|
+
cY as DEFAULT_PALETTE,
|
|
11
11
|
an as Dialog,
|
|
12
|
-
|
|
12
|
+
cZ as DialogFooter,
|
|
13
13
|
a6 as DocumentShell,
|
|
14
|
-
|
|
14
|
+
cE as Editor,
|
|
15
15
|
aA as FieldGroup,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
c_ as FieldRow,
|
|
17
|
+
c$ as FloatingActionButton,
|
|
18
18
|
ay as FormField,
|
|
19
19
|
aq as Grid,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
d0 as GridPicker,
|
|
21
|
+
d1 as Heading,
|
|
22
|
+
d2 as IconButton,
|
|
23
23
|
a4 as InlineShell,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
d3 as Menu,
|
|
25
|
+
cC as MenuRegistry,
|
|
26
26
|
aC as NumberField,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
d4 as OASIS_BUILTIN_COMMANDS,
|
|
28
|
+
d5 as OASIS_MENU_ITEMS,
|
|
29
|
+
d6 as OASIS_TOOLBAR_ITEMS,
|
|
30
|
+
d7 as OasisEditorAppLazy,
|
|
31
|
+
d8 as OasisEditorContainer,
|
|
32
|
+
cQ as OasisEditorLoading,
|
|
33
|
+
d9 as PluginCollection,
|
|
34
|
+
da as Popover,
|
|
35
|
+
db as RIBBON_TABS,
|
|
36
36
|
aG as Radio,
|
|
37
37
|
aF as RadioGroup,
|
|
38
|
-
|
|
38
|
+
dc as Select,
|
|
39
39
|
ar as SelectField,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
dd as Separator,
|
|
41
|
+
de as SidePanel,
|
|
42
|
+
df as SidePanelBody,
|
|
43
|
+
dg as SidePanelFooter,
|
|
44
|
+
dh as SidePanelHeader,
|
|
45
|
+
di as SplitButton,
|
|
46
46
|
av as Stack,
|
|
47
47
|
as as StatusText,
|
|
48
|
-
|
|
48
|
+
dj as StyleGallery,
|
|
49
49
|
aJ as SurfaceButton,
|
|
50
50
|
aB as Tabs,
|
|
51
51
|
aI as Text,
|
|
52
52
|
aH as TextAreaField,
|
|
53
53
|
am as TextField,
|
|
54
54
|
ax as ToggleChip,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
55
|
+
cP as Toolbar,
|
|
56
|
+
dk as ToolbarButton,
|
|
57
|
+
cW2 as ToolbarColorPicker,
|
|
58
|
+
d02 as ToolbarGridPicker,
|
|
59
|
+
d32 as ToolbarMenu,
|
|
60
|
+
dc2 as ToolbarSelect,
|
|
61
|
+
dd2 as ToolbarSeparator,
|
|
62
|
+
di2 as ToolbarSplitButton,
|
|
63
|
+
dl as buildRibbonTabDefinitions,
|
|
64
|
+
cG as commandRefName,
|
|
65
|
+
cB as createDefaultToolbarPreset,
|
|
66
|
+
dm as createEditorCommandBus,
|
|
67
|
+
dn as createOasisEditor,
|
|
68
|
+
dp as createOasisEditorContainer,
|
|
69
|
+
cD as createToolbarRegistry,
|
|
70
|
+
dq as mount,
|
|
71
|
+
dr as registerToolbarRenderer,
|
|
72
|
+
cF as resolveCommandRef
|
|
73
73
|
};
|