mount-observer 0.0.80 → 0.0.81
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/package.json
CHANGED
package/preloadContent.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import {TemplateWithRemoteContent} from './ts-refs/mount-observer/types.js';
|
|
2
2
|
const remoteTemplElSym = Symbol.for('du3y+tfsAUGFHMG/iHZiMQ');
|
|
3
3
|
|
|
4
|
-
export async function preloadContent(
|
|
4
|
+
export async function preloadContent(
|
|
5
|
+
templ: HTMLTemplateElement,
|
|
6
|
+
target?: DocumentFragment | ShadowRoot | Document | Element
|
|
7
|
+
) {
|
|
5
8
|
const templWithRemoteContent = templ as TemplateWithRemoteContent & {
|
|
6
9
|
[remoteTemplElSym]?: WeakRef<HTMLTemplateElement>
|
|
7
10
|
};
|
|
@@ -192,6 +192,7 @@ export interface IshConfig<TProps = any, TActions = TProps, ETProps = TProps>{
|
|
|
192
192
|
inScopeXForms?: {[key: CSSQuery]: XForm<TProps, TActions>};
|
|
193
193
|
ishListCountProp?: keyof TProps & string;
|
|
194
194
|
defaultIshList?: any[];
|
|
195
|
+
mapParentScopeRefTo?: keyof TProps & string;
|
|
195
196
|
}
|
|
196
197
|
export interface OConfig<TProps = any, TActions = TProps, ETProps = TProps> extends IshConfig<TProps, TActions, ETProps>{
|
|
197
198
|
mainTemplate?: string | HTMLTemplateElement;
|
package/upShadowSearch.js
CHANGED