Skip to content

Commit

Permalink
Updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish committed Aug 3, 2024
1 parent 4c0eee2 commit 73d637f
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 65 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
"@mui/base": "5.0.0-dev.20240529-082515-213b5e33ab",
"@next/third-parties": "^14.2.5",
"@tailwindcss/container-queries": "^0.1.1",
"@types/node": "^22.0.2",
"@types/node": "^22.1.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"algoliasearch": "^4.24.0",
"autoprefixer": "^10.4.19",
"axios": "^1.7.2",
"autoprefixer": "^10.4.20",
"clsx": "^2.1.1",
"decanter": "^7.3.0",
"drupal-jsonapi-params": "^2.3.1",
Expand All @@ -35,7 +34,7 @@
"html-react-parser": "^5.1.12",
"next": "^14.2.5",
"postcss": "^8.4.40",
"qs": "^6.12.3",
"qs": "^6.13.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-focus-lock": "^2.12.1",
Expand Down
8 changes: 7 additions & 1 deletion src/components/elements/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@ const DrupalLink = ({href, className, children, ...props}: Props) => {
href = href || "#"
const drupalBase: string = (process.env.NEXT_PUBLIC_DRUPAL_BASE_URL || "").replace(/\/$/, "")

if (!href.indexOf("/files/")) {
// Make sure links to documents or images go to the Drupal origin.
if (href.startsWith("/") && href.includes("/files/")) {
href = `${drupalBase}${href}`
}

// For links not to the file system, make them relative and replace <front>.
if (!href.includes("/files/")) {
href = href.replace(drupalBase, "").replace("<front>", "/")
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/elements/slideshow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {twMerge} from "tailwind-merge"
import {clsx} from "clsx"

const NextArrow = ({className, onClick}: CustomArrowProps) => {
const slickDisabled = !!(className && className?.indexOf("slick-disabled") > 0)
const slickDisabled = className?.includes("slick-disabled")
return (
<button className="absolute right-1 top-1/3 z-50" onClick={onClick} aria-label="Next" disabled={slickDisabled}>
<ArrowRightIcon
Expand All @@ -18,7 +18,7 @@ const NextArrow = ({className, onClick}: CustomArrowProps) => {
}

const PrevArrow = ({className, onClick}: CustomArrowProps) => {
const slickDisabled = !!(className && className?.indexOf("slick-disabled") > 0)
const slickDisabled = className?.includes("slick-disabled")
return (
<button className="absolute left-1 top-1/3 z-50" onClick={onClick} aria-label="Previous" disabled={slickDisabled}>
<ArrowLeftIcon
Expand Down
4 changes: 2 additions & 2 deletions src/components/elements/wysiwyg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const options: HTMLReactParserOptions = {

case "div":
delete nodeProps.role
if (nodeProps.className && !!nodeProps.className.indexOf("media-entity-wrapper")) {
if (nodeProps.className?.includes("media-entity-wrapper")) {
return cleanMediaMarkup(domNode)
}
return <NodeName {...nodeProps}>{domToReact(children, options)}</NodeName>
Expand Down Expand Up @@ -216,7 +216,7 @@ const cleanMediaMarkup = (node: Element) => {

if (figCaption) {
nodeProps.className = twMerge("table", nodeProps.className)
if (!!nodeProps.className?.indexOf("mx-auto")) nodeProps.className += " w-full"
if (nodeProps.className?.includes("mx-auto")) nodeProps.className += " w-full"
delete nodeProps.role
return (
<figure {...nodeProps}>
Expand Down
132 changes: 76 additions & 56 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6564,12 +6564,12 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:^22.0.2":
version: 22.0.2
resolution: "@types/node@npm:22.0.2"
"@types/node@npm:^22.1.0":
version: 22.1.0
resolution: "@types/node@npm:22.1.0"
dependencies:
undici-types: "npm:~6.11.1"
checksum: 10c0/59ee26fb1104674b2e23981d7569ad113aa8ee23c8449af8e4312aa9352ac738c5ffd0ae4d8077db0467704a3b9ccc662048e39716cb5ad51cdb24d106c7871b
undici-types: "npm:~6.13.0"
checksum: 10c0/553dafcb842b889c036d43b390d464e8ffcf3ca455ddd5b1a1ef98396381eafbeb0c112a15cc6bf9662b72bc25fc45efc4b6f604760e1e84c410f1b7936c488b
languageName: node
linkType: hard

Expand Down Expand Up @@ -7768,21 +7768,21 @@ __metadata:
languageName: node
linkType: hard

"autoprefixer@npm:^10.4.19":
version: 10.4.19
resolution: "autoprefixer@npm:10.4.19"
"autoprefixer@npm:^10.4.20":
version: 10.4.20
resolution: "autoprefixer@npm:10.4.20"
dependencies:
browserslist: "npm:^4.23.0"
caniuse-lite: "npm:^1.0.30001599"
browserslist: "npm:^4.23.3"
caniuse-lite: "npm:^1.0.30001646"
fraction.js: "npm:^4.3.7"
normalize-range: "npm:^0.1.2"
picocolors: "npm:^1.0.0"
picocolors: "npm:^1.0.1"
postcss-value-parser: "npm:^4.2.0"
peerDependencies:
postcss: ^8.1.0
bin:
autoprefixer: bin/autoprefixer
checksum: 10c0/fe0178eb8b1da4f15c6535cd329926609b22d1811e047371dccce50563623f8075dd06fb167daff059e4228da651b0bdff6d9b44281541eaf0ce0b79125bfd19
checksum: 10c0/e1f00978a26e7c5b54ab12036d8c13833fad7222828fc90914771b1263f51b28c7ddb5803049de4e77696cbd02bb25cfc3634e80533025bb26c26aacdf938940
languageName: node
linkType: hard

Expand All @@ -7809,17 +7809,6 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:^1.7.2":
version: 1.7.2
resolution: "axios@npm:1.7.2"
dependencies:
follow-redirects: "npm:^1.15.6"
form-data: "npm:^4.0.0"
proxy-from-env: "npm:^1.1.0"
checksum: 10c0/cbd47ce380fe045313364e740bb03b936420b8b5558c7ea36a4563db1258c658f05e40feb5ddd41f6633fdd96d37ac2a76f884dad599c5b0224b4c451b3fa7ae
languageName: node
linkType: hard

"axobject-query@npm:^3.2.1":
version: 3.2.1
resolution: "axobject-query@npm:3.2.1"
Expand Down Expand Up @@ -8154,6 +8143,20 @@ __metadata:
languageName: node
linkType: hard

"browserslist@npm:^4.23.3":
version: 4.23.3
resolution: "browserslist@npm:4.23.3"
dependencies:
caniuse-lite: "npm:^1.0.30001646"
electron-to-chromium: "npm:^1.5.4"
node-releases: "npm:^2.0.18"
update-browserslist-db: "npm:^1.1.0"
bin:
browserslist: cli.js
checksum: 10c0/3063bfdf812815346447f4796c8f04601bf5d62003374305fd323c2a463e42776475bcc5309264e39bcf9a8605851e53560695991a623be988138b3ff8c66642
languageName: node
linkType: hard

"bser@npm:2.1.1":
version: 2.1.1
resolution: "bser@npm:2.1.1"
Expand Down Expand Up @@ -8316,10 +8319,10 @@ __metadata:
languageName: node
linkType: hard

"caniuse-lite@npm:^1.0.30001599":
version: 1.0.30001599
resolution: "caniuse-lite@npm:1.0.30001599"
checksum: 10c0/8b3b9610b5be88533a3c8d0770d6896f7b1a9fee3dbeb7339e4ee119a514c81e5e07a628a5a289a6541ca291ac78a9402f5a99cf6012139e91f379083488a8eb
"caniuse-lite@npm:^1.0.30001646":
version: 1.0.30001647
resolution: "caniuse-lite@npm:1.0.30001647"
checksum: 10c0/54c07aabbe3915a67bac8015e8421aee59f2756f996fc70fc2a4743fec66e8684e620b45fb706e7e3d0fdd0b2f8dbab0309df90609ead5b45a9cd4318c8716c7
languageName: node
linkType: hard

Expand Down Expand Up @@ -9190,13 +9193,12 @@ __metadata:
"@storybook/react": "npm:^8.2.7"
"@storybook/testing-library": "npm:^0.2.2"
"@tailwindcss/container-queries": "npm:^0.1.1"
"@types/node": "npm:^22.0.2"
"@types/node": "npm:^22.1.0"
"@types/react": "npm:^18.3.3"
"@types/react-dom": "npm:^18.3.0"
"@types/react-slick": "npm:^0.23.13"
algoliasearch: "npm:^4.24.0"
autoprefixer: "npm:^10.4.19"
axios: "npm:^1.7.2"
autoprefixer: "npm:^10.4.20"
clsx: "npm:^2.1.1"
concurrently: "npm:^8.2.2"
decanter: "npm:^7.3.0"
Expand All @@ -9218,7 +9220,7 @@ __metadata:
postcss: "npm:^8.4.40"
prettier: "npm:^3.3.3"
prettier-plugin-tailwindcss: "npm:^0.6.5"
qs: "npm:^6.12.3"
qs: "npm:^6.13.0"
react: "npm:^18.3.1"
react-docgen: "npm:^7.0.3"
react-dom: "npm:^18.3.1"
Expand Down Expand Up @@ -9642,6 +9644,13 @@ __metadata:
languageName: node
linkType: hard

"electron-to-chromium@npm:^1.5.4":
version: 1.5.4
resolution: "electron-to-chromium@npm:1.5.4"
checksum: 10c0/139abf1b7281c2f3288819fb9b114f09d541ac38c9f0373f194ce2d483d82d118b8751f1b2a59b04ed0d8f414071b58508a40050fc0f23b5aa7e38d11d0cf30c
languageName: node
linkType: hard

"elliptic@npm:^6.5.3, elliptic@npm:^6.5.4":
version: 6.5.4
resolution: "elliptic@npm:6.5.4"
Expand Down Expand Up @@ -10099,6 +10108,13 @@ __metadata:
languageName: node
linkType: hard

"escalade@npm:^3.1.2":
version: 3.1.2
resolution: "escalade@npm:3.1.2"
checksum: 10c0/6b4adafecd0682f3aa1cd1106b8fff30e492c7015b178bc81b2d2f75106dabea6c6d6e8508fc491bd58e597c74abb0e8e2368f943ecb9393d4162e3c2f3cf287
languageName: node
linkType: hard

"escape-html@npm:~1.0.3":
version: 1.0.3
resolution: "escape-html@npm:1.0.3"
Expand Down Expand Up @@ -10941,16 +10957,6 @@ __metadata:
languageName: node
linkType: hard

"follow-redirects@npm:^1.15.6":
version: 1.15.6
resolution: "follow-redirects@npm:1.15.6"
peerDependenciesMeta:
debug:
optional: true
checksum: 10c0/9ff767f0d7be6aa6870c82ac79cf0368cd73e01bbc00e9eb1c2a16fbb198ec105e3c9b6628bb98e9f3ac66fe29a957b9645bcb9a490bb7aa0d35f908b6b85071
languageName: node
linkType: hard

"for-each@npm:^0.3.3":
version: 0.3.3
resolution: "for-each@npm:0.3.3"
Expand Down Expand Up @@ -13670,6 +13676,13 @@ __metadata:
languageName: node
linkType: hard

"node-releases@npm:^2.0.18":
version: 2.0.18
resolution: "node-releases@npm:2.0.18"
checksum: 10c0/786ac9db9d7226339e1dc84bbb42007cb054a346bd9257e6aa154d294f01bc6a6cddb1348fa099f079be6580acbb470e3c048effd5f719325abd0179e566fd27
languageName: node
linkType: hard

"nopt@npm:1.0.10":
version: 1.0.10
resolution: "nopt@npm:1.0.10"
Expand Down Expand Up @@ -14766,13 +14779,6 @@ __metadata:
languageName: node
linkType: hard

"proxy-from-env@npm:^1.1.0":
version: 1.1.0
resolution: "proxy-from-env@npm:1.1.0"
checksum: 10c0/fe7dd8b1bdbbbea18d1459107729c3e4a2243ca870d26d34c2c1bcd3e4425b7bcc5112362df2d93cc7fb9746f6142b5e272fd1cc5c86ddf8580175186f6ad42b
languageName: node
linkType: hard

"public-encrypt@npm:^4.0.0":
version: 4.0.3
resolution: "public-encrypt@npm:4.0.3"
Expand Down Expand Up @@ -14835,12 +14841,12 @@ __metadata:
languageName: node
linkType: hard

"qs@npm:^6.12.3":
version: 6.12.3
resolution: "qs@npm:6.12.3"
"qs@npm:^6.13.0":
version: 6.13.0
resolution: "qs@npm:6.13.0"
dependencies:
side-channel: "npm:^1.0.6"
checksum: 10c0/243ddcc8f49dab78fc51041f7f64c500b47c671c45a101a8aca565d8537cb562921da7ef1a831b4a7051596ec88bb35a0d5e25a240025e8b32c6bfb69f00bf2f
checksum: 10c0/62372cdeec24dc83a9fb240b7533c0fdcf0c5f7e0b83343edd7310f0ab4c8205a5e7c56406531f2e47e1b4878a3821d652be4192c841de5b032ca83619d8f860
languageName: node
linkType: hard

Expand Down Expand Up @@ -17421,10 +17427,10 @@ __metadata:
languageName: node
linkType: hard

"undici-types@npm:~6.11.1":
version: 6.11.1
resolution: "undici-types@npm:6.11.1"
checksum: 10c0/d8f5739a8e6c779d72336c82deb49c56d5ac9f9f6e0eb2e8dd4d3f6929ae9db7cde370d2e46516fe6cad04ea53e790c5e16c4c75eed7cd0f9bd31b0763bb2fa3
"undici-types@npm:~6.13.0":
version: 6.13.0
resolution: "undici-types@npm:6.13.0"
checksum: 10c0/2de55181f569c77a4f08063f8bf2722fcbb6ea312a26a9e927bd1f5ea5cf3a281c5ddf23155061db083e0a25838f54813543ff13b0ac34d230d5c1205ead66c1
languageName: node
linkType: hard

Expand Down Expand Up @@ -17572,6 +17578,20 @@ __metadata:
languageName: node
linkType: hard

"update-browserslist-db@npm:^1.1.0":
version: 1.1.0
resolution: "update-browserslist-db@npm:1.1.0"
dependencies:
escalade: "npm:^3.1.2"
picocolors: "npm:^1.0.1"
peerDependencies:
browserslist: ">= 4.21.0"
bin:
update-browserslist-db: cli.js
checksum: 10c0/a7452de47785842736fb71547651c5bbe5b4dc1e3722ccf48a704b7b34e4dcf633991eaa8e4a6a517ffb738b3252eede3773bef673ef9021baa26b056d63a5b9
languageName: node
linkType: hard

"upper-case-first@npm:^2.0.2":
version: 2.0.2
resolution: "upper-case-first@npm:2.0.2"
Expand Down

0 comments on commit 73d637f

Please sign in to comment.