@paged-media/plugin-api 0.2.54-canary.0 → 0.2.56-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/assets.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { Disposable } from "./host";
2
+ import type { PageId } from "./wire";
2
3
  /** What `host.assets` can serve. `"fonts"` gates `getFontFace` (W-06);
3
4
  * `"images"` gates `getPlacedImage` (C-5 / I-04 — OPEN since core v42:
4
5
  * the engine serves a placed image's original bytes, so `validate`
@@ -46,6 +47,27 @@ export interface PlacedImageAsset {
46
47
  /** Natural pixel height of the placed image. */
47
48
  height: number;
48
49
  }
50
+ /**
51
+ * What {@link AssetSurface.registerDocumentFont} did. Never a throw (the
52
+ * undeclared-`fonts` gate aside, as on every asset door):
53
+ *
54
+ * - `registered` — the document holds the face now; `pageIds` are the pages
55
+ * the engine laid out again because text there resolves to it;
56
+ * - `held` — the document already held a face for the family (and style),
57
+ * so nothing was sent: the door fills a gap, it never replaces a face;
58
+ * - `refused` — nothing was registered; `reason` says why (the
59
+ * `document.write` gate, the per-face budget, bytes the canvas cannot
60
+ * draw, the engine's own refusal or a dead channel).
61
+ */
62
+ export type DocumentFontOutcome = {
63
+ status: "registered";
64
+ pageIds: PageId[];
65
+ } | {
66
+ status: "held";
67
+ } | {
68
+ status: "refused";
69
+ reason: string;
70
+ };
49
71
  /**
50
72
  * The asset accessor a bundle reaches through `host.assets`. Two reads:
51
73
  * DOCUMENT-registered font face bytes by family (+ optional style), and
@@ -54,9 +76,10 @@ export interface PlacedImageAsset {
54
76
  * the document already holds, and the host answers from that or
55
77
  * `null`. Capability-gated per kind: `getFontFace` requires
56
78
  * `capabilities.assets` ∋ `"fonts"`, `getPlacedImage` ∋ `"images"`
57
- * (the host gate throws in `'enforce'`, warns in `'warn'`). One write
58
- * sits beside the reads — `registerFont`, scene-layer faces only (W-15);
59
- * it adds nothing the document can see.
79
+ * (the host gate throws in `'enforce'`, warns in `'warn'`). Two writes
80
+ * sit beside the reads — `registerFont`, scene-layer faces only (W-15),
81
+ * which adds nothing the document can see, and `registerDocumentFont`,
82
+ * a face for the document where it has none (ADR 328).
60
83
  */
61
84
  export interface AssetSurface {
62
85
  /**
@@ -93,4 +116,33 @@ export interface AssetSurface {
93
116
  * inert `Disposable` — scene text keeps its fallback face.
94
117
  */
95
118
  registerFont(bytes: Uint8Array, family: string, style?: string): Promise<Disposable>;
119
+ /**
120
+ * ADR 328 — give the DOCUMENT a face for `family` (+ `style`) when it
121
+ * holds none: the engine's document registry takes the bytes
122
+ * (`registerFont` with `scope: "document"`), the text that names the
123
+ * family is laid out and drawn in them, and the Fonts collection no
124
+ * longer flags the family missing. For a bundle that writes NATIVE text
125
+ * in a face the document lacks — paged.web's bake names the face each
126
+ * run was shaped in — so the text it wrote is drawn as it was shaped.
127
+ *
128
+ * It fills a gap and never replaces: when the document already holds a
129
+ * face for the family in that style (any face of the family when
130
+ * `style` is omitted), nothing is sent and the outcome is `held`. So a
131
+ * bundle cannot change how text that already resolves is drawn.
132
+ *
133
+ * The face is not undoable and is not written into a saved file (a
134
+ * document names its fonts; it carries no face bytes): the engine keeps
135
+ * it for the session, for every document opened after too. A bundle
136
+ * whose text needs it in a later session provides it again (at
137
+ * `document.onDidOpen`, or when it writes the text).
138
+ *
139
+ * Gates: `capabilities.assets` ∋ `"fonts"` (throws in 'enforce', as on
140
+ * every asset door) and `capabilities.document.write` (it changes how
141
+ * the document lays out; refused in 'enforce'). Refused, too: a face
142
+ * over `ASSET_BUDGETS.maxFontFaceBytes`, bytes that are not a TrueType
143
+ * or OpenType face (WOFF and WOFF2 included — the canvas reads neither),
144
+ * an empty family. Never throws otherwise. Calls for one face at the
145
+ * same time register it once. Probe `supports("assets.documentFont@1")`.
146
+ */
147
+ registerDocumentFont(bytes: Uint8Array, family: string, style?: string): Promise<DocumentFontOutcome>;
96
148
  }
package/dist/host.d.ts CHANGED
@@ -794,14 +794,37 @@ export interface WillSaveEvent {
794
794
  /** The container being written. */
795
795
  format: "paged";
796
796
  }
797
+ /**
798
+ * One committed change to the document's content — one step in its history.
799
+ * `kind` names what committed it (the engine's own reply kind):
800
+ *
801
+ * - `mutationApplied` — a `mutate`: a bundle's write, a panel field, a command;
802
+ * - `undoApplied` / `redoApplied` — an undo or a redo;
803
+ * - `gestureCommitted` — a canvas gesture (a frame dragged, resized or
804
+ * rotated by its handles) committed on the engine (0.2.55);
805
+ * - `scriptResult` — a `paged.*` script finished (0.2.55). The engine names
806
+ * neither its pages nor whether it wrote, so `pageIds` is empty and
807
+ * `pagesUnknown` is set: treat every page as changed.
808
+ *
809
+ * A host from before 0.2.55 reports the first three only; probe
810
+ * `supports("document.onDidChange@2")` for the full set.
811
+ */
797
812
  export interface DocumentChangeEvent {
798
- kind: "mutationApplied" | "undoApplied" | "redoApplied";
813
+ kind: "mutationApplied" | "undoApplied" | "redoApplied" | "gestureCommitted" | "scriptResult";
814
+ /** The pages whose content the change touched (empty: none, unless
815
+ * `pagesUnknown`). */
799
816
  pageIds: PageId[];
817
+ /** Set when the host cannot say which pages changed (a script run):
818
+ * `pageIds` is then empty and any page may have changed. */
819
+ pagesUnknown?: true;
800
820
  /** Content-box reflow (protocol v38, C-2/S-05): present ONLY when the
801
821
  * change RESIZED a frame's content box (a `resizeFrame`) — never on a
802
822
  * pure transform (move/scale/rotate is display-only, §8.5). A
803
823
  * pagination consumer re-splits on this and ignores transform-only
804
- * changes (where it is absent). */
824
+ * changes (where it is absent). The engine reports it for a
825
+ * `resizeFrame` mutation only: a `gestureCommitted` never carries it,
826
+ * even for a resize by the handles, so a consumer that follows frame
827
+ * sizes re-reads geometry on a gesture commit. */
805
828
  reflow?: {
806
829
  frameId: string;
807
830
  contentBox: [number, number, number, number];
@@ -1081,6 +1104,15 @@ export interface DocumentSurface {
1081
1104
  * `supports("document.readStory@1")`; a host without the v54 read backend
1082
1105
  * throws `PluginApiNotImplemented` (a visible seam, never a fake value). */
1083
1106
  storyContent(storyId: string): Promise<StoryContent | null>;
1107
+ /**
1108
+ * Every committed change to the document, whatever committed it: a
1109
+ * mutation, an undo or redo, a canvas gesture's commit, a script run
1110
+ * (see {@link DocumentChangeEvent} for the kinds). A gesture still in
1111
+ * flight, a cancelled one and a script suspended on the host's objects
1112
+ * are not changes. Gated on `capabilities.document.read`. Probe
1113
+ * `supports("document.onDidChange@2")`: a host without it reports
1114
+ * mutations, undos and redos only.
1115
+ */
1084
1116
  onDidChange(listener: (e: DocumentChangeEvent) => void): Disposable;
1085
1117
  /**
1086
1118
  * W-22 — a document became the active one: opened from a file, created
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export type { BundleHost, ContributionSurface, SceneLayerSurface, SceneLayerSubm
5
5
  export type { PanelSchema, PanelSchemaSection, PanelSchemaRow, SchemaPanelContribution, SchemaPanelRenderer, SchemaPanelRendererProps, WidgetValueBinding, BindingRef, SchemaGate, WidgetCollectionBinding, SchemaRowAction, SchemaListAction, SchemaListSpec, PanelSchemaWidgetRow, PanelSchemaPropertyRow, PropertyFieldAddress, PropertyFieldStyle, PropertyFieldOption, PropertySubField, PropertyListPresentation, } from "./panel-schema";
6
6
  export type { WidgetSurface, ColorPickerProps, CodeEditorProps, CodeEditorDiagnostic, CodeEditorLanguage, PropertyFieldProps, PropertyFrameProps, PropertyFieldTarget, } from "./widgets";
7
7
  export type { BindingTarget, BindingPropertyRequest, BindingPropertyWrite, BindingCollectionRequest, BindingRead, BindingResolved, BindingDecline, BindingWrite, BindingCollection, BindingOp, BindingProvider, BindingProviderScope, BindingProviderHandle, BindingReadResult, BindingWriteResult, BindingCollectionResult, ActiveBindingProvider, } from "./binding-provider";
8
- export type { AssetSurface, AssetKind, FontFaceAsset, FontFaceFormat, } from "./assets";
8
+ export type { AssetSurface, AssetKind, DocumentFontOutcome, FontFaceAsset, FontFaceFormat, } from "./assets";
9
9
  export type { ProviderTileWire, SnapshotPng } from "./wire";
10
10
  export type { SnapPointQuery, SnapPointResult, SnapPointHit, SnapAxisHit, SnapSegmentHit, SnapExclude, SnapSource, SnapSettings, } from "./wire";
11
11
  export type { MintedElement } from "./wire";
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.71.8
4
+ // Synced from @paged-media/canvas-wasm@0.71.12
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
7
7
 
@@ -1144,6 +1144,11 @@ export type GestureHandle = number;
1144
1144
  * composed affine into the PAGE the element sits on (see
1145
1145
  * [`Self::item_transform`]). The overlay layer multiplies bounds
1146
1146
  * corners by the transform to draw the oriented selection chrome.
1147
+ *
1148
+ * A GROUP answers the box InDesign draws around it: `bounds` is the
1149
+ * union of its members\' outlines in the group\'s own coordinate space
1150
+ * and `item_transform` the group\'s composed transform, so a rotated
1151
+ * group reads as a rotated box, the same shape as a rotated frame\'s.
1147
1152
  */
1148
1153
  export interface ElementGeometryItem {
1149
1154
  id: ElementId;
@@ -2294,7 +2299,7 @@ export type Value = { type: "bounds"; value: [number, number, number, number] }
2294
2299
  * (`\"fill.color\"`) — so JS callers don\'t need to learn the Rust
2295
2300
  * enum shape.
2296
2301
  */
2297
- export type PropertyPath = "frameBounds" | "frameFillColor" | "frameStrokeColor" | "frameStrokeWeight" | "frameOpacity" | "frameTransform" | "imageContentTransform" | "framePathPoint" | "pathPointInsert" | "pathPointRemove" | "pathPointCurveType" | "layerVisible" | "layerLocked" | "layerPrintable" | "layerName" | "characterFontSize" | "characterLeading" | "characterTracking" | "characterFillColor" | "paragraphSpaceBefore" | "paragraphSpaceAfter" | "paragraphFirstLineIndent" | "appliedParagraphStyle" | "appliedCharacterStyle" | "appliedObjectStyle" | "itemLayer" | "appliedCellStyle" | "appliedTableStyle" | "framePath" | "frameNonprinting" | "frameFillTint" | "frameGradientFillAngle" | "frameGradientFillLength" | "frameGradientStrokeAngle" | "frameGradientStrokeLength" | "pathOpenAt" | "outlineStroke" | "outlineStrokeVariable" | "offsetPath" | "simplifyPath" | "closePath" | "frameGradientFeather" | "pageBounds" | "frameDropShadowMode" | "frameDropShadowXOffset" | "frameDropShadowYOffset" | "frameDropShadowSize" | "frameDropShadowOpacity" | "frameDropShadowColor" | "frameDropShadow" | "frameFittingCrops" | "frameFittingType" | "frameTextWrapMode" | "frameTextWrapOffsets" | "frameTextWrapContourType" | "frameTextWrapContourIncludeInside" | "paragraphJustification" | "paragraphStyleNextStyle" | "paragraphAppliedNumberingList" | "frameStrokeEndCap" | "frameInsetSpacing" | "appliedConditions" | "characterFontFamily" | "characterFontStyle" | "characterKerningMethod" | "characterCase" | "characterPosition" | "characterLanguage" | "characterBaselineShift" | "characterHorizontalScale" | "characterVerticalScale" | "characterSkew" | "characterUnderline" | "characterStrikethru" | "characterLigatures" | "characterOtfFeatures" | "paragraphLeftIndent" | "paragraphRightIndent" | "paragraphDropCapCharacters" | "paragraphDropCapLines" | "paragraphHyphenation" | "paragraphHyphenationZone" | "paragraphKeepLinesTogether" | "paragraphKeepWithNext" | "paragraphKeepAllLinesTogether" | "paragraphKeepFirstLines" | "paragraphKeepLastLines" | "paragraphStartParagraph" | "paragraphSpanColumnType" | "paragraphSpanSplitColumnCount" | "paragraphSpanColumnMinSpaceBefore" | "paragraphSpanColumnMinSpaceAfter" | "paragraphSplitColumnInsideGutter" | "paragraphSplitColumnOutsideGutter" | "paragraphRuleAbove" | "paragraphRuleBelow" | "paragraphTabStops" | "paragraphListType" | "paragraphBulletCharacter" | "paragraphNumberingFormat" | "paragraphBulletsTextAfter" | "paragraphNumberingExpression" | "paragraphNumberingStartAt" | "paragraphNumberingContinue" | "paragraphBulletsCharacterStyle" | "paragraphNumberingCharacterStyle" | "paragraphComposer" | "textFrameColumnCount" | "textFrameColumnGutter" | "textFrameColumnBalance" | "textFrameVerticalJustification" | "textFrameAutoSizing" | "textFrameFirstBaseline" | "textWrapInvert" | "frameFittingReferencePoint" | "frameAutoFit" | "frameStrokeType" | "frameStrokeJoin" | "frameStrokeMiterLimit" | "frameStrokeAlignment" | "frameStrokeGapColor" | "frameStrokeGapTint" | "frameStrokeDashArray" | "frameCornerOptionTopLeft" | "frameCornerOptionTopRight" | "frameCornerOptionBottomLeft" | "frameCornerOptionBottomRight" | "frameCornerRadiusTopLeft" | "frameCornerRadiusTopRight" | "frameCornerRadiusBottomLeft" | "frameCornerRadiusBottomRight" | "frameRotationAngle" | "frameScaleX" | "frameScaleY" | "frameFlipH" | "frameFlipV" | "frameOverprintFill" | "frameOverprintStroke" | "frameInnerShadowEnabled" | "frameInnerShadowBlendMode" | "frameInnerShadowColor" | "frameInnerShadowOpacity" | "frameInnerShadowAngle" | "frameInnerShadowDistance" | "frameInnerShadowSize" | "frameInnerShadowChoke" | "frameInnerShadowNoise" | "frameOuterGlowEnabled" | "frameOuterGlowBlendMode" | "frameOuterGlowColor" | "frameOuterGlowOpacity" | "frameOuterGlowSpread" | "frameOuterGlowSize" | "frameOuterGlowNoise" | "frameInnerGlowEnabled" | "frameInnerGlowBlendMode" | "frameInnerGlowColor" | "frameInnerGlowOpacity" | "frameInnerGlowChoke" | "frameInnerGlowSize" | "frameInnerGlowSource" | "frameInnerGlowNoise" | "frameBevelEnabled" | "frameBevelStyle" | "frameBevelTechnique" | "frameBevelDepth" | "frameBevelDirection" | "frameBevelSize" | "frameBevelSoften" | "frameBevelAngle" | "frameBevelAltitude" | "frameBevelHighlightColor" | "frameBevelShadowColor" | "frameBevelHighlightOpacity" | "frameBevelShadowOpacity" | "frameSatinEnabled" | "frameSatinBlendMode" | "frameSatinColor" | "frameSatinOpacity" | "frameSatinAngle" | "frameSatinDistance" | "frameSatinSize" | "frameSatinInvert" | "frameFeatherEnabled" | "frameFeatherWidth" | "frameFeatherCornerType" | "frameFeatherNoise" | "frameFeatherChoke" | "frameDirectionalFeatherEnabled" | "frameDirectionalFeatherLeftWidth" | "frameDirectionalFeatherRightWidth" | "frameDirectionalFeatherTopWidth" | "frameDirectionalFeatherBottomWidth" | "frameDirectionalFeatherAngle" | "frameDirectionalFeatherNoise" | "frameDirectionalFeatherChoke" | "frameBlendMode" | "nextTextFrame" | "previousTextFrame" | "cellFillColor" | "cellFillTint" | "cellInsetTop" | "cellInsetLeft" | "cellInsetBottom" | "cellInsetRight" | "cellVerticalJustification" | "cellTopEdgeStrokeColor" | "cellTopEdgeStrokeWeight" | "cellTopEdgeStrokeTint" | "cellBottomEdgeStrokeColor" | "cellBottomEdgeStrokeWeight" | "cellBottomEdgeStrokeTint" | "cellLeftEdgeStrokeColor" | "cellLeftEdgeStrokeWeight" | "cellLeftEdgeStrokeTint" | "cellRightEdgeStrokeColor" | "cellRightEdgeStrokeWeight" | "cellRightEdgeStrokeTint" | "tableRowCount" | "tableColumnCount" | "pluginMetadata" | "anchoredPosition" | "anchorPoint" | "anchoredXOffset" | "anchoredYOffset" | "anchoredHorizontalReference" | "anchoredVerticalReference" | "anchoredHorizontalAlignment" | "anchoredVerticalAlignment" | "anchoredSpineRelative" | "anchoredLockPosition" | "elementVisible" | "elementLocked" | "frameStrokeStartArrowhead" | "frameStrokeEndArrowhead" | "pageMarginTop" | "pageMarginBottom" | "pageMarginLeft" | "pageMarginRight" | "pageColumnCount" | "pageColumnGutter" | "documentBleedTop" | "documentBleedBottom" | "documentBleedInsideOrLeft" | "documentBleedOutsideOrRight" | "documentSlugTop" | "documentSlugBottom" | "documentSlugInsideOrLeft" | "documentSlugRightOrOutside" | "textVariableName" | "textVariableType" | "textVariableContents" | "textVariableTextBefore" | "textVariableTextAfter" | "textVariableDateFormat" | "objectStyleStrokeTint" | "objectStyleCornerRadius" | "objectStyleCornerOption" | "cellStyleRotationAngle" | "tableStyleHeaderRegionCellStyle" | "tableStyleBodyRegionCellStyle" | "tableStyleFooterRegionCellStyle" | "tableStyleLeftColumnRegionCellStyle" | "tableStyleRightColumnRegionCellStyle" | "tableStyleTopBorderStrokeColor" | "tableStyleTopBorderStrokeWeight" | "tableStyleBottomBorderStrokeColor" | "tableStyleBottomBorderStrokeWeight" | "tableStyleLeftBorderStrokeColor" | "tableStyleLeftBorderStrokeWeight" | "tableStyleRightBorderStrokeColor" | "tableStyleRightBorderStrokeWeight" | "tableStyleAlternatingFills" | "tableStyleStartRowFillColor" | "tableStyleStartRowFillCount" | "tableStyleStartRowFillTint" | "tableStyleEndRowFillColor" | "tableStyleEndRowFillCount" | "tableStyleEndRowFillTint" | "itemName" | "frameFillOpacity" | "frameFillBlendMode" | "frameStrokeOpacity" | "frameStrokeBlendMode" | "frameContentOpacity" | "frameContentBlendMode" | "groupIsolateBlending" | "groupKnockout" | "frameDropShadowBlendMode" | "frameDropShadowSpread" | "frameDropShadowNoise" | "frameDropShadowKnockedOut" | "frameDropShadowUseGlobalLight" | "documentGlobalLightAngle" | "documentGlobalLightAltitude";
2302
+ export type PropertyPath = "frameBounds" | "frameFillColor" | "frameStrokeColor" | "frameStrokeWeight" | "frameOpacity" | "frameTransform" | "imageContentTransform" | "framePathPoint" | "pathPointInsert" | "pathPointRemove" | "pathPointCurveType" | "layerVisible" | "layerLocked" | "layerPrintable" | "layerName" | "characterFontSize" | "characterLeading" | "characterTracking" | "characterFillColor" | "paragraphSpaceBefore" | "paragraphSpaceAfter" | "paragraphFirstLineIndent" | "appliedParagraphStyle" | "appliedCharacterStyle" | "appliedObjectStyle" | "itemLayer" | "appliedCellStyle" | "appliedTableStyle" | "framePath" | "frameNonprinting" | "frameFillTint" | "frameGradientFillAngle" | "frameGradientFillLength" | "frameGradientStrokeAngle" | "frameGradientStrokeLength" | "pathOpenAt" | "outlineStroke" | "outlineStrokeVariable" | "offsetPath" | "simplifyPath" | "closePath" | "frameGradientFeather" | "pageBounds" | "frameDropShadowMode" | "frameDropShadowXOffset" | "frameDropShadowYOffset" | "frameDropShadowSize" | "frameDropShadowOpacity" | "frameDropShadowColor" | "frameDropShadow" | "frameFittingCrops" | "frameFittingType" | "frameTextWrapMode" | "frameTextWrapOffsets" | "frameTextWrapContourType" | "frameTextWrapContourIncludeInside" | "paragraphJustification" | "paragraphStyleNextStyle" | "paragraphAppliedNumberingList" | "frameStrokeEndCap" | "frameInsetSpacing" | "appliedConditions" | "characterFontFamily" | "characterFontStyle" | "characterKerningMethod" | "characterCase" | "characterPosition" | "characterLanguage" | "characterBaselineShift" | "characterHorizontalScale" | "characterVerticalScale" | "characterSkew" | "characterUnderline" | "characterStrikethru" | "characterNoBreak" | "characterLigatures" | "characterOtfFeatures" | "paragraphLeftIndent" | "paragraphRightIndent" | "paragraphDropCapCharacters" | "paragraphDropCapLines" | "paragraphHyphenation" | "paragraphHyphenationZone" | "paragraphKeepLinesTogether" | "paragraphKeepWithNext" | "paragraphKeepAllLinesTogether" | "paragraphKeepFirstLines" | "paragraphKeepLastLines" | "paragraphStartParagraph" | "paragraphSpanColumnType" | "paragraphSpanSplitColumnCount" | "paragraphSpanColumnMinSpaceBefore" | "paragraphSpanColumnMinSpaceAfter" | "paragraphSplitColumnInsideGutter" | "paragraphSplitColumnOutsideGutter" | "paragraphRuleAbove" | "paragraphRuleBelow" | "paragraphTabStops" | "paragraphListType" | "paragraphBulletCharacter" | "paragraphNumberingFormat" | "paragraphBulletsTextAfter" | "paragraphNumberingExpression" | "paragraphNumberingStartAt" | "paragraphNumberingContinue" | "paragraphNumberingLevel" | "paragraphNumberingApplyRestartPolicy" | "paragraphBulletsCharacterStyle" | "paragraphNumberingCharacterStyle" | "paragraphComposer" | "paragraphAutoLeading" | "paragraphSingleWordJustification" | "paragraphLastLineIndent" | "paragraphBalanceRaggedLines" | "textFrameColumnCount" | "textFrameColumnGutter" | "textFrameColumnBalance" | "textFrameVerticalJustification" | "textFrameAutoSizing" | "textFrameFirstBaseline" | "textWrapInvert" | "frameFittingReferencePoint" | "frameAutoFit" | "frameStrokeType" | "frameStrokeJoin" | "frameStrokeMiterLimit" | "frameStrokeAlignment" | "frameStrokeGapColor" | "frameStrokeGapTint" | "frameStrokeDashArray" | "frameCornerOptionTopLeft" | "frameCornerOptionTopRight" | "frameCornerOptionBottomLeft" | "frameCornerOptionBottomRight" | "frameCornerRadiusTopLeft" | "frameCornerRadiusTopRight" | "frameCornerRadiusBottomLeft" | "frameCornerRadiusBottomRight" | "frameRotationAngle" | "frameScaleX" | "frameScaleY" | "frameFlipH" | "frameFlipV" | "frameOverprintFill" | "frameOverprintStroke" | "frameInnerShadowEnabled" | "frameInnerShadowBlendMode" | "frameInnerShadowColor" | "frameInnerShadowOpacity" | "frameInnerShadowAngle" | "frameInnerShadowDistance" | "frameInnerShadowSize" | "frameInnerShadowChoke" | "frameInnerShadowNoise" | "frameOuterGlowEnabled" | "frameOuterGlowBlendMode" | "frameOuterGlowColor" | "frameOuterGlowOpacity" | "frameOuterGlowSpread" | "frameOuterGlowSize" | "frameOuterGlowNoise" | "frameInnerGlowEnabled" | "frameInnerGlowBlendMode" | "frameInnerGlowColor" | "frameInnerGlowOpacity" | "frameInnerGlowChoke" | "frameInnerGlowSize" | "frameInnerGlowSource" | "frameInnerGlowNoise" | "frameBevelEnabled" | "frameBevelStyle" | "frameBevelTechnique" | "frameBevelDepth" | "frameBevelDirection" | "frameBevelSize" | "frameBevelSoften" | "frameBevelAngle" | "frameBevelAltitude" | "frameBevelHighlightColor" | "frameBevelShadowColor" | "frameBevelHighlightOpacity" | "frameBevelShadowOpacity" | "frameSatinEnabled" | "frameSatinBlendMode" | "frameSatinColor" | "frameSatinOpacity" | "frameSatinAngle" | "frameSatinDistance" | "frameSatinSize" | "frameSatinInvert" | "frameFeatherEnabled" | "frameFeatherWidth" | "frameFeatherCornerType" | "frameFeatherNoise" | "frameFeatherChoke" | "frameDirectionalFeatherEnabled" | "frameDirectionalFeatherLeftWidth" | "frameDirectionalFeatherRightWidth" | "frameDirectionalFeatherTopWidth" | "frameDirectionalFeatherBottomWidth" | "frameDirectionalFeatherAngle" | "frameDirectionalFeatherNoise" | "frameDirectionalFeatherChoke" | "frameBlendMode" | "nextTextFrame" | "previousTextFrame" | "cellFillColor" | "cellFillTint" | "cellInsetTop" | "cellInsetLeft" | "cellInsetBottom" | "cellInsetRight" | "cellVerticalJustification" | "cellTopEdgeStrokeColor" | "cellTopEdgeStrokeWeight" | "cellTopEdgeStrokeTint" | "cellBottomEdgeStrokeColor" | "cellBottomEdgeStrokeWeight" | "cellBottomEdgeStrokeTint" | "cellLeftEdgeStrokeColor" | "cellLeftEdgeStrokeWeight" | "cellLeftEdgeStrokeTint" | "cellRightEdgeStrokeColor" | "cellRightEdgeStrokeWeight" | "cellRightEdgeStrokeTint" | "tableRowCount" | "tableColumnCount" | "pluginMetadata" | "anchoredPosition" | "anchorPoint" | "anchoredXOffset" | "anchoredYOffset" | "anchoredHorizontalReference" | "anchoredVerticalReference" | "anchoredHorizontalAlignment" | "anchoredVerticalAlignment" | "anchoredSpineRelative" | "anchoredLockPosition" | "elementVisible" | "elementLocked" | "frameStrokeStartArrowhead" | "frameStrokeEndArrowhead" | "pageMarginTop" | "pageMarginBottom" | "pageMarginLeft" | "pageMarginRight" | "pageColumnCount" | "pageColumnGutter" | "documentBleedTop" | "documentBleedBottom" | "documentBleedInsideOrLeft" | "documentBleedOutsideOrRight" | "documentSlugTop" | "documentSlugBottom" | "documentSlugInsideOrLeft" | "documentSlugRightOrOutside" | "textVariableName" | "textVariableType" | "textVariableContents" | "textVariableTextBefore" | "textVariableTextAfter" | "textVariableDateFormat" | "objectStyleStrokeTint" | "objectStyleCornerRadius" | "objectStyleCornerOption" | "cellStyleRotationAngle" | "tableStyleHeaderRegionCellStyle" | "tableStyleBodyRegionCellStyle" | "tableStyleFooterRegionCellStyle" | "tableStyleLeftColumnRegionCellStyle" | "tableStyleRightColumnRegionCellStyle" | "tableStyleTopBorderStrokeColor" | "tableStyleTopBorderStrokeWeight" | "tableStyleBottomBorderStrokeColor" | "tableStyleBottomBorderStrokeWeight" | "tableStyleLeftBorderStrokeColor" | "tableStyleLeftBorderStrokeWeight" | "tableStyleRightBorderStrokeColor" | "tableStyleRightBorderStrokeWeight" | "tableStyleAlternatingFills" | "tableStyleStartRowFillColor" | "tableStyleStartRowFillCount" | "tableStyleStartRowFillTint" | "tableStyleEndRowFillColor" | "tableStyleEndRowFillCount" | "tableStyleEndRowFillTint" | "itemName" | "frameFillOpacity" | "frameFillBlendMode" | "frameStrokeOpacity" | "frameStrokeBlendMode" | "frameContentOpacity" | "frameContentBlendMode" | "groupIsolateBlending" | "groupKnockout" | "frameDropShadowBlendMode" | "frameDropShadowSpread" | "frameDropShadowNoise" | "frameDropShadowKnockedOut" | "frameDropShadowUseGlobalLight" | "documentGlobalLightAngle" | "documentGlobalLightAltitude";
2298
2303
 
2299
2304
  /**
2300
2305
  * Typed worker-side error for non-load operations. Mutations,
@@ -3492,8 +3497,11 @@ export interface InitOutput {
3492
3497
  readonly gestureSabBytes: () => number;
3493
3498
  readonly gestureSabLayout: () => any;
3494
3499
  readonly on_start: () => void;
3495
- readonly qcms_enable_iccv4: () => void;
3500
+ readonly lut_inverse_interp16: (a: number, b: number, c: number) => number;
3496
3501
  readonly qcms_profile_precache_output_transform: (a: number) => void;
3502
+ readonly lut_interp_linear16: (a: number, b: number, c: number) => number;
3503
+ readonly qcms_enable_iccv4: () => void;
3504
+ readonly qcms_profile_is_bogus: (a: number) => number;
3497
3505
  readonly qcms_transform_data_bgra_out_lut: (a: number, b: number, c: number, d: number) => void;
3498
3506
  readonly qcms_transform_data_bgra_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
3499
3507
  readonly qcms_transform_data_rgb_out_lut: (a: number, b: number, c: number, d: number) => void;
@@ -3501,13 +3509,10 @@ export interface InitOutput {
3501
3509
  readonly qcms_transform_data_rgba_out_lut: (a: number, b: number, c: number, d: number) => void;
3502
3510
  readonly qcms_transform_data_rgba_out_lut_precache: (a: number, b: number, c: number, d: number) => void;
3503
3511
  readonly qcms_transform_release: (a: number) => void;
3504
- readonly qcms_profile_is_bogus: (a: number) => number;
3505
3512
  readonly qcms_white_point_sRGB: (a: number) => void;
3506
- readonly lut_inverse_interp16: (a: number, b: number, c: number) => number;
3507
- readonly lut_interp_linear16: (a: number, b: number, c: number) => number;
3508
- readonly wasm_bindgen__convert__closures_____invoke__h1697a25be679c0e2: (a: number, b: number, c: any, d: any) => void;
3509
- readonly wasm_bindgen__convert__closures_____invoke__h78ff2cea7266d1aa: (a: number, b: number, c: any) => [number, number];
3510
- readonly wasm_bindgen__convert__closures_____invoke__h90756ddb99d2201d: (a: number, b: number, c: any) => void;
3513
+ readonly wasm_bindgen__convert__closures_____invoke__h1eb86c6b8e077e31: (a: number, b: number, c: any, d: any) => void;
3514
+ readonly wasm_bindgen__convert__closures_____invoke__h93a73a71cbc67a77: (a: number, b: number, c: any) => [number, number];
3515
+ readonly wasm_bindgen__convert__closures_____invoke__h680c87c522970cf8: (a: number, b: number, c: any) => void;
3511
3516
  readonly __wbindgen_malloc: (a: number, b: number) => number;
3512
3517
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
3513
3518
  readonly __wbindgen_exn_store: (a: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paged-media/plugin-api",
3
- "version": "0.2.54-canary.0",
3
+ "version": "0.2.56-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",