@coinbase/cds-web 8.14.2 → 8.15.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/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  <!-- template-start -->
10
10
 
11
+ ## 8.15.0 (10/8/2025 PST)
12
+
13
+ ### 🚀 Updates
14
+
15
+ - Fix: drop unused useThemeContext. [[#86](https://github.com/coinbase/cds/pull/86)]
16
+
11
17
  ## 8.14.2 (10/7/2025 PST)
12
18
 
13
19
  #### 🐞 Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-web",
3
- "version": "8.14.2",
3
+ "version": "8.15.0",
4
4
  "description": "Coinbase Design System - Web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -147,7 +147,7 @@
147
147
  "react-dom": "^18.3.1"
148
148
  },
149
149
  "dependencies": {
150
- "@coinbase/cds-common": "^8.14.2",
150
+ "@coinbase/cds-common": "^8.15.0",
151
151
  "@coinbase/cds-icons": "^5.4.2",
152
152
  "@coinbase/cds-illustrations": "^4.23.1",
153
153
  "@coinbase/cds-lottie-files": "^3.3.2",
@@ -1,8 +0,0 @@
1
- import { type ThemeContextValue } from '../system/ThemeProvider';
2
- /**
3
- * Fetches the ThemeContextValue and verifies it is defined, so it must be used inside a ThemeProvider.
4
- *
5
- * If you instead need to fetch the ThemeContextValue without throwing an error when the context is undefined, you can use `useContext(ThemeContext)` instead.
6
- */
7
- export declare const useThemeContext: () => ThemeContextValue;
8
- //# sourceMappingURL=useThemeContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useThemeContext.d.ts","sourceRoot":"","sources":["../../src/hooks/useThemeContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAO,iBAIlC,CAAC"}
@@ -1,13 +0,0 @@
1
- import { useContext } from 'react';
2
- import { ThemeContext } from '../system/ThemeProvider';
3
-
4
- /**
5
- * Fetches the ThemeContextValue and verifies it is defined, so it must be used inside a ThemeProvider.
6
- *
7
- * If you instead need to fetch the ThemeContextValue without throwing an error when the context is undefined, you can use `useContext(ThemeContext)` instead.
8
- */
9
- export const useThemeContext = () => {
10
- const context = useContext(ThemeContext);
11
- if (!context) throw Error('useThemeContext must be used within a ThemeProvider');
12
- return context;
13
- };