@contrail/extensions-sdk 1.0.30 → 1.0.31

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.
@@ -72,6 +72,15 @@ export interface ComposeContentRequest {
72
72
  /** Defaults to transparent, which is usually what a composed pack shot wants. */
73
73
  backgroundColor?: string;
74
74
  fileName?: string;
75
+ /**
76
+ * Also make the composition the holder's primary viewable, so it is the image the entity shows
77
+ * everywhere - grids, cards, choosers.
78
+ *
79
+ * Off by default: composing an image and deciding it is the entity's main picture are separate
80
+ * intentions, and a caller adding one image among several should not silently repoint the item.
81
+ * A newly created set item, by contrast, has no image at all and wants this.
82
+ */
83
+ assignAsPrimaryViewable?: boolean;
75
84
  }
76
85
  export interface ComposeContentResult {
77
86
  contentId: string;
@@ -81,6 +90,8 @@ export interface ComposeContentResult {
81
90
  width: number;
82
91
  height: number;
83
92
  };
93
+ /** Whether the holder was repointed at this content, when it was asked for. */
94
+ assignedAsPrimaryViewable?: boolean;
84
95
  }
85
96
  export interface BoardDocumentElement extends DocumentElement {
86
97
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/extensions-sdk",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Client library for interfacing with VibeIQ's services and apps from an extension.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",