pdfjs-reader-core 0.5.8 → 0.5.10

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.js CHANGED
@@ -13140,8 +13140,8 @@ var ACCENT_SOFT = "rgba(176, 74, 26, 0.18)";
13140
13140
  var ACCENT_GLOW = "rgba(176, 74, 26, 0.35)";
13141
13141
  var SERIF = "'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', 'EB Garamond', 'Hoefler Text', Georgia, serif";
13142
13142
  var EASE_OUT_EXPO = [0.22, 1, 0.36, 1];
13143
- var PILL_FONT_CAPS = "clamp(10.5px, 0.55vw + 8.5px, 14.5px)";
13144
- var PILL_FONT_BODY = "clamp(12px, 0.6vw + 10px, 16.5px)";
13143
+ var PILL_FONT_CAPS = "clamp(9px, 0.55vw + 7px, 13px)";
13144
+ var PILL_FONT_BODY = "clamp(10.5px, 0.6vw + 8.5px, 15px)";
13145
13145
  var PILL_FONT_DISPLAY = "clamp(14px, 0.75vw + 12px, 19px)";
13146
13146
  var PILL_MAX_W_CAPS = "clamp(180px, 26vw, 380px)";
13147
13147
  var PILL_MAX_W_BODY = "clamp(200px, 28vw, 440px)";
@@ -13152,8 +13152,8 @@ function resolveMaxPillW(viewportWidthPx) {
13152
13152
  return clamp(0.26 * viewportWidthPx, 180, 380);
13153
13153
  }
13154
13154
  function resolveMaxPillH(viewportWidthPx) {
13155
- const font = clamp(55e-4 * viewportWidthPx + 8.5, 10.5, 14.5);
13156
- return clamp(font * 2.6, 28, 42);
13155
+ const font = clamp(55e-4 * viewportWidthPx + 7, 9, 13);
13156
+ return clamp(font * 2.6, 24, 36);
13157
13157
  }
13158
13158
  function clamp(v, lo, hi) {
13159
13159
  return Math.min(hi, Math.max(lo, v));
@@ -14408,10 +14408,15 @@ function StickyLabel({ screenAnchor, action }) {
14408
14408
  letterSpacing: 0.6,
14409
14409
  textTransform: "uppercase",
14410
14410
  fontWeight: 500,
14411
- whiteSpace: "nowrap",
14411
+ // Wrap instead of truncating with an ellipsis. Short labels stay
14412
+ // single-line; longer ones grow in height rather than losing
14413
+ // their tail. `overflowWrap: 'break-word'` respects min-content
14414
+ // sizing so a single overflowing word mid-breaks at a safe
14415
+ // boundary — unlike `anywhere`, which would collapse the pill
14416
+ // to 1-char min width and stack every letter on its own line.
14412
14417
  maxWidth: PILL_MAX_W_BODY,
14413
- overflow: "hidden",
14414
- textOverflow: "ellipsis",
14418
+ whiteSpace: "normal",
14419
+ overflowWrap: "break-word",
14415
14420
  // Warm two-layer shadow (matches GhostReference's palette).
14416
14421
  boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
14417
14422
  // Internal left accent rule — a 2px terracotta stripe.
@@ -14708,10 +14713,15 @@ function CalloutLabelPill({
14708
14713
  letterSpacing: 0.6,
14709
14714
  textTransform: "uppercase",
14710
14715
  fontWeight: 500,
14711
- whiteSpace: "nowrap",
14716
+ // Wrap instead of truncating. Short labels stay single-line;
14717
+ // longer ones grow taller rather than losing their tail to an
14718
+ // ellipsis. `overflowWrap: 'break-word'` respects min-content
14719
+ // sizing — `anywhere` here caused the pill to collapse to 1-char
14720
+ // width and stack each letter on its own line when the clamped
14721
+ // maxWidth was narrow.
14712
14722
  maxWidth: PILL_MAX_W_CAPS,
14713
- overflow: "hidden",
14714
- textOverflow: "ellipsis",
14723
+ whiteSpace: "normal",
14724
+ overflowWrap: "break-word",
14715
14725
  boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
14716
14726
  // Accent rule on the "inward" edge (the one closest to the arrow).
14717
14727
  backgroundImage: spec.accentGradient,