mount-observer 0.0.111 → 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.111",
3
+ "version": "0.0.112",
4
4
  "description": "Observe and act on css matches.",
5
5
  "main": "MountObserver.js",
6
6
  "module": "MountObserver.js",
@@ -97,14 +97,18 @@
97
97
  "default": "./refid/regIsh.js",
98
98
  "types": "./refid/regIsh.ts"
99
99
  },
100
- "./refid/via.js": {
101
- "default": "./refid/via.js",
102
- "types": "./refid/via.ts"
103
- },
104
100
  "./refid/splitRefs.js": {
105
101
  "default": "./refid/splitRefs.js",
106
102
  "types": "./refid/splitRefs.ts"
107
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
+ },
108
112
  "./slotkin/beKindred.js": {
109
113
  "default": "./slotkin/beKindred.js",
110
114
  "types": "./slotkin/beKindred.ts"
@@ -1,9 +1,12 @@
1
1
  import {IEnhancement, BEAllProps, EMC} from '../trans-render/be/types';
2
2
 
3
3
  export interface EndUserProps extends IEnhancement{
4
+ path: string
5
+ src: string
4
6
  }
5
7
 
6
8
  export interface AllProps extends EndUserProps{
9
+ template: HTMLTemplateElement
7
10
  }
8
11
 
9
12
  export type AP = AllProps;
@@ -15,4 +18,7 @@ export type ProPAP = Promise<PAP>;
15
18
  export type BAP = AP & BEAllProps;
16
19
 
17
20
  export interface Actions{
21
+ act(self: BAP): PAP
22
+ fetchRemoteTemplate(self: BAP): ProPAP
23
+ upShadowSearch(self: BAP): PAP
18
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?: 'Object' | 'String' | 'Object$tring' | 'Object$entences' | 'DSSArray' | 'Boolean' | 'Number',
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;