@formsort/custom-question-api
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,1 +0,6 @@ | ||
export declare const Greeter: (name: string) => string; | ||
export declare const setQuestionSize: (width?: number | undefined, height?: number | undefined) => void; | ||
export declare const getAnswerValue: () => Promise<unknown>; | ||
export declare const getAnswers: () => Promise<unknown>; | ||
export declare const getResponderUuid: () => Promise<unknown>; | ||
export declare const clearAnswerValue: () => void; | ||
export declare const setAnswerValue: (value: string | number | boolean) => void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Greeter = function (name) { return "Hello " + name; }; | ||
var constants_1 = require("@formsort/constants"); | ||
var utils_1 = require("./utils"); | ||
exports.setQuestionSize = function (width, height) { | ||
utils_1.sendMessageToWindowParent(constants_1.SET_QUESTION_SIZE_MSG, { | ||
width: width, | ||
height: height, | ||
}); | ||
}; | ||
exports.getAnswerValue = function () { | ||
return utils_1.getValueFromWindowParent(constants_1.REQUEST_ANSWER_VALUE_MSG, constants_1.SET_ANSWER_VALUE_MSG); | ||
}; | ||
exports.getAnswers = function () { | ||
return utils_1.getValueFromWindowParent(constants_1.REQUEST_ANSWERS_MSG, constants_1.SET_ANSWERS_MSG); | ||
}; | ||
exports.getResponderUuid = function () { | ||
return utils_1.getValueFromWindowParent(constants_1.REQUEST_RESPONDER_UUID_MSG, constants_1.SET_RESPONDER_UUID_MSG); | ||
}; | ||
exports.clearAnswerValue = function () { | ||
utils_1.sendMessageToWindowParent(constants_1.CLEAR_ANSWER_VALUE_MSG); | ||
}; | ||
exports.setAnswerValue = function (value) { | ||
utils_1.sendMessageToWindowParent(constants_1.SET_ANSWER_VALUE_MSG, value); | ||
}; |
{ | ||
"name": "@formsort/custom-question-api", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Helpers for implementing custom questions in Formsort", | ||
@@ -10,2 +10,3 @@ "main": "index.js", | ||
"lint": "tslint -p tsconfig.json", | ||
"prepare": "npm run build", | ||
"prepublishOnly": "npm run lint", | ||
@@ -12,0 +13,0 @@ "preversion": "npm run lint", |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
10345
9
103
0