gatsby-core-theme 5.1.1 → 5.1.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/.ci.yml CHANGED
@@ -9,6 +9,9 @@ Theme Tests:
9
9
  - yarn config set cache-folder .yarn
10
10
  - yarn
11
11
  - yarn workspace gatsby-core-theme test
12
+ artifacts:
13
+ paths:
14
+ - gatsby-theme/coverage/
12
15
  coverage: /All files\s*\|\s*([\d\.]+)/
13
16
  rules:
14
17
  - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
@@ -28,11 +31,9 @@ Theme Publish:
28
31
  - yarn
29
32
  - cd gatsby-theme/
30
33
  - npx semantic-release -b $CI_COMMIT_REF_NAME
31
- when:
32
- manual
34
+ when: manual
33
35
  only:
34
36
  refs:
35
37
  - master
36
38
  variables:
37
39
  - $PIPELINE != "content-trigger"
38
-
package/CHANGELOG.md CHANGED
@@ -1,3 +1,38 @@
1
+ ## [5.1.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v5.1.1...v5.1.2) (2022-03-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add artifacts and move back stage of lighthouse ([ea69601](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ea696013e650505ae1e90b51c261e819c9eaa351))
7
+ * content module gif image and spotlight image ([a54a5a9](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a54a5a9614be85f7e6dcd90b371b5dbe2713390e))
8
+ * return back assertions ([0cefa07](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/0cefa07edd2c9f6ea73086fe7622c683aa857adf))
9
+
10
+
11
+ ### Code Refactoring
12
+
13
+ * add flag for docker issue ([b4120b2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b4120b2d417f6cccedda7187ccb911c17949d97a))
14
+ * add max assertion for testing ([04e4361](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/04e4361a3858e56b9a9e59b1491d3cb1197051b8))
15
+ * add max assertion for testing ([78d375f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/78d375f61806140fb7fe860436f7e7b9d3a3bf30))
16
+ * fix error on ci file ([37cc845](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/37cc84555a8a0a62e4036621c45eb89fe5bb1aa0))
17
+ * fix error on ci file ([e78536f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e78536ff1f2acf6beaabf8f31435b9845dd3f9d1))
18
+ * fix error on ci file ([f02439a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f02439a15ebee6088dfee42ff84c55c380410286))
19
+ * remove unnecessary line in ci yml ([8e041be](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8e041be54d13593f721a909614515367c4f04819))
20
+ * replace image ([6aacf01](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6aacf0164c03f3ec153e996b6f2117a095a920a6))
21
+ * replace lighthouse ci with google chrome lighthouse ([aa579c1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/aa579c15b30f275b2bc151a781181e9b1ec4612f))
22
+ * replace lighthouse ci with google chrome lighthouse ([fef864b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fef864bb9182003d7b496d6bfa54f211b3b64036))
23
+ * replace lighthouse ci with google chrome lighthouse ([847e99d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/847e99d6f63784d63e20bc4ac76b65fcab1714f2))
24
+ * return image ([38e3c74](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/38e3c7467638faae7c0c56d1a26f0e4caaa58896))
25
+ * test lighthouse upgrade ([764656d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/764656d9dd6511e2ef25c53d7f84b206a7ed5f1d))
26
+ * uncomment lighthouse for testing ([633f6c6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/633f6c6a95fe84e6771212912a317940d563b73f))
27
+ * uncomment lighthouse for testing ([b288b1a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b288b1a9c7ac885a0c7cbb7fcfa1ce2ed46bfb05))
28
+ * undo changes to check pipeline ([45083a5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/45083a52fc6fbc7913b0cc0b25116bac742cff39))
29
+ * undo changes to check pipeline ([79041a2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/79041a23aba7fbb58954bd460721b6378c007a4c))
30
+ * upgrade version lighthouse ci ([a5279da](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/a5279da1d2318ca3fe93a9c3170872d5ebeda979))
31
+ * upload coverage as artifact on test pipeline ([6e5d98b](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/6e5d98b7a62bc8326c8e14046ee61d077a3fce7e))
32
+
33
+
34
+ * Merge branch 'tm-2758-lighthouse' into 'master' ([57d659c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/57d659cb8f56f690564bc225e55836b23e9d8a37))
35
+
1
36
  ## [5.1.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v5.1.0...v5.1.1) (2022-03-09)
2
37
 
3
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -21,12 +21,14 @@ const Spotlights = ({ module, themeStyles = {} }) => {
21
21
 
22
22
  return (
23
23
  <>
24
- <LazyImage
25
- width={100}
26
- height={50}
27
- alt={item.label || item?.link_text || fileName}
28
- src={imageSrc}
29
- />
24
+ {img && (
25
+ <LazyImage
26
+ width={100}
27
+ height={50}
28
+ alt={item.label || item?.link_text || fileName}
29
+ src={imageSrc}
30
+ />
31
+ )}
30
32
  <label>{item.label}</label>
31
33
  {item.subtitle && <span>{item.subtitle}</span>}
32
34
  </>
@@ -1,3 +1,5 @@
1
+ import { imagePrettyUrl } from './getters';
2
+
1
3
  export function capitalize(string) {
2
4
  return string.replace(/^\w/, (c) => c.toUpperCase());
3
5
  }
@@ -60,7 +62,8 @@ export function parseContentImageUrl(src) {
60
62
  const srcArr = src && src.split('//');
61
63
  if (srcArr && srcArr.length === 2) {
62
64
  const refUrl = srcArr[1].substring(srcArr[1].indexOf('/'));
63
- return process.env.IMAGE_CDN_URL + refUrl;
65
+
66
+ return imagePrettyUrl(refUrl.substring(1));
64
67
  }
65
68
 
66
69
  return src;