@xylabs/sdk-react 4.0.1 → 4.0.3

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/eslint.config.mjs CHANGED
@@ -1,16 +1,32 @@
1
1
  // eslint.config.mjs
2
2
 
3
- import { config as xylabsConfig } from '@xylabs/eslint-config-react-flat'
3
+ import { typescriptConfig,
4
+ unicornConfig,
5
+ workspacesConfig,
6
+ rulesConfig,
7
+ importConfig } from '@xylabs/eslint-config-flat'
8
+ import { reactConfig } from '@xylabs/eslint-config-react-flat'
4
9
 
5
10
  export default [
6
11
  {
7
- ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**', 'public', 'storybook-static', '.storybook'],
12
+ ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**', 'public', '.storybook', 'storybook-static', 'eslint.config.mjs'],
8
13
  },
9
- ...xylabsConfig,
14
+ reactConfig,
15
+ unicornConfig,
16
+ workspacesConfig,
17
+ rulesConfig,
18
+ importConfig,
10
19
  {
11
20
  rules: {
12
- '@typescript-eslint/no-misused-promises': ['off'],
13
- '@eslint-react/no-array-index-key': ['off'],
21
+ '@eslint-react/no-array-index-key': ['off']
14
22
  },
15
23
  },
24
+ {
25
+ ...typescriptConfig,
26
+ rules: {
27
+ ...typescriptConfig.rules,
28
+ '@typescript-eslint/no-misused-promises': ['off'],
29
+ '@typescript-eslint/consistent-type-imports': ['warn']
30
+ },
31
+ }
16
32
  ]
package/package.json CHANGED
@@ -7,47 +7,44 @@
7
7
  },
8
8
  "bugs": {
9
9
  "email": "support@xylabs.com",
10
- "url": "https://github.com/xylabs/sdk-react/issues"
10
+ "url": "git+https://github.com/xylabs/sdk-react/issues"
11
11
  },
12
12
  "workspaces": [
13
13
  "packages/*"
14
14
  ],
15
15
  "dependencies": {
16
16
  "@xylabs/pixel": "^2.0.1",
17
- "@xylabs/react-accordion": "^4.0.1",
18
- "@xylabs/react-animation": "^4.0.1",
19
- "@xylabs/react-appbar": "^4.0.1",
20
- "@xylabs/react-async-effect": "^4.0.1",
21
- "@xylabs/react-button": "^4.0.1",
22
- "@xylabs/react-common": "^4.0.1",
23
- "@xylabs/react-cookie-consent": "^4.0.1",
24
- "@xylabs/react-crypto": "^4.0.1",
25
- "@xylabs/react-dialogs": "^4.0.1",
26
- "@xylabs/react-experiments": "^4.0.1",
27
- "@xylabs/react-flexbox": "^4.0.1",
28
- "@xylabs/react-identicon": "^4.0.1",
29
- "@xylabs/react-invertible-theme": "^4.0.1",
30
- "@xylabs/react-link": "^4.0.1",
31
- "@xylabs/react-number-status": "^4.0.1",
32
- "@xylabs/react-pixel": "^4.0.1",
33
- "@xylabs/react-pixel-debugger": "^4.0.1",
34
- "@xylabs/react-promise": "^4.0.1",
35
- "@xylabs/react-quick-tip-button": "^4.0.1",
36
- "@xylabs/react-render-spin-check": "^4.0.1",
37
- "@xylabs/react-rich-result": "^4.0.1",
38
- "@xylabs/react-scroll-to-top": "^4.0.1",
39
- "@xylabs/react-shared": "^4.0.1"
17
+ "@xylabs/react-accordion": "^4.0.3",
18
+ "@xylabs/react-animation": "^4.0.3",
19
+ "@xylabs/react-appbar": "^4.0.3",
20
+ "@xylabs/react-async-effect": "^4.0.3",
21
+ "@xylabs/react-button": "^4.0.3",
22
+ "@xylabs/react-common": "^4.0.3",
23
+ "@xylabs/react-cookie-consent": "^4.0.3",
24
+ "@xylabs/react-crypto": "^4.0.3",
25
+ "@xylabs/react-dialogs": "^4.0.3",
26
+ "@xylabs/react-experiments": "^4.0.3",
27
+ "@xylabs/react-flexbox": "^4.0.3",
28
+ "@xylabs/react-identicon": "^4.0.3",
29
+ "@xylabs/react-invertible-theme": "^4.0.3",
30
+ "@xylabs/react-link": "^4.0.3",
31
+ "@xylabs/react-number-status": "^4.0.3",
32
+ "@xylabs/react-pixel": "^4.0.3",
33
+ "@xylabs/react-pixel-debugger": "^4.0.3",
34
+ "@xylabs/react-promise": "^4.0.3",
35
+ "@xylabs/react-quick-tip-button": "^4.0.3",
36
+ "@xylabs/react-render-spin-check": "^4.0.3",
37
+ "@xylabs/react-rich-result": "^4.0.3",
38
+ "@xylabs/react-scroll-to-top": "^4.0.3",
39
+ "@xylabs/react-shared": "^4.0.3"
40
40
  },
41
41
  "description": "Common React library for all XY Labs projects that use React",
42
42
  "devDependencies": {
43
- "@babel/core": "^7.25.2",
44
- "@babel/preset-env": "^7.25.3",
45
- "@babel/preset-react": "^7.24.7",
46
- "@babel/preset-typescript": "^7.24.7",
47
43
  "@chromatic-com/storybook": "^1.6.1",
48
44
  "@emotion/react": "^11.13.0",
49
45
  "@emotion/styled": "^11.13.0",
50
46
  "@eslint-react/eslint-plugin": "^1.10.1",
47
+ "@mui/icons-material": "^5.16.7",
51
48
  "@mui/material": "^5.16.7",
52
49
  "@storybook/addon-actions": "^8.2.9",
53
50
  "@storybook/addon-docs": "^8.2.9",
@@ -64,24 +61,19 @@
64
61
  "@storybook/react-vite": "^8.2.9",
65
62
  "@storybook/test": "^8.2.9",
66
63
  "@storybook/theming": "^8.2.9",
67
- "@stylistic/eslint-plugin": "^2.6.2",
64
+ "@stylistic/eslint-plugin": "^2.6.4",
68
65
  "@typescript-eslint/eslint-plugin": "^8.1.0",
69
- "@xylabs/eslint-config-react-flat": "^4.0.0-rc.15",
70
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
71
- "@xylabs/tsconfig": "^4.0.0-rc.15",
72
- "@xylabs/tsconfig-react": "^4.0.0-rc.15",
73
- "@xyo-network/react-theme": "^3.0.0",
66
+ "@typescript-eslint/parser": "^8.1.0",
67
+ "@xylabs/eslint-config-flat": "^4.0.0-rc.20",
68
+ "@xylabs/eslint-config-react-flat": "^4.0.0-rc.20",
69
+ "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
70
+ "@xylabs/tsconfig": "^4.0.0-rc.20",
71
+ "@xylabs/tsconfig-react": "^4.0.0-rc.20",
72
+ "@xyo-network/react-theme": "^3.0.1",
74
73
  "axios": "^1.7.4",
75
- "babel-loader": "^9.1.3",
76
74
  "buffer": "^6.0.3",
77
75
  "eslint": "^9.9.0",
78
76
  "eslint-import-resolver-typescript": "^3.6.1",
79
- "eslint-plugin-import": "^2.29.1",
80
- "eslint-plugin-prettier": "^5.2.1",
81
- "eslint-plugin-react": "^7.35.0",
82
- "eslint-plugin-simple-import-sort": "^12.1.1",
83
- "eslint-plugin-sonarjs": "^1.0.4",
84
- "eslint-plugin-workspaces": "^0.10.1",
85
77
  "jest": "^29.7.0",
86
78
  "react": "^18.3.1",
87
79
  "react-dom": "^18.3.1",
@@ -89,10 +81,9 @@
89
81
  "rimraf": "^6.0.1",
90
82
  "storybook": "^8.2.9",
91
83
  "storybook-dark-mode": "^4.0.2",
92
- "ts-loader": "^9.5.1",
93
84
  "tsconfig-paths-webpack-plugin": "^4.1.0",
94
85
  "typescript": "^5.5.4",
95
- "vite": "^5.4.0"
86
+ "vite": "^5.4.1"
96
87
  },
97
88
  "peerDependencies": {
98
89
  "@mui/icons-material": "^5",
@@ -102,9 +93,6 @@
102
93
  "react-dom": "^18",
103
94
  "react-helmet": "^6"
104
95
  },
105
- "resolutions": {
106
- "bowser": "^2"
107
- },
108
96
  "exports": {
109
97
  ".": {
110
98
  "types": "./dist/browser/index.d.ts",
@@ -126,7 +114,7 @@
126
114
  },
127
115
  "repository": {
128
116
  "type": "git",
129
- "url": "https://github.com/xylabs/sdk-react.git"
117
+ "url": "git+https://github.com/xylabs/sdk-react.git"
130
118
  },
131
119
  "scripts": {
132
120
  "build-storybook": "storybook build",
@@ -135,7 +123,7 @@
135
123
  "storybook": "storybook dev -p 6006"
136
124
  },
137
125
  "sideEffects": false,
138
- "version": "4.0.1",
126
+ "version": "4.0.3",
139
127
  "packageManager": "yarn@4.4.0",
140
128
  "volta": {
141
129
  "node": "22.3.0",
package/xy.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
1
+ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {