@effect.healthcare/messenger 0.3.1 → 0.4.1
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/.claude/CLAUDE.md +88 -88
- package/.claude/context/composition.md +921 -921
- package/.claude/context/data.md +1036 -1036
- package/.claude/context/event.md +686 -686
- package/.claude/context/gesture.md +614 -614
- package/.claude/context/operation.md +596 -596
- package/.claude/context/state.md +864 -864
- package/.claude/context/testing.md +876 -876
- package/.claude/context/validation.md +350 -350
- package/.claude/context/workflow.md +608 -608
- package/.claude/settings.json +7 -0
- package/.mcp.json +12 -12
- package/LICENSE +144 -144
- package/dist/messenger.d.ts +9 -1
- package/dist/messenger.js +23 -4
- package/dist/messenger.meta.d.ts +1 -0
- package/dist/messenger.meta.js +1 -0
- package/package.json +55 -55
- package/src/index.ts +16 -16
- package/src/messenger.meta.ts +132 -131
- package/src/messenger.ts +386 -347
- package/src/messenger.validation.ts +25 -25
- package/web-dev-server.config.mjs +8 -8
- package/.claude/settings.local.json +0 -11
- package/dist/component.style.css +0 -6
- package/dist/component.template.html +0 -1
- package/dist/messenger.style.css +0 -6
- package/dist/messenger.template.html +0 -1
package/src/messenger.meta.ts
CHANGED
|
@@ -1,131 +1,132 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module Component
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @category Configuration
|
|
7
|
-
*/
|
|
8
|
-
export const Tag = "app-messenger" as const;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Local storage key under which the session token is stored (and renewed) by
|
|
12
|
-
* the License component. Externalized so the contract lives in one place.
|
|
13
|
-
* @category Configuration
|
|
14
|
-
*/
|
|
15
|
-
export const Session = "app-license.session" as const;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The Azure Web PubSub subprotocol required for structured group messaging.
|
|
19
|
-
* @category Configuration
|
|
20
|
-
*/
|
|
21
|
-
export const Protocol = "json.webpubsub.azure.v1" as const;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Inbound message types the messenger reacts to (the `data.type` of a frame).
|
|
25
|
-
* @category Metadata
|
|
26
|
-
* @enum
|
|
27
|
-
*/
|
|
28
|
-
export const Message = {
|
|
29
|
-
MASTER_DATA_CHANGED: "masterData.changed",
|
|
30
|
-
} as const;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Inbound message types the messenger reacts to.
|
|
34
|
-
* @category Metadata
|
|
35
|
-
*/
|
|
36
|
-
export type Message = (typeof Message)[keyof typeof Message];
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* HTML Attributes available to set
|
|
40
|
-
* @category Metadata
|
|
41
|
-
* @enum
|
|
42
|
-
*/
|
|
43
|
-
export const Attributes = {
|
|
44
|
-
CONNECTION: "connection",
|
|
45
|
-
ENDPOINT: "endpoint",
|
|
46
|
-
} as const;
|
|
47
|
-
/**
|
|
48
|
-
* HTML Attributes available to set
|
|
49
|
-
* @category Metadata
|
|
50
|
-
*/
|
|
51
|
-
export type Attributes = typeof Attributes;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* HTML Attributes available to set
|
|
55
|
-
* @category Metadata
|
|
56
|
-
* @enum
|
|
57
|
-
*/
|
|
58
|
-
export const State = {
|
|
59
|
-
...Attributes,
|
|
60
|
-
} as const;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* HTML Attributes available to set
|
|
64
|
-
* @category Metadata
|
|
65
|
-
*/
|
|
66
|
-
export type State = (typeof State)[keyof typeof State];
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Live connection status value domain
|
|
70
|
-
* @category Metadata
|
|
71
|
-
* @enum
|
|
72
|
-
*/
|
|
73
|
-
export const Connection = {
|
|
74
|
-
DISCONNECTED: "disconnected",
|
|
75
|
-
CONNECTING: "connecting",
|
|
76
|
-
CONNECTED: "connected",
|
|
77
|
-
} as const;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Live connection status value domain
|
|
81
|
-
* @category Metadata
|
|
82
|
-
*/
|
|
83
|
-
export type Connection = (typeof Connection)[keyof typeof Connection];
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* The negotiate endpoint URL value domain
|
|
87
|
-
* @category Metadata
|
|
88
|
-
*/
|
|
89
|
-
export type Endpoint = string;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @category Metadata
|
|
93
|
-
* @enum
|
|
94
|
-
*/
|
|
95
|
-
export const Operation = {
|
|
96
|
-
CONNECT: "connect",
|
|
97
|
-
DISCONNECT: "disconnect",
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
* @
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
* @
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module Component
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @category Configuration
|
|
7
|
+
*/
|
|
8
|
+
export const Tag = "app-messenger" as const;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Local storage key under which the session token is stored (and renewed) by
|
|
12
|
+
* the License component. Externalized so the contract lives in one place.
|
|
13
|
+
* @category Configuration
|
|
14
|
+
*/
|
|
15
|
+
export const Session = "app-license.session" as const;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The Azure Web PubSub subprotocol required for structured group messaging.
|
|
19
|
+
* @category Configuration
|
|
20
|
+
*/
|
|
21
|
+
export const Protocol = "json.webpubsub.azure.v1" as const;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Inbound message types the messenger reacts to (the `data.type` of a frame).
|
|
25
|
+
* @category Metadata
|
|
26
|
+
* @enum
|
|
27
|
+
*/
|
|
28
|
+
export const Message = {
|
|
29
|
+
MASTER_DATA_CHANGED: "masterData.changed",
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Inbound message types the messenger reacts to.
|
|
34
|
+
* @category Metadata
|
|
35
|
+
*/
|
|
36
|
+
export type Message = (typeof Message)[keyof typeof Message];
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* HTML Attributes available to set
|
|
40
|
+
* @category Metadata
|
|
41
|
+
* @enum
|
|
42
|
+
*/
|
|
43
|
+
export const Attributes = {
|
|
44
|
+
CONNECTION: "connection",
|
|
45
|
+
ENDPOINT: "endpoint",
|
|
46
|
+
} as const;
|
|
47
|
+
/**
|
|
48
|
+
* HTML Attributes available to set
|
|
49
|
+
* @category Metadata
|
|
50
|
+
*/
|
|
51
|
+
export type Attributes = typeof Attributes;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* HTML Attributes available to set
|
|
55
|
+
* @category Metadata
|
|
56
|
+
* @enum
|
|
57
|
+
*/
|
|
58
|
+
export const State = {
|
|
59
|
+
...Attributes,
|
|
60
|
+
} as const;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* HTML Attributes available to set
|
|
64
|
+
* @category Metadata
|
|
65
|
+
*/
|
|
66
|
+
export type State = (typeof State)[keyof typeof State];
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Live connection status value domain
|
|
70
|
+
* @category Metadata
|
|
71
|
+
* @enum
|
|
72
|
+
*/
|
|
73
|
+
export const Connection = {
|
|
74
|
+
DISCONNECTED: "disconnected",
|
|
75
|
+
CONNECTING: "connecting",
|
|
76
|
+
CONNECTED: "connected",
|
|
77
|
+
} as const;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Live connection status value domain
|
|
81
|
+
* @category Metadata
|
|
82
|
+
*/
|
|
83
|
+
export type Connection = (typeof Connection)[keyof typeof Connection];
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The negotiate endpoint URL value domain
|
|
87
|
+
* @category Metadata
|
|
88
|
+
*/
|
|
89
|
+
export type Endpoint = string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @category Metadata
|
|
93
|
+
* @enum
|
|
94
|
+
*/
|
|
95
|
+
export const Operation = {
|
|
96
|
+
CONNECT: "connect",
|
|
97
|
+
DISCONNECT: "disconnect",
|
|
98
|
+
SEND: "send",
|
|
99
|
+
} as const;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @category Metadata
|
|
103
|
+
*/
|
|
104
|
+
export type Operation = (typeof Operation)[keyof typeof Operation];
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @category Metadata
|
|
108
|
+
* @enum
|
|
109
|
+
*/
|
|
110
|
+
export const Event = {
|
|
111
|
+
ON_ENDPOINT_CHANGE: "onendpointchange",
|
|
112
|
+
ON_CONNECTING: "onconnecting",
|
|
113
|
+
ON_CONNECTED: "onconnected",
|
|
114
|
+
ON_DISCONNECTED: "ondisconnected",
|
|
115
|
+
ON_MASTERDATACHANGE: "onmasterdatachange",
|
|
116
|
+
} as const;
|
|
117
|
+
/**
|
|
118
|
+
* @category Metadata
|
|
119
|
+
*/
|
|
120
|
+
export type Event = (typeof Event)[keyof typeof Event];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @category Metadata
|
|
124
|
+
* @enum
|
|
125
|
+
*/
|
|
126
|
+
export const Gesture = {
|
|
127
|
+
MESSAGE: "message",
|
|
128
|
+
} as const;
|
|
129
|
+
/**
|
|
130
|
+
* @category Metadata
|
|
131
|
+
*/
|
|
132
|
+
export type Gesture = (typeof Gesture)[keyof typeof Gesture];
|