gatsby-matrix-theme 22.0.0 → 22.0.2

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 CHANGED
@@ -1,3 +1,30 @@
1
+ ## [22.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v22.0.1...v22.0.2) (2023-05-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * unused file ([bb77018](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/bb77018a055c65f3195329d730dcce22debca595))
7
+ * updated to latest version ([0342dc2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0342dc28f9165df64328f49a273da3708cad88ef))
8
+
9
+
10
+ ### Code Refactoring
11
+
12
+ * minor css fix for mobile view on info grid ([5d02684](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5d02684528b5e21d5cd07d2f838ecdbea175f2bd))
13
+ * minor fix for responsiveness ([7db021a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7db021ad14c13b87333d11be680e7979e8b121bd))
14
+ * update module title anchor only for archive module ([f8aa01a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f8aa01ac969f97dcff87d71231c090bc0c3bb622))
15
+
16
+
17
+ * Merge branch 'tm-3349-info-grid' into 'master' ([a3de464](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a3de46404cc40397ab6dd9e6edbdc91c7ae67b90))
18
+ * Merge branch 'tm-3416-archive-module-pagination-focus' into 'master' ([02deae2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/02deae2d6122306cae4722d2a32fe26db4fdfcee))
19
+ * Merge branch 'cleanup' into 'master' ([e0b88b8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e0b88b8801a7872e72f0587eec82d246bd46fa7f))
20
+
21
+ ## [22.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v22.0.0...v22.0.1) (2023-05-10)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * update core theme ([2106084](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/210608461059b728a42c787c1a07a15f1c118dea))
27
+
1
28
  # [22.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v21.0.3...v22.0.0) (2023-05-10)
2
29
 
3
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "22.0.0",
3
+ "version": "22.0.2",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@react-icons/all-files": "^4.1.0",
27
27
  "gatsby": "^4.20.0",
28
- "gatsby-core-theme": "21.0.7",
28
+ "gatsby-core-theme": "21.0.9",
29
29
  "gatsby-plugin-sharp": "^4.10.2",
30
30
  "gatsby-plugin-sitemap": "^3.3.0",
31
31
  "gatsby-transformer-sharp": "^4.10.0",
@@ -70,7 +70,7 @@
70
70
  &:nth-of-type(2) {
71
71
  text-align: right;
72
72
  max-width: 17rem;
73
-
73
+ padding: 0;
74
74
 
75
75
  @include min(tablet) {
76
76
  max-width: 22rem;
@@ -143,6 +143,11 @@
143
143
  font-weight: 400;
144
144
  color: var(--info-grid-text-color);
145
145
 
146
+ @media only screen and (max-width: 767px) {
147
+ padding-left: 3rem;
148
+ text-align: right;
149
+ word-break: break-word;
150
+ }
146
151
  }
147
152
  }
148
153
 
@@ -13,6 +13,7 @@ const ModuleTitle = ({
13
13
  viewMoreIcon = <FaAngleRight />,
14
14
  pageContext = null,
15
15
  isHomepageFirstModule = false,
16
+ anchorLabel = null,
16
17
  }) => {
17
18
  const tabsToplist = module?.items?.length > 1 && module?.name === 'top_list';
18
19
  const CustomTag = `${module.module_title_tag}`;
@@ -42,7 +43,7 @@ const ModuleTitle = ({
42
43
  const moduleTitle = module?.title || module?.module_title;
43
44
  if (!module?.module_title_tag && moduleTitle) {
44
45
  return (
45
- <h2 className={`${styles?.noTag || ''} ${className || ''}`}>
46
+ <h2 id={anchorLabel} className={`${styles?.noTag || ''} ${className || ''}`}>
46
47
  {moduleTitle}
47
48
  {currentMonth ? (
48
49
  <span className={styles?.toplistDate || ''}>
@@ -56,7 +57,7 @@ const ModuleTitle = ({
56
57
 
57
58
  if (module.module_title_tag)
58
59
  return (
59
- <CustomTag className={className || ''}>
60
+ <CustomTag id={anchorLabel} className={className || ''}>
60
61
  {moduleTitle}
61
62
  {currentMonth ? (
62
63
  <span className={styles?.toplistDate || ''}>
@@ -69,7 +70,7 @@ const ModuleTitle = ({
69
70
 
70
71
  return (
71
72
  moduleTitle && (
72
- <span className={`${styles?.noTag || ''} ${className || ''}`}>
73
+ <span id={anchorLabel} className={`${styles?.noTag || ''} ${className || ''}`}>
73
74
  {moduleTitle}
74
75
  {currentMonth ? (
75
76
  <span className={styles?.toplistDate || ''}>
@@ -103,6 +103,12 @@ const Modules = ({ module, page, pageContext, index, exclOperator }) => {
103
103
 
104
104
  const homepageFirstModule = index === 0 && page.path === '/';
105
105
 
106
+ const anchorLabel = module.anchor_label
107
+ ? removeSymbols(anchorLink(module.anchor_label))
108
+ : module.name === 'archive'
109
+ ? 'archiveLabel'
110
+ : null;
111
+
106
112
  const extraProps =
107
113
  module.name === 'bonus'
108
114
  ? {
@@ -112,7 +118,9 @@ const Modules = ({ module, page, pageContext, index, exclOperator }) => {
112
118
  prettyLink: prettyTracker(module?.value, 'main', false, page?.template),
113
119
  isStickyCta: false,
114
120
  }
115
- : {};
121
+ : {
122
+ anchorLabel,
123
+ };
116
124
 
117
125
  const moduleClassName = `${module.name}Module`;
118
126
 
@@ -128,7 +136,11 @@ const Modules = ({ module, page, pageContext, index, exclOperator }) => {
128
136
  return (
129
137
  ModuleComponent && (
130
138
  <div
131
- id={module.anchor_label && `${removeSymbols(anchorLink(module.anchor_label))}`}
139
+ id={
140
+ module.name === 'archive' && (module.module_title || module.module_title)
141
+ ? null
142
+ : anchorLabel
143
+ }
132
144
  style={module.background_color && moduleBackgroundColor}
133
145
  className={`${styles[moduleClassName] !== undefined ? styles[moduleClassName] || '' : ''} ${
134
146
  module?.name || ''
@@ -137,7 +149,11 @@ const Modules = ({ module, page, pageContext, index, exclOperator }) => {
137
149
  }`}
138
150
  >
139
151
  {module.name !== 'top_list' && (
140
- <ModuleTitle module={module} isHomepageFirstModule={homepageFirstModule} />
152
+ <ModuleTitle
153
+ module={module}
154
+ isHomepageFirstModule={homepageFirstModule}
155
+ anchorLabel={module.name === 'archive' && anchorLabel}
156
+ />
141
157
  )}
142
158
  {ModuleIntro && (
143
159
  <ModuleIntro
@@ -345,4 +345,4 @@
345
345
 
346
346
 
347
347
 
348
- window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.23bfd16b.iframe.bundle.js"></script><script src="522.0e8faa1e.iframe.bundle.js"></script><script src="main.467d52d3.iframe.bundle.js"></script></body></html>
348
+ window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"},{"titlePrefix":"","directory":"./src","files":"**/**/**/**/**/*.stories.js","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.js)$"}];</script><script src="runtime~main.23bfd16b.iframe.bundle.js"></script><script src="522.0e8faa1e.iframe.bundle.js"></script><script src="main.9e7c99c1.iframe.bundle.js"></script></body></html>