gatsby-core-theme 44.5.2 → 44.5.4

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
@@ -25,7 +25,8 @@ Theme Publish:
25
25
  tags:
26
26
  - gatsby-runner-dev-docker
27
27
  before_script:
28
- - echo "@gigmedia:registry=https://registry.npmjs.org/" >> ~/.npmrc
28
+ - echo "@gigmedia:registry=https://npm.gigmedia.tech/" >> ~/.npmrc
29
+ - echo "//npm.gigmedia.tech/:_authToken=${NPM_PRIVATE_TOKEN}" >> ~/.npmrc
29
30
  - echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" >> ~/.npmrc
30
31
  - git config --global http.sslverify false
31
32
  - git config --global user.email "floyd@gig.com"
@@ -49,6 +50,8 @@ Theme Beta Publish:
49
50
  tags:
50
51
  - gatsby-runner-dev-docker
51
52
  before_script:
53
+ - echo "@gigmedia:registry=https://npm.gigmedia.tech/" >> ~/.npmrc
54
+ - echo "//npm.gigmedia.tech/:_authToken=${NPM_PRIVATE_TOKEN}" >> ~/.npmrc
52
55
  - git config --global http.sslverify false
53
56
  - git config --global user.email "floyd@gig.com"
54
57
  - git config --global user.name "floyd"
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ ## [44.5.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.5.3...v44.5.4) (2025-10-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * optional errorMsg on form fields ([bb905cd](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/bb905cdea59361e1e7a6538e0f8f836cd434de2b))
7
+
8
+ ## [44.5.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.5.2...v44.5.3) (2025-10-29)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add validation when we dont have operator data ([f60e03c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f60e03c6bc637cb31ed6ed3c81bc0b118911c8a3))
14
+ * npm token on cicd ([c0f8b55](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c0f8b558e5dcd8398904140f1c0ed39a42fb6a75))
15
+ * npm token on cicd ([f9db8ff](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f9db8fffb71b344b22192703d151ba5e62c09420))
16
+ * npm token on cicd ([2ab1d04](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2ab1d04056f823a2778feed7b0901e0d64cedf92))
17
+
18
+
19
+ ### Config
20
+
21
+ * update npm registry ([de7abb4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/de7abb40b897a7ae223fd0e05900358b6caf64cf))
22
+
23
+
24
+ * Merge branch 'master' of gitlab.com:g2m-gentoo/team-floyd/themes/gatsby-themes ([60b0f16](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/60b0f167df6b0d677f49e65f304065c50a48109c))
25
+ * Merge branch 'master' of gitlab.com:g2m-gentoo/team-floyd/themes/gatsby-themes ([f9a6eec](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/f9a6eec7de49f16484c469354a23bc64f6c59702))
26
+
1
27
  ## [44.5.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.5.1...v44.5.2) (2025-10-28)
2
28
 
3
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.5.2",
3
+ "version": "44.5.4",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@reach/router": "^1.3.3",
22
- "@gigmedia/enigma-utils": "1.10.0",
22
+ "@gigmedia/enigma-utils": "^1.20.0",
23
23
  "@react-icons/all-files": "^4.1.0",
24
24
  "axios": "^0.21.1",
25
25
  "chalk": "^4.1.0",
@@ -200,10 +200,11 @@ const getField = (field, handleChange, elements, state) => {
200
200
  name={id}
201
201
  id={id}
202
202
  aria-describedby={id}
203
- onChange={e => setRating(e.target.value)}
204
- value={rating} />
203
+ onChange={(e) => setRating(e.target.value)}
204
+ value={rating}
205
+ />
205
206
  </label>
206
- {field.errorMsg && rating === "0" && (
207
+ {field?.errorMsg && rating === "0" && (
207
208
  <span className={styles.errorMsg}>{field.errorMsg}</span>
208
209
  )}
209
210
  </>
@@ -257,7 +258,7 @@ const getField = (field, handleChange, elements, state) => {
257
258
  <div className={styles.inputGroup || ""}>
258
259
  {icon}
259
260
  {inputElement}
260
- {field.error.errorMsg && (
261
+ {field?.error?.errorMsg && (
261
262
  <span className={styles.errorMsg}>
262
263
  {useTranslate(field.error?.translationKey, field.error?.errorMsg)}
263
264
  </span>
@@ -266,7 +267,7 @@ const getField = (field, handleChange, elements, state) => {
266
267
  ) : (
267
268
  <>
268
269
  {inputElement}
269
- {field.error?.errorMsg && (
270
+ {field?.error?.errorMsg && (
270
271
  <span className={styles.errorMsg}>
271
272
  {useTranslate(field.error?.translationKey, field.error?.errorMsg)}
272
273
  </span>
@@ -314,7 +314,7 @@ export function processCardsV2(
314
314
  export function processBonus(module, relations) {
315
315
  const object = cloneDeep(relations.operator[module.value]);
316
316
 
317
- if (object.bonus) {
317
+ if (object && object.bonus) {
318
318
  const removeFields =
319
319
  settings.remove_bonus_data[process.env.GATSBY_SITE_NAME] ||
320
320
  settings.remove_bonus_data.default;
@@ -18,6 +18,9 @@ const { cloneDeep, pick } = loadash;
18
18
 
19
19
  // eslint-disable-next-line import/prefer-default-export
20
20
  export function sanitizeOperatorData(operator, operatorPage = [], data = [], toplistLabel = null) {
21
+ if (!operator) {
22
+ return null;
23
+ }
21
24
  const operatorClone = cloneDeep(operator);
22
25
 
23
26
  const { ribbons } = operator;
package/storybook/.ci.yml CHANGED
@@ -8,7 +8,7 @@ Storybook Build:
8
8
  - gatsby-runner-dev-1
9
9
  script:
10
10
  - yarn config set cache-folder .yarn
11
- - npm config set //registry.npmjs.org/:_authToken $NPM_AUTH_TOKEN
11
+ - npm config set //npm.gigmedia.tech/:_authToken $NPM_PRIVATE_TOKEN
12
12
  - yarn
13
13
  - yarn workspace gatsby-core-theme build-storybook -o ./storybook/public
14
14
  artifacts: