gatsby-core-theme 40.0.16 → 40.0.18
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 +16 -0
- package/package.json +1 -1
- package/src/components/atoms/admin/bar/bar.module.scss +3 -0
- package/src/components/atoms/admin/bar/bar.test.js +2 -2
- package/src/components/atoms/admin/bar/layout-section/index.js +21 -19
- package/src/components/atoms/admin/bar/layout-section/layout-section.module.scss +17 -7
- package/src/components/atoms/admin/bar/preview/index.js +1 -1
- package/src/constants/admin-bar.js +2 -2
- package/src/constants/settings.mjs +1 -0
- package/src/helpers/processor/operators.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [40.0.18](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.17...v40.0.18) (2024-10-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added sports theme homepage template in ssr ([d9bf1f5](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/d9bf1f575f907d7f5a9058990e3dd4750d2429c6))
|
|
7
|
+
* fix: test ([f21d329](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f21d329b61d3129504ff34f25254c9742c3a64ea))
|
|
8
|
+
* make style for admin bar ([9f485b9](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/9f485b9cc233ee9ad2d928cd97652162424c4c10))
|
|
9
|
+
|
|
10
|
+
## [40.0.17](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.16...v40.0.17) (2024-10-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* operator fallback ([2f71564](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2f71564d92e69c16432a5cb834bd4a23f7111130))
|
|
16
|
+
|
|
1
17
|
## [40.0.16](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v40.0.15...v40.0.16) (2024-10-28)
|
|
2
18
|
|
|
3
19
|
|
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@ describe("OperatorCtaButton Component", () => {
|
|
|
9
9
|
const { getByText, container } = render(
|
|
10
10
|
<Admin page={{ id:123 } } />
|
|
11
11
|
);
|
|
12
|
-
|
|
13
|
-
expect(getByText("Edit
|
|
12
|
+
// Needs to add more test
|
|
13
|
+
expect(getByText("Edit Layout")).toBeInTheDocument();
|
|
14
14
|
expect(container.querySelector('a').getAttribute('href')).toBe('https://hercules.g2m.com/');
|
|
15
15
|
|
|
16
16
|
});
|
|
@@ -27,25 +27,27 @@ const LayoutSection = ({ menus }) => {
|
|
|
27
27
|
<li>
|
|
28
28
|
<span className={`${styles.menuItem} ${styles.link}`}>{res.label}</span>
|
|
29
29
|
<div className={styles.subMenuList}>
|
|
30
|
-
{
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
30
|
+
<div className={styles.subMenuContianer}>
|
|
31
|
+
{res?.sections?.map((section) => (
|
|
32
|
+
<ul className={styles.lists}>
|
|
33
|
+
{section.label && (
|
|
34
|
+
<li>
|
|
35
|
+
<span className={styles.label}>{section.label}</span>
|
|
36
|
+
</li>
|
|
37
|
+
)}
|
|
38
|
+
{section?.links?.map((link) => (
|
|
39
|
+
<li>
|
|
40
|
+
<Redirect
|
|
41
|
+
icon={link?.icon}
|
|
42
|
+
path={paths(link?.type, link.data)}
|
|
43
|
+
linkText={link.buttonText}
|
|
44
|
+
description={link.description}
|
|
45
|
+
/>
|
|
46
|
+
</li>
|
|
47
|
+
))}
|
|
48
|
+
</ul>
|
|
49
|
+
))}
|
|
50
|
+
</div>
|
|
49
51
|
</div>
|
|
50
52
|
</li>
|
|
51
53
|
));
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
.subMenuList {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
@include flex-direction(row);
|
|
5
|
-
@include flex-align(start, flex-start);
|
|
6
|
-
|
|
7
|
-
padding: 2.4rem;
|
|
2
|
+
right: 0;
|
|
8
3
|
display: none;
|
|
9
4
|
position: absolute;
|
|
10
5
|
top: 100%;
|
|
11
6
|
z-index: 99;
|
|
7
|
+
padding-top: 3rem;
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.subMenuContianer{
|
|
12
|
+
background-color: #000;
|
|
12
13
|
gap: 2.4rem;
|
|
13
14
|
border-radius: .8rem;
|
|
14
|
-
|
|
15
|
+
|
|
16
|
+
@include flex-direction(row);
|
|
17
|
+
@include flex-align(start, flex-start);
|
|
18
|
+
|
|
19
|
+
padding: 2.4rem;
|
|
15
20
|
|
|
16
21
|
> li a {
|
|
17
22
|
@include flex-align(center, flex-start);
|
|
18
23
|
}
|
|
24
|
+
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
.menuItem {
|
|
@@ -46,4 +52,8 @@
|
|
|
46
52
|
@include flex-direction(column);
|
|
47
53
|
|
|
48
54
|
gap: 1.6rem;
|
|
55
|
+
|
|
56
|
+
>li{
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
49
59
|
}
|
|
@@ -10,7 +10,7 @@ import { FaLayerGroup } from "@react-icons/all-files/fa/FaLayerGroup";
|
|
|
10
10
|
|
|
11
11
|
export const menusConfig = (menuObj, footerSection, page, types) => [
|
|
12
12
|
{
|
|
13
|
-
label: "Layout",
|
|
13
|
+
label: "Edit Layout",
|
|
14
14
|
sections: [
|
|
15
15
|
{
|
|
16
16
|
label: "Main Menu",
|
|
@@ -53,7 +53,7 @@ export const menusConfig = (menuObj, footerSection, page, types) => [
|
|
|
53
53
|
],
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
label: "Page",
|
|
56
|
+
label: "Edit Page",
|
|
57
57
|
sections: [
|
|
58
58
|
{
|
|
59
59
|
label: "Page",
|
|
@@ -93,7 +93,7 @@ export function sanitizeOperatorData(
|
|
|
93
93
|
operatorClone.standardised_logo_url_object ||
|
|
94
94
|
operatorClone.default_logo_url_object;
|
|
95
95
|
|
|
96
|
-
return Object.assign(
|
|
96
|
+
return Object.assign(operator, clone);
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// NOTE: To add tests once we start using it
|