@guardian/support-dotcom-components 11.3.2 → 12.0.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/dist/shared/lib/viewLog.d.ts +3 -3
- package/dist/shared/lib/viewLog.d.ts.map +1 -1
- package/dist/shared/types/index.d.ts +1 -1
- package/dist/shared/types/index.d.ts.map +1 -1
- package/dist/shared/types/targeting/epic.d.ts +2 -2
- package/dist/shared/types/targeting/epic.d.ts.map +1 -1
- package/dist/shared/types/targeting/inline1.d.ts +2 -5
- package/dist/shared/types/targeting/inline1.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { LocalStorage } from '../types/targeting/shared';
|
|
2
|
-
interface
|
|
2
|
+
interface MessageView {
|
|
3
3
|
date: number;
|
|
4
4
|
testId: string;
|
|
5
5
|
}
|
|
6
|
-
export type
|
|
6
|
+
export type MessageViewLog = MessageView[];
|
|
7
7
|
/**
|
|
8
8
|
* Return the entire viewLog.
|
|
9
9
|
*/
|
|
10
|
-
export declare const getEpicViewLog: (localStorage: LocalStorage) =>
|
|
10
|
+
export declare const getEpicViewLog: (localStorage: LocalStorage) => MessageViewLog | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Add a new entry to the viewLog.
|
|
13
13
|
* The number of entries is limited to the number in maxLogEntries.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewLog.d.ts","sourceRoot":"","sources":["../../../../shared/lib/viewLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAU9D,UAAU,
|
|
1
|
+
{"version":3,"file":"viewLog.d.ts","sourceRoot":"","sources":["../../../../shared/lib/viewLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAU9D,UAAU,WAAW;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,MAAM,cAAc,GAAG,WAAW,EAAE,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,cAAc,YAAY,KAAG,cAAc,GAAG,SAM5E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,KAAG,IAgB5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../shared/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../shared/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MessageViewLog } from '../../lib/viewLog';
|
|
2
2
|
import type { WeeklyArticleHistory } from './shared';
|
|
3
3
|
type Tag = {
|
|
4
4
|
id: string;
|
|
@@ -10,7 +10,7 @@ export type EpicTargeting = {
|
|
|
10
10
|
isPaidContent: boolean;
|
|
11
11
|
tags: Tag[];
|
|
12
12
|
mvtId?: number;
|
|
13
|
-
epicViewLog?:
|
|
13
|
+
epicViewLog?: MessageViewLog;
|
|
14
14
|
countryCode?: string;
|
|
15
15
|
weeklyArticleHistory?: WeeklyArticleHistory;
|
|
16
16
|
hasOptedOutOfArticleCount: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../../shared/types/targeting/epic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"epic.d.ts","sourceRoot":"","sources":["../../../../../shared/types/targeting/epic.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,KAAK,GAAG,GAAG;IACP,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB,EAAE,OAAO,CAAC;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,yBAAyB,EAAE,OAAO,CAAC;IACnC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACtB,SAAS,EAAE,aAAa,CAAC;CAC5B,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
+
import type { MessageViewLog } from '../../lib';
|
|
1
2
|
import type { WeeklyArticleHistory } from './shared';
|
|
2
|
-
export interface Inline1View {
|
|
3
|
-
timestamp: number;
|
|
4
|
-
testName: string;
|
|
5
|
-
}
|
|
6
3
|
export interface Inline1Targeting {
|
|
7
4
|
showSupportMessaging: boolean;
|
|
8
5
|
mvtId: number;
|
|
@@ -15,7 +12,7 @@ export interface Inline1Targeting {
|
|
|
15
12
|
isSignedIn: boolean;
|
|
16
13
|
hasConsented: boolean;
|
|
17
14
|
hasNewsletterSignup: boolean;
|
|
18
|
-
viewLog?:
|
|
15
|
+
viewLog?: MessageViewLog;
|
|
19
16
|
}
|
|
20
17
|
export type Inline1Payload = {
|
|
21
18
|
targeting: Inline1Targeting;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline1.d.ts","sourceRoot":"","sources":["../../../../../shared/types/targeting/inline1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"inline1.d.ts","sourceRoot":"","sources":["../../../../../shared/types/targeting/inline1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC7B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;CAC5B;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE,gBAAgB,CAAC;CAC/B,CAAC"}
|