Skip to content

Commit ba62023

Browse files
committed
feat(react-formio): move all related redux actions to @tsed/react-formio-stores
BREAKING-CHANGE: use `@tsed/react-formio-stores` to import redux actions
1 parent 063a7ab commit ba62023

File tree

112 files changed

+347
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+347
-160
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node-version: [14.x]
17+
node-version: [16.x]
1818

1919
steps:
2020
- uses: actions/checkout@v2
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
matrix:
3535
os: [ubuntu-latest]
36-
node-version: [14.x]
36+
node-version: [16.x]
3737

3838
steps:
3939
- uses: actions/checkout@v2
@@ -53,7 +53,7 @@ jobs:
5353

5454
strategy:
5555
matrix:
56-
node-version: [14.x]
56+
node-version: [16.x]
5757

5858
steps:
5959
- uses: actions/checkout@v2

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
"@types/react-router": "^5.1.11",
4141
"@types/react-router-dom": "^5.1.7",
4242
"@types/react-table": "^7.0.28",
43-
"choices.js": "^10.1.0",
43+
"@formio/choices.js": "^10.2.0",
4444
"connected-react-router": "6.9.1",
45-
"formiojs": "^4.14.8",
45+
"formiojs": "^4.14.13",
4646
"history": "5.3.0",
4747
"lerna": "5.1.8",
4848
"lodash": "4.17.20",

packages/config/jest/jest.web.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
22
module.exports = {
33
roots: ["<rootDir>/src"],
4-
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts", "!src/mocks/**", "!src/__mock__/**"],
5-
coveragePathIgnorePatterns: [],
4+
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}", "!src/**/*.d.ts"],
5+
coveragePathIgnorePatterns: [".stories.tsx", "__mock__/", "mocks/"],
66
testEnvironment: "jsdom",
77
setupFilesAfterEnv: [require.resolve("./setupTest.js")],
88
transform: {

packages/react-formio-container/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
"peerDependencies": {
1818
"@tsed/react-formio": "^1.4.0",
1919
"@tsed/redux-utils": "^1.4.0",
20-
"choices.js": "^10.1.0",
20+
"@tsed/react-formio-stores": "^1.4.0",
21+
"@formio/choices.js": "^10.2.0",
2122
"classnames": "^2.3.1",
2223
"connected-react-router": "^6.9.1",
2324
"file-saver": "^2.0.5",
24-
"formiojs": "^4.14.8",
25+
"formiojs": "^4.14.13",
2526
"lodash": "^4.17.21",
2627
"prop-types": "^15.8.1",
2728
"react": "^17.0.2",
@@ -36,6 +37,7 @@
3637
},
3738
"devDependencies": {
3839
"@tsed/react-formio": "1.14.1",
40+
"@tsed/react-formio-stores": "1.14.1",
3941
"@types/file-saver": "^2.0.1",
4042
"file-saver": "^2.0.5"
4143
},
@@ -90,4 +92,4 @@
9092
}
9193
},
9294
"dependencies": {}
93-
}
95+
}

packages/react-formio-container/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ npm-compatible packaging system such as [Browserify](http://browserify.org/) or
4242
[webpack](http://webpack.github.io/).
4343

4444
```bash
45-
npm install --save @tsed/react-formio-container file-saver
45+
npm install --save @tsed/react-formio-stores @tsed/react-formio @tsed/react-formio-container file-saver
4646
npm install --save-dev @types/file-saver
4747
```
4848

packages/react-formio-container/src/hooks/useAction.hook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
selectForm,
1414
Submission,
1515
Utils
16-
} from "@tsed/react-formio";
16+
} from "@tsed/react-formio-stores";
1717
import { push } from "connected-react-router";
1818
import noop from "lodash/noop";
1919
import { useCallback, useEffect } from "react";

packages/react-formio-container/src/hooks/useActions.hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
selectAvailableActions,
88
selectError,
99
selectForm
10-
} from "@tsed/react-formio";
10+
} from "@tsed/react-formio-stores";
1111
import { push } from "connected-react-router";
1212
import { useState } from "react";
1313
import { useDispatch, useSelector } from "react-redux";

packages/react-formio-container/src/hooks/useForm.hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
selectError,
1414
selectForm,
1515
selectRoot
16-
} from "@tsed/react-formio";
16+
} from "@tsed/react-formio-stores";
1717
import { push } from "connected-react-router";
1818
import noop from "lodash/noop";
1919
import { useEffect, useState } from "react";

packages/react-formio-container/src/hooks/useFormExport.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AuthState, selectAuth, selectForm } from "@tsed/react-formio";
1+
import { AuthState, selectAuth, selectForm } from "@tsed/react-formio-stores";
22
import noop from "lodash/noop";
33
import { useSelector } from "react-redux";
44

packages/react-formio-container/src/hooks/useForms.hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FormSchema, FormsState, getForms, Operation, selectRoot } from "@tsed/react-formio";
1+
import { FormSchema, FormsState, getForms, Operation, selectRoot } from "@tsed/react-formio-stores";
22
import { push } from "connected-react-router";
33
import { useCallback, useEffect, useState } from "react";
44
import { useDispatch, useSelector } from "react-redux";

0 commit comments

Comments
 (0)