mount-observer 0.0.43 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mount-observer",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "description": "Observe and act on css matches.",
5
5
  "main": "MountObserver.js",
6
6
  "module": "MountObserver.js",
@@ -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