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

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.7655",
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-15T15:15:30.144Z",
6777
+ cli: "1.8.0-beta.7655",
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
  }
@@ -64968,7 +64977,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
64968
64977
  var load = loader8[REGISTRY][id];
64969
64978
  if (load) return load;
64970
64979
  var importerSetters = [];
64971
- var ns = Object.create(null);
64980
+ var ns = /* @__PURE__ */Object.create(null);
64972
64981
  if (toStringTag$1) Object.defineProperty(ns, toStringTag$1, {
64973
64982
  value: "Module"
64974
64983
  });
@@ -65036,17 +65045,34 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
65036
65045
  });
65037
65046
  return load = loader8[REGISTRY][id] = {
65038
65047
  id: id,
65048
+ // importerSetters, the setters functions registered to this dependency
65049
+ // we retain this to add more later
65039
65050
  i: importerSetters,
65051
+ // module namespace object
65040
65052
  n: ns,
65053
+ // extra module information for import assertion
65054
+ // shape like: { assert: { type: 'xyz' } }
65041
65055
  m: meta,
65056
+ // instantiate
65042
65057
  I: instantiatePromise,
65058
+ // link
65043
65059
  L: linkPromise,
65060
+ // whether it has hoisted exports
65044
65061
  h: false,
65062
+ // On instantiate completion we have populated:
65063
+ // dependency load records
65045
65064
  d: void 0,
65065
+ // execution function
65046
65066
  e: void 0,
65067
+ // On execution we have populated:
65068
+ // the execution error if any
65047
65069
  er: void 0,
65070
+ // in the case of TLA, the execution promise
65048
65071
  E: void 0,
65072
+ // On execution, L, I, E cleared
65073
+ // Promise for top-level completion
65049
65074
  C: void 0,
65075
+ // parent instantiator / executor
65050
65076
  p: void 0
65051
65077
  };
65052
65078
  }
@@ -65073,7 +65099,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
65073
65099
  return load.n;
65074
65100
  });
65075
65101
  }
65076
- var nullContext = Object.freeze(Object.create(null));
65102
+ var nullContext = Object.freeze( /* @__PURE__ */Object.create(null));
65077
65103
  function postOrderExec(loader8, load, seen) {
65078
65104
  if (seen[load.id]) return;
65079
65105
  seen[load.id] = true;
@@ -65398,7 +65424,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
65398
65424
  }));
65399
65425
  });
65400
65426
  if (wasmContentType.test(contentType)) return (WebAssembly.compileStreaming ? WebAssembly.compileStreaming(res) : res.arrayBuffer().then(WebAssembly.compile)).then(function (module) {
65401
- if (!global2.System.wasmModules) global2.System.wasmModules = Object.create(null);
65427
+ if (!global2.System.wasmModules) global2.System.wasmModules = /* @__PURE__ */Object.create(null);
65402
65428
  global2.System.wasmModules[url] = module;
65403
65429
  var deps = [];
65404
65430
  var setterSources = [];
@@ -65437,7 +65463,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
65437
65463
  if (toStringTag && module[toStringTag] === "Module") {
65438
65464
  ns = module;
65439
65465
  } else {
65440
- ns = Object.assign(Object.create(null), module);
65466
+ ns = Object.assign( /* @__PURE__ */Object.create(null), module);
65441
65467
  if (toStringTag) Object.defineProperty(ns, toStringTag, {
65442
65468
  value: "Module"
65443
65469
  });
@@ -65523,8 +65549,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
65523
65549
  System2.constructor = SystemJS;
65524
65550
  var firstNamedDefine, firstName;
65525
65551
  function setRegisterRegistry(systemInstance) {
65526
- systemInstance.registerRegistry = Object.create(null);
65527
- systemInstance.namedRegisterAliases = Object.create(null);
65552
+ systemInstance.registerRegistry = /* @__PURE__ */Object.create(null);
65553
+ systemInstance.namedRegisterAliases = /* @__PURE__ */Object.create(null);
65528
65554
  }
65529
65555
  var register = systemJSPrototype.register;
65530
65556
  systemJSPrototype.register = function (name, deps, declare, metas) {
@@ -66705,9 +66731,13 @@ function createListener() {
66705
66731
  return events;
66706
66732
  }
66707
66733
 
66708
- /*!
66709
- * SystemJS 6.14.2
66710
- */
66734
+ /*! Bundled license information:
66735
+
66736
+ systemjs/dist/system.js:
66737
+ (*!
66738
+ * SystemJS 6.14.2
66739
+ *)
66740
+ */
66711
66741
 
66712
66742
  /***/ }),
66713
66743
 
@@ -67028,4 +67058,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
67028
67058
 
67029
67059
  /******/ })()
67030
67060
  ;
67031
- //# sourceMappingURL=index.9fa4cd.js.map
67061
+ //# sourceMappingURL=index.7006d4.js.map