@uvalib/web-components 1.8.3 → 1.8.5

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.
@@ -2463,6 +2463,46 @@
2463
2463
  }
2464
2464
  ]
2465
2465
  },
2466
+ {
2467
+ "kind": "javascript-module",
2468
+ "path": "src/components/link.ts",
2469
+ "declarations": [
2470
+ {
2471
+ "kind": "function",
2472
+ "name": "siteLink",
2473
+ "return": {
2474
+ "type": {
2475
+ "text": "string"
2476
+ }
2477
+ },
2478
+ "parameters": [
2479
+ {
2480
+ "name": "root",
2481
+ "type": {
2482
+ "text": "string"
2483
+ }
2484
+ },
2485
+ {
2486
+ "name": "path",
2487
+ "type": {
2488
+ "text": "string"
2489
+ }
2490
+ }
2491
+ ],
2492
+ "description": "Join a site root and a path with exactly one \"/\"; paths with a URL scheme or starting with // pass through."
2493
+ }
2494
+ ],
2495
+ "exports": [
2496
+ {
2497
+ "kind": "js",
2498
+ "name": "siteLink",
2499
+ "declaration": {
2500
+ "name": "siteLink",
2501
+ "module": "src/components/link.ts"
2502
+ }
2503
+ }
2504
+ ]
2505
+ },
2466
2506
  {
2467
2507
  "kind": "javascript-module",
2468
2508
  "path": "src/data/fetch-json.ts",
@@ -2688,46 +2728,6 @@
2688
2728
  }
2689
2729
  ]
2690
2730
  },
2691
- {
2692
- "kind": "javascript-module",
2693
- "path": "src/components/link.ts",
2694
- "declarations": [
2695
- {
2696
- "kind": "function",
2697
- "name": "siteLink",
2698
- "return": {
2699
- "type": {
2700
- "text": "string"
2701
- }
2702
- },
2703
- "parameters": [
2704
- {
2705
- "name": "root",
2706
- "type": {
2707
- "text": "string"
2708
- }
2709
- },
2710
- {
2711
- "name": "path",
2712
- "type": {
2713
- "text": "string"
2714
- }
2715
- }
2716
- ],
2717
- "description": "Join a site root and a path with exactly one \"/\"; paths with a URL scheme or starting with // pass through."
2718
- }
2719
- ],
2720
- "exports": [
2721
- {
2722
- "kind": "js",
2723
- "name": "siteLink",
2724
- "declaration": {
2725
- "name": "siteLink",
2726
- "module": "src/components/link.ts"
2727
- }
2728
- }
2729
- ]
2730
- },
2731
2731
  {
2732
2732
  "kind": "javascript-module",
2733
2733
  "path": "src/styles/accessible.ts",
@@ -2764,7 +2764,7 @@
2764
2764
  {
2765
2765
  "kind": "variable",
2766
2766
  "name": "base",
2767
- "default": "css` *, *::before, *::after { box-sizing: border-box; } html, body { font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); } html { font-size: var(--uva-font-size-base, 17px); } body { margin: 0; line-height: 1.5; min-height: 100vh; color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b)); background-color: var(--uva-color-surface); } site-page:not(:defined) { display: flow-root; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-breadcrumbs:not(:defined), uvalib-card:not(:defined), uvalib-card-grid:not(:defined), uvalib-pager:not(:defined), uvalib-contents:not(:defined), uvalib-metadata:not(:defined), uvalib-tag-list:not(:defined) { display: block; line-height: 1.5; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw children kept on one line so they cannot make it taller. */ uvalib-chip-group:not(:defined) { display: block; min-height: 44px; max-width: 100%; overflow: hidden; white-space: nowrap; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-chip-group[scroll]:not(:defined) { min-height: calc(44px + 0.75rem); } /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */ uvalib-chip-group[description]:not(:defined) { padding-block-end: 1.5625rem; } /* Its text is drawn from attributes: hold one line until it upgrades. */ uvalib-results-count:not(:defined) { display: block; min-block-size: 1.5em; } uvalib-tag-list:not(:defined)[hidden], uvalib-results-count:not(:defined)[hidden] { display: none; } /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7). More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */ :where( site-page, uvalib-breadcrumbs, uvalib-card, uvalib-card-grid, uvalib-pager, uvalib-contents, uvalib-metadata, uvalib-chip-group, uvalib-tabs, uvalib-combobox, uvalib-image-regions, uvalib-map, uvalib-filter-drawer ):not(:defined)[hidden], :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] { display: none; } /* Tabs stay readable before the script runs: a block, one panel, and a gap the size of the tab row (44px) plus its 1rem margin, so the first panel does not jump when the element upgrades. Later data-tab panels stay hidden. */ uvalib-tabs:not(:defined) { display: block; padding-block-start: calc(44px + 1rem); } uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] { display: none; } /* A combobox: its label (from the attribute) and one 44px field (plus a one-line description) held, so nothing moves when it upgrades. A fallback <input list> child works meanwhile; the other children (options, a datalist) stay out of sight. */ uvalib-combobox:not(:defined) { display: block; min-block-size: calc(1.5em + 0.25rem + 44px); line-height: 1.5; } uvalib-combobox[description]:not(:defined) { min-block-size: calc(3em + 0.5rem + 44px); } uvalib-combobox:not(:defined)::before { content: attr(label); display: block; margin-block-end: 0.25rem; font-weight: 600; } uvalib-combobox:not(:defined) > :not(input) { display: none; } uvalib-combobox:not(:defined) > input { display: block; box-sizing: border-box; inline-size: 100%; min-block-size: 44px; font: inherit; line-height: 1.2; } /* Image regions: the image at its own width and the list beside it (or under it), the layout the element keeps once it upgrades, so the image does not move. */ uvalib-image-regions:not(:defined) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; } uvalib-image-regions:not(:defined) > :is(img, picture) { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; } uvalib-image-regions:not(:defined) > :is(ol, ul) { flex: 1 1 14rem; min-width: 0; } /* A map: its key instructions (the same text it shows) and the map's height held above the child list, so the list does not move when the map is drawn over the page's Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */ uvalib-map:not(:defined) { display: block; } uvalib-map:not(:defined)::before { content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.'; display: block; padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw)))); font-size: 0.875rem; line-height: 1.5; color: var(--uva-color-text-muted, #4b5563); } /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px \"Search and filters\" button shows, so hold that height and keep the form and filters out of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the same two rules in a media query of that width (see the README). Low specificity, so the [hidden] rule above still wins. */ @media (max-width: 48rem) { :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) { display: block; min-block-size: 44px; } :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * { display: none; } } /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme prints light (the role tokens resolve to their light values), and the content's links are black and underlined, so they are told apart without colour. Content is <main> in light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is shown, apart from the light scheme. */ @media print { :root[data-uva-color-scheme]:has(site-page) { color-scheme: light; --uva-color-scheme: light; } /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */ site-page:not([print-chrome]) > [slot='breadcrumbs'] { display: none; } site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link, site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) { color: #000; text-decoration: underline; } } @keyframes uvalib-site-page-reveal { to { visibility: visible; } } `"
2767
+ "default": "css` *, *::before, *::after { box-sizing: border-box; } html, body { font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); } html { font-size: var(--uva-font-size-base, 17px); } body { margin: 0; line-height: 1.5; min-height: 100vh; color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b)); background-color: var(--uva-color-surface); } site-page:not(:defined) { display: flow-root; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-breadcrumbs:not(:defined), uvalib-card:not(:defined), uvalib-card-grid:not(:defined), uvalib-pager:not(:defined), uvalib-contents:not(:defined), uvalib-metadata:not(:defined), uvalib-tag-list:not(:defined) { display: block; line-height: 1.5; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw children kept on one line so they cannot make it taller. */ uvalib-chip-group:not(:defined) { display: block; min-height: 44px; max-width: 100%; overflow: hidden; white-space: nowrap; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-chip-group[scroll]:not(:defined) { min-height: calc(44px + 0.75rem); } /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */ uvalib-chip-group[description]:not(:defined) { padding-block-end: 1.5625rem; } /* Its text is drawn from attributes: hold one line until it upgrades. */ uvalib-results-count:not(:defined) { display: block; min-block-size: 1.5em; } uvalib-tag-list:not(:defined)[hidden], uvalib-results-count:not(:defined)[hidden] { display: none; } /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7). More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */ :where( site-page, uvalib-breadcrumbs, uvalib-card, uvalib-card-grid, uvalib-pager, uvalib-contents, uvalib-metadata, uvalib-chip-group, uvalib-tabs, uvalib-combobox, uvalib-image-regions, uvalib-map, uvalib-filter-drawer ):not(:defined)[hidden], :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] { display: none; } /* A record's details before <uvalib-metadata> upgrades (issue #34): the rows already laid out as it lays them out (label beside value from 36rem of its own width, stacked below; 8px above and below each row, a 1px rule between rows; lists without bullets, 4px apart), so the page does not move when it upgrades. Rows the attributes add (creator, rights, citation) are not in the page's <dl> and cannot be held. */ uvalib-metadata:not(:defined) { container-type: inline-size; font-size: 1rem; } uvalib-metadata:not(:defined) > dl { display: grid; grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr); column-gap: 1.5rem; margin: 0; } uvalib-metadata:not(:defined) > dl > dt { grid-column: 1; margin: 0; padding-block: 0.5rem; font-weight: 700; } uvalib-metadata:not(:defined) > dl > dd { grid-column: 2; margin: 0; padding-block: 0.5rem; } uvalib-metadata:not(:defined) > dl > dt:not(:first-child), uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd { border-block-start: 1px solid transparent; } uvalib-metadata:not(:defined) > dl > dd > :is(ul, ol) { margin: 0; padding: 0; list-style: none; } uvalib-metadata:not(:defined) > dl > dd li + li { margin-block-start: 0.25rem; } @container (width < 36rem) { uvalib-metadata:not(:defined) > dl { grid-template-columns: minmax(0, 1fr); } uvalib-metadata:not(:defined) > dl > :is(dt, dd) { grid-column: 1; } uvalib-metadata:not(:defined) > dl > dt { padding-block-end: 0; } uvalib-metadata:not(:defined) > dl > dd { padding-block-start: 0; } uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd { border-block-start: 0; } } ${metadataLimits} /* Tabs stay readable before the script runs: a block, one panel, and a gap the size of the tab row (44px) plus its 1rem margin, so the first panel does not jump when the element upgrades. Later data-tab panels stay hidden. */ uvalib-tabs:not(:defined) { display: block; padding-block-start: calc(44px + 1rem); } uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] { display: none; } /* A combobox: its label (from the attribute) and one 44px field (plus a one-line description) held, so nothing moves when it upgrades. A fallback <input list> child works meanwhile; the other children (options, a datalist) stay out of sight. */ uvalib-combobox:not(:defined) { display: block; min-block-size: calc(1.5em + 0.25rem + 44px); line-height: 1.5; } uvalib-combobox[description]:not(:defined) { min-block-size: calc(3em + 0.5rem + 44px); } uvalib-combobox:not(:defined)::before { content: attr(label); display: block; margin-block-end: 0.25rem; font-weight: 600; } uvalib-combobox:not(:defined) > :not(input) { display: none; } uvalib-combobox:not(:defined) > input { display: block; box-sizing: border-box; inline-size: 100%; min-block-size: 44px; font: inherit; line-height: 1.2; } /* Image regions: the image at its own width and the list beside it (or under it), the layout the element keeps once it upgrades, so the image does not move. */ uvalib-image-regions:not(:defined) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; } uvalib-image-regions:not(:defined) > :is(img, picture) { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; } uvalib-image-regions:not(:defined) > :is(ol, ul) { flex: 1 1 14rem; min-width: 0; } /* A map: its key instructions (the same text it shows) and the map's height held above the child list, so the list does not move when the map is drawn over the page's Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */ uvalib-map:not(:defined) { display: block; } uvalib-map:not(:defined)::before { content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.'; display: block; padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw)))); font-size: 0.875rem; line-height: 1.5; color: var(--uva-color-text-muted, #4b5563); } /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px \"Search and filters\" button shows, so hold that height and keep the form and filters out of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the same two rules in a media query of that width (see the README). Low specificity, so the [hidden] rule above still wins. */ @media (max-width: 48rem) { :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) { display: block; min-block-size: 44px; } :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * { display: none; } } /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme prints light (the role tokens resolve to their light values), and the content's links are black and underlined, so they are told apart without colour. Content is <main> in light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is shown, apart from the light scheme. */ @media print { :root[data-uva-color-scheme]:has(site-page) { color-scheme: light; --uva-color-scheme: light; } /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */ site-page:not([print-chrome]) > [slot='breadcrumbs'] { display: none; } site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link, site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) { color: #000; text-decoration: underline; } } @keyframes uvalib-site-page-reveal { to { visibility: visible; } } `"
2768
2768
  }
2769
2769
  ],
2770
2770
  "exports": [
@@ -2853,6 +2853,24 @@
2853
2853
  "name": "fontFallback",
2854
2854
  "default": "css` @font-face { font-family: 'UVA Franklin Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'); font-weight: 100 450; font-style: normal; size-adjust: 94.52%; ascent-override: 100.93%; descent-override: 26.56%; line-gap-override: 0%; } @font-face { font-family: 'UVA Franklin Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'); font-weight: 451 599; font-style: normal; size-adjust: 95.99%; ascent-override: 99.18%; descent-override: 26.04%; line-gap-override: 0%; } @font-face { font-family: 'UVA Franklin Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'); font-weight: 600 1000; font-style: normal; size-adjust: 91.32%; ascent-override: 104.03%; descent-override: 27.38%; line-gap-override: 0%; } @font-face { font-family: 'UVA Franklin Fallback'; src: local('Arial Italic'), local('Arial-ItalicMT'), local('Liberation Sans Italic'), local('LiberationSans-Italic'); font-weight: 100 599; font-style: italic; size-adjust: 95.06%; ascent-override: 101.09%; descent-override: 26.4%; line-gap-override: 0%; } `",
2855
2855
  "description": "A metric-matched fallback for Franklin Gothic URW (issue #32). The Adobe Fonts kit uses\n`font-display: auto`, so on a slow connection text is drawn in the next font of\n`--uva-font-family` and redrawn when the kit's files arrive. Plain Arial is wider than\nFranklin Gothic (by 6% regular, 9% bold), so paragraphs rewrapped and the page moved\n(layout shift). \"UVA Franklin Fallback\" is the system's Arial scaled to Franklin Gothic's\naverage widths, with its ascent and descent, for each face the kit serves (400, 500, 700 and\n400 italic; a 600 rule gets the 700 face, as the kit's own matching does). Measured against\nthe kit in Chromium: the fallback wraps a paragraph like Franklin Gothic in about 99% of\nwidths from 260 to 700px at 16 to 20px, against 55 to 82% for plain Arial.\n\n`size-adjust` scales Arial's glyphs; the overrides are Franklin Gothic's ascent (0.95 em) and\ndescent (0.25 em) divided by that scale, with no line gap, so a line is as tall in both.\nLiberation Sans (Linux) has Arial's metrics. Where neither is installed (Android has Roboto),\nthe face is skipped and the next font in the stack is used, as before."
2856
+ },
2857
+ {
2858
+ "kind": "function",
2859
+ "name": "loadFontFallback",
2860
+ "return": {
2861
+ "type": {
2862
+ "text": "void"
2863
+ }
2864
+ },
2865
+ "parameters": [
2866
+ {
2867
+ "name": "doc",
2868
+ "type": {
2869
+ "text": "Document"
2870
+ }
2871
+ }
2872
+ ],
2873
+ "description": "Load every fallback face now (issue #35). A face from a local() font loads only when text\nfirst needs it, so the first italic (or medium) text could be drawn in unscaled Arial and\nredrawn a moment later. Called once the faces are installed; failures (no Arial or\nLiberation Sans on the system) are left to the next font in the stack, as before."
2856
2874
  }
2857
2875
  ],
2858
2876
  "exports": [
@@ -2863,6 +2881,14 @@
2863
2881
  "name": "fontFallback",
2864
2882
  "module": "src/styles/font-fallback.ts"
2865
2883
  }
2884
+ },
2885
+ {
2886
+ "kind": "js",
2887
+ "name": "loadFontFallback",
2888
+ "declaration": {
2889
+ "name": "loadFontFallback",
2890
+ "module": "src/styles/font-fallback.ts"
2891
+ }
2866
2892
  }
2867
2893
  ]
2868
2894
  },
@@ -16455,404 +16481,182 @@
16455
16481
  },
16456
16482
  {
16457
16483
  "kind": "javascript-module",
16458
- "path": "src/components/uvalib-analytics/UvalibAnalytics.ts",
16484
+ "path": "src/components/uvalib-back-to-top/UvalibBackToTop.ts",
16459
16485
  "declarations": [
16460
16486
  {
16461
16487
  "kind": "class",
16462
- "description": "`<site-analytics>` under its original name, for markup such as Drupal's\n`<uvalib-analytics matomoid=\"10\">`: the same element, attributes and events. A\nconstructor can be registered only once, hence the subclass.",
16463
- "name": "UvalibAnalytics",
16464
- "superclass": {
16465
- "name": "SiteAnalytics",
16466
- "module": "/src/components/site-analytics/SiteAnalytics.js"
16467
- },
16468
- "tagName": "uvalib-analytics",
16469
- "customElement": true,
16470
- "attributes": [
16488
+ "description": "A “Back to top” button for long pages: minutes, finding aids, transcriptions, long result\nlists.\n\nIt stays hidden (`visibility: hidden`, so it is neither a tab stop nor in the accessibility\ntree) until the top `offset` pixels of the page (default 400) have scrolled out of view,\nwatched with an IntersectionObserver on a small sentinel at the top of the page, never a\nscroll listener. If it has focus as it hides, focus moves to the target. Activating it\nscrolls to the top (smoothly unless the visitor prefers reduced motion) and moves focus to\nthe page's `<h1>` (the first in `<main>`, else the first anywhere, else `#top`), or to\n`target` (a selector), adding `tabindex=\"-1\"` when it is not focusable, so keyboard and\nscreen reader users land at the top too.\n\nThe button is fixed in the bottom corner (end side), inside the safe-area insets. The\nelement itself is an empty block 4.75rem tall: put it last in the page's main content and\nthat is the space the button needs, so the last lines can always scroll clear of it. When\nthat space comes into view the button sits in it instead of floating, so it never covers\nthe footer either. It is hidden in print.",
16489
+ "name": "UvalibBackToTop",
16490
+ "cssProperties": [
16471
16491
  {
16472
- "name": "matomoURL",
16473
- "type": {
16474
- "text": "string"
16475
- },
16476
- "default": "'https://analytics.lib.virginia.edu/'",
16477
- "description": "The Matomo server, ending in `/` (attribute `matomourl`).",
16478
- "fieldName": "matomoURL",
16479
- "inheritedFrom": {
16480
- "name": "SiteAnalytics",
16481
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16482
- }
16492
+ "description": "The height the element keeps for the button at the end of the content.",
16493
+ "name": "--uvalib-back-to-top-space",
16494
+ "default": "4.75rem"
16483
16495
  },
16484
16496
  {
16485
- "name": "matomoId",
16486
- "type": {
16487
- "text": "number | undefined"
16488
- },
16489
- "description": "The Matomo site id (attribute `matomoid`). Default: the site whose URL the page is under.",
16490
- "fieldName": "matomoId",
16491
- "inheritedFrom": {
16492
- "name": "SiteAnalytics",
16493
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16494
- }
16497
+ "description": "Dark-mode role token: button background (else #fff).",
16498
+ "name": "--uva-color-surface-raised"
16495
16499
  },
16496
16500
  {
16497
- "name": "spa",
16501
+ "description": "Dark-mode role token: button border and text (else `--uva-blue-alt`, #007bac).",
16502
+ "name": "--uva-color-button-bg"
16503
+ },
16504
+ {
16505
+ "description": "Dark-mode role token: hovered button (else `--uva-blue-alt-A`, #005679).",
16506
+ "name": "--uva-color-button-hover-bg"
16507
+ },
16508
+ {
16509
+ "description": "Dark-mode role token: focus ring (else `--uva-brand-orange`).",
16510
+ "name": "--uva-color-focus"
16511
+ },
16512
+ {
16513
+ "description": "Dark-mode role token: the floating button's shadow.",
16514
+ "name": "--uva-color-shadow"
16515
+ }
16516
+ ],
16517
+ "cssParts": [
16518
+ {
16519
+ "description": "The button.",
16520
+ "name": "button"
16521
+ }
16522
+ ],
16523
+ "members": [
16524
+ {
16525
+ "kind": "field",
16526
+ "name": "label",
16527
+ "default": "'Back to top'",
16528
+ "description": "The button's text.",
16529
+ "attribute": "label",
16498
16530
  "type": {
16499
- "text": "boolean | 'auto'"
16500
- },
16501
- "default": "false",
16502
- "description": "A single-page app. `spa` (no value): it records its own page views\n(`uvalib-analytics-pageview`), none on load. `spa=\"auto\"`: a page view on load and one per\nsame-document route change (hash change, Back and Forward, `history.pushState`), once the\ntitle has settled, never twice in a row for the same URL, with the previous URL as the\nreferrer. Either way Matomo's link tracking is off.",
16503
- "fieldName": "spa",
16504
- "inheritedFrom": {
16505
- "name": "SiteAnalytics",
16506
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16531
+ "text": "string"
16507
16532
  }
16508
16533
  },
16509
16534
  {
16510
- "name": "variables",
16535
+ "kind": "field",
16536
+ "name": "offset",
16537
+ "default": "400",
16538
+ "description": "How many pixels at the top of the page must scroll out of view before the button shows.",
16539
+ "attribute": "offset",
16511
16540
  "type": {
16512
- "text": "Record<string, unknown> | null"
16513
- },
16514
- "default": "null",
16515
- "description": "Custom dimensions, a JSON object of `{ id: value }`, set before the page view.",
16516
- "fieldName": "variables",
16517
- "inheritedFrom": {
16518
- "name": "SiteAnalytics",
16519
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16541
+ "text": "number"
16520
16542
  }
16521
16543
  },
16522
16544
  {
16523
- "name": "downloads",
16545
+ "kind": "field",
16546
+ "name": "target",
16524
16547
  "type": {
16525
- "text": "string | undefined"
16548
+ "text": "string"
16526
16549
  },
16527
- "description": "`event`: count downloads without their URLs. Matomo's link tracking is left off; a left or\nmiddle click on a link to a file (the `download` attribute, or a download file type)\nsends the event `['download', '<extension>']` (no URL, no file name), and a click on a\nlink to another site is still sent as an outlink (`trackLink`), as Matomo's link tracking\nwould. Off by default. Read when Matomo is set up; no effect with a Matomo snippet already\non the page.",
16528
- "fieldName": "downloads",
16529
- "inheritedFrom": {
16530
- "name": "SiteAnalytics",
16531
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16532
- }
16550
+ "default": "''",
16551
+ "description": "A selector for where focus goes (default: the page's `<h1>`, else `#top`).",
16552
+ "attribute": "target"
16533
16553
  },
16534
16554
  {
16535
- "name": "no-shadow-dom",
16555
+ "kind": "field",
16556
+ "name": "shown",
16536
16557
  "type": {
16537
16558
  "text": "boolean"
16538
16559
  },
16560
+ "privacy": "private",
16539
16561
  "default": "false",
16540
- "fieldName": "noShadowDom",
16541
- "inheritedFrom": {
16542
- "name": "UvalibElement",
16543
- "module": "src/base/UvalibElement.ts"
16544
- }
16562
+ "description": "Whether the top of the page has scrolled out of view."
16545
16563
  },
16546
16564
  {
16547
- "name": "no-style",
16565
+ "kind": "field",
16566
+ "name": "docked",
16548
16567
  "type": {
16549
16568
  "text": "boolean"
16550
16569
  },
16570
+ "privacy": "private",
16551
16571
  "default": "false",
16552
- "fieldName": "noStyle",
16553
- "inheritedFrom": {
16554
- "name": "UvalibElement",
16555
- "module": "src/base/UvalibElement.ts"
16556
- }
16557
- }
16558
- ],
16559
- "members": [
16572
+ "description": "Whether the element's own space is fully in view (the button sits in it)."
16573
+ },
16560
16574
  {
16561
16575
  "kind": "field",
16562
- "name": "matomoURL",
16576
+ "name": "sentinel",
16563
16577
  "type": {
16564
- "text": "string"
16578
+ "text": "HTMLDivElement | undefined"
16565
16579
  },
16566
- "default": "'https://analytics.lib.virginia.edu/'",
16567
- "description": "The Matomo server, ending in `/` (attribute `matomourl`).",
16568
- "attribute": "matomoURL",
16569
- "inheritedFrom": {
16570
- "name": "SiteAnalytics",
16571
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16572
- }
16580
+ "privacy": "private"
16573
16581
  },
16574
16582
  {
16575
16583
  "kind": "field",
16576
- "name": "matomoId",
16584
+ "name": "topObserver",
16577
16585
  "type": {
16578
- "text": "number | undefined"
16586
+ "text": "IntersectionObserver | undefined"
16579
16587
  },
16580
- "description": "The Matomo site id (attribute `matomoid`). Default: the site whose URL the page is under.",
16581
- "attribute": "matomoId",
16582
- "inheritedFrom": {
16583
- "name": "SiteAnalytics",
16584
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16585
- }
16586
- },
16587
- {
16588
- "kind": "field",
16589
- "name": "spa",
16590
- "type": {
16591
- "text": "boolean | 'auto'"
16592
- },
16593
- "default": "false",
16594
- "description": "A single-page app. `spa` (no value): it records its own page views\n(`uvalib-analytics-pageview`), none on load. `spa=\"auto\"`: a page view on load and one per\nsame-document route change (hash change, Back and Forward, `history.pushState`), once the\ntitle has settled, never twice in a row for the same URL, with the previous URL as the\nreferrer. Either way Matomo's link tracking is off.",
16595
- "attribute": "spa",
16596
- "inheritedFrom": {
16597
- "name": "SiteAnalytics",
16598
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16599
- }
16600
- },
16601
- {
16602
- "kind": "field",
16603
- "name": "variables",
16604
- "type": {
16605
- "text": "Record<string, unknown> | null"
16606
- },
16607
- "default": "null",
16608
- "description": "Custom dimensions, a JSON object of `{ id: value }`, set before the page view.",
16609
- "attribute": "variables",
16610
- "inheritedFrom": {
16611
- "name": "SiteAnalytics",
16612
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16613
- }
16588
+ "privacy": "private"
16614
16589
  },
16615
16590
  {
16616
16591
  "kind": "field",
16617
- "name": "downloads",
16592
+ "name": "dockObserver",
16618
16593
  "type": {
16619
- "text": "string | undefined"
16594
+ "text": "IntersectionObserver | undefined"
16620
16595
  },
16621
- "description": "`event`: count downloads without their URLs. Matomo's link tracking is left off; a left or\nmiddle click on a link to a file (the `download` attribute, or a download file type)\nsends the event `['download', '<extension>']` (no URL, no file name), and a click on a\nlink to another site is still sent as an outlink (`trackLink`), as Matomo's link tracking\nwould. Off by default. Read when Matomo is set up; no effect with a Matomo snippet already\non the page.",
16622
- "attribute": "downloads",
16623
- "inheritedFrom": {
16624
- "name": "SiteAnalytics",
16625
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16626
- }
16596
+ "privacy": "private"
16627
16597
  },
16628
16598
  {
16629
16599
  "kind": "field",
16630
- "name": "tracker",
16600
+ "name": "button",
16631
16601
  "type": {
16632
- "text": "Tracker"
16602
+ "text": "HTMLButtonElement | null"
16633
16603
  },
16634
16604
  "privacy": "private",
16635
- "readonly": true,
16636
- "default": "{ off: false }",
16637
- "inheritedFrom": {
16638
- "name": "SiteAnalytics",
16639
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16640
- }
16641
- },
16642
- {
16643
- "kind": "field",
16644
- "name": "onEvent",
16645
- "privacy": "private",
16646
- "readonly": true,
16647
- "inheritedFrom": {
16648
- "name": "SiteAnalytics",
16649
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16650
- }
16651
- },
16652
- {
16653
- "kind": "field",
16654
- "name": "onClick",
16655
- "privacy": "private",
16656
- "readonly": true,
16657
- "description": "A click (or a middle click): `data-uvalib-track`, and with `downloads=\"event\"` links.",
16658
- "inheritedFrom": {
16659
- "name": "SiteAnalytics",
16660
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16661
- }
16662
- },
16663
- {
16664
- "kind": "method",
16665
- "name": "trackLink",
16666
- "privacy": "private",
16667
- "parameters": [
16668
- {
16669
- "name": "e",
16670
- "type": {
16671
- "text": "MouseEvent"
16672
- }
16673
- }
16674
- ],
16675
- "description": "`downloads=\"event\"`: a click on a link to a file sends `['download', '<extension>']`; with\n`outlinks`, one on a light DOM link to another site sends Matomo's `trackLink` (the URL,\nas Matomo's own link tracking would).",
16676
- "inheritedFrom": {
16677
- "name": "SiteAnalytics",
16678
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16679
- }
16680
- },
16681
- {
16682
- "kind": "method",
16683
- "name": "trackTagged",
16684
- "privacy": "private",
16685
- "parameters": [
16686
- {
16687
- "name": "e",
16688
- "type": {
16689
- "text": "Event"
16690
- }
16691
- }
16692
- ],
16693
- "description": "`data-uvalib-track`: the nearest tagged element on the click's path sends its event.",
16694
- "inheritedFrom": {
16695
- "name": "SiteAnalytics",
16696
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16697
- }
16605
+ "readonly": true
16698
16606
  },
16699
16607
  {
16700
16608
  "kind": "field",
16701
- "name": "routeFrame",
16609
+ "name": "px",
16702
16610
  "type": {
16703
16611
  "text": "number"
16704
16612
  },
16705
16613
  "privacy": "private",
16706
- "default": "0",
16707
- "description": "`spa=\"auto\"`: a route change records a page view on the next frame (the new title).",
16708
- "inheritedFrom": {
16709
- "name": "SiteAnalytics",
16710
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16711
- }
16712
- },
16713
- {
16714
- "kind": "field",
16715
- "name": "onRoute",
16716
- "privacy": "private",
16717
- "readonly": true,
16718
- "inheritedFrom": {
16719
- "name": "SiteAnalytics",
16720
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16721
- }
16722
- },
16723
- {
16724
- "kind": "field",
16725
- "name": "onNavigation",
16726
- "privacy": "private",
16727
- "readonly": true,
16728
- "description": "The Navigation API also reports replaceState and reloads: neither is a new page.",
16729
- "inheritedFrom": {
16730
- "name": "SiteAnalytics",
16731
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16732
- }
16733
- },
16734
- {
16735
- "kind": "method",
16736
- "name": "autoPageView",
16737
- "privacy": "private",
16738
- "inheritedFrom": {
16739
- "name": "SiteAnalytics",
16740
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16741
- }
16742
- },
16743
- {
16744
- "kind": "method",
16745
- "name": "listenRoutes",
16746
- "privacy": "private",
16747
- "parameters": [
16748
- {
16749
- "name": "on",
16750
- "type": {
16751
- "text": "boolean"
16752
- }
16753
- }
16754
- ],
16755
- "description": "Listen for route changes (`on`), or stop.",
16756
- "inheritedFrom": {
16757
- "name": "SiteAnalytics",
16758
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16759
- }
16614
+ "readonly": true
16760
16615
  },
16761
16616
  {
16762
16617
  "kind": "method",
16763
- "name": "forwards",
16618
+ "name": "setShown",
16764
16619
  "privacy": "private",
16765
16620
  "return": {
16766
16621
  "type": {
16767
- "text": "boolean"
16622
+ "text": "void"
16768
16623
  }
16769
16624
  },
16770
- "description": "Whether this element is the page's one forwarder: the first connected one with a site id.",
16771
- "inheritedFrom": {
16772
- "name": "SiteAnalytics",
16773
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16774
- }
16775
- },
16776
- {
16777
- "kind": "field",
16778
- "name": "paq",
16779
- "type": {
16780
- "text": "unknown[][]"
16781
- },
16782
- "privacy": "private",
16783
- "readonly": true,
16784
- "inheritedFrom": {
16785
- "name": "SiteAnalytics",
16786
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16787
- }
16788
- },
16789
- {
16790
- "kind": "method",
16791
- "name": "logPageView",
16792
- "privacy": "private",
16793
16625
  "parameters": [
16794
16626
  {
16795
- "name": "d",
16627
+ "name": "shown",
16796
16628
  "type": {
16797
- "text": "PageViewDetail"
16629
+ "text": "boolean"
16798
16630
  }
16799
16631
  }
16800
- ],
16801
- "inheritedFrom": {
16802
- "name": "SiteAnalytics",
16803
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16804
- }
16632
+ ]
16805
16633
  },
16806
16634
  {
16807
16635
  "kind": "method",
16808
- "name": "logSearch",
16636
+ "name": "findTarget",
16809
16637
  "privacy": "private",
16810
- "parameters": [
16811
- {
16812
- "name": "d",
16813
- "type": {
16814
- "text": "SearchDetail"
16815
- }
16638
+ "return": {
16639
+ "type": {
16640
+ "text": "HTMLElement | null"
16816
16641
  }
16817
- ],
16818
- "inheritedFrom": {
16819
- "name": "SiteAnalytics",
16820
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16821
- }
16642
+ },
16643
+ "description": "Where focus goes: `target`, else the page's `<h1>`, else `#top`."
16822
16644
  },
16823
16645
  {
16824
16646
  "kind": "method",
16825
- "name": "logContent",
16647
+ "name": "focusTarget",
16826
16648
  "privacy": "private",
16827
- "parameters": [
16828
- {
16829
- "name": "d",
16830
- "type": {
16831
- "text": "Partial<AnalyticsContent>"
16832
- }
16649
+ "return": {
16650
+ "type": {
16651
+ "text": "void"
16833
16652
  }
16834
- ],
16835
- "inheritedFrom": {
16836
- "name": "SiteAnalytics",
16837
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16838
16653
  }
16839
16654
  },
16840
16655
  {
16841
- "kind": "method",
16842
- "name": "logEvent",
16656
+ "kind": "field",
16657
+ "name": "onClick",
16843
16658
  "privacy": "private",
16844
- "parameters": [
16845
- {
16846
- "name": "d",
16847
- "type": {
16848
- "text": "EventDetail"
16849
- }
16850
- }
16851
- ],
16852
- "inheritedFrom": {
16853
- "name": "SiteAnalytics",
16854
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16855
- }
16659
+ "readonly": true
16856
16660
  },
16857
16661
  {
16858
16662
  "kind": "field",
@@ -16986,350 +16790,482 @@
16986
16790
  ],
16987
16791
  "events": [
16988
16792
  {
16989
- "description": "Listened for on `document` (not fired): records a page view; `detail` is `{ customTitle?, referrer? }` (default: the document's title and referrer; a referrer without `http` is taken as a path on this origin).",
16990
- "name": "uvalib-analytics-pageview",
16991
- "inheritedFrom": {
16992
- "name": "SiteAnalytics",
16993
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16994
- }
16995
- },
16996
- {
16997
- "description": "Listened for on `document` (not fired): a Matomo site search; `detail` is `{ searchQuery, searchCategory?, resultCount? }`.",
16998
- "name": "uvalib-analytics-search",
16999
- "inheritedFrom": {
17000
- "name": "SiteAnalytics",
17001
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17002
- }
17003
- },
17004
- {
17005
- "description": "Listened for on `document` (not fired): a Matomo event; `detail` is `{ event: [category, action, name?, value?] }` (`track` is the old name of `event`).",
17006
- "name": "uvalib-analytics-event",
17007
- "inheritedFrom": {
17008
- "name": "SiteAnalytics",
17009
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17010
- }
17011
- },
16793
+ "description": "For `<site-analytics>`: `['uvalib-back-to-top', 'click']` when activated. Bubbles and is composed.",
16794
+ "name": "uvalib-analytics-event"
16795
+ }
16796
+ ],
16797
+ "attributes": [
17012
16798
  {
17013
- "description": "Listened for on `document` (not fired): a Matomo content impression; `detail` is `{ name, piece, target?, interaction? }` (with `interaction`, a content interaction instead).",
17014
- "name": "uvalib-analytics-content",
17015
- "inheritedFrom": {
17016
- "name": "SiteAnalytics",
17017
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17018
- }
16799
+ "name": "label",
16800
+ "default": "DEFAULT_LABEL",
16801
+ "description": "The button's text.",
16802
+ "fieldName": "label"
17019
16803
  },
17020
16804
  {
17021
- "description": "Listened for on `document` too: the same as `uvalib-analytics-pageview`.",
17022
- "name": "site-analytics-pageview",
17023
- "inheritedFrom": {
17024
- "name": "SiteAnalytics",
17025
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17026
- }
16805
+ "name": "offset",
16806
+ "default": "DEFAULT_OFFSET",
16807
+ "description": "How many pixels at the top of the page must scroll out of view before the button shows.",
16808
+ "fieldName": "offset"
17027
16809
  },
17028
16810
  {
17029
- "description": "Listened for on `document` too: the same as `uvalib-analytics-search`.",
17030
- "name": "site-analytics-search",
17031
- "inheritedFrom": {
17032
- "name": "SiteAnalytics",
17033
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17034
- }
16811
+ "name": "target",
16812
+ "type": {
16813
+ "text": "string"
16814
+ },
16815
+ "default": "''",
16816
+ "description": "A selector for where focus goes (default: the page's `<h1>`, else `#top`).",
16817
+ "fieldName": "target"
17035
16818
  },
17036
16819
  {
17037
- "description": "Listened for on `document` too: the same as `uvalib-analytics-event`.",
17038
- "name": "site-analytics-event",
16820
+ "name": "no-shadow-dom",
16821
+ "type": {
16822
+ "text": "boolean"
16823
+ },
16824
+ "default": "false",
16825
+ "fieldName": "noShadowDom",
17039
16826
  "inheritedFrom": {
17040
- "name": "SiteAnalytics",
17041
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16827
+ "name": "UvalibElement",
16828
+ "module": "src/base/UvalibElement.ts"
17042
16829
  }
17043
16830
  },
17044
16831
  {
17045
- "description": "Listened for on `document` too: the same as `uvalib-analytics-content`.",
17046
- "name": "site-analytics-content",
16832
+ "name": "no-style",
16833
+ "type": {
16834
+ "text": "boolean"
16835
+ },
16836
+ "default": "false",
16837
+ "fieldName": "noStyle",
17047
16838
  "inheritedFrom": {
17048
- "name": "SiteAnalytics",
17049
- "module": "src/components/site-analytics/SiteAnalytics.ts"
16839
+ "name": "UvalibElement",
16840
+ "module": "src/base/UvalibElement.ts"
17050
16841
  }
17051
16842
  }
17052
- ]
17053
- }
17054
- ],
17055
- "exports": [
17056
- {
17057
- "kind": "js",
17058
- "name": "UvalibAnalytics",
17059
- "declaration": {
17060
- "name": "UvalibAnalytics",
17061
- "module": "src/components/uvalib-analytics/UvalibAnalytics.ts"
17062
- }
17063
- }
17064
- ]
17065
- },
17066
- {
17067
- "kind": "javascript-module",
17068
- "path": "src/components/uvalib-analytics/UvalibAnalyticsMixin.ts",
17069
- "declarations": [
17070
- {
17071
- "kind": "mixin",
17072
- "description": "The old `@uvalib/uvalib-analytics` mixin: `_analyticsEvent` and `_analyticsSearch` fire\n`uvalib-analytics-event` and `uvalib-analytics-search` (bubbling, composed) from the element\nor `eventTarget`. `SiteAnalyticsMixin` is the same with the `site-analytics-*` names.",
17073
- "name": "UvalibAnalyticsMixin",
17074
- "members": [
17075
- {
17076
- "kind": "method",
17077
- "name": "_analyticsEvent",
17078
- "parameters": [
17079
- {
17080
- "name": "events",
17081
- "type": {
17082
- "text": "any[]"
17083
- }
17084
- },
17085
- {
17086
- "name": "eventTarget",
17087
- "default": "null",
17088
- "type": {
17089
- "text": "EventTarget | null"
17090
- }
17091
- }
17092
- ]
17093
- },
17094
- {
17095
- "kind": "method",
17096
- "name": "_analyticsSearch",
17097
- "parameters": [
17098
- {
17099
- "name": "query",
17100
- "type": {
17101
- "text": "string"
17102
- }
17103
- },
17104
- {
17105
- "name": "category",
17106
- "default": "null",
17107
- "type": {
17108
- "text": "string | null"
17109
- }
17110
- },
17111
- {
17112
- "name": "count",
17113
- "default": "null",
17114
- "type": {
17115
- "text": "number | null"
17116
- }
17117
- },
17118
- {
17119
- "name": "eventTarget",
17120
- "default": "null",
17121
- "type": {
17122
- "text": "EventTarget | null"
17123
- }
17124
- }
17125
- ]
17126
- }
17127
16843
  ],
17128
- "parameters": [
17129
- {
17130
- "name": "superClass",
17131
- "type": {
17132
- "text": "T"
17133
- }
17134
- }
17135
- ]
16844
+ "superclass": {
16845
+ "name": "UvalibElement",
16846
+ "module": "/src/base/UvalibElement.js"
16847
+ },
16848
+ "tagName": "uvalib-back-to-top",
16849
+ "customElement": true
17136
16850
  }
17137
16851
  ],
17138
16852
  "exports": [
17139
16853
  {
17140
16854
  "kind": "js",
17141
- "name": "UvalibAnalyticsMixin",
16855
+ "name": "UvalibBackToTop",
17142
16856
  "declaration": {
17143
- "name": "UvalibAnalyticsMixin",
17144
- "module": "src/components/uvalib-analytics/UvalibAnalyticsMixin.ts"
16857
+ "name": "UvalibBackToTop",
16858
+ "module": "src/components/uvalib-back-to-top/UvalibBackToTop.ts"
17145
16859
  }
17146
16860
  }
17147
16861
  ]
17148
16862
  },
17149
16863
  {
17150
16864
  "kind": "javascript-module",
17151
- "path": "src/components/uvalib-analytics/uvalib-analytics.ts",
16865
+ "path": "src/components/uvalib-back-to-top/uvalib-back-to-top.ts",
17152
16866
  "declarations": [],
17153
16867
  "exports": []
17154
16868
  },
17155
16869
  {
17156
16870
  "kind": "javascript-module",
17157
- "path": "src/components/uvalib-back-to-top/UvalibBackToTop.ts",
16871
+ "path": "src/components/uvalib-analytics/UvalibAnalytics.ts",
17158
16872
  "declarations": [
17159
16873
  {
17160
16874
  "kind": "class",
17161
- "description": "A “Back to top” button for long pages: minutes, finding aids, transcriptions, long result\nlists.\n\nIt stays hidden (`visibility: hidden`, so it is neither a tab stop nor in the accessibility\ntree) until the top `offset` pixels of the page (default 400) have scrolled out of view,\nwatched with an IntersectionObserver on a small sentinel at the top of the page, never a\nscroll listener. If it has focus as it hides, focus moves to the target. Activating it\nscrolls to the top (smoothly unless the visitor prefers reduced motion) and moves focus to\nthe page's `<h1>` (the first in `<main>`, else the first anywhere, else `#top`), or to\n`target` (a selector), adding `tabindex=\"-1\"` when it is not focusable, so keyboard and\nscreen reader users land at the top too.\n\nThe button is fixed in the bottom corner (end side), inside the safe-area insets. The\nelement itself is an empty block 4.75rem tall: put it last in the page's main content and\nthat is the space the button needs, so the last lines can always scroll clear of it. When\nthat space comes into view the button sits in it instead of floating, so it never covers\nthe footer either. It is hidden in print.",
17162
- "name": "UvalibBackToTop",
17163
- "cssProperties": [
16875
+ "description": "`<site-analytics>` under its original name, for markup such as Drupal's\n`<uvalib-analytics matomoid=\"10\">`: the same element, attributes and events. A\nconstructor can be registered only once, hence the subclass.",
16876
+ "name": "UvalibAnalytics",
16877
+ "superclass": {
16878
+ "name": "SiteAnalytics",
16879
+ "module": "/src/components/site-analytics/SiteAnalytics.js"
16880
+ },
16881
+ "tagName": "uvalib-analytics",
16882
+ "customElement": true,
16883
+ "attributes": [
17164
16884
  {
17165
- "description": "The height the element keeps for the button at the end of the content.",
17166
- "name": "--uvalib-back-to-top-space",
17167
- "default": "4.75rem"
16885
+ "name": "matomoURL",
16886
+ "type": {
16887
+ "text": "string"
16888
+ },
16889
+ "default": "'https://analytics.lib.virginia.edu/'",
16890
+ "description": "The Matomo server, ending in `/` (attribute `matomourl`).",
16891
+ "fieldName": "matomoURL",
16892
+ "inheritedFrom": {
16893
+ "name": "SiteAnalytics",
16894
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
16895
+ }
17168
16896
  },
17169
16897
  {
17170
- "description": "Dark-mode role token: button background (else #fff).",
17171
- "name": "--uva-color-surface-raised"
16898
+ "name": "matomoId",
16899
+ "type": {
16900
+ "text": "number | undefined"
16901
+ },
16902
+ "description": "The Matomo site id (attribute `matomoid`). Default: the site whose URL the page is under.",
16903
+ "fieldName": "matomoId",
16904
+ "inheritedFrom": {
16905
+ "name": "SiteAnalytics",
16906
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
16907
+ }
17172
16908
  },
17173
16909
  {
17174
- "description": "Dark-mode role token: button border and text (else `--uva-blue-alt`, #007bac).",
17175
- "name": "--uva-color-button-bg"
16910
+ "name": "spa",
16911
+ "type": {
16912
+ "text": "boolean | 'auto'"
16913
+ },
16914
+ "default": "false",
16915
+ "description": "A single-page app. `spa` (no value): it records its own page views\n(`uvalib-analytics-pageview`), none on load. `spa=\"auto\"`: a page view on load and one per\nsame-document route change (hash change, Back and Forward, `history.pushState`), once the\ntitle has settled, never twice in a row for the same URL, with the previous URL as the\nreferrer. Either way Matomo's link tracking is off.",
16916
+ "fieldName": "spa",
16917
+ "inheritedFrom": {
16918
+ "name": "SiteAnalytics",
16919
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
16920
+ }
17176
16921
  },
17177
16922
  {
17178
- "description": "Dark-mode role token: hovered button (else `--uva-blue-alt-A`, #005679).",
17179
- "name": "--uva-color-button-hover-bg"
16923
+ "name": "variables",
16924
+ "type": {
16925
+ "text": "Record<string, unknown> | null"
16926
+ },
16927
+ "default": "null",
16928
+ "description": "Custom dimensions, a JSON object of `{ id: value }`, set before the page view.",
16929
+ "fieldName": "variables",
16930
+ "inheritedFrom": {
16931
+ "name": "SiteAnalytics",
16932
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
16933
+ }
17180
16934
  },
17181
16935
  {
17182
- "description": "Dark-mode role token: focus ring (else `--uva-brand-orange`).",
17183
- "name": "--uva-color-focus"
16936
+ "name": "downloads",
16937
+ "type": {
16938
+ "text": "string | undefined"
16939
+ },
16940
+ "description": "`event`: count downloads without their URLs. Matomo's link tracking is left off; a left or\nmiddle click on a link to a file (the `download` attribute, or a download file type)\nsends the event `['download', '<extension>']` (no URL, no file name), and a click on a\nlink to another site is still sent as an outlink (`trackLink`), as Matomo's link tracking\nwould. Off by default. Read when Matomo is set up; no effect with a Matomo snippet already\non the page.",
16941
+ "fieldName": "downloads",
16942
+ "inheritedFrom": {
16943
+ "name": "SiteAnalytics",
16944
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
16945
+ }
17184
16946
  },
17185
16947
  {
17186
- "description": "Dark-mode role token: the floating button's shadow.",
17187
- "name": "--uva-color-shadow"
17188
- }
17189
- ],
17190
- "cssParts": [
16948
+ "name": "no-shadow-dom",
16949
+ "type": {
16950
+ "text": "boolean"
16951
+ },
16952
+ "default": "false",
16953
+ "fieldName": "noShadowDom",
16954
+ "inheritedFrom": {
16955
+ "name": "UvalibElement",
16956
+ "module": "src/base/UvalibElement.ts"
16957
+ }
16958
+ },
17191
16959
  {
17192
- "description": "The button.",
17193
- "name": "button"
16960
+ "name": "no-style",
16961
+ "type": {
16962
+ "text": "boolean"
16963
+ },
16964
+ "default": "false",
16965
+ "fieldName": "noStyle",
16966
+ "inheritedFrom": {
16967
+ "name": "UvalibElement",
16968
+ "module": "src/base/UvalibElement.ts"
16969
+ }
17194
16970
  }
17195
16971
  ],
17196
16972
  "members": [
17197
16973
  {
17198
16974
  "kind": "field",
17199
- "name": "label",
17200
- "default": "'Back to top'",
17201
- "description": "The button's text.",
17202
- "attribute": "label",
16975
+ "name": "matomoURL",
17203
16976
  "type": {
17204
16977
  "text": "string"
16978
+ },
16979
+ "default": "'https://analytics.lib.virginia.edu/'",
16980
+ "description": "The Matomo server, ending in `/` (attribute `matomourl`).",
16981
+ "attribute": "matomoURL",
16982
+ "inheritedFrom": {
16983
+ "name": "SiteAnalytics",
16984
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17205
16985
  }
17206
16986
  },
17207
16987
  {
17208
16988
  "kind": "field",
17209
- "name": "offset",
17210
- "default": "400",
17211
- "description": "How many pixels at the top of the page must scroll out of view before the button shows.",
17212
- "attribute": "offset",
16989
+ "name": "matomoId",
17213
16990
  "type": {
17214
- "text": "number"
16991
+ "text": "number | undefined"
16992
+ },
16993
+ "description": "The Matomo site id (attribute `matomoid`). Default: the site whose URL the page is under.",
16994
+ "attribute": "matomoId",
16995
+ "inheritedFrom": {
16996
+ "name": "SiteAnalytics",
16997
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17215
16998
  }
17216
16999
  },
17217
17000
  {
17218
17001
  "kind": "field",
17219
- "name": "target",
17002
+ "name": "spa",
17220
17003
  "type": {
17221
- "text": "string"
17004
+ "text": "boolean | 'auto'"
17222
17005
  },
17223
- "default": "''",
17224
- "description": "A selector for where focus goes (default: the page's `<h1>`, else `#top`).",
17225
- "attribute": "target"
17006
+ "default": "false",
17007
+ "description": "A single-page app. `spa` (no value): it records its own page views\n(`uvalib-analytics-pageview`), none on load. `spa=\"auto\"`: a page view on load and one per\nsame-document route change (hash change, Back and Forward, `history.pushState`), once the\ntitle has settled, never twice in a row for the same URL, with the previous URL as the\nreferrer. Either way Matomo's link tracking is off.",
17008
+ "attribute": "spa",
17009
+ "inheritedFrom": {
17010
+ "name": "SiteAnalytics",
17011
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17012
+ }
17226
17013
  },
17227
17014
  {
17228
17015
  "kind": "field",
17229
- "name": "shown",
17016
+ "name": "variables",
17230
17017
  "type": {
17231
- "text": "boolean"
17018
+ "text": "Record<string, unknown> | null"
17232
17019
  },
17233
- "privacy": "private",
17234
- "default": "false",
17235
- "description": "Whether the top of the page has scrolled out of view."
17020
+ "default": "null",
17021
+ "description": "Custom dimensions, a JSON object of `{ id: value }`, set before the page view.",
17022
+ "attribute": "variables",
17023
+ "inheritedFrom": {
17024
+ "name": "SiteAnalytics",
17025
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17026
+ }
17236
17027
  },
17237
17028
  {
17238
17029
  "kind": "field",
17239
- "name": "docked",
17030
+ "name": "downloads",
17240
17031
  "type": {
17241
- "text": "boolean"
17032
+ "text": "string | undefined"
17242
17033
  },
17243
- "privacy": "private",
17244
- "default": "false",
17245
- "description": "Whether the element's own space is fully in view (the button sits in it)."
17034
+ "description": "`event`: count downloads without their URLs. Matomo's link tracking is left off; a left or\nmiddle click on a link to a file (the `download` attribute, or a download file type)\nsends the event `['download', '<extension>']` (no URL, no file name), and a click on a\nlink to another site is still sent as an outlink (`trackLink`), as Matomo's link tracking\nwould. Off by default. Read when Matomo is set up; no effect with a Matomo snippet already\non the page.",
17035
+ "attribute": "downloads",
17036
+ "inheritedFrom": {
17037
+ "name": "SiteAnalytics",
17038
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17039
+ }
17246
17040
  },
17247
17041
  {
17248
17042
  "kind": "field",
17249
- "name": "sentinel",
17043
+ "name": "tracker",
17250
17044
  "type": {
17251
- "text": "HTMLDivElement | undefined"
17045
+ "text": "Tracker"
17252
17046
  },
17253
- "privacy": "private"
17047
+ "privacy": "private",
17048
+ "readonly": true,
17049
+ "default": "{ off: false }",
17050
+ "inheritedFrom": {
17051
+ "name": "SiteAnalytics",
17052
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17053
+ }
17254
17054
  },
17255
17055
  {
17256
17056
  "kind": "field",
17257
- "name": "topObserver",
17258
- "type": {
17259
- "text": "IntersectionObserver | undefined"
17260
- },
17261
- "privacy": "private"
17057
+ "name": "onEvent",
17058
+ "privacy": "private",
17059
+ "readonly": true,
17060
+ "inheritedFrom": {
17061
+ "name": "SiteAnalytics",
17062
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17063
+ }
17262
17064
  },
17263
17065
  {
17264
17066
  "kind": "field",
17265
- "name": "dockObserver",
17266
- "type": {
17267
- "text": "IntersectionObserver | undefined"
17268
- },
17269
- "privacy": "private"
17067
+ "name": "onClick",
17068
+ "privacy": "private",
17069
+ "readonly": true,
17070
+ "description": "A click (or a middle click): `data-uvalib-track`, and with `downloads=\"event\"` links.",
17071
+ "inheritedFrom": {
17072
+ "name": "SiteAnalytics",
17073
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17074
+ }
17075
+ },
17076
+ {
17077
+ "kind": "method",
17078
+ "name": "trackLink",
17079
+ "privacy": "private",
17080
+ "parameters": [
17081
+ {
17082
+ "name": "e",
17083
+ "type": {
17084
+ "text": "MouseEvent"
17085
+ }
17086
+ }
17087
+ ],
17088
+ "description": "`downloads=\"event\"`: a click on a link to a file sends `['download', '<extension>']`; with\n`outlinks`, one on a light DOM link to another site sends Matomo's `trackLink` (the URL,\nas Matomo's own link tracking would).",
17089
+ "inheritedFrom": {
17090
+ "name": "SiteAnalytics",
17091
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17092
+ }
17093
+ },
17094
+ {
17095
+ "kind": "method",
17096
+ "name": "trackTagged",
17097
+ "privacy": "private",
17098
+ "parameters": [
17099
+ {
17100
+ "name": "e",
17101
+ "type": {
17102
+ "text": "Event"
17103
+ }
17104
+ }
17105
+ ],
17106
+ "description": "`data-uvalib-track`: the nearest tagged element on the click's path sends its event.",
17107
+ "inheritedFrom": {
17108
+ "name": "SiteAnalytics",
17109
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17110
+ }
17270
17111
  },
17271
17112
  {
17272
17113
  "kind": "field",
17273
- "name": "button",
17114
+ "name": "routeFrame",
17274
17115
  "type": {
17275
- "text": "HTMLButtonElement | null"
17116
+ "text": "number"
17276
17117
  },
17277
17118
  "privacy": "private",
17278
- "readonly": true
17119
+ "default": "0",
17120
+ "description": "`spa=\"auto\"`: a route change records a page view on the next frame (the new title).",
17121
+ "inheritedFrom": {
17122
+ "name": "SiteAnalytics",
17123
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17124
+ }
17279
17125
  },
17280
17126
  {
17281
17127
  "kind": "field",
17282
- "name": "px",
17128
+ "name": "onRoute",
17129
+ "privacy": "private",
17130
+ "readonly": true,
17131
+ "inheritedFrom": {
17132
+ "name": "SiteAnalytics",
17133
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17134
+ }
17135
+ },
17136
+ {
17137
+ "kind": "field",
17138
+ "name": "onNavigation",
17139
+ "privacy": "private",
17140
+ "readonly": true,
17141
+ "description": "The Navigation API also reports replaceState and reloads: neither is a new page.",
17142
+ "inheritedFrom": {
17143
+ "name": "SiteAnalytics",
17144
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17145
+ }
17146
+ },
17147
+ {
17148
+ "kind": "method",
17149
+ "name": "autoPageView",
17150
+ "privacy": "private",
17151
+ "inheritedFrom": {
17152
+ "name": "SiteAnalytics",
17153
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17154
+ }
17155
+ },
17156
+ {
17157
+ "kind": "method",
17158
+ "name": "listenRoutes",
17159
+ "privacy": "private",
17160
+ "parameters": [
17161
+ {
17162
+ "name": "on",
17163
+ "type": {
17164
+ "text": "boolean"
17165
+ }
17166
+ }
17167
+ ],
17168
+ "description": "Listen for route changes (`on`), or stop.",
17169
+ "inheritedFrom": {
17170
+ "name": "SiteAnalytics",
17171
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17172
+ }
17173
+ },
17174
+ {
17175
+ "kind": "method",
17176
+ "name": "forwards",
17177
+ "privacy": "private",
17178
+ "return": {
17179
+ "type": {
17180
+ "text": "boolean"
17181
+ }
17182
+ },
17183
+ "description": "Whether this element is the page's one forwarder: the first connected one with a site id.",
17184
+ "inheritedFrom": {
17185
+ "name": "SiteAnalytics",
17186
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17187
+ }
17188
+ },
17189
+ {
17190
+ "kind": "field",
17191
+ "name": "paq",
17283
17192
  "type": {
17284
- "text": "number"
17193
+ "text": "unknown[][]"
17285
17194
  },
17286
17195
  "privacy": "private",
17287
- "readonly": true
17196
+ "readonly": true,
17197
+ "inheritedFrom": {
17198
+ "name": "SiteAnalytics",
17199
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17200
+ }
17288
17201
  },
17289
17202
  {
17290
17203
  "kind": "method",
17291
- "name": "setShown",
17204
+ "name": "logPageView",
17292
17205
  "privacy": "private",
17293
- "return": {
17294
- "type": {
17295
- "text": "void"
17296
- }
17297
- },
17298
17206
  "parameters": [
17299
17207
  {
17300
- "name": "shown",
17208
+ "name": "d",
17301
17209
  "type": {
17302
- "text": "boolean"
17210
+ "text": "PageViewDetail"
17303
17211
  }
17304
17212
  }
17305
- ]
17213
+ ],
17214
+ "inheritedFrom": {
17215
+ "name": "SiteAnalytics",
17216
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17217
+ }
17306
17218
  },
17307
17219
  {
17308
17220
  "kind": "method",
17309
- "name": "findTarget",
17221
+ "name": "logSearch",
17310
17222
  "privacy": "private",
17311
- "return": {
17312
- "type": {
17313
- "text": "HTMLElement | null"
17223
+ "parameters": [
17224
+ {
17225
+ "name": "d",
17226
+ "type": {
17227
+ "text": "SearchDetail"
17228
+ }
17314
17229
  }
17315
- },
17316
- "description": "Where focus goes: `target`, else the page's `<h1>`, else `#top`."
17230
+ ],
17231
+ "inheritedFrom": {
17232
+ "name": "SiteAnalytics",
17233
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17234
+ }
17317
17235
  },
17318
17236
  {
17319
17237
  "kind": "method",
17320
- "name": "focusTarget",
17238
+ "name": "logContent",
17321
17239
  "privacy": "private",
17322
- "return": {
17323
- "type": {
17324
- "text": "void"
17240
+ "parameters": [
17241
+ {
17242
+ "name": "d",
17243
+ "type": {
17244
+ "text": "Partial<AnalyticsContent>"
17245
+ }
17325
17246
  }
17247
+ ],
17248
+ "inheritedFrom": {
17249
+ "name": "SiteAnalytics",
17250
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17326
17251
  }
17327
17252
  },
17328
17253
  {
17329
- "kind": "field",
17330
- "name": "onClick",
17254
+ "kind": "method",
17255
+ "name": "logEvent",
17331
17256
  "privacy": "private",
17332
- "readonly": true
17257
+ "parameters": [
17258
+ {
17259
+ "name": "d",
17260
+ "type": {
17261
+ "text": "EventDetail"
17262
+ }
17263
+ }
17264
+ ],
17265
+ "inheritedFrom": {
17266
+ "name": "SiteAnalytics",
17267
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17268
+ }
17333
17269
  },
17334
17270
  {
17335
17271
  "kind": "field",
@@ -17463,79 +17399,169 @@
17463
17399
  ],
17464
17400
  "events": [
17465
17401
  {
17466
- "description": "For `<site-analytics>`: `['uvalib-back-to-top', 'click']` when activated. Bubbles and is composed.",
17467
- "name": "uvalib-analytics-event"
17468
- }
17469
- ],
17470
- "attributes": [
17402
+ "description": "Listened for on `document` (not fired): records a page view; `detail` is `{ customTitle?, referrer? }` (default: the document's title and referrer; a referrer without `http` is taken as a path on this origin).",
17403
+ "name": "uvalib-analytics-pageview",
17404
+ "inheritedFrom": {
17405
+ "name": "SiteAnalytics",
17406
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17407
+ }
17408
+ },
17471
17409
  {
17472
- "name": "label",
17473
- "default": "DEFAULT_LABEL",
17474
- "description": "The button's text.",
17475
- "fieldName": "label"
17410
+ "description": "Listened for on `document` (not fired): a Matomo site search; `detail` is `{ searchQuery, searchCategory?, resultCount? }`.",
17411
+ "name": "uvalib-analytics-search",
17412
+ "inheritedFrom": {
17413
+ "name": "SiteAnalytics",
17414
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17415
+ }
17476
17416
  },
17477
17417
  {
17478
- "name": "offset",
17479
- "default": "DEFAULT_OFFSET",
17480
- "description": "How many pixels at the top of the page must scroll out of view before the button shows.",
17481
- "fieldName": "offset"
17418
+ "description": "Listened for on `document` (not fired): a Matomo event; `detail` is `{ event: [category, action, name?, value?] }` (`track` is the old name of `event`).",
17419
+ "name": "uvalib-analytics-event",
17420
+ "inheritedFrom": {
17421
+ "name": "SiteAnalytics",
17422
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17423
+ }
17482
17424
  },
17483
17425
  {
17484
- "name": "target",
17485
- "type": {
17486
- "text": "string"
17487
- },
17488
- "default": "''",
17489
- "description": "A selector for where focus goes (default: the page's `<h1>`, else `#top`).",
17490
- "fieldName": "target"
17426
+ "description": "Listened for on `document` (not fired): a Matomo content impression; `detail` is `{ name, piece, target?, interaction? }` (with `interaction`, a content interaction instead).",
17427
+ "name": "uvalib-analytics-content",
17428
+ "inheritedFrom": {
17429
+ "name": "SiteAnalytics",
17430
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17431
+ }
17491
17432
  },
17492
17433
  {
17493
- "name": "no-shadow-dom",
17494
- "type": {
17495
- "text": "boolean"
17496
- },
17497
- "default": "false",
17498
- "fieldName": "noShadowDom",
17434
+ "description": "Listened for on `document` too: the same as `uvalib-analytics-pageview`.",
17435
+ "name": "site-analytics-pageview",
17499
17436
  "inheritedFrom": {
17500
- "name": "UvalibElement",
17501
- "module": "src/base/UvalibElement.ts"
17437
+ "name": "SiteAnalytics",
17438
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17502
17439
  }
17503
17440
  },
17504
17441
  {
17505
- "name": "no-style",
17506
- "type": {
17507
- "text": "boolean"
17508
- },
17509
- "default": "false",
17510
- "fieldName": "noStyle",
17442
+ "description": "Listened for on `document` too: the same as `uvalib-analytics-search`.",
17443
+ "name": "site-analytics-search",
17511
17444
  "inheritedFrom": {
17512
- "name": "UvalibElement",
17513
- "module": "src/base/UvalibElement.ts"
17445
+ "name": "SiteAnalytics",
17446
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17447
+ }
17448
+ },
17449
+ {
17450
+ "description": "Listened for on `document` too: the same as `uvalib-analytics-event`.",
17451
+ "name": "site-analytics-event",
17452
+ "inheritedFrom": {
17453
+ "name": "SiteAnalytics",
17454
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17455
+ }
17456
+ },
17457
+ {
17458
+ "description": "Listened for on `document` too: the same as `uvalib-analytics-content`.",
17459
+ "name": "site-analytics-content",
17460
+ "inheritedFrom": {
17461
+ "name": "SiteAnalytics",
17462
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17514
17463
  }
17515
17464
  }
17465
+ ]
17466
+ }
17467
+ ],
17468
+ "exports": [
17469
+ {
17470
+ "kind": "js",
17471
+ "name": "UvalibAnalytics",
17472
+ "declaration": {
17473
+ "name": "UvalibAnalytics",
17474
+ "module": "src/components/uvalib-analytics/UvalibAnalytics.ts"
17475
+ }
17476
+ }
17477
+ ]
17478
+ },
17479
+ {
17480
+ "kind": "javascript-module",
17481
+ "path": "src/components/uvalib-analytics/UvalibAnalyticsMixin.ts",
17482
+ "declarations": [
17483
+ {
17484
+ "kind": "mixin",
17485
+ "description": "The old `@uvalib/uvalib-analytics` mixin: `_analyticsEvent` and `_analyticsSearch` fire\n`uvalib-analytics-event` and `uvalib-analytics-search` (bubbling, composed) from the element\nor `eventTarget`. `SiteAnalyticsMixin` is the same with the `site-analytics-*` names.",
17486
+ "name": "UvalibAnalyticsMixin",
17487
+ "members": [
17488
+ {
17489
+ "kind": "method",
17490
+ "name": "_analyticsEvent",
17491
+ "parameters": [
17492
+ {
17493
+ "name": "events",
17494
+ "type": {
17495
+ "text": "any[]"
17496
+ }
17497
+ },
17498
+ {
17499
+ "name": "eventTarget",
17500
+ "default": "null",
17501
+ "type": {
17502
+ "text": "EventTarget | null"
17503
+ }
17504
+ }
17505
+ ]
17506
+ },
17507
+ {
17508
+ "kind": "method",
17509
+ "name": "_analyticsSearch",
17510
+ "parameters": [
17511
+ {
17512
+ "name": "query",
17513
+ "type": {
17514
+ "text": "string"
17515
+ }
17516
+ },
17517
+ {
17518
+ "name": "category",
17519
+ "default": "null",
17520
+ "type": {
17521
+ "text": "string | null"
17522
+ }
17523
+ },
17524
+ {
17525
+ "name": "count",
17526
+ "default": "null",
17527
+ "type": {
17528
+ "text": "number | null"
17529
+ }
17530
+ },
17531
+ {
17532
+ "name": "eventTarget",
17533
+ "default": "null",
17534
+ "type": {
17535
+ "text": "EventTarget | null"
17536
+ }
17537
+ }
17538
+ ]
17539
+ }
17516
17540
  ],
17517
- "superclass": {
17518
- "name": "UvalibElement",
17519
- "module": "/src/base/UvalibElement.js"
17520
- },
17521
- "tagName": "uvalib-back-to-top",
17522
- "customElement": true
17541
+ "parameters": [
17542
+ {
17543
+ "name": "superClass",
17544
+ "type": {
17545
+ "text": "T"
17546
+ }
17547
+ }
17548
+ ]
17523
17549
  }
17524
17550
  ],
17525
17551
  "exports": [
17526
17552
  {
17527
17553
  "kind": "js",
17528
- "name": "UvalibBackToTop",
17554
+ "name": "UvalibAnalyticsMixin",
17529
17555
  "declaration": {
17530
- "name": "UvalibBackToTop",
17531
- "module": "src/components/uvalib-back-to-top/UvalibBackToTop.ts"
17556
+ "name": "UvalibAnalyticsMixin",
17557
+ "module": "src/components/uvalib-analytics/UvalibAnalyticsMixin.ts"
17532
17558
  }
17533
17559
  }
17534
17560
  ]
17535
17561
  },
17536
17562
  {
17537
17563
  "kind": "javascript-module",
17538
- "path": "src/components/uvalib-back-to-top/uvalib-back-to-top.ts",
17564
+ "path": "src/components/uvalib-analytics/uvalib-analytics.ts",
17539
17565
  "declarations": [],
17540
17566
  "exports": []
17541
17567
  },