cradova 3.7.7 → 3.7.8
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/dist/index.js +6 -7
- package/dist/primitives/classes.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var makeElement = (element, ElementChildrenAndPropertyList) => {
|
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
37
|
if (prop === "onmount") {
|
|
38
|
-
CradovaEvent.after_comp_is_mounted.push(() => {
|
|
38
|
+
window.CradovaEvent.after_comp_is_mounted.push(() => {
|
|
39
39
|
typeof props["onmount"] === "function" && props["onmount"].apply(element);
|
|
40
40
|
});
|
|
41
41
|
continue;
|
|
@@ -169,7 +169,7 @@ function useEffect(effect, self) {
|
|
|
169
169
|
}
|
|
170
170
|
if (self.rendered)
|
|
171
171
|
return;
|
|
172
|
-
CradovaEvent.after_comp_is_mounted.push(effect);
|
|
172
|
+
window.CradovaEvent.after_comp_is_mounted.push(effect);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
class __raw_ref {
|
|
@@ -244,7 +244,7 @@ var funcManager = {
|
|
|
244
244
|
node.remove();
|
|
245
245
|
func.published = true;
|
|
246
246
|
func.reference = html;
|
|
247
|
-
CradovaEvent.dispatchEvent("after_comp_is_mounted");
|
|
247
|
+
window.CradovaEvent.dispatchEvent("after_comp_is_mounted");
|
|
248
248
|
} else {
|
|
249
249
|
console.error(" ✘ Cradova err : Invalid html, got - " + html);
|
|
250
250
|
}
|
|
@@ -324,7 +324,7 @@ class cradovaEvent {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
|
|
327
|
+
window.CradovaEvent = new cradovaEvent;
|
|
328
328
|
|
|
329
329
|
class Signal {
|
|
330
330
|
pn;
|
|
@@ -496,13 +496,13 @@ class Page {
|
|
|
496
496
|
async _load() {
|
|
497
497
|
if (this._name)
|
|
498
498
|
document.title = this._name;
|
|
499
|
-
CradovaEvent.dispatchEvent("after_page_is_killed");
|
|
499
|
+
window.CradovaEvent.dispatchEvent("after_page_is_killed");
|
|
500
500
|
this._template = div({ id: "page" }, this._html);
|
|
501
501
|
RouterBox.doc.innerHTML = "";
|
|
502
502
|
if (this._snapshot)
|
|
503
503
|
this._snapshot_html = this._template.outerHTML;
|
|
504
504
|
RouterBox.doc.appendChild(this._template);
|
|
505
|
-
CradovaEvent.dispatchEvent("after_comp_is_mounted");
|
|
505
|
+
window.CradovaEvent.dispatchEvent("after_comp_is_mounted");
|
|
506
506
|
window.scrollTo({
|
|
507
507
|
top: 0,
|
|
508
508
|
left: 0,
|
|
@@ -772,7 +772,6 @@ export {
|
|
|
772
772
|
Signal,
|
|
773
773
|
Router,
|
|
774
774
|
Page,
|
|
775
|
-
CradovaEvent,
|
|
776
775
|
$switch,
|
|
777
776
|
$ifelse,
|
|
778
777
|
$if,
|