diff --git a/.changeset/beige-planes-hide.md b/.changeset/beige-planes-hide.md new file mode 100644 index 000000000..c96f72540 --- /dev/null +++ b/.changeset/beige-planes-hide.md @@ -0,0 +1,5 @@ +--- +'@ithaka/pharos-site': patch +--- + +Fix component properties for Pharos v14 diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 76a8f8020..e4db881c0 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/packages/pharos-site/babel.config.js b/packages/pharos-site/babel.config.js index 9360650b6..30ba79f7c 100644 --- a/packages/pharos-site/babel.config.js +++ b/packages/pharos-site/babel.config.js @@ -5,7 +5,7 @@ module.exports = { '@babel/plugin-transform-block-scoping', ['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }], ['@babel/plugin-proposal-class-properties', { loose: true }], - ['@babel/plugin-proposal-private-methods', { loose: true }], + ['@babel/plugin-transform-private-methods', { loose: true }], '@babel/plugin-proposal-export-default-from', '@babel/plugin-syntax-dynamic-import', ['@babel/plugin-proposal-object-rest-spread', { loose: true, useBuiltIns: true }], diff --git a/packages/pharos-site/package.json b/packages/pharos-site/package.json index 2d7c0bbf1..7838fff48 100644 --- a/packages/pharos-site/package.json +++ b/packages/pharos-site/package.json @@ -32,6 +32,7 @@ "sass": "^1.63.6" }, "devDependencies": { + "@babel/plugin-transform-private-methods": "^7.23.3", "@types/mdx-js__react": "^1.5.3", "@types/react": "^17.0.1", "@types/react-dom": "^17.0.0", diff --git a/packages/pharos-site/src/components/Sidenav.tsx b/packages/pharos-site/src/components/Sidenav.tsx index 8cc0d58ea..094076262 100644 --- a/packages/pharos-site/src/components/Sidenav.tsx +++ b/packages/pharos-site/src/components/Sidenav.tsx @@ -55,7 +55,7 @@ const Sidenav: FC = () => { }; const content = ( - +
{data.site.siteMetadata.title}
diff --git a/packages/pharos-site/src/components/footer.tsx b/packages/pharos-site/src/components/footer.tsx index d824d9b08..4631f01b1 100644 --- a/packages/pharos-site/src/components/footer.tsx +++ b/packages/pharos-site/src/components/footer.tsx @@ -38,7 +38,7 @@ const Footer: FC = () => {
  • @@ -48,7 +48,7 @@ const Footer: FC = () => {
  • @@ -58,7 +58,7 @@ const Footer: FC = () => {
  • @@ -68,7 +68,7 @@ const Footer: FC = () => {
  • @@ -80,12 +80,12 @@ const Footer: FC = () => {
    • - + About JSTOR
    • - + Careers We're hiring! @@ -94,7 +94,7 @@ const Footer: FC = () => { Cookie settings @@ -108,7 +108,7 @@ const Footer: FC = () => {
      Email us @@ -116,7 +116,7 @@ const Footer: FC = () => { or{' '} @@ -132,7 +132,7 @@ const Footer: FC = () => {
      This site is powered by{' '} - + Netlify diff --git a/packages/pharos-site/src/components/layout.tsx b/packages/pharos-site/src/components/layout.tsx index 706de6692..aa064e95f 100644 --- a/packages/pharos-site/src/components/layout.tsx +++ b/packages/pharos-site/src/components/layout.tsx @@ -42,7 +42,7 @@ const Layout: FC = ({ children, location, fill }) => { const body = (
      - + Skip to main navigation
      diff --git a/packages/pharos-site/src/pages/index.tsx b/packages/pharos-site/src/pages/index.tsx index 419b0d974..0a559b8e7 100644 --- a/packages/pharos-site/src/pages/index.tsx +++ b/packages/pharos-site/src/pages/index.tsx @@ -50,7 +50,7 @@ const IndexPage: FC = () => {
      - + Checkbox label diff --git a/packages/pharos-site/static/guidelines/footer.docs.mdx b/packages/pharos-site/static/guidelines/footer.docs.mdx index 9e6a61d5c..4c460afed 100644 --- a/packages/pharos-site/static/guidelines/footer.docs.mdx +++ b/packages/pharos-site/static/guidelines/footer.docs.mdx @@ -14,14 +14,14 @@ import BestPractices from '@components/statics/BestPractices.tsx';
      • - + By Subject
      • - + By Publisher
      • - + Data for Research
      • @@ -66,7 +66,7 @@ import BestPractices from '@components/statics/BestPractices.tsx';
        • - + JSTOR Labs
        • - + Contact Us
        • @@ -215,7 +221,7 @@ import BestPractices from '@components/statics/BestPractices.tsx'; @@ -226,7 +232,7 @@ import BestPractices from '@components/statics/BestPractices.tsx'; @@ -298,7 +304,7 @@ import BestPractices from '@components/statics/BestPractices.tsx';
        JSTOR is part of - + ITHAKA , a not-for-profit organization helping the academic community use digital technologies to preserve the scholarly record and to advance research and teaching in sustainable ways. @@ -312,7 +318,7 @@ import BestPractices from '@components/statics/BestPractices.tsx';
      • From the{' '} - + Collection title
        diff --git a/packages/pharos-site/static/guidelines/link.docs.mdx b/packages/pharos-site/static/guidelines/link.docs.mdx index ba5e58759..ca6047267 100644 --- a/packages/pharos-site/static/guidelines/link.docs.mdx +++ b/packages/pharos-site/static/guidelines/link.docs.mdx @@ -77,7 +77,7 @@ import BestPractices from '@components/statics/BestPractices.tsx'; background.

        - + On a background diff --git a/yarn.lock b/yarn.lock index d9600ab2b..8f38af33c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5038,6 +5038,7 @@ __metadata: version: 0.0.0-use.local resolution: "@ithaka/pharos-site@workspace:packages/pharos-site" dependencies: + "@babel/plugin-transform-private-methods": "npm:^7.23.3" "@ithaka/pharos": "npm:^14.0.0" "@mdx-js/mdx": "npm:^1.6.22" "@mdx-js/react": "npm:^1.6.22"