oasis-editor 0.0.198 → 0.0.199
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-MjK5DUkO.js → OasisEditorApp-DyDxI1Kx.js} +1 -1
- package/dist/core/commands/history.d.ts +3 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/plugins/internal/essentialsCapabilities.d.ts +6 -0
- package/dist/ui/app/essentials/formatting.d.ts +1 -6
- package/package.json +3 -1
|
@@ -23,6 +23,12 @@ export interface EssentialsHistoryCapability {
|
|
|
23
23
|
export interface EssentialsFormattingCapability {
|
|
24
24
|
selectAll: () => boolean;
|
|
25
25
|
insertFootnote: () => boolean;
|
|
26
|
+
insertTableOfContents: () => boolean;
|
|
27
|
+
updateTableOfContents: () => boolean;
|
|
28
|
+
/** True only when the active section contains an updateable TOC field. */
|
|
29
|
+
hasTableOfContents: () => boolean;
|
|
30
|
+
/** True when the current selection intersects revisions this command can resolve. */
|
|
31
|
+
hasRevisionsInSelection: () => boolean;
|
|
26
32
|
insertText: (text: string, fontFamily?: string | null) => boolean;
|
|
27
33
|
insertEquation: (expression: EditorMathExpression) => boolean;
|
|
28
34
|
updateEquation: (runId: string, expression: EditorMathExpression) => boolean;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { EssentialsFormattingCapability } from '../../../plugins/internal/essentialsCapabilities.js';
|
|
2
2
|
import { CreateEditorEssentialsPluginOptions } from './types.js';
|
|
3
|
-
|
|
4
|
-
insertTableOfContents: () => boolean;
|
|
5
|
-
updateTableOfContents: () => boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare function buildEssentialsFormatting(options: CreateEditorEssentialsPluginOptions): EssentialsFormattingImpl;
|
|
8
|
-
export {};
|
|
3
|
+
export declare function buildEssentialsFormatting(options: CreateEditorEssentialsPluginOptions): EssentialsFormattingCapability;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oasis-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.199",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -63,6 +63,8 @@
|
|
|
63
63
|
"build:all": "npm run wasm:build && npm run build",
|
|
64
64
|
"test": "vitest run",
|
|
65
65
|
"test:word-parity": "vitest run --config vitest.word-parity.config.js",
|
|
66
|
+
"audit:ribbon": "node scripts/audit-ribbon-parity.mjs --check",
|
|
67
|
+
"audit:ribbon:write": "node scripts/audit-ribbon-parity.mjs --write",
|
|
66
68
|
"check:imports": "node ./scripts/check-import-graph.mjs",
|
|
67
69
|
"check:native-ui": "node ./scripts/check-native-ui-elements.mjs",
|
|
68
70
|
"typecheck": "tsc --noEmit",
|