sample-piral 0.15.10-beta.5496 → 0.15.11-beta.5506

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.
@@ -2431,10 +2431,11 @@ __webpack_require__.r(__webpack_exports__);
2431
2431
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2432
2432
  /* harmony export */ "renderElement": () => (/* binding */ renderElement)
2433
2433
  /* harmony export */ });
2434
- /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/ExtensionSlot.js");
2434
+ /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/ExtensionSlot.js");
2435
2435
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
2436
2436
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/extension.js");
2437
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
2437
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/compare.js");
2438
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
2438
2439
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2439
2440
 
2440
2441
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -2520,8 +2521,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2520
2521
  return this.props.params;
2521
2522
  },
2522
2523
  set: function set(value) {
2523
- this.props.params = value;
2524
- this.update(this.props);
2524
+ if (!(0,_utils__WEBPACK_IMPORTED_MODULE_2__.isSame)(this.props.params, value)) {
2525
+ this.props.params = value;
2526
+ this.update(this.props);
2527
+ }
2525
2528
  }
2526
2529
  }, {
2527
2530
  key: "name",
@@ -2529,8 +2532,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2529
2532
  return this.props.name;
2530
2533
  },
2531
2534
  set: function set(value) {
2532
- this.props.name = value;
2533
- this.update(this.props);
2535
+ if (this.props.name !== value) {
2536
+ this.props.name = value;
2537
+ this.update(this.props);
2538
+ }
2534
2539
  }
2535
2540
  }, {
2536
2541
  key: "order",
@@ -2538,8 +2543,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2538
2543
  return this.props.order;
2539
2544
  },
2540
2545
  set: function set(value) {
2541
- this.props.order = value;
2542
- this.update(this.props);
2546
+ if (this.props.order !== value) {
2547
+ this.props.order = value;
2548
+ this.update(this.props);
2549
+ }
2543
2550
  }
2544
2551
  }, {
2545
2552
  key: "render",
@@ -2547,8 +2554,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2547
2554
  return this.props.render;
2548
2555
  },
2549
2556
  set: function set(value) {
2550
- this.props.render = value;
2551
- this.update(this.props);
2557
+ if (this.props.render !== value) {
2558
+ this.props.render = value;
2559
+ this.update(this.props);
2560
+ }
2552
2561
  }
2553
2562
  }, {
2554
2563
  key: "empty",
@@ -2556,8 +2565,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2556
2565
  return this.props.empty;
2557
2566
  },
2558
2567
  set: function set(value) {
2559
- this.props.empty = value;
2560
- this.update(this.props);
2568
+ if (this.props.empty !== value) {
2569
+ this.props.empty = value;
2570
+ this.update(this.props);
2571
+ }
2561
2572
  }
2562
2573
  }, {
2563
2574
  key: "emptySkipsRender",
@@ -2565,8 +2576,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2565
2576
  return this.props.emptySkipsRender;
2566
2577
  },
2567
2578
  set: function set(value) {
2568
- this.props.emptySkipsRender = value;
2569
- this.update(this.props);
2579
+ if (this.props.emptySkipsRender !== value) {
2580
+ this.props.emptySkipsRender = value;
2581
+ this.update(this.props);
2582
+ }
2570
2583
  }
2571
2584
  }, {
2572
2585
  key: "connectedCallback",
@@ -2603,7 +2616,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2603
2616
  break;
2604
2617
 
2605
2618
  case 'empty-skips-render':
2606
- this.params = typeof newValue === 'string';
2619
+ this.emptySkipsRender = typeof newValue === 'string';
2607
2620
  break;
2608
2621
  }
2609
2622
  }
@@ -2617,7 +2630,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2617
2630
  return PiralExtension;
2618
2631
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2619
2632
 
2620
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.extensionName, PiralExtension);
2633
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.extensionName, PiralExtension);
2621
2634
  /**
2622
2635
  * This is a boundary to host elements from other frameworks - effectively vanishing
2623
2636
  * at runtime.
@@ -2650,7 +2663,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2650
2663
  return PiralPortal;
2651
2664
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2652
2665
 
2653
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.portalName, PiralPortal);
2666
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.portalName, PiralPortal);
2654
2667
  /**
2655
2668
  * This is a virtual element to aggregate rendering from other frameworks, mostly
2656
2669
  * used like piral-portal, but without context-hosting capabilities. This would
@@ -2684,12 +2697,12 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2684
2697
  return PiralSlot;
2685
2698
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2686
2699
 
2687
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.slotName, PiralSlot);
2700
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.slotName, PiralSlot);
2688
2701
  }
2689
2702
 
2690
2703
  function renderElement(context, element, props) {
2691
2704
  if (typeof window !== 'undefined') {
2692
- var _renderInDom = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.renderInDom)(context, element, _components__WEBPACK_IMPORTED_MODULE_3__.ExtensionSlot, props),
2705
+ var _renderInDom = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.renderInDom)(context, element, _components__WEBPACK_IMPORTED_MODULE_4__.ExtensionSlot, props),
2693
2706
  _renderInDom2 = _slicedToArray(_renderInDom, 2),
2694
2707
  id = _renderInDom2[0],
2695
2708
  portal = _renderInDom2[1];
@@ -2706,7 +2719,7 @@ function renderElement(context, element, props) {
2706
2719
  };
2707
2720
 
2708
2721
  var update = function update(newProps) {
2709
- var _changeDomPortal = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.changeDomPortal)(id, portal, context, element, _components__WEBPACK_IMPORTED_MODULE_3__.ExtensionSlot, newProps);
2722
+ var _changeDomPortal = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.changeDomPortal)(id, portal, context, element, _components__WEBPACK_IMPORTED_MODULE_4__.ExtensionSlot, newProps);
2710
2723
 
2711
2724
  var _changeDomPortal2 = _slicedToArray(_changeDomPortal, 2);
2712
2725
 
@@ -6849,12 +6862,12 @@ function installPiralDebug(options) {
6849
6862
  debug: debugApiVersion,
6850
6863
  instance: {
6851
6864
  name: "sample-piral",
6852
- version: "0.15.10-beta.5496",
6865
+ version: "0.15.11-beta.5506",
6853
6866
  dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
6854
6867
  },
6855
6868
  build: {
6856
- date: "2023-05-04T13:54:48.269Z",
6857
- cli: "0.15.10-beta.5496",
6869
+ date: "2023-05-11T13:26:14.807Z",
6870
+ cli: "0.15.10",
6858
6871
  compat: "0.15"
6859
6872
  }
6860
6873
  };
@@ -65889,4 +65902,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
65889
65902
 
65890
65903
  /******/ })()
65891
65904
  ;
65892
- //# sourceMappingURL=index.075681.js.map
65905
+ //# sourceMappingURL=index.195158.js.map