@formsort/constants
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -37,2 +37,11 @@ import { AnalyticsEventType, WebEmbedMessage, IFlowAnswers } from '../'; | ||
} | ||
export declare type IIFramePushMessage = IIFrameTokenResponseMessage; | ||
export declare type IIFrameStyleSetRequestEventData = IWebEmbedEventData & { | ||
type: WebEmbedMessage.EMBED_STYLE_SET_REQUEST_MSG; | ||
}; | ||
export interface IIFrameStyleSetResponseMessage { | ||
type: WebEmbedMessage.EMBED_STYLE_SET_RESPONSE_MSG; | ||
payload: { | ||
styleSet?: Record<string, unknown>; | ||
}; | ||
} | ||
export declare type IIFramePushMessage = IIFrameTokenResponseMessage | IIFrameStyleSetResponseMessage; |
@@ -8,2 +8,1 @@ "use strict"; | ||
})(TokenRequestPayload = exports.TokenRequestPayload || (exports.TokenRequestPayload = {})); | ||
; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
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"); | ||
Object.defineProperty(exports, "CustomQuestionMessage", { enumerable: true, get: function () { return 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"); | ||
Object.defineProperty(exports, "AnalyticsEventType", { enumerable: true, get: function () { return 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"); | ||
Object.defineProperty(exports, "WebEmbedMessage", { enumerable: true, get: function () { return web_embed_message_1.default; } }); | ||
__exportStar(require("./flow"), exports); | ||
__exportStar(require("./core"), exports); | ||
__exportStar(require("./embed-events"), exports); | ||
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); |
@@ -5,2 +5,4 @@ declare enum WebEmbedMessage { | ||
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", | ||
@@ -7,0 +9,0 @@ EMBED_TOKEN_RESPONSE_MSG = "\u0192_wetres", |
@@ -8,2 +8,4 @@ "use strict"; | ||
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"; | ||
@@ -10,0 +12,0 @@ WebEmbedMessage["EMBED_TOKEN_RESPONSE_MSG"] = "\u0192_wetres"; |
{ | ||
"name": "@formsort/constants", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"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,6 +14,8 @@ "directories": { | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "jest --config jestconfig.json", | ||
"prepublishOnly": "npm test", | ||
"prepare": "npm run build" | ||
"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,10 +29,30 @@ "files": [ | ||
}, | ||
"author": "Fil Zembowicz <fil@formsort.com>", | ||
"author": "Formsort Engineering <engineering@formsort.com>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/jest": "^26.0.19", | ||
"eslint": "^8.12.0", | ||
"jest": "^26.6.3", | ||
"ts-jest": "^26.4.4", | ||
"typescript": "^3.8.3" | ||
"typescript": "^4.6.3" | ||
}, | ||
"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" | ||
] | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10838
20
176
5