sample-cross-fx 1.2.0-beta.5869 → 1.3.0-beta.5959
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 +2 -1
- package/app/{index.6d9aab.js → index.f9a06b.js} +14 -10
- package/app/{index.6d9aab.js.map → index.f9a06b.js.map} +1 -1
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +20 -20
package/app/index.d.ts
CHANGED
|
@@ -410,8 +410,9 @@ export interface PiletBlazorApi {
|
|
|
410
410
|
* @param referenceUrls The URLs pointing to the different DLLs to include.
|
|
411
411
|
* @param satellites The URLs of the potential satellite DLLs to include.
|
|
412
412
|
* @param prio The loading priority of the DLLs. Higher numbers will always be loaded before lower numbers.
|
|
413
|
+
* @param kind The kind of pilet to use. Global pilets will always be loaded before local pilets.
|
|
413
414
|
*/
|
|
414
|
-
defineBlazorReferences(referenceUrls: Array<string>, satellites?: Record<string, Array<string>>, prio?: number): void;
|
|
415
|
+
defineBlazorReferences(referenceUrls: Array<string>, satellites?: Record<string, Array<string>>, prio?: number, kind?: "global" | "local"): void;
|
|
415
416
|
/**
|
|
416
417
|
* Wraps a Blazor module for use in Piral.
|
|
417
418
|
* @param moduleName The name of the exposed Blazor component.
|
|
@@ -54437,8 +54437,8 @@ function createBlazorApi(config = {}) {
|
|
|
54437
54437
|
const loader = (0,_dependencies__WEBPACK_IMPORTED_MODULE_1__.createDependencyLoader)(convert);
|
|
54438
54438
|
let options;
|
|
54439
54439
|
return {
|
|
54440
|
-
defineBlazorReferences(references, satellites, prio) {
|
|
54441
|
-
return loader.defineBlazorReferences(references, meta, satellites, prio);
|
|
54440
|
+
defineBlazorReferences(references, satellites, prio, kind) {
|
|
54441
|
+
return loader.defineBlazorReferences(references, meta, satellites, prio, kind);
|
|
54442
54442
|
},
|
|
54443
54443
|
defineBlazorOptions(blazorOptions) {
|
|
54444
54444
|
options = blazorOptions;
|
|
@@ -54490,18 +54490,19 @@ function createDependencyLoader(convert) {
|
|
|
54490
54490
|
getDependency() {
|
|
54491
54491
|
return dependency;
|
|
54492
54492
|
},
|
|
54493
|
-
defineBlazorReferences(references, meta = {}, satellites = {}, prio = 0) {
|
|
54493
|
+
defineBlazorReferences(references, meta = {}, satellites = {}, prio = 0, kind = 'local') {
|
|
54494
54494
|
prio = Math.max(prio, 0);
|
|
54495
54495
|
const depWithPrio = {
|
|
54496
54496
|
prio,
|
|
54497
|
+
kind,
|
|
54497
54498
|
load() {
|
|
54498
54499
|
return Promise.resolve();
|
|
54499
54500
|
}
|
|
54500
54501
|
};
|
|
54501
54502
|
let result = false;
|
|
54502
54503
|
const load = ([_, capabilities]) => (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
|
|
54503
|
-
// let others finish first
|
|
54504
|
-
yield Promise.all(depsWithPrios.filter(m => m.prio > prio).map(m => m.load()));
|
|
54504
|
+
// let others (any global, or higher prio) finish first
|
|
54505
|
+
yield Promise.all(depsWithPrios.filter(m => m.prio > prio || kind !== m.kind && m.kind === 'global').map(m => m.load()));
|
|
54505
54506
|
window.dispatchEvent(new CustomEvent('loading-blazor-pilet', {
|
|
54506
54507
|
detail: meta
|
|
54507
54508
|
}));
|
|
@@ -54522,6 +54523,8 @@ function createDependencyLoader(convert) {
|
|
|
54522
54523
|
baseUrl: meta.basePath || dllUrl.substring(0, dllUrl.lastIndexOf('/')).replace('/_framework/', '/'),
|
|
54523
54524
|
dependencies,
|
|
54524
54525
|
dependencySymbols: capabilities.includes('dependency-symbols') ? dependencySymbols : undefined,
|
|
54526
|
+
sharedDependencies: capabilities.includes('core-pilet') ? [] : undefined,
|
|
54527
|
+
kind: capabilities.includes('core-pilet') ? 'local' : undefined,
|
|
54525
54528
|
satellites,
|
|
54526
54529
|
dllUrl,
|
|
54527
54530
|
pdbUrl: references.includes(pdbUrl) ? pdbUrl : undefined
|
|
@@ -54564,7 +54567,8 @@ function createDependencyLoader(convert) {
|
|
|
54564
54567
|
}
|
|
54565
54568
|
return result;
|
|
54566
54569
|
};
|
|
54567
|
-
|
|
54570
|
+
const lazy = convert.lazy && kind !== 'global';
|
|
54571
|
+
result = !lazy && convert.loader.then(load);
|
|
54568
54572
|
dependency = config => result || (result = load(config));
|
|
54569
54573
|
if (prio) {
|
|
54570
54574
|
depsWithPrios.push(depWithPrio);
|
|
@@ -60759,12 +60763,12 @@ function installPiralDebug(options) {
|
|
|
60759
60763
|
debug: debugApiVersion,
|
|
60760
60764
|
instance: {
|
|
60761
60765
|
name: "sample-cross-fx",
|
|
60762
|
-
version: "1.
|
|
60766
|
+
version: "1.3.0-beta.5959",
|
|
60763
60767
|
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/web,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
|
|
60764
60768
|
},
|
|
60765
60769
|
build: {
|
|
60766
|
-
date: "2023-
|
|
60767
|
-
cli: "1.2.0
|
|
60770
|
+
date: "2023-09-21T10:32:51.128Z",
|
|
60771
|
+
cli: "1.2.0",
|
|
60768
60772
|
compat: "1"
|
|
60769
60773
|
}
|
|
60770
60774
|
};
|
|
@@ -222300,4 +222304,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
222300
222304
|
|
|
222301
222305
|
/******/ })()
|
|
222302
222306
|
;
|
|
222303
|
-
//# sourceMappingURL=index.
|
|
222307
|
+
//# sourceMappingURL=index.f9a06b.js.map
|