@paged-media/plugin-sdk 0.2.57-canary.0 → 0.2.58-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.
Files changed (2) hide show
  1. package/dist/index.js +363 -12
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -396,24 +396,31 @@ async function planCoreDelete(a, swatchId, pageId, protocol) {
396
396
  // src/document-change.ts
397
397
  function documentChangeOf(msg) {
398
398
  switch (msg.kind) {
399
- case "mutationApplied": {
400
- const reflow = msg.payload.reflow;
399
+ case "mutationApplied":
400
+ case "gestureCommitted":
401
401
  return {
402
402
  kind: msg.kind,
403
403
  pageIds: [...msg.payload.pageIds ?? []],
404
- ...reflow ? { reflow: { frameId: reflow.frameId, contentBox: reflow.contentBox } } : {}
404
+ ...reflowOf(msg.payload.reflow)
405
405
  };
406
- }
407
406
  case "undoApplied":
408
407
  case "redoApplied":
409
- case "gestureCommitted":
410
408
  return { kind: msg.kind, pageIds: [...msg.payload.pageIds ?? []] };
411
- case "scriptResult":
409
+ case "scriptResult": {
410
+ const { writes, pageIds } = msg.payload;
411
+ if (writes === 0) return null;
412
+ if (typeof writes === "number" && Array.isArray(pageIds)) {
413
+ return { kind: msg.kind, pageIds: [...pageIds] };
414
+ }
412
415
  return { kind: msg.kind, pageIds: [], pagesUnknown: true };
416
+ }
413
417
  default:
414
418
  return null;
415
419
  }
416
420
  }
421
+ function reflowOf(reflow) {
422
+ return reflow ? { reflow: { frameId: reflow.frameId, contentBox: reflow.contentBox } } : {};
423
+ }
417
424
 
418
425
  // ../plugin-api/src/catalog.json
419
426
  var pathAliases = [
@@ -6925,6 +6932,320 @@ var propertySchemas = [
6925
6932
  }
6926
6933
  ]
6927
6934
  },
6935
+ {
6936
+ addressKind: "doc",
6937
+ path: "documentFootnoteNumberingStyle",
6938
+ type: {
6939
+ kind: "enum",
6940
+ members: [
6941
+ "Arabic",
6942
+ "UpperRoman",
6943
+ "LowerRoman",
6944
+ "UpperLetters",
6945
+ "LowerLetters",
6946
+ "Asterisks",
6947
+ "Kanji",
6948
+ "ArabicAlifBaTah",
6949
+ "ArabicAbjad",
6950
+ "HebrewBiblical",
6951
+ "HebrewNonStandard",
6952
+ "SingleLeadingZeros",
6953
+ "DoubleLeadingZeros",
6954
+ "TripleLeadingZeros"
6955
+ ]
6956
+ },
6957
+ wire: "text",
6958
+ nullable: true,
6959
+ default: "Arabic",
6960
+ access: "readWrite",
6961
+ virtual: {
6962
+ op: "setProperty",
6963
+ field: "value"
6964
+ },
6965
+ bindable: true,
6966
+ idml: [
6967
+ {
6968
+ element: "FootnoteOption",
6969
+ attribute: "FootnoteNumberingStyle",
6970
+ kind: "properties-child"
6971
+ }
6972
+ ]
6973
+ },
6974
+ {
6975
+ addressKind: "doc",
6976
+ path: "documentFootnoteStartAt",
6977
+ type: {
6978
+ kind: "number",
6979
+ unit: "count"
6980
+ },
6981
+ wire: "length",
6982
+ nullable: true,
6983
+ range: {
6984
+ min: 1
6985
+ },
6986
+ default: 1,
6987
+ access: "readWrite",
6988
+ virtual: {
6989
+ op: "setProperty",
6990
+ field: "value"
6991
+ },
6992
+ bindable: true,
6993
+ idml: [
6994
+ {
6995
+ element: "FootnoteOption",
6996
+ attribute: "StartAt",
6997
+ kind: "attr"
6998
+ }
6999
+ ]
7000
+ },
7001
+ {
7002
+ addressKind: "doc",
7003
+ path: "documentFootnoteRestartNumbering",
7004
+ type: {
7005
+ kind: "enum",
7006
+ members: [
7007
+ "DontRestart",
7008
+ "PageRestart",
7009
+ "SpreadRestart",
7010
+ "SectionRestart"
7011
+ ]
7012
+ },
7013
+ wire: "text",
7014
+ nullable: true,
7015
+ default: "DontRestart",
7016
+ access: "readWrite",
7017
+ virtual: {
7018
+ op: "setProperty",
7019
+ field: "value"
7020
+ },
7021
+ bindable: true,
7022
+ idml: [
7023
+ {
7024
+ element: "FootnoteOption",
7025
+ attribute: "RestartNumbering",
7026
+ kind: "properties-child"
7027
+ }
7028
+ ]
7029
+ },
7030
+ {
7031
+ addressKind: "doc",
7032
+ path: "documentFootnotePrefix",
7033
+ type: {
7034
+ kind: "text"
7035
+ },
7036
+ wire: "text",
7037
+ nullable: true,
7038
+ access: "readWrite",
7039
+ virtual: {
7040
+ op: "setProperty",
7041
+ field: "value"
7042
+ },
7043
+ bindable: true,
7044
+ idml: [
7045
+ {
7046
+ element: "FootnoteOption",
7047
+ attribute: "Prefix",
7048
+ kind: "attr"
7049
+ }
7050
+ ]
7051
+ },
7052
+ {
7053
+ addressKind: "doc",
7054
+ path: "documentFootnoteSuffix",
7055
+ type: {
7056
+ kind: "text"
7057
+ },
7058
+ wire: "text",
7059
+ nullable: true,
7060
+ access: "readWrite",
7061
+ virtual: {
7062
+ op: "setProperty",
7063
+ field: "value"
7064
+ },
7065
+ bindable: true,
7066
+ idml: [
7067
+ {
7068
+ element: "FootnoteOption",
7069
+ attribute: "Suffix",
7070
+ kind: "attr"
7071
+ }
7072
+ ]
7073
+ },
7074
+ {
7075
+ addressKind: "doc",
7076
+ path: "documentFootnoteShowPrefixSuffix",
7077
+ type: {
7078
+ kind: "enum",
7079
+ members: [
7080
+ "NoPrefixSuffix",
7081
+ "PrefixSuffixReference",
7082
+ "PrefixSuffixText",
7083
+ "PrefixSuffixBoth"
7084
+ ]
7085
+ },
7086
+ wire: "text",
7087
+ nullable: true,
7088
+ default: "NoPrefixSuffix",
7089
+ access: "readWrite",
7090
+ virtual: {
7091
+ op: "setProperty",
7092
+ field: "value"
7093
+ },
7094
+ bindable: true,
7095
+ idml: [
7096
+ {
7097
+ element: "FootnoteOption",
7098
+ attribute: "ShowPrefixSuffix",
7099
+ kind: "properties-child"
7100
+ }
7101
+ ]
7102
+ },
7103
+ {
7104
+ addressKind: "doc",
7105
+ path: "documentFootnoteEnableStraddling",
7106
+ type: {
7107
+ kind: "bool"
7108
+ },
7109
+ wire: "bool",
7110
+ nullable: false,
7111
+ default: false,
7112
+ access: "readWrite",
7113
+ virtual: {
7114
+ op: "setProperty",
7115
+ field: "value"
7116
+ },
7117
+ bindable: true,
7118
+ idml: [
7119
+ {
7120
+ element: "FootnoteOption",
7121
+ attribute: "EnableStraddling",
7122
+ kind: "attr"
7123
+ }
7124
+ ]
7125
+ },
7126
+ {
7127
+ addressKind: "doc",
7128
+ path: "documentFootnoteNoSplitting",
7129
+ type: {
7130
+ kind: "bool"
7131
+ },
7132
+ wire: "bool",
7133
+ nullable: false,
7134
+ default: false,
7135
+ access: "readWrite",
7136
+ virtual: {
7137
+ op: "setProperty",
7138
+ field: "value"
7139
+ },
7140
+ bindable: true,
7141
+ idml: [
7142
+ {
7143
+ element: "FootnoteOption",
7144
+ attribute: "NoSplitting",
7145
+ kind: "attr"
7146
+ }
7147
+ ]
7148
+ },
7149
+ {
7150
+ addressKind: "doc",
7151
+ path: "documentFootnoteSpaceBetween",
7152
+ type: {
7153
+ kind: "length",
7154
+ unit: "pt"
7155
+ },
7156
+ wire: "length",
7157
+ nullable: true,
7158
+ range: {
7159
+ min: 0
7160
+ },
7161
+ default: 0,
7162
+ access: "readWrite",
7163
+ virtual: {
7164
+ op: "setProperty",
7165
+ field: "value"
7166
+ },
7167
+ bindable: true,
7168
+ idml: [
7169
+ {
7170
+ element: "FootnoteOption",
7171
+ attribute: "SpaceBetween",
7172
+ kind: "attr"
7173
+ }
7174
+ ]
7175
+ },
7176
+ {
7177
+ addressKind: "doc",
7178
+ path: "documentFootnoteSpacer",
7179
+ type: {
7180
+ kind: "length",
7181
+ unit: "pt"
7182
+ },
7183
+ wire: "length",
7184
+ nullable: true,
7185
+ range: {
7186
+ min: 0
7187
+ },
7188
+ default: 0,
7189
+ access: "readWrite",
7190
+ virtual: {
7191
+ op: "setProperty",
7192
+ field: "value"
7193
+ },
7194
+ bindable: true,
7195
+ idml: [
7196
+ {
7197
+ element: "FootnoteOption",
7198
+ attribute: "Spacer",
7199
+ kind: "attr"
7200
+ }
7201
+ ]
7202
+ },
7203
+ {
7204
+ addressKind: "doc",
7205
+ path: "documentFootnoteRuleOn",
7206
+ type: {
7207
+ kind: "bool"
7208
+ },
7209
+ wire: "bool",
7210
+ nullable: false,
7211
+ default: true,
7212
+ access: "readWrite",
7213
+ virtual: {
7214
+ op: "setProperty",
7215
+ field: "value"
7216
+ },
7217
+ bindable: true,
7218
+ idml: [
7219
+ {
7220
+ element: "FootnoteOption",
7221
+ attribute: "RuleOn",
7222
+ kind: "attr"
7223
+ }
7224
+ ]
7225
+ },
7226
+ {
7227
+ addressKind: "doc",
7228
+ path: "documentFootnoteContinuingRuleOn",
7229
+ type: {
7230
+ kind: "bool"
7231
+ },
7232
+ wire: "bool",
7233
+ nullable: false,
7234
+ default: true,
7235
+ access: "readWrite",
7236
+ virtual: {
7237
+ op: "setProperty",
7238
+ field: "value"
7239
+ },
7240
+ bindable: true,
7241
+ idml: [
7242
+ {
7243
+ element: "FootnoteOption",
7244
+ attribute: "ContinuingRuleOn",
7245
+ kind: "attr"
7246
+ }
7247
+ ]
7248
+ },
6928
7249
  {
6929
7250
  addressKind: "textVariable",
6930
7251
  path: "textVariableName",
@@ -11774,6 +12095,12 @@ var CORE_PATHS = {
11774
12095
  cellRightEdgeStrokeTint: { scope: "cell", wire: "length", type: PCT },
11775
12096
  tableRowCount: { scope: "table", wire: "length", type: { kind: "number", integer: true }, inferred: true, readOnly: true },
11776
12097
  tableColumnCount: { scope: "table", wire: "length", type: { kind: "number", integer: true }, inferred: true, readOnly: true },
12098
+ // Core v0.71.13 (ADR 159): a table's header and footer bands, read-only and
12099
+ // unadvertised like the two counts above (the bands change through
12100
+ // insertHeaderRow / removeHeaderRow and their footer twins). An older
12101
+ // engine answers "no such readable path".
12102
+ tableHeaderRowCount: { scope: "table", wire: "length", type: { kind: "number", integer: true }, inferred: true, readOnly: true },
12103
+ tableFooterRowCount: { scope: "table", wire: "length", type: { kind: "number", integer: true }, inferred: true, readOnly: true },
11777
12104
  pluginMetadata: OP,
11778
12105
  anchoredPosition: { scope: "frame", wire: "text", type: { kind: "text" } },
11779
12106
  anchorPoint: { scope: "frame", wire: "text", type: { kind: "text" } },
@@ -11850,7 +12177,21 @@ var CORE_PATHS = {
11850
12177
  tableStyleEndRowFillColor: V71,
11851
12178
  tableStyleEndRowFillCount: V71,
11852
12179
  tableStyleEndRowFillTint: V71,
11853
- itemName: V71
12180
+ itemName: V71,
12181
+ // Core v0.71.13 (ADR 162): the document's footnote options, on the `doc`
12182
+ // address; the catalog types them.
12183
+ documentFootnoteNumberingStyle: V71,
12184
+ documentFootnoteStartAt: V71,
12185
+ documentFootnoteRestartNumbering: V71,
12186
+ documentFootnotePrefix: V71,
12187
+ documentFootnoteSuffix: V71,
12188
+ documentFootnoteShowPrefixSuffix: V71,
12189
+ documentFootnoteEnableStraddling: V71,
12190
+ documentFootnoteNoSplitting: V71,
12191
+ documentFootnoteSpaceBetween: V71,
12192
+ documentFootnoteSpacer: V71,
12193
+ documentFootnoteRuleOn: V71,
12194
+ documentFootnoteContinuingRuleOn: V71
11854
12195
  };
11855
12196
  function corePathRange(path) {
11856
12197
  if (path === "frameStrokeMiterLimit") return { min: 1, max: 500 };
@@ -11924,9 +12265,7 @@ function sdkKindsOf(row) {
11924
12265
  }
11925
12266
  var CORE_CATALOG_ROWS = propertySchemas;
11926
12267
  var schema71 = null;
11927
- var CORE_UNSTORED_ROWS = /* @__PURE__ */ new Map([
11928
- ["cell|cellFillTint", "Per-cell fill tint is not stored by the engine (protocol 71): reads answer null, writes are refused here."]
11929
- ]);
12268
+ var CORE_UNSTORED_ROWS = /* @__PURE__ */ new Map([]);
11930
12269
  var CATALOG_ALIASES = new Map(
11931
12270
  pathAliases.map((a) => [a.name, a.wire])
11932
12271
  );
@@ -13319,6 +13658,11 @@ var CORE_WIRE_OPS = {
13319
13658
  "insertField": { args: { "kind": "struct", "fields": { "storyId": { "kind": "ref", "to": "story" }, "offset": { "kind": "number" }, "field": { "kind": "struct", "fields": {}, "open": true, "shape": "FieldKind" }, "contentOffset": { "kind": "number", "optional": true } } }, nullFill: [] },
13320
13659
  "insertAnchoredFrame": { args: { "kind": "struct", "fields": { "storyId": { "kind": "ref", "to": "story" }, "offset": { "kind": "number" }, "width": { "kind": "number" }, "height": { "kind": "number" }, "imageUri": { "kind": "text", "optional": true }, "paragraph": { "kind": "number", "optional": true } } }, nullFill: [] },
13321
13660
  "insertHyperlink": { args: { "kind": "struct", "fields": { "storyId": { "kind": "ref", "to": "story" }, "start": { "kind": "number" }, "end": { "kind": "number" }, "url": { "kind": "text" }, "page": { "kind": "ref", "to": "page", "optional": true } } }, nullFill: [] },
13661
+ "insertFootnote": { args: { "kind": "struct", "fields": { "storyId": { "kind": "ref", "to": "story" }, "offset": { "kind": "number" }, "paragraph": { "kind": "number", "optional": true }, "text": { "kind": "text", "optional": true } } }, nullFill: [] },
13662
+ "deleteFootnote": { args: { "kind": "struct", "fields": { "storyId": { "kind": "ref", "to": "story" }, "footnoteId": { "kind": "text" } } }, nullFill: [] },
13663
+ "deleteHyperlink": { args: { "kind": "struct", "fields": { "hyperlinkId": { "kind": "text" } } }, nullFill: [] },
13664
+ "editHyperlink": { args: { "kind": "struct", "fields": { "hyperlinkId": { "kind": "text" }, "name": { "kind": "text", "optional": true }, "url": { "kind": "text", "optional": true }, "page": { "kind": "ref", "to": "page", "optional": true } } }, nullFill: [] },
13665
+ "updateTableOfContents": { args: { "kind": "struct", "fields": { "storyId": { "kind": "ref", "to": "story" } } }, nullFill: [] },
13322
13666
  "setFieldValue": { args: { "kind": "struct", "fields": { "storyId": { "kind": "ref", "to": "story" }, "offset": { "kind": "number" }, "value": { "kind": "text", "optional": true } } }, nullFill: [] },
13323
13667
  "placeImage": { args: { "kind": "struct", "fields": { "elementId": { "kind": "ref", "to": "frame" }, "uri": { "kind": "text" }, "fit": { "kind": "text", "optional": true } } }, nullFill: [] },
13324
13668
  "replaceImageBytes": { args: { "kind": "struct", "fields": { "elementId": { "kind": "ref", "to": "frame" }, "bytes": { "kind": "list", "of": { "kind": "number" }, "optional": true } } }, nullFill: [] },
@@ -13373,7 +13717,7 @@ var CORE_WIRE_OPS = {
13373
13717
  "layerMove": { args: { "kind": "struct", "fields": { "layerId": { "kind": "ref", "to": "layer" }, "newIndex": { "kind": "number" } } }, nullFill: [] },
13374
13718
  "layerInsert": { args: { "kind": "struct", "fields": { "position": { "kind": "number" }, "name": { "kind": "text" } } }, nullFill: [] },
13375
13719
  "layerRemove": { args: { "kind": "struct", "fields": { "layerId": { "kind": "ref", "to": "layer" } } }, nullFill: [] },
13376
- "setElementProperty": { args: { "kind": "struct", "fields": { "elementId": { "kind": "ref", "to": "item" }, "path": { "kind": "enum", "members": ["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"] }, "value": { "kind": "struct", "fields": {}, "open": true, "shape": "Value" } } }, nullFill: [] },
13720
+ "setElementProperty": { args: { "kind": "struct", "fields": { "elementId": { "kind": "ref", "to": "item" }, "path": { "kind": "enum", "members": ["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", "tableHeaderRowCount", "tableFooterRowCount", "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", "documentFootnoteNumberingStyle", "documentFootnoteStartAt", "documentFootnoteRestartNumbering", "documentFootnotePrefix", "documentFootnoteSuffix", "documentFootnoteShowPrefixSuffix", "documentFootnoteEnableStraddling", "documentFootnoteNoSplitting", "documentFootnoteSpaceBetween", "documentFootnoteSpacer", "documentFootnoteRuleOn", "documentFootnoteContinuingRuleOn"] }, "value": { "kind": "struct", "fields": {}, "open": true, "shape": "Value" } } }, nullFill: [] },
13377
13721
  "set": { args: { "kind": "struct", "fields": { "address": { "kind": "text" }, "path": { "kind": "text" }, "value": { "kind": "struct", "fields": {}, "open": true, "shape": "Value" } } }, nullFill: [] },
13378
13722
  "pathfinderBoolean": { args: { "kind": "struct", "fields": { "kept": { "kind": "ref", "to": "item" }, "others": { "kind": "list", "of": { "kind": "ref", "to": "item" } }, "kind": { "kind": "enum", "members": ["union", "intersect", "subtract", "exclude"] } } }, nullFill: [] },
13379
13723
  "pathfinderDivide": { args: { "kind": "struct", "fields": { "elementIds": { "kind": "list", "of": { "kind": "ref", "to": "item" } } } }, nullFill: [] },
@@ -13410,7 +13754,7 @@ var CORE_WIRE_OPS = {
13410
13754
  "createTableStyle": { args: { "kind": "struct", "fields": { "selfId": { "kind": "text", "optional": true }, "name": { "kind": "text", "optional": true }, "basedOn": { "kind": "text", "optional": true } } }, nullFill: [] },
13411
13755
  "renameTableStyle": { args: { "kind": "struct", "fields": { "styleId": { "kind": "ref", "to": "style" }, "name": { "kind": "text" } } }, nullFill: [] },
13412
13756
  "deleteTableStyle": { args: { "kind": "struct", "fields": { "styleId": { "kind": "ref", "to": "style" } } }, nullFill: [] },
13413
- "setStyleProperty": { args: { "kind": "struct", "fields": { "collection": { "kind": "enum", "members": ["paragraph", "character", "object", "cell", "table"] }, "styleId": { "kind": "ref", "to": "style" }, "path": { "kind": "enum", "members": ["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"] }, "value": { "kind": "struct", "fields": {}, "open": true, "shape": "Value" } } }, nullFill: [] },
13757
+ "setStyleProperty": { args: { "kind": "struct", "fields": { "collection": { "kind": "enum", "members": ["paragraph", "character", "object", "cell", "table"] }, "styleId": { "kind": "ref", "to": "style" }, "path": { "kind": "enum", "members": ["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", "tableHeaderRowCount", "tableFooterRowCount", "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", "documentFootnoteNumberingStyle", "documentFootnoteStartAt", "documentFootnoteRestartNumbering", "documentFootnotePrefix", "documentFootnoteSuffix", "documentFootnoteShowPrefixSuffix", "documentFootnoteEnableStraddling", "documentFootnoteNoSplitting", "documentFootnoteSpaceBetween", "documentFootnoteSpacer", "documentFootnoteRuleOn", "documentFootnoteContinuingRuleOn"] }, "value": { "kind": "struct", "fields": {}, "open": true, "shape": "Value" } } }, nullFill: [] },
13414
13758
  "insertOval": { args: { "kind": "struct", "fields": { "pageId": { "kind": "ref", "to": "page" }, "bounds": { "kind": "bounds" } } }, nullFill: [] },
13415
13759
  "insertGuide": { args: { "kind": "struct", "fields": { "spreadId": { "kind": "ref", "to": "spread" }, "orientation": { "kind": "enum", "members": ["vertical", "horizontal"] }, "position": { "kind": "number" }, "pageIndex": { "kind": "number", "optional": true } } }, nullFill: [] },
13416
13760
  "moveGuide": { args: { "kind": "struct", "fields": { "guideId": { "kind": "ref", "to": "guide" }, "position": { "kind": "number" } } }, nullFill: [] },
@@ -14610,6 +14954,13 @@ var HOST_FEATURES = [
14610
14954
  // editor's client hands every reply to its subscribers, and the headless
14611
14955
  // harness does the same for these.
14612
14956
  "document.onDidChange@2",
14957
+ // Core ADR 159 — the event follows what the reply says: a gesture that
14958
+ // resized one frame carries its `reflow`, a script that only read is no
14959
+ // change (`writes: 0`), and a script's `pageIds` come from the reply.
14960
+ // STATIC like @2: the flag says this SDK reads the fields; an engine older
14961
+ // than 0.71.13 does not send them, and the event then falls back to @2's
14962
+ // (no gesture reflow; every script a change with `pagesUnknown`).
14963
+ "document.onDidChange@3",
14613
14964
  // W-22 — the document-opened event. STATIC: it is the client's
14614
14965
  // `documentLoaded` broadcast filtered, and every host posts that on
14615
14966
  // every load (File ▸ Open, File ▸ New, a native-document open).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paged-media/plugin-sdk",
3
- "version": "0.2.57-canary.0",
3
+ "version": "0.2.58-canary.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@paged-media/plugin-api": "0.2.57-canary.0"
14
+ "@paged-media/plugin-api": "0.2.58-canary.0"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": "^18.3.0"
@@ -22,7 +22,7 @@
22
22
  }
23
23
  },
24
24
  "devDependencies": {
25
- "@paged-media/canvas-wasm": "0.71.12",
25
+ "@paged-media/canvas-wasm": "0.71.13",
26
26
  "@types/node": "20.19.39",
27
27
  "@types/react": "^18.3.31",
28
28
  "fast-check": "^4.10.2",