Skip to content

Commit 11015ac

Browse files
authored
Chore/upgrade to dsfr 1.14.2 (#455)
* chore: upgrade to dsfr 1.14.2 and update the patch-package * fix: update placeholder img urls
1 parent f568131 commit 11015ac

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@
7676
}
7777
},
7878
"devDependencies": {
79-
"@gouvfr/dsfr-chart": "^1.0.0",
8079
"@babel/core": "^7.20.2",
8180
"@emotion/react": "^11.10.4",
8281
"@emotion/styled": "^11.10.4",
83-
"@gouvfr/dsfr": "1.13.2",
82+
"@gouvfr/dsfr": "1.14.2",
83+
"@gouvfr/dsfr-chart": "^1.0.0",
8484
"@mui/icons-material": "^5.14.18",
8585
"@mui/material": "^5.14.18",
8686
"@storybook/addon-a11y": "^6.5.16",
@@ -117,6 +117,7 @@
117117
"mustache": "^4.2.0",
118118
"next": "13.5.1",
119119
"parse-numeric-range": "^1.3.0",
120+
"patch-package": "^8.0.0",
120121
"powerhooks": "^0.22.0",
121122
"prettier": "^2.3.0",
122123
"react": "18.2.0",
@@ -128,8 +129,7 @@
128129
"tss-react": "^4.9.1",
129130
"type-route": "^1.0.1",
130131
"typescript": "^4.9.1",
131-
"vitest": "^0.24.3",
132-
"patch-package": "^8.0.0"
132+
"vitest": "^0.24.3"
133133
},
134134
"main": "dist/fr/index.js",
135135
"types": "dist/fr/index.d.ts",

patches/@gouvfr+dsfr+1.13.2.patch renamed to patches/@gouvfr+dsfr+1.14.2.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ index e4d335c..6c53dce 100644
88
</svg>
99
+<!-- Slightly increasing size so it reaches the threshold that will prevent it from being inlined by Vite. -->
1010
diff --git a/node_modules/@gouvfr/dsfr/dist/dsfr.module.js b/node_modules/@gouvfr/dsfr/dist/dsfr.module.js
11-
index 3566bc7..e58a87f 100644
11+
index fcde523..7996e40 100644
1212
--- a/node_modules/@gouvfr/dsfr/dist/dsfr.module.js
1313
+++ b/node_modules/@gouvfr/dsfr/dist/dsfr.module.js
14-
@@ -6453,9 +6453,11 @@ class HeaderLinks extends api.core.Instance {
14+
@@ -6461,9 +6461,11 @@ class HeaderLinks extends api.core.Instance {
1515
case api.Modes.ANGULAR:
1616
case api.Modes.REACT:
1717
case api.Modes.VUE:

stories/Card.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const defaultProps = {
124124
"href": "#"
125125
},
126126
"desc": "Lorem ipsum dolor sit amet, consectetur adipiscing, incididunt, ut labore et dolore magna aliqua. Vitae sapien pellentesque habitant morbi tristique senectus et",
127-
"imageUrl": "https://www.systeme-de-design.gouv.fr/img/placeholder.16x9.png",
127+
"imageUrl": "https://www.systeme-de-design.gouv.fr/v1.14/storybook/img/placeholder.16x9.png",
128128
"imageAlt": "texte alternatif de l’image"
129129
};
130130

stories/Quote.stories.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const Default = getStory({
3535
</li>
3636
</>
3737
),
38-
imageUrl: "//www.systeme-de-design.gouv.fr/img/placeholder.1x1.png",
38+
imageUrl: "//www.systeme-de-design.gouv.fr/v1.14/storybook/img/placeholder.1x1.png",
3939
size: "xlarge",
4040
className: ""
4141
});
@@ -61,20 +61,20 @@ export const QuoteMediumAndAccent = getStory({
6161
</li>
6262
</>
6363
),
64-
imageUrl: "//www.systeme-de-design.gouv.fr/img/placeholder.1x1.png",
64+
imageUrl: "//www.systeme-de-design.gouv.fr/v1.14/storybook/img/placeholder.1x1.png",
6565
size: "medium",
6666
accentColor: "pink-macaron"
6767
});
6868

6969
export const QuoteWithoutDetails = getStory({
7070
text: "Lorem [...] elit ut. ",
7171
author: "Auteur",
72-
imageUrl: "//www.systeme-de-design.gouv.fr/img/placeholder.1x1.png"
72+
imageUrl: "//www.systeme-de-design.gouv.fr/v1.14/storybook/img/placeholder.1x1.png"
7373
});
7474

7575
export const QuoteWithoutSource = getStory({
7676
text: "Lorem [...] elit ut. ",
77-
imageUrl: "//www.systeme-de-design.gouv.fr/img/placeholder.1x1.png"
77+
imageUrl: "//www.systeme-de-design.gouv.fr/v1.14/storybook/img/placeholder.1x1.png"
7878
});
7979

8080
export const QuoteWithoutIllustration = getStory({
@@ -102,7 +102,7 @@ export const QuoteWithoutIllustration = getStory({
102102

103103
export const QuoteWithAccent = getStory({
104104
text: "Lorem [...] elit ut. ",
105-
imageUrl: "//www.systeme-de-design.gouv.fr/img/placeholder.1x1.png",
105+
imageUrl: "//www.systeme-de-design.gouv.fr/v1.14/storybook/img/placeholder.1x1.png",
106106
accentColor: "yellow-moutarde",
107107
author: "Someone"
108108
});

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,10 +1436,10 @@
14361436
vue-custom-element "^3.2.14"
14371437
vuex "^3.6.0"
14381438

1439-
"@gouvfr/dsfr@1.13.2":
1440-
version "1.13.2"
1441-
resolved "https://registry.npmjs.org/@gouvfr/dsfr/-/dsfr-1.13.2.tgz"
1442-
integrity sha512-4Q9ggFFzwD/KFr37sJO1hFH9PcqlZ7F3jMiFJXnBLJfkH1+s28vnQp/oXoY8TosWsLMSjdhNCrxvrUdm5XzBlg==
1439+
"@gouvfr/dsfr@1.14.2":
1440+
version "1.14.2"
1441+
resolved "https://registry.yarnpkg.com/@gouvfr/dsfr/-/dsfr-1.14.2.tgz#cbd893eba6bb2151234ae484ac426f3c5ff16b19"
1442+
integrity sha512-EJ/ZZMLmSN4KISuuXp0X0lGf+gKVqYATyqgcM5IPhMQAkJ8s5pjzvthjv+Hu6zYk4jwf2NRVt+jQz7JRpw1yiA==
14431443

14441444
"@humanwhocodes/config-array@^0.5.0":
14451445
version "0.5.0"

0 commit comments

Comments
 (0)