sample-cross-fx 0.14.6-beta.3368 → 0.14.6

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.
@@ -128357,6 +128357,41 @@ function createExtension(rootName, selector) {
128357
128357
  return createElement(rootName);
128358
128358
  },
128359
128359
 
128360
+ watch: {
128361
+ params(newValue, oldValue) {
128362
+ if (newValue !== oldValue) {
128363
+ const newKeys = Object.keys(newValue);
128364
+ const oldKeys = Object.keys(oldValue);
128365
+
128366
+ if (newKeys.length === oldKeys.length) {
128367
+ let changed = false;
128368
+
128369
+ for (const key of newKeys) {
128370
+ if (!oldKeys.includes(key) || newValue[key] !== oldValue[key]) {
128371
+ changed = true;
128372
+ break;
128373
+ }
128374
+ }
128375
+
128376
+ if (!changed) {
128377
+ return;
128378
+ }
128379
+ }
128380
+
128381
+ const ev = new CustomEvent('extension-props-changed', {
128382
+ detail: {
128383
+ empty: this.empty,
128384
+ params: newValue,
128385
+ render: this.render,
128386
+ name: this.name
128387
+ }
128388
+ });
128389
+ this.$el.dispatchEvent(ev);
128390
+ }
128391
+ }
128392
+
128393
+ },
128394
+
128360
128395
  mounted() {
128361
128396
  this.piral.renderHtmlExtension(this.$el, {
128362
128397
  empty: this.empty,
@@ -130706,7 +130741,7 @@ function createInstance(config = {}) {
130706
130741
  const createApi = apiFactory(context, usedPlugins);
130707
130742
  const root = createApi({
130708
130743
  name: 'root',
130709
- version: "0.14.6-beta.3368" || 0,
130744
+ version: "0.14.6" || 0,
130710
130745
  spec: ''
130711
130746
  });
130712
130747
  const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.createPiletOptions)({
@@ -131212,13 +131247,20 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
131212
131247
 
131213
131248
  function render(context, element, props) {
131214
131249
  let [id, portal] = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.renderInDom)(context, element, _components__WEBPACK_IMPORTED_MODULE_2__.ExtensionSlot, props);
131250
+ const evName = 'extension-props-changed';
131215
131251
 
131216
- const dispose = () => context.hidePortal(id, portal);
131252
+ const handler = ev => update(ev.detail);
131253
+
131254
+ const dispose = () => {
131255
+ context.hidePortal(id, portal);
131256
+ element.removeEventListener(evName, handler);
131257
+ };
131217
131258
 
131218
131259
  const update = newProps => {
131219
131260
  [id, portal] = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.changeDomPortal)(id, portal, context, element, _components__WEBPACK_IMPORTED_MODULE_2__.ExtensionSlot, newProps);
131220
131261
  };
131221
131262
 
131263
+ element.addEventListener(evName, handler);
131222
131264
  return [dispose, update];
131223
131265
  }
131224
131266
 
@@ -133138,12 +133180,12 @@ function installPiralDebug(options) {
133138
133180
  debug: debugApiVersion,
133139
133181
  instance: {
133140
133182
  name: "sample-cross-fx",
133141
- version: "0.14.6-beta.3368",
133183
+ version: "0.14.6",
133142
133184
  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"
133143
133185
  },
133144
133186
  build: {
133145
- date: "2021-12-16T13:22:30.261Z",
133146
- cli: "0.14.5",
133187
+ date: "2022-01-05T16:48:42.677Z",
133188
+ cli: "0.14.6",
133147
133189
  compat: "0.14"
133148
133190
  },
133149
133191
  pilets: {
@@ -255220,4 +255262,4 @@ const app = React.createElement(piral_core_1.Piral, {
255220
255262
 
255221
255263
  /******/ })()
255222
255264
  ;
255223
- //# sourceMappingURL=index.e1dd0b.js.map
255265
+ //# sourceMappingURL=index.aa2fef.js.map