minimal-piral 1.5.0-beta.6586 → 1.5.0-beta.6618

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.
@@ -2640,21 +2640,23 @@ __webpack_require__.r(__webpack_exports__);
2640
2640
  /* harmony export */ });
2641
2641
  /* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/debug.js");
2642
2642
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2643
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2644
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2645
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2646
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
2647
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2643
2648
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2644
2649
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2645
2650
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2646
2651
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
2647
2652
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
2648
2653
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2649
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2650
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2651
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2652
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
2653
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2654
2654
 
2655
2655
  function integrateDebugger(context, options) {
2656
2656
  var debug = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
2657
- (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiralDebug)(_objectSpread(_objectSpread({}, debug), {}, {
2657
+ (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiralDebug)({
2658
+ customSettings: debug.customSettings,
2659
+ defaultSettings: debug.defaultSettings,
2658
2660
  addPilet: context.addPilet,
2659
2661
  removePilet: context.removePilet,
2660
2662
  updatePilet: function updatePilet(pilet) {
@@ -2714,7 +2716,7 @@ function integrateDebugger(context, options) {
2714
2716
  });
2715
2717
  });
2716
2718
  }
2717
- }));
2719
+ });
2718
2720
  }
2719
2721
 
2720
2722
  /***/ }),
@@ -2733,7 +2735,9 @@ __webpack_require__.r(__webpack_exports__);
2733
2735
  /* harmony import */ var piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! piral-debug-utils */ "../../utilities/piral-debug-utils/esm/emulator.js");
2734
2736
 
2735
2737
  function integrateEmulator(context, options) {
2738
+ var debug = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
2736
2739
  (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_0__.installPiletEmulator)(options.fetchPilets, {
2740
+ defaultFeedUrl: debug.defaultFeedUrl,
2737
2741
  addPilet: context.addPilet,
2738
2742
  removePilet: context.removePilet,
2739
2743
  integrate: function integrate(requester) {
@@ -3633,12 +3637,12 @@ function installPiralDebug(options) {
3633
3637
  debug: debugApiVersion,
3634
3638
  instance: {
3635
3639
  name: "minimal-piral",
3636
- version: "1.5.0-beta.6586",
3640
+ version: "1.5.0-beta.6618",
3637
3641
  dependencies: "tslib,react,react-dom,react-router,react-router-dom"
3638
3642
  },
3639
3643
  build: {
3640
- date: "2024-01-25T12:51:49.403Z",
3641
- cli: "1.5.0-beta.6586",
3644
+ date: "2024-01-29T21:46:55.143Z",
3645
+ cli: "1.5.0-beta.6618",
3642
3646
  compat: "1"
3643
3647
  }
3644
3648
  };
@@ -3944,8 +3948,8 @@ function installPiletEmulator(requestPilets, options) {
3944
3948
  var addPilet = options.addPilet,
3945
3949
  removePilet = options.removePilet,
3946
3950
  integrate = options.integrate,
3947
- _options$piletApiFall = options.piletApiFallback,
3948
- piletApiFallback = _options$piletApiFall === void 0 ? 'https://feed.piral.cloud/api/v1/pilet/emulator-website' : _options$piletApiFall;
3951
+ _options$defaultFeedU = options.defaultFeedUrl,
3952
+ defaultFeedUrl = _options$defaultFeedU === void 0 ? 'https://feed.piral.cloud/api/v1/pilet/emulator-website' : _options$defaultFeedU;
3949
3953
  integrate(function () {
3950
3954
  // check if pilets should be loaded
3951
3955
  var dbgPiletApiKey = 'dbg:pilet-api';
@@ -3956,9 +3960,9 @@ function installPiletEmulator(requestPilets, options) {
3956
3960
  var requester = loadPilets ? requestPilets : noPilets;
3957
3961
  var promise = requester();
3958
3962
  // the window['dbg:pilet-api'] should point to an API address used as a proxy, fall back to '/$pilet-api' if unavailable
3959
- var piletApi = window[dbgPiletApiKey] || sessionStorage.getItem(dbgPiletApiKey) || piletApiFallback;
3963
+ var feedUrl = window[dbgPiletApiKey] || sessionStorage.getItem(dbgPiletApiKey) || defaultFeedUrl;
3960
3964
  // either take a full URI or make it an absolute path relative to the current origin
3961
- var initialTarget = /^https?:/.test(piletApi) ? piletApi : "".concat(location.origin).concat(piletApi[0] === '/' ? '' : '/').concat(piletApi);
3965
+ var initialTarget = /^https?:/.test(feedUrl) ? feedUrl : "".concat(location.origin).concat(feedUrl[0] === '/' ? '' : '/').concat(feedUrl);
3962
3966
  var updateTarget = initialTarget.replace('http', 'ws');
3963
3967
  var ws = new WebSocket(updateTarget);
3964
3968
  var timeoutCache = {};
@@ -44725,4 +44729,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
44725
44729
 
44726
44730
  /******/ })()
44727
44731
  ;
44728
- //# sourceMappingURL=index.733537.js.map
44732
+ //# sourceMappingURL=index.cca697.js.map