@tivio/sdk-react 11.0.1 → 12.0.1
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 +398 -0
- package/dist/index.d.ts +620 -146
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +808 -154
- package/package.json +23 -22
- package/vitest.config.mjs +24 -0
- package/README.md.bak +0 -623
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tivio/sdk-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "yarn clean && webpack",
|
|
12
|
+
"build": "yarn clean && yarn types && webpack",
|
|
13
13
|
"build:dev": "cat ./.env.dev > ./.env && yarn build --config=webpack.config.dev.js && yarn typesRollup",
|
|
14
14
|
"build:prod": "cat ./.env.prod > ./.env && yarn build --config=webpack.config.prod.js && yarn typesRollup",
|
|
15
15
|
"turbo:build:libs:dev": "yarn build:dev",
|
|
@@ -18,19 +18,20 @@
|
|
|
18
18
|
"typecheck": "yarn tsc --noEmit",
|
|
19
19
|
"typecheck:tests": "yarn tsc --noEmit -P src/__tests__/tsconfig.test.json",
|
|
20
20
|
"build:local": "bash ./scripts/build_with_local_bundle.sh && yarn typesRollup",
|
|
21
|
-
"release": "
|
|
21
|
+
"release": "yarn tsx ./scripts/release.ts -p=sdk-react -c=CHANGELOG.md",
|
|
22
22
|
"release:patch": "yarn release -r=patch",
|
|
23
23
|
"release:minor": "yarn release -r=minor",
|
|
24
24
|
"release:major": "yarn release -r=major",
|
|
25
|
-
"start": "yarn
|
|
26
|
-
"test": "yarn
|
|
27
|
-
"test:
|
|
25
|
+
"start": "yarn tsx ./scripts/start.ts",
|
|
26
|
+
"test": "yarn vitest run --config=./vitest.config.mjs",
|
|
27
|
+
"test:verbose": "VITEST_VERBOSE=true yarn test --reporter=verbose",
|
|
28
28
|
"test:ci": "yarn test",
|
|
29
|
-
"clean": "rm -rf dist",
|
|
30
|
-
"prepublishOnly": "yarn && yarn build:prod && yarn
|
|
31
|
-
"postpublish": "yarn
|
|
29
|
+
"clean": "rm -rf dist && find . -maxdepth 1 -name '*.tsbuildinfo' -delete",
|
|
30
|
+
"prepublishOnly": "yarn && yarn build:prod && yarn tsx ./scripts/prepublish.ts",
|
|
31
|
+
"postpublish": "yarn tsx ./scripts/postpublish.ts",
|
|
32
32
|
"publish:alpha": "npm publish --tag alpha",
|
|
33
|
-
"typesRollup": "yarn
|
|
33
|
+
"typesRollup": "yarn tsx ./scripts/typesRollup.ts",
|
|
34
|
+
"types": "yarn tsc --emitDeclarationOnly"
|
|
34
35
|
},
|
|
35
36
|
"peerDependencies": {
|
|
36
37
|
"@types/react": "17.x || 18.x",
|
|
@@ -41,13 +42,14 @@
|
|
|
41
42
|
"@material-ui/core": "^4.11.2",
|
|
42
43
|
"@material-ui/icons": "^4.11.2",
|
|
43
44
|
"@sentry/browser": "^6.1.0",
|
|
44
|
-
"@tivio/common": "1.1.
|
|
45
|
+
"@tivio/common": "1.1.148",
|
|
45
46
|
"dayjs": "^1.11.0",
|
|
46
47
|
"es7-object-polyfill": "^1.0.1",
|
|
47
48
|
"firebase": "8.10.1",
|
|
48
49
|
"formik": "^2.2.7",
|
|
49
50
|
"mobx": "^6.0.4",
|
|
50
51
|
"mobx-react": "^7.1.0",
|
|
52
|
+
"react-is": "^17.0.2",
|
|
51
53
|
"react-router-dom": "^5.3.4",
|
|
52
54
|
"react-virtualized": "^9.22.3",
|
|
53
55
|
"styled-components": "^5.2.1",
|
|
@@ -58,15 +60,15 @@
|
|
|
58
60
|
"@algolia/recommend": "^4.14.3",
|
|
59
61
|
"@firebase/app-types": "^0.6.3",
|
|
60
62
|
"@firebase/firestore-types": "^2.2.0",
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
+
"@firebase/util": "^1.3.0",
|
|
64
|
+
"@microsoft/api-extractor": "^7.58.9",
|
|
65
|
+
"@testing-library/dom": "^10.0.0",
|
|
63
66
|
"@testing-library/react": "^15.0.2",
|
|
64
67
|
"@testing-library/user-event": "^12.1.10",
|
|
65
68
|
"@tivio/build-utils": "*",
|
|
66
69
|
"@tivio/types": "*",
|
|
67
|
-
"@types/jest": "^29.5.12",
|
|
68
70
|
"@types/node": "^22.10.1",
|
|
69
|
-
"@types/node-fetch": "^2.
|
|
71
|
+
"@types/node-fetch": "^2.6.13",
|
|
70
72
|
"@types/react": "^18.0.28",
|
|
71
73
|
"@types/react-dom": "^18.0.11",
|
|
72
74
|
"@types/react-router-dom": "^5.1.6",
|
|
@@ -75,21 +77,20 @@
|
|
|
75
77
|
"circular-dependency-plugin": "^5.2.2",
|
|
76
78
|
"detect-browser": "^5.3.0",
|
|
77
79
|
"dotenv": "^9.0.0",
|
|
78
|
-
"
|
|
79
|
-
"jest": "^29.7.0",
|
|
80
|
-
"jest-cli": "^29.7.0",
|
|
81
|
-
"jest-fetch-mock": "^3.0.3",
|
|
80
|
+
"esbuild-loader": "^4.5.0",
|
|
82
81
|
"node-fetch": "^2.6.1",
|
|
83
82
|
"react": "^18.2.0",
|
|
84
83
|
"react-dom": "^18.2.0",
|
|
85
84
|
"react-gtm-module": "^2.0.11",
|
|
86
85
|
"stream-browserify": "^3.0.0",
|
|
87
86
|
"timers-browserify": "^2.0.12",
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
87
|
+
"tsx": "^4.19.1",
|
|
88
|
+
"typescript": "^6.0.3",
|
|
89
|
+
"vitest": "4.1.10",
|
|
90
|
+
"vitest-fetch-mock": "^0.4.5",
|
|
91
91
|
"web-vitals": "^1.0.1",
|
|
92
92
|
"webpack": "^5.90.0",
|
|
93
|
+
"webpack-cli": "^5.1.4",
|
|
93
94
|
"webpack-merge": "^5.10.0",
|
|
94
95
|
"yargs": "17"
|
|
95
96
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineConfig } from 'vitest/config'
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
import { fileURLToPath } from 'node:url'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
7
|
+
|
|
8
|
+
export default defineConfig({
|
|
9
|
+
resolve: {
|
|
10
|
+
alias: {
|
|
11
|
+
'@@loadBundleFromDist': path.resolve(__dirname, 'src/services/localFetch/coreReactDomDist.ts'),
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
test: {
|
|
15
|
+
environment: 'jsdom',
|
|
16
|
+
globals: true,
|
|
17
|
+
silent: process.env.VITEST_VERBOSE !== 'true',
|
|
18
|
+
include: [
|
|
19
|
+
'src/**/*.test.{ts,tsx,js}',
|
|
20
|
+
],
|
|
21
|
+
setupFiles: [
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
})
|