@myst-theme/frontmatter 0.5.6 → 0.5.8

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.
Files changed (66) hide show
  1. package/dist/Affiliations.d.ts.map +1 -0
  2. package/dist/{types/AuthorPopover.d.ts → AuthorPopover.d.ts} +1 -1
  3. package/dist/AuthorPopover.d.ts.map +1 -0
  4. package/dist/{esm/AuthorPopover.js → AuthorPopover.js} +1 -1
  5. package/dist/Authors.d.ts.map +1 -0
  6. package/dist/{esm/Authors.js → Authors.js} +2 -2
  7. package/dist/FrontmatterBlock.d.ts.map +1 -0
  8. package/dist/{esm/FrontmatterBlock.js → FrontmatterBlock.js} +4 -4
  9. package/dist/downloads.d.ts.map +1 -0
  10. package/dist/{esm/downloads.js → downloads.js} +1 -2
  11. package/dist/index.d.ts +6 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +5 -0
  14. package/dist/licenses.d.ts.map +1 -0
  15. package/dist/{esm/licenses.js → licenses.js} +1 -1
  16. package/package.json +11 -10
  17. package/dist/cjs/Affiliations.d.ts.map +0 -1
  18. package/dist/cjs/Affiliations.js +0 -28
  19. package/dist/cjs/AuthorPopover.d.ts +0 -11
  20. package/dist/cjs/AuthorPopover.d.ts.map +0 -1
  21. package/dist/cjs/AuthorPopover.js +0 -39
  22. package/dist/cjs/Authors.d.ts.map +0 -1
  23. package/dist/cjs/Authors.js +0 -39
  24. package/dist/cjs/FrontmatterBlock.d.ts.map +0 -1
  25. package/dist/cjs/FrontmatterBlock.js +0 -93
  26. package/dist/cjs/downloads.d.ts.map +0 -1
  27. package/dist/cjs/downloads.js +0 -80
  28. package/dist/cjs/index.d.ts +0 -6
  29. package/dist/cjs/index.d.ts.map +0 -1
  30. package/dist/cjs/index.js +0 -21
  31. package/dist/cjs/licenses.d.ts.map +0 -1
  32. package/dist/cjs/licenses.js +0 -43
  33. package/dist/esm/Affiliations.d.ts +0 -8
  34. package/dist/esm/Affiliations.d.ts.map +0 -1
  35. package/dist/esm/AuthorPopover.d.ts +0 -11
  36. package/dist/esm/AuthorPopover.d.ts.map +0 -1
  37. package/dist/esm/Authors.d.ts +0 -15
  38. package/dist/esm/Authors.d.ts.map +0 -1
  39. package/dist/esm/FrontmatterBlock.d.ts +0 -37
  40. package/dist/esm/FrontmatterBlock.d.ts.map +0 -1
  41. package/dist/esm/downloads.d.ts +0 -32
  42. package/dist/esm/downloads.d.ts.map +0 -1
  43. package/dist/esm/index.d.ts +0 -6
  44. package/dist/esm/index.d.ts.map +0 -1
  45. package/dist/esm/index.js +0 -5
  46. package/dist/esm/licenses.d.ts +0 -22
  47. package/dist/esm/licenses.d.ts.map +0 -1
  48. package/dist/types/Affiliations.d.ts +0 -8
  49. package/dist/types/Affiliations.d.ts.map +0 -1
  50. package/dist/types/AuthorPopover.d.ts.map +0 -1
  51. package/dist/types/Authors.d.ts +0 -15
  52. package/dist/types/Authors.d.ts.map +0 -1
  53. package/dist/types/FrontmatterBlock.d.ts +0 -37
  54. package/dist/types/FrontmatterBlock.d.ts.map +0 -1
  55. package/dist/types/downloads.d.ts +0 -32
  56. package/dist/types/downloads.d.ts.map +0 -1
  57. package/dist/types/index.d.ts +0 -6
  58. package/dist/types/index.d.ts.map +0 -1
  59. package/dist/types/licenses.d.ts +0 -22
  60. package/dist/types/licenses.d.ts.map +0 -1
  61. /package/dist/{cjs/Affiliations.d.ts → Affiliations.d.ts} +0 -0
  62. /package/dist/{esm/Affiliations.js → Affiliations.js} +0 -0
  63. /package/dist/{cjs/Authors.d.ts → Authors.d.ts} +0 -0
  64. /package/dist/{cjs/FrontmatterBlock.d.ts → FrontmatterBlock.d.ts} +0 -0
  65. /package/dist/{cjs/downloads.d.ts → downloads.d.ts} +0 -0
  66. /package/dist/{cjs/licenses.d.ts → licenses.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Affiliations.d.ts","sourceRoot":"","sources":["../src/Affiliations.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,KAAK,YAAY,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC;AAG9D,wBAAgB,WAAW,CAAC,EAC1B,YAAY,EACZ,aAAa,GACd,EAAE;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,kDAsBA"}
@@ -3,7 +3,7 @@ import type { PageFrontmatter } from 'myst-frontmatter';
3
3
  type Author = Required<PageFrontmatter>['authors'][0];
4
4
  type Affiliations = Required<PageFrontmatter>['affiliations'];
5
5
  export declare const AuthorPopover: ({ author, affiliations, children, }: {
6
- author?: import("myst-frontmatter").Author | undefined;
6
+ author?: import("myst-frontmatter").Contributor | undefined;
7
7
  affiliations?: import("myst-frontmatter").Affiliation[] | undefined;
8
8
  children: React.ReactNode;
9
9
  }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthorPopover.d.ts","sourceRoot":"","sources":["../src/AuthorPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,KAAK,MAAM,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACtD,KAAK,YAAY,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC;AAW9D,eAAO,MAAM,aAAa;;;cAOd,MAAM,SAAS;6CAsG1B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import * as Popover from '@radix-ui/react-popover';
3
- import { Affiliation } from './Affiliations';
3
+ import { Affiliation } from './Affiliations.js';
4
4
  function Definition({ title, children }) {
5
5
  return (_jsxs("div", { className: "px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0", children: [_jsx("dt", { className: "text-sm font-medium leading-6 text-gray-900", children: title }), _jsx("dd", { className: "mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0", children: children })] }));
6
6
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Authors.d.ts","sourceRoot":"","sources":["../src/Authors.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKxD,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,YAAY,EACZ,SAAS,GACV,EAAE;IACD,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAqDA;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;CAC/C,kDAgBA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;CAC/C,kDAyCA"}
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import React from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { OrcidIcon, EmailIcon, TwitterIcon } from '@scienceicons/react/24/solid';
5
- import { AuthorPopover } from './AuthorPopover';
6
- import { Affiliation } from './Affiliations';
5
+ import { AuthorPopover } from './AuthorPopover.js';
6
+ import { Affiliation } from './Affiliations.js';
7
7
  export function Author({ author, affiliations, className, }) {
8
8
  return (_jsxs("span", { className: classNames('font-semibold text-sm', className), children: [_jsx(AuthorPopover, { author: author, affiliations: affiliations, children: author.name }), author.email && author.corresponding && (_jsx("a", { className: "ml-1", href: `mailto:${author.email}`, title: `${author.name} <${author.email}>`, target: "_blank", rel: "noopener noreferrer", children: _jsx(EmailIcon, { width: "1rem", height: "1rem", className: "inline-block text-gray-400 hover:text-blue-400 -translate-y-[0.1em]" }) })), author.orcid && (_jsx("a", { className: "ml-1", href: `https://orcid.org/${author.orcid}`, target: "_blank", rel: "noopener noreferrer", title: "ORCID (Open Researcher and Contributor ID)", children: _jsx(OrcidIcon, { width: "1rem", height: "1rem", className: "inline-block text-gray-400 hover:text-[#A9C751] -translate-y-[0.1em]" }) })), author.twitter && (_jsx("a", { className: "ml-1", href: `https://twitter.com/${author.twitter}`, target: "_blank", rel: "noopener noreferrer", title: `Twitter: ${author.twitter}`, children: _jsx(TwitterIcon, { width: "1rem", height: "1rem", className: "inline-block text-gray-400 hover:text-[#1DA1F2] -translate-y-[0.1em]" }) }))] }));
9
9
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FrontmatterBlock.d.ts","sourceRoot":"","sources":["../src/FrontmatterBlock.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAwB/C,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,kDAe7F;AAED,wBAAgB,QAAQ,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,kDAgB9F;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,MAIC,EACD,MAAM,GACP,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,kDAQA;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,kDAkB1E;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,kDAkBvE;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,EAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,kDAiBzE;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC9C,kDA0BA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,IAA6B,EAC7B,WAAqB,EACrB,UAAU,EACV,WAAW,EACX,SAAS,GACV,EAAE;IACD,WAAW,EAAE,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDAgFA"}
@@ -2,9 +2,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import classNames from 'classnames';
3
3
  import { SourceFileKind } from 'myst-spec-ext';
4
4
  import { JupyterIcon, OpenAccessIcon, GithubIcon, TwitterIcon } from '@scienceicons/react/24/solid';
5
- import { LicenseBadges } from './licenses';
6
- import { DownloadsDropdown } from './downloads';
7
- import { AuthorAndAffiliations, AuthorsList } from './Authors';
5
+ import { LicenseBadges } from './licenses.js';
6
+ import { DownloadsDropdown } from './downloads.js';
7
+ import { AuthorAndAffiliations, AuthorsList } from './Authors.js';
8
8
  function ExternalOrInternalLink({ to, className, title, children, }) {
9
9
  return (_jsx("a", { href: to, className: className, title: title, children: children }));
10
10
  }
@@ -73,7 +73,7 @@ export function FrontmatterBlock({ frontmatter, kind = SourceFileKind.Article, a
73
73
  // Nothing to show!
74
74
  return null;
75
75
  }
76
- return (_jsxs("div", { className: classNames(className), children: [showHeaderBlock && (_jsxs("div", { className: "flex items-center h-6 mt-3 mb-5 text-sm font-light", children: [subject && (_jsx("div", { className: classNames('flex-none pr-2 smallcaps', {
76
+ return (_jsxs("div", { id: "skip-to-frontmatter", "aria-label": "article frontmatter", className: classNames(className), children: [showHeaderBlock && (_jsxs("div", { className: "flex items-center h-6 mt-3 mb-5 text-sm font-light", children: [subject && (_jsx("div", { className: classNames('flex-none pr-2 smallcaps', {
77
77
  'border-r mr-2': venue,
78
78
  }), children: subject })), _jsx(Journal, { venue: venue, biblio: biblio }), _jsx("div", { className: "flex-grow" }), !hideBadges && (_jsxs(_Fragment, { children: [_jsx(LicenseBadges, { license: license }), _jsx(OpenAccessBadge, { open_access: open_access }), _jsx(GitHubLink, { github: github }), isJupyter && (_jsx("div", { className: "inline-block mr-1", children: _jsx(JupyterIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block" }) }))] })), !hideExports && _jsx(DownloadsDropdown, { exports: exports })] })), title && _jsx("h1", { className: "mb-0", children: title }), subtitle && _jsx("p", { className: "mt-2 mb-0 lead text-zinc-600 dark:text-zinc-400", children: subtitle }), hasAuthors && authorStyle === 'list' && (_jsx(AuthorsList, { authors: frontmatter.authors, affiliations: frontmatter.affiliations })), hasAuthors && authorStyle === 'block' && (_jsx(AuthorAndAffiliations, { authors: frontmatter.authors, affiliations: frontmatter.affiliations })), hasDateOrDoi && (_jsxs("div", { className: "flex mt-2 text-sm font-light", children: [_jsx(DateString, { date: date, spacer: !!doi }), _jsx(DoiBadge, { doi: doi })] }))] }));
79
79
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"downloads.d.ts","sourceRoot":"","sources":["../src/downloads.tsx"],"names":[],"mappings":"AAKA,KAAK,UAAU,GAAG;IAChB,OAAO,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/D,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAKxE;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBA0BrE;AAED,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,UAAU,kDA2BxD"}
@@ -9,8 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
11
11
  import { Menu } from '@headlessui/react';
12
- import DocumentIcon from '@heroicons/react/24/outline/DocumentIcon';
13
- import ArrowDownTrayIcon from '@heroicons/react/24/outline/ArrowDownTrayIcon';
12
+ import { DocumentIcon, ArrowDownTrayIcon } from '@heroicons/react/24/outline';
14
13
  import classNames from 'classnames';
15
14
  import { useCallback } from 'react';
16
15
  /**
@@ -0,0 +1,6 @@
1
+ export * from './FrontmatterBlock.js';
2
+ export * from './licenses.js';
3
+ export * from './downloads.js';
4
+ export * from './Authors.js';
5
+ export * from './Affiliations.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export * from './FrontmatterBlock.js';
2
+ export * from './licenses.js';
3
+ export * from './downloads.js';
4
+ export * from './Authors.js';
5
+ export * from './Affiliations.js';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"licenses.d.ts","sourceRoot":"","sources":["../src/licenses.tsx"],"names":[],"mappings":"AAYA,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAa,EACb,SAAS,GACV,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDA2DA;AAiDD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,GACV,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;KAAE,CAAC;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDAmBA"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { CcByIcon, CcIcon, CcNcIcon, CcNdIcon, CcSaIcon, CcZeroIcon, OsiIcon, } from '@scienceicons/react/24/solid';
3
- import ScaleIcon from '@heroicons/react/24/outline/ScaleIcon';
3
+ import { ScaleIcon } from '@heroicons/react/24/outline';
4
4
  import classNames from 'classnames';
5
5
  export function CreativeCommonsBadge({ license, preamble = '', className, }) {
6
6
  var _a;
package/package.json CHANGED
@@ -1,28 +1,29 @@
1
1
  {
2
2
  "name": "@myst-theme/frontmatter",
3
- "version": "0.5.6",
4
- "main": "dist/cjs/index.js",
5
- "module": "dist/esm/index.js",
6
- "types": "dist/types/index.d.ts",
3
+ "version": "0.5.8",
4
+ "type": "module",
5
+ "exports": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
7
  "files": [
8
8
  "dist"
9
9
  ],
10
+ "engines": {
11
+ "node": ">=16"
12
+ },
10
13
  "license": "MIT",
11
14
  "scripts": {
12
15
  "clean": "rimraf dist",
13
- "lint": "eslint \"src/**/*.ts*\" \"src/**/*.tsx\" -c ./.eslintrc.js",
16
+ "lint": "eslint \"src/**/*.ts*\" \"src/**/*.tsx\" -c ./.eslintrc.cjs",
14
17
  "lint:format": "prettier --check \"src/**/*.{ts,tsx,md}\"",
15
18
  "dev": "npm-run-all --parallel \"build:* -- --watch\"",
16
- "build:cjs": "tsc --module commonjs --outDir dist/cjs",
17
- "build:esm": "tsc --module es2020 --outDir dist/esm",
18
- "build:types": "tsc --declaration --emitDeclarationOnly --declarationMap --outDir dist/types",
19
- "build": "npm-run-all -l clean -p build:cjs build:esm build:types"
19
+ "build:esm": "tsc",
20
+ "build": "npm-run-all -l clean -p build:esm"
20
21
  },
21
22
  "dependencies": {
22
23
  "@headlessui/react": "^1.7.15",
23
24
  "@heroicons/react": "^2.0.18",
24
25
  "@radix-ui/react-popover": "^1.0.6",
25
- "@scienceicons/react": "^0.0.5",
26
+ "@scienceicons/react": "^0.0.6",
26
27
  "classnames": "^2.3.2",
27
28
  "myst-common": "*",
28
29
  "myst-frontmatter": "*"
@@ -1 +0,0 @@
1
- {"version":3,"file":"Affiliations.d.ts","sourceRoot":"","sources":["../../src/Affiliations.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,KAAK,YAAY,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC;AAG9D,wBAAgB,WAAW,CAAC,EAC1B,YAAY,EACZ,aAAa,GACd,EAAE;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,kDAsBA"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.Affiliation = void 0;
15
- const jsx_runtime_1 = require("react/jsx-runtime");
16
- const solid_1 = require("@scienceicons/react/24/solid");
17
- function Affiliation({ affiliations, affiliationId, }) {
18
- var _a, _b;
19
- if (!affiliations || affiliations.length === 0)
20
- return null;
21
- const affiliationsLookup = Object.fromEntries((_a = affiliations === null || affiliations === void 0 ? void 0 : affiliations.map((_a) => {
22
- var { id } = _a, rest = __rest(_a, ["id"]);
23
- return [id, rest];
24
- })) !== null && _a !== void 0 ? _a : []);
25
- const affiliation = (_b = affiliationsLookup[affiliationId]) !== null && _b !== void 0 ? _b : { name: affiliationId };
26
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [affiliation.name || affiliation.institution, ' ', affiliation.ror && ((0, jsx_runtime_1.jsx)("a", { className: "ml-1", href: `https://ror.org/${affiliation.ror.replace(/(https?:\/\/)?ror\.org\//, '')}`, target: "_blank", rel: "noopener noreferrer", title: "Research Organization Registry", children: (0, jsx_runtime_1.jsx)(solid_1.RorIcon, { width: "1rem", height: "1rem", className: "inline-block" }) }))] }));
27
- }
28
- exports.Affiliation = Affiliation;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { PageFrontmatter } from 'myst-frontmatter';
3
- type Author = Required<PageFrontmatter>['authors'][0];
4
- type Affiliations = Required<PageFrontmatter>['affiliations'];
5
- export declare const AuthorPopover: ({ author, affiliations, children, }: {
6
- author?: import("myst-frontmatter").Author | undefined;
7
- affiliations?: import("myst-frontmatter").Affiliation[] | undefined;
8
- children: React.ReactNode;
9
- }) => import("react/jsx-runtime").JSX.Element;
10
- export {};
11
- //# sourceMappingURL=AuthorPopover.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthorPopover.d.ts","sourceRoot":"","sources":["../../src/AuthorPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,KAAK,MAAM,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACtD,KAAK,YAAY,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC;AAW9D,eAAO,MAAM,aAAa;;;cAOd,MAAM,SAAS;6CAsG1B,CAAC"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.AuthorPopover = void 0;
27
- const jsx_runtime_1 = require("react/jsx-runtime");
28
- const Popover = __importStar(require("@radix-ui/react-popover"));
29
- const Affiliations_1 = require("./Affiliations");
30
- function Definition({ title, children }) {
31
- return ((0, jsx_runtime_1.jsxs)("div", { className: "px-4 py-2 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0", children: [(0, jsx_runtime_1.jsx)("dt", { className: "text-sm font-medium leading-6 text-gray-900", children: title }), (0, jsx_runtime_1.jsx)("dd", { className: "mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0", children: children })] }));
32
- }
33
- const AuthorPopover = ({ author, affiliations, children, }) => {
34
- var _a;
35
- if (!author)
36
- return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children });
37
- return ((0, jsx_runtime_1.jsxs)(Popover.Root, { children: [(0, jsx_runtime_1.jsx)(Popover.Trigger, { asChild: true, children: (0, jsx_runtime_1.jsx)("button", { className: "focus:shadow-[0_0_0_2px] focus:shadow-black outline-none hover:underline", "aria-label": "Author Details", children: children }) }), (0, jsx_runtime_1.jsx)(Popover.Portal, { children: (0, jsx_runtime_1.jsxs)(Popover.Content, { className: "rounded p-5 w-[400px] bg-white shadow", sideOffset: 5, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col gap-2.5", children: [(0, jsx_runtime_1.jsx)("p", { className: "text-mauve12 text-[15px] leading-[19px] font-medium mb-2.5", children: author.name }), (0, jsx_runtime_1.jsx)("p", { className: "text-mauve12 text-[15px] leading-[19px] font-medium mb-2.5", children: (_a = author.affiliations) === null || _a === void 0 ? void 0 : _a.map((affiliationId) => ((0, jsx_runtime_1.jsx)(Affiliations_1.Affiliation, { affiliations: affiliations, affiliationId: affiliationId }, affiliationId))) }), (0, jsx_runtime_1.jsxs)("dl", { className: "divide-y divide-gray-100", children: [author.email && ((0, jsx_runtime_1.jsx)(Definition, { title: "Email", children: (0, jsx_runtime_1.jsx)("a", { className: "ml-1", href: `mailto:${author.email}`, title: `${author.name} <${author.email}>`, target: "_blank", rel: "noopener noreferrer", children: author.email }) })), author.orcid && ((0, jsx_runtime_1.jsx)(Definition, { title: "ORCID", children: (0, jsx_runtime_1.jsx)("a", { className: "ml-1", href: `https://orcid.org/${author.orcid}`, target: "_blank", rel: "noopener noreferrer", title: "ORCID (Open Researcher and Contributor ID)", children: author.orcid }) })), author.github && ((0, jsx_runtime_1.jsx)(Definition, { title: "GitHub", children: (0, jsx_runtime_1.jsxs)("a", { className: "ml-1", href: `https://github.com/${author.github}`, target: "_blank", rel: "noopener noreferrer", title: `GitHub: ${author.github}`, children: ["@", author.github] }) })), author.twitter && ((0, jsx_runtime_1.jsx)(Definition, { title: "Twitter", children: (0, jsx_runtime_1.jsxs)("a", { className: "ml-1", href: `https://twitter.com/${author.twitter}`, target: "_blank", rel: "noopener noreferrer", title: `Twitter: ${author.twitter}`, children: ["@", author.twitter] }) })), author.url && ((0, jsx_runtime_1.jsx)(Definition, { title: "Website", children: (0, jsx_runtime_1.jsx)("a", { className: "ml-1", href: author.url, target: "_blank", rel: "noopener noreferrer", title: `Author Website`, children: author.url }) })), author.roles && (0, jsx_runtime_1.jsx)(Definition, { title: "Roles", children: author.roles.join(', ') })] })] }), (0, jsx_runtime_1.jsx)(Popover.Arrow, { className: "fill-white" })] }) })] }));
38
- };
39
- exports.AuthorPopover = AuthorPopover;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Authors.d.ts","sourceRoot":"","sources":["../../src/Authors.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKxD,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,YAAY,EACZ,SAAS,GACV,EAAE;IACD,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAqDA;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;CAC/C,kDAgBA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;CAC/C,kDAyCA"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AuthorAndAffiliations = exports.AuthorsList = exports.Author = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const react_1 = __importDefault(require("react"));
9
- const classnames_1 = __importDefault(require("classnames"));
10
- const solid_1 = require("@scienceicons/react/24/solid");
11
- const AuthorPopover_1 = require("./AuthorPopover");
12
- const Affiliations_1 = require("./Affiliations");
13
- function Author({ author, affiliations, className, }) {
14
- return ((0, jsx_runtime_1.jsxs)("span", { className: (0, classnames_1.default)('font-semibold text-sm', className), children: [(0, jsx_runtime_1.jsx)(AuthorPopover_1.AuthorPopover, { author: author, affiliations: affiliations, children: author.name }), author.email && author.corresponding && ((0, jsx_runtime_1.jsx)("a", { className: "ml-1", href: `mailto:${author.email}`, title: `${author.name} <${author.email}>`, target: "_blank", rel: "noopener noreferrer", children: (0, jsx_runtime_1.jsx)(solid_1.EmailIcon, { width: "1rem", height: "1rem", className: "inline-block text-gray-400 hover:text-blue-400 -translate-y-[0.1em]" }) })), author.orcid && ((0, jsx_runtime_1.jsx)("a", { className: "ml-1", href: `https://orcid.org/${author.orcid}`, target: "_blank", rel: "noopener noreferrer", title: "ORCID (Open Researcher and Contributor ID)", children: (0, jsx_runtime_1.jsx)(solid_1.OrcidIcon, { width: "1rem", height: "1rem", className: "inline-block text-gray-400 hover:text-[#A9C751] -translate-y-[0.1em]" }) })), author.twitter && ((0, jsx_runtime_1.jsx)("a", { className: "ml-1", href: `https://twitter.com/${author.twitter}`, target: "_blank", rel: "noopener noreferrer", title: `Twitter: ${author.twitter}`, children: (0, jsx_runtime_1.jsx)(solid_1.TwitterIcon, { width: "1rem", height: "1rem", className: "inline-block text-gray-400 hover:text-[#1DA1F2] -translate-y-[0.1em]" }) }))] }));
15
- }
16
- exports.Author = Author;
17
- function AuthorsList({ authors, affiliations, }) {
18
- if (!authors || authors.length === 0)
19
- return null;
20
- return ((0, jsx_runtime_1.jsx)("div", { children: authors.map((a, i) => ((0, jsx_runtime_1.jsx)(Author, { author: a, affiliations: affiliations, className: (0, classnames_1.default)('inline-block', {
21
- 'text-comma': i < authors.length - 1,
22
- }) }, a.name))) }));
23
- }
24
- exports.AuthorsList = AuthorsList;
25
- function AuthorAndAffiliations({ authors, affiliations, }) {
26
- if (!authors || authors.length === 0)
27
- return null;
28
- const hasAffliations = authors.reduce((r, { affiliations: a }) => r || (!!a && (a === null || a === void 0 ? void 0 : a.length) > 0), false);
29
- if (!hasAffliations) {
30
- return ((0, jsx_runtime_1.jsx)("header", { className: "mt-4 not-prose", children: (0, jsx_runtime_1.jsx)(AuthorsList, { authors: authors, affiliations: affiliations }) }));
31
- }
32
- return ((0, jsx_runtime_1.jsx)("header", { className: "mt-4 not-prose", children: (0, jsx_runtime_1.jsxs)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-y-1", children: [authors.length > 1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "pb-2 text-xs font-thin uppercase", children: "Authors" }), (0, jsx_runtime_1.jsx)("div", { className: "pb-2 text-xs font-thin uppercase", children: "Affiliations" })] })), authors.map((author) => {
33
- var _a;
34
- return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Author, { author: author, affiliations: affiliations }) }), (0, jsx_runtime_1.jsx)("div", { className: "text-sm", children: (_a = author.affiliations) === null || _a === void 0 ? void 0 : _a.map((affiliationId) => {
35
- return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Affiliations_1.Affiliation, { affiliations: affiliations, affiliationId: affiliationId }) }, affiliationId));
36
- }) })] }, author.name));
37
- })] }) }));
38
- }
39
- exports.AuthorAndAffiliations = AuthorAndAffiliations;
@@ -1 +0,0 @@
1
- {"version":3,"file":"FrontmatterBlock.d.ts","sourceRoot":"","sources":["../../src/FrontmatterBlock.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAwB/C,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,kDAe7F;AAED,wBAAgB,QAAQ,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,kDAgB9F;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,MAIC,EACD,MAAM,GACP,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,kDAQA;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,kDAkB1E;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,kDAkBvE;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,EAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,kDAiBzE;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC9C,kDA0BA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,IAA6B,EAC7B,WAAqB,EACrB,UAAU,EACV,WAAW,EACX,SAAS,GACV,EAAE;IACD,WAAW,EAAE,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDA4EA"}
@@ -1,93 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FrontmatterBlock = exports.Journal = exports.OpenAccessBadge = exports.GitHubLink = exports.TwitterLink = exports.DateString = exports.DoiBadge = exports.DoiText = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const classnames_1 = __importDefault(require("classnames"));
9
- const myst_spec_ext_1 = require("myst-spec-ext");
10
- const solid_1 = require("@scienceicons/react/24/solid");
11
- const licenses_1 = require("./licenses");
12
- const downloads_1 = require("./downloads");
13
- const Authors_1 = require("./Authors");
14
- function ExternalOrInternalLink({ to, className, title, children, }) {
15
- return ((0, jsx_runtime_1.jsx)("a", { href: to, className: className, title: title, children: children }));
16
- }
17
- function DoiText({ doi: possibleLink, className }) {
18
- if (!possibleLink)
19
- return null;
20
- const doi = possibleLink.replace(/^(https?:\/\/)?(dx\.)?doi\.org\//, '');
21
- const url = `https://doi.org/${doi}`;
22
- return ((0, jsx_runtime_1.jsx)("a", { className: (0, classnames_1.default)('no-underline text-inherit hover:text-inherit', className), target: "_blank", rel: "noopener noreferrer", href: url, title: "DOI (Digital Object Identifier)", children: url }));
23
- }
24
- exports.DoiText = DoiText;
25
- function DoiBadge({ doi: possibleLink, className }) {
26
- if (!possibleLink)
27
- return null;
28
- const doi = possibleLink.replace(/^(https?:\/\/)?(dx\.)?doi\.org\//, '');
29
- const url = `https://doi.org/${doi}`;
30
- return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('flex-none', className), title: "DOI (Digital Object Identifier)", children: (0, jsx_runtime_1.jsx)("a", { className: "font-light no-underline hover:font-light hover:underline text-inherit hover:text-inherit", target: "_blank", rel: "noopener noreferrer", href: url, children: url }) }));
31
- }
32
- exports.DoiBadge = DoiBadge;
33
- function DateString({ date, format = {
34
- year: 'numeric',
35
- month: 'long',
36
- day: 'numeric',
37
- }, spacer, }) {
38
- if (!date)
39
- return null;
40
- const dateString = new Date(date).toLocaleDateString('en-US', format);
41
- return ((0, jsx_runtime_1.jsx)("time", { dateTime: date, className: (0, classnames_1.default)({ 'text-spacer': spacer }), children: dateString }));
42
- }
43
- exports.DateString = DateString;
44
- function TwitterLink({ twitter: possibleLink }) {
45
- if (!possibleLink)
46
- return null;
47
- const twitter = possibleLink.replace(/^(https?:\/\/)?twitter\.com\//, '');
48
- return ((0, jsx_runtime_1.jsx)("a", { href: `https://twitter.com/${twitter}`, title: `Twitter: ${twitter}`, target: "_blank", rel: "noopener noreferrer", className: "text-inherit hover:text-inherit", children: (0, jsx_runtime_1.jsx)(solid_1.TwitterIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block mr-1 opacity-60 hover:opacity-100" }) }));
49
- }
50
- exports.TwitterLink = TwitterLink;
51
- function GitHubLink({ github: possibleLink }) {
52
- if (!possibleLink)
53
- return null;
54
- const github = possibleLink.replace(/^(https?:\/\/)?github\.com\//, '');
55
- return ((0, jsx_runtime_1.jsx)("a", { href: `https://github.com/${github}`, title: `GitHub Repository: ${github}`, target: "_blank", rel: "noopener noreferrer", className: "text-inherit hover:text-inherit", children: (0, jsx_runtime_1.jsx)(solid_1.GithubIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block mr-1 opacity-60 hover:opacity-100" }) }));
56
- }
57
- exports.GitHubLink = GitHubLink;
58
- function OpenAccessBadge({ open_access }) {
59
- if (!open_access)
60
- return null;
61
- return ((0, jsx_runtime_1.jsx)("a", { href: "https://en.wikipedia.org/wiki/Open_access", target: "_blank", rel: "noopener noreferrer", title: "Open Access", className: "text-inherit hover:text-inherit", children: (0, jsx_runtime_1.jsx)(solid_1.OpenAccessIcon, { width: "1.25rem", height: "1.25rem", className: "mr-1 inline-block opacity-60 hover:opacity-100 hover:text-[#E18435]" }) }));
62
- }
63
- exports.OpenAccessBadge = OpenAccessBadge;
64
- function Journal({ venue, biblio, }) {
65
- if (!venue)
66
- return null;
67
- const { title, url } = typeof venue === 'string' ? { title: venue, url: null } : venue;
68
- if (!title)
69
- return null;
70
- const { volume, issue } = biblio !== null && biblio !== void 0 ? biblio : {};
71
- return ((0, jsx_runtime_1.jsxs)("div", { className: "flex-none mr-2", children: [url ? ((0, jsx_runtime_1.jsx)(ExternalOrInternalLink, { className: "font-semibold no-underline smallcaps", to: url, title: title, children: title })) : ((0, jsx_runtime_1.jsx)("span", { className: "font-semibold smallcaps", children: title })), volume != null && ((0, jsx_runtime_1.jsxs)("span", { className: "pl-2 ml-2 border-l", children: ["Volume ", volume, issue != null && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [", Issue ", issue] })] }))] }));
72
- }
73
- exports.Journal = Journal;
74
- function FrontmatterBlock({ frontmatter, kind = myst_spec_ext_1.SourceFileKind.Article, authorStyle = 'block', hideBadges, hideExports, className, }) {
75
- if (!frontmatter)
76
- return null;
77
- const { title, subtitle, subject, doi, open_access, license, github, venue, biblio, exports, date, authors, } = frontmatter;
78
- const isJupyter = kind === myst_spec_ext_1.SourceFileKind.Notebook;
79
- const hasExports = exports && exports.length > 0;
80
- const hasAuthors = authors && authors.length > 0;
81
- const hasBadges = !!open_access || !!license || !!hasExports || !!isJupyter || !!github;
82
- const hasHeaders = !!subject || !!venue || !!biblio;
83
- const hasDateOrDoi = !!doi || !!date;
84
- const showHeaderBlock = hasHeaders || (hasBadges && !hideBadges) || (hasExports && !hideExports);
85
- if (!title && !subtitle && !showHeaderBlock && !hasAuthors && !hasDateOrDoi) {
86
- // Nothing to show!
87
- return null;
88
- }
89
- return ((0, jsx_runtime_1.jsxs)("div", { className: (0, classnames_1.default)(className), children: [showHeaderBlock && ((0, jsx_runtime_1.jsxs)("div", { className: "flex items-center h-6 mt-3 mb-5 text-sm font-light", children: [subject && ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)('flex-none pr-2 smallcaps', {
90
- 'border-r mr-2': venue,
91
- }), children: subject })), (0, jsx_runtime_1.jsx)(Journal, { venue: venue, biblio: biblio }), (0, jsx_runtime_1.jsx)("div", { className: "flex-grow" }), !hideBadges && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(licenses_1.LicenseBadges, { license: license }), (0, jsx_runtime_1.jsx)(OpenAccessBadge, { open_access: open_access }), (0, jsx_runtime_1.jsx)(GitHubLink, { github: github }), isJupyter && ((0, jsx_runtime_1.jsx)("div", { className: "inline-block mr-1", children: (0, jsx_runtime_1.jsx)(solid_1.JupyterIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block" }) }))] })), !hideExports && (0, jsx_runtime_1.jsx)(downloads_1.DownloadsDropdown, { exports: exports })] })), title && (0, jsx_runtime_1.jsx)("h1", { className: "mb-0", children: title }), subtitle && (0, jsx_runtime_1.jsx)("p", { className: "mt-2 mb-0 lead text-zinc-600 dark:text-zinc-400", children: subtitle }), hasAuthors && authorStyle === 'list' && ((0, jsx_runtime_1.jsx)(Authors_1.AuthorsList, { authors: frontmatter.authors, affiliations: frontmatter.affiliations })), hasAuthors && authorStyle === 'block' && ((0, jsx_runtime_1.jsx)(Authors_1.AuthorAndAffiliations, { authors: frontmatter.authors, affiliations: frontmatter.affiliations })), hasDateOrDoi && ((0, jsx_runtime_1.jsxs)("div", { className: "flex mt-2 text-sm font-light", children: [(0, jsx_runtime_1.jsx)(DateString, { date: date, spacer: !!doi }), (0, jsx_runtime_1.jsx)(DoiBadge, { doi: doi })] }))] }));
92
- }
93
- exports.FrontmatterBlock = FrontmatterBlock;
@@ -1 +0,0 @@
1
- {"version":3,"file":"downloads.d.ts","sourceRoot":"","sources":["../../src/downloads.tsx"],"names":[],"mappings":"AAMA,KAAK,UAAU,GAAG;IAChB,OAAO,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/D,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAKxE;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBA0BrE;AAED,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,UAAU,kDA2BxD"}
@@ -1,80 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.DownloadsDropdown = exports.Download = exports.triggerBlobDownload = exports.triggerDirectDownload = void 0;
16
- const jsx_runtime_1 = require("react/jsx-runtime");
17
- const react_1 = require("@headlessui/react");
18
- const DocumentIcon_1 = __importDefault(require("@heroicons/react/24/outline/DocumentIcon"));
19
- const ArrowDownTrayIcon_1 = __importDefault(require("@heroicons/react/24/outline/ArrowDownTrayIcon"));
20
- const classnames_1 = __importDefault(require("classnames"));
21
- const react_2 = require("react");
22
- /**
23
- * triggerDirectDownload - aims to trigger a direct download for the
24
- *
25
- * @param url - url or resource to download
26
- * @param filename - default filename and extension for dialog / system
27
- * @returns - true or throws
28
- */
29
- function triggerDirectDownload(url, filename) {
30
- return __awaiter(this, void 0, void 0, function* () {
31
- const resp = yield fetch(url);
32
- const blob = yield resp.blob();
33
- return triggerBlobDownload(blob, filename);
34
- });
35
- }
36
- exports.triggerDirectDownload = triggerDirectDownload;
37
- /**
38
- * triggerBlobDownload - aims to trigger a direct download for the
39
- *
40
- * @param blob - blob to download
41
- * @param filename - default filename and extension for dialog / system
42
- * @returns - true or throws
43
- */
44
- function triggerBlobDownload(blob, filename) {
45
- return __awaiter(this, void 0, void 0, function* () {
46
- if (window.navigator && window.navigator.msSaveOrOpenBlob)
47
- return window.navigator.msSaveOrOpenBlob(blob);
48
- const objectUrl = URL.createObjectURL(blob);
49
- const a = document.createElement('a');
50
- a.href = objectUrl;
51
- a.download = filename;
52
- a.style.display = 'none';
53
- a.dispatchEvent(new MouseEvent('click', {
54
- bubbles: true,
55
- cancelable: true,
56
- view: window,
57
- }));
58
- setTimeout(() => {
59
- // For Firefox it is necessary to delay revoking the ObjectURL
60
- URL.revokeObjectURL(objectUrl);
61
- a.remove();
62
- }, 100);
63
- return true;
64
- });
65
- }
66
- exports.triggerBlobDownload = triggerBlobDownload;
67
- function Download({ url, filename, format, className, }) {
68
- const clickDownload = (0, react_2.useCallback)((e) => {
69
- e.preventDefault();
70
- triggerDirectDownload(url, filename);
71
- }, [url, filename]);
72
- return ((0, jsx_runtime_1.jsxs)("a", { className: (0, classnames_1.default)(className, 'flex'), href: url, onClick: clickDownload, children: [(0, jsx_runtime_1.jsxs)("span", { className: "sr-only", children: ["Download as ", format] }), (0, jsx_runtime_1.jsx)(DocumentIcon_1.default, { width: "1.25rem", height: "1.25rem", className: "items-center inline-block mr-2", "aria-hidden": "true" }), filename] }));
73
- }
74
- exports.Download = Download;
75
- function DownloadsDropdown({ exports }) {
76
- if (!exports || exports.length === 0)
77
- return null;
78
- return ((0, jsx_runtime_1.jsxs)(react_1.Menu, { as: "div", className: "relative flex inline-block mx-1 grow-0", children: [(0, jsx_runtime_1.jsxs)(react_1.Menu.Button, { className: "relative", children: [(0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: "Downloads" }), (0, jsx_runtime_1.jsx)(ArrowDownTrayIcon_1.default, { width: "1.25rem", height: "1.25rem", className: "ml-2 -mr-1", "aria-hidden": "true" })] }), (0, jsx_runtime_1.jsx)(react_1.Menu.Items, { className: "absolute overflow-hidden bg-white rounded-sm shadow-lg -right-1 dark:bg-slate-800 ring-1 ring-black ring-opacity-5 focus:outline-none", children: exports.map(({ format, filename, url }, index) => ((0, jsx_runtime_1.jsx)(react_1.Menu.Item, { children: (0, jsx_runtime_1.jsx)(Download, { className: "block p-3 no-underline hover:bg-stone-700 dark:hover:bg-stone-200 hover:text-white dark:hover:text-black", url: url, filename: filename, format: format }) }, index))) })] }));
79
- }
80
- exports.DownloadsDropdown = DownloadsDropdown;
@@ -1,6 +0,0 @@
1
- export * from './FrontmatterBlock';
2
- export * from './licenses';
3
- export * from './downloads';
4
- export * from './Authors';
5
- export * from './Affiliations';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
package/dist/cjs/index.js DELETED
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./FrontmatterBlock"), exports);
18
- __exportStar(require("./licenses"), exports);
19
- __exportStar(require("./downloads"), exports);
20
- __exportStar(require("./Authors"), exports);
21
- __exportStar(require("./Affiliations"), exports);
@@ -1 +0,0 @@
1
- {"version":3,"file":"licenses.d.ts","sourceRoot":"","sources":["../../src/licenses.tsx"],"names":[],"mappings":"AAYA,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAa,EACb,SAAS,GACV,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDA2DA;AAiDD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,GACV,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;KAAE,CAAC;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDAmBA"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.LicenseBadges = exports.CreativeCommonsBadge = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const solid_1 = require("@scienceicons/react/24/solid");
9
- const ScaleIcon_1 = __importDefault(require("@heroicons/react/24/outline/ScaleIcon"));
10
- const classnames_1 = __importDefault(require("classnames"));
11
- function CreativeCommonsBadge({ license, preamble = '', className, }) {
12
- var _a;
13
- const match = /^([CBYSAND0-]+)(?:(?:-)([0-9].[0-9]))?$/.exec(license.id);
14
- if (!license.CC || !match)
15
- return null;
16
- const title = `${preamble}${(_a = license.name) !== null && _a !== void 0 ? _a : license.title} (${license.id})`;
17
- const kind = match[1].toUpperCase();
18
- return ((0, jsx_runtime_1.jsxs)("a", { href: license.url, target: "_blank", rel: "noopener noreferrer", className: (0, classnames_1.default)('opacity-50 hover:opacity-100 text-inherit hover:text-inherit', className), "aria-label": title, children: [(0, jsx_runtime_1.jsx)(solid_1.CcIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block mx-1", title: title }), (kind.startsWith('CC0') || kind.startsWith('CC-0') || kind.includes('ZERO')) && ((0, jsx_runtime_1.jsx)(solid_1.CcZeroIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block mr-1", title: "CC0: Work is in the worldwide public domain" })), kind.includes('BY') && ((0, jsx_runtime_1.jsx)(solid_1.CcByIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block mr-1", title: "Credit must be given to the creator" })), kind.includes('NC') && ((0, jsx_runtime_1.jsx)(solid_1.CcNcIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block mr-1", title: "Only noncommercial uses of the work are permitted" })), kind.includes('SA') && ((0, jsx_runtime_1.jsx)(solid_1.CcSaIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block mr-1", title: "Adaptations must be shared under the same terms" })), kind.includes('ND') && ((0, jsx_runtime_1.jsx)(solid_1.CcNdIcon, { width: "1.25rem", height: "1.25rem", className: "inline-block mr-1", title: "No derivatives or adaptations of the work are permitted" }))] }));
19
- }
20
- exports.CreativeCommonsBadge = CreativeCommonsBadge;
21
- function SingleLicenseBadge({ license: possibleLicense, preamble = '', className, }) {
22
- var _a;
23
- if (!possibleLicense)
24
- return null;
25
- const license = typeof possibleLicense === 'string'
26
- ? { name: '', url: '', id: possibleLicense }
27
- : possibleLicense;
28
- if (!license || Object.keys(license).length === 0)
29
- return null;
30
- if (license.CC) {
31
- return (0, jsx_runtime_1.jsx)(CreativeCommonsBadge, { license: license, preamble: preamble, className: className });
32
- }
33
- return ((0, jsx_runtime_1.jsxs)("a", { href: license.url || undefined, target: "_blank", rel: "noopener noreferrer", title: `${preamble}${(_a = license.name) !== null && _a !== void 0 ? _a : license.title} (${license.id})`, className: "text-inherit hover:text-inherit", children: [!license.osi && ((0, jsx_runtime_1.jsx)(ScaleIcon_1.default, { width: "1.25rem", height: "1.25rem", className: (0, classnames_1.default)('mx-1 inline-block opacity-60 hover:opacity-100', className) })), license.osi && ((0, jsx_runtime_1.jsx)(solid_1.OsiIcon, { width: "1.25rem", height: "1.25rem", className: (0, classnames_1.default)('mx-1 inline-block opacity-60 hover:opacity-100 hover:text-[#599F46]', className) }))] }));
34
- }
35
- function LicenseBadges({ license, className, }) {
36
- if (!license)
37
- return null;
38
- if (typeof license !== 'string' && ('code' in license || 'content' in license)) {
39
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SingleLicenseBadge, { license: license.content, preamble: "Content License: ", className: className }), (0, jsx_runtime_1.jsx)(SingleLicenseBadge, { license: license.code, preamble: "Code License: ", className: className })] }));
40
- }
41
- return (0, jsx_runtime_1.jsx)(SingleLicenseBadge, { license: license, className: className });
42
- }
43
- exports.LicenseBadges = LicenseBadges;
@@ -1,8 +0,0 @@
1
- import type { PageFrontmatter } from 'myst-frontmatter';
2
- type Affiliations = Required<PageFrontmatter>['affiliations'];
3
- export declare function Affiliation({ affiliations, affiliationId, }: {
4
- affiliationId: string;
5
- affiliations?: Affiliations;
6
- }): import("react/jsx-runtime").JSX.Element | null;
7
- export {};
8
- //# sourceMappingURL=Affiliations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Affiliations.d.ts","sourceRoot":"","sources":["../../src/Affiliations.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,KAAK,YAAY,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC;AAG9D,wBAAgB,WAAW,CAAC,EAC1B,YAAY,EACZ,aAAa,GACd,EAAE;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,kDAsBA"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { PageFrontmatter } from 'myst-frontmatter';
3
- type Author = Required<PageFrontmatter>['authors'][0];
4
- type Affiliations = Required<PageFrontmatter>['affiliations'];
5
- export declare const AuthorPopover: ({ author, affiliations, children, }: {
6
- author?: import("myst-frontmatter").Author | undefined;
7
- affiliations?: import("myst-frontmatter").Affiliation[] | undefined;
8
- children: React.ReactNode;
9
- }) => import("react/jsx-runtime").JSX.Element;
10
- export {};
11
- //# sourceMappingURL=AuthorPopover.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthorPopover.d.ts","sourceRoot":"","sources":["../../src/AuthorPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,KAAK,MAAM,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACtD,KAAK,YAAY,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC;AAW9D,eAAO,MAAM,aAAa;;;cAOd,MAAM,SAAS;6CAsG1B,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { PageFrontmatter } from 'myst-frontmatter';
2
- export declare function Author({ author, affiliations, className, }: {
3
- author: Required<PageFrontmatter>['authors'][0];
4
- affiliations: PageFrontmatter['affiliations'];
5
- className?: string;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- export declare function AuthorsList({ authors, affiliations, }: {
8
- authors: PageFrontmatter['authors'];
9
- affiliations: PageFrontmatter['affiliations'];
10
- }): import("react/jsx-runtime").JSX.Element | null;
11
- export declare function AuthorAndAffiliations({ authors, affiliations, }: {
12
- authors: PageFrontmatter['authors'];
13
- affiliations: PageFrontmatter['affiliations'];
14
- }): import("react/jsx-runtime").JSX.Element | null;
15
- //# sourceMappingURL=Authors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Authors.d.ts","sourceRoot":"","sources":["../../src/Authors.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKxD,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,YAAY,EACZ,SAAS,GACV,EAAE;IACD,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAqDA;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;CAC/C,kDAgBA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;CAC/C,kDAyCA"}
@@ -1,37 +0,0 @@
1
- import type { PageFrontmatter } from 'myst-frontmatter';
2
- import { SourceFileKind } from 'myst-spec-ext';
3
- export declare function DoiText({ doi: possibleLink, className }: {
4
- doi?: string;
5
- className?: string;
6
- }): import("react/jsx-runtime").JSX.Element | null;
7
- export declare function DoiBadge({ doi: possibleLink, className }: {
8
- doi?: string;
9
- className?: string;
10
- }): import("react/jsx-runtime").JSX.Element | null;
11
- export declare function DateString({ date, format, spacer, }: {
12
- date?: string;
13
- format?: Intl.DateTimeFormatOptions;
14
- spacer?: boolean;
15
- }): import("react/jsx-runtime").JSX.Element | null;
16
- export declare function TwitterLink({ twitter: possibleLink }: {
17
- twitter?: string;
18
- }): import("react/jsx-runtime").JSX.Element | null;
19
- export declare function GitHubLink({ github: possibleLink }: {
20
- github?: string;
21
- }): import("react/jsx-runtime").JSX.Element | null;
22
- export declare function OpenAccessBadge({ open_access }: {
23
- open_access?: boolean;
24
- }): import("react/jsx-runtime").JSX.Element | null;
25
- export declare function Journal({ venue, biblio, }: {
26
- venue?: Required<PageFrontmatter>['venue'];
27
- biblio?: Required<PageFrontmatter>['biblio'];
28
- }): import("react/jsx-runtime").JSX.Element | null;
29
- export declare function FrontmatterBlock({ frontmatter, kind, authorStyle, hideBadges, hideExports, className, }: {
30
- frontmatter: PageFrontmatter;
31
- kind?: SourceFileKind;
32
- authorStyle?: 'block' | 'list';
33
- hideBadges?: boolean;
34
- hideExports?: boolean;
35
- className?: string;
36
- }): import("react/jsx-runtime").JSX.Element | null;
37
- //# sourceMappingURL=FrontmatterBlock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FrontmatterBlock.d.ts","sourceRoot":"","sources":["../../src/FrontmatterBlock.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAwB/C,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,kDAe7F;AAED,wBAAgB,QAAQ,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,kDAgB9F;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,MAIC,EACD,MAAM,GACP,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,kDAQA;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,kDAkB1E;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,kDAkBvE;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,EAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,kDAiBzE;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC9C,kDA0BA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,IAA6B,EAC7B,WAAqB,EACrB,UAAU,EACV,WAAW,EACX,SAAS,GACV,EAAE;IACD,WAAW,EAAE,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDA4EA"}
@@ -1,32 +0,0 @@
1
- type HasExports = {
2
- exports?: {
3
- format: string;
4
- filename: string;
5
- url: string;
6
- }[];
7
- };
8
- /**
9
- * triggerDirectDownload - aims to trigger a direct download for the
10
- *
11
- * @param url - url or resource to download
12
- * @param filename - default filename and extension for dialog / system
13
- * @returns - true or throws
14
- */
15
- export declare function triggerDirectDownload(url: string, filename: string): Promise<any>;
16
- /**
17
- * triggerBlobDownload - aims to trigger a direct download for the
18
- *
19
- * @param blob - blob to download
20
- * @param filename - default filename and extension for dialog / system
21
- * @returns - true or throws
22
- */
23
- export declare function triggerBlobDownload(blob: Blob, filename: string): Promise<any>;
24
- export declare function Download({ url, filename, format, className, }: {
25
- url: string;
26
- filename: string;
27
- format: string;
28
- className?: string;
29
- }): import("react/jsx-runtime").JSX.Element;
30
- export declare function DownloadsDropdown({ exports }: HasExports): import("react/jsx-runtime").JSX.Element | null;
31
- export {};
32
- //# sourceMappingURL=downloads.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"downloads.d.ts","sourceRoot":"","sources":["../../src/downloads.tsx"],"names":[],"mappings":"AAMA,KAAK,UAAU,GAAG;IAChB,OAAO,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/D,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAKxE;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBA0BrE;AAED,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,UAAU,kDA2BxD"}
@@ -1,6 +0,0 @@
1
- export * from './FrontmatterBlock';
2
- export * from './licenses';
3
- export * from './downloads';
4
- export * from './Authors';
5
- export * from './Affiliations';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
package/dist/esm/index.js DELETED
@@ -1,5 +0,0 @@
1
- export * from './FrontmatterBlock';
2
- export * from './licenses';
3
- export * from './downloads';
4
- export * from './Authors';
5
- export * from './Affiliations';
@@ -1,22 +0,0 @@
1
- type License = {
2
- name: string;
3
- url: string;
4
- id: string;
5
- free?: boolean;
6
- CC?: boolean;
7
- osi?: boolean;
8
- };
9
- export declare function CreativeCommonsBadge({ license, preamble, className, }: {
10
- license: License;
11
- preamble?: string;
12
- className?: string;
13
- }): import("react/jsx-runtime").JSX.Element | null;
14
- export declare function LicenseBadges({ license, className, }: {
15
- license?: string | License | {
16
- code?: License | string;
17
- content?: License | string;
18
- };
19
- className?: string;
20
- }): import("react/jsx-runtime").JSX.Element | null;
21
- export {};
22
- //# sourceMappingURL=licenses.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"licenses.d.ts","sourceRoot":"","sources":["../../src/licenses.tsx"],"names":[],"mappings":"AAYA,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAa,EACb,SAAS,GACV,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDA2DA;AAiDD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,GACV,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;KAAE,CAAC;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDAmBA"}
@@ -1,8 +0,0 @@
1
- import type { PageFrontmatter } from 'myst-frontmatter';
2
- type Affiliations = Required<PageFrontmatter>['affiliations'];
3
- export declare function Affiliation({ affiliations, affiliationId, }: {
4
- affiliationId: string;
5
- affiliations?: Affiliations;
6
- }): import("react/jsx-runtime").JSX.Element | null;
7
- export {};
8
- //# sourceMappingURL=Affiliations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Affiliations.d.ts","sourceRoot":"","sources":["../../src/Affiliations.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,KAAK,YAAY,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC;AAG9D,wBAAgB,WAAW,CAAC,EAC1B,YAAY,EACZ,aAAa,GACd,EAAE;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,kDAsBA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AuthorPopover.d.ts","sourceRoot":"","sources":["../../src/AuthorPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD,KAAK,MAAM,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACtD,KAAK,YAAY,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC,cAAc,CAAC,CAAC;AAW9D,eAAO,MAAM,aAAa;;;cAOd,MAAM,SAAS;6CAsG1B,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { PageFrontmatter } from 'myst-frontmatter';
2
- export declare function Author({ author, affiliations, className, }: {
3
- author: Required<PageFrontmatter>['authors'][0];
4
- affiliations: PageFrontmatter['affiliations'];
5
- className?: string;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- export declare function AuthorsList({ authors, affiliations, }: {
8
- authors: PageFrontmatter['authors'];
9
- affiliations: PageFrontmatter['affiliations'];
10
- }): import("react/jsx-runtime").JSX.Element | null;
11
- export declare function AuthorAndAffiliations({ authors, affiliations, }: {
12
- authors: PageFrontmatter['authors'];
13
- affiliations: PageFrontmatter['affiliations'];
14
- }): import("react/jsx-runtime").JSX.Element | null;
15
- //# sourceMappingURL=Authors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Authors.d.ts","sourceRoot":"","sources":["../../src/Authors.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKxD,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,YAAY,EACZ,SAAS,GACV,EAAE;IACD,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAqDA;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;CAC/C,kDAgBA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACpC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC,CAAC;CAC/C,kDAyCA"}
@@ -1,37 +0,0 @@
1
- import type { PageFrontmatter } from 'myst-frontmatter';
2
- import { SourceFileKind } from 'myst-spec-ext';
3
- export declare function DoiText({ doi: possibleLink, className }: {
4
- doi?: string;
5
- className?: string;
6
- }): import("react/jsx-runtime").JSX.Element | null;
7
- export declare function DoiBadge({ doi: possibleLink, className }: {
8
- doi?: string;
9
- className?: string;
10
- }): import("react/jsx-runtime").JSX.Element | null;
11
- export declare function DateString({ date, format, spacer, }: {
12
- date?: string;
13
- format?: Intl.DateTimeFormatOptions;
14
- spacer?: boolean;
15
- }): import("react/jsx-runtime").JSX.Element | null;
16
- export declare function TwitterLink({ twitter: possibleLink }: {
17
- twitter?: string;
18
- }): import("react/jsx-runtime").JSX.Element | null;
19
- export declare function GitHubLink({ github: possibleLink }: {
20
- github?: string;
21
- }): import("react/jsx-runtime").JSX.Element | null;
22
- export declare function OpenAccessBadge({ open_access }: {
23
- open_access?: boolean;
24
- }): import("react/jsx-runtime").JSX.Element | null;
25
- export declare function Journal({ venue, biblio, }: {
26
- venue?: Required<PageFrontmatter>['venue'];
27
- biblio?: Required<PageFrontmatter>['biblio'];
28
- }): import("react/jsx-runtime").JSX.Element | null;
29
- export declare function FrontmatterBlock({ frontmatter, kind, authorStyle, hideBadges, hideExports, className, }: {
30
- frontmatter: PageFrontmatter;
31
- kind?: SourceFileKind;
32
- authorStyle?: 'block' | 'list';
33
- hideBadges?: boolean;
34
- hideExports?: boolean;
35
- className?: string;
36
- }): import("react/jsx-runtime").JSX.Element | null;
37
- //# sourceMappingURL=FrontmatterBlock.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FrontmatterBlock.d.ts","sourceRoot":"","sources":["../../src/FrontmatterBlock.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAwB/C,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,kDAe7F;AAED,wBAAgB,QAAQ,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,kDAgB9F;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,MAIC,EACD,MAAM,GACP,EAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;IACpC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,kDAQA;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,kDAkB1E;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,kDAkBvE;AAED,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,EAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,kDAiBzE;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,MAAM,GACP,EAAE;IACD,KAAK,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC;CAC9C,kDA0BA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,IAA6B,EAC7B,WAAqB,EACrB,UAAU,EACV,WAAW,EACX,SAAS,GACV,EAAE;IACD,WAAW,EAAE,eAAe,CAAC;IAC7B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDA4EA"}
@@ -1,32 +0,0 @@
1
- type HasExports = {
2
- exports?: {
3
- format: string;
4
- filename: string;
5
- url: string;
6
- }[];
7
- };
8
- /**
9
- * triggerDirectDownload - aims to trigger a direct download for the
10
- *
11
- * @param url - url or resource to download
12
- * @param filename - default filename and extension for dialog / system
13
- * @returns - true or throws
14
- */
15
- export declare function triggerDirectDownload(url: string, filename: string): Promise<any>;
16
- /**
17
- * triggerBlobDownload - aims to trigger a direct download for the
18
- *
19
- * @param blob - blob to download
20
- * @param filename - default filename and extension for dialog / system
21
- * @returns - true or throws
22
- */
23
- export declare function triggerBlobDownload(blob: Blob, filename: string): Promise<any>;
24
- export declare function Download({ url, filename, format, className, }: {
25
- url: string;
26
- filename: string;
27
- format: string;
28
- className?: string;
29
- }): import("react/jsx-runtime").JSX.Element;
30
- export declare function DownloadsDropdown({ exports }: HasExports): import("react/jsx-runtime").JSX.Element | null;
31
- export {};
32
- //# sourceMappingURL=downloads.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"downloads.d.ts","sourceRoot":"","sources":["../../src/downloads.tsx"],"names":[],"mappings":"AAMA,KAAK,UAAU,GAAG;IAChB,OAAO,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/D,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAKxE;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBA0BrE;AAED,wBAAgB,QAAQ,CAAC,EACvB,GAAG,EACH,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,2CAoBA;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,UAAU,kDA2BxD"}
@@ -1,6 +0,0 @@
1
- export * from './FrontmatterBlock';
2
- export * from './licenses';
3
- export * from './downloads';
4
- export * from './Authors';
5
- export * from './Affiliations';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
@@ -1,22 +0,0 @@
1
- type License = {
2
- name: string;
3
- url: string;
4
- id: string;
5
- free?: boolean;
6
- CC?: boolean;
7
- osi?: boolean;
8
- };
9
- export declare function CreativeCommonsBadge({ license, preamble, className, }: {
10
- license: License;
11
- preamble?: string;
12
- className?: string;
13
- }): import("react/jsx-runtime").JSX.Element | null;
14
- export declare function LicenseBadges({ license, className, }: {
15
- license?: string | License | {
16
- code?: License | string;
17
- content?: License | string;
18
- };
19
- className?: string;
20
- }): import("react/jsx-runtime").JSX.Element | null;
21
- export {};
22
- //# sourceMappingURL=licenses.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"licenses.d.ts","sourceRoot":"","sources":["../../src/licenses.tsx"],"names":[],"mappings":"AAYA,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAa,EACb,SAAS,GACV,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDA2DA;AAiDD,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,GACV,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG;QAAE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;KAAE,CAAC;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,kDAmBA"}
File without changes
File without changes
File without changes
File without changes