gatsby-core-theme 6.0.0 → 6.0.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/.storybook/main.js
CHANGED
|
@@ -5,10 +5,13 @@ module.exports = {
|
|
|
5
5
|
'../../**/**/src/**/*.stories.@(js|jsx|ts|tsx)',
|
|
6
6
|
],
|
|
7
7
|
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
|
|
8
|
+
core: {
|
|
9
|
+
builder: 'webpack5',
|
|
10
|
+
},
|
|
8
11
|
webpackFinal: async (config) => {
|
|
9
12
|
config.module.rules.push({
|
|
10
13
|
test: /\.scss$/,
|
|
11
|
-
|
|
14
|
+
use: [
|
|
12
15
|
require.resolve('style-loader'),
|
|
13
16
|
{
|
|
14
17
|
loader: require.resolve('css-loader'),
|
|
@@ -27,15 +30,10 @@ module.exports = {
|
|
|
27
30
|
],
|
|
28
31
|
});
|
|
29
32
|
config.module.rules[0].exclude = [/node_modules\/(?!(gatsby)\/)/];
|
|
30
|
-
|
|
31
|
-
config.module.rules[0].use[0].options.
|
|
32
|
-
require.resolve('
|
|
33
|
-
|
|
34
|
-
];
|
|
35
|
-
config.module.rules[0].use[0].options.plugins = [
|
|
36
|
-
require.resolve('@babel/plugin-proposal-class-properties'),
|
|
37
|
-
require.resolve('babel-plugin-remove-graphql-queries'),
|
|
38
|
-
];
|
|
33
|
+
// Use babel-plugin-remove-graphql-queries to remove static queries from components when rendering in storybook
|
|
34
|
+
config.module.rules[0].use[0].options.plugins.push(
|
|
35
|
+
require.resolve('babel-plugin-remove-graphql-queries')
|
|
36
|
+
);
|
|
39
37
|
config.resolve.alias = {
|
|
40
38
|
'~atoms': path.resolve(__dirname, '../src/components/atoms/'),
|
|
41
39
|
'~molecules': path.resolve(__dirname, '../src/components/molecules'),
|
|
@@ -49,11 +47,11 @@ module.exports = {
|
|
|
49
47
|
'gatsby-page-utils': path.resolve(__dirname, '../../node_modules/gatsby-page-utils/dist'),
|
|
50
48
|
};
|
|
51
49
|
|
|
52
|
-
config.resolve.alias['$virtual/lazy-client-sync-requires'] = path.resolve(
|
|
53
|
-
|
|
54
|
-
);
|
|
50
|
+
// config.resolve.alias['$virtual/lazy-client-sync-requires'] = path.resolve(
|
|
51
|
+
// `./__mocks__/virtual-lazy-client-sync-requires.js`
|
|
52
|
+
// );
|
|
55
53
|
|
|
56
|
-
config.resolve.mainFields = ['browser', 'module', 'main'];
|
|
54
|
+
// config.resolve.mainFields = ['browser', 'module', 'main'];
|
|
57
55
|
return config;
|
|
58
56
|
},
|
|
59
57
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [6.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v6.0.0...v6.0.1) (2022-04-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* upgraded storybook ([30e851c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/30e851c2ec0d8fd53ea0625cbc676a91a7fb891e))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'tm-2812-storybook-update' into 'master' ([a923a6f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a923a6fb50e518021c6ac8caa870382f71b0d6e7))
|
|
10
|
+
|
|
1
11
|
# [6.0.0](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v5.1.4...v6.0.0) (2022-03-31)
|
|
2
12
|
|
|
3
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-core-theme",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Gatsby Theme NPM Package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"preact": "^10.7.0",
|
|
51
51
|
"preact-render-to-string": "^5.1.20",
|
|
52
52
|
"prop-types": "15.7.2",
|
|
53
|
-
"react": "^
|
|
54
|
-
"react-dom": "^
|
|
53
|
+
"react": "^17.0.2",
|
|
54
|
+
"react-dom": "^17.0.2",
|
|
55
55
|
"react-google-recaptcha": "^2.1.0",
|
|
56
56
|
"react-helmet": "^6.0.0",
|
|
57
57
|
"react-icons": "^4.3.1",
|
|
@@ -69,10 +69,12 @@
|
|
|
69
69
|
"@semantic-release/gitlab-config": "^8.0.0",
|
|
70
70
|
"@semantic-release/npm": "^7.1.3",
|
|
71
71
|
"@semantic-release/release-notes-generator": "^9.0.3",
|
|
72
|
-
"@storybook/addon-actions": "^6.
|
|
73
|
-
"@storybook/addon-essentials": "^6.
|
|
74
|
-
"@storybook/addon-links": "^6.
|
|
75
|
-
"@storybook/
|
|
72
|
+
"@storybook/addon-actions": "^6.4.20",
|
|
73
|
+
"@storybook/addon-essentials": "^6.4.20",
|
|
74
|
+
"@storybook/addon-links": "^6.4.20",
|
|
75
|
+
"@storybook/builder-webpack5": "^6.4.20",
|
|
76
|
+
"@storybook/manager-webpack5": "^6.4.20",
|
|
77
|
+
"@storybook/react": "^6.4.20",
|
|
76
78
|
"@testing-library/jest-dom": "^5.16.3",
|
|
77
79
|
"@testing-library/react": "^12.1.4",
|
|
78
80
|
"babel-jest": "^26.6.3",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import {
|
|
3
4
|
Title,
|
|
@@ -38,15 +39,15 @@ export default {
|
|
|
38
39
|
},
|
|
39
40
|
},
|
|
40
41
|
backgroundImage: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
42
|
+
name: 'backgroundImage',
|
|
43
|
+
type: { name: 'boolean', required: false },
|
|
44
|
+
defaultValue: true,
|
|
45
|
+
description: 'Show or hide the background image.',
|
|
46
|
+
table: {
|
|
47
|
+
type: { summary: 'boolean' },
|
|
48
|
+
defaultValue: { summary: true },
|
|
49
49
|
},
|
|
50
|
+
},
|
|
50
51
|
},
|
|
51
52
|
parameters: {
|
|
52
53
|
docs: {
|