@kya-os/consent 0.4.1 → 0.4.2
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 +8 -4
- package/dist/bundle/index.d.ts +5 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +7 -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 +21 -0
- 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-capabilities-screen.js +168 -215
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-capability-card.js +30 -7
- package/dist/cjs/components/consent-capability-card.js.map +1 -1
- package/dist/cjs/components/consent-connector-header.js +69 -15
- package/dist/cjs/components/consent-connector-header.js.map +1 -1
- package/dist/cjs/components/consent-flow-timeline.js +177 -0
- package/dist/cjs/components/consent-flow-timeline.js.map +1 -0
- package/dist/cjs/components/consent-flow.js +540 -0
- package/dist/cjs/components/consent-flow.js.map +1 -0
- package/dist/cjs/components/consent-footer.js +9 -2
- package/dist/cjs/components/consent-footer.js.map +1 -1
- package/dist/cjs/components/consent-headline.js +30 -76
- package/dist/cjs/components/consent-headline.js.map +1 -1
- package/dist/cjs/components/consent-oauth-button.js +10 -89
- package/dist/cjs/components/consent-oauth-button.js.map +1 -1
- package/dist/cjs/components/consent-revocation-notice.js +25 -16
- package/dist/cjs/components/consent-revocation-notice.js.map +1 -1
- package/dist/cjs/components/consent-wallet-check.js +25 -1
- package/dist/cjs/components/consent-wallet-check.js.map +1 -1
- package/dist/cjs/components/decision-icons.js +6 -2
- package/dist/cjs/components/decision-icons.js.map +1 -1
- package/dist/cjs/components/flow-blocks.js +762 -0
- package/dist/cjs/components/flow-blocks.js.map +1 -0
- package/dist/cjs/components/flow-motion.js +177 -0
- package/dist/cjs/components/flow-motion.js.map +1 -0
- package/dist/cjs/components/grant-details.js +143 -0
- package/dist/cjs/components/grant-details.js.map +1 -0
- package/dist/cjs/components/index.js +10 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +12 -0
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/components/provider-icons.js +92 -0
- package/dist/cjs/components/provider-icons.js.map +1 -0
- package/dist/cjs/constants/capabilities.js +6 -1
- package/dist/cjs/constants/capabilities.js.map +1 -1
- package/dist/cjs/copy/tokens.js +9 -5
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/flow/copy.js +146 -0
- package/dist/cjs/flow/copy.js.map +1 -0
- package/dist/cjs/flow/index.js +31 -0
- package/dist/cjs/flow/index.js.map +1 -0
- package/dist/cjs/flow/model.js +107 -0
- package/dist/cjs/flow/model.js.map +1 -0
- package/dist/cjs/flow/presets.js +157 -0
- package/dist/cjs/flow/presets.js.map +1 -0
- package/dist/cjs/flow/schema.js +76 -0
- package/dist/cjs/flow/schema.js.map +1 -0
- 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 +30 -1
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/cjs/styles/theme.js +8 -6
- package/dist/cjs/styles/theme.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +22 -6
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +169 -216
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-capability-card.d.ts +10 -1
- package/dist/components/consent-capability-card.d.ts.map +1 -1
- package/dist/components/consent-capability-card.js +30 -7
- package/dist/components/consent-capability-card.js.map +1 -1
- package/dist/components/consent-connector-header.d.ts +14 -1
- package/dist/components/consent-connector-header.d.ts.map +1 -1
- package/dist/components/consent-connector-header.js +69 -15
- package/dist/components/consent-connector-header.js.map +1 -1
- package/dist/components/consent-flow-timeline.d.ts +49 -0
- package/dist/components/consent-flow-timeline.d.ts.map +1 -0
- package/dist/components/consent-flow-timeline.js +174 -0
- package/dist/components/consent-flow-timeline.js.map +1 -0
- package/dist/components/consent-flow.d.ts +101 -0
- package/dist/components/consent-flow.d.ts.map +1 -0
- package/dist/components/consent-flow.js +504 -0
- package/dist/components/consent-flow.js.map +1 -0
- package/dist/components/consent-footer.d.ts.map +1 -1
- package/dist/components/consent-footer.js +9 -2
- package/dist/components/consent-footer.js.map +1 -1
- package/dist/components/consent-headline.d.ts +12 -5
- package/dist/components/consent-headline.d.ts.map +1 -1
- package/dist/components/consent-headline.js +30 -76
- package/dist/components/consent-headline.js.map +1 -1
- package/dist/components/consent-oauth-button.d.ts +3 -4
- package/dist/components/consent-oauth-button.d.ts.map +1 -1
- package/dist/components/consent-oauth-button.js +10 -89
- package/dist/components/consent-oauth-button.js.map +1 -1
- package/dist/components/consent-revocation-notice.d.ts.map +1 -1
- package/dist/components/consent-revocation-notice.js +25 -16
- package/dist/components/consent-revocation-notice.js.map +1 -1
- package/dist/components/consent-wallet-check.d.ts +8 -0
- package/dist/components/consent-wallet-check.d.ts.map +1 -1
- package/dist/components/consent-wallet-check.js +26 -2
- package/dist/components/consent-wallet-check.js.map +1 -1
- package/dist/components/decision-icons.d.ts +6 -2
- package/dist/components/decision-icons.d.ts.map +1 -1
- package/dist/components/decision-icons.js +6 -2
- package/dist/components/decision-icons.js.map +1 -1
- package/dist/components/flow-blocks.d.ts +45 -0
- package/dist/components/flow-blocks.d.ts.map +1 -0
- package/dist/components/flow-blocks.js +755 -0
- package/dist/components/flow-blocks.js.map +1 -0
- package/dist/components/flow-motion.d.ts +41 -0
- package/dist/components/flow-motion.d.ts.map +1 -0
- package/dist/components/flow-motion.js +164 -0
- package/dist/components/flow-motion.js.map +1 -0
- package/dist/components/grant-details.d.ts +28 -0
- package/dist/components/grant-details.d.ts.map +1 -0
- package/dist/components/grant-details.js +138 -0
- package/dist/components/grant-details.js.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +4 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +12 -0
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/components/provider-icons.d.ts +16 -0
- package/dist/components/provider-icons.d.ts.map +1 -0
- package/dist/components/provider-icons.js +88 -0
- package/dist/components/provider-icons.js.map +1 -0
- package/dist/consent.js +3066 -1084
- package/dist/consent.min.js +1419 -658
- package/dist/constants/capabilities.d.ts +6 -2
- package/dist/constants/capabilities.d.ts.map +1 -1
- package/dist/constants/capabilities.js +6 -1
- package/dist/constants/capabilities.js.map +1 -1
- package/dist/copy/tokens.d.ts +9 -5
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +9 -5
- package/dist/copy/tokens.js.map +1 -1
- package/dist/flow/copy.d.ts +31 -0
- package/dist/flow/copy.d.ts.map +1 -0
- package/dist/flow/copy.js +137 -0
- package/dist/flow/copy.js.map +1 -0
- package/dist/flow/index.d.ts +15 -0
- package/dist/flow/index.d.ts.map +1 -0
- package/dist/flow/index.js +15 -0
- package/dist/flow/index.js.map +1 -0
- package/dist/flow/model.d.ts +209 -0
- package/dist/flow/model.d.ts.map +1 -0
- package/dist/flow/model.js +103 -0
- package/dist/flow/model.js.map +1 -0
- package/dist/flow/presets.d.ts +29 -0
- package/dist/flow/presets.d.ts.map +1 -0
- package/dist/flow/presets.js +153 -0
- package/dist/flow/presets.js.map +1 -0
- package/dist/flow/schema.d.ts +127 -0
- package/dist/flow/schema.d.ts.map +1 -0
- package/dist/flow/schema.js +72 -0
- package/dist/flow/schema.js.map +1 -0
- 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 +21 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +29 -0
- package/dist/react/index.js.map +1 -1
- package/dist/styles/theme.d.ts +11 -8
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/theme.js +8 -6
- package/dist/styles/theme.js.map +1 -1
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -164,6 +164,7 @@ Each shows state your page already has, and none of them calls a server.
|
|
|
164
164
|
The orb is a globe inside a dial of 48 ticks.
|
|
165
165
|
While the check runs, the globe turns and a light runs round the dial.
|
|
166
166
|
Once the wallet is ready, the dial closes and a check is drawn; when this browser can't sign, the dial stays open at the top.
|
|
167
|
+
On the capabilities screen, give it `slot="connector-mark"` and `placement="connector"` and it takes the shield's place above the card, between the agent's and your logos: the orb is 60px (`--cs-connector-mark-size`), its line hangs under it, and the connector leaves room before the card.
|
|
167
168
|
- `<consent-wallet-orb>` is that orb on its own, for a screen whose own words already say what is happening.
|
|
168
169
|
It takes the same `status`, and one more: `idle`, for before anything has started, when the globe turns and the dial rests.
|
|
169
170
|
`--cs-wallet-orb-size`, `--cs-wallet-accent`, `--cs-wallet-success` and `--cs-wallet-muted` theme it.
|
|
@@ -272,8 +273,8 @@ screen.grantDetails = {
|
|
|
272
273
|
```
|
|
273
274
|
|
|
274
275
|
- **The headline** reads "{Agent} is requesting permission on your behalf", or "{Agent} would like to {verb} on your behalf" with `headlineVerb`.
|
|
275
|
-
The agent's name is a button that opens what is known about it: its logo or initial, how its name was checked, and its ID.
|
|
276
|
-
|
|
276
|
+
The agent's name is a button that opens what is known about it: its logo or initial, how its name was checked (for a domain-bound agent, the host that vouches for it), and its ID.
|
|
277
|
+
Nothing follows the name: no badge and no host chip.
|
|
277
278
|
- **An unverified agent** gets "Unverified agent: it registered itself, so the name it gives is not checked. Allow only if you asked it to." under the headline.
|
|
278
279
|
A `domain` or `verified` agent gets no warning, and nothing on the screen says "Verified".
|
|
279
280
|
- **`approver`** draws who is signing in, with their initial, and each check they passed (`checks: [{ label, summary, source }]`).
|
|
@@ -283,6 +284,8 @@ screen.grantDetails = {
|
|
|
283
284
|
Without `grantDetails` the screen draws its revocation notice instead.
|
|
284
285
|
- **Rows** are the label over its description, the "HIGHER RISK" chip at the label's right, and each scope as a code badge.
|
|
285
286
|
They draw no icon; set `show-icons` to draw each row's icon tile.
|
|
287
|
+
Set `hide-risk` (on the screen, `<mcp-consent>` or one `<consent-capability-card>`) to leave out the "HIGHER RISK" chip, and `hide-scopes` to leave out the scope badges; each row's `riskLevel` and `scopes` stay as they are. Each is a plain on/off, for an editor to offer as a switch.
|
|
288
|
+
In "Permission details", every row is the host's to give or leave out: without `grantDetails.resource`, "Connects to" names the organization alone.
|
|
286
289
|
|
|
287
290
|
## Host content and styling
|
|
288
291
|
|
|
@@ -300,7 +303,7 @@ Named slots place host content in the existing screen layout:
|
|
|
300
303
|
|
|
301
304
|
Use the `notice` slot whenever the host has different expiry or revocation behavior.
|
|
302
305
|
An omitted slot preserves the existing Cedar screen's default content.
|
|
303
|
-
The public parts are `connector`, `card`, `eyebrow`, `headline`, `agent-name`, `
|
|
306
|
+
The public parts are `connector`, `card`, `eyebrow`, `headline`, `agent-name`, `subhead`, `agent-details` (what the name opens), `unverified`, `approver`, `permissions`, `section-header` (the eyebrow over the rows), `section-hint` ("Tap to toggle"), `grant-details`, `actions`, `submit`, `cancel`, and `below` (under the card).
|
|
304
307
|
Each row's parts are forwarded with a `capability-` prefix: `capability-row`, `capability-checkbox`, `capability-check` (the mark in a ticked box), `capability-icon` (with `show-icons`), `capability-body`, `capability-label-row` (the label, description and risk chip), `capability-label-text` (the label and description), `capability-label`, `capability-description`, `capability-risk`, `capability-scopes`, `capability-scope`, and `capability-policy`.
|
|
305
308
|
|
|
306
309
|
### Theming from the page
|
|
@@ -321,7 +324,7 @@ main {
|
|
|
321
324
|
```
|
|
322
325
|
|
|
323
326
|
The theme's colors are `--cs-surface-bg`, `--cs-surface-card`, `--cs-surface-border`, `--cs-surface-inset` (the panel inside the card), `--cs-text-primary`, `--cs-text-secondary`, `--cs-text-tertiary`, `--cs-surface-accent` and `--cs-surface-accent-text` (the primary action and ticked boxes), `--cs-focus-ring`, the risk chip colors, and `--cs-card-shadow`.
|
|
324
|
-
Six more are made from those unless the page sets them: `--cs-tint` and `--cs-tint-line` (a wash of the text over the card, for tinted boxes such as who is signing in and "Permission details"), `--cs-mark` (marks such as a shield and the details' icons), `--cs-action` (words in the brand, such as the agent's name), `--cs-warning-text` (the unverified-agent warning;
|
|
327
|
+
Six more are made from those unless the page sets them: `--cs-tint` and `--cs-tint-line` (a wash of the text over the card, for tinted boxes such as who is signing in and "Permission details"), `--cs-mark` (marks such as a shield and the details' icons), `--cs-action` (words in the brand, such as the agent's name), `--cs-warning-text` (the unverified-agent warning; the text color) and `--cs-lockup` (the Vouched lockup; Vouched blue in the light theme, the text color in the dark one).
|
|
325
328
|
`--cs-icon` colors the row and notice icons; unset, they keep the text colors.
|
|
326
329
|
`--cs-card-radius` (default `12px`) rounds the card, `--cs-action-radius` (default `6px`) rounds Allow, Deny, the passkey button and the revoke buttons, and `--cs-headline-font`, `--cs-headline-weight` and `--cs-headline-font-size` (default `"Instrument Serif", Georgia, serif` at 600 and 32px) set the headline's face; the page loads Instrument Serif if it wants it.
|
|
327
330
|
`--cs-scope-border` and `--cs-scope-bg` draw each scope's badge.
|
|
@@ -522,6 +525,7 @@ Version 1 supports scope-only rows and the `identity`, `details`, `notice`, and
|
|
|
522
525
|
Version 2 adds the `headline` slot, a slot per row (`capabilitySlotPrefix` plus the capability's id), and the row parts.
|
|
523
526
|
Version 3 lets the page theme the screen from any ancestor, and adds the card, action and headline tokens and the tint, mark and action colors.
|
|
524
527
|
Version 4 draws the decision page by default (`approver`, `grantDetails`, `show-icons`, the unverified-agent warning and the agent's details), moves the `footer` slot under the card, and adds the `legal` slot.
|
|
528
|
+
Version 5 adds the `connector-mark` slot, `hide-risk` and `hide-scopes`, and drops the host chip after a domain-bound agent's name.
|
|
525
529
|
|
|
526
530
|
## Main consent component selection
|
|
527
531
|
|
package/dist/bundle/index.d.ts
CHANGED
|
@@ -47,6 +47,8 @@ import "../components/consent-wallet-check.js";
|
|
|
47
47
|
import "../components/consent-wallet-notice.js";
|
|
48
48
|
import "../components/consent-wallet-signature.js";
|
|
49
49
|
import "../components/consent-request-expiry.js";
|
|
50
|
+
import "../components/consent-flow.js";
|
|
51
|
+
import "../components/consent-flow-timeline.js";
|
|
50
52
|
import "../components/consent-phone-handoff.js";
|
|
51
53
|
import "../components/mcp-consent.js";
|
|
52
54
|
export { McpConsent } from "../components/mcp-consent.js";
|
|
@@ -68,6 +70,9 @@ export { ConsentConnectorHeader } from "../components/consent-connector-header.j
|
|
|
68
70
|
export { ConsentCapabilitiesScreen } from "../components/consent-capabilities-screen.js";
|
|
69
71
|
export { CONSENT_CAPABILITIES_FEATURES } from "../constants/capabilities.js";
|
|
70
72
|
export { brandStyle, brandTokens, drawablePalette, paletteFailures, PALETTE_FIELDS, } from "../styles/brand.js";
|
|
73
|
+
export * from "../flow/model.js";
|
|
74
|
+
export * from "../flow/presets.js";
|
|
75
|
+
export * from "../flow/copy.js";
|
|
71
76
|
export { CONSENT_EDIT_EVENTS, CONSENT_EDIT_KEYS, parseConsentEditKey, } from "../types/edit.types.js";
|
|
72
77
|
export type { ConsentConfig, ResolvedConsentConfig, } from "../types/config.types.js";
|
|
73
78
|
export type { OAuthIdentity } from "../types/api.types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundle/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,gCAAgC,CAAC;AACxC,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,OAAO,gCAAgC,CAAC;AACxC,OAAO,uCAAuC,CAAC;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mB,GACpB,MAAM,wBAAwB,CAAC;AAGhC,YAAY,EACV,aAAa,EACb,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,iBAAiB,GAClB,MAAM,wBAAwB,CAAC"}
|
package/dist/bundle/index.js
CHANGED
|
@@ -48,6 +48,8 @@ import "../components/consent-wallet-check.js";
|
|
|
48
48
|
import "../components/consent-wallet-notice.js";
|
|
49
49
|
import "../components/consent-wallet-signature.js";
|
|
50
50
|
import "../components/consent-request-expiry.js";
|
|
51
|
+
import "../components/consent-flow.js";
|
|
52
|
+
import "../components/consent-flow-timeline.js";
|
|
51
53
|
import "../components/consent-phone-handoff.js";
|
|
52
54
|
import "../components/mcp-consent.js";
|
|
53
55
|
// Re-export the main composite component for programmatic use
|
|
@@ -73,6 +75,11 @@ export { CONSENT_CAPABILITIES_FEATURES } from "../constants/capabilities.js";
|
|
|
73
75
|
// The brand helpers, for a page with no build step: pure functions that turn
|
|
74
76
|
// a brand into the --cs-* properties to set above the screens.
|
|
75
77
|
export { brandStyle, brandTokens, drawablePalette, paletteFailures, PALETTE_FIELDS, } from "../styles/brand.js";
|
|
78
|
+
// Consent flows as data: the model and the presets, for a page with no build
|
|
79
|
+
// step. The schema (zod) stays in @kya-os/consent/flow, for the server.
|
|
80
|
+
export * from "../flow/model.js";
|
|
81
|
+
export * from "../flow/presets.js";
|
|
82
|
+
export * from "../flow/copy.js";
|
|
76
83
|
// Edit mode, for a host that writes edits back with no build step.
|
|
77
84
|
export { CONSENT_EDIT_EVENTS, CONSENT_EDIT_KEYS, parseConsentEditKey, } from "../types/edit.types.js";
|
|
78
85
|
//# sourceMappingURL=index.js.map
|
package/dist/bundle/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index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C;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAE7E,6EAA6E;AAC7E,+DAA+D;AAC/D,OAAO,EACL,UAAU,EACV,WAAW,EACX,eAAe,EACf,eAAe,EACf,cAAc,GACf,MAAM,oBAAoB,CAAC;AAE5B,6EAA6E;AAC7E,wEAAwE;AACxE,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAEhC,mEAAmE;AACnE,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/bundle/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"inline.d.ts","sourceRoot":"","sources":["../../src/bundle/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAA4psb,CAAC;AAE1rsb;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAe,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAA2B,CAAC;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAuC,CAAC"}
|