@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
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module Component
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// Component Metadata
|
|
6
|
-
import { type Endpoint } from "./messenger.meta.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Runtime enforcement of declared value domains.
|
|
10
|
-
* @category Validation
|
|
11
|
-
*/
|
|
12
|
-
export class Validate {
|
|
13
|
-
/**
|
|
14
|
-
* Validates the negotiate endpoint URL value domain.
|
|
15
|
-
* @category Validation
|
|
16
|
-
*/
|
|
17
|
-
public static endpoint = (value: string) => {
|
|
18
|
-
try {
|
|
19
|
-
new URL(value);
|
|
20
|
-
} catch {
|
|
21
|
-
throw new Error(`Invalid endpoint value: ${value}`);
|
|
22
|
-
}
|
|
23
|
-
return value as Endpoint;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @module Component
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// Component Metadata
|
|
6
|
+
import { type Endpoint } from "./messenger.meta.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Runtime enforcement of declared value domains.
|
|
10
|
+
* @category Validation
|
|
11
|
+
*/
|
|
12
|
+
export class Validate {
|
|
13
|
+
/**
|
|
14
|
+
* Validates the negotiate endpoint URL value domain.
|
|
15
|
+
* @category Validation
|
|
16
|
+
*/
|
|
17
|
+
public static endpoint = (value: string) => {
|
|
18
|
+
try {
|
|
19
|
+
new URL(value);
|
|
20
|
+
} catch {
|
|
21
|
+
throw new Error(`Invalid endpoint value: ${value}`);
|
|
22
|
+
}
|
|
23
|
+
return value as Endpoint;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
rootDir: ".", // serve repo root: demo pulls in ../importmap and ./dist via the import map
|
|
3
|
-
port: 3000,
|
|
4
|
-
watch: true, // live-reload on file changes
|
|
5
|
-
// open: "/demo/index.html", // left off: the browser is driven via the chrome-devtools MCP
|
|
6
|
-
// Note: the demo uses relative asset paths, so it must be opened at /demo/index.html
|
|
7
|
-
// (not at "/"). appIndex/history-fallback is intentionally not used here.
|
|
8
|
-
};
|
|
1
|
+
export default {
|
|
2
|
+
rootDir: ".", // serve repo root: demo pulls in ../importmap and ./dist via the import map
|
|
3
|
+
port: 3000,
|
|
4
|
+
watch: true, // live-reload on file changes
|
|
5
|
+
// open: "/demo/index.html", // left off: the browser is driven via the chrome-devtools MCP
|
|
6
|
+
// Note: the demo uses relative asset paths, so it must be opened at /demo/index.html
|
|
7
|
+
// (not at "/"). appIndex/history-fallback is intentionally not used here.
|
|
8
|
+
};
|
package/dist/component.style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<template id="component-template"> </template>
|
package/dist/messenger.style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<template id="app-messenger"> </template>
|