@newskit-render/my-account 0.132.0 → 0.136.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/README.md +14 -1
- package/dist/Components/Sections/NoSubscription/NoSubscription.d.ts +3 -0
- package/dist/Components/Sections/NoSubscription/NoSubscription.js +27 -0
- package/dist/Components/Sections/NoSubscription/NoSubscription.js.map +1 -0
- package/dist/Components/Sections/NoSubscription/index.d.ts +2 -0
- package/dist/Components/Sections/NoSubscription/index.js +15 -0
- package/dist/Components/Sections/NoSubscription/index.js.map +1 -0
- package/dist/Components/Sections/NoSubscription/types.d.ts +5 -0
- package/dist/Components/Sections/NoSubscription/types.js +3 -0
- package/dist/Components/Sections/NoSubscription/types.js.map +1 -0
- package/dist/Components/Templates/PaymentRenderer.js +9 -4
- package/dist/Components/Templates/PaymentRenderer.js.map +1 -1
- package/dist/Components/Templates/SubscriptionAndBillingRender.d.ts +3 -0
- package/dist/Components/Templates/SubscriptionAndBillingRender.js +49 -0
- package/dist/Components/Templates/SubscriptionAndBillingRender.js.map +1 -0
- package/dist/Components/Templates/index.d.ts +2 -1
- package/dist/Components/Templates/index.js +3 -1
- package/dist/Components/Templates/index.js.map +1 -1
- package/dist/context/types.d.ts +4 -0
- package/dist/helpers/dataUtils.d.ts +1 -0
- package/dist/helpers/dataUtils.js +7 -4
- package/dist/helpers/dataUtils.js.map +1 -1
- package/dist/helpers/getQuery.js +4 -2
- package/dist/helpers/getQuery.js.map +1 -1
- package/dist/hooks/useSuccessToast.js +1 -1
- package/dist/hooks/useSuccessToast.js.map +1 -1
- package/dist/pages/Error.js +21 -3
- package/dist/pages/Error.js.map +1 -1
- package/dist/pages/Payment.js +26 -4
- package/dist/pages/Payment.js.map +1 -1
- package/dist/pages/SubscriptionAndBilling.js +147 -1
- package/dist/pages/SubscriptionAndBilling.js.map +1 -1
- package/dist/pages/types.d.ts +4 -0
- package/dist/queries/getUserSubscription.js +1 -1
- package/dist/queries/getUserSubscription.js.map +1 -1
- package/package.json +8 -5
- package/CHANGELOG.md +0 -2374
|
@@ -138,6 +138,152 @@ exports.SubscriptionAndBillingContext = {
|
|
|
138
138
|
error: "Sorry, we're unable to save your ${field} right now. Please try again or come back later.",
|
|
139
139
|
success: 'Your ${field} has been updated.',
|
|
140
140
|
},
|
|
141
|
+
noSubscription: {
|
|
142
|
+
header: {
|
|
143
|
+
title: 'You don’t have a subscription',
|
|
144
|
+
titleOverrides: {
|
|
145
|
+
typographyPreset: { xs: 'utilityHeading040', sm: 'utilityHeading050' },
|
|
146
|
+
stylePreset: 'inkContrast',
|
|
147
|
+
spaceStack: {
|
|
148
|
+
xs: 'space040',
|
|
149
|
+
sm: 'space050',
|
|
150
|
+
},
|
|
151
|
+
as: 'h1',
|
|
152
|
+
},
|
|
153
|
+
description: 'Start a subscription and get access to all benefits.',
|
|
154
|
+
descriptionOverrides: {
|
|
155
|
+
typographyPreset: { xs: 'utilityBody020', sm: 'utilityBody030' },
|
|
156
|
+
stylePreset: 'inkBase',
|
|
157
|
+
spaceStack: {
|
|
158
|
+
xs: 'space050',
|
|
159
|
+
sm: 'space060',
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
image: {
|
|
163
|
+
src: '/MyAccount/no-subscription.svg',
|
|
164
|
+
spaceStack: { xs: 'space050', sm: 'space060', md: 'space080' },
|
|
165
|
+
},
|
|
166
|
+
introductionCell: {
|
|
167
|
+
xsOrder: 1,
|
|
168
|
+
},
|
|
169
|
+
imageCell: {
|
|
170
|
+
xsOrder: 0,
|
|
171
|
+
},
|
|
172
|
+
showDivider: false,
|
|
173
|
+
},
|
|
174
|
+
buttonGroupProps: {
|
|
175
|
+
keepFixed: false,
|
|
176
|
+
stylePreset: 'buttonGroupSm',
|
|
177
|
+
spaceStack: {
|
|
178
|
+
xs: 'space000',
|
|
179
|
+
sm: 'space100',
|
|
180
|
+
},
|
|
181
|
+
primaryText: 'View subscription options',
|
|
182
|
+
primaryButton: {
|
|
183
|
+
ariaLabel: 'View subscription options',
|
|
184
|
+
href: '/title-storefrount',
|
|
185
|
+
overrides: {
|
|
186
|
+
stylePreset: 'buttonSolidPrimary',
|
|
187
|
+
width: '100%',
|
|
188
|
+
},
|
|
189
|
+
spaceStack: {
|
|
190
|
+
xs: 'space080',
|
|
191
|
+
sm: 'space000',
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
primaryCell: {
|
|
195
|
+
xs: 12,
|
|
196
|
+
sm: 8,
|
|
197
|
+
smOffset: 4,
|
|
198
|
+
md: 7,
|
|
199
|
+
mdOffset: 5,
|
|
200
|
+
lg: 5,
|
|
201
|
+
lgOffset: 7,
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
previousSubscription: {
|
|
206
|
+
header: {
|
|
207
|
+
title: 'You’ve previously had a subscription that has now expired',
|
|
208
|
+
titleOverrides: {
|
|
209
|
+
typographyPreset: { xs: 'utilityHeading040', sm: 'utilityHeading050' },
|
|
210
|
+
stylePreset: 'inkContrast',
|
|
211
|
+
spaceStack: {
|
|
212
|
+
xs: 'space040',
|
|
213
|
+
sm: 'space050',
|
|
214
|
+
},
|
|
215
|
+
as: 'h1',
|
|
216
|
+
},
|
|
217
|
+
description: 'On ${serviceCancellationDate} your ${subscriptionName} subscription expired. You can can re-subscribe by confirming a few details or view other packages that are available.',
|
|
218
|
+
descriptionOverrides: {
|
|
219
|
+
typographyPreset: { xs: 'utilityBody020', sm: 'utilityBody030' },
|
|
220
|
+
stylePreset: 'inkBase',
|
|
221
|
+
spaceStack: {
|
|
222
|
+
xs: 'space050',
|
|
223
|
+
sm: 'space060',
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
image: {
|
|
227
|
+
src: '/MyAccount/previous-subscription.svg',
|
|
228
|
+
spaceStack: { xs: 'space050', sm: 'space060', md: 'space080' },
|
|
229
|
+
},
|
|
230
|
+
introductionCell: {
|
|
231
|
+
xsOrder: 1,
|
|
232
|
+
},
|
|
233
|
+
imageCell: {
|
|
234
|
+
xsOrder: 0,
|
|
235
|
+
},
|
|
236
|
+
showDivider: false,
|
|
237
|
+
},
|
|
238
|
+
buttonGroupProps: {
|
|
239
|
+
keepFixed: false,
|
|
240
|
+
breakPoint: 'md',
|
|
241
|
+
stylePreset: 'buttonGroupSm',
|
|
242
|
+
spaceStack: {
|
|
243
|
+
xs: 'space000',
|
|
244
|
+
md: 'space100',
|
|
245
|
+
},
|
|
246
|
+
secondaryText: 'View subscription options',
|
|
247
|
+
secondaryButton: {
|
|
248
|
+
ariaLabel: 'View subscription options',
|
|
249
|
+
href: '/title-subscription-options',
|
|
250
|
+
overrides: {
|
|
251
|
+
stylePreset: 'buttonMinimalSecondary',
|
|
252
|
+
width: '100%',
|
|
253
|
+
},
|
|
254
|
+
spaceStack: {
|
|
255
|
+
xs: 'space080',
|
|
256
|
+
md: 'space000',
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
secondaryCell: {
|
|
260
|
+
xs: 12,
|
|
261
|
+
md: 7,
|
|
262
|
+
lg: 5,
|
|
263
|
+
mdOffset: 1,
|
|
264
|
+
lgOffset: 4,
|
|
265
|
+
xsOrder: 1,
|
|
266
|
+
mdOrder: 0,
|
|
267
|
+
},
|
|
268
|
+
primaryText: 'Re-subscribe',
|
|
269
|
+
primaryButton: {
|
|
270
|
+
ariaLabel: 'Re-subscribe',
|
|
271
|
+
href: '/title-re-subscribe',
|
|
272
|
+
overrides: {
|
|
273
|
+
stylePreset: 'buttonSolidPrimary',
|
|
274
|
+
width: '100%',
|
|
275
|
+
},
|
|
276
|
+
spaceStack: {
|
|
277
|
+
xs: 'space040',
|
|
278
|
+
md: 'space000',
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
primaryCell: { xs: 12, md: 4, lg: 3, xsOrder: 0, mdOrder: 1 },
|
|
282
|
+
margin: {
|
|
283
|
+
xsMargin: 'space000',
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
},
|
|
141
287
|
};
|
|
142
288
|
var SubscriptionAndBilling = function (_a) {
|
|
143
289
|
var customTheme = _a.customTheme, setTheme = _a.setTheme, context = _a.context, user = _a.user;
|
|
@@ -148,7 +294,7 @@ var SubscriptionAndBilling = function (_a) {
|
|
|
148
294
|
verticalOffset: 'space040',
|
|
149
295
|
horizontalOffset: { xs: 'space000', lg: 'space040' },
|
|
150
296
|
} },
|
|
151
|
-
react_1.default.createElement(Templates_1.
|
|
297
|
+
react_1.default.createElement(Templates_1.SubscriptionAndBillingRender, null))));
|
|
152
298
|
};
|
|
153
299
|
exports.SubscriptionAndBilling = SubscriptionAndBilling;
|
|
154
300
|
//# sourceMappingURL=SubscriptionAndBilling.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubscriptionAndBilling.js","sourceRoot":"","sources":["../../src/pages/SubscriptionAndBilling.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,uEAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"SubscriptionAndBilling.js","sourceRoot":"","sources":["../../src/pages/SubscriptionAndBilling.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,uEAA+E;AAC/E,mEAA8E;AAG9E,sEAAkF;AAClF,kCAA0C;AAE1C,IAAM,KAAK,GAAG,wBAAwB,CAAA;AAEzB,QAAA,6BAA6B,GAAmB;IAC3D,IAAI,EAAE;QACJ,SAAS,EAAE,KAAK;KACjB;IACD,aAAa,EAAE,2CAA2B;IAC1C,MAAM,EAAE;QACN,KAAK,OAAA;QACL,WAAW,EACT,yEAAyE;QAC3E,KAAK,EAAE;YACL,GAAG,EAAE,oCAAoC;YACzC,GAAG,EAAE,EAAE;SACR;KACF;IACD,eAAe,EAAE,0BAA0B;IAC3C,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE;gBACL,iBAAiB,E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mBAAM,IACL,OAAO,QACP,MAAM,QACN,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,WAAW,IAAI,+BAAY,EACxC,QAAQ,EAAE,QAAQ,EAClB,kBAAkB,EAAE;gBAClB,cAAc,EAAE,UAAU;gBAC1B,gBAAgB,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,EAAE;aACrD;YAED,8BAAC,wCAA4B,OAAG,CACzB,CACR,CACJ,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,sBAAsB,0BA6BlC"}
|
package/dist/pages/types.d.ts
CHANGED
|
@@ -72,9 +72,13 @@ export interface Address {
|
|
|
72
72
|
postcode: string | null;
|
|
73
73
|
}
|
|
74
74
|
export interface Subscriptions {
|
|
75
|
+
type: string;
|
|
75
76
|
currency: string;
|
|
76
77
|
price: number;
|
|
77
78
|
startDate: string;
|
|
79
|
+
endDate: string | null;
|
|
80
|
+
isActive: boolean;
|
|
81
|
+
status: string;
|
|
78
82
|
billingDetails: {
|
|
79
83
|
paymentMethod: {
|
|
80
84
|
cardNumber: string;
|
|
@@ -6,6 +6,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.GET_USER_SUBSCRIPTION = void 0;
|
|
8
8
|
var client_1 = require("@apollo/client");
|
|
9
|
-
exports.GET_USER_SUBSCRIPTION = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment UserSubscription on User {\n cpn\n subscriptions {\n startDate\n endDate\n isActive\n currency\n price\n type\n billingDetails {\n billCycleDay\n paymentMethod {\n cardType\n cardNumber\n type\n expirationYear\n expirationMonth\n }\n }\n }\n }\n"], ["\n fragment UserSubscription on User {\n cpn\n subscriptions {\n startDate\n endDate\n isActive\n currency\n price\n type\n billingDetails {\n billCycleDay\n paymentMethod {\n cardType\n cardNumber\n type\n expirationYear\n expirationMonth\n }\n }\n }\n }\n"])));
|
|
9
|
+
exports.GET_USER_SUBSCRIPTION = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment UserSubscription on User {\n cpn\n subscriptions {\n startDate\n endDate\n isActive\n currency\n price\n type\n status\n billingDetails {\n billCycleDay\n paymentMethod {\n cardType\n cardNumber\n type\n expirationYear\n expirationMonth\n }\n }\n }\n }\n"], ["\n fragment UserSubscription on User {\n cpn\n subscriptions {\n startDate\n endDate\n isActive\n currency\n price\n type\n status\n billingDetails {\n billCycleDay\n paymentMethod {\n cardType\n cardNumber\n type\n expirationYear\n expirationMonth\n }\n }\n }\n }\n"])));
|
|
10
10
|
var templateObject_1;
|
|
11
11
|
//# sourceMappingURL=getUserSubscription.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserSubscription.js","sourceRoot":"","sources":["../../src/queries/getUserSubscription.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,qBAAqB,OAAG,YAAG,
|
|
1
|
+
{"version":3,"file":"getUserSubscription.js","sourceRoot":"","sources":["../../src/queries/getUserSubscription.ts"],"names":[],"mappings":";;;;;;;AAAA,yCAAoC;AAEvB,QAAA,qBAAqB,OAAG,YAAG,0cAAA,sYAuBvC,KAAA"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/my-account",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.136.0",
|
|
4
4
|
"description": "Newskit Render",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"keywords": [],
|
|
8
8
|
"main": "dist/index.js",
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=16.13"
|
|
11
|
+
},
|
|
9
12
|
"scripts": {
|
|
10
13
|
"build": "rm -rf dist && tsc -b tsconfig.build.json",
|
|
11
14
|
"build:watch": "tsc -b tsconfig.build.json -w",
|
|
@@ -28,9 +31,9 @@
|
|
|
28
31
|
"dependencies": {
|
|
29
32
|
"@apollo/client": "3.4.16",
|
|
30
33
|
"@hookform/resolvers": "2.5.2",
|
|
31
|
-
"@newskit-render/api": "^0.
|
|
32
|
-
"@newskit-render/shared-components": "^0.
|
|
33
|
-
"@newskit-render/validation": "^0.
|
|
34
|
+
"@newskit-render/api": "^0.14.0",
|
|
35
|
+
"@newskit-render/shared-components": "^0.34.0",
|
|
36
|
+
"@newskit-render/validation": "^0.34.0",
|
|
34
37
|
"@stripe/react-stripe-js": "1.4.1",
|
|
35
38
|
"@stripe/stripe-js": "1.17.0",
|
|
36
39
|
"cookie": "0.4.1",
|
|
@@ -78,7 +81,7 @@
|
|
|
78
81
|
"jest-junit": "12.0.0",
|
|
79
82
|
"jest-watch-typeahead": "0.6.3",
|
|
80
83
|
"lint-staged": "12.1.7",
|
|
81
|
-
"next": "12.0.
|
|
84
|
+
"next": "12.0.10",
|
|
82
85
|
"prettier": "2.2.1",
|
|
83
86
|
"react": "17.0.2",
|
|
84
87
|
"react-dom": "17.0.2",
|