gatsby-core-theme 44.2.10 → 44.2.12
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.
- package/CHANGELOG.md +17 -0
- package/package.json +1 -1
- package/src/components/organisms/search/index.js +11 -14
- package/src/resolver/modules.mjs +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [44.2.12](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.2.11...v44.2.12) (2025-06-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* recommended casino logic ([94eeea1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/94eeea1dee0bf2dd7cb37d26b8ba37613835ef84))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'tm-5521-recommended-casino-logic' into 'master' ([6a9b3e1](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/6a9b3e1d822f4d481cc4668a9a021e1cf4b8e4f4))
|
|
10
|
+
|
|
11
|
+
## [44.2.11](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.2.10...v44.2.11) (2025-06-17)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* build issue with review links ([68d07f0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/68d07f0f5c17bb9b6f6070f02931485552a5c372))
|
|
17
|
+
|
|
1
18
|
## [44.2.10](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.2.9...v44.2.10) (2025-06-17)
|
|
2
19
|
|
|
3
20
|
|
package/package.json
CHANGED
|
@@ -81,9 +81,8 @@ const SearchForm = ({
|
|
|
81
81
|
} else {
|
|
82
82
|
const searchUrl =
|
|
83
83
|
marketPrefix !== "/"
|
|
84
|
-
? `/${marketPrefix}/s${process.env.TRAILING_SLASH ? "/" : ""}?s=${
|
|
85
|
-
|
|
86
|
-
}`
|
|
84
|
+
? `/${marketPrefix}/s${process.env.TRAILING_SLASH ? "/" : ""}?s=${e.target.value
|
|
85
|
+
}`
|
|
87
86
|
: `/s${process.env.TRAILING_SLASH ? "/" : ""}?s=${e.target.value}`;
|
|
88
87
|
window.location = `${window.location.origin}${searchUrl}`;
|
|
89
88
|
}
|
|
@@ -148,9 +147,8 @@ const SearchForm = ({
|
|
|
148
147
|
type="button"
|
|
149
148
|
aria-label={useTranslate("ariaLabel-search", "Search")}
|
|
150
149
|
onClick={handleOnSearchIconClick}
|
|
151
|
-
className={`${styles.searchButton || ""} ${
|
|
152
|
-
|
|
153
|
-
} search-gtm btn-cta`}
|
|
150
|
+
className={`${styles.searchButton || ""} ${localSearch && (styles.active || "")
|
|
151
|
+
} search-gtm btn-cta`}
|
|
154
152
|
disabled={isDisabled}
|
|
155
153
|
>
|
|
156
154
|
{searchIcon === null ? (
|
|
@@ -237,13 +235,12 @@ const SearchForm = ({
|
|
|
237
235
|
const inputValue =
|
|
238
236
|
searchInputRef.current?.value.trim();
|
|
239
237
|
if (inputValue) {
|
|
240
|
-
const url = `/s${
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
)}`;
|
|
238
|
+
const url = `/s${process.env.TRAILING_SLASH
|
|
239
|
+
? "/"
|
|
240
|
+
: ""
|
|
241
|
+
}?s=${encodeURIComponent(
|
|
242
|
+
inputValue
|
|
243
|
+
)}`;
|
|
247
244
|
window.location.href = url;
|
|
248
245
|
}
|
|
249
246
|
}}
|
|
@@ -272,7 +269,7 @@ const SearchForm = ({
|
|
|
272
269
|
)}
|
|
273
270
|
</div>
|
|
274
271
|
)}
|
|
275
|
-
{(showRecommendedCasinos || showTopSearches) && (
|
|
272
|
+
{(showRecommendedCasinos || showTopSearches) && (!filteredData || filteredData.length === 0) && (
|
|
276
273
|
<VariableComponent
|
|
277
274
|
recommendedCasinos={recommendedCasinos}
|
|
278
275
|
topSearches={topSearches}
|
package/src/resolver/modules.mjs
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import loadash from "lodash/index.js";
|
|
6
6
|
import { generatePlaceholderString } from "../helpers/generators.mjs";
|
|
7
7
|
import { anchorLink, removeSymbols } from "../helpers/strings.mjs";
|
|
8
|
+
import { stripDomainAndLeadingSlash } from "../helpers/path.mjs";
|
|
8
9
|
import {
|
|
9
10
|
clonePageForCards,
|
|
10
11
|
groupBy,
|