@formsort/custom-question-api
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -6,3 +6,3 @@ "use strict"; | ||
exports.setQuestionSize = function (width, height) { | ||
utils_1.sendMessageToWindowParent(constants_1.SET_QUESTION_SIZE_MSG, { | ||
utils_1.sendMessageToWindowParent(constants_1.CustomQuestionMessage.SET_QUESTION_SIZE_MSG, { | ||
width: width, | ||
@@ -13,15 +13,15 @@ height: height, | ||
exports.getAnswerValue = function () { | ||
return utils_1.getValueFromWindowParent(constants_1.REQUEST_ANSWER_VALUE_MSG, constants_1.SET_ANSWER_VALUE_MSG); | ||
return utils_1.getValueFromWindowParent(constants_1.CustomQuestionMessage.REQUEST_ANSWER_VALUE_MSG, constants_1.CustomQuestionMessage.SET_ANSWER_VALUE_MSG); | ||
}; | ||
exports.getAnswers = function () { | ||
return utils_1.getValueFromWindowParent(constants_1.REQUEST_ANSWERS_MSG, constants_1.SET_ANSWERS_MSG); | ||
return utils_1.getValueFromWindowParent(constants_1.CustomQuestionMessage.REQUEST_ANSWERS_MSG, constants_1.CustomQuestionMessage.SET_ANSWERS_MSG); | ||
}; | ||
exports.getResponderUuid = function () { | ||
return utils_1.getValueFromWindowParent(constants_1.REQUEST_RESPONDER_UUID_MSG, constants_1.SET_RESPONDER_UUID_MSG); | ||
return utils_1.getValueFromWindowParent(constants_1.CustomQuestionMessage.REQUEST_RESPONDER_UUID_MSG, constants_1.CustomQuestionMessage.SET_RESPONDER_UUID_MSG); | ||
}; | ||
exports.clearAnswerValue = function () { | ||
utils_1.sendMessageToWindowParent(constants_1.CLEAR_ANSWER_VALUE_MSG); | ||
utils_1.sendMessageToWindowParent(constants_1.CustomQuestionMessage.CLEAR_ANSWER_VALUE_MSG); | ||
}; | ||
exports.setAnswerValue = function (value) { | ||
utils_1.sendMessageToWindowParent(constants_1.SET_ANSWER_VALUE_MSG, value); | ||
utils_1.sendMessageToWindowParent(constants_1.CustomQuestionMessage.SET_ANSWER_VALUE_MSG, value); | ||
}; |
@@ -18,3 +18,6 @@ "use strict"; | ||
var constants_1 = require("@formsort/constants"); | ||
var EVENTS_TO_EMIT = new Set([constants_1.SET_ANSWERS_MSG, constants_1.SET_ANSWER_VALUE_MSG]); | ||
var EVENTS_TO_EMIT = new Set([ | ||
constants_1.CustomQuestionMessage.SET_ANSWERS_MSG, | ||
constants_1.CustomQuestionMessage.SET_ANSWER_VALUE_MSG, | ||
]); | ||
var WindowMessageEventsEmitter = /** @class */ (function (_super) { | ||
@@ -21,0 +24,0 @@ __extends(WindowMessageEventsEmitter, _super); |
{ | ||
"name": "@formsort/custom-question-api", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Helpers for implementing custom questions in Formsort", | ||
@@ -44,5 +44,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@formsort/constants": "0.0.5", | ||
"@formsort/constants": "0.0.8", | ||
"events": "^3.0.0" | ||
} | ||
} |
10801
111
+ Added@formsort/constants@0.0.8(transitive)
- Removed@formsort/constants@0.0.5(transitive)
Updated@formsort/constants@0.0.8