@inboxsdk/core 2.1.55 → 2.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/inboxsdk.js CHANGED
@@ -371,7 +371,7 @@ function isNotNil(value) {
371
371
 
372
372
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- SDK_VERSION is injected by webpack
373
373
  ///@ts-ignore
374
- const BUILD_VERSION = "2.1.55-1716205678635-d6562cf5c54c7c73";
374
+ const BUILD_VERSION = "2.1.57-1716943847351-d4f3e466da54c4c2";
375
375
  if (false) {}
376
376
 
377
377
  /***/ }),
@@ -2646,7 +2646,7 @@ options.insert = htmlElement => {
2646
2646
  htmlElement.setAttribute('data-inboxsdk-version',
2647
2647
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
2648
2648
  ///@ts-ignore
2649
- "2.1.55-1716205678635-d6562cf5c54c7c73");
2649
+ "2.1.57-1716943847351-d4f3e466da54c4c2");
2650
2650
  document.head.append(htmlElement);
2651
2651
  };
2652
2652
  options.domAPI = (styleDomAPI_default());
@@ -10194,7 +10194,7 @@ options.insert = htmlElement => {
10194
10194
  htmlElement.setAttribute('data-inboxsdk-version',
10195
10195
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
10196
10196
  ///@ts-ignore
10197
- "2.1.55-1716205678635-d6562cf5c54c7c73");
10197
+ "2.1.57-1716943847351-d4f3e466da54c4c2");
10198
10198
  document.head.append(htmlElement);
10199
10199
  };
10200
10200
  options.domAPI = (styleDomAPI_default());
@@ -10347,7 +10347,10 @@ var ajax = __webpack_require__(8587);
10347
10347
  ;// CONCATENATED MODULE: ./src/common/get-extension-id.ts
10348
10348
  function getExtensionId() {
10349
10349
  const chrome = __webpack_require__.g.chrome;
10350
- if (chrome && chrome.extension && chrome.extension.getURL) {
10350
+ if (chrome?.runtime?.getURL) {
10351
+ return chrome.runtime.getURL('');
10352
+ }
10353
+ if (chrome?.extension?.getURL) {
10351
10354
  return chrome.extension.getURL('');
10352
10355
  }
10353
10356
  return null;
@@ -14920,7 +14923,7 @@ options.insert = htmlElement => {
14920
14923
  htmlElement.setAttribute('data-inboxsdk-version',
14921
14924
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
14922
14925
  ///@ts-ignore
14923
- "2.1.55-1716205678635-d6562cf5c54c7c73");
14926
+ "2.1.57-1716943847351-d4f3e466da54c4c2");
14924
14927
  document.head.append(htmlElement);
14925
14928
  };
14926
14929
  options.domAPI = (styleDomAPI_default());
@@ -19543,7 +19546,7 @@ mole_view_module_options.insert = htmlElement => {
19543
19546
  htmlElement.setAttribute('data-inboxsdk-version',
19544
19547
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- this is injected by webpack
19545
19548
  ///@ts-ignore
19546
- "2.1.55-1716205678635-d6562cf5c54c7c73");
19549
+ "2.1.57-1716943847351-d4f3e466da54c4c2");
19547
19550
  document.head.append(htmlElement);
19548
19551
  };
19549
19552
  mole_view_module_options.domAPI = (styleDomAPI_default());
@@ -25144,16 +25147,13 @@ var kefir_bus_default = /*#__PURE__*/__webpack_require__.n(kefir_bus);
25144
25147
  // EXTERNAL MODULE: ./node_modules/kefir-stopper/js/index.js
25145
25148
  var kefir_stopper_js = __webpack_require__(4924);
25146
25149
  var kefir_stopper_js_default = /*#__PURE__*/__webpack_require__.n(kefir_stopper_js);
25147
- // EXTERNAL MODULE: ./node_modules/event-listener-with-options/js/index.js
25148
- var event_listener_with_options_js = __webpack_require__(3442);
25149
25150
  ;// CONCATENATED MODULE: ./src/platform-implementation-js/lib/fromEventsWithOptions.ts
25150
25151
 
25151
-
25152
25152
  function fromEventsWithOptions(target, eventName, options) {
25153
25153
  return kefir_esm.stream(emitter => {
25154
- (0,event_listener_with_options_js/* addEventListener */.q2)(target, eventName, emitter.emit, options);
25154
+ target.addEventListener(eventName, emitter.emit, options);
25155
25155
  return () => {
25156
- (0,event_listener_with_options_js/* removeEventListener */.f)(target, eventName, emitter.emit, options);
25156
+ target.removeEventListener(eventName, emitter.emit, options);
25157
25157
  };
25158
25158
  });
25159
25159
  }
@@ -38119,74 +38119,6 @@ var __WEBPACK_AMD_DEFINE_RESULT__;;(function (globalScope) {
38119
38119
  })(this);
38120
38120
 
38121
38121
 
38122
- /***/ }),
38123
-
38124
- /***/ 3442:
38125
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
38126
-
38127
- "use strict";
38128
- var __webpack_unused_export__;
38129
-
38130
-
38131
- __webpack_unused_export__ = ({
38132
- value: true
38133
- });
38134
- exports.q2 = addEventListener;
38135
- exports.f = removeEventListener;
38136
-
38137
- var _supportsCaptureOption = _interopRequireDefault(__webpack_require__(2597));
38138
-
38139
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38140
-
38141
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
38142
-
38143
- function addEventListener(target, type, handler, options, wantsUntrusted) {
38144
- var optionsOrCapture = (0, _supportsCaptureOption.default)() || !options || _typeof(options) !== 'object' ? options : !!options.capture;
38145
- target.addEventListener(type, handler, optionsOrCapture, wantsUntrusted);
38146
- }
38147
-
38148
- function removeEventListener(target, type, handler, options) {
38149
- var optionsOrCapture = (0, _supportsCaptureOption.default)() || !options || _typeof(options) !== 'object' ? options : !!options.capture;
38150
- target.removeEventListener(type, handler, optionsOrCapture);
38151
- }
38152
-
38153
-
38154
- /***/ }),
38155
-
38156
- /***/ 2597:
38157
- /***/ ((__unused_webpack_module, exports) => {
38158
-
38159
- "use strict";
38160
-
38161
-
38162
- Object.defineProperty(exports, "__esModule", ({
38163
- value: true
38164
- }));
38165
- exports["default"] = supportsCaptureOption;
38166
- var cachedResult = null;
38167
-
38168
- function supportsCaptureOption() {
38169
- if (cachedResult === null) {
38170
- var result = false;
38171
-
38172
- try {
38173
- var opts = Object.defineProperty({}, 'capture', {
38174
- get: function get() {
38175
- result = true;
38176
- return undefined;
38177
- }
38178
- });
38179
- window.addEventListener('test', null, opts);
38180
- } catch (e) {//ignore
38181
- }
38182
-
38183
- cachedResult = result;
38184
- }
38185
-
38186
- return cachedResult;
38187
- }
38188
-
38189
-
38190
38122
  /***/ }),
38191
38123
 
38192
38124
  /***/ 4785: