@xylabs/sdk-react 4.0.2 → 4.0.4

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.
@@ -21,3 +21,4 @@ export * from '@xylabs/react-render-spin-check';
21
21
  export * from '@xylabs/react-rich-result';
22
22
  export * from '@xylabs/react-scroll-to-top';
23
23
  export * from '@xylabs/react-shared';
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,2BAA2B,CAAA;AACzC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oBAAoB,CAAA;AAClC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qBAAqB,CAAA;AACnC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,uBAAuB,CAAA;AACrC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA"}
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
@@ -1,53 +1,91 @@
1
1
  {
2
2
  "name": "@xylabs/sdk-react",
3
+ "version": "4.0.4",
4
+ "description": "Common React library for all XY Labs projects that use React",
5
+ "keywords": [
6
+ "utility",
7
+ "typescript",
8
+ "react"
9
+ ],
10
+ "homepage": "https://xylabs.com",
11
+ "bugs": {
12
+ "url": "git+https://github.com/xylabs/sdk-react/issues",
13
+ "email": "support@xylabs.com"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/xylabs/sdk-react.git"
18
+ },
19
+ "license": "LGPL-3.0-only",
3
20
  "author": {
4
- "email": "support@xylabs.com",
5
21
  "name": "XY Labs Development Team",
22
+ "email": "support@xylabs.com",
6
23
  "url": "https://xylabs.com"
7
24
  },
8
- "bugs": {
9
- "email": "support@xylabs.com",
10
- "url": "https://github.com/xylabs/sdk-react/issues"
25
+ "sideEffects": false,
26
+ "type": "module",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/browser/index.d.ts",
30
+ "default": "./dist/browser/index.mjs"
31
+ },
32
+ "./package.json": "./package.json"
11
33
  },
34
+ "module": "./dist/browser/index.mjs",
35
+ "types": "dist/browser/index.d.ts",
12
36
  "workspaces": [
13
37
  "packages/*"
14
38
  ],
39
+ "scripts": {
40
+ "build-storybook": "storybook build",
41
+ "build-typedoc-site": "xy gen-docs @xylabs/sdk-react && storybook build -o ./docs/storybook",
42
+ "start": "NODE_OPTIONS=--max_old_space_size=8192 storybook dev -p 6006",
43
+ "storybook": "storybook dev -p 6006"
44
+ },
45
+ "browserslist": {
46
+ "production": [
47
+ "last 1 chrome version",
48
+ "last 1 firefox version",
49
+ "last 1 safari version"
50
+ ],
51
+ "development": [
52
+ "last 1 chrome version",
53
+ "last 1 firefox version",
54
+ "last 1 safari version"
55
+ ]
56
+ },
15
57
  "dependencies": {
16
58
  "@xylabs/pixel": "^2.0.1",
17
- "@xylabs/react-accordion": "^4.0.2",
18
- "@xylabs/react-animation": "^4.0.2",
19
- "@xylabs/react-appbar": "^4.0.2",
20
- "@xylabs/react-async-effect": "^4.0.2",
21
- "@xylabs/react-button": "^4.0.2",
22
- "@xylabs/react-common": "^4.0.2",
23
- "@xylabs/react-cookie-consent": "^4.0.2",
24
- "@xylabs/react-crypto": "^4.0.2",
25
- "@xylabs/react-dialogs": "^4.0.2",
26
- "@xylabs/react-experiments": "^4.0.2",
27
- "@xylabs/react-flexbox": "^4.0.2",
28
- "@xylabs/react-identicon": "^4.0.2",
29
- "@xylabs/react-invertible-theme": "^4.0.2",
30
- "@xylabs/react-link": "^4.0.2",
31
- "@xylabs/react-number-status": "^4.0.2",
32
- "@xylabs/react-pixel": "^4.0.2",
33
- "@xylabs/react-pixel-debugger": "^4.0.2",
34
- "@xylabs/react-promise": "^4.0.2",
35
- "@xylabs/react-quick-tip-button": "^4.0.2",
36
- "@xylabs/react-render-spin-check": "^4.0.2",
37
- "@xylabs/react-rich-result": "^4.0.2",
38
- "@xylabs/react-scroll-to-top": "^4.0.2",
39
- "@xylabs/react-shared": "^4.0.2"
59
+ "@xylabs/react-accordion": "^4.0.4",
60
+ "@xylabs/react-animation": "^4.0.4",
61
+ "@xylabs/react-appbar": "^4.0.4",
62
+ "@xylabs/react-async-effect": "^4.0.4",
63
+ "@xylabs/react-button": "^4.0.4",
64
+ "@xylabs/react-common": "^4.0.4",
65
+ "@xylabs/react-cookie-consent": "^4.0.4",
66
+ "@xylabs/react-crypto": "^4.0.4",
67
+ "@xylabs/react-dialogs": "^4.0.4",
68
+ "@xylabs/react-experiments": "^4.0.4",
69
+ "@xylabs/react-flexbox": "^4.0.4",
70
+ "@xylabs/react-identicon": "^4.0.4",
71
+ "@xylabs/react-invertible-theme": "^4.0.4",
72
+ "@xylabs/react-link": "^4.0.4",
73
+ "@xylabs/react-number-status": "^4.0.4",
74
+ "@xylabs/react-pixel": "^4.0.4",
75
+ "@xylabs/react-pixel-debugger": "^4.0.4",
76
+ "@xylabs/react-promise": "^4.0.4",
77
+ "@xylabs/react-quick-tip-button": "^4.0.4",
78
+ "@xylabs/react-render-spin-check": "^4.0.4",
79
+ "@xylabs/react-rich-result": "^4.0.4",
80
+ "@xylabs/react-scroll-to-top": "^4.0.4",
81
+ "@xylabs/react-shared": "^4.0.4"
40
82
  },
41
- "description": "Common React library for all XY Labs projects that use React",
42
83
  "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
- "@chromatic-com/storybook": "^1.6.1",
48
- "@emotion/react": "^11.13.0",
84
+ "@chromatic-com/storybook": "^1.7.0",
85
+ "@emotion/react": "^11.13.3",
49
86
  "@emotion/styled": "^11.13.0",
50
- "@eslint-react/eslint-plugin": "^1.10.1",
87
+ "@eslint-react/eslint-plugin": "^1.12.2",
88
+ "@mui/icons-material": "^5.16.7",
51
89
  "@mui/material": "^5.16.7",
52
90
  "@storybook/addon-actions": "^8.2.9",
53
91
  "@storybook/addon-docs": "^8.2.9",
@@ -64,24 +102,19 @@
64
102
  "@storybook/react-vite": "^8.2.9",
65
103
  "@storybook/test": "^8.2.9",
66
104
  "@storybook/theming": "^8.2.9",
67
- "@stylistic/eslint-plugin": "^2.6.2",
68
- "@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",
74
- "axios": "^1.7.4",
75
- "babel-loader": "^9.1.3",
105
+ "@stylistic/eslint-plugin": "^2.6.4",
106
+ "@typescript-eslint/eslint-plugin": "^8.3.0",
107
+ "@typescript-eslint/parser": "^8.3.0",
108
+ "@xylabs/eslint-config-flat": "^4.0.7",
109
+ "@xylabs/eslint-config-react-flat": "^4.0.7",
110
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
111
+ "@xylabs/tsconfig": "^4.0.7",
112
+ "@xylabs/tsconfig-react": "^4.0.7",
113
+ "@xyo-network/react-theme": "^3.0.6",
114
+ "axios": "^1.7.5",
76
115
  "buffer": "^6.0.3",
77
- "eslint": "^9.9.0",
78
- "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",
116
+ "eslint": "^9.9.1",
117
+ "eslint-import-resolver-typescript": "^3.6.3",
85
118
  "jest": "^29.7.0",
86
119
  "react": "^18.3.1",
87
120
  "react-dom": "^18.3.1",
@@ -89,10 +122,9 @@
89
122
  "rimraf": "^6.0.1",
90
123
  "storybook": "^8.2.9",
91
124
  "storybook-dark-mode": "^4.0.2",
92
- "ts-loader": "^9.5.1",
93
125
  "tsconfig-paths-webpack-plugin": "^4.1.0",
94
126
  "typescript": "^5.5.4",
95
- "vite": "^5.4.0"
127
+ "vite": "^5.4.2"
96
128
  },
97
129
  "peerDependencies": {
98
130
  "@mui/icons-material": "^5",
@@ -102,53 +134,12 @@
102
134
  "react-dom": "^18",
103
135
  "react-helmet": "^6"
104
136
  },
105
- "exports": {
106
- ".": {
107
- "types": "./dist/browser/index.d.ts",
108
- "default": "./dist/browser/index.mjs"
109
- },
110
- "./package.json": "./package.json"
111
- },
112
- "types": "dist/browser/index.d.ts",
113
- "module": "./dist/browser/index.mjs",
114
- "homepage": "https://xylabs.com",
115
- "keywords": [
116
- "utility",
117
- "typescript",
118
- "react"
119
- ],
120
- "license": "LGPL-3.0-only",
121
- "publishConfig": {
122
- "access": "public"
123
- },
124
- "repository": {
125
- "type": "git",
126
- "url": "https://github.com/xylabs/sdk-react.git"
127
- },
128
- "scripts": {
129
- "build-storybook": "storybook build",
130
- "start": "NODE_OPTIONS=--max_old_space_size=8192 storybook dev -p 6006",
131
- "build-typedoc-site": "xy gen-docs @xylabs/sdk-react && storybook build -o ./docs/storybook",
132
- "storybook": "storybook dev -p 6006"
133
- },
134
- "sideEffects": false,
135
- "version": "4.0.2",
136
137
  "packageManager": "yarn@4.4.0",
137
138
  "volta": {
138
139
  "node": "22.3.0",
139
140
  "yarn": "4.3.1"
140
141
  },
141
- "browserslist": {
142
- "production": [
143
- "last 1 chrome version",
144
- "last 1 firefox version",
145
- "last 1 safari version"
146
- ],
147
- "development": [
148
- "last 1 chrome version",
149
- "last 1 firefox version",
150
- "last 1 safari version"
151
- ]
152
- },
153
- "type": "module"
142
+ "publishConfig": {
143
+ "access": "public"
144
+ }
154
145
  }
package/xy.config.ts CHANGED
@@ -1,9 +1,7 @@
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
- browser: {
5
- src: {},
6
- },
4
+ browser: { src: {} },
7
5
  node: {},
8
6
  neutral: {},
9
7
  },