sample-cross-fx 0.14.5 → 0.14.6-beta.3419
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,36 @@ function createExtension(rootName, selector) {
|
|
|
128357
128357
|
return createElement(rootName);
|
|
128358
128358
|
},
|
|
128359
128359
|
|
|
128360
|
+
watch: {
|
|
128361
|
+
params(oldValue, newValue) {
|
|
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: newValue
|
|
128383
|
+
});
|
|
128384
|
+
this.$el.dispatchEvent(ev);
|
|
128385
|
+
}
|
|
128386
|
+
}
|
|
128387
|
+
|
|
128388
|
+
},
|
|
128389
|
+
|
|
128360
128390
|
mounted() {
|
|
128361
128391
|
this.piral.renderHtmlExtension(this.$el, {
|
|
128362
128392
|
empty: this.empty,
|
|
@@ -130706,7 +130736,7 @@ function createInstance(config = {}) {
|
|
|
130706
130736
|
const createApi = apiFactory(context, usedPlugins);
|
|
130707
130737
|
const root = createApi({
|
|
130708
130738
|
name: 'root',
|
|
130709
|
-
version: "0.14.
|
|
130739
|
+
version: "0.14.6-beta.3419" || 0,
|
|
130710
130740
|
spec: ''
|
|
130711
130741
|
});
|
|
130712
130742
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.createPiletOptions)({
|
|
@@ -131212,13 +131242,20 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
131212
131242
|
|
|
131213
131243
|
function render(context, element, props) {
|
|
131214
131244
|
let [id, portal] = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.renderInDom)(context, element, _components__WEBPACK_IMPORTED_MODULE_2__.ExtensionSlot, props);
|
|
131245
|
+
const evName = 'extension-props-changed';
|
|
131215
131246
|
|
|
131216
|
-
const
|
|
131247
|
+
const handler = ev => update(ev.detail);
|
|
131248
|
+
|
|
131249
|
+
const dispose = () => {
|
|
131250
|
+
context.hidePortal(id, portal);
|
|
131251
|
+
element.removeEventListener(evName, handler);
|
|
131252
|
+
};
|
|
131217
131253
|
|
|
131218
131254
|
const update = newProps => {
|
|
131219
131255
|
[id, portal] = (0,_utils__WEBPACK_IMPORTED_MODULE_1__.changeDomPortal)(id, portal, context, element, _components__WEBPACK_IMPORTED_MODULE_2__.ExtensionSlot, newProps);
|
|
131220
131256
|
};
|
|
131221
131257
|
|
|
131258
|
+
element.addEventListener(evName, handler);
|
|
131222
131259
|
return [dispose, update];
|
|
131223
131260
|
}
|
|
131224
131261
|
|
|
@@ -133138,11 +133175,11 @@ function installPiralDebug(options) {
|
|
|
133138
133175
|
debug: debugApiVersion,
|
|
133139
133176
|
instance: {
|
|
133140
133177
|
name: "sample-cross-fx",
|
|
133141
|
-
version: "0.14.
|
|
133178
|
+
version: "0.14.6-beta.3419",
|
|
133142
133179
|
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
133180
|
},
|
|
133144
133181
|
build: {
|
|
133145
|
-
date: "2021-12-
|
|
133182
|
+
date: "2021-12-31T15:28:44.042Z",
|
|
133146
133183
|
cli: "0.14.5",
|
|
133147
133184
|
compat: "0.14"
|
|
133148
133185
|
},
|
|
@@ -255220,4 +255257,4 @@ const app = React.createElement(piral_core_1.Piral, {
|
|
|
255220
255257
|
|
|
255221
255258
|
/******/ })()
|
|
255222
255259
|
;
|
|
255223
|
-
//# sourceMappingURL=index.
|
|
255260
|
+
//# sourceMappingURL=index.1745d6.js.map
|