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

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 (435) hide show
  1. package/dist/cjs/Components/Elements/ForwardButton/ForwardButton.d.ts +21 -0
  2. package/dist/cjs/Components/Elements/ForwardButton/ForwardButton.js +54 -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/NewsletterCard/NewsletterCard.js +6 -5
  19. package/dist/cjs/Components/Elements/NewsletterCard/NewsletterCard.js.map +1 -1
  20. package/dist/cjs/Components/Elements/OfferCard/OfferCard.d.ts +3 -0
  21. package/dist/cjs/Components/Elements/OfferCard/OfferCard.js +73 -0
  22. package/dist/cjs/Components/Elements/OfferCard/OfferCard.js.map +1 -0
  23. package/dist/cjs/Components/Elements/OfferCard/index.d.ts +2 -0
  24. package/dist/cjs/Components/Elements/OfferCard/index.js +5 -0
  25. package/dist/cjs/Components/Elements/OfferCard/index.js.map +1 -0
  26. package/dist/cjs/Components/Elements/OfferCard/styled.d.ts +35 -0
  27. package/dist/cjs/Components/Elements/OfferCard/styled.js +12 -0
  28. package/dist/cjs/Components/Elements/OfferCard/styled.js.map +1 -0
  29. package/dist/cjs/Components/Elements/OfferCard/types.d.ts +21 -0
  30. package/dist/cjs/Components/Elements/OfferCard/types.js +3 -0
  31. package/dist/cjs/Components/Elements/OfferCard/types.js.map +1 -0
  32. package/dist/cjs/Components/Elements/SectionListItem/GridListItem.d.ts +3 -0
  33. package/dist/cjs/Components/Elements/SectionListItem/GridListItem.js +77 -0
  34. package/dist/cjs/Components/Elements/SectionListItem/GridListItem.js.map +1 -0
  35. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.d.ts +3 -0
  36. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.js +76 -0
  37. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.js.map +1 -0
  38. package/dist/cjs/Components/Elements/SectionListItem/index.d.ts +3 -0
  39. package/dist/cjs/Components/Elements/SectionListItem/index.js +20 -0
  40. package/dist/cjs/Components/Elements/SectionListItem/index.js.map +1 -0
  41. package/dist/cjs/Components/Elements/SectionListItem/types.d.ts +37 -0
  42. package/dist/cjs/Components/Elements/SectionListItem/types.js +3 -0
  43. package/dist/cjs/Components/Elements/SectionListItem/types.js.map +1 -0
  44. package/dist/cjs/Components/Elements/StandaloneLinkComponent/StandaloneLinkComponent.js +4 -15
  45. package/dist/cjs/Components/Elements/StandaloneLinkComponent/StandaloneLinkComponent.js.map +1 -1
  46. package/dist/cjs/Components/Elements/UserHubListItem/UserHubListItem.js +3 -4
  47. package/dist/cjs/Components/Elements/UserHubListItem/UserHubListItem.js.map +1 -1
  48. package/dist/cjs/Components/Elements/UserHubListItem/types.d.ts +5 -2
  49. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.d.ts +1 -1
  50. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.js +42 -12
  51. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.js.map +1 -1
  52. package/dist/cjs/Components/Sections/CancelSubscription/types.d.ts +20 -7
  53. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.d.ts +19 -0
  54. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.js +43 -0
  55. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.js.map +1 -0
  56. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/index.d.ts +1 -0
  57. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/index.js +6 -0
  58. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/index.js.map +1 -0
  59. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/type.d.ts +0 -0
  60. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/type.js +2 -0
  61. package/dist/cjs/Components/Sections/CancelSubscriptionDowngrade/type.js.map +1 -0
  62. package/dist/cjs/Components/Sections/CancellationDetails/CancellationDetails.d.ts +2 -0
  63. package/dist/cjs/Components/Sections/CancellationDetails/CancellationDetails.js +172 -0
  64. package/dist/cjs/Components/Sections/CancellationDetails/CancellationDetails.js.map +1 -0
  65. package/dist/cjs/Components/Sections/CancellationDetails/index.d.ts +2 -0
  66. package/dist/cjs/Components/Sections/CancellationDetails/index.js +19 -0
  67. package/dist/cjs/Components/Sections/CancellationDetails/index.js.map +1 -0
  68. package/dist/cjs/Components/Sections/CancellationDetails/types.d.ts +37 -0
  69. package/dist/cjs/Components/Sections/CancellationDetails/types.js +3 -0
  70. package/dist/cjs/Components/Sections/CancellationDetails/types.js.map +1 -0
  71. package/dist/cjs/Components/Sections/CancellationReasons/CancellationReasons.d.ts +2 -0
  72. package/dist/cjs/Components/Sections/CancellationReasons/CancellationReasons.js +44 -0
  73. package/dist/cjs/Components/Sections/CancellationReasons/CancellationReasons.js.map +1 -0
  74. package/dist/cjs/Components/Sections/CancellationReasons/index.d.ts +1 -0
  75. package/dist/cjs/Components/Sections/CancellationReasons/index.js +18 -0
  76. package/dist/cjs/Components/Sections/CancellationReasons/index.js.map +1 -0
  77. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js +2 -0
  78. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  79. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellation.d.ts +19 -0
  80. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellation.js +43 -0
  81. package/dist/cjs/Components/Sections/ConfirmCancellation/ConfirmCancellation.js.map +1 -0
  82. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js +3 -2
  83. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  84. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.js +11 -7
  85. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +1 -1
  86. package/dist/cjs/Components/Sections/Form/InviteFamilyMember/InviteFamilyMember.js +2 -0
  87. package/dist/cjs/Components/Sections/Form/InviteFamilyMember/InviteFamilyMember.js.map +1 -1
  88. package/dist/cjs/Components/Sections/LayoutContentContainer/LayoutContentContainer.js +3 -3
  89. package/dist/cjs/Components/Sections/LayoutContentContainer/LayoutContentContainer.js.map +1 -1
  90. package/dist/cjs/Components/Sections/NewslettersList/NewslettersList.js +55 -5
  91. package/dist/cjs/Components/Sections/NewslettersList/NewslettersList.js.map +1 -1
  92. package/dist/cjs/Components/Sections/SectionContainer/GridSection.d.ts +3 -0
  93. package/dist/cjs/Components/Sections/SectionContainer/GridSection.js +46 -0
  94. package/dist/cjs/Components/Sections/SectionContainer/GridSection.js.map +1 -0
  95. package/dist/cjs/Components/Sections/SectionContainer/ListSection.d.ts +2 -0
  96. package/dist/cjs/Components/Sections/SectionContainer/ListSection.js +61 -0
  97. package/dist/cjs/Components/Sections/SectionContainer/ListSection.js.map +1 -0
  98. package/dist/cjs/Components/Sections/SectionContainer/SectionContainer.d.ts +11 -0
  99. package/dist/cjs/Components/Sections/SectionContainer/SectionContainer.js +49 -0
  100. package/dist/cjs/Components/Sections/SectionContainer/SectionContainer.js.map +1 -0
  101. package/dist/cjs/Components/Sections/SectionContainer/index.d.ts +4 -0
  102. package/dist/cjs/Components/Sections/SectionContainer/index.js +20 -0
  103. package/dist/cjs/Components/Sections/SectionContainer/index.js.map +1 -0
  104. package/dist/cjs/Components/Sections/SectionContainer/types.d.ts +39 -0
  105. package/dist/cjs/Components/Sections/SectionContainer/types.js +3 -0
  106. package/dist/cjs/Components/Sections/SectionContainer/types.js.map +1 -0
  107. package/dist/cjs/Components/Sections/SectionContainer/utils.d.ts +8 -0
  108. package/dist/cjs/Components/Sections/SectionContainer/utils.js +29 -0
  109. package/dist/cjs/Components/Sections/SectionContainer/utils.js.map +1 -0
  110. package/dist/cjs/Components/Sections/UserHub/BaseSection.js +5 -7
  111. package/dist/cjs/Components/Sections/UserHub/BaseSection.js.map +1 -1
  112. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js +1 -3
  113. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  114. package/dist/cjs/Components/SharedTypes/GridLayoutProps.d.ts +37 -0
  115. package/dist/cjs/Components/SharedTypes/GridLayoutProps.js +3 -0
  116. package/dist/cjs/Components/SharedTypes/GridLayoutProps.js.map +1 -0
  117. package/dist/cjs/Components/Templates/CancellationStepperRender.d.ts +17 -0
  118. package/dist/cjs/Components/Templates/CancellationStepperRender.js +164 -0
  119. package/dist/cjs/Components/Templates/CancellationStepperRender.js.map +1 -0
  120. package/dist/cjs/Components/Templates/DisplayRenderer.js +9 -5
  121. package/dist/cjs/Components/Templates/DisplayRenderer.js.map +1 -1
  122. package/dist/cjs/Components/Templates/SectionRender.d.ts +7 -0
  123. package/dist/cjs/Components/Templates/SectionRender.js +50 -0
  124. package/dist/cjs/Components/Templates/SectionRender.js.map +1 -0
  125. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js +12 -1
  126. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  127. package/dist/cjs/Components/Templates/index.d.ts +2 -1
  128. package/dist/cjs/Components/Templates/index.js +3 -1
  129. package/dist/cjs/Components/Templates/index.js.map +1 -1
  130. package/dist/cjs/api/authorization.d.ts +2 -1
  131. package/dist/cjs/api/authorization.js +9 -14
  132. package/dist/cjs/api/authorization.js.map +1 -1
  133. package/dist/cjs/api/index.d.ts +1 -0
  134. package/dist/cjs/api/index.js +1 -0
  135. package/dist/cjs/api/index.js.map +1 -1
  136. package/dist/cjs/api/mutateHandler.js +11 -3
  137. package/dist/cjs/api/mutateHandler.js.map +1 -1
  138. package/dist/cjs/api/mutateHandlerHelpers.js +5 -0
  139. package/dist/cjs/api/mutateHandlerHelpers.js.map +1 -1
  140. package/dist/cjs/api/trackEvent.d.ts +2 -0
  141. package/dist/cjs/api/trackEvent.js +83 -0
  142. package/dist/cjs/api/trackEvent.js.map +1 -0
  143. package/dist/cjs/constants/index.d.ts +1 -0
  144. package/dist/cjs/constants/index.js +2 -1
  145. package/dist/cjs/constants/index.js.map +1 -1
  146. package/dist/cjs/context/index.d.ts +24 -2
  147. package/dist/cjs/context/index.js +1 -0
  148. package/dist/cjs/context/index.js.map +1 -1
  149. package/dist/cjs/context/types.d.ts +100 -21
  150. package/dist/cjs/context/types.js +1 -1
  151. package/dist/cjs/context/types.js.map +1 -1
  152. package/dist/cjs/getProviderPropsTimes.js +28 -22
  153. package/dist/cjs/getProviderPropsTimes.js.map +1 -1
  154. package/dist/cjs/helpers/apiHandlerUtils.js +1 -0
  155. package/dist/cjs/helpers/apiHandlerUtils.js.map +1 -1
  156. package/dist/cjs/helpers/cancellationUtils.d.ts +9 -0
  157. package/dist/cjs/helpers/cancellationUtils.js +96 -0
  158. package/dist/cjs/helpers/cancellationUtils.js.map +1 -0
  159. package/dist/cjs/helpers/dateUtils.d.ts +8 -0
  160. package/dist/cjs/helpers/dateUtils.js +43 -0
  161. package/dist/cjs/helpers/dateUtils.js.map +1 -0
  162. package/dist/cjs/helpers/featureFlagUtils.d.ts +27 -3
  163. package/dist/cjs/helpers/featureFlagUtils.js +98 -8
  164. package/dist/cjs/helpers/featureFlagUtils.js.map +1 -1
  165. package/dist/cjs/helpers/index.d.ts +3 -0
  166. package/dist/cjs/helpers/index.js +3 -0
  167. package/dist/cjs/helpers/index.js.map +1 -1
  168. package/dist/cjs/helpers/layoutReflowUtils.d.ts +1 -0
  169. package/dist/cjs/helpers/layoutReflowUtils.js +13 -0
  170. package/dist/cjs/helpers/layoutReflowUtils.js.map +1 -0
  171. package/dist/cjs/helpers/providerUtilsTimes.js +1 -0
  172. package/dist/cjs/helpers/providerUtilsTimes.js.map +1 -1
  173. package/dist/cjs/helpers/subscriptionsUtils.d.ts +3 -0
  174. package/dist/cjs/helpers/subscriptionsUtils.js +32 -1
  175. package/dist/cjs/helpers/subscriptionsUtils.js.map +1 -1
  176. package/dist/cjs/index.d.ts +2 -1
  177. package/dist/cjs/index.js +1 -0
  178. package/dist/cjs/index.js.map +1 -1
  179. package/dist/cjs/pages/CancellationStepper/CancellationStepper.d.ts +3 -0
  180. package/dist/cjs/pages/CancellationStepper/CancellationStepper.js +55 -0
  181. package/dist/cjs/pages/CancellationStepper/CancellationStepper.js.map +1 -0
  182. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.d.ts +2 -0
  183. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js +512 -0
  184. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js.map +1 -0
  185. package/dist/cjs/pages/CancellationStepper/index.d.ts +2 -0
  186. package/dist/cjs/pages/CancellationStepper/index.js +19 -0
  187. package/dist/cjs/pages/CancellationStepper/index.js.map +1 -0
  188. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.d.ts +2 -0
  189. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +158 -0
  190. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -0
  191. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +0 -87
  192. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  193. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingSunContext.js +1 -0
  194. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingSunContext.js.map +1 -1
  195. package/dist/cjs/pages/UserHub/UserHubContext.js +10 -4
  196. package/dist/cjs/pages/UserHub/UserHubContext.js.map +1 -1
  197. package/dist/cjs/pages/types.d.ts +18 -0
  198. package/dist/cjs/providers/types.d.ts +4 -2
  199. package/dist/cjs/providersTimes/types.d.ts +0 -8
  200. package/dist/cjs/providersTimes/types.js.map +1 -1
  201. package/dist/cjs/queries/getAuthorizeUriInput.js +1 -1
  202. package/dist/cjs/queries/getAuthorizeUriInput.js.map +1 -1
  203. package/dist/cjs/queries/getPaymentInfoAndAccountType.js +1 -1
  204. package/dist/cjs/queries/getPaymentInfoAndAccountType.js.map +1 -1
  205. package/dist/cjs/queries/getUserEntitlements.js +1 -1
  206. package/dist/cjs/queries/getUserEntitlements.js.map +1 -1
  207. package/dist/cjs/queries/getUserIncentives.d.ts +1 -0
  208. package/dist/cjs/queries/getUserIncentives.js +11 -0
  209. package/dist/cjs/queries/getUserIncentives.js.map +1 -0
  210. package/dist/cjs/queries/getUserNewsletters.js +1 -1
  211. package/dist/cjs/queries/getUserNewsletters.js.map +1 -1
  212. package/dist/cjs/queries/getUserSubscription.js +2 -1
  213. package/dist/cjs/queries/getUserSubscription.js.map +1 -1
  214. package/dist/cjs/queries/mutateCancellation.js +1 -1
  215. package/dist/cjs/queries/mutateCancellation.js.map +1 -1
  216. package/dist/cjs/queries/mutateSendFamilyMemberInvite.js +1 -0
  217. package/dist/cjs/queries/mutateSendFamilyMemberInvite.js.map +1 -1
  218. package/dist/esm/Components/Elements/ForwardButton/ForwardButton.d.ts +21 -0
  219. package/dist/esm/Components/Elements/ForwardButton/ForwardButton.js +47 -0
  220. package/dist/esm/Components/Elements/ForwardButton/ForwardButton.js.map +1 -0
  221. package/dist/esm/Components/Elements/Head/Head.js +1 -1
  222. package/dist/esm/Components/Elements/Head/Head.js.map +1 -1
  223. package/dist/esm/Components/Elements/ListItemComponents/ItemFooter.d.ts +15 -0
  224. package/dist/esm/Components/Elements/ListItemComponents/ItemFooter.js +20 -0
  225. package/dist/esm/Components/Elements/ListItemComponents/ItemFooter.js.map +1 -0
  226. package/dist/esm/Components/Elements/ListItemComponents/ItemIconLabel.d.ts +5 -0
  227. package/dist/esm/Components/Elements/ListItemComponents/ItemIconLabel.js +9 -0
  228. package/dist/esm/Components/Elements/ListItemComponents/ItemIconLabel.js.map +1 -0
  229. package/dist/esm/Components/Elements/ListItemComponents/ItemSubtitle.d.ts +7 -0
  230. package/dist/esm/Components/Elements/ListItemComponents/ItemSubtitle.js +24 -0
  231. package/dist/esm/Components/Elements/ListItemComponents/ItemSubtitle.js.map +1 -0
  232. package/dist/esm/Components/Elements/ListItemComponents/index.d.ts +3 -0
  233. package/dist/esm/Components/Elements/ListItemComponents/index.js +4 -0
  234. package/dist/esm/Components/Elements/ListItemComponents/index.js.map +1 -0
  235. package/dist/esm/Components/Elements/NewsletterCard/NewsletterCard.js +6 -5
  236. package/dist/esm/Components/Elements/NewsletterCard/NewsletterCard.js.map +1 -1
  237. package/dist/esm/Components/Elements/OfferCard/OfferCard.d.ts +3 -0
  238. package/dist/esm/Components/Elements/OfferCard/OfferCard.js +66 -0
  239. package/dist/esm/Components/Elements/OfferCard/OfferCard.js.map +1 -0
  240. package/dist/esm/Components/Elements/OfferCard/index.d.ts +2 -0
  241. package/dist/esm/Components/Elements/OfferCard/index.js +3 -0
  242. package/dist/esm/Components/Elements/OfferCard/index.js.map +1 -0
  243. package/dist/esm/Components/Elements/OfferCard/styled.d.ts +35 -0
  244. package/dist/esm/Components/Elements/OfferCard/styled.js +9 -0
  245. package/dist/esm/Components/Elements/OfferCard/styled.js.map +1 -0
  246. package/dist/esm/Components/Elements/OfferCard/types.d.ts +21 -0
  247. package/dist/esm/Components/Elements/OfferCard/types.js +2 -0
  248. package/dist/esm/Components/Elements/OfferCard/types.js.map +1 -0
  249. package/dist/esm/Components/Elements/SectionListItem/GridListItem.d.ts +3 -0
  250. package/dist/esm/Components/Elements/SectionListItem/GridListItem.js +70 -0
  251. package/dist/esm/Components/Elements/SectionListItem/GridListItem.js.map +1 -0
  252. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.d.ts +3 -0
  253. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js +69 -0
  254. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js.map +1 -0
  255. package/dist/esm/Components/Elements/SectionListItem/index.d.ts +3 -0
  256. package/dist/esm/Components/Elements/SectionListItem/index.js +4 -0
  257. package/dist/esm/Components/Elements/SectionListItem/index.js.map +1 -0
  258. package/dist/esm/Components/Elements/SectionListItem/types.d.ts +37 -0
  259. package/dist/esm/Components/Elements/SectionListItem/types.js +2 -0
  260. package/dist/esm/Components/Elements/SectionListItem/types.js.map +1 -0
  261. package/dist/esm/Components/Elements/StandaloneLinkComponent/StandaloneLinkComponent.js +4 -15
  262. package/dist/esm/Components/Elements/StandaloneLinkComponent/StandaloneLinkComponent.js.map +1 -1
  263. package/dist/esm/Components/Elements/UserHubListItem/UserHubListItem.js +3 -4
  264. package/dist/esm/Components/Elements/UserHubListItem/UserHubListItem.js.map +1 -1
  265. package/dist/esm/Components/Elements/UserHubListItem/types.d.ts +5 -2
  266. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.d.ts +1 -1
  267. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js +44 -14
  268. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js.map +1 -1
  269. package/dist/esm/Components/Sections/CancelSubscription/types.d.ts +20 -7
  270. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.d.ts +19 -0
  271. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.js +36 -0
  272. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade.js.map +1 -0
  273. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/index.d.ts +1 -0
  274. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/index.js +2 -0
  275. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/index.js.map +1 -0
  276. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/type.d.ts +0 -0
  277. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/type.js +2 -0
  278. package/dist/esm/Components/Sections/CancelSubscriptionDowngrade/type.js.map +1 -0
  279. package/dist/esm/Components/Sections/CancellationDetails/CancellationDetails.d.ts +2 -0
  280. package/dist/esm/Components/Sections/CancellationDetails/CancellationDetails.js +145 -0
  281. package/dist/esm/Components/Sections/CancellationDetails/CancellationDetails.js.map +1 -0
  282. package/dist/esm/Components/Sections/CancellationDetails/index.d.ts +2 -0
  283. package/dist/esm/Components/Sections/CancellationDetails/index.js +3 -0
  284. package/dist/esm/Components/Sections/CancellationDetails/index.js.map +1 -0
  285. package/dist/esm/Components/Sections/CancellationDetails/types.d.ts +37 -0
  286. package/dist/esm/Components/Sections/CancellationDetails/types.js +2 -0
  287. package/dist/esm/Components/Sections/CancellationDetails/types.js.map +1 -0
  288. package/dist/esm/Components/Sections/CancellationReasons/CancellationReasons.d.ts +2 -0
  289. package/dist/esm/Components/Sections/CancellationReasons/CancellationReasons.js +37 -0
  290. package/dist/esm/Components/Sections/CancellationReasons/CancellationReasons.js.map +1 -0
  291. package/dist/esm/Components/Sections/CancellationReasons/index.d.ts +1 -0
  292. package/dist/esm/Components/Sections/CancellationReasons/index.js +2 -0
  293. package/dist/esm/Components/Sections/CancellationReasons/index.js.map +1 -0
  294. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js +2 -0
  295. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  296. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellation.d.ts +19 -0
  297. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellation.js +36 -0
  298. package/dist/esm/Components/Sections/ConfirmCancellation/ConfirmCancellation.js.map +1 -0
  299. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js +3 -2
  300. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  301. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js +11 -7
  302. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +1 -1
  303. package/dist/esm/Components/Sections/Form/InviteFamilyMember/InviteFamilyMember.js +2 -0
  304. package/dist/esm/Components/Sections/Form/InviteFamilyMember/InviteFamilyMember.js.map +1 -1
  305. package/dist/esm/Components/Sections/LayoutContentContainer/LayoutContentContainer.js +3 -3
  306. package/dist/esm/Components/Sections/LayoutContentContainer/LayoutContentContainer.js.map +1 -1
  307. package/dist/esm/Components/Sections/NewslettersList/NewslettersList.js +32 -2
  308. package/dist/esm/Components/Sections/NewslettersList/NewslettersList.js.map +1 -1
  309. package/dist/esm/Components/Sections/SectionContainer/GridSection.d.ts +3 -0
  310. package/dist/esm/Components/Sections/SectionContainer/GridSection.js +39 -0
  311. package/dist/esm/Components/Sections/SectionContainer/GridSection.js.map +1 -0
  312. package/dist/esm/Components/Sections/SectionContainer/ListSection.d.ts +2 -0
  313. package/dist/esm/Components/Sections/SectionContainer/ListSection.js +54 -0
  314. package/dist/esm/Components/Sections/SectionContainer/ListSection.js.map +1 -0
  315. package/dist/esm/Components/Sections/SectionContainer/SectionContainer.d.ts +11 -0
  316. package/dist/esm/Components/Sections/SectionContainer/SectionContainer.js +41 -0
  317. package/dist/esm/Components/Sections/SectionContainer/SectionContainer.js.map +1 -0
  318. package/dist/esm/Components/Sections/SectionContainer/index.d.ts +4 -0
  319. package/dist/esm/Components/Sections/SectionContainer/index.js +4 -0
  320. package/dist/esm/Components/Sections/SectionContainer/index.js.map +1 -0
  321. package/dist/esm/Components/Sections/SectionContainer/types.d.ts +39 -0
  322. package/dist/esm/Components/Sections/SectionContainer/types.js +2 -0
  323. package/dist/esm/Components/Sections/SectionContainer/types.js.map +1 -0
  324. package/dist/esm/Components/Sections/SectionContainer/utils.d.ts +8 -0
  325. package/dist/esm/Components/Sections/SectionContainer/utils.js +24 -0
  326. package/dist/esm/Components/Sections/SectionContainer/utils.js.map +1 -0
  327. package/dist/esm/Components/Sections/UserHub/BaseSection.js +5 -7
  328. package/dist/esm/Components/Sections/UserHub/BaseSection.js.map +1 -1
  329. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js +1 -3
  330. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  331. package/dist/esm/Components/SharedTypes/GridLayoutProps.d.ts +37 -0
  332. package/dist/esm/Components/SharedTypes/GridLayoutProps.js +2 -0
  333. package/dist/esm/Components/SharedTypes/GridLayoutProps.js.map +1 -0
  334. package/dist/esm/Components/Templates/CancellationStepperRender.d.ts +17 -0
  335. package/dist/esm/Components/Templates/CancellationStepperRender.js +138 -0
  336. package/dist/esm/Components/Templates/CancellationStepperRender.js.map +1 -0
  337. package/dist/esm/Components/Templates/DisplayRenderer.js +9 -5
  338. package/dist/esm/Components/Templates/DisplayRenderer.js.map +1 -1
  339. package/dist/esm/Components/Templates/SectionRender.d.ts +7 -0
  340. package/dist/esm/Components/Templates/SectionRender.js +45 -0
  341. package/dist/esm/Components/Templates/SectionRender.js.map +1 -0
  342. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js +14 -3
  343. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  344. package/dist/esm/Components/Templates/index.d.ts +2 -1
  345. package/dist/esm/Components/Templates/index.js +2 -1
  346. package/dist/esm/Components/Templates/index.js.map +1 -1
  347. package/dist/esm/api/authorization.d.ts +2 -1
  348. package/dist/esm/api/authorization.js +7 -12
  349. package/dist/esm/api/authorization.js.map +1 -1
  350. package/dist/esm/api/index.d.ts +1 -0
  351. package/dist/esm/api/index.js +1 -0
  352. package/dist/esm/api/index.js.map +1 -1
  353. package/dist/esm/api/mutateHandler.js +12 -4
  354. package/dist/esm/api/mutateHandler.js.map +1 -1
  355. package/dist/esm/api/mutateHandlerHelpers.js +5 -0
  356. package/dist/esm/api/mutateHandlerHelpers.js.map +1 -1
  357. package/dist/esm/api/trackEvent.d.ts +2 -0
  358. package/dist/esm/api/trackEvent.js +79 -0
  359. package/dist/esm/api/trackEvent.js.map +1 -0
  360. package/dist/esm/constants/index.d.ts +1 -0
  361. package/dist/esm/constants/index.js +1 -0
  362. package/dist/esm/constants/index.js.map +1 -1
  363. package/dist/esm/context/index.d.ts +24 -2
  364. package/dist/esm/context/index.js +1 -0
  365. package/dist/esm/context/index.js.map +1 -1
  366. package/dist/esm/context/types.d.ts +100 -21
  367. package/dist/esm/context/types.js +1 -1
  368. package/dist/esm/context/types.js.map +1 -1
  369. package/dist/esm/getProviderPropsTimes.js +28 -22
  370. package/dist/esm/getProviderPropsTimes.js.map +1 -1
  371. package/dist/esm/helpers/apiHandlerUtils.js +1 -0
  372. package/dist/esm/helpers/apiHandlerUtils.js.map +1 -1
  373. package/dist/esm/helpers/cancellationUtils.d.ts +9 -0
  374. package/dist/esm/helpers/cancellationUtils.js +86 -0
  375. package/dist/esm/helpers/cancellationUtils.js.map +1 -0
  376. package/dist/esm/helpers/dateUtils.d.ts +8 -0
  377. package/dist/esm/helpers/dateUtils.js +37 -0
  378. package/dist/esm/helpers/dateUtils.js.map +1 -0
  379. package/dist/esm/helpers/featureFlagUtils.d.ts +27 -3
  380. package/dist/esm/helpers/featureFlagUtils.js +96 -7
  381. package/dist/esm/helpers/featureFlagUtils.js.map +1 -1
  382. package/dist/esm/helpers/index.d.ts +3 -0
  383. package/dist/esm/helpers/index.js +3 -0
  384. package/dist/esm/helpers/index.js.map +1 -1
  385. package/dist/esm/helpers/layoutReflowUtils.d.ts +1 -0
  386. package/dist/esm/helpers/layoutReflowUtils.js +10 -0
  387. package/dist/esm/helpers/layoutReflowUtils.js.map +1 -0
  388. package/dist/esm/helpers/providerUtilsTimes.js +1 -0
  389. package/dist/esm/helpers/providerUtilsTimes.js.map +1 -1
  390. package/dist/esm/helpers/subscriptionsUtils.d.ts +3 -0
  391. package/dist/esm/helpers/subscriptionsUtils.js +29 -0
  392. package/dist/esm/helpers/subscriptionsUtils.js.map +1 -1
  393. package/dist/esm/index.d.ts +2 -1
  394. package/dist/esm/index.js +1 -0
  395. package/dist/esm/index.js.map +1 -1
  396. package/dist/esm/pages/CancellationStepper/CancellationStepper.d.ts +3 -0
  397. package/dist/esm/pages/CancellationStepper/CancellationStepper.js +25 -0
  398. package/dist/esm/pages/CancellationStepper/CancellationStepper.js.map +1 -0
  399. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.d.ts +2 -0
  400. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js +506 -0
  401. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js.map +1 -0
  402. package/dist/esm/pages/CancellationStepper/index.d.ts +2 -0
  403. package/dist/esm/pages/CancellationStepper/index.js +3 -0
  404. package/dist/esm/pages/CancellationStepper/index.js.map +1 -0
  405. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.d.ts +2 -0
  406. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +151 -0
  407. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -0
  408. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +2 -92
  409. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  410. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingSunContext.js +1 -0
  411. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingSunContext.js.map +1 -1
  412. package/dist/esm/pages/UserHub/UserHubContext.js +10 -4
  413. package/dist/esm/pages/UserHub/UserHubContext.js.map +1 -1
  414. package/dist/esm/pages/types.d.ts +18 -0
  415. package/dist/esm/providers/types.d.ts +4 -2
  416. package/dist/esm/providersTimes/types.d.ts +0 -8
  417. package/dist/esm/providersTimes/types.js.map +1 -1
  418. package/dist/esm/queries/getAuthorizeUriInput.js +1 -1
  419. package/dist/esm/queries/getAuthorizeUriInput.js.map +1 -1
  420. package/dist/esm/queries/getPaymentInfoAndAccountType.js +1 -1
  421. package/dist/esm/queries/getPaymentInfoAndAccountType.js.map +1 -1
  422. package/dist/esm/queries/getUserEntitlements.js +1 -1
  423. package/dist/esm/queries/getUserEntitlements.js.map +1 -1
  424. package/dist/esm/queries/getUserIncentives.d.ts +1 -0
  425. package/dist/esm/queries/getUserIncentives.js +8 -0
  426. package/dist/esm/queries/getUserIncentives.js.map +1 -0
  427. package/dist/esm/queries/getUserNewsletters.js +1 -1
  428. package/dist/esm/queries/getUserNewsletters.js.map +1 -1
  429. package/dist/esm/queries/getUserSubscription.js +2 -1
  430. package/dist/esm/queries/getUserSubscription.js.map +1 -1
  431. package/dist/esm/queries/mutateCancellation.js +1 -1
  432. package/dist/esm/queries/mutateCancellation.js.map +1 -1
  433. package/dist/esm/queries/mutateSendFamilyMemberInvite.js +1 -0
  434. package/dist/esm/queries/mutateSendFamilyMemberInvite.js.map +1 -1
  435. package/package.json +7 -5
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.trackEvent = void 0;
40
+ var feature_flags_1 = require("@newskit-render/feature-flags");
41
+ var helpers_1 = require("../helpers");
42
+ var trackEvent = function (req) { return __awaiter(void 0, void 0, void 0, function () {
43
+ var headers, cookies, query, _a, eventName, tags, cpn, mpcode, userData, optimizelyData, e_1;
44
+ return __generator(this, function (_b) {
45
+ switch (_b.label) {
46
+ case 0:
47
+ _b.trys.push([0, 2, , 3]);
48
+ headers = req.headers, cookies = req.cookies, query = req.query;
49
+ _a = JSON.parse(req.body), eventName = _a.eventName, tags = _a.tags, cpn = _a.cpn, mpcode = _a.mpcode;
50
+ userData = {
51
+ user: {
52
+ cpn: cpn,
53
+ subscriptions: [
54
+ {
55
+ proposition: {
56
+ code: mpcode || '',
57
+ },
58
+ isVoucher: null,
59
+ },
60
+ ],
61
+ },
62
+ };
63
+ optimizelyData = (0, helpers_1.prepareOptimizelyData)(userData, { cookies: cookies });
64
+ return [4 /*yield*/, (0, feature_flags_1.trackEvent)(eventName, {
65
+ $opt_event_properties: tags,
66
+ }, (0, helpers_1.getUserAttributes)({
67
+ headers: headers,
68
+ cookies: cookies,
69
+ query: query,
70
+ }, optimizelyData))];
71
+ case 1:
72
+ _b.sent();
73
+ return [3 /*break*/, 3];
74
+ case 2:
75
+ e_1 = _b.sent();
76
+ console.error('Error tracking event:', e_1);
77
+ throw new Error(e_1);
78
+ case 3: return [2 /*return*/];
79
+ }
80
+ });
81
+ }); };
82
+ exports.trackEvent = trackEvent;
83
+ //# sourceMappingURL=trackEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trackEvent.js","sourceRoot":"","sources":["../../../src/api/trackEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAwE;AACxE,sCAAqE;AAG9D,IAAM,UAAU,GAAG,UAAO,GAAmB;;;;;;gBAExC,OAAO,GAAqB,GAAG,QAAxB,EAAE,OAAO,GAAY,GAAG,QAAf,EAAE,KAAK,GAAK,GAAG,MAAR,CAAQ;gBACjC,KAAmC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAArD,SAAS,eAAA,EAAE,IAAI,UAAA,EAAE,GAAG,SAAA,EAAE,MAAM,YAAA,CAAyB;gBAGvD,QAAQ,GAAG;oBACf,IAAI,EAAE;wBACJ,GAAG,KAAA;wBACH,aAAa,EAAE;4BACb;gCACE,WAAW,EAAE;oCACX,IAAI,EAAE,MAAM,IAAI,EAAE;iCACnB;gCACD,SAAS,EAAE,IAAI;6BAChB;yBAC4B;qBAChC;iBACF,CAAA;gBAEK,cAAc,GAAG,IAAA,+BAAqB,EAAC,QAAQ,EAAE,EAAE,OAAO,SAAA,EAAE,CAAC,CAAA;gBAEnE,qBAAM,IAAA,0BAAU,EACd,SAAS,EACT;wBACE,qBAAqB,EAAE,IAAI;qBAC5B,EACD,IAAA,2BAAiB,EACf;wBACE,OAAO,SAAA;wBACP,OAAO,SAAA;wBACP,KAAK,OAAA;qBACN,EACD,cAAc,CACf,CACF,EAAA;;gBAbD,SAaC,CAAA;;;;gBAED,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,GAAC,CAAC,CAAA;gBACzC,MAAM,IAAI,KAAK,CAAC,GAAC,CAAC,CAAA;;;;KAErB,CAAA;AAxCY,QAAA,UAAU,cAwCtB"}
@@ -18,6 +18,7 @@ export declare const PENDING_ACTIVATION_SUBSCRIPTION = "Pending Activation";
18
18
  export declare const TERMINATED_SUBSCRIPTION = "Terminated";
19
19
  export declare const CANCELLED_SUBSCRIPTION = "Cancelled";
20
20
  export declare const ACTIVE_SUBSCRIPTION = "Active";
21
+ export declare const PENDING_CANCELLATION_SUBSCRIPTION = "Cancellation Requested";
21
22
  export declare const SUGGEST_CORRECT_EMAIL_MESSAGE = "Did you mean";
22
23
  export declare const UNAUTHENTICATED_USER_SERVER_MESSAGE = "Context creation failed: You must provide acs cookie or bearer token with the valid user cpn";
23
24
  export declare const HOLIDAY_STOP_OVERLAP = "Holiday stops cannot overlap";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ACCOUNT_DELETION_REQUEST_IN_PROGRESS_ERROR_CODE = exports.ACCOUNT_DELETION_DEFAULT_APPID = exports.DESKTOP_BREAKPOINTS = exports.MOBILE_BREAKPOINTS = exports.ACCEPTED_VOUCHER_DELIVERY_COUNTRY_CODES = exports.CURRENCY_MAP = exports.MISSING_VALUE_IN_VALIDATION_SCHEME_ERROR_MSG = exports.HOLIDAY_STOP_TOO_EARLY = exports.HOLIDAY_STOP_START_DATE = exports.HOLIDAY_STOP_OVERLAP = exports.UNAUTHENTICATED_USER_SERVER_MESSAGE = exports.SUGGEST_CORRECT_EMAIL_MESSAGE = exports.ACTIVE_SUBSCRIPTION = exports.CANCELLED_SUBSCRIPTION = exports.TERMINATED_SUBSCRIPTION = exports.PENDING_ACTIVATION_SUBSCRIPTION = exports.REORDER_IN_CYCLE_ERROR_MESSAGE = exports.EMAIL_ERROR_CONSTRAINT_VIOLATION = exports.EMAIL_ERROR_MESSAGE = exports.GROUP_ACCOUNT_INVALID_EMAIL_MESSAGE = exports.GROUP_ACCOUNT_SOMETHING_WENT_WRONG_MESSAGE = exports.CUSTOMER_EXISTS = exports.GROUP_ACCOUNT_EMAIL_ALREADY_EXISTS_ERROR_MESSAGE = exports.FALLBACK_URL_REPLACEMENT = exports.ZUORA = exports.SUBSCRIPTION_BASE_URL = exports.NEWSLETTERS_BASE_URL = exports.DISPLAY_NAME = exports.BASE_URL = void 0;
3
+ exports.ACCOUNT_DELETION_REQUEST_IN_PROGRESS_ERROR_CODE = exports.ACCOUNT_DELETION_DEFAULT_APPID = exports.DESKTOP_BREAKPOINTS = exports.MOBILE_BREAKPOINTS = exports.ACCEPTED_VOUCHER_DELIVERY_COUNTRY_CODES = exports.CURRENCY_MAP = exports.MISSING_VALUE_IN_VALIDATION_SCHEME_ERROR_MSG = exports.HOLIDAY_STOP_TOO_EARLY = exports.HOLIDAY_STOP_START_DATE = exports.HOLIDAY_STOP_OVERLAP = exports.UNAUTHENTICATED_USER_SERVER_MESSAGE = exports.SUGGEST_CORRECT_EMAIL_MESSAGE = exports.PENDING_CANCELLATION_SUBSCRIPTION = exports.ACTIVE_SUBSCRIPTION = exports.CANCELLED_SUBSCRIPTION = exports.TERMINATED_SUBSCRIPTION = exports.PENDING_ACTIVATION_SUBSCRIPTION = exports.REORDER_IN_CYCLE_ERROR_MESSAGE = exports.EMAIL_ERROR_CONSTRAINT_VIOLATION = exports.EMAIL_ERROR_MESSAGE = exports.GROUP_ACCOUNT_INVALID_EMAIL_MESSAGE = exports.GROUP_ACCOUNT_SOMETHING_WENT_WRONG_MESSAGE = exports.CUSTOMER_EXISTS = exports.GROUP_ACCOUNT_EMAIL_ALREADY_EXISTS_ERROR_MESSAGE = exports.FALLBACK_URL_REPLACEMENT = exports.ZUORA = exports.SUBSCRIPTION_BASE_URL = exports.NEWSLETTERS_BASE_URL = exports.DISPLAY_NAME = exports.BASE_URL = void 0;
4
4
  exports.BASE_URL = '/account';
5
5
  exports.DISPLAY_NAME = 'displayName';
6
6
  exports.NEWSLETTERS_BASE_URL = '/account/newsletters-and-alerts';
@@ -21,6 +21,7 @@ exports.PENDING_ACTIVATION_SUBSCRIPTION = 'Pending Activation';
21
21
  exports.TERMINATED_SUBSCRIPTION = 'Terminated';
22
22
  exports.CANCELLED_SUBSCRIPTION = 'Cancelled';
23
23
  exports.ACTIVE_SUBSCRIPTION = 'Active';
24
+ exports.PENDING_CANCELLATION_SUBSCRIPTION = 'Cancellation Requested';
24
25
  exports.SUGGEST_CORRECT_EMAIL_MESSAGE = 'Did you mean';
25
26
  exports.UNAUTHENTICATED_USER_SERVER_MESSAGE = 'Context creation failed: You must provide acs cookie or bearer token with the valid user cpn';
26
27
  exports.HOLIDAY_STOP_OVERLAP = 'Holiday stops cannot overlap';
@@ -1 +1 @@
1
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AG,cAAc,CAAA;AAC9C,QAAA,mCAAmC,GAC9C,8FAA8F,CAAA;AAEnF,QAAA,oBAAoB,GAAG,8BAA8B,CAAA;AACrD,QAAA,uBAAuB,GAClC,8CAA8C,CAAA;AACnC,QAAA,sBAAsB,GAAG,gCAAgC,CAAA;AACzD,QAAA,4CAA4C,GACvD,0CAA0C,CAAA;AAE/B,QAAA,YAAY,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC;IAC9B,GAAG,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC;CAC7B,CAAA;AAEY,QAAA,uCAAuC,GAAG;IACrD,GAAG,EAAE,gBAAgB;IACrB,GAAG,EAAE,aAAa;IAClB,GAAG,EAAE,UAAU;IACf,GAAG,EAAE,QAAQ;CACd,CAAA;AAEY,QAAA,kBAAkB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACvC,QAAA,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;AAElC,QAAA,8BAA8B,GAAG,YAAY,CAAA;AAC7C,QAAA,+CAA+C,GAAG,WAAW,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, };
@@ -45,6 +45,7 @@ var contextMap = (_a = {},
45
45
  _a[types_1.ContextName.payment] = (0, react_1.createContext)(null),
46
46
  _a[types_1.ContextName.editField] = (0, react_1.createContext)(null),
47
47
  _a[types_1.ContextName.cancellation] = (0, react_1.createContext)(null),
48
+ _a[types_1.ContextName.CancellationStepper] = (0, react_1.createContext)(null),
48
49
  _a[types_1.ContextName.error] = (0, react_1.createContext)(null),
49
50
  _a[types_1.ContextName.addField] = (0, react_1.createContext)(null),
50
51
  _a[types_1.ContextName.paymentMethods] = (0, react_1.createContext)(null),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAiE;AACjE,8DAAgC;AAChC,iCAoBgB;AAChB,6CAA+E;AA4D7E,4FA5DO,yBAAW,OA4DP;AACX,uFA7DoB,oBAAM,OA6DpB;AACN,kGA9D4B,+BAAiB,OA8D5B;AACjB,wFA/D+C,qBAAO,OA+D/C;AA7DT,IAAM,UAAU;IACd,GAAC,mBAAW,CAAC,eAAe,IAC1B,IAAA,qBAAa,EAA0C,IAAI,CAAC;IAC9D,GAAC,mBAAW,CAAC,sBAAsB,IACjC,IAAA,qBAAa,EAA8C,IAAI,CAAC;IAClE,GAAC,mBAAW,CAAC,WAAW,IAAG,IAAA,q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ACxD,OAAA,IAAA,kBAAU,EAAC,UAAU,CAAC,WAAW,CAA4B,CAAC;AAA9D,CAA8D,CAAA;AADnD,QAAA,iBAAiB,qBACkC"}
@@ -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,11 @@ 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';
27
+ import { CancellationDetailsContextProps } from '../Components/Sections/CancellationDetails';
23
28
  interface InfoPanel extends InlineMessageProps {
24
29
  infoPanelCells?: MQ<number>;
25
30
  href?: boolean;
@@ -155,7 +160,8 @@ export declare enum ContextName {
155
160
  'accountDeletion' = "accountDeletion",
156
161
  'confirmAccountDeletion' = "confirmAccountDeletion",
157
162
  'family' = "family",
158
- 'userHubPage' = "userHubPage"
163
+ 'userHubPage' = "userHubPage",
164
+ 'CancellationStepper' = "CancellationStepper"
159
165
  }
160
166
  export interface BaseContextOptions {
161
167
  navigationPrimary: NavigationPrimaryProps;
@@ -186,6 +192,7 @@ interface LayoutMainContentOverrides {
186
192
  width?: MQ<string>;
187
193
  paddingInline?: MQ<string>;
188
194
  paddingBlockStart?: MQ<string>;
195
+ justifyContent?: MQ<string>;
189
196
  }
190
197
  interface InteractiveContextOptions extends BaseContextOptionsWithUserData {
191
198
  validation: Record<string, any>;
@@ -240,16 +247,95 @@ export interface CancellationContextOptions extends InteractiveContextOptions {
240
247
  confirm: Partial<CancellationContext>;
241
248
  };
242
249
  }
250
+ export interface CancellationItem {
251
+ id?: string;
252
+ componentType?: string;
253
+ label?: string;
254
+ labelOverrides?: {
255
+ typographyPreset: MQ<string>;
256
+ stylePreset?: MQ<string>;
257
+ };
258
+ subtitleOverrides?: {
259
+ typographyPreset: MQ<string>;
260
+ stylePreset?: MQ<string>;
261
+ };
262
+ subtitle?: string;
263
+ href?: string;
264
+ linkText?: string;
265
+ icon?: NewsKitIcon | string;
266
+ overrideNextStep?: string;
267
+ containerOverrides?: GridLayoutProps;
268
+ ariaLabel?: string;
269
+ handleClick?: HandleCardClick;
270
+ image?: string;
271
+ baseUrl?: string;
272
+ eventContext?: EventContext;
273
+ }
274
+ export interface CancellationSection {
275
+ contentContainerOverrides?: Partial<SharedContentContainerProps>;
276
+ containerOverrides?: GridLayoutProps;
277
+ itemContainerOverrides?: GridLayoutProps;
278
+ itemHeaderOverrides?: StackProps & {
279
+ imageVisible?: boolean;
280
+ };
281
+ itemImageOverrides?: {
282
+ width?: number;
283
+ height?: number;
284
+ fill?: boolean;
285
+ };
286
+ header: HeaderProps;
287
+ layoutType?: string;
288
+ items: CancellationItem[];
289
+ primaryButton?: ButtonProps;
290
+ belowItemExtra?: BelowItemExtraProps;
291
+ showBackButton?: boolean;
292
+ tealiumContext?: TealiumEventContext;
293
+ }
294
+ export interface BelowItemExtraProps {
295
+ containerOverrides?: Partial<GridLayoutProps>;
296
+ label: string;
297
+ button: {
298
+ text: string;
299
+ href?: string;
300
+ id?: string;
301
+ };
302
+ baseUrl?: string;
303
+ eventContext?: EventContext;
304
+ onClick?: StepController;
305
+ buttonOverrides?: BaseFlagOverrides;
306
+ iconOverrides?: NewsKitIconProps['overrides'];
307
+ marginInline?: MQ<string>;
308
+ }
309
+ export interface DowngradeContextProps extends CancelSubscriptionDowngradeProps {
310
+ contentContainerOverrides?: Partial<SharedContentContainerProps>;
311
+ showBackButton?: boolean;
312
+ tealiumContext?: TealiumEventContext;
313
+ }
314
+ export interface ConfirmCancellationContextProps extends ConfirmCancellationStepProps {
315
+ contentContainerOverrides?: Partial<SharedContentContainerProps>;
316
+ showBackButton?: boolean;
317
+ tealiumContext?: TealiumEventContext;
318
+ }
319
+ export interface CancellationStepperContextOptions extends Partial<InteractiveContextOptions>, Partial<NonInteractiveContextOptions> {
320
+ containerOverrides?: GridLayoutProps;
321
+ components: Record<string, CancellationSection | DowngradeContextProps | ConfirmCancellationContextProps | CancellationDetailsContextProps>;
322
+ componentSequence: Record<string, string[]>;
323
+ showBackButton?: boolean;
324
+ contentContainerOverrides?: Partial<SharedContentContainerProps>;
325
+ }
326
+ export interface SectionListItemProps {
327
+ type: string;
328
+ }
243
329
  export interface AccountLandingPageSection {
244
330
  type: SectionTypes;
245
331
  billingType?: SectionBillingType;
246
- componentType: string;
332
+ componentType?: string;
333
+ layoutType?: string;
247
334
  props?: ContentContainerProps | CardContentContainerProps | CancelSubscriptionProps;
248
335
  }
249
336
  export declare enum SectionTypes {
250
337
  'Digital' = "digital",
251
- 'Print' = "print",
252
- 'all' = "all"
338
+ 'Print' = "print"
253
339
  }
254
340
  export declare enum SectionBillingType {
255
341
  'AllBilling' = "all_billing",
@@ -282,7 +368,7 @@ export interface PaymentPageContextOptions extends BaseContextOptionsWithUserDat
282
368
  paymentType?: string;
283
369
  infoPanel: InfoPanel;
284
370
  cancelButton?: ButtonProps & {
285
- eventContext: LinkEventContext;
371
+ eventContext: EventContext;
286
372
  };
287
373
  tealiumContext?: TealiumEventContext;
288
374
  paymentMethodsMap?: PaymentMethodsMap;
@@ -555,7 +641,7 @@ export interface FamilyContextOptions extends NonInteractiveContextOptions {
555
641
  cancelTextVariantB: string;
556
642
  eventNavigationNameCancel: string;
557
643
  eventNavigationNameRemove: string;
558
- eventContext: EventContext;
644
+ eventContext: Omit<EventContext, 'event_navigation_name'>;
559
645
  };
560
646
  memberNameOverrides: {
561
647
  stylePreset: MQ<string>;
@@ -633,21 +719,14 @@ export interface FamilyContextOptions extends NonInteractiveContextOptions {
633
719
  eventContext: EventContext;
634
720
  };
635
721
  }
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
722
  export interface UserHubSection {
647
723
  header: HeaderProps;
648
- containerOverrides?: UserHubContainerOverrides;
724
+ containerOverrides?: GridLayoutProps;
649
725
  items: UserHubItemProps[];
650
726
  dataTestId: string;
727
+ contextName?: ContextName;
728
+ componentType?: string;
729
+ layoutType?: string;
651
730
  }
652
731
  export declare enum NewsletterNameId {
653
732
  'Times+' = "147",
@@ -688,7 +767,7 @@ export interface UserHubNewslettersSection {
688
767
  header: HeaderProps;
689
768
  'data-testid'?: string;
690
769
  newslettersListProps: NewslettersListProps;
691
- containerOverrides?: UserHubContainerOverrides;
770
+ containerOverrides?: GridLayoutProps;
692
771
  }
693
772
  export interface UserHubContextOptions extends NonInteractiveContextOptions {
694
773
  tealiumContext?: TealiumEventContext;
@@ -738,5 +817,5 @@ export interface ConfirmAccountDeletionContextOptions extends AccountDeletionCon
738
817
  export type ContextNameProps = {
739
818
  contextName: ContextName;
740
819
  };
741
- export type ContextOptions = HolidayStopContextOptions | PaymentPageContextOptions | AccountLandingPageContextOptions | CancellationContextOptions | EditFieldContextOptions | SubscriptionAndBillingContextOptions | BaseContextOptions | AddFieldContextOption | AccountDeletionContextOptions | ConfirmAccountDeletionContextOptions;
820
+ export type ContextOptions = HolidayStopContextOptions | PaymentPageContextOptions | AccountLandingPageContextOptions | CancellationContextOptions | EditFieldContextOptions | SubscriptionAndBillingContextOptions | BaseContextOptions | AddFieldContextOption | AccountDeletionContextOptions | ConfirmAccountDeletionContextOptions | CancellationStepperContextOptions;
742
821
  export {};
@@ -21,12 +21,12 @@ var ContextName;
21
21
  ContextName["confirmAccountDeletion"] = "confirmAccountDeletion";
22
22
  ContextName["family"] = "family";
23
23
  ContextName["userHubPage"] = "userHubPage";
24
+ ContextName["CancellationStepper"] = "CancellationStepper";
24
25
  })(ContextName || (exports.ContextName = ContextName = {}));
25
26
  var SectionTypes;
26
27
  (function (SectionTypes) {
27
28
  SectionTypes["Digital"] = "digital";
28
29
  SectionTypes["Print"] = "print";
29
- SectionTypes["all"] = "all";
30
30
  })(SectionTypes || (exports.SectionTypes = SectionTypes = {}));
31
31
  var SectionBillingType;
32
32
  (function (SectionBillingType) {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/context/types.ts"],"names":[],"mappings":";;;AA8LA,IAAY,WAmBX;AAnBD,WAAY,WAAW;IACrB,kDAAqC,CAAA;IACrC,gEAAmD,CAAA;IACnD,0CAA6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AmB,CAAA;IACnB,mCAAe,CAAA;IACf,6CAAyB,CAAA;AAC3B,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAmZD,IAAY,gBA2BX;AA3BD,WAAY,gBAAgB;IAC1B,kCAAgB,CAAA;IAChB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;IACjB,8BAAY,CAAA;IACZ,oCAAkB,CAAA;IAClB,yCAAuB,CAAA;IACvB,2CAAyB,CAAA;IACzB,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,gCAAhB,gBAAgB,QA2B3B;AA4BD,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,kDAAyB,CAAA;AAC3B,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC"}
@@ -65,20 +65,20 @@ var pageProvidersMapper = {
65
65
  };
66
66
  var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
67
67
  var provider, apolloClient, providerResponse, pageProvider, err_1, userData, subscriptions, isEligible, featureFlags, optimizelyData, err_2, handleMfaError, isStepUpMfaEnabled, cookie, stepUpMfaToken, isTNLMobileApp, apolloMfaClient, stepUpProvider, err_3;
68
- var _c, _d, _e;
69
- var context = _b.context, props = _b.props, options = _b.options, _f = _b.enableStepUpMfa, enableStepUpMfa = _f === void 0 ? false : _f;
70
- return __generator(this, function (_g) {
71
- switch (_g.label) {
68
+ var _c, _d, _e, _f;
69
+ var context = _b.context, props = _b.props, options = _b.options, _g = _b.enableStepUpMfa, enableStepUpMfa = _g === void 0 ? false : _g;
70
+ return __generator(this, function (_h) {
71
+ switch (_h.label) {
72
72
  case 0:
73
73
  provider = context.provider;
74
74
  return [4 /*yield*/, (0, api_1.createApolloClient)(api_1.ClientTypes.main, ((_c = context.req.headers) === null || _c === void 0 ? void 0 : _c.cookie) || '', undefined, undefined, undefined, { enableStepUpMfa: false })];
75
75
  case 1:
76
- apolloClient = _g.sent();
76
+ apolloClient = _h.sent();
77
77
  providerResponse = {};
78
78
  pageProvider = pageProvidersMapper[provider] || providersTimes_1.genericPageProvider;
79
- _g.label = 2;
79
+ _h.label = 2;
80
80
  case 2:
81
- _g.trys.push([2, 4, , 5]);
81
+ _h.trys.push([2, 4, , 5]);
82
82
  return [4 /*yield*/, pageProvider({
83
83
  apolloClient: apolloClient,
84
84
  context: context,
@@ -86,10 +86,10 @@ var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a], void
86
86
  provider: provider || types_1.ProviderTypes.PersonalDetails,
87
87
  })];
88
88
  case 3:
89
- providerResponse = _g.sent();
89
+ providerResponse = _h.sent();
90
90
  return [3 /*break*/, 5];
91
91
  case 4:
92
- err_1 = _g.sent();
92
+ err_1 = _h.sent();
93
93
  (0, helpers_1.handleNewRelicErrorLog)({
94
94
  requestName: "getProviderPropsTimes - ".concat(provider),
95
95
  reqError: err_1,
@@ -110,16 +110,22 @@ var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a], void
110
110
  }
111
111
  }
112
112
  featureFlags = {};
113
- _g.label = 6;
113
+ _h.label = 6;
114
114
  case 6:
115
- _g.trys.push([6, 8, , 9]);
116
- optimizelyData = (0, featureFlagUtils_1.prepareOptimizelyData)(providerResponse.data);
117
- return [4 /*yield*/, (0, feature_flags_1.getAllFeatureFlags)((0, featureFlagUtils_1.getUserAttributes)(context, optimizelyData))];
115
+ _h.trys.push([6, 8, , 9]);
116
+ optimizelyData = (0, featureFlagUtils_1.prepareOptimizelyData)(userData, {
117
+ cookies: context.req.cookies,
118
+ });
119
+ return [4 /*yield*/, (0, feature_flags_1.getAllFeatureFlags)((0, featureFlagUtils_1.getUserAttributes)({
120
+ headers: context.req.headers,
121
+ cookies: context.req.cookies,
122
+ query: context.query,
123
+ }, optimizelyData))];
118
124
  case 7:
119
- featureFlags = (_g.sent());
125
+ featureFlags = (_h.sent());
120
126
  return [3 /*break*/, 9];
121
127
  case 8:
122
- err_2 = _g.sent();
128
+ err_2 = _h.sent();
123
129
  (0, helpers_1.handleNewRelicErrorLog)({
124
130
  requestName: 'getProviderPropsTimes - getAllFeatureFlags',
125
131
  reqError: err_2,
@@ -129,9 +135,9 @@ var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a], void
129
135
  handleMfaError = function (errorCode) {
130
136
  context.res.setHeader('Set-Cookie', "stepup_access_token=; path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT");
131
137
  };
132
- isStepUpMfaEnabled = enableStepUpMfa && featureFlags.enable_mfa;
138
+ isStepUpMfaEnabled = enableStepUpMfa && featureFlags.enable_mfa && ((_e = userData === null || userData === void 0 ? void 0 : userData.user) === null || _e === void 0 ? void 0 : _e.email);
133
139
  if (!isStepUpMfaEnabled) return [3 /*break*/, 14];
134
- cookie = ((_e = context.req.headers) === null || _e === void 0 ? void 0 : _e.cookie)
140
+ cookie = ((_f = context.req.headers) === null || _f === void 0 ? void 0 : _f.cookie)
135
141
  ? "".concat(context.req.headers.cookie, ";stepup_access_token=").concat(context.req.headers.stepup_access_token || '')
136
142
  : '';
137
143
  stepUpMfaToken = (0, helpers_1.getStepUpMfaToken)(context.req.headers);
@@ -145,21 +151,21 @@ var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a], void
145
151
  },
146
152
  }];
147
153
  }
148
- _g.label = 10;
154
+ _h.label = 10;
149
155
  case 10:
150
- _g.trys.push([10, 13, , 14]);
156
+ _h.trys.push([10, 13, , 14]);
151
157
  return [4 /*yield*/, (0, api_1.createApolloClient)(api_1.ClientTypes.main, cookie, undefined, undefined, undefined, {
152
158
  enableStepUpMfa: true,
153
159
  handleMfaError: handleMfaError,
154
160
  })];
155
161
  case 11:
156
- apolloMfaClient = _g.sent();
162
+ apolloMfaClient = _h.sent();
157
163
  return [4 /*yield*/, (0, providers_1.stepUpMfaProvider)({
158
164
  apolloClient: apolloMfaClient,
159
165
  options: options,
160
166
  })];
161
167
  case 12:
162
- stepUpProvider = _g.sent();
168
+ stepUpProvider = _h.sent();
163
169
  if (stepUpProvider.data.authorizeUri.mfaUri) {
164
170
  return [2 /*return*/, {
165
171
  redirect: {
@@ -170,7 +176,7 @@ var getProviderPropsTimes = function (_a) { return __awaiter(void 0, [_a], void
170
176
  }
171
177
  return [3 /*break*/, 14];
172
178
  case 13:
173
- err_3 = _g.sent();
179
+ err_3 = _h.sent();
174
180
  console.error('Error setting up stepup mfa');
175
181
  handleMfaError();
176
182
  return [2 /*return*/, {
@@ -1 +1 @@
1
- {"version":3,"file":"getProviderPropsTimes.js","sourceRoot":"","sources":["../../src/getProviderPropsTimes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAqE;AAGrE,mDAMyB;AACzB,gDAO+B;AAE/B,qCAKkB;AAElB,mEAIqC;AACrC,yCAA+C;AAC/C,+DAAgF;AAChF,+DAGmC;AAEnC,uEAG0C;AAE1C,IAAM,mBAAmB,GAAG;IAC1B,QAAQ,EAAE,iCAAgB;IAC1B,SAAS,EAAE,kCAAiB;IAC5B,oBAAoB,EAAE,6CAA4B;IAClD,OAAO,EAAE,gCAAe;CACzB,CAAA;AASM,IAAM,qBAAqB,GAAG,iEAEnC,EAK2B;;;QAJ3B,OAAO,aAAA,EACP,KAAK,WAAA,EACL,OAAO,aAAA,EACP,uBAAuB,EAAvB,eAAe,mBAAG,KAAK,KAAA;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,sBAAY,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAoB,CAAC;gCACxD,SAAS,EAAE,IAAI;6BAChB;yBACF,EAAA;gBACH,CAAC;;;;gBAGyB,qBAAM,IAAA,wBAAkB,EAC9C,iBAAW,CAAC,IAAI,EAChB,MAAM,EACN,SAAS,EACT,SAAS,EACT,SAAS,EACT;wBACE,eAAe,EAAE,IAAI;wBACrB,cAAc,gBAAA;qBACf,CACF,EAAA;;gBAVK,eAAe,GAAG,SAUvB;gBAEsB,qBAAM,IAAA,6BAAiB,EAAC;wBAC7C,YAAY,EAAE,eAAe;wBAC7B,OAAO,SAAA;qBACR,CAAC,EAAA;;gBAHI,cAAc,GAAG,SAGrB;gBAEF,IAAI,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC;oBAC5C,sBAAO;4BACL,QAAQ,EAAE;gCACR,WAAW,EAAE,cAAc,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM;gCACpD,SAAS,EAAE,IAAI;6BAChB;yBACF,EAAA;gBACH,CAAC;;;;gBAED,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;gBAC5C,cAAc,EAAE,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,yCAAoB,EACzB,YAAY,cAAA,GACb;iBACF,EAAA;;;KACF,CAAA;AA7JY,QAAA,qBAAqB,yBA6JjC"}
1
+ {"version":3,"file":"getProviderPropsTimes.js","sourceRoot":"","sources":["../../src/getProviderPropsTimes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAqE;AAGrE,mDAMyB;AAC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AC,IAAI,CAAC,YAAY,CAAC,MAAM;gCACpD,SAAS,EAAE,IAAI;6BAChB;yBACF,EAAA;gBACH,CAAC;;;;gBAED,OAAO,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAA;gBAC5C,cAAc,EAAE,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,yCAAoB,EACzB,YAAY,cAAA,GACb;iBACF,EAAA;;;KACF,CAAA;AAvKY,QAAA,qBAAqB,yBAuKjC"}
@@ -39,6 +39,7 @@ var mutationsMap = {
39
39
  inviteFamilyLink: queries_1.mutateCreateShareLink,
40
40
  dob: queries_1.mutateUserBroadcasting,
41
41
  gender: queries_1.mutateUserBroadcasting,
42
+ cancelSubscription: queries_1.mutateCancellation,
42
43
  };
43
44
  var getMutationVariables = function (
44
45
  /* eslint-disable @typescript-eslint/no-explicit-any */
@@ -1 +1 @@
1
- {"version":3,"file":"apiHandlerUtils.js","sourceRoot":"","sources":["../../../src/helpers/apiHandlerUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,wCAkBqB;AACrB,oCAAqC;AAErC,IAAM,cAAc,GAAG,kBAAS,KAAK,cAAc,CAAA;AAEnD,IAAM,YAAY,GAAG;IACnB,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,gCAAsB,CAAC,CAAC,CAAC,oBAAU;IAC1D,WAAW,EAAE,oBAAU;IACvB,MAAM,EAAE,oBAAU;IAClB,eAAe,EAAE,mCAAyB;IAC1C,kBAAkB,EAAE,kCAAwB;IAC5C,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,gCAAsB,CAAC,CAAC,CAAC,oBAAU;IAC3D,OAAO,EAAE,oBAAU;IACnB,mBAAmB,E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AAQ,UAAA;gBACR,WAAW,aAAA;gBACX,KAAK,OAAA;gBACL,aAAa,EAAE,aAAa,IAAI,KAAK;gBACrC,WAAW,EAAE;oBACX,KAAK,OAAA;oBACL,QAAQ,UAAA;oBACR,OAAO,SAAA;iBACR;aACF;SACF,CAAA;IACH,CAAC;IAED,IAAI,mBAAmB,KAAK,SAAS,EAAE,CAAC;QACtC,OAAO;YACL,KAAK,EAAE;gBACL,OAAO,wBAAO,KAAK,KAAE,OAAO,EAAE,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,EAAE,GAAE;aAClE;SACF,CAAA;IACH,CAAC;IAED,IAAI,mBAAmB,KAAK,qBAAqB,EAAE,CAAC;QAClD,IAAM,iBAAiB,GAAG;YACxB,KAAK,EAAE;gBACL,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,MAAM,EAAE,KAAK,CAAC,kBAAkB;aACjC;SACF,CAAA;QACD,OAAO,iBAAiB,CAAA;IAC1B,CAAC;IAED,IAAI,mBAAmB,KAAK,oBAAoB,EAAE,CAAC;QACjD,OAAO;YACL,KAAK,wBACA,KAAK,KACR,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,EACtC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,GACrC;SACF,CAAA;IACH,CAAC;IACD,OAAO,EAAE,KAAK,OAAA,EAAE,CAAA;AAClB,CAAC,CAAA;AA3EY,QAAA,oBAAoB,wBA2EhC;AAEM,IAAM,WAAW,GAAG,UAAC,GAAW;IACrC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAA;AAC1B,CAAC,CAAA;AAFY,QAAA,WAAW,eAEvB"}
1
+ {"version":3,"file":"apiHandlerUtils.js","sourceRoot":"","sources":["../../../src/helpers/apiHandlerUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,wCAkBqB;AACrB,oCAAqC;AAErC,IAAM,cAAc,GAAG,kBAAS,KAAK,cAAc,CAAA;AAEnD,IAAM,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QAAA,oBAAoB,wBA2EhC;AAEM,IAAM,WAAW,GAAG,UAAC,GAAW;IACrC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAA;AAC1B,CAAC,CAAA;AAFY,QAAA,WAAW,eAEvB"}
@@ -0,0 +1,9 @@
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;
8
+ export declare const replaceSubscriptionName: (text: string, subscriptionName: string) => string;
9
+ export declare const cancelSubscription: (subscriptionId: string, reason: string) => Promise<Response>;