@ndlib/component-library 1.0.24 → 1.0.26
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/components/composites/Card/Card.stories.js +3 -3
- package/dist/components/composites/CardV2/CardV2.stories.js +3 -3
- package/dist/components/composites/Seo/SeoDataDisplay/index.js +1 -1
- package/dist/components/composites/Seo/index.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export default meta;
|
|
|
18
18
|
const headlinedCards = [
|
|
19
19
|
{
|
|
20
20
|
headline: 'Exhibit — Printing the Nation: A Century of Irish Book Arts',
|
|
21
|
-
image: 'https://strapi-
|
|
21
|
+
image: 'https://strapi-library-website-cms-t-contentbucket52d4b12c-gc7gxmigxkjj.S3.us-east-1.amazonaws.com/14_15_I_Ten_American_Diaries_29a3788848.jpg',
|
|
22
22
|
size: CARD_SIZE.SM,
|
|
23
23
|
sx: {
|
|
24
24
|
width: '500px',
|
|
@@ -26,7 +26,7 @@ const headlinedCards = [
|
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
headline: 'Paws, Hooves, Fins & Feathers',
|
|
29
|
-
image: 'https://strapi-
|
|
29
|
+
image: 'https://strapi-library-website-cms-t-contentbucket52d4b12c-gc7gxmigxkjj.S3.us-east-1.amazonaws.com/RBSC_Spring2020_Rep_2_a88660826b.jpg',
|
|
30
30
|
size: CARD_SIZE.SM,
|
|
31
31
|
sx: {
|
|
32
32
|
width: '500px',
|
|
@@ -34,7 +34,7 @@ const headlinedCards = [
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
headline: 'Tracy C. Bergstrom, director of the Specialized Collection Services Program',
|
|
37
|
-
image: 'https://strapi-
|
|
37
|
+
image: 'https://strapi-library-website-cms-t-contentbucket52d4b12c-gc7gxmigxkjj.S3.us-east-1.amazonaws.com/Tracy_News_218x275_1dd180dc80.jpg',
|
|
38
38
|
size: CARD_SIZE.SM,
|
|
39
39
|
sx: {
|
|
40
40
|
width: '500px',
|
|
@@ -20,7 +20,7 @@ export default meta;
|
|
|
20
20
|
const headlinedCards = [
|
|
21
21
|
{
|
|
22
22
|
headline: 'Exhibit — Printing the Nation: A Century of Irish Book Arts',
|
|
23
|
-
image: 'https://strapi-
|
|
23
|
+
image: 'https://strapi-library-website-cms-t-contentbucket52d4b12c-gc7gxmigxkjj.S3.us-east-1.amazonaws.com/14_15_I_Ten_American_Diaries_29a3788848.jpg',
|
|
24
24
|
size: CARDV2_SIZE.SM,
|
|
25
25
|
inlineStyles: {
|
|
26
26
|
width: '500px',
|
|
@@ -28,7 +28,7 @@ const headlinedCards = [
|
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
headline: 'Paws, Hooves, Fins & Feathers',
|
|
31
|
-
image: 'https://strapi-
|
|
31
|
+
image: 'https://strapi-library-website-cms-t-contentbucket52d4b12c-gc7gxmigxkjj.S3.us-east-1.amazonaws.com/RBSC_Spring2020_Rep_2_a88660826b.jpg',
|
|
32
32
|
size: CARDV2_SIZE.SM,
|
|
33
33
|
inlineStyles: {
|
|
34
34
|
width: '500px',
|
|
@@ -36,7 +36,7 @@ const headlinedCards = [
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
headline: 'Tracy C. Bergstrom, director of the Specialized Collection Services Program',
|
|
39
|
-
image: 'https://strapi-
|
|
39
|
+
image: 'https://strapi-library-website-cms-t-contentbucket52d4b12c-gc7gxmigxkjj.S3.us-east-1.amazonaws.com/Tracy_News_218x275_1dd180dc80.jpg',
|
|
40
40
|
size: CARDV2_SIZE.SM,
|
|
41
41
|
inlineStyles: {
|
|
42
42
|
width: '500px',
|
|
@@ -3,7 +3,7 @@ import ReactDOMServer from 'react-dom/server';
|
|
|
3
3
|
import pretty from 'pretty';
|
|
4
4
|
import { Seo } from '../index';
|
|
5
5
|
export const SeoDataDisplay = () => {
|
|
6
|
-
const seoHtml = ReactDOMServer.renderToString(_jsx(Seo, { pathname: '
|
|
6
|
+
const seoHtml = ReactDOMServer.renderToString(_jsx(Seo, { pathname: 'news/story_for_website' }));
|
|
7
7
|
return (_jsx("code", { children: _jsx("pre", { children: pretty(seoHtml) }) }));
|
|
8
8
|
};
|
|
9
9
|
export default SeoDataDisplay;
|
|
@@ -6,11 +6,11 @@ export const Seo = ({ title, description, image, nofollow, noindex, pathname, })
|
|
|
6
6
|
title: title || defaultTitle,
|
|
7
7
|
description: description || defaultDescription,
|
|
8
8
|
image: image ? image : defaultImage,
|
|
9
|
-
url:
|
|
9
|
+
url: siteUrl + pathname || '',
|
|
10
10
|
nofollow: nofollow || defaultNofollow,
|
|
11
11
|
noindex: noindex || defaultNoindex,
|
|
12
12
|
twitterUsername,
|
|
13
13
|
};
|
|
14
|
-
return (_jsxs(_Fragment, { children: [_jsx("link", { rel: "canonical", href: seo.url }), seo.title ? _jsx("title", Object.assign({ "data-testid": "seo-title" }, { children: seo.title })) : null, seo.title ? (_jsx("meta", { "data-testid": "seo-twitter-title", name: "twitter:title", content: seo.title })) : null, seo.
|
|
14
|
+
return (_jsxs(_Fragment, { children: [_jsx("link", { rel: "canonical", href: seo.url }), seo.title ? _jsx("title", Object.assign({ "data-testid": "seo-title" }, { children: seo.title })) : null, seo.title ? (_jsx("meta", { "data-testid": "seo-twitter-title", name: "twitter:title", content: seo.title })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-twitter-url", name: "twitter:url", content: seo.url })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-twitter-description", name: "twitter:description", content: seo.description })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-twitter-image", property: "og:image", name: "twitter:image", content: seo.image })) : null, _jsx("meta", { name: "twitter:card", content: "summary_large_image" }), seo.twitterUsername ? (_jsx("meta", { "data-testid": "seo-twitter-creator", name: "twitter:creator", content: seo.twitterUsername })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-og-url", property: "og:url", content: seo.url })) : null, seo.title ? (_jsx("meta", { "data-testid": "seo-og-title", property: "og:title", content: seo.title })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-og-description", property: "og:description", content: seo.description })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-og-image", name: "og:image", content: seo.image })) : null, seo.nofollow ? (_jsx("meta", { "data-testid": "seo-nofollow", name: "robots", content: "nofollow" })) : null, seo.noindex ? (_jsx("meta", { "data-testid": "seo-noindex", name: "robots", content: "noindex" })) : null, _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" })] }));
|
|
15
15
|
};
|
|
16
16
|
export default Seo;
|
package/dist/index.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export { Pill, PILL_SIZE, PILL_TYPE } from './components/elements/Pill';
|
|
|
49
49
|
export { Table, TableColumn } from './components/elements/Table';
|
|
50
50
|
export { TabList, Tab } from './components/elements/TabList';
|
|
51
51
|
export { RawHtml } from './components/elements/RawHtml';
|
|
52
|
+
export { ListBoxV2 } from './components/elements/ListBoxV2';
|
|
52
53
|
export { Card, CARD_SIZE, CARD_LAYOUT } from './components/composites/Card';
|
|
53
54
|
export { CardV2, CARDV2_SIZE, CARDV2_LAYOUT, } from './components/composites/CardV2';
|
|
54
55
|
export { SnackBar } from './components/composites/SnackBar';
|
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ export { Pill, PILL_SIZE, PILL_TYPE } from './components/elements/Pill';
|
|
|
48
48
|
export { Table, TableColumn } from './components/elements/Table';
|
|
49
49
|
export { TabList, Tab } from './components/elements/TabList';
|
|
50
50
|
export { RawHtml } from './components/elements/RawHtml';
|
|
51
|
+
export { ListBoxV2 } from './components/elements/ListBoxV2';
|
|
51
52
|
export { Card, CARD_SIZE, CARD_LAYOUT } from './components/composites/Card';
|
|
52
53
|
export { CardV2, CARDV2_SIZE, CARDV2_LAYOUT, } from './components/composites/CardV2';
|
|
53
54
|
export { SnackBar } from './components/composites/SnackBar';
|