minimal-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.
@@ -2142,10 +2142,11 @@ __webpack_require__.r(__webpack_exports__);
2142
2142
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2143
2143
  /* harmony export */ "renderElement": () => (/* binding */ renderElement)
2144
2144
  /* harmony export */ });
2145
- /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/ExtensionSlot.js");
2145
+ /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/esm/components/ExtensionSlot.js");
2146
2146
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/helpers.js");
2147
2147
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/extension.js");
2148
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
2148
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/compare.js");
2149
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/esm/utils/foreign.js");
2149
2150
  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); }
2150
2151
 
2151
2152
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -2231,8 +2232,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2231
2232
  return this.props.params;
2232
2233
  },
2233
2234
  set: function set(value) {
2234
- this.props.params = value;
2235
- this.update(this.props);
2235
+ if (!(0,_utils__WEBPACK_IMPORTED_MODULE_2__.isSame)(this.props.params, value)) {
2236
+ this.props.params = value;
2237
+ this.update(this.props);
2238
+ }
2236
2239
  }
2237
2240
  }, {
2238
2241
  key: "name",
@@ -2240,8 +2243,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2240
2243
  return this.props.name;
2241
2244
  },
2242
2245
  set: function set(value) {
2243
- this.props.name = value;
2244
- this.update(this.props);
2246
+ if (this.props.name !== value) {
2247
+ this.props.name = value;
2248
+ this.update(this.props);
2249
+ }
2245
2250
  }
2246
2251
  }, {
2247
2252
  key: "order",
@@ -2249,8 +2254,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2249
2254
  return this.props.order;
2250
2255
  },
2251
2256
  set: function set(value) {
2252
- this.props.order = value;
2253
- this.update(this.props);
2257
+ if (this.props.order !== value) {
2258
+ this.props.order = value;
2259
+ this.update(this.props);
2260
+ }
2254
2261
  }
2255
2262
  }, {
2256
2263
  key: "render",
@@ -2258,8 +2265,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2258
2265
  return this.props.render;
2259
2266
  },
2260
2267
  set: function set(value) {
2261
- this.props.render = value;
2262
- this.update(this.props);
2268
+ if (this.props.render !== value) {
2269
+ this.props.render = value;
2270
+ this.update(this.props);
2271
+ }
2263
2272
  }
2264
2273
  }, {
2265
2274
  key: "empty",
@@ -2267,8 +2276,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2267
2276
  return this.props.empty;
2268
2277
  },
2269
2278
  set: function set(value) {
2270
- this.props.empty = value;
2271
- this.update(this.props);
2279
+ if (this.props.empty !== value) {
2280
+ this.props.empty = value;
2281
+ this.update(this.props);
2282
+ }
2272
2283
  }
2273
2284
  }, {
2274
2285
  key: "emptySkipsRender",
@@ -2276,8 +2287,10 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2276
2287
  return this.props.emptySkipsRender;
2277
2288
  },
2278
2289
  set: function set(value) {
2279
- this.props.emptySkipsRender = value;
2280
- this.update(this.props);
2290
+ if (this.props.emptySkipsRender !== value) {
2291
+ this.props.emptySkipsRender = value;
2292
+ this.update(this.props);
2293
+ }
2281
2294
  }
2282
2295
  }, {
2283
2296
  key: "connectedCallback",
@@ -2314,7 +2327,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2314
2327
  break;
2315
2328
 
2316
2329
  case 'empty-skips-render':
2317
- this.params = typeof newValue === 'string';
2330
+ this.emptySkipsRender = typeof newValue === 'string';
2318
2331
  break;
2319
2332
  }
2320
2333
  }
@@ -2328,7 +2341,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2328
2341
  return PiralExtension;
2329
2342
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2330
2343
 
2331
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.extensionName, PiralExtension);
2344
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.extensionName, PiralExtension);
2332
2345
  /**
2333
2346
  * This is a boundary to host elements from other frameworks - effectively vanishing
2334
2347
  * at runtime.
@@ -2361,7 +2374,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2361
2374
  return PiralPortal;
2362
2375
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2363
2376
 
2364
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.portalName, PiralPortal);
2377
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.portalName, PiralPortal);
2365
2378
  /**
2366
2379
  * This is a virtual element to aggregate rendering from other frameworks, mostly
2367
2380
  * used like piral-portal, but without context-hosting capabilities. This would
@@ -2395,12 +2408,12 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2395
2408
  return PiralSlot;
2396
2409
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2397
2410
 
2398
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_2__.slotName, PiralSlot);
2411
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.slotName, PiralSlot);
2399
2412
  }
2400
2413
 
2401
2414
  function renderElement(context, element, props) {
2402
2415
  if (typeof window !== 'undefined') {
2403
- var _renderInDom = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.renderInDom)(context, element, _components__WEBPACK_IMPORTED_MODULE_3__.ExtensionSlot, props),
2416
+ var _renderInDom = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.renderInDom)(context, element, _components__WEBPACK_IMPORTED_MODULE_4__.ExtensionSlot, props),
2404
2417
  _renderInDom2 = _slicedToArray(_renderInDom, 2),
2405
2418
  id = _renderInDom2[0],
2406
2419
  portal = _renderInDom2[1];
@@ -2417,7 +2430,7 @@ function renderElement(context, element, props) {
2417
2430
  };
2418
2431
 
2419
2432
  var update = function update(newProps) {
2420
- var _changeDomPortal = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.changeDomPortal)(id, portal, context, element, _components__WEBPACK_IMPORTED_MODULE_3__.ExtensionSlot, newProps);
2433
+ var _changeDomPortal = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.changeDomPortal)(id, portal, context, element, _components__WEBPACK_IMPORTED_MODULE_4__.ExtensionSlot, newProps);
2421
2434
 
2422
2435
  var _changeDomPortal2 = _slicedToArray(_changeDomPortal, 2);
2423
2436
 
@@ -3886,12 +3899,12 @@ function installPiralDebug(options) {
3886
3899
  debug: debugApiVersion,
3887
3900
  instance: {
3888
3901
  name: "minimal-piral",
3889
- version: "0.15.10-beta.5496",
3902
+ version: "0.15.11-beta.5506",
3890
3903
  dependencies: "tslib,react,react-dom,react-router,react-router-dom"
3891
3904
  },
3892
3905
  build: {
3893
- date: "2023-05-04T13:54:49.571Z",
3894
- cli: "0.15.10-beta.5496",
3906
+ date: "2023-05-11T13:26:15.198Z",
3907
+ cli: "0.15.10",
3895
3908
  compat: "0.15"
3896
3909
  }
3897
3910
  };
@@ -45102,4 +45115,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
45102
45115
 
45103
45116
  /******/ })()
45104
45117
  ;
45105
- //# sourceMappingURL=index.9b25e0.js.map
45118
+ //# sourceMappingURL=index.325b57.js.map