diff --git a/demo-minimal-js.bundle.js b/demo-minimal-js.bundle.js index 7aea5ef3..2d7e2e0f 100644 --- a/demo-minimal-js.bundle.js +++ b/demo-minimal-js.bundle.js @@ -46,7 +46,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \*******************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _IFrameManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./IFrameManager */ \"./node_modules/@hubspot/calling-extensions-sdk/src/IFrameManager.js\");\n/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ \"./node_modules/@hubspot/calling-extensions-sdk/src/Constants.js\");\n\"use es6\";\n\n\n\n\n/**\n * @typedef {Object} EventHandlers\n * @property {function} onReady - Called when HubSpot is ready to receive messages.\n * @property {function} onDialNumber - Called when the HubSpot sends a dial number from the contact.\n * @property {function} onEngagementCreated - Called when HubSpot creates an engagement\n * for the call.\n * @property {function} onVisibilityChanged - Called when the call widget's visibility changes.\n */\n\n/**\n * @typedef {Object} Options\n * @property {boolean} debugMode - Whether to log various inbound/outbound debug messages\n * to the console.\n * @property {EventHandlers} eventHandlers - Event handlers handle inbound messages.\n */\n\n/*\n * CallingExtensions allows call providers to communicate with HubSpot.\n */\nclass CallingExtensions {\n /**\n * @param {Options} options\n */\n constructor(options) {\n if (!options || !options.eventHandlers) {\n throw new Error(\"Invalid options or missing eventHandlers.\");\n }\n\n this.options = options;\n\n this.iFrameManager = new _IFrameManager__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({\n debugMode: options.debugMode,\n onMessageHandler: event => this.onMessageHandler(event),\n });\n }\n\n initialized(userData) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.INITIALIZED,\n data: { ...userData },\n });\n }\n\n userLoggedIn() {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.LOGGED_IN,\n });\n }\n\n userLoggedOut() {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.LOGGED_OUT,\n });\n }\n\n incomingCall(callDetails) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.INCOMING_CALL,\n data: callDetails,\n });\n }\n\n outgoingCall(callDetails) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.OUTGOING_CALL_STARTED,\n data: callDetails,\n });\n }\n\n callAnswered() {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CALL_ANSWERED,\n });\n }\n\n callData(data) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CALL_DATA,\n data,\n });\n }\n\n callEnded(engagementData) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CALL_ENDED,\n data: engagementData,\n });\n }\n\n callCompleted(callCompletedData) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CALL_COMPLETED,\n data: callCompletedData,\n });\n }\n\n sendError(errorData) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.ERROR,\n data: errorData,\n });\n }\n\n resizeWidget(sizeInfo) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.RESIZE_WIDGET,\n data: sizeInfo,\n });\n }\n\n sendMessage(message) {\n this.iFrameManager.sendMessage(message);\n }\n\n onMessageHandler(event) {\n const { type, data } = event;\n const { eventHandlers } = this.options;\n let handler;\n switch (type) {\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.READY: {\n const { onReady } = eventHandlers;\n handler = onReady;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.DIAL_NUMBER: {\n const { onDialNumber } = eventHandlers;\n handler = onDialNumber;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.ENGAGEMENT_CREATED: {\n const { onEngagementCreated } = eventHandlers;\n handler = onEngagementCreated;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.END_CALL: {\n const { onEndCall } = eventHandlers;\n handler = onEndCall;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.VISIBILITY_CHANGED: {\n const { onVisibilityChanged } = eventHandlers;\n handler = onVisibilityChanged;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.SET_CALL_STATE: {\n const { onSetCallState } = eventHandlers;\n handler = onSetCallState;\n break;\n }\n default: {\n // Send back a message indicating an unknown event is received\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.ERROR,\n data: {\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.errorType.UNKNOWN_MESSAGE_TYPE,\n data: {\n originalMessage: event,\n },\n },\n });\n break;\n }\n }\n handler = handler || eventHandlers.defaultEventHandler;\n if (handler) {\n handler(data, event);\n } else {\n console.error(\n `No event handler is available to handle message of type: ${type}`,\n );\n }\n }\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CallingExtensions);\n\n\n//# sourceURL=webpack://calling-extensions-sdk-demo-minimal-js/./node_modules/@hubspot/calling-extensions-sdk/src/CallingExtensions.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _IFrameManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./IFrameManager */ \"./node_modules/@hubspot/calling-extensions-sdk/src/IFrameManager.js\");\n/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ \"./node_modules/@hubspot/calling-extensions-sdk/src/Constants.js\");\n\"use es6\";\n\n\n\n\n/**\n * @typedef {Object} EventHandlers\n * @property {function} onReady - Called when HubSpot is ready to receive messages.\n * @property {function} onDialNumber - Called when the HubSpot sends a dial number from the contact.\n * @property {function} onEngagementCreated - Called when HubSpot creates an engagement\n * for the call.\n * @property {function} onVisibilityChanged - Called when the call widget's visibility changes.\n */\n\n/**\n * @typedef {Object} Options\n * @property {boolean} debugMode - Whether to log various inbound/outbound debug messages\n * to the console.\n * @property {EventHandlers} eventHandlers - Event handlers handle inbound messages.\n */\n\n/*\n * CallingExtensions allows call providers to communicate with HubSpot.\n */\nclass CallingExtensions {\n /**\n * @param {Options} options\n */\n constructor(options) {\n if (!options || !options.eventHandlers) {\n throw new Error(\"Invalid options or missing eventHandlers.\");\n }\n\n this.options = options;\n\n this.iFrameManager = new _IFrameManager__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({\n debugMode: options.debugMode,\n onMessageHandler: event => this.onMessageHandler(event),\n });\n }\n\n initialized(userData) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.INITIALIZED,\n data: { ...userData },\n });\n }\n\n userLoggedIn() {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.LOGGED_IN,\n });\n }\n\n userLoggedOut() {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.LOGGED_OUT,\n });\n }\n\n incomingCall(callDetails) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.INCOMING_CALL,\n data: callDetails,\n });\n }\n\n outgoingCall(callDetails) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.OUTGOING_CALL_STARTED,\n data: callDetails,\n });\n }\n\n callAnswered() {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CALL_ANSWERED,\n });\n }\n\n callData(data) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CALL_DATA,\n data,\n });\n }\n\n callEnded(engagementData) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CALL_ENDED,\n data: engagementData,\n });\n }\n\n callCompleted(callCompletedData) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CALL_COMPLETED,\n data: callCompletedData,\n });\n }\n\n sendError(errorData) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.ERROR,\n data: errorData,\n });\n }\n\n resizeWidget(sizeInfo) {\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.RESIZE_WIDGET,\n data: sizeInfo,\n });\n }\n\n sendMessage(message) {\n this.iFrameManager.sendMessage(message);\n }\n\n onMessageHandler(event) {\n const { type, data } = event;\n const { eventHandlers } = this.options;\n let handler;\n switch (type) {\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.READY: {\n const { onReady } = eventHandlers;\n handler = onReady;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.DIAL_NUMBER: {\n const { onDialNumber } = eventHandlers;\n handler = onDialNumber;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.ENGAGEMENT_CREATED: {\n const { onEngagementCreated } = eventHandlers;\n handler = onEngagementCreated;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.END_CALL: {\n const { onEndCall } = eventHandlers;\n handler = onEndCall;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.VISIBILITY_CHANGED: {\n const { onVisibilityChanged } = eventHandlers;\n handler = onVisibilityChanged;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.SET_CALL_STATE: {\n const { onSetCallState } = eventHandlers;\n handler = onSetCallState;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CREATE_ENGAGEMENT_FAILED: {\n const { onCreateEngagementFailed } = eventHandlers;\n handler = onCreateEngagementFailed;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.CREATE_ENGAGEMENT_SUCCEEDED: {\n const { onCreateEngagementSucceeded } = eventHandlers;\n handler = onCreateEngagementSucceeded;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.UPDATE_ENGAGEMENT_FAILED: {\n const { onUpdateEngagementFailed } = eventHandlers;\n handler = onUpdateEngagementFailed;\n break;\n }\n case _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.UPDATE_ENGAGEMENT_SUCCEEDED: {\n const { onUpdateEngagementSucceeded } = eventHandlers;\n handler = onUpdateEngagementSucceeded;\n break;\n }\n default: {\n // Send back a message indicating an unknown event is received\n this.sendMessage({\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.messageType.ERROR,\n data: {\n type: _Constants__WEBPACK_IMPORTED_MODULE_1__.errorType.UNKNOWN_MESSAGE_TYPE,\n data: {\n originalMessage: event,\n },\n },\n });\n break;\n }\n }\n handler = handler || eventHandlers.defaultEventHandler;\n if (handler) {\n handler(data, event);\n } else {\n console.error(\n `No event handler is available to handle message of type: ${type}`,\n );\n }\n }\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CallingExtensions);\n\n\n//# sourceURL=webpack://calling-extensions-sdk-demo-minimal-js/./node_modules/@hubspot/calling-extensions-sdk/src/CallingExtensions.js?"); /***/ }), @@ -56,7 +56,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \***********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"VERSION\": () => (/* binding */ VERSION),\n/* harmony export */ \"callEndStatus\": () => (/* binding */ callEndStatus),\n/* harmony export */ \"callEndingStatus\": () => (/* binding */ callEndingStatus),\n/* harmony export */ \"callInProgressStatus\": () => (/* binding */ callInProgressStatus),\n/* harmony export */ \"callRingingStatus\": () => (/* binding */ callRingingStatus),\n/* harmony export */ \"callStatus\": () => (/* binding */ callStatus),\n/* harmony export */ \"errorType\": () => (/* binding */ errorType),\n/* harmony export */ \"messageType\": () => (/* binding */ messageType)\n/* harmony export */ });\n\"use es6\";\n\nconst { version } = __webpack_require__(/*! ../package.json */ \"./node_modules/@hubspot/calling-extensions-sdk/package.json\");\nconst VERSION = version;\n\nconst messageType = {\n CALL_ANSWERED: \"CALL_ANSWERED\",\n CALL_COMPLETED: \"CALL_COMPLETED\",\n CALL_DATA: \"CALL_DATA\",\n CALL_ENDED: \"CALL_ENDED\",\n DIAL_NUMBER: \"DIAL_NUMBER\",\n END_CALL: \"END_CALL\",\n ENGAGEMENT_CREATED: \"ENGAGEMENT_CREATED\",\n ERROR: \"ERROR\",\n INCOMING_CALL: \"INCOMING_CALL\",\n INITIALIZED: \"INITIALIZED\",\n LOGGED_IN: \"LOGGED_IN\",\n LOGGED_OUT: \"LOGGED_OUT\",\n OUTGOING_CALL_STARTED: \"OUTGOING_CALL_STARTED\",\n READY: \"READY\",\n RESIZE_WIDGET: \"RESIZE_WIDGET\",\n SET_CALL_STATE: \"SET_CALL_STATE\",\n SET_WIDGET_URL: \"SET_WIDGET_URL\",\n SYNC_ACK_FAILED: \"SYNC_ACK_FAILED\",\n SYNC_ACK: \"SYNC_ACK\",\n SYNC: \"SYNC\",\n UNLOADING: \"UNLOADING\",\n VISIBILITY_CHANGED: \"VISIBILITY_CHANGED\",\n};\n\nconst errorType = {\n UNKNOWN_MESSAGE_TYPE: \"UNKNOWN_MESSAGE_TYPE\",\n GENERIC: \"GENERIC\",\n};\n\n/** These are potential statuses from the BE client when calling from phone\n * or detecting that a call has ended in the linked engagement */\n\nconst INTERNAL_CONNECTING = \"CONNECTING\";\nconst INTERNAL_CALLING_CRM_USER = \"CALLING_CRM_USER\";\nconst INTERNAL_IN_PROGRESS = \"IN_PROGRESS\";\nconst INTERNAL_CANCELED = \"CANCELED\";\nconst INTERNAL_FAILED = \"FAILED\";\nconst INTERNAL_BUSY = \"BUSY\";\nconst INTERNAL_NO_ANSWER = \"NO_ANSWER\";\nconst INTERNAL_COMPLETED = \"COMPLETED\";\nconst INTERNAL_ENDING = \"ENDING\";\nconst INTERNAL_QUEUED = \"QUEUED\";\nconst INTERNAL_RINGING = \"RINGING\";\n\nconst callStatus = {\n INTERNAL_CONNECTING,\n INTERNAL_CALLING_CRM_USER,\n INTERNAL_IN_PROGRESS,\n INTERNAL_CANCELED,\n INTERNAL_FAILED,\n INTERNAL_BUSY,\n INTERNAL_NO_ANSWER,\n INTERNAL_COMPLETED,\n INTERNAL_ENDING,\n INTERNAL_QUEUED,\n INTERNAL_RINGING,\n};\n\nconst callRingingStatus = {\n INTERNAL_QUEUED,\n INTERNAL_RINGING,\n INTERNAL_CONNECTING,\n INTERNAL_CALLING_CRM_USER,\n};\n\nconst callInProgressStatus = { INTERNAL_IN_PROGRESS };\n\nconst callEndingStatus = { INTERNAL_ENDING };\n\nconst callEndStatus = {\n INTERNAL_COMPLETED,\n INTERNAL_FAILED,\n INTERNAL_CANCELED,\n INTERNAL_BUSY,\n INTERNAL_NO_ANSWER,\n};\n\n\n//# sourceURL=webpack://calling-extensions-sdk-demo-minimal-js/./node_modules/@hubspot/calling-extensions-sdk/src/Constants.js?"); +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"VERSION\": () => (/* binding */ VERSION),\n/* harmony export */ \"callEndStatus\": () => (/* binding */ callEndStatus),\n/* harmony export */ \"callEndingStatus\": () => (/* binding */ callEndingStatus),\n/* harmony export */ \"callInProgressStatus\": () => (/* binding */ callInProgressStatus),\n/* harmony export */ \"callRingingStatus\": () => (/* binding */ callRingingStatus),\n/* harmony export */ \"callStatus\": () => (/* binding */ callStatus),\n/* harmony export */ \"errorType\": () => (/* binding */ errorType),\n/* harmony export */ \"messageType\": () => (/* binding */ messageType)\n/* harmony export */ });\n\"use es6\";\n\nconst { version } = __webpack_require__(/*! ../package.json */ \"./node_modules/@hubspot/calling-extensions-sdk/package.json\");\nconst VERSION = version;\n\nconst messageType = {\n CALL_ANSWERED: \"CALL_ANSWERED\",\n CALL_COMPLETED: \"CALL_COMPLETED\",\n CALL_DATA: \"CALL_DATA\",\n CALL_ENDED: \"CALL_ENDED\",\n CREATE_ENGAGEMENT_FAILED: \"CREATE_ENGAGEMENT_FAILED\",\n CREATE_ENGAGEMENT_SUCCEEDED: \"CREATE_ENGAGEMENT_SUCCEEDED\",\n DIAL_NUMBER: \"DIAL_NUMBER\",\n END_CALL: \"END_CALL\",\n /**\n * @deprecated use CREATE_ENGAGEMENT_SUCCEEDED instead\n */\n ENGAGEMENT_CREATED: \"ENGAGEMENT_CREATED\",\n ERROR: \"ERROR\",\n INCOMING_CALL: \"INCOMING_CALL\",\n INITIALIZED: \"INITIALIZED\",\n LOGGED_IN: \"LOGGED_IN\",\n LOGGED_OUT: \"LOGGED_OUT\",\n OUTGOING_CALL_STARTED: \"OUTGOING_CALL_STARTED\",\n READY: \"READY\",\n RESIZE_WIDGET: \"RESIZE_WIDGET\",\n SET_CALL_STATE: \"SET_CALL_STATE\",\n SET_WIDGET_URL: \"SET_WIDGET_URL\",\n SYNC_ACK_FAILED: \"SYNC_ACK_FAILED\",\n SYNC_ACK: \"SYNC_ACK\",\n SYNC: \"SYNC\",\n UNLOADING: \"UNLOADING\",\n UPDATE_ENGAGEMENT_FAILED: \"UPDATE_ENGAGEMENT_FAILED\",\n UPDATE_ENGAGEMENT_SUCCEEDED: \"UPDATE_ENGAGEMENT_SUCCEEDED\",\n VISIBILITY_CHANGED: \"VISIBILITY_CHANGED\",\n};\n\nconst errorType = {\n UNKNOWN_MESSAGE_TYPE: \"UNKNOWN_MESSAGE_TYPE\",\n GENERIC: \"GENERIC\",\n};\n\n/** These are potential statuses from the BE client when calling from phone\n * or detecting that a call has ended in the linked engagement */\n\nconst INTERNAL_CONNECTING = \"CONNECTING\";\nconst INTERNAL_CALLING_CRM_USER = \"CALLING_CRM_USER\";\nconst INTERNAL_IN_PROGRESS = \"IN_PROGRESS\";\nconst INTERNAL_CANCELED = \"CANCELED\";\nconst INTERNAL_FAILED = \"FAILED\";\nconst INTERNAL_BUSY = \"BUSY\";\nconst INTERNAL_NO_ANSWER = \"NO_ANSWER\";\nconst INTERNAL_COMPLETED = \"COMPLETED\";\nconst INTERNAL_ENDING = \"ENDING\";\nconst INTERNAL_QUEUED = \"QUEUED\";\nconst INTERNAL_RINGING = \"RINGING\";\n\nconst callStatus = {\n INTERNAL_CONNECTING,\n INTERNAL_CALLING_CRM_USER,\n INTERNAL_IN_PROGRESS,\n INTERNAL_CANCELED,\n INTERNAL_FAILED,\n INTERNAL_BUSY,\n INTERNAL_NO_ANSWER,\n INTERNAL_COMPLETED,\n INTERNAL_ENDING,\n INTERNAL_QUEUED,\n INTERNAL_RINGING,\n};\n\nconst callRingingStatus = {\n INTERNAL_QUEUED,\n INTERNAL_RINGING,\n INTERNAL_CONNECTING,\n INTERNAL_CALLING_CRM_USER,\n};\n\nconst callInProgressStatus = { INTERNAL_IN_PROGRESS };\n\nconst callEndingStatus = { INTERNAL_ENDING };\n\nconst callEndStatus = {\n INTERNAL_COMPLETED,\n INTERNAL_FAILED,\n INTERNAL_CANCELED,\n INTERNAL_BUSY,\n INTERNAL_NO_ANSWER,\n};\n\n\n//# sourceURL=webpack://calling-extensions-sdk-demo-minimal-js/./node_modules/@hubspot/calling-extensions-sdk/src/Constants.js?"); /***/ }), @@ -76,7 +76,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac \*******************************************************************/ /***/ ((module) => { -eval("module.exports = JSON.parse('{\"name\":\"@hubspot/calling-extensions-sdk\",\"version\":\"0.1.7\",\"description\":\"HubSpot calling extensions sdk for call widget integration.\",\"publishConfig\":{\"access\":\"public\"},\"scripts\":{\"build\":\"webpack\",\"build:test\":\"npm run build && npm run test\",\"cover\":\"open coverage/lcov-report/index.html\",\"eslint\":\"eslint src --ext .js\",\"eslint:fix\":\"eslint src .js --fix\",\"preversion\":\"npm run build:test\",\"postversion\":\"git push --follow-tags\",\"publish:alpha\":\"npm version prerelease --preid alpha && npm publish --access public --tag next\",\"publish:beta\":\"npm version prerelease --preid beta && npm publish --access public --tag beta\",\"publish:patch\":\"npm version patch && npm publish --access public\",\"publish:minor\":\"npm version minor && npm publish --access public\",\"publish:major\":\"npm version major && npm publish --access public\",\"publish:preminor\":\"npm version preminor && npm run publish:alpha\",\"publish:premajor\":\"npm version premajor && npm run publish:alpha\",\"test:build\":\"npx webpack --config webpack-test.config.js --mode development\",\"test:watch\":\"npx webpack --config webpack-test.config.js --mode development --watch\",\"test:serve\":\"cross-env NODE_ENV=test npm run test:watch & jasmine-browser-runner serve --config=test/support/jasmine-browser.json\",\"test\":\"cross-env NODE_ENV=test npm run test:build && jasmine-browser-runner runSpecs --config=test/support/jasmine-browser.json --browser=headlessChrome\"},\"main\":\"./dist/main.js\",\"files\":[\"dist/\",\"src/\",\"index.js\"],\"module\":\"./index.js\",\"author\":\"\",\"license\":\"MIT\",\"engines\":{\"node\":\">=14\"},\"devDependencies\":{\"@babel/cli\":\"^7.21.0\",\"@babel/core\":\"^7.4.5\",\"@babel/preset-env\":\"^7.21.4\",\"@typescript-eslint/eslint-plugin\":\"^5.59.7\",\"@typescript-eslint/parser\":\"^5.59.7\",\"babel-loader\":\"^8.0.6\",\"cross-env\":\"^7.0.3\",\"eslint\":\"^8.41.0\",\"eslint-config-airbnb\":\"^19.0.4\",\"eslint-plugin-import\":\"^2.27.5\",\"eslint-plugin-jsx-a11y\":\"^6.7.1\",\"eslint-plugin-react\":\"^7.32.2\",\"eslint-plugin-react-hooks\":\"^4.6.0\",\"jasmine-browser-runner\":\"^1.3.0\",\"jasmine-core\":\"^4.6.0\",\"prettier\":\"^2.8.8\",\"typescript\":\"^5.0.4\",\"webpack\":\"^5.77.0\",\"webpack-cli\":\"^5.0.1\"}}');\n\n//# sourceURL=webpack://calling-extensions-sdk-demo-minimal-js/./node_modules/@hubspot/calling-extensions-sdk/package.json?"); +eval("module.exports = JSON.parse('{\"name\":\"@hubspot/calling-extensions-sdk\",\"version\":\"0.1.8\",\"description\":\"HubSpot calling extensions sdk for call widget integration.\",\"publishConfig\":{\"access\":\"public\"},\"scripts\":{\"build\":\"webpack\",\"build:test\":\"npm run build && npm run test\",\"cover\":\"open coverage/lcov-report/index.html\",\"eslint\":\"eslint src --ext .js\",\"eslint:fix\":\"eslint src .js --fix\",\"preversion\":\"npm run build:test\",\"postversion\":\"git push --follow-tags\",\"publish:alpha\":\"npm version prerelease --preid alpha && npm publish --access public --tag next\",\"publish:beta\":\"npm version prerelease --preid beta && npm publish --access public --tag beta\",\"publish:patch\":\"npm version patch && npm publish --access public\",\"publish:minor\":\"npm version minor && npm publish --access public\",\"publish:major\":\"npm version major && npm publish --access public\",\"publish:preminor\":\"npm version preminor && npm run publish:alpha\",\"publish:premajor\":\"npm version premajor && npm run publish:alpha\",\"test:build\":\"npx webpack --config webpack-test.config.js --mode development\",\"test:watch\":\"npx webpack --config webpack-test.config.js --mode development --watch\",\"test:serve\":\"cross-env NODE_ENV=test npm run test:watch & jasmine-browser-runner serve --config=test/support/jasmine-browser.json\",\"test\":\"cross-env NODE_ENV=test npm run test:build && jasmine-browser-runner runSpecs --config=test/support/jasmine-browser.json --browser=headlessChrome\"},\"main\":\"./dist/main.js\",\"files\":[\"dist/\",\"src/\",\"index.js\"],\"module\":\"./index.js\",\"author\":\"\",\"license\":\"MIT\",\"engines\":{\"node\":\">=14\"},\"devDependencies\":{\"@babel/cli\":\"^7.21.0\",\"@babel/core\":\"^7.4.5\",\"@babel/preset-env\":\"^7.21.4\",\"@typescript-eslint/eslint-plugin\":\"^5.59.7\",\"@typescript-eslint/parser\":\"^5.59.7\",\"babel-loader\":\"^8.0.6\",\"cross-env\":\"^7.0.3\",\"eslint\":\"^8.41.0\",\"eslint-config-airbnb\":\"^19.0.4\",\"eslint-plugin-import\":\"^2.27.5\",\"eslint-plugin-jsx-a11y\":\"^6.7.1\",\"eslint-plugin-react\":\"^7.32.2\",\"eslint-plugin-react-hooks\":\"^4.6.0\",\"jasmine-browser-runner\":\"^1.3.0\",\"jasmine-core\":\"^4.6.0\",\"prettier\":\"^2.8.8\",\"typescript\":\"^5.0.4\",\"webpack\":\"^5.77.0\",\"webpack-cli\":\"^5.0.1\"}}');\n\n//# sourceURL=webpack://calling-extensions-sdk-demo-minimal-js/./node_modules/@hubspot/calling-extensions-sdk/package.json?"); /***/ }) diff --git a/demo-react-ts.bundle.js b/demo-react-ts.bundle.js index d43c32fb..1b8a7b84 100644 --- a/demo-react-ts.bundle.js +++ b/demo-react-ts.bundle.js @@ -1,3 +1,3 @@ /*! For license information please see demo-react-ts.bundle.js.LICENSE.txt */ -(()=>{var e={679:(e,t,n)=>{"use strict";var r=n(864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function u(e){return r.isMemo(e)?l:i[e.$$typeof]||a}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=l;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=p(n);a&&a!==m&&e(t,a,r)}var l=c(n);f&&(l=l.concat(f(n)));for(var i=u(t),h=u(n),g=0;g{"use strict";var r=n(414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,l){if(l!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},448:(e,t,n)=>{"use strict";var r=n(294),a=n(840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n