@newskit-render/my-account 7.142.2-6106b2dde.0 → 7.143.1-0ca4599dd.11

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 (354) hide show
  1. package/dist/cjs/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.d.ts +6 -0
  2. package/dist/cjs/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.js +66 -0
  3. package/dist/cjs/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.js.map +1 -0
  4. package/dist/cjs/Components/Elements/CancelSubscriptionModal/index.d.ts +1 -0
  5. package/dist/cjs/Components/Elements/CancelSubscriptionModal/index.js +18 -0
  6. package/dist/cjs/Components/Elements/CancelSubscriptionModal/index.js.map +1 -0
  7. package/dist/cjs/Components/Elements/CancellationButtons/CancellationButtons.d.ts +7 -0
  8. package/dist/cjs/Components/Elements/CancellationButtons/CancellationButtons.js +43 -0
  9. package/dist/cjs/Components/Elements/CancellationButtons/CancellationButtons.js.map +1 -0
  10. package/dist/cjs/Components/Elements/CancellationButtons/index.d.ts +1 -0
  11. package/dist/cjs/Components/Elements/CancellationButtons/index.js +18 -0
  12. package/dist/cjs/Components/Elements/CancellationButtons/index.js.map +1 -0
  13. package/dist/cjs/Components/Elements/CancellationPolicy/CancellationPolicy.d.ts +13 -0
  14. package/dist/cjs/Components/Elements/CancellationPolicy/CancellationPolicy.js +36 -0
  15. package/dist/cjs/Components/Elements/CancellationPolicy/CancellationPolicy.js.map +1 -0
  16. package/dist/cjs/Components/Elements/CancellationPolicy/index.d.ts +1 -0
  17. package/dist/cjs/Components/Elements/CancellationPolicy/index.js +6 -0
  18. package/dist/cjs/Components/Elements/CancellationPolicy/index.js.map +1 -0
  19. package/dist/cjs/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.d.ts +19 -0
  20. package/dist/cjs/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js +42 -0
  21. package/dist/cjs/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js.map +1 -0
  22. package/dist/cjs/Components/Elements/CancellationReasonSelector/index.d.ts +1 -0
  23. package/dist/cjs/Components/Elements/CancellationReasonSelector/index.js +6 -0
  24. package/dist/cjs/Components/Elements/CancellationReasonSelector/index.js.map +1 -0
  25. package/dist/cjs/Components/Elements/NewsletterCard/NewsletterCard.js +1 -1
  26. package/dist/cjs/Components/Elements/NewsletterCard/NewsletterCard.js.map +1 -1
  27. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.js +6 -5
  28. package/dist/cjs/Components/Elements/SectionListItem/SectionListItem.js.map +1 -1
  29. package/dist/cjs/Components/Elements/SectionListItem/types.d.ts +2 -0
  30. package/dist/cjs/Components/Elements/SunArticleCard/SunArticleCard.d.ts +23 -0
  31. package/dist/cjs/Components/Elements/SunArticleCard/SunArticleCard.js +39 -0
  32. package/dist/cjs/Components/Elements/SunArticleCard/SunArticleCard.js.map +1 -0
  33. package/dist/cjs/Components/Elements/SunArticleCard/index.d.ts +1 -0
  34. package/dist/cjs/Components/Elements/SunArticleCard/index.js +6 -0
  35. package/dist/cjs/Components/Elements/SunArticleCard/index.js.map +1 -0
  36. package/dist/cjs/Components/Elements/SunArticleGrid/SunArticleGrid.d.ts +12 -0
  37. package/dist/cjs/Components/Elements/SunArticleGrid/SunArticleGrid.js +27 -0
  38. package/dist/cjs/Components/Elements/SunArticleGrid/SunArticleGrid.js.map +1 -0
  39. package/dist/cjs/Components/Elements/SunArticleGrid/index.d.ts +1 -0
  40. package/dist/cjs/Components/Elements/SunArticleGrid/index.js +6 -0
  41. package/dist/cjs/Components/Elements/SunArticleGrid/index.js.map +1 -0
  42. package/dist/cjs/Components/Elements/SunOfferCard/SunOfferCard.d.ts +21 -0
  43. package/dist/cjs/Components/Elements/SunOfferCard/SunOfferCard.js +38 -0
  44. package/dist/cjs/Components/Elements/SunOfferCard/SunOfferCard.js.map +1 -0
  45. package/dist/cjs/Components/Elements/SunOfferCard/index.d.ts +1 -0
  46. package/dist/cjs/Components/Elements/SunOfferCard/index.js +6 -0
  47. package/dist/cjs/Components/Elements/SunOfferCard/index.js.map +1 -0
  48. package/dist/cjs/Components/Elements/SunOfferGrid/SunOfferGrid.d.ts +12 -0
  49. package/dist/cjs/Components/Elements/SunOfferGrid/SunOfferGrid.js +27 -0
  50. package/dist/cjs/Components/Elements/SunOfferGrid/SunOfferGrid.js.map +1 -0
  51. package/dist/cjs/Components/Elements/SunOfferGrid/index.d.ts +1 -0
  52. package/dist/cjs/Components/Elements/SunOfferGrid/index.js +6 -0
  53. package/dist/cjs/Components/Elements/SunOfferGrid/index.js.map +1 -0
  54. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.d.ts +1 -1
  55. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.js +8 -53
  56. package/dist/cjs/Components/Sections/CancelSubscription/CancelSubscription.js.map +1 -1
  57. package/dist/cjs/Components/Sections/CancelSubscription/types.d.ts +2 -0
  58. package/dist/cjs/Components/Sections/CancellationReasons/CancellationReasons.d.ts +2 -1
  59. package/dist/cjs/Components/Sections/CancellationReasons/CancellationReasons.js +15 -3
  60. package/dist/cjs/Components/Sections/CancellationReasons/CancellationReasons.js.map +1 -1
  61. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js +1 -1
  62. package/dist/cjs/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  63. package/dist/cjs/Components/Sections/ContactSupport/ContactSupport.d.ts +2 -0
  64. package/dist/cjs/Components/Sections/ContactSupport/ContactSupport.js +43 -0
  65. package/dist/cjs/Components/Sections/ContactSupport/ContactSupport.js.map +1 -0
  66. package/dist/cjs/Components/Sections/ContactSupport/index.d.ts +2 -0
  67. package/dist/cjs/Components/Sections/ContactSupport/index.js +19 -0
  68. package/dist/cjs/Components/Sections/ContactSupport/index.js.map +1 -0
  69. package/dist/cjs/Components/Sections/ContactSupport/types.d.ts +21 -0
  70. package/dist/cjs/Components/Sections/ContactSupport/types.js +3 -0
  71. package/dist/cjs/Components/Sections/ContactSupport/types.js.map +1 -0
  72. package/dist/cjs/Components/Sections/ContentContainer/BelowContentExtra.js +1 -1
  73. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js +98 -56
  74. package/dist/cjs/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  75. package/dist/cjs/Components/Sections/ContentContainer/PaginationButton.d.ts +11 -0
  76. package/dist/cjs/Components/Sections/ContentContainer/{InvoiceHistoryButton.js → PaginationButton.js} +13 -16
  77. package/dist/cjs/Components/Sections/ContentContainer/PaginationButton.js.map +1 -0
  78. package/dist/cjs/Components/Sections/ContentContainer/types.d.ts +4 -3
  79. package/dist/cjs/Components/Sections/Form/Vouchers/Vouchers.js +1 -1
  80. package/dist/cjs/Components/Sections/Form/Vouchers/Vouchers.js.map +1 -1
  81. package/dist/cjs/Components/Sections/NavigationSecondary/NavigationSecondary.js +1 -0
  82. package/dist/cjs/Components/Sections/NavigationSecondary/NavigationSecondary.js.map +1 -1
  83. package/dist/cjs/Components/Sections/SectionContainer/ListSection.js +11 -1
  84. package/dist/cjs/Components/Sections/SectionContainer/ListSection.js.map +1 -1
  85. package/dist/cjs/Components/Sections/SectionContainer/types.d.ts +2 -2
  86. package/dist/cjs/Components/Sections/SectionContainer/utils.js +7 -6
  87. package/dist/cjs/Components/Sections/SectionContainer/utils.js.map +1 -1
  88. package/dist/cjs/Components/Sections/UserHub/BaseSection.d.ts +3 -0
  89. package/dist/cjs/Components/Sections/UserHub/BaseSection.js +13 -3
  90. package/dist/cjs/Components/Sections/UserHub/BaseSection.js.map +1 -1
  91. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js +1 -1
  92. package/dist/cjs/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  93. package/dist/cjs/Components/Sections/UserHub/SubscriptionDetailsSection.d.ts +6 -0
  94. package/dist/cjs/Components/Sections/UserHub/SubscriptionDetailsSection.js +54 -0
  95. package/dist/cjs/Components/Sections/UserHub/SubscriptionDetailsSection.js.map +1 -0
  96. package/dist/cjs/Components/Templates/CancellationStepperRender.d.ts +2 -1
  97. package/dist/cjs/Components/Templates/CancellationStepperRender.js +7 -0
  98. package/dist/cjs/Components/Templates/CancellationStepperRender.js.map +1 -1
  99. package/dist/cjs/Components/Templates/DisplayRenderer.js +1 -1
  100. package/dist/cjs/Components/Templates/DisplayRenderer.js.map +1 -1
  101. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js +1 -1
  102. package/dist/cjs/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  103. package/dist/cjs/Components/Templates/SunCancellationFlowRender.d.ts +3 -0
  104. package/dist/cjs/Components/Templates/SunCancellationFlowRender.js +111 -0
  105. package/dist/cjs/Components/Templates/SunCancellationFlowRender.js.map +1 -0
  106. package/dist/cjs/Components/Templates/UserHubRender.js +5 -11
  107. package/dist/cjs/Components/Templates/UserHubRender.js.map +1 -1
  108. package/dist/cjs/Components/index.d.ts +1 -0
  109. package/dist/cjs/context/index.d.ts +3 -2
  110. package/dist/cjs/context/index.js +1 -0
  111. package/dist/cjs/context/index.js.map +1 -1
  112. package/dist/cjs/context/types.d.ts +18 -3
  113. package/dist/cjs/context/types.js +1 -0
  114. package/dist/cjs/context/types.js.map +1 -1
  115. package/dist/cjs/helpers/dataUtils.d.ts +2 -4
  116. package/dist/cjs/helpers/dataUtils.js +18 -15
  117. package/dist/cjs/helpers/dataUtils.js.map +1 -1
  118. package/dist/cjs/helpers/entitlementUtils.d.ts +2 -2
  119. package/dist/cjs/helpers/entitlementUtils.js +4 -7
  120. package/dist/cjs/helpers/entitlementUtils.js.map +1 -1
  121. package/dist/cjs/helpers/index.d.ts +0 -1
  122. package/dist/cjs/helpers/index.js +0 -1
  123. package/dist/cjs/helpers/index.js.map +1 -1
  124. package/dist/cjs/helpers/providerUtilsTimes.js +3 -2
  125. package/dist/cjs/helpers/providerUtilsTimes.js.map +1 -1
  126. package/dist/cjs/hooks/index.d.ts +1 -0
  127. package/dist/cjs/hooks/index.js +1 -0
  128. package/dist/cjs/hooks/index.js.map +1 -1
  129. package/dist/cjs/hooks/useCancelSubscriptionModal.d.ts +6 -0
  130. package/dist/cjs/hooks/useCancelSubscriptionModal.js +31 -0
  131. package/dist/cjs/hooks/useCancelSubscriptionModal.js.map +1 -0
  132. package/dist/cjs/index.d.ts +7 -1
  133. package/dist/cjs/index.js +5 -0
  134. package/dist/cjs/index.js.map +1 -1
  135. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js +189 -15
  136. package/dist/cjs/pages/CancellationStepper/CancellationStepperContext.js.map +1 -1
  137. package/dist/cjs/pages/HolidayStop/HolidayStopContext.js +1 -1
  138. package/dist/cjs/pages/HolidayStop/HolidayStopContext.js.map +1 -1
  139. package/dist/cjs/pages/HolidayStopList/HolidayStopListContext.js +1 -1
  140. package/dist/cjs/pages/HolidayStopList/HolidayStopListContext.js.map +1 -1
  141. package/dist/cjs/pages/Newsletters/NewslettersContext.js +3 -3
  142. package/dist/cjs/pages/Newsletters/NewslettersContext.js.map +1 -1
  143. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +16 -0
  144. package/dist/cjs/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -1
  145. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +45 -0
  146. package/dist/cjs/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  147. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlow.d.ts +7 -0
  148. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlow.js +34 -0
  149. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlow.js.map +1 -0
  150. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlowContext.d.ts +215 -0
  151. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlowContext.js +259 -0
  152. package/dist/cjs/pages/SunCancellationFlow/SunCancellationFlowContext.js.map +1 -0
  153. package/dist/cjs/pages/SunCancellationFlow/index.d.ts +2 -0
  154. package/dist/cjs/pages/SunCancellationFlow/index.js +19 -0
  155. package/dist/cjs/pages/SunCancellationFlow/index.js.map +1 -0
  156. package/dist/cjs/pages/UserHub/UserHubContext.js +65 -0
  157. package/dist/cjs/pages/UserHub/UserHubContext.js.map +1 -1
  158. package/dist/cjs/pages/types.d.ts +10 -0
  159. package/dist/cjs/providers/index.d.ts +1 -0
  160. package/dist/cjs/providers/index.js +1 -0
  161. package/dist/cjs/providers/index.js.map +1 -1
  162. package/dist/cjs/providers/sunCancellationProvider.d.ts +1 -0
  163. package/dist/cjs/providers/sunCancellationProvider.js +6 -0
  164. package/dist/cjs/providers/sunCancellationProvider.js.map +1 -0
  165. package/dist/cjs/queries/getContractPhases.d.ts +1 -0
  166. package/dist/cjs/queries/getContractPhases.js +11 -0
  167. package/dist/cjs/queries/getContractPhases.js.map +1 -0
  168. package/dist/cjs/queries/getPropositionFeatures.d.ts +1 -0
  169. package/dist/cjs/queries/getPropositionFeatures.js +11 -0
  170. package/dist/cjs/queries/getPropositionFeatures.js.map +1 -0
  171. package/dist/cjs/queries/getUserSubscription.js +3 -1
  172. package/dist/cjs/queries/getUserSubscription.js.map +1 -1
  173. package/dist/cjs/queries/getUserWithNewsletters.js +4 -1
  174. package/dist/cjs/queries/getUserWithNewsletters.js.map +1 -1
  175. package/dist/esm/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.d.ts +6 -0
  176. package/dist/esm/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.js +59 -0
  177. package/dist/esm/Components/Elements/CancelSubscriptionModal/CancelSubscriptionModal.js.map +1 -0
  178. package/dist/esm/Components/Elements/CancelSubscriptionModal/index.d.ts +1 -0
  179. package/dist/esm/Components/Elements/CancelSubscriptionModal/index.js +2 -0
  180. package/dist/esm/Components/Elements/CancelSubscriptionModal/index.js.map +1 -0
  181. package/dist/esm/Components/Elements/CancellationButtons/CancellationButtons.d.ts +7 -0
  182. package/dist/esm/Components/Elements/CancellationButtons/CancellationButtons.js +36 -0
  183. package/dist/esm/Components/Elements/CancellationButtons/CancellationButtons.js.map +1 -0
  184. package/dist/esm/Components/Elements/CancellationButtons/index.d.ts +1 -0
  185. package/dist/esm/Components/Elements/CancellationButtons/index.js +2 -0
  186. package/dist/esm/Components/Elements/CancellationButtons/index.js.map +1 -0
  187. package/dist/esm/Components/Elements/CancellationPolicy/CancellationPolicy.d.ts +13 -0
  188. package/dist/esm/Components/Elements/CancellationPolicy/CancellationPolicy.js +29 -0
  189. package/dist/esm/Components/Elements/CancellationPolicy/CancellationPolicy.js.map +1 -0
  190. package/dist/esm/Components/Elements/CancellationPolicy/index.d.ts +1 -0
  191. package/dist/esm/Components/Elements/CancellationPolicy/index.js +2 -0
  192. package/dist/esm/Components/Elements/CancellationPolicy/index.js.map +1 -0
  193. package/dist/esm/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.d.ts +19 -0
  194. package/dist/esm/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js +35 -0
  195. package/dist/esm/Components/Elements/CancellationReasonSelector/CancellationReasonSelector.js.map +1 -0
  196. package/dist/esm/Components/Elements/CancellationReasonSelector/index.d.ts +1 -0
  197. package/dist/esm/Components/Elements/CancellationReasonSelector/index.js +2 -0
  198. package/dist/esm/Components/Elements/CancellationReasonSelector/index.js.map +1 -0
  199. package/dist/esm/Components/Elements/NewsletterCard/NewsletterCard.js +1 -1
  200. package/dist/esm/Components/Elements/NewsletterCard/NewsletterCard.js.map +1 -1
  201. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js +6 -5
  202. package/dist/esm/Components/Elements/SectionListItem/SectionListItem.js.map +1 -1
  203. package/dist/esm/Components/Elements/SectionListItem/types.d.ts +2 -0
  204. package/dist/esm/Components/Elements/SunArticleCard/SunArticleCard.d.ts +23 -0
  205. package/dist/esm/Components/Elements/SunArticleCard/SunArticleCard.js +32 -0
  206. package/dist/esm/Components/Elements/SunArticleCard/SunArticleCard.js.map +1 -0
  207. package/dist/esm/Components/Elements/SunArticleCard/index.d.ts +1 -0
  208. package/dist/esm/Components/Elements/SunArticleCard/index.js +2 -0
  209. package/dist/esm/Components/Elements/SunArticleCard/index.js.map +1 -0
  210. package/dist/esm/Components/Elements/SunArticleGrid/SunArticleGrid.d.ts +12 -0
  211. package/dist/esm/Components/Elements/SunArticleGrid/SunArticleGrid.js +20 -0
  212. package/dist/esm/Components/Elements/SunArticleGrid/SunArticleGrid.js.map +1 -0
  213. package/dist/esm/Components/Elements/SunArticleGrid/index.d.ts +1 -0
  214. package/dist/esm/Components/Elements/SunArticleGrid/index.js +2 -0
  215. package/dist/esm/Components/Elements/SunArticleGrid/index.js.map +1 -0
  216. package/dist/esm/Components/Elements/SunOfferCard/SunOfferCard.d.ts +21 -0
  217. package/dist/esm/Components/Elements/SunOfferCard/SunOfferCard.js +31 -0
  218. package/dist/esm/Components/Elements/SunOfferCard/SunOfferCard.js.map +1 -0
  219. package/dist/esm/Components/Elements/SunOfferCard/index.d.ts +1 -0
  220. package/dist/esm/Components/Elements/SunOfferCard/index.js +2 -0
  221. package/dist/esm/Components/Elements/SunOfferCard/index.js.map +1 -0
  222. package/dist/esm/Components/Elements/SunOfferGrid/SunOfferGrid.d.ts +12 -0
  223. package/dist/esm/Components/Elements/SunOfferGrid/SunOfferGrid.js +20 -0
  224. package/dist/esm/Components/Elements/SunOfferGrid/SunOfferGrid.js.map +1 -0
  225. package/dist/esm/Components/Elements/SunOfferGrid/index.d.ts +1 -0
  226. package/dist/esm/Components/Elements/SunOfferGrid/index.js +2 -0
  227. package/dist/esm/Components/Elements/SunOfferGrid/index.js.map +1 -0
  228. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.d.ts +1 -1
  229. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js +10 -55
  230. package/dist/esm/Components/Sections/CancelSubscription/CancelSubscription.js.map +1 -1
  231. package/dist/esm/Components/Sections/CancelSubscription/types.d.ts +2 -0
  232. package/dist/esm/Components/Sections/CancellationReasons/CancellationReasons.d.ts +2 -1
  233. package/dist/esm/Components/Sections/CancellationReasons/CancellationReasons.js +13 -2
  234. package/dist/esm/Components/Sections/CancellationReasons/CancellationReasons.js.map +1 -1
  235. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js +2 -2
  236. package/dist/esm/Components/Sections/CardContentContainer/CardContentContainer.js.map +1 -1
  237. package/dist/esm/Components/Sections/ContactSupport/ContactSupport.d.ts +2 -0
  238. package/dist/esm/Components/Sections/ContactSupport/ContactSupport.js +36 -0
  239. package/dist/esm/Components/Sections/ContactSupport/ContactSupport.js.map +1 -0
  240. package/dist/esm/Components/Sections/ContactSupport/index.d.ts +2 -0
  241. package/dist/esm/Components/Sections/ContactSupport/index.js +3 -0
  242. package/dist/esm/Components/Sections/ContactSupport/index.js.map +1 -0
  243. package/dist/esm/Components/Sections/ContactSupport/types.d.ts +21 -0
  244. package/dist/esm/Components/Sections/ContactSupport/types.js +2 -0
  245. package/dist/esm/Components/Sections/ContactSupport/types.js.map +1 -0
  246. package/dist/esm/Components/Sections/ContentContainer/BelowContentExtra.js +1 -1
  247. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js +99 -57
  248. package/dist/esm/Components/Sections/ContentContainer/ContentContainer.js.map +1 -1
  249. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.d.ts +11 -0
  250. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.js +37 -0
  251. package/dist/esm/Components/Sections/ContentContainer/PaginationButton.js.map +1 -0
  252. package/dist/esm/Components/Sections/ContentContainer/types.d.ts +4 -3
  253. package/dist/esm/Components/Sections/Form/Vouchers/Vouchers.js +2 -2
  254. package/dist/esm/Components/Sections/Form/Vouchers/Vouchers.js.map +1 -1
  255. package/dist/esm/Components/Sections/NavigationSecondary/NavigationSecondary.js +1 -0
  256. package/dist/esm/Components/Sections/NavigationSecondary/NavigationSecondary.js.map +1 -1
  257. package/dist/esm/Components/Sections/SectionContainer/ListSection.js +12 -2
  258. package/dist/esm/Components/Sections/SectionContainer/ListSection.js.map +1 -1
  259. package/dist/esm/Components/Sections/SectionContainer/types.d.ts +2 -2
  260. package/dist/esm/Components/Sections/SectionContainer/utils.js +7 -6
  261. package/dist/esm/Components/Sections/SectionContainer/utils.js.map +1 -1
  262. package/dist/esm/Components/Sections/UserHub/BaseSection.d.ts +3 -0
  263. package/dist/esm/Components/Sections/UserHub/BaseSection.js +12 -2
  264. package/dist/esm/Components/Sections/UserHub/BaseSection.js.map +1 -1
  265. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js +1 -1
  266. package/dist/esm/Components/Sections/UserHub/NewslettersSection.js.map +1 -1
  267. package/dist/esm/Components/Sections/UserHub/SubscriptionDetailsSection.d.ts +6 -0
  268. package/dist/esm/Components/Sections/UserHub/SubscriptionDetailsSection.js +47 -0
  269. package/dist/esm/Components/Sections/UserHub/SubscriptionDetailsSection.js.map +1 -0
  270. package/dist/esm/Components/Templates/CancellationStepperRender.d.ts +2 -1
  271. package/dist/esm/Components/Templates/CancellationStepperRender.js +7 -0
  272. package/dist/esm/Components/Templates/CancellationStepperRender.js.map +1 -1
  273. package/dist/esm/Components/Templates/DisplayRenderer.js +1 -1
  274. package/dist/esm/Components/Templates/DisplayRenderer.js.map +1 -1
  275. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js +2 -2
  276. package/dist/esm/Components/Templates/SubscriptionAndBillingRender.js.map +1 -1
  277. package/dist/esm/Components/Templates/SunCancellationFlowRender.d.ts +3 -0
  278. package/dist/esm/Components/Templates/SunCancellationFlowRender.js +86 -0
  279. package/dist/esm/Components/Templates/SunCancellationFlowRender.js.map +1 -0
  280. package/dist/esm/Components/Templates/UserHubRender.js +5 -11
  281. package/dist/esm/Components/Templates/UserHubRender.js.map +1 -1
  282. package/dist/esm/Components/index.d.ts +1 -0
  283. package/dist/esm/context/index.d.ts +3 -2
  284. package/dist/esm/context/index.js +1 -0
  285. package/dist/esm/context/index.js.map +1 -1
  286. package/dist/esm/context/types.d.ts +18 -3
  287. package/dist/esm/context/types.js +1 -0
  288. package/dist/esm/context/types.js.map +1 -1
  289. package/dist/esm/helpers/dataUtils.d.ts +2 -4
  290. package/dist/esm/helpers/dataUtils.js +13 -10
  291. package/dist/esm/helpers/dataUtils.js.map +1 -1
  292. package/dist/esm/helpers/entitlementUtils.d.ts +2 -2
  293. package/dist/esm/helpers/entitlementUtils.js +4 -7
  294. package/dist/esm/helpers/entitlementUtils.js.map +1 -1
  295. package/dist/esm/helpers/index.d.ts +0 -1
  296. package/dist/esm/helpers/index.js +0 -1
  297. package/dist/esm/helpers/index.js.map +1 -1
  298. package/dist/esm/helpers/providerUtilsTimes.js +3 -2
  299. package/dist/esm/helpers/providerUtilsTimes.js.map +1 -1
  300. package/dist/esm/hooks/index.d.ts +1 -0
  301. package/dist/esm/hooks/index.js +1 -0
  302. package/dist/esm/hooks/index.js.map +1 -1
  303. package/dist/esm/hooks/useCancelSubscriptionModal.d.ts +6 -0
  304. package/dist/esm/hooks/useCancelSubscriptionModal.js +27 -0
  305. package/dist/esm/hooks/useCancelSubscriptionModal.js.map +1 -0
  306. package/dist/esm/index.d.ts +7 -1
  307. package/dist/esm/index.js +5 -0
  308. package/dist/esm/index.js.map +1 -1
  309. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js +190 -16
  310. package/dist/esm/pages/CancellationStepper/CancellationStepperContext.js.map +1 -1
  311. package/dist/esm/pages/HolidayStop/HolidayStopContext.js +1 -1
  312. package/dist/esm/pages/HolidayStop/HolidayStopContext.js.map +1 -1
  313. package/dist/esm/pages/HolidayStopList/HolidayStopListContext.js +1 -1
  314. package/dist/esm/pages/HolidayStopList/HolidayStopListContext.js.map +1 -1
  315. package/dist/esm/pages/Newsletters/NewslettersContext.js +3 -3
  316. package/dist/esm/pages/Newsletters/NewslettersContext.js.map +1 -1
  317. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js +16 -0
  318. package/dist/esm/pages/SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext.js.map +1 -1
  319. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js +45 -0
  320. package/dist/esm/pages/SubscriptionAndBilling/SubscriptionAndBillingContext.js.map +1 -1
  321. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlow.d.ts +7 -0
  322. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlow.js +27 -0
  323. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlow.js.map +1 -0
  324. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlowContext.d.ts +215 -0
  325. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlowContext.js +256 -0
  326. package/dist/esm/pages/SunCancellationFlow/SunCancellationFlowContext.js.map +1 -0
  327. package/dist/esm/pages/SunCancellationFlow/index.d.ts +2 -0
  328. package/dist/esm/pages/SunCancellationFlow/index.js +3 -0
  329. package/dist/esm/pages/SunCancellationFlow/index.js.map +1 -0
  330. package/dist/esm/pages/UserHub/UserHubContext.js +65 -0
  331. package/dist/esm/pages/UserHub/UserHubContext.js.map +1 -1
  332. package/dist/esm/pages/types.d.ts +10 -0
  333. package/dist/esm/providers/index.d.ts +1 -0
  334. package/dist/esm/providers/index.js +1 -0
  335. package/dist/esm/providers/index.js.map +1 -1
  336. package/dist/esm/providers/sunCancellationProvider.d.ts +1 -0
  337. package/dist/esm/providers/sunCancellationProvider.js +2 -0
  338. package/dist/esm/providers/sunCancellationProvider.js.map +1 -0
  339. package/dist/esm/queries/getContractPhases.d.ts +1 -0
  340. package/dist/esm/queries/getContractPhases.js +8 -0
  341. package/dist/esm/queries/getContractPhases.js.map +1 -0
  342. package/dist/esm/queries/getPropositionFeatures.d.ts +1 -0
  343. package/dist/esm/queries/getPropositionFeatures.js +8 -0
  344. package/dist/esm/queries/getPropositionFeatures.js.map +1 -0
  345. package/dist/esm/queries/getUserSubscription.js +3 -1
  346. package/dist/esm/queries/getUserSubscription.js.map +1 -1
  347. package/dist/esm/queries/getUserWithNewsletters.js +4 -1
  348. package/dist/esm/queries/getUserWithNewsletters.js.map +1 -1
  349. package/package.json +3 -3
  350. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.d.ts +0 -10
  351. package/dist/cjs/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +0 -1
  352. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.d.ts +0 -10
  353. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js +0 -40
  354. package/dist/esm/Components/Sections/ContentContainer/InvoiceHistoryButton.js.map +0 -1
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { BasePageProps, UserData } from '../types';
3
+ export interface SunCancellationFlowProps extends BasePageProps {
4
+ user: UserData;
5
+ }
6
+ export declare const SunCancellationFlow: React.FC<SunCancellationFlowProps>;
7
+ export default SunCancellationFlow;
@@ -0,0 +1,34 @@
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 __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.SunCancellationFlow = void 0;
18
+ var react_1 = __importDefault(require("react"));
19
+ var lodash_assign_1 = __importDefault(require("lodash.assign"));
20
+ var Templates_1 = __importDefault(require("../../Components/Templates"));
21
+ var SunCancellationFlowContext_1 = require("./SunCancellationFlowContext");
22
+ var types_1 = require("../../context/types");
23
+ var toastFunctions_1 = require("../../helpers/toastFunctions");
24
+ var SunCancellationFlowRender_1 = __importDefault(require("../../Components/Templates/SunCancellationFlowRender"));
25
+ var SunCancellationFlow = function (_a) {
26
+ var customTheme = _a.customTheme, themeDropdownObject = _a.themeDropdownObject, context = _a.context, env = _a.env, user = _a.user, _b = _a.footer, footer = _b === void 0 ? true : _b, _c = _a.sidebar, sidebar = _c === void 0 ? true : _c, requestHeaders = _a.requestHeaders;
27
+ var contextName = types_1.ContextName.SunCancellationFlow;
28
+ var enhancedContext = __assign(__assign({}, (0, lodash_assign_1.default)({}, SunCancellationFlowContext_1.sunCancellationFlowConfig, context)), { userData: user, env: env, handleError: toastFunctions_1.handleError, handleLoading: toastFunctions_1.handleLoading, handleSuccess: toastFunctions_1.handleSuccess, requestHeaders: requestHeaders });
29
+ return (react_1.default.createElement(Templates_1.default, { context: enhancedContext, customTheme: customTheme, themeDropdownObject: themeDropdownObject, contextName: contextName, footer: footer, sidebar: sidebar },
30
+ react_1.default.createElement(SunCancellationFlowRender_1.default, null)));
31
+ };
32
+ exports.SunCancellationFlow = SunCancellationFlow;
33
+ exports.default = exports.SunCancellationFlow;
34
+ //# sourceMappingURL=SunCancellationFlow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SunCancellationFlow.js","sourceRoot":"","sources":["../../../../src/pages/SunCancellationFlow/SunCancellationFlow.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,gDAAyB;AACzB,gEAAkC;AAClC,yEAA+C;AAC/C,2EAAwE;AACxE,6CAAiD;AACjD,+DAIqC;AAErC,mHAA4F;AAMrF,IAAM,mBAAmB,GAAuC,UAAC,EASvE;QARC,WAAW,iBAAA,EACX,mBAAmB,yBAAA,EACnB,OAAO,aAAA,EACP,GAAG,SAAA,EACH,IAAI,UAAA,EACJ,cAAa,EAAb,MAAM,mBAAG,IAAI,KAAA,EACb,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EACd,cAAc,oBAAA;IAEd,IAAM,WAAW,GAAG,mBAAW,CAAC,mBAAmB,CAAA;IAEnD,IAAM,eAAe,yBAChB,IAAA,uBAAM,EAAC,EAAE,EAAE,sDAAyB,EAAE,OAAO,CAAC,KACjD,QAAQ,EAAE,IAAI,EACd,GAAG,KAAA,EACH,WAAW,8BAAA,EACX,aAAa,gCAAA,EACb,aAAa,gCAAA,EACb,cAAc,gBAAA,GACf,CAAA;IAED,OAAO,CACL,8BAAC,mBAAM,IACL,OAAO,EAAE,eAAe,EACxB,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,mBAAmB,EACxC,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO;QAEhB,8BAAC,mCAAyB,OAAG,CACtB,CACV,CAAA;AACH,CAAC,CAAA;AAlCY,QAAA,mBAAmB,uBAkC/B;AAED,kBAAe,2BAAmB,CAAA"}
@@ -0,0 +1,215 @@
1
+ import { ContextName } from '../../context/types';
2
+ export declare const sunCancellationFlowConfig: {
3
+ baseUrl: string;
4
+ navigationPrimary: import("@newskit-render/shared-components").NavigationPrimaryProps;
5
+ navigationSecondary: import("../../Components/Sections/NavigationSecondary").NavigationSecondaryInterface[];
6
+ footer: import("@newskit-render/shared-components").FooterContext;
7
+ contextName: ContextName;
8
+ head: {
9
+ pageTitle: string;
10
+ };
11
+ header: {
12
+ backButton: {
13
+ text: string;
14
+ href: string;
15
+ 'aria-label': string;
16
+ hasIcon: boolean;
17
+ eventContext: {
18
+ event_navigation_name: string;
19
+ event_navigation_action: string;
20
+ event_navigation_label: string;
21
+ };
22
+ };
23
+ backButtonOverrides: {
24
+ typographyPreset: string;
25
+ stylePreset: string;
26
+ paddingBlock: string;
27
+ paddingInline: string;
28
+ minHeight: string;
29
+ minWidth: string;
30
+ };
31
+ };
32
+ showBackButton: boolean;
33
+ componentSequence: {
34
+ Digital: string[];
35
+ };
36
+ components: {
37
+ selectReason: {
38
+ header: {
39
+ title: string;
40
+ description: string;
41
+ titleOverrides: {
42
+ typographyPreset: {
43
+ xs: string;
44
+ md: string;
45
+ };
46
+ };
47
+ descriptionOverrides: {
48
+ typographyPreset: {
49
+ xs: string;
50
+ md: string;
51
+ };
52
+ stylePreset: string;
53
+ };
54
+ };
55
+ stepText: string;
56
+ stepTextOverrides: {
57
+ typographyPreset: string;
58
+ stylePreset: string;
59
+ marginBlockEnd: string;
60
+ };
61
+ childComponents: ({
62
+ type: string;
63
+ reasons: {
64
+ id: string;
65
+ label: string;
66
+ }[];
67
+ policyTitle?: undefined;
68
+ } | {
69
+ type: string;
70
+ policyTitle: string;
71
+ reasons?: undefined;
72
+ })[];
73
+ primaryButton: {
74
+ text: string;
75
+ size: string;
76
+ eventContext: {
77
+ event_navigation_name: string;
78
+ event_navigation_action: string;
79
+ event_navigation_label: string;
80
+ };
81
+ };
82
+ secondaryButton: {
83
+ text: string;
84
+ size: string;
85
+ href: string;
86
+ eventContext: {
87
+ event_navigation_name: string;
88
+ event_navigation_action: string;
89
+ event_navigation_label: string;
90
+ };
91
+ };
92
+ };
93
+ viewOffers: {
94
+ header: {
95
+ title: string;
96
+ description: string;
97
+ titleOverrides: {
98
+ typographyPreset: {
99
+ xs: string;
100
+ md: string;
101
+ };
102
+ };
103
+ descriptionOverrides: {
104
+ typographyPreset: {
105
+ xs: string;
106
+ md: string;
107
+ };
108
+ stylePreset: string;
109
+ };
110
+ };
111
+ stepText: string;
112
+ stepTextOverrides: {
113
+ typographyPreset: string;
114
+ stylePreset: string;
115
+ marginBlockEnd: string;
116
+ };
117
+ childComponents: ({
118
+ type: string;
119
+ offers: {
120
+ id: string;
121
+ headline: string;
122
+ url: string;
123
+ imageUrl: string;
124
+ eventContext: {
125
+ event_navigation_name: string;
126
+ event_navigation_action: string;
127
+ event_navigation_label: string;
128
+ };
129
+ }[];
130
+ articles?: undefined;
131
+ } | {
132
+ type: string;
133
+ articles: {
134
+ id: string;
135
+ headline: string;
136
+ url: string;
137
+ imageUrl: string;
138
+ kicker: string;
139
+ eventContext: {
140
+ event_navigation_name: string;
141
+ event_navigation_action: string;
142
+ event_navigation_label: string;
143
+ };
144
+ }[];
145
+ offers?: undefined;
146
+ })[];
147
+ primaryButton: {
148
+ text: string;
149
+ size: string;
150
+ eventContext: {
151
+ event_navigation_name: string;
152
+ event_navigation_action: string;
153
+ event_navigation_label: string;
154
+ };
155
+ };
156
+ secondaryButton: {
157
+ text: string;
158
+ size: string;
159
+ href: string;
160
+ eventContext: {
161
+ event_navigation_name: string;
162
+ event_navigation_action: string;
163
+ event_navigation_label: string;
164
+ };
165
+ };
166
+ };
167
+ confirmCancellation: {
168
+ header: {
169
+ title: string;
170
+ description: string;
171
+ titleOverrides: {
172
+ typographyPreset: {
173
+ xs: string;
174
+ md: string;
175
+ };
176
+ };
177
+ descriptionOverrides: {
178
+ typographyPreset: {
179
+ xs: string;
180
+ md: string;
181
+ };
182
+ stylePreset: string;
183
+ };
184
+ };
185
+ stepText: string;
186
+ stepTextOverrides: {
187
+ typographyPreset: string;
188
+ stylePreset: string;
189
+ };
190
+ childComponents: {
191
+ type: string;
192
+ policyTitle: string;
193
+ }[];
194
+ primaryButton: {
195
+ text: string;
196
+ size: string;
197
+ eventContext: {
198
+ event_navigation_name: string;
199
+ event_navigation_action: string;
200
+ event_navigation_label: string;
201
+ };
202
+ };
203
+ secondaryButton: {
204
+ text: string;
205
+ size: string;
206
+ href: string;
207
+ eventContext: {
208
+ event_navigation_name: string;
209
+ event_navigation_action: string;
210
+ event_navigation_label: string;
211
+ };
212
+ };
213
+ };
214
+ };
215
+ };
@@ -0,0 +1,259 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sunCancellationFlowConfig = void 0;
4
+ var types_1 = require("../../context/types");
5
+ var baseContext_1 = require("../../context/baseContext");
6
+ var constants_1 = require("../../constants");
7
+ exports.sunCancellationFlowConfig = {
8
+ baseUrl: constants_1.BASE_URL,
9
+ navigationPrimary: baseContext_1.navigationPrimary,
10
+ navigationSecondary: baseContext_1.sideNav,
11
+ footer: baseContext_1.footer,
12
+ contextName: types_1.ContextName.SunCancellationFlow,
13
+ head: {
14
+ pageTitle: 'Cancel Subscription',
15
+ },
16
+ header: {
17
+ backButton: {
18
+ text: 'Back',
19
+ href: '[baseURL]/subscription-and-billing',
20
+ 'aria-label': 'back to subscription and billing',
21
+ hasIcon: true,
22
+ eventContext: {
23
+ event_navigation_name: 'button:back',
24
+ event_navigation_action: 'navigation',
25
+ event_navigation_label: 'back to subscription and billing',
26
+ },
27
+ },
28
+ backButtonOverrides: {
29
+ typographyPreset: 'utilityButton030',
30
+ stylePreset: 'inkBase',
31
+ paddingBlock: 'space000',
32
+ paddingInline: 'space000',
33
+ minHeight: 'auto',
34
+ minWidth: 'auto',
35
+ },
36
+ },
37
+ showBackButton: true,
38
+ componentSequence: {
39
+ Digital: ['selectReason', 'viewOffers', 'confirmCancellation'],
40
+ },
41
+ components: {
42
+ selectReason: {
43
+ header: {
44
+ title: "We're sorry to see you go",
45
+ description: 'Can you tell us why to help us improve',
46
+ titleOverrides: {
47
+ typographyPreset: {
48
+ xs: 'editorialHeadline030',
49
+ md: 'editorialHeadline040',
50
+ },
51
+ },
52
+ descriptionOverrides: {
53
+ typographyPreset: {
54
+ xs: 'editorialParagraph020',
55
+ md: 'editorialParagraph030',
56
+ },
57
+ stylePreset: 'inkSubtle',
58
+ },
59
+ },
60
+ stepText: 'Step 1 of 3',
61
+ stepTextOverrides: {
62
+ typographyPreset: 'utilityLabel020',
63
+ stylePreset: 'inkSubtle',
64
+ marginBlockEnd: 'space040',
65
+ },
66
+ childComponents: [
67
+ {
68
+ type: 'reasonSelector',
69
+ reasons: [
70
+ { id: 'signed-up-promo', label: 'Signed up for one promo' },
71
+ {
72
+ id: 'signed-up-article',
73
+ label: 'Signed up for specific article',
74
+ },
75
+ { id: 'not-value', label: 'Not value for money' },
76
+ { id: 'no-time', label: 'No time to use' },
77
+ { id: 'technical-problem', label: 'Technical problem' },
78
+ { id: 'other', label: 'Other' },
79
+ ],
80
+ },
81
+ {
82
+ type: 'policy',
83
+ policyTitle: 'Cancellation Policy',
84
+ },
85
+ ],
86
+ primaryButton: {
87
+ text: 'Continue to cancel',
88
+ size: 'medium',
89
+ eventContext: {
90
+ event_navigation_name: 'button',
91
+ event_navigation_action: 'click',
92
+ event_navigation_label: 'continue to cancel',
93
+ },
94
+ },
95
+ secondaryButton: {
96
+ text: 'Keep my membership',
97
+ size: 'medium',
98
+ href: '/account',
99
+ eventContext: {
100
+ event_navigation_name: 'button',
101
+ event_navigation_action: 'click',
102
+ event_navigation_label: 'keep my membership',
103
+ },
104
+ },
105
+ },
106
+ viewOffers: {
107
+ header: {
108
+ title: 'Before you go...',
109
+ description: 'We have some special offers just for you',
110
+ titleOverrides: {
111
+ typographyPreset: {
112
+ xs: 'editorialHeadline030',
113
+ md: 'editorialHeadline040',
114
+ },
115
+ },
116
+ descriptionOverrides: {
117
+ typographyPreset: {
118
+ xs: 'editorialParagraph020',
119
+ md: 'editorialParagraph030',
120
+ },
121
+ stylePreset: 'inkSubtle',
122
+ },
123
+ },
124
+ stepText: 'Step 2 of 3',
125
+ stepTextOverrides: {
126
+ typographyPreset: 'utilityLabel020',
127
+ stylePreset: 'inkSubtle',
128
+ marginBlockEnd: 'space040',
129
+ },
130
+ childComponents: [
131
+ {
132
+ type: 'offers',
133
+ offers: [
134
+ {
135
+ id: 'offer-1',
136
+ headline: '',
137
+ url: '',
138
+ imageUrl: '',
139
+ eventContext: {
140
+ event_navigation_name: 'offer',
141
+ event_navigation_action: 'click',
142
+ event_navigation_label: 'template',
143
+ },
144
+ },
145
+ {
146
+ id: 'offer-2',
147
+ headline: '',
148
+ url: '',
149
+ imageUrl: '',
150
+ eventContext: {
151
+ event_navigation_name: 'offer',
152
+ event_navigation_action: 'click',
153
+ event_navigation_label: 'template',
154
+ },
155
+ },
156
+ ],
157
+ },
158
+ {
159
+ type: 'articles',
160
+ articles: [
161
+ {
162
+ id: '',
163
+ headline: '',
164
+ url: '',
165
+ imageUrl: '',
166
+ kicker: '',
167
+ eventContext: {
168
+ event_navigation_name: 'article',
169
+ event_navigation_action: 'click',
170
+ event_navigation_label: 'member benefits',
171
+ },
172
+ },
173
+ {
174
+ id: 'article-2',
175
+ headline: '',
176
+ url: '',
177
+ imageUrl: '',
178
+ kicker: '',
179
+ eventContext: {
180
+ event_navigation_name: 'article',
181
+ event_navigation_action: 'click',
182
+ event_navigation_label: 'subscription tips',
183
+ },
184
+ },
185
+ ],
186
+ },
187
+ ],
188
+ primaryButton: {
189
+ text: 'Continue to cancel',
190
+ size: 'medium',
191
+ eventContext: {
192
+ event_navigation_name: 'button',
193
+ event_navigation_action: 'click',
194
+ event_navigation_label: 'continue to cancel',
195
+ },
196
+ },
197
+ secondaryButton: {
198
+ text: 'Keep my membership',
199
+ size: 'medium',
200
+ href: '/account',
201
+ eventContext: {
202
+ event_navigation_name: 'button',
203
+ event_navigation_action: 'click',
204
+ event_navigation_label: 'keep my membership',
205
+ },
206
+ },
207
+ },
208
+ confirmCancellation: {
209
+ header: {
210
+ title: 'Confirm cancellation',
211
+ description: 'Your subscription will be cancelled immediately',
212
+ titleOverrides: {
213
+ typographyPreset: {
214
+ xs: 'editorialHeadline030',
215
+ md: 'editorialHeadline040',
216
+ },
217
+ },
218
+ descriptionOverrides: {
219
+ typographyPreset: {
220
+ xs: 'editorialParagraph020',
221
+ md: 'editorialParagraph030',
222
+ },
223
+ stylePreset: 'inkSubtle',
224
+ },
225
+ },
226
+ stepText: 'Step 3 of 3',
227
+ stepTextOverrides: {
228
+ typographyPreset: 'utilityLabel020',
229
+ stylePreset: 'inkSubtle',
230
+ },
231
+ childComponents: [
232
+ {
233
+ type: 'policy',
234
+ policyTitle: 'Cancellation Policy',
235
+ },
236
+ ],
237
+ primaryButton: {
238
+ text: 'Confirm cancellation',
239
+ size: 'medium',
240
+ eventContext: {
241
+ event_navigation_name: 'button',
242
+ event_navigation_action: 'click',
243
+ event_navigation_label: 'confirm cancellation',
244
+ },
245
+ },
246
+ secondaryButton: {
247
+ text: 'Keep my membership',
248
+ size: 'medium',
249
+ href: '/account',
250
+ eventContext: {
251
+ event_navigation_name: 'button',
252
+ event_navigation_action: 'click',
253
+ event_navigation_label: 'keep my membership',
254
+ },
255
+ },
256
+ },
257
+ },
258
+ };
259
+ //# sourceMappingURL=SunCancellationFlowContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SunCancellationFlowContext.js","sourceRoot":"","sources":["../../../../src/pages/SunCancellationFlow/SunCancellationFlowContext.tsx"],"names":[],"mappings":";;;AAAA,6CAAiD;AACjD,yDAA8E;AAC9E,6CAA0C;AAE7B,QAAA,yBAAyB,GAAG;IACvC,OAAO,EAAE,oBAAQ;IACjB,iBAAiB,iCAAA;IACjB,mBAAmB,EAAE,qBAAO;IAC5B,MAAM,sBAAA;IACN,WAAW,EAAE,mBAAW,CAAC,mBAAmB;IAC5C,IAAI,EAAE;QACJ,SAAS,EAAE,qBAAqB;KACjC;IACD,MAAM,EAAE;QACN,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,oCAAoC;YAC1C,YAAY,EAAE,kCAAkC;YAChD,OAAO,EAAE,IAAI;YACb,YAAY,EAAE;gBACZ,qBAAqB,EAAE,aAAa;gBACpC,uBAAuB,EAAE,YAAY;gBACrC,sBAAsB,EAAE,kCAAkC;aAC3D;SACF;QACD,mBAAmB,EAAE;YACnB,gBAAgB,EAAE,kBAAkB;YACpC,WAAW,EAAE,SAAS;YACtB,YAAY,EAAE,UAAU;YACxB,aAAa,EAAE,UAAU;YACzB,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,MAAM;SACjB;KACF;IACD,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE;QACjB,OAAO,EAAE,CAAC,cAAc,EAAE,YAAY,EAAE,qBAAqB,CAAC;KAC/D;IACD,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,MAAM,EAAE;gBACN,KAAK,EAAE,2BAA2B;gBAClC,WAAW,EAAE,wCAAwC;gBACrD,cAAc,EAAE;oBACd,gBAAgB,EAAE;wBAChB,EAAE,EAAE,sBAAsB;wBAC1B,EAAE,EAAE,sBAAsB;qBAC3B;iBACF;gBACD,oBAAoB,EAAE;oBAC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qBAAqB;iBACnC;aACF;YACD,aAAa,EAAE;gBACb,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE,QAAQ;gBACd,YAAY,EAAE;oBACZ,qBAAqB,EAAE,QAAQ;oBAC/B,uBAAuB,EAAE,OAAO;oBAChC,sBAAsB,EAAE,sBAAsB;iBAC/C;aACF;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,oBAAoB;gBAC1B,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,UAAU;gBAChB,YAAY,EAAE;oBACZ,qBAAqB,EAAE,QAAQ;oBAC/B,uBAAuB,EAAE,OAAO;oBAChC,sBAAsB,EAAE,oBAAoB;iBAC7C;aACF;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './SunCancellationFlow';
2
+ export * from './SunCancellationFlowContext';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./SunCancellationFlow"), exports);
18
+ __exportStar(require("./SunCancellationFlowContext"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pages/SunCancellationFlow/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAqC;AACrC,+DAA4C"}
@@ -13,6 +13,7 @@ var __assign = (this && this.__assign) || function () {
13
13
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
+ var _a;
16
17
  Object.defineProperty(exports, "__esModule", { value: true });
17
18
  exports.userHubContext = void 0;
18
19
  var react_1 = __importDefault(require("react"));
@@ -26,12 +27,15 @@ var Launch_1 = require("@emotion-icons/material/Launch");
26
27
  var HelpOutline_1 = require("@emotion-icons/material/HelpOutline");
27
28
  var Newsletters_1 = require("../../pages/Newsletters");
28
29
  var shared_components_1 = require("@newskit-render/shared-components");
30
+ var ManageAccounts_1 = require("@emotion-icons/material-outlined/ManageAccounts");
31
+ var CancelSubscriptionSectionContext_1 = require("../SubscriptionAndBilling/Sections/CancelSubscriptionSectionContext");
29
32
  var IconOutlinedLock = (0, newskit_1.toNewsKitIcon)(Lock_1.Lock);
30
33
  var IconFilledCreditCard = (0, newskit_1.toNewsKitIcon)(CreditCard_1.CreditCard);
31
34
  var IconFilledChevronRight = (0, newskit_1.toNewsKitIcon)(ChevronRight_1.ChevronRight);
32
35
  var IconChatBubbleOutline = (0, newskit_1.toNewsKitIcon)(ChatBubbleOutline_1.ChatBubbleOutline);
33
36
  var IconHelpOutline = (0, newskit_1.toNewsKitIcon)(HelpOutline_1.HelpOutline);
34
37
  var IconLaunch = (0, newskit_1.toNewsKitIcon)(Launch_1.Launch);
38
+ var IconManageAccounts = (0, newskit_1.toNewsKitIcon)(ManageAccounts_1.ManageAccounts);
35
39
  var pageName = 'homepage';
36
40
  exports.userHubContext = {
37
41
  sections: {
@@ -102,6 +106,67 @@ exports.userHubContext = {
102
106
  },
103
107
  ],
104
108
  },
109
+ subscriptionDetails: {
110
+ showSection: false,
111
+ header: {
112
+ title: 'Subscription Details',
113
+ titleOverrides: {
114
+ marginBlockEnd: {
115
+ xs: 'space050',
116
+ },
117
+ typographyPreset: 'editorialHeadline030',
118
+ },
119
+ showDivider: false,
120
+ },
121
+ containerOverrides: {
122
+ rows: '1fr auto',
123
+ columns: '3fr 1fr',
124
+ justifyContent: 'space-between',
125
+ overrides: {
126
+ paddingBlock: 'space050',
127
+ paddingInline: 'space040',
128
+ minWidth: '100%',
129
+ },
130
+ },
131
+ benefits: {
132
+ showBenefits: false,
133
+ title: 'Subscriber benefits',
134
+ items: [
135
+ {
136
+ code: 'share',
137
+ title: 'Share articles',
138
+ description: 'Forward articles to friends and family for free',
139
+ icon: IconOutlinedLock,
140
+ },
141
+ {
142
+ code: 'save',
143
+ title: 'Save articles',
144
+ description: 'Save your favourite stories to read anytime',
145
+ link: {
146
+ href: 'https://www.thetimes.com/my-articles',
147
+ text: 'Review your saved articles',
148
+ },
149
+ icon: IconChatBubbleOutline,
150
+ },
151
+ ],
152
+ },
153
+ cancelSubscription: {
154
+ title: 'Cancel your subscription',
155
+ titleIcon: (react_1.default.createElement(IconManageAccounts, { overrides: {
156
+ size: 'iconSize020',
157
+ marginInlineEnd: 'space020',
158
+ } })),
159
+ href: '/account/cancel?step=contactSupport&returnUrl=/account/user-hub',
160
+ linkIcon: (react_1.default.createElement(IconFilledChevronRight, { overrides: { size: 'iconSize020', stylePreset: 'inkBlack' } })),
161
+ eventContext: {
162
+ event_navigation_action: 'navigation',
163
+ event_navigation_name: 'subscription cancellation : cancel',
164
+ event_navigation_browsing_method: newskit_1.EventTrigger.Click,
165
+ page_name: "".concat(pageName.toLocaleLowerCase()),
166
+ },
167
+ },
168
+ cancelSubscriptionModal: (_a = (0, CancelSubscriptionSectionContext_1.cancelSubscriptionSection)(pageName).props) === null || _a === void 0 ? void 0 : _a.modal,
169
+ },
105
170
  helpAndSupport: {
106
171
  dataTestId: 'help-and-support',
107
172
  layoutType: 'list',