sample-piral 1.8.0-beta.7544 → 1.8.0-beta.7653

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.
@@ -2410,11 +2410,12 @@ __webpack_require__.r(__webpack_exports__);
2410
2410
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2411
2411
  /* harmony export */ renderElement: () => (/* binding */ renderElement)
2412
2412
  /* harmony export */ });
2413
- /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/lib/components/ExtensionSlot.js");
2413
+ /* harmony import */ var _components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components */ "../../framework/piral-core/lib/components/ExtensionSlot.js");
2414
+ /* harmony import */ var _app_codegen__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../app.codegen */ "../../framework/piral-core/app.codegen");
2414
2415
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/lib/utils/helpers.js");
2415
2416
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/lib/utils/extension.js");
2416
2417
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/lib/utils/compare.js");
2417
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/lib/utils/foreign.js");
2418
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils */ "../../framework/piral-core/lib/utils/foreign.js");
2418
2419
  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); }
2419
2420
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2420
2421
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -2439,8 +2440,8 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
2439
2440
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
2440
2441
 
2441
2442
 
2443
+
2442
2444
  if (typeof window !== 'undefined' && 'customElements' in window) {
2443
- var contents = 'contents';
2444
2445
  /**
2445
2446
  * This is a nice abstraction allowing anyone to actually use the extension system
2446
2447
  * brought by Piral. Not all props of the extension system are actually exposed.
@@ -2540,7 +2541,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2540
2541
  }, {
2541
2542
  key: "connectedCallback",
2542
2543
  value: function connectedCallback() {
2543
- this.style.display = contents;
2544
+ (0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
2544
2545
  if (this.isConnected) {
2545
2546
  this.dispatchEvent(new CustomEvent('render-html', {
2546
2547
  bubbles: true,
@@ -2582,7 +2583,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2582
2583
  }]);
2583
2584
  return PiralExtension;
2584
2585
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2585
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.extensionName, PiralExtension);
2586
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.extensionName, PiralExtension);
2586
2587
  /**
2587
2588
  * This is a boundary to host elements from other frameworks - effectively vanishing
2588
2589
  * at runtime.
@@ -2603,12 +2604,12 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2603
2604
  _createClass(PiralPortal, [{
2604
2605
  key: "connectedCallback",
2605
2606
  value: function connectedCallback() {
2606
- this.style.display = contents;
2607
+ (0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
2607
2608
  }
2608
2609
  }]);
2609
2610
  return PiralPortal;
2610
2611
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2611
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.portalName, PiralPortal);
2612
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.portalName, PiralPortal);
2612
2613
  /**
2613
2614
  * This is a virtual element to aggregate rendering from other frameworks, mostly
2614
2615
  * used like piral-portal, but without context-hosting capabilities. This would
@@ -2630,12 +2631,12 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2630
2631
  _createClass(PiralSlot, [{
2631
2632
  key: "connectedCallback",
2632
2633
  value: function connectedCallback() {
2633
- this.style.display = contents;
2634
+ (0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
2634
2635
  }
2635
2636
  }]);
2636
2637
  return PiralSlot;
2637
2638
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2638
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.slotName, PiralSlot);
2639
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.slotName, PiralSlot);
2639
2640
  /**
2640
2641
  * This is a virtual element to render children defined in React / by Piral in other
2641
2642
  * frameworks.
@@ -2670,7 +2671,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2670
2671
  _createClass(PiralContent, [{
2671
2672
  key: "connectedCallback",
2672
2673
  value: function connectedCallback() {
2673
- this.style.display = contents;
2674
+ (0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
2674
2675
  var cid = this.getAttribute('cid');
2675
2676
  var content = PiralContent.contentAssignments[cid];
2676
2677
  var portal = this.closest('piral-portal');
@@ -2698,7 +2699,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2698
2699
  window.assignContent = function (cid, content) {
2699
2700
  PiralContent.contentAssignments[cid] = content;
2700
2701
  };
2701
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.contentName, PiralContent);
2702
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.contentName, PiralContent);
2702
2703
  /**
2703
2704
  * This is a virtual element to indicate that the contained content is
2704
2705
  * rendered from a micro frontend's component. It will be used by the
@@ -2726,7 +2727,7 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2726
2727
  }, {
2727
2728
  key: "connectedCallback",
2728
2729
  value: function connectedCallback() {
2729
- this.style.display = contents;
2730
+ (0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
2730
2731
  this.deferEvent('add-component');
2731
2732
  }
2732
2733
  }, {
@@ -2743,18 +2744,18 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
2743
2744
  origin: this.origin
2744
2745
  }
2745
2746
  });
2746
- (0,_utils__WEBPACK_IMPORTED_MODULE_3__.defer)(function () {
2747
+ (0,_utils__WEBPACK_IMPORTED_MODULE_4__.defer)(function () {
2747
2748
  return window.dispatchEvent(ev);
2748
2749
  });
2749
2750
  }
2750
2751
  }]);
2751
2752
  return PiralComponent;
2752
2753
  }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
2753
- customElements.define(_utils__WEBPACK_IMPORTED_MODULE_3__.componentName, PiralComponent);
2754
+ customElements.define(_utils__WEBPACK_IMPORTED_MODULE_4__.componentName, PiralComponent);
2754
2755
  }
2755
2756
  function renderElement(context, element, props) {
2756
2757
  if (typeof window !== 'undefined') {
2757
- var _renderInDom = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.renderInDom)(context, element, _components__WEBPACK_IMPORTED_MODULE_4__.ExtensionSlot, props),
2758
+ var _renderInDom = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.renderInDom)(context, element, _components__WEBPACK_IMPORTED_MODULE_5__.ExtensionSlot, props),
2758
2759
  _renderInDom2 = _slicedToArray(_renderInDom, 2),
2759
2760
  id = _renderInDom2[0],
2760
2761
  portal = _renderInDom2[1];
@@ -2767,7 +2768,7 @@ function renderElement(context, element, props) {
2767
2768
  element.removeEventListener(evName, handler);
2768
2769
  };
2769
2770
  var update = function update(newProps) {
2770
- var _changeDomPortal = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.changeDomPortal)(id, portal, context, element, _components__WEBPACK_IMPORTED_MODULE_4__.ExtensionSlot, newProps);
2771
+ var _changeDomPortal = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.changeDomPortal)(id, portal, context, element, _components__WEBPACK_IMPORTED_MODULE_5__.ExtensionSlot, newProps);
2771
2772
  var _changeDomPortal2 = _slicedToArray(_changeDomPortal, 2);
2772
2773
  id = _changeDomPortal2[0];
2773
2774
  portal = _changeDomPortal2[1];
@@ -6768,12 +6769,12 @@ function installPiralDebug(options) {
6768
6769
  debug: debugApiVersion,
6769
6770
  instance: {
6770
6771
  name: "sample-piral",
6771
- version: "1.8.0-beta.7544",
6772
+ version: "1.8.0-beta.7653",
6772
6773
  dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
6773
6774
  },
6774
6775
  build: {
6775
- date: "2024-11-04T17:17:55.476Z",
6776
- cli: "1.8.0-beta.7544",
6776
+ date: "2024-12-12T17:00:46.686Z",
6777
+ cli: "1.8.0-beta.7653",
6777
6778
  compat: "1"
6778
6779
  }
6779
6780
  };
@@ -7025,6 +7026,8 @@ function decycle(obj) {
7025
7026
  return "<error>";
7026
7027
  } else if (_value instanceof Node) {
7027
7028
  return "<node>";
7029
+ } else if (_value['$$typeof'] === Symbol["for"]('react.element')) {
7030
+ return '<react.element>';
7028
7031
  } else if (_typeof(_value) === 'object') {
7029
7032
  for (var i = 0; i < objects.length; i++) {
7030
7033
  if (objects[i] === _value) {
@@ -12407,6 +12410,7 @@ module.exports = function isArguments(value) {
12407
12410
  var _node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache;
12408
12411
  __webpack_require__.r(__webpack_exports__);
12409
12412
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12413
+ /* harmony export */ applyStyle: () => (/* binding */ applyStyle),
12410
12414
  /* harmony export */ createDefaultState: () => (/* binding */ createDefaultState),
12411
12415
  /* harmony export */ createNavigation: () => (/* reexport safe */ piral_core_lib_defaults_navigator_v5_js__WEBPACK_IMPORTED_MODULE_6__.createNavigation),
12412
12416
  /* harmony export */ createRedirect: () => (/* reexport safe */ piral_core_lib_defaults_navigator_v5_js__WEBPACK_IMPORTED_MODULE_6__.createRedirect),
@@ -12451,6 +12455,11 @@ __webpack_require__.r(__webpack_exports__);
12451
12455
 
12452
12456
 
12453
12457
 
12458
+ function applyStyle(element) {
12459
+ element.style.display = 'contents';
12460
+ }
12461
+
12462
+
12454
12463
  function fillDependencies(deps) {
12455
12464
  deps['sample-piral']={};deps["reactstrap"]=_node_modules_reactstrap_es_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["reactstrap@8.10.1"]=_node_modules_reactstrap_es_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["tslib"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_3__;deps["tslib@2.5.2"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_3__;deps["react"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_0__;deps["react@18.2.0"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_0__;deps["react-dom"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1__, 2)));deps["react-dom@18.2.0"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_1__, 2)));deps["react-router"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_4__;deps["react-router@5.3.4"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_4__;deps["react-router-dom"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_5__;deps["react-router-dom@5.3.4"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_5__
12456
12465
  }
@@ -67028,4 +67037,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
67028
67037
 
67029
67038
  /******/ })()
67030
67039
  ;
67031
- //# sourceMappingURL=index.9fa4cd.js.map
67040
+ //# sourceMappingURL=index.883d9b.js.map