mount-observer 0.0.42 → 0.0.44

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
@@ -284,7 +284,7 @@ export class MountObserver extends EventTarget {
284
284
  initializing
285
285
  });
286
286
  }
287
- if (options?.LeaveBreadcrumb) {
287
+ if (options?.leaveBreadcrumb) {
288
288
  if (match[guid] === undefined) {
289
289
  match[guid] = new Set();
290
290
  }
package/MountObserver.ts CHANGED
@@ -296,7 +296,7 @@ export class MountObserver extends EventTarget implements IMountObserver{
296
296
  initializing
297
297
  })
298
298
  }
299
- if(options?.LeaveBreadcrumb){
299
+ if(options?.leaveBreadcrumb){
300
300
  if((<any>match)[guid] === undefined){
301
301
  (<any>match)[guid] = new Set();
302
302
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mount-observer",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "Observe and act on css matches.",
5
5
  "main": "MountObserver.js",
6
6
  "module": "MountObserver.js",
@@ -33,7 +33,7 @@ export interface MountInit extends JSONSerializableMountInit{
33
33
  }
34
34
 
35
35
  export interface MountObserverOptions{
36
- LeaveBreadcrumb?: boolean,
36
+ leaveBreadcrumb?: boolean,
37
37
  }
38
38
 
39
39
  export interface MountObserverCallbacks{
@@ -79,7 +79,7 @@ export interface WeakDual<T>{
79
79
  setWeak: Set<WeakRef<T>>
80
80
  }
81
81
 
82
- export interface IMountObserver {
82
+ export interface IMountObserver extends EventTarget {
83
83
  // readonly mountInit: MountInit,
84
84
  // readonly mountedRefs: WeakRef<Element>[],
85
85
  // readonly dismountedRefs: WeakRef<Element>[],
@@ -1,3 +1,4 @@
1
+ import { IMountObserver } from '../../mount-observer/types';
1
2
  import { Scope} from '../lib/types';
2
3
  import { WrapperConfig } from '../XV/types';
3
4
 
@@ -186,6 +187,7 @@ export interface OConfig<TProps = any, TActions = TProps, ETProps = TProps>{
186
187
  handlers?: Handlers<ETProps, TActions>;
187
188
  positractions?: Positractions<TProps, TActions>;
188
189
  mainTemplate?: string | HTMLTemplateElement;
190
+ isSleepless?: boolean;
189
191
  }
190
192
 
191
193
  export type Positractions<TProps = any, TActions = TProps> =
@@ -347,7 +349,7 @@ export type Checks<TProps = any, TActions = TProps> =
347
349
  Partial<{[key in keyof TActions & string]: SetLogicOps<TProps>}>
348
350
 
349
351
  export type roundaboutOptions<TProps = any, TActions = TProps, ETProps = TProps> = {
350
- vm?: TProps & TActions & RoundaboutReady,
352
+ vm?: TProps & TActions & RoundaboutReady | WeakRef<TProps & TActions & RoundaboutReady>,
351
353
  //for enhanced elements, pass in the container, referenced via $0.
352
354
  container?: EventTarget,
353
355
  propagate?: keyof TProps & string | Array<keyof TProps & string>,
@@ -357,6 +359,7 @@ export type roundaboutOptions<TProps = any, TActions = TProps, ETProps = TProps>
357
359
  handlers?: Handlers<ETProps, TActions>,
358
360
  hitch?: Hitches<TProps, TActions>,
359
361
  positractions?: Positractions<TProps>,
362
+ mountObservers?: Set<IMountObserver>
360
363
  }
361
364
 
362
365
  export type PropsToPartialProps<TProps = any> =
@@ -413,6 +416,8 @@ export interface RoundaboutReady{
413
416
  async awake(): void;
414
417
 
415
418
  async nudge(): void;
419
+
420
+ async rock(): void;
416
421
  }
417
422
 
418
423