sample-cross-fx 0.15.13-beta.5575 → 0.15.13-beta.5591
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.ff0d36.js → index.1a6bf0.js} +63 -12
- package/app/{index.ff0d36.js.map → index.1a6bf0.js.map} +1 -1
- package/app/index.d.ts +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
|
@@ -54249,6 +54249,18 @@ function createConverter(lazy, opts, language, logLevel) {
|
|
|
54249
54249
|
if (typeof language.current === 'string') {
|
|
54250
54250
|
yield (0,_interop__WEBPACK_IMPORTED_MODULE_1__.setLanguage)(language.current);
|
|
54251
54251
|
}
|
|
54252
|
+
if (capabilities.includes('events')) {
|
|
54253
|
+
const eventDispatcher = document.body.dispatchEvent;
|
|
54254
|
+
// listen to all events for forwarding them
|
|
54255
|
+
document.body.dispatchEvent = function (ev) {
|
|
54256
|
+
if (ev.type.startsWith('piral-')) {
|
|
54257
|
+
const type = ev.type.replace('piral-', '');
|
|
54258
|
+
const args = ev.detail.arg;
|
|
54259
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_1__.processEvent)(type, args);
|
|
54260
|
+
}
|
|
54261
|
+
return eventDispatcher.call(this, ev);
|
|
54262
|
+
};
|
|
54263
|
+
}
|
|
54252
54264
|
if (typeof language.onChange === 'function') {
|
|
54253
54265
|
language.onChange(_interop__WEBPACK_IMPORTED_MODULE_1__.setLanguage);
|
|
54254
54266
|
}
|
|
@@ -54292,10 +54304,26 @@ function createConverter(lazy, opts, language, logLevel) {
|
|
|
54292
54304
|
locals.next = noop;
|
|
54293
54305
|
locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_3__.attachEvents)(el, ev => {
|
|
54294
54306
|
ev.stopPropagation();
|
|
54295
|
-
|
|
54307
|
+
const {
|
|
54308
|
+
target,
|
|
54309
|
+
props
|
|
54310
|
+
} = ev.detail;
|
|
54311
|
+
piral.renderHtmlExtension(target, props);
|
|
54312
|
+
}, ev => {
|
|
54313
|
+
ev.stopPropagation();
|
|
54314
|
+
const {
|
|
54315
|
+
to,
|
|
54316
|
+
state,
|
|
54317
|
+
replace
|
|
54318
|
+
} = ev.detail;
|
|
54319
|
+
replace ? nav.replace(to, state) : nav.push(to, state);
|
|
54296
54320
|
}, ev => {
|
|
54297
54321
|
ev.stopPropagation();
|
|
54298
|
-
|
|
54322
|
+
const {
|
|
54323
|
+
type,
|
|
54324
|
+
args
|
|
54325
|
+
} = ev.detail;
|
|
54326
|
+
piral.emit(type, args);
|
|
54299
54327
|
});
|
|
54300
54328
|
function mountClassic(config) {
|
|
54301
54329
|
return (0,_interop__WEBPACK_IMPORTED_MODULE_1__.activate)(moduleName, props).then(refId => {
|
|
@@ -54328,11 +54356,11 @@ function createConverter(lazy, opts, language, logLevel) {
|
|
|
54328
54356
|
};
|
|
54329
54357
|
});
|
|
54330
54358
|
}
|
|
54331
|
-
(loader || (convert.loader = loader = boot())).then(config => dependency(config).then(() => {
|
|
54359
|
+
(loader || (convert.loader = loader = boot(opts))).then(config => dependency(config).then(() => {
|
|
54332
54360
|
if (locals.state === 'fresh') {
|
|
54333
54361
|
const [_, capabilities, applyChanges] = config;
|
|
54334
54362
|
const fn = capabilities.includes('custom-element') ? mountModern : mountClassic;
|
|
54335
|
-
applyChanges(piral
|
|
54363
|
+
applyChanges(piral);
|
|
54336
54364
|
return fn(config).then(() => {
|
|
54337
54365
|
locals.state = 'mounted';
|
|
54338
54366
|
locals.next(config);
|
|
@@ -54573,6 +54601,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54573
54601
|
/* harmony export */ "addGlobalEventListeners": () => (/* binding */ addGlobalEventListeners),
|
|
54574
54602
|
/* harmony export */ "attachEvents": () => (/* binding */ attachEvents),
|
|
54575
54603
|
/* harmony export */ "emitNavigateEvent": () => (/* binding */ emitNavigateEvent),
|
|
54604
|
+
/* harmony export */ "emitPiralEvent": () => (/* binding */ emitPiralEvent),
|
|
54576
54605
|
/* harmony export */ "emitRenderEvent": () => (/* binding */ emitRenderEvent),
|
|
54577
54606
|
/* harmony export */ "removeGlobalEventListeners": () => (/* binding */ removeGlobalEventListeners)
|
|
54578
54607
|
/* harmony export */ });
|
|
@@ -54583,7 +54612,8 @@ const eventParents = [];
|
|
|
54583
54612
|
const globalEventNames = ['abort', 'blur', 'change', 'error', 'focus', 'load', 'loadend', 'loadstart', 'mouseenter', 'mouseleave', 'progress', 'reset', 'scroll', 'submit', 'unload', 'DOMNodeInsertedIntoDocument', 'DOMNodeRemovedFromDocument', 'click', 'dblclick', 'mousedown', 'mousemove', 'mouseup'];
|
|
54584
54613
|
const eventNames = {
|
|
54585
54614
|
render: 'render-blazor-extension',
|
|
54586
|
-
navigate: 'navigate-blazor'
|
|
54615
|
+
navigate: 'navigate-blazor',
|
|
54616
|
+
piral: 'piral-blazor'
|
|
54587
54617
|
};
|
|
54588
54618
|
function isRooted(target) {
|
|
54589
54619
|
let parent = target.parentElement;
|
|
@@ -54653,6 +54683,15 @@ function emitRenderEvent(source, name, params, sourceRef, fallbackComponent) {
|
|
|
54653
54683
|
});
|
|
54654
54684
|
delayEmit();
|
|
54655
54685
|
}
|
|
54686
|
+
function emitPiralEvent(type, args) {
|
|
54687
|
+
document.body.dispatchEvent(new CustomEvent(eventNames.piral, {
|
|
54688
|
+
bubbles: false,
|
|
54689
|
+
detail: {
|
|
54690
|
+
type,
|
|
54691
|
+
args
|
|
54692
|
+
}
|
|
54693
|
+
}));
|
|
54694
|
+
}
|
|
54656
54695
|
function emitNavigateEvent(source, to, replace = false, state) {
|
|
54657
54696
|
findTarget(source).dispatchEvent(new CustomEvent(eventNames.navigate, {
|
|
54658
54697
|
bubbles: true,
|
|
@@ -54663,14 +54702,20 @@ function emitNavigateEvent(source, to, replace = false, state) {
|
|
|
54663
54702
|
}
|
|
54664
54703
|
}));
|
|
54665
54704
|
}
|
|
54666
|
-
function attachEvents(host, render, navigate) {
|
|
54705
|
+
function attachEvents(host, render, navigate, forward) {
|
|
54667
54706
|
eventParents.push(host);
|
|
54668
54707
|
host.addEventListener(eventNames.render, render, false);
|
|
54669
54708
|
host.addEventListener(eventNames.navigate, navigate, false);
|
|
54709
|
+
if (eventParents.length === 1) {
|
|
54710
|
+
document.body.addEventListener(eventNames.piral, forward, false);
|
|
54711
|
+
}
|
|
54670
54712
|
return () => {
|
|
54671
54713
|
eventParents.splice(eventParents.indexOf(host), 1);
|
|
54672
54714
|
host.removeEventListener(eventNames.render, render, false);
|
|
54673
54715
|
host.removeEventListener(eventNames.navigate, navigate, false);
|
|
54716
|
+
if (eventParents.length === 0) {
|
|
54717
|
+
document.body.removeEventListener(eventNames.piral, forward, false);
|
|
54718
|
+
}
|
|
54674
54719
|
};
|
|
54675
54720
|
}
|
|
54676
54721
|
function addGlobalEventListeners(el) {
|
|
@@ -54702,6 +54747,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54702
54747
|
/* harmony export */ "loadBlazorPilet": () => (/* binding */ loadBlazorPilet),
|
|
54703
54748
|
/* harmony export */ "loadResource": () => (/* binding */ loadResource),
|
|
54704
54749
|
/* harmony export */ "loadResourceWithSymbol": () => (/* binding */ loadResourceWithSymbol),
|
|
54750
|
+
/* harmony export */ "processEvent": () => (/* binding */ processEvent),
|
|
54705
54751
|
/* harmony export */ "reactivate": () => (/* binding */ reactivate),
|
|
54706
54752
|
/* harmony export */ "setLanguage": () => (/* binding */ setLanguage),
|
|
54707
54753
|
/* harmony export */ "setLogLevel": () => (/* binding */ setLogLevel),
|
|
@@ -54741,7 +54787,8 @@ function createBase() {
|
|
|
54741
54787
|
function prepareForStartup() {
|
|
54742
54788
|
const originalApplyHotReload = window.Blazor._internal.applyHotReload;
|
|
54743
54789
|
const queue = [];
|
|
54744
|
-
const applyChanges =
|
|
54790
|
+
const applyChanges = api => {
|
|
54791
|
+
const pilet = api.meta;
|
|
54745
54792
|
if (pilet.config && pilet.config.blazorHotReload) {
|
|
54746
54793
|
for (const item of queue.splice(0, queue.length)) {
|
|
54747
54794
|
item();
|
|
@@ -54815,6 +54862,9 @@ function addScript(url) {
|
|
|
54815
54862
|
document.body.appendChild(script);
|
|
54816
54863
|
});
|
|
54817
54864
|
}
|
|
54865
|
+
function processEvent(type, args) {
|
|
54866
|
+
return window.DotNet.invokeMethodAsync(coreLib, 'ProcessEvent', type, args);
|
|
54867
|
+
}
|
|
54818
54868
|
function setLogLevel(logLevel) {
|
|
54819
54869
|
return window.DotNet.invokeMethodAsync(coreLib, 'SetLogLevel', logLevel);
|
|
54820
54870
|
}
|
|
@@ -54890,7 +54940,8 @@ function initialize(scriptUrl, publicPath, opts = {}) {
|
|
|
54890
54940
|
script.onload = () => {
|
|
54891
54941
|
Object.assign(window.Blazor, {
|
|
54892
54942
|
emitRenderEvent: _events__WEBPACK_IMPORTED_MODULE_0__.emitRenderEvent,
|
|
54893
|
-
emitNavigateEvent: _events__WEBPACK_IMPORTED_MODULE_0__.emitNavigateEvent
|
|
54943
|
+
emitNavigateEvent: _events__WEBPACK_IMPORTED_MODULE_0__.emitNavigateEvent,
|
|
54944
|
+
emitPiralEvent: _events__WEBPACK_IMPORTED_MODULE_0__.emitPiralEvent
|
|
54894
54945
|
});
|
|
54895
54946
|
startBlazor(opts).then(resolve);
|
|
54896
54947
|
};
|
|
@@ -60710,12 +60761,12 @@ function installPiralDebug(options) {
|
|
|
60710
60761
|
debug: debugApiVersion,
|
|
60711
60762
|
instance: {
|
|
60712
60763
|
name: "sample-cross-fx",
|
|
60713
|
-
version: "0.15.13-beta.
|
|
60764
|
+
version: "0.15.13-beta.5591",
|
|
60714
60765
|
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"
|
|
60715
60766
|
},
|
|
60716
60767
|
build: {
|
|
60717
|
-
date: "2023-05-
|
|
60718
|
-
cli: "0.15.13-beta.
|
|
60768
|
+
date: "2023-05-31T09:44:33.429Z",
|
|
60769
|
+
cli: "0.15.13-beta.5591",
|
|
60719
60770
|
compat: "0.15"
|
|
60720
60771
|
}
|
|
60721
60772
|
};
|
|
@@ -222232,4 +222283,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
222232
222283
|
|
|
222233
222284
|
/******/ })()
|
|
222234
222285
|
;
|
|
222235
|
-
//# sourceMappingURL=index.
|
|
222286
|
+
//# sourceMappingURL=index.1a6bf0.js.map
|