mount-observer 0.0.37 → 0.0.39

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,12 +1,12 @@
1
1
  {
2
2
  "name": "mount-observer",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "description": "Observe and act on css matches.",
5
5
  "main": "MountObserver.js",
6
6
  "module": "MountObserver.js",
7
7
  "devDependencies": {
8
- "@playwright/test": "1.46.0",
9
- "may-it-serve": "0.0.8"
8
+ "@playwright/test": "1.48.0",
9
+ "ssi-server": "0.0.1"
10
10
  },
11
11
  "exports": {
12
12
  ".": {
@@ -33,9 +33,9 @@
33
33
  ],
34
34
  "types": "./ts-refs/mount-observer/types.d.ts",
35
35
  "scripts": {
36
- "serve": "node node_modules/may-it-serve",
36
+ "serve": "python3 ./node_modules/ssi-server/ssi_server.py",
37
37
  "test": "playwright test",
38
- "safari": "npx playwright wk http://localhost:3030",
38
+ "safari": "npx playwright wk http://localhost:8000",
39
39
  "update": "ncu -u && npm install"
40
40
  },
41
41
  "author": "",
@@ -3,12 +3,12 @@ import { PlaywrightTestConfig, devices } from '@playwright/test';
3
3
  const config: PlaywrightTestConfig = {
4
4
  webServer: {
5
5
  command: 'npm run serve',
6
- url: 'http://localhost:3030/',
6
+ url: 'http://localhost:8000/',
7
7
  timeout: 120 * 1000,
8
8
  reuseExistingServer: !process.env.CI,
9
9
  },
10
10
  use: {
11
- baseURL: 'http://localhost:3030/',
11
+ baseURL: 'http://localhost:8000/',
12
12
  },
13
13
  projects: [
14
14
  {
@@ -0,0 +1,18 @@
1
+ import {IEnhancement, BEAllProps} from '../trans-render/be/types';
2
+
3
+ export interface EndUserProps extends IEnhancement{
4
+ eventName: string, //TODO
5
+ }
6
+ export interface AllProps extends EndUserProps{}
7
+
8
+ export type AP = AllProps;
9
+
10
+ export type PAP = Partial<AP>;
11
+
12
+ export type ProPAP = Promise<PAP>;
13
+
14
+
15
+ export interface Actions{
16
+ hydrate(self: AP & BEAllProps): PAP;
17
+ retire(self: AP & BEAllProps): void;
18
+ }
@@ -36,21 +36,7 @@ export type AP = AllProps;
36
36
 
37
37
  export type PAP = Partial<AP>;
38
38
 
39
- export type ProPAP = Promise<PAP>
40
-
41
- // export interface Actions{
42
- // parseForAttr(self: this): PAP;
43
- // regOnInput(self: this): PAP;
44
- // regOnChange(self: this): PAP;
45
- // regOnLoad(self: this): PAP;
46
- // genRemoteSpecifiers(self: this): PAP;
47
- // hydrate(self: this): ProPAP;
48
- // findScriptEl(self: this): PAP;
49
- // //getArgs(self: this): PAP;
50
- // //observe(self: this): ProPAP;
51
- // importSymbols(self: this): ProPAP;
52
- // //onValue(self: this): void;
53
- // }
39
+ export type ProPAP = Promise<PAP>;
54
40
 
55
41
  export type BAP = AP & BEAllProps & Handlers;
56
42
 
@@ -1,4 +1,4 @@
1
- import { CustomHandlers, ScopedCustomHandlers } from '../trans-render/be/types';
1
+ import { CustomHandlers} from '../trans-render/be/types';
2
2
  import {StringWithAutocompleteOptions} from '../trans-render/types';
3
3
  export type aggKeys = StringWithAutocompleteOptions<
4
4
  | '+'
@@ -14,5 +14,5 @@ export type aggKeys = StringWithAutocompleteOptions<
14
14
 
15
15
  export interface Handlers{
16
16
  customHandlers: CustomHandlers;
17
- scopedCustomHandlers?: ScopedCustomHandlers;
18
- }
17
+ }
18
+
@@ -78,7 +78,8 @@ export interface IMountObserver {
78
78
  disconnect(within: Node): void;
79
79
  module?: any;
80
80
  mountedElements: WeakSet<Element>;
81
- readAttrs(match: Element, branchIndexes?: Set<number>) : AttrChangeInfo[]
81
+ readAttrs(match: Element, branchIndexes?: Set<number>) : AttrChangeInfo[];
82
+ observedAttrs(): Promise<Array<string> | undefined>;
82
83
  }
83
84
 
84
85
  export interface MountContext{