sample-piral 0.14.16 → 0.14.17-beta.3882

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.
@@ -1663,7 +1663,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
1663
1663
  function isPrimitiveExport(content) {
1664
1664
  var type = _typeof(content);
1665
1665
 
1666
- return type === 'function' || type === 'number' || type === 'boolean' || type === 'symbol' || type === 'string' || type === 'bigint' || Array.isArray(content);
1666
+ return type === 'number' || type === 'boolean' || type === 'symbol' || type === 'string' || type === 'bigint' || Array.isArray(content);
1667
1667
  }
1668
1668
 
1669
1669
  var systemRegister = System.constructor.prototype.register;
@@ -1681,6 +1681,14 @@ System.constructor.prototype.register = function () {
1681
1681
 
1682
1682
  if (content instanceof Promise) {
1683
1683
  return content.then(exp);
1684
+ } else if (typeof content === 'function') {
1685
+ _export('__esModule', true);
1686
+
1687
+ Object.keys(content).forEach(function (prop) {
1688
+ _export(prop, content[prop]);
1689
+ });
1690
+
1691
+ _export('default', content);
1684
1692
  } else if (isPrimitiveExport(content)) {
1685
1693
  _export('__esModule', true);
1686
1694
 
@@ -2660,6 +2668,7 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
2660
2668
  _classCallCheck(this, ForeignComponentContainer);
2661
2669
 
2662
2670
  _this = _super.apply(this, arguments);
2671
+ _this.local = {};
2663
2672
 
2664
2673
  _this.handler = function (ev) {
2665
2674
  var innerProps = _this.props.innerProps;
@@ -2685,7 +2694,7 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
2685
2694
  var mount = $component.mount;
2686
2695
 
2687
2696
  if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
2688
- mount(node, innerProps, $context);
2697
+ mount(node, innerProps, $context, this.local);
2689
2698
  node.addEventListener('render-html', this.handler, false);
2690
2699
  }
2691
2700
 
@@ -2706,7 +2715,7 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
2706
2715
  previous && this.componentWillUnmount();
2707
2716
  current && this.componentDidMount();
2708
2717
  } else if ((0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(update)) {
2709
- update(current, innerProps, $context);
2718
+ update(current, innerProps, $context, this.local);
2710
2719
  }
2711
2720
  }
2712
2721
  }, {
@@ -2717,7 +2726,7 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
2717
2726
  var unmount = $component.unmount;
2718
2727
 
2719
2728
  if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
2720
- unmount(node);
2729
+ unmount(node, this.local);
2721
2730
  node.removeEventListener('render-html', this.handler, false);
2722
2731
  }
2723
2732
 
@@ -3625,7 +3634,7 @@ function createInstance() {
3625
3634
  var createApi = apiFactory(context, usedPlugins);
3626
3635
  var root = createApi({
3627
3636
  name: 'root',
3628
- version: "0.14.16" || 0,
3637
+ version: "0.14.17-beta.3882" || 0,
3629
3638
  spec: ''
3630
3639
  });
3631
3640
  var options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
@@ -9496,12 +9505,12 @@ function installPiralDebug(options) {
9496
9505
  debug: debugApiVersion,
9497
9506
  instance: {
9498
9507
  name: "sample-piral",
9499
- version: "0.14.16",
9508
+ version: "0.14.17-beta.3882",
9500
9509
  dependencies: "reactstrap,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
9501
9510
  },
9502
9511
  build: {
9503
- date: "2022-03-10T15:25:52.075Z",
9504
- cli: "0.14.15",
9512
+ date: "2022-03-11T15:48:07.693Z",
9513
+ cli: "0.14.16",
9505
9514
  compat: "0.14"
9506
9515
  },
9507
9516
  pilets: {
@@ -80914,4 +80923,4 @@ var layout_1 = __webpack_require__(/*! ./layout */ "./src/layout.tsx");
80914
80923
 
80915
80924
  /******/ })()
80916
80925
  ;
80917
- //# sourceMappingURL=index.b61165.js.map
80926
+ //# sourceMappingURL=index.6a7669.js.map