@kya-os/consent 0.3.0 → 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/README.md +185 -20
- package/dist/bundle/index.d.ts +4 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +6 -0
- package/dist/bundle/index.js.map +1 -1
- package/dist/bundle/inline.d.ts.map +1 -1
- package/dist/bundle/inline.js +4 -4
- package/dist/bundle/inline.js.map +1 -1
- package/dist/cjs/bundle/index.js +15 -1
- package/dist/cjs/bundle/index.js.map +1 -1
- package/dist/cjs/bundle/inline.js +4 -4
- package/dist/cjs/bundle/inline.js.map +1 -1
- package/dist/cjs/components/consent-action-bar.js +97 -25
- package/dist/cjs/components/consent-action-bar.js.map +1 -1
- package/dist/cjs/components/consent-agent-header.js +7 -105
- package/dist/cjs/components/consent-agent-header.js.map +1 -1
- package/dist/cjs/components/consent-button.js +6 -1
- package/dist/cjs/components/consent-button.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +488 -66
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-capability-card.js +197 -42
- package/dist/cjs/components/consent-capability-card.js.map +1 -1
- package/dist/cjs/components/consent-checkbox.js +7 -0
- package/dist/cjs/components/consent-checkbox.js.map +1 -1
- package/dist/cjs/components/consent-connector-header.js +206 -43
- package/dist/cjs/components/consent-connector-header.js.map +1 -1
- package/dist/cjs/components/consent-duration.js +1 -1
- package/dist/cjs/components/consent-footer.js +13 -12
- package/dist/cjs/components/consent-footer.js.map +1 -1
- package/dist/cjs/components/consent-headline.js +445 -30
- package/dist/cjs/components/consent-headline.js.map +1 -1
- package/dist/cjs/components/consent-oauth-button.js +71 -62
- package/dist/cjs/components/consent-oauth-button.js.map +1 -1
- package/dist/cjs/components/consent-otp-input.js +5 -0
- package/dist/cjs/components/consent-otp-input.js.map +1 -1
- package/dist/cjs/components/consent-phone-handoff.js +3 -3
- package/dist/cjs/components/consent-request-expiry.js +1 -1
- package/dist/cjs/components/consent-revocation-notice.js +4 -2
- package/dist/cjs/components/consent-revocation-notice.js.map +1 -1
- package/dist/cjs/components/consent-revoke.js +9 -4
- package/dist/cjs/components/consent-revoke.js.map +1 -1
- package/dist/cjs/components/consent-secured-by.js +106 -0
- package/dist/cjs/components/consent-secured-by.js.map +1 -0
- package/dist/cjs/components/consent-shell.js +1 -1
- package/dist/cjs/components/consent-terms.js +7 -0
- package/dist/cjs/components/consent-terms.js.map +1 -1
- package/dist/cjs/components/consent-wallet-check.js +1 -1
- package/dist/cjs/components/consent-wallet-notice.js +1 -1
- package/dist/cjs/components/consent-wallet-orb.js +1 -1
- package/dist/cjs/components/consent-wallet-signature.js +1 -1
- package/dist/cjs/components/decision-icons.js +33 -0
- package/dist/cjs/components/decision-icons.js.map +1 -0
- package/dist/cjs/components/edit-region.js +309 -0
- package/dist/cjs/components/edit-region.js.map +1 -0
- package/dist/cjs/components/grant-field-styles.js +2 -2
- package/dist/cjs/components/index.js +5 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +81 -36
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/components/preview.js +67 -0
- package/dist/cjs/components/preview.js.map +1 -0
- package/dist/cjs/constants/capabilities.js +21 -2
- package/dist/cjs/constants/capabilities.js.map +1 -1
- package/dist/cjs/copy/tokens.js +60 -21
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/identity/agent-identity.js +3 -2
- package/dist/cjs/identity/agent-identity.js.map +1 -1
- package/dist/cjs/mcp-app/inline.js +2 -2
- package/dist/cjs/mcp-app/inline.js.map +1 -1
- package/dist/cjs/react/index.js +11 -2
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/cjs/styles/brand.js +385 -0
- package/dist/cjs/styles/brand.js.map +1 -0
- package/dist/cjs/styles/index.js +1 -0
- package/dist/cjs/styles/index.js.map +1 -1
- package/dist/cjs/styles/theme.js +100 -30
- package/dist/cjs/styles/theme.js.map +1 -1
- package/dist/cjs/types/capabilities.types.js +1 -2
- package/dist/cjs/types/capabilities.types.js.map +1 -1
- package/dist/cjs/types/decision.types.js +13 -0
- package/dist/cjs/types/decision.types.js.map +1 -0
- package/dist/cjs/types/edit.types.js +80 -0
- package/dist/cjs/types/edit.types.js.map +1 -0
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/components/consent-action-bar.d.ts +20 -1
- package/dist/components/consent-action-bar.d.ts.map +1 -1
- package/dist/components/consent-action-bar.js +97 -25
- package/dist/components/consent-action-bar.js.map +1 -1
- package/dist/components/consent-agent-header.d.ts +4 -17
- package/dist/components/consent-agent-header.d.ts.map +1 -1
- package/dist/components/consent-agent-header.js +7 -105
- package/dist/components/consent-agent-header.js.map +1 -1
- package/dist/components/consent-button.d.ts +2 -0
- package/dist/components/consent-button.d.ts.map +1 -1
- package/dist/components/consent-button.js +6 -1
- package/dist/components/consent-button.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +93 -14
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +488 -67
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-capability-card.d.ts +42 -5
- package/dist/components/consent-capability-card.d.ts.map +1 -1
- package/dist/components/consent-capability-card.js +196 -41
- package/dist/components/consent-capability-card.js.map +1 -1
- package/dist/components/consent-checkbox.d.ts +2 -0
- package/dist/components/consent-checkbox.d.ts.map +1 -1
- package/dist/components/consent-checkbox.js +7 -0
- package/dist/components/consent-checkbox.js.map +1 -1
- package/dist/components/consent-connector-header.d.ts +39 -7
- package/dist/components/consent-connector-header.d.ts.map +1 -1
- package/dist/components/consent-connector-header.js +206 -43
- package/dist/components/consent-connector-header.js.map +1 -1
- package/dist/components/consent-duration.js +1 -1
- package/dist/components/consent-footer.d.ts +6 -4
- package/dist/components/consent-footer.d.ts.map +1 -1
- package/dist/components/consent-footer.js +13 -12
- package/dist/components/consent-footer.js.map +1 -1
- package/dist/components/consent-headline.d.ts +76 -12
- package/dist/components/consent-headline.d.ts.map +1 -1
- package/dist/components/consent-headline.js +445 -32
- package/dist/components/consent-headline.js.map +1 -1
- package/dist/components/consent-oauth-button.d.ts +7 -3
- package/dist/components/consent-oauth-button.d.ts.map +1 -1
- package/dist/components/consent-oauth-button.js +74 -65
- package/dist/components/consent-oauth-button.js.map +1 -1
- package/dist/components/consent-otp-input.d.ts.map +1 -1
- package/dist/components/consent-otp-input.js +5 -0
- package/dist/components/consent-otp-input.js.map +1 -1
- package/dist/components/consent-passkey.d.ts +6 -0
- package/dist/components/consent-passkey.d.ts.map +1 -1
- package/dist/components/consent-passkey.js +67 -9
- package/dist/components/consent-passkey.js.map +1 -1
- package/dist/components/consent-phone-handoff.js +3 -3
- package/dist/components/consent-request-expiry.js +1 -1
- package/dist/components/consent-revocation-notice.d.ts.map +1 -1
- package/dist/components/consent-revocation-notice.js +4 -2
- package/dist/components/consent-revocation-notice.js.map +1 -1
- package/dist/components/consent-revoke.d.ts +2 -0
- package/dist/components/consent-revoke.d.ts.map +1 -1
- package/dist/components/consent-revoke.js +9 -4
- package/dist/components/consent-revoke.js.map +1 -1
- package/dist/components/consent-secured-by.d.ts +25 -0
- package/dist/components/consent-secured-by.d.ts.map +1 -0
- package/dist/components/consent-secured-by.js +103 -0
- package/dist/components/consent-secured-by.js.map +1 -0
- package/dist/components/consent-shell.js +1 -1
- package/dist/components/consent-terms.d.ts +2 -0
- package/dist/components/consent-terms.d.ts.map +1 -1
- package/dist/components/consent-terms.js +7 -0
- package/dist/components/consent-terms.js.map +1 -1
- package/dist/components/consent-wallet-check.js +1 -1
- package/dist/components/consent-wallet-notice.js +1 -1
- package/dist/components/consent-wallet-orb.js +1 -1
- package/dist/components/consent-wallet-signature.js +1 -1
- package/dist/components/decision-icons.d.ts +22 -0
- package/dist/components/decision-icons.d.ts.map +1 -0
- package/dist/components/decision-icons.js +30 -0
- package/dist/components/decision-icons.js.map +1 -0
- package/dist/components/edit-region.d.ts +50 -0
- package/dist/components/edit-region.d.ts.map +1 -0
- package/dist/components/edit-region.js +305 -0
- package/dist/components/edit-region.js.map +1 -0
- package/dist/components/grant-field-styles.js +2 -2
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +15 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +81 -36
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/components/preview.d.ts +38 -0
- package/dist/components/preview.d.ts.map +1 -0
- package/dist/components/preview.js +61 -0
- package/dist/components/preview.js.map +1 -0
- package/dist/consent.js +2200 -389
- package/dist/consent.min.js +1308 -496
- package/dist/constants/capabilities.d.ts +14 -2
- package/dist/constants/capabilities.d.ts.map +1 -1
- package/dist/constants/capabilities.js +21 -2
- package/dist/constants/capabilities.js.map +1 -1
- package/dist/copy/tokens.d.ts +60 -21
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +60 -21
- package/dist/copy/tokens.js.map +1 -1
- package/dist/identity/agent-identity.d.ts +3 -2
- package/dist/identity/agent-identity.d.ts.map +1 -1
- package/dist/identity/agent-identity.js +3 -2
- package/dist/identity/agent-identity.js.map +1 -1
- package/dist/mcp-app/inline.d.ts.map +1 -1
- package/dist/mcp-app/inline.js +2 -2
- package/dist/mcp-app/inline.js.map +1 -1
- package/dist/react/index.d.ts +6 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +10 -1
- package/dist/react/index.js.map +1 -1
- package/dist/styles/brand.d.ts +184 -0
- package/dist/styles/brand.d.ts.map +1 -0
- package/dist/styles/brand.js +372 -0
- package/dist/styles/brand.js.map +1 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/index.js +1 -0
- package/dist/styles/index.js.map +1 -1
- package/dist/styles/theme.d.ts +73 -13
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/theme.js +96 -29
- package/dist/styles/theme.js.map +1 -1
- package/dist/types/capabilities.types.d.ts +12 -14
- package/dist/types/capabilities.types.d.ts.map +1 -1
- package/dist/types/capabilities.types.js +1 -2
- package/dist/types/capabilities.types.js.map +1 -1
- package/dist/types/decision.types.d.ts +57 -0
- package/dist/types/decision.types.d.ts.map +1 -0
- package/dist/types/decision.types.js +12 -0
- package/dist/types/decision.types.js.map +1 -0
- package/dist/types/edit.types.d.ts +73 -0
- package/dist/types/edit.types.d.ts.map +1 -0
- package/dist/types/edit.types.js +76 -0
- package/dist/types/edit.types.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
package/dist/styles/theme.js
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* primary button can adopt operator brand color while the rest of the
|
|
14
14
|
* surface stays in the chosen theme.
|
|
15
15
|
*
|
|
16
|
-
* The
|
|
17
|
-
*
|
|
16
|
+
* The `HIGHER RISK` chip is amber in both themes, whatever the org's brand:
|
|
17
|
+
* a soft warning amber on the light card, and a solid amber on the dark one.
|
|
18
18
|
*
|
|
19
19
|
* The agent logo tile tokens are fixed across themes too: agent artwork is
|
|
20
20
|
* drawn on a white tile with a light border in both themes, so a logo never
|
|
@@ -27,9 +27,21 @@
|
|
|
27
27
|
*/
|
|
28
28
|
const FIXED_RISK_CHIP_BG = "#FCE7B6";
|
|
29
29
|
const FIXED_RISK_CHIP_TEXT = "#7A4F00";
|
|
30
|
+
/** The light theme's risk chip: warning amber at 10% over the card, 5.8:1. */
|
|
31
|
+
const LIGHT_RISK_CHIP_BG = "rgba(140, 74, 0, 0.10)";
|
|
32
|
+
const LIGHT_RISK_CHIP_TEXT = "#8C4A00";
|
|
30
33
|
const FIXED_AGENT_TILE_BG = "#FFFFFF";
|
|
31
34
|
const FIXED_AGENT_TILE_BORDER = "rgba(15, 23, 42, 0.08)";
|
|
32
35
|
const FIXED_AGENT_TILE_TEXT = "#0F172A";
|
|
36
|
+
/** The share of the brand (or the text, with no brand) in a tinted box. */
|
|
37
|
+
export const TINT_PERCENT = 7;
|
|
38
|
+
/** The share of the brand (or the text) in a tinted box's edge. */
|
|
39
|
+
export const TINT_LINE_PERCENT = 18;
|
|
40
|
+
/**
|
|
41
|
+
* The light theme. Its quietest text reaches 4.5:1 on the cream inset panel
|
|
42
|
+
* (4.54:1) as well as on the card, and its focus ring 3:1 on both, the
|
|
43
|
+
* ratios WCAG 1.4.3 and 1.4.11 ask for.
|
|
44
|
+
*/
|
|
33
45
|
export const lightTheme = {
|
|
34
46
|
surfaceBg: "#F4F1EA",
|
|
35
47
|
surfaceCard: "#FFFFFF",
|
|
@@ -37,20 +49,17 @@ export const lightTheme = {
|
|
|
37
49
|
surfaceInset: "#F1ECE2",
|
|
38
50
|
textPrimary: "#0F172A",
|
|
39
51
|
textSecondary: "#334155",
|
|
40
|
-
textTertiary: "#
|
|
52
|
+
textTertiary: "#5D6C82",
|
|
41
53
|
surfaceAccent: "#0F172A",
|
|
42
54
|
surfaceAccentText: "#FFFFFF",
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
chipRiskBg: FIXED_RISK_CHIP_BG,
|
|
48
|
-
chipRiskText: FIXED_RISK_CHIP_TEXT,
|
|
49
|
-
focusRing: "rgba(15, 23, 42, 0.35)",
|
|
50
|
-
cardShadow: "0 30px 80px -40px rgba(15, 23, 42, 0.40)",
|
|
55
|
+
chipRiskBg: LIGHT_RISK_CHIP_BG,
|
|
56
|
+
chipRiskText: LIGHT_RISK_CHIP_TEXT,
|
|
57
|
+
focusRing: "#0F172A",
|
|
58
|
+
cardShadow: "0 6px 20px -6px rgba(15, 23, 42, 0.10)",
|
|
51
59
|
agentTileBg: FIXED_AGENT_TILE_BG,
|
|
52
60
|
agentTileBorder: FIXED_AGENT_TILE_BORDER,
|
|
53
61
|
agentTileText: FIXED_AGENT_TILE_TEXT,
|
|
62
|
+
lockup: "#0810FE",
|
|
54
63
|
};
|
|
55
64
|
export const darkTheme = {
|
|
56
65
|
surfaceBg: "#0B0808",
|
|
@@ -62,10 +71,6 @@ export const darkTheme = {
|
|
|
62
71
|
textTertiary: "#94A3B8",
|
|
63
72
|
surfaceAccent: "#F8FAFC",
|
|
64
73
|
surfaceAccentText: "#0F172A",
|
|
65
|
-
pillVerifiedBg: "rgba(34, 197, 94, 0.16)",
|
|
66
|
-
pillVerifiedText: "#86EFAC",
|
|
67
|
-
pillUnverifiedBg: "rgba(148, 163, 184, 0.18)",
|
|
68
|
-
pillUnverifiedText: "#CBD5E1",
|
|
69
74
|
chipRiskBg: FIXED_RISK_CHIP_BG,
|
|
70
75
|
chipRiskText: FIXED_RISK_CHIP_TEXT,
|
|
71
76
|
focusRing: "rgba(248, 250, 252, 0.55)",
|
|
@@ -73,6 +78,7 @@ export const darkTheme = {
|
|
|
73
78
|
agentTileBg: FIXED_AGENT_TILE_BG,
|
|
74
79
|
agentTileBorder: FIXED_AGENT_TILE_BORDER,
|
|
75
80
|
agentTileText: FIXED_AGENT_TILE_TEXT,
|
|
81
|
+
warningText: "#FCD34D",
|
|
76
82
|
};
|
|
77
83
|
/**
|
|
78
84
|
* Resolve a theme by name. Defaults to `light` for any unknown value.
|
|
@@ -83,27 +89,88 @@ export function getConsentTheme(theme) {
|
|
|
83
89
|
/**
|
|
84
90
|
* Render a theme as a CSS string suitable for injecting into a `<style>` block
|
|
85
91
|
* or `:host { ... }` rule. Each token becomes a `--cs-{kebab}` custom property.
|
|
86
|
-
*
|
|
87
|
-
*
|
|
92
|
+
* Tokens a theme omits (or sets to undefined) are emitted with their fixed or
|
|
93
|
+
* derived values ({@link resolveThemeTokens}), so the output never contains
|
|
94
|
+
* "undefined".
|
|
88
95
|
*
|
|
89
96
|
* @example
|
|
90
97
|
* themeToCssVariables(lightTheme);
|
|
91
98
|
* // " --cs-surface-bg: #F4F1EA;\n ... \n --cs-agent-tile-bg: #FFFFFF;\n ..."
|
|
92
99
|
*/
|
|
93
100
|
export function themeToCssVariables(tokens) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
return Object.entries(resolveThemeTokens(tokens))
|
|
102
|
+
.map(([key, value]) => ` ${themeTokenProperty(key)}: ${value};`)
|
|
103
|
+
.join("\n");
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Every token of `tokens`, with the optional ones a theme omits filled in:
|
|
107
|
+
* the fixed agent tile, and a tint, mark and action color made from the
|
|
108
|
+
* theme's own text and card.
|
|
109
|
+
*/
|
|
110
|
+
export function resolveThemeTokens(tokens) {
|
|
111
|
+
const resolved = { ...tokens };
|
|
112
|
+
for (const key of FIXED_KEYS) {
|
|
113
|
+
resolved[key] = tokens[key] ?? FIXED_TOKENS[key];
|
|
114
|
+
}
|
|
115
|
+
for (const key of DERIVED_KEYS) {
|
|
116
|
+
resolved[key] = tokens[key] ?? DERIVED_TOKENS[key]((base) => tokens[base]);
|
|
103
117
|
}
|
|
104
|
-
return
|
|
118
|
+
return resolved;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The CSS that themes an element's shadow tree while letting the page win: a
|
|
122
|
+
* `--cs-*` property the page sets, on the element or on any ancestor, is used
|
|
123
|
+
* as it is, and every other one comes from `tokens`.
|
|
124
|
+
*
|
|
125
|
+
* The element resolves each token once on `:host`, under a private name
|
|
126
|
+
* (`--_cs-*`), then publishes it under its public name on `scope`, the top
|
|
127
|
+
* elements of its shadow tree, so everything inside reads the public name as
|
|
128
|
+
* before. (The private step is what lets the public name take the page's
|
|
129
|
+
* value: a property cannot refer to itself.) A derived token the page does
|
|
130
|
+
* not set, such as the tint, is made from the resolved tokens, so a page that
|
|
131
|
+
* sets only its text and card colors gets a tint of those.
|
|
132
|
+
*
|
|
133
|
+
* @param tokens - The theme the element draws where the page sets nothing.
|
|
134
|
+
* @param scope - A selector list for the top elements of the shadow tree.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* themeScopeStyle(lightTheme, ".card");
|
|
138
|
+
* // ":host {\n --_cs-surface-bg: var(--cs-surface-bg, #F4F1EA);\n ... }
|
|
139
|
+
* // .card {\n --cs-surface-bg: var(--_cs-surface-bg);\n ... }"
|
|
140
|
+
*/
|
|
141
|
+
export function themeScopeStyle(tokens, scope) {
|
|
142
|
+
const resolved = resolveThemeTokens(tokens);
|
|
143
|
+
const keys = Object.keys(resolved);
|
|
144
|
+
const resolvedName = (key) => `--_${themeTokenProperty(key).slice(2)}`;
|
|
145
|
+
const isDerived = (key) => DERIVED_KEYS.includes(key);
|
|
146
|
+
const fallback = (key) => isDerived(key) && tokens[key] === undefined
|
|
147
|
+
? DERIVED_TOKENS[key]((base) => `var(${resolvedName(base)})`)
|
|
148
|
+
: resolved[key];
|
|
149
|
+
const resolve = keys.map((key) => ` ${resolvedName(key)}: var(${themeTokenProperty(key)}, ${fallback(key)});`);
|
|
150
|
+
const publish = keys.map((key) => ` ${themeTokenProperty(key)}: var(${resolvedName(key)});`);
|
|
151
|
+
return `:host {\n${resolve.join("\n")}\n}\n${scope} {\n${publish.join("\n")}\n}`;
|
|
105
152
|
}
|
|
106
|
-
|
|
107
|
-
|
|
153
|
+
const FIXED_TOKENS = {
|
|
154
|
+
agentTileBg: FIXED_AGENT_TILE_BG,
|
|
155
|
+
agentTileBorder: FIXED_AGENT_TILE_BORDER,
|
|
156
|
+
agentTileText: FIXED_AGENT_TILE_TEXT,
|
|
157
|
+
};
|
|
158
|
+
const FIXED_KEYS = Object.keys(FIXED_TOKENS);
|
|
159
|
+
/**
|
|
160
|
+
* How each derived token is made, given how to name a base token: its value
|
|
161
|
+
* in a theme object, or the property it resolves to in a shadow tree.
|
|
162
|
+
*/
|
|
163
|
+
const DERIVED_TOKENS = {
|
|
164
|
+
tint: (token) => `color-mix(in srgb, ${token("textPrimary")} ${TINT_PERCENT}%, ${token("surfaceCard")})`,
|
|
165
|
+
tintLine: (token) => `color-mix(in srgb, ${token("textPrimary")} ${TINT_LINE_PERCENT}%, ${token("surfaceCard")})`,
|
|
166
|
+
mark: (token) => token("textPrimary"),
|
|
167
|
+
action: (token) => token("textPrimary"),
|
|
168
|
+
lockup: (token) => token("textPrimary"),
|
|
169
|
+
warningText: (token) => token("chipRiskText"),
|
|
170
|
+
};
|
|
171
|
+
const DERIVED_KEYS = Object.keys(DERIVED_TOKENS);
|
|
172
|
+
/** The custom property a theme key is published as: `tintLine` is `--cs-tint-line`. */
|
|
173
|
+
export function themeTokenProperty(key) {
|
|
174
|
+
return `--cs-${key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)}`;
|
|
108
175
|
}
|
|
109
176
|
//# sourceMappingURL=theme.js.map
|
package/dist/styles/theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAmHH,MAAM,kBAAkB,GAAG,SAAS,CAAC;AACrC,MAAM,oBAAoB,GAAG,SAAS,CAAC;AACvC,8EAA8E;AAC9E,MAAM,kBAAkB,GAAG,wBAAwB,CAAC;AACpD,MAAM,oBAAoB,GAAG,SAAS,CAAC;AACvC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AACtC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AACzD,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAExC,2EAA2E;AAC3E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC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AI,iBAAiB,MAAM,KAAK,CAAC,aAAa,CAAC,GAAG;IAC9F,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;IACrC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;IACvC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC;IACvC,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;CAC9C,CAAC;AACF,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,cAAc,CAAsB,CAAC;AAEtE,uFAAuF;AACvF,MAAM,UAAU,kBAAkB,CAAC,GAAW;IAC5C,OAAO,QAAQ,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,EAAE,CAAC;AACvE,CAAC"}
|
|
@@ -66,8 +66,7 @@ export type RelationshipContext = Pick<AgentMetadata, "verification" | "verified
|
|
|
66
66
|
*
|
|
67
67
|
* `verification` wins when it is one of the three states; otherwise the
|
|
68
68
|
* deprecated `verified` boolean reads as `verified` or `unverified`. A
|
|
69
|
-
* `domain` state with no domain to name reads as `unverified
|
|
70
|
-
* never shows an empty pill.
|
|
69
|
+
* `domain` state with no domain to name reads as `unverified`.
|
|
71
70
|
*/
|
|
72
71
|
export declare function agentVerification(agent: Pick<AgentMetadata, "verification" | "verified" | "domain">): AgentVerification;
|
|
73
72
|
/**
|
|
@@ -148,15 +147,14 @@ export interface CapabilityGroup {
|
|
|
148
147
|
capabilities: Capability[];
|
|
149
148
|
}
|
|
150
149
|
/**
|
|
151
|
-
* How an agent's identity is established, which
|
|
152
|
-
*
|
|
150
|
+
* How an agent's identity is established, which decides whether a grant may
|
|
151
|
+
* rise above `probe` (`isCappedAtProbe`):
|
|
153
152
|
*
|
|
154
|
-
* - `verified`: proven, by a verified Entity Card.
|
|
153
|
+
* - `verified`: proven, by a verified Entity Card.
|
|
155
154
|
* - `domain`: bound to the https host that served the client's metadata (a
|
|
156
|
-
* CIMD client such as ChatGPT or Claude).
|
|
157
|
-
*
|
|
158
|
-
* - `unverified`: self-asserted (a dynamically registered client).
|
|
159
|
-
* says UNVERIFIED.
|
|
155
|
+
* CIMD client such as ChatGPT or Claude). Capped like `unverified`: a
|
|
156
|
+
* domain binding names the client, it does not verify it.
|
|
157
|
+
* - `unverified`: self-asserted (a dynamically registered client).
|
|
160
158
|
*/
|
|
161
159
|
export type AgentVerification = "verified" | "domain" | "unverified";
|
|
162
160
|
/**
|
|
@@ -164,8 +162,8 @@ export type AgentVerification = "verified" | "domain" | "unverified";
|
|
|
164
162
|
* screens.
|
|
165
163
|
*
|
|
166
164
|
* Mirrors the rendering of the agent identity in Peter's mockup
|
|
167
|
-
* (`Claude · Made by Anthropic · Asking from your Mac
|
|
168
|
-
*
|
|
165
|
+
* (`Claude · Made by Anthropic · Asking from your Mac`) and the OAuth
|
|
166
|
+
* Gateway consent tile.
|
|
169
167
|
*/
|
|
170
168
|
export interface AgentMetadata {
|
|
171
169
|
/** Display name (e.g. "Claude"). */
|
|
@@ -176,11 +174,11 @@ export interface AgentMetadata {
|
|
|
176
174
|
vendor?: string;
|
|
177
175
|
/** Surface label (e.g. "Mac", "Web", "Desktop"). */
|
|
178
176
|
surfaceLabel?: string;
|
|
179
|
-
/** How the agent's identity is established;
|
|
177
|
+
/** How the agent's identity is established; decides the probe cap. */
|
|
180
178
|
verification?: AgentVerification;
|
|
181
179
|
/**
|
|
182
|
-
* The host that served the client's metadata (e.g. "chatgpt.com"),
|
|
183
|
-
*
|
|
180
|
+
* The host that served the client's metadata (e.g. "chatgpt.com"),
|
|
181
|
+
* required when `verification` is `domain`.
|
|
184
182
|
*/
|
|
185
183
|
domain?: string;
|
|
186
184
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.types.d.ts","sourceRoot":"","sources":["../../src/types/capabilities.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAE7D;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,aAAa,EACb,cAAc,GAAG,UAAU,GAAG,aAAa,CAC5C,CAAC;AAQF
|
|
1
|
+
{"version":3,"file":"capabilities.types.d.ts","sourceRoot":"","sources":["../../src/types/capabilities.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAE7D;AAED;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,aAAa,EACb,cAAc,GAAG,UAAU,GAAG,aAAa,CAC5C,CAAC;AAQF;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,cAAc,GAAG,UAAU,GAAG,QAAQ,CAAC,GACjE,iBAAiB,CAMnB;AAeD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,mBAAmB,GAAG,SAAS,GACrC,OAAO,CAQT;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,GACtB,QAAQ,GACR,MAAM,GACN,MAAM,GACN,KAAK,GACL,SAAS,GACT,QAAQ,GACR,KAAK,GACL,OAA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AAC,EAAE,iBAAiB,CAAC;IAEjC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,+FAA+F;IAC/F,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5C;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAElB,8DAA8D;IAC9D,QAAQ,EAAE,MAAM,CAAC;IAEjB,kFAAkF;IAClF,GAAG,EAAE,MAAM,CAAC;IAEZ,iGAAiG;IACjG,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,wEAAwE;IACxE,QAAQ,EAAE,MAAM,CAAC;IAEjB,kEAAkE;IAClE,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
|
|
@@ -41,8 +41,7 @@ const AGENT_VERIFICATIONS = [
|
|
|
41
41
|
*
|
|
42
42
|
* `verification` wins when it is one of the three states; otherwise the
|
|
43
43
|
* deprecated `verified` boolean reads as `verified` or `unverified`. A
|
|
44
|
-
* `domain` state with no domain to name reads as `unverified
|
|
45
|
-
* never shows an empty pill.
|
|
44
|
+
* `domain` state with no domain to name reads as `unverified`.
|
|
46
45
|
*/
|
|
47
46
|
export function agentVerification(agent) {
|
|
48
47
|
const stated = agent.verification;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.types.js","sourceRoot":"","sources":["../../src/types/capabilities.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AA4BH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,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C;IAEtC,OAAO,CACL,CAAC,KAAK;QACN,iBAAiB,CAAC,KAAK,CAAC,KAAK,UAAU;QACvC,KAAK,CAAC,QAAQ,KAAK,KAAK;QACxB,CAAC,KAAK,CAAC,WAAW;QAClB,CAAC,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,CACzC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the capabilities screen shows beside the permissions: who is signing
|
|
3
|
+
* in, and what the grant connects to and how it is bounded.
|
|
4
|
+
*
|
|
5
|
+
* The host words every value. The screen lays them out and never formats a
|
|
6
|
+
* time, an amount or a duration itself, so the host keeps its own locale,
|
|
7
|
+
* time zone and rules (such as leaving out a budget beside a per-call limit).
|
|
8
|
+
*
|
|
9
|
+
* @module types/decision
|
|
10
|
+
*/
|
|
11
|
+
/** A check the person passed, such as a professional register. */
|
|
12
|
+
export interface ConsentApproverCheck {
|
|
13
|
+
/** What was established, such as "Verified healthcare professional". */
|
|
14
|
+
label: string;
|
|
15
|
+
/** What it found, such as "Doctor". */
|
|
16
|
+
summary?: string;
|
|
17
|
+
/** Where it was checked, such as "Checked in the French RPPS register". */
|
|
18
|
+
source?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Who is signing in. The screen draws the box when there is an identifier or
|
|
22
|
+
* a check, and nothing for a confirmation without sign-in.
|
|
23
|
+
*/
|
|
24
|
+
export interface ConsentApprover {
|
|
25
|
+
/** The person's sign-in, such as an email address. */
|
|
26
|
+
identifier?: string;
|
|
27
|
+
/** Checks the person passed, each under the sign-in. */
|
|
28
|
+
checks?: ConsentApproverCheck[];
|
|
29
|
+
}
|
|
30
|
+
/** A value, with a smaller line under it. */
|
|
31
|
+
export interface ConsentGrantFact {
|
|
32
|
+
/** One line per value. */
|
|
33
|
+
values: string[];
|
|
34
|
+
/** The smaller line under the values. */
|
|
35
|
+
note?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The rows of the screen's "Permission details" box, in this order. A row
|
|
39
|
+
* with no value is left out, and the box is drawn only when `grantDetails` is
|
|
40
|
+
* set; without it the screen shows its revocation notice instead.
|
|
41
|
+
*/
|
|
42
|
+
export interface ConsentGrantDetails {
|
|
43
|
+
/**
|
|
44
|
+
* The address the grant connects to. "Connects to" shows the screen's
|
|
45
|
+
* `orgName` over it, or the address alone when there is no name.
|
|
46
|
+
*/
|
|
47
|
+
resource?: string;
|
|
48
|
+
/** How long the grant lasts, such as "1 hour, until 2:38 AM". */
|
|
49
|
+
duration?: ConsentGrantFact;
|
|
50
|
+
/** The budget, such as "$200.00 a month". */
|
|
51
|
+
budget?: string;
|
|
52
|
+
/** Per-call amount limits, such as "Up to €50.00 per call for orders:place". */
|
|
53
|
+
amountLimits?: ConsentGrantFact;
|
|
54
|
+
/** Scopes an earlier approval already holds, which stay granted. */
|
|
55
|
+
alreadyGranted?: ConsentGrantFact;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=decision.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decision.types.d.ts","sourceRoot":"","sources":["../../src/types/decision.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,kEAAkE;AAClE,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACjC;AAED,6CAA6C;AAC7C,MAAM,WAAW,gBAAgB;IAC/B,0BAA0B;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,oEAAoE;IACpE,cAAc,CAAC,EAAE,gBAAgB,CAAC;CACnC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the capabilities screen shows beside the permissions: who is signing
|
|
3
|
+
* in, and what the grant connects to and how it is bounded.
|
|
4
|
+
*
|
|
5
|
+
* The host words every value. The screen lays them out and never formats a
|
|
6
|
+
* time, an amount or a duration itself, so the host keeps its own locale,
|
|
7
|
+
* time zone and rules (such as leaving out a budget beside a per-call limit).
|
|
8
|
+
*
|
|
9
|
+
* @module types/decision
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=decision.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decision.types.js","sourceRoot":"","sources":["../../src/types/decision.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Edit Mode Types
|
|
3
|
+
*
|
|
4
|
+
* The words a person can edit in place on a screen in edit mode (`preview`
|
|
5
|
+
* and `editable` together), each named by a key. A region sends
|
|
6
|
+
* `consent-edit` with `{ key, value }` on every keystroke and
|
|
7
|
+
* `consent-edit-end` when it is left; the host writes the value to its own
|
|
8
|
+
* data and passes the result back, as it would for any other change.
|
|
9
|
+
*
|
|
10
|
+
* @module types/edit
|
|
11
|
+
*/
|
|
12
|
+
/** The fixed keys, and builders for the keys that name a row. */
|
|
13
|
+
export declare const CONSENT_EDIT_KEYS: {
|
|
14
|
+
/** The subhead under the headline. */
|
|
15
|
+
readonly description: "description";
|
|
16
|
+
/** The organization's name in the headline. */
|
|
17
|
+
readonly orgName: "org-name";
|
|
18
|
+
/** The Allow button's label. */
|
|
19
|
+
readonly submitLabel: "submit-label";
|
|
20
|
+
/** The Deny button's label. */
|
|
21
|
+
readonly cancelLabel: "cancel-label";
|
|
22
|
+
/** A headline a host words itself, in the `headline` slot. */
|
|
23
|
+
readonly headline: "headline";
|
|
24
|
+
/** The title of a page a host draws after the decision. */
|
|
25
|
+
readonly terminalTitle: "terminal:title";
|
|
26
|
+
/** The body of a page a host draws after the decision. */
|
|
27
|
+
readonly terminalBody: "terminal:body";
|
|
28
|
+
/** A capability row's label, by the capability's id. */
|
|
29
|
+
readonly capabilityLabel: (id: string) => CapabilityLabelEditKey;
|
|
30
|
+
/** A capability row's description, by the capability's id. */
|
|
31
|
+
readonly capabilityDescription: (id: string) => CapabilityDescriptionEditKey;
|
|
32
|
+
};
|
|
33
|
+
/** A capability row's label. */
|
|
34
|
+
export type CapabilityLabelEditKey = `capability:${string}:label`;
|
|
35
|
+
/** A capability row's description. */
|
|
36
|
+
export type CapabilityDescriptionEditKey = `capability:${string}:description`;
|
|
37
|
+
/** A key that names a capability row's words. */
|
|
38
|
+
export type CapabilityEditKey = CapabilityLabelEditKey | CapabilityDescriptionEditKey;
|
|
39
|
+
/** Every key a region can carry. */
|
|
40
|
+
export type ConsentEditKey = "description" | "org-name" | "submit-label" | "cancel-label" | "headline" | "terminal:title" | "terminal:body" | CapabilityEditKey;
|
|
41
|
+
/**
|
|
42
|
+
* Each region's raw text by key, such as a template with its placeholders.
|
|
43
|
+
* A region shows it while it has focus, and shows the drawn text otherwise.
|
|
44
|
+
* A key with no entry edits the drawn text.
|
|
45
|
+
*/
|
|
46
|
+
export type ConsentEditSource = Partial<Record<ConsentEditKey, string>>;
|
|
47
|
+
/** The detail of `consent-edit` and `consent-edit-end`. */
|
|
48
|
+
export interface ConsentEditDetail {
|
|
49
|
+
key: ConsentEditKey;
|
|
50
|
+
/** The region's whole text, on one line. */
|
|
51
|
+
value: string;
|
|
52
|
+
}
|
|
53
|
+
/** The events a region sends. Both bubble and cross shadow roots. */
|
|
54
|
+
export declare const CONSENT_EDIT_EVENTS: {
|
|
55
|
+
/** On every change to a region's text. */
|
|
56
|
+
readonly edit: "consent-edit";
|
|
57
|
+
/** When a person leaves a region they changed, for hosts that group undo. */
|
|
58
|
+
readonly end: "consent-edit-end";
|
|
59
|
+
};
|
|
60
|
+
/** A key, read back into what it names. */
|
|
61
|
+
export type ParsedConsentEditKey = {
|
|
62
|
+
kind: Exclude<ConsentEditKey, CapabilityEditKey>;
|
|
63
|
+
} | {
|
|
64
|
+
kind: "capability-label" | "capability-description";
|
|
65
|
+
capabilityId: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* What a key names, or null for a string that is not a key. A capability id
|
|
69
|
+
* may itself hold colons: everything between the prefix and the last part
|
|
70
|
+
* (`:label` or `:description`) is the id.
|
|
71
|
+
*/
|
|
72
|
+
export declare function parseConsentEditKey(key: string): ParsedConsentEditKey | null;
|
|
73
|
+
//# sourceMappingURL=edit.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit.types.d.ts","sourceRoot":"","sources":["../../src/types/edit.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,iEAAiE;AACjE,eAAO,MAAM,iBAAiB;IAC5B,sCAAsC;;IAEtC,+CAA+C;;IAE/C,gCAAgC;;IAEhC,+BAA+B;;IAE/B,8DAA8D;;IAE9D,2DAA2D;;IAE3D,0DAA0D;;IAE1D,wDAAwD;mCAClC,MAAM,KAAG,sBAAsB;IAErD,8DAA8D;yCAClC,MAAM,KAAG,4BAA4B;CAEzD,CAAC;AAEX,gCAAgC;AAChC,MAAM,MAAM,sBAAsB,GAAG,cAAc,MAAM,QAAQ,CAAC;AAElE,sCAAsC;AACtC,MAAM,MAAM,4BAA4B,GAAG,cAAc,MAAM,cAAc,CAAC;AAE9E,iDAAiD;AACjD,MAAM,MAAM,iBAAiB,GACzB,sBAAsB,GACtB,4BAA4B,CAAC;AAEjC,oCAAoC;AACpC,MAAM,MAAM,cAAc,GACtB,aAAa,GACb,UAAU,GACV,cAAc,GACd,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,eAAe,GACf,iBAAiB,CAAC;AAEtB;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;AAExE,2DAA2D;AAC3D,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,cAAc,CAAC;IACpB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qEAAqE;AACrE,eAAO,MAAM,mBAAmB;IAC9B,0CAA0C;;IAE1C,6EAA6E;;CAErE,CAAC;AAEX,2CAA2C;AAC3C,MAAM,MAAM,oBAAoB,GAC5B;IACE,IAAI,EAAE,OAAO,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;CAClD,GACD;IACE,IAAI,EAAE,kBAAkB,GAAG,wBAAwB,CAAC;IACpD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAkBN;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI,CAiB5E"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Edit Mode Types
|
|
3
|
+
*
|
|
4
|
+
* The words a person can edit in place on a screen in edit mode (`preview`
|
|
5
|
+
* and `editable` together), each named by a key. A region sends
|
|
6
|
+
* `consent-edit` with `{ key, value }` on every keystroke and
|
|
7
|
+
* `consent-edit-end` when it is left; the host writes the value to its own
|
|
8
|
+
* data and passes the result back, as it would for any other change.
|
|
9
|
+
*
|
|
10
|
+
* @module types/edit
|
|
11
|
+
*/
|
|
12
|
+
/** The fixed keys, and builders for the keys that name a row. */
|
|
13
|
+
export const CONSENT_EDIT_KEYS = {
|
|
14
|
+
/** The subhead under the headline. */
|
|
15
|
+
description: "description",
|
|
16
|
+
/** The organization's name in the headline. */
|
|
17
|
+
orgName: "org-name",
|
|
18
|
+
/** The Allow button's label. */
|
|
19
|
+
submitLabel: "submit-label",
|
|
20
|
+
/** The Deny button's label. */
|
|
21
|
+
cancelLabel: "cancel-label",
|
|
22
|
+
/** A headline a host words itself, in the `headline` slot. */
|
|
23
|
+
headline: "headline",
|
|
24
|
+
/** The title of a page a host draws after the decision. */
|
|
25
|
+
terminalTitle: "terminal:title",
|
|
26
|
+
/** The body of a page a host draws after the decision. */
|
|
27
|
+
terminalBody: "terminal:body",
|
|
28
|
+
/** A capability row's label, by the capability's id. */
|
|
29
|
+
capabilityLabel: (id) => `capability:${id}:label`,
|
|
30
|
+
/** A capability row's description, by the capability's id. */
|
|
31
|
+
capabilityDescription: (id) => `capability:${id}:description`,
|
|
32
|
+
};
|
|
33
|
+
/** The events a region sends. Both bubble and cross shadow roots. */
|
|
34
|
+
export const CONSENT_EDIT_EVENTS = {
|
|
35
|
+
/** On every change to a region's text. */
|
|
36
|
+
edit: "consent-edit",
|
|
37
|
+
/** When a person leaves a region they changed, for hosts that group undo. */
|
|
38
|
+
end: "consent-edit-end",
|
|
39
|
+
};
|
|
40
|
+
const FIXED_KEYS = new Set([
|
|
41
|
+
CONSENT_EDIT_KEYS.description,
|
|
42
|
+
CONSENT_EDIT_KEYS.orgName,
|
|
43
|
+
CONSENT_EDIT_KEYS.submitLabel,
|
|
44
|
+
CONSENT_EDIT_KEYS.cancelLabel,
|
|
45
|
+
CONSENT_EDIT_KEYS.headline,
|
|
46
|
+
CONSENT_EDIT_KEYS.terminalTitle,
|
|
47
|
+
CONSENT_EDIT_KEYS.terminalBody,
|
|
48
|
+
]);
|
|
49
|
+
const CAPABILITY_PREFIX = "capability:";
|
|
50
|
+
const CAPABILITY_SUFFIXES = [
|
|
51
|
+
[":label", "capability-label"],
|
|
52
|
+
[":description", "capability-description"],
|
|
53
|
+
];
|
|
54
|
+
/**
|
|
55
|
+
* What a key names, or null for a string that is not a key. A capability id
|
|
56
|
+
* may itself hold colons: everything between the prefix and the last part
|
|
57
|
+
* (`:label` or `:description`) is the id.
|
|
58
|
+
*/
|
|
59
|
+
export function parseConsentEditKey(key) {
|
|
60
|
+
if (FIXED_KEYS.has(key)) {
|
|
61
|
+
return { kind: key };
|
|
62
|
+
}
|
|
63
|
+
if (!key.startsWith(CAPABILITY_PREFIX))
|
|
64
|
+
return null;
|
|
65
|
+
for (const [suffix, kind] of CAPABILITY_SUFFIXES) {
|
|
66
|
+
if (key.endsWith(suffix) &&
|
|
67
|
+
key.length > CAPABILITY_PREFIX.length + suffix.length) {
|
|
68
|
+
return {
|
|
69
|
+
kind,
|
|
70
|
+
capabilityId: key.slice(CAPABILITY_PREFIX.length, -suffix.length),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=edit.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit.types.js","sourceRoot":"","sources":["../../src/types/edit.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,iEAAiE;AACjE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,sCAAsC;IACtC,WAAW,EAAE,aAAa;IAC1B,+CAA+C;IAC/C,OAAO,EAAE,UAAU;IACnB,gCAAgC;IAChC,WAAW,EAAE,cAAc;IAC3B,+BAA+B;IAC/B,WAAW,EAAE,cAAc;IAC3B,8DAA8D;IAC9D,QAAQ,EAAE,UAAU;IACpB,2DAA2D;IAC3D,aAAa,EAAE,gBAAgB;IAC/B,0DAA0D;IAC1D,YAAY,EAAE,eAAe;IAC7B,wDAAwD;IACxD,eAAe,EAAE,CAAC,EAAU,EAA0B,EAAE,CACtD,cAAc,EAAE,QAAQ;IAC1B,8DAA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C;aAClE,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
package/dist/types/index.js
CHANGED
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/consent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Consent page types, styles, utilities, and web components for agent authorization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
117
117
|
"clean": "rm -rf dist .turbo node_modules",
|
|
118
118
|
"prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-no-workspace.js",
|
|
119
|
-
"test:browser": "python3 scripts/test-capabilities-browser.py && python3 scripts/test-mcp-consent-selection.py && python3 scripts/test-passkey-browser.py && python3 scripts/test-grant-terms-browser.py && python3 scripts/test-wallet-browser.py && python3 scripts/test-form-names-browser.py && python3 scripts/test-narrow-browser.py",
|
|
119
|
+
"test:browser": "python3 scripts/test-capabilities-browser.py && python3 scripts/test-mcp-consent-selection.py && python3 scripts/test-passkey-browser.py && python3 scripts/test-grant-terms-browser.py && python3 scripts/test-wallet-browser.py && python3 scripts/test-form-names-browser.py && python3 scripts/test-narrow-browser.py && python3 scripts/test-site-phone-browser.py && python3 scripts/test-host-parts-browser.py && python3 scripts/test-theming-browser.py && python3 scripts/test-connector-browser.py && python3 scripts/test-edit-browser.py && python3 scripts/test-decision-browser.py",
|
|
120
120
|
"verify:bundles": "node scripts/verify-bundles.js",
|
|
121
121
|
"site:build": "node site/scripts/build.mjs",
|
|
122
122
|
"site:check": "node site/scripts/check.mjs",
|