gatsby-matrix-theme 53.11.1 → 53.11.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/CHANGELOG.md +17 -0
- package/package.json +2 -2
- package/src/components/organisms/cards/template-one/index.js +10 -10
- package/storybook/public/{384.88e62bf5.iframe.bundle.js → 384.a2cfcbfd.iframe.bundle.js} +3 -3
- package/storybook/public/{384.88e62bf5.iframe.bundle.js.map → 384.a2cfcbfd.iframe.bundle.js.map} +1 -1
- package/storybook/public/591.77af51ef.iframe.bundle.js +1 -0
- package/storybook/public/iframe.html +1 -1
- package/storybook/public/project.json +1 -1
- package/storybook/public/{runtime~main.6de64b68.iframe.bundle.js → runtime~main.81ab47de.iframe.bundle.js} +1 -1
- package/storybook/public/591.b6c3f243.iframe.bundle.js +0 -1
- /package/storybook/public/{384.88e62bf5.iframe.bundle.js.LICENSE.txt → 384.a2cfcbfd.iframe.bundle.js.LICENSE.txt} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [53.11.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.11.1...v53.11.2) (2026-02-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* enable load more ([6a0f7ba](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/6a0f7ba0b1d92f6a685726f0c8ada4d6960bb939))
|
|
7
|
+
* remove enalbeLoadMore ([df78a91](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/df78a91926861c490ff07d3ca490f12c6594ee8d))
|
|
8
|
+
* update cards template one with usememo ([41ccc88](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/41ccc8872a23f9d913f398e45fc8836ca06b04f5))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Config
|
|
12
|
+
|
|
13
|
+
* update core theme ([cea05f7](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/cea05f7b22101a0a9571555ceba9af01bcac53de))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
* Merge branch 'en-54-add-load-more-button-to-cards' into 'master' ([913bcb1](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/913bcb14317e810647f1bfda9d888e4c13b37bb1))
|
|
17
|
+
|
|
1
18
|
## [53.11.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.11.0...v53.11.1) (2026-02-13)
|
|
2
19
|
|
|
3
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-matrix-theme",
|
|
3
|
-
"version": "53.11.
|
|
3
|
+
"version": "53.11.2",
|
|
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": "^5.11.0",
|
|
28
|
-
"gatsby-core-theme": "44.15.
|
|
28
|
+
"gatsby-core-theme": "44.15.1",
|
|
29
29
|
"gatsby-plugin-sharp": "^5.11.0",
|
|
30
30
|
"gatsby-plugin-sitemap": "^6.13.1",
|
|
31
31
|
"gatsby-transformer-sharp": "^5.11.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable camelcase */
|
|
2
|
-
import React, { Suspense, useContext } from 'react';
|
|
2
|
+
import React, { Suspense, useContext, useMemo } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import useLoadMore from 'gatsby-core-theme/src/hooks/useLoadMore';
|
|
5
5
|
import { Context } from '~context/MainProvider.js';
|
|
@@ -9,7 +9,6 @@ import useTranslate from '~hooks/useTranslate/useTranslate';
|
|
|
9
9
|
import styles from './cards.module.scss';
|
|
10
10
|
import Card from '~atoms/cards/default-card';
|
|
11
11
|
import Button from '~atoms/button/button';
|
|
12
|
-
import keygen from '~helpers/keygen';
|
|
13
12
|
|
|
14
13
|
const Cards = ({
|
|
15
14
|
module,
|
|
@@ -22,10 +21,8 @@ const Cards = ({
|
|
|
22
21
|
isArchiveModule = false,
|
|
23
22
|
increment = limit,
|
|
24
23
|
}) => {
|
|
25
|
-
const CustomCardComponent = getCard(
|
|
26
|
-
|
|
27
|
-
page?.template
|
|
28
|
-
);
|
|
24
|
+
const CustomCardComponent = useMemo(() => getCard(module?.model_type || module?.cards_page_type, page?.template), [module?.model_type, module?.cards_page_type, page?.template]);
|
|
25
|
+
|
|
29
26
|
const { admin } = useContext(Context) || {};
|
|
30
27
|
const loadMoreData = useLoadMore({
|
|
31
28
|
items: module.items,
|
|
@@ -47,12 +44,15 @@ const Cards = ({
|
|
|
47
44
|
{moduleItems &&
|
|
48
45
|
moduleItems.map((item, index) =>
|
|
49
46
|
CustomCardComponent ? (
|
|
50
|
-
<Suspense
|
|
47
|
+
<Suspense
|
|
48
|
+
key={item.id}
|
|
49
|
+
fallback={<></>}
|
|
50
|
+
>
|
|
51
51
|
{admin ? (
|
|
52
52
|
<div className={styles.container}>
|
|
53
53
|
<AdminButton item={item} />
|
|
54
54
|
<CustomCardComponent
|
|
55
|
-
key={
|
|
55
|
+
key={item.id}
|
|
56
56
|
featured={module.style === 'featured'}
|
|
57
57
|
item={item}
|
|
58
58
|
type={item.type}
|
|
@@ -65,7 +65,7 @@ const Cards = ({
|
|
|
65
65
|
</div>
|
|
66
66
|
) : (
|
|
67
67
|
<CustomCardComponent
|
|
68
|
-
key={
|
|
68
|
+
key={item.id}
|
|
69
69
|
featured={module.style === 'featured'}
|
|
70
70
|
item={item}
|
|
71
71
|
type={item.type}
|
|
@@ -79,7 +79,7 @@ const Cards = ({
|
|
|
79
79
|
</Suspense>
|
|
80
80
|
) : (
|
|
81
81
|
<Card
|
|
82
|
-
key={
|
|
82
|
+
key={item.id}
|
|
83
83
|
item={item}
|
|
84
84
|
modulePosition={modulePosition}
|
|
85
85
|
itemPosition={index + 1}
|