sample-cross-fx 0.14.27 → 0.14.28-beta.4379

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.
@@ -132164,15 +132164,33 @@ function dispatchToRoot(event) {
132164
132164
  }
132165
132165
  }
132166
132166
 
132167
- function emitRenderEvent(source, name, params) {
132167
+ function emitRenderEvent(source, name, params, sourceRef, fallbackComponent) {
132168
132168
  const target = findTarget(source);
132169
+ const empty = typeof fallbackComponent === 'string' ? () => {} : undefined;
132170
+ const order = typeof sourceRef !== 'undefined' ? elements => {
132171
+ const oldItems = elements.map((el, id) => {
132172
+ var _a;
132173
+
132174
+ return {
132175
+ id,
132176
+ pilet: el.pilet,
132177
+ defaults: (_a = el.defaults) !== null && _a !== void 0 ? _a : {}
132178
+ };
132179
+ });
132180
+ const newItems = sourceRef.invokeMethod('Order', oldItems);
132181
+ return newItems.map(({
132182
+ id
132183
+ }) => elements[id]).filter(Boolean);
132184
+ } : undefined;
132169
132185
  const eventInit = {
132170
132186
  bubbles: true,
132171
132187
  detail: {
132172
132188
  target,
132173
132189
  props: {
132174
132190
  name,
132175
- params
132191
+ params,
132192
+ empty,
132193
+ order
132176
132194
  }
132177
132195
  }
132178
132196
  };
@@ -132250,7 +132268,17 @@ function createBlazorStarter(publicPath) {
132250
132268
  const originalBase = baseElement.href;
132251
132269
  baseElement.href = publicPath;
132252
132270
  return () => {
132253
- window.Blazor._internal.navigationManager.getBaseURI = () => originalBase;
132271
+ const navManager = window.Blazor._internal.navigationManager; //Overwrite to get NavigationManager in Blazor working, see https://github.com/smapiot/Piral.Blazor/issues/89
132272
+
132273
+ navManager.navigateTo = (route, opts) => {
132274
+ if (opts.forceLoad) {
132275
+ location.href = route;
132276
+ } else {
132277
+ window.Blazor.emitNavigateEvent(undefined, route, opts.replaceHistoryEntry);
132278
+ }
132279
+ };
132280
+
132281
+ navManager.getBaseURI = () => originalBase;
132254
132282
 
132255
132283
  return window.Blazor.start().then(() => {
132256
132284
  baseElement.href = originalBase;
@@ -137353,7 +137381,7 @@ function createInstance(config = {}) {
137353
137381
  const createApi = apiFactory(context, usedPlugins);
137354
137382
  const root = createApi({
137355
137383
  name: 'root',
137356
- version: "0.14.27" || 0,
137384
+ version: "0.14.28-beta.4379" || 0,
137357
137385
  spec: ''
137358
137386
  });
137359
137387
  const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
@@ -139353,12 +139381,12 @@ function installPiralDebug(options) {
139353
139381
  debug: debugApiVersion,
139354
139382
  instance: {
139355
139383
  name: "sample-cross-fx",
139356
- version: "0.14.27",
139384
+ version: "0.14.28-beta.4379",
139357
139385
  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"
139358
139386
  },
139359
139387
  build: {
139360
- date: "2022-06-07T00:20:56.560Z",
139361
- cli: "0.14.26",
139388
+ date: "2022-07-01T07:09:26.906Z",
139389
+ cli: "0.14.27",
139362
139390
  compat: "0.14"
139363
139391
  },
139364
139392
  pilets: {
@@ -262806,4 +262834,4 @@ const app = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7__.createElement(piral_
262806
262834
 
262807
262835
  /******/ })()
262808
262836
  ;
262809
- //# sourceMappingURL=index.7082a2.js.map
262837
+ //# sourceMappingURL=index.d5f55c.js.map