@opengeoweb/form-fields 9.15.0 → 9.16.0
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/README.md +0 -15
- package/package.json +1 -1
- package/src/lib/components/ReactHookFormDateTime.stories.d.ts +2 -2
- package/src/lib/components/ReactHookFormNumberField.stories.d.ts +2 -2
- package/src/lib/components/ReactHookFormProvider.stories.d.ts +2 -2
- package/src/lib/components/ReactHookFormRadioGroup.stories.d.ts +2 -2
- package/src/lib/components/ReactHookFormSelect.stories.d.ts +2 -2
- package/src/lib/components/ReactHookFormTextField.stories.d.ts +2 -2
- package/src/lib/storyshots/Storyshots.spec.d.ts +0 -1
package/README.md
CHANGED
|
@@ -9,18 +9,3 @@ This library was generated with [Nx](https://nx.dev).
|
|
|
9
9
|
## Running unit tests
|
|
10
10
|
|
|
11
11
|
Run `nx test form-fields` to execute the unit tests via [Jest](https://jestjs.io).
|
|
12
|
-
|
|
13
|
-
## Image snapshot testing
|
|
14
|
-
|
|
15
|
-
The current regex filters on storyname takeSnapshot. So to add a story to the snapshot tests, simply add (takeSnapshot) to it's storyName and run the snapshot tests.
|
|
16
|
-
|
|
17
|
-
[Read more about snapshot testing](https://gitlab.com/opengeoweb/opengeoweb/#image-snapshot-testing)
|
|
18
|
-
|
|
19
|
-
### Running snapshot tests and updating snapshots locally
|
|
20
|
-
|
|
21
|
-
1. You need to have [docker](https://docs.docker.com/get-docker/) installed and running.
|
|
22
|
-
2. Start Chromium by running: `npm run start-chromium`. (This will start a docker container with chromium, to run snapshot tests in. We need this to make sure everyone gets the same snapshot results.)
|
|
23
|
-
3. Run the snapshot tests: `npm run test:image-snap-form-fields`. This will first create a new static storybook build and then run the tests.
|
|
24
|
-
4. If a snapshot test fails, you can find and inspect the differences in `libs/form-fields/src/lib/storyshots/__image_snapshots__/__diff_output__/`.
|
|
25
|
-
5. To update the snapshots, run `npm run test:image-snap-form-fields-update`. Snapshots are saved under `libs/form-fields/src/lib/storyshots/__image_snapshots__/`. Make sure to commit the new snapshots.
|
|
26
|
-
6. Stop Chromium by running: `npm run stop-chromium`.
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export declare const DateTime: {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const DateTimeLightTheme: {
|
|
16
16
|
(): React.ReactElement;
|
|
17
|
-
|
|
17
|
+
tags: string[];
|
|
18
18
|
parameters: {
|
|
19
19
|
zeplinLink: {
|
|
20
20
|
name: string;
|
|
@@ -24,7 +24,7 @@ export declare const DateTimeLightTheme: {
|
|
|
24
24
|
};
|
|
25
25
|
export declare const DateTimeDarkTheme: {
|
|
26
26
|
(): React.ReactElement;
|
|
27
|
-
|
|
27
|
+
tags: string[];
|
|
28
28
|
parameters: {
|
|
29
29
|
zeplinLink: {
|
|
30
30
|
name: string;
|
|
@@ -14,7 +14,7 @@ export declare const NumberField: {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const NumberFieldLightTheme: {
|
|
16
16
|
(): React.ReactElement;
|
|
17
|
-
|
|
17
|
+
tags: string[];
|
|
18
18
|
parameters: {
|
|
19
19
|
zeplinLink: {
|
|
20
20
|
name: string;
|
|
@@ -24,7 +24,7 @@ export declare const NumberFieldLightTheme: {
|
|
|
24
24
|
};
|
|
25
25
|
export declare const NumberFieldDarkTheme: {
|
|
26
26
|
(): React.ReactElement;
|
|
27
|
-
|
|
27
|
+
tags: string[];
|
|
28
28
|
parameters: {
|
|
29
29
|
zeplinLink: {
|
|
30
30
|
name: string;
|
|
@@ -14,7 +14,7 @@ export declare const FormProvider: {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const FormProviderLightTheme: {
|
|
16
16
|
(): React.ReactElement;
|
|
17
|
-
|
|
17
|
+
tags: string[];
|
|
18
18
|
parameters: {
|
|
19
19
|
zeplinLink: {
|
|
20
20
|
name: string;
|
|
@@ -24,7 +24,7 @@ export declare const FormProviderLightTheme: {
|
|
|
24
24
|
};
|
|
25
25
|
export declare const FormProviderDarkTheme: {
|
|
26
26
|
(): React.ReactElement;
|
|
27
|
-
|
|
27
|
+
tags: string[];
|
|
28
28
|
parameters: {
|
|
29
29
|
zeplinLink: {
|
|
30
30
|
name: string;
|
|
@@ -14,7 +14,7 @@ export declare const RadioGroup: {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const RadioGroupLightTheme: {
|
|
16
16
|
(): React.ReactElement;
|
|
17
|
-
|
|
17
|
+
tags: string[];
|
|
18
18
|
parameters: {
|
|
19
19
|
zeplinLink: {
|
|
20
20
|
name: string;
|
|
@@ -24,7 +24,7 @@ export declare const RadioGroupLightTheme: {
|
|
|
24
24
|
};
|
|
25
25
|
export declare const RadioGroupDarkTheme: {
|
|
26
26
|
(): React.ReactElement;
|
|
27
|
-
|
|
27
|
+
tags: string[];
|
|
28
28
|
parameters: {
|
|
29
29
|
zeplinLink: {
|
|
30
30
|
name: string;
|
|
@@ -6,7 +6,7 @@ export default _default;
|
|
|
6
6
|
export declare const Select: () => React.ReactElement;
|
|
7
7
|
export declare const SelectLightTheme: {
|
|
8
8
|
(): React.ReactElement;
|
|
9
|
-
|
|
9
|
+
tags: string[];
|
|
10
10
|
parameters: {
|
|
11
11
|
zeplinLink: {
|
|
12
12
|
name: string;
|
|
@@ -16,7 +16,7 @@ export declare const SelectLightTheme: {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const SelectDarkTheme: {
|
|
18
18
|
(): React.ReactElement;
|
|
19
|
-
|
|
19
|
+
tags: string[];
|
|
20
20
|
parameters: {
|
|
21
21
|
zeplinLink: {
|
|
22
22
|
name: string;
|
|
@@ -14,7 +14,7 @@ export declare const TextField: {
|
|
|
14
14
|
};
|
|
15
15
|
export declare const TextFieldLightTheme: {
|
|
16
16
|
(): React.ReactElement;
|
|
17
|
-
|
|
17
|
+
tags: string[];
|
|
18
18
|
parameters: {
|
|
19
19
|
zeplinLink: {
|
|
20
20
|
name: string;
|
|
@@ -24,7 +24,7 @@ export declare const TextFieldLightTheme: {
|
|
|
24
24
|
};
|
|
25
25
|
export declare const TextFieldDarkTheme: {
|
|
26
26
|
(): React.ReactElement;
|
|
27
|
-
|
|
27
|
+
tags: string[];
|
|
28
28
|
parameters: {
|
|
29
29
|
zeplinLink: {
|
|
30
30
|
name: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|