@sigport/elements 0.0.0-stage → 0.1.1

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 ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 sigport contributors
4
+ Copyright (c) 2026 kernl contributors (the sign-in code sigport is ported from)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,11 @@
1
- # Temporary Holding Version
1
+ # @sigport/elements
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The sigport sign-in panel and button as web components. Works in any framework, or none.
4
+
5
+ Part of [sigport](https://github.com/sigport/sigport): Nostr sign-in for any web app.
6
+
7
+ - [Getting started](https://sigport.dev/docs/guide/getting-started)
8
+ - [Frameworks](https://sigport.dev/docs/guide/frameworks)
9
+ - [API reference](https://sigport.dev/docs/reference/api)
10
+
11
+ MIT licensed.
@@ -0,0 +1,595 @@
1
+ import * as lit from 'lit';
2
+ import { LitElement, PropertyValues, TemplateResult } from 'lit';
3
+ import { Sigport, SigportState } from '@sigport/core';
4
+ import { IAccount } from 'applesauce-accounts';
5
+
6
+ /**
7
+ * Motion for the sign-in panel. Every animation here can be:
8
+ *
9
+ * - turned off: `motion="none"` (or the system's reduced-motion setting, under the default `motion="auto"`);
10
+ * - retimed: the `--sigport-*-duration` and `--sigport-*-ease` tokens;
11
+ * - replaced: the `animations` property (one function per kind, or `false`), or the
12
+ * cancelable `sigport-transition` event.
13
+ *
14
+ * Nothing else in the elements calls `element.animate()`: `test/policy.test.ts` holds that line.
15
+ */
16
+ /** `motion`: `auto` follows the system's reduced-motion setting, `none` never animates, `full` always does. */
17
+ type Motion = 'auto' | 'none' | 'full';
18
+ /**
19
+ * The kinds of transition:
20
+ *
21
+ * - `slide`: the panel slides between the list and an adapter's screen.
22
+ * - `resize`: the card's height follows its content (the slide's height change too, with `cause: 'slide'`).
23
+ * - `swap`: the content of a pane is replaced in place (the relays editor, signing in or out).
24
+ * - `dialog`: `<sigport-button>`'s dialog opens or closes.
25
+ */
26
+ type TransitionKind = 'slide' | 'resize' | 'swap' | 'dialog';
27
+ /** What a transition animator is given. */
28
+ interface TransitionContext {
29
+ readonly kind: TransitionKind;
30
+ /** `forward` (deeper in), `back` (out), or for a dialog `open` / `close`. */
31
+ readonly direction: 'forward' | 'back' | 'open' | 'close';
32
+ /** The element to animate: the track for `slide`, the viewport for `resize`, the pane for `swap`, the dialog for `dialog`. */
33
+ readonly element: HTMLElement;
34
+ /** For `slide`: the pane that leaves and the pane that arrives. */
35
+ readonly panes?: {
36
+ readonly from: HTMLElement;
37
+ readonly to: HTMLElement;
38
+ };
39
+ /** For `resize`: the height now and the height to reach, in px. */
40
+ readonly from?: number;
41
+ readonly to?: number;
42
+ /** For `resize`: what changed the height. */
43
+ readonly cause?: 'slide' | 'content';
44
+ /** For `slide`: the track's transform now (mid-slide when the person turned back), and the one to reach. */
45
+ readonly transform?: {
46
+ readonly from: string;
47
+ readonly to: string;
48
+ };
49
+ /** The token values for this kind, in ms and as a CSS easing. */
50
+ readonly duration: number;
51
+ readonly easing: string;
52
+ }
53
+ /**
54
+ * Animate one transition. Return the `Animation`(s) or a promise: the panel waits for
55
+ * them before it tidies up (hides the pane that left, moves focus). Return nothing
56
+ * for an instant change. The panel has already put the element in its end state, so
57
+ * an animator only has to animate *from* somewhere.
58
+ */
59
+ type Animator = (context: TransitionContext) => Animation | readonly Animation[] | Promise<unknown> | void;
60
+ /** `animations`: replace (a function) or turn off (`false`) each kind. Kinds left out use the built-in one. */
61
+ type Animations = Partial<Record<TransitionKind, Animator | false>>;
62
+ /** Detail of the cancelable `sigport-transition` event. Call `preventDefault()` to skip the built-in animation. */
63
+ interface TransitionDetail extends TransitionContext {
64
+ /** Make the panel wait for your own animation before it tidies up. */
65
+ waitUntil(promise: Promise<unknown>): void;
66
+ }
67
+ /** The built-in animations. Each one only animates *from* somewhere: the element is already in its end state. */
68
+ declare const builtInAnimations: Record<TransitionKind, Animator>;
69
+
70
+ /** Every word the components show that does not come from an adapter. Override any with the `strings` property. */
71
+ declare const DEFAULT_STRINGS: {
72
+ label: string;
73
+ title: string;
74
+ lede: string;
75
+ looking: string;
76
+ others: string;
77
+ back: string;
78
+ remembered: string;
79
+ signInRemembered: string;
80
+ forget: string;
81
+ signedInAs: string;
82
+ signOut: string;
83
+ switchAccount: string;
84
+ ready: string;
85
+ pairingNote: string;
86
+ making: string;
87
+ moreApps: string;
88
+ waiting: string;
89
+ finding: string;
90
+ tryAgain: string;
91
+ tryAgainNote: string;
92
+ noAnswer: string;
93
+ via: string;
94
+ change: string;
95
+ changeRelays: string;
96
+ openInSigner: string;
97
+ tapToOpen: string;
98
+ opening: string;
99
+ nothingOpened: string;
100
+ getSigner: string;
101
+ orCopy: string;
102
+ relaysTitle: string;
103
+ relaysLede: string;
104
+ addRelay: string;
105
+ addRelayPlaceholder: string;
106
+ add: string;
107
+ checking: string;
108
+ relayNoAnswer: string;
109
+ relayInvalid: string;
110
+ relayDuplicate: string;
111
+ useRelays: string;
112
+ resetRelays: string;
113
+ moveUp: string;
114
+ moveDown: string;
115
+ remove: string;
116
+ suggested: string;
117
+ seenBy: string;
118
+ seenByOne: string;
119
+ checkedAgo: string;
120
+ copy: string;
121
+ copied: string;
122
+ copyFailed: string;
123
+ orPaste: string;
124
+ /** Between the paste field and the pairing code, under `paste-first`. */
125
+ orPair: string;
126
+ apps: string;
127
+ extensionsTitle: string;
128
+ extensionsLede: string;
129
+ appsTitle: string;
130
+ appsLede: string;
131
+ installedRecheck: string;
132
+ recheck: string;
133
+ footer: string;
134
+ button: string;
135
+ close: string;
136
+ };
137
+ type Strings = typeof DEFAULT_STRINGS;
138
+
139
+ /** `apps-limit`: a number, `auto` (fit the window) or `none`. */
140
+ type AppsLimit = number | 'auto' | 'none';
141
+ /** `hide-apps`: every adapter's apps (`true`, or the bare attribute), or only these adapters' (a comma-separated list of ids). */
142
+ type HideApps = boolean | string | readonly string[];
143
+ /**
144
+ * Whether `hide-apps` hides this adapter's apps.
145
+ *
146
+ * @example
147
+ * ```ts
148
+ * appsHidden('extension', 'extension'); // true
149
+ * appsHidden(true, 'remote'); // true
150
+ * ```
151
+ */
152
+ declare function appsHidden(setting: HideApps | undefined, adapterId: string): boolean;
153
+ /** `sides`: which rows get the square on their right. */
154
+ type Sides = 'all' | 'disabled' | 'none';
155
+ /** Detail of the `sigport-signin` event. */
156
+ interface SignInDetail {
157
+ readonly account: IAccount;
158
+ }
159
+ /**
160
+ * The sign-in panel: the ranked list, each adapter's form or pairing code,
161
+ * and each adapter's list of apps, sliding between them.
162
+ *
163
+ * Give it a session with the `sigport` property, or import
164
+ * `@sigport/elements/define` and configure it with attributes.
165
+ *
166
+ * @fires sigport-signin - After a sign-in. `detail.account` is the account.
167
+ * @fires sigport-signout - After a sign-out.
168
+ * @csspart card - The outer card.
169
+ * @csspart row - Every row button. An adapter's row also has `row-<emphasis>` (`row-top`, `row-likely`, `row-quiet`), `row-<id>`, and `row-disabled` or `row-dashed` when they apply. App rows have `row-app`; the start-pairing row, `row-pairing`.
170
+ * @csspart tile - Every row's icon tile. An adapter's row also has `tile-<id>`, such as `tile-extension`.
171
+ * @csspart side - The square on the right of a row.
172
+ * @csspart viewport - The box whose height follows the pane in view; it animates between heights.
173
+ * @csspart track - The strip holding both panes; it slides.
174
+ * @csspart pane - Each pane: also `pane-list` (the ranked list, or who is signed in) and `pane-detail` (an adapter's screen).
175
+ * @fires sigport-transition - Before each animation, cancelable: see `TransitionDetail`. `preventDefault()` skips the built-in one.
176
+ * @slot account-<pubkey> - A remembered or signed-in account's name, in place of the one sigport knows.
177
+ * @example
178
+ * ```html
179
+ * <sigport-signin exclude="metamask,onekey" app-name="My app"></sigport-signin>
180
+ * ```
181
+ */
182
+ declare class SigportSignIn extends LitElement {
183
+ static styles: lit.CSSResult;
184
+ static properties: {
185
+ sigport: {
186
+ attribute: boolean;
187
+ };
188
+ strings: {
189
+ attribute: boolean;
190
+ };
191
+ theme: {
192
+ reflect: boolean;
193
+ };
194
+ include: {};
195
+ exclude: {};
196
+ appName: {
197
+ attribute: string;
198
+ };
199
+ snapId: {
200
+ attribute: string;
201
+ };
202
+ relays: {};
203
+ namespace: {};
204
+ bare: {
205
+ type: BooleanConstructor;
206
+ reflect: boolean;
207
+ };
208
+ hideFooter: {
209
+ type: BooleanConstructor;
210
+ attribute: string;
211
+ };
212
+ compact: {
213
+ type: BooleanConstructor;
214
+ reflect: boolean;
215
+ };
216
+ hideApps: {
217
+ attribute: string;
218
+ converter: {
219
+ fromAttribute: (value: string | null) => HideApps;
220
+ toAttribute: (value: HideApps) => string | null;
221
+ };
222
+ };
223
+ hideChevrons: {
224
+ type: BooleanConstructor;
225
+ attribute: string;
226
+ };
227
+ sides: {};
228
+ pasteFirst: {
229
+ type: BooleanConstructor;
230
+ attribute: string;
231
+ };
232
+ appsLimit: {
233
+ attribute: string;
234
+ converter: {
235
+ fromAttribute: (value: string | null) => AppsLimit | undefined;
236
+ toAttribute: (value: AppsLimit | undefined) => string | null;
237
+ };
238
+ };
239
+ appsMore: {
240
+ attribute: string;
241
+ };
242
+ manualPairing: {
243
+ type: BooleanConstructor;
244
+ attribute: string;
245
+ };
246
+ relayTimeout: {
247
+ type: NumberConstructor;
248
+ attribute: string;
249
+ };
250
+ suggestRelays: {
251
+ type: BooleanConstructor;
252
+ attribute: string;
253
+ };
254
+ relayMonitors: {
255
+ attribute: string;
256
+ };
257
+ monitorPubkeys: {
258
+ attribute: string;
259
+ };
260
+ monitorMaxAge: {
261
+ attribute: string;
262
+ };
263
+ motion: {
264
+ reflect: boolean;
265
+ };
266
+ animations: {
267
+ attribute: boolean;
268
+ };
269
+ expanded: {
270
+ state: boolean;
271
+ };
272
+ state: {
273
+ state: boolean;
274
+ };
275
+ showOthers: {
276
+ state: boolean;
277
+ };
278
+ deep: {
279
+ state: boolean;
280
+ };
281
+ settled: {
282
+ state: boolean;
283
+ };
284
+ copied: {
285
+ state: boolean;
286
+ };
287
+ opening: {
288
+ state: boolean;
289
+ };
290
+ fitted: {
291
+ state: boolean;
292
+ };
293
+ switching: {
294
+ state: boolean;
295
+ };
296
+ };
297
+ /**
298
+ * Makes a session from the element's attributes when none is given.
299
+ * `@sigport/elements/define` sets it to use every built-in adapter.
300
+ */
301
+ static createDefault: ((element: SigportSignIn) => Sigport) | undefined;
302
+ /** The session. Set it to share one session between components. */
303
+ sigport: Sigport | undefined;
304
+ /** Words to replace. */
305
+ strings: Partial<Strings>;
306
+ /** `light`, `dark` or `auto` (follows the system). */
307
+ theme: 'light' | 'dark' | 'auto';
308
+ /** Adapter ids to keep, comma separated. */
309
+ include: string | undefined;
310
+ /** Adapter ids to drop, comma separated. */
311
+ exclude: string | undefined;
312
+ /** How the app introduces itself to signers. */
313
+ appName: string | undefined;
314
+ /** The MetaMask Snap that holds keys. */
315
+ snapId: string | undefined;
316
+ /** Pairing relays, comma separated. */
317
+ relays: string | undefined;
318
+ /** Storage key prefix. */
319
+ namespace: string | undefined;
320
+ /** Drop the card chrome, to sit inside your own. */
321
+ bare: boolean;
322
+ hideFooter: boolean;
323
+ /** A shorter layout for tight spaces: a smaller code, copy beside the relay, field labels read only by screen readers. */
324
+ compact: boolean;
325
+ /** Hide the lists of extensions and signer apps: all of them (`true`, or the bare attribute), or only these adapters' (`"extension"`, `"extension,remote"`). */
326
+ hideApps: HideApps;
327
+ /** Draw no chevron on rows that open another view. */
328
+ hideChevrons: boolean;
329
+ /** Which rows get the square on their right: `all` (the default), `disabled` (only rows that cannot be used) or `none`. */
330
+ sides: Sides;
331
+ /** In a view with both, put the paste field before the pairing code. Pair with `manual-pairing` so the code waits for a click. */
332
+ pasteFirst: boolean;
333
+ /** How many apps to list before `Show more`: a number, `auto` (as many as fit in the window, the default) or `none`. */
334
+ appsLimit: AppsLimit | undefined;
335
+ /** The words on the `Show more` button. `{count}` is the number hidden. */
336
+ appsMore: string | undefined;
337
+ /** Wait for a click before showing the remote signer's pairing code. */
338
+ manualPairing: boolean;
339
+ /** How long each pairing relay gets to answer, in ms. */
340
+ relayTimeout: number | undefined;
341
+ /** Suggest relays from relay monitors (NIP-66) when a relay is typed. */
342
+ suggestRelays: boolean;
343
+ /** Relays that carry monitor reports, comma separated. */
344
+ relayMonitors: string | undefined;
345
+ /** Only trust these monitor pubkeys (hex), comma separated. */
346
+ monitorPubkeys: string | undefined;
347
+ /** Ignore monitor reports older than this, such as `12h`. */
348
+ monitorMaxAge: string | undefined;
349
+ /** `auto` (the default) animates unless the system asks for reduced motion; `none` never animates; `full` always does. */
350
+ motion: Motion;
351
+ /**
352
+ * Replace (a function) or turn off (`false`) each kind of animation: `slide`, `resize`, `swap`.
353
+ * Timing comes from the `--sigport-duration` token and its per-kind overrides.
354
+ */
355
+ animations: Animations | undefined;
356
+ protected expanded: ReadonlySet<string>;
357
+ /** After a tap on the code: `trying` while the signer app should open, `missed` if the page is still in front. */
358
+ protected opening: 'idle' | 'trying' | 'missed';
359
+ /** How many apps fit, per adapter, under the `auto` limit. */
360
+ protected fitted: ReadonlyMap<string, number>;
361
+ protected state: SigportState | undefined;
362
+ protected showOthers: boolean;
363
+ protected deep: boolean;
364
+ protected settled: boolean;
365
+ protected copied: 'idle' | 'done' | 'failed';
366
+ protected switching: boolean;
367
+ private unsubscribe;
368
+ private owned;
369
+ private attached;
370
+ private lastActive;
371
+ private openTimer;
372
+ private lastScreen;
373
+ /** The screen last received, to tell a change of screen from any other update. */
374
+ private shownScreen;
375
+ /** Set while the arriving pane is drawn and fitted out of sight, before it slides in: where the slide goes. */
376
+ private preparing;
377
+ /** The slide to start after the next render. */
378
+ private slidePending;
379
+ /** Bumped by every slide, so a slide that was turned back mid-way does not tidy up. */
380
+ private generation;
381
+ /** The last template of each pane: the pane that leaves keeps showing it while it slides away. */
382
+ private listTemplate;
383
+ private detailTemplate;
384
+ /** The height the viewport is heading for, in px. */
385
+ private targetHeight;
386
+ /** Bumped by every height change, so only the last one unpins the viewport. */
387
+ private heightRun;
388
+ private heightBusy;
389
+ /** The width the panes were last measured at. */
390
+ private paneWidth;
391
+ private resizer;
392
+ /** A pane's content to fade in after the next render. */
393
+ private pendingSwap;
394
+ /** Whether the list pane last showed who is signed in, or the ways to sign in. */
395
+ private homeMode;
396
+ constructor();
397
+ private get t();
398
+ private readonly refit;
399
+ connectedCallback(): void;
400
+ disconnectedCallback(): void;
401
+ protected willUpdate(_changed: PropertyValues<this>): void;
402
+ /** Destroy the session this element made itself, if it made one. Sessions passed in are never destroyed here. */
403
+ private dropOwned;
404
+ private attach;
405
+ private receive;
406
+ protected updated(changed: PropertyValues<this>): void;
407
+ private find;
408
+ /** Watch both panes, so the card's height follows whichever is in view. */
409
+ private observe;
410
+ /** The pane in view, or the one arriving. */
411
+ private destination;
412
+ /** Content changed size: animate the card from its height now to the new one. Before a slide starts, the slide does it. */
413
+ private followHeight;
414
+ /** Animate the viewport's height. It stays pinned at `to` until the last change is done and the panes have settled. */
415
+ private resize;
416
+ private unpin;
417
+ /** Stop the track where it is on screen (mid-slide when the person turns back), and keep it there until the next slide starts from it. */
418
+ private hold;
419
+ /**
420
+ * The `auto` app limit: when the card would run past the bottom of the window,
421
+ * list fewer apps (never under two) behind `Show more`. It only shrinks, and
422
+ * starts again on a new screen or a resize. It measures the adapter's pane on
423
+ * its own, so it can run before the pane slides in. Returns whether it changed the limit.
424
+ */
425
+ private fit;
426
+ /**
427
+ * Go to the list or to an adapter's screen. The card keeps its height on screen
428
+ * while the arriving pane is drawn and fitted out of sight; then the track slides
429
+ * and the height animates together, and the pane that left is hidden.
430
+ */
431
+ private slide;
432
+ private beginSlide;
433
+ /** Hide the pane that left, so the card takes the height of the one that stayed, and move focus into it. */
434
+ private settle;
435
+ render(): TemplateResult;
436
+ private renderHeader;
437
+ private renderHome;
438
+ private renderFooter;
439
+ /** An icon tile. An adapter's row passes `adapter`, so a page can style one method's tile with `::part(tile-<id>)`. */
440
+ private renderTile;
441
+ private renderRow;
442
+ private renderDetail;
443
+ private renderPairing;
444
+ private renderForm;
445
+ /** Whether the fields an action needs have something in them. */
446
+ private filled;
447
+ private renderCatalog;
448
+ }
449
+
450
+ /**
451
+ * A sign-in button that opens the panel in a dialog, and shows who is signed
452
+ * in afterwards. Takes the same attributes as `<sigport-signin>`.
453
+ *
454
+ * @fires sigport-signin - After a sign-in.
455
+ * @fires sigport-signout - After a sign-out.
456
+ * @fires sigport-transition - Before the dialog opens or closes (and, from the panel inside, before each of its animations). Cancelable.
457
+ * @example
458
+ * ```html
459
+ * <sigport-button app-name="My app"></sigport-button>
460
+ * ```
461
+ */
462
+ declare class SigportButton extends LitElement {
463
+ static styles: lit.CSSResult[];
464
+ static properties: {
465
+ sigport: {
466
+ attribute: boolean;
467
+ };
468
+ strings: {
469
+ attribute: boolean;
470
+ };
471
+ theme: {
472
+ reflect: boolean;
473
+ };
474
+ include: {};
475
+ exclude: {};
476
+ appName: {
477
+ attribute: string;
478
+ };
479
+ snapId: {
480
+ attribute: string;
481
+ };
482
+ relays: {};
483
+ namespace: {};
484
+ hideApps: {
485
+ attribute: string;
486
+ converter: {
487
+ fromAttribute: (value: string | null) => HideApps;
488
+ toAttribute: (value: HideApps) => string | null;
489
+ };
490
+ };
491
+ hideChevrons: {
492
+ type: BooleanConstructor;
493
+ attribute: string;
494
+ };
495
+ sides: {};
496
+ pasteFirst: {
497
+ type: BooleanConstructor;
498
+ attribute: string;
499
+ };
500
+ appsLimit: {
501
+ attribute: string;
502
+ converter: {
503
+ fromAttribute: (value: string | null) => AppsLimit | undefined;
504
+ toAttribute: (value: AppsLimit | undefined) => string | null;
505
+ };
506
+ };
507
+ relayTimeout: {
508
+ type: NumberConstructor;
509
+ attribute: string;
510
+ };
511
+ suggestRelays: {
512
+ type: BooleanConstructor;
513
+ attribute: string;
514
+ };
515
+ relayMonitors: {
516
+ attribute: string;
517
+ };
518
+ monitorPubkeys: {
519
+ attribute: string;
520
+ };
521
+ monitorMaxAge: {
522
+ attribute: string;
523
+ };
524
+ appsMore: {
525
+ attribute: string;
526
+ };
527
+ manualPairing: {
528
+ type: BooleanConstructor;
529
+ attribute: string;
530
+ };
531
+ compact: {
532
+ type: BooleanConstructor;
533
+ };
534
+ hideFooter: {
535
+ type: BooleanConstructor;
536
+ attribute: string;
537
+ };
538
+ motion: {
539
+ reflect: boolean;
540
+ };
541
+ animations: {
542
+ attribute: boolean;
543
+ };
544
+ state: {
545
+ state: boolean;
546
+ };
547
+ };
548
+ sigport: Sigport | undefined;
549
+ strings: Partial<Strings>;
550
+ theme: 'light' | 'dark' | 'auto';
551
+ include: string | undefined;
552
+ exclude: string | undefined;
553
+ appName: string | undefined;
554
+ snapId: string | undefined;
555
+ relays: string | undefined;
556
+ namespace: string | undefined;
557
+ hideApps: HideApps;
558
+ hideChevrons: boolean;
559
+ sides: Sides;
560
+ pasteFirst: boolean;
561
+ appsLimit: AppsLimit | undefined;
562
+ relayTimeout: number | undefined;
563
+ suggestRelays: boolean;
564
+ relayMonitors: string | undefined;
565
+ monitorPubkeys: string | undefined;
566
+ monitorMaxAge: string | undefined;
567
+ appsMore: string | undefined;
568
+ manualPairing: boolean;
569
+ compact: boolean;
570
+ hideFooter: boolean;
571
+ /** `auto` (the default) animates unless the system asks for reduced motion; `none` never animates; `full` always does. Passed to the panel. */
572
+ motion: Motion;
573
+ /** Replace or turn off each kind of animation: `dialog` here, and `slide`, `resize`, `swap` in the panel. */
574
+ animations: Animations | undefined;
575
+ protected state: SigportState | undefined;
576
+ private unsubscribe;
577
+ private owned;
578
+ private attached;
579
+ constructor();
580
+ connectedCallback(): void;
581
+ disconnectedCallback(): void;
582
+ protected willUpdate(): void;
583
+ /** Bumped by every open and close, so a close that was overtaken by an open does not shut the dialog. */
584
+ private toggles;
585
+ /** Open the panel. */
586
+ open(): void;
587
+ /** Close the panel, once its closing animation is done. */
588
+ close(): Promise<void>;
589
+ /** Drop what a finished open or close animation left on the dialog and its backdrop. */
590
+ private settle;
591
+ render(): TemplateResult;
592
+ }
593
+
594
+ export { DEFAULT_STRINGS as D, SigportButton as c, SigportSignIn as d, appsHidden as h, builtInAnimations as i };
595
+ export type { Animations as A, HideApps as H, Motion as M, Sides as S, TransitionContext as T, Animator as a, SignInDetail as b, Strings as e, TransitionDetail as f, TransitionKind as g };
package/dist/auto.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export { c as SigportButton, d as SigportSignIn } from './auto-D3gnp8Iz.js';
2
+ import 'lit';
3
+ import '@sigport/core';
4
+ import 'applesauce-accounts';