@curvenote/renderers 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/articles.js +1 -1
- package/dist/components/admonition.js +1 -1
- package/dist/components/cite-figurebar.js +1 -1
- package/dist/components/cite.js +1 -1
- package/dist/components/faq.js +1 -1
- package/dist/components/hero.js +1 -1
- package/dist/components/images.js +1 -1
- package/dist/components/pdb.js +1 -1
- package/package.json +5 -5
package/dist/articles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ArticleCard } from '@curvenote-
|
|
2
|
+
import { ArticleCard } from '@curvenote/theme-ui';
|
|
3
3
|
const ArticlesRenderer = ({ node }) => {
|
|
4
4
|
return (_jsxs("div", { children: [!node.error && (_jsx("div", { className: "space-y-6", children: node.items.map((article) => (_jsx(ArticleCard, { to: `/articles/${article.slug ?? article.id}`, article: article, showThumbnails: node['show-thumbnails'] ?? false, showAuthors: node['show-authors'] ?? false, showDoi: node['show-doi'] ?? false, showDate: node['show-date'] ?? false }, article.id))) })), !node.error && node.items.length === 0 && (_jsx("div", { className: "px-2 py-4 text-gray-600 border-gray-500 border-gray-[1px] rounded-sm bg-gray-50", children: "There are no articles in this listing yet." })), node.error && (_jsx("div", { className: "text-red-500 p-4 my-2 bg-red-50 border-[1px] border-red-500 rounded-sm", children: node.error }))] }));
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger, Button, SimpleTooltip, } from '@curvenote-
|
|
2
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger, Button, SimpleTooltip, } from '@curvenote/theme-ui';
|
|
3
3
|
import { ChevronRight, Link as LinkIcon, Info, AlertTriangle, AlertCircle, XCircle, Megaphone, Lightbulb, Zap, ArrowRight, SquarePen, } from 'lucide-react';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import { MyST } from 'myst-to-react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import useSWR from 'swr';
|
|
3
3
|
import { selectAll } from 'unist-util-select';
|
|
4
|
-
import { Image, LightboxContainer } from '@curvenote-
|
|
4
|
+
import { Image, LightboxContainer } from '@curvenote/theme-ui';
|
|
5
5
|
import { cn } from '@curvenote/react-utils';
|
|
6
6
|
import { MyST } from 'myst-to-react';
|
|
7
7
|
import { doi } from 'doi-utils';
|
package/dist/components/cite.js
CHANGED
|
@@ -8,7 +8,7 @@ import { cn } from '@curvenote/react-utils';
|
|
|
8
8
|
import { InlineError } from './inlineError';
|
|
9
9
|
import { useOpenAlexWork } from '../hooks/useOpenAlex';
|
|
10
10
|
import { reverseInvertedAbstract, formatAuthors } from '../utils/abstract';
|
|
11
|
-
import { LinkCard } from '@curvenote-
|
|
11
|
+
import { LinkCard } from '@curvenote/theme-ui';
|
|
12
12
|
import { CiteFigureBar } from './cite-figurebar';
|
|
13
13
|
import { fromHtml } from 'hast-util-from-html';
|
|
14
14
|
import { toMdast } from 'hast-util-to-mdast';
|
package/dist/components/faq.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger, Button, SimpleTooltip, } from '@curvenote-
|
|
2
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger, Button, SimpleTooltip, } from '@curvenote/theme-ui';
|
|
3
3
|
import { ChevronRight, Link } from 'lucide-react';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import { MyST } from 'myst-to-react';
|
package/dist/components/hero.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import {} from '@myst-theme/providers';
|
|
3
|
-
import { Image } from '@curvenote-
|
|
3
|
+
import { Image } from '@curvenote/theme-ui';
|
|
4
4
|
const ImageRenderer = ({ node }) => {
|
|
5
5
|
return (_jsx(Image, { src: node.url, srcOptimized: node.urlOptimized, urlSource: node.urlSource, alt: node.alt }));
|
|
6
6
|
};
|
package/dist/components/pdb.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { default as useSWR } from 'swr';
|
|
3
3
|
import { HoverPopover, MyST } from 'myst-to-react';
|
|
4
|
-
import { LinkCard } from '@curvenote-
|
|
4
|
+
import { LinkCard } from '@curvenote/theme-ui';
|
|
5
5
|
const createQuery = (id) => `{"query":"query structure ($id: String!) {\n entry(entry_id:$id){\n rcsb_id\n struct {\n title\n }\n pubmed {\n rcsb_pubmed_container_identifiers {\n pubmed_id\n }\n rcsb_pubmed_central_id\n rcsb_pubmed_doi\n rcsb_pubmed_abstract_text\n rcsb_pubmed_affiliation_info\n }\n }\n}\n","variables":{"id":"${id}"},"operationName":"structure"}`;
|
|
6
6
|
const fetcher = (id) => fetch('https://data.rcsb.org/graphql', {
|
|
7
7
|
method: 'post',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curvenote/renderers",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"prepublishOnly": "npm run build"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@curvenote-
|
|
31
|
+
"@curvenote/theme-ui": "^1.0.1",
|
|
32
32
|
"@curvenote/any-widget": "^0.2.1",
|
|
33
33
|
"@curvenote/common": "^0.3.4",
|
|
34
|
-
"@curvenote/ext-blog": "^1.0.
|
|
35
|
-
"@curvenote/ext-person": "^1.0.
|
|
36
|
-
"@curvenote/react-utils": "^1.0.
|
|
34
|
+
"@curvenote/ext-blog": "^1.0.1",
|
|
35
|
+
"@curvenote/ext-person": "^1.0.1",
|
|
36
|
+
"@curvenote/react-utils": "^1.0.1",
|
|
37
37
|
"@scienceicons/react": "^0.0.13",
|
|
38
38
|
"class-variance-authority": "^0.7.1",
|
|
39
39
|
"hast-util-from-html": "^2.0.3",
|