Skip to content

Commit 1bfe368

Browse files
chore: remove faker
1 parent cab3859 commit 1bfe368

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

.storybook/decorators/language.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { allFakers } from "@faker-js/faker";
21
import { makeDecorator, useEffect } from '@storybook/preview-api';
3-
import { capitalize } from "lodash-es";
42
import { fetchContainers } from "./helpers";
53
/* global Typekit */
64

@@ -22,13 +20,6 @@ export const withLanguageWrapper = makeDecorator({
2220
const isNotEnglish = lang && lang !== "en-US";
2321
const isRTL = ["ar", "fa", "he"].includes(lang);
2422

25-
// @todo: this can't be used for VRT because the strings are random
26-
// Attach the generator tool to the parameters for use in the story
27-
context.generator = allFakers?.[lang];
28-
29-
// Add a custom generator for titles
30-
context.generator.lorem.title = (count) => capitalize(context.generator.lorem.words(count));
31-
3223
// Add a textDirection property to the globals for use in the story
3324
context.globals.textDirection = isRTL ? "rtl" : "ltr";
3425

.storybook/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"@etchteam/storybook-addon-status": "^5.0.0",
4242
"@storybook/addon-a11y": "^8.4.2",
4343
"@storybook/addon-actions": "^8.4.2",
44-
"@faker-js/faker": "^8.4.1",
4544
"@storybook/addon-console": "^3.0.0",
4645
"@storybook/addon-designs": "^8.0.4",
4746
"@storybook/addon-docs": "^8.4.2",

yarn.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,13 +1953,6 @@ __metadata:
19531953
languageName: node
19541954
linkType: hard
19551955

1956-
"@faker-js/faker@npm:^8.4.1":
1957-
version: 8.4.1
1958-
resolution: "@faker-js/faker@npm:8.4.1"
1959-
checksum: 10c0/4f2aecddcfdc2cc8b50b2d15d1e37302a7c7a5bbd184ae910a9d271bc11248533ca74dcdd4a9ccbe20410553e7af0f6a4d334c5b955635e09a32ddf4a64942d4
1960-
languageName: node
1961-
linkType: hard
1962-
19631956
"@fastify/busboy@npm:^2.0.0":
19641957
version: 2.1.1
19651958
resolution: "@fastify/busboy@npm:2.1.1"
@@ -3846,7 +3839,6 @@ __metadata:
38463839
"@babel/core": "npm:^7.26.0"
38473840
"@chromaui/addon-visual-tests": "npm:^1.0.0"
38483841
"@etchteam/storybook-addon-status": "npm:^5.0.0"
3849-
"@faker-js/faker": "npm:^8.4.1"
38503842
"@spectrum-css/table": "workspace:^"
38513843
"@spectrum-css/tokens": "workspace:^"
38523844
"@spectrum-css/typography": "workspace:^"

0 commit comments

Comments
 (0)