oasis-editor 0.0.213 → 0.0.215

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.
@@ -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;
@@ -219,11 +219,27 @@ export interface EssentialsHeaderFooterCapability {
219
219
  insertPageNumber: () => void;
220
220
  /** Insert a "Page X of Y" combination (PAGE + NUMPAGES) at the caret. */
221
221
  insertPageNumberXOfY: () => void;
222
+ /** Place the active section's default header page number (aligned). */
223
+ placePageNumberTop: () => void;
224
+ /** Place the active section's default footer page number (aligned). */
225
+ placePageNumberBottom: () => void;
222
226
  /** Return the caret to the main body, leaving header/footer editing. */
223
227
  exit: () => void;
224
228
  /** Whether the caret currently edits a header or footer zone. */
225
229
  isInHeaderFooter: () => boolean;
226
230
  }
231
+ export interface BookmarkDescriptor {
232
+ id: string;
233
+ name: string;
234
+ }
235
+ export interface EssentialsBookmarkCapability {
236
+ /** Bookmark the current selection with an optional name. */
237
+ insert: (name?: string) => void;
238
+ /** Remove a bookmark by editor-local id. */
239
+ remove: (id: string) => void;
240
+ /** Authorable bookmarks, for cross-reference/target pickers. */
241
+ list: () => BookmarkDescriptor[];
242
+ }
227
243
  export interface EssentialsDesignCapability {
228
244
  applyTheme: (theme: DesignThemeId) => void;
229
245
  setColorScheme: (value: string) => void;
@@ -302,4 +318,5 @@ export interface EssentialsPluginDeps {
302
318
  headerFooter: EssentialsHeaderFooterCapability;
303
319
  table: EssentialsTableCapability;
304
320
  design: EssentialsDesignCapability;
321
+ bookmark: EssentialsBookmarkCapability;
305
322
  }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.213",
3
+ "version": "0.0.215",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {