mount-observer 0.1.22 → 0.1.23

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/Synthesizer.js CHANGED
@@ -1,6 +1,16 @@
1
1
  import './ElementMountExtension.js';
2
2
  import { waitForEvent } from 'assign-gingerly/waitForEvent.js';
3
3
  import { AddedScriptElementEvent } from './Events.js';
4
+ import 'mount-observer/handlers/MountObserverScript.js';
5
+ import { mos } from 'mount-observer/handlers/MountObserverScript.js';
6
+ import 'mount-observer/handlers/ScriptExport.js';
7
+ import { scriptExport } from 'mount-observer/handlers/ScriptExport.js';
8
+ import 'mount-observer/handlers/HTMLInclude.js';
9
+ import { include } from 'mount-observer/handlers/HTMLInclude.js';
10
+ import 'mount-observer/handlers/HoistTemplate.js';
11
+ import { hoist } from 'mount-observer/handlers/HoistTemplate.js';
12
+ import { emc } from 'mount-observer/handlers/EMCScript.js';
13
+ import 'mount-observer/handlers/EMCScript.js';
4
14
  /**
5
15
  * Track which root nodes have already had handlers activated.
6
16
  * Uses WeakSet to avoid memory leaks when nodes are garbage collected.
@@ -43,11 +53,7 @@ export class Synthesizer extends HTMLElement {
43
53
  * List of built-in handlers to activate.
44
54
  */
45
55
  static builtInHandlers = [
46
- 'builtIns.mountObserverScript',
47
- 'builtIns.scriptExport',
48
- 'builtIns.HTMLInclude',
49
- 'builtIns.hoistTemplate',
50
- 'builtIns.emcScript'
56
+ mos, scriptExport, include, hoist, emc
51
57
  ];
52
58
  connectedCallback() {
53
59
  // Synthesizer elements are infrastructure, not UI
package/Synthesizer.ts CHANGED
@@ -2,6 +2,17 @@ import './ElementMountExtension.js';
2
2
  import { waitForEvent } from 'assign-gingerly/waitForEvent.js';
3
3
  import { AddedScriptElementEvent } from './Events.js';
4
4
 
5
+ import 'mount-observer/handlers/MountObserverScript.js';
6
+ import {mos} from 'mount-observer/handlers/MountObserverScript.js';
7
+ import 'mount-observer/handlers/ScriptExport.js';
8
+ import {scriptExport} from 'mount-observer/handlers/ScriptExport.js';
9
+ import 'mount-observer/handlers/HTMLInclude.js';
10
+ import {include} from 'mount-observer/handlers/HTMLInclude.js';
11
+ import 'mount-observer/handlers/HoistTemplate.js';
12
+ import {hoist} from 'mount-observer/handlers/HoistTemplate.js';
13
+ import {emc} from 'mount-observer/handlers/EMCScript.js';
14
+ import 'mount-observer/handlers/EMCScript.js';
15
+
5
16
  /**
6
17
  * Track which root nodes have already had handlers activated.
7
18
  * Uses WeakSet to avoid memory leaks when nodes are garbage collected.
@@ -46,11 +57,7 @@ export abstract class Synthesizer extends HTMLElement {
46
57
  * List of built-in handlers to activate.
47
58
  */
48
59
  protected static builtInHandlers = [
49
- 'builtIns.mountObserverScript',
50
- 'builtIns.scriptExport',
51
- 'builtIns.HTMLInclude',
52
- 'builtIns.hoistTemplate',
53
- 'builtIns.emcScript'
60
+ mos, scriptExport, include, hoist, emc
54
61
  ];
55
62
 
56
63
  connectedCallback(): void {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mount-observer",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Observe and act on css matches.",
5
5
  "main": "MountObserver.js",
6
6
  "module": "MountObserver.js",