sample-cross-fx 0.15.8-beta.5219 → 0.15.8-beta.5229
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.86b899.js → index.eaecca.js} +32 -12
- package/app/{index.86b899.js.map → index.eaecca.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
|
@@ -54281,12 +54281,18 @@ function makeUrl(href) {
|
|
|
54281
54281
|
return href;
|
|
54282
54282
|
}
|
|
54283
54283
|
|
|
54284
|
-
function createConverter(lazy, opts, language) {
|
|
54284
|
+
function createConverter(lazy, opts, language, logLevel) {
|
|
54285
54285
|
const bootLoader = (0,_interop__WEBPACK_IMPORTED_MODULE_1__.createBootLoader)(_infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].url, _infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].satellites);
|
|
54286
54286
|
|
|
54287
54287
|
const boot = opts => bootLoader(opts).then(res => (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this, void 0, void 0, function* () {
|
|
54288
54288
|
const [_, capabilities] = res;
|
|
54289
54289
|
|
|
54290
|
+
if (capabilities.includes('logging')) {
|
|
54291
|
+
if (typeof logLevel === 'number') {
|
|
54292
|
+
yield (0,_interop__WEBPACK_IMPORTED_MODULE_1__.setLogLevel)(logLevel);
|
|
54293
|
+
}
|
|
54294
|
+
}
|
|
54295
|
+
|
|
54290
54296
|
if (language && capabilities.includes('language')) {
|
|
54291
54297
|
if (typeof language.current === 'string') {
|
|
54292
54298
|
yield (0,_interop__WEBPACK_IMPORTED_MODULE_1__.setLanguage)(language.current);
|
|
@@ -54297,6 +54303,7 @@ function createConverter(lazy, opts, language) {
|
|
|
54297
54303
|
}
|
|
54298
54304
|
}
|
|
54299
54305
|
|
|
54306
|
+
window.dispatchEvent(new CustomEvent('loaded-blazor-core'));
|
|
54300
54307
|
return res;
|
|
54301
54308
|
}));
|
|
54302
54309
|
|
|
@@ -54411,6 +54418,7 @@ function createConverter(lazy, opts, language) {
|
|
|
54411
54418
|
});
|
|
54412
54419
|
|
|
54413
54420
|
convert.loader = loader;
|
|
54421
|
+
convert.lazy = lazy;
|
|
54414
54422
|
return convert;
|
|
54415
54423
|
}
|
|
54416
54424
|
|
|
@@ -54447,14 +54455,15 @@ function createDefaultHandler(context) {
|
|
|
54447
54455
|
function createBlazorApi(config = {}) {
|
|
54448
54456
|
return context => {
|
|
54449
54457
|
const {
|
|
54450
|
-
lazy,
|
|
54458
|
+
lazy = true,
|
|
54451
54459
|
initialLanguage,
|
|
54452
|
-
onLanguageChange = createDefaultHandler(context)
|
|
54460
|
+
onLanguageChange = createDefaultHandler(context),
|
|
54461
|
+
logLevel
|
|
54453
54462
|
} = config;
|
|
54454
54463
|
const convert = (0,_converter__WEBPACK_IMPORTED_MODULE_0__.createConverter)(lazy, config.options, {
|
|
54455
54464
|
current: initialLanguage,
|
|
54456
54465
|
onChange: onLanguageChange || (() => {})
|
|
54457
|
-
});
|
|
54466
|
+
}, logLevel);
|
|
54458
54467
|
|
|
54459
54468
|
context.converters.blazor = ({
|
|
54460
54469
|
moduleName,
|
|
@@ -54464,7 +54473,7 @@ function createBlazorApi(config = {}) {
|
|
|
54464
54473
|
}) => convert(moduleName, dependency, args, options);
|
|
54465
54474
|
|
|
54466
54475
|
return (_, meta) => {
|
|
54467
|
-
const loader = (0,_dependencies__WEBPACK_IMPORTED_MODULE_1__.createDependencyLoader)(convert
|
|
54476
|
+
const loader = (0,_dependencies__WEBPACK_IMPORTED_MODULE_1__.createDependencyLoader)(convert);
|
|
54468
54477
|
let options;
|
|
54469
54478
|
return {
|
|
54470
54479
|
defineBlazorReferences(references, satellites, prio) {
|
|
@@ -54513,7 +54522,7 @@ var _a, _b;
|
|
|
54513
54522
|
|
|
54514
54523
|
const loadedDependencies = (_a = window.$blazorDependencies) !== null && _a !== void 0 ? _a : window.$blazorDependencies = [];
|
|
54515
54524
|
const depsWithPrios = (_b = window.$blazorDependencyPrios) !== null && _b !== void 0 ? _b : window.$blazorDependencyPrios = [];
|
|
54516
|
-
function createDependencyLoader(convert
|
|
54525
|
+
function createDependencyLoader(convert) {
|
|
54517
54526
|
const definedBlazorReferences = [];
|
|
54518
54527
|
const loadedBlazorPilets = [];
|
|
54519
54528
|
let dependency;
|
|
@@ -54528,6 +54537,9 @@ function createDependencyLoader(convert, lazy = true) {
|
|
|
54528
54537
|
const load = ([_, capabilities]) => (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
|
|
54529
54538
|
// let others finish first
|
|
54530
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
|
+
}));
|
|
54531
54543
|
|
|
54532
54544
|
if (capabilities.includes('load')) {
|
|
54533
54545
|
// new loading mechanism
|
|
@@ -54583,10 +54595,13 @@ function createDependencyLoader(convert, lazy = true) {
|
|
|
54583
54595
|
} // inform remaining that this one finished
|
|
54584
54596
|
|
|
54585
54597
|
|
|
54598
|
+
window.dispatchEvent(new CustomEvent('loaded-blazor-pilet', {
|
|
54599
|
+
detail: meta
|
|
54600
|
+
}));
|
|
54586
54601
|
resolve();
|
|
54587
54602
|
});
|
|
54588
54603
|
|
|
54589
|
-
let result = !lazy && convert.loader.then(load);
|
|
54604
|
+
let result = !convert.lazy && convert.loader.then(load);
|
|
54590
54605
|
|
|
54591
54606
|
dependency = config => result || (result = load(config));
|
|
54592
54607
|
});
|
|
@@ -54777,6 +54792,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54777
54792
|
/* harmony export */ "loadResourceWithSymbol": () => (/* binding */ loadResourceWithSymbol),
|
|
54778
54793
|
/* harmony export */ "reactivate": () => (/* binding */ reactivate),
|
|
54779
54794
|
/* harmony export */ "setLanguage": () => (/* binding */ setLanguage),
|
|
54795
|
+
/* harmony export */ "setLogLevel": () => (/* binding */ setLogLevel),
|
|
54780
54796
|
/* harmony export */ "unloadBlazorPilet": () => (/* binding */ unloadBlazorPilet),
|
|
54781
54797
|
/* harmony export */ "unloadResource": () => (/* binding */ unloadResource),
|
|
54782
54798
|
/* harmony export */ "updateElement": () => (/* binding */ updateElement)
|
|
@@ -54905,6 +54921,9 @@ function addScript(url) {
|
|
|
54905
54921
|
});
|
|
54906
54922
|
}
|
|
54907
54923
|
|
|
54924
|
+
function setLogLevel(logLevel) {
|
|
54925
|
+
return window.DotNet.invokeMethodAsync(coreLib, 'SetLogLevel', logLevel);
|
|
54926
|
+
}
|
|
54908
54927
|
function createElement(moduleName, props) {
|
|
54909
54928
|
return window.DotNet.invokeMethodAsync(coreLib, 'CreateElement', moduleName, props);
|
|
54910
54929
|
}
|
|
@@ -54988,7 +55007,8 @@ function createBootLoader(scriptUrl, extraScriptUrls) {
|
|
|
54988
55007
|
const publicPath = computePath();
|
|
54989
55008
|
return opts => {
|
|
54990
55009
|
if (typeof window.$blazorLoader === 'undefined') {
|
|
54991
|
-
// we load all satellite scripts before we initialize blazor
|
|
55010
|
+
window.dispatchEvent(new CustomEvent('loading-blazor-core')); // we load all satellite scripts before we initialize blazor
|
|
55011
|
+
|
|
54992
55012
|
window.$blazorLoader = Promise.all(extraScriptUrls.map(addScript)).then(() => initialize(scriptUrl, publicPath, opts));
|
|
54993
55013
|
}
|
|
54994
55014
|
|
|
@@ -63771,12 +63791,12 @@ function installPiralDebug(options) {
|
|
|
63771
63791
|
debug: debugApiVersion,
|
|
63772
63792
|
instance: {
|
|
63773
63793
|
name: "sample-cross-fx",
|
|
63774
|
-
version: "0.15.8-beta.
|
|
63794
|
+
version: "0.15.8-beta.5229",
|
|
63775
63795
|
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"
|
|
63776
63796
|
},
|
|
63777
63797
|
build: {
|
|
63778
|
-
date: "2023-03-
|
|
63779
|
-
cli: "0.15.8-beta.
|
|
63798
|
+
date: "2023-03-02T18:01:31.474Z",
|
|
63799
|
+
cli: "0.15.8-beta.5229",
|
|
63780
63800
|
compat: "0.15"
|
|
63781
63801
|
}
|
|
63782
63802
|
};
|
|
@@ -216624,4 +216644,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
216624
216644
|
|
|
216625
216645
|
/******/ })()
|
|
216626
216646
|
;
|
|
216627
|
-
//# sourceMappingURL=index.
|
|
216647
|
+
//# sourceMappingURL=index.eaecca.js.map
|