@coinbase/cds-common 8.59.0 → 8.60.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.60.0 (3/29/2026 PST)
12
+
13
+ #### 🚀 Updates
14
+
15
+ - Deprecate useProgressSize and replace with getProgressSize. [[#501](https://github.com/coinbase/cds/pull/501)]
16
+
11
17
  ## 8.59.0 ((3/27/2026, 05:43 AM PST))
12
18
 
13
19
  This is an artificial version bump with no new change.
@@ -0,0 +1,3 @@
1
+ import type { Weight } from '../types/Weight';
2
+ export declare const getProgressSize: (weight: Weight) => 2 | 4 | 8 | 12;
3
+ //# sourceMappingURL=getProgressSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getProgressSize.d.ts","sourceRoot":"","sources":["../../src/visualizations/getProgressSize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,mBAW7C,CAAC"}
@@ -1,3 +1,6 @@
1
1
  import type { Weight } from '../types/Weight';
2
+ /** @deprecated Use getProgressSize instead. This will be removed in a future major release.
3
+ * @deprecationExpectedRemoval v10
4
+ */
2
5
  export declare const useProgressSize: (weight: Weight) => 2 | 4 | 8 | 12;
3
6
  //# sourceMappingURL=useProgressSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useProgressSize.d.ts","sourceRoot":"","sources":["../../src/visualizations/useProgressSize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,mBAa7C,CAAC"}
1
+ {"version":3,"file":"useProgressSize.d.ts","sourceRoot":"","sources":["../../src/visualizations/useProgressSize.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,mBAa7C,CAAC"}
@@ -0,0 +1,12 @@
1
+ export const getProgressSize = weight => {
2
+ switch (weight) {
3
+ case 'semiheavy':
4
+ return 8;
5
+ case 'heavy':
6
+ return 12;
7
+ case 'thin':
8
+ return 2;
9
+ default:
10
+ return 4;
11
+ }
12
+ };
@@ -1,4 +1,7 @@
1
1
  import { useMemo } from 'react';
2
+ /** @deprecated Use getProgressSize instead. This will be removed in a future major release.
3
+ * @deprecationExpectedRemoval v10
4
+ */
2
5
  export const useProgressSize = weight => {
3
6
  return useMemo(() => {
4
7
  switch (weight) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-common",
3
- "version": "8.59.0",
3
+ "version": "8.60.0",
4
4
  "description": "Coinbase Design System - Common",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@coinbase/cds-icons": "^5.13.0",
42
42
  "@coinbase/cds-illustrations": "^4.36.0",
43
- "@coinbase/cds-mcp-server": "^8.59.0",
43
+ "@coinbase/cds-mcp-server": "^8.60.0",
44
44
  "@coinbase/cds-utils": "^2.3.5",
45
45
  "@modelcontextprotocol/sdk": "^1.13.1",
46
46
  "d3-array": "^3.2.4",