@paged-media/plugin-api 0.2.11-canary.0 → 0.2.12-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 +6 -1
- package/package.json +1 -1
package/dist/host.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CollectionName, DocumentMeta, ElementGeometryItem, ElementId, HitFilter, HitResult, Mutation, PageId, PathAnchorsResult, SceneTreeNode, SelectionMode } from "./wire";
|
|
1
|
+
import type { CollectionName, DocumentMeta, ElementGeometryItem, ElementId, HitFilter, HitResult, Mutation, PageId, ElementProperties, PathAnchorsResult, SceneTreeNode, SelectionMode } from "./wire";
|
|
2
2
|
import type { CommandContribution, ExporterContribution, ImporterContribution, KeybindingContribution, OverlayContribution, PagedEditor, PanelContribution, ToolContribution, ToolPreviewShape } from "./editor";
|
|
3
3
|
import type { SceneLayer } from "./wire";
|
|
4
4
|
import type { AssetSurface } from "./assets";
|
|
@@ -318,6 +318,11 @@ export interface DocumentSurface {
|
|
|
318
318
|
collection<T>(name: CollectionName): Promise<readonly T[]>;
|
|
319
319
|
meta(): Promise<DocumentMeta>;
|
|
320
320
|
pathAnchors(id: ElementId): Promise<PathAnchorsResult | null>;
|
|
321
|
+
/** B-19 — the typed element-properties read (every PropertyPath/Value
|
|
322
|
+
* entry the engine exposes for `id`, the same snapshot panels bind
|
|
323
|
+
* against). Retires the v0 `host.editor.client.send` escape hatch
|
|
324
|
+
* the draw fill panel used. `null` for an unknown element. */
|
|
325
|
+
elementProperties(id: ElementId): Promise<ElementProperties | null>;
|
|
321
326
|
hitTest(pageId: PageId, point: [number, number], filter?: HitFilter): Promise<HitResult | null>;
|
|
322
327
|
elementGeometry(ids: ElementId[]): Promise<ElementGeometryItem[]>;
|
|
323
328
|
tree(): Promise<SceneTreeNode[]>;
|
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.12-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",
|