@kya-os/consent 0.2.3 → 0.4.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.
Files changed (218) hide show
  1. package/README.md +223 -4
  2. package/dist/bundle/index.d.ts +10 -0
  3. package/dist/bundle/index.d.ts.map +1 -1
  4. package/dist/bundle/index.js +10 -0
  5. package/dist/bundle/index.js.map +1 -1
  6. package/dist/bundle/inline.d.ts.map +1 -1
  7. package/dist/bundle/inline.js +4 -4
  8. package/dist/bundle/inline.js.map +1 -1
  9. package/dist/cjs/bundle/index.js +10 -0
  10. package/dist/cjs/bundle/index.js.map +1 -1
  11. package/dist/cjs/bundle/inline.js +4 -4
  12. package/dist/cjs/bundle/inline.js.map +1 -1
  13. package/dist/cjs/components/consent-action-bar.js +66 -15
  14. package/dist/cjs/components/consent-action-bar.js.map +1 -1
  15. package/dist/cjs/components/consent-agent-header.js +5 -1
  16. package/dist/cjs/components/consent-agent-header.js.map +1 -1
  17. package/dist/cjs/components/consent-capabilities-screen.js +56 -4
  18. package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
  19. package/dist/cjs/components/consent-capability-card.js +75 -24
  20. package/dist/cjs/components/consent-capability-card.js.map +1 -1
  21. package/dist/cjs/components/consent-checkbox.js +2 -2
  22. package/dist/cjs/components/consent-checkbox.js.map +1 -1
  23. package/dist/cjs/components/consent-duration.js +187 -0
  24. package/dist/cjs/components/consent-duration.js.map +1 -0
  25. package/dist/cjs/components/consent-folder-scope.js +169 -0
  26. package/dist/cjs/components/consent-folder-scope.js.map +1 -0
  27. package/dist/cjs/components/consent-footer.js +13 -2
  28. package/dist/cjs/components/consent-footer.js.map +1 -1
  29. package/dist/cjs/components/consent-grant-terms.js +321 -0
  30. package/dist/cjs/components/consent-grant-terms.js.map +1 -0
  31. package/dist/cjs/components/consent-headline.js +50 -1
  32. package/dist/cjs/components/consent-headline.js.map +1 -1
  33. package/dist/cjs/components/consent-input.js +47 -27
  34. package/dist/cjs/components/consent-input.js.map +1 -1
  35. package/dist/cjs/components/consent-otp-input.js +49 -42
  36. package/dist/cjs/components/consent-otp-input.js.map +1 -1
  37. package/dist/cjs/components/consent-phone-handoff.js +219 -0
  38. package/dist/cjs/components/consent-phone-handoff.js.map +1 -0
  39. package/dist/cjs/components/consent-request-expiry.js +159 -0
  40. package/dist/cjs/components/consent-request-expiry.js.map +1 -0
  41. package/dist/cjs/components/consent-revoke.js +308 -0
  42. package/dist/cjs/components/consent-revoke.js.map +1 -0
  43. package/dist/cjs/components/consent-shell.js +3 -0
  44. package/dist/cjs/components/consent-shell.js.map +1 -1
  45. package/dist/cjs/components/consent-terms.js +2 -2
  46. package/dist/cjs/components/consent-terms.js.map +1 -1
  47. package/dist/cjs/components/consent-wallet-check.js +107 -0
  48. package/dist/cjs/components/consent-wallet-check.js.map +1 -0
  49. package/dist/cjs/components/consent-wallet-notice.js +189 -0
  50. package/dist/cjs/components/consent-wallet-notice.js.map +1 -0
  51. package/dist/cjs/components/consent-wallet-orb.js +273 -0
  52. package/dist/cjs/components/consent-wallet-orb.js.map +1 -0
  53. package/dist/cjs/components/consent-wallet-signature.js +104 -0
  54. package/dist/cjs/components/consent-wallet-signature.js.map +1 -0
  55. package/dist/cjs/components/grant-field-styles.js +85 -0
  56. package/dist/cjs/components/grant-field-styles.js.map +1 -0
  57. package/dist/cjs/components/index.js +33 -1
  58. package/dist/cjs/components/index.js.map +1 -1
  59. package/dist/cjs/components/mcp-consent.js +18 -1
  60. package/dist/cjs/components/mcp-consent.js.map +1 -1
  61. package/dist/cjs/components/template-link.js +32 -0
  62. package/dist/cjs/components/template-link.js.map +1 -0
  63. package/dist/cjs/components/wallet-globe.js +184 -0
  64. package/dist/cjs/components/wallet-globe.js.map +1 -0
  65. package/dist/cjs/components/wallet-icons.js +19 -0
  66. package/dist/cjs/components/wallet-icons.js.map +1 -0
  67. package/dist/cjs/components/wallet-status.js +34 -0
  68. package/dist/cjs/components/wallet-status.js.map +1 -0
  69. package/dist/cjs/constants/capabilities.js +11 -2
  70. package/dist/cjs/constants/capabilities.js.map +1 -1
  71. package/dist/cjs/copy/tokens.js +91 -0
  72. package/dist/cjs/copy/tokens.js.map +1 -1
  73. package/dist/cjs/grant/index.js +24 -0
  74. package/dist/cjs/grant/index.js.map +1 -0
  75. package/dist/cjs/grant/terms.js +148 -0
  76. package/dist/cjs/grant/terms.js.map +1 -0
  77. package/dist/cjs/index.js +2 -0
  78. package/dist/cjs/index.js.map +1 -1
  79. package/dist/cjs/mcp-app/inline.js +2 -2
  80. package/dist/cjs/mcp-app/inline.js.map +1 -1
  81. package/dist/cjs/react/index.js +120 -1
  82. package/dist/cjs/react/index.js.map +1 -1
  83. package/dist/components/consent-action-bar.d.ts +17 -0
  84. package/dist/components/consent-action-bar.d.ts.map +1 -1
  85. package/dist/components/consent-action-bar.js +67 -16
  86. package/dist/components/consent-action-bar.js.map +1 -1
  87. package/dist/components/consent-agent-header.d.ts.map +1 -1
  88. package/dist/components/consent-agent-header.js +5 -1
  89. package/dist/components/consent-agent-header.js.map +1 -1
  90. package/dist/components/consent-capabilities-screen.d.ts +24 -3
  91. package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
  92. package/dist/components/consent-capabilities-screen.js +54 -3
  93. package/dist/components/consent-capabilities-screen.js.map +1 -1
  94. package/dist/components/consent-capability-card.d.ts +19 -2
  95. package/dist/components/consent-capability-card.d.ts.map +1 -1
  96. package/dist/components/consent-capability-card.js +74 -23
  97. package/dist/components/consent-capability-card.js.map +1 -1
  98. package/dist/components/consent-checkbox.d.ts +1 -1
  99. package/dist/components/consent-checkbox.js +2 -2
  100. package/dist/components/consent-checkbox.js.map +1 -1
  101. package/dist/components/consent-duration.d.ts +64 -0
  102. package/dist/components/consent-duration.d.ts.map +1 -0
  103. package/dist/components/consent-duration.js +184 -0
  104. package/dist/components/consent-duration.js.map +1 -0
  105. package/dist/components/consent-folder-scope.d.ts +70 -0
  106. package/dist/components/consent-folder-scope.d.ts.map +1 -0
  107. package/dist/components/consent-folder-scope.js +166 -0
  108. package/dist/components/consent-folder-scope.js.map +1 -0
  109. package/dist/components/consent-footer.d.ts.map +1 -1
  110. package/dist/components/consent-footer.js +13 -2
  111. package/dist/components/consent-footer.js.map +1 -1
  112. package/dist/components/consent-grant-terms.d.ts +88 -0
  113. package/dist/components/consent-grant-terms.d.ts.map +1 -0
  114. package/dist/components/consent-grant-terms.js +318 -0
  115. package/dist/components/consent-grant-terms.js.map +1 -0
  116. package/dist/components/consent-headline.d.ts +25 -0
  117. package/dist/components/consent-headline.d.ts.map +1 -1
  118. package/dist/components/consent-headline.js +52 -3
  119. package/dist/components/consent-headline.js.map +1 -1
  120. package/dist/components/consent-input.d.ts +4 -4
  121. package/dist/components/consent-input.d.ts.map +1 -1
  122. package/dist/components/consent-input.js +49 -29
  123. package/dist/components/consent-input.js.map +1 -1
  124. package/dist/components/consent-otp-input.d.ts +4 -4
  125. package/dist/components/consent-otp-input.d.ts.map +1 -1
  126. package/dist/components/consent-otp-input.js +51 -44
  127. package/dist/components/consent-otp-input.js.map +1 -1
  128. package/dist/components/consent-phone-handoff.d.ts +50 -0
  129. package/dist/components/consent-phone-handoff.d.ts.map +1 -0
  130. package/dist/components/consent-phone-handoff.js +215 -0
  131. package/dist/components/consent-phone-handoff.js.map +1 -0
  132. package/dist/components/consent-request-expiry.d.ts +52 -0
  133. package/dist/components/consent-request-expiry.d.ts.map +1 -0
  134. package/dist/components/consent-request-expiry.js +154 -0
  135. package/dist/components/consent-request-expiry.js.map +1 -0
  136. package/dist/components/consent-revoke.d.ts +53 -0
  137. package/dist/components/consent-revoke.d.ts.map +1 -0
  138. package/dist/components/consent-revoke.js +305 -0
  139. package/dist/components/consent-revoke.js.map +1 -0
  140. package/dist/components/consent-shell.d.ts.map +1 -1
  141. package/dist/components/consent-shell.js +3 -0
  142. package/dist/components/consent-shell.js.map +1 -1
  143. package/dist/components/consent-terms.d.ts +1 -1
  144. package/dist/components/consent-terms.js +2 -2
  145. package/dist/components/consent-terms.js.map +1 -1
  146. package/dist/components/consent-wallet-check.d.ts +45 -0
  147. package/dist/components/consent-wallet-check.d.ts.map +1 -0
  148. package/dist/components/consent-wallet-check.js +102 -0
  149. package/dist/components/consent-wallet-check.js.map +1 -0
  150. package/dist/components/consent-wallet-notice.d.ts +54 -0
  151. package/dist/components/consent-wallet-notice.d.ts.map +1 -0
  152. package/dist/components/consent-wallet-notice.js +186 -0
  153. package/dist/components/consent-wallet-notice.js.map +1 -0
  154. package/dist/components/consent-wallet-orb.d.ts +48 -0
  155. package/dist/components/consent-wallet-orb.d.ts.map +1 -0
  156. package/dist/components/consent-wallet-orb.js +269 -0
  157. package/dist/components/consent-wallet-orb.js.map +1 -0
  158. package/dist/components/consent-wallet-signature.d.ts +26 -0
  159. package/dist/components/consent-wallet-signature.d.ts.map +1 -0
  160. package/dist/components/consent-wallet-signature.js +101 -0
  161. package/dist/components/consent-wallet-signature.js.map +1 -0
  162. package/dist/components/grant-field-styles.d.ts +9 -0
  163. package/dist/components/grant-field-styles.d.ts.map +1 -0
  164. package/dist/components/grant-field-styles.js +82 -0
  165. package/dist/components/grant-field-styles.js.map +1 -0
  166. package/dist/components/index.d.ts +11 -1
  167. package/dist/components/index.d.ts.map +1 -1
  168. package/dist/components/index.js +14 -1
  169. package/dist/components/index.js.map +1 -1
  170. package/dist/components/mcp-consent.d.ts.map +1 -1
  171. package/dist/components/mcp-consent.js +18 -1
  172. package/dist/components/mcp-consent.js.map +1 -1
  173. package/dist/components/template-link.d.ts +24 -0
  174. package/dist/components/template-link.d.ts.map +1 -0
  175. package/dist/components/template-link.js +29 -0
  176. package/dist/components/template-link.js.map +1 -0
  177. package/dist/components/wallet-globe.d.ts +29 -0
  178. package/dist/components/wallet-globe.d.ts.map +1 -0
  179. package/dist/components/wallet-globe.js +181 -0
  180. package/dist/components/wallet-globe.js.map +1 -0
  181. package/dist/components/wallet-icons.d.ts +16 -0
  182. package/dist/components/wallet-icons.d.ts.map +1 -0
  183. package/dist/components/wallet-icons.js +16 -0
  184. package/dist/components/wallet-icons.js.map +1 -0
  185. package/dist/components/wallet-status.d.ts +19 -0
  186. package/dist/components/wallet-status.d.ts.map +1 -0
  187. package/dist/components/wallet-status.js +29 -0
  188. package/dist/components/wallet-status.js.map +1 -0
  189. package/dist/consent.js +3246 -807
  190. package/dist/consent.min.js +1360 -281
  191. package/dist/constants/capabilities.d.ts +5 -2
  192. package/dist/constants/capabilities.d.ts.map +1 -1
  193. package/dist/constants/capabilities.js +11 -2
  194. package/dist/constants/capabilities.js.map +1 -1
  195. package/dist/copy/tokens.d.ts +91 -0
  196. package/dist/copy/tokens.d.ts.map +1 -1
  197. package/dist/copy/tokens.js +91 -0
  198. package/dist/copy/tokens.js.map +1 -1
  199. package/dist/grant/index.d.ts +8 -0
  200. package/dist/grant/index.d.ts.map +1 -0
  201. package/dist/grant/index.js +8 -0
  202. package/dist/grant/index.js.map +1 -0
  203. package/dist/grant/terms.d.ts +97 -0
  204. package/dist/grant/terms.d.ts.map +1 -0
  205. package/dist/grant/terms.js +139 -0
  206. package/dist/grant/terms.js.map +1 -0
  207. package/dist/index.d.ts +1 -0
  208. package/dist/index.d.ts.map +1 -1
  209. package/dist/index.js +2 -0
  210. package/dist/index.js.map +1 -1
  211. package/dist/mcp-app/inline.d.ts.map +1 -1
  212. package/dist/mcp-app/inline.js +2 -2
  213. package/dist/mcp-app/inline.js.map +1 -1
  214. package/dist/react/index.d.ts +74 -0
  215. package/dist/react/index.d.ts.map +1 -1
  216. package/dist/react/index.js +119 -0
  217. package/dist/react/index.js.map +1 -1
  218. 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,y+xxBAAy+xxB,CAAC;AAEthyxB,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAW,MAAM,CAAC"}
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,u+h1BAAu+h1B,CAAC;AAEphi1B,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAW,MAAM,CAAC"}
@@ -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,eA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,kBAAkB,GACnB,MAAM,8BAA8B,CAAC"}
@@ -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
@@ -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,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,sBAAsB;AACtB,OAAO,EACL,UAAU,GAGX,MAAM,8BAA8B,CAAC;AAEtC,kCAAkC;AAClC,OAAO,EACL,yBAAyB,GAE1B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,qBAAqB,GAEtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/consent",
3
- "version": "0.2.3",
3
+ "version": "0.4.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 && python3 scripts/test-site-phone-browser.py && python3 scripts/test-host-parts-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.6.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",