mount-observer 0.0.67 → 0.0.68
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/MountObserver.js
CHANGED
|
@@ -423,7 +423,11 @@ export class MountObserver extends EventTarget {
|
|
|
423
423
|
this.#mount(elsToMount, initializing);
|
|
424
424
|
}
|
|
425
425
|
async #inspectWithin(within, initializing) {
|
|
426
|
-
await bindish
|
|
426
|
+
//the line below had an await for bindish, consistent with the rest of the code, but it was
|
|
427
|
+
//getting into a catch-22 scenario frequently, blocking the code for resuming.
|
|
428
|
+
//This was observed with per-each package, demo/ScopeScript.html, clicking refresh a few times
|
|
429
|
+
//one will see the inconsistent behavior if await is added below.
|
|
430
|
+
bindish(within, within, { assigner: this.#mountInit.assigner });
|
|
427
431
|
await this.composeFragment(within, 0);
|
|
428
432
|
const match = await this.#selector();
|
|
429
433
|
const els = Array.from(within.querySelectorAll(match));
|
package/MountObserver.ts
CHANGED
|
@@ -442,7 +442,11 @@ export class MountObserver extends EventTarget implements IMountObserver{
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
async #inspectWithin(within: Node, initializing: boolean){
|
|
445
|
-
await bindish
|
|
445
|
+
//the line below had an await for bindish, consistent with the rest of the code, but it was
|
|
446
|
+
//getting into a catch-22 scenario frequently, blocking the code for resuming.
|
|
447
|
+
//This was observed with per-each package, demo/ScopeScript.html, clicking refresh a few times
|
|
448
|
+
//one will see the inconsistent behavior if await is added below.
|
|
449
|
+
bindish(within as DocumentFragment, within, {assigner: this.#mountInit.assigner});
|
|
446
450
|
await this.composeFragment(within as DocumentFragment, 0);
|
|
447
451
|
const match = await this.#selector();
|
|
448
452
|
const els = Array.from((within as Element).querySelectorAll(match));
|
package/package.json
CHANGED
|
@@ -12,7 +12,8 @@ export interface EndUserProps extends IEnhancement{
|
|
|
12
12
|
export interface AllProps extends EndUserProps{
|
|
13
13
|
listProp: string;
|
|
14
14
|
itemProp: string;
|
|
15
|
-
ish:
|
|
15
|
+
ish: HasIshList;
|
|
16
|
+
ishContainer: Element;
|
|
16
17
|
itemTemplate: HTMLTemplateElement;
|
|
17
18
|
emc: any;
|
|
18
19
|
//updateCnt: number;
|
|
@@ -191,6 +191,7 @@ export interface IshConfig<TProps = any, TActions = TProps, ETProps = TProps>{
|
|
|
191
191
|
xform?: XForm<TProps, TActions>;
|
|
192
192
|
inScopeXForms?: {[key: CSSQuery]: XForm<TProps, TActions>};
|
|
193
193
|
ishListCountProp?: keyof TProps & string;
|
|
194
|
+
defaultIshList?: any[];
|
|
194
195
|
}
|
|
195
196
|
export interface OConfig<TProps = any, TActions = TProps, ETProps = TProps> extends IshConfig<TProps, TActions, ETProps>{
|
|
196
197
|
mainTemplate?: string | HTMLTemplateElement;
|
|
@@ -556,7 +556,8 @@ export type StringWithAutocompleteOptions<TOptions> =
|
|
|
556
556
|
| TOptions;
|
|
557
557
|
|
|
558
558
|
export interface Clone$Options{
|
|
559
|
-
ish:
|
|
559
|
+
ish: HasIshList,
|
|
560
|
+
ishContainer: Element,
|
|
560
561
|
seedEl: Element,
|
|
561
562
|
idxStart: number,
|
|
562
563
|
itemProp: string,
|