@paged-media/plugin-api 0.2.9-canary.0 → 0.2.11-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 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/dist/wire.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // GENERATED — do not edit. Vendored verbatim from the published
2
2
  // @paged-media/canvas-wasm .d.ts (tsify output from paged-media/core,
3
3
  // MPL-2.0 OR PMEL). Sync: node scripts/sync-wire.mjs · Check: --check.
4
- // Synced from @paged-media/canvas-wasm@0.42.0
4
+ // Synced from @paged-media/canvas-wasm@0.42.1
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
7
7
 
@@ -326,7 +326,7 @@ export interface ExportPdfWireOptions {
326
326
  * default on re-insertion; that residue of the Stage 1 limitation
327
327
  * tightens in later stages.
328
328
  */
329
- export type NodeSpec = { kind: "textFrame"; self_id: string; bounds: [number, number, number, number]; fill_color?: string | null; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null } | { kind: "rectangle"; self_id: string; bounds: [number, number, number, number]; fill_color?: string | null; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null } | { kind: "oval"; self_id: string; bounds: [number, number, number, number]; fill_color?: string | null; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null } | { kind: "graphicLine"; self_id: string; bounds: [number, number, number, number]; anchors?: PathAnchorSpec[]; subpath_starts?: number[]; subpath_open?: boolean[]; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null } | { kind: "polygon"; self_id: string; bounds: [number, number, number, number]; anchors?: PathAnchorSpec[]; subpath_starts?: number[]; subpath_open?: boolean[]; fill_color?: string | null; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null } | { kind: "cloneTranslate"; self_id: string; source: NodeId; dx: number; dy: number; destination_spread_id?: string | null } | { kind: "table"; self_id: string; rows: number; cols: number; header_rows?: number; footer_rows?: number; column_widths?: number[]; row_heights?: number[] };
329
+ export type NodeSpec = { kind: "textFrame"; self_id: string; bounds: [number, number, number, number]; fill_color?: string | null; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null; parent_story?: string | null } | { kind: "rectangle"; self_id: string; bounds: [number, number, number, number]; fill_color?: string | null; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null } | { kind: "oval"; self_id: string; bounds: [number, number, number, number]; fill_color?: string | null; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null } | { kind: "graphicLine"; self_id: string; bounds: [number, number, number, number]; anchors?: PathAnchorSpec[]; subpath_starts?: number[]; subpath_open?: boolean[]; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null } | { kind: "polygon"; self_id: string; bounds: [number, number, number, number]; anchors?: PathAnchorSpec[]; subpath_starts?: number[]; subpath_open?: boolean[]; fill_color?: string | null; stroke_color?: string | null; stroke_weight?: number | null; item_transform?: [number, number, number, number, number, number] | null } | { kind: "cloneTranslate"; self_id: string; source: NodeId; dx: number; dy: number; destination_spread_id?: string | null } | { kind: "table"; self_id: string; rows: number; cols: number; header_rows?: number; footer_rows?: number; column_widths?: number[]; row_heights?: number[] };
330
330
 
331
331
  /**
332
332
  * Direction for [`caret_nav`].
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paged-media/plugin-api",
3
- "version": "0.2.9-canary.0",
3
+ "version": "0.2.11-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",