@newskit-render/my-account 0.0.0-e8d83dca6 → 0.0.0-ee3c8b8cc

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.
Files changed (319) hide show
  1. package/dist/cjs/Components/Elements/ForwardButton/ForwardButton.d.ts +17 -0
  2. package/dist/cjs/Components/Elements/ForwardButton/ForwardButton.js +43 -0
  3. package/dist/cjs/Components/Elements/ForwardButton/ForwardButton.js.map +1 -0
  4. package/dist/cjs/Components/Elements/Head/Head.js +1 -1
  5. package/dist/cjs/Components/Elements/Head/Head.js.map +1 -1
  6. package/dist/cjs/Components/Elements/ListItemComponents/ItemFooter.d.ts +15 -0
  7. package/dist/cjs/Components/Elements/ListItemComponents/ItemFooter.js +27 -0
  8. package/dist/cjs/Components/Elements/ListItemComponents/ItemFooter.js.map +1 -0
  9. package/dist/cjs/Components/Elements/ListItemComponents/ItemIconLabel.d.ts +5 -0
  10. package/dist/cjs/Components/Elements/ListItemComponents/ItemIconLabel.js +16 -0
  11. package/dist/cjs/Components/Elements/ListItemComponents/ItemIconLabel.js.map +1 -0
  12. package/dist/cjs/Components/Elements/ListItemComponents/ItemSubtitle.d.ts +7 -0
  13. package/dist/cjs/Components/Elements/ListItemComponents/ItemSubtitle.js +51 -0
  14. package/dist/cjs/Components/Elements/ListItemComponents/ItemSubtitle.js.map +1 -0
  15. package/dist/cjs/Components/Elements/ListItemComponents/index.d.ts +3 -0
  16. package/dist/cjs/Components/Elements/ListItemComponents/index.js +20 -0
  17. package/dist/cjs/Components/Elements/ListItemComponents/index.js.map +1 -0
  18. package/dist/cjs/Components/Elements/OfferCard/OfferCard.d.ts +3 -0
  19. package/dist/cjs/Components/Elements/OfferCard/OfferCard.js +54 -0
  20. package/dist/cjs/Components/Elements/OfferCard/OfferCard.js.map +1 -0
  21. package/dist/cjs/Components/Elements/OfferCard/index.d.ts +2 -0
  22. package/dist/cjs/Components/Elements/OfferCard/index.js +5 -0
  23. package/dist/cjs/Components/Elements/OfferCard/index.js.map +1 -0
  24. package/dist/cjs/Components/Elements/OfferCard/styled.d.ts +43 -0
  25. package/dist/cjs/Components/Elements/OfferCard/styled.js +22 -0
  26. package/dist/cjs/Components/Elements/OfferCard/styled.js.map +1 -0
  27. package/dist/cjs/Components/Elements/OfferCard/types.d.ts +24 -0
  28. package/dist/cjs/Components/Elements/OfferCard/types.js +3 -0
  29. package/dist/cjs/Components/Elements/OfferCard/types.js.map +1 -0
  30. package/dist/cjs/Components/Elements/SectionListItem/GridListItem.d.ts +3 -0
  31. package/dist/cjs/Components/Elements/SectionListItem/GridListItem.js +77 -0
  32. package/dist/cjs/Components/Elements/SectionListItem/GridListItem.js.map +1 -0
  33. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.d.ts +3 -0
  34. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.js +76 -0
  35. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.js.map +1 -0
  36. package/dist/cjs/Components/Elements/SectionListItem/index.d.ts +3 -0
  37. package/dist/cjs/Components/Elements/SectionListItem/index.js +20 -0
  38. package/dist/cjs/Components/Elements/SectionListItem/index.js.map +1 -0
  39. package/dist/cjs/Components/Elements/SectionListItem/types.d.ts +37 -0
  40. package/dist/cjs/Components/Elements/SectionListItem/types.js +3 -0
  41. package/dist/cjs/Components/Elements/SectionListItem/types.js.map +1 -0
  42. package/dist/cjs/Components/Elements/StandaloneLinkComponent/StandaloneLinkComponent.js +4 -15
  43. package/dist/cjs/Components/Elements/StandaloneLinkComponent/StandaloneLinkComponent.js.map +1 -1
  44. package/dist/cjs/Components/Elements/UserHubListItem/UserHubListItem.js +3 -4
  45. package/dist/cjs/Components/Elements/UserHubListItem/UserHubListItem.js.map +1 -1
  46. package/dist/cjs/Components/Elements/UserHubListItem/types.d.ts +5 -2
  47. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.d.ts +1 -1
  48. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.js +34 -11
  49. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.js.map +1 -1
  50. package/dist/cjs/Components/Sections/CancelSubscription/types.d.ts +12 -7
  51. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.d.ts +16 -0
  52. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.js +43 -0
  53. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.js.map +1 -0
  54. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/index.d.ts +1 -0
  55. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/index.js +6 -0
  56. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/index.js.map +1 -0
  57. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/type.d.ts +0 -0
  58. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/type.js +2 -0
  59. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/type.js.map +1 -0
  60. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js +1 -0
  61. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  62. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellation.d.ts +26 -0
  63. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellation.js +38 -0
  64. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellation.js.map +1 -0
  65. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js +3 -2
  66. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  67. package/dist/cjs/Components/Sections/LayoutContentContainer/LayoutContentContainer.js +3 -3
  68. package/dist/cjs/Components/Sections/LayoutContentContainer/LayoutContentContainer.js.map +1 -1
  69. package/dist/cjs/Components/Sections/SectionContainer/GridSection.d.ts +3 -0
  70. package/dist/cjs/Components/Sections/SectionContainer/GridSection.js +46 -0
  71. package/dist/cjs/Components/Sections/SectionContainer/GridSection.js.map +1 -0
  72. package/dist/cjs/Components/Sections/SectionContainer/ListSection.d.ts +2 -0
  73. package/dist/cjs/Components/Sections/SectionContainer/ListSection.js +61 -0
  74. package/dist/cjs/Components/Sections/SectionContainer/ListSection.js.map +1 -0
  75. package/dist/cjs/Components/Sections/SectionContainer/SectionContainer.d.ts +11 -0
  76. package/dist/cjs/Components/Sections/SectionContainer/SectionContainer.js +49 -0
  77. package/dist/cjs/Components/Sections/SectionContainer/SectionContainer.js.map +1 -0
  78. package/dist/cjs/Components/Sections/SectionContainer/index.d.ts +4 -0
  79. package/dist/cjs/Components/Sections/SectionContainer/index.js +20 -0
  80. package/dist/cjs/Components/Sections/SectionContainer/index.js.map +1 -0
  81. package/dist/cjs/Components/Sections/SectionContainer/types.d.ts +39 -0
  82. package/dist/cjs/Components/Sections/SectionContainer/types.js +3 -0
  83. package/dist/cjs/Components/Sections/SectionContainer/types.js.map +1 -0
  84. package/dist/cjs/Components/Sections/SectionContainer/utils.d.ts +8 -0
  85. package/dist/cjs/Components/Sections/SectionContainer/utils.js +29 -0
  86. package/dist/cjs/Components/Sections/SectionContainer/utils.js.map +1 -0
  87. package/dist/cjs/Components/Sections/UserHub/BaseSection.js +5 -7
  88. package/dist/cjs/Components/Sections/UserHub/BaseSection.js.map +1 -1
  89. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js +1 -3
  90. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  91. package/dist/cjs/Components/SharedTypes/GridLayoutProps.d.ts +37 -0
  92. package/dist/cjs/Components/SharedTypes/GridLayoutProps.js +3 -0
  93. package/dist/cjs/Components/SharedTypes/GridLayoutProps.js.map +1 -0
  94. package/dist/cjs/Components/Templates/CancellationStepperRender.d.ts +24 -0
  95. package/dist/cjs/Components/Templates/CancellationStepperRender.js +177 -0
  96. package/dist/cjs/Components/Templates/CancellationStepperRender.js.map +1 -0
  97. package/dist/cjs/Components/Templates/SectionRender.d.ts +7 -0
  98. package/dist/cjs/Components/Templates/SectionRender.js +50 -0
  99. package/dist/cjs/Components/Templates/SectionRender.js.map +1 -0
  100. package/dist/cjs/Components/Templates/index.d.ts +2 -1
  101. package/dist/cjs/Components/Templates/index.js +3 -1
  102. package/dist/cjs/Components/Templates/index.js.map +1 -1
  103. package/dist/cjs/api/authorization.d.ts +2 -1
  104. package/dist/cjs/api/authorization.js +9 -14
  105. package/dist/cjs/api/authorization.js.map +1 -1
  106. package/dist/cjs/api/mutateHandler.js +11 -3
  107. package/dist/cjs/api/mutateHandler.js.map +1 -1
  108. package/dist/cjs/context/index.d.ts +24 -2
  109. package/dist/cjs/context/index.js +1 -0
  110. package/dist/cjs/context/index.js.map +1 -1
  111. package/dist/cjs/context/types.d.ts +97 -21
  112. package/dist/cjs/context/types.js +1 -1
  113. package/dist/cjs/context/types.js.map +1 -1
  114. package/dist/cjs/getProviderPropsTimes.js +26 -22
  115. package/dist/cjs/getProviderPropsTimes.js.map +1 -1
  116. package/dist/cjs/helpers/cancellationUtils.d.ts +7 -0
  117. package/dist/cjs/helpers/cancellationUtils.js +32 -0
  118. package/dist/cjs/helpers/cancellationUtils.js.map +1 -0
  119. package/dist/cjs/helpers/dateUtils.d.ts +8 -0
  120. package/dist/cjs/helpers/dateUtils.js +43 -0
  121. package/dist/cjs/helpers/dateUtils.js.map +1 -0
  122. package/dist/cjs/helpers/featureFlagUtils.d.ts +15 -2
  123. package/dist/cjs/helpers/featureFlagUtils.js +4 -3
  124. package/dist/cjs/helpers/featureFlagUtils.js.map +1 -1
  125. package/dist/cjs/helpers/index.d.ts +2 -0
  126. package/dist/cjs/helpers/index.js +2 -0
  127. package/dist/cjs/helpers/index.js.map +1 -1
  128. package/dist/cjs/helpers/providerUtilsTimes.js +1 -0
  129. package/dist/cjs/helpers/providerUtilsTimes.js.map +1 -1
  130. package/dist/cjs/index.d.ts +2 -1
  131. package/dist/cjs/index.js +1 -0
  132. package/dist/cjs/index.js.map +1 -1
  133. package/dist/cjs/pages/CancellationStepper/CancellationStepper.d.ts +3 -0
  134. package/dist/cjs/pages/CancellationStepper/CancellationStepper.js +55 -0
  135. package/dist/cjs/pages/CancellationStepper/CancellationStepper.js.map +1 -0
  136. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.d.ts +2 -0
  137. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js +441 -0
  138. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js.map +1 -0
  139. package/dist/cjs/pages/CancellationStepper/index.d.ts +2 -0
  140. package/dist/cjs/pages/CancellationStepper/index.js +19 -0
  141. package/dist/cjs/pages/CancellationStepper/index.js.map +1 -0
  142. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.d.ts +2 -0
  143. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +158 -0
  144. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -0
  145. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +0 -87
  146. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  147. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingSunContext.js +1 -0
  148. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingSunContext.js.map +1 -1
  149. package/dist/cjs/pages/UserHub/UserHubContext.js +10 -4
  150. package/dist/cjs/pages/UserHub/UserHubContext.js.map +1 -1
  151. package/dist/cjs/providers/types.d.ts +4 -2
  152. package/dist/cjs/providersTimes/types.d.ts +0 -8
  153. package/dist/cjs/providersTimes/types.js.map +1 -1
  154. package/dist/cjs/queries/getAuthorizeUriInput.js +1 -1
  155. package/dist/cjs/queries/getAuthorizeUriInput.js.map +1 -1
  156. package/dist/cjs/queries/getPaymentInfoAndAccountType.js +1 -1
  157. package/dist/cjs/queries/getPaymentInfoAndAccountType.js.map +1 -1
  158. package/dist/cjs/queries/getUserEntitlements.js +1 -1
  159. package/dist/cjs/queries/getUserEntitlements.js.map +1 -1
  160. package/dist/esm/Components/Elements/ForwardButton/ForwardButton.d.ts +17 -0
  161. package/dist/esm/Components/Elements/ForwardButton/ForwardButton.js +36 -0
  162. package/dist/esm/Components/Elements/ForwardButton/ForwardButton.js.map +1 -0
  163. package/dist/esm/Components/Elements/Head/Head.js +1 -1
  164. package/dist/esm/Components/Elements/Head/Head.js.map +1 -1
  165. package/dist/esm/Components/Elements/ListItemComponents/ItemFooter.d.ts +15 -0
  166. package/dist/esm/Components/Elements/ListItemComponents/ItemFooter.js +20 -0
  167. package/dist/esm/Components/Elements/ListItemComponents/ItemFooter.js.map +1 -0
  168. package/dist/esm/Components/Elements/ListItemComponents/ItemIconLabel.d.ts +5 -0
  169. package/dist/esm/Components/Elements/ListItemComponents/ItemIconLabel.js +9 -0
  170. package/dist/esm/Components/Elements/ListItemComponents/ItemIconLabel.js.map +1 -0
  171. package/dist/esm/Components/Elements/ListItemComponents/ItemSubtitle.d.ts +7 -0
  172. package/dist/esm/Components/Elements/ListItemComponents/ItemSubtitle.js +24 -0
  173. package/dist/esm/Components/Elements/ListItemComponents/ItemSubtitle.js.map +1 -0
  174. package/dist/esm/Components/Elements/ListItemComponents/index.d.ts +3 -0
  175. package/dist/esm/Components/Elements/ListItemComponents/index.js +4 -0
  176. package/dist/esm/Components/Elements/ListItemComponents/index.js.map +1 -0
  177. package/dist/esm/Components/Elements/OfferCard/OfferCard.d.ts +3 -0
  178. package/dist/esm/Components/Elements/OfferCard/OfferCard.js +47 -0
  179. package/dist/esm/Components/Elements/OfferCard/OfferCard.js.map +1 -0
  180. package/dist/esm/Components/Elements/OfferCard/index.d.ts +2 -0
  181. package/dist/esm/Components/Elements/OfferCard/index.js +3 -0
  182. package/dist/esm/Components/Elements/OfferCard/index.js.map +1 -0
  183. package/dist/esm/Components/Elements/OfferCard/styled.d.ts +43 -0
  184. package/dist/esm/Components/Elements/OfferCard/styled.js +19 -0
  185. package/dist/esm/Components/Elements/OfferCard/styled.js.map +1 -0
  186. package/dist/esm/Components/Elements/OfferCard/types.d.ts +24 -0
  187. package/dist/esm/Components/Elements/OfferCard/types.js +2 -0
  188. package/dist/esm/Components/Elements/OfferCard/types.js.map +1 -0
  189. package/dist/esm/Components/Elements/SectionListItem/GridListItem.d.ts +3 -0
  190. package/dist/esm/Components/Elements/SectionListItem/GridListItem.js +70 -0
  191. package/dist/esm/Components/Elements/SectionListItem/GridListItem.js.map +1 -0
  192. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.d.ts +3 -0
  193. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js +69 -0
  194. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js.map +1 -0
  195. package/dist/esm/Components/Elements/SectionListItem/index.d.ts +3 -0
  196. package/dist/esm/Components/Elements/SectionListItem/index.js +4 -0
  197. package/dist/esm/Components/Elements/SectionListItem/index.js.map +1 -0
  198. package/dist/esm/Components/Elements/SectionListItem/types.d.ts +37 -0
  199. package/dist/esm/Components/Elements/SectionListItem/types.js +2 -0
  200. package/dist/esm/Components/Elements/SectionListItem/types.js.map +1 -0
  201. package/dist/esm/Components/Elements/StandaloneLinkComponent/StandaloneLinkComponent.js +4 -15
  202. package/dist/esm/Components/Elements/StandaloneLinkComponent/StandaloneLinkComponent.js.map +1 -1
  203. package/dist/esm/Components/Elements/UserHubListItem/UserHubListItem.js +3 -4
  204. package/dist/esm/Components/Elements/UserHubListItem/UserHubListItem.js.map +1 -1
  205. package/dist/esm/Components/Elements/UserHubListItem/types.d.ts +5 -2
  206. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.d.ts +1 -1
  207. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js +35 -12
  208. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js.map +1 -1
  209. package/dist/esm/Components/Sections/CancelSubscription/types.d.ts +12 -7
  210. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.d.ts +16 -0
  211. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.js +36 -0
  212. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.js.map +1 -0
  213. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/index.d.ts +1 -0
  214. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/index.js +2 -0
  215. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/index.js.map +1 -0
  216. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/type.d.ts +0 -0
  217. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/type.js +2 -0
  218. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/type.js.map +1 -0
  219. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js +1 -0
  220. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  221. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellation.d.ts +26 -0
  222. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellation.js +31 -0
  223. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellation.js.map +1 -0
  224. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js +3 -2
  225. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  226. package/dist/esm/Components/Sections/LayoutContentContainer/LayoutContentContainer.js +3 -3
  227. package/dist/esm/Components/Sections/LayoutContentContainer/LayoutContentContainer.js.map +1 -1
  228. package/dist/esm/Components/Sections/SectionContainer/GridSection.d.ts +3 -0
  229. package/dist/esm/Components/Sections/SectionContainer/GridSection.js +39 -0
  230. package/dist/esm/Components/Sections/SectionContainer/GridSection.js.map +1 -0
  231. package/dist/esm/Components/Sections/SectionContainer/ListSection.d.ts +2 -0
  232. package/dist/esm/Components/Sections/SectionContainer/ListSection.js +54 -0
  233. package/dist/esm/Components/Sections/SectionContainer/ListSection.js.map +1 -0
  234. package/dist/esm/Components/Sections/SectionContainer/SectionContainer.d.ts +11 -0
  235. package/dist/esm/Components/Sections/SectionContainer/SectionContainer.js +41 -0
  236. package/dist/esm/Components/Sections/SectionContainer/SectionContainer.js.map +1 -0
  237. package/dist/esm/Components/Sections/SectionContainer/index.d.ts +4 -0
  238. package/dist/esm/Components/Sections/SectionContainer/index.js +4 -0
  239. package/dist/esm/Components/Sections/SectionContainer/index.js.map +1 -0
  240. package/dist/esm/Components/Sections/SectionContainer/types.d.ts +39 -0
  241. package/dist/esm/Components/Sections/SectionContainer/types.js +2 -0
  242. package/dist/esm/Components/Sections/SectionContainer/types.js.map +1 -0
  243. package/dist/esm/Components/Sections/SectionContainer/utils.d.ts +8 -0
  244. package/dist/esm/Components/Sections/SectionContainer/utils.js +24 -0
  245. package/dist/esm/Components/Sections/SectionContainer/utils.js.map +1 -0
  246. package/dist/esm/Components/Sections/UserHub/BaseSection.js +5 -7
  247. package/dist/esm/Components/Sections/UserHub/BaseSection.js.map +1 -1
  248. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js +1 -3
  249. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  250. package/dist/esm/Components/SharedTypes/GridLayoutProps.d.ts +37 -0
  251. package/dist/esm/Components/SharedTypes/GridLayoutProps.js +2 -0
  252. package/dist/esm/Components/SharedTypes/GridLayoutProps.js.map +1 -0
  253. package/dist/esm/Components/Templates/CancellationStepperRender.d.ts +24 -0
  254. package/dist/esm/Components/Templates/CancellationStepperRender.js +151 -0
  255. package/dist/esm/Components/Templates/CancellationStepperRender.js.map +1 -0
  256. package/dist/esm/Components/Templates/SectionRender.d.ts +7 -0
  257. package/dist/esm/Components/Templates/SectionRender.js +45 -0
  258. package/dist/esm/Components/Templates/SectionRender.js.map +1 -0
  259. package/dist/esm/Components/Templates/index.d.ts +2 -1
  260. package/dist/esm/Components/Templates/index.js +2 -1
  261. package/dist/esm/Components/Templates/index.js.map +1 -1
  262. package/dist/esm/api/authorization.d.ts +2 -1
  263. package/dist/esm/api/authorization.js +7 -12
  264. package/dist/esm/api/authorization.js.map +1 -1
  265. package/dist/esm/api/mutateHandler.js +12 -4
  266. package/dist/esm/api/mutateHandler.js.map +1 -1
  267. package/dist/esm/context/index.d.ts +24 -2
  268. package/dist/esm/context/index.js +1 -0
  269. package/dist/esm/context/index.js.map +1 -1
  270. package/dist/esm/context/types.d.ts +97 -21
  271. package/dist/esm/context/types.js +1 -1
  272. package/dist/esm/context/types.js.map +1 -1
  273. package/dist/esm/getProviderPropsTimes.js +26 -22
  274. package/dist/esm/getProviderPropsTimes.js.map +1 -1
  275. package/dist/esm/helpers/cancellationUtils.d.ts +7 -0
  276. package/dist/esm/helpers/cancellationUtils.js +27 -0
  277. package/dist/esm/helpers/cancellationUtils.js.map +1 -0
  278. package/dist/esm/helpers/dateUtils.d.ts +8 -0
  279. package/dist/esm/helpers/dateUtils.js +37 -0
  280. package/dist/esm/helpers/dateUtils.js.map +1 -0
  281. package/dist/esm/helpers/featureFlagUtils.d.ts +15 -2
  282. package/dist/esm/helpers/featureFlagUtils.js +4 -3
  283. package/dist/esm/helpers/featureFlagUtils.js.map +1 -1
  284. package/dist/esm/helpers/index.d.ts +2 -0
  285. package/dist/esm/helpers/index.js +2 -0
  286. package/dist/esm/helpers/index.js.map +1 -1
  287. package/dist/esm/helpers/providerUtilsTimes.js +1 -0
  288. package/dist/esm/helpers/providerUtilsTimes.js.map +1 -1
  289. package/dist/esm/index.d.ts +2 -1
  290. package/dist/esm/index.js +1 -0
  291. package/dist/esm/index.js.map +1 -1
  292. package/dist/esm/pages/CancellationStepper/CancellationStepper.d.ts +3 -0
  293. package/dist/esm/pages/CancellationStepper/CancellationStepper.js +25 -0
  294. package/dist/esm/pages/CancellationStepper/CancellationStepper.js.map +1 -0
  295. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.d.ts +2 -0
  296. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js +438 -0
  297. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js.map +1 -0
  298. package/dist/esm/pages/CancellationStepper/index.d.ts +2 -0
  299. package/dist/esm/pages/CancellationStepper/index.js +3 -0
  300. package/dist/esm/pages/CancellationStepper/index.js.map +1 -0
  301. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.d.ts +2 -0
  302. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +151 -0
  303. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -0
  304. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +2 -92
  305. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  306. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingSunContext.js +1 -0
  307. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingSunContext.js.map +1 -1
  308. package/dist/esm/pages/UserHub/UserHubContext.js +10 -4
  309. package/dist/esm/pages/UserHub/UserHubContext.js.map +1 -1
  310. package/dist/esm/providers/types.d.ts +4 -2
  311. package/dist/esm/providersTimes/types.d.ts +0 -8
  312. package/dist/esm/providersTimes/types.js.map +1 -1
  313. package/dist/esm/queries/getAuthorizeUriInput.js +1 -1
  314. package/dist/esm/queries/getAuthorizeUriInput.js.map +1 -1
  315. package/dist/esm/queries/getPaymentInfoAndAccountType.js +1 -1
  316. package/dist/esm/queries/getPaymentInfoAndAccountType.js.map +1 -1
  317. package/dist/esm/queries/getUserEntitlements.js +1 -1
  318. package/dist/esm/queries/getUserEntitlements.js.map +1 -1
  319. package/package.json +7 -5
@@ -1 +1 @@
1
- {"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../../src/api/authorization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,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AC,IAAI,CAAC,YAAY,CAAC,YAAY;oBAC3C,wCAAwC,CAC3C,CAAA;;;gBAED,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;gBACf,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAG,EAAE,CAAC,CAAA;;;gBAI5B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;gBACf,GAAG,CAAC,GAAG,EAAE,CAAA;gBACT,sBAAM;;;KACP,CAAA"}
@@ -52,9 +52,9 @@ import { ValidationSchemaNames } from '@newskit-render/validation';
52
52
  import { safeJsonParse } from '@newskit-render/shared-components';
53
53
  import { MISSING_VALUE_IN_VALIDATION_SCHEME_ERROR_MSG } from '../constants';
54
54
  import { handlePasswordRequest, handlePostcodeRequest, handleMutation, checkResponse, handleRequestError, } from './mutateHandlerHelpers';
55
- import { authorizeAPi } from './authorization';
55
+ import { authorizeAPI } from './authorization';
56
56
  export var mutateHandler = function (req, res, validationSchema, options) { return __awaiter(void 0, void 0, void 0, function () {
57
- var parsedData, validationSchemaKey, data, fieldSchema, _a, stepUpMfaToken, _b, errorMessage, _c, errorMessage, sanitizedDataObject, apolloClient, result, postcode;
57
+ var parsedData, validationSchemaKey, data, fieldSchema, _a, stepUpMfaToken, authRes, _b, errorMessage, _c, errorMessage, sanitizedDataObject, apolloClient, result, postcode;
58
58
  var _d;
59
59
  return __generator(this, function (_e) {
60
60
  switch (_e.label) {
@@ -74,8 +74,16 @@ export var mutateHandler = function (req, res, validationSchema, options) { retu
74
74
  _e.label = 1;
75
75
  case 1:
76
76
  _e.trys.push([1, 3, , 4]);
77
- return [4 /*yield*/, authorizeAPi(req, res, options === null || options === void 0 ? void 0 : options.mfaGoToUrl)];
78
- case 2: return [2 /*return*/, _e.sent()];
77
+ return [4 /*yield*/, authorizeAPI(req, res, options === null || options === void 0 ? void 0 : options.mfaGoToUrl)];
78
+ case 2:
79
+ authRes = _e.sent();
80
+ if (authRes === null || authRes === void 0 ? void 0 : authRes.user.email) {
81
+ res.status(200);
82
+ res.json(authRes);
83
+ res.end();
84
+ return [2 /*return*/];
85
+ }
86
+ return [3 /*break*/, 4];
79
87
  case 3:
80
88
  _b = _e.sent();
81
89
  errorMessage = _b.message;
@@ -1 +1 @@
1
- {"version":3,"file":"mutateHandler.js","sourceRoot":"","sources":["../../../src/api/mutateHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,4CAA4C,EAAE,MAAM,cAAc,CAAA;AAK3E,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,cAAc,EACd,aAAa,EACb,kBAAkB,GACnB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAM9C,MAAM,CAAC,IAAM,aAAa,GAAG,UAC3B,GAAmB,EACnB,GAAoB,EACpB,gBAA+D,EAC/D,OAA8B;;;;;;gBAE9B,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;oBAC1B,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;oBACf,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,kBAAW,GAAG,CAAC,MAAM,kBAAe,EAAE,CAAC,CAAA;oBAC3D,GAAG,CAAC,GAAG,EAAE,CAAA;oBACT,sBAAM;gBACR,CAAC;gBAEK,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;gBAClC,mBAAmB,GAAc,UAAU,oBA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C,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,mBAAmB,EAAE,IAAI,CAAC,CAAA;gBACzD,CAAC;;;;KACF,CAAA"}
@@ -1,6 +1,28 @@
1
1
  import React from 'react';
2
- import { PaymentPageContextOptions, AccountLandingPageContextOptions, ContextProviderProps, EditFieldContextOptions, ContextOptions, BaseContextOptions, CancellationContextOptions, ContextName, SubscriptionAndBillingContextOptions, AddFieldContextOption, PaymentMethodsContextOptions, NewslettersContextOptions, AccountDeletionContextOptions, ConfirmAccountDeletionContextOptions, FamilyContextOptions, UserHubContextOptions, BaseFormActions, UserHubSection } from './types';
2
+ import { PaymentPageContextOptions, AccountLandingPageContextOptions, ContextProviderProps, EditFieldContextOptions, ContextOptions, BaseContextOptions, CancellationContextOptions, CancellationStepperContextOptions, ContextName, SubscriptionAndBillingContextOptions, HolidayStopContextOptions, AddFieldContextOption, PaymentMethodsContextOptions, NewslettersContextOptions, AccountDeletionContextOptions, ConfirmAccountDeletionContextOptions, FamilyContextOptions, UserHubContextOptions, BaseFormActions, UserHubSection, CancellationItem } from './types';
3
3
  import { baseContext, footer, navigationPrimary, sideNav } from './baseContext';
4
+ declare const contextMap: {
5
+ personalDetails: React.Context<AccountLandingPageContextOptions | null>;
6
+ subscriptionAndBilling: React.Context<SubscriptionAndBillingContextOptions | null>;
7
+ holidayStop: React.Context<HolidayStopContextOptions | null>;
8
+ newslettersAndAlerts: React.Context<AccountLandingPageContextOptions | null>;
9
+ dreamTeam: React.Context<AccountLandingPageContextOptions | null>;
10
+ payment: React.Context<PaymentPageContextOptions | null>;
11
+ editField: React.Context<EditFieldContextOptions | null>;
12
+ cancellation: React.Context<CancellationContextOptions | null>;
13
+ CancellationStepper: React.Context<CancellationStepperContextOptions | null>;
14
+ error: React.Context<BaseContextOptions | null>;
15
+ addField: React.Context<AddFieldContextOption | null>;
16
+ paymentMethods: React.Context<PaymentMethodsContextOptions | null>;
17
+ paymentDirectDebit: React.Context<PaymentPageContextOptions | null>;
18
+ paymentCreditCard: React.Context<PaymentPageContextOptions | null>;
19
+ newsletters: React.Context<NewslettersContextOptions | null>;
20
+ accountDeletion: React.Context<AccountDeletionContextOptions | null>;
21
+ confirmAccountDeletion: React.Context<ConfirmAccountDeletionContextOptions | null>;
22
+ family: React.Context<FamilyContextOptions | null>;
23
+ userHubPage: React.Context<UserHubContextOptions | null>;
24
+ };
25
+ type ContextOptionsUnion = typeof contextMap;
4
26
  export declare const AccountContextProvider: React.FC<ContextProviderProps>;
5
27
  export declare const useAccountContext: (contextName: ContextName) => ContextOptions;
6
- export { type PaymentPageContextOptions, type EditFieldContextOptions, type BaseContextOptions, type AccountLandingPageContextOptions, type SubscriptionAndBillingContextOptions, type CancellationContextOptions, baseContext, footer, navigationPrimary, sideNav, type ContextOptions, type AddFieldContextOption, type PaymentMethodsContextOptions, type NewslettersContextOptions, type AccountDeletionContextOptions, type ConfirmAccountDeletionContextOptions, type FamilyContextOptions, type UserHubContextOptions, type BaseFormActions, type UserHubSection, };
28
+ export { type PaymentPageContextOptions, type EditFieldContextOptions, type BaseContextOptions, type AccountLandingPageContextOptions, type SubscriptionAndBillingContextOptions, type CancellationContextOptions, type CancellationStepperContextOptions, baseContext, footer, navigationPrimary, sideNav, type ContextOptions, type AddFieldContextOption, type PaymentMethodsContextOptions, type NewslettersContextOptions, type AccountDeletionContextOptions, type ConfirmAccountDeletionContextOptions, type FamilyContextOptions, type UserHubContextOptions, type BaseFormActions, type UserHubSection, type ContextOptionsUnion, type CancellationItem, };
@@ -12,6 +12,7 @@ var contextMap = (_a = {},
12
12
  _a[ContextName.payment] = createContext(null),
13
13
  _a[ContextName.editField] = createContext(null),
14
14
  _a[ContextName.cancellation] = createContext(null),
15
+ _a[ContextName.CancellationStepper] = createContext(null),
15
16
  _a[ContextName.error] = createContext(null),
16
17
  _a[ContextName.addField] = createContext(null),
17
18
  _a[ContextName.paymentMethods] = createContext(null),
@@ -1 +1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EAAE,WAAW,EAAE,OAAO,CAAC,CAAA;IACzC,IAAM,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IAE9C,OAAO,oBAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,CAAC,IAAG,QAAQ,CAA2B,CAAA;AAChF,CAAC,CAAA;AAED,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,WAAwB;IACxD,OAAA,UAAU,CAAC,UAAU,CAAC,WAAW,CAA4B,CAAC;AAA9D,CAA8D,CAAA;AAEhE,OAAO,EAQL,WAAW,EACX,MAAM,EACN,iBAAiB,EACjB,OAAO,GAaR,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { NavigationSecondaryInterface, NavigationSecondarySelected, NavigationSecondaryOverrides } from '../Components/Sections/NavigationSecondary';
3
3
  import { ContentContainerProps } from '../Components/Sections/ContentContainer';
4
- import { As, ListItemType, ListCellProps, ListItemProps, RequestHeaders, PastDueBannerType, TitleOverrides, DescriptionOverrides, FooterContext, FooterContextOverrides, HeaderProps, InputText, NavigationPrimaryProps, ButtonGroupProps, ModalProps, TealiumEventContext, EventContext as LinkEventContext } from '@newskit-render/shared-components';
5
- import { MQ, InlineMessageProps, NewsKitIcon, InstrumentationEvent, EventContext } from 'newskit';
4
+ import { As, ListItemType, ListCellProps, ListItemProps, RequestHeaders, PastDueBannerType, TitleOverrides, DescriptionOverrides, FooterContext, FooterContextOverrides, HeaderProps, InputText, NavigationPrimaryProps, ButtonGroupProps, ModalProps, TealiumEventContext, EventContext, ContentContainerProps as SharedContentContainerProps } from '@newskit-render/shared-components';
5
+ import { MQ, InlineMessageProps, NewsKitIcon, InstrumentationEvent, StackProps, BaseFlagOverrides, NewsKitIconProps } from 'newskit';
6
6
  import { HeadProps } from '../Components/Elements/Head';
7
7
  import { UserData, Data } from '../pages/types';
8
8
  import { PaymentProvider, ZuoraCustomErrorMessages, ZuoraPaymentPageData } from '../Components/Sections/Form/Payment';
@@ -20,6 +20,10 @@ import { FamilyMemberProps } from '../Components/Sections/Form/InviteFamilyMembe
20
20
  import { PaymentMethodsMap } from 'Components/Templates';
21
21
  import { UserHubItemProps } from '../Components/Elements/UserHubListItem';
22
22
  import { CancelSubscriptionProps } from 'Components/Sections/CancelSubscription';
23
+ import { HandleCardClick, StepController } from 'Components/Templates/CancellationStepperRender';
24
+ import { GridLayoutProps } from 'Components/SharedTypes/GridLayoutProps';
25
+ import { CancelSubscriptionDowngradeProps } from '../Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade';
26
+ import { ConfirmCancellationStepProps } from '../Components/Sections/ConfirmCancellation/ConfirmCancellation';
23
27
  interface InfoPanel extends InlineMessageProps {
24
28
  infoPanelCells?: MQ<number>;
25
29
  href?: boolean;
@@ -155,7 +159,8 @@ export declare enum ContextName {
155
159
  'accountDeletion' = "accountDeletion",
156
160
  'confirmAccountDeletion' = "confirmAccountDeletion",
157
161
  'family' = "family",
158
- 'userHubPage' = "userHubPage"
162
+ 'userHubPage' = "userHubPage",
163
+ 'CancellationStepper' = "CancellationStepper"
159
164
  }
160
165
  export interface BaseContextOptions {
161
166
  navigationPrimary: NavigationPrimaryProps;
@@ -186,6 +191,7 @@ interface LayoutMainContentOverrides {
186
191
  width?: MQ<string>;
187
192
  paddingInline?: MQ<string>;
188
193
  paddingBlockStart?: MQ<string>;
194
+ justifyContent?: MQ<string>;
189
195
  }
190
196
  interface InteractiveContextOptions extends BaseContextOptionsWithUserData {
191
197
  validation: Record<string, any>;
@@ -240,16 +246,93 @@ export interface CancellationContextOptions extends InteractiveContextOptions {
240
246
  confirm: Partial<CancellationContext>;
241
247
  };
242
248
  }
249
+ export interface CancellationItem {
250
+ id?: string;
251
+ componentType?: string;
252
+ label?: string;
253
+ labelOverrides?: {
254
+ typographyPreset: MQ<string>;
255
+ stylePreset?: MQ<string>;
256
+ };
257
+ subtitleOverrides?: {
258
+ typographyPreset: MQ<string>;
259
+ stylePreset?: MQ<string>;
260
+ };
261
+ subtitle?: string;
262
+ href?: string;
263
+ linkText?: string;
264
+ icon?: NewsKitIcon | string;
265
+ overrideNextStep?: string;
266
+ containerOverrides?: GridLayoutProps;
267
+ ariaLabel?: string;
268
+ handleClick?: HandleCardClick;
269
+ image?: string;
270
+ baseUrl?: string;
271
+ eventContext?: EventContext;
272
+ }
273
+ export interface CancellationSection {
274
+ contentContainerOverrides?: Partial<SharedContentContainerProps>;
275
+ containerOverrides?: GridLayoutProps;
276
+ itemContainerOverrides?: GridLayoutProps;
277
+ itemHeaderOverrides?: StackProps & {
278
+ imageVisible?: boolean;
279
+ };
280
+ itemImageOverrides?: {
281
+ width?: number;
282
+ height?: number;
283
+ fill?: boolean;
284
+ };
285
+ header: HeaderProps;
286
+ layoutType?: string;
287
+ items: CancellationItem[];
288
+ primaryButton?: ButtonProps;
289
+ belowItemExtra?: BelowItemExtraProps;
290
+ showBackButton?: boolean;
291
+ tealiumContext?: TealiumEventContext;
292
+ }
293
+ export interface BelowItemExtraProps {
294
+ containerOverrides?: Partial<GridLayoutProps>;
295
+ label: string;
296
+ button: {
297
+ text: string;
298
+ href?: string;
299
+ };
300
+ baseUrl?: string;
301
+ eventContext?: EventContext;
302
+ onClick?: StepController;
303
+ buttonOverrides?: BaseFlagOverrides;
304
+ iconOverrides?: NewsKitIconProps['overrides'];
305
+ }
306
+ export interface DowngradeContextProps extends CancelSubscriptionDowngradeProps {
307
+ contentContainerOverrides?: Partial<SharedContentContainerProps>;
308
+ showBackButton?: boolean;
309
+ tealiumContext?: TealiumEventContext;
310
+ }
311
+ export interface ConfirmCancellationContextProps extends ConfirmCancellationStepProps {
312
+ contentContainerOverrides?: Partial<SharedContentContainerProps>;
313
+ showBackButton?: boolean;
314
+ tealiumContext?: TealiumEventContext;
315
+ }
316
+ export interface CancellationStepperContextOptions extends Partial<InteractiveContextOptions>, Partial<NonInteractiveContextOptions> {
317
+ containerOverrides?: GridLayoutProps;
318
+ components: Record<string, CancellationSection | DowngradeContextProps | ConfirmCancellationContextProps>;
319
+ componentSequence: Record<string, string[]>;
320
+ showBackButton?: boolean;
321
+ contentContainerOverrides?: Partial<SharedContentContainerProps>;
322
+ }
323
+ export interface SectionListItemProps {
324
+ type: string;
325
+ }
243
326
  export interface AccountLandingPageSection {
244
327
  type: SectionTypes;
245
328
  billingType?: SectionBillingType;
246
- componentType: string;
329
+ componentType?: string;
330
+ layoutType?: string;
247
331
  props?: ContentContainerProps | CardContentContainerProps | CancelSubscriptionProps;
248
332
  }
249
333
  export declare enum SectionTypes {
250
334
  'Digital' = "digital",
251
- 'Print' = "print",
252
- 'all' = "all"
335
+ 'Print' = "print"
253
336
  }
254
337
  export declare enum SectionBillingType {
255
338
  'AllBilling' = "all_billing",
@@ -282,7 +365,7 @@ export interface PaymentPageContextOptions extends BaseContextOptionsWithUserDat
282
365
  paymentType?: string;
283
366
  infoPanel: InfoPanel;
284
367
  cancelButton?: ButtonProps & {
285
- eventContext: LinkEventContext;
368
+ eventContext: EventContext;
286
369
  };
287
370
  tealiumContext?: TealiumEventContext;
288
371
  paymentMethodsMap?: PaymentMethodsMap;
@@ -555,7 +638,7 @@ export interface FamilyContextOptions extends NonInteractiveContextOptions {
555
638
  cancelTextVariantB: string;
556
639
  eventNavigationNameCancel: string;
557
640
  eventNavigationNameRemove: string;
558
- eventContext: EventContext;
641
+ eventContext: Omit<EventContext, 'event_navigation_name'>;
559
642
  };
560
643
  memberNameOverrides: {
561
644
  stylePreset: MQ<string>;
@@ -633,21 +716,14 @@ export interface FamilyContextOptions extends NonInteractiveContextOptions {
633
716
  eventContext: EventContext;
634
717
  };
635
718
  }
636
- export interface UserHubContainerOverrides {
637
- rows: MQ<string>;
638
- columns?: MQ<string>;
639
- justifyContent: MQ<string>;
640
- overrides: {
641
- paddingBlock: MQ<string>;
642
- paddingInline: MQ<string>;
643
- minWidth: MQ<string>;
644
- };
645
- }
646
719
  export interface UserHubSection {
647
720
  header: HeaderProps;
648
- containerOverrides?: UserHubContainerOverrides;
721
+ containerOverrides?: GridLayoutProps;
649
722
  items: UserHubItemProps[];
650
723
  dataTestId: string;
724
+ contextName?: ContextName;
725
+ componentType?: string;
726
+ layoutType?: string;
651
727
  }
652
728
  export declare enum NewsletterNameId {
653
729
  'Times+' = "147",
@@ -688,7 +764,7 @@ export interface UserHubNewslettersSection {
688
764
  header: HeaderProps;
689
765
  'data-testid'?: string;
690
766
  newslettersListProps: NewslettersListProps;
691
- containerOverrides?: UserHubContainerOverrides;
767
+ containerOverrides?: GridLayoutProps;
692
768
  }
693
769
  export interface UserHubContextOptions extends NonInteractiveContextOptions {
694
770
  tealiumContext?: TealiumEventContext;
@@ -738,5 +814,5 @@ export interface ConfirmAccountDeletionContextOptions extends AccountDeletionCon
738
814
  export type ContextNameProps = {
739
815
  contextName: ContextName;
740
816
  };
741
- export type ContextOptions = HolidayStopContextOptions | PaymentPageContextOptions | AccountLandingPageContextOptions | CancellationContextOptions | EditFieldContextOptions | SubscriptionAndBillingContextOptions | BaseContextOptions | AddFieldContextOption | AccountDeletionContextOptions | ConfirmAccountDeletionContextOptions;
817
+ export type ContextOptions = HolidayStopContextOptions | PaymentPageContextOptions | AccountLandingPageContextOptions | CancellationContextOptions | EditFieldContextOptions | SubscriptionAndBillingContextOptions | BaseContextOptions | AddFieldContextOption | AccountDeletionContextOptions | ConfirmAccountDeletionContextOptions | CancellationStepperContextOptions;
742
818
  export {};
@@ -18,12 +18,12 @@ export var ContextName;
18
18
  ContextName["confirmAccountDeletion"] = "confirmAccountDeletion";
19
19
  ContextName["family"] = "family";
20
20
  ContextName["userHubPage"] = "userHubPage";
21
+ ContextName["CancellationStepper"] = "CancellationStepper";
21
22
  })(ContextName || (ContextName = {}));
22
23
  export var SectionTypes;
23
24
  (function (SectionTypes) {
24
25
  SectionTypes["Digital"] = "digital";
25
26
  SectionTypes["Print"] = "print";
26
- SectionTypes["all"] = "all";
27
27
  })(SectionTypes || (SectionTypes = {}));
28
28
  export var SectionBillingType;
29
29
  (function (SectionBillingType) {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ACzB,oCAAkB,CAAA;IAClB,gCAAc,CAAA;IACd,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,oCAAkB,CAAA;IAClB,oCAAkB,CAAA;IAClB,iCAAe,CAAA;IACf,oCAAkB,CAAA;IAClB,mCAAiB,CAAA;IACjB,+BAAa,CAAA;IACb,uCAAqB,CAAA;IACrB,kCAAgB,CAAA;IAChB,kCAAgB,CAAA;IAChB,uCAAqB,CAAA;IACrB,mCAAiB,CAAA;IACjB,8BAAY,CAAA;IACZ,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,kCAAgB,CAAA;AAClB,CAAC,EA3BW,gBAAgB,KAAhB,gBAAgB,QA2B3B;AA4BD,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;AAC3B,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAIlC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/context/types.ts"],"names":[],"mappings":"AAyMA,MAAM,CAAN,IAAY,WAoBX;AApBD,WAAY,WAAW;IACrB,kDAAqC,CAAA;IACrC,gEAAmD,CAAA;IACnD,0CAA6B,CAAA;IAC7B,4DAA+C,CAAA;IAC/C,kCAAqB,CAAA;IACrB,sCAAyB,CAAA;IACzB,oCAAuB,CAAA;IACvB,4CAA+B,CAAA;IAC/B,8BAAiB,CAAA;IACjB,gDAAmC,CAAA;IACnC,kDAAqC,CAAA;IACrC,gDAAmC,CAAA;IACnC,sCAAyB,CAAA;IACzB,0CAA6B,CAAA;IAC7B,kDAAqC,CAAA;IACrC,gEAAmD,CAAA;IACnD,gCAAmB,CAAA;IACnB,0CAA6B,CAAA;IAC7B,0DAA6C,CAAA;AAC/C,CAAC,EApBW,WAAW,KAAX,WAAW,QAoBtB;AAqND,MAAM,CAAN,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,mCAAqB,CAAA;IACrB,+BAA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PropsTimes = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
64
64
  var provider, apolloClient, providerResponse, pageProvider, err_1, userData, subscriptions, isEligible, featureFlags, optimizelyData, err_2, handleMfaError, isStepUpMfaEnabled, cookie, stepUpMfaToken, isTNLMobileApp, apolloMfaClient, stepUpProvider, err_3;
65
- var _c, _d, _e;
66
- var context = _b.context, props = _b.props, options = _b.options, _f = _b.enableStepUpMfa, enableStepUpMfa = _f === void 0 ? false : _f;
67
- return __generator(this, function (_g) {
68
- switch (_g.label) {
65
+ var _c, _d, _e, _f;
66
+ var context = _b.context, props = _b.props, options = _b.options, _g = _b.enableStepUpMfa, enableStepUpMfa = _g === void 0 ? false : _g;
67
+ return __generator(this, function (_h) {
68
+ switch (_h.label) {
69
69
  case 0:
70
70
  provider = context.provider;
71
71
  return [4 /*yield*/, createApolloClient(ClientTypes.main, ((_c = context.req.headers) === null || _c === void 0 ? void 0 : _c.cookie) || '', undefined, undefined, undefined, { enableStepUpMfa: false })];
72
72
  case 1:
73
- apolloClient = _g.sent();
73
+ apolloClient = _h.sent();
74
74
  providerResponse = {};
75
75
  pageProvider = pageProvidersMapper[provider] || genericPageProvider;
76
- _g.label = 2;
76
+ _h.label = 2;
77
77
  case 2:
78
- _g.trys.push([2, 4, , 5]);
78
+ _h.trys.push([2, 4, , 5]);
79
79
  return [4 /*yield*/, pageProvider({
80
80
  apolloClient: apolloClient,
81
81
  context: context,
@@ -83,10 +83,10 @@ export var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a]
83
83
  provider: provider || ProviderTypes.PersonalDetails,
84
84
  })];
85
85
  case 3:
86
- providerResponse = _g.sent();
86
+ providerResponse = _h.sent();
87
87
  return [3 /*break*/, 5];
88
88
  case 4:
89
- err_1 = _g.sent();
89
+ err_1 = _h.sent();
90
90
  handleNewRelicErrorLog({
91
91
  requestName: "getProviderPropsTimes - ".concat(provider),
92
92
  reqError: err_1,
@@ -107,16 +107,20 @@ export var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a]
107
107
  }
108
108
  }
109
109
  featureFlags = {};
110
- _g.label = 6;
110
+ _h.label = 6;
111
111
  case 6:
112
- _g.trys.push([6, 8, , 9]);
113
- optimizelyData = prepareOptimizelyData(providerResponse.data);
114
- return [4 /*yield*/, getAllFeatureFlags(getUserAttributes(context, optimizelyData))];
112
+ _h.trys.push([6, 8, , 9]);
113
+ optimizelyData = prepareOptimizelyData(userData);
114
+ return [4 /*yield*/, getAllFeatureFlags(getUserAttributes({
115
+ headers: context.req.headers,
116
+ cookies: context.req.cookies,
117
+ query: context.query,
118
+ }, optimizelyData))];
115
119
  case 7:
116
- featureFlags = (_g.sent());
120
+ featureFlags = (_h.sent());
117
121
  return [3 /*break*/, 9];
118
122
  case 8:
119
- err_2 = _g.sent();
123
+ err_2 = _h.sent();
120
124
  handleNewRelicErrorLog({
121
125
  requestName: 'getProviderPropsTimes - getAllFeatureFlags',
122
126
  reqError: err_2,
@@ -126,9 +130,9 @@ export var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a]
126
130
  handleMfaError = function (errorCode) {
127
131
  context.res.setHeader('Set-Cookie', "stepup_access_token=; path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT");
128
132
  };
129
- isStepUpMfaEnabled = enableStepUpMfa && featureFlags.enable_mfa;
133
+ isStepUpMfaEnabled = enableStepUpMfa && featureFlags.enable_mfa && ((_e = userData === null || userData === void 0 ? void 0 : userData.user) === null || _e === void 0 ? void 0 : _e.email);
130
134
  if (!isStepUpMfaEnabled) return [3 /*break*/, 14];
131
- cookie = ((_e = context.req.headers) === null || _e === void 0 ? void 0 : _e.cookie)
135
+ cookie = ((_f = context.req.headers) === null || _f === void 0 ? void 0 : _f.cookie)
132
136
  ? "".concat(context.req.headers.cookie, ";stepup_access_token=").concat(context.req.headers.stepup_access_token || '')
133
137
  : '';
134
138
  stepUpMfaToken = getStepUpMfaToken(context.req.headers);
@@ -142,21 +146,21 @@ export var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a]
142
146
  },
143
147
  }];
144
148
  }
145
- _g.label = 10;
149
+ _h.label = 10;
146
150
  case 10:
147
- _g.trys.push([10, 13, , 14]);
151
+ _h.trys.push([10, 13, , 14]);
148
152
  return [4 /*yield*/, createApolloClient(ClientTypes.main, cookie, undefined, undefined, undefined, {
149
153
  enableStepUpMfa: true,
150
154
  handleMfaError: handleMfaError,
151
155
  })];
152
156
  case 11:
153
- apolloMfaClient = _g.sent();
157
+ apolloMfaClient = _h.sent();
154
158
  return [4 /*yield*/, stepUpMfaProvider({
155
159
  apolloClient: apolloMfaClient,
156
160
  options: options,
157
161
  })];
158
162
  case 12:
159
- stepUpProvider = _g.sent();
163
+ stepUpProvider = _h.sent();
160
164
  if (stepUpProvider.data.authorizeUri.mfaUri) {
161
165
  return [2 /*return*/, {
162
166
  redirect: {
@@ -167,7 +171,7 @@ export var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a]
167
171
  }
168
172
  return [3 /*break*/, 14];
169
173
  case 13:
170
- err_3 = _g.sent();
174
+ err_3 = _h.sent();
171
175
  console.error('Error setting up stepup mfa');
172
176
  handleMfaError();
173
177
  return [2 /*return*/, {
@@ -1 +1 @@
1
- {"version":3,"file":"getProviderPropsTimes.js","sourceRoot":"","sources":["../../src/getProviderPropsTimes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGrE,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,aAAa,GAKd,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,qCAAqC,EACrC,YAAY,GACb,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,mCAAmC,EACnC,wBA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,CAAA;gBAEhB,sBAAO;wBACL,QAAQ,EAAE;4BACR,SAAS,EAAE,IAAI;4BACf,WAAW,EAAE,GAAG;yBACjB;qBACF,EAAA;qBAKP,sBAAO;oBACL,KAAK,iCACA,KAAK,GACL,QAAQ,KACX,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,EACnC,GAAG,EAAE,oBAAoB,EACzB,YAAY,cAAA,GACb;iBACF,EAAA;;;KACF,CAAA"}
1
+ {"version":3,"file":"getProviderPropsTimes.js","sourceRoot":"","sources":["../../src/getProviderPropsTimes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGrE,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAEL,aAAa,GAKd,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,qCAAqC,EACrC,YAAY,GACb,MAAM,WAAW,CAAA;AAElB,OAAO,EACL,mCAAmC,EACnC,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAgB,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAChF,OAAO,EACL,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EACL,mBAAmB,EACnB,YAAY,GACb,MAAM,mCAAmC,CAAA;AAE1C,IAAM,mBAAmB,GAAG;IAC1B,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,iBAAiB;IAC5B,oBAAoB,EAAE,4BAA4B;IAClD,OAAO,EAAE,eAAe;CACzB,CAAA;AASD,MAAM,CAAC,IAAM,qBAA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AA;;;KACF,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { DateType, ReplaceDateOptions } from './dateUtils';
2
+ export type GetSubscriptionEndMessage = (messages: {
3
+ daysRemaining: string;
4
+ monthsRemaining: string;
5
+ }, date: DateType, options?: Partial<ReplaceDateOptions>) => string;
6
+ export declare const getSubscriptionEndMessage: GetSubscriptionEndMessage;
7
+ export declare const replaceRemainingSubscriptionTime: (text: string, billCycleDate: DateType) => string;
@@ -0,0 +1,27 @@
1
+ import { replaceDate, isSameDate, differenceInDays, } from './dateUtils';
2
+ export var getSubscriptionEndMessage = function (messages, billCycleDate, options) {
3
+ if (options === void 0) { options = {}; }
4
+ var dateNow = new Date();
5
+ return isSameDate(billCycleDate, dateNow)
6
+ ? messages.monthsRemaining
7
+ : replaceDate(messages.daysRemaining, billCycleDate, options);
8
+ };
9
+ export var replaceRemainingSubscriptionTime = function (text, billCycleDate) {
10
+ var dateNow = new Date();
11
+ var remainingDays = differenceInDays(dateNow, billCycleDate);
12
+ if (remainingDays === 0) {
13
+ // if the user cancels on the billing date the subscription will be cancelled after 1 month
14
+ var timeRemaining = '1';
15
+ var timePeriod = 'month';
16
+ return text
17
+ .replace('##TIME_REMAINING##', timeRemaining)
18
+ .replace('##TIME_PERIOD##', timePeriod);
19
+ }
20
+ else {
21
+ var timePeriod = remainingDays === 1 ? 'day' : 'days';
22
+ return text
23
+ .replace('##TIME_REMAINING##', remainingDays.toString())
24
+ .replace('##TIME_PERIOD##', timePeriod);
25
+ }
26
+ };
27
+ //# sourceMappingURL=cancellationUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancellationUtils.js","sourceRoot":"","sources":["../../../src/helpers/cancellationUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,GAGjB,MAAM,aAAa,CAAA;AAWpB,MAAM,CAAC,IAAM,yBAAyB,GAA8B,UAClE,QAAQ,EACR,aAAa,EACb,OAAY;IAAZ,wBAAA,EAAA,YAAY;IAEZ,IAAM,OAAO,GAAG,IAAI,IAAI,EAAE,CAAA;IAC1B,OAAO,UAAU,CAAC,aAAa,EAAE,OAAO,CAAC;QACvC,CAAC,CAAC,QAAQ,CAAC,eAAe;QAC1B,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AACjE,CAAC,CAAA;AAED,MAAM,CAAC,IAAM,gCAAgC,GAAG,UAC9C,IAAY,EACZ,aAAuB;IAEvB,IAAM,OAAO,GAAG,IAAI,IAAI,EAAE,CAAA;IAC1B,IAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAA;IAE9D,IAAI,aAAa,KAAK,CAAC,EAAE,CAAC;QACxB,2FAA2F;QAC3F,IAAM,aAAa,GAAG,GAAG,CAAA;QACzB,IAAM,UAAU,GAAG,OAAO,CAAA;QAE1B,OAAO,IAAI;aACR,OAAO,CAAC,oBAAoB,EAAE,aAAa,CAAC;aAC5C,OAAO,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAA;IAC3C,CAAC;SAAM,CAAC;QACN,IAAM,UAAU,GAAG,aAAa,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA;QAEvD,OAAO,IAAI;aACR,OAAO,CAAC,oBAAoB,EAAE,aAAa,CAAC,QAAQ,EAAE,CAAC;aACvD,OAAO,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAA;IAC3C,CAAC;AACH,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ export type DateType = string | number | Date;
2
+ export interface ReplaceDateOptions {
3
+ dateFormat: string;
4
+ placeholder: string;
5
+ }
6
+ export declare const isSameDate: (dateA: DateType, dateB: DateType) => boolean;
7
+ export declare const differenceInDays: (dateA: DateType, dateB: DateType) => number;
8
+ export declare const replaceDate: (text: string, date: DateType, replaceOptions?: Partial<ReplaceDateOptions>) => string;
@@ -0,0 +1,37 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { isSameDay } from 'date-fns/isSameDay';
13
+ import { differenceInCalendarDays } from 'date-fns/differenceInCalendarDays';
14
+ import { format } from 'date-fns/format';
15
+ import { utc, UTCDate } from '@date-fns/utc';
16
+ export var isSameDate = function (dateA, dateB) {
17
+ return isSameDay(dateA, dateB, {
18
+ in: utc,
19
+ });
20
+ };
21
+ export var differenceInDays = function (dateA, dateB) {
22
+ return Math.abs(differenceInCalendarDays(dateA, dateB, {
23
+ in: utc,
24
+ }));
25
+ };
26
+ export var replaceDate = function (text, date, replaceOptions) {
27
+ if (replaceOptions === void 0) { replaceOptions = {}; }
28
+ var defaultOptions = {
29
+ dateFormat: 'dd MMMM yyyy',
30
+ placeholder: '##DATE##',
31
+ };
32
+ var options = __assign(__assign({}, defaultOptions), replaceOptions);
33
+ var parsedDate = new UTCDate(date);
34
+ var formattedDate = format(parsedDate, options.dateFormat);
35
+ return text.replace(options.placeholder, formattedDate);
36
+ };
37
+ //# sourceMappingURL=dateUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateUtils.js","sourceRoot":"","sources":["../../../src/helpers/dateUtils.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAA;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAS5C,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,KAAe,EAAE,KAAe;IACzD,OAAA,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE;QACtB,EAAE,EAAE,GAAG;KACR,CAAC;AAFF,CAEE,CAAA;AAEJ,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAC,KAAe,EAAE,KAAe;IAC/D,OAAA,IAAI,CAAC,GAAG,CACN,wBAAwB,CAAC,KAAK,EAAE,KAAK,EAAE;QACrC,EAAE,EAAE,GAAG;KACR,CAAC,CACH;AAJD,CAIC,CAAA;AAEH,MAAM,CAAC,IAAM,WAAW,GAAG,UACzB,IAAY,EACZ,IAAc,EACd,cAAgD;IAAhD,+BAAA,EAAA,mBAAgD;IAEhD,IAAM,cAAc,GAAG;QACrB,UAAU,EAAE,cAAc;QAC1B,WAAW,EAAE,UAAU;KACxB,CAAA;IACD,IAAM,OAAO,yBAAQ,cAAc,GAAK,cAAc,CAAE,CAAA;IAExD,IAAM,UAAU,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACpC,IAAM,aAAa,GAAG,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;IAE5D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,aAAa,CAAC,CAAA;AACzD,CAAC,CAAA"}
@@ -1,12 +1,24 @@
1
- import { ServerSidePropsContext, BaseContext } from '../providersTimes/types';
2
1
  import { Subscriptions } from '../pages/types';
3
- export declare const getUserAttributes: (context: ServerSidePropsContext | BaseContext, attributes?: {
2
+ interface AttributesContext {
3
+ headers?: {
4
+ [x: string]: string | string[] | undefined;
5
+ };
6
+ cookies?: Partial<{
7
+ [key: string]: string;
8
+ }>;
9
+ query?: {
10
+ [x: string]: string | string[] | undefined;
11
+ };
12
+ }
13
+ export declare const getUserAttributes: (context: AttributesContext, attributes?: {
4
14
  [x: string]: string | boolean;
5
15
  }) => {
6
16
  userData: {
7
17
  attributes: {
8
18
  is_voucher?: string | true | undefined;
9
19
  mp_code?: string | true | undefined;
20
+ is_qa_test: boolean;
21
+ is_automation_test: boolean;
10
22
  in_embedded_mode: boolean;
11
23
  in_cypress: boolean;
12
24
  };
@@ -19,3 +31,4 @@ export declare const prepareOptimizelyData: (userData?: {
19
31
  }) => {
20
32
  [x: string]: string | boolean;
21
33
  };
34
+ export {};
@@ -11,11 +11,12 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { RequestHeadersKeys } from '@newskit-render/shared-components';
13
13
  export var getUserAttributes = function (context, attributes) {
14
- var _a, _b;
15
- var headers = (_a = context === null || context === void 0 ? void 0 : context.req) === null || _a === void 0 ? void 0 : _a.headers;
14
+ var _a;
15
+ var headers = context === null || context === void 0 ? void 0 : context.headers;
16
+ var cookies = context === null || context === void 0 ? void 0 : context.cookies;
16
17
  return {
17
18
  userData: {
18
- attributes: __assign(__assign({ in_embedded_mode: (headers === null || headers === void 0 ? void 0 : headers[RequestHeadersKeys.userPlatform]) !== undefined, in_cypress: ((_b = context === null || context === void 0 ? void 0 : context.query) === null || _b === void 0 ? void 0 : _b.fromCypress) === 'true' }, ((attributes === null || attributes === void 0 ? void 0 : attributes.mp_code) ? { mp_code: attributes === null || attributes === void 0 ? void 0 : attributes.mp_code } : {})), ((attributes === null || attributes === void 0 ? void 0 : attributes.is_voucher)
19
+ attributes: __assign(__assign({ is_qa_test: (cookies === null || cookies === void 0 ? void 0 : cookies.is_qa_test) === 'true' || false, is_automation_test: (cookies === null || cookies === void 0 ? void 0 : cookies.is_automation_test) === 'true' || false, in_embedded_mode: (headers === null || headers === void 0 ? void 0 : headers[RequestHeadersKeys.userPlatform]) !== undefined, in_cypress: ((_a = context === null || context === void 0 ? void 0 : context.query) === null || _a === void 0 ? void 0 : _a.fromCypress) === 'true' }, ((attributes === null || attributes === void 0 ? void 0 : attributes.mp_code) ? { mp_code: attributes === null || attributes === void 0 ? void 0 : attributes.mp_code } : {})), ((attributes === null || attributes === void 0 ? void 0 : attributes.is_voucher)
19
20
  ? { is_voucher: attributes === null || attributes === void 0 ? void 0 : attributes.is_vouc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