@ndlib/component-library 1.0.7 → 1.0.9

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.
@@ -11,6 +11,6 @@ export const Seo = ({ title, description, image, nofollow, noindex, pathname, })
11
11
  noindex: noindex || defaultNoindex,
12
12
  twitterUsername,
13
13
  };
14
- return (_jsxs(_Fragment, { children: [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.title ? (_jsx("meta", { "data-testid": "seo-og-title", property: "og:title", content: seo.title })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-twitter-url", name: "twitter:url", content: seo.url })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-og-url", property: "og:url", content: seo.url })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-twitter-description", name: "twitter:description", content: seo.description })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-og-description", property: "og:description", content: seo.description })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-twitter-image", name: "twitter:image", content: seo.image })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-og-image", name: "og:image", content: seo.image })) : null, seo.twitterUsername ? (_jsx("meta", { "data-testid": "seo-twitter-creator", name: "twitter:creator", content: seo.twitterUsername })) : 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: "twitter:card", content: "summary_large_image" }), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" })] }));
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.title ? (_jsx("meta", { "data-testid": "seo-og-title", property: "og:title", content: seo.title })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-twitter-url", name: "twitter:url", content: seo.url })) : null, seo.url ? (_jsx("meta", { "data-testid": "seo-og-url", property: "og:url", content: seo.url })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-twitter-description", name: "twitter:description", content: seo.description })) : null, seo.description ? (_jsx("meta", { "data-testid": "seo-og-description", property: "og:description", content: seo.description })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-twitter-image", name: "twitter:image", content: seo.image })) : null, seo.image ? (_jsx("meta", { "data-testid": "seo-og-image", name: "og:image", content: seo.image })) : null, seo.twitterUsername ? (_jsx("meta", { "data-testid": "seo-twitter-creator", name: "twitter:creator", content: seo.twitterUsername })) : 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: "twitter:card", content: "summary_large_image" }), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1" })] }));
15
15
  };
16
16
  export default Seo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndlib/component-library",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -35,8 +35,8 @@
35
35
  "@emotion/styled": "^11.11.0",
36
36
  "@mui/icons-material": "^5.11.16",
37
37
  "@mui/material": "^5.11.16",
38
- "react": "^18.2.0",
39
- "react-dom": "^18.2.0",
38
+ "react": "~18.2.0",
39
+ "react-dom": "~18.2.0",
40
40
  "theme-ui": "^0.16.1"
41
41
  },
42
42
  "devDependencies": {
@@ -54,16 +54,17 @@
54
54
  "@testing-library/react": "^14.0.0",
55
55
  "@testing-library/user-event": "^14.4.3",
56
56
  "@types/pretty": "^2.0.1",
57
- "@types/react": "^18.0.28",
57
+ "@types/react": "18.2.7",
58
58
  "@types/react-beautiful-dnd": "^13.1.5",
59
59
  "@types/react-datepicker": "^4.15.0",
60
- "@types/react-dom": "^18.0.11",
60
+ "@types/react-dom": "18.2.7",
61
61
  "@types/react-modal": "^3.16.0",
62
62
  "@types/sanitize-html": "^2.9.0",
63
63
  "@typescript-eslint/eslint-plugin": "^5.57.1",
64
64
  "@typescript-eslint/parser": "^5.57.1",
65
65
  "@vitejs/plugin-react-swc": "^3.0.0",
66
66
  "@vitest/coverage-c8": "^0.33.0",
67
+ "@vitest/coverage-istanbul": "^1.6.0",
67
68
  "eslint": "^8.38.0",
68
69
  "eslint-plugin-react-hooks": "^4.6.0",
69
70
  "eslint-plugin-react-refresh": "^0.3.4",
@@ -73,13 +74,13 @@
73
74
  "prettier": "^3.0.3",
74
75
  "pretty": "^2.0.0",
75
76
  "prop-types": "^15.8.1",
76
- "react": "^18.2.0",
77
- "react-dom": "^18.2.0",
77
+ "react": "~18.2.0",
78
+ "react-dom": "~18.2.0",
78
79
  "storybook": "^7.0.17",
79
80
  "theme-ui": "^0.16.1",
80
81
  "typescript": "^5.0.2",
81
82
  "vite": "^4.5.3",
82
- "vitest": "^0.31.4"
83
+ "vitest": "^1.6.0"
83
84
  },
84
85
  "prettier": {
85
86
  "singleQuote": true,
@@ -88,7 +89,6 @@
88
89
  },
89
90
  "dependencies": {
90
91
  "@floating-ui/react": "^0.24.5",
91
- "@vitest/coverage-istanbul": "^1.6.0",
92
92
  "react-beautiful-dnd": "^13.1.1",
93
93
  "react-datepicker": "^4.16.0",
94
94
  "react-markdown": "^8.0.7",