@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
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
* The headline reads "{Agent} is requesting permission on your behalf", or
|
|
10
10
|
* "{Agent} would like to {Verb} on your behalf" when the host gives a verb.
|
|
11
11
|
* Given the agent (`agent`), its name is a button that opens what is known
|
|
12
|
-
* about it,
|
|
13
|
-
*
|
|
12
|
+
* about it, including the host that vouches for a domain-bound agent. The
|
|
13
|
+
* subhead shows only when the host gives one.
|
|
14
14
|
*
|
|
15
15
|
* The agent's name comes from outside, and an agent chooses its own name. It
|
|
16
16
|
* is rendered as text, never as markup, so a name like
|
|
17
17
|
* `Atlas <span class="pill">Verified</span>` reads exactly that way.
|
|
18
18
|
*
|
|
19
19
|
* Parts: `eyebrow`, `headline` (the h1), `agent-name` (the name, an `em`, or a
|
|
20
|
-
* button when the agent is given), `
|
|
21
|
-
*
|
|
20
|
+
* button when the agent is given), `subhead` and `agent-details` (the
|
|
21
|
+
* popover).
|
|
22
22
|
*
|
|
23
23
|
* Slot: `headline`, the h1's words in place of the standard line, for a host
|
|
24
24
|
* that words it its own way. The host's content is its own markup, so the host
|
|
@@ -29,6 +29,13 @@
|
|
|
29
29
|
* types into, keyed `description`; with no subhead of its own it starts from
|
|
30
30
|
* the standard line, and only typing writes it.
|
|
31
31
|
*
|
|
32
|
+
* The agent's name is bold, drawn with a hairline stroke so it looks the same
|
|
33
|
+
* in every engine (the default serif has one weight).
|
|
34
|
+
*
|
|
35
|
+
* @cssprop --cs-headline-line-height - The headline's line height (default: 1.2).
|
|
36
|
+
* @cssprop --cs-agent-name-stroke - The name's stroke (default: 0.04em; 0 with a font that has a bold).
|
|
37
|
+
* @cssprop --cs-agent-name-weight - The name's weight (default: the headline's).
|
|
38
|
+
*
|
|
32
39
|
* @module components/consent-headline
|
|
33
40
|
*/
|
|
34
41
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -64,7 +71,6 @@ function vouchingHost(agent) {
|
|
|
64
71
|
? agent.domain?.trim() || undefined
|
|
65
72
|
: undefined;
|
|
66
73
|
}
|
|
67
|
-
const CHECK_ICON = (0, lit_1.svg) `<path d="M20 6 9 17l-5-5" />`;
|
|
68
74
|
const GLOBE_ICON = (0, lit_1.svg) `<circle cx="12" cy="12" r="10" /><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" /><path d="M2 12h20" />`;
|
|
69
75
|
let ConsentHeadline = class ConsentHeadline extends lit_1.LitElement {
|
|
70
76
|
constructor() {
|
|
@@ -201,32 +207,15 @@ let ConsentHeadline = class ConsentHeadline extends lit_1.LitElement {
|
|
|
201
207
|
const name = this.displayName;
|
|
202
208
|
if (!this.agent)
|
|
203
209
|
return (0, lit_1.html) `<em part="agent-name">${name}</em>`;
|
|
204
|
-
const host = vouchingHost(this.agent);
|
|
205
210
|
return (0, lit_1.html) `<button
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
? (0, lit_1.html) ` <span class="host" part="host"
|
|
215
|
-
><svg
|
|
216
|
-
viewBox="0 0 24 24"
|
|
217
|
-
fill="none"
|
|
218
|
-
stroke="currentColor"
|
|
219
|
-
stroke-width="2"
|
|
220
|
-
stroke-linecap="round"
|
|
221
|
-
stroke-linejoin="round"
|
|
222
|
-
aria-hidden="true"
|
|
223
|
-
>
|
|
224
|
-
${CHECK_ICON}</svg
|
|
225
|
-
><span class="sr-only"
|
|
226
|
-
>${tokens_js_1.CONSENT_COPY_TOKENS.agentDetails.identifiedByPrefix}</span
|
|
227
|
-
>${host}</span
|
|
228
|
-
>`
|
|
229
|
-
: lit_1.nothing}`;
|
|
211
|
+
class="agent"
|
|
212
|
+
part="agent-name"
|
|
213
|
+
type="button"
|
|
214
|
+
aria-haspopup="dialog"
|
|
215
|
+
popovertarget="agent-details"
|
|
216
|
+
>
|
|
217
|
+
${name}
|
|
218
|
+
</button>`;
|
|
230
219
|
}
|
|
231
220
|
/** What the agent's name opens: who it is and how its name was checked. */
|
|
232
221
|
renderDetails(agent) {
|
|
@@ -320,19 +309,29 @@ ConsentHeadline.styles = (0, lit_1.css) `
|
|
|
320
309
|
font-family: var(--cs-headline-font, "Instrument Serif", Georgia, serif);
|
|
321
310
|
font-size: var(--cs-headline-font-size, 32px);
|
|
322
311
|
font-weight: var(--cs-headline-weight, 600);
|
|
323
|
-
line-height: 1.
|
|
312
|
+
line-height: var(--cs-headline-line-height, 1.2);
|
|
324
313
|
letter-spacing: -0.01em;
|
|
325
314
|
color: var(--cs-text-primary, #0f172a);
|
|
326
315
|
margin: 0;
|
|
327
316
|
text-align: left;
|
|
328
317
|
text-wrap: pretty;
|
|
329
318
|
overflow-wrap: anywhere;
|
|
319
|
+
/* The serif has one weight: no engine fakes a bold of it (WebKit would). */
|
|
320
|
+
font-synthesis-weight: none;
|
|
330
321
|
}
|
|
331
322
|
|
|
332
323
|
.headline em {
|
|
333
324
|
font-style: italic;
|
|
334
325
|
}
|
|
335
326
|
|
|
327
|
+
/* The agent's name is bold. A hairline stroke draws it the same in every
|
|
328
|
+
engine; a host whose headline font has a bold sets the stroke to 0 and
|
|
329
|
+
the weight it wants. */
|
|
330
|
+
[part="agent-name"] {
|
|
331
|
+
font-weight: var(--cs-agent-name-weight, inherit);
|
|
332
|
+
-webkit-text-stroke: var(--cs-agent-name-stroke, 0.04em) currentColor;
|
|
333
|
+
}
|
|
334
|
+
|
|
336
335
|
.agent {
|
|
337
336
|
font: inherit;
|
|
338
337
|
font-style: italic;
|
|
@@ -357,51 +356,6 @@ ConsentHeadline.styles = (0, lit_1.css) `
|
|
|
357
356
|
outline-offset: 2px;
|
|
358
357
|
}
|
|
359
358
|
|
|
360
|
-
.host {
|
|
361
|
-
display: inline-flex;
|
|
362
|
-
max-width: 100%;
|
|
363
|
-
align-items: center;
|
|
364
|
-
gap: 4px;
|
|
365
|
-
padding: 2px 6px;
|
|
366
|
-
border-radius: 4px;
|
|
367
|
-
border: 1px solid var(--cs-tint-line, rgba(15, 23, 42, 0.18));
|
|
368
|
-
background: var(--cs-tint, rgba(15, 23, 42, 0.07));
|
|
369
|
-
color: var(--cs-text-primary, #0f172a);
|
|
370
|
-
font-family: var(
|
|
371
|
-
--cs-font,
|
|
372
|
-
system-ui,
|
|
373
|
-
-apple-system,
|
|
374
|
-
"Segoe UI",
|
|
375
|
-
sans-serif
|
|
376
|
-
);
|
|
377
|
-
font-size: 14px;
|
|
378
|
-
font-style: normal;
|
|
379
|
-
font-weight: 500;
|
|
380
|
-
line-height: 1.45;
|
|
381
|
-
letter-spacing: 0;
|
|
382
|
-
vertical-align: middle;
|
|
383
|
-
overflow-wrap: anywhere;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.host svg {
|
|
387
|
-
width: 14px;
|
|
388
|
-
height: 14px;
|
|
389
|
-
flex-shrink: 0;
|
|
390
|
-
color: var(--cs-mark, currentColor);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.sr-only {
|
|
394
|
-
position: absolute;
|
|
395
|
-
width: 1px;
|
|
396
|
-
height: 1px;
|
|
397
|
-
margin: -1px;
|
|
398
|
-
padding: 0;
|
|
399
|
-
overflow: hidden;
|
|
400
|
-
clip-path: inset(50%);
|
|
401
|
-
white-space: nowrap;
|
|
402
|
-
border: 0;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
359
|
.subhead {
|
|
406
360
|
font-size: var(--cs-subhead-font-size, 14.5px);
|
|
407
361
|
color: var(--cs-text-secondary, #334155);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-headline.js","sourceRoot":"","sources":["../../../src/components/consent-headline.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"consent-headline.js","sourceRoot":"","sources":["../../../src/components/consent-headline.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;;;;;;;;;AA0BH,8BAEC;AAGD,oCAMC;AAnCD,6BAA0D;AAC1D,qDAAmE;AAEnE,iDAAqE;AACrE,0EAGwC;AACxC,0DAGgC;AAChC,qDAAgE;AAChE,6CAAuE;AAEvE,8EAA8E;AAC9E,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAE3C,6FAA6F;AAC7F,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,oEAAoE;AACpE,SAAgB,SAAS,CAAC,IAAY;IACpC,OAAO,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,GAAG,CAAC;AAChE,CAAC;AAED,0EAA0E;AAC1E,SAAgB,YAAY,CAC1B,KAAkE;IAElE,OAAO,IAAA,yCAAiB,EAAC,KAAK,CAAC,KAAK,QAAQ;QAC1C,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,SAAS;QACnC,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,GAAG,IAAA,SAAG,EAAA,oHAAoH,CAAC;AAGpI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,gBAAU;IAAxC;;QACL,yEAAyE;QACpB,cAAS,GAAG,EAAE,CAAC;QAQpE;;;WAGG;QACyB,SAAI,GAAG,EAAE,CAAC;QAEtC,qCAAqC;QACT,gBAAW,GAAG,EAAE,CAAC;QAE7C,qEAAqE;QACzC,YAAO,GAAG,EAAE,CAAC;QAEzC,gFAAgF;QACpC,YAAO,GAAG,KAAK,CAAC;QAE5D,0DA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AAG,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGzC,AA1LqB,CA0LpB;AA1NmD;IAApD,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;kDAAgB;AAMpC;IAA/B,IAAA,wBAAQ,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;8CAAkC;AAMrC;IAA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAW;AAGV;IAA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDAAkB;AAGjB;IAA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAAc;AAGG;IAA3C,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAAiB;AAGhB;IAA3C,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAAkB;AAG7B;IAA/B,IAAA,wBAAQ,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;mDAA2C;AAGzD;IAAhB,IAAA,qBAAK,GAAE;qDAA8B;0BAhC3B,eAAe;IAD3B,IAAA,6BAAa,EAAC,kBAAkB,CAAC;GACrB,eAAe,CAgb3B"}
|
|
@@ -18,6 +18,7 @@ exports.ConsentOAuthButton = void 0;
|
|
|
18
18
|
const lit_1 = require("lit");
|
|
19
19
|
const decorators_js_1 = require("lit/decorators.js");
|
|
20
20
|
const unsafe_svg_js_1 = require("lit/directives/unsafe-svg.js");
|
|
21
|
+
const provider_icons_js_1 = require("./provider-icons.js");
|
|
21
22
|
/**
|
|
22
23
|
* Sanitize SVG content to prevent XSS attacks.
|
|
23
24
|
* Removes script tags, event handlers, and dangerous attributes.
|
|
@@ -42,49 +43,49 @@ function sanitizeSvg(svg) {
|
|
|
42
43
|
}
|
|
43
44
|
const PROVIDER_CONFIGS = {
|
|
44
45
|
google: {
|
|
45
|
-
name:
|
|
46
|
+
name: provider_icons_js_1.PROVIDER_NAMES.google,
|
|
46
47
|
bgColor: "#ffffff",
|
|
47
48
|
textColor: "#374151",
|
|
48
49
|
borderColor: "#d1d5db",
|
|
49
50
|
hoverBgColor: "#f9fafb",
|
|
50
51
|
},
|
|
51
52
|
microsoft: {
|
|
52
|
-
name:
|
|
53
|
+
name: provider_icons_js_1.PROVIDER_NAMES.microsoft,
|
|
53
54
|
bgColor: "#2f2f2f",
|
|
54
55
|
textColor: "#ffffff",
|
|
55
56
|
borderColor: "#2f2f2f",
|
|
56
57
|
hoverBgColor: "#1f1f1f",
|
|
57
58
|
},
|
|
58
59
|
apple: {
|
|
59
|
-
name:
|
|
60
|
+
name: provider_icons_js_1.PROVIDER_NAMES.apple,
|
|
60
61
|
bgColor: "#000000",
|
|
61
62
|
textColor: "#ffffff",
|
|
62
63
|
borderColor: "#000000",
|
|
63
64
|
hoverBgColor: "#1a1a1a",
|
|
64
65
|
},
|
|
65
66
|
github: {
|
|
66
|
-
name:
|
|
67
|
+
name: provider_icons_js_1.PROVIDER_NAMES.github,
|
|
67
68
|
bgColor: "#24292f",
|
|
68
69
|
textColor: "#ffffff",
|
|
69
70
|
borderColor: "#24292f",
|
|
70
71
|
hoverBgColor: "#1b1f23",
|
|
71
72
|
},
|
|
72
73
|
twitter: {
|
|
73
|
-
name:
|
|
74
|
+
name: provider_icons_js_1.PROVIDER_NAMES.twitter,
|
|
74
75
|
bgColor: "#1da1f2",
|
|
75
76
|
textColor: "#ffffff",
|
|
76
77
|
borderColor: "#1da1f2",
|
|
77
78
|
hoverBgColor: "#0c8de4",
|
|
78
79
|
},
|
|
79
80
|
facebook: {
|
|
80
|
-
name:
|
|
81
|
+
name: provider_icons_js_1.PROVIDER_NAMES.facebook,
|
|
81
82
|
bgColor: "#1877f2",
|
|
82
83
|
textColor: "#ffffff",
|
|
83
84
|
borderColor: "#1877f2",
|
|
84
85
|
hoverBgColor: "#0b5ed7",
|
|
85
86
|
},
|
|
86
87
|
custom: {
|
|
87
|
-
name:
|
|
88
|
+
name: provider_icons_js_1.PROVIDER_NAMES.custom,
|
|
88
89
|
bgColor: "#ffffff",
|
|
89
90
|
textColor: "#374151",
|
|
90
91
|
borderColor: "#d1d5db",
|
|
@@ -179,88 +180,8 @@ let ConsentOAuthButton = class ConsentOAuthButton extends lit_1.LitElement {
|
|
|
179
180
|
const sanitized = sanitizeSvg(this.customIcon);
|
|
180
181
|
return (0, lit_1.html) `<div class="icon">${(0, unsafe_svg_js_1.unsafeSVG)(sanitized)}</div>`;
|
|
181
182
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return (0, lit_1.html) `
|
|
185
|
-
<div class="icon">
|
|
186
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
187
|
-
<path
|
|
188
|
-
fill="#4285F4"
|
|
189
|
-
d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
190
|
-
/>
|
|
191
|
-
<path
|
|
192
|
-
fill="#34A853"
|
|
193
|
-
d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"
|
|
194
|
-
/>
|
|
195
|
-
<path
|
|
196
|
-
fill="#FBBC05"
|
|
197
|
-
d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"
|
|
198
|
-
/>
|
|
199
|
-
<path
|
|
200
|
-
fill="#EA4335"
|
|
201
|
-
d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
|
|
202
|
-
/>
|
|
203
|
-
</svg>
|
|
204
|
-
</div>
|
|
205
|
-
`;
|
|
206
|
-
case "microsoft":
|
|
207
|
-
return (0, lit_1.html) `
|
|
208
|
-
<div class="icon">
|
|
209
|
-
<svg viewBox="0 0 21 21" xmlns="http://www.w3.org/2000/svg">
|
|
210
|
-
<rect x="1" y="1" width="9" height="9" fill="#f25022" />
|
|
211
|
-
<rect x="1" y="11" width="9" height="9" fill="#00a4ef" />
|
|
212
|
-
<rect x="11" y="1" width="9" height="9" fill="#7fba00" />
|
|
213
|
-
<rect x="11" y="11" width="9" height="9" fill="#ffb900" />
|
|
214
|
-
</svg>
|
|
215
|
-
</div>
|
|
216
|
-
`;
|
|
217
|
-
case "apple":
|
|
218
|
-
return (0, lit_1.html) `
|
|
219
|
-
<div class="icon">
|
|
220
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
221
|
-
<path
|
|
222
|
-
fill="currentColor"
|
|
223
|
-
d="M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"
|
|
224
|
-
/>
|
|
225
|
-
</svg>
|
|
226
|
-
</div>
|
|
227
|
-
`;
|
|
228
|
-
case "github":
|
|
229
|
-
return (0, lit_1.html) `
|
|
230
|
-
<div class="icon">
|
|
231
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
232
|
-
<path
|
|
233
|
-
fill="currentColor"
|
|
234
|
-
d="M12 2C6.477 2 2 6.477 2 12c0 4.42 2.865 8.17 6.839 9.49.5.092.682-.217.682-.482 0-.237-.008-.866-.013-1.7-2.782.604-3.369-1.34-3.369-1.34-.454-1.156-1.11-1.464-1.11-1.464-.908-.62.069-.608.069-.608 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.087 2.91.831.092-.646.35-1.086.636-1.336-2.22-.253-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.029-2.683-.103-.253-.446-1.27.098-2.647 0 0 .84-.269 2.75 1.025A9.578 9.578 0 0112 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.747-1.025 2.747-1.025.546 1.377.203 2.394.1 2.647.64.699 1.028 1.592 1.028 2.683 0 3.842-2.339 4.687-4.566 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.743 0 .267.18.578.688.48C19.138 20.167 22 16.418 22 12c0-5.523-4.477-10-10-10z"
|
|
235
|
-
/>
|
|
236
|
-
</svg>
|
|
237
|
-
</div>
|
|
238
|
-
`;
|
|
239
|
-
case "twitter":
|
|
240
|
-
return (0, lit_1.html) `
|
|
241
|
-
<div class="icon">
|
|
242
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
243
|
-
<path
|
|
244
|
-
fill="currentColor"
|
|
245
|
-
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
|
|
246
|
-
/>
|
|
247
|
-
</svg>
|
|
248
|
-
</div>
|
|
249
|
-
`;
|
|
250
|
-
case "facebook":
|
|
251
|
-
return (0, lit_1.html) `
|
|
252
|
-
<div class="icon">
|
|
253
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
254
|
-
<path
|
|
255
|
-
fill="currentColor"
|
|
256
|
-
d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"
|
|
257
|
-
/>
|
|
258
|
-
</svg>
|
|
259
|
-
</div>
|
|
260
|
-
`;
|
|
261
|
-
default:
|
|
262
|
-
return lit_1.nothing;
|
|
263
|
-
}
|
|
183
|
+
const mark = (0, provider_icons_js_1.providerIcon)(this.provider);
|
|
184
|
+
return mark === lit_1.nothing ? lit_1.nothing : (0, lit_1.html) `<div class="icon">${mark}</div>`;
|
|
264
185
|
}
|
|
265
186
|
updated(changedProperties) {
|
|
266
187
|
if (changedProperties.has("provider")) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-oauth-button.js","sourceRoot":"","sources":["../../../src/components/consent-oauth-button.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;AAEH,6BAAqE;AACrE,qDAAmE;AACnE,gEAAyD;
|
|
1
|
+
{"version":3,"file":"consent-oauth-button.js","sourceRoot":"","sources":["../../../src/components/consent-oauth-button.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;AAEH,6BAAqE;AACrE,qDAAmE;AACnE,gEAAyD;AACzD,2DAI6B;AAgB7B;;;;;;GAMG;AACH,SAAS,WAAW,CAAC,GAAW;IAC9B,IAAI,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IAE/C,uCAAuC;IACvC,IAAI,SAAS,GAAG,GAAG,CAAC,OAAO,CACzB,qDAAqD,EACrD,EAAE,CACH,CAAC;IAEF,yDAA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AAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;sDACjC;AAMpB;IADC,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAC3B;AAMhB;IADC,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAC1B;AAMjB;IADC,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;qDACnC;AAMlB;IADC,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;sDACjC;AAMZ;IADP,IAAA,qBAAK,GAAE;uDACoB;6BA3DjB,kBAAkB;IAD9B,IAAA,6BAAa,EAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAkN9B"}
|
|
@@ -39,22 +39,24 @@ let ConsentRevocationNotice = class ConsentRevocationNotice extends lit_1.LitEle
|
|
|
39
39
|
});
|
|
40
40
|
const expiry = this.expiryCopy();
|
|
41
41
|
return (0, lit_1.html) `
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
42
|
+
<div class="notice" part="notice">
|
|
43
|
+
<svg
|
|
44
|
+
class="icon"
|
|
45
|
+
viewBox="0 0 20 20"
|
|
46
|
+
fill="none"
|
|
47
|
+
stroke="currentColor"
|
|
48
|
+
stroke-width="1.6"
|
|
49
|
+
stroke-linecap="round"
|
|
50
|
+
stroke-linejoin="round"
|
|
51
|
+
aria-hidden="true"
|
|
52
|
+
>
|
|
53
|
+
<circle cx="10" cy="10" r="7.5" />
|
|
54
|
+
<path d="M10 6v4l2.5 1.5" />
|
|
55
|
+
</svg>
|
|
56
|
+
<div class="content">
|
|
57
|
+
<span>${revoke}</span>
|
|
58
|
+
<span>${expiry}</span>
|
|
59
|
+
</div>
|
|
58
60
|
</div>
|
|
59
61
|
`;
|
|
60
62
|
}
|
|
@@ -76,7 +78,14 @@ let ConsentRevocationNotice = class ConsentRevocationNotice extends lit_1.LitEle
|
|
|
76
78
|
};
|
|
77
79
|
exports.ConsentRevocationNotice = ConsentRevocationNotice;
|
|
78
80
|
ConsentRevocationNotice.styles = (0, lit_1.css) `
|
|
81
|
+
/* The box is on an inner element: a page's reset (such as
|
|
82
|
+
Tailwind's "* { padding: 0; margin: 0; border: 0 }") reaches the host,
|
|
83
|
+
never inside. */
|
|
79
84
|
:host {
|
|
85
|
+
display: block;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.notice {
|
|
80
89
|
display: flex;
|
|
81
90
|
align-items: flex-start;
|
|
82
91
|
gap: 10px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-revocation-notice.js","sourceRoot":"","sources":["../../../src/components/consent-revocation-notice.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;;;;;;;AAEH,6BAA4C;AAC5C,qDAA4D;AAE5D,iDAAqE;AAG9D,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,gBAAU;IAAhD;;QACuB,mBAAc,GAAG,4BAA4B,CAAC;QAC9C,YAAO,GAAG,WAAW,CAAC;QACtB,mBAAc,GAAG,EAAE,CAAC;QACQ,gBAAW,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"consent-revocation-notice.js","sourceRoot":"","sources":["../../../src/components/consent-revocation-notice.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;;;;;;;AAEH,6BAA4C;AAC5C,qDAA4D;AAE5D,iDAAqE;AAG9D,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,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AA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+DAA+C;AAC9C;IAA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wDAAuB;AACtB;IAA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+DAAqB;AACQ;IAAvD,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;4DAAqB;AAE5E;IADC,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC;gEACvB;kCANzB,uBAAuB;IADnC,IAAA,6BAAa,EAAC,2BAA2B,CAAC;GAC9B,uBAAuB,CAiGnC"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Status, from your own check of the person's wallet:
|
|
12
12
|
*
|
|
13
|
+
* - `idle`: nothing has started yet; the dial rests, unlit (as the orb's).
|
|
13
14
|
* - `checking`: looking up this browser's wallet.
|
|
14
15
|
* - `syncing`: linking this device's wallet to the account.
|
|
15
16
|
* - `ready`: the wallet can sign.
|
|
@@ -19,6 +20,11 @@
|
|
|
19
20
|
* The orb is decoration (hidden from assistive tech); the caption is
|
|
20
21
|
* announced as it changes.
|
|
21
22
|
*
|
|
23
|
+
* Placement (`placement`): `card` (the default) puts the caption under the orb
|
|
24
|
+
* in the flow. `connector` is for the connector's `mark` slot, in place of its
|
|
25
|
+
* shield (on the capabilities screen, the `connector-mark` slot): the element
|
|
26
|
+
* is the orb's size, and the caption hangs under it on one line.
|
|
27
|
+
*
|
|
22
28
|
* Parts: `frame`, `orb` (the `consent-wallet-orb`), `caption`, and the orb's
|
|
23
29
|
* own `globe`, `dial` and `check`.
|
|
24
30
|
*
|
|
@@ -50,9 +56,11 @@ let ConsentWalletCheck = class ConsentWalletCheck extends lit_1.LitElement {
|
|
|
50
56
|
this.status = "checking";
|
|
51
57
|
/** Your own caption, in place of the status's. */
|
|
52
58
|
this.caption = "";
|
|
59
|
+
/** `card`, or `connector` in the connector's place for the shield. */
|
|
60
|
+
this.placement = "card";
|
|
53
61
|
}
|
|
54
62
|
render() {
|
|
55
|
-
const status = (0, wallet_status_js_1.
|
|
63
|
+
const status = (0, wallet_status_js_1.readWalletOrbStatus)(this.status);
|
|
56
64
|
return (0, lit_1.html) `
|
|
57
65
|
<div part="frame" class="frame">
|
|
58
66
|
<consent-wallet-orb
|
|
@@ -94,6 +102,19 @@ ConsentWalletCheck.styles = (0, lit_1.css) `
|
|
|
94
102
|
font-size: 12px;
|
|
95
103
|
line-height: 1.35;
|
|
96
104
|
}
|
|
105
|
+
|
|
106
|
+
:host([placement="connector"]) .frame {
|
|
107
|
+
position: relative;
|
|
108
|
+
padding: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
:host([placement="connector"]) .caption {
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: calc(100% + 6px);
|
|
114
|
+
left: 50%;
|
|
115
|
+
translate: -50% 0;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
}
|
|
97
118
|
`;
|
|
98
119
|
__decorate([
|
|
99
120
|
(0, decorators_js_1.property)({ type: String, reflect: true })
|
|
@@ -101,6 +122,9 @@ __decorate([
|
|
|
101
122
|
__decorate([
|
|
102
123
|
(0, decorators_js_1.property)({ type: String })
|
|
103
124
|
], ConsentWalletCheck.prototype, "caption", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, decorators_js_1.property)({ type: String, reflect: true })
|
|
127
|
+
], ConsentWalletCheck.prototype, "placement", void 0);
|
|
104
128
|
exports.ConsentWalletCheck = ConsentWalletCheck = __decorate([
|
|
105
129
|
(0, decorators_js_1.customElement)("consent-wallet-check")
|
|
106
130
|
], ConsentWalletCheck);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-wallet-check.js","sourceRoot":"","sources":["../../../src/components/consent-wallet-check.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"consent-wallet-check.js","sourceRoot":"","sources":["../../../src/components/consent-wallet-check.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;;;;;;;AAEH,6BAA4C;AAC5C,qDAA4D;AAE5D,iDAAwD;AACxD,mCAAiC;AACjC,yDAAyD;AAEzD,uDAI4B;AAH1B,yHAAA,qBAAqB,OAAA;AACrB,oHAAA,gBAAgB,OAAA;AAIlB;;;GAGG;AAEI,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,gBAAU;IAA3C;;QACsC,WAAM,GAAW,UAAU,CAAC;QACvE,kDAAkD;QACtB,YAAO,GAAG,EAAE,CAAC;QAEzC,sEAAsE;QAC3B,cAAS,GAClD,MAAM,CAAC;IA0DX,CAAC;IAhBU,MAAM;QACb,MAAM,MAAM,GAAG,IAAA,sCAAmB,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAChD,OAAO,IAAA,UAAI,EAAA;;;;;;oBAMK,MAAM;;;YAGd,IAAI,CAAC,OAAO,IAAI,+BAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;;;KAG/D,CAAC;IACJ,CAAC;;AAhEU,gDAAkB;AASb,yBAAM,GAAG,IAAA,SAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsC3B,AAtCqB,CAsCpB;AA9CyC;IAA1C,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAA6B;AAE3C;IAA3B,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAAc;AAGE;IAA1C,IAAA,wBAAQ,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDACjC;6BAPE,kBAAkB;IAD9B,IAAA,6BAAa,EAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAiE9B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* The icons the capabilities screen
|
|
4
|
-
* unverified-agent warning, a passed check,
|
|
3
|
+
* The icons the capabilities screen and a consent flow draw beside the
|
|
4
|
+
* permissions: the unverified-agent warning, a passed check, each
|
|
5
|
+
* "Permission details" row, and the flow's info, declined and granted marks.
|
|
5
6
|
* Lucide's paths (ISC), stroked in `currentColor`.
|
|
6
7
|
*
|
|
7
8
|
* @module components/decision-icons
|
|
@@ -17,6 +18,9 @@ const PATHS = {
|
|
|
17
18
|
budget: (0, lit_1.svg) `<path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1" /><path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4" />`,
|
|
18
19
|
amountLimits: (0, lit_1.svg) `<rect width="20" height="14" x="2" y="5" rx="2" /><line x1="2" x2="22" y1="10" y2="10" />`,
|
|
19
20
|
alreadyGranted: (0, lit_1.svg) `<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" /><path d="M3 3v5h5" /><path d="M12 7v5l4 2" />`,
|
|
21
|
+
info: (0, lit_1.svg) `<circle cx="12" cy="12" r="10" /><path d="M12 16v-4" /><path d="M12 8h.01" />`,
|
|
22
|
+
minus: (0, lit_1.svg) `<path d="M5 12h14" />`,
|
|
23
|
+
tick: (0, lit_1.svg) `<path d="M20 6 9 17l-5-5" />`,
|
|
20
24
|
};
|
|
21
25
|
/** An icon, hidden from screen readers: the words beside it carry the meaning. */
|
|
22
26
|
function decisionIcon(name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decision-icons.js","sourceRoot":"","sources":["../../../src/components/decision-icons.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"decision-icons.js","sourceRoot":"","sources":["../../../src/components/decision-icons.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;AAoBH,oCAUC;AA5BD,6BAAkD;AAElD,MAAM,KAAK,GAAG;IACZ,OAAO,EAAE,IAAA,SAAG,EAAA,kIAAkI;IAC9I,KAAK,EAAE,IAAA,SAAG,EAAA,wMAAwM;IAClN,QAAQ,EAAE,IAAA,SAAG,EAAA,mMAAmM;IAChN,QAAQ,EAAE,IAAA,SAAG,EAAA,wMAAwM;IACrN,MAAM,EAAE,IAAA,SAAG,EAAA,+KAA+K;IAC1L,YAAY,EAAE,IAAA,SAAG,EAAA,2FAA2F;IAC5G,cAAc,EAAE,IAAA,SAAG,EAAA,6GAA6G;IAChI,IAAI,EAAE,IAAA,SAAG,EAAA,+EAA+E;IACxF,KAAK,EAAE,IAAA,SAAG,EAAA,uBAAuB;IACjC,IAAI,EAAE,IAAA,SAAG,EAAA,8BAA8B;CAC/B,CAAC;AAIX,kFAAkF;AAClF,SAAgB,YAAY,CAAC,IAAkB;IAC7C,OAAO,IAAA,SAAG,EAAA;;;;;;;;KAQP,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;AACzB,CAAC"}
|