Skip to content

Commit

Permalink
Merge branch 'main' into DATAP-1621-product-search-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
flacoman91 authored Jan 6, 2025
2 parents 6b6e1f6 + 3281a15 commit 2b6274b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 42 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@babel/preset-react": "^7.26.3",
"@babel/runtime": "^7.26.0",
"@cfpb/browserslist-config": "0.0.3",
"@cfpb/cfpb-design-system": "^3.6.1",
"@cfpb/cfpb-design-system": "^3.6.2",
"@craco/craco": "^7.1.0",
"@csstools/postcss-sass": "^5.1.1",
"@csstools/sass-import-resolve": "^1.0.0",
Expand All @@ -49,10 +49,10 @@
"@testing-library/react": "^16.1.0",
"@testing-library/react-hooks": "^8.0.0",
"@testing-library/user-event": "^14.5.2",
"britecharts": "git+https://github.com/cfpb/britecharts.git#v2.4.2",
"britecharts": "git+https://github.com/cfpb/britecharts.git#v2.4.3",
"coveralls": "^3.0.9",
"craco-esbuild": "^0.6.1",
"cypress": "^13.16.1",
"cypress": "^13.17.0",
"d3": "^7.9.0",
"dayjs": "^1.11.10",
"eslint": "^8.57.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/Company/CompanyTypeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const CompanyTypeahead = ({ delayWait = 250, id }) => {
};

const onInputChange = (value) => {
const qs = queryString + '&text=' + value;
const qs = queryString + '&text=' + encodeURIComponent(value);
const uri = `${API_PLACEHOLDER}_suggest_company/${qs}`;
handleFetchSearch(value, setDropdownOptions, uri);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filters/ZipCode/ZipCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ZipCode = ({ delayWait = 250 }) => {
};

const onInputChange = (value) => {
const qs = queryString + '&text=' + value;
const qs = queryString + '&text=' + encodeURIComponent(value);
const uri = `${API_PLACEHOLDER}_suggest_zip/${qs}`;
handleFetchSearch(value, setDropdownOptions, uri);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const SearchBar = ({ debounceWait = 250 }) => {

const onSearchChange = (value) => {
setInputValue(value);
const uriCompany = `${API_PLACEHOLDER}_suggest_company/?text=${value}`;
const uriCompany = `${API_PLACEHOLDER}_suggest_company/?text=${encodeURIComponent(value)}`;
handleFetchSearch(value, setDropdownOptions, uriCompany);
};

Expand Down
47 changes: 11 additions & 36 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1381,10 +1381,10 @@
resolved "https://registry.yarnpkg.com/@cfpb/browserslist-config/-/browserslist-config-0.0.3.tgz#c12a9eede0d33820b2770241b4513d753dbe9bf9"
integrity sha512-MplL75XVXKJEJbmPnrQ2FOglRxYR0+M04mPeoEMqQGeHnpzEdlZXmIVIm1/9/mAhOCfMt6ei4h+dS+sbi22k+g==

"@cfpb/cfpb-design-system@^3.6.1":
version "3.6.1"
resolved "https://registry.yarnpkg.com/@cfpb/cfpb-design-system/-/cfpb-design-system-3.6.1.tgz#711ffef2c2520f23b4029486e0db9b10b222c7d5"
integrity sha512-8ZWKLKDvaHlMbBidKNEIi7FEoJyYvvlu85vEEisR/uhmTorJTRJEaFKAMq6+du0281SAr6QvimXiqB199cPVAQ==
"@cfpb/cfpb-design-system@^3.6.2":
version "3.6.2"
resolved "https://registry.yarnpkg.com/@cfpb/cfpb-design-system/-/cfpb-design-system-3.6.2.tgz#81b1dbc0087c14ec06e7f826003c5dd8d63505ef"
integrity sha512-hHJa6UJs5pfuDBg/09kgs5d9C4QQxQ5l22SC+U6yGRD1GdiPtnzxUbYPE0v4x2HPc+6uGUaQPYPuVqd4cqQUvw==
dependencies:
tippy.js "6.3.7"

Expand Down Expand Up @@ -4475,12 +4475,11 @@ braces@^3.0.3, braces@~3.0.2:
dependencies:
fill-range "^7.1.1"

"britecharts@git+https://github.com/cfpb/britecharts.git#v2.4.2":
version "2.4.2"
resolved "git+https://github.com/cfpb/britecharts.git#81de9335d01cd153197d5ff9bc6e018b3b59cebe"
"britecharts@git+https://github.com/cfpb/britecharts.git#v2.4.3":
version "2.4.3"
resolved "git+https://github.com/cfpb/britecharts.git#4ab0e2f3c60595770ed469f55a524c46ee24db14"
dependencies:
base-64 "^0.1.0"
canvg-browser "^1.0.0"
d3 "^5.9.2"
karma-coverage-istanbul-reporter "^2.1.1"
lodash.assign "^4.2.0"
Expand Down Expand Up @@ -4626,15 +4625,6 @@ caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001646, caniuse-lite@^1.0.30001663:
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001667.tgz#99fc5ea0d9c6e96897a104a8352604378377f949"
integrity sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw==

canvg-browser@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/canvg-browser/-/canvg-browser-1.0.0.tgz#c63cb5a9e7a0c70698a9c87783473e60915ea483"
integrity sha512-awXQ+9yLsqjcGIoURleQfGuE+7vMHXOshluFBS4+A+o3U+ZoIgcrCOWFUWQxdHJETpWxhAgPHX6g8lQujG9hoQ==
dependencies:
rgbcolor "0.0.4"
stackblur "^1.0.0"
xmldom "^0.1.22"

capture-exit@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4"
Expand Down Expand Up @@ -5441,10 +5431,10 @@ csstype@^3.0.2:
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81"
integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==

cypress@^13.16.1:
version "13.16.1"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-13.16.1.tgz#82e776f6ad2037ccce6b6feabed768615c476258"
integrity sha512-17FtCaz0cx7ssWYKXzGB0Vub8xHwpVPr+iPt2fHhLMDhVAPVrplD+rTQsZUsfb19LVBn5iwkEUFjQ1yVVJXsLA==
cypress@^13.17.0:
version "13.17.0"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-13.17.0.tgz#34c3d68080c4497eace0f353bd1629587a5f600d"
integrity sha512-5xWkaPurwkIljojFidhw8lFScyxhtiFHl/i/3zov+1Z5CmY4t9tjIdvSXfu82Y3w7wt0uR9KkucbhkVvJZLQSA==
dependencies:
"@cypress/request" "^3.0.6"
"@cypress/xvfb" "^1.2.4"
Expand Down Expand Up @@ -12953,11 +12943,6 @@ rfdc@^1.3.0, rfdc@^1.4.1:
resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.4.1.tgz#778f76c4fb731d93414e8f925fbecf64cce7f6ca"
integrity sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==

[email protected]:
version "0.0.4"
resolved "https://registry.yarnpkg.com/rgbcolor/-/rgbcolor-0.0.4.tgz#ca04615a2d03eb61e49f2a75f239a46fb77d8b1d"
integrity sha512-fG8I3S9oe435NsIa3bAcavWhr0ioN+m5qRfjidB1vn5rU2D69Ain0N0aiTtXggZJnsV7Fo/poCI0NnkkhtcRgw==

rimraf@^2.6.3:
version "2.7.1"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
Expand Down Expand Up @@ -13657,11 +13642,6 @@ stack-utils@^2.0.3:
dependencies:
escape-string-regexp "^2.0.0"

stackblur@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/stackblur/-/stackblur-1.0.0.tgz#b407a7e05c93b08d66883bb808d7cba3a503f12f"
integrity sha512-K92JX8alrs0pTox5U2arVBqB8tJmak9dh9i4Xausy94TnnGMdLfTn7P2Dp/NOzlmxvEs7lDzeryo8YqOy0BHRQ==

stackframe@^1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.3.4.tgz#b881a004c8c149a5e8efef37d51b16e412943310"
Expand Down Expand Up @@ -15434,11 +15414,6 @@ xmlchars@^2.2.0:
resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb"
integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==

xmldom@^0.1.22:
version "0.1.31"
resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.1.31.tgz#b76c9a1bd9f0a9737e5a72dc37231cf38375e2ff"
integrity sha512-yS2uJflVQs6n+CyjHoaBmVSqIDevTAWrzMmjG1Gc7h1qQ7uVozNhEPJAwZXWyGQ/Gafo3fCwrcaokezLPupVyQ==

y18n@^5.0.5:
version "5.0.8"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
Expand Down

0 comments on commit 2b6274b

Please sign in to comment.