@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
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { EventContext } from '@newskit-render/shared-components';
3
+ export declare const componentMap: {
4
+ reason: React.FC<import("../Sections/SectionContainer").GridSectionProps>;
5
+ downgrade: React.FC<import("../Sections/CancelSubscriptionDowngrade/CancelSubscriptionDowngrade").CancelSubscriptionDowngradeProps>;
6
+ confirmCancel: ({ image, buttonOverrides, buttonText, introduction, buttonEventContext, buttonUrl, baseUrl, }: {
7
+ image: any;
8
+ buttonOverrides: any;
9
+ buttonText: any;
10
+ introduction: any;
11
+ buttonEventContext: any;
12
+ buttonUrl: any;
13
+ baseUrl?: string | undefined;
14
+ }) => JSX.Element;
15
+ };
16
+ export type SelectionData = {
17
+ id: string;
18
+ label: string;
19
+ eventContext?: EventContext;
20
+ };
21
+ export type StepController = (event: React.MouseEvent, override?: string | null, eventContext?: Record<string, string>) => void;
22
+ export type HandleCardClick = (event: React.MouseEvent, selectionData: SelectionData) => void;
23
+ declare const CancellationStepperRender: React.FC;
24
+ export default CancellationStepperRender;
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __generator = (this && this.__generator) || function (thisArg, body) {
46
+ 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);
47
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
+ function verb(n) { return function (v) { return step([n, v]); }; }
49
+ function step(op) {
50
+ if (f) throw new TypeError("Generator is already executing.");
51
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
+ 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;
53
+ if (y = 0, t) op = [op[0] & 2, t.value];
54
+ switch (op[0]) {
55
+ case 0: case 1: t = op; break;
56
+ case 4: _.label++; return { value: op[1], done: false };
57
+ case 5: _.label++; y = op[1]; op = [0]; continue;
58
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
+ default:
60
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
+ if (t[2]) _.ops.pop();
65
+ _.trys.pop(); continue;
66
+ }
67
+ op = body.call(thisArg, _);
68
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
+ }
71
+ };
72
+ Object.defineProperty(exports, "__esModule", { value: true });
73
+ exports.componentMap = void 0;
74
+ var react_1 = __importStar(require("react"));
75
+ var shared_components_1 = require("@newskit-render/shared-components");
76
+ var context_1 = require("../../context");
77
+ var types_1 = require("../../context/types");
78
+ var navigation_1 = require("next/navigation");
79
+ var SectionContainer_1 = require("../Sections/SectionContainer");
80
+ var helpers_1 = require("../../helpers");
81
+ var CancelSubscriptionDowngrade_1 = require("../Sections/CancelSubscriptionDowngrade");
82
+ var ConfirmCancellation_1 = require("../Sections/ConfirmCancellation/ConfirmCancellation");
83
+ exports.componentMap = {
84
+ reason: SectionContainer_1.GridSection,
85
+ downgrade: CancelSubscriptionDowngrade_1.CancelSubscriptionDowngrade,
86
+ confirmCancel: ConfirmCancellation_1.ConfirmCancellation,
87
+ };
88
+ var CancellationStepperRender = function () {
89
+ var _a, _b, _c, _d, _e, _f;
90
+ var contextName = types_1.ContextName.CancellationStepper;
91
+ var _g = (0, context_1.useAccountContext)(contextName), header = _g.header, components = _g.components, componentSequence = _g.componentSequence, showBackButton = _g.showBackButton, userData = _g.userData, baseUrl = _g.baseUrl;
92
+ var router = (0, navigation_1.useRouter)();
93
+ var searchParams = (0, navigation_1.useSearchParams)();
94
+ var type = (_a = userData === null || userData === void 0 ? void 0 : userData.subscriptions[0]) === null || _a === void 0 ? void 0 : _a.type;
95
+ if (!type || !componentSequence[type])
96
+ return null;
97
+ var _h = (0, react_1.useState)(null), selections = _h[0], setSelections = _h[1];
98
+ var pagesInOrder = componentSequence[type];
99
+ var _j = (0, react_1.useState)(null), overrideComponent = _j[0], setOverrideComponent = _j[1];
100
+ var _k = (0, react_1.useState)([]), filteredPages = _k[0], setFilteredPages = _k[1];
101
+ var stepFromUrl = searchParams.get('step');
102
+ var currentStepComponent = overrideComponent || stepFromUrl || pagesInOrder[0];
103
+ var activePages = filteredPages.length > 0 ? filteredPages : pagesInOrder;
104
+ var stepIndex = activePages.findIndex(function (page) { return page === currentStepComponent; });
105
+ var SectionComponent = exports.componentMap[currentStepComponent];
106
+ var componentProps = components[currentStepComponent];
107
+ var updateUrlWithStep = function (step) {
108
+ var params = new URLSearchParams(searchParams.toString());
109
+ params.set('step', step);
110
+ router.push("?".concat(params.toString()));
111
+ };
112
+ (0, react_1.useEffect)(function () {
113
+ if (!stepFromUrl) {
114
+ var defaultStep = pagesInOrder[0];
115
+ updateUrlWithStep(defaultStep);
116
+ }
117
+ }, []);
118
+ var handleBackBtn = function (event) {
119
+ var _a;
120
+ event === null || event === void 0 ? void 0 : event.preventDefault();
121
+ if (overrideComponent) {
122
+ setOverrideComponent(null);
123
+ setFilteredPages([]);
124
+ router.back();
125
+ return;
126
+ }
127
+ if (stepIndex <= 0) {
128
+ // Temporary until the 'Cancel Subscription' modal is implemented
129
+ // router.back() redirects to about_blank when there is no referrer
130
+ router.push((0, helpers_1.replaceBaseURL)(baseUrl || '', (_a = header === null || header === void 0 ? void 0 : header.backButton) === null || _a === void 0 ? void 0 : _a.href));
131
+ // router.back()
132
+ return;
133
+ }
134
+ updateUrlWithStep(activePages[stepIndex - 1]);
135
+ };
136
+ var stepController = function (event, override) {
137
+ var _a;
138
+ if (override === void 0) { override = null; }
139
+ (_a = event === null || event === void 0 ? void 0 : event.preventDefault) === null || _a === void 0 ? void 0 : _a.call(event);
140
+ // Default behaviour - go to next step
141
+ if (!override) {
142
+ var nextStep = activePages[stepIndex + 1];
143
+ updateUrlWithStep(nextStep);
144
+ return;
145
+ }
146
+ setOverrideComponent(override);
147
+ setFilteredPages(pagesInOrder.filter(function (page) { return page !== override; }));
148
+ updateUrlWithStep(override);
149
+ };
150
+ var handleCardClick = function (_event, selectionData) {
151
+ setSelections(selectionData);
152
+ };
153
+ var handleSubmit = function () { return __awaiter(void 0, void 0, void 0, function () {
154
+ return __generator(this, function (_a) {
155
+ fetch('/api/we-dont-have-the-route-yet', {
156
+ method: 'post',
157
+ body: JSON.stringify(selections),
158
+ });
159
+ return [2 /*return*/];
160
+ });
161
+ }); };
162
+ // general tracking for page views
163
+ (0, shared_components_1.usePageViewTracking)({
164
+ originator: '',
165
+ context: __assign(__assign({}, (_b = componentProps === null || componentProps === void 0 ? void 0 : componentProps.tealiumContext) === null || _b === void 0 ? void 0 : _b.context), { cancellation_type: ((_c = selections === null || selections === void 0 ? void 0 : selections.eventContext) === null || _c === void 0 ? void 0 : _c.article_parent_name) || '' }),
166
+ });
167
+ if (!currentStepComponent || !SectionComponent) {
168
+ return null;
169
+ }
170
+ var shouldShowBackButton = (_d = componentProps === null || componentProps === void 0 ? void 0 : componentProps.showBackButton) !== null && _d !== void 0 ? _d : showBackButton;
171
+ return (react_1.default.createElement(react_1.default.Fragment, null,
172
+ shouldShowBackButton && (header === null || header === void 0 ? void 0 : header.backButton) && (react_1.default.createElement(shared_components_1.BackButton, { backButton: __assign(__assign({}, header.backButton), { href: (0, helpers_1.replaceBaseURL)(baseUrl || '', (_e = header === null || header === void 0 ? void 0 : header.backButton) === null || _e === void 0 ? void 0 : _e.href) }), backButtonOverrides: header.backButtonOverrides, eventContext: __assign(__assign({}, header.backButton.eventContext), { page_name: (_f = componentProps.tealiumContext) === null || _f === void 0 ? void 0 : _f.context.page_name }), onClick: handleBackBtn })),
173
+ react_1.default.createElement(shared_components_1.ContentContainer, __assign({ "data-testid": "section-container" }, componentProps === null || componentProps === void 0 ? void 0 : componentProps.contentContainerOverrides),
174
+ react_1.default.createElement(SectionComponent, __assign({}, componentProps, { baseUrl: baseUrl, onNextStep: stepController, handleCardClick: handleCardClick, handleSubmit: handleSubmit, user: userData })))));
175
+ };
176
+ exports.default = CancellationStepperRender;
177
+ //# sourceMappingURL=CancellationStepperRender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CancellationStepperRender.js","sourceRoot":"","sources":["../../../../src/Components/Templates/CancellationStepperRender.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAkD;AAClD,uEAK0C;AAC1C,yCAAiD;AACjD,6CAG4B;AAC5B,8CAA4D;AAC5D,iEAA0D;AAC1D,yCAA8C;AAC9C,uFAAqF;AACrF,2FAAyF;AAE5E,QAAA,YAAY,GAAG;IAC1B,MAAM,EAAE,8BAAW;IACnB,SAAS,EAAE,yDAA2B;IACtC,aAAa,EAAE,yCAAmB;CACnC,CAAA;AAoBD,IAAM,yBAAyB,GAAa;;IAC1C,IAAM,WAAW,GAAG,mBAAW,CAAC,mBAAmB,CAAA;IAE7C,IAAA,KAOF,IAAA,2BAAiB,EAAC,WAAW,CAAsC,EANrE,MAAM,YAAA,EACN,UAAU,gBAAA,EACV,iBAAiB,uBAAA,EACjB,cAAc,oBAAA,EACd,QAAQ,cAAA,EACR,OAAO,aAC8D,CAAA;IACvE,IAAM,MAAM,GAAG,IAAA,sBAAS,GAAE,CAAA;IAC1B,IAAM,YAAY,GAAG,IAAA,4BAAe,GAAE,CAAA;IAEtC,IAAM,IAAI,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,CAAC,CAAC,CAAC,0CAAE,IAAI,CAAA;IAE7C,IAAI,CAAC,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAA;IAE5C,IAAA,KAA8B,IAAA,gBAAQ,EAAuB,IAAI,CAAC,EAAjE,UAAU,QAAA,EAAE,aAAa,QAAwC,CAAA;IACxE,IAAM,YAAY,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAA;IACtC,IAAA,KAA4C,IAAA,gBAAQ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E,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,QAAQ,IACd,CACe,CAClB,CACJ,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,yBAAyB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ContextName } from '../../context/types';
3
+ type DisplayRenderProps = {
4
+ contextName: ContextName;
5
+ };
6
+ declare const SectionRender: React.FC<DisplayRenderProps>;
7
+ export default SectionRender;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __rest = (this && this.__rest) || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
+ t[p] = s[p];
21
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ var react_1 = __importDefault(require("react"));
33
+ var newskit_1 = require("newskit");
34
+ var shared_components_1 = require("@newskit-render/shared-components");
35
+ var context_1 = require("../../context");
36
+ var SectionContainer_1 = require("../Sections/SectionContainer/SectionContainer");
37
+ var StyledBlock = (0, newskit_1.styled)(newskit_1.Block)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n clear: both;\n"], ["\n clear: both;\n"])));
38
+ var SectionRender = function (_a) {
39
+ var contextName = _a.contextName;
40
+ var _b = (0, context_1.useAccountContext)(contextName), header = _b.header, sections = _b.sections;
41
+ return (react_1.default.createElement(react_1.default.Fragment, null,
42
+ react_1.default.createElement(shared_components_1.Header, __assign({}, header)),
43
+ react_1.default.createElement(StyledBlock, null, sections === null || sections === void 0 ? void 0 : sections.map(function (_a, i) {
44
+ var layoutType = _a.layoutType, props = __rest(_a, ["layoutType"]);
45
+ return (react_1.default.createElement(SectionContainer_1.SectionContainer, __assign({ key: i }, props, { layoutType: layoutType, contextName: contextName })));
46
+ }))));
47
+ };
48
+ exports.default = SectionRender;
49
+ var templateObject_1;
50
+ //# sourceMappingURL=SectionRender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionRender.js","sourceRoot":"","sources":["../../../../src/Components/Templates/SectionRender.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,mCAAuC;AACvC,uEAA0D;AAE1D,yCAGsB;AAEtB,kFAAgF;AAEhF,IAAM,WAAW,GAAG,IAAA,gBAAM,EAAC,eAAK,CAAC,uFAAA,oBAEhC,IAAA,CAAA;AAMD,IAAM,aAAa,GAAiC,UAAC,EAAe;QAAb,WAAW,iBAAA;IAC1D,IAAA,KAAuB,IAAA,2BAAiB,EAC5C,WAAW,CACwB,EAF7B,MAAM,YAAA,EAAE,QAAQ,cAEa,CAAA;IAErC,OAAO,CACL;QACE,8BAAC,0BAAM,eAAK,MAAM,EAAI;QACtB,8BAAC,WAAW,QACT,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,UAAC,EAAwB,EAAE,CAAC;YAAzB,IAAA,UAAU,gBAAA,EAAK,KAAK,cAAtB,cAAwB,CAAF;YACpC,OAAO,CACL,8BAAC,mCAAgB,aACf,GAAG,EAAE,CAAC,IACF,KAAK,IACT,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,IACxB,CACH,CAAA;QACH,CAAC,CAAC,CACU,CACb,CACJ,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,aAAa,CAAA"}
@@ -16,6 +16,7 @@ import { AccountDeletionSuccessRender } from './AccountDeletionSuccessRender';
16
16
  import { AccountDeletionErrorRender } from './AccountDeletionErrorRender';
17
17
  import { FamilyRender } from './FamilyRender';
18
18
  import { UserHubRender } from './UserHubRender';
19
+ import CancellationStepperRender from './CancellationStepperRender';
19
20
  export * from './types';
20
- export { DynamicPage, DisplayRenderer, EditRenderer, editComponentMap, broadcastingOnlyEditComponentMap, CancellationRender, PaymentRender, SubscriptionAndBillingRender, HolidayStopRender, AddRenderer, addComponentMap, HolidayStopListRender, PaymentMethodsRender, NewslettersRender, FamilyRender, UserHubRender, AccountDeletionRender, ConfirmAccountDeletionRender, AccountDeletionSuccessRender, AccountDeletionErrorRender, };
21
+ export { DynamicPage, DisplayRenderer, EditRenderer, editComponentMap, broadcastingOnlyEditComponentMap, CancellationRender, PaymentRender, SubscriptionAndBillingRender, HolidayStopRender, AddRenderer, addComponentMap, HolidayStopListRender, PaymentMethodsRender, NewslettersRender, FamilyRender, UserHubRender, CancellationStepperRender, AccountDeletionRender, ConfirmAccountDeletionRender, AccountDeletionSuccessRender, AccountDeletionErrorRender, };
21
22
  export default Layout;
@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.AccountDeletionErrorRender = exports.AccountDeletionSuccessRender = exports.ConfirmAccountDeletionRender = exports.AccountDeletionRender = exports.UserHubRender = exports.FamilyRender = exports.NewslettersRender = exports.PaymentMethodsRender = exports.HolidayStopListRender = exports.addComponentMap = exports.AddRenderer = exports.HolidayStopRender = exports.SubscriptionAndBillingRender = exports.PaymentRender = exports.CancellationRender = exports.broadcastingOnlyEditComponentMap = exports.editComponentMap = exports.EditRenderer = exports.DisplayRenderer = exports.DynamicPage = void 0;
32
+ exports.AccountDeletionErrorRender = exports.AccountDeletionSuccessRender = exports.ConfirmAccountDeletionRender = exports.AccountDeletionRender = exports.CancellationStepperRender = exports.UserHubRender = exports.FamilyRender = exports.NewslettersRender = exports.PaymentMethodsRender = exports.HolidayStopListRender = exports.addComponentMap = exports.AddRenderer = exports.HolidayStopRender = exports.SubscriptionAndBillingRender = exports.PaymentRender = exports.CancellationRender = exports.broadcastingOnlyEditComponentMap = exports.editComponentMap = exports.EditRenderer = exports.DisplayRenderer = exports.DynamicPage = void 0;
33
33
  var LayoutTemplate_1 = require("./LayoutTemplate");
34
34
  var DisplayRenderer_1 = __importDefault(require("./DisplayRenderer"));
35
35
  exports.DisplayRenderer = DisplayRenderer_1.default;
@@ -68,6 +68,8 @@ var FamilyRender_1 = require("./FamilyRender");
68
68
  Object.defineProperty(exports, "FamilyRender", { enumerable: true, get: function () { return FamilyRender_1.FamilyRender; } });
69
69
  var UserHubRender_1 = require("./UserHubRender");
70
70
  Object.defineProperty(exports, "UserHubRender", { enumerable: true, get: function () { return UserHubRender_1.UserHubRender; } });
71
+ var CancellationStepperRender_1 = __importDefault(require("./CancellationStepperRender"));
72
+ exports.CancellationStepperRender = CancellationStepperRender_1.default;
71
73
  __exportStar(require("./types"), exports);
72
74
  exports.default = LayoutTemplate_1.LayoutTemplate;
73
75
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Components/Templates/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAA2D;AAC3D,sEAA+C;AAwB7C,0BAxBK,yBAAe,CAwBL;AAvBjB,6CAA2C;AAsBzC,4FAtBO,yBAAW,OAsBP;AArBb,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AAtBpB,kEAA2C;AAuBzC,wBAvBK,uBAAa,CAuBL;AAtBf,gGAAyE;AAuBvE,uCAvBK,sCAA4B,CAuBL;AAtB9B,yDAAuD;AAuBrD,kGAvBO,qCAAiB,OAuBP;AAtBnB,uDAA0D;AAuBxD,sBAvBK,mBAAW,CAuBL;AACX,gGAxBoB,2BAAe,OAwBpB;AAvBjB,iEAA+D;AAwB7D,sGAxBO,6CAAqB,OAwBP;AAvBvB,+DAA6D;AAwB3D,qGAxBO,2CAAoB,OAwBP;AAvBtB,yDAAuD;AAwBrD,kGAxBO,qCAAiB,OAwBP;AAvBnB,iFAAuE;AA2BrE,sGA3BO,qDAAqB,OA2BP;AA1BvB,+EAA6E;AA2B3E,6GA3BO,2DAA4B,OA2BP;AA1B9B,+EAA6E;AA2B3E,6GA3BO,2DAA4B,OA2BP;AA1B9B,2EAAyE;AA2BvE,2GA3BO,uDAA0B,OA2BP;AA1B5B,+CAA6C;AAoB3C,6FApBO,2BAAY,OAoBP;AAnBd,iDAA+C;AAoB7C,8FApBO,6BAAa,OAoBP;AAnBf,0FAAmE;AAoBjE,oCApBK,mCAAyB,CAoBL;AAlB3B,0CAAuB;AAwBvB,kBAAe,+BAAM,CAAA"}
@@ -1,2 +1,3 @@
1
1
  import { NextApiRequest, NextApiResponse } from 'next';
2
- export declare const authorizeAPi: (req: NextApiRequest, res: NextApiResponse, goToUrl?: string) => Promise<void>;
2
+ import { AuthorizeUri } from '../providers';
3
+ export declare const authorizeAPI: (req: NextApiRequest, res: NextApiResponse, goToUrl?: string) => Promise<AuthorizeUri | undefined>;
@@ -36,11 +36,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.authorizeAPi = void 0;
39
+ exports.authorizeAPI = void 0;
40
40
  var cookie_1 = require("cookie");
41
41
  var api_1 = require("@newskit-render/api");
42
42
  var providers_1 = require("../providers");
43
- var authorizeAPi = function (req, res, goToUrl) { return __awaiter(void 0, void 0, void 0, function () {
43
+ var authorizeAPI = function (req, res, goToUrl) { return __awaiter(void 0, void 0, void 0, function () {
44
44
  var apolloClient, _a, stepUpMfaToken, stepUpProvider, err_1;
45
45
  return __generator(this, function (_b) {
46
46
  switch (_b.label) {
@@ -58,22 +58,17 @@ var authorizeAPi = function (req, res, goToUrl) { return __awaiter(void 0, void
58
58
  })];
59
59
  case 3:
60
60
  stepUpProvider = _b.sent();
61
- if (stepUpProvider.data.authorizeUri.success) {
62
- res.status(200);
63
- res.json(stepUpProvider.data);
64
- res.end();
65
- return [2 /*return*/];
61
+ if (stepUpProvider.data.authorizeUri.success ||
62
+ !stepUpProvider.data.user.email) {
63
+ return [2 /*return*/, stepUpProvider.data];
66
64
  }
67
- res.status(400);
68
- res.json({ error: stepUpProvider.data.authorizeUri.errorMessage });
69
- res.end();
70
- return [2 /*return*/];
65
+ throw new Error(stepUpProvider.data.authorizeUri.errorMessage ||
66
+ 'Encountered error during authorisation');
71
67
  case 4:
72
68
  err_1 = _b.sent();
73
69
  res.status(400);
74
70
  res.json({ error: err_1 });
75
- res.end();
76
- return [2 /*return*/];
71
+ return [3 /*break*/, 5];
77
72
  case 5:
78
73
  res.status(200);
79
74
  res.end();
@@ -81,5 +76,5 @@ var authorizeAPi = function (req, res, goToUrl) { return __awaiter(void 0, void
81
76
  }
82
77
  });
83
78
  }); };
84
- exports.authorizeAPi = authorizeAPi;
79
+ exports.authorizeAPI = authorizeAPI;
85
80
  //# sourceMappingURL=authorization.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../../src/api/authorization.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA8B;AAC9B,2CAAqE;AAErE,0CAAgD;AAEzC,IAAM,YAAY,GAAG,UAC1B,GAAmB,EACnB,GAAoB,EACpB,OAAgB;;;;oBAEK,qBAAM,IAAA,wBAAkB,EAC3C,iBAAW,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GAAG,CAAC,GAAG,EAAE,CAAA;gBACT,sBAAM;;;KACP,CAAA;AAvCY,QAAA,YAAY,gBAuCxB"}
@@ -57,7 +57,7 @@ var constants_1 = require("../constants");
57
57
  var mutateHandlerHelpers_1 = require("./mutateHandlerHelpers");
58
58
  var authorization_1 = require("./authorization");
59
59
  var mutateHandler = function (req, res, validationSchema, options) { return __awaiter(void 0, void 0, void 0, function () {
60
- var parsedData, validationSchemaKey, data, fieldSchema, _a, stepUpMfaToken, _b, errorMessage, _c, errorMessage, sanitizedDataObject, apolloClient, result, postcode;
60
+ var parsedData, validationSchemaKey, data, fieldSchema, _a, stepUpMfaToken, authRes, _b, errorMessage, _c, errorMessage, sanitizedDataObject, apolloClient, result, postcode;
61
61
  var _d;
62
62
  return __generator(this, function (_e) {
63
63
  switch (_e.label) {
@@ -77,8 +77,16 @@ var mutateHandler = function (req, res, validationSchema, options) { return __aw
77
77
  _e.label = 1;
78
78
  case 1:
79
79
  _e.trys.push([1, 3, , 4]);
80
- return [4 /*yield*/, (0, authorization_1.authorizeAPi)(req, res, options === null || options === void 0 ? void 0 : options.mfaGoToUrl)];
81
- case 2: return [2 /*return*/, _e.sent()];
80
+ return [4 /*yield*/, (0, authorization_1.authorizeAPI)(req, res, options === null || options === void 0 ? void 0 : options.mfaGoToUrl)];
81
+ case 2:
82
+ authRes = _e.sent();
83
+ if (authRes === null || authRes === void 0 ? void 0 : authRes.user.email) {
84
+ res.status(200);
85
+ res.json(authRes);
86
+ res.end();
87
+ return [2 /*return*/];
88
+ }
89
+ return [3 /*break*/, 4];
82
90
  case 3:
83
91
  _b = _e.sent();
84
92
  errorMessage = _b.message;
@@ -1 +1 @@
1
- {"version":3,"file":"mutateHandler.js","sourceRoot":"","sources":["../../../src/api/mutateHandler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iCAA8B;AAC9B,sCAA+C;AAC/C,2CAAqE;AACrE,yDAAkE;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GAAG,EACH,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,CACb,EAAA;;gBALD,MAAM,GAAG,SAKR,CAAA;;;gBAGH,IAAI,CAAC;oBACH,IAAA,oCAAa,EAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;oBAC1C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;oBACf,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;gBACjC,CAAC;gBAAC,OAAO,GAAG,EAAE,CAAC;oBACb,IAAA,yCAAkB,EAAC,GAAG,EAAE,GAAG,EAAE,mBAAmB,EAAE,IAAI,CAAC,CAAA;gBACzD,CAAC;;;;KACF,CAAA;AApGY,QAAA,aAAa,iBAoGzB"}
@@ -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,qBAAa,EACtC,IAAI,CACL;IACD,GAAC,mBAAW,CAAC,oBAAoB,IAC/B,IAAA,qBAAa,EAA0C,IAAI,CAAC;IAC9D,GAAC,mBAAW,CAAC,SAAS,IACpB,IAAA,qBAAa,EAA0C,IAAI,CAAC;IAC9D,GAAC,mBAAW,CAAC,OAAO,IAAG,IAAA,qBAAa,EAAmC,IAAI,CAAC;IAC5E,GAAC,mBAAW,CAAC,SAAS,IAAG,IAAA,qBAAa,EAAiC,IAAI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