@contrail/extensions-sdk 1.0.12 → 1.0.13
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 +1 -1
- package/lib/apps/boards.js +2 -2
- package/package.json +1 -1
package/lib/apps/boards.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare class BoardsApp {
|
|
|
24
24
|
static deleteElements(elements: Array<BoardDocumentElement>): void;
|
|
25
25
|
static modifyElements(changeObjects: Array<BoardDocumentElementChanges>): void;
|
|
26
26
|
static getElements(criteria: object): Promise<Array<DocumentElement>>;
|
|
27
|
-
static recolorImages(imageElements: Array<DocumentElement>, hexCode: string): Promise<Array<DocumentElement>>;
|
|
27
|
+
static recolorImages(imageElements: Array<DocumentElement>, hexCode: string, hexMap?: {}): Promise<Array<DocumentElement>>;
|
|
28
28
|
private static validateBoardContext;
|
|
29
29
|
private static validateAndReturnResults;
|
|
30
30
|
}
|
package/lib/apps/boards.js
CHANGED
|
@@ -51,10 +51,10 @@ class BoardsApp {
|
|
|
51
51
|
return this.validateAndReturnResults(results);
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
static recolorImages(imageElements, hexCode) {
|
|
54
|
+
static recolorImages(imageElements, hexCode, hexMap = {}) {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
56
|
BoardsApp.validateBoardContext();
|
|
57
|
-
const results = yield (0, actions_1.getExtensionActions)().sendMessageToHost({ command: BoardCommand.RECOLOR_IMAGES, data: { imageElements, hexCode } });
|
|
57
|
+
const results = yield (0, actions_1.getExtensionActions)().sendMessageToHost({ command: BoardCommand.RECOLOR_IMAGES, data: { imageElements, hexCode, hexMap } });
|
|
58
58
|
return this.validateAndReturnResults(results);
|
|
59
59
|
});
|
|
60
60
|
}
|
package/package.json
CHANGED