mount-observer 0.0.56 → 0.0.58
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/Newish.js +2 -2
- package/Newish.ts +2 -2
- package/RootMutObs.js +0 -1
- package/RootMutObs.ts +0 -1
- package/package.json +1 -1
- package/ts-refs/mount-observer/types.d.ts +6 -1
package/Newish.js
CHANGED
|
@@ -36,7 +36,7 @@ export class Newish {
|
|
|
36
36
|
this.queue.push(initPropVals);
|
|
37
37
|
const ce = document.createElement(itemscope);
|
|
38
38
|
if ('attachedCallback' in ce && typeof ce.attachedCallback === 'function') {
|
|
39
|
-
await ce.attachedCallback(enhancedElement);
|
|
39
|
+
await ce.attachedCallback(enhancedElement, this.#options);
|
|
40
40
|
}
|
|
41
41
|
this.#ce = ce;
|
|
42
42
|
const self = this;
|
|
@@ -74,7 +74,7 @@ export class Newish {
|
|
|
74
74
|
continue;
|
|
75
75
|
const itemrefElement = rn.getElementById(id);
|
|
76
76
|
if (itemrefElement) {
|
|
77
|
-
this.#ce.inScopeCallback(itemrefElement);
|
|
77
|
+
this.#ce.inScopeCallback(itemrefElement, this.#options);
|
|
78
78
|
this.#alreadyAttached.add(id);
|
|
79
79
|
}
|
|
80
80
|
}
|
package/Newish.ts
CHANGED
|
@@ -38,7 +38,7 @@ export class Newish implements EventListenerObject {
|
|
|
38
38
|
if(initPropVals !== undefined) this.queue.push(initPropVals);
|
|
39
39
|
const ce = document.createElement(itemscope);
|
|
40
40
|
if('attachedCallback' in ce && typeof ce.attachedCallback === 'function'){
|
|
41
|
-
await ce.attachedCallback(enhancedElement)
|
|
41
|
+
await ce.attachedCallback(enhancedElement, this.#options)
|
|
42
42
|
}
|
|
43
43
|
this.#ce = ce;
|
|
44
44
|
const self = this;
|
|
@@ -78,7 +78,7 @@ export class Newish implements EventListenerObject {
|
|
|
78
78
|
if(this.#alreadyAttached.has(id)) continue;
|
|
79
79
|
const itemrefElement = rn.getElementById(id);
|
|
80
80
|
if(itemrefElement){
|
|
81
|
-
(<any>this.#ce).inScopeCallback(itemrefElement);
|
|
81
|
+
(<any>this.#ce).inScopeCallback(itemrefElement, this.#options);
|
|
82
82
|
this.#alreadyAttached.add(id);
|
|
83
83
|
}
|
|
84
84
|
}
|
package/RootMutObs.js
CHANGED
|
@@ -4,7 +4,6 @@ export class RootMutObs extends EventTarget {
|
|
|
4
4
|
constructor(rootNode, options) {
|
|
5
5
|
super();
|
|
6
6
|
this.#idleTimeout = options?.idleTimeout ?? 30;
|
|
7
|
-
console.log(this.#idleTimeout);
|
|
8
7
|
this.#mutationObserver = new MutationObserver(mutationRecords => {
|
|
9
8
|
this.dispatchEvent(new MutationEvent(mutationRecords));
|
|
10
9
|
this.#triggerIsIdle();
|
package/RootMutObs.ts
CHANGED
|
@@ -6,7 +6,6 @@ export class RootMutObs extends EventTarget{
|
|
|
6
6
|
constructor(rootNode: Node, options: MountInit ){
|
|
7
7
|
super();
|
|
8
8
|
this.#idleTimeout = options?.idleTimeout ?? 30;
|
|
9
|
-
console.log(this.#idleTimeout);
|
|
10
9
|
this.#mutationObserver = new MutationObserver(mutationRecords => {
|
|
11
10
|
this.dispatchEvent(new MutationEvent(mutationRecords));
|
|
12
11
|
this.#triggerIsIdle();
|
package/package.json
CHANGED
|
@@ -210,7 +210,12 @@ export interface MOSE<TSynConfig=any>
|
|
|
210
210
|
|
|
211
211
|
export interface BindishOptions{
|
|
212
212
|
assigner?: Assigner,
|
|
213
|
-
waitFor?: string,
|
|
213
|
+
//waitFor?: string,
|
|
214
|
+
/**
|
|
215
|
+
* If derived from a template, set to true
|
|
216
|
+
* to indicate that the initial
|
|
217
|
+
*/
|
|
218
|
+
csr?: boolean,
|
|
214
219
|
}
|
|
215
220
|
|
|
216
221
|
//#endregion
|