@edx/frontend-app-learner-dashboard 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/widgets/LearnerDashboardPlugins/app.js +70 -0
  2. package/dist/widgets/LearnerDashboardPlugins/app.js.map +1 -1
  3. package/dist/widgets/LearnerDashboardPlugins/career-menu/index.d.ts +2 -0
  4. package/dist/widgets/LearnerDashboardPlugins/career-menu/index.js +22 -0
  5. package/dist/widgets/LearnerDashboardPlugins/career-menu/index.js.map +1 -0
  6. package/dist/widgets/LearnerDashboardPlugins/career-menu/messages.d.ts +16 -0
  7. package/dist/widgets/LearnerDashboardPlugins/career-menu/messages.js +15 -0
  8. package/dist/widgets/LearnerDashboardPlugins/career-menu/messages.js.map +1 -0
  9. package/dist/widgets/LearnerDashboardPlugins/chatbot/HelpChatbot.d.ts +2 -0
  10. package/dist/widgets/LearnerDashboardPlugins/chatbot/HelpChatbot.js +25 -0
  11. package/dist/widgets/LearnerDashboardPlugins/chatbot/HelpChatbot.js.map +1 -0
  12. package/dist/widgets/LearnerDashboardPlugins/chatbot/data/five9.d.ts +3 -0
  13. package/dist/widgets/LearnerDashboardPlugins/chatbot/data/five9.js +5 -0
  14. package/dist/widgets/LearnerDashboardPlugins/chatbot/data/five9.js.map +1 -0
  15. package/dist/widgets/LearnerDashboardPlugins/chatbot/index.d.ts +2 -0
  16. package/dist/widgets/LearnerDashboardPlugins/chatbot/index.js +3 -0
  17. package/dist/widgets/LearnerDashboardPlugins/chatbot/index.js.map +1 -0
  18. package/dist/widgets/LearnerDashboardPlugins/cohesion-wrapper/CohesionWrapper.d.ts +2 -0
  19. package/dist/widgets/LearnerDashboardPlugins/cohesion-wrapper/CohesionWrapper.js +33 -0
  20. package/dist/widgets/LearnerDashboardPlugins/cohesion-wrapper/CohesionWrapper.js.map +1 -0
  21. package/dist/widgets/LearnerDashboardPlugins/cohesion-wrapper/index.d.ts +2 -0
  22. package/dist/widgets/LearnerDashboardPlugins/cohesion-wrapper/index.js +3 -0
  23. package/dist/widgets/LearnerDashboardPlugins/cohesion-wrapper/index.js.map +1 -0
  24. package/dist/widgets/LearnerDashboardPlugins/course-banner/Banner.d.ts +24 -0
  25. package/dist/widgets/LearnerDashboardPlugins/course-banner/Banner.js +19 -0
  26. package/dist/widgets/LearnerDashboardPlugins/course-banner/Banner.js.map +1 -0
  27. package/dist/widgets/LearnerDashboardPlugins/course-banner/CourseBanner.d.ts +10 -0
  28. package/dist/widgets/LearnerDashboardPlugins/course-banner/CourseBanner.js +31 -0
  29. package/dist/widgets/LearnerDashboardPlugins/course-banner/CourseBanner.js.map +1 -0
  30. package/dist/widgets/LearnerDashboardPlugins/course-banner/formatDate.d.ts +2 -0
  31. package/dist/widgets/LearnerDashboardPlugins/course-banner/formatDate.js +13 -0
  32. package/dist/widgets/LearnerDashboardPlugins/course-banner/formatDate.js.map +1 -0
  33. package/dist/widgets/LearnerDashboardPlugins/course-banner/index.d.ts +2 -0
  34. package/dist/widgets/LearnerDashboardPlugins/course-banner/index.js +3 -0
  35. package/dist/widgets/LearnerDashboardPlugins/course-banner/index.js.map +1 -0
  36. package/dist/widgets/LearnerDashboardPlugins/course-banner/messages.d.ts +56 -0
  37. package/dist/widgets/LearnerDashboardPlugins/course-banner/messages.js +40 -0
  38. package/dist/widgets/LearnerDashboardPlugins/course-banner/messages.js.map +1 -0
  39. package/dist/widgets/LearnerDashboardPlugins/dashboard-menu/index.d.ts +2 -0
  40. package/dist/widgets/LearnerDashboardPlugins/dashboard-menu/index.js +23 -0
  41. package/dist/widgets/LearnerDashboardPlugins/dashboard-menu/index.js.map +1 -0
  42. package/dist/widgets/LearnerDashboardPlugins/dashboard-menu/messages.d.ts +24 -0
  43. package/dist/widgets/LearnerDashboardPlugins/dashboard-menu/messages.js +20 -0
  44. package/dist/widgets/LearnerDashboardPlugins/dashboard-menu/messages.js.map +1 -0
  45. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/EnterpriseDashboardModal.d.ts +2 -0
  46. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/EnterpriseDashboardModal.js +20 -0
  47. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/EnterpriseDashboardModal.js.map +1 -0
  48. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/EnterpriseDashboardModalWrapper.d.ts +2 -0
  49. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/EnterpriseDashboardModalWrapper.js +17 -0
  50. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/EnterpriseDashboardModalWrapper.js.map +1 -0
  51. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/hooks/hooks.d.ts +10 -0
  52. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/hooks/hooks.js +34 -0
  53. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/hooks/hooks.js.map +1 -0
  54. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/index.d.ts +2 -0
  55. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/index.js +3 -0
  56. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/index.js.map +1 -0
  57. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/messages.d.ts +32 -0
  58. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/messages.js +25 -0
  59. package/dist/widgets/LearnerDashboardPlugins/dashboard-modal/messages.js.map +1 -0
  60. package/dist/widgets/LearnerDashboardPlugins/mocks/optimizely/index.d.ts +10 -0
  61. package/dist/widgets/LearnerDashboardPlugins/mocks/optimizely/index.js +10 -0
  62. package/dist/widgets/LearnerDashboardPlugins/mocks/optimizely/index.js.map +1 -0
  63. package/dist/widgets/LearnerDashboardPlugins/no-courses-view/index.d.ts +2 -0
  64. package/dist/widgets/LearnerDashboardPlugins/no-courses-view/index.js +37 -0
  65. package/dist/widgets/LearnerDashboardPlugins/no-courses-view/index.js.map +1 -0
  66. package/dist/widgets/LearnerDashboardPlugins/no-courses-view/index.scss +13 -0
  67. package/dist/widgets/LearnerDashboardPlugins/no-courses-view/messages.d.ts +32 -0
  68. package/dist/widgets/LearnerDashboardPlugins/no-courses-view/messages.js +25 -0
  69. package/dist/widgets/LearnerDashboardPlugins/no-courses-view/messages.js.map +1 -0
  70. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/api.d.ts +9 -0
  71. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/api.js +32 -0
  72. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/api.js.map +1 -0
  73. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/hooks.d.ts +4 -0
  74. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/hooks.js +32 -0
  75. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/hooks.js.map +1 -0
  76. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/index.d.ts +8 -0
  77. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/index.js +14 -0
  78. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/index.js.map +1 -0
  79. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/messages.d.ts +8 -0
  80. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/messages.js +10 -0
  81. package/dist/widgets/LearnerDashboardPlugins/notices-redirect/messages.js.map +1 -0
  82. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/ProgressiveProfilingEntry.d.ts +1 -0
  83. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/ProgressiveProfilingEntry.js +23 -0
  84. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/ProgressiveProfilingEntry.js.map +1 -0
  85. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/ProgressiveProfilingModal.d.ts +14 -0
  86. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/ProgressiveProfilingModal.js +51 -0
  87. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/ProgressiveProfilingModal.js.map +1 -0
  88. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/api/service.d.ts +1 -0
  89. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/api/service.js +35 -0
  90. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/api/service.js.map +1 -0
  91. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/data/progressiveProfilingFields.d.ts +22 -0
  92. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/data/progressiveProfilingFields.js +33 -0
  93. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/data/progressiveProfilingFields.js.map +1 -0
  94. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/field-renderer/FieldRenderer.d.ts +21 -0
  95. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/field-renderer/FieldRenderer.js +29 -0
  96. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/field-renderer/FieldRenderer.js.map +1 -0
  97. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/field-renderer/index.d.ts +1 -0
  98. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/field-renderer/index.js +2 -0
  99. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/field-renderer/index.js.map +1 -0
  100. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/hooks/useClearProgressiveProfilingQueryParams.d.ts +1 -0
  101. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/hooks/useClearProgressiveProfilingQueryParams.js +10 -0
  102. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/hooks/useClearProgressiveProfilingQueryParams.js.map +1 -0
  103. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/hooks/useProgressiveProfilingForm.d.ts +11 -0
  104. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/hooks/useProgressiveProfilingForm.js +50 -0
  105. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/hooks/useProgressiveProfilingForm.js.map +1 -0
  106. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/hooks/useProgressiveProfilingTrigger.d.ts +3 -0
  107. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/hooks/useProgressiveProfilingTrigger.js +8 -0
  108. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/hooks/useProgressiveProfilingTrigger.js.map +1 -0
  109. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/index.d.ts +2 -0
  110. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/index.js +3 -0
  111. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/index.js.map +1 -0
  112. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.d.ts +2 -0
  113. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.js +82 -0
  114. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.js.map +1 -0
  115. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.d.ts +13 -0
  116. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.js +26 -0
  117. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.js.map +1 -0
  118. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.d.ts +19 -0
  119. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.js +34 -0
  120. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.js.map +1 -0
  121. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.d.ts +19 -0
  122. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.js +35 -0
  123. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.js.map +1 -0
  124. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.d.ts +19 -0
  125. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.js +36 -0
  126. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.js.map +1 -0
  127. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.d.ts +3 -0
  128. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.js +4 -0
  129. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.js.map +1 -0
  130. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.d.ts +33 -0
  131. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js +35 -0
  132. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js.map +1 -0
  133. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.d.ts +20 -0
  134. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.js +24 -0
  135. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.js.map +1 -0
  136. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.d.ts +1 -0
  137. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.js +2 -0
  138. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.js.map +1 -0
  139. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.scss +269 -0
  140. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.d.ts +58 -0
  141. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.js +62 -0
  142. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.js.map +1 -0
  143. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.d.ts +5 -0
  144. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js +31 -0
  145. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js.map +1 -0
  146. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/utils/constants.d.ts +5 -0
  147. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/utils/constants.js +6 -0
  148. package/dist/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/utils/constants.js.map +1 -0
  149. package/dist/widgets/LearnerDashboardPlugins/tracking/trackers/enterpriseDashboardModal.d.ts +9 -0
  150. package/dist/widgets/LearnerDashboardPlugins/tracking/trackers/enterpriseDashboardModal.js +29 -0
  151. package/dist/widgets/LearnerDashboardPlugins/tracking/trackers/enterpriseDashboardModal.js.map +1 -0
  152. package/dist/widgets/LearnerDashboardPlugins/tracking/trackers/exploreCourses.d.ts +2 -0
  153. package/dist/widgets/LearnerDashboardPlugins/tracking/trackers/exploreCourses.js +46 -0
  154. package/dist/widgets/LearnerDashboardPlugins/tracking/trackers/exploreCourses.js.map +1 -0
  155. package/dist/widgets/LearnerDashboardPlugins/tracking/trackers/progressiveProfiling.d.ts +14 -0
  156. package/dist/widgets/LearnerDashboardPlugins/tracking/trackers/progressiveProfiling.js +24 -0
  157. package/dist/widgets/LearnerDashboardPlugins/tracking/trackers/progressiveProfiling.js.map +1 -0
  158. package/dist/widgets/LearnerDashboardPlugins/ucl-wrapper/UclWrapper.d.ts +2 -0
  159. package/dist/widgets/LearnerDashboardPlugins/ucl-wrapper/UclWrapper.js +36 -0
  160. package/dist/widgets/LearnerDashboardPlugins/ucl-wrapper/UclWrapper.js.map +1 -0
  161. package/dist/widgets/LearnerDashboardPlugins/ucl-wrapper/index.d.ts +2 -0
  162. package/dist/widgets/LearnerDashboardPlugins/ucl-wrapper/index.js +3 -0
  163. package/dist/widgets/LearnerDashboardPlugins/ucl-wrapper/index.js.map +1 -0
  164. package/package.json +4 -1
@@ -0,0 +1,58 @@
1
+ export default messages;
2
+ declare const messages: {
3
+ 'progressive.profiling.page.title': {
4
+ id: string;
5
+ defaultMessage: string;
6
+ description: string;
7
+ };
8
+ 'progressive.profiling.page.heading': {
9
+ id: string;
10
+ defaultMessage: string;
11
+ description: string;
12
+ };
13
+ 'optional.fields.information.link': {
14
+ id: string;
15
+ defaultMessage: string;
16
+ description: string;
17
+ };
18
+ 'optional.fields.submit.button': {
19
+ id: string;
20
+ defaultMessage: string;
21
+ description: string;
22
+ };
23
+ 'optional.fields.skip.button': {
24
+ id: string;
25
+ defaultMessage: string;
26
+ description: string;
27
+ };
28
+ 'optional.fields.next.button': {
29
+ id: string;
30
+ defaultMessage: string;
31
+ description: string;
32
+ };
33
+ 'continue.to.platform': {
34
+ id: string;
35
+ defaultMessage: string;
36
+ description: string;
37
+ };
38
+ 'modal.title': {
39
+ id: string;
40
+ defaultMessage: string;
41
+ description: string;
42
+ };
43
+ 'modal.description': {
44
+ id: string;
45
+ defaultMessage: string;
46
+ description: string;
47
+ };
48
+ 'welcome.page.error.heading': {
49
+ id: string;
50
+ defaultMessage: string;
51
+ description: string;
52
+ };
53
+ 'welcome.page.error.message': {
54
+ id: string;
55
+ defaultMessage: string;
56
+ description: string;
57
+ };
58
+ };
@@ -0,0 +1,62 @@
1
+ import { defineMessages } from '@openedx/frontend-base';
2
+ const messages = defineMessages({
3
+ 'progressive.profiling.page.title': {
4
+ id: 'progressive.profiling.page.title',
5
+ defaultMessage: 'Welcome | {siteName}',
6
+ description: 'progressive profiling page title',
7
+ },
8
+ 'progressive.profiling.page.heading': {
9
+ id: 'progressive.profiling.page.heading',
10
+ defaultMessage: 'A few questions for you will help us get smarter.',
11
+ description: 'The page heading for the progressive profiling page.',
12
+ },
13
+ 'optional.fields.information.link': {
14
+ id: 'optional.fields.information.link',
15
+ defaultMessage: 'Learn more about how we use this information.',
16
+ description: 'Optional fields page information link',
17
+ },
18
+ 'optional.fields.submit.button': {
19
+ id: 'optional.fields.submit.button',
20
+ defaultMessage: 'Submit',
21
+ description: 'Submit button text',
22
+ },
23
+ 'optional.fields.skip.button': {
24
+ id: 'optional.fields.skip.button',
25
+ defaultMessage: 'Skip for now',
26
+ description: 'Skip button text',
27
+ },
28
+ 'optional.fields.next.button': {
29
+ id: 'optional.fields.next.button',
30
+ defaultMessage: 'Next',
31
+ description: 'Next button text',
32
+ },
33
+ // modal dialog box
34
+ 'continue.to.platform': {
35
+ id: 'continue.to.platform',
36
+ defaultMessage: 'Continue to {platformName}',
37
+ description: 'Button text for modal when user chooses "skip for now" option',
38
+ },
39
+ 'modal.title': {
40
+ id: 'modal.title',
41
+ defaultMessage: 'Thanks for letting us know.',
42
+ description: 'Heading for welcome page modal',
43
+ },
44
+ 'modal.description': {
45
+ id: 'modal.description',
46
+ defaultMessage: 'You can complete your profile in settings at any time if you change your mind.',
47
+ description: 'Modal body text',
48
+ },
49
+ // error message
50
+ 'welcome.page.error.heading': {
51
+ id: 'welcome.page.error.heading',
52
+ defaultMessage: 'We couldn\'t update your profile',
53
+ description: 'Error message heading',
54
+ },
55
+ 'welcome.page.error.message': {
56
+ id: 'welcome.page.error.message',
57
+ defaultMessage: 'An error occurred. You can complete your profile in settings at any time.',
58
+ description: 'Error message body',
59
+ },
60
+ });
61
+ export default messages;
62
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,kCAAkC,EAAE;QAClC,EAAE,EAAE,kCAAkC;QACtC,cAAc,EAAE,sBAAsB;QACtC,WAAW,EAAE,kCAAkC;KAChD;IACD,oCAAoC,EAAE;QACpC,EAAE,EAAE,oCAAoC;QACxC,cAAc,EAAE,mDAAmD;QACnE,WAAW,EAAE,sDAAsD;KACpE;IACD,kCAAkC,EAAE;QAClC,EAAE,EAAE,kCAAkC;QACtC,cAAc,EAAE,+CAA+C;QAC/D,WAAW,EAAE,uCAAuC;KACrD;IACD,+BAA+B,EAAE;QAC/B,EAAE,EAAE,+BAA+B;QACnC,cAAc,EAAE,QAAQ;QACxB,WAAW,EAAE,oBAAoB;KAClC;IACD,6BAA6B,EAAE;QAC7B,EAAE,EAAE,6BAA6B;QACjC,cAAc,EAAE,cAAc;QAC9B,WAAW,EAAE,kBAAkB;KAChC;IACD,6BAA6B,EAAE;QAC7B,EAAE,EAAE,6BAA6B;QACjC,cAAc,EAAE,MAAM;QACtB,WAAW,EAAE,kBAAkB;KAChC;IACD,mBAAmB;IACnB,sBAAsB,EAAE;QACtB,EAAE,EAAE,sBAAsB;QAC1B,cAAc,EAAE,4BAA4B;QAC5C,WAAW,EAAE,+DAA+D;KAC7E;IACD,aAAa,EAAE;QACb,EAAE,EAAE,aAAa;QACjB,cAAc,EAAE,6BAA6B;QAC7C,WAAW,EAAE,gCAAgC;KAC9C;IACD,mBAAmB,EAAE;QACnB,EAAE,EAAE,mBAAmB;QACvB,cAAc,EAAE,gFAAgF;QAChG,WAAW,EAAE,iBAAiB;KAC/B;IACD,gBAAgB;IAChB,4BAA4B,EAAE;QAC5B,EAAE,EAAE,4BAA4B;QAChC,cAAc,EAAE,kCAAkC;QAClD,WAAW,EAAE,uBAAuB;KACrC;IACD,4BAA4B,EAAE;QAC5B,EAAE,EAAE,4BAA4B;QAChC,cAAc,EAAE,2EAA2E;QAC3F,WAAW,EAAE,oBAAoB;KAClC;CACF,CAAC,CAAC;AACH,eAAe,QAAQ,CAAC","sourcesContent":["import { defineMessages } from '@openedx/frontend-base';\n\nconst messages = defineMessages({\n 'progressive.profiling.page.title': {\n id: 'progressive.profiling.page.title',\n defaultMessage: 'Welcome | {siteName}',\n description: 'progressive profiling page title',\n },\n 'progressive.profiling.page.heading': {\n id: 'progressive.profiling.page.heading',\n defaultMessage: 'A few questions for you will help us get smarter.',\n description: 'The page heading for the progressive profiling page.',\n },\n 'optional.fields.information.link': {\n id: 'optional.fields.information.link',\n defaultMessage: 'Learn more about how we use this information.',\n description: 'Optional fields page information link',\n },\n 'optional.fields.submit.button': {\n id: 'optional.fields.submit.button',\n defaultMessage: 'Submit',\n description: 'Submit button text',\n },\n 'optional.fields.skip.button': {\n id: 'optional.fields.skip.button',\n defaultMessage: 'Skip for now',\n description: 'Skip button text',\n },\n 'optional.fields.next.button': {\n id: 'optional.fields.next.button',\n defaultMessage: 'Next',\n description: 'Next button text',\n },\n // modal dialog box\n 'continue.to.platform': {\n id: 'continue.to.platform',\n defaultMessage: 'Continue to {platformName}',\n description: 'Button text for modal when user chooses \"skip for now\" option',\n },\n 'modal.title': {\n id: 'modal.title',\n defaultMessage: 'Thanks for letting us know.',\n description: 'Heading for welcome page modal',\n },\n 'modal.description': {\n id: 'modal.description',\n defaultMessage: 'You can complete your profile in settings at any time if you change your mind.',\n description: 'Modal body text',\n },\n // error message\n 'welcome.page.error.heading': {\n id: 'welcome.page.error.heading',\n defaultMessage: 'We couldn\\'t update your profile',\n description: 'Error message heading',\n },\n 'welcome.page.error.message': {\n id: 'welcome.page.error.message',\n defaultMessage: 'An error occurred. You can complete your profile in settings at any time.',\n description: 'Error message body',\n },\n});\nexport default messages;\n"]}
@@ -0,0 +1,5 @@
1
+ export default function getThirdPartyAuthContext(urlParams: any): Promise<{
2
+ fieldDescriptions: any;
3
+ optionalFields: any;
4
+ thirdPartyAuthContext: any;
5
+ }>;
@@ -0,0 +1,31 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getAppConfig } from '@openedx/frontend-base';
11
+ import { getAuthenticatedHttpClient } from '@openedx/frontend-base';
12
+ export default function getThirdPartyAuthContext(urlParams) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ const requestConfig = {
15
+ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
16
+ params: urlParams,
17
+ isPublic: true,
18
+ };
19
+ const { data } = yield getAuthenticatedHttpClient()
20
+ .get(`${getAppConfig().LMS_BASE_URL}/api/mfe_context`, requestConfig)
21
+ .catch((e) => {
22
+ throw (e);
23
+ });
24
+ return {
25
+ fieldDescriptions: data.registrationFields || {},
26
+ optionalFields: data.optionalFields || {},
27
+ thirdPartyAuthContext: data.contextData || {},
28
+ };
29
+ });
30
+ }
31
+ //# sourceMappingURL=getThirdPartyAuthContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThirdPartyAuthContext.js","sourceRoot":"","sources":["../../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAgB,wBAAwB,CAAC,SAAS;;QAC9D,MAAM,aAAa,GAAG;YACpB,OAAO,EAAE,EAAE,cAAc,EAAE,mCAAmC,EAAE;YAChE,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,IAAI;SACf,CAAC;QAEF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,0BAA0B,EAAE;aAChD,GAAG,CACF,GAAG,YAAY,EAAE,CAAC,YAAY,kBAAkB,EAChD,aAAa,CACd;aACA,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,MAAM,CAAC,CAAC,CAAC,CAAC;QACZ,CAAC,CAAC,CAAC;QACL,OAAO;YACL,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,IAAI,EAAE;YAChD,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,EAAE;YACzC,qBAAqB,EAAE,IAAI,CAAC,WAAW,IAAI,EAAE;SAC9C,CAAC;IACJ,CAAC;CAAA","sourcesContent":["import { getAppConfig } from '@openedx/frontend-base';\nimport { getAuthenticatedHttpClient } from '@openedx/frontend-base';\n\nexport default async function getThirdPartyAuthContext(urlParams) {\n const requestConfig = {\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n params: urlParams,\n isPublic: true,\n };\n\n const { data } = await getAuthenticatedHttpClient()\n .get(\n `${getAppConfig().LMS_BASE_URL}/api/mfe_context`,\n requestConfig,\n )\n .catch((e) => {\n throw (e);\n });\n return {\n fieldDescriptions: data.registrationFields || {},\n optionalFields: data.optionalFields || {},\n thirdPartyAuthContext: data.contextData || {},\n };\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export const PROGRESSIVE_PROFILING_QUERY_PARAM: "progressiveProfiling";
2
+ export const DEFAULT_STATE: "default";
3
+ export const PENDING_STATE: "pending";
4
+ export const COMPLETE_STATE: "complete";
5
+ export const FAILURE_STATE: "failure";
@@ -0,0 +1,6 @@
1
+ export const PROGRESSIVE_PROFILING_QUERY_PARAM = 'progressiveProfiling';
2
+ export const DEFAULT_STATE = 'default';
3
+ export const PENDING_STATE = 'pending';
4
+ export const COMPLETE_STATE = 'complete';
5
+ export const FAILURE_STATE = 'failure';
6
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/progressive-profiling-dashboard/utils/constants.jsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iCAAiC,GAAG,sBAAsB,CAAC;AACxE,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AACvC,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AACvC,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;AACzC,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC","sourcesContent":["export const PROGRESSIVE_PROFILING_QUERY_PARAM = 'progressiveProfiling';\nexport const DEFAULT_STATE = 'default';\nexport const PENDING_STATE = 'pending';\nexport const COMPLETE_STATE = 'complete';\nexport const FAILURE_STATE = 'failure';\n"]}
@@ -0,0 +1,9 @@
1
+ export function modalOpened(enterpriseUUID: string): func;
2
+ export function modalCTAClicked(enterpriseUUID: string, href: string): func;
3
+ export function modalClosed(enterpriseUUID: string, source: string): func;
4
+ declare namespace _default {
5
+ export { modalOpened };
6
+ export { modalCTAClicked };
7
+ export { modalClosed };
8
+ }
9
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { createEventTracker, createLinkTracker } from '../utils';
2
+ import { eventNames } from '../constants';
3
+ /** Enterprise Dashboard events * */
4
+ /**
5
+ * Creates tracking callback for Enterprise Dashboard Modal open event
6
+ * @param {string} enterpriseUUID - enterprise identifier
7
+ * @return {func} - Callback that tracks the event when fired.
8
+ */
9
+ export const modalOpened = (enterpriseUUID) => () => createEventTracker(eventNames.dashboardModalOpened, { enterpriseUUID });
10
+ /**
11
+ * Creates tracking callback for Enterprise Dashboard Modal Call-to-action click-event
12
+ * @param {string} enterpriseUUID - enterprise identifier
13
+ * @param {string} href - destination url
14
+ * @return {func} - Callback that tracks the event when fired and then loads the passed href.
15
+ */
16
+ export const modalCTAClicked = (enterpriseUUID, href) => createLinkTracker(createEventTracker(eventNames.dashboardModalCTAClicked, { enterpriseUUID }), href);
17
+ /**
18
+ * Creates tracking callback for Dashboard Modal close event
19
+ * @param {string} enterpriseUUID - enterprise identifier
20
+ * @param {string} source - close event source ("Cancel button" vs "Escape")
21
+ * @return {func} - Callback that tracks the event when fired.
22
+ */
23
+ export const modalClosed = (enterpriseUUID, source) => createEventTracker(eventNames.dashboardModalClosed, { enterpriseUUID, source });
24
+ export default {
25
+ modalOpened,
26
+ modalCTAClicked,
27
+ modalClosed,
28
+ };
29
+ //# sourceMappingURL=enterpriseDashboardModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enterpriseDashboardModal.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/tracking/trackers/enterpriseDashboardModal.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,oCAAoC;AAEpC;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,cAAc,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,kBAAkB,CACrE,UAAU,CAAC,oBAAoB,EAC/B,EAAE,cAAc,EAAE,CACnB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,cAAc,EAAE,IAAI,EAAE,EAAE,CAAC,iBAAiB,CACxE,kBAAkB,CAChB,UAAU,CAAC,wBAAwB,EACnC,EAAE,cAAc,EAAE,CACnB,EACD,IAAI,CACL,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,CAAC,kBAAkB,CACvE,UAAU,CAAC,oBAAoB,EAC/B,EAAE,cAAc,EAAE,MAAM,EAAE,CAC3B,CAAC;AAEF,eAAe;IACb,WAAW;IACX,eAAe;IACf,WAAW;CACZ,CAAC","sourcesContent":["import { createEventTracker, createLinkTracker } from '../utils';\nimport { eventNames } from '../constants';\n\n/** Enterprise Dashboard events * */\n\n/**\n * Creates tracking callback for Enterprise Dashboard Modal open event\n * @param {string} enterpriseUUID - enterprise identifier\n * @return {func} - Callback that tracks the event when fired.\n */\nexport const modalOpened = (enterpriseUUID) => () => createEventTracker(\n eventNames.dashboardModalOpened,\n { enterpriseUUID },\n);\n\n/**\n * Creates tracking callback for Enterprise Dashboard Modal Call-to-action click-event\n * @param {string} enterpriseUUID - enterprise identifier\n * @param {string} href - destination url\n * @return {func} - Callback that tracks the event when fired and then loads the passed href.\n */\nexport const modalCTAClicked = (enterpriseUUID, href) => createLinkTracker(\n createEventTracker(\n eventNames.dashboardModalCTAClicked,\n { enterpriseUUID },\n ),\n href,\n);\n\n/**\n * Creates tracking callback for Dashboard Modal close event\n * @param {string} enterpriseUUID - enterprise identifier\n * @param {string} source - close event source (\"Cancel button\" vs \"Escape\")\n * @return {func} - Callback that tracks the event when fired.\n */\nexport const modalClosed = (enterpriseUUID, source) => createEventTracker(\n eventNames.dashboardModalClosed,\n { enterpriseUUID, source },\n);\n\nexport default {\n modalOpened,\n modalCTAClicked,\n modalClosed,\n};\n"]}
@@ -0,0 +1,2 @@
1
+ export function exploreCoursesViewedCohesion(viewCorrelationId: any): void;
2
+ export function exploreCoursesClickedCohesion(viewCorrelationId: any): void;
@@ -0,0 +1,46 @@
1
+ import { logError } from '@openedx/frontend-base';
2
+ import { handleCorrelationIDCookie } from '../cookie';
3
+ import { BUTTON_ELEMENT_TYPE, LOCATION_LEARNER_HOME, EXPLORE_COURSES_HTML_ID, EXPLORE_COURSES_EVENT_NAME, EXPLORE_COURSES_EVENT_TEXT, } from '../constants';
4
+ export const exploreCoursesViewedCohesion = (viewCorrelationId) => {
5
+ var _a;
6
+ if (window.tagular && typeof window.tagular === 'function') {
7
+ (_a = window.tagular) === null || _a === void 0 ? void 0 : _a.call(window, 'beam', {
8
+ '@type': 'redventures.usertracking.v3.ElementViewed',
9
+ viewCorrelationId,
10
+ webElement: {
11
+ elementType: BUTTON_ELEMENT_TYPE,
12
+ htmlId: EXPLORE_COURSES_HTML_ID,
13
+ location: LOCATION_LEARNER_HOME,
14
+ name: EXPLORE_COURSES_EVENT_NAME,
15
+ text: EXPLORE_COURSES_EVENT_TEXT,
16
+ position: '1',
17
+ },
18
+ });
19
+ }
20
+ else {
21
+ logError('Cohesion script failed to load before CTA was viewed');
22
+ }
23
+ };
24
+ export const exploreCoursesClickedCohesion = (viewCorrelationId) => {
25
+ var _a;
26
+ const correlationId = handleCorrelationIDCookie();
27
+ if (window.tagular && typeof window.tagular === 'function') {
28
+ (_a = window.tagular) === null || _a === void 0 ? void 0 : _a.call(window, 'beam', {
29
+ '@type': 'redventures.usertracking.v3.ElementClicked',
30
+ correlationId,
31
+ viewCorrelationId,
32
+ webElement: {
33
+ elementType: BUTTON_ELEMENT_TYPE,
34
+ htmlId: EXPLORE_COURSES_HTML_ID,
35
+ location: LOCATION_LEARNER_HOME,
36
+ name: EXPLORE_COURSES_EVENT_NAME,
37
+ text: EXPLORE_COURSES_EVENT_TEXT,
38
+ position: '1',
39
+ },
40
+ });
41
+ }
42
+ else {
43
+ logError('Cohesion script failed to load before CTA was clicked');
44
+ }
45
+ };
46
+ //# sourceMappingURL=exploreCourses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exploreCourses.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/tracking/trackers/exploreCourses.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAEtD,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,iBAAiB,EAAE,EAAE;;IAChE,IAAI,MAAM,CAAC,OAAO,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;QAC3D,MAAA,MAAM,CAAC,OAAO,uDAAG,MAAM,EAAE;YACvB,OAAO,EAAE,2CAA2C;YACpD,iBAAiB;YACjB,UAAU,EAAE;gBACV,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,uBAAuB;gBAC/B,QAAQ,EAAE,qBAAqB;gBAC/B,IAAI,EAAE,0BAA0B;gBAChC,IAAI,EAAE,0BAA0B;gBAChC,QAAQ,EAAE,GAAG;aACd;SACF,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,QAAQ,CAAC,sDAAsD,CAAC,CAAC;IACnE,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,iBAAiB,EAAE,EAAE;;IACjE,MAAM,aAAa,GAAG,yBAAyB,EAAE,CAAC;IAElD,IAAI,MAAM,CAAC,OAAO,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,UAAU,EAAE,CAAC;QAC3D,MAAA,MAAM,CAAC,OAAO,uDAAG,MAAM,EAAE;YACvB,OAAO,EAAE,4CAA4C;YACrD,aAAa;YACb,iBAAiB;YACjB,UAAU,EAAE;gBACV,WAAW,EAAE,mBAAmB;gBAChC,MAAM,EAAE,uBAAuB;gBAC/B,QAAQ,EAAE,qBAAqB;gBAC/B,IAAI,EAAE,0BAA0B;gBAChC,IAAI,EAAE,0BAA0B;gBAChC,QAAQ,EAAE,GAAG;aACd;SACF,CAAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,QAAQ,CAAC,uDAAuD,CAAC,CAAC;IACpE,CAAC;AACH,CAAC,CAAC","sourcesContent":["import { logError } from '@openedx/frontend-base';\nimport { handleCorrelationIDCookie } from '../cookie';\n\nimport {\n BUTTON_ELEMENT_TYPE,\n LOCATION_LEARNER_HOME,\n EXPLORE_COURSES_HTML_ID,\n EXPLORE_COURSES_EVENT_NAME,\n EXPLORE_COURSES_EVENT_TEXT,\n} from '../constants';\n\nexport const exploreCoursesViewedCohesion = (viewCorrelationId) => {\n if (window.tagular && typeof window.tagular === 'function') {\n window.tagular?.('beam', {\n '@type': 'redventures.usertracking.v3.ElementViewed',\n viewCorrelationId,\n webElement: {\n elementType: BUTTON_ELEMENT_TYPE,\n htmlId: EXPLORE_COURSES_HTML_ID,\n location: LOCATION_LEARNER_HOME,\n name: EXPLORE_COURSES_EVENT_NAME,\n text: EXPLORE_COURSES_EVENT_TEXT,\n position: '1',\n },\n });\n } else {\n logError('Cohesion script failed to load before CTA was viewed');\n }\n};\n\nexport const exploreCoursesClickedCohesion = (viewCorrelationId) => {\n const correlationId = handleCorrelationIDCookie();\n\n if (window.tagular && typeof window.tagular === 'function') {\n window.tagular?.('beam', {\n '@type': 'redventures.usertracking.v3.ElementClicked',\n correlationId,\n viewCorrelationId,\n webElement: {\n elementType: BUTTON_ELEMENT_TYPE,\n htmlId: EXPLORE_COURSES_HTML_ID,\n location: LOCATION_LEARNER_HOME,\n name: EXPLORE_COURSES_EVENT_NAME,\n text: EXPLORE_COURSES_EVENT_TEXT,\n position: '1',\n },\n });\n } else {\n logError('Cohesion script failed to load before CTA was clicked');\n }\n};\n"]}
@@ -0,0 +1,14 @@
1
+ export namespace eventNames {
2
+ let progressiveProfilingSubmitClick: string;
3
+ let progressiveProfilingSkipLinkClick: string;
4
+ let disablePostRegistrationRecommendations: string;
5
+ let progressiveProfilingSupportLinkClick: string;
6
+ let loginAndRegistration: string;
7
+ let progressiveProfilingQuestionaireModalFormOpened: string;
8
+ }
9
+ export function trackProgressiveProfilingSkipLinkClick(evenProperties: any): void;
10
+ export function trackProgressiveProfilingSubmitClick(evenProperties: any): void;
11
+ export function trackDisablePostRegistrationRecommendations(evenProperties: any): void;
12
+ export function trackProgressiveProfilingPageViewed(): void;
13
+ export function trackProgressiveProfilingSupportLinkClick(): void;
14
+ export function trackProgressiveProfilingQuestionaireModalFormOpened(evenProperties: any): void;
@@ -0,0 +1,24 @@
1
+ import { createEventTracker, createPageEventTracker } from '../utils';
2
+ export const eventNames = {
3
+ progressiveProfilingSubmitClick: 'edx.bi.welcome.page.submit.clicked',
4
+ progressiveProfilingSkipLinkClick: 'edx.bi.welcome.page.skip.link.clicked',
5
+ disablePostRegistrationRecommendations: 'edx.bi.user.recommendations.not.enabled',
6
+ progressiveProfilingSupportLinkClick: 'edx.bi.welcome.page.support.link.clicked',
7
+ loginAndRegistration: 'login_and_registration',
8
+ progressiveProfilingQuestionaireModalFormOpened: 'edx.bi.welcome.page.questionaire.modal.opened',
9
+ };
10
+ // Event link tracker for Progressive profiling skip button click
11
+ export const trackProgressiveProfilingSkipLinkClick = evenProperties => createEventTracker(eventNames.progressiveProfilingSkipLinkClick, Object.assign({}, evenProperties))();
12
+ // Event tracker for progressive profiling submit button click
13
+ export const trackProgressiveProfilingSubmitClick = (evenProperties) => createEventTracker(eventNames.progressiveProfilingSubmitClick, Object.assign({}, evenProperties))();
14
+ // Event tracker for progressive profiling submit button click
15
+ export const trackDisablePostRegistrationRecommendations = (evenProperties) => createEventTracker(eventNames.disablePostRegistrationRecommendations, Object.assign({}, evenProperties))();
16
+ // Tracks the progressive profiling page event.
17
+ export const trackProgressiveProfilingPageViewed = () => {
18
+ createPageEventTracker(eventNames.loginAndRegistration, 'welcome')();
19
+ };
20
+ // Tracks the progressive profiling support link click.
21
+ export const trackProgressiveProfilingSupportLinkClick = () => createEventTracker(eventNames.progressiveProfilingSupportLinkClick, {})();
22
+ // Tracks the progressive profiling modal opened with the questionaire form.
23
+ export const trackProgressiveProfilingQuestionaireModalFormOpened = (evenProperties) => createEventTracker(eventNames.progressiveProfilingQuestionaireModalFormOpened, Object.assign({}, evenProperties))();
24
+ //# sourceMappingURL=progressiveProfiling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progressiveProfiling.js","sourceRoot":"","sources":["../../../../../src/widgets/LearnerDashboardPlugins/tracking/trackers/progressiveProfiling.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,+BAA+B,EAAE,oCAAoC;IACrE,iCAAiC,EAAE,uCAAuC;IAC1E,sCAAsC,EAAE,yCAAyC;IACjF,oCAAoC,EAAE,0CAA0C;IAChF,oBAAoB,EAAE,wBAAwB;IAC9C,+CAA+C,EAAE,+CAA+C;CACjG,CAAC;AAEF,iEAAiE;AACjE,MAAM,CAAC,MAAM,sCAAsC,GAAG,cAAc,CAAC,EAAE,CAAC,kBAAkB,CACxF,UAAU,CAAC,iCAAiC,oBAAO,cAAc,EAClE,EAAE,CAAC;AAEJ,8DAA8D;AAC9D,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,cAAc,EAAE,EAAE,CAAC,kBAAkB,CACxF,UAAU,CAAC,+BAA+B,oBACrC,cAAc,EACpB,EAAE,CAAC;AAEJ,8DAA8D;AAC9D,MAAM,CAAC,MAAM,2CAA2C,GAAG,CAAC,cAAc,EAAE,EAAE,CAAC,kBAAkB,CAC/F,UAAU,CAAC,sCAAsC,oBAC5C,cAAc,EACpB,EAAE,CAAC;AAEJ,+CAA+C;AAC/C,MAAM,CAAC,MAAM,mCAAmC,GAAG,GAAG,EAAE;IACtD,sBAAsB,CAAC,UAAU,CAAC,oBAAoB,EAAE,SAAS,CAAC,EAAE,CAAC;AACvE,CAAC,CAAC;AAEF,uDAAuD;AACvD,MAAM,CAAC,MAAM,yCAAyC,GAAG,GAAG,EAAE,CAAC,kBAAkB,CAC/E,UAAU,CAAC,oCAAoC,EAC/C,EAAE,CACH,EAAE,CAAC;AAEJ,4EAA4E;AAC5E,MAAM,CAAC,MAAM,oDAAoD,GAAG,CAAC,cAAc,EAAE,EAAE,CAAC,kBAAkB,CACxG,UAAU,CAAC,+CAA+C,oBACrD,cAAc,EACpB,EAAE,CAAC","sourcesContent":["import { createEventTracker, createPageEventTracker } from '../utils';\n\nexport const eventNames = {\n progressiveProfilingSubmitClick: 'edx.bi.welcome.page.submit.clicked',\n progressiveProfilingSkipLinkClick: 'edx.bi.welcome.page.skip.link.clicked',\n disablePostRegistrationRecommendations: 'edx.bi.user.recommendations.not.enabled',\n progressiveProfilingSupportLinkClick: 'edx.bi.welcome.page.support.link.clicked',\n loginAndRegistration: 'login_and_registration',\n progressiveProfilingQuestionaireModalFormOpened: 'edx.bi.welcome.page.questionaire.modal.opened',\n};\n\n// Event link tracker for Progressive profiling skip button click\nexport const trackProgressiveProfilingSkipLinkClick = evenProperties => createEventTracker(\n eventNames.progressiveProfilingSkipLinkClick, { ...evenProperties },\n)();\n\n// Event tracker for progressive profiling submit button click\nexport const trackProgressiveProfilingSubmitClick = (evenProperties) => createEventTracker(\n eventNames.progressiveProfilingSubmitClick,\n { ...evenProperties },\n)();\n\n// Event tracker for progressive profiling submit button click\nexport const trackDisablePostRegistrationRecommendations = (evenProperties) => createEventTracker(\n eventNames.disablePostRegistrationRecommendations,\n { ...evenProperties },\n)();\n\n// Tracks the progressive profiling page event.\nexport const trackProgressiveProfilingPageViewed = () => {\n createPageEventTracker(eventNames.loginAndRegistration, 'welcome')();\n};\n\n// Tracks the progressive profiling support link click.\nexport const trackProgressiveProfilingSupportLinkClick = () => createEventTracker(\n eventNames.progressiveProfilingSupportLinkClick,\n {},\n)();\n\n// Tracks the progressive profiling modal opened with the questionaire form.\nexport const trackProgressiveProfilingQuestionaireModalFormOpened = (evenProperties) => createEventTracker(\n eventNames.progressiveProfilingQuestionaireModalFormOpened,\n { ...evenProperties },\n)();\n"]}
@@ -0,0 +1,2 @@
1
+ export default UclWrapper;
2
+ declare function UclWrapper(): null;
@@ -0,0 +1,36 @@
1
+ import { useState, useEffect } from 'react';
2
+ import { logError, logInfo } from '@openedx/frontend-base';
3
+ const UclWrapper = () => {
4
+ const [isLoaded, setLoaded] = useState(false);
5
+ // eslint-disable-next-line no-underscore-dangle
6
+ window._UCL = {
7
+ identity: '2u-edx-learner-dashboard',
8
+ };
9
+ useEffect(() => {
10
+ if (isLoaded) {
11
+ return;
12
+ }
13
+ const head = document.getElementsByTagName('head')[0];
14
+ const script = document.createElement('script');
15
+ script.src = 'https://affiliate-bundle.api.highereducation.com/latest/UCL.adapter.js';
16
+ script.dataset.testId = 'ucl-test';
17
+ script.async = true;
18
+ script.onload = () => {
19
+ if (window.UCL && typeof window.UCL === 'function') {
20
+ logInfo('UCL script loaded successfully!');
21
+ }
22
+ else {
23
+ // in the case that the script successfully loaded but UCL is still not found
24
+ logError('window.UCL not found after UCL script load.');
25
+ }
26
+ };
27
+ script.onerror = (e) => {
28
+ logError('UCL script failed to load', e);
29
+ };
30
+ head.appendChild(script);
31
+ setLoaded(true);
32
+ }, [isLoaded]);
33
+ return null;
34
+ };
35
+ export default UclWrapper;
36
+ //# sourceMappingURL=UclWrapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UclWrapper.js","sourceRoot":"","sources":["../../../../src/widgets/LearnerDashboardPlugins/ucl-wrapper/UclWrapper.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,UAAU,GAAG,GAAG,EAAE;IACtB,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,gDAAgD;IAChD,MAAM,CAAC,IAAI,GAAG;QACZ,QAAQ,EAAE,0BAA0B;KACrC,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO;QACT,CAAC;QAED,MAAM,IAAI,GAAG,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,MAAM,CAAC,GAAG,GAAG,wEAAwE,CAAC;QACtF,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,UAAU,CAAC;QACnC,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;QAEpB,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE;YACnB,IAAI,MAAM,CAAC,GAAG,IAAI,OAAO,MAAM,CAAC,GAAG,KAAK,UAAU,EAAE,CAAC;gBACnD,OAAO,CAAC,iCAAiC,CAAC,CAAC;YAC7C,CAAC;iBAAM,CAAC;gBACN,6EAA6E;gBAC7E,QAAQ,CAAC,6CAA6C,CAAC,CAAC;YAC1D,CAAC;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC,EAAE,EAAE;YACrB,QAAQ,CAAC,2BAA2B,EAAE,CAAC,CAAC,CAAC;QAC3C,CAAC,CAAC;QAEF,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACzB,SAAS,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { useState, useEffect } from 'react';\nimport { logError, logInfo } from '@openedx/frontend-base';\n\nconst UclWrapper = () => {\n const [isLoaded, setLoaded] = useState(false);\n\n // eslint-disable-next-line no-underscore-dangle\n window._UCL = {\n identity: '2u-edx-learner-dashboard',\n };\n\n useEffect(() => {\n if (isLoaded) {\n return;\n }\n\n const head = document.getElementsByTagName('head')[0];\n const script = document.createElement('script');\n script.src = 'https://affiliate-bundle.api.highereducation.com/latest/UCL.adapter.js';\n script.dataset.testId = 'ucl-test';\n script.async = true;\n\n script.onload = () => {\n if (window.UCL && typeof window.UCL === 'function') {\n logInfo('UCL script loaded successfully!');\n } else {\n // in the case that the script successfully loaded but UCL is still not found\n logError('window.UCL not found after UCL script load.');\n }\n };\n\n script.onerror = (e) => {\n logError('UCL script failed to load', e);\n };\n\n head.appendChild(script);\n setLoaded(true);\n }, [isLoaded]);\n\n return null;\n};\n\nexport default UclWrapper;\n"]}
@@ -0,0 +1,2 @@
1
+ export default UclWrapper;
2
+ import UclWrapper from './UclWrapper';
@@ -0,0 +1,3 @@
1
+ import UclWrapper from './UclWrapper';
2
+ export default UclWrapper;
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/widgets/LearnerDashboardPlugins/ucl-wrapper/index.jsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,eAAe,UAAU,CAAC","sourcesContent":["import UclWrapper from './UclWrapper';\n\nexport default UclWrapper;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edx/frontend-app-learner-dashboard",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -60,12 +60,15 @@
60
60
  "@fortawesome/free-brands-svg-icons": "^5.15.4",
61
61
  "@fortawesome/free-solid-svg-icons": "^5.15.4",
62
62
  "@fortawesome/react-fontawesome": "^0.2.0",
63
+ "@optimizely/react-sdk": "github:optimizely/react-sdk",
63
64
  "classnames": "^2.3.1",
64
65
  "font-awesome": "4.7.0",
65
66
  "lodash": "^4.17.21",
66
67
  "moment": "^2.29.4",
67
68
  "prop-types": "15.8.1",
69
+ "react-error-boundary": "^6.1.6",
68
70
  "react-helmet": "^6.1.0",
71
+ "react-intersection-observer": "^11.0.1",
69
72
  "react-share": "^5.2.2"
70
73
  },
71
74
  "devDependencies": {