oasis-editor 0.0.214 → 0.0.216
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-z4XAN0Fg.js +1 -0
- package/dist/core/commands/bookmark.d.ts +16 -0
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/pageNumber.d.ts +17 -0
- package/dist/core/commands/publicCommandTypes.d.ts +7 -0
- package/dist/defaultToolbar-CKYcsSYD.js +1 -0
- package/dist/i18n/locales/en.d.ts +1 -0
- package/dist/i18n/locales/pt-BR.d.ts +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/plugins/internal/createEssentialsPlugin.d.ts +1 -1
- package/dist/plugins/internal/essentialsCapabilities.d.ts +20 -1
- package/dist/plugins/internal/essentialsCommandGroups/bookmark.d.ts +9 -0
- package/dist/ui/app/essentials/bookmark.d.ts +8 -0
- package/package.json +1 -1
- package/dist/OasisEditorApp-F11O2dC0.js +0 -1
- package/dist/defaultToolbar-CCLAYtj2.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { OasisPlugin } from '../../core/plugin.js';
|
|
2
2
|
import { EssentialsPluginDeps } from './essentialsCapabilities.js';
|
|
3
|
-
export type { EssentialsFeatureGate, EssentialsStyleCapability, EssentialsSelectionCapability, EssentialsHistoryCapability, EssentialsFormattingCapability, EssentialsDocumentStyleDescriptor, EssentialsDocumentCapability, EssentialsLinkCapability, EssentialsImageCapability, EssentialsBrowserCapability, EssentialsParagraphCapability, EssentialsSectionCapability, EssentialsHeaderFooterCapability, EssentialsTableCapability, EssentialsPluginDeps, EssentialsDesignCapability, } from './essentialsCapabilities.js';
|
|
3
|
+
export type { EssentialsFeatureGate, EssentialsStyleCapability, EssentialsSelectionCapability, EssentialsHistoryCapability, EssentialsFormattingCapability, EssentialsDocumentStyleDescriptor, EssentialsDocumentCapability, EssentialsLinkCapability, EssentialsImageCapability, EssentialsBrowserCapability, EssentialsParagraphCapability, EssentialsSectionCapability, EssentialsHeaderFooterCapability, EssentialsTableCapability, EssentialsPluginDeps, EssentialsDesignCapability, EssentialsBookmarkCapability, } from './essentialsCapabilities.js';
|
|
4
4
|
export declare function createEssentialsPlugin(deps: EssentialsPluginDeps): OasisPlugin;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EditorDocumentDesign, EditorImageBorder, EditorPageBorder, EditorPageMargins, EditorWatermark, EditorMathExpression } from '../../core/model.js';
|
|
1
|
+
import { EditorDocumentDesign, EditorImageBorder, EditorPageBorder, EditorPageMargins, EditorPageNumbering, EditorWatermark, EditorMathExpression } from '../../core/model.js';
|
|
2
|
+
import { SectionPageNumberFormat } from '../../core/commands/pageNumber.js';
|
|
2
3
|
import { DesignThemeId } from '../../core/commands/design.js';
|
|
3
4
|
import { ImageBorderPatch } from '../../core/commands/image.js';
|
|
4
5
|
import { TextCaseMode } from '../../core/commands/text.js';
|
|
@@ -209,6 +210,11 @@ export interface EssentialsSectionCapability {
|
|
|
209
210
|
breakContinuous: () => void;
|
|
210
211
|
getMargins: () => EditorPageMargins | undefined;
|
|
211
212
|
setPageMargins: (margins: Partial<EditorPageMargins>) => void;
|
|
213
|
+
getPageNumbering: () => EditorPageNumbering | undefined;
|
|
214
|
+
setPageNumbering: (numbering: {
|
|
215
|
+
start?: number;
|
|
216
|
+
format?: SectionPageNumberFormat;
|
|
217
|
+
}) => void;
|
|
212
218
|
}
|
|
213
219
|
export interface EssentialsHeaderFooterCapability {
|
|
214
220
|
/** Enter header editing for the active section's default header. */
|
|
@@ -228,6 +234,18 @@ export interface EssentialsHeaderFooterCapability {
|
|
|
228
234
|
/** Whether the caret currently edits a header or footer zone. */
|
|
229
235
|
isInHeaderFooter: () => boolean;
|
|
230
236
|
}
|
|
237
|
+
export interface BookmarkDescriptor {
|
|
238
|
+
id: string;
|
|
239
|
+
name: string;
|
|
240
|
+
}
|
|
241
|
+
export interface EssentialsBookmarkCapability {
|
|
242
|
+
/** Bookmark the current selection with an optional name. */
|
|
243
|
+
insert: (name?: string) => void;
|
|
244
|
+
/** Remove a bookmark by editor-local id. */
|
|
245
|
+
remove: (id: string) => void;
|
|
246
|
+
/** Authorable bookmarks, for cross-reference/target pickers. */
|
|
247
|
+
list: () => BookmarkDescriptor[];
|
|
248
|
+
}
|
|
231
249
|
export interface EssentialsDesignCapability {
|
|
232
250
|
applyTheme: (theme: DesignThemeId) => void;
|
|
233
251
|
setColorScheme: (value: string) => void;
|
|
@@ -306,4 +324,5 @@ export interface EssentialsPluginDeps {
|
|
|
306
324
|
headerFooter: EssentialsHeaderFooterCapability;
|
|
307
325
|
table: EssentialsTableCapability;
|
|
308
326
|
design: EssentialsDesignCapability;
|
|
327
|
+
bookmark: EssentialsBookmarkCapability;
|
|
309
328
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OasisPlugin } from '../../../core/plugin.js';
|
|
2
|
+
import { ActionCommandBuilder } from '../essentialsCommandBuilders.js';
|
|
3
|
+
import { EssentialsBookmarkCapability } from '../essentialsCapabilities.js';
|
|
4
|
+
interface BookmarkGroupDeps {
|
|
5
|
+
bookmark: EssentialsBookmarkCapability;
|
|
6
|
+
actionCommand: ActionCommandBuilder;
|
|
7
|
+
}
|
|
8
|
+
export declare function buildBookmarkCommands({ bookmark, actionCommand, }: BookmarkGroupDeps): NonNullable<OasisPlugin["commands"]>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EssentialsBookmarkCapability } from '../../../plugins/internal/essentialsCapabilities.js';
|
|
2
|
+
import { CreateEditorEssentialsPluginOptions } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Bookmark authoring capability: bridges the core bookmark commands onto the
|
|
5
|
+
* editor's transactional state pipeline so creating/removing bookmarks enter
|
|
6
|
+
* the undo/redo history like other document mutations.
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildEssentialsBookmark(options: CreateEditorEssentialsPluginOptions): EssentialsBookmarkCapability;
|