sample-cross-fx 0.15.8-beta.5238 → 0.15.8-beta.5269

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.
@@ -54385,7 +54385,7 @@ function createConverter(lazy, opts, language, logLevel) {
54385
54385
  });
54386
54386
  }
54387
54387
 
54388
- (loader || (loader = boot())).then(config => dependency(config).then(() => {
54388
+ (loader || (convert.loader = loader = boot())).then(config => dependency(config).then(() => {
54389
54389
  if (locals.state === 'fresh') {
54390
54390
  const [_, capabilities, applyChanges] = config;
54391
54391
  const fn = capabilities.includes('custom-element') ? mountModern : mountClassic;
@@ -54533,84 +54533,96 @@ function createDependencyLoader(convert) {
54533
54533
 
54534
54534
  defineBlazorReferences(references, meta = {}, satellites = {}, prio = 0) {
54535
54535
  prio = Math.max(prio, 0);
54536
- const promise = new Promise(resolve => {
54537
- const load = ([_, capabilities]) => (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
54538
- // let others finish first
54539
- yield Promise.all(depsWithPrios.filter(m => m.prio > prio).map(m => m.promise));
54540
- window.dispatchEvent(new CustomEvent('loading-blazor-pilet', {
54541
- detail: meta
54542
- }));
54536
+ const depWithPrio = {
54537
+ prio,
54543
54538
 
54544
- if (capabilities.includes('load')) {
54545
- // new loading mechanism
54546
- if (!capabilities.includes('language')) {
54547
- satellites = undefined;
54548
- }
54549
-
54550
- const dependencies = references.filter(m => m.endsWith('.dll'));
54551
- const dllUrl = dependencies.pop();
54552
- const piletName = dllUrl.substring(0, dllUrl.length - 4);
54553
- const piletPdb = `${piletName}.pdb`;
54554
- const pdbUrl = references.find(m => m === piletPdb);
54555
- const id = Math.random().toString(26).substring(2);
54556
- yield (0,_interop__WEBPACK_IMPORTED_MODULE_1__.loadBlazorPilet)(id, {
54557
- name: meta.name || '(unknown)',
54558
- version: meta.version || '0.0.0',
54559
- config: JSON.stringify(meta.config || {}),
54560
- baseUrl: meta.basePath || dllUrl.substring(0, dllUrl.lastIndexOf('/')).replace('/_framework/', '/'),
54561
- dependencies,
54562
- satellites,
54563
- dllUrl,
54564
- pdbUrl
54565
- });
54566
- loadedBlazorPilets.push(id);
54567
- } else {
54568
- // old loading mechanism
54569
- for (const dllUrl of references) {
54570
- const dllName = dllUrl.substring(dllUrl.lastIndexOf('/') + 1);
54539
+ load() {
54540
+ return Promise.resolve();
54541
+ }
54542
+
54543
+ };
54544
+ let result = false;
54571
54545
 
54572
- if (dllUrl.endsWith('.dll')) {
54573
- const entry = loadedDependencies.find(m => m.name === dllName);
54546
+ const load = ([_, capabilities]) => (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
54547
+ // let others finish first
54548
+ yield Promise.all(depsWithPrios.filter(m => m.prio > prio).map(m => m.load()));
54549
+ window.dispatchEvent(new CustomEvent('loading-blazor-pilet', {
54550
+ detail: meta
54551
+ }));
54574
54552
 
54575
- if (entry) {
54576
- entry.count++;
54577
- yield entry.promise;
54578
- } else {
54579
- const urlWithoutExtension = dllUrl.substring(0, dllUrl.length - 4);
54580
- const pdbName = `${urlWithoutExtension}.pdb`;
54581
- const pdbUrl = references.find(m => m === pdbName);
54582
- const promise = pdbUrl ? (0,_interop__WEBPACK_IMPORTED_MODULE_1__.loadResourceWithSymbol)(dllUrl, pdbUrl) : (0,_interop__WEBPACK_IMPORTED_MODULE_1__.loadResource)(dllUrl);
54583
- loadedDependencies.push({
54584
- name: dllName,
54585
- url: dllUrl,
54586
- count: 1,
54587
- promise
54588
- });
54589
- yield promise;
54590
- }
54553
+ if (capabilities.includes('load')) {
54554
+ // new loading mechanism
54555
+ if (!capabilities.includes('language')) {
54556
+ satellites = undefined;
54557
+ }
54558
+
54559
+ const dependencies = references.filter(m => m.endsWith('.dll'));
54560
+ const dllUrl = dependencies.pop();
54561
+ const piletName = dllUrl.substring(0, dllUrl.length - 4);
54562
+ const piletPdb = `${piletName}.pdb`;
54563
+ const pdbUrl = references.find(m => m === piletPdb);
54564
+ const id = Math.random().toString(26).substring(2);
54565
+ yield (0,_interop__WEBPACK_IMPORTED_MODULE_1__.loadBlazorPilet)(id, {
54566
+ name: meta.name || '(unknown)',
54567
+ version: meta.version || '0.0.0',
54568
+ config: JSON.stringify(meta.config || {}),
54569
+ baseUrl: meta.basePath || dllUrl.substring(0, dllUrl.lastIndexOf('/')).replace('/_framework/', '/'),
54570
+ dependencies,
54571
+ satellites,
54572
+ dllUrl,
54573
+ pdbUrl
54574
+ });
54575
+ loadedBlazorPilets.push(id);
54576
+ } else {
54577
+ // old loading mechanism
54578
+ for (const dllUrl of references) {
54579
+ const dllName = dllUrl.substring(dllUrl.lastIndexOf('/') + 1);
54580
+
54581
+ if (dllUrl.endsWith('.dll')) {
54582
+ const entry = loadedDependencies.find(m => m.name === dllName);
54591
54583
 
54592
- definedBlazorReferences.push(dllName);
54584
+ if (entry) {
54585
+ entry.count++;
54586
+ yield entry.promise;
54587
+ } else {
54588
+ const urlWithoutExtension = dllUrl.substring(0, dllUrl.length - 4);
54589
+ const pdbName = `${urlWithoutExtension}.pdb`;
54590
+ const pdbUrl = references.find(m => m === pdbName);
54591
+ const promise = pdbUrl ? (0,_interop__WEBPACK_IMPORTED_MODULE_1__.loadResourceWithSymbol)(dllUrl, pdbUrl) : (0,_interop__WEBPACK_IMPORTED_MODULE_1__.loadResource)(dllUrl);
54592
+ loadedDependencies.push({
54593
+ name: dllName,
54594
+ url: dllUrl,
54595
+ count: 1,
54596
+ promise
54597
+ });
54598
+ yield promise;
54593
54599
  }
54600
+
54601
+ definedBlazorReferences.push(dllName);
54594
54602
  }
54595
- } // inform remaining that this one finished
54603
+ }
54604
+ } // inform remaining that this one finished
54596
54605
 
54597
54606
 
54598
- window.dispatchEvent(new CustomEvent('loaded-blazor-pilet', {
54599
- detail: meta
54600
- }));
54601
- resolve();
54602
- });
54607
+ window.dispatchEvent(new CustomEvent('loaded-blazor-pilet', {
54608
+ detail: meta
54609
+ }));
54610
+ });
54611
+
54612
+ depWithPrio.load = () => {
54613
+ if (!result) {
54614
+ result = convert.loader.then(load);
54615
+ }
54603
54616
 
54604
- let result = !convert.lazy && convert.loader.then(load);
54617
+ return result;
54618
+ };
54605
54619
 
54606
- dependency = config => result || (result = load(config));
54607
- });
54620
+ result = !convert.lazy && convert.loader.then(load);
54621
+
54622
+ dependency = config => result || (result = load(config));
54608
54623
 
54609
54624
  if (prio) {
54610
- depsWithPrios.push({
54611
- prio,
54612
- promise
54613
- });
54625
+ depsWithPrios.push(depWithPrio);
54614
54626
  }
54615
54627
  },
54616
54628
 
@@ -54871,9 +54883,16 @@ function createBlazorStarter(publicPath) {
54871
54883
  navManager.navigateTo = (route, opts) => {
54872
54884
  if (opts.forceLoad) {
54873
54885
  location.href = route;
54874
- } else {
54875
- window.Blazor.emitNavigateEvent(undefined, route, opts.replaceHistoryEntry);
54886
+ return;
54876
54887
  }
54888
+
54889
+ if (route.startsWith(location.origin) && '') {} else if (/^https?:\/\//.test(route)) {
54890
+ // prevent absolute URLs to be a standard navigation
54891
+ location.href = route;
54892
+ return;
54893
+ }
54894
+
54895
+ window.Blazor.emitNavigateEvent(undefined, route, opts.replaceHistoryEntry);
54877
54896
  };
54878
54897
 
54879
54898
  navManager.getBaseURI = () => originalBase;
@@ -63791,12 +63810,12 @@ function installPiralDebug(options) {
63791
63810
  debug: debugApiVersion,
63792
63811
  instance: {
63793
63812
  name: "sample-cross-fx",
63794
- version: "0.15.8-beta.5238",
63813
+ version: "0.15.8-beta.5269",
63795
63814
  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"
63796
63815
  },
63797
63816
  build: {
63798
- date: "2023-03-03T08:52:52.826Z",
63799
- cli: "0.15.8-beta.5238",
63817
+ date: "2023-03-07T12:43:37.614Z",
63818
+ cli: "0.15.8-beta.5269",
63800
63819
  compat: "0.15"
63801
63820
  }
63802
63821
  };
@@ -216644,4 +216663,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
216644
216663
 
216645
216664
  /******/ })()
216646
216665
  ;
216647
- //# sourceMappingURL=index.489754.js.map
216666
+ //# sourceMappingURL=index.315e0d.js.map