@guardian/support-dotcom-components 1.0.2 → 1.0.3

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @sdc/dotcom
1
+ ## @guardian/support-dotcom-components
2
2
 
3
3
  A library for use by dotcom (frontend/DCR). This is for sharing logic and types with dotcom (frontend + dcr).
4
4
 
@@ -1,5 +1,9 @@
1
1
  import { PageTracking } from './shared';
2
2
  export declare type Edition = 'UK' | 'US' | 'AU' | 'INT';
3
+ export interface PurchaseInfo {
4
+ userType: 'new' | 'guest' | 'current';
5
+ product: 'Contribution' | 'DigitalPack' | 'GuardianWeekly' | 'Paper';
6
+ }
3
7
  export interface HeaderTargeting {
4
8
  showSupportMessaging: boolean;
5
9
  edition: Edition;
@@ -8,6 +12,8 @@ export interface HeaderTargeting {
8
12
  mvtId: number;
9
13
  lastOneOffContributionDate?: string;
10
14
  numArticles?: number;
15
+ purchaseInfo?: PurchaseInfo;
16
+ isSignedIn: boolean;
11
17
  }
12
18
  export declare type HeaderPayload = {
13
19
  tracking: PageTracking;
@@ -1 +1 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/targeting/header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,oBAAY,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAEjD,MAAM,WAAW,eAAe;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,oBAAY,aAAa,GAAG;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../../../shared/src/types/targeting/header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,oBAAY,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAEjD,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,CAAC;IACtC,OAAO,EAAE,cAAc,GAAG,aAAa,GAAG,gBAAgB,GAAG,OAAO,CAAC;CACxE;AAED,MAAM,WAAW,eAAe;IAC5B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,oBAAY,aAAa,GAAG;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,SAAS,EAAE,eAAe,CAAC;CAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guardian/support-dotcom-components",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",