@kya-os/consent 0.2.3 → 0.3.0
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 +217 -3
- package/dist/bundle/index.d.ts +10 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +10 -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 +10 -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-action-bar.js +66 -15
- package/dist/cjs/components/consent-action-bar.js.map +1 -1
- package/dist/cjs/components/consent-agent-header.js +5 -1
- package/dist/cjs/components/consent-agent-header.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +17 -1
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-checkbox.js +2 -2
- package/dist/cjs/components/consent-checkbox.js.map +1 -1
- package/dist/cjs/components/consent-duration.js +187 -0
- package/dist/cjs/components/consent-duration.js.map +1 -0
- package/dist/cjs/components/consent-folder-scope.js +169 -0
- package/dist/cjs/components/consent-folder-scope.js.map +1 -0
- package/dist/cjs/components/consent-footer.js +13 -2
- package/dist/cjs/components/consent-footer.js.map +1 -1
- package/dist/cjs/components/consent-grant-terms.js +321 -0
- package/dist/cjs/components/consent-grant-terms.js.map +1 -0
- package/dist/cjs/components/consent-input.js +47 -27
- package/dist/cjs/components/consent-input.js.map +1 -1
- package/dist/cjs/components/consent-otp-input.js +49 -42
- package/dist/cjs/components/consent-otp-input.js.map +1 -1
- package/dist/cjs/components/consent-phone-handoff.js +219 -0
- package/dist/cjs/components/consent-phone-handoff.js.map +1 -0
- package/dist/cjs/components/consent-request-expiry.js +159 -0
- package/dist/cjs/components/consent-request-expiry.js.map +1 -0
- package/dist/cjs/components/consent-revoke.js +308 -0
- package/dist/cjs/components/consent-revoke.js.map +1 -0
- package/dist/cjs/components/consent-shell.js +3 -0
- package/dist/cjs/components/consent-shell.js.map +1 -1
- package/dist/cjs/components/consent-terms.js +2 -2
- package/dist/cjs/components/consent-terms.js.map +1 -1
- package/dist/cjs/components/consent-wallet-check.js +107 -0
- package/dist/cjs/components/consent-wallet-check.js.map +1 -0
- package/dist/cjs/components/consent-wallet-notice.js +189 -0
- package/dist/cjs/components/consent-wallet-notice.js.map +1 -0
- package/dist/cjs/components/consent-wallet-orb.js +273 -0
- package/dist/cjs/components/consent-wallet-orb.js.map +1 -0
- package/dist/cjs/components/consent-wallet-signature.js +104 -0
- package/dist/cjs/components/consent-wallet-signature.js.map +1 -0
- package/dist/cjs/components/grant-field-styles.js +85 -0
- package/dist/cjs/components/grant-field-styles.js.map +1 -0
- package/dist/cjs/components/index.js +32 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +18 -1
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/components/template-link.js +32 -0
- package/dist/cjs/components/template-link.js.map +1 -0
- package/dist/cjs/components/wallet-globe.js +184 -0
- package/dist/cjs/components/wallet-globe.js.map +1 -0
- package/dist/cjs/components/wallet-icons.js +19 -0
- package/dist/cjs/components/wallet-icons.js.map +1 -0
- package/dist/cjs/components/wallet-status.js +34 -0
- package/dist/cjs/components/wallet-status.js.map +1 -0
- package/dist/cjs/copy/tokens.js +91 -0
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/grant/index.js +24 -0
- package/dist/cjs/grant/index.js.map +1 -0
- package/dist/cjs/grant/terms.js +148 -0
- package/dist/cjs/grant/terms.js.map +1 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.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 +120 -1
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/components/consent-action-bar.d.ts +17 -0
- package/dist/components/consent-action-bar.d.ts.map +1 -1
- package/dist/components/consent-action-bar.js +67 -16
- package/dist/components/consent-action-bar.js.map +1 -1
- package/dist/components/consent-agent-header.d.ts.map +1 -1
- package/dist/components/consent-agent-header.js +5 -1
- package/dist/components/consent-agent-header.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +10 -0
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +17 -1
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-checkbox.d.ts +1 -1
- package/dist/components/consent-checkbox.js +2 -2
- package/dist/components/consent-checkbox.js.map +1 -1
- package/dist/components/consent-duration.d.ts +64 -0
- package/dist/components/consent-duration.d.ts.map +1 -0
- package/dist/components/consent-duration.js +184 -0
- package/dist/components/consent-duration.js.map +1 -0
- package/dist/components/consent-folder-scope.d.ts +70 -0
- package/dist/components/consent-folder-scope.d.ts.map +1 -0
- package/dist/components/consent-folder-scope.js +166 -0
- package/dist/components/consent-folder-scope.js.map +1 -0
- package/dist/components/consent-footer.d.ts.map +1 -1
- package/dist/components/consent-footer.js +13 -2
- package/dist/components/consent-footer.js.map +1 -1
- package/dist/components/consent-grant-terms.d.ts +88 -0
- package/dist/components/consent-grant-terms.d.ts.map +1 -0
- package/dist/components/consent-grant-terms.js +318 -0
- package/dist/components/consent-grant-terms.js.map +1 -0
- package/dist/components/consent-input.d.ts +4 -4
- package/dist/components/consent-input.d.ts.map +1 -1
- package/dist/components/consent-input.js +49 -29
- package/dist/components/consent-input.js.map +1 -1
- package/dist/components/consent-otp-input.d.ts +4 -4
- package/dist/components/consent-otp-input.d.ts.map +1 -1
- package/dist/components/consent-otp-input.js +51 -44
- package/dist/components/consent-otp-input.js.map +1 -1
- package/dist/components/consent-phone-handoff.d.ts +50 -0
- package/dist/components/consent-phone-handoff.d.ts.map +1 -0
- package/dist/components/consent-phone-handoff.js +215 -0
- package/dist/components/consent-phone-handoff.js.map +1 -0
- package/dist/components/consent-request-expiry.d.ts +52 -0
- package/dist/components/consent-request-expiry.d.ts.map +1 -0
- package/dist/components/consent-request-expiry.js +154 -0
- package/dist/components/consent-request-expiry.js.map +1 -0
- package/dist/components/consent-revoke.d.ts +53 -0
- package/dist/components/consent-revoke.d.ts.map +1 -0
- package/dist/components/consent-revoke.js +305 -0
- package/dist/components/consent-revoke.js.map +1 -0
- package/dist/components/consent-shell.d.ts.map +1 -1
- package/dist/components/consent-shell.js +3 -0
- package/dist/components/consent-shell.js.map +1 -1
- package/dist/components/consent-terms.d.ts +1 -1
- package/dist/components/consent-terms.js +2 -2
- package/dist/components/consent-terms.js.map +1 -1
- package/dist/components/consent-wallet-check.d.ts +45 -0
- package/dist/components/consent-wallet-check.d.ts.map +1 -0
- package/dist/components/consent-wallet-check.js +102 -0
- package/dist/components/consent-wallet-check.js.map +1 -0
- package/dist/components/consent-wallet-notice.d.ts +54 -0
- package/dist/components/consent-wallet-notice.d.ts.map +1 -0
- package/dist/components/consent-wallet-notice.js +186 -0
- package/dist/components/consent-wallet-notice.js.map +1 -0
- package/dist/components/consent-wallet-orb.d.ts +48 -0
- package/dist/components/consent-wallet-orb.d.ts.map +1 -0
- package/dist/components/consent-wallet-orb.js +269 -0
- package/dist/components/consent-wallet-orb.js.map +1 -0
- package/dist/components/consent-wallet-signature.d.ts +26 -0
- package/dist/components/consent-wallet-signature.d.ts.map +1 -0
- package/dist/components/consent-wallet-signature.js +101 -0
- package/dist/components/consent-wallet-signature.js.map +1 -0
- package/dist/components/grant-field-styles.d.ts +9 -0
- package/dist/components/grant-field-styles.d.ts.map +1 -0
- package/dist/components/grant-field-styles.js +82 -0
- package/dist/components/grant-field-styles.js.map +1 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +13 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +18 -1
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/components/template-link.d.ts +24 -0
- package/dist/components/template-link.d.ts.map +1 -0
- package/dist/components/template-link.js +29 -0
- package/dist/components/template-link.js.map +1 -0
- package/dist/components/wallet-globe.d.ts +29 -0
- package/dist/components/wallet-globe.d.ts.map +1 -0
- package/dist/components/wallet-globe.js +181 -0
- package/dist/components/wallet-globe.js.map +1 -0
- package/dist/components/wallet-icons.d.ts +16 -0
- package/dist/components/wallet-icons.d.ts.map +1 -0
- package/dist/components/wallet-icons.js +16 -0
- package/dist/components/wallet-icons.js.map +1 -0
- package/dist/components/wallet-status.d.ts +19 -0
- package/dist/components/wallet-status.d.ts.map +1 -0
- package/dist/components/wallet-status.js +29 -0
- package/dist/components/wallet-status.js.map +1 -0
- package/dist/consent.js +3126 -783
- package/dist/consent.min.js +1331 -272
- package/dist/copy/tokens.d.ts +91 -0
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +91 -0
- package/dist/copy/tokens.js.map +1 -1
- package/dist/grant/index.d.ts +8 -0
- package/dist/grant/index.d.ts.map +1 -0
- package/dist/grant/index.js +8 -0
- package/dist/grant/index.js.map +1 -0
- package/dist/grant/terms.d.ts +97 -0
- package/dist/grant/terms.d.ts.map +1 -0
- package/dist/grant/terms.js +139 -0
- package/dist/grant/terms.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.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 +74 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +119 -0
- package/dist/react/index.js.map +1 -1
- package/package.json +10 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../src/mcp-app/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAW,
|
|
1
|
+
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../src/mcp-app/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAW,6m+0BAA6m+0B,CAAC;AAE1p+0B,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAW,MAAM,CAAC"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -33,6 +33,16 @@ import { ConsentConnectorHeader } from "../components/consent-connector-header.j
|
|
|
33
33
|
import { ConsentActionBar } from "../components/consent-action-bar.js";
|
|
34
34
|
import { ConsentRevocationNotice } from "../components/consent-revocation-notice.js";
|
|
35
35
|
import { ConsentFooter } from "../components/consent-footer.js";
|
|
36
|
+
import { ConsentDuration, type DurationChangeDetail } from "../components/consent-duration.js";
|
|
37
|
+
import { ConsentFolderScope, type FolderScopeChangeDetail } from "../components/consent-folder-scope.js";
|
|
38
|
+
import { ConsentGrantTerms, type GrantTermsChangeDetail } from "../components/consent-grant-terms.js";
|
|
39
|
+
import { ConsentRevoke } from "../components/consent-revoke.js";
|
|
40
|
+
import { ConsentWalletOrb } from "../components/consent-wallet-orb.js";
|
|
41
|
+
import { ConsentWalletCheck } from "../components/consent-wallet-check.js";
|
|
42
|
+
import { ConsentWalletNotice } from "../components/consent-wallet-notice.js";
|
|
43
|
+
import { ConsentWalletSignature } from "../components/consent-wallet-signature.js";
|
|
44
|
+
import { ConsentRequestExpiry, type RequestExpiredDetail } from "../components/consent-request-expiry.js";
|
|
45
|
+
import { ConsentPhoneHandoff } from "../components/consent-phone-handoff.js";
|
|
36
46
|
/**
|
|
37
47
|
* React wrapper for consent-button
|
|
38
48
|
*/
|
|
@@ -199,8 +209,72 @@ export declare const ConsentRevocationNoticeReact: import("@lit/react").ReactWeb
|
|
|
199
209
|
* React wrapper for consent-footer.
|
|
200
210
|
*/
|
|
201
211
|
export declare const ConsentFooterReact: import("@lit/react").ReactWebComponent<ConsentFooter, {}>;
|
|
212
|
+
/**
|
|
213
|
+
* React wrapper for consent-duration, how long a grant lasts.
|
|
214
|
+
*/
|
|
215
|
+
export declare const ConsentDurationReact: import("@lit/react").ReactWebComponent<ConsentDuration, {
|
|
216
|
+
onChange: EventName<CustomEvent<DurationChangeDetail>>;
|
|
217
|
+
}>;
|
|
218
|
+
/**
|
|
219
|
+
* React wrapper for consent-folder-scope, the folder a grant is limited to.
|
|
220
|
+
*/
|
|
221
|
+
export declare const ConsentFolderScopeReact: import("@lit/react").ReactWebComponent<ConsentFolderScope, {
|
|
222
|
+
onChange: EventName<CustomEvent<FolderScopeChangeDetail>>;
|
|
223
|
+
}>;
|
|
224
|
+
/**
|
|
225
|
+
* React wrapper for consent-grant-terms, a grant's terms behind one line.
|
|
226
|
+
* Its children are the fields.
|
|
227
|
+
*/
|
|
228
|
+
export declare const ConsentGrantTermsReact: import("@lit/react").ReactWebComponent<ConsentGrantTerms, {
|
|
229
|
+
onChange: EventName<CustomEvent<GrantTermsChangeDetail>>;
|
|
230
|
+
}>;
|
|
231
|
+
/**
|
|
232
|
+
* React wrapper for consent-revoke, taking a grant back.
|
|
233
|
+
*/
|
|
234
|
+
export declare const ConsentRevokeReact: import("@lit/react").ReactWebComponent<ConsentRevoke, {
|
|
235
|
+
onRevoke: EventName<CustomEvent>;
|
|
236
|
+
onKeep: EventName<CustomEvent>;
|
|
237
|
+
}>;
|
|
238
|
+
/**
|
|
239
|
+
* React wrapper for consent-wallet-orb, the wallet check's picture on its
|
|
240
|
+
* own: a globe inside a dial that closes once the wallet can sign.
|
|
241
|
+
*/
|
|
242
|
+
export declare const ConsentWalletOrbReact: import("@lit/react").ReactWebComponent<ConsentWalletOrb, {}>;
|
|
243
|
+
/**
|
|
244
|
+
* React wrapper for consent-wallet-check, the orb and one line that say
|
|
245
|
+
* whether this browser's wallet can sign.
|
|
246
|
+
*/
|
|
247
|
+
export declare const ConsentWalletCheckReact: import("@lit/react").ReactWebComponent<ConsentWalletCheck, {}>;
|
|
248
|
+
/**
|
|
249
|
+
* React wrapper for consent-wallet-notice, what to do when this browser
|
|
250
|
+
* can't sign. Pass the `more` slot's content as a child with `slot="more"`.
|
|
251
|
+
*/
|
|
252
|
+
export declare const ConsentWalletNoticeReact: import("@lit/react").ReactWebComponent<ConsentWalletNotice, {}>;
|
|
253
|
+
/**
|
|
254
|
+
* React wrapper for consent-wallet-signature, who signs the grant and where
|
|
255
|
+
* to take it back.
|
|
256
|
+
*/
|
|
257
|
+
export declare const ConsentWalletSignatureReact: import("@lit/react").ReactWebComponent<ConsentWalletSignature, {}>;
|
|
258
|
+
/**
|
|
259
|
+
* React wrapper for consent-request-expiry, the time left to approve.
|
|
260
|
+
*/
|
|
261
|
+
export declare const ConsentRequestExpiryReact: import("@lit/react").ReactWebComponent<ConsentRequestExpiry, {
|
|
262
|
+
onExpired: EventName<CustomEvent<RequestExpiredDetail>>;
|
|
263
|
+
}>;
|
|
264
|
+
/**
|
|
265
|
+
* React wrapper for consent-phone-handoff, a QR code to approve on a phone.
|
|
266
|
+
*/
|
|
267
|
+
export declare const ConsentPhoneHandoffReact: import("@lit/react").ReactWebComponent<ConsentPhoneHandoff, {}>;
|
|
202
268
|
export type { CapabilitiesApproveDetail } from "../components/consent-capabilities-screen.js";
|
|
203
269
|
export type { CapabilityToggleDetail } from "../components/consent-capability-card.js";
|
|
270
|
+
export type { DurationChangeDetail } from "../components/consent-duration.js";
|
|
271
|
+
export type { FolderScopeChangeDetail } from "../components/consent-folder-scope.js";
|
|
272
|
+
export type { GrantTermsChangeDetail } from "../components/consent-grant-terms.js";
|
|
273
|
+
export type { GrantTerms } from "../grant/terms.js";
|
|
274
|
+
export type { WalletCheckStatus } from "../components/consent-wallet-check.js";
|
|
275
|
+
export type { WalletOrbStatus } from "../components/consent-wallet-orb.js";
|
|
276
|
+
export type { WalletNoticeReason } from "../components/consent-wallet-notice.js";
|
|
277
|
+
export type { RequestExpiredDetail } from "../components/consent-request-expiry.js";
|
|
204
278
|
export type { ButtonVariant } from "../components/consent-button.js";
|
|
205
279
|
export type { InputType } from "../components/consent-input.js";
|
|
206
280
|
export type { PermissionItem } from "../components/consent-permissions.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAI7D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAGrE,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACxB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EACL,yBAAyB,EACzB,KAAK,yBAAyB,EAC/B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAC5B,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM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AAC;AACvF,YAAY,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,YAAY,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AACrF,YAAY,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AACnF,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,YAAY,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,YAAY,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AACjF,YAAY,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAEpF,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC3E,YAAY,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC"}
|
package/dist/react/index.js
CHANGED
|
@@ -38,6 +38,18 @@ import { ConsentConnectorHeader } from "../components/consent-connector-header.j
|
|
|
38
38
|
import { ConsentActionBar } from "../components/consent-action-bar.js";
|
|
39
39
|
import { ConsentRevocationNotice } from "../components/consent-revocation-notice.js";
|
|
40
40
|
import { ConsentFooter } from "../components/consent-footer.js";
|
|
41
|
+
// Grant terms and taking a grant back
|
|
42
|
+
import { ConsentDuration, } from "../components/consent-duration.js";
|
|
43
|
+
import { ConsentFolderScope, } from "../components/consent-folder-scope.js";
|
|
44
|
+
import { ConsentGrantTerms, } from "../components/consent-grant-terms.js";
|
|
45
|
+
import { ConsentRevoke } from "../components/consent-revoke.js";
|
|
46
|
+
// The person's wallet and one pending request
|
|
47
|
+
import { ConsentWalletOrb } from "../components/consent-wallet-orb.js";
|
|
48
|
+
import { ConsentWalletCheck } from "../components/consent-wallet-check.js";
|
|
49
|
+
import { ConsentWalletNotice } from "../components/consent-wallet-notice.js";
|
|
50
|
+
import { ConsentWalletSignature } from "../components/consent-wallet-signature.js";
|
|
51
|
+
import { ConsentRequestExpiry, } from "../components/consent-request-expiry.js";
|
|
52
|
+
import { ConsentPhoneHandoff } from "../components/consent-phone-handoff.js";
|
|
41
53
|
// ============================================================================
|
|
42
54
|
// Core Component Wrappers
|
|
43
55
|
// ============================================================================
|
|
@@ -267,4 +279,111 @@ export const ConsentFooterReact = createComponent({
|
|
|
267
279
|
elementClass: ConsentFooter,
|
|
268
280
|
react: React,
|
|
269
281
|
});
|
|
282
|
+
// ============================================================================
|
|
283
|
+
// Grant Terms and Revoke Wrappers
|
|
284
|
+
// ============================================================================
|
|
285
|
+
/**
|
|
286
|
+
* React wrapper for consent-duration, how long a grant lasts.
|
|
287
|
+
*/
|
|
288
|
+
export const ConsentDurationReact = createComponent({
|
|
289
|
+
tagName: "consent-duration",
|
|
290
|
+
elementClass: ConsentDuration,
|
|
291
|
+
react: React,
|
|
292
|
+
events: {
|
|
293
|
+
onChange: "consent-duration-change",
|
|
294
|
+
},
|
|
295
|
+
});
|
|
296
|
+
/**
|
|
297
|
+
* React wrapper for consent-folder-scope, the folder a grant is limited to.
|
|
298
|
+
*/
|
|
299
|
+
export const ConsentFolderScopeReact = createComponent({
|
|
300
|
+
tagName: "consent-folder-scope",
|
|
301
|
+
elementClass: ConsentFolderScope,
|
|
302
|
+
react: React,
|
|
303
|
+
events: {
|
|
304
|
+
onChange: "consent-folder-scope-change",
|
|
305
|
+
},
|
|
306
|
+
});
|
|
307
|
+
/**
|
|
308
|
+
* React wrapper for consent-grant-terms, a grant's terms behind one line.
|
|
309
|
+
* Its children are the fields.
|
|
310
|
+
*/
|
|
311
|
+
export const ConsentGrantTermsReact = createComponent({
|
|
312
|
+
tagName: "consent-grant-terms",
|
|
313
|
+
elementClass: ConsentGrantTerms,
|
|
314
|
+
react: React,
|
|
315
|
+
events: {
|
|
316
|
+
onChange: "consent-grant-terms-change",
|
|
317
|
+
},
|
|
318
|
+
});
|
|
319
|
+
/**
|
|
320
|
+
* React wrapper for consent-revoke, taking a grant back.
|
|
321
|
+
*/
|
|
322
|
+
export const ConsentRevokeReact = createComponent({
|
|
323
|
+
tagName: "consent-revoke",
|
|
324
|
+
elementClass: ConsentRevoke,
|
|
325
|
+
react: React,
|
|
326
|
+
events: {
|
|
327
|
+
onRevoke: "consent-revoke",
|
|
328
|
+
onKeep: "consent-keep",
|
|
329
|
+
},
|
|
330
|
+
});
|
|
331
|
+
// ============================================================================
|
|
332
|
+
// Wallet and Request Wrappers
|
|
333
|
+
// ============================================================================
|
|
334
|
+
/**
|
|
335
|
+
* React wrapper for consent-wallet-orb, the wallet check's picture on its
|
|
336
|
+
* own: a globe inside a dial that closes once the wallet can sign.
|
|
337
|
+
*/
|
|
338
|
+
export const ConsentWalletOrbReact = createComponent({
|
|
339
|
+
tagName: "consent-wallet-orb",
|
|
340
|
+
elementClass: ConsentWalletOrb,
|
|
341
|
+
react: React,
|
|
342
|
+
});
|
|
343
|
+
/**
|
|
344
|
+
* React wrapper for consent-wallet-check, the orb and one line that say
|
|
345
|
+
* whether this browser's wallet can sign.
|
|
346
|
+
*/
|
|
347
|
+
export const ConsentWalletCheckReact = createComponent({
|
|
348
|
+
tagName: "consent-wallet-check",
|
|
349
|
+
elementClass: ConsentWalletCheck,
|
|
350
|
+
react: React,
|
|
351
|
+
});
|
|
352
|
+
/**
|
|
353
|
+
* React wrapper for consent-wallet-notice, what to do when this browser
|
|
354
|
+
* can't sign. Pass the `more` slot's content as a child with `slot="more"`.
|
|
355
|
+
*/
|
|
356
|
+
export const ConsentWalletNoticeReact = createComponent({
|
|
357
|
+
tagName: "consent-wallet-notice",
|
|
358
|
+
elementClass: ConsentWalletNotice,
|
|
359
|
+
react: React,
|
|
360
|
+
});
|
|
361
|
+
/**
|
|
362
|
+
* React wrapper for consent-wallet-signature, who signs the grant and where
|
|
363
|
+
* to take it back.
|
|
364
|
+
*/
|
|
365
|
+
export const ConsentWalletSignatureReact = createComponent({
|
|
366
|
+
tagName: "consent-wallet-signature",
|
|
367
|
+
elementClass: ConsentWalletSignature,
|
|
368
|
+
react: React,
|
|
369
|
+
});
|
|
370
|
+
/**
|
|
371
|
+
* React wrapper for consent-request-expiry, the time left to approve.
|
|
372
|
+
*/
|
|
373
|
+
export const ConsentRequestExpiryReact = createComponent({
|
|
374
|
+
tagName: "consent-request-expiry",
|
|
375
|
+
elementClass: ConsentRequestExpiry,
|
|
376
|
+
react: React,
|
|
377
|
+
events: {
|
|
378
|
+
onExpired: "consent-request-expired",
|
|
379
|
+
},
|
|
380
|
+
});
|
|
381
|
+
/**
|
|
382
|
+
* React wrapper for consent-phone-handoff, a QR code to approve on a phone.
|
|
383
|
+
*/
|
|
384
|
+
export const ConsentPhoneHandoffReact = createComponent({
|
|
385
|
+
tagName: "consent-phone-handoff",
|
|
386
|
+
elementClass: ConsentPhoneHandoff,
|
|
387
|
+
react: React,
|
|
388
|
+
});
|
|
270
389
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,eAAe,EAAkB,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,kBAAkB;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,sBAAsB;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,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OAAO,EAAE,0BAA0B;IACnC,YAAY,EAAE,sBAAsB;IACpC,KAAK,EAAE,KAAK;CACb,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CAAC;IACvD,OAAO,EAAE,wBAAwB;IACjC,YAAY,EAAE,oBAAoB;IAClC,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACN,SAAS,EAAE,yBAEV;KACF;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACtD,OAAO,EAAE,uBAAuB;IAChC,YAAY,EAAE,mBAAmB;IACjC,KAAK,EAAE,KAAK;CACb,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kya-os/consent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Consent page types, styles, utilities, and web components for agent authorization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -81,6 +81,11 @@
|
|
|
81
81
|
"import": "./dist/identity/index.js",
|
|
82
82
|
"require": "./dist/cjs/identity/index.js"
|
|
83
83
|
},
|
|
84
|
+
"./grant": {
|
|
85
|
+
"types": "./dist/grant/index.d.ts",
|
|
86
|
+
"import": "./dist/grant/index.js",
|
|
87
|
+
"require": "./dist/cjs/grant/index.js"
|
|
88
|
+
},
|
|
84
89
|
"./kya-os": {
|
|
85
90
|
"types": "./dist/kya-os/index.d.ts",
|
|
86
91
|
"import": "./dist/kya-os/index.js"
|
|
@@ -111,7 +116,7 @@
|
|
|
111
116
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
112
117
|
"clean": "rm -rf dist .turbo node_modules",
|
|
113
118
|
"prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-no-workspace.js",
|
|
114
|
-
"test:browser": "python3 scripts/test-capabilities-browser.py && python3 scripts/test-mcp-consent-selection.py && python3 scripts/test-passkey-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",
|
|
115
120
|
"verify:bundles": "node scripts/verify-bundles.js",
|
|
116
121
|
"site:build": "node site/scripts/build.mjs",
|
|
117
122
|
"site:check": "node site/scripts/check.mjs",
|
|
@@ -133,11 +138,12 @@
|
|
|
133
138
|
"./dist/consent.min.js"
|
|
134
139
|
],
|
|
135
140
|
"dependencies": {
|
|
141
|
+
"lean-qr": "^2.7.4",
|
|
136
142
|
"lit": "^3.3.2",
|
|
137
143
|
"zod": "^3.25.67"
|
|
138
144
|
},
|
|
139
145
|
"peerDependencies": {
|
|
140
|
-
"@kya-os/id": "^0.6.0",
|
|
146
|
+
"@kya-os/id": "^0.6.0 || ^0.7.0 || ^0.8.0",
|
|
141
147
|
"@kya-os/mcp": "^1.20.0",
|
|
142
148
|
"@lit/react": "^1.0.8",
|
|
143
149
|
"react": "^18.0.0 || ^19.0.0"
|
|
@@ -157,7 +163,7 @@
|
|
|
157
163
|
}
|
|
158
164
|
},
|
|
159
165
|
"devDependencies": {
|
|
160
|
-
"@kya-os/id": "^0.
|
|
166
|
+
"@kya-os/id": "^0.8.0",
|
|
161
167
|
"@kya-os/mcp": "1.20.0",
|
|
162
168
|
"@lit/react": "^1.0.8",
|
|
163
169
|
"@modelcontextprotocol/ext-apps": "^1.0.0",
|