sample-cross-fx 0.14.23 → 0.14.24-beta.4157

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.
@@ -129049,22 +129049,30 @@ __webpack_require__.r(__webpack_exports__);
129049
129049
 
129050
129050
 
129051
129051
 
129052
+
129053
+ function defaultOrder(extensions) {
129054
+ return extensions;
129055
+ }
129052
129056
  /**
129053
129057
  * The extension slot component to be used when the available
129054
129058
  * extensions of a given name should be rendered at a specific
129055
129059
  * location.
129056
129060
  */
129057
129061
 
129062
+
129058
129063
  function ExtensionSlot(props) {
129059
129064
  const {
129060
129065
  name,
129061
129066
  render = _utils__WEBPACK_IMPORTED_MODULE_1__.defaultRender,
129062
129067
  empty,
129063
129068
  params,
129064
- children
129069
+ children,
129070
+ noEmptyRender = false,
129071
+ order = defaultOrder
129065
129072
  } = props;
129066
129073
  const extensions = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useGlobalState)(s => s.registry.extensions[name] || _utils__WEBPACK_IMPORTED_MODULE_3__.none);
129067
- return render(extensions.length === 0 && (0,piral_base__WEBPACK_IMPORTED_MODULE_4__.isfunc)(empty) ? [(0,_utils__WEBPACK_IMPORTED_MODULE_1__.defaultRender)(empty(), 'empty')] : extensions.map(({
129074
+ const isEmpty = extensions.length === 0 && (0,piral_base__WEBPACK_IMPORTED_MODULE_4__.isfunc)(empty);
129075
+ const content = isEmpty ? [(0,_utils__WEBPACK_IMPORTED_MODULE_1__.defaultRender)(empty(), 'empty')] : order(extensions).map(({
129068
129076
  component: Component,
129069
129077
  reference,
129070
129078
  defaults = {}
@@ -129072,7 +129080,13 @@ function ExtensionSlot(props) {
129072
129080
  key: `${(reference === null || reference === void 0 ? void 0 : reference.displayName) || '_'}${i}`,
129073
129081
  children: children,
129074
129082
  params: Object.assign(Object.assign({}, defaults), params || {})
129075
- })));
129083
+ }));
129084
+
129085
+ if (isEmpty && noEmptyRender) {
129086
+ return content[0];
129087
+ }
129088
+
129089
+ return render(content);
129076
129090
  }
129077
129091
  ExtensionSlot.displayName = `ExtensionSlot`;
129078
129092
 
@@ -129757,7 +129771,7 @@ function createInstance(config = {}) {
129757
129771
  const createApi = apiFactory(context, usedPlugins);
129758
129772
  const root = createApi({
129759
129773
  name: 'root',
129760
- version: "0.14.23" || 0,
129774
+ version: "0.14.24-beta.4157" || 0,
129761
129775
  spec: ''
129762
129776
  });
129763
129777
  const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
@@ -131757,11 +131771,11 @@ function installPiralDebug(options) {
131757
131771
  debug: debugApiVersion,
131758
131772
  instance: {
131759
131773
  name: "sample-cross-fx",
131760
- version: "0.14.23",
131774
+ version: "0.14.24-beta.4157",
131761
131775
  dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/dom,piral-ng/common,preact,riot,rxjs,vue,zone.js,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
131762
131776
  },
131763
131777
  build: {
131764
- date: "2022-05-01T12:50:23.676Z",
131778
+ date: "2022-05-05T13:51:26.101Z",
131765
131779
  cli: "0.14.23",
131766
131780
  compat: "0.14"
131767
131781
  },
@@ -254023,4 +254037,4 @@ const app = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(piral_
254023
254037
 
254024
254038
  /******/ })()
254025
254039
  ;
254026
- //# sourceMappingURL=index.e8d08a.js.map
254040
+ //# sourceMappingURL=index.16674d.js.map