sample-cross-fx 0.15.0-beta.4672 → 0.15.0-beta.4696

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.
package/app/index.d.ts CHANGED
@@ -489,6 +489,10 @@ export interface PageComponentProps<T = any, S = any> extends RouteBaseProps<T,
489
489
  * The meta data registered with the page.
490
490
  */
491
491
  meta: PiralPageMeta;
492
+ /**
493
+ * The children of the page.
494
+ */
495
+ children: React.ReactNode;
492
496
  }
493
497
 
494
498
  /**
@@ -54234,8 +54234,8 @@ __webpack_require__.r(__webpack_exports__);
54234
54234
  /* harmony export */ "createConverter": () => (/* binding */ createConverter)
54235
54235
  /* harmony export */ });
54236
54236
  /* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./events */ "../../converters/piral-blazor/esm/events.js");
54237
- /* harmony import */ var _interop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interop */ "../../converters/piral-blazor/esm/interop.js");
54238
- /* harmony import */ var _infra_codegen__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../infra.codegen */ "../../converters/piral-blazor/infra.codegen");
54237
+ /* harmony import */ var _interop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./interop */ "../../converters/piral-blazor/esm/interop.js");
54238
+ /* harmony import */ var _infra_codegen__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../infra.codegen */ "../../converters/piral-blazor/infra.codegen");
54239
54239
 
54240
54240
 
54241
54241
 
@@ -54262,7 +54262,10 @@ function prefixMediaSources(component, prefix) {
54262
54262
  }
54263
54263
 
54264
54264
  function project(component, destination, options) {
54265
- (options === null || options === void 0 ? void 0 : options.resourcePathRoot) && prefixMediaSources(component, options.resourcePathRoot);
54265
+ if ((options === null || options === void 0 ? void 0 : options.resourcePathRoot) && !_infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].noMutation) {
54266
+ prefixMediaSources(component, options.resourcePathRoot);
54267
+ }
54268
+
54266
54269
  destination.appendChild(component);
54267
54270
  }
54268
54271
 
@@ -54277,7 +54280,7 @@ function makeUrl(href) {
54277
54280
  }
54278
54281
 
54279
54282
  function createConverter(lazy) {
54280
- const boot = (0,_interop__WEBPACK_IMPORTED_MODULE_0__.createBootLoader)(_infra_codegen__WEBPACK_IMPORTED_MODULE_1__["default"]);
54283
+ const boot = (0,_interop__WEBPACK_IMPORTED_MODULE_1__.createBootLoader)(_infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].url, _infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].satellites);
54281
54284
  let loader = !lazy && boot();
54282
54285
  let listener = undefined;
54283
54286
 
@@ -54304,7 +54307,7 @@ function createConverter(lazy) {
54304
54307
  // POP is already handled by .NET
54305
54308
  if (action !== 'POP') {
54306
54309
  const url = makeUrl(location.href);
54307
- (0,_interop__WEBPACK_IMPORTED_MODULE_0__.callNotifyLocationChanged)(url, action === 'REPLACE');
54310
+ (0,_interop__WEBPACK_IMPORTED_MODULE_1__.callNotifyLocationChanged)(url, action === 'REPLACE');
54308
54311
  }
54309
54312
  });
54310
54313
  }
@@ -54312,7 +54315,7 @@ function createConverter(lazy) {
54312
54315
  locals.state = 'fresh';
54313
54316
  locals.update = noop;
54314
54317
  locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_2__.attachEvents)(el, ev => data.piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? nav.replace(ev.detail.to, ev.detail.store) : nav.push(ev.detail.to, ev.detail.state));
54315
- (loader || (loader = boot())).then(root => dependency().then(() => (0,_interop__WEBPACK_IMPORTED_MODULE_0__.activate)(moduleName, props)).then(refId => {
54318
+ (loader || (loader = boot())).then(root => dependency().then(() => (0,_interop__WEBPACK_IMPORTED_MODULE_1__.activate)(moduleName, props)).then(refId => {
54316
54319
  if (locals.state === 'fresh') {
54317
54320
  locals.id = refId;
54318
54321
  locals.node = root.querySelector(`#${locals.id} > div`);
@@ -54328,7 +54331,7 @@ function createConverter(lazy) {
54328
54331
  update(el, data, ctx, locals) {
54329
54332
  enqueueChange(locals, () => {
54330
54333
  const props = Object.assign(Object.assign({}, args), data);
54331
- (0,_interop__WEBPACK_IMPORTED_MODULE_0__.reactivate)(moduleName, locals.referenceId, props);
54334
+ (0,_interop__WEBPACK_IMPORTED_MODULE_1__.reactivate)(moduleName, locals.referenceId, props);
54332
54335
  });
54333
54336
  },
54334
54337
 
@@ -54338,7 +54341,7 @@ function createConverter(lazy) {
54338
54341
  locals.dispose();
54339
54342
  enqueueChange(locals, root => {
54340
54343
  root.querySelector(`#${locals.id}`).appendChild(locals.node);
54341
- (0,_interop__WEBPACK_IMPORTED_MODULE_0__.deactivate)(moduleName, locals.referenceId);
54344
+ (0,_interop__WEBPACK_IMPORTED_MODULE_1__.deactivate)(moduleName, locals.referenceId);
54342
54345
  });
54343
54346
  el.innerHTML = '';
54344
54347
  locals.state = 'removed';
@@ -54441,7 +54444,7 @@ function createDependencyLoader(convert, lazy = true) {
54441
54444
  const load = () => (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
54442
54445
  for (const dllUrl of references) {
54443
54446
  if (dllUrl.endsWith('.dll')) {
54444
- const urlWithoutExtension = dllUrl.substr(0, dllUrl.length - 4);
54447
+ const urlWithoutExtension = dllUrl.substring(0, dllUrl.length - 4);
54445
54448
  const pdbName = `${urlWithoutExtension}.pdb`;
54446
54449
  const pdbUrl = references.find(m => m === pdbName);
54447
54450
 
@@ -54676,6 +54679,19 @@ function computePath() {
54676
54679
  return '/';
54677
54680
  }
54678
54681
 
54682
+ function addScript(url) {
54683
+ return new Promise((resolve, reject) => {
54684
+ const script = document.createElement('script');
54685
+ script.src = url;
54686
+
54687
+ script.onerror = () => reject();
54688
+
54689
+ script.onload = () => resolve();
54690
+
54691
+ document.body.appendChild(script);
54692
+ });
54693
+ }
54694
+
54679
54695
  function activate(moduleName, props) {
54680
54696
  return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, props);
54681
54697
  }
@@ -54719,11 +54735,12 @@ function initialize(scriptUrl, publicPath) {
54719
54735
  document.body.appendChild(script);
54720
54736
  });
54721
54737
  }
54722
- function createBootLoader(scriptUrl) {
54738
+ function createBootLoader(scriptUrl, satellites) {
54723
54739
  const publicPath = computePath();
54724
54740
  return () => {
54725
54741
  if (typeof window.$blazorLoader === 'undefined') {
54726
- window.$blazorLoader = initialize(scriptUrl, publicPath);
54742
+ // we load all satellite scripts before we initialize blazor
54743
+ window.$blazorLoader = Promise.all(satellites.map(url => addScript(url))).then(() => initialize(scriptUrl, publicPath));
54727
54744
  }
54728
54745
 
54729
54746
  return window.$blazorLoader;
@@ -62791,12 +62808,12 @@ function installPiralDebug(options) {
62791
62808
  debug: debugApiVersion,
62792
62809
  instance: {
62793
62810
  name: "sample-cross-fx",
62794
- version: "0.15.0-beta.4672",
62811
+ version: "0.15.0-beta.4696",
62795
62812
  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,tslib,react,react-dom,react-router,react-router-dom"
62796
62813
  },
62797
62814
  build: {
62798
- date: "2022-09-21T22:45:27.818Z",
62799
- cli: "0.14.31",
62815
+ date: "2022-09-29T15:32:34.689Z",
62816
+ cli: "0.14.32",
62800
62817
  compat: "0.14"
62801
62818
  }
62802
62819
  };
@@ -74504,7 +74521,7 @@ __webpack_require__.r(__webpack_exports__);
74504
74521
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
74505
74522
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
74506
74523
  /* harmony export */ });
74507
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("_framework/blazor.webassembly.js");
74524
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"url":"_framework/blazor.webassembly.js","satellites":[],"noMutation":false,"renderMode":"projection"});
74508
74525
 
74509
74526
  /***/ }),
74510
74527
 
@@ -211289,4 +211306,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
211289
211306
 
211290
211307
  /******/ })()
211291
211308
  ;
211292
- //# sourceMappingURL=index.b0ccff.js.map
211309
+ //# sourceMappingURL=index.dd11de.js.map