@metacensus/library-ui 0.16.0 → 0.17.0

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/README.md CHANGED
@@ -34,7 +34,7 @@ Components render on the server: no router, auth or API client, and no browser g
34
34
 
35
35
  - Marks: `MetaCensusMark`, `MetaCensusLockup`, `MetaCensusWordmark` (the lockup's letters alone, in `WORDMARK_VIEWBOX`), `MetaCensusArrow`, `LogoArrowMorph`, and the shared geometry, including the lockup's spacing (`LOCKUP_VIEWBOX`, and `LOCKUP_MARK_BOX` for the mark's box within it).
36
36
  - Chrome: `Header` (`nav` and `actions` slots, which wrap on a narrow screen; with no `nav`, the `actions` sit at the end of the row), `Footer` (`brand` replaces the linked lockup and its link is the consumer's; `tagline`; link columns as children), `Nav` (`links`).
37
- - Tools: `cn`, `Button`, `Notice`, `Chip`, the form kit (`Field`, `Label`, `Input`, `Textarea`, `Select`, `Checkbox`, `RadioGroup`, `FieldError`), `useTheme`, `useStill`, `DisplayControls`, `displayScript`.
37
+ - Tools: `cn`, `Button`, `Notice`, `Chip`, `CiteThisPage` with the formatters `formatRis`, `formatBibtex` and `formatCitationText`, the form kit (`Field`, `Label`, `Input`, `Textarea`, `Select`, `Checkbox`, `RadioGroup`, `FieldError`), `useTheme`, `useStill`, `DisplayControls`, `displayScript`.
38
38
  - People: `ContributorCard` (a person's photo, name, role, flavor chip and bio, whose bio floats open on hover or focus until Escape), `ContributorFlavorKey`, and `AudienceIcon` for each of `AUDIENCES`, labelled from `AUDIENCE_LABELS`. The floating card is portaled into `<body>`, so import `tokens.css` and set the theme on `:root`, not on a wrapper.
39
39
 
40
40
  - Marks take `variant`: `auto` (the default: solid on every ground, over a Soft Lavender halo on dark that spills about one mark-height past its box, so its container must not clip it), `solid` or `reversed`. Mark usage is in [TRADEMARKS.md](TRADEMARKS.md).
@@ -59,6 +59,38 @@ import { Header, Nav, Button, displayScript } from '@metacensus/library-ui'
59
59
  <Button variant="danger">Delete account</Button>
60
60
  ```
61
61
 
62
+ `CiteThisPage` takes a `citation` (`title`, `authors` as `Family, Given`, an ISO `date`, `publisher` and `url`) plus `risHref` and `bibHref`, and renders a `Cite this page` disclosure with the citation as text and a download link to each file. It is a `<details>`, so it needs no JS and no `client:` directive, and it renders nothing when `citation.url` is empty. The page owns the URL and its permanence. The formatters are pure functions: a page writes the two files at build and links to them.
63
+
64
+ ```astro
65
+ ---
66
+ // src/pages/a-page.astro
67
+ import { CiteThisPage } from '@metacensus/library-ui'
68
+ import { citation } from '../citation'
69
+ ---
70
+ <CiteThisPage citation={citation} risHref="/a-page.ris" bibHref="/a-page.bib" />
71
+ ```
72
+
73
+ ```ts
74
+ // src/citation.ts
75
+ export const citation = {
76
+ title: 'A page',
77
+ authors: ['Doe, Jane', 'Roe, Richard'],
78
+ date: '2026-11-10',
79
+ publisher: 'MetaCensus',
80
+ url: 'https://example.org/a-page',
81
+ }
82
+ ```
83
+
84
+ ```ts
85
+ // src/pages/a-page.ris.ts, and the same with formatBibtex in a-page.bib.ts
86
+ import { formatRis } from '@metacensus/library-ui'
87
+ import { citation } from '../citation'
88
+ export const GET = () =>
89
+ new Response(formatRis(citation), {
90
+ headers: { 'Content-Type': 'application/x-research-info-systems' },
91
+ })
92
+ ```
93
+
62
94
  In `.astro` files, pass `Header`'s `nav` and `actions` as named slots; JSX props there fail the build.
63
95
 
64
96
  ## Layout
@@ -94,7 +126,7 @@ export default defineConfig({
94
126
 
95
127
  ## Organization facts
96
128
 
97
- `@metacensus/library-ui/organization` holds the organization's name, URL, logo, contact address and the people credited as plain `organization` data, with no Astro or React, and what every site derives from it: `organizationJsonLd()`, `organizationJsonLdScript()` and `humansTxt()`.
129
+ `@metacensus/library-ui/organization` holds the organization's name, URL, logo, contact address and the people credited as plain `organization` data, with no Astro or React, and the stewards (`cofounders`, `contributors` and `advisoryBoard`: each person's name, role, portrait file, link and flavor) from which the people credited are built (cofounders as `founder`, contributors as `member`; the advisory board is not credited), and what every site derives from it: `organizationJsonLd()`, `organizationJsonLdScript()` and `humansTxt()`.
98
130
 
99
131
  In an Astro layout's `<head>`:
100
132
 
package/TRADEMARKS.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MetaCensus marks
2
2
 
3
- The marks are the primary mark, the wordmark lockup, the wordmark alone, the arrow and the favicon, in [`marks/`](marks). All rights in them are reserved ([`marks/NOTICE.md`](marks/NOTICE.md)); the repository's AGPL-3.0-only license does not cover them. Questions and co-branded approvals: brand@metacensus.io.
3
+ The marks are the primary mark, the wordmark lockup, the wordmark alone, the arrow and the favicon, in [`marks/`](marks). All rights in them are reserved ([`marks/NOTICE.md`](marks/NOTICE.md)); the repository's AGPL-3.0-only license does not cover them. Questions and co-branded approvals: contact@metacensus.org.
4
4
 
5
5
  ## Permitted use
6
6
 
package/dist/index.d.ts CHANGED
@@ -6,6 +6,8 @@ export { Nav, type NavLink } from './chrome/Nav.js';
6
6
  export { Button } from './tools/Button.js';
7
7
  export { Chip } from './tools/Chip.js';
8
8
  export { cn } from './tools/cn.js';
9
+ export { formatBibtex, formatCitationText, formatRis, type Citation, } from './tools/cite.js';
10
+ export { CiteThisPage } from './tools/CiteThisPage.js';
9
11
  export { Checkbox, Field, FieldError, Input, Label, RadioGroup, Select, Textarea, } from './tools/form.js';
10
12
  export { Notice } from './tools/Notice.js';
11
13
  export { AUDIENCES, AUDIENCE_LABELS, AudienceIcon, type Audience, } from './people/AudienceIcon.js';
package/dist/index.js CHANGED
@@ -6,6 +6,8 @@ export { Nav } from './chrome/Nav.js';
6
6
  export { Button } from './tools/Button.js';
7
7
  export { Chip } from './tools/Chip.js';
8
8
  export { cn } from './tools/cn.js';
9
+ export { formatBibtex, formatCitationText, formatRis, } from './tools/cite.js';
10
+ export { CiteThisPage } from './tools/CiteThisPage.js';
9
11
  export { Checkbox, Field, FieldError, Input, Label, RadioGroup, Select, Textarea, } from './tools/form.js';
10
12
  export { Notice } from './tools/Notice.js';
11
13
  export { AUDIENCES, AUDIENCE_LABELS, AudienceIcon, } from './people/AudienceIcon.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,GAAG,EAAgB,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAA;AAClC,OAAO,EACL,QAAQ,EACR,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,QAAQ,GACT,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EACL,SAAS,EACT,eAAe,EACf,YAAY,GAEb,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,eAAe,EACf,oBAAoB,GAErB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,eAAe,EACf,aAAa,EACb,QAAQ,EACR,QAAQ,GAET,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,kBAAkB,GACnB,MAAM,kBAAkB,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAC3C,OAAO,EAAE,GAAG,EAAgB,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAA;AAClC,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,SAAS,GAEV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EACL,QAAQ,EACR,KAAK,EACL,UAAU,EACV,KAAK,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,QAAQ,GACT,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EACL,SAAS,EACT,eAAe,EACf,YAAY,GAEb,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,eAAe,EACf,oBAAoB,GAErB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,eAAe,EACf,aAAa,EACb,QAAQ,EACR,QAAQ,GAET,MAAM,oBAAoB,CAAA"}
@@ -5,9 +5,11 @@ export interface Organization {
5
5
  logo: string;
6
6
  email: string;
7
7
  copyrightYears: string;
8
+ /** The cofounders, then the contributors; the advisory board is not credited. */
8
9
  people: readonly {
9
10
  name: string;
10
11
  role: string;
12
+ kind: 'founder' | 'member';
11
13
  }[];
12
14
  }
13
15
  export declare const organization: Organization;
@@ -1,9 +1,21 @@
1
+ import { cofounders, contributors } from './stewards.js';
1
2
  export const organization = {
2
3
  name: 'MetaCensus',
3
4
  url: 'https://www.metacensus.org',
4
5
  logo: 'https://raw.githubusercontent.com/metacensus/library-ui/main/marks/mark.svg',
5
- email: 'brand@metacensus.io',
6
+ email: 'contact@metacensus.org',
6
7
  copyrightYears: '2023–2026',
7
- people: [],
8
+ people: [
9
+ ...cofounders.map(({ name, role }) => ({
10
+ name,
11
+ role,
12
+ kind: 'founder',
13
+ })),
14
+ ...contributors.map(({ name, role }) => ({
15
+ name,
16
+ role,
17
+ kind: 'member',
18
+ })),
19
+ ],
8
20
  };
9
21
  //# sourceMappingURL=facts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"facts.js","sourceRoot":"","sources":["../../src/organization/facts.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,4BAA4B;IACjC,IAAI,EAAE,6EAA6E;IACnF,KAAK,EAAE,qBAAqB;IAC5B,cAAc,EAAE,WAAW;IAC3B,MAAM,EAAE,EAAE;CACX,CAAA"}
1
+ {"version":3,"file":"facts.js","sourceRoot":"","sources":["../../src/organization/facts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAaxD,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,IAAI,EAAE,YAAY;IAClB,GAAG,EAAE,4BAA4B;IACjC,IAAI,EAAE,6EAA6E;IACnF,KAAK,EAAE,wBAAwB;IAC/B,cAAc,EAAE,WAAW;IAC3B,MAAM,EAAE;QACN,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YACrC,IAAI;YACJ,IAAI;YACJ,IAAI,EAAE,SAAkB;SACzB,CAAC,CAAC;QACH,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YACvC,IAAI;YACJ,IAAI;YACJ,IAAI,EAAE,QAAiB;SACxB,CAAC,CAAC;KACJ;CACF,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export { organization, type Organization } from './facts.js';
2
+ export { advisoryBoard, cofounders, contributors, type Steward, } from './stewards.js';
2
3
  export { humansTxt, organizationJsonLd, organizationJsonLdScript, } from './serialize.js';
@@ -1,3 +1,4 @@
1
1
  export { organization } from './facts.js';
2
+ export { advisoryBoard, cofounders, contributors, } from './stewards.js';
2
3
  export { humansTxt, organizationJsonLd, organizationJsonLdScript, } from './serialize.js';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/organization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,YAAY,CAAA;AAC5D,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/organization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAqB,MAAM,YAAY,CAAA;AAC5D,OAAO,EACL,aAAa,EACb,UAAU,EACV,YAAY,GAEb,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,SAAS,EACT,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,gBAAgB,CAAA"}
@@ -1,9 +1,4 @@
1
1
  export declare function organizationJsonLd(): {
2
- employee?: {
3
- '@type': string;
4
- name: string;
5
- jobTitle: string;
6
- }[] | undefined;
7
2
  '@context': string;
8
3
  '@type': string;
9
4
  name: string;
@@ -1,4 +1,16 @@
1
1
  import { organization as org } from './facts.js';
2
+ function person(kind) {
3
+ const people = org.people.filter((p) => p.kind === kind);
4
+ return people.length > 0
5
+ ? {
6
+ [kind]: people.map(({ name, role }) => ({
7
+ '@type': 'Person',
8
+ name,
9
+ jobTitle: role,
10
+ })),
11
+ }
12
+ : {};
13
+ }
2
14
  export function organizationJsonLd() {
3
15
  return {
4
16
  '@context': 'https://schema.org',
@@ -7,13 +19,8 @@ export function organizationJsonLd() {
7
19
  url: org.url,
8
20
  logo: org.logo,
9
21
  email: org.email,
10
- ...(org.people.length > 0 && {
11
- employee: org.people.map(({ name, role }) => ({
12
- '@type': 'Person',
13
- name,
14
- jobTitle: role,
15
- })),
16
- }),
22
+ ...person('founder'),
23
+ ...person('member'),
17
24
  };
18
25
  }
19
26
  /** The JSON-LD as the body of a `<script>`: `<` is escaped so no value can close it. */
@@ -1 +1 @@
1
- {"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../src/organization/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,GAAG,EAAE,MAAM,YAAY,CAAA;AAEhD,MAAM,UAAU,kBAAkB;IAChC,OAAO;QACL,UAAU,EAAE,oBAAoB;QAChC,OAAO,EAAE,cAAc;QACvB,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI;YAC3B,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;gBAC5C,OAAO,EAAE,QAAQ;gBACjB,IAAI;gBACJ,QAAQ,EAAE,IAAI;aACf,CAAC,CAAC;SACJ,CAAC;KACH,CAAA;AACH,CAAC;AAED,wFAAwF;AACxF,MAAM,UAAU,wBAAwB;IACtC,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;AACtE,CAAC;AAED,yBAAyB;AACzB,MAAM,UAAU,SAAS;IACvB,OAAO;QACL,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;YACvB,CAAC,CAAC;gBACE,YAAY;gBACZ,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,EAAE,CAAC;gBACzD,EAAE;aACH;YACH,C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CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;AACtE,CAAC;AAED,yBAAyB;AACzB,MAAM,UAAU,SAAS;IACvB,OAAO;QACL,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;YACvB,CAAC,CAAC;gBACE,YAAY;gBACZ,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,EAAE,CAAC;gBACzD,EAAE;aACH;YACH,CAAC,CAAC,EAAE,CAAC;QACP,YAAY;QACZ,iBAAiB,GAAG,CAAC,IAAI,EAAE;QAC3B,QAAQ,GAAG,CAAC,GAAG,EAAE;QACjB,YAAY,GAAG,CAAC,KAAK,EAAE;QACvB,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACd,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { ContributorFlavor } from '../people/ContributorCard.js';
2
+ export interface Steward {
3
+ name: string;
4
+ role: string;
5
+ /** A MetaCensus title, which the roster styles apart from a descriptive one. */
6
+ metacensusTitle?: boolean;
7
+ /** Absent for the advisory board, who advise rather than build. */
8
+ flavor?: ContributorFlavor;
9
+ link?: string;
10
+ /** The portrait's file name; each site serves the files it names. */
11
+ portrait: string;
12
+ }
13
+ export declare const cofounders: readonly Steward[];
14
+ /** MetaCensus-titled people lead. */
15
+ export declare const contributors: readonly Steward[];
16
+ export declare const advisoryBoard: readonly Steward[];
@@ -0,0 +1,111 @@
1
+ export const cofounders = [
2
+ {
3
+ name: 'Ryan Nelson, PharmD',
4
+ role: 'Executive Director',
5
+ metacensusTitle: true,
6
+ flavor: 'quantitative',
7
+ link: 'https://www.aruplab.com/experts/nelson-0',
8
+ portrait: 'ryan-nelson.webp',
9
+ },
10
+ {
11
+ name: 'Jacob Barzee',
12
+ role: 'Director of Engineering',
13
+ metacensusTitle: true,
14
+ flavor: 'engineering',
15
+ link: 'https://www.linkedin.com/in/jacob-barzee-8b69b772/',
16
+ portrait: 'jacob-barzee.webp',
17
+ },
18
+ ];
19
+ /** MetaCensus-titled people lead. */
20
+ export const contributors = [
21
+ {
22
+ name: 'Erik Forsman, BS',
23
+ role: 'Founding Engineer',
24
+ metacensusTitle: true,
25
+ flavor: 'engineering',
26
+ link: 'https://www.linkedin.com/in/erik-forsman-a4237289/',
27
+ portrait: 'erik-forsman.webp',
28
+ },
29
+ {
30
+ name: 'Michael Bonner',
31
+ role: 'Web Development',
32
+ flavor: 'engineering',
33
+ link: 'https://michaelbonner.dev',
34
+ portrait: 'michael-bonner.webp',
35
+ },
36
+ {
37
+ name: 'Rob Shirley, MS',
38
+ role: 'Full-Stack Development',
39
+ flavor: 'engineering',
40
+ portrait: 'rob-shirley.webp',
41
+ },
42
+ {
43
+ name: 'Caleb Barzee, BS',
44
+ role: 'Software Engineer',
45
+ flavor: 'engineering',
46
+ portrait: 'caleb-barzee.webp',
47
+ },
48
+ {
49
+ name: 'Tanner Denti, BS',
50
+ role: 'Backend Engineer',
51
+ flavor: 'engineering',
52
+ portrait: 'tanner-denti.webp',
53
+ },
54
+ {
55
+ name: 'Jonas Barzee',
56
+ role: 'Software Engineer Intern',
57
+ flavor: 'engineering',
58
+ portrait: 'jonas-barzee.webp',
59
+ },
60
+ {
61
+ name: 'Patrick Mower, MS',
62
+ role: 'Backend Engineer',
63
+ flavor: 'engineering',
64
+ portrait: 'patrick-mower.webp',
65
+ },
66
+ {
67
+ name: 'David Houghton, BS',
68
+ role: 'Information Systems & Policy',
69
+ flavor: 'engineering',
70
+ portrait: 'david-houghton.webp',
71
+ },
72
+ {
73
+ name: 'Jaime Natoli, MPH, MS, CGC',
74
+ role: 'Clinical Consultant, Evidence-Based Medicine',
75
+ flavor: 'quantitative',
76
+ link: 'https://www.researchgate.net/profile/Jaime-Natoli-2',
77
+ portrait: 'jaime-natoli.webp',
78
+ },
79
+ {
80
+ name: 'Carrie Hoefer, PhD, MBA',
81
+ role: 'Pharmacogenomics',
82
+ flavor: 'quantitative',
83
+ portrait: 'carrie-hoefer.webp',
84
+ },
85
+ {
86
+ name: 'Michael K.B. Ford',
87
+ role: 'Applied AI Engineer',
88
+ metacensusTitle: true,
89
+ // He designs the science and builds it.
90
+ flavor: 'both',
91
+ portrait: 'michael-ford.webp',
92
+ },
93
+ ];
94
+ export const advisoryBoard = [
95
+ {
96
+ name: 'Sara Rogers, PharmD',
97
+ role: 'President, American Society of Pharmacovigilance',
98
+ portrait: 'sara-rogers.webp',
99
+ },
100
+ {
101
+ name: 'Sharmeen Roy, PharmD, BCPS',
102
+ role: 'Founder and CEO, Qist Health',
103
+ portrait: 'sharmeen-roy.webp',
104
+ },
105
+ {
106
+ name: 'Howard L. McLeod, FASCO, FCCP',
107
+ role: 'Director, Center for Precision Medicine',
108
+ portrait: 'howard-mcleod.webp',
109
+ },
110
+ ];
111
+ //# sourceMappingURL=stewards.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stewards.js","sourceRoot":"","sources":["../../src/organization/stewards.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C;QACE,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,oBAAoB;QAC1B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,cAAc;QACtB,IAAI,EAAE,0CAA0C;QAChD,QAAQ,EAAE,kBAAkB;KAC7B;IACD;QACE,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,yBAAyB;QAC/B,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,aAAa;QACrB,IAAI,EAAE,oDAAoD;QAC1D,QAAQ,EAAE,mBAAmB;KAC9B;CACF,CAAA;AAED,qCAAqC;AACrC,MAAM,CAAC,MAAM,YAAY,GAAuB;IAC9C;QACE,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,mBAAmB;QACzB,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE,aAAa;QACrB,IAAI,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CAAwC;QACxC,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,mBAAmB;KAC9B;CACF,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C;QACE,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,kDAAkD;QACxD,QAAQ,EAAE,kBAAkB;KAC7B;IACD;QACE,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,8BAA8B;QACpC,QAAQ,EAAE,mBAAmB;KAC9B;IACD;QACE,IAAI,EAAE,+BAA+B;QACrC,IAAI,EAAE,yCAAyC;QAC/C,QAAQ,EAAE,oBAAoB;KAC/B;CACF,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { DetailsHTMLAttributes } from 'react';
2
+ import { type Citation } from './cite.js';
3
+ type CiteThisPageProps = Omit<DetailsHTMLAttributes<HTMLDetailsElement>, 'children'> & {
4
+ citation: Citation;
5
+ /** Where the page serves its RIS file, from `formatRis`. */
6
+ risHref: string;
7
+ /** Where the page serves its BibTeX file, from `formatBibtex`. */
8
+ bibHref: string;
9
+ };
10
+ /** A `Cite this page` disclosure: the citation as text and a download link to
11
+ * each file. It formats what the page gives it and renders nothing without a
12
+ * url. It needs no JS. */
13
+ export declare function CiteThisPage({ citation, risHref, bibHref, className, ...props }: CiteThisPageProps): import("react").JSX.Element | null;
14
+ export {};
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { formatCitationText } from './cite.js';
3
+ import { Button } from './Button.js';
4
+ import { cn } from './cn.js';
5
+ /** A `Cite this page` disclosure: the citation as text and a download link to
6
+ * each file. It formats what the page gives it and renders nothing without a
7
+ * url. It needs no JS. */
8
+ export function CiteThisPage({ citation, risHref, bibHref, className, ...props }) {
9
+ if (!citation.url?.trim())
10
+ return null;
11
+ return (_jsxs("details", { className: cn('mc-cite', className), ...props, children: [_jsx("summary", { className: "mc-cite-summary", children: "Cite this page" }), _jsx("p", { className: "mc-cite-text", children: formatCitationText(citation) }), _jsxs("p", { className: "mc-cite-downloads", children: [_jsx(Button, { variant: "secondary", href: risHref, download: true, children: "Download RIS" }), _jsx(Button, { variant: "secondary", href: bibHref, download: true, children: "Download BibTeX" })] })] }));
12
+ }
13
+ //# sourceMappingURL=CiteThisPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CiteThisPage.js","sourceRoot":"","sources":["../../src/tools/CiteThisPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAiB,MAAM,WAAW,CAAA;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAa5B;;2BAE2B;AAC3B,MAAM,UAAU,YAAY,CAAC,EAC3B,QAAQ,EACR,OAAO,EACP,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACU;IAClB,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE;QAAE,OAAO,IAAI,CAAA;IACtC,OAAO,CACL,mBAAS,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,KAAM,KAAK,aACrD,kBAAS,SAAS,EAAC,iBAAiB,+BAAyB,EAC7D,YAAG,SAAS,EAAC,cAAc,YAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAK,EAC9D,aAAG,SAAS,EAAC,mBAAmB,aAC9B,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,mCAE1C,EACT,KAAC,MAAM,IAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,sCAE1C,IACP,IACI,CACX,CAAA;AACH,CAAC"}
@@ -0,0 +1,18 @@
1
+ /** What a page says about itself. `authors` are written as the citation should
2
+ * print them, as `Family, Given`; `date` is ISO, `2026`, `2026-11` or
3
+ * `2026-11-10`. The page owns the url and its permanence. */
4
+ export type Citation = {
5
+ title: string;
6
+ authors: string[];
7
+ date: string;
8
+ publisher: string;
9
+ url: string;
10
+ };
11
+ /** The citation as RIS: type `ELEC`, one `AU` per author, ending `ER - `. */
12
+ export declare function formatRis(c: Citation): string;
13
+ /** The citation as one BibTeX `@misc` entry. Text is escaped; the url is
14
+ * verbatim, as `url` and `\url` read it literally. */
15
+ export declare function formatBibtex(c: Citation): string;
16
+ /** The citation as the sentence a page shows: authors (date). Title.
17
+ * Publisher. url */
18
+ export declare function formatCitationText(c: Citation): string;
@@ -0,0 +1,73 @@
1
+ const DATE = /^(\d{4})(?:-(\d{2}))?(?:-(\d{2}))?/;
2
+ /** One line of text: a newline in a value would end its RIS field. */
3
+ const flat = (value) => value.replace(/\s+/g, ' ').trim();
4
+ const ris = (tag, value) => value ? [`${tag} - ${flat(value)}`] : [];
5
+ /** The citation as RIS: type `ELEC`, one `AU` per author, ending `ER - `. */
6
+ export function formatRis(c) {
7
+ const [, year, month, day] = DATE.exec(c.date) ?? [];
8
+ const date = [year, month, day].filter(Boolean).join('/');
9
+ return [
10
+ 'TY - ELEC',
11
+ ...ris('TI', c.title),
12
+ ...c.authors.flatMap((a) => ris('AU', a)),
13
+ ...ris('PY', year ?? ''),
14
+ ...ris('DA', date),
15
+ ...ris('PB', c.publisher),
16
+ ...ris('UR', c.url),
17
+ 'ER - ',
18
+ ].join('\n');
19
+ }
20
+ const TEX = {
21
+ '\\': '\\textbackslash{}',
22
+ '{': '\\{',
23
+ '}': '\\}',
24
+ '%': '\\%',
25
+ '&': '\\&',
26
+ '#': '\\#',
27
+ _: '\\_',
28
+ };
29
+ const tex = (value) => flat(value).replace(/[\\{}%&#_]/g, (c) => TEX[c]);
30
+ /** The key: the first author's family name and the year, as `doe2026`. */
31
+ function bibKey(c, year) {
32
+ const family = (c.authors[0] ?? '').split(',')[0].split(' ').pop();
33
+ return ((family + (year ?? '')).toLowerCase().replace(/[^a-z0-9]/g, '') || 'cite');
34
+ }
35
+ /** The citation as one BibTeX `@misc` entry. Text is escaped; the url is
36
+ * verbatim, as `url` and `\url` read it literally. */
37
+ export function formatBibtex(c) {
38
+ const [, year, month] = DATE.exec(c.date) ?? [];
39
+ const fields = [
40
+ ['title', tex(c.title)],
41
+ ['author', c.authors.map(tex).join(' and ')],
42
+ ['year', year ?? ''],
43
+ ['month', month ? String(Number(month)) : ''],
44
+ ['publisher', tex(c.publisher)],
45
+ ['url', flat(c.url)],
46
+ ['howpublished', c.url ? `\\url{${flat(c.url)}}` : ''],
47
+ ];
48
+ const body = fields
49
+ .filter(([, value]) => value)
50
+ .map(([name, value]) => ` ${name} = {${value}}`)
51
+ .join(',\n');
52
+ return `@misc{${bibKey(c, year)},\n${body}\n}\n`;
53
+ }
54
+ /** Authors as a sentence: `A`, `A and B`, `A, B, and C`. */
55
+ const names = (authors) => authors.length < 3
56
+ ? authors.join(' and ')
57
+ : `${authors.slice(0, -1).join(', ')}, and ${authors.at(-1)}`;
58
+ /** The citation as the sentence a page shows: authors (date). Title.
59
+ * Publisher. url */
60
+ export function formatCitationText(c) {
61
+ const who = names(c.authors.map(flat).filter(Boolean));
62
+ const when = flat(c.date);
63
+ const lead = [who, when && `(${when})`].filter(Boolean).join(' ');
64
+ const sentence = (part) => (part.endsWith('.') ? part : `${part}.`);
65
+ return [lead, c.title, c.publisher]
66
+ .map(flat)
67
+ .filter(Boolean)
68
+ .map(sentence)
69
+ .concat(flat(c.url))
70
+ .filter(Boolean)
71
+ .join(' ');
72
+ }
73
+ //# sourceMappingURL=cite.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cite.js","sourceRoot":"","sources":["../../src/tools/cite.ts"],"names":[],"mappings":"AAWA,MAAM,IAAI,GAAG,oCAAoC,CAAA;AAEjD,sEAAsE;AACtE,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAA;AAEjE,MAAM,GAAG,GAAG,CAAC,GAAW,EAAE,KAAa,EAAE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,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAA;IAC3E,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC;SAChC,GAAG,CAAC,IAAI,CAAC;SACT,MAAM,CAAC,OAAO,CAAC;SACf,GAAG,CAAC,QAAQ,CAAC;SACb,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;SACnB,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,GAAG,CAAC,CAAA;AACd,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metacensus/library-ui",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "MetaCensus brand layer and UI tools for React.",
5
5
  "license": "AGPL-3.0-only AND LicenseRef-MetaCensus-Marks",
6
6
  "repository": {
@@ -360,6 +360,33 @@
360
360
  color: var(--mc-tint-blue-ink);
361
361
  }
362
362
 
363
+ /* CiteThisPage: a disclosure on the card role. */
364
+ .mc-cite {
365
+ padding: 0.75rem 1rem;
366
+ border: 1px solid var(--mc-hairline);
367
+ border-radius: var(--mc-radius);
368
+ background: var(--mc-card);
369
+ color: var(--mc-ink);
370
+ }
371
+ .mc-cite-summary {
372
+ cursor: pointer;
373
+ font-weight: 500;
374
+ }
375
+ .mc-cite-summary:focus-visible {
376
+ outline: 2px solid var(--mc-line-accent);
377
+ outline-offset: 2px;
378
+ }
379
+ .mc-cite-text {
380
+ margin: 0.75rem 0;
381
+ overflow-wrap: anywhere;
382
+ }
383
+ .mc-cite-downloads {
384
+ display: flex;
385
+ flex-wrap: wrap;
386
+ gap: 0.5rem;
387
+ margin: 0;
388
+ }
389
+
363
390
  /* Form kit. */
364
391
  .mc-field {
365
392
  display: flex;