gatsby-matrix-theme 22.0.1 → 22.0.3

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/.ci.yml CHANGED
@@ -10,7 +10,7 @@ Matrix Theme Test:
10
10
  image: node:14.15.0
11
11
  stage: test
12
12
  tags:
13
- - floyd-runner-test
13
+ - gatsby-runner-dev-1
14
14
  script:
15
15
  - npm config set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN
16
16
  - yarn config set cache-folder .yarn
@@ -29,7 +29,7 @@ Theme Publish:
29
29
  image: node:18.0.0
30
30
  stage: publish
31
31
  tags:
32
- - floyd-runner-test
32
+ - gatsby-runner-dev-docker
33
33
  before_script:
34
34
  - git config --global http.sslverify false
35
35
  - git config --global user.email "floyd@gig.com"
@@ -52,7 +52,7 @@ Theme Beta Publish:
52
52
  image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
53
53
  stage: publish-beta
54
54
  tags:
55
- - floyd-runner-test
55
+ - gatsby-runner-dev-docker
56
56
  before_script:
57
57
  - git config --global http.sslverify false
58
58
  - git config --global user.email "floyd@gig.com"
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [22.0.3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v22.0.2...v22.0.3) (2023-05-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * pipelines ([c97c5f0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/c97c5f0b5846a44aac22bce244275b094e3c5fce))
7
+ * pipelines ([21baad1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/21baad10578a5558da92e355b9a1f055decfa1fb))
8
+
9
+ ## [22.0.2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v22.0.1...v22.0.2) (2023-05-11)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * unused file ([bb77018](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/bb77018a055c65f3195329d730dcce22debca595))
15
+ * updated to latest version ([0342dc2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/0342dc28f9165df64328f49a273da3708cad88ef))
16
+
17
+
18
+ ### Code Refactoring
19
+
20
+ * minor css fix for mobile view on info grid ([5d02684](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/5d02684528b5e21d5cd07d2f838ecdbea175f2bd))
21
+ * minor fix for responsiveness ([7db021a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/7db021ad14c13b87333d11be680e7979e8b121bd))
22
+ * update module title anchor only for archive module ([f8aa01a](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/f8aa01ac969f97dcff87d71231c090bc0c3bb622))
23
+
24
+
25
+ * Merge branch 'tm-3349-info-grid' into 'master' ([a3de464](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/a3de46404cc40397ab6dd9e6edbdc91c7ae67b90))
26
+ * Merge branch 'tm-3416-archive-module-pagination-focus' into 'master' ([02deae2](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/02deae2d6122306cae4722d2a32fe26db4fdfcee))
27
+ * Merge branch 'cleanup' into 'master' ([e0b88b8](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e0b88b8801a7872e72f0587eec82d246bd46fa7f))
28
+
1
29
  ## [22.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v22.0.0...v22.0.1) (2023-05-10)
2
30
 
3
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "22.0.1",
3
+ "version": "22.0.3",
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.8",
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
@@ -99,6 +99,7 @@ function Body({ pageContext, children, excludeTemplateInPopup = [], hideOperator
99
99
  {navigation && (
100
100
  <Navigation
101
101
  template={template}
102
+ pageContext={pageContext}
102
103
  section={navigation}
103
104
  searchIcon="../../../../../../images/search.svg"
104
105
  menu="main_menu"
package/storybook/.ci.yml CHANGED
@@ -6,7 +6,7 @@ Storybook Build:
6
6
  image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
7
7
  stage: build
8
8
  tags:
9
- - floyd-runner-test
9
+ - gatsby-runner-dev-1
10
10
  script:
11
11
  - yarn config set cache-folder .yarn
12
12
  - npm config set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN
@@ -26,10 +26,9 @@ Storybook Deploy:
26
26
  image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
27
27
  stage: deploy
28
28
  tags:
29
- - floyd-runner-test
29
+ - gatsby-runner-dev-1
30
30
  script:
31
31
  - mkdir -p ~/.ssh
32
- - ssh-keyscan -H storybook >> ~/.ssh/known_hosts
33
32
  - echo "$FLOYD_ROOT_KEY" > ~/.ssh/id_rsa
34
33
  - chmod 600 ~/.ssh/id_rsa
35
34
  - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
@@ -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>