gatsby-core-theme 28.0.6 → 29.0.0-beta.1

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,166 +1,53 @@
1
- ## [28.0.6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v28.0.5...v28.0.6) (2023-08-29)
1
+ # [29.0.0-beta.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v28.0.6...v29.0.0-beta.1) (2023-09-04)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * add webkit ([ef4a978](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ef4a978f44eb4122cf0f88d4b7eb19f1b343a183))
7
- * update content ([42a32a6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/42a32a6b2fa1eb5f1edbf375d0210642702bdebf))
8
- * update content module ([35a764c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/35a764c043781b9f7657e8b0ce2aae50f0854318))
6
+ * fix errors ([4377e30](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4377e308aea20c09091673ff9bd5f074b9947e0e))
7
+ * initial purge css ([094bb4b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/094bb4b6b0c9e4e5d72cb14af03fb9f474e969cf))
8
+ * react.lazy ([da95f70](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/da95f705f9b19766c882e554730c71cbd43092db))
9
+ * reset beta branch ([4b242ae](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4b242ae2d9fa60f6e8705b14736b2f1c5fc57361))
9
10
 
10
11
 
11
- * Merge branch 'tm-3537-content-module' into 'master' ([8f8a75d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8f8a75d52c2deaed761ae8ab946148f654d1bd53))
12
- * Merge branch 'tm-3537-content-module' into 'master' ([da1b655](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/da1b655131168dfdd2de64198ced20ac8d66a5b6))
13
-
14
- ## [28.0.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v28.0.4...v28.0.5) (2023-08-29)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * add also env ([b0ffde8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b0ffde82cbb27bd0536f8ebbe4d56f9c33bff8b7))
20
- * noscript ([9422a53](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9422a531ed62fa4991bae670f2a3e681ea79ef60))
21
- * update content module ([1f448a0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1f448a0365eadf9ab349d437badcd30aa1ef9944))
22
- * update variables ([2c3c7c8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/2c3c7c87c6852573c3eadab390d2a0fc6494a9d1))
23
-
24
-
25
- * Merge branch 'iframes' into 'master' ([0b64e30](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0b64e30d9a5490c01f62c26906f554263a29a97e))
26
- * Merge branch 'tm-3537-content-module' into 'master' ([1606fec](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1606fecbc2d669521f1f1674a134f69fbeccc865))
27
-
28
- ## [28.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v28.0.3...v28.0.4) (2023-08-28)
29
-
30
-
31
- ### Bug Fixes
32
-
33
- * issearchPath helper ([d7d0d52](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d7d0d52c08a9b65b31759a1d6343b69ce014b67b))
34
-
35
- ## [28.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v28.0.2...v28.0.3) (2023-08-28)
36
-
37
-
38
- ### Bug Fixes
39
-
40
- * added translations ([cc10ed3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cc10ed37d43e4efa1b269c6c87ea77e639af16bb))
41
- * archive buttons translations ([5929177](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/59291770f76274c090fef607f60da1d196473f44))
42
- * update search module ([d91edad](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d91edadb13dde8da16bb03e701a21fb9ffc343ce))
43
-
44
-
45
- * Merge branch 'tm-3533-enable-search-for-multiple-market' into 'master' ([8e97e7f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8e97e7fa1357c4ba9baa3a65744b038ef6729e06))
46
- * Merge branch 'tm-3642-pagination-translations' into 'master' ([7664773](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/76647734b8de7da16bb1a2b91bfc4d8ef19db18c))
47
-
48
- ## [28.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v28.0.1...v28.0.2) (2023-08-24)
49
-
50
-
51
- ### Bug Fixes
52
-
53
- * update content module ([2914737](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/2914737fe2d9cd67e4bc244d2c6ec1b21372e68a))
54
-
55
-
56
- * Merge branch 'tm-3537-content-module' into 'master' ([aefad03](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/aefad038fe094c1c7cc34373776f63dd5280db13))
57
-
58
- ## [28.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v28.0.0...v28.0.1) (2023-08-22)
59
-
60
-
61
- ### Code Refactoring
62
-
63
- * add minor css change ([8ba0eb8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8ba0eb8c7759514fe1481e7266384be3269d96b3))
64
- * correction to form gaps ([c0a45d9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c0a45d951a5e544c94a0b12383d66e00af9bded0))
65
-
66
- # [28.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v27.0.1...v28.0.0) (2023-08-22)
67
-
68
-
69
- ### Code Refactoring
70
-
71
- * add ([1fb65d2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1fb65d24108a9e258a33bec5aba9e3b55476b4e5))
72
- * add button label ([6fffc12](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6fffc12888e0f53e0bd93b3d9f5d1767bd4106a1))
73
- * add multiple markets, validations, tests, recaptcha validation ([b5b5c36](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b5b5c367bdaeacfe67d76ba071b5599b249d0763))
74
- * add prop to show/hide button icon ([528d5f3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/528d5f33ef13c271c7e419d798408fd7de173486))
75
- * add recaptcha to form fields ([f2a77b9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f2a77b9d999f313cbeb50fc17272be5debc1e735))
76
- * change button style so on site level it adapts the primary button styles ([9f565ce](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9f565cebf9fae352e1784cf7db91163c2f0faf04))
77
- * change to test ([1132888](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/113288861a9087325d2a2549ed6fcda4995673c7))
78
- * changes to qa feedback and enable to add links inside field labels ([578b21b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/578b21b7884229b1918ecde872ac84081a670c54))
79
- * correction to label display condition ([305c026](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/305c026fa53a64d8fc451695adc2b5ebdc28cba3))
80
- * correction to validation ([2d2ebbc](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/2d2ebbc6586827251786afef376ba10be8fdd4d6))
81
- * form link styles ([0c1dbd9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0c1dbd97ef2ff9f7b94708b33af113162647cbe5))
82
- * remove test recpatcha ([65401aa](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/65401aad2e185c1355aca5cf54b9d66a90432af6))
83
- * remove unused vars and correction to form storybook ([01545ef](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/01545ef5685c9559221766356c4b821ca844e4f8))
84
- * remove unwanted state ([9704234](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/97042348141c2f6afd3e1b030a7f537539ffc9cb))
85
-
86
-
87
- * Merge branch 'tm-3556-contact-us-page' into 'master' ([c79e7d8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c79e7d846b6bc84f006fcc54f0e1f6b2bc524010))
88
- * Merge branch 'master' into tm-3556-contact-us-page ([3984e56](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3984e56d59ac1939eae7d2828ee9337bca43311d))
89
- * Merge branch 'master' into tm-3556-contact-us-page ([960071a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/960071a5f887163d1d293c610334f75a07566261))
90
-
91
-
92
- ### Tests
93
-
94
- * test for components ([5784586](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5784586cbc8e7675956b70f75ae8a5135568208d))
95
-
96
- ## [27.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v27.0.0...v27.0.1) (2023-08-21)
97
-
98
-
99
- ### Bug Fixes
100
-
101
- * add blockquote ([f39cb52](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f39cb527eecc28bdce18a62bfbb43358362caff5))
102
- * add checkers ([80d8882](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/80d888258c0b1d6f1853abf4aecafaabbcf6b47b))
103
- * fixed failing tests ([72d5af0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/72d5af01e7d777592f7333e8bf75d200a2f812c0))
104
- * rename a constant ([136f679](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/136f67915dfe7358efa1c41570b86d27e3f86b48))
105
- * update blockquote ([194cd0f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/194cd0fa0656088e8b6682458b9788c8c010d575))
106
- * update content module ([1034cd3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1034cd3a510a9b8d635059dea25a3374768c2246))
107
- * update content module ([cb6cc2b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cb6cc2bb64047eee2aa7ee69c02c9ab82cb80fc6))
108
- * update content module ([11a34f0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/11a34f0d7ee9ae4efd445bb0345d22452eaa6c5d))
109
- * update content module and style ([b670541](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b670541fa7c9ac401ea91a1acd7c276bb83ab351))
110
- * update isSearchPath function ([fa4355d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fa4355d95a0e2fd176f01a4d3d58fe2662dada5d))
111
- * update remove content-box ([1fe3a18](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1fe3a187f3bedca955f678253267399badaf5406))
112
- * update search ([b2d8078](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b2d807802fe65b713c308b1977c183f52ba81103))
113
- * update search for multiple market ([fc50ae5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fc50ae58ec3ec2d177e8dbe7252fe347e3d2f2b8))
114
- * update search for multiple markets ([7176917](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7176917b0e6bde869e8db734061a3da49e1a9c17))
115
- * update storybooks ([3c40fb1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3c40fb149e64e223dffaff9874b15408100b8064))
116
- * update style ([d4ea61e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d4ea61e24876bca5fe270e3c2ff7edef65991f61))
117
- * update styling ([494b823](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/494b8233180a8bc8060d6d3e16533ea720b3be39))
118
- * update styling ([c9fc4de](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c9fc4de085552a269ada3c0f012218dd915e7f24))
119
- * update styling ([333821a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/333821a722242619289b335bbe4afc982b8502d5))
120
- * update styling for content module ([ee87f88](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ee87f8839740db916c3f40539e597fbaef3c1ab5))
121
- * update styling that we get from hercules ([6e296fc](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6e296fc3cb579fb35363347959294c3341007e2e))
122
- * update table classes ([1100376](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1100376f642ee24c88cf0bb26aa195463bcc8f8d))
123
-
124
-
125
- * Merge branch 'tm-3537-content-module' into 'master' ([082f24e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/082f24ea4d4ecda0fbd0a0d54f4cff013dbabac8))
126
- * Merge branch 'tm-3533-enable-search-for-multiple-market' into 'master' ([43a8839](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/43a88398f1ea606d543589080b16e97d205f86f0))
12
+ ### chore
127
13
 
128
- # [27.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v26.0.0...v27.0.0) (2023-08-18)
14
+ * **release:** 25.0.15-beta.1 [skip ci] ([7eb9a36](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7eb9a360e32158806462c3e4adaf4af2d7881f5e))
129
15
 
130
16
 
131
17
  ### Code Refactoring
132
18
 
133
- * add reading time to cards to show correct card reading time instead of page reading ([ad014ae](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ad014aeddd44011b1fb470fd5080312d945090fc))
134
- * complete changes to add reading time to all pages including to modules in search pages and archive pages ([4afbd96](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4afbd960d21abbd09b3ca998aa5a0d9bdb518862))
135
- * minor change for form ([c9f4eaf](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c9f4eafeceb7c9c091736019acfd745447ab7dd7))
19
+ * add default form if one for correct market is not available ([ca2a26e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ca2a26e545be905e0a53f6dbe23185d6e003db2a))
20
+ * add dmca image ([6b3d920](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6b3d92081c71c7109f724f778e577c9cc1cbb1b0))
21
+ * add dmca on footer ([5acaf10](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5acaf10c48f968c7dd1300098b9b2fd84b56f6ca))
22
+ * check if form available ([1472cd3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1472cd3d598b18487c6379ada4ad8e1cfcae67ff))
23
+ * correction to dmca image ([38f6d08](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/38f6d08cbd44fc845c54fadc9a40e3ec0d8adade))
24
+ * correction to logo path ([104a108](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/104a108886353981ed0ef560b6e61425b722737e))
25
+ * default for form options ([555fa06](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/555fa0682e2b0c1eb5732fc6d7e7b12dd55f0317))
26
+ * initial commit ([b03cdd2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b03cdd2552c3f2972fc6974f4f083bd458076dc7))
27
+ * remove unused vars ([20fb3ce](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/20fb3ce20163646e53354602cd76da21a40dbeb8))
136
28
 
137
29
 
138
- * Merge branch 'tm-3573-news' into 'master' ([4dc2e41](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4dc2e41e9714e4e3c053958da65425a4da67b637))
139
- * Merge branch 'master' into tm-3573-news ([a2366b1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a2366b1de8ca7acb3f7daa2dad1de9f1733de2cf))
30
+ * Merge branch 'react-lazy' into 'beta' ([ca232f0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ca232f010ba1a05fe782b95c77761d0da195c303))
31
+ * Merge branch 'react-lazy' of https://git.ilcd.rocks/team-floyd/themes/gatsby-themes into react-lazy ([100aaba](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/100aabaca00c0616a2c4b5f9295555f9acdb3d87))
32
+ * Merge branch 'tm-3644-dmca-image' into 'master' ([1af4bd1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1af4bd1b344b9966e9416dc1f2dc6433fa18b210))
33
+ * Merge branch 'tm-3644-dmca-image' into 'master' ([842b4b2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/842b4b20abc4ffa68c0e370900f05070055b2348))
34
+ * Merge branch 'master' into tm-3644-dmca-image ([593a3d3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/593a3d3ef443d0fbf184cde41a47bb687f88ad6f))
35
+ * Merge branch 'master' into tm-3644-dmca-image ([9ba0650](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/9ba0650df819c87922a5217cdfe9b97eb56df170))
36
+ * Merge branch 'tm-3574-purge-css' into 'beta' ([5c06bac](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/5c06bac6312cb9360994c009c36369a4109112c8))
37
+ * Merge branch 'beta' into 'tm-3574-purge-css' ([20dcc8b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/20dcc8b1e45784860bf8d152810f659a49bb2873))
38
+ * Merge branch 'beta' into 'react-lazy' ([5434213](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/54342132c7e6dd5f9574388168d2a35519a23c2f))
140
39
 
141
40
 
142
41
  ### Tests
143
42
 
144
- * add test ([69eabbd](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/69eabbda0e957f31bd3e76f8ec97619b0af23827))
43
+ * disclaimer test ([1133fe1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/1133fe129527f180cc91d8c2fa11f22d4a2fa56b))
145
44
 
146
- # [26.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.14...v26.0.0) (2023-08-16)
45
+ ## [25.0.15-beta.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.14...v25.0.15-beta.1) (2023-08-18)
147
46
 
148
47
 
149
48
  ### Bug Fixes
150
49
 
151
- * fix storybook form json ([da6d479](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/da6d479186108e875c53e0160bb99a1d9d06fdd1))
152
- * moved contact form story to template block ([ddd4f02](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ddd4f02c9720dcca58d57a595547bc02af0990f6))
153
-
154
-
155
- ### Code Refactoring
156
-
157
- * dynamic form with validations, storybook and test. constant form json ([d727a64](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d727a64af6466c6a92422437783232a1fa203d63))
158
- * remove unwanted code and add responsive css ([d091869](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/d091869597e07c438c2938693a2b3aa9c7a81682))
159
- * temp changes ([241386b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/241386bb27caaa433fce62b29a5355384a1b770f))
160
-
161
-
162
- * Merge branch 'tm-3556-form' into 'master' ([325d44e](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/325d44e55bd835c97490965214d7e2eb60b89877))
163
- * Merge branch 'master' into tm-3556-form ([8b16477](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8b164778193dd10cb663bf0069f1029e68d241ac))
50
+ * reset beta branch ([4b242ae](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/4b242ae2d9fa60f6e8705b14736b2f1c5fc57361))
164
51
 
165
52
  ## [25.0.14](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v25.0.13...v25.0.14) (2023-08-10)
166
53
 
package/gatsby-config.js CHANGED
@@ -3,7 +3,6 @@ module.exports = {
3
3
  DEV_SSR: false,
4
4
  },
5
5
  plugins: [
6
- 'gatsby-plugin-loadable-components-ssr',
7
6
  {
8
7
  resolve: 'gatsby-plugin-sass',
9
8
  options: {
@@ -21,7 +20,7 @@ module.exports = {
21
20
  resolve: 'gatsby-plugin-webpack-bundle-analyser-v2',
22
21
  options: {
23
22
  devMode: true,
24
- disable: true,
23
+ disable: false,
25
24
  },
26
25
  },
27
26
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "28.0.6",
3
+ "version": "29.0.0-beta.1",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -17,7 +17,6 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@loadable/babel-plugin": "^5.15.3",
20
- "@loadable/component": "^5.15.3",
21
20
  "@loadable/server": "^5.15.3",
22
21
  "@loadable/webpack-plugin": "^5.14.2",
23
22
  "@reach/router": "^1.3.3",
@@ -31,7 +30,6 @@
31
30
  "gatsby": "^5.11.0",
32
31
  "gatsby-image": "^3.11.0",
33
32
  "gatsby-plugin-image": "^3.11.0",
34
- "gatsby-plugin-loadable-components-ssr": "^4.2.0",
35
33
  "gatsby-plugin-manifest": "^5.11.0",
36
34
  "gatsby-plugin-postcss": "^6.11.0",
37
35
  "gatsby-plugin-sass": "^6.11.0",
@@ -1,8 +1,7 @@
1
1
  /* eslint-disable react/prop-types */
2
2
  /* eslint-disable react/forbid-prop-types */
3
- import React, { useEffect, useState } from 'react';
3
+ import React, { useEffect, useState, lazy, Suspense } from 'react';
4
4
  import PropTypes from 'prop-types';
5
- import loadable from '@loadable/component';
6
5
  import MainProvider from '~context/MainProvider';
7
6
  import Body from '~pages/body';
8
7
  import HeadData from '~organisms/head';
@@ -49,21 +48,21 @@ const App = ({ pageContext }) => {
49
48
  }
50
49
  }
51
50
 
52
- const TrackerContent = isTracker ? loadable(() => import(`~pages/tracker`)) : null;
53
- const TrackerGeoContent = isTrackeGeo ? loadable(() => import(`~pages/tracker-geo`)) : null;
51
+ const TrackerContent = isTracker ? lazy(() => import(`~pages/tracker`)) : null;
52
+ const TrackerGeoContent = isTrackeGeo ? lazy(() => import(`~pages/tracker-geo`)) : null;
54
53
 
55
54
  if (TrackerGeoContent) {
56
55
  return (
57
- <>
56
+ <Suspense>
58
57
  <TrackerGeoContent pageContext={pageContext} path={pageContext.page.path} />
59
- </>
58
+ </Suspense>
60
59
  );
61
60
  }
62
61
 
63
62
  return isTracker ? (
64
- <>
63
+ <Suspense>
65
64
  <TrackerContent pageContext={pageContext} path={pageContext.page.path} />
66
- </>
65
+ </Suspense>
67
66
  ) : (
68
67
  <MainProvider value={{ translations }}>
69
68
  <div
@@ -1,37 +1,18 @@
1
1
  /* eslint-disable no-unused-expressions */
2
2
  import React from 'react';
3
- import { render, cleanup, fireEvent } from '@testing-library/react';
4
-
3
+ import { render, cleanup } from '@testing-library/react';
5
4
  import '@testing-library/jest-dom/extend-expect';
6
-
7
5
  import Disclaimer from '.';
8
6
 
9
- const dmcaImg = (
10
- <img
11
- src="https://images.dmca.com/Badges/_dmca_premi_badge_1.png?ID=9e466e76-827d-4247-ac51-4eb75b227301"
12
- alt="DMCA Protection Logo"
13
- />
14
- );
15
-
16
7
  describe('Disclaimer Component', () => {
17
8
  test('render disclaimer badge', () => {
18
- const { container } = render(<Disclaimer image={dmcaImg} />);
19
- expect(container.querySelectorAll('a')).toHaveLength(1);
20
- expect(container.querySelectorAll('img')).toHaveLength(1);
21
- const ahref = container.querySelector('a');
22
- // eslint-disable-next-line no-lone-blocks
23
- {
24
- ahref &&
25
- fireEvent.change(ahref, {
26
- target: {
27
- href: '//www.dmca.com/Protection/Status.aspx?ID=9e466e76-827d-4247-ac51-4eb75b227301',
28
- },
29
- });
30
- }
31
- // eslint-disable-next-line no-lone-blocks
32
- {
33
- ahref && fireEvent.click(container.querySelector('a'));
34
- }
9
+ // eslint-disable-next-line global-require
10
+ const func = require('../../../helpers/device-detect');
11
+ func.isNativeImageLazyLoadingSupported = jest.fn(() => true);
12
+ const { container } = render(<Disclaimer dmcaImage="../../../../../images/dmca.png" />);
13
+ expect(container.querySelector('img')).toBeTruthy();
14
+ expect(container.querySelector('img')).toHaveAttribute('src', '../../../../../images/dmca.png');
15
+ expect(container.querySelector('img')).toHaveAttribute('loading', 'eager');
35
16
  });
36
17
  });
37
18
  afterEach(() => {
@@ -3,8 +3,9 @@
3
3
  /* eslint-disable no-var */
4
4
  import React, { useRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
+ import LazyImage from '~hooks/lazy-image';
6
7
 
7
- const Disclaimer = ({ image }) => {
8
+ const Disclaimer = ({ dmcaImage, imgWidth = 100, imgHeight = 33, loading = 'eager' }) => {
8
9
  const anchorElement = useRef(null);
9
10
 
10
11
  function dmca() {
@@ -23,23 +24,30 @@ const Disclaimer = ({ image }) => {
23
24
  }
24
25
 
25
26
  return (
26
- <>
27
- <a
28
- ref={anchorElement}
29
- onClick={dmca}
30
- href={`//www.dmca.com/Protection/Status.aspx?ID=${process.env.DMCA_PROTECTION_ID}`}
31
- title="DMCA.com Protection Status"
32
- target="_blank"
33
- rel="noreferrer"
34
- >
35
- {image}
36
- </a>
37
- </>
27
+ <a
28
+ ref={anchorElement}
29
+ onClick={dmca}
30
+ href={`//www.dmca.com/Protection/Status.aspx?ID=${process.env.DMCA_PROTECTION_ID}`}
31
+ title="DMCA.com Protection Status"
32
+ target="_blank"
33
+ rel="noreferrer"
34
+ >
35
+ <LazyImage
36
+ alt="DMCA.com Protection Status"
37
+ width={imgWidth}
38
+ height={imgHeight}
39
+ src={dmcaImage}
40
+ loading={loading}
41
+ />
42
+ </a>
38
43
  );
39
44
  };
40
45
 
41
46
  export default Disclaimer;
42
47
 
43
48
  Disclaimer.propTypes = {
44
- image: PropTypes.node,
49
+ dmcaImage: PropTypes.string,
50
+ imgWidth: PropTypes.number,
51
+ imgHeight: PropTypes.number,
52
+ loading: PropTypes.string,
45
53
  };
@@ -1,6 +1,5 @@
1
- import React from 'react';
1
+ import React, { lazy } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import loadable from '@loadable/component';
4
3
  import { isNativeImageLazyLoadingSupported } from '~helpers/device-detect';
5
4
  import styles from './iframe.module.scss';
6
5
 
@@ -12,7 +11,7 @@ const Iframe = ({
12
11
  frameBorder = 1,
13
12
  }) => {
14
13
  if (!isNativeImageLazyLoadingSupported() && lazyLoad) {
15
- const LazyLoad = loadable(() => import(`react-lazyload`));
14
+ const LazyLoad = lazy(() => import(`react-lazyload`));
16
15
  return (
17
16
  <>
18
17
  <LazyLoad>
@@ -1,11 +1,10 @@
1
1
  /* eslint-disable camelcase */
2
2
  /* eslint-disable import/no-extraneous-dependencies */
3
- import React, { useState, useContext } from 'react';
3
+ import React, { useState, useContext, lazy, Suspense } from 'react';
4
4
  import parse from 'html-react-parser';
5
5
  import PropTypes from 'prop-types';
6
6
  import LazyImage from 'gatsby-core-theme/src/hooks/lazy-image';
7
7
  import { parseCss } from 'gatsby-core-theme/src/helpers/css-parser';
8
- import loadable from '@loadable/component';
9
8
  import { parseContentImageUrl } from 'gatsby-core-theme/src/helpers/strings';
10
9
  import { generatePlaceholderString } from '../../../helpers/generators';
11
10
  import { Context } from '~context/MainProvider';
@@ -21,8 +20,12 @@ const Content = ({ module, isHomepageFirstModule = false, isModuleIntroduction =
21
20
 
22
21
  const replaceMedia = (node) => {
23
22
  if (node.name === 'iframe') {
24
- const Iframe = loadable(() => import('gatsby-core-theme/src/components/atoms/iframe'));
25
- return <Iframe src={node.attribs.src} />;
23
+ const Iframe = lazy(() => import('gatsby-core-theme/src/components/atoms/iframe'));
24
+ return (
25
+ <Suspense>
26
+ <Iframe src={node.attribs.src} />
27
+ </Suspense>
28
+ );
26
29
  }
27
30
 
28
31
  if (node.name === 'img') {
@@ -9,6 +9,7 @@ import {
9
9
 
10
10
  import Footer from '.';
11
11
  import { sampleFooter } from '~tests/factories/sections/footer.factory';
12
+ import mlogo from '../../../../static/images/dmca.png';
12
13
 
13
14
  export default {
14
15
  title: 'Theme/Molecules/Footer',
@@ -87,6 +88,17 @@ export default {
87
88
  defaultValue: { summary: null },
88
89
  },
89
90
  },
91
+ dmcaImage: {
92
+ name: 'dmcaImage',
93
+ type: { name: 'string', required: false },
94
+ defaultValue: mlogo,
95
+ description:
96
+ 'The page template. This is used to check the page type. Some page types should hide footer links, for example the `ppc` page type.',
97
+ table: {
98
+ type: { summary: 'string' },
99
+ defaultValue: { summary: mlogo },
100
+ },
101
+ },
90
102
  },
91
103
  parameters: {
92
104
  docs: {
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import React, { lazy, Suspense } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import loadable from '@loadable/component';
4
3
  import { getExtraField, copyrightText } from '~helpers/getters';
4
+ import Disclaimer from '~atoms/disclaimer';
5
5
  import styles from './footer.module.scss';
6
6
 
7
7
  /* eslint-disable react/no-danger */
@@ -14,28 +14,32 @@ const Footer = ({
14
14
  footerBottomCustom,
15
15
  copyrightDisclaimer,
16
16
  template,
17
+ hasDisclaimer = true,
18
+ dmcaImage = '../../../../../images/dmca.png',
17
19
  }) => {
18
20
  const TopSection = footerTopCustom;
19
21
  const BottomSection = footerBottomCustom;
20
22
  const showLinks = template !== 'ppc';
21
23
 
22
- const LinkList = footerMenu && showLinks ? loadable(() => import('~molecules/link-list')) : null;
24
+ const LinkList = footerMenu && showLinks ? lazy(() => import('~molecules/link-list')) : null;
23
25
 
24
26
  return (
25
27
  <footer className={styles.footer || ''}>
26
28
  <div className={styles.topPart || ''}>
27
29
  <div className={styles.links || ''}>
28
30
  {footerMenu && showLinks && (
29
- <LinkList
30
- lists={getExtraField(section.extra_fields, footerMenu)}
31
- gtmClass="mobile-menu-gtm"
32
- />
31
+ <Suspense>
32
+ <LinkList
33
+ lists={getExtraField(section.extra_fields, footerMenu)}
34
+ gtmClass="mobile-menu-gtm"
35
+ />
36
+ </Suspense>
33
37
  )}
34
38
  </div>
35
39
 
36
40
  {footerTopCustom && <TopSection section={section} />}
37
41
  </div>
38
-
42
+ {hasDisclaimer && <Disclaimer dmcaImage={dmcaImage} />}
39
43
  <div className={styles.bottomPart || ''}>
40
44
  {footerBottomCustom && <BottomSection section={section} />}
41
45
  <div className={styles.copyrightDisclaimer || ''}>
@@ -53,13 +57,15 @@ const Footer = ({
53
57
  </div>
54
58
  <div className={styles.logos || ''}>
55
59
  {footerLogos && (
56
- <LinkList
57
- showListTitle={false}
58
- imageOnly
59
- singleList
60
- lists={getExtraField(section.extra_fields, footerLogos)}
61
- gtmClass="mobile-menu-gtm logo-cta"
62
- />
60
+ <Suspense>
61
+ <LinkList
62
+ showListTitle={false}
63
+ imageOnly
64
+ singleList
65
+ lists={getExtraField(section.extra_fields, footerLogos)}
66
+ gtmClass="mobile-menu-gtm logo-cta"
67
+ />
68
+ </Suspense>
63
69
  )}
64
70
  </div>
65
71
  </div>
@@ -86,4 +92,6 @@ Footer.propTypes = {
86
92
  footerTopCustom: PropTypes.func,
87
93
  footerBottomCustom: PropTypes.func,
88
94
  template: PropTypes.string,
95
+ hasDisclaimer: PropTypes.string,
96
+ dmcaImage: PropTypes.string,
89
97
  };
@@ -1,7 +1,5 @@
1
- import React from 'react';
1
+ import React, { lazy, Suspense } from 'react';
2
2
  import PropTypes from 'prop-types';
3
-
4
- import loadable from '@loadable/component';
5
3
  import styles from './header.module.scss';
6
4
  import Breadcrumbs from '~atoms/breadcrumbs';
7
5
  import { imagePrettyUrl, getSectionExtraField } from '~helpers/getters';
@@ -47,7 +45,7 @@ function Header({ section, content = null, backgroundImage = true, showAuthor =
47
45
  section.page.path !== 'sitemap' &&
48
46
  section.page.author &&
49
47
  showAuthor
50
- ? loadable(() => import('~atoms/author'))
48
+ ? lazy(() => import('~atoms/author'))
51
49
  : null;
52
50
 
53
51
  return (
@@ -62,14 +60,16 @@ function Header({ section, content = null, backgroundImage = true, showAuthor =
62
60
  {section.page.path && <Breadcrumbs markets={section.allMarkets} page={section.page} />}
63
61
  {Author && (
64
62
  <div className={styles.authorContainer || ''}>
65
- <Author
66
- authorImg={section.page?.author?.image}
67
- link={section.page?.author?.profile_page_path}
68
- name={section.page.author?.name}
69
- date={section.page.updated_at ? section.page.updated_at : section.page.created_at}
70
- readingTime={section.page.reading_time}
71
- reviewer={section?.page.reviewer_id && section?.page?.reviewer}
72
- />
63
+ <Suspense>
64
+ <Author
65
+ authorImg={section.page?.author?.image}
66
+ link={section.page?.author?.profile_page_path}
67
+ name={section.page.author?.name}
68
+ date={section.page.updated_at ? section.page.updated_at : section.page.created_at}
69
+ readingTime={section.page.reading_time}
70
+ reviewer={section?.page.reviewer_id && section?.page?.reviewer}
71
+ />
72
+ </Suspense>
73
73
  </div>
74
74
  )}
75
75
  </div>