-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemc.js
34 lines (32 loc) · 874 Bytes
/
emc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// @ts-check
import { BeHive, seed, MountObserver } from 'be-hive/be-hive.js';
/** @import {EMC, EventListenerOrFn} from './ts-refs/trans-render/be/types' */
/** @import {Actions, PAP, AP} from './ts-refs/be-committed/types' */;
/**
* @type {Partial<EMC<any, AP>>}
*/
export const emc = {
base: 'be-committed',
branches: ['', 'to', 'nudges'],
map: {
'0.0': {
instanceOf: 'Object',
mapsTo: '.'
},
'1.0': {
instanceOf: 'String',
mapsTo: 'to'
},
'2.0': {
instanceOf: 'Boolean',
mapsTo: 'nudges'
}
},
enhPropKey: 'beCommitted',
importEnh: async () => {
const {BeCommitted} = await import('./be-committed.js');
return BeCommitted;
},
};
const mose = seed(emc);
MountObserver.synthesize(document, BeHive, mose);