oasis-editor 0.0.13 → 0.0.15
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-DYcAe_1n.js → OasisEditorApp-C8YG4Yzr.js} +54 -5
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/publicCommandTypes.d.ts +6 -0
- package/dist/i18n/locales/en.d.ts +8 -0
- package/dist/i18n/locales/pt-BR.d.ts +8 -0
- package/dist/{index-CWev1Jg0.js → index-Dqm-2RUA.js} +158 -36
- package/dist/index.d.ts +1 -1
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/plugins/internal/createEssentialsPlugin.d.ts +2 -0
- package/dist/ui/components/Toolbar/presets/builtinToolbarIds.d.ts +1 -0
- package/dist/ui/components/Toolbar/schema/items.d.ts +2 -0
- package/dist/ui/editorLayoutConstants.d.ts +13 -0
- package/package.json +1 -1
|
@@ -93,6 +93,7 @@ export interface EssentialsParagraphCapability {
|
|
|
93
93
|
setIndentRight: (value: number | null) => void;
|
|
94
94
|
setIndentFirstLine: (value: number | null) => void;
|
|
95
95
|
setIndentHanging: (value: number | null) => void;
|
|
96
|
+
setSpecialIndent: (kind: "none" | "firstLine" | "hanging", value?: number | null) => void;
|
|
96
97
|
setShading: (value: string | null) => void;
|
|
97
98
|
applyBorders: () => void;
|
|
98
99
|
setLineHeight: (value: number | null) => void;
|
|
@@ -104,6 +105,7 @@ export interface EssentialsParagraphCapability {
|
|
|
104
105
|
export interface EssentialsSectionCapability {
|
|
105
106
|
isLandscape: () => boolean;
|
|
106
107
|
toggleOrientation: () => void;
|
|
108
|
+
setOrientation: (orientation: "portrait" | "landscape") => void;
|
|
107
109
|
breakNextPage: () => void;
|
|
108
110
|
breakContinuous: () => void;
|
|
109
111
|
setPageMargins: (margins: {
|
|
@@ -33,6 +33,7 @@ export declare const OASIS_TOOLBAR_ITEMS: {
|
|
|
33
33
|
readonly outdent: "editor-toolbar-list-outdent";
|
|
34
34
|
readonly indent: "editor-toolbar-list-indent";
|
|
35
35
|
readonly listOptions: "editor-toolbar-list-options";
|
|
36
|
+
readonly specialIndent: "editor-toolbar-special-indent";
|
|
36
37
|
readonly lineSpacing: "editor-toolbar-line-spacing-control";
|
|
37
38
|
readonly metrics: "editor-toolbar-metrics";
|
|
38
39
|
readonly table: "editor-toolbar-table";
|
|
@@ -84,6 +84,8 @@ export interface SplitItem extends ToolbarItemBase {
|
|
|
84
84
|
command: CommandRef;
|
|
85
85
|
/** Chevron-opened content. */
|
|
86
86
|
menu: MenuContent;
|
|
87
|
+
/** Extra class applied to the popover panel. */
|
|
88
|
+
panelClass?: string;
|
|
87
89
|
}
|
|
88
90
|
export interface MenuItem extends ToolbarItemBase {
|
|
89
91
|
type: "menu";
|
|
@@ -10,3 +10,16 @@
|
|
|
10
10
|
* the caret — the ruler still measures the paper from the DOM as a backstop.
|
|
11
11
|
*/
|
|
12
12
|
export declare const EDITOR_SCROLL_PADDING_PX = 34;
|
|
13
|
+
/**
|
|
14
|
+
* Width (px) reserved for the editor's vertical scrollbar gutter.
|
|
15
|
+
*
|
|
16
|
+
* The page paper is `width: 100%` of the scroll content, so the editor shell
|
|
17
|
+
* width is sized as `pageWidth + 2 * gutter (+ this reserve)`. Without reserving
|
|
18
|
+
* the scrollbar's track, the fixed-width canvas surface (`pageWidth`) collides
|
|
19
|
+
* with the vertical scrollbar and forces a spurious horizontal scrollbar — most
|
|
20
|
+
* visible in landscape, where the page is wide. We pair this reserve with
|
|
21
|
+
* `scrollbar-gutter: stable` on `.oasis-editor-editor` (see app-shell.css) so the
|
|
22
|
+
* gutter is always reserved and the paper stays exactly `pageWidth`. Keep this in
|
|
23
|
+
* lockstep with the `::-webkit-scrollbar { width }` value in app-shell.css.
|
|
24
|
+
*/
|
|
25
|
+
export declare const EDITOR_SCROLLBAR_RESERVE_PX = 10;
|