@contrail/extensions-sdk 1.0.32 → 1.0.33
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/lib/apps/boards.d.ts +10 -1
- package/package.json +1 -1
package/lib/apps/boards.d.ts
CHANGED
|
@@ -92,7 +92,16 @@ export interface ComposeContentRequest {
|
|
|
92
92
|
* Only meaningful for an `item:` holder.
|
|
93
93
|
*/
|
|
94
94
|
addComponentToBoard?: {
|
|
95
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Put the component just below these elements, sized to match them.
|
|
97
|
+
*
|
|
98
|
+
* Prefer this over `position`: measuring an element is the board's job, not the extension's -
|
|
99
|
+
* a component's rendered box is not simply what its `size` field says, so geometry computed
|
|
100
|
+
* from the launch context lands in the wrong place or, when the fields are absent, nowhere.
|
|
101
|
+
* Pass the ids of the elements the work came from and let the board do the arithmetic.
|
|
102
|
+
*/
|
|
103
|
+
nearElementIds?: Array<string>;
|
|
104
|
+
/** Explicit board coordinates. Ignored when `nearElementIds` resolves to anything. */
|
|
96
105
|
position?: {
|
|
97
106
|
x: number;
|
|
98
107
|
y: number;
|
package/package.json
CHANGED