@paged-media/plugin-api 0.2.9-canary.0 → 0.2.10-canary.0
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/host.d.ts +18 -0
- package/package.json +1 -1
package/dist/host.d.ts
CHANGED
|
@@ -104,6 +104,24 @@ export interface EditContextContribution {
|
|
|
104
104
|
/** K-1 — modal CANCEL (Esc): revert the in-flight edits. Fires before
|
|
105
105
|
* `onExit`. */
|
|
106
106
|
onCancel?(): void;
|
|
107
|
+
/** ADR-012 Tier 1 — in-session undo OWNERSHIP. While this context is
|
|
108
|
+
* active and declares these hooks, the shell routes Cmd-Z /
|
|
109
|
+
* Cmd-Shift-Z HERE (the plugin's own op-log — for sheets, workbook
|
|
110
|
+
* Operations) instead of the document undo stack; the document stack
|
|
111
|
+
* is suspended until exit (Tier 2: commit-exit re-lowers the net
|
|
112
|
+
* change as ONE atomic batch = one document undo step). Return
|
|
113
|
+
* `true` when a step was un/re-done, `false` when this context's log
|
|
114
|
+
* is exhausted (the shell does NOT fall through to the document
|
|
115
|
+
* stack mid-session — the boundary is the modal entry/exit,
|
|
116
|
+
* ADR-012). Absent ⇒ the context doesn't own undo and the document
|
|
117
|
+
* stack behaves as ever. */
|
|
118
|
+
onUndo?(): boolean;
|
|
119
|
+
onRedo?(): boolean;
|
|
120
|
+
/** ADR-012 — enablement probes for the un/redo affordances while the
|
|
121
|
+
* context owns the stack. Absent (with `onUndo` present) ⇒ assumed
|
|
122
|
+
* always enabled. */
|
|
123
|
+
onCanUndo?(): boolean;
|
|
124
|
+
onCanRedo?(): boolean;
|
|
107
125
|
/** HOST-STAMPED, not author-supplied: the `x-paged:<manifest id>`
|
|
108
126
|
* metadata key the host resolves the candidate's `metadata` from
|
|
109
127
|
* before calling `matches`. The SDK adapter fills this from the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paged-media/plugin-api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10-canary.0",
|
|
4
4
|
"description": "The Paged plugin contract: manifest, bundle lifecycle, the BundleHost surface, and the contribution + engine wire types. Type-only.",
|
|
5
5
|
"license": "MPL-2.0 OR LicenseRef-PMEL",
|
|
6
6
|
"type": "module",
|