@outreach/extensibility-sdk
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -67,2 +67,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
var ConfigureMessage_1 = require("./sdk/messages/ConfigureMessage"); | ||
var DecorationUpdateType_1 = require("./sdk/messages/DecorationUpdateType"); | ||
var NavigationMessage_1 = require("./sdk/messages/NavigationMessage"); | ||
@@ -107,3 +108,3 @@ var EnvironmentMessage_1 = require("./sdk/messages/EnvironmentMessage"); | ||
__exportStar(require("./sdk/messages/DecorationMessage"), exports); | ||
__exportStar(require("./sdk/messages/DecorationType"), exports); | ||
__exportStar(require("./sdk/messages/DecorationUpdateType"), exports); | ||
__exportStar(require("./sdk/messages/EnvironmentInfo"), exports); | ||
@@ -227,7 +228,7 @@ __exportStar(require("./sdk/messages/EnvironmentMessage"), exports); | ||
* @param {string} value The new decoration value being requested to be shown by the host | ||
* @param {DecorationType} [type='text'] Type of decoration update (text by default) | ||
* @param {DecorationUpdateType} [type=DecorationUpdateType.TEXT] Type of decoration update (text by default) | ||
* @memberof ExtensibilitySdk | ||
*/ | ||
this.decorate = function (value, type) { | ||
if (type === void 0) { type = 'text'; } | ||
if (type === void 0) { type = DecorationUpdateType_1.DecorationUpdateType.TEXT; } | ||
return __awaiter(_this, void 0, void 0, function () { | ||
@@ -240,4 +241,4 @@ var message; | ||
_a.sent(); | ||
message = new DecorationMessage_1.DecorationMessage(); | ||
message.decorationText = value; | ||
message = new DecorationMessage_1.DecorationUpdateMessage(); | ||
message.value = value; | ||
message.decorationType = type; | ||
@@ -244,0 +245,0 @@ this.sendMessage(message, true); |
@@ -17,17 +17,17 @@ var __extends = (this && this.__extends) || (function () { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DecorationMessage = void 0; | ||
exports.DecorationUpdateMessage = void 0; | ||
var Message_1 = require("./Message"); | ||
var MessageType_1 = require("./MessageType"); | ||
var DecorationMessage = /** @class */ (function (_super) { | ||
__extends(DecorationMessage, _super); | ||
var DecorationUpdateMessage = /** @class */ (function (_super) { | ||
__extends(DecorationUpdateMessage, _super); | ||
/** | ||
*Creates an instance of InitMessage. | ||
* @memberof DecorationMessage | ||
*/ | ||
function DecorationMessage() { | ||
*Creates an instance of InitMessage. | ||
* @memberof DecorationMessage | ||
*/ | ||
function DecorationUpdateMessage() { | ||
return _super.call(this, MessageType_1.MessageType.REQUEST_DECORATION_UPDATE) || this; | ||
} | ||
return DecorationMessage; | ||
return DecorationUpdateMessage; | ||
}(Message_1.Message)); | ||
exports.DecorationMessage = DecorationMessage; | ||
exports.DecorationUpdateMessage = DecorationUpdateMessage; | ||
//# sourceMappingURL=DecorationMessage.js.map |
{ | ||
"name": "@outreach/extensibility-sdk", | ||
"license": "MIT", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "contributors": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
633940
193
11204