sample-cross-fx 0.14.16-beta.3863 → 0.14.17

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.
@@ -125178,29 +125178,27 @@ function createConverter(config = {}) {
125178
125178
  (0,aurelia_pal_browser__WEBPACK_IMPORTED_MODULE_1__.initialize)();
125179
125179
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_2__.createExtension)(rootName);
125180
125180
 
125181
- const convert = root => {
125182
- let aurelia = undefined;
125183
- return {
125184
- mount(el, props, ctx) {
125185
- aurelia = new aurelia_framework__WEBPACK_IMPORTED_MODULE_0__.Aurelia(new _DefaultLoader__WEBPACK_IMPORTED_MODULE_3__.DefaultLoader());
125186
- aurelia.use.eventAggregator().history().defaultBindingLanguage().globalResources([Extension]).defaultResources();
125187
- aurelia.container.registerInstance('props', props);
125188
- aurelia.container.registerInstance('ctx', ctx);
125189
- aurelia.container.registerInstance('piral', props.piral);
125190
- aurelia.start().then(() => aurelia.setRoot(root, el));
125191
- },
125181
+ const convert = root => ({
125182
+ mount(el, props, ctx, locals) {
125183
+ const aurelia = new aurelia_framework__WEBPACK_IMPORTED_MODULE_0__.Aurelia(new _DefaultLoader__WEBPACK_IMPORTED_MODULE_3__.DefaultLoader());
125184
+ aurelia.use.eventAggregator().history().defaultBindingLanguage().globalResources([Extension]).defaultResources();
125185
+ aurelia.container.registerInstance('props', props);
125186
+ aurelia.container.registerInstance('ctx', ctx);
125187
+ aurelia.container.registerInstance('piral', props.piral);
125188
+ aurelia.start().then(() => aurelia.setRoot(root, el));
125189
+ locals.aurelia = aurelia;
125190
+ },
125192
125191
 
125193
- update(_, props, ctx) {
125194
- aurelia.container.registerInstance('props', props);
125195
- aurelia.container.registerInstance('ctx', ctx);
125196
- },
125192
+ update(el, props, ctx, locals) {
125193
+ locals.aurelia.container.registerInstance('props', props);
125194
+ locals.aurelia.container.registerInstance('ctx', ctx);
125195
+ },
125197
125196
 
125198
- unmount() {
125199
- aurelia = undefined;
125200
- }
125197
+ unmount(el, locals) {
125198
+ locals.aurelia = undefined;
125199
+ }
125201
125200
 
125202
- };
125203
- };
125201
+ });
125204
125202
 
125205
125203
  convert.Extension = Extension;
125206
125204
  return convert;
@@ -125362,48 +125360,44 @@ function createConverter(lazy) {
125362
125360
  root.style.display = 'none';
125363
125361
  root.id = 'blazor-root';
125364
125362
 
125365
- const convert = (moduleName, dependency, args, options) => {
125366
- let id;
125367
- let referenceId;
125368
- let node;
125369
-
125370
- let dispose = () => {};
125371
-
125372
- let state;
125373
- return {
125374
- mount(el, data, ctx) {
125375
- const props = Object.assign(Object.assign({}, args), data);
125376
- el.setAttribute('data-blazor-pilet-root', 'true');
125377
- (0,_events__WEBPACK_IMPORTED_MODULE_1__.addGlobalEventListeners)(el);
125378
- (loader || (loader = boot())).then(dependency).then(() => (0,_interop__WEBPACK_IMPORTED_MODULE_0__.activate)(moduleName, props)).then(refId => {
125379
- if (state === 'fresh') {
125380
- id = refId;
125381
- node = root.querySelector(`#${id} > div`);
125382
- project(node, el, options);
125383
- state = 'mounted';
125384
- referenceId = refId;
125385
- }
125386
- }).catch(err => console.error(err));
125387
- dispose = (0,_events__WEBPACK_IMPORTED_MODULE_1__.attachEvents)(el, ev => data.piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? ctx.router.history.replace(ev.detail.to, ev.detail.store) : ctx.router.history.push(ev.detail.to, ev.detail.state));
125388
- state = 'fresh';
125389
- },
125363
+ const convert = (moduleName, dependency, args, options) => ({
125364
+ mount(el, data, ctx, locals) {
125365
+ const props = Object.assign(Object.assign({}, args), data);
125366
+ el.setAttribute('data-blazor-pilet-root', 'true');
125367
+ (0,_events__WEBPACK_IMPORTED_MODULE_1__.addGlobalEventListeners)(el);
125368
+ locals.state = 'fresh';
125369
+ locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_1__.attachEvents)(el, ev => data.piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? ctx.router.history.replace(ev.detail.to, ev.detail.store) : ctx.router.history.push(ev.detail.to, ev.detail.state));
125370
+ (loader || (loader = boot())).then(dependency).then(() => (0,_interop__WEBPACK_IMPORTED_MODULE_0__.activate)(moduleName, props)).then(refId => {
125371
+ if (locals.state === 'fresh') {
125372
+ locals.id = refId;
125373
+ locals.node = root.querySelector(`#${locals.id} > div`);
125374
+ project(locals.node, el, options);
125375
+ locals.state = 'mounted';
125376
+ locals.referenceId = refId;
125377
+ }
125378
+ }).catch(err => console.error(err));
125379
+ },
125390
125380
 
125391
- unmount(el) {
125392
- (0,_events__WEBPACK_IMPORTED_MODULE_1__.removeGlobalEventListeners)(el);
125393
- el.removeAttribute('data-blazor-pilet-root');
125394
- dispose();
125381
+ update(el, data, ctx, locals) {
125382
+ const props = Object.assign(Object.assign({}, args), data);
125383
+ (0,_interop__WEBPACK_IMPORTED_MODULE_0__.reactivate)(moduleName, locals.referenceId, props);
125384
+ },
125395
125385
 
125396
- if (state === 'mounted') {
125397
- root.querySelector(`#${id}`).appendChild(node);
125398
- (0,_interop__WEBPACK_IMPORTED_MODULE_0__.deactivate)(moduleName, referenceId);
125399
- }
125386
+ unmount(el, locals) {
125387
+ (0,_events__WEBPACK_IMPORTED_MODULE_1__.removeGlobalEventListeners)(el);
125388
+ el.removeAttribute('data-blazor-pilet-root');
125389
+ locals.dispose();
125400
125390
 
125401
- el.innerHTML = '';
125402
- state = 'removed';
125391
+ if (locals.state === 'mounted') {
125392
+ root.querySelector(`#${locals.id}`).appendChild(locals.node);
125393
+ (0,_interop__WEBPACK_IMPORTED_MODULE_0__.deactivate)(moduleName, locals.referenceId);
125403
125394
  }
125404
125395
 
125405
- };
125406
- };
125396
+ el.innerHTML = '';
125397
+ locals.state = 'removed';
125398
+ }
125399
+
125400
+ });
125407
125401
 
125408
125402
  convert.loader = loader;
125409
125403
  return convert;
@@ -125659,6 +125653,7 @@ __webpack_require__.r(__webpack_exports__);
125659
125653
  __webpack_require__.r(__webpack_exports__);
125660
125654
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
125661
125655
  /* harmony export */ "activate": () => (/* binding */ activate),
125656
+ /* harmony export */ "reactivate": () => (/* binding */ reactivate),
125662
125657
  /* harmony export */ "deactivate": () => (/* binding */ deactivate),
125663
125658
  /* harmony export */ "loadResource": () => (/* binding */ loadResource),
125664
125659
  /* harmony export */ "loadResourceWithSymbol": () => (/* binding */ loadResourceWithSymbol),
@@ -125705,6 +125700,11 @@ function computePath() {
125705
125700
  function activate(moduleName, props) {
125706
125701
  return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, props);
125707
125702
  }
125703
+ function reactivate(moduleName, referenceId, props) {
125704
+ return window.DotNet.invokeMethodAsync(coreLib, 'Reactivate', moduleName, referenceId, props).catch(() => {// Apparently an older version of Piral.Blazor, which does not support this
125705
+ // discard this error silently (in the future we may print warnings here)
125706
+ });
125707
+ }
125708
125708
  function deactivate(moduleName, referenceId) {
125709
125709
  return window.DotNet.invokeMethodAsync(coreLib, 'Deactivate', moduleName, referenceId);
125710
125710
  }
@@ -125808,22 +125808,20 @@ function createConverter(config = {}) {
125808
125808
  } = config;
125809
125809
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(selector);
125810
125810
 
125811
- const convert = (main, captured) => {
125812
- return {
125813
- mount(el, props, ctx) {
125814
- const node = el.appendChild(document.createElement('div'));
125815
- main.init({
125816
- node,
125817
- flags: Object.assign(Object.assign(Object.assign({}, captured), ctx), props)
125818
- });
125819
- },
125811
+ const convert = (main, captured) => ({
125812
+ mount(el, props, ctx) {
125813
+ const node = el.appendChild(document.createElement('div'));
125814
+ main.init({
125815
+ node,
125816
+ flags: Object.assign(Object.assign(Object.assign({}, captured), ctx), props)
125817
+ });
125818
+ },
125820
125819
 
125821
- unmount(el) {
125822
- el.innerHTML = '';
125823
- }
125820
+ unmount(el) {
125821
+ el.innerHTML = '';
125822
+ }
125824
125823
 
125825
- };
125826
- };
125824
+ });
125827
125825
 
125828
125826
  convert.Extension = Extension;
125829
125827
  return convert;
@@ -125938,18 +125936,16 @@ function createConverter(config = {}) {
125938
125936
  } = config;
125939
125937
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
125940
125938
 
125941
- const convert = (root, state, actions) => {
125942
- return {
125943
- mount(el, props, ctx) {
125944
- (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountHyperapp)(el, root, props, ctx, state, actions);
125945
- },
125939
+ const convert = (root, state, actions) => ({
125940
+ mount(el, props, ctx) {
125941
+ (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountHyperapp)(el, root, props, ctx, state, actions);
125942
+ },
125946
125943
 
125947
- unmount(el) {
125948
- el.innerHTML = '';
125949
- }
125944
+ unmount(el) {
125945
+ el.innerHTML = '';
125946
+ }
125950
125947
 
125951
- };
125952
- };
125948
+ });
125953
125949
 
125954
125950
  convert.Extension = Extension;
125955
125951
  return convert;
@@ -126095,22 +126091,20 @@ function createConverter(config = {}) {
126095
126091
  } = config;
126096
126092
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
126097
126093
 
126098
- const convert = root => {
126099
- return {
126100
- mount(el, props, ctx) {
126101
- (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountInferno)(el, root, props, ctx);
126102
- },
126094
+ const convert = root => ({
126095
+ mount(el, props, ctx) {
126096
+ (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountInferno)(el, root, props, ctx);
126097
+ },
126103
126098
 
126104
- update(el, props, ctx) {
126105
- (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountInferno)(el, root, props, ctx);
126106
- },
126099
+ update(el, props, ctx) {
126100
+ (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountInferno)(el, root, props, ctx);
126101
+ },
126107
126102
 
126108
- unmount(el) {
126109
- (0,_mount__WEBPACK_IMPORTED_MODULE_1__.unmountInferno)(el);
126110
- }
126103
+ unmount(el) {
126104
+ (0,_mount__WEBPACK_IMPORTED_MODULE_1__.unmountInferno)(el);
126105
+ }
126111
126106
 
126112
- };
126113
- };
126107
+ });
126114
126108
 
126115
126109
  convert.Extension = Extension;
126116
126110
  return convert;
@@ -126327,36 +126321,34 @@ function createConverter(config = {}) {
126327
126321
  } = config;
126328
126322
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(selector);
126329
126323
 
126330
- const convert = elementName => {
126331
- return {
126332
- mount(parent, data, ctx) {
126333
- const {
126334
- piral
126335
- } = data;
126336
- const el = parent.appendChild(document.createElement(elementName));
126337
- el.setAttribute('props', JSON.stringify(data));
126338
- el.setAttribute('ctx', JSON.stringify(ctx));
126339
- el.shadowRoot.addEventListener('render-html', ev => {
126340
- ev.stopPropagation();
126341
- piral.renderHtmlExtension(ev.detail.target, ev.detail.props);
126342
- }, false);
126343
- },
126344
-
126345
- update(parent, data, ctx) {
126346
- const el = parent.querySelector(elementName);
126324
+ const convert = elementName => ({
126325
+ mount(parent, data, ctx) {
126326
+ const {
126327
+ piral
126328
+ } = data;
126329
+ const el = parent.appendChild(document.createElement(elementName));
126330
+ el.setAttribute('props', JSON.stringify(data));
126331
+ el.setAttribute('ctx', JSON.stringify(ctx));
126332
+ el.shadowRoot.addEventListener('render-html', ev => {
126333
+ ev.stopPropagation();
126334
+ piral.renderHtmlExtension(ev.detail.target, ev.detail.props);
126335
+ }, false);
126336
+ },
126347
126337
 
126348
- if (el) {
126349
- el.setAttribute('props', JSON.stringify(data));
126350
- el.setAttribute('ctx', JSON.stringify(ctx));
126351
- }
126352
- },
126338
+ update(parent, data, ctx) {
126339
+ const el = parent.querySelector(elementName);
126353
126340
 
126354
- unmount(el) {
126355
- el.innerHTML = '';
126341
+ if (el) {
126342
+ el.setAttribute('props', JSON.stringify(data));
126343
+ el.setAttribute('ctx', JSON.stringify(ctx));
126356
126344
  }
126345
+ },
126357
126346
 
126358
- };
126359
- };
126347
+ unmount(el) {
126348
+ el.innerHTML = '';
126349
+ }
126350
+
126351
+ });
126360
126352
 
126361
126353
  convert.Extension = Extension;
126362
126354
  return convert;
@@ -126495,27 +126487,25 @@ function createConverter(config = {}) {
126495
126487
  } = config;
126496
126488
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_1__.createExtension)(rootName);
126497
126489
 
126498
- const convert = (component, captured) => {
126499
- return {
126500
- mount(el, props, ctx) {
126501
- mithril__WEBPACK_IMPORTED_MODULE_0__.mount(el, {
126502
- view: () => mithril__WEBPACK_IMPORTED_MODULE_0__.m(component, Object.assign(Object.assign(Object.assign({}, captured), ctx), props))
126503
- });
126504
- },
126490
+ const convert = (component, captured) => ({
126491
+ mount(el, props, ctx) {
126492
+ mithril__WEBPACK_IMPORTED_MODULE_0__.mount(el, {
126493
+ view: () => mithril__WEBPACK_IMPORTED_MODULE_0__.m(component, Object.assign(Object.assign(Object.assign({}, captured), ctx), props))
126494
+ });
126495
+ },
126505
126496
 
126506
- update(el, props, ctx) {
126507
- mithril__WEBPACK_IMPORTED_MODULE_0__.mount(el, {
126508
- view: () => mithril__WEBPACK_IMPORTED_MODULE_0__.m(component, Object.assign(Object.assign(Object.assign({}, captured), ctx), props))
126509
- });
126510
- },
126497
+ update(el, props, ctx) {
126498
+ mithril__WEBPACK_IMPORTED_MODULE_0__.mount(el, {
126499
+ view: () => mithril__WEBPACK_IMPORTED_MODULE_0__.m(component, Object.assign(Object.assign(Object.assign({}, captured), ctx), props))
126500
+ });
126501
+ },
126511
126502
 
126512
- unmount(el) {
126513
- // tslint:disable-next-line:no-null-keyword
126514
- mithril__WEBPACK_IMPORTED_MODULE_0__.mount(el, null);
126515
- }
126503
+ unmount(el) {
126504
+ // tslint:disable-next-line:no-null-keyword
126505
+ mithril__WEBPACK_IMPORTED_MODULE_0__.mount(el, null);
126506
+ }
126516
126507
 
126517
- };
126518
- };
126508
+ });
126519
126509
 
126520
126510
  convert.Extension = Extension;
126521
126511
  return convert;
@@ -126985,17 +126975,20 @@ __webpack_require__.r(__webpack_exports__);
126985
126975
  function createConverter(_ = {}) {
126986
126976
  const convert = component => {
126987
126977
  const bootstrapped = (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.prepareBootstrap)(component);
126988
- let mounted = Promise.resolve();
126989
- let active = true;
126990
126978
  return {
126991
- mount(el, props, ctx) {
126992
- active = true;
126993
- mounted = mounted.then(() => (0,_queue__WEBPACK_IMPORTED_MODULE_1__.enqueue)(() => active && (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.bootstrap)(bootstrapped, el, props, ctx)));
126979
+ mount(el, props, ctx, locals) {
126980
+ locals.active = true;
126981
+
126982
+ if (!locals.queued) {
126983
+ locals.queued = Promise.resolve();
126984
+ }
126985
+
126986
+ locals.queued = locals.queued.then(() => (0,_queue__WEBPACK_IMPORTED_MODULE_1__.enqueue)(() => locals.active && (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.bootstrap)(bootstrapped, el, props, ctx)));
126994
126987
  },
126995
126988
 
126996
- unmount() {
126997
- active = false;
126998
- mounted = mounted.then(dispose => dispose && dispose());
126989
+ unmount(el, locals) {
126990
+ locals.active = false;
126991
+ locals.queued = locals.queued.then(dispose => dispose && dispose());
126999
126992
  }
127000
126993
 
127001
126994
  };
@@ -127467,25 +127460,22 @@ function createConverter(config = {}) {
127467
127460
  } = config;
127468
127461
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_1__.createExtension)(rootName);
127469
127462
 
127470
- const convert = (name, root) => {
127471
- let injector = undefined;
127472
- return {
127473
- mount(el, props, ctx) {
127474
- el.appendChild(document.createElement(name));
127475
- root.value('props', props);
127476
- root.value('piral', props.piral);
127477
- root.value('ctx', ctx);
127478
- injector = (0,angular__WEBPACK_IMPORTED_MODULE_0__.bootstrap)(el, [root.name]);
127479
- },
127463
+ const convert = (name, root) => ({
127464
+ mount(el, props, ctx, locals) {
127465
+ el.appendChild(document.createElement(name));
127466
+ root.value('props', props);
127467
+ root.value('piral', props.piral);
127468
+ root.value('ctx', ctx);
127469
+ locals.injector = (0,angular__WEBPACK_IMPORTED_MODULE_0__.bootstrap)(el, [root.name]);
127470
+ },
127480
127471
 
127481
- unmount(el) {
127482
- const rootScope = injector.get('$rootScope');
127483
- rootScope.$destroy();
127484
- injector = undefined;
127485
- }
127472
+ unmount(el, locals) {
127473
+ const rootScope = locals.injector.get('$rootScope');
127474
+ rootScope.$destroy();
127475
+ locals.injector = undefined;
127476
+ }
127486
127477
 
127487
- };
127488
- };
127478
+ });
127489
127479
 
127490
127480
  convert.Extension = Extension;
127491
127481
  return convert;
@@ -127615,22 +127605,20 @@ function createConverter(config = {}) {
127615
127605
  } = config;
127616
127606
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
127617
127607
 
127618
- const convert = root => {
127619
- return {
127620
- mount(el, props, ctx) {
127621
- (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountPreact)(el, root, props, ctx);
127622
- },
127608
+ const convert = root => ({
127609
+ mount(el, props, ctx) {
127610
+ (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountPreact)(el, root, props, ctx);
127611
+ },
127623
127612
 
127624
- update(el, props, ctx) {
127625
- (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountPreact)(el, root, props, ctx);
127626
- },
127613
+ update(el, props, ctx) {
127614
+ (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountPreact)(el, root, props, ctx);
127615
+ },
127627
127616
 
127628
- unmount(el) {
127629
- (0,_mount__WEBPACK_IMPORTED_MODULE_1__.unmountPreact)(el);
127630
- }
127617
+ unmount(el) {
127618
+ (0,_mount__WEBPACK_IMPORTED_MODULE_1__.unmountPreact)(el);
127619
+ }
127631
127620
 
127632
- };
127633
- };
127621
+ });
127634
127622
 
127635
127623
  convert.Extension = Extension;
127636
127624
  return convert;
@@ -127846,16 +127834,15 @@ function createConverter(config = {}) {
127846
127834
 
127847
127835
  const convert = (component, captured) => {
127848
127836
  const mountApp = riot__WEBPACK_IMPORTED_MODULE_0__.component(component);
127849
- let app = undefined;
127850
127837
  return {
127851
- mount(el, props, ctx) {
127852
- app = mountApp(el, Object.assign(Object.assign(Object.assign({}, captured), ctx), props));
127838
+ mount(el, props, ctx, locals) {
127839
+ locals.app = mountApp(el, Object.assign(Object.assign(Object.assign({}, captured), ctx), props));
127853
127840
  },
127854
127841
 
127855
- unmount(el) {
127856
- app.unmount(true);
127842
+ unmount(el, locals) {
127843
+ locals.app.unmount(true);
127857
127844
  el.innerHTML = '';
127858
- app = undefined;
127845
+ locals.app = undefined;
127859
127846
  }
127860
127847
 
127861
127848
  };
@@ -128001,21 +127988,19 @@ function createConverter(config = {}) {
128001
127988
  } = config;
128002
127989
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
128003
127990
 
128004
- const convert = root => {
128005
- return {
128006
- mount(el, props, context) {
128007
- (0,solid_js_dom__WEBPACK_IMPORTED_MODULE_1__.render)(() => (0,solid_js_dom__WEBPACK_IMPORTED_MODULE_2__.createComponent)(root, Object.assign({
128008
- context
128009
- }, props)), el);
128010
- },
127991
+ const convert = root => ({
127992
+ mount(el, props, context) {
127993
+ (0,solid_js_dom__WEBPACK_IMPORTED_MODULE_1__.render)(() => (0,solid_js_dom__WEBPACK_IMPORTED_MODULE_2__.createComponent)(root, Object.assign({
127994
+ context
127995
+ }, props)), el);
127996
+ },
128011
127997
 
128012
- unmount(el) {
128013
- (0,solid_js_dom__WEBPACK_IMPORTED_MODULE_1__.render)(() => undefined, el);
128014
- el.innerHTML = '';
128015
- }
127998
+ unmount(el) {
127999
+ (0,solid_js_dom__WEBPACK_IMPORTED_MODULE_1__.render)(() => undefined, el);
128000
+ el.innerHTML = '';
128001
+ }
128016
128002
 
128017
- };
128018
- };
128003
+ });
128019
128004
 
128020
128005
  convert.Extension = Extension;
128021
128006
  return convert;
@@ -128128,30 +128113,27 @@ function createConverter(config = {}) {
128128
128113
  } = config;
128129
128114
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(selector);
128130
128115
 
128131
- const convert = (Component, captured) => {
128132
- let instance = undefined;
128133
- return {
128134
- mount(parent, data, ctx) {
128135
- instance = new Component({
128136
- target: parent,
128137
- props: Object.assign(Object.assign(Object.assign({}, captured), ctx), data)
128138
- });
128139
- },
128116
+ const convert = (Component, captured) => ({
128117
+ mount(parent, data, ctx, locals) {
128118
+ locals.instance = new Component({
128119
+ target: parent,
128120
+ props: Object.assign(Object.assign(Object.assign({}, captured), ctx), data)
128121
+ });
128122
+ },
128140
128123
 
128141
- update(_, data) {
128142
- Object.keys(data).forEach(key => {
128143
- instance[key] = data[key];
128144
- });
128145
- },
128124
+ update(el, data, ctx, locals) {
128125
+ Object.keys(data).forEach(key => {
128126
+ locals.instance[key] = data[key];
128127
+ });
128128
+ },
128146
128129
 
128147
- unmount(el) {
128148
- instance.$destroy();
128149
- instance = undefined;
128150
- el.innerHTML = '';
128151
- }
128130
+ unmount(el, locals) {
128131
+ locals.instance.$destroy();
128132
+ locals.instance = undefined;
128133
+ el.innerHTML = '';
128134
+ }
128152
128135
 
128153
- };
128154
- };
128136
+ });
128155
128137
 
128156
128138
  convert.Extension = Extension;
128157
128139
  return convert;
@@ -128267,28 +128249,25 @@ function createConverter(config = {}) {
128267
128249
  } = config;
128268
128250
  const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName, selector);
128269
128251
 
128270
- const convert = (root, captured) => {
128271
- let instance = undefined;
128272
- return {
128273
- mount(parent, data, ctx) {
128274
- const el = parent.appendChild(document.createElement(rootName));
128275
- instance = (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountVue)(el, root, data, ctx, captured);
128276
- },
128277
-
128278
- update(_, data) {
128279
- for (const prop in data) {
128280
- instance[prop] = data[prop];
128281
- }
128282
- },
128252
+ const convert = (root, captured) => ({
128253
+ mount(parent, data, ctx, locals) {
128254
+ const el = parent.appendChild(document.createElement(rootName));
128255
+ locals.instance = (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountVue)(el, root, data, ctx, captured);
128256
+ },
128283
128257
 
128284
- unmount(el) {
128285
- instance.$destroy();
128286
- el.innerHTML = '';
128287
- instance = undefined;
128258
+ update(parent, data, ctx, locals) {
128259
+ for (const prop in data) {
128260
+ locals.instance[prop] = data[prop];
128288
128261
  }
128262
+ },
128289
128263
 
128290
- };
128291
- };
128264
+ unmount(parent, locals) {
128265
+ locals.instance.$destroy();
128266
+ parent.innerHTML = '';
128267
+ locals.instance = undefined;
128268
+ }
128269
+
128270
+ });
128292
128271
 
128293
128272
  convert.Extension = Extension;
128294
128273
  return convert;
@@ -129346,7 +129325,7 @@ __webpack_require__.r(__webpack_exports__);
129346
129325
 
129347
129326
  function isPrimitiveExport(content) {
129348
129327
  const type = typeof content;
129349
- return type === 'function' || type === 'number' || type === 'boolean' || type === 'symbol' || type === 'string' || type === 'bigint' || Array.isArray(content);
129328
+ return type === 'number' || type === 'boolean' || type === 'symbol' || type === 'string' || type === 'bigint' || Array.isArray(content);
129350
129329
  }
129351
129330
 
129352
129331
  const systemRegister = System.constructor.prototype.register;
@@ -129360,6 +129339,14 @@ System.constructor.prototype.register = function (...args) {
129360
129339
 
129361
129340
  if (content instanceof Promise) {
129362
129341
  return content.then(exp);
129342
+ } else if (typeof content === 'function') {
129343
+ _export('__esModule', true);
129344
+
129345
+ Object.keys(content).forEach(prop => {
129346
+ _export(prop, content[prop]);
129347
+ });
129348
+
129349
+ _export('default', content);
129363
129350
  } else if (isPrimitiveExport(content)) {
129364
129351
  _export('__esModule', true);
129365
129352
 
@@ -130193,6 +130180,7 @@ __webpack_require__.r(__webpack_exports__);
130193
130180
  class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
130194
130181
  constructor() {
130195
130182
  super(...arguments);
130183
+ this.local = {};
130196
130184
 
130197
130185
  this.handler = ev => {
130198
130186
  const {
@@ -130219,7 +130207,7 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
130219
130207
  } = $component;
130220
130208
 
130221
130209
  if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
130222
- mount(node, innerProps, $context);
130210
+ mount(node, innerProps, $context, this.local);
130223
130211
  node.addEventListener('render-html', this.handler, false);
130224
130212
  }
130225
130213
 
@@ -130244,7 +130232,7 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
130244
130232
  previous && this.componentWillUnmount();
130245
130233
  current && this.componentDidMount();
130246
130234
  } else if ((0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(update)) {
130247
- update(current, innerProps, $context);
130235
+ update(current, innerProps, $context, this.local);
130248
130236
  }
130249
130237
  }
130250
130238
 
@@ -130258,7 +130246,7 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
130258
130246
  } = $component;
130259
130247
 
130260
130248
  if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
130261
- unmount(node);
130249
+ unmount(node, this.local);
130262
130250
  node.removeEventListener('render-html', this.handler, false);
130263
130251
  }
130264
130252
 
@@ -131101,7 +131089,7 @@ function createInstance(config = {}) {
131101
131089
  const createApi = apiFactory(context, usedPlugins);
131102
131090
  const root = createApi({
131103
131091
  name: 'root',
131104
- version: "0.14.16-beta.3863" || 0,
131092
+ version: "0.14.17" || 0,
131105
131093
  spec: ''
131106
131094
  });
131107
131095
  const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
@@ -133576,12 +133564,12 @@ function installPiralDebug(options) {
133576
133564
  debug: debugApiVersion,
133577
133565
  instance: {
133578
133566
  name: "sample-cross-fx",
133579
- version: "0.14.16-beta.3863",
133567
+ version: "0.14.17",
133580
133568
  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,preact,riot,rxjs,vue,zone.js,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
133581
133569
  },
133582
133570
  build: {
133583
- date: "2022-03-10T13:55:37.915Z",
133584
- cli: "0.14.15",
133571
+ date: "2022-03-13T16:21:25.671Z",
133572
+ cli: "0.14.16",
133585
133573
  compat: "0.14"
133586
133574
  },
133587
133575
  pilets: {
@@ -255749,4 +255737,4 @@ const app = React.createElement(piral_core_1.Piral, {
255749
255737
 
255750
255738
  /******/ })()
255751
255739
  ;
255752
- //# sourceMappingURL=index.9c5206.js.map
255740
+ //# sourceMappingURL=index.3e01ef.js.map