@formsort/constants
Advanced tools
Comparing version 0.0.14 to 0.2.3
@@ -11,4 +11,5 @@ declare enum CustomQuestionMessage { | ||
SET_RESPONDER_UUID_MSG = "\u0192_sru", | ||
CLEAR_ANSWER_VALUE_MSG = "\u0192_cav" | ||
CLEAR_ANSWER_VALUE_MSG = "\u0192_cav", | ||
SET_DISABLE_BACK_NAVIGATION_MSG = "\u0192_sdbn" | ||
} | ||
export default CustomQuestionMessage; |
@@ -15,3 +15,4 @@ "use strict"; | ||
CustomQuestionMessage["CLEAR_ANSWER_VALUE_MSG"] = "\u0192_cav"; | ||
CustomQuestionMessage["SET_DISABLE_BACK_NAVIGATION_MSG"] = "\u0192_sdbn"; | ||
})(CustomQuestionMessage || (CustomQuestionMessage = {})); | ||
exports.default = CustomQuestionMessage; |
@@ -5,1 +5,4 @@ export { default as CustomQuestionMessage } from './custom-question-message'; | ||
export { default as AnswerSemanticType } from './semantic-type'; | ||
export * from './flow'; | ||
export * from './core'; | ||
export * from './embed-events'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WebEmbedMessage = exports.AnalyticsEventType = exports.CustomQuestionMessage = void 0; | ||
const tslib_1 = require("tslib"); | ||
var custom_question_message_1 = require("./custom-question-message"); | ||
exports.CustomQuestionMessage = custom_question_message_1.default; | ||
Object.defineProperty(exports, "CustomQuestionMessage", { enumerable: true, get: function () { return tslib_1.__importDefault(custom_question_message_1).default; } }); | ||
var analytics_event_type_1 = require("./analytics-event-type"); | ||
exports.AnalyticsEventType = analytics_event_type_1.default; | ||
Object.defineProperty(exports, "AnalyticsEventType", { enumerable: true, get: function () { return tslib_1.__importDefault(analytics_event_type_1).default; } }); | ||
var web_embed_message_1 = require("./web-embed-message"); | ||
exports.WebEmbedMessage = web_embed_message_1.default; | ||
var semantic_type_1 = require("./semantic-type"); | ||
exports.AnswerSemanticType = semantic_type_1.default; | ||
Object.defineProperty(exports, "WebEmbedMessage", { enumerable: true, get: function () { return tslib_1.__importDefault(web_embed_message_1).default; } }); | ||
tslib_1.__exportStar(require("./flow"), exports); | ||
tslib_1.__exportStar(require("./core"), exports); | ||
tslib_1.__exportStar(require("./embed-events"), exports); |
@@ -1,10 +0,2 @@ | ||
declare enum AnswerSemanticType { | ||
responder_email = "responder_email", | ||
responder_first_name = "responder_first_name", | ||
responder_last_name = "responder_last_name", | ||
responder_marketing_consent = "responder_marketing_consent", | ||
responder_phone = "responder_phone", | ||
responder_dob = "responder_dob", | ||
responder_mailing_address = "responder_mailing_address" | ||
} | ||
declare type AnswerSemanticType = 'responder_email' | 'responder_first_name' | 'responder_last_name' | 'responder_marketing_consent' | 'responder_phone' | 'responder_dob' | 'responder_mailing_address' | 'responder_user_id' | 'responder_other_pii'; | ||
export default AnswerSemanticType; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var AnswerSemanticType; | ||
(function (AnswerSemanticType) { | ||
AnswerSemanticType["responder_email"] = "responder_email"; | ||
AnswerSemanticType["responder_first_name"] = "responder_first_name"; | ||
AnswerSemanticType["responder_last_name"] = "responder_last_name"; | ||
AnswerSemanticType["responder_marketing_consent"] = "responder_marketing_consent"; | ||
AnswerSemanticType["responder_phone"] = "responder_phone"; | ||
AnswerSemanticType["responder_dob"] = "responder_dob"; | ||
AnswerSemanticType["responder_mailing_address"] = "responder_mailing_address"; | ||
})(AnswerSemanticType || (AnswerSemanticType = {})); | ||
exports.default = AnswerSemanticType; |
declare enum WebEmbedMessage { | ||
EMBED_EVENT_MSG = "\u0192_wee", | ||
EMBED_REDIRECT_MSG = "\u0192_wer" | ||
EMBED_REDIRECT_MSG = "\u0192_wer", | ||
EMBED_RESIZE_MSG = "\u0192_wes", | ||
EMBED_STYLE_SET_REQUEST_MSG = "\u0192_wessreq", | ||
EMBED_STYLE_SET_RESPONSE_MSG = "\u0192_wessres", | ||
EMBED_TOKEN_REQUEST_MSG = "\u0192_wetreq", | ||
EMBED_TOKEN_RESPONSE_MSG = "\u0192_wetres", | ||
EMBED_UNAUTHORIZED_MSG = "\u0192_weua" | ||
} | ||
export default WebEmbedMessage; |
@@ -7,3 +7,9 @@ "use strict"; | ||
WebEmbedMessage["EMBED_REDIRECT_MSG"] = "\u0192_wer"; | ||
WebEmbedMessage["EMBED_RESIZE_MSG"] = "\u0192_wes"; | ||
WebEmbedMessage["EMBED_STYLE_SET_REQUEST_MSG"] = "\u0192_wessreq"; | ||
WebEmbedMessage["EMBED_STYLE_SET_RESPONSE_MSG"] = "\u0192_wessres"; | ||
WebEmbedMessage["EMBED_TOKEN_REQUEST_MSG"] = "\u0192_wetreq"; | ||
WebEmbedMessage["EMBED_TOKEN_RESPONSE_MSG"] = "\u0192_wetres"; | ||
WebEmbedMessage["EMBED_UNAUTHORIZED_MSG"] = "\u0192_weua"; | ||
})(WebEmbedMessage || (WebEmbedMessage = {})); | ||
exports.default = WebEmbedMessage; |
{ | ||
"name": "@formsort/constants", | ||
"version": "0.0.14", | ||
"version": "0.2.3", | ||
"description": "Constants used across Formsort projects. Not intended to be used directly", | ||
"publishConfig": { | ||
"access": "public", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"main": "lib/index.js", | ||
@@ -10,8 +14,8 @@ "directories": { | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "jest --config jestconfig.json", | ||
"prepublishOnly": "npm test", | ||
"prepare": "npm run build", | ||
"version": "git add -A src", | ||
"postversion": "git push && git push --tags" | ||
"build": "tsc --project tsconfig.build.json", | ||
"format": "eslint --ext .ts,.tsx src --fix", | ||
"lint": "eslint --ext .ts,.tsx src", | ||
"test": "jest", | ||
"pack": "yarn pack", | ||
"release": "craft prepare --publish" | ||
}, | ||
@@ -23,17 +27,32 @@ "files": [ | ||
"type": "git", | ||
"url": "git+https://github.com/formsort/constants.git" | ||
"url": "git+https://github.com/formsort/oss.git" | ||
}, | ||
"author": "Fil Zembowicz <fil@formsort.com>", | ||
"author": "Formsort Engineering <engineering@formsort.com>", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/formsort/constants/issues" | ||
}, | ||
"homepage": "https://github.com/formsort/constants#readme", | ||
"devDependencies": { | ||
"@types/jest": "^25.1.4", | ||
"jest": "^25.1.0", | ||
"ts-jest": "^25.2.1", | ||
"typescript": "^3.8.3" | ||
"@types/jest": "^26.0.19", | ||
"eslint": "^8.12.0", | ||
"jest": "^29.5.0", | ||
"ts-jest": "^29.1.0", | ||
"typescript": "^4.6.3" | ||
}, | ||
"dependencies": {} | ||
"jest": { | ||
"cacheDirectory": "./.jest-cache", | ||
"transform": { | ||
"^.+\\.(t|j)sx?$": "ts-jest" | ||
}, | ||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
"testPathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/lib/" | ||
], | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
] | ||
} | ||
} |
@@ -7,3 +7,3 @@ # @formsort/constants | ||
- [@formsort/custom-question-api](https://github.com/formsort/custom-question-api) if you want to build custom questions. | ||
- [@formsort/web-embed-api](https://github.com/formsort/web-embed-api) if you want to embed Formsort within another webpage | ||
- [@formsort/custom-question-api](../custom-question-api) if you want to build custom questions. | ||
- [@formsort/web-embed-api](../web-embed-api) if you want to embed Formsort within another webpage. |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11117
20
178
5
1
2