@carbon-labs/utilities 0.18.0 → 0.21.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/es/index.d.ts +0 -2
- package/es/index.js +2 -1
- package/es/settings/index.d.ts +0 -2
- package/es/settings/settings.d.ts +0 -2
- package/es/usePrefix.d.ts +0 -2
- package/package.json +19 -5
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
|
@@ -8,4 +8,5 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
export * from './settings/index.js';
|
|
11
|
-
|
|
11
|
+
// Note: usePrefix is not exported from main index to avoid pulling React into web components
|
|
12
|
+
// React components should import directly: import { usePrefix } from '@carbon-labs/utilities/es/usePrefix.js'
|
package/es/settings/index.d.ts
CHANGED
package/es/usePrefix.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon-labs/utilities",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -17,12 +17,24 @@
|
|
|
17
17
|
"module": "./es/index.js",
|
|
18
18
|
"types": "./es/index.d.ts",
|
|
19
19
|
"sideEffects": false,
|
|
20
|
+
"typesVersions": {
|
|
21
|
+
"*": {
|
|
22
|
+
"usePrefix": [
|
|
23
|
+
"./es/usePrefix.d.ts"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
20
27
|
"exports": {
|
|
21
28
|
".": {
|
|
22
29
|
"types": "./es/index.d.ts",
|
|
23
30
|
"import": "./es/index.js",
|
|
24
31
|
"default": "./es/index.js"
|
|
25
32
|
},
|
|
33
|
+
"./usePrefix": {
|
|
34
|
+
"types": "./es/usePrefix.d.ts",
|
|
35
|
+
"import": "./es/usePrefix.js",
|
|
36
|
+
"default": "./es/usePrefix.js"
|
|
37
|
+
},
|
|
26
38
|
"./es/*": {
|
|
27
39
|
"types": "./es/*.d.ts",
|
|
28
40
|
"import": "./es/*",
|
|
@@ -39,14 +51,16 @@
|
|
|
39
51
|
"es/index.js",
|
|
40
52
|
"es/index.d.ts"
|
|
41
53
|
],
|
|
42
|
-
"
|
|
43
|
-
"react": "^18.
|
|
44
|
-
"react-dom": "^18.
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
56
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
45
57
|
},
|
|
46
58
|
"devDependencies": {
|
|
47
59
|
"@rollup/plugin-babel": "^6.0.4",
|
|
48
60
|
"babel-cli": "^6.26.0",
|
|
61
|
+
"react": "^18.3.1",
|
|
62
|
+
"react-dom": "^18.3.1",
|
|
49
63
|
"rimraf": "^6.0.1"
|
|
50
64
|
},
|
|
51
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "5ea24fc7a8a62a1d2bc90a52cde2ce1478c29eb2"
|
|
52
66
|
}
|