@zoreal/oauth2-js 0.1.14 → 0.1.16

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/dist/index.d.cts CHANGED
@@ -305,7 +305,7 @@ declare function mountPairingModal(state: PairingState, options: PairingModalOpt
305
305
  * auth-code mode leaves it to the RP backend.
306
306
  */
307
307
  declare const WIRE_VERSION = 1;
308
- declare const SDK_VERSION = "0.1.14";
308
+ declare const SDK_VERSION = "0.1.16";
309
309
  declare const SDK_NAME = "@zoreal/oauth2-js";
310
310
  declare const DEFAULT_ISSUER = "https://id.zoreal.com";
311
311
  /** Pending TTL is short. Poll gently; over-polling cancels the request. */
package/dist/index.d.ts CHANGED
@@ -305,7 +305,7 @@ declare function mountPairingModal(state: PairingState, options: PairingModalOpt
305
305
  * auth-code mode leaves it to the RP backend.
306
306
  */
307
307
  declare const WIRE_VERSION = 1;
308
- declare const SDK_VERSION = "0.1.14";
308
+ declare const SDK_VERSION = "0.1.16";
309
309
  declare const SDK_NAME = "@zoreal/oauth2-js";
310
310
  declare const DEFAULT_ISSUER = "https://id.zoreal.com";
311
311
  /** Pending TTL is short. Poll gently; over-polling cancels the request. */
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ function unsafeClaims(idToken) {
14
14
 
15
15
  // src/wire.ts
16
16
  var WIRE_VERSION = 1;
17
- var SDK_VERSION = "0.1.14";
17
+ var SDK_VERSION = "0.1.16";
18
18
  var SDK_NAME = "@zoreal/oauth2-js";
19
19
  var DEFAULT_ISSUER = "https://id.zoreal.com";
20
20
  var POLL_INTERVAL_MS = 2e3;
@@ -1388,6 +1388,65 @@ var CSS = `
1388
1388
  }
1389
1389
 
1390
1390
  @keyframes ${PREFIX}-orbit { to { transform: rotate(360deg) } }
1391
+ /* THE BUSY RING. The light of the QR well, around any control that is
1392
+ waiting on the provider: the button on a phone between the tap and the
1393
+ hand-over to the app. The well's sweep is a cone from the centre, which is
1394
+ even on a square and useless on a wide button: it crawls along the long
1395
+ sides and lights two edges at once near the ends. So here the light is a
1396
+ dash on an SVG outline, which moves at one speed the whole way round
1397
+ whatever the shape, drawn with the well's tokens: its colour and head
1398
+ tint, its line width, its halo, its four second lap. pathLength makes the
1399
+ outline 100 units long, so every dash and offset is a percentage of the
1400
+ way round; the three layers share one head at 30 and differ in length
1401
+ and brightness, which is the comet's tail. Shown only while busy. */
1402
+ .${PREFIX}-ring {
1403
+ position: relative;
1404
+ display: inline-flex;
1405
+ vertical-align: middle;
1406
+ --zrl-beam-time: 4s;
1407
+ }
1408
+ .${PREFIX}-ring-svg {
1409
+ position: absolute;
1410
+ inset: -4px;
1411
+ width: calc(100% + 8px);
1412
+ height: calc(100% + 8px);
1413
+ overflow: visible;
1414
+ pointer-events: none;
1415
+ opacity: 0;
1416
+ transition: opacity 200ms ease-out;
1417
+ }
1418
+ .${PREFIX}-ring[data-busy="true"] > .${PREFIX}-ring-svg { opacity: 1; }
1419
+ .${PREFIX}-ring-svg rect {
1420
+ x: 2px;
1421
+ y: 2px;
1422
+ width: calc(100% - 4px);
1423
+ height: calc(100% - 4px);
1424
+ fill: none;
1425
+ stroke: var(--zrl-beam);
1426
+ stroke-width: var(--zrl-beam-line);
1427
+ stroke-linecap: round;
1428
+ animation: ${PREFIX}-dash var(--zrl-beam-time) linear infinite;
1429
+ }
1430
+ .${PREFIX}-ring-tail { stroke-dasharray: 30 70; stroke-dashoffset: 0; opacity: 0.35; }
1431
+ .${PREFIX}-ring-body { stroke-dasharray: 16 84; stroke-dashoffset: -14; opacity: 0.8; }
1432
+ .${PREFIX}-ring-head { stroke-dasharray: 5 95; stroke-dashoffset: -25; stroke: var(--zrl-beam-head); }
1433
+ .${PREFIX}-ring-halo {
1434
+ stroke-dasharray: 30 70;
1435
+ stroke-dashoffset: 0;
1436
+ stroke-width: calc(var(--zrl-glow-core) * 2 + var(--zrl-beam-line));
1437
+ opacity: calc(var(--zrl-glow-opacity) * 0.5);
1438
+ filter: blur(var(--zrl-glow-blur));
1439
+ }
1440
+ @keyframes ${PREFIX}-dash {
1441
+ to { stroke-dashoffset: calc(var(--zrl-dash-start, 0) - 100); }
1442
+ }
1443
+ .${PREFIX}-ring-body { --zrl-dash-start: -14; }
1444
+ .${PREFIX}-ring-head { --zrl-dash-start: -25; }
1445
+ @media (prefers-reduced-motion: reduce) {
1446
+ .${PREFIX}-ring-svg rect { animation: none; stroke-dasharray: none; opacity: 0.45; }
1447
+ .${PREFIX}-ring-halo, .${PREFIX}-ring-head { display: none; }
1448
+ }
1449
+
1391
1450
 
1392
1451
  @media (prefers-reduced-motion: reduce) {
1393
1452
  .${PREFIX}-scrim,