mount-observer 0.0.110 → 0.0.112
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mount-observer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.112",
|
|
4
4
|
"description": "Observe and act on css matches.",
|
|
5
5
|
"main": "MountObserver.js",
|
|
6
6
|
"module": "MountObserver.js",
|
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
"default": "./doCleanup.js",
|
|
42
42
|
"types": "./doCleanup.ts"
|
|
43
43
|
},
|
|
44
|
+
"./upShadowSearch.js": {
|
|
45
|
+
"default": "./upShadowSearch.js",
|
|
46
|
+
"types": "./upShadowSearch.ts"
|
|
47
|
+
},
|
|
44
48
|
"./waitForEvent.js": {
|
|
45
49
|
"default": "./waitForEvent.js",
|
|
46
50
|
"types": "./waitForEvent.ts"
|
|
@@ -93,14 +97,18 @@
|
|
|
93
97
|
"default": "./refid/regIsh.js",
|
|
94
98
|
"types": "./refid/regIsh.ts"
|
|
95
99
|
},
|
|
96
|
-
"./refid/via.js": {
|
|
97
|
-
"default": "./refid/via.js",
|
|
98
|
-
"types": "./refid/via.ts"
|
|
99
|
-
},
|
|
100
100
|
"./refid/splitRefs.js": {
|
|
101
101
|
"default": "./refid/splitRefs.js",
|
|
102
102
|
"types": "./refid/splitRefs.ts"
|
|
103
103
|
},
|
|
104
|
+
"./refid/stdVal.js": {
|
|
105
|
+
"default": "./refid/stdVal.js",
|
|
106
|
+
"types": "./refid/stdVal.ts"
|
|
107
|
+
},
|
|
108
|
+
"./refid/via.js": {
|
|
109
|
+
"default": "./refid/via.js",
|
|
110
|
+
"types": "./refid/via.ts"
|
|
111
|
+
},
|
|
104
112
|
"./slotkin/beKindred.js": {
|
|
105
113
|
"default": "./slotkin/beKindred.js",
|
|
106
114
|
"types": "./slotkin/beKindred.ts"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
|
|
2
|
+
|
|
3
|
+
export interface EndUserProps extends IEnhancement{
|
|
4
|
+
path: string
|
|
5
|
+
src: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface AllProps extends EndUserProps{
|
|
9
|
+
template: HTMLTemplateElement
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type AP = AllProps;
|
|
13
|
+
|
|
14
|
+
export type PAP = Partial<AP>;
|
|
15
|
+
|
|
16
|
+
export type ProPAP = Promise<PAP>;
|
|
17
|
+
|
|
18
|
+
export type BAP = AP & BEAllProps;
|
|
19
|
+
|
|
20
|
+
export interface Actions{
|
|
21
|
+
act(self: BAP): PAP
|
|
22
|
+
fetchRemoteTemplate(self: BAP): ProPAP
|
|
23
|
+
upShadowSearch(self: BAP): PAP
|
|
24
|
+
}
|
|
@@ -136,7 +136,15 @@ export type AttrMapPoint<TProps = any> = keyof TProps & string | AttrMapConfig<T
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
export interface AttrMapConfig<TProps = any, TMethods = TProps> {
|
|
139
|
-
instanceOf?:
|
|
139
|
+
instanceOf?:
|
|
140
|
+
| 'Object'
|
|
141
|
+
| 'String'
|
|
142
|
+
| 'StringOrStrings'
|
|
143
|
+
| 'Object$tring'
|
|
144
|
+
| 'Object$entences'
|
|
145
|
+
| 'DSSArray'
|
|
146
|
+
| 'Boolean'
|
|
147
|
+
| 'Number',
|
|
140
148
|
mapsTo?: '.' | keyof TProps,
|
|
141
149
|
valIfFalsy?: any,
|
|
142
150
|
strValMapsTo?: keyof TProps,
|
package/upShadowSearch.ts
CHANGED
|
@@ -2,7 +2,7 @@ export function upShadowSearch(ref: Element, id: string){
|
|
|
2
2
|
let rn = ref.getRootNode() as any;
|
|
3
3
|
while(rn){
|
|
4
4
|
let test = rn.getElementById(id);
|
|
5
|
-
if(test) return test;
|
|
5
|
+
if(test) return test as Element;
|
|
6
6
|
if(rn.host){
|
|
7
7
|
test = (<any>rn.host)[id];
|
|
8
8
|
if(test instanceof HTMLElement) return test;
|