@bchconnect/ui 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +269 -2
- package/custom-elements.json +1771 -0
- package/dist/assets.generated.js +28 -0
- package/dist/assets.generated.js.map +1 -0
- package/dist/bchconnect-modal.d.ts +69 -0
- package/dist/bchconnect-modal.js +96 -0
- package/dist/bchconnect-modal.js.map +1 -0
- package/dist/code.js +130 -0
- package/dist/code.js.map +1 -0
- package/dist/defaults.d.ts +50 -0
- package/dist/defaults.js +139 -0
- package/dist/defaults.js.map +1 -0
- package/dist/define.d.ts +17 -0
- package/dist/define.js +23 -0
- package/dist/define.js.map +1 -0
- package/dist/directory.js +37 -0
- package/dist/directory.js.map +1 -0
- package/dist/faces.js +80 -0
- package/dist/faces.js.map +1 -0
- package/dist/gesture.js +78 -0
- package/dist/gesture.js.map +1 -0
- package/dist/headless.d.ts +99 -0
- package/dist/headless.js +190 -0
- package/dist/headless.js.map +1 -0
- package/dist/html.js +17 -0
- package/dist/html.js.map +1 -0
- package/dist/icons.js +21 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +8 -0
- package/dist/locales/es.d.ts +12 -0
- package/dist/locales/es.js +50 -0
- package/dist/locales/es.js.map +1 -0
- package/dist/messages.d.ts +95 -0
- package/dist/messages.js +63 -0
- package/dist/messages.js.map +1 -0
- package/dist/modal.d.ts +112 -0
- package/dist/modal.js +694 -0
- package/dist/modal.js.map +1 -0
- package/dist/motion.js +160 -0
- package/dist/motion.js.map +1 -0
- package/dist/page-scroll.js +28 -0
- package/dist/page-scroll.js.map +1 -0
- package/dist/register.js +14 -0
- package/dist/register.js.map +1 -0
- package/dist/sheet-query.js +8 -0
- package/dist/sheet-query.js.map +1 -0
- package/dist/sheet.js +329 -0
- package/dist/sheet.js.map +1 -0
- package/dist/state.d.ts +175 -0
- package/dist/state.js +11 -0
- package/dist/state.js.map +1 -0
- package/dist/styles/modal.css.sheet.js +13 -0
- package/dist/styles/modal.css.sheet.js.map +1 -0
- package/dist/styles/theme.generated.css.sheet.js +13 -0
- package/dist/styles/theme.generated.css.sheet.js.map +1 -0
- package/dist/styles/toast.css.sheet.js +13 -0
- package/dist/styles/toast.css.sheet.js.map +1 -0
- package/dist/styles/tokens.css.sheet.js +13 -0
- package/dist/styles/tokens.css.sheet.js.map +1 -0
- package/dist/theme.generated.d.ts +105 -0
- package/dist/theme.generated.js +96 -0
- package/dist/theme.generated.js.map +1 -0
- package/dist/toast.d.ts +96 -0
- package/dist/toast.js +180 -0
- package/dist/toast.js.map +1 -0
- package/package.json +87 -3
|
@@ -0,0 +1,1771 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/bchconnect-modal.ts",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "function",
|
|
11
|
+
"name": "bchconnectModal",
|
|
12
|
+
"return": {
|
|
13
|
+
"type": {
|
|
14
|
+
"text": "ConnectUi"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"name": "options",
|
|
20
|
+
"default": "{}",
|
|
21
|
+
"type": {
|
|
22
|
+
"text": "BchconnectModalOptions"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"description": "The default connection UI: the shipped modal, then `bchc-toast` once\nconnected. Pass it as the client's `ui`."
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"exports": [
|
|
30
|
+
{
|
|
31
|
+
"kind": "js",
|
|
32
|
+
"name": "HeadlessModalOptions",
|
|
33
|
+
"declaration": {
|
|
34
|
+
"name": "HeadlessModalOptions",
|
|
35
|
+
"module": "./headless.ts"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"kind": "js",
|
|
40
|
+
"name": "ModalDefaults",
|
|
41
|
+
"declaration": {
|
|
42
|
+
"name": "ModalDefaults",
|
|
43
|
+
"module": "./headless.ts"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"kind": "js",
|
|
48
|
+
"name": "bchconnectModal",
|
|
49
|
+
"declaration": {
|
|
50
|
+
"name": "bchconnectModal",
|
|
51
|
+
"module": "src/bchconnect-modal.ts"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"kind": "javascript-module",
|
|
58
|
+
"path": "src/code.ts",
|
|
59
|
+
"declarations": [
|
|
60
|
+
{
|
|
61
|
+
"kind": "function",
|
|
62
|
+
"name": "renderCode",
|
|
63
|
+
"return": {
|
|
64
|
+
"type": {
|
|
65
|
+
"text": "Promise<void>"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"parameters": [
|
|
69
|
+
{
|
|
70
|
+
"name": "Renderer",
|
|
71
|
+
"type": {
|
|
72
|
+
"text": "CodeRenderer"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "container",
|
|
77
|
+
"type": {
|
|
78
|
+
"text": "HTMLElement"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "request",
|
|
83
|
+
"type": {
|
|
84
|
+
"text": "CodeRequest"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"kind": "variable",
|
|
91
|
+
"name": "image",
|
|
92
|
+
"default": "await markImage(mark, accent)"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"exports": [
|
|
96
|
+
{
|
|
97
|
+
"kind": "js",
|
|
98
|
+
"name": "renderCode",
|
|
99
|
+
"declaration": {
|
|
100
|
+
"name": "renderCode",
|
|
101
|
+
"module": "src/code.ts"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"kind": "javascript-module",
|
|
108
|
+
"path": "src/defaults.ts",
|
|
109
|
+
"declarations": [
|
|
110
|
+
{
|
|
111
|
+
"kind": "variable",
|
|
112
|
+
"name": "BCHC_PROTOCOLS",
|
|
113
|
+
"type": {
|
|
114
|
+
"text": "readonly ProtocolOption[]"
|
|
115
|
+
},
|
|
116
|
+
"default": "[ { id: \"wizardconnect\", name: \"WizardConnect\", mark: { src: MARK_WIZARDCONNECT, shape: \"glyph\" }, }, { id: \"bch-wc2\", name: \"WalletConnect\", mark: { src: MARK_WALLETCONNECT, shape: \"tile\" }, }, { id: \"cashconnect\", name: \"CashConnect\", mark: { src: MARK_CASHCONNECT, shape: \"glyph\" }, }, ]",
|
|
117
|
+
"description": "The session types BCH Connect ships marks for, in the order the\nsession-type control shows them."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"kind": "variable",
|
|
121
|
+
"name": "BCHC_WALLETS",
|
|
122
|
+
"type": {
|
|
123
|
+
"text": "readonly WalletSupport[]"
|
|
124
|
+
},
|
|
125
|
+
"default": "[ { id: \"cashonize\", name: \"Cashonize\", logo: LOGO_CASHONIZE, protocols: [\"wizardconnect\", \"bch-wc2\", \"cashconnect\"], // The web app reads `uri` on its root route. href: \"https://cashonize.com/?uri={link}\", }, { id: \"paytaca\", name: \"Paytaca\", logo: LOGO_PAYTACA, protocols: [\"wizardconnect\", \"bch-wc2\"], href: null, }, { id: \"selene\", name: \"Selene\", logo: LOGO_SELENE, protocols: [\"wizardconnect\", \"bch-wc2\"], href: null, }, { id: \"optn\", name: \"OPTN\", logo: LOGO_OPTN, protocols: [\"wizardconnect\", \"bch-wc2\", \"cashconnect\"], // optn.cash is the project's site, not the wallet. href: null, }, ]",
|
|
126
|
+
"description": "The wallets BCH Connect ships logos, a support matrix and desktop links\nfor, in the order the wallet list shows them.\n\nA session names the wallet picked in the modal but doesn't carry its\nlogo; look the logo up here by `session.wallet.id`."
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"kind": "variable",
|
|
130
|
+
"name": "BCHC_DIRECTORY",
|
|
131
|
+
"type": {
|
|
132
|
+
"text": "readonly WalletDirectoryEntry[]"
|
|
133
|
+
},
|
|
134
|
+
"default": "[ { id: \"cashonize\", name: \"Cashonize\", logo: LOGO_CASHONIZE, link: { href: \"https://about.cashonize.com/\" }, }, { id: \"selene\", name: \"Selene\", logo: LOGO_SELENE, link: { href: \"https://selene.cash\" }, }, { id: \"paytaca\", name: \"Paytaca\", logo: LOGO_PAYTACA, link: { href: \"https://paytaca.com\" }, }, { id: \"optn\", name: \"OPTN\", logo: LOGO_OPTN, link: { href: \"https://optn.cash\" }, }, ]",
|
|
135
|
+
"description": "Where to actually get each wallet in BCHC_WALLETS, for the \"Get a\nwallet\" screen.\n\nOfficial sites only: app-store links are unsupplied, and guessing them\nrisks pointing users to the wrong app."
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"exports": [
|
|
139
|
+
{
|
|
140
|
+
"kind": "js",
|
|
141
|
+
"name": "BCHC_PROTOCOLS",
|
|
142
|
+
"declaration": {
|
|
143
|
+
"name": "BCHC_PROTOCOLS",
|
|
144
|
+
"module": "src/defaults.ts"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"kind": "js",
|
|
149
|
+
"name": "BCHC_WALLETS",
|
|
150
|
+
"declaration": {
|
|
151
|
+
"name": "BCHC_WALLETS",
|
|
152
|
+
"module": "src/defaults.ts"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"kind": "js",
|
|
157
|
+
"name": "BCHC_DIRECTORY",
|
|
158
|
+
"declaration": {
|
|
159
|
+
"name": "BCHC_DIRECTORY",
|
|
160
|
+
"module": "src/defaults.ts"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"kind": "javascript-module",
|
|
167
|
+
"path": "src/define.ts",
|
|
168
|
+
"declarations": [
|
|
169
|
+
{
|
|
170
|
+
"kind": "function",
|
|
171
|
+
"name": "defineElements",
|
|
172
|
+
"return": {
|
|
173
|
+
"type": {
|
|
174
|
+
"text": "void"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"description": "Registers `<bchc-modal>` and `<bchc-toast>`. Idempotent; on a server it\nregisters them in Lit's server registry, so it's safe to call from shared code."
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"exports": [
|
|
181
|
+
{
|
|
182
|
+
"kind": "js",
|
|
183
|
+
"name": "defineElements",
|
|
184
|
+
"declaration": {
|
|
185
|
+
"name": "defineElements",
|
|
186
|
+
"module": "src/define.ts"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"kind": "javascript-module",
|
|
193
|
+
"path": "src/directory.ts",
|
|
194
|
+
"declarations": [],
|
|
195
|
+
"exports": []
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "javascript-module",
|
|
199
|
+
"path": "src/faces.ts",
|
|
200
|
+
"declarations": [],
|
|
201
|
+
"exports": []
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"kind": "javascript-module",
|
|
205
|
+
"path": "src/gesture.ts",
|
|
206
|
+
"declarations": [
|
|
207
|
+
{
|
|
208
|
+
"kind": "variable",
|
|
209
|
+
"name": "DECISION_DISTANCE",
|
|
210
|
+
"type": {
|
|
211
|
+
"text": "number"
|
|
212
|
+
},
|
|
213
|
+
"default": "8",
|
|
214
|
+
"description": "Below this travel (px, the larger of |dx| and |dy|) the gesture's direction is undecided."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"kind": "variable",
|
|
218
|
+
"name": "DISMISS_RATIO",
|
|
219
|
+
"type": {
|
|
220
|
+
"text": "number"
|
|
221
|
+
},
|
|
222
|
+
"default": "0.25",
|
|
223
|
+
"description": "Past this fraction of the sheet's height, releasing dismisses it."
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"kind": "variable",
|
|
227
|
+
"name": "DISMISS_VELOCITY",
|
|
228
|
+
"type": {
|
|
229
|
+
"text": "number"
|
|
230
|
+
},
|
|
231
|
+
"default": "0.4",
|
|
232
|
+
"description": "Past this speed (px/ms) a flick dismisses regardless of distance."
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"kind": "variable",
|
|
236
|
+
"name": "RUBBER_LIMIT",
|
|
237
|
+
"type": {
|
|
238
|
+
"text": "number"
|
|
239
|
+
},
|
|
240
|
+
"default": "48",
|
|
241
|
+
"description": "How far the sheet may be pulled above its resting place before it stops."
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"kind": "variable",
|
|
245
|
+
"name": "VELOCITY_WINDOW",
|
|
246
|
+
"type": {
|
|
247
|
+
"text": "number"
|
|
248
|
+
},
|
|
249
|
+
"default": "80",
|
|
250
|
+
"description": "How long a velocity sample stays in the sliding window (ms)."
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"kind": "function",
|
|
254
|
+
"name": "rubberBand",
|
|
255
|
+
"return": {
|
|
256
|
+
"type": {
|
|
257
|
+
"text": "number"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"parameters": [
|
|
261
|
+
{
|
|
262
|
+
"name": "overshoot",
|
|
263
|
+
"type": {
|
|
264
|
+
"text": "number"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"kind": "function",
|
|
271
|
+
"name": "intent",
|
|
272
|
+
"return": {
|
|
273
|
+
"type": {
|
|
274
|
+
"text": "GestureIntent"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"parameters": [
|
|
278
|
+
{
|
|
279
|
+
"name": "dx",
|
|
280
|
+
"type": {
|
|
281
|
+
"text": "number"
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "dy",
|
|
286
|
+
"type": {
|
|
287
|
+
"text": "number"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "scrolled",
|
|
292
|
+
"type": {
|
|
293
|
+
"text": "boolean"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "scrollable",
|
|
298
|
+
"type": {
|
|
299
|
+
"text": "boolean"
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"description": "Arbitrates a press that has moved (dx, dy) from its start. `scrolled` and\n`scrollable` describe the nearest scroll container between the press and\nthe sheet: whether it is scrolled away from its top, and whether it can\nstill scroll further down."
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"kind": "function",
|
|
307
|
+
"name": "recordVelocitySample",
|
|
308
|
+
"return": {
|
|
309
|
+
"type": {
|
|
310
|
+
"text": "readonly VelocitySample[]"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"parameters": [
|
|
314
|
+
{
|
|
315
|
+
"name": "samples",
|
|
316
|
+
"type": {
|
|
317
|
+
"text": "readonly VelocitySample[]"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"name": "time",
|
|
322
|
+
"type": {
|
|
323
|
+
"text": "number"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"name": "y",
|
|
328
|
+
"type": {
|
|
329
|
+
"text": "number"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"description": "Appends a sample and drops every sample older than the window relative to it."
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"kind": "function",
|
|
337
|
+
"name": "velocityAt",
|
|
338
|
+
"return": {
|
|
339
|
+
"type": {
|
|
340
|
+
"text": "number"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"parameters": [
|
|
344
|
+
{
|
|
345
|
+
"name": "samples",
|
|
346
|
+
"type": {
|
|
347
|
+
"text": "readonly VelocitySample[]"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"name": "time",
|
|
352
|
+
"type": {
|
|
353
|
+
"text": "number"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"description": "Velocity (px/ms) across the sliding window, as of `time`. Zero with fewer\nthan two samples, a zero-length span, or when the newest sample is older\nthan the window relative to `time` (the finger paused before this call)."
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"kind": "function",
|
|
361
|
+
"name": "decideRelease",
|
|
362
|
+
"return": {
|
|
363
|
+
"type": {
|
|
364
|
+
"text": "boolean"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"parameters": [
|
|
368
|
+
{
|
|
369
|
+
"name": "offset",
|
|
370
|
+
"type": {
|
|
371
|
+
"text": "number"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "height",
|
|
376
|
+
"type": {
|
|
377
|
+
"text": "number"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "velocity",
|
|
382
|
+
"type": {
|
|
383
|
+
"text": "number"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"description": "Whether releasing now dismisses the sheet: past the distance ratio or\nflicking down fast enough, but never while flicking back up."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"kind": "function",
|
|
391
|
+
"name": "scrimOpacity",
|
|
392
|
+
"return": {
|
|
393
|
+
"type": {
|
|
394
|
+
"text": "number"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"parameters": [
|
|
398
|
+
{
|
|
399
|
+
"name": "offset",
|
|
400
|
+
"type": {
|
|
401
|
+
"text": "number"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "height",
|
|
406
|
+
"type": {
|
|
407
|
+
"text": "number"
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
],
|
|
411
|
+
"description": "How visible the scrim stays at a given drag offset: opaque at rest,\nfading linearly to nothing as the sheet nears fully off-screen. An upward\npull (a negative offset, past rest) keeps it fully visible."
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"kind": "variable",
|
|
415
|
+
"name": "EASE_SHEET_INITIAL_SLOPE",
|
|
416
|
+
"type": {
|
|
417
|
+
"text": "number"
|
|
418
|
+
},
|
|
419
|
+
"default": "2.25"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"kind": "function",
|
|
423
|
+
"name": "releaseDuration",
|
|
424
|
+
"return": {
|
|
425
|
+
"type": {
|
|
426
|
+
"text": "number"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"parameters": [
|
|
430
|
+
{
|
|
431
|
+
"name": "distance",
|
|
432
|
+
"type": {
|
|
433
|
+
"text": "number"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "speed",
|
|
438
|
+
"type": {
|
|
439
|
+
"text": "number"
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "longest",
|
|
444
|
+
"type": {
|
|
445
|
+
"text": "number"
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
],
|
|
449
|
+
"description": "A release animation's duration (ms), continuing the finger's speed. `distance`\nis the remaining travel (px, absolute); `speed` is the release speed toward\nthe target (px/ms, zero or negative when the finger was still or moving\naway); `longest` is the ceiling (a still or receding finger gets exactly\n`longest`). Clamped to between 30% of `longest` and `longest`."
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"exports": [
|
|
453
|
+
{
|
|
454
|
+
"kind": "js",
|
|
455
|
+
"name": "DECISION_DISTANCE",
|
|
456
|
+
"declaration": {
|
|
457
|
+
"name": "DECISION_DISTANCE",
|
|
458
|
+
"module": "src/gesture.ts"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"kind": "js",
|
|
463
|
+
"name": "DISMISS_RATIO",
|
|
464
|
+
"declaration": {
|
|
465
|
+
"name": "DISMISS_RATIO",
|
|
466
|
+
"module": "src/gesture.ts"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"kind": "js",
|
|
471
|
+
"name": "DISMISS_VELOCITY",
|
|
472
|
+
"declaration": {
|
|
473
|
+
"name": "DISMISS_VELOCITY",
|
|
474
|
+
"module": "src/gesture.ts"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"kind": "js",
|
|
479
|
+
"name": "RUBBER_LIMIT",
|
|
480
|
+
"declaration": {
|
|
481
|
+
"name": "RUBBER_LIMIT",
|
|
482
|
+
"module": "src/gesture.ts"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"kind": "js",
|
|
487
|
+
"name": "VELOCITY_WINDOW",
|
|
488
|
+
"declaration": {
|
|
489
|
+
"name": "VELOCITY_WINDOW",
|
|
490
|
+
"module": "src/gesture.ts"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"kind": "js",
|
|
495
|
+
"name": "rubberBand",
|
|
496
|
+
"declaration": {
|
|
497
|
+
"name": "rubberBand",
|
|
498
|
+
"module": "src/gesture.ts"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"kind": "js",
|
|
503
|
+
"name": "intent",
|
|
504
|
+
"declaration": {
|
|
505
|
+
"name": "intent",
|
|
506
|
+
"module": "src/gesture.ts"
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"kind": "js",
|
|
511
|
+
"name": "recordVelocitySample",
|
|
512
|
+
"declaration": {
|
|
513
|
+
"name": "recordVelocitySample",
|
|
514
|
+
"module": "src/gesture.ts"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"kind": "js",
|
|
519
|
+
"name": "velocityAt",
|
|
520
|
+
"declaration": {
|
|
521
|
+
"name": "velocityAt",
|
|
522
|
+
"module": "src/gesture.ts"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"kind": "js",
|
|
527
|
+
"name": "decideRelease",
|
|
528
|
+
"declaration": {
|
|
529
|
+
"name": "decideRelease",
|
|
530
|
+
"module": "src/gesture.ts"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"kind": "js",
|
|
535
|
+
"name": "scrimOpacity",
|
|
536
|
+
"declaration": {
|
|
537
|
+
"name": "scrimOpacity",
|
|
538
|
+
"module": "src/gesture.ts"
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"kind": "js",
|
|
543
|
+
"name": "EASE_SHEET_INITIAL_SLOPE",
|
|
544
|
+
"declaration": {
|
|
545
|
+
"name": "EASE_SHEET_INITIAL_SLOPE",
|
|
546
|
+
"module": "src/gesture.ts"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"kind": "js",
|
|
551
|
+
"name": "releaseDuration",
|
|
552
|
+
"declaration": {
|
|
553
|
+
"name": "releaseDuration",
|
|
554
|
+
"module": "src/gesture.ts"
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"kind": "javascript-module",
|
|
561
|
+
"path": "src/headless.ts",
|
|
562
|
+
"declarations": [
|
|
563
|
+
{
|
|
564
|
+
"kind": "variable",
|
|
565
|
+
"name": "protocols"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"kind": "variable",
|
|
569
|
+
"name": "wallets",
|
|
570
|
+
"type": {
|
|
571
|
+
"text": "array"
|
|
572
|
+
},
|
|
573
|
+
"default": "[ ...listed.filter((entry) => entry.id === openWallet), ...listed.filter((entry) => entry.id !== openWallet), ]"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"kind": "variable",
|
|
577
|
+
"name": "controller",
|
|
578
|
+
"default": "new AbortController()"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"kind": "function",
|
|
582
|
+
"name": "headlessModal",
|
|
583
|
+
"return": {
|
|
584
|
+
"type": {
|
|
585
|
+
"text": "ConnectUi"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
"parameters": [
|
|
589
|
+
{
|
|
590
|
+
"name": "renderer",
|
|
591
|
+
"type": {
|
|
592
|
+
"text": "ModalRenderer"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"name": "options",
|
|
597
|
+
"default": "{}",
|
|
598
|
+
"type": {
|
|
599
|
+
"text": "HeadlessModalOptions"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
],
|
|
603
|
+
"description": "The modal's connection logic as a `ConnectUi`, drawn by any renderer. Pass\nthe result as the client's `ui`."
|
|
604
|
+
}
|
|
605
|
+
],
|
|
606
|
+
"exports": [
|
|
607
|
+
{
|
|
608
|
+
"kind": "js",
|
|
609
|
+
"name": "ConnectPhase",
|
|
610
|
+
"declaration": {
|
|
611
|
+
"name": "ConnectPhase",
|
|
612
|
+
"module": "./state.ts"
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"kind": "js",
|
|
617
|
+
"name": "FailureReason",
|
|
618
|
+
"declaration": {
|
|
619
|
+
"name": "FailureReason",
|
|
620
|
+
"module": "./state.ts"
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"kind": "js",
|
|
625
|
+
"name": "MarkShape",
|
|
626
|
+
"declaration": {
|
|
627
|
+
"name": "MarkShape",
|
|
628
|
+
"module": "./state.ts"
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
"kind": "js",
|
|
633
|
+
"name": "ModalScreen",
|
|
634
|
+
"declaration": {
|
|
635
|
+
"name": "ModalScreen",
|
|
636
|
+
"module": "./state.ts"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"kind": "js",
|
|
641
|
+
"name": "ModalView",
|
|
642
|
+
"declaration": {
|
|
643
|
+
"name": "ModalView",
|
|
644
|
+
"module": "./state.ts"
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"kind": "js",
|
|
649
|
+
"name": "Network",
|
|
650
|
+
"declaration": {
|
|
651
|
+
"name": "Network",
|
|
652
|
+
"module": "./state.ts"
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"kind": "js",
|
|
657
|
+
"name": "ProtocolId",
|
|
658
|
+
"declaration": {
|
|
659
|
+
"name": "ProtocolId",
|
|
660
|
+
"module": "./state.ts"
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"kind": "js",
|
|
665
|
+
"name": "ProtocolMark",
|
|
666
|
+
"declaration": {
|
|
667
|
+
"name": "ProtocolMark",
|
|
668
|
+
"module": "./state.ts"
|
|
669
|
+
}
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"kind": "js",
|
|
673
|
+
"name": "ProtocolOption",
|
|
674
|
+
"declaration": {
|
|
675
|
+
"name": "ProtocolOption",
|
|
676
|
+
"module": "./state.ts"
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"kind": "js",
|
|
681
|
+
"name": "WalletDirectoryEntry",
|
|
682
|
+
"declaration": {
|
|
683
|
+
"name": "WalletDirectoryEntry",
|
|
684
|
+
"module": "./state.ts"
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"kind": "js",
|
|
689
|
+
"name": "WalletOption",
|
|
690
|
+
"declaration": {
|
|
691
|
+
"name": "WalletOption",
|
|
692
|
+
"module": "./state.ts"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"kind": "js",
|
|
697
|
+
"name": "headlessModal",
|
|
698
|
+
"declaration": {
|
|
699
|
+
"name": "headlessModal",
|
|
700
|
+
"module": "src/headless.ts"
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
]
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"kind": "javascript-module",
|
|
707
|
+
"path": "src/html.ts",
|
|
708
|
+
"declarations": [
|
|
709
|
+
{
|
|
710
|
+
"kind": "function",
|
|
711
|
+
"name": "safeHref",
|
|
712
|
+
"return": {
|
|
713
|
+
"type": {
|
|
714
|
+
"text": "string | null"
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"parameters": [
|
|
718
|
+
{
|
|
719
|
+
"name": "url",
|
|
720
|
+
"type": {
|
|
721
|
+
"text": "string"
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
],
|
|
727
|
+
"exports": [
|
|
728
|
+
{
|
|
729
|
+
"kind": "js",
|
|
730
|
+
"name": "safeHref",
|
|
731
|
+
"declaration": {
|
|
732
|
+
"name": "safeHref",
|
|
733
|
+
"module": "src/html.ts"
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"kind": "javascript-module",
|
|
740
|
+
"path": "src/icons.ts",
|
|
741
|
+
"declarations": [
|
|
742
|
+
{
|
|
743
|
+
"kind": "function",
|
|
744
|
+
"name": "icon",
|
|
745
|
+
"return": {
|
|
746
|
+
"type": {
|
|
747
|
+
"text": "TemplateResult"
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
"parameters": [
|
|
751
|
+
{
|
|
752
|
+
"name": "name",
|
|
753
|
+
"type": {
|
|
754
|
+
"text": "IconName"
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"name": "size",
|
|
759
|
+
"default": "16"
|
|
760
|
+
}
|
|
761
|
+
]
|
|
762
|
+
}
|
|
763
|
+
],
|
|
764
|
+
"exports": [
|
|
765
|
+
{
|
|
766
|
+
"kind": "js",
|
|
767
|
+
"name": "icon",
|
|
768
|
+
"declaration": {
|
|
769
|
+
"name": "icon",
|
|
770
|
+
"module": "src/icons.ts"
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
]
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"kind": "javascript-module",
|
|
777
|
+
"path": "src/index.ts",
|
|
778
|
+
"declarations": [],
|
|
779
|
+
"exports": [
|
|
780
|
+
{
|
|
781
|
+
"kind": "js",
|
|
782
|
+
"name": "BCHC_DIRECTORY",
|
|
783
|
+
"declaration": {
|
|
784
|
+
"name": "BCHC_DIRECTORY",
|
|
785
|
+
"module": "./defaults.ts"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
"kind": "js",
|
|
790
|
+
"name": "BCHC_PROTOCOLS",
|
|
791
|
+
"declaration": {
|
|
792
|
+
"name": "BCHC_PROTOCOLS",
|
|
793
|
+
"module": "./defaults.ts"
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"kind": "js",
|
|
798
|
+
"name": "BCHC_WALLETS",
|
|
799
|
+
"declaration": {
|
|
800
|
+
"name": "BCHC_WALLETS",
|
|
801
|
+
"module": "./defaults.ts"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"kind": "js",
|
|
806
|
+
"name": "defineElements",
|
|
807
|
+
"declaration": {
|
|
808
|
+
"name": "defineElements",
|
|
809
|
+
"module": "./define.ts"
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
"kind": "js",
|
|
814
|
+
"name": "BchcMessages",
|
|
815
|
+
"declaration": {
|
|
816
|
+
"name": "BchcMessages",
|
|
817
|
+
"module": "./messages.ts"
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"kind": "js",
|
|
822
|
+
"name": "BCHC_MESSAGES_EN",
|
|
823
|
+
"declaration": {
|
|
824
|
+
"name": "BCHC_MESSAGES_EN",
|
|
825
|
+
"module": "./messages.ts"
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"kind": "js",
|
|
830
|
+
"name": "BchcModalEvents",
|
|
831
|
+
"declaration": {
|
|
832
|
+
"name": "BchcModalEvents",
|
|
833
|
+
"module": "./modal.ts"
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
{
|
|
837
|
+
"kind": "js",
|
|
838
|
+
"name": "BchcModal",
|
|
839
|
+
"declaration": {
|
|
840
|
+
"name": "BchcModal",
|
|
841
|
+
"module": "./modal.ts"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"kind": "js",
|
|
846
|
+
"name": "ConnectPhase",
|
|
847
|
+
"declaration": {
|
|
848
|
+
"name": "ConnectPhase",
|
|
849
|
+
"module": "./state.ts"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"kind": "js",
|
|
854
|
+
"name": "FailureReason",
|
|
855
|
+
"declaration": {
|
|
856
|
+
"name": "FailureReason",
|
|
857
|
+
"module": "./state.ts"
|
|
858
|
+
}
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"kind": "js",
|
|
862
|
+
"name": "MarkShape",
|
|
863
|
+
"declaration": {
|
|
864
|
+
"name": "MarkShape",
|
|
865
|
+
"module": "./state.ts"
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"kind": "js",
|
|
870
|
+
"name": "ModalScreen",
|
|
871
|
+
"declaration": {
|
|
872
|
+
"name": "ModalScreen",
|
|
873
|
+
"module": "./state.ts"
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"kind": "js",
|
|
878
|
+
"name": "ModalView",
|
|
879
|
+
"declaration": {
|
|
880
|
+
"name": "ModalView",
|
|
881
|
+
"module": "./state.ts"
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"kind": "js",
|
|
886
|
+
"name": "Network",
|
|
887
|
+
"declaration": {
|
|
888
|
+
"name": "Network",
|
|
889
|
+
"module": "./state.ts"
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"kind": "js",
|
|
894
|
+
"name": "ProtocolId",
|
|
895
|
+
"declaration": {
|
|
896
|
+
"name": "ProtocolId",
|
|
897
|
+
"module": "./state.ts"
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"kind": "js",
|
|
902
|
+
"name": "ProtocolMark",
|
|
903
|
+
"declaration": {
|
|
904
|
+
"name": "ProtocolMark",
|
|
905
|
+
"module": "./state.ts"
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"kind": "js",
|
|
910
|
+
"name": "ProtocolOption",
|
|
911
|
+
"declaration": {
|
|
912
|
+
"name": "ProtocolOption",
|
|
913
|
+
"module": "./state.ts"
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"kind": "js",
|
|
918
|
+
"name": "WalletDirectoryEntry",
|
|
919
|
+
"declaration": {
|
|
920
|
+
"name": "WalletDirectoryEntry",
|
|
921
|
+
"module": "./state.ts"
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"kind": "js",
|
|
926
|
+
"name": "WalletOption",
|
|
927
|
+
"declaration": {
|
|
928
|
+
"name": "WalletOption",
|
|
929
|
+
"module": "./state.ts"
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"kind": "js",
|
|
934
|
+
"name": "WalletSupport",
|
|
935
|
+
"declaration": {
|
|
936
|
+
"name": "WalletSupport",
|
|
937
|
+
"module": "./state.ts"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"kind": "js",
|
|
942
|
+
"name": "BchcAccent",
|
|
943
|
+
"declaration": {
|
|
944
|
+
"name": "BchcAccent",
|
|
945
|
+
"module": "./theme.generated.ts"
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"kind": "js",
|
|
950
|
+
"name": "BchcBlur",
|
|
951
|
+
"declaration": {
|
|
952
|
+
"name": "BchcBlur",
|
|
953
|
+
"module": "./theme.generated.ts"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
"kind": "js",
|
|
958
|
+
"name": "BchcFont",
|
|
959
|
+
"declaration": {
|
|
960
|
+
"name": "BchcFont",
|
|
961
|
+
"module": "./theme.generated.ts"
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"kind": "js",
|
|
966
|
+
"name": "BchcMode",
|
|
967
|
+
"declaration": {
|
|
968
|
+
"name": "BchcMode",
|
|
969
|
+
"module": "./theme.generated.ts"
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"kind": "js",
|
|
974
|
+
"name": "BchcNeutral",
|
|
975
|
+
"declaration": {
|
|
976
|
+
"name": "BchcNeutral",
|
|
977
|
+
"module": "./theme.generated.ts"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"kind": "js",
|
|
982
|
+
"name": "BchcRadius",
|
|
983
|
+
"declaration": {
|
|
984
|
+
"name": "BchcRadius",
|
|
985
|
+
"module": "./theme.generated.ts"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"kind": "js",
|
|
990
|
+
"name": "BCHC_ACCENT_DEFAULT_NEUTRAL",
|
|
991
|
+
"declaration": {
|
|
992
|
+
"name": "BCHC_ACCENT_DEFAULT_NEUTRAL",
|
|
993
|
+
"module": "./theme.generated.ts"
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"kind": "js",
|
|
998
|
+
"name": "BCHC_ACCENTS",
|
|
999
|
+
"declaration": {
|
|
1000
|
+
"name": "BCHC_ACCENTS",
|
|
1001
|
+
"module": "./theme.generated.ts"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"kind": "js",
|
|
1006
|
+
"name": "BCHC_BLURS",
|
|
1007
|
+
"declaration": {
|
|
1008
|
+
"name": "BCHC_BLURS",
|
|
1009
|
+
"module": "./theme.generated.ts"
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"kind": "js",
|
|
1014
|
+
"name": "BCHC_DEFAULT_ACCENT",
|
|
1015
|
+
"declaration": {
|
|
1016
|
+
"name": "BCHC_DEFAULT_ACCENT",
|
|
1017
|
+
"module": "./theme.generated.ts"
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"kind": "js",
|
|
1022
|
+
"name": "BCHC_DEFAULT_NEUTRAL",
|
|
1023
|
+
"declaration": {
|
|
1024
|
+
"name": "BCHC_DEFAULT_NEUTRAL",
|
|
1025
|
+
"module": "./theme.generated.ts"
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"kind": "js",
|
|
1030
|
+
"name": "BCHC_FONTS",
|
|
1031
|
+
"declaration": {
|
|
1032
|
+
"name": "BCHC_FONTS",
|
|
1033
|
+
"module": "./theme.generated.ts"
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"kind": "js",
|
|
1038
|
+
"name": "BCHC_NEUTRALS",
|
|
1039
|
+
"declaration": {
|
|
1040
|
+
"name": "BCHC_NEUTRALS",
|
|
1041
|
+
"module": "./theme.generated.ts"
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"kind": "js",
|
|
1046
|
+
"name": "BCHC_RADII",
|
|
1047
|
+
"declaration": {
|
|
1048
|
+
"name": "BCHC_RADII",
|
|
1049
|
+
"module": "./theme.generated.ts"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"kind": "js",
|
|
1054
|
+
"name": "BchcToastEvents",
|
|
1055
|
+
"declaration": {
|
|
1056
|
+
"name": "BchcToastEvents",
|
|
1057
|
+
"module": "./toast.ts"
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"kind": "js",
|
|
1062
|
+
"name": "ToastView",
|
|
1063
|
+
"declaration": {
|
|
1064
|
+
"name": "ToastView",
|
|
1065
|
+
"module": "./toast.ts"
|
|
1066
|
+
}
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"kind": "js",
|
|
1070
|
+
"name": "BchcToast",
|
|
1071
|
+
"declaration": {
|
|
1072
|
+
"name": "BchcToast",
|
|
1073
|
+
"module": "./toast.ts"
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
]
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"kind": "javascript-module",
|
|
1080
|
+
"path": "src/messages.ts",
|
|
1081
|
+
"declarations": [
|
|
1082
|
+
{
|
|
1083
|
+
"kind": "variable",
|
|
1084
|
+
"name": "BCHC_MESSAGES_EN",
|
|
1085
|
+
"type": {
|
|
1086
|
+
"text": "BchcMessages"
|
|
1087
|
+
},
|
|
1088
|
+
"default": "{ lang: \"en\", connectTitle: \"Connect a wallet\", getWalletTitle: \"Get a wallet\", sessionType: \"Session type\", scan: \"Scan with your wallet\", scanWith: (wallet) => `Scan with ${wallet}`, initiating: \"Getting your connection link\", linkFailed: \"Didn't open? Copy the link.\", copyLink: \"Copy link\", linkCopied: \"Link copied\", copyLinkLabel: \"Copy connection link\", openInWallet: \"Open in your wallet\", walletsHeading: \"Choose your wallet\", open: \"Open\", openWalletLabel: (wallet) => `Open ${wallet}`, noWallet: \"Don't have a wallet?\", directoryHeading: \"Bitcoin Cash wallets that work here\", getWallet: (name) => `Get ${name}`, tryAgain: \"Try again\", back: \"Back\", close: \"Close\", walletConnected: \"Wallet connected\", connectedTo: (wallet) => `Connected to ${wallet}`, dismiss: \"Dismiss\", // Second person, plain, no exclamation marks; never a code, URI, or transport name. rejectedTitle: \"Your wallet declined\", rejectedDetail: \"Nothing was shared and nothing was sent.\", timeoutTitle: \"No answer from your wallet\", timeoutDetail: \"It may have closed before approving. You can try again.\", abortedTitle: \"Connection stopped\", abortedDetail: \"The request ended before your wallet answered.\", transportTitle: \"Couldn't reach your wallet\", transportDetail: \"Try again in a moment.\", networkMismatchTitle: \"Your wallet is on a different network\", networkMismatchDetail: \"Switch networks in your wallet, then connect again.\", unsupportedTitle: \"That wallet can't use this session type\", unsupportedDetail: \"Choose another session type, or another wallet.\", }",
|
|
1089
|
+
"description": "The English catalogue. It ships in the main entry and is what both\nelements show when no `messages` override or locale is set."
|
|
1090
|
+
}
|
|
1091
|
+
],
|
|
1092
|
+
"exports": [
|
|
1093
|
+
{
|
|
1094
|
+
"kind": "js",
|
|
1095
|
+
"name": "BCHC_MESSAGES_EN",
|
|
1096
|
+
"declaration": {
|
|
1097
|
+
"name": "BCHC_MESSAGES_EN",
|
|
1098
|
+
"module": "src/messages.ts"
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
]
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"kind": "javascript-module",
|
|
1105
|
+
"path": "src/modal.ts",
|
|
1106
|
+
"declarations": [
|
|
1107
|
+
{
|
|
1108
|
+
"kind": "class",
|
|
1109
|
+
"description": "The `<bchc-modal>` web component",
|
|
1110
|
+
"name": "BchcModal",
|
|
1111
|
+
"cssProperties": [
|
|
1112
|
+
{
|
|
1113
|
+
"description": "Brand font family read when `data-bchc-font=\"brand\"`; falls back to the system stack until set.",
|
|
1114
|
+
"name": "--bchc-font-brand-family"
|
|
1115
|
+
}
|
|
1116
|
+
],
|
|
1117
|
+
"members": [
|
|
1118
|
+
{
|
|
1119
|
+
"kind": "field",
|
|
1120
|
+
"name": "view",
|
|
1121
|
+
"type": {
|
|
1122
|
+
"text": "ModalView | null"
|
|
1123
|
+
},
|
|
1124
|
+
"description": "The state to render. Setting it re-renders the modal.",
|
|
1125
|
+
"default": "null"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"kind": "field",
|
|
1129
|
+
"name": "messages",
|
|
1130
|
+
"type": {
|
|
1131
|
+
"text": "Partial<BchcMessages> | null"
|
|
1132
|
+
},
|
|
1133
|
+
"description": "Overrides for the strings this element shows and announces.",
|
|
1134
|
+
"default": "null"
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"kind": "method",
|
|
1138
|
+
"name": "close",
|
|
1139
|
+
"return": {
|
|
1140
|
+
"type": {
|
|
1141
|
+
"text": "Promise<void>"
|
|
1142
|
+
}
|
|
1143
|
+
},
|
|
1144
|
+
"description": "Plays the exit, then emits `bchc-close`. A second call while the first\nis still playing does nothing."
|
|
1145
|
+
}
|
|
1146
|
+
],
|
|
1147
|
+
"events": [
|
|
1148
|
+
{
|
|
1149
|
+
"type": {
|
|
1150
|
+
"text": "CustomEvent<{ wallet: string }>"
|
|
1151
|
+
},
|
|
1152
|
+
"description": "Fired when the visitor selects a wallet, and before `bchc-protocol` when a tab change pins the default wallet; `bchc-protocol` follows when the selected wallet lacks the current session type.",
|
|
1153
|
+
"name": "bchc-wallet"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"type": {
|
|
1157
|
+
"text": "CustomEvent<{ protocol: ProtocolId }>"
|
|
1158
|
+
},
|
|
1159
|
+
"description": "Fired when the visitor picks a different session type.",
|
|
1160
|
+
"name": "bchc-protocol"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"type": {
|
|
1164
|
+
"text": "CustomEvent<{ screen: ModalScreen }>"
|
|
1165
|
+
},
|
|
1166
|
+
"description": "Fired when the visitor moves between the connect and wallets screens.",
|
|
1167
|
+
"name": "bchc-screen"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"type": {
|
|
1171
|
+
"text": "CustomEvent<void>"
|
|
1172
|
+
},
|
|
1173
|
+
"description": "Fired once the exit has played. Remove the element on it, or set `view` to `null` before showing it again.",
|
|
1174
|
+
"name": "bchc-close"
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"type": {
|
|
1178
|
+
"text": "CustomEvent<void>"
|
|
1179
|
+
},
|
|
1180
|
+
"description": "Fired when \"Try again\" is pressed after a failure.",
|
|
1181
|
+
"name": "bchc-retry"
|
|
1182
|
+
}
|
|
1183
|
+
],
|
|
1184
|
+
"attributes": [
|
|
1185
|
+
{
|
|
1186
|
+
"type": {
|
|
1187
|
+
"text": "BchcAccent"
|
|
1188
|
+
},
|
|
1189
|
+
"description": "Curated accent color.",
|
|
1190
|
+
"name": "data-bchc-accent"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"type": {
|
|
1194
|
+
"text": "BchcNeutral"
|
|
1195
|
+
},
|
|
1196
|
+
"description": "Neutral family override; each accent has a default pairing.",
|
|
1197
|
+
"name": "data-bchc-neutral"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"type": {
|
|
1201
|
+
"text": "BchcRadius"
|
|
1202
|
+
},
|
|
1203
|
+
"description": "Corner radius preset applied to every rounded part.",
|
|
1204
|
+
"name": "data-bchc-radius"
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"type": {
|
|
1208
|
+
"text": "BchcFont"
|
|
1209
|
+
},
|
|
1210
|
+
"description": "Font stack; `brand` falls back to `system` until a face is injected.",
|
|
1211
|
+
"name": "data-bchc-font"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"type": {
|
|
1215
|
+
"text": "BchcBlur"
|
|
1216
|
+
},
|
|
1217
|
+
"description": "Backdrop blur behind the modal.",
|
|
1218
|
+
"name": "data-bchc-blur"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"type": {
|
|
1222
|
+
"text": "BchcMode"
|
|
1223
|
+
},
|
|
1224
|
+
"description": "Color scheme; `auto` follows `prefers-color-scheme`.",
|
|
1225
|
+
"name": "data-bchc-mode"
|
|
1226
|
+
}
|
|
1227
|
+
],
|
|
1228
|
+
"superclass": {
|
|
1229
|
+
"name": "LitElement",
|
|
1230
|
+
"package": "lit"
|
|
1231
|
+
},
|
|
1232
|
+
"tagName": "bchc-modal",
|
|
1233
|
+
"customElement": true
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
"exports": [
|
|
1237
|
+
{
|
|
1238
|
+
"kind": "js",
|
|
1239
|
+
"name": "BchcModal",
|
|
1240
|
+
"declaration": {
|
|
1241
|
+
"name": "BchcModal",
|
|
1242
|
+
"module": "src/modal.ts"
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
]
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"kind": "javascript-module",
|
|
1249
|
+
"path": "src/motion.ts",
|
|
1250
|
+
"declarations": [
|
|
1251
|
+
{
|
|
1252
|
+
"kind": "function",
|
|
1253
|
+
"name": "tempoOf",
|
|
1254
|
+
"return": {
|
|
1255
|
+
"type": {
|
|
1256
|
+
"text": "Tempo"
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
"parameters": [
|
|
1260
|
+
{
|
|
1261
|
+
"name": "element",
|
|
1262
|
+
"type": {
|
|
1263
|
+
"text": "Element"
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
]
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"kind": "function",
|
|
1270
|
+
"name": "animationsFinished",
|
|
1271
|
+
"return": {
|
|
1272
|
+
"type": {
|
|
1273
|
+
"text": "Promise<void>"
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
"parameters": [
|
|
1277
|
+
{
|
|
1278
|
+
"name": "root",
|
|
1279
|
+
"type": {
|
|
1280
|
+
"text": "Element"
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
],
|
|
1284
|
+
"description": "Wait for every animation under `root` to finish, however it finishes (a cancelled one rejects its `finished` promise)."
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"kind": "function",
|
|
1288
|
+
"name": "namedAnimationsFinished",
|
|
1289
|
+
"return": {
|
|
1290
|
+
"type": {
|
|
1291
|
+
"text": "Promise<void>"
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
"parameters": [
|
|
1295
|
+
{
|
|
1296
|
+
"name": "root",
|
|
1297
|
+
"type": {
|
|
1298
|
+
"text": "Element"
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
{
|
|
1302
|
+
"name": "names",
|
|
1303
|
+
"type": {
|
|
1304
|
+
"text": "ReadonlySet<string>"
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
]
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"kind": "function",
|
|
1311
|
+
"name": "enter",
|
|
1312
|
+
"return": {
|
|
1313
|
+
"type": {
|
|
1314
|
+
"text": "void"
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
"parameters": [
|
|
1318
|
+
{
|
|
1319
|
+
"name": "elements",
|
|
1320
|
+
"type": {
|
|
1321
|
+
"text": "Iterable<Element>"
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"name": "tempo",
|
|
1326
|
+
"type": {
|
|
1327
|
+
"text": "Tempo"
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
]
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"kind": "function",
|
|
1334
|
+
"name": "morphHeight",
|
|
1335
|
+
"return": {
|
|
1336
|
+
"type": {
|
|
1337
|
+
"text": "void"
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
"parameters": [
|
|
1341
|
+
{
|
|
1342
|
+
"name": "element",
|
|
1343
|
+
"type": {
|
|
1344
|
+
"text": "HTMLElement"
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"name": "mutate",
|
|
1349
|
+
"type": {
|
|
1350
|
+
"text": "() => void"
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
]
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"kind": "function",
|
|
1357
|
+
"name": "slideSheet",
|
|
1358
|
+
"return": {
|
|
1359
|
+
"type": {
|
|
1360
|
+
"text": "void"
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
"parameters": [
|
|
1364
|
+
{
|
|
1365
|
+
"name": "card",
|
|
1366
|
+
"type": {
|
|
1367
|
+
"text": "HTMLElement"
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"name": "mutate",
|
|
1372
|
+
"type": {
|
|
1373
|
+
"text": "() => void"
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
]
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"kind": "function",
|
|
1380
|
+
"name": "crossfade",
|
|
1381
|
+
"return": {
|
|
1382
|
+
"type": {
|
|
1383
|
+
"text": "void"
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
"parameters": [
|
|
1387
|
+
{
|
|
1388
|
+
"name": "host",
|
|
1389
|
+
"type": {
|
|
1390
|
+
"text": "HTMLElement"
|
|
1391
|
+
}
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"name": "mutate",
|
|
1395
|
+
"type": {
|
|
1396
|
+
"text": "() => void"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "direction",
|
|
1401
|
+
"type": {
|
|
1402
|
+
"text": "-1 | 0 | 1"
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
]
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"kind": "function",
|
|
1409
|
+
"name": "retext",
|
|
1410
|
+
"return": {
|
|
1411
|
+
"type": {
|
|
1412
|
+
"text": "void"
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
"parameters": [
|
|
1416
|
+
{
|
|
1417
|
+
"name": "element",
|
|
1418
|
+
"type": {
|
|
1419
|
+
"text": "HTMLElement"
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"name": "key",
|
|
1424
|
+
"type": {
|
|
1425
|
+
"text": "string"
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "swap",
|
|
1430
|
+
"type": {
|
|
1431
|
+
"text": "() => unknown"
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
"description": "Fade an element's content out, let `swap` replace it, then fade it back in,\nso a label never just flips. `key` names the new content; `swap` may return\na promise that settles once the new content is in place."
|
|
1436
|
+
}
|
|
1437
|
+
],
|
|
1438
|
+
"exports": [
|
|
1439
|
+
{
|
|
1440
|
+
"kind": "js",
|
|
1441
|
+
"name": "tempoOf",
|
|
1442
|
+
"declaration": {
|
|
1443
|
+
"name": "tempoOf",
|
|
1444
|
+
"module": "src/motion.ts"
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"kind": "js",
|
|
1449
|
+
"name": "animationsFinished",
|
|
1450
|
+
"declaration": {
|
|
1451
|
+
"name": "animationsFinished",
|
|
1452
|
+
"module": "src/motion.ts"
|
|
1453
|
+
}
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"kind": "js",
|
|
1457
|
+
"name": "namedAnimationsFinished",
|
|
1458
|
+
"declaration": {
|
|
1459
|
+
"name": "namedAnimationsFinished",
|
|
1460
|
+
"module": "src/motion.ts"
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"kind": "js",
|
|
1465
|
+
"name": "enter",
|
|
1466
|
+
"declaration": {
|
|
1467
|
+
"name": "enter",
|
|
1468
|
+
"module": "src/motion.ts"
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"kind": "js",
|
|
1473
|
+
"name": "morphHeight",
|
|
1474
|
+
"declaration": {
|
|
1475
|
+
"name": "morphHeight",
|
|
1476
|
+
"module": "src/motion.ts"
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"kind": "js",
|
|
1481
|
+
"name": "slideSheet",
|
|
1482
|
+
"declaration": {
|
|
1483
|
+
"name": "slideSheet",
|
|
1484
|
+
"module": "src/motion.ts"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"kind": "js",
|
|
1489
|
+
"name": "crossfade",
|
|
1490
|
+
"declaration": {
|
|
1491
|
+
"name": "crossfade",
|
|
1492
|
+
"module": "src/motion.ts"
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
"kind": "js",
|
|
1497
|
+
"name": "retext",
|
|
1498
|
+
"declaration": {
|
|
1499
|
+
"name": "retext",
|
|
1500
|
+
"module": "src/motion.ts"
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
]
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"kind": "javascript-module",
|
|
1507
|
+
"path": "src/page-scroll.ts",
|
|
1508
|
+
"declarations": [],
|
|
1509
|
+
"exports": []
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"kind": "javascript-module",
|
|
1513
|
+
"path": "src/register.ts",
|
|
1514
|
+
"declarations": [],
|
|
1515
|
+
"exports": [
|
|
1516
|
+
{
|
|
1517
|
+
"kind": "custom-element-definition",
|
|
1518
|
+
"name": "bchc-modal",
|
|
1519
|
+
"declaration": {
|
|
1520
|
+
"name": "BchcModal",
|
|
1521
|
+
"module": "/src/modal.ts"
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
"kind": "custom-element-definition",
|
|
1526
|
+
"name": "bchc-toast",
|
|
1527
|
+
"declaration": {
|
|
1528
|
+
"name": "BchcToast",
|
|
1529
|
+
"module": "/src/toast.ts"
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
]
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"kind": "javascript-module",
|
|
1536
|
+
"path": "src/sheet-query.ts",
|
|
1537
|
+
"declarations": [
|
|
1538
|
+
{
|
|
1539
|
+
"kind": "variable",
|
|
1540
|
+
"name": "SHEET_QUERY",
|
|
1541
|
+
"type": {
|
|
1542
|
+
"text": "string"
|
|
1543
|
+
},
|
|
1544
|
+
"default": "\"(max-width: 791px)\"",
|
|
1545
|
+
"description": "Below this the modal is a drawer: the dialog needs its 760px card plus 16px overlay padding each side."
|
|
1546
|
+
}
|
|
1547
|
+
],
|
|
1548
|
+
"exports": [
|
|
1549
|
+
{
|
|
1550
|
+
"kind": "js",
|
|
1551
|
+
"name": "SHEET_QUERY",
|
|
1552
|
+
"declaration": {
|
|
1553
|
+
"name": "SHEET_QUERY",
|
|
1554
|
+
"module": "src/sheet-query.ts"
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
]
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"kind": "javascript-module",
|
|
1561
|
+
"path": "src/sheet.ts",
|
|
1562
|
+
"declarations": [
|
|
1563
|
+
{
|
|
1564
|
+
"kind": "function",
|
|
1565
|
+
"name": "draggableSheet",
|
|
1566
|
+
"return": {
|
|
1567
|
+
"type": {
|
|
1568
|
+
"text": "DraggableSheet"
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
"parameters": [
|
|
1572
|
+
{
|
|
1573
|
+
"name": "card",
|
|
1574
|
+
"type": {
|
|
1575
|
+
"text": "HTMLElement"
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"name": "scrim",
|
|
1580
|
+
"type": {
|
|
1581
|
+
"text": "HTMLElement"
|
|
1582
|
+
}
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
"name": "handlers",
|
|
1586
|
+
"type": {
|
|
1587
|
+
"text": "SheetHandlers"
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
]
|
|
1591
|
+
}
|
|
1592
|
+
],
|
|
1593
|
+
"exports": [
|
|
1594
|
+
{
|
|
1595
|
+
"kind": "js",
|
|
1596
|
+
"name": "draggableSheet",
|
|
1597
|
+
"declaration": {
|
|
1598
|
+
"name": "draggableSheet",
|
|
1599
|
+
"module": "src/sheet.ts"
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
]
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
"kind": "javascript-module",
|
|
1606
|
+
"path": "src/state.ts",
|
|
1607
|
+
"declarations": [
|
|
1608
|
+
{
|
|
1609
|
+
"kind": "variable",
|
|
1610
|
+
"name": "NETWORK_LABEL",
|
|
1611
|
+
"type": {
|
|
1612
|
+
"text": "Readonly<Record<Network, string>>"
|
|
1613
|
+
},
|
|
1614
|
+
"default": "{ mainnet: \"Mainnet\", chipnet: \"Chipnet\", regtest: \"Regtest\", }"
|
|
1615
|
+
}
|
|
1616
|
+
],
|
|
1617
|
+
"exports": [
|
|
1618
|
+
{
|
|
1619
|
+
"kind": "js",
|
|
1620
|
+
"name": "NETWORK_LABEL",
|
|
1621
|
+
"declaration": {
|
|
1622
|
+
"name": "NETWORK_LABEL",
|
|
1623
|
+
"module": "src/state.ts"
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
]
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
"kind": "javascript-module",
|
|
1630
|
+
"path": "src/toast.ts",
|
|
1631
|
+
"declarations": [
|
|
1632
|
+
{
|
|
1633
|
+
"kind": "class",
|
|
1634
|
+
"description": "The `<bchc-toast>` custom element, confirming a successful connection. It is\nseparate from the modal so it can outlive it; it never blocks the page, and a\ndapp with its own notifications can leave it out.",
|
|
1635
|
+
"name": "BchcToast",
|
|
1636
|
+
"cssProperties": [
|
|
1637
|
+
{
|
|
1638
|
+
"description": "Brand font family read when `data-bchc-font=\"brand\"`; falls back to the system stack until set.",
|
|
1639
|
+
"name": "--bchc-font-brand-family"
|
|
1640
|
+
}
|
|
1641
|
+
],
|
|
1642
|
+
"members": [
|
|
1643
|
+
{
|
|
1644
|
+
"kind": "field",
|
|
1645
|
+
"name": "view",
|
|
1646
|
+
"type": {
|
|
1647
|
+
"text": "ToastView | null"
|
|
1648
|
+
},
|
|
1649
|
+
"description": "The connection to announce. Setting it re-renders the toast: the first\ntime builds it and plays its entrance; afterwards it updates the name\nand logo in place, without replaying the entrance.",
|
|
1650
|
+
"default": "null"
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"kind": "field",
|
|
1654
|
+
"name": "messages",
|
|
1655
|
+
"type": {
|
|
1656
|
+
"text": "Partial<BchcMessages> | null"
|
|
1657
|
+
},
|
|
1658
|
+
"description": "Overrides for the strings this element shows and announces.",
|
|
1659
|
+
"default": "null"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
"kind": "field",
|
|
1663
|
+
"name": "duration",
|
|
1664
|
+
"type": {
|
|
1665
|
+
"text": "number"
|
|
1666
|
+
},
|
|
1667
|
+
"description": "How long the toast stays before it dismisses itself, in milliseconds.\nHovering or focusing it pauses the countdown. `Infinity` keeps it until\nBchcToast.dismiss is called or the visitor dismisses it. Setting\nit while the toast is shown restarts the countdown."
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"kind": "method",
|
|
1671
|
+
"name": "dismiss",
|
|
1672
|
+
"return": {
|
|
1673
|
+
"type": {
|
|
1674
|
+
"text": "Promise<void>"
|
|
1675
|
+
}
|
|
1676
|
+
},
|
|
1677
|
+
"description": "Play the exit, then tell the caller. A second call does nothing."
|
|
1678
|
+
}
|
|
1679
|
+
],
|
|
1680
|
+
"events": [
|
|
1681
|
+
{
|
|
1682
|
+
"name": "bchc-dismiss",
|
|
1683
|
+
"type": {
|
|
1684
|
+
"text": "CustomEvent<void>"
|
|
1685
|
+
},
|
|
1686
|
+
"description": "Fired once the exit has played. Remove the element on it."
|
|
1687
|
+
}
|
|
1688
|
+
],
|
|
1689
|
+
"attributes": [
|
|
1690
|
+
{
|
|
1691
|
+
"type": {
|
|
1692
|
+
"text": "BchcAccent"
|
|
1693
|
+
},
|
|
1694
|
+
"description": "Curated accent color.",
|
|
1695
|
+
"name": "data-bchc-accent"
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
"type": {
|
|
1699
|
+
"text": "BchcNeutral"
|
|
1700
|
+
},
|
|
1701
|
+
"description": "Neutral family override; each accent has a default pairing.",
|
|
1702
|
+
"name": "data-bchc-neutral"
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"type": {
|
|
1706
|
+
"text": "BchcRadius"
|
|
1707
|
+
},
|
|
1708
|
+
"description": "Corner radius preset applied to every rounded part.",
|
|
1709
|
+
"name": "data-bchc-radius"
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"type": {
|
|
1713
|
+
"text": "BchcFont"
|
|
1714
|
+
},
|
|
1715
|
+
"description": "Font stack; `brand` falls back to `system` until a face is injected.",
|
|
1716
|
+
"name": "data-bchc-font"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"type": {
|
|
1720
|
+
"text": "BchcMode"
|
|
1721
|
+
},
|
|
1722
|
+
"description": "Color scheme; `auto` follows `prefers-color-scheme`.",
|
|
1723
|
+
"name": "data-bchc-mode"
|
|
1724
|
+
}
|
|
1725
|
+
],
|
|
1726
|
+
"superclass": {
|
|
1727
|
+
"name": "LitElement",
|
|
1728
|
+
"package": "lit"
|
|
1729
|
+
},
|
|
1730
|
+
"tagName": "bchc-toast",
|
|
1731
|
+
"customElement": true
|
|
1732
|
+
}
|
|
1733
|
+
],
|
|
1734
|
+
"exports": [
|
|
1735
|
+
{
|
|
1736
|
+
"kind": "js",
|
|
1737
|
+
"name": "BchcToast",
|
|
1738
|
+
"declaration": {
|
|
1739
|
+
"name": "BchcToast",
|
|
1740
|
+
"module": "src/toast.ts"
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
]
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"kind": "javascript-module",
|
|
1747
|
+
"path": "src/locales/es.ts",
|
|
1748
|
+
"declarations": [
|
|
1749
|
+
{
|
|
1750
|
+
"kind": "variable",
|
|
1751
|
+
"name": "BCHC_MESSAGES_ES",
|
|
1752
|
+
"type": {
|
|
1753
|
+
"text": "BchcMessages"
|
|
1754
|
+
},
|
|
1755
|
+
"default": "{ lang: \"es\", connectTitle: \"Conecta una billetera\", getWalletTitle: \"Consigue una billetera\", sessionType: \"Tipo de sesión\", scan: \"Escanea con tu billetera\", scanWith: (wallet) => `Escanea con ${wallet}`, initiating: \"Obteniendo enlace de conexión\", linkFailed: \"¿No se abrió? Copia el enlace.\", copyLink: \"Copiar enlace\", linkCopied: \"Enlace copiado\", copyLinkLabel: \"Copiar enlace de conexión\", openInWallet: \"Abrir en tu billetera\", walletsHeading: \"Elige tu billetera\", open: \"Abrir\", openWalletLabel: (wallet) => `Abrir ${wallet}`, noWallet: \"¿No tienes una billetera?\", directoryHeading: \"Billeteras de Bitcoin Cash que funcionan aquí\", getWallet: (name) => `Obtener ${name}`, tryAgain: \"Reintentar\", back: \"Atrás\", close: \"Cerrar\", walletConnected: \"Billetera conectada\", connectedTo: (wallet) => `Conectado a ${wallet}`, dismiss: \"Descartar\", rejectedTitle: \"La solicitud de conexión fue rechazada\", rejectedDetail: \"Puedes reintentarlo si no fue intencional\", timeoutTitle: \"Tu billetera no respondió\", timeoutDetail: \"Puede que se haya cerrado antes de aprobar\", abortedTitle: \"Conexión detenida\", abortedDetail: \"La solicitud terminó antes de que tu billetera respondiera.\", transportTitle: \"No se pudo contactar con tu billetera\", transportDetail: \"Inténtalo de nuevo en un momento.\", networkMismatchTitle: \"Tu billetera está en otra red\", networkMismatchDetail: \"Cambia de red en tu billetera y vuelve a conectar.\", unsupportedTitle: \"Esa billetera no admite este tipo de sesión\", unsupportedDetail: \"Elige otro tipo de sesión u otra billetera.\", }",
|
|
1756
|
+
"description": "The Spanish catalogue, for the `messages` property of `bchc-modal` and\n`bchc-toast`."
|
|
1757
|
+
}
|
|
1758
|
+
],
|
|
1759
|
+
"exports": [
|
|
1760
|
+
{
|
|
1761
|
+
"kind": "js",
|
|
1762
|
+
"name": "BCHC_MESSAGES_ES",
|
|
1763
|
+
"declaration": {
|
|
1764
|
+
"name": "BCHC_MESSAGES_ES",
|
|
1765
|
+
"module": "src/locales/es.ts"
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
]
|
|
1769
|
+
}
|
|
1770
|
+
]
|
|
1771
|
+
}
|