@coinbase/cds-common 8.59.0 → 8.61.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,20 @@ All notable changes to this project will be documented in this file.
8
8
 
9
9
  <!-- template-start -->
10
10
 
11
+ ## 8.61.0 ((3/30/2026, 02:40 PM PST))
12
+
13
+ This is an artificial version bump with no new change.
14
+
15
+ #### 📘 Misc
16
+
17
+ - Deprecate Card-related types. [[#562](https://github.com/coinbase/cds/pull/562)]
18
+
19
+ ## 8.60.0 (3/29/2026 PST)
20
+
21
+ #### 🚀 Updates
22
+
23
+ - Deprecate useProgressSize and replace with getProgressSize. [[#501](https://github.com/coinbase/cds/pull/501)]
24
+
11
25
  ## 8.59.0 ((3/27/2026, 05:43 AM PST))
12
26
 
13
27
  This is an artificial version bump with no new change.
@@ -1,4 +1,8 @@
1
1
  import type { SharedProps } from './SharedProps';
2
+ /**
3
+ * @deprecated Use ContentCardHeaderProps instead. This will be removed in a future major release.
4
+ * @deprecationExpectedRemoval v10
5
+ */
2
6
  export type CardHeaderProps = {
3
7
  /** Absolute or Relative path to Avatar */
4
8
  avatar?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CardHeaderProps.d.ts","sourceRoot":"","sources":["../../src/types/CardHeaderProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG;IAC5B,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"CardHeaderProps.d.ts","sourceRoot":"","sources":["../../src/types/CardHeaderProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,GAAG,WAAW,CAAC"}
@@ -11,6 +11,10 @@ export type CardMediaImageSizeObject =
11
11
  width: CardRemoteImageDimensionValue;
12
12
  aspectRatio: AspectRatio;
13
13
  };
14
+ /**
15
+ * @deprecated Use SpotSquare when `type` is "spotSquare", Pictogram when `type` is "pictogram", or RemoteImage when `type` is "image". This will be removed in a future major release.
16
+ * @deprecationExpectedRemoval v10
17
+ */
14
18
  export type CardMediaProps = {
15
19
  /** Informs how to auto-magically size the media. */
16
20
  placement: CardMediaPlacement;
@@ -1 +1 @@
1
- {"version":3,"file":"CardMediaProps.d.ts","sourceRoot":"","sources":["../../src/types/CardMediaProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAEjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;AAE3D,MAAM,MAAM,wBAAwB,GAChC;IACE,KAAK,EAAE,6BAA6B,CAAC;IACrC,MAAM,EAAE,6BAA6B,CAAC;CACvC,GACD;IACE,KAAK,EAAE,6BAA6B,CAAC;IACrC,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEN,MAAM,MAAM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;IAClB,IAAI,EAAE,aAAa,CAAC;CACrB,CACJ,CAAC"}
@@ -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.61.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.61.0",
44
44
  "@coinbase/cds-utils": "^2.3.5",
45
45
  "@modelcontextprotocol/sdk": "^1.13.1",
46
46
  "d3-array": "^3.2.4",