@zoreal/oauth2-js 0.1.16 → 0.1.17

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.16";
308
+ declare const SDK_VERSION = "0.1.17";
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.16";
308
+ declare const SDK_VERSION = "0.1.17";
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.16";
17
+ var SDK_VERSION = "0.1.17";
18
18
  var SDK_NAME = "@zoreal/oauth2-js";
19
19
  var DEFAULT_ISSUER = "https://id.zoreal.com";
20
20
  var POLL_INTERVAL_MS = 2e3;
@@ -1395,10 +1395,15 @@ var CSS = `
1395
1395
  sides and lights two edges at once near the ends. So here the light is a
1396
1396
  dash on an SVG outline, which moves at one speed the whole way round
1397
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. */
1398
+ tint, its line width, its halo, its four second lap. The outline's length
1399
+ is measured by the component and set as --zrl-ring-len, and every dash
1400
+ and offset is a fraction of it, because pathLength does not scale dash
1401
+ values given from CSS. A stroke cannot fade along its length, so the tail
1402
+ is a stack of dashes sharing one head, each shorter and more opaque than
1403
+ the one under it, with opacities chosen so the stack composes to a
1404
+ straight fade from the head to nothing three tenths of the way back; the
1405
+ component sets each layer's length, offset and opacity. Shown only while
1406
+ busy. */
1402
1407
  .${PREFIX}-ring {
1403
1408
  position: relative;
1404
1409
  display: inline-flex;
@@ -1417,6 +1422,7 @@ var CSS = `
1417
1422
  }
1418
1423
  .${PREFIX}-ring[data-busy="true"] > .${PREFIX}-ring-svg { opacity: 1; }
1419
1424
  .${PREFIX}-ring-svg rect {
1425
+ --zrl-l: var(--zrl-ring-len, 600px);
1420
1426
  x: 2px;
1421
1427
  y: 2px;
1422
1428
  width: calc(100% - 4px);
@@ -1425,23 +1431,18 @@ var CSS = `
1425
1431
  stroke: var(--zrl-beam);
1426
1432
  stroke-width: var(--zrl-beam-line);
1427
1433
  stroke-linecap: round;
1434
+ stroke-dashoffset: var(--zrl-s, 0px);
1428
1435
  animation: ${PREFIX}-dash var(--zrl-beam-time) linear infinite;
1429
1436
  }
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); }
1437
+ .${PREFIX}-ring-head { stroke: var(--zrl-beam-head); }
1433
1438
  .${PREFIX}-ring-halo {
1434
- stroke-dasharray: 30 70;
1435
- stroke-dashoffset: 0;
1436
1439
  stroke-width: calc(var(--zrl-glow-core) * 2 + var(--zrl-beam-line));
1437
- opacity: calc(var(--zrl-glow-opacity) * 0.5);
1438
1440
  filter: blur(var(--zrl-glow-blur));
1439
1441
  }
1440
1442
  @keyframes ${PREFIX}-dash {
1441
- to { stroke-dashoffset: calc(var(--zrl-dash-start, 0) - 100); }
1443
+ from { stroke-dashoffset: var(--zrl-s, 0px); }
1444
+ to { stroke-dashoffset: calc(var(--zrl-s, 0px) - var(--zrl-l)); }
1442
1445
  }
1443
- .${PREFIX}-ring-body { --zrl-dash-start: -14; }
1444
- .${PREFIX}-ring-head { --zrl-dash-start: -25; }
1445
1446
  @media (prefers-reduced-motion: reduce) {
1446
1447
  .${PREFIX}-ring-svg rect { animation: none; stroke-dasharray: none; opacity: 0.45; }
1447
1448
  .${PREFIX}-ring-halo, .${PREFIX}-ring-head { display: none; }