@edx/frontend-plugin-advertisements 2.11.0 → 2.12.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.
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _analytics = require("@edx/frontend-platform/analytics");
10
+ var _i18n = require("@edx/frontend-platform/i18n");
11
+ var _paragon = require("@openedx/paragon");
12
+ var _icons = require("@openedx/paragon/icons");
13
+ var _modelStore = require("@src/generic/model-store");
14
+ var _messages = _interopRequireDefault(require("./messages"));
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
21
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint import/no-unresolved: 0 */ /**
22
+ * Access Expiration top-of-courseware banner.
23
+ *
24
+ * This is the plugin-architecture equivalent of the Learning MFE's
25
+ * `src/alerts/access-expiration-alert/AccessExpirationAlert.jsx`.
26
+ *
27
+ * It renders directly as a plugin widget (does NOT use the Learning MFE alert registration system).
28
+ */
29
+ const AccessExpirationAlert = _ref => {
30
+ let {
31
+ courseId
32
+ } = _ref;
33
+ const intl = (0, _i18n.useIntl)();
34
+ const {
35
+ org,
36
+ userTimezone
37
+ } = (0, _modelStore.useModel)('courseHomeMeta', courseId);
38
+ const {
39
+ accessExpiration
40
+ } = (0, _modelStore.useModel)('coursewareMeta', courseId);
41
+ const timezoneFormatArgs = userTimezone ? {
42
+ timeZone: userTimezone
43
+ } : {};
44
+
45
+ // Match original MFE logic.
46
+ if (!accessExpiration || accessExpiration.masqueradingExpiredCourse) {
47
+ return null;
48
+ }
49
+ const {
50
+ expirationDate,
51
+ upgradeDeadline,
52
+ upgradeUrl
53
+ } = accessExpiration;
54
+ const logClick = () => {
55
+ // Keep analytics identical to the temporary in-course wiring:
56
+ // analyticsPageName === 'in_course'
57
+ const analyticsPageName = 'in_course';
58
+ (0, _analytics.sendTrackEvent)('edx.bi.ecommerce.upsell_links_clicked', {
59
+ org_key: org,
60
+ courserun_key: courseId,
61
+ linkCategory: 'FBE_banner',
62
+ linkName: `${analyticsPageName}_audit_access_expires`,
63
+ linkType: 'link',
64
+ pageName: analyticsPageName
65
+ });
66
+ };
67
+ let deadlineMessage = null;
68
+ if (upgradeDeadline && upgradeUrl) {
69
+ deadlineMessage = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
70
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("br", {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
71
+ id: "learning.accessExpiration.deadline",
72
+ defaultMessage: "Upgrade by {date} to get unlimited access to the course as long as it exists on the site.",
73
+ description: "Warning shown to learner to upgrade while they are enrolled on the audit version and it's possible to upgrade",
74
+ values: {
75
+ date: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedDate, _objectSpread({
76
+ day: "numeric",
77
+ month: "short",
78
+ year: "numeric",
79
+ value: upgradeDeadline
80
+ }, timezoneFormatArgs), "accessExpirationUpgradeDeadline")
81
+ }
82
+ }), "\xA0", /*#__PURE__*/(0, _jsxRuntime.jsx)(_paragon.Hyperlink, {
83
+ className: "font-weight-bold",
84
+ style: {
85
+ textDecoration: 'underline'
86
+ },
87
+ destination: upgradeUrl,
88
+ onClick: logClick,
89
+ children: intl.formatMessage(_messages.default.upgradeNow)
90
+ })]
91
+ });
92
+ }
93
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_paragon.Alert, {
94
+ variant: "info",
95
+ icon: _icons.Info,
96
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
97
+ className: "font-weight-bold",
98
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
99
+ id: "learning.accessExpiration.header",
100
+ defaultMessage: "Audit Access Expires {date}",
101
+ description: "Headline for auditing deadline",
102
+ values: {
103
+ date: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedDate, _objectSpread({
104
+ day: "numeric",
105
+ month: "short",
106
+ year: "numeric",
107
+ value: expirationDate
108
+ }, timezoneFormatArgs), "accessExpirationHeaderDate")
109
+ }
110
+ })
111
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("br", {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedMessage, {
112
+ id: "learning.accessExpiration.body",
113
+ defaultMessage: "You lose all access to this course, including your progress, on {date}.",
114
+ description: "Message body to tell learner the consequences of course expiration.",
115
+ values: {
116
+ date: /*#__PURE__*/(0, _jsxRuntime.jsx)(_i18n.FormattedDate, _objectSpread({
117
+ day: "numeric",
118
+ month: "short",
119
+ year: "numeric",
120
+ value: expirationDate
121
+ }, timezoneFormatArgs), "accessExpirationBodyDate")
122
+ }
123
+ }), deadlineMessage]
124
+ });
125
+ };
126
+ AccessExpirationAlert.propTypes = {
127
+ courseId: _propTypes.default.string.isRequired
128
+ };
129
+ var _default = exports.default = AccessExpirationAlert;
130
+ //# sourceMappingURL=AccessExpirationAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccessExpirationAlert.js","names":["_react","_interopRequireDefault","require","_propTypes","_analytics","_i18n","_paragon","_icons","_modelStore","_messages","_jsxRuntime","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","AccessExpirationAlert","_ref","courseId","intl","useIntl","org","userTimezone","useModel","accessExpiration","timezoneFormatArgs","timeZone","masqueradingExpiredCourse","expirationDate","upgradeDeadline","upgradeUrl","logClick","analyticsPageName","sendTrackEvent","org_key","courserun_key","linkCategory","linkName","linkType","pageName","deadlineMessage","jsxs","Fragment","children","jsx","FormattedMessage","id","defaultMessage","description","values","date","FormattedDate","day","month","year","Hyperlink","className","style","textDecoration","destination","onClick","formatMessage","messages","upgradeNow","Alert","variant","icon","Info","propTypes","PropTypes","string","isRequired","_default","exports"],"sources":["../../src/access-expiration-alert/AccessExpirationAlert.jsx"],"sourcesContent":["/* eslint import/no-unresolved: 0 */\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { sendTrackEvent } from '@edx/frontend-platform/analytics';\nimport { FormattedMessage, FormattedDate, useIntl } from '@edx/frontend-platform/i18n';\nimport { Alert, Hyperlink } from '@openedx/paragon';\nimport { Info } from '@openedx/paragon/icons';\n\nimport { useModel } from '@src/generic/model-store';\n\nimport messages from './messages';\n\n/**\n * Access Expiration top-of-courseware banner.\n *\n * This is the plugin-architecture equivalent of the Learning MFE's\n * `src/alerts/access-expiration-alert/AccessExpirationAlert.jsx`.\n *\n * It renders directly as a plugin widget (does NOT use the Learning MFE alert registration system).\n */\nconst AccessExpirationAlert = ({\n courseId,\n}) => {\n const intl = useIntl();\n\n const { org, userTimezone } = useModel('courseHomeMeta', courseId);\n const { accessExpiration } = useModel('coursewareMeta', courseId);\n\n const timezoneFormatArgs = userTimezone ? { timeZone: userTimezone } : {};\n\n // Match original MFE logic.\n if (!accessExpiration || accessExpiration.masqueradingExpiredCourse) {\n return null;\n }\n\n const {\n expirationDate,\n upgradeDeadline,\n upgradeUrl,\n } = accessExpiration;\n\n const logClick = () => {\n // Keep analytics identical to the temporary in-course wiring:\n // analyticsPageName === 'in_course'\n const analyticsPageName = 'in_course';\n sendTrackEvent('edx.bi.ecommerce.upsell_links_clicked', {\n org_key: org,\n courserun_key: courseId,\n linkCategory: 'FBE_banner',\n linkName: `${analyticsPageName}_audit_access_expires`,\n linkType: 'link',\n pageName: analyticsPageName,\n });\n };\n\n let deadlineMessage = null;\n if (upgradeDeadline && upgradeUrl) {\n deadlineMessage = (\n <>\n <br />\n <FormattedMessage\n id=\"learning.accessExpiration.deadline\"\n defaultMessage=\"Upgrade by {date} to get unlimited access to the course as long as it exists on the site.\"\n description=\"Warning shown to learner to upgrade while they are enrolled on the audit version and it's possible to upgrade\"\n values={{\n date: (\n <FormattedDate\n key=\"accessExpirationUpgradeDeadline\"\n day=\"numeric\"\n month=\"short\"\n year=\"numeric\"\n value={upgradeDeadline}\n {...timezoneFormatArgs}\n />\n ),\n }}\n />\n &nbsp;\n <Hyperlink\n className=\"font-weight-bold\"\n style={{ textDecoration: 'underline' }}\n destination={upgradeUrl}\n onClick={logClick}\n >\n {intl.formatMessage(messages.upgradeNow)}\n </Hyperlink>\n </>\n );\n }\n\n return (\n <Alert variant=\"info\" icon={Info}>\n <span className=\"font-weight-bold\">\n <FormattedMessage\n id=\"learning.accessExpiration.header\"\n defaultMessage=\"Audit Access Expires {date}\"\n description=\"Headline for auditing deadline\"\n values={{\n date: (\n <FormattedDate\n key=\"accessExpirationHeaderDate\"\n day=\"numeric\"\n month=\"short\"\n year=\"numeric\"\n value={expirationDate}\n {...timezoneFormatArgs}\n />\n ),\n }}\n />\n </span>\n <br />\n <FormattedMessage\n id=\"learning.accessExpiration.body\"\n defaultMessage=\"You lose all access to this course, including your progress, on {date}.\"\n description=\"Message body to tell learner the consequences of course expiration.\"\n values={{\n date: (\n <FormattedDate\n key=\"accessExpirationBodyDate\"\n day=\"numeric\"\n month=\"short\"\n year=\"numeric\"\n value={expirationDate}\n {...timezoneFormatArgs}\n />\n ),\n }}\n />\n {deadlineMessage}\n </Alert>\n );\n};\n\nAccessExpirationAlert.propTypes = {\n courseId: PropTypes.string.isRequired,\n};\n\nexport default AccessExpirationAlert;\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAEA,IAAAM,WAAA,GAAAN,OAAA;AAEA,IAAAO,SAAA,GAAAR,sBAAA,CAAAC,OAAA;AAAkC,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,QAAAH,CAAA,EAAAI,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAP,CAAA,OAAAM,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAR,CAAA,GAAAI,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,M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rCC,cAAc,EAAC,6BAA6B;QAC5CC,WAAW,EAAC,gCAAgC;QAC5CC,MAAM,EAAE;UACNC,IAAI,eACF,IAAAtE,WAAA,CAAAgE,GAAA,EAACrE,KAAA,CAAA4E,aAAa,EAAAvD,aAAA;YAEZwD,GAAG,EAAC,SAAS;YACbC,KAAK,EAAC,OAAO;YACbC,IAAI,EAAC,SAAS;YACdjD,KAAK,EAAEuB;UAAe,GAClBH,kBAAkB,GALlB,4BAML;QAEL;MAAE,CACH;IAAC,CACE,CAAC,eACP,IAAA7C,WAAA,CAAAgE,GAAA,UAAK,CAAC,eACN,IAAAhE,WAAA,CAAAgE,GAAA,EAACrE,KAAA,CAAAsE,gBAAgB;MACfC,EAAE,EAAC,gCAAgC;MACnCC,cAAc,EAAC,yEAAyE;MACxFC,WAAW,EAAC,qEAAqE;MACjFC,MAAM,EAAE;QACNC,IAAI,eACF,IAAAtE,WAAA,CAAAgE,GAAA,EAACrE,KAAA,CAAA4E,aAAa,EAAAvD,aAAA;UAEZwD,GAAG,EAAC,SAAS;UACbC,KAAK,EAAC,OAAO;UACbC,IAAI,EAAC,SAAS;UACdjD,KAAK,EAAEuB;QAAe,GAClBH,kBAAkB,GALlB,0BAML;MAEL;IAAE,CACH,CAAC,EACDe,eAAe;EAAA,CACX,CAAC;AAEZ,CAAC;AAEDxB,qBAAqB,CAACoD,SAAS,GAAG;EAChClD,QAAQ,EAAEmD,kBAAS,CAACC,MAAM,CAACC;AAC7B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA1F,OAAA,GAEaiC,qBAAqB","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _AccessExpirationAlert = _interopRequireDefault(require("./AccessExpirationAlert"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ var _default = exports.default = _AccessExpirationAlert.default;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_AccessExpirationAlert","_interopRequireDefault","require","e","__esModule","default","_default","exports","AccessExpirationAlert"],"sources":["../../src/access-expiration-alert/index.jsx"],"sourcesContent":["import AccessExpirationAlert from './AccessExpirationAlert';\n\nexport default AccessExpirationAlert;\n"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4D,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAE7CG,8BAAqB","ignoreList":[]}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _i18n = require("@edx/frontend-platform/i18n");
8
+ const messages = (0, _i18n.defineMessages)({
9
+ upgradeNow: {
10
+ id: 'learning.accessExpiration.upgradeNow',
11
+ defaultMessage: 'Upgrade now',
12
+ description: 'The anchor text for the upgrading link'
13
+ }
14
+ });
15
+ var _default = exports.default = messages;
16
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","names":["_i18n","require","messages","defineMessages","upgradeNow","id","defaultMessage","description","_default","exports","default"],"sources":["../../src/access-expiration-alert/messages.js"],"sourcesContent":["import { defineMessages } from '@edx/frontend-platform/i18n';\n\nconst messages = defineMessages({\n upgradeNow: {\n id: 'learning.accessExpiration.upgradeNow',\n defaultMessage: 'Upgrade now',\n description: 'The anchor text for the upgrading link',\n },\n});\n\nexport default messages;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,MAAMC,QAAQ,GAAG,IAAAC,oBAAc,EAAC;EAC9BC,UAAU,EAAE;IACVC,EAAE,EAAE,sCAAsC;IAC1CC,cAAc,EAAE,aAAa;IAC7BC,WAAW,EAAE;EACf;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEYR,QAAQ","ignoreList":[]}
package/dist/index.js CHANGED
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "AccessExpirationAlert", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _accessExpirationAlert.default;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "LockPaywall", {
7
13
  enumerable: true,
8
14
  get: function () {
@@ -36,6 +42,7 @@ Object.defineProperty(exports, "UpsellBullets", {
36
42
  var _upgradeNotification = _interopRequireDefault(require("./upgrade-notification"));
37
43
  var _paywall = _interopRequireDefault(require("./paywall"));
38
44
  var _upgradeModal = _interopRequireDefault(require("./upgrade-modal"));
45
+ var _accessExpirationAlert = _interopRequireDefault(require("./access-expiration-alert"));
39
46
  var _generic = require("./generic");
40
47
  var _sectionOutline = _interopRequireDefault(require("./section-outline"));
41
48
  require("./index.scss");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_upgradeNotification","_interopRequireDefault","require","_paywall","_upgradeModal","_generic","_sectionOutline","e","__esModule","default"],"sources":["../src/index.jsx"],"sourcesContent":["import UpgradeNotification from './upgrade-notification';\nimport LockPaywall from './paywall';\nimport NextUnitButton from './upgrade-modal';\nimport { UpsellBullets } from './generic';\nimport SectionList from './section-outline';\nimport './index.scss';\n\nexport {\n UpgradeNotification,\n LockPaywall,\n NextUnitButton,\n UpsellBullets,\n SectionList,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAL,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAAsB,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_upgradeNotification","_interopRequireDefault","require","_paywall","_upgradeModal","_accessExpirationAlert","_generic","_sectionOutline","e","__esModule","default"],"sources":["../src/index.jsx"],"sourcesContent":["import UpgradeNotification from './upgrade-notification';\nimport LockPaywall from './paywall';\nimport NextUnitButton from './upgrade-modal';\nimport AccessExpirationAlert from './access-expiration-alert';\nimport { UpsellBullets } from './generic';\nimport SectionList from './section-outline';\nimport './index.scss';\n\nexport {\n UpgradeNotification,\n LockPaywall,\n NextUnitButton,\n AccessExpirationAlert,\n UpsellBullets,\n SectionList,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,sBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAN,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAAsB,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edx/frontend-plugin-advertisements",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "Frontend plugin for edX in course advertisements",
5
5
  "main": "dist/index.js",
6
6
  "repository": {