sample-cross-fx 0.15.3-beta.4975 → 0.15.3-beta.4989
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.5f2d2b.js → index.b0bdd5.js} +22 -15
- package/app/{index.5f2d2b.js.map → index.b0bdd5.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
|
@@ -54279,9 +54279,9 @@ function makeUrl(href) {
|
|
|
54279
54279
|
return href;
|
|
54280
54280
|
}
|
|
54281
54281
|
|
|
54282
|
-
function createConverter(lazy) {
|
|
54282
|
+
function createConverter(lazy, opts) {
|
|
54283
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);
|
|
54284
|
-
let loader = !lazy && boot();
|
|
54284
|
+
let loader = !lazy && boot(opts);
|
|
54285
54285
|
let listener = undefined;
|
|
54286
54286
|
|
|
54287
54287
|
const enqueueChange = (locals, update) => {
|
|
@@ -54421,7 +54421,7 @@ function createBlazorApi(config = {}) {
|
|
|
54421
54421
|
lazy
|
|
54422
54422
|
} = config;
|
|
54423
54423
|
return context => {
|
|
54424
|
-
const convert = (0,_converter__WEBPACK_IMPORTED_MODULE_0__.createConverter)(lazy);
|
|
54424
|
+
const convert = (0,_converter__WEBPACK_IMPORTED_MODULE_0__.createConverter)(lazy, config.options);
|
|
54425
54425
|
|
|
54426
54426
|
context.converters.blazor = ({
|
|
54427
54427
|
moduleName,
|
|
@@ -54789,7 +54789,7 @@ function createBlazorStarter(publicPath) {
|
|
|
54789
54789
|
const baseElement = document.head.querySelector('base') || createBase();
|
|
54790
54790
|
const originalBase = baseElement.href;
|
|
54791
54791
|
baseElement.href = publicPath;
|
|
54792
|
-
return
|
|
54792
|
+
return opts => {
|
|
54793
54793
|
const navManager = window.Blazor._internal.navigationManager; //Overwrite to get NavigationManager in Blazor working, see https://github.com/smapiot/Piral.Blazor/issues/89
|
|
54794
54794
|
|
|
54795
54795
|
navManager.navigateTo = (route, opts) => {
|
|
@@ -54802,7 +54802,7 @@ function createBlazorStarter(publicPath) {
|
|
|
54802
54802
|
|
|
54803
54803
|
navManager.getBaseURI = () => originalBase;
|
|
54804
54804
|
|
|
54805
|
-
return window.Blazor.start().then(prepareForStartup).then(({
|
|
54805
|
+
return window.Blazor.start(opts).then(prepareForStartup).then(({
|
|
54806
54806
|
capabilities,
|
|
54807
54807
|
applyChanges
|
|
54808
54808
|
}) => {
|
|
@@ -54812,7 +54812,7 @@ function createBlazorStarter(publicPath) {
|
|
|
54812
54812
|
};
|
|
54813
54813
|
}
|
|
54814
54814
|
|
|
54815
|
-
return
|
|
54815
|
+
return opts => window.Blazor.start(opts).then(prepareForStartup).then(({
|
|
54816
54816
|
capabilities,
|
|
54817
54817
|
applyChanges
|
|
54818
54818
|
}) => [root, capabilities, applyChanges]);
|
|
@@ -54890,7 +54890,14 @@ function loadBlazorPilet(id, data) {
|
|
|
54890
54890
|
function unloadBlazorPilet(id) {
|
|
54891
54891
|
return window.DotNet.invokeMethodAsync(coreLib, 'UnloadPilet', id);
|
|
54892
54892
|
}
|
|
54893
|
-
function initialize(scriptUrl, publicPath) {
|
|
54893
|
+
function initialize(scriptUrl, publicPath, opts = {}) {
|
|
54894
|
+
if (typeof opts.loadBootResource !== 'function') {
|
|
54895
|
+
opts.loadBootResource = (type, name, url) => fetch(url, {
|
|
54896
|
+
method: 'GET',
|
|
54897
|
+
cache: 'no-cache'
|
|
54898
|
+
});
|
|
54899
|
+
}
|
|
54900
|
+
|
|
54894
54901
|
return new Promise((resolve, reject) => {
|
|
54895
54902
|
const startBlazor = createBlazorStarter(publicPath);
|
|
54896
54903
|
const script = document.createElement('script');
|
|
@@ -54904,7 +54911,7 @@ function initialize(scriptUrl, publicPath) {
|
|
|
54904
54911
|
emitRenderEvent: _events__WEBPACK_IMPORTED_MODULE_0__.emitRenderEvent,
|
|
54905
54912
|
emitNavigateEvent: _events__WEBPACK_IMPORTED_MODULE_0__.emitNavigateEvent
|
|
54906
54913
|
});
|
|
54907
|
-
startBlazor().then(resolve);
|
|
54914
|
+
startBlazor(opts).then(resolve);
|
|
54908
54915
|
};
|
|
54909
54916
|
|
|
54910
54917
|
document.body.appendChild(script);
|
|
@@ -54912,10 +54919,10 @@ function initialize(scriptUrl, publicPath) {
|
|
|
54912
54919
|
}
|
|
54913
54920
|
function createBootLoader(scriptUrl, satellites) {
|
|
54914
54921
|
const publicPath = computePath();
|
|
54915
|
-
return
|
|
54922
|
+
return opts => {
|
|
54916
54923
|
if (typeof window.$blazorLoader === 'undefined') {
|
|
54917
54924
|
// we load all satellite scripts before we initialize blazor
|
|
54918
|
-
window.$blazorLoader = Promise.all(satellites.map(addScript)).then(() => initialize(scriptUrl, publicPath));
|
|
54925
|
+
window.$blazorLoader = Promise.all(satellites.map(addScript)).then(() => initialize(scriptUrl, publicPath, opts));
|
|
54919
54926
|
}
|
|
54920
54927
|
|
|
54921
54928
|
return window.$blazorLoader;
|
|
@@ -63687,12 +63694,12 @@ function installPiralDebug(options) {
|
|
|
63687
63694
|
debug: debugApiVersion,
|
|
63688
63695
|
instance: {
|
|
63689
63696
|
name: "sample-cross-fx",
|
|
63690
|
-
version: "0.15.3-beta.
|
|
63697
|
+
version: "0.15.3-beta.4989",
|
|
63691
63698
|
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"
|
|
63692
63699
|
},
|
|
63693
63700
|
build: {
|
|
63694
|
-
date: "2022-12-
|
|
63695
|
-
cli: "0.15.3-beta.
|
|
63701
|
+
date: "2022-12-16T00:40:10.540Z",
|
|
63702
|
+
cli: "0.15.3-beta.4989",
|
|
63696
63703
|
compat: "0.15"
|
|
63697
63704
|
}
|
|
63698
63705
|
};
|
|
@@ -75400,7 +75407,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
75400
75407
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
75401
75408
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
75402
75409
|
/* harmony export */ });
|
|
75403
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"url":"_framework/blazor.webassembly.js","satellites":[],"noMutation":false
|
|
75410
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({"url":"_framework/blazor.webassembly.js","satellites":[],"noMutation":false});
|
|
75404
75411
|
|
|
75405
75412
|
/***/ }),
|
|
75406
75413
|
|
|
@@ -216540,4 +216547,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
216540
216547
|
|
|
216541
216548
|
/******/ })()
|
|
216542
216549
|
;
|
|
216543
|
-
//# sourceMappingURL=index.
|
|
216550
|
+
//# sourceMappingURL=index.b0bdd5.js.map
|