sample-piral 1.11.0 → 1.11.1-beta.220bc90

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.
@@ -59547,6 +59547,9 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
59547
59547
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
59548
59548
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
59549
59549
 
59550
+ function getPortalContainer(portal) {
59551
+ return portal.containerInfo;
59552
+ }
59550
59553
  function destroyPortal(ctx, id) {
59551
59554
  ctx.dispatch(function (state) {
59552
59555
  return _objectSpread(_objectSpread({}, state), {}, {
@@ -59561,11 +59564,16 @@ function hidePortal(ctx, id, entry) {
59561
59564
  });
59562
59565
  });
59563
59566
  }
59567
+ function isSamePortal(current, candidate) {
59568
+ var currentContainer = getPortalContainer(current);
59569
+ var candidateContainer = getPortalContainer(candidate);
59570
+ return candidate === current || !!currentContainer && currentContainer === candidateContainer;
59571
+ }
59564
59572
  function updatePortal(ctx, id, current, next) {
59565
59573
  ctx.dispatch(function (state) {
59566
59574
  return _objectSpread(_objectSpread({}, state), {}, {
59567
59575
  portals: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.withKey)(state.portals, id, (0,_utils__WEBPACK_IMPORTED_MODULE_0__.replaceOrAddItem)(state.portals[id], next, function (m) {
59568
- return m === current;
59576
+ return isSamePortal(current, m);
59569
59577
  }))
59570
59578
  });
59571
59579
  });
@@ -65610,12 +65618,12 @@ function installPiralDebug(options) {
65610
65618
  debug: debugApiVersion,
65611
65619
  instance: {
65612
65620
  name: "sample-piral",
65613
- version: "1.11.0",
65621
+ version: "1.11.1-beta.220bc90",
65614
65622
  dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
65615
65623
  },
65616
65624
  build: {
65617
- date: "2026-06-07T13:49:05.249Z",
65618
- cli: "1.11.0",
65625
+ date: "2026-06-11T17:17:58.903Z",
65626
+ cli: "1.11.1-beta.220bc90",
65619
65627
  compat: "1"
65620
65628
  }
65621
65629
  };
@@ -67900,4 +67908,4 @@ root.render(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral_
67900
67908
 
67901
67909
  /******/ })()
67902
67910
  ;
67903
- //# sourceMappingURL=index.1f6d7b.js.map
67911
+ //# sourceMappingURL=index.4e1937.js.map