diff --git a/components/ContentRenderer/ContentRenderer.tsx b/components/ContentRenderer/ContentRenderer.tsx index f433f0edb..55757e4a6 100644 --- a/components/ContentRenderer/ContentRenderer.tsx +++ b/components/ContentRenderer/ContentRenderer.tsx @@ -19,6 +19,7 @@ import { VariableNode, VideoNode, } from '@prezly/story-content-format'; +import { FormattedDate } from '@prezly/theme-kit-nextjs'; import { Heading, @@ -52,11 +53,20 @@ interface Props { } export function ContentRenderer({ nodes, story }: Props) { + function renderDate(date: string) { + return ; + } + const renderer = (
- + = 8.x" }, "peerDependencies": { - "@prezly/sdk": "21.6.0" + "@prezly/sdk": "21.12.0" } }, "node_modules/@prezly/theme-kit-intl": { @@ -3150,11 +3169,11 @@ } }, "node_modules/@prezly/theme-kit-nextjs": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/@prezly/theme-kit-nextjs/-/theme-kit-nextjs-9.6.1.tgz", - "integrity": "sha512-Owx8YWktcwBxxlpjdoU2fwfXM4t9KcBF5rnLds8iwlNH+u9qSG6H5t/5AiKZi4b1MsR+SLrGodcfUlYQptFZaQ==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/@prezly/theme-kit-nextjs/-/theme-kit-nextjs-9.7.0.tgz", + "integrity": "sha512-q/lEjDFipSgPag38s7+cdVuPVpEIsbLJiOPS/LLOWOwk/Ax5iv8MXjpGqViYNfQXuHAWLRT24BY01wKZdj6pjw==", "dependencies": { - "@prezly/theme-kit-core": "^9.6.0", + "@prezly/theme-kit-core": "^9.7.0", "@prezly/theme-kit-intl": "^9.6.0", "@prezly/theme-kit-react": "^9.6.0", "@technically/is-not-undefined": "^1.0.0", @@ -3169,7 +3188,7 @@ }, "peerDependencies": { "@playwright/test": "1.x", - "@prezly/sdk": "21.6.0", + "@prezly/sdk": "21.12.0", "next": "^12.x || ^13.x || ^14.x", "react": "^17.x || ^18.x", "react-dom": "^17.x || ^18.x" @@ -20704,13 +20723,13 @@ } }, "@prezly/content-renderer-react-js": { - "version": "0.38.4", - "resolved": "https://registry.npmjs.org/@prezly/content-renderer-react-js/-/content-renderer-react-js-0.38.4.tgz", - "integrity": "sha512-AzyOYnlT3PxyY0DONSDVv0VsAFR7LRXf5g7k4o4kUvvJtUP4j4JudEIOucHqnL+Hy7ZOPkvjrQ0aR44dc8fdvw==", + "version": "0.39.0", + "resolved": "https://registry.npmjs.org/@prezly/content-renderer-react-js/-/content-renderer-react-js-0.39.0.tgz", + "integrity": "sha512-A2IHMj4bDJKRHeaHcbmmmttlLKtAZpDk39VqK13TpbULHwZ8qincnKL6iCs8320gL2RCjSHJu/arfxdlwHQbXQ==", "requires": { "@prezly/linear-partition": "^1.0.2", "@prezly/sdk": "^21.6.0", - "@prezly/story-content-format": "^0.65.1", + "@prezly/story-content-format": "^0.66.0", "@prezly/uploadcare": "^2.4.4", "@react-hookz/web": "^12.0.0", "classnames": "^2.2.6", @@ -20721,6 +20740,25 @@ "social-links": "^1.10.0" }, "dependencies": { + "@prezly/content-format": { + "version": "0.66.0", + "resolved": "https://registry.npmjs.org/@prezly/content-format/-/content-format-0.66.0.tgz", + "integrity": "sha512-LZfodnQPblAjtZw7JhDz0ve2Eg7Yqpgsrnx7D++QyRzBJq7wZT+cVzRrGgDhUyMTkz7ka3X1EolrQyDb/WDDPg==", + "requires": { + "@prezly/uploads": "^0.2.0", + "is-plain-object": "^5.0.0" + } + }, + "@prezly/story-content-format": { + "version": "0.66.0", + "resolved": "https://registry.npmjs.org/@prezly/story-content-format/-/story-content-format-0.66.0.tgz", + "integrity": "sha512-blNTMTHi43g+1Eo/VSRSRVt3/J/l9bV1POJSRb2+Zl2cCWgXpVgBZweXq9aNb01wxSr+B4/018bdmCueU+NArw==", + "requires": { + "@prezly/content-format": "^0.66.0", + "@prezly/uploads": "^0.2.0", + "is-plain-object": "^5.0.0" + } + }, "@react-hookz/web": { "version": "12.3.0", "resolved": "https://registry.npmjs.org/@react-hookz/web/-/web-12.3.0.tgz", @@ -20767,9 +20805,9 @@ "integrity": "sha512-uKBTA1gZ90ckKK/4wVoVORC3VUTkOgFwhZWwWsceKxVoAgDxqS5s0NXP5V7J+niEdvCkcoEVeCc25kCs+Hr/uQ==" }, "@prezly/sdk": { - "version": "21.6.0", - "resolved": "https://registry.npmjs.org/@prezly/sdk/-/sdk-21.6.0.tgz", - "integrity": "sha512-1to1BNdWlcW/aErM+hDTKOmDPFg3vhdKOw1XOPNBvuvUtPw/K1igz0ydFbHW15212d67aonLgBCDK9iB4uOiAQ==", + "version": "21.12.0", + "resolved": "https://registry.npmjs.org/@prezly/sdk/-/sdk-21.12.0.tgz", + "integrity": "sha512-dUQERjNUCzfuHpEyFCmQKEWsLt6HogMSw5+C+GuOSDHxLvVEM+FEiTH24zGn8hg4ExFYMClSJ/dAJX2lFybwhQ==", "requires": { "@prezly/progress-promise": "^2.0.1", "@prezly/uploads": "^0.2.1", @@ -20787,9 +20825,9 @@ } }, "@prezly/theme-kit-core": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/@prezly/theme-kit-core/-/theme-kit-core-9.6.0.tgz", - "integrity": "sha512-M+bEC4L79RLqbyIeIlLTIn1I4uMbdXTnnNuAqPfLL874du5IxoBKcUkxzTmSaN2vxW88UwzFG5xtkACVLP2XRw==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/@prezly/theme-kit-core/-/theme-kit-core-9.7.0.tgz", + "integrity": "sha512-dvmN94MBcrU2lVEWMt0n9f1Ap1W8kNuhhsiP2K3sPunxIVYiJjflacZH2HapMHUflpjbjm5A7hQN5ZvPF9w2SA==", "requires": { "@prezly/theme-kit-intl": "^9.6.0", "@prezly/uploadcare": "2.4.4", @@ -20808,11 +20846,11 @@ } }, "@prezly/theme-kit-nextjs": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/@prezly/theme-kit-nextjs/-/theme-kit-nextjs-9.6.1.tgz", - "integrity": "sha512-Owx8YWktcwBxxlpjdoU2fwfXM4t9KcBF5rnLds8iwlNH+u9qSG6H5t/5AiKZi4b1MsR+SLrGodcfUlYQptFZaQ==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/@prezly/theme-kit-nextjs/-/theme-kit-nextjs-9.7.0.tgz", + "integrity": "sha512-q/lEjDFipSgPag38s7+cdVuPVpEIsbLJiOPS/LLOWOwk/Ax5iv8MXjpGqViYNfQXuHAWLRT24BY01wKZdj6pjw==", "requires": { - "@prezly/theme-kit-core": "^9.6.0", + "@prezly/theme-kit-core": "^9.7.0", "@prezly/theme-kit-intl": "^9.6.0", "@prezly/theme-kit-react": "^9.6.0", "@technically/is-not-undefined": "^1.0.0", diff --git a/package.json b/package.json index 69e88c6e0..5cc9b42dc 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,10 @@ "@meilisearch/instant-meilisearch": "0.19.0", "@playwright/test": "^1.33.0", "@prezly/analytics-nextjs": "3.0.0", - "@prezly/content-renderer-react-js": "0.38.4", - "@prezly/sdk": "21.6.0", + "@prezly/content-renderer-react-js": "0.39.0", + "@prezly/sdk": "21.12.0", "@prezly/story-content-format": "0.65.1", - "@prezly/theme-kit-nextjs": "9.6.1", + "@prezly/theme-kit-nextjs": "9.7.0", "@prezly/uploadcare": "2.4.4", "@prezly/uploadcare-image": "0.3.2", "@react-hookz/web": "14.7.1",