@kya-os/consent 0.5.2 → 0.5.4

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 (82) hide show
  1. package/README.md +25 -8
  2. package/dist/bundle/inline.d.ts.map +1 -1
  3. package/dist/bundle/inline.js +4 -4
  4. package/dist/bundle/inline.js.map +1 -1
  5. package/dist/cjs/bundle/inline.js +4 -4
  6. package/dist/cjs/bundle/inline.js.map +1 -1
  7. package/dist/cjs/components/approver-lockup.js +372 -0
  8. package/dist/cjs/components/approver-lockup.js.map +1 -0
  9. package/dist/cjs/components/consent-capabilities-screen.js +357 -97
  10. package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
  11. package/dist/cjs/components/consent-headline.js +35 -7
  12. package/dist/cjs/components/consent-headline.js.map +1 -1
  13. package/dist/cjs/components/decision-icons.js +2 -0
  14. package/dist/cjs/components/decision-icons.js.map +1 -1
  15. package/dist/cjs/components/flow-blocks.js +26 -312
  16. package/dist/cjs/components/flow-blocks.js.map +1 -1
  17. package/dist/cjs/components/index.js.map +1 -1
  18. package/dist/cjs/copy/tokens.js +14 -1
  19. package/dist/cjs/copy/tokens.js.map +1 -1
  20. package/dist/cjs/mcp-app/inline.js +2 -2
  21. package/dist/cjs/mcp-app/inline.js.map +1 -1
  22. package/dist/cjs/react/index.js +1 -0
  23. package/dist/cjs/react/index.js.map +1 -1
  24. package/dist/cjs/schemas/capabilities.schemas.js +1 -0
  25. package/dist/cjs/schemas/capabilities.schemas.js.map +1 -1
  26. package/dist/cjs/styles/theme.js +3 -0
  27. package/dist/cjs/styles/theme.js.map +1 -1
  28. package/dist/components/approver-lockup.d.ts +73 -0
  29. package/dist/components/approver-lockup.d.ts.map +1 -0
  30. package/dist/components/approver-lockup.js +365 -0
  31. package/dist/components/approver-lockup.js.map +1 -0
  32. package/dist/components/consent-capabilities-screen.d.ts +88 -8
  33. package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
  34. package/dist/components/consent-capabilities-screen.js +357 -97
  35. package/dist/components/consent-capabilities-screen.js.map +1 -1
  36. package/dist/components/consent-headline.d.ts +15 -3
  37. package/dist/components/consent-headline.d.ts.map +1 -1
  38. package/dist/components/consent-headline.js +35 -7
  39. package/dist/components/consent-headline.js.map +1 -1
  40. package/dist/components/decision-icons.d.ts +2 -0
  41. package/dist/components/decision-icons.d.ts.map +1 -1
  42. package/dist/components/decision-icons.js +2 -0
  43. package/dist/components/decision-icons.js.map +1 -1
  44. package/dist/components/flow-blocks.d.ts +0 -9
  45. package/dist/components/flow-blocks.d.ts.map +1 -1
  46. package/dist/components/flow-blocks.js +26 -309
  47. package/dist/components/flow-blocks.js.map +1 -1
  48. package/dist/components/index.d.ts +1 -1
  49. package/dist/components/index.d.ts.map +1 -1
  50. package/dist/components/index.js.map +1 -1
  51. package/dist/consent.js +907 -606
  52. package/dist/consent.min.js +629 -509
  53. package/dist/copy/tokens.d.ts +14 -1
  54. package/dist/copy/tokens.d.ts.map +1 -1
  55. package/dist/copy/tokens.js +14 -1
  56. package/dist/copy/tokens.js.map +1 -1
  57. package/dist/flow/model.d.ts +1 -1
  58. package/dist/flow/schema.d.ts +12 -12
  59. package/dist/mcp-app/inline.d.ts.map +1 -1
  60. package/dist/mcp-app/inline.js +2 -2
  61. package/dist/mcp-app/inline.js.map +1 -1
  62. package/dist/react/index.d.ts +3 -2
  63. package/dist/react/index.d.ts.map +1 -1
  64. package/dist/react/index.js +1 -0
  65. package/dist/react/index.js.map +1 -1
  66. package/dist/schemas/api.schemas.d.ts +9 -0
  67. package/dist/schemas/api.schemas.d.ts.map +1 -1
  68. package/dist/schemas/capabilities.schemas.d.ts +5 -0
  69. package/dist/schemas/capabilities.schemas.d.ts.map +1 -1
  70. package/dist/schemas/capabilities.schemas.js +1 -0
  71. package/dist/schemas/capabilities.schemas.js.map +1 -1
  72. package/dist/schemas/config.schemas.d.ts +14 -0
  73. package/dist/schemas/config.schemas.d.ts.map +1 -1
  74. package/dist/styles/theme.d.ts +5 -0
  75. package/dist/styles/theme.d.ts.map +1 -1
  76. package/dist/styles/theme.js +3 -0
  77. package/dist/styles/theme.js.map +1 -1
  78. package/dist/types/capabilities.types.d.ts +20 -0
  79. package/dist/types/capabilities.types.d.ts.map +1 -1
  80. package/dist/types/decision.types.d.ts +10 -2
  81. package/dist/types/decision.types.d.ts.map +1 -1
  82. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"inline.js","sourceRoot":"","sources":["../../../src/bundle/inline.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH;;;GAGG;AACU,QAAA,cAAc,GAAW,k3mcAAk3mc,CAAC;AAEz5mc;;GAEG;AACU,QAAA,mBAAmB,GAAW,MAAM,CAAC;AAElD;;GAEG;AACU,QAAA,mBAAmB,GAAW,kBAAkB,CAAC;AAE9D;;;;;;;;;;;GAWG;AACU,QAAA,mBAAmB,GAAW,8BAA8B,CAAC"}
1
+ {"version":3,"file":"inline.js","sourceRoot":"","sources":["../../../src/bundle/inline.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH;;;GAGG;AACU,QAAA,cAAc,GAAW,y3zcAAy3zc,CAAC;AAEh6zc;;GAEG;AACU,QAAA,mBAAmB,GAAW,MAAM,CAAC;AAElD;;GAEG;AACU,QAAA,mBAAmB,GAAW,kBAAkB,CAAC;AAE9D;;;;;;;;;;;GAWG;AACU,QAAA,mBAAmB,GAAW,8BAA8B,CAAC"}
@@ -0,0 +1,372 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.approverLockupStyles = void 0;
4
+ exports.breakable = breakable;
5
+ exports.face = face;
6
+ exports.agentTile = agentTile;
7
+ exports.approverLockup = approverLockup;
8
+ /**
9
+ * The approver lockup
10
+ *
11
+ * Who approves, and the agent they approve: the person's face, name and
12
+ * sign-in with a mark, any checks they passed, then the agent's tile and name
13
+ * with its status. `<consent-flow>`'s approver block and
14
+ * `<consent-capabilities-screen>`'s approver box both draw it, so the two
15
+ * screens show the relationship the same way. Each fills in its own words.
16
+ *
17
+ * @module components/approver-lockup
18
+ */
19
+ const lit_1 = require("lit");
20
+ const copy_js_1 = require("../flow/copy.js");
21
+ const decision_icons_js_1 = require("./decision-icons.js");
22
+ /**
23
+ * An address or a domain with a line break offered before each "@" and ".",
24
+ * so a narrow card wraps "person" / "@example.com" rather than mid-word.
25
+ */
26
+ function breakable(value) {
27
+ return value
28
+ .split(/(?=[@.])/)
29
+ .map((piece, i) => (i ? (0, lit_1.html) `<wbr />${piece}` : piece));
30
+ }
31
+ const hide = (event) => {
32
+ event.target.hidden = true;
33
+ };
34
+ const show = (event) => {
35
+ event.target.hidden = false;
36
+ };
37
+ /** A person's face: their initials, with the provider's picture over them when it loads. */
38
+ function face(name, identifier = "", avatarUrl = "", size = "md") {
39
+ const initials = (0, copy_js_1.initialsOf)(name, identifier);
40
+ return (0, lit_1.html) `<span
41
+ class="face ${size} ${initials.length > 1 ? "two" : ""}"
42
+ aria-hidden="true"
43
+ >${initials}${avatarUrl
44
+ ? (0, lit_1.html) `<img src=${avatarUrl} alt="" @error=${hide} @load=${show} />`
45
+ : lit_1.nothing}</span
46
+ >`;
47
+ }
48
+ /** The agent's tile: its mark on white in every theme, or its initial. A name alone never earns a mark. */
49
+ function agentTile(agent) {
50
+ const initial = (0, copy_js_1.initialsOf)(agent.name).slice(0, 1);
51
+ return (0, lit_1.html) `<span class="tile" aria-hidden="true"
52
+ >${initial}${agent.logoUrl
53
+ ? (0, lit_1.html) `<img src=${agent.logoUrl} alt="" @error=${hide} @load=${show} />`
54
+ : lit_1.nothing}</span
55
+ >`;
56
+ }
57
+ function personRow(person) {
58
+ return (0, lit_1.html) `<div class="lockup-row">
59
+ ${face(person.name, person.identifier, person.avatarUrl)}
60
+ <div class="lockup-text">
61
+ <span class="lockup-label">${person.label}</span>
62
+ <span class="lockup-name">${breakable(person.name)}</span>
63
+ ${person.detail
64
+ ? (0, lit_1.html) `<span class="small">${breakable(person.detail)}</span>`
65
+ : lit_1.nothing}
66
+ </div>
67
+ <span
68
+ class="lockup-mark ${person.declined ? "declined" : ""}"
69
+ role="img"
70
+ aria-label=${person.mark}
71
+ title=${person.mark}
72
+ >${(0, decision_icons_js_1.decisionIcon)(person.declined ? "minus" : "check")}</span
73
+ >
74
+ </div>`;
75
+ }
76
+ function checkRow(check) {
77
+ return (0, lit_1.html) `<div class="lockup-row lockup-check" part="approver-check">
78
+ <span class="lockup-check-icon" aria-hidden="true"
79
+ >${(0, decision_icons_js_1.decisionIcon)("check")}</span
80
+ >
81
+ <div class="lockup-text">
82
+ <span class="value">${check.label}</span>
83
+ ${check.summary ? (0, lit_1.html) `<span>${check.summary}</span>` : lit_1.nothing}
84
+ ${check.source
85
+ ? (0, lit_1.html) `<span class="small">${check.source}</span>`
86
+ : lit_1.nothing}
87
+ </div>
88
+ </div>`;
89
+ }
90
+ function agentRow(agent) {
91
+ return (0, lit_1.html) `<div class="lockup-row party" part="approver-agent">
92
+ ${agentTile(agent)}
93
+ <div class="lockup-text">
94
+ <span class="small">${agent.label}</span>
95
+ <span class="value">${breakable(agent.name)}</span>
96
+ </div>
97
+ ${agent.status
98
+ ? (0, lit_1.html) `<span
99
+ class="party-status ${agent.unverified ? "unverified" : ""}"
100
+ part="agent-status"
101
+ >${breakable(agent.status)}${agent.info
102
+ ? (0, lit_1.html) `<button
103
+ type="button"
104
+ class="info"
105
+ aria-label=${agent.status}
106
+ aria-describedby="agent-status-info"
107
+ >
108
+ ${(0, decision_icons_js_1.decisionIcon)("info")}</button
109
+ ><span class="tip" id="agent-status-info" role="tooltip"
110
+ >${agent.info}</span
111
+ >`
112
+ : lit_1.nothing}</span
113
+ >`
114
+ : lit_1.nothing}
115
+ </div>`;
116
+ }
117
+ /** The lockup: the person, their checks, then the agent, each when given. */
118
+ function approverLockup(view) {
119
+ return (0, lit_1.html) `<div class="tinted lockup" part="approver">
120
+ ${view.person ? personRow(view.person) : lit_1.nothing}
121
+ ${(view.checks ?? []).map(checkRow)}
122
+ ${view.agent ? agentRow(view.agent) : lit_1.nothing}
123
+ </div>`;
124
+ }
125
+ /**
126
+ * The lockup's look. A screen that draws it also needs `.tinted` and `.small`,
127
+ * which both screens define the same way for their other boxes.
128
+ */
129
+ exports.approverLockupStyles = (0, lit_1.css) `
130
+ /* Names break only where a word can't fit, and an address at its "@" and
131
+ dots first (breakable). */
132
+ .lockup {
133
+ display: flex;
134
+ flex-direction: column;
135
+ gap: 12px;
136
+ padding: 16px 18px;
137
+ container-type: inline-size;
138
+ }
139
+
140
+ .lockup-row {
141
+ display: flex;
142
+ align-items: center;
143
+ gap: 12px;
144
+ min-width: 0;
145
+ }
146
+
147
+ .lockup-row.party,
148
+ .lockup-check:not(:first-child) {
149
+ padding-top: 12px;
150
+ border-top: 1px solid var(--cs-tint-line);
151
+ }
152
+
153
+ .lockup-check {
154
+ align-items: flex-start;
155
+ font-size: 14px;
156
+ line-height: 1.45;
157
+ }
158
+
159
+ .lockup-text {
160
+ display: flex;
161
+ flex: 1;
162
+ flex-direction: column;
163
+ gap: 2px;
164
+ min-width: 0;
165
+ }
166
+
167
+ .lockup-label {
168
+ font-size: 10px;
169
+ letter-spacing: 0.16em;
170
+ font-weight: 600;
171
+ text-transform: uppercase;
172
+ color: var(--cs-text-tertiary);
173
+ }
174
+
175
+ .lockup-name {
176
+ font-size: 20px;
177
+ font-weight: 600;
178
+ line-height: 1.2;
179
+ overflow-wrap: break-word;
180
+ }
181
+
182
+ .lockup-text .value {
183
+ font-weight: 500;
184
+ overflow-wrap: break-word;
185
+ }
186
+
187
+ .lockup-mark {
188
+ display: grid;
189
+ flex-shrink: 0;
190
+ color: var(--cs-wallet-success, var(--cs-mark));
191
+ }
192
+
193
+ .lockup-mark.declined {
194
+ color: var(--cs-text-tertiary);
195
+ }
196
+
197
+ .lockup-mark svg {
198
+ width: 22px;
199
+ height: 22px;
200
+ }
201
+
202
+ /* A check's mark sits in the face's column, so its words line up with the name. */
203
+ .lockup-check-icon {
204
+ display: grid;
205
+ place-items: center;
206
+ flex-shrink: 0;
207
+ width: 42px;
208
+ color: var(--cs-mark);
209
+ }
210
+
211
+ .lockup-check-icon svg {
212
+ width: 20px;
213
+ height: 20px;
214
+ }
215
+
216
+ .face,
217
+ .tile {
218
+ position: relative;
219
+ display: grid;
220
+ place-items: center;
221
+ flex-shrink: 0;
222
+ width: 42px;
223
+ height: 42px;
224
+ overflow: hidden;
225
+ font-weight: 600;
226
+ }
227
+
228
+ .face {
229
+ border-radius: 50%;
230
+ background: var(--cs-surface-accent);
231
+ color: var(--cs-surface-accent-text);
232
+ font-size: 17px;
233
+ }
234
+
235
+ .face.two {
236
+ font-size: 15px;
237
+ letter-spacing: 0.02em;
238
+ }
239
+
240
+ .face.sm {
241
+ width: 32px;
242
+ height: 32px;
243
+ font-size: 13px;
244
+ }
245
+
246
+ .face img {
247
+ position: absolute;
248
+ inset: 0;
249
+ width: 100%;
250
+ height: 100%;
251
+ object-fit: cover;
252
+ }
253
+
254
+ .tile {
255
+ border-radius: var(--cs-tile-radius, 10px);
256
+ border: 1px solid var(--cs-agent-tile-border, rgba(15, 23, 42, 0.08));
257
+ background: var(--cs-surface-accent);
258
+ color: var(--cs-surface-accent-text);
259
+ font-size: 18px;
260
+ }
261
+
262
+ /* A tile showing a logo is white under its faint edge, as the connector
263
+ header's tile is, so the accent never shows through the edge as a ring.
264
+ The initial alone, or after a logo fails to load, keeps the accent. */
265
+ .tile:has(img:not([hidden])) {
266
+ background: var(--cs-agent-tile-bg, #ffffff);
267
+ }
268
+
269
+ .tile img {
270
+ position: absolute;
271
+ inset: 0;
272
+ width: 100%;
273
+ height: 100%;
274
+ padding: 4px;
275
+ box-sizing: border-box;
276
+ object-fit: contain;
277
+ background: var(--cs-agent-tile-bg, #ffffff);
278
+ }
279
+
280
+ .party-status {
281
+ position: relative;
282
+ display: inline-flex;
283
+ align-items: center;
284
+ gap: 4px;
285
+ flex-shrink: 0;
286
+ font-size: 13px;
287
+ font-weight: 500;
288
+ color: var(--cs-text-secondary);
289
+ }
290
+
291
+ .party-status.unverified {
292
+ color: var(--cs-warning-text, var(--cs-text-primary));
293
+ }
294
+
295
+ /* A phone-width card: smaller faces and padding, and the agent's status
296
+ under its name, so the names keep their width. */
297
+ @container (max-width: 300px) {
298
+ .lockup-row {
299
+ gap: 10px;
300
+ }
301
+
302
+ .lockup-row.party {
303
+ flex-wrap: wrap;
304
+ }
305
+
306
+ .face,
307
+ .tile {
308
+ width: 36px;
309
+ height: 36px;
310
+ }
311
+
312
+ .lockup-check-icon {
313
+ width: 36px;
314
+ }
315
+
316
+ .party-status {
317
+ flex-basis: 100%;
318
+ flex-shrink: 1;
319
+ min-width: 0;
320
+ padding-left: 46px;
321
+ overflow-wrap: break-word;
322
+ }
323
+ }
324
+
325
+ .info {
326
+ display: inline-grid;
327
+ place-items: center;
328
+ width: 22px;
329
+ height: 22px;
330
+ padding: 0;
331
+ border: 0;
332
+ border-radius: 50%;
333
+ background: none;
334
+ color: var(--cs-text-tertiary);
335
+ cursor: help;
336
+ }
337
+
338
+ .info svg {
339
+ width: 16px;
340
+ height: 16px;
341
+ }
342
+
343
+ .info:focus-visible {
344
+ outline: 2px solid var(--cs-focus-ring, currentColor);
345
+ outline-offset: 1px;
346
+ }
347
+
348
+ .tip {
349
+ position: absolute;
350
+ top: calc(100% + 8px);
351
+ right: -6px;
352
+ z-index: 5;
353
+ width: 240px;
354
+ padding: 8px 10px;
355
+ border-radius: 8px;
356
+ background: var(--cs-text-primary);
357
+ color: var(--cs-surface-card);
358
+ font-size: 12px;
359
+ font-weight: 400;
360
+ line-height: 1.45;
361
+ text-align: left;
362
+ opacity: 0;
363
+ visibility: hidden;
364
+ }
365
+
366
+ .party-status:hover .tip,
367
+ .info:focus-visible + .tip {
368
+ opacity: 1;
369
+ visibility: visible;
370
+ }
371
+ `;
372
+ //# sourceMappingURL=approver-lockup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approver-lockup.js","sourceRoot":"","sources":["../../../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