@newskit-render/shared-components 4.0.1 → 4.1.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.
@@ -3,7 +3,7 @@ import { PastDueBannerType, UserData } from './types';
3
3
  export type PastDueBannerProps = {
4
4
  className?: string;
5
5
  pastDueBanner: PastDueBannerType;
6
- userData: Partial<UserData>;
6
+ userData: UserData;
7
7
  url: string;
8
8
  hideBannerOverride?: {
9
9
  hideBanner: boolean;
@@ -2,10 +2,10 @@
2
2
  export interface Subscriptions {
3
3
  billingDetails: {
4
4
  paymentMethod: {
5
- cardNumber: string;
6
- cardType: string;
7
- expirationMonth: number;
8
- expirationYear: number;
5
+ cardNumber: string | null;
6
+ cardType: string | null;
7
+ expirationMonth: number | null;
8
+ expirationYear: number | null;
9
9
  };
10
10
  };
11
11
  cpn: string;
@@ -3,7 +3,7 @@ import { PastDueBannerType, UserData } from './types';
3
3
  export type PastDueBannerProps = {
4
4
  className?: string;
5
5
  pastDueBanner: PastDueBannerType;
6
- userData: Partial<UserData>;
6
+ userData: UserData;
7
7
  url: string;
8
8
  hideBannerOverride?: {
9
9
  hideBanner: boolean;
@@ -2,10 +2,10 @@
2
2
  export interface Subscriptions {
3
3
  billingDetails: {
4
4
  paymentMethod: {
5
- cardNumber: string;
6
- cardType: string;
7
- expirationMonth: number;
8
- expirationYear: number;
5
+ cardNumber: string | null;
6
+ cardType: string | null;
7
+ expirationMonth: number | null;
8
+ expirationYear: number | null;
9
9
  };
10
10
  };
11
11
  cpn: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/shared-components",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "description": "Newskit Render Shared Components",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",