@edx/frontend-plugin-learner-dashboard 3.3.5 → 3.5.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.
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/package.json +6 -3
- package/dist/progressive-profiling-dashboard/ProgressiveProfilingEntry.js +38 -0
- package/dist/progressive-profiling-dashboard/ProgressiveProfilingEntry.js.map +1 -0
- package/dist/progressive-profiling-dashboard/ProgressiveProfilingModal.js +117 -0
- package/dist/progressive-profiling-dashboard/ProgressiveProfilingModal.js.map +1 -0
- package/dist/progressive-profiling-dashboard/api/service.js +37 -0
- package/dist/progressive-profiling-dashboard/api/service.js.map +1 -0
- package/dist/progressive-profiling-dashboard/data/progressiveProfilingFields.js +25 -0
- package/dist/progressive-profiling-dashboard/data/progressiveProfilingFields.js.map +1 -0
- package/dist/progressive-profiling-dashboard/field-renderer/FieldRenderer.js +86 -0
- package/dist/progressive-profiling-dashboard/field-renderer/FieldRenderer.js.map +1 -0
- package/dist/progressive-profiling-dashboard/field-renderer/index.js +14 -0
- package/dist/progressive-profiling-dashboard/field-renderer/index.js.map +1 -0
- package/dist/progressive-profiling-dashboard/hooks/useClearProgressiveProfilingQueryParams.js +16 -0
- package/dist/progressive-profiling-dashboard/hooks/useClearProgressiveProfilingQueryParams.js.map +1 -0
- package/dist/progressive-profiling-dashboard/hooks/useProgressiveProfilingForm.js +58 -0
- package/dist/progressive-profiling-dashboard/hooks/useProgressiveProfilingForm.js.map +1 -0
- package/dist/progressive-profiling-dashboard/hooks/useProgressiveProfilingTrigger.js +14 -0
- package/dist/progressive-profiling-dashboard/hooks/useProgressiveProfilingTrigger.js.map +1 -0
- package/dist/progressive-profiling-dashboard/index.js +9 -0
- package/dist/progressive-profiling-dashboard/index.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.js +157 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.js +62 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.js +101 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.js +125 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.js +106 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.js +28 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js +40 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.js +59 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.js +14 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.scss +269 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.js +68 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.js.map +1 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js +28 -0
- package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js.map +1 -0
- package/dist/progressive-profiling-dashboard/utils/constants.js +12 -0
- package/dist/progressive-profiling-dashboard/utils/constants.js.map +1 -0
- package/dist/tracking/constants.js +2 -1
- package/dist/tracking/constants.js.map +1 -1
- package/dist/tracking/trackers/progressiveProfiling.js +47 -0
- package/dist/tracking/trackers/progressiveProfiling.js.map +1 -0
- package/dist/tracking/utils.js +15 -2
- package/dist/tracking/utils.js.map +1 -1
- package/package.json +7 -4
- package/src/index.jsx +4 -0
- package/src/progressive-profiling-dashboard/ProgressiveProfilingEntry.jsx +33 -0
- package/src/progressive-profiling-dashboard/ProgressiveProfilingModal.jsx +110 -0
- package/src/progressive-profiling-dashboard/api/service.js +32 -0
- package/src/progressive-profiling-dashboard/data/progressiveProfilingFields.js +32 -0
- package/src/progressive-profiling-dashboard/field-renderer/FieldRenderer.jsx +87 -0
- package/src/progressive-profiling-dashboard/field-renderer/index.jsx +1 -0
- package/src/progressive-profiling-dashboard/hooks/useClearProgressiveProfilingQueryParams.jsx +12 -0
- package/src/progressive-profiling-dashboard/hooks/useProgressiveProfilingForm.jsx +55 -0
- package/src/progressive-profiling-dashboard/hooks/useProgressiveProfilingTrigger.jsx +9 -0
- package/src/progressive-profiling-dashboard/index.jsx +3 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfiling.jsx +156 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/ProgressiveProfilingPageModal.jsx +59 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/LargeLayout.jsx +105 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/MediumLayout.jsx +95 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.jsx +85 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.jsx +3 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js +35 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.jsx +46 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/tests/BaseContainer.test.jsx +76 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.jsx +1 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.scss +269 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.jsx +62 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js +24 -0
- package/src/progressive-profiling-dashboard/progressive-profiling-authn-replica/tests/ProgressiveProfiling.test.jsx +165 -0
- package/src/progressive-profiling-dashboard/utils/constants.jsx +5 -0
- package/src/tracking/constants.js +2 -0
- package/src/tracking/trackers/progressiveProfiling.js +45 -0
- package/src/tracking/utils.js +16 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmallLayout.js","names":["_react","_interopRequireDefault","require","_propTypes","_frontendPlatform","_i18n","_paragon","_messages","_jsxRuntime","e","__esModule","default","SmallLayout","enterpriseBranding","formatMessage","useIntl","enterpriseLogoUrl","enterpriseName","enterpriseWelcomeHtml","enterpriseBrandedWelcomeString","platformWelcomeString","siteName","getConfig","SITE_NAME","baseLogoSrc","LOGO_WHITE_URL","LOGO_URL","jsxs","className","children","jsx","Hyperlink","destination","MARKETING_SITE_BASE_URL","Image","alt","src","xmlns","width","height","viewBox","fill","style","x1","y1","x2","y2","stroke","strokeWidth","messages","dangerouslySetInnerHTML","__html","propTypes","PropTypes","shape","string","defaultProps","_default","exports"],"sources":["../../../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/SmallLayout.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { getConfig } from '@edx/frontend-platform';\nimport { useIntl } from '@edx/frontend-platform/i18n';\nimport { Hyperlink, Image } from '@openedx/paragon';\n\nimport messages from './messages';\n\nconst SmallLayout = ({ enterpriseBranding }) => {\n const { formatMessage } = useIntl();\n\n const enterpriseLogoUrl = enterpriseBranding?.enterpriseLogoUrl || null;\n const enterpriseName = enterpriseBranding?.enterpriseName || null;\n const enterpriseWelcomeHtml = enterpriseBranding?.enterpriseBrandedWelcomeString\n || enterpriseBranding?.platformWelcomeString\n || '';\n\n const siteName = getConfig().SITE_NAME;\n const baseLogoSrc = getConfig().LOGO_WHITE_URL || getConfig().LOGO_URL;\n\n return (\n <div className=\"min-vw-100 bg-primary-400 auth-hero-left\">\n <div className=\"col-md-12 small-screen-top-stripe\" />\n <Hyperlink destination={getConfig().MARKETING_SITE_BASE_URL}>\n <Image className=\"logo-small auth-hero-base-logo\" alt={siteName} src={baseLogoSrc} />\n </Hyperlink>\n\n <div className=\"auth-hero-content d-flex flex-column\">\n <div className=\"d-flex align-items-center\">\n {enterpriseLogoUrl && (\n <div className=\"auth-hero-enterprise-logo-wrapper mr-4\">\n <Image\n alt={enterpriseName || 'Enterprise'}\n src={enterpriseLogoUrl}\n className=\"auth-hero-enterprise-logo\"\n />\n </div>\n )}\n\n <div className=\"auth-hero-slash mr-4\" aria-hidden=\"true\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"191\" height=\"250\" viewBox=\"0 0 191 250\" fill=\"none\" style={{ width: '100%', height: '100%' }}>\n <line x1=\"69.8107\" y1=\"33.833\" x2=\"32.9503\" y2=\"206.952\" stroke=\"#F0CC00\" strokeWidth=\"8\" />\n </svg>\n </div>\n\n <div className=\"auth-hero-heading\">\n <div className=\"auth-hero-heading-line text-white\">\n {formatMessage(messages['start.learning'])}\n </div>\n <div className=\"auth-hero-heading-line text-accent-a\">\n {formatMessage(messages['with.site.name'], { siteName })}\n </div>\n </div>\n </div>\n\n {enterpriseWelcomeHtml && (\n <div\n className=\"auth-hero-message mt-3\"\n // eslint-disable-next-line react/no-danger\n // HTML is provided by trusted enterprise branding config (sanitized upstream).\n dangerouslySetInnerHTML={{\n __html: enterpriseWelcomeHtml,\n }}\n />\n )}\n </div>\n </div>\n );\n};\n\nSmallLayout.propTypes = {\n enterpriseBranding: PropTypes.shape({\n enterpriseLogoUrl: PropTypes.string,\n enterpriseName: PropTypes.string,\n enterpriseBrandedWelcomeString: PropTypes.string,\n platformWelcomeString: PropTypes.string,\n }),\n};\n\nSmallLayout.defaultProps = {\n enterpriseBranding: null,\n};\n\nexport default SmallLayout;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAN,sBAAA,CAAAC,OAAA;AAAkC,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElC,MAAMG,WAAW,GAAGA,CAAC;EAAEC;AAAmB,CAAC,KAAK;EAC9C,MAAM;IAAEC;EAAc,CAAC,GAAG,IAAAC,aAAO,EAAC,CAAC;EAEnC,MAAMC,iBAAiB,GAAGH,kBAAkB,EAAEG,iBAAiB,IAAI,IAAI;EACvE,MAAMC,cAAc,GAAGJ,kBAAkB,EAAEI,cAAc,IAAI,IAAI;EACjE,MAAMC,qBAAqB,GAAGL,kBAAkB,EAAEM,8BAA8B,IAC3EN,kBAAkB,EAAEO,qBAAqB,IACzC,EAAE;EAEP,MAAMC,QAAQ,GAAG,IAAAC,2BAA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ED3C,WAAW,CAAC4C,YAAY,GAAG;EACzB3C,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAA4C,QAAA,GAAAC,OAAA,CAAA/C,OAAA,GAEaC,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "AuthLargeLayout", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _LargeLayout.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "AuthMediumLayout", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _MediumLayout.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "AuthSmallLayout", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _SmallLayout.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _LargeLayout = _interopRequireDefault(require("./LargeLayout"));
|
|
25
|
+
var _MediumLayout = _interopRequireDefault(require("./MediumLayout"));
|
|
26
|
+
var _SmallLayout = _interopRequireDefault(require("./SmallLayout"));
|
|
27
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_LargeLayout","_interopRequireDefault","require","_MediumLayout","_SmallLayout","e","__esModule","default"],"sources":["../../../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/index.jsx"],"sourcesContent":["export { default as AuthLargeLayout } from './LargeLayout';\nexport { default as AuthMediumLayout } from './MediumLayout';\nexport { default as AuthSmallLayout } from './SmallLayout';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA2D,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
'welcome.to.platform': {
|
|
10
|
+
id: 'welcome.to.platform',
|
|
11
|
+
defaultMessage: 'Welcome to {siteName}, {fullName}!',
|
|
12
|
+
description: 'Welcome message that appears on progressive profile page'
|
|
13
|
+
},
|
|
14
|
+
'start.learning': {
|
|
15
|
+
id: 'start.learning',
|
|
16
|
+
defaultMessage: 'Start learning',
|
|
17
|
+
description: 'Header text for logistration MFE pages'
|
|
18
|
+
},
|
|
19
|
+
'with.site.name': {
|
|
20
|
+
id: 'with.site.name',
|
|
21
|
+
defaultMessage: 'with {siteName}',
|
|
22
|
+
description: 'Header text with site name for logistration MFE pages'
|
|
23
|
+
},
|
|
24
|
+
'with.edx': {
|
|
25
|
+
id: 'with.edx',
|
|
26
|
+
defaultMessage: ' with edX'
|
|
27
|
+
},
|
|
28
|
+
'complete.your.profile.1': {
|
|
29
|
+
id: 'complete.your.profile.1',
|
|
30
|
+
defaultMessage: 'Complete',
|
|
31
|
+
description: 'part of text "complete your profile"'
|
|
32
|
+
},
|
|
33
|
+
'complete.your.profile.2': {
|
|
34
|
+
id: 'complete.your.profile.2',
|
|
35
|
+
defaultMessage: 'your profile',
|
|
36
|
+
description: 'part of text "complete your profile"'
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var _default = exports.default = messages;
|
|
40
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","names":["_i18n","require","messages","defineMessages","id","defaultMessage","description","_default","exports","default"],"sources":["../../../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/components/welcome-page-layout/messages.js"],"sourcesContent":["import { defineMessages } from '@edx/frontend-platform/i18n';\n\nconst messages = defineMessages({\n 'welcome.to.platform': {\n id: 'welcome.to.platform',\n defaultMessage: 'Welcome to {siteName}, {fullName}!',\n description: 'Welcome message that appears on progressive profile page',\n },\n 'start.learning': {\n id: 'start.learning',\n defaultMessage: 'Start learning',\n description: 'Header text for logistration MFE pages',\n },\n 'with.site.name': {\n id: 'with.site.name',\n defaultMessage: 'with {siteName}',\n description: 'Header text with site name for logistration MFE pages',\n },\n 'with.edx': {\n id: 'with.edx',\n defaultMessage: ' with edX',\n },\n 'complete.your.profile.1': {\n id: 'complete.your.profile.1',\n defaultMessage: 'Complete',\n description: 'part of text \"complete your profile\"',\n },\n 'complete.your.profile.2': {\n id: 'complete.your.profile.2',\n defaultMessage: 'your profile',\n description: 'part of text \"complete your profile\"',\n },\n});\n\nexport default messages;\n"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,MAAMC,QAAQ,GAAG,IAAAC,oBAAc,EAAC;EAC9B,qBAAqB,EAAE;IACrBC,EAAE,EAAE,qBAAqB;IACzBC,cAAc,EAAE,oCAAoC;IACpDC,WAAW,EAAE;EACf,CAAC;EACD,gBAAgB,EAAE;IAChBF,EAAE,EAAE,gBAAgB;IACpBC,cAAc,EAAE,gBAAgB;IAChCC,WAAW,EAAE;EACf,CAAC;EACD,gBAAgB,EAAE;IAChBF,EAAE,EAAE,gBAAgB;IACpBC,cAAc,EAAE,iBAAiB;IACjCC,WAAW,EAAE;EACf,CAAC;EACD,UAAU,EAAE;IACVF,EAAE,EAAE,UAAU;IACdC,cAAc,EAAE;EAClB,CAAC;EACD,yBAAyB,EAAE;IACzBD,EAAE,EAAE,yBAAyB;IAC7BC,cAAc,EAAE,UAAU;IAC1BC,WAAW,EAAE;EACf,CAAC;EACD,yBAAyB,EAAE;IACzBF,EAAE,EAAE,yBAAyB;IAC7BC,cAAc,EAAE,cAAc;IAC9BC,WAAW,EAAE;EACf;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEYP,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 _paragon = require("@openedx/paragon");
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
+
var _welcomePageLayout = require("./components/welcome-page-layout");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
const BaseContainer = ({
|
|
15
|
+
children,
|
|
16
|
+
enterpriseBranding
|
|
17
|
+
}) => {
|
|
18
|
+
const brandingData = enterpriseBranding?.thirdPartyAuthContext?.enterpriseBranding;
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
20
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21
|
+
className: "col-md-12 extra-large-screen-top-stripe"
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
23
|
+
className: "layout",
|
|
24
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
25
|
+
maxWidth: _paragon.breakpoints.small.maxWidth - 1,
|
|
26
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_welcomePageLayout.AuthSmallLayout, {
|
|
27
|
+
enterpriseBranding: brandingData
|
|
28
|
+
})
|
|
29
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
30
|
+
minWidth: _paragon.breakpoints.medium.minWidth,
|
|
31
|
+
maxWidth: _paragon.breakpoints.large.maxWidth - 1,
|
|
32
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_welcomePageLayout.AuthMediumLayout, {
|
|
33
|
+
enterpriseBranding: brandingData
|
|
34
|
+
})
|
|
35
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
36
|
+
minWidth: _paragon.breakpoints.extraLarge.minWidth,
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_welcomePageLayout.AuthLargeLayout, {
|
|
38
|
+
enterpriseBranding: brandingData
|
|
39
|
+
})
|
|
40
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
|
+
className: "content",
|
|
42
|
+
children: children
|
|
43
|
+
})]
|
|
44
|
+
})]
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
BaseContainer.defaultProps = {
|
|
48
|
+
enterpriseBranding: null
|
|
49
|
+
};
|
|
50
|
+
BaseContainer.propTypes = {
|
|
51
|
+
children: _propTypes.default.node.isRequired,
|
|
52
|
+
enterpriseBranding: _propTypes.default.shape({
|
|
53
|
+
thirdPartyAuthContext: _propTypes.default.shape({
|
|
54
|
+
enterpriseBranding: _propTypes.default.shape({})
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
};
|
|
58
|
+
var _default = exports.default = BaseContainer;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_paragon","_propTypes","_reactResponsive","_welcomePageLayout","_jsxRuntime","e","__esModule","default","BaseContainer","children","enterpriseBranding","brandingData","thirdPartyAuthContext","jsxs","Fragment","jsx","className","maxWidth","breakpoints","small","AuthSmallLayout","minWidth","medium","large","AuthMediumLayout","extraLarge","AuthLargeLayout","defaultProps","propTypes","PropTypes","node","isRequired","shape","_default","exports"],"sources":["../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/base-container/index.jsx"],"sourcesContent":["import React from 'react';\n\nimport { breakpoints } from '@openedx/paragon';\nimport PropTypes from 'prop-types';\nimport MediaQuery from 'react-responsive';\n\nimport { AuthLargeLayout, AuthMediumLayout, AuthSmallLayout } from './components/welcome-page-layout';\n\nconst BaseContainer = ({ children, enterpriseBranding }) => {\n const brandingData = enterpriseBranding?.thirdPartyAuthContext?.enterpriseBranding;\n\n return (\n <>\n <div className=\"col-md-12 extra-large-screen-top-stripe\" />\n <div className=\"layout\">\n <MediaQuery maxWidth={breakpoints.small.maxWidth - 1}>\n <AuthSmallLayout enterpriseBranding={brandingData} />\n </MediaQuery>\n <MediaQuery minWidth={breakpoints.medium.minWidth} maxWidth={breakpoints.large.maxWidth - 1}>\n <AuthMediumLayout enterpriseBranding={brandingData} />\n </MediaQuery>\n <MediaQuery minWidth={breakpoints.extraLarge.minWidth}>\n <AuthLargeLayout enterpriseBranding={brandingData} />\n </MediaQuery>\n <div className=\"content\">\n {children}\n </div>\n </div>\n </>\n );\n};\n\nBaseContainer.defaultProps = {\n enterpriseBranding: null,\n};\n\nBaseContainer.propTypes = {\n children: PropTypes.node.isRequired,\n enterpriseBranding: PropTypes.shape({\n thirdPartyAuthContext: PropTypes.shape({\n enterpriseBranding: PropTypes.shape({}),\n }),\n }),\n};\n\nexport default BaseContainer;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAA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Q,EAAEH,oBAAW,CAACO,UAAU,CAACJ,QAAS;QAAAZ,QAAA,eACpD,IAAAL,WAAA,CAAAW,GAAA,EAACZ,kBAAA,CAAAuB,eAAe;UAAChB,kBAAkB,EAAEC;QAAa,CAAE;MAAC,CAC3C,CAAC,eACb,IAAAP,WAAA,CAAAW,GAAA;QAAKC,SAAS,EAAC,SAAS;QAAAP,QAAA,EACrBA;MAAQ,CACN,CAAC;IAAA,CACH,CAAC;EAAA,CACN,CAAC;AAEP,CAAC;AAEDD,aAAa,CAACmB,YAAY,GAAG;EAC3BjB,kBAAkB,EAAE;AACtB,CAAC;AAEDF,aAAa,CAACoB,SAAS,GAAG;EACxBnB,QAAQ,EAAEoB,kBAAS,CAACC,IAAI,CAACC,UAAU;EACnCrB,kBAAkB,EAAEmB,kBAAS,CAACG,KAAK,CAAC;IAClCpB,qBAAqB,EAAEiB,kBAAS,CAACG,KAAK,CAAC;MACrCtB,kBAAkB,EAAEmB,kBAAS,CAACG,KAAK,CAAC,CAAC,CAAC;IACxC,CAAC;EACH,CAAC;AACH,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA3B,OAAA,GAEaC,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ProgressiveProfiling", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ProgressiveProfiling.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _ProgressiveProfiling = _interopRequireDefault(require("./ProgressiveProfiling"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_ProgressiveProfiling","_interopRequireDefault","require","e","__esModule","default"],"sources":["../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/index.jsx"],"sourcesContent":["export { default as ProgressiveProfiling } from './ProgressiveProfiling';\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAyE,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
@use "@openedx/paragon/styles/css/core/custom-media-breakpoints" as paragonCustomMediaBreakpoints;
|
|
2
|
+
|
|
3
|
+
.pp-page__button-width{
|
|
4
|
+
min-width: 6rem;
|
|
5
|
+
}
|
|
6
|
+
.pp-page__support-link {
|
|
7
|
+
font-size: 0.875rem;
|
|
8
|
+
font-weight: 400;
|
|
9
|
+
}
|
|
10
|
+
.pp-page__heading {
|
|
11
|
+
line-height: 1.75rem;
|
|
12
|
+
font-size: 1.375rem;
|
|
13
|
+
margin-bottom: 0.5rem;
|
|
14
|
+
font-weight: 700;
|
|
15
|
+
|
|
16
|
+
@media (--pgn-size-breakpoint-max-width-md) {
|
|
17
|
+
line-height: 1.5rem;
|
|
18
|
+
font-size: 1.125rem;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
@media (max-width: 464px) {
|
|
22
|
+
.pp-page__support-link {
|
|
23
|
+
font-size: 0.688rem;
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
line-height: 0.938rem;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.logo-small {
|
|
30
|
+
width: 44.67px;
|
|
31
|
+
margin-top: 1.25rem;
|
|
32
|
+
margin-left: 1.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.welcome-page-logo {
|
|
36
|
+
width: 71px;
|
|
37
|
+
margin-top: 2rem;
|
|
38
|
+
margin-left: 1.5rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.main-heading {
|
|
42
|
+
position: relative;
|
|
43
|
+
z-index: 2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.small-screen-top-stripe {
|
|
47
|
+
height: 0.25rem;
|
|
48
|
+
background-image: linear-gradient(102.02deg,
|
|
49
|
+
var(--pgn-color-brand-700),
|
|
50
|
+
var(--pgn-color-brand-700) 20%,
|
|
51
|
+
var(--pgn-color-brand-base) 20%,
|
|
52
|
+
);
|
|
53
|
+
background-repeat: no-repeat;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (--pgn-size-breakpoint-min-width-md) and (--pgn-size-breakpoint-max-width-md) {
|
|
57
|
+
.medium-screen-top-stripe {
|
|
58
|
+
display: flex;
|
|
59
|
+
height: 0.5rem;
|
|
60
|
+
background-image: linear-gradient(102.02deg,
|
|
61
|
+
var(--pgn-color-brand-700),
|
|
62
|
+
var(--pgn-color-brand-700) 10%,
|
|
63
|
+
var(--pgn-color-brand-base) 10%,
|
|
64
|
+
var(--pgn-color-brand-base) 90%,
|
|
65
|
+
var(--pgn-color-primary-700) 90%,
|
|
66
|
+
var(--pgn-color-primary-700) 100%,
|
|
67
|
+
);
|
|
68
|
+
background-repeat: no-repeat;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (--pgn-size-breakpoint-min-width-lg) and (--pgn-size-breakpoint-max-width-lg) {
|
|
73
|
+
.medium-screen-top-stripe {
|
|
74
|
+
display: flex;
|
|
75
|
+
height: 0.5rem;
|
|
76
|
+
background-image: linear-gradient(102.02deg,
|
|
77
|
+
var(--pgn-color-brand-700) 10%,
|
|
78
|
+
var(--pgn-color-brand-base) 10%,
|
|
79
|
+
var(--pgn-color-brand-base) 65%,
|
|
80
|
+
var(--pgn-color-primary-700) 65%,
|
|
81
|
+
var(--pgn-color-primary-700) 75%,
|
|
82
|
+
var(--pgn-color-accent-a) 75%,
|
|
83
|
+
var(--pgn-color-accent-a) 75%);
|
|
84
|
+
background-repeat: no-repeat;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.extra-large-screen-top-stripe {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@media (--pgn-size-breakpoint-min-width-xl) {
|
|
93
|
+
.extra-large-screen-top-stripe {
|
|
94
|
+
display: flex;
|
|
95
|
+
height: 0.5rem;
|
|
96
|
+
background-image: linear-gradient(102.02deg,
|
|
97
|
+
var(--pgn-color-brand-700) 10%,
|
|
98
|
+
var(--pgn-color-brand-base) 10%,
|
|
99
|
+
var(--pgn-color-brand-base) 45%,
|
|
100
|
+
var(--pgn-color-primary-700) 45%,
|
|
101
|
+
var(--pgn-color-primary-700) 55%,
|
|
102
|
+
var(--pgn-color-accent-a) 55%,
|
|
103
|
+
var(--pgn-color-accent-a) 75%,
|
|
104
|
+
var(--pgn-color-info-200) 75%,
|
|
105
|
+
);
|
|
106
|
+
background-repeat: no-repeat;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.large-screen-svg-primary {
|
|
111
|
+
fill: var(--pgn-color-primary-400);
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
position: absolute;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.medium-screen-svg-primary {
|
|
117
|
+
fill: var(--pgn-color-primary-400);
|
|
118
|
+
overflow: inherit;
|
|
119
|
+
position: absolute;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
[dir=rtl] {
|
|
123
|
+
.medium-screen-svg-primary,
|
|
124
|
+
.large-screen-svg-primary {
|
|
125
|
+
transform: scaleX(-1);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.small-yellow-line {
|
|
130
|
+
width: 80px;
|
|
131
|
+
height: 0;
|
|
132
|
+
border: 2px solid var(--pgn-color-accent-b);
|
|
133
|
+
transform: rotate(102.02deg);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.medium-yellow-line {
|
|
137
|
+
width: 120px;
|
|
138
|
+
height: 0;
|
|
139
|
+
border: 3px solid var(--pgn-color-accent-b);
|
|
140
|
+
transform: rotate(102.02deg);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.large-yellow-line {
|
|
144
|
+
width: 240px;
|
|
145
|
+
height: 0;
|
|
146
|
+
border: 3px solid var(--pgn-color-accent-b);
|
|
147
|
+
transform: rotate(102.02deg);
|
|
148
|
+
}
|
|
149
|
+
.auth-hero-left {
|
|
150
|
+
padding-left: 3.5rem;
|
|
151
|
+
padding-right: 3.5rem;
|
|
152
|
+
min-height: 100vh;
|
|
153
|
+
display: flex;
|
|
154
|
+
flex-direction: column;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.auth-hero-base-logo {
|
|
158
|
+
// reuse existing .logo sizes, just ensure it sits above everything
|
|
159
|
+
position: relative;
|
|
160
|
+
z-index: 2;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.auth-hero-content {
|
|
164
|
+
// distance from top stripe & logo to hero block (matches Figma visually)
|
|
165
|
+
margin-top: 7rem;
|
|
166
|
+
max-width: 560px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* enterprise logo in white card */
|
|
170
|
+
.auth-hero-enterprise-logo-wrapper {
|
|
171
|
+
background: #ffffff;
|
|
172
|
+
border-radius: 6px;
|
|
173
|
+
padding: 0.75rem 1rem;
|
|
174
|
+
display: inline-flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.auth-hero-enterprise-logo {
|
|
180
|
+
max-width: 145px;
|
|
181
|
+
max-height: 74px;
|
|
182
|
+
object-fit: contain;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* yellow slanted line */
|
|
186
|
+
.auth-hero-slash {
|
|
187
|
+
width: 0; // only height+border matters
|
|
188
|
+
height: 110px; // tune this to match logo/heading height
|
|
189
|
+
border-left: 6px solid #F0CC00; // Figma yellow
|
|
190
|
+
border-radius: 999px;
|
|
191
|
+
transform: skewX(-12deg); // gives that forward slash look
|
|
192
|
+
transform-origin: center;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/* heading text: "Start learning" + "with edX" */
|
|
196
|
+
.auth-hero-heading {
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.auth-hero-heading-line {
|
|
202
|
+
font-family: 'Inter', sans-serif;
|
|
203
|
+
font-size: 60px;
|
|
204
|
+
font-weight: 700;
|
|
205
|
+
line-height: 60px;
|
|
206
|
+
letter-spacing: -1.2px;
|
|
207
|
+
color: #FFFFFF; // for "Start learning"
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.auth-hero-heading-line.text-accent-a {
|
|
211
|
+
color: #03C7E8 !important; // for "with edX"
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* enterprise message aligned under heading, same left edge */
|
|
215
|
+
.auth-hero-message {
|
|
216
|
+
max-width: 492px;
|
|
217
|
+
color: #fff;
|
|
218
|
+
font-family: 'Inter', sans-serif;
|
|
219
|
+
font-size: 22px;
|
|
220
|
+
font-weight: 400;
|
|
221
|
+
line-height: 36px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.auth-hero-message p {
|
|
225
|
+
margin: 0;
|
|
226
|
+
color: inherit;
|
|
227
|
+
font-size: inherit;
|
|
228
|
+
line-height: inherit;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.auth-hero-message a {
|
|
232
|
+
color: #03c7e8;
|
|
233
|
+
text-decoration: underline;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* simple responsive tweaks */
|
|
237
|
+
@media (max-width: 1199.98px) {
|
|
238
|
+
.auth-hero-heading-line {
|
|
239
|
+
font-size: 2.5rem;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.auth-hero-content {
|
|
243
|
+
margin-top: 4rem;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.layout {
|
|
248
|
+
display: flex;
|
|
249
|
+
|
|
250
|
+
@media (--pgn-size-breakpoint-max-width-lg) {
|
|
251
|
+
flex-direction: column;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
align-items: center;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@media (--pgn-size-breakpoint-min-width-xl) {
|
|
257
|
+
justify-content: space-between;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.content {
|
|
262
|
+
@media (--pgn-size-breakpoint-min-width-xl) {
|
|
263
|
+
display: flex;
|
|
264
|
+
justify-content: center;
|
|
265
|
+
width: 50vw;
|
|
266
|
+
margin-top: 4rem;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
'progressive.profiling.page.title': {
|
|
10
|
+
id: 'progressive.profiling.page.title',
|
|
11
|
+
defaultMessage: 'Welcome | {siteName}',
|
|
12
|
+
description: 'progressive profiling page title'
|
|
13
|
+
},
|
|
14
|
+
'progressive.profiling.page.heading': {
|
|
15
|
+
id: 'progressive.profiling.page.heading',
|
|
16
|
+
defaultMessage: 'A few questions for you will help us get smarter.',
|
|
17
|
+
description: 'The page heading for the progressive profiling page.'
|
|
18
|
+
},
|
|
19
|
+
'optional.fields.information.link': {
|
|
20
|
+
id: 'optional.fields.information.link',
|
|
21
|
+
defaultMessage: 'Learn more about how we use this information.',
|
|
22
|
+
description: 'Optional fields page information link'
|
|
23
|
+
},
|
|
24
|
+
'optional.fields.submit.button': {
|
|
25
|
+
id: 'optional.fields.submit.button',
|
|
26
|
+
defaultMessage: 'Submit',
|
|
27
|
+
description: 'Submit button text'
|
|
28
|
+
},
|
|
29
|
+
'optional.fields.skip.button': {
|
|
30
|
+
id: 'optional.fields.skip.button',
|
|
31
|
+
defaultMessage: 'Skip for now',
|
|
32
|
+
description: 'Skip button text'
|
|
33
|
+
},
|
|
34
|
+
'optional.fields.next.button': {
|
|
35
|
+
id: 'optional.fields.next.button',
|
|
36
|
+
defaultMessage: 'Next',
|
|
37
|
+
description: 'Next button text'
|
|
38
|
+
},
|
|
39
|
+
// modal dialog box
|
|
40
|
+
'continue.to.platform': {
|
|
41
|
+
id: 'continue.to.platform',
|
|
42
|
+
defaultMessage: 'Continue to {platformName}',
|
|
43
|
+
description: 'Button text for modal when user chooses "skip for now" option'
|
|
44
|
+
},
|
|
45
|
+
'modal.title': {
|
|
46
|
+
id: 'modal.title',
|
|
47
|
+
defaultMessage: 'Thanks for letting us know.',
|
|
48
|
+
description: 'Heading for welcome page modal'
|
|
49
|
+
},
|
|
50
|
+
'modal.description': {
|
|
51
|
+
id: 'modal.description',
|
|
52
|
+
defaultMessage: 'You can complete your profile in settings at any time if you change your mind.',
|
|
53
|
+
description: 'Modal body text'
|
|
54
|
+
},
|
|
55
|
+
// error message
|
|
56
|
+
'welcome.page.error.heading': {
|
|
57
|
+
id: 'welcome.page.error.heading',
|
|
58
|
+
defaultMessage: 'We couldn\'t update your profile',
|
|
59
|
+
description: 'Error message heading'
|
|
60
|
+
},
|
|
61
|
+
'welcome.page.error.message': {
|
|
62
|
+
id: 'welcome.page.error.message',
|
|
63
|
+
defaultMessage: 'An error occurred. You can complete your profile in settings at any time.',
|
|
64
|
+
description: 'Error message body'
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
var _default = exports.default = messages;
|
|
68
|
+
//# sourceMappingURL=messages.js.map
|
package/dist/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","names":["_i18n","require","messages","defineMessages","id","defaultMessage","description","_default","exports","default"],"sources":["../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/messages.jsx"],"sourcesContent":["import { defineMessages } from '@edx/frontend-platform/i18n';\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"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,MAAM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AAAC,OAAA,CAAAC,OAAA,GACYP,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = getThirdPartyAuthContext;
|
|
7
|
+
var _frontendPlatform = require("@edx/frontend-platform");
|
|
8
|
+
var _auth = require("@edx/frontend-platform/auth");
|
|
9
|
+
async function getThirdPartyAuthContext(urlParams) {
|
|
10
|
+
const requestConfig = {
|
|
11
|
+
headers: {
|
|
12
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
13
|
+
},
|
|
14
|
+
params: urlParams,
|
|
15
|
+
isPublic: true
|
|
16
|
+
};
|
|
17
|
+
const {
|
|
18
|
+
data
|
|
19
|
+
} = await (0, _auth.getAuthenticatedHttpClient)().get(`${(0, _frontendPlatform.getConfig)().LMS_BASE_URL}/api/mfe_context`, requestConfig).catch(e => {
|
|
20
|
+
throw e;
|
|
21
|
+
});
|
|
22
|
+
return {
|
|
23
|
+
fieldDescriptions: data.registrationFields || {},
|
|
24
|
+
optionalFields: data.optionalFields || {},
|
|
25
|
+
thirdPartyAuthContext: data.contextData || {}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=getThirdPartyAuthContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThirdPartyAuthContext.js","names":["_frontendPlatform","require","_auth","getThirdPartyAuthContext","urlParams","requestConfig","headers","params","isPublic","data","getAuthenticatedHttpClient","get","getConfig","LMS_BASE_URL","catch","e","fieldDescriptions","registrationFields","optionalFields","thirdPartyAuthContext","contextData"],"sources":["../../../../src/progressive-profiling-dashboard/progressive-profiling-authn-replica/service/getThirdPartyAuthContext.js"],"sourcesContent":["import { getConfig } from '@edx/frontend-platform';\nimport { getAuthenticatedHttpClient } from '@edx/frontend-platform/auth';\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 `${getConfig().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"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEe,eAAeE,wBAAwBA,CAACC,SAAS,EAAE;EAChE,MAAMC,aAAa,GAAG;IACpBC,OAAO,EAAE;MAAE,cAAc,EAAE;IAAoC,CAAC;IAChEC,MAAM,EAAEH,SAAS;IACjBI,QAAQ,EAAE;EACZ,CAAC;EAED,MAAM;IAAEC;EAAK,CAAC,GAAG,MAAM,IAAAC,gCAA0B,EAAC,CAAC,CAChDC,GAAG,CACF,GAAG,IAAAC,2BAAS,EAAC,CAAC,CAACC,YAAY,kBAAkB,EAC7CR,aACF,CAAC,CACAS,KAAK,CAAEC,CAAC,IAAK;IACZ,MAAOA,CAAC;EACV,CAAC,CAAC;EACJ,OAAO;IACLC,iBAAiB,EAAEP,IAAI,CAACQ,kBAAkB,IAAI,CAAC,CAAC;IAChDC,cAAc,EAAET,IAAI,CAACS,cAAc,IAAI,CAAC,CAAC;IACzCC,qBAAqB,EAAEV,IAAI,CAACW,WAAW,IAAI,CAAC;EAC9C,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PROGRESSIVE_PROFILING_QUERY_PARAM = exports.PENDING_STATE = exports.FAILURE_STATE = exports.DEFAULT_STATE = exports.COMPLETE_STATE = void 0;
|
|
7
|
+
const PROGRESSIVE_PROFILING_QUERY_PARAM = exports.PROGRESSIVE_PROFILING_QUERY_PARAM = 'progressiveProfiling';
|
|
8
|
+
const DEFAULT_STATE = exports.DEFAULT_STATE = 'default';
|
|
9
|
+
const PENDING_STATE = exports.PENDING_STATE = 'pending';
|
|
10
|
+
const COMPLETE_STATE = exports.COMPLETE_STATE = 'complete';
|
|
11
|
+
const FAILURE_STATE = exports.FAILURE_STATE = 'failure';
|
|
12
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","names":["PROGRESSIVE_PROFILING_QUERY_PARAM","exports","DEFAULT_STATE","PENDING_STATE","COMPLETE_STATE","FAILURE_STATE"],"sources":["../../../src/progressive-profiling-dashboard/utils/constants.jsx"],"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"],"mappings":";;;;;;AAAO,MAAMA,iCAAiC,GAAAC,OAAA,CAAAD,iCAAA,GAAG,sBAAsB;AAChE,MAAME,aAAa,GAAAD,OAAA,CAAAC,aAAA,GAAG,SAAS;AAC/B,MAAMC,aAAa,GAAAF,OAAA,CAAAE,aAAA,GAAG,SAAS;AAC/B,MAAMC,cAAc,GAAAH,OAAA,CAAAG,cAAA,GAAG,UAAU;AACjC,MAAMC,aAAa,GAAAJ,OAAA,CAAAI,aAAA,GAAG,SAAS","ignoreList":[]}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.eventNames = exports.categories = exports.LOCATION_LEARNER_HOME = exports.EXPLORE_COURSES_HTML_ID = exports.EXPLORE_COURSES_EVENT_TEXT = exports.EXPLORE_COURSES_EVENT_NAME = exports.BUTTON_ELEMENT_TYPE = void 0;
|
|
6
|
+
exports.eventNames = exports.categories = exports.LOCATION_LEARNER_HOME = exports.LEARNER_HOME_APP_NAME = exports.EXPLORE_COURSES_HTML_ID = exports.EXPLORE_COURSES_EVENT_TEXT = exports.EXPLORE_COURSES_EVENT_NAME = exports.BUTTON_ELEMENT_TYPE = void 0;
|
|
7
|
+
const LEARNER_HOME_APP_NAME = exports.LEARNER_HOME_APP_NAME = 'learner-home';
|
|
7
8
|
const learnerPortal = 'edx.ui.enterprise.lms.dashboard.learner_portal_modal';
|
|
8
9
|
const eventNames = exports.eventNames = {
|
|
9
10
|
dashboardModalOpened: `${learnerPortal}.opened`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["
|
|
1
|
+
{"version":3,"file":"constants.js","names":["LEARNER_HOME_APP_NAME","exports","learnerPortal","eventNames","dashboardModalOpened","dashboardModalCTAClicked","dashboardModalClosed","upgradeButtonClicked","upgradeButtonClickedEnrollment","upgradeButtonClickedUpsell","categories","upgrade","BUTTON_ELEMENT_TYPE","LOCATION_LEARNER_HOME","EXPLORE_COURSES_HTML_ID","EXPLORE_COURSES_EVENT_NAME","EXPLORE_COURSES_EVENT_TEXT"],"sources":["../../src/tracking/constants.js"],"sourcesContent":["export const LEARNER_HOME_APP_NAME = 'learner-home';\n\nconst learnerPortal = 'edx.ui.enterprise.lms.dashboard.learner_portal_modal';\n\nexport const eventNames = {\n dashboardModalOpened: `${learnerPortal}.opened`,\n dashboardModalCTAClicked: `${learnerPortal}.dashboard_cta.clicked`,\n dashboardModalClosed: `${learnerPortal}.closed`,\n upgradeButtonClicked: 'edx.bi.dashboard.upgrade_button.clicked',\n upgradeButtonClickedEnrollment: 'edx.course.enrollment.upgrade.clicked',\n upgradeButtonClickedUpsell: 'edx.bi.ecommerce.upsell_links_clicked',\n};\n\nexport const categories = {\n upgrade: 'upgrade',\n};\n\n// Cohesion event properties\nexport const BUTTON_ELEMENT_TYPE = 'BUTTON';\nexport const LOCATION_LEARNER_HOME = 'learner-home-legacy';\nexport const EXPLORE_COURSES_HTML_ID = 'explore-courses';\nexport const EXPLORE_COURSES_EVENT_NAME = 'explore-courses-LD-cta';\nexport const EXPLORE_COURSES_EVENT_TEXT = 'Explore courses';\n"],"mappings":";;;;;;AAAO,MAAMA,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG,cAAc;AAEnD,MAAME,aAAa,GAAG,sDAAsD;AAErE,MAAMC,UAAU,GAAAF,OAAA,CAAAE,UAAA,GAAG;EACxBC,oBAAoB,EAAE,GAAGF,aAAa,SAAS;EAC/CG,wBAAwB,EAAE,GAAGH,aAAa,wBAAwB;EAClEI,oBAAoB,EAAE,GAAGJ,aAAa,SAAS;EAC/CK,oBAAoB,EAAE,yCAAyC;EAC/DC,8BAA8B,EAAE,uCAAuC;EACvEC,0BAA0B,EAAE;AAC9B,CAAC;AAEM,MAAMC,UAAU,GAAAT,OAAA,CAAAS,UAAA,GAAG;EACxBC,OAAO,EAAE;AACX,CAAC;;AAED;AACO,MAAMC,mBAAmB,GAAAX,OAAA,CAAAW,mBAAA,GAAG,QAAQ;AACpC,MAAMC,qBAAqB,GAAAZ,OAAA,CAAAY,qBAAA,GAAG,qBAAqB;AACnD,MAAMC,uBAAuB,GAAAb,OAAA,CAAAa,uBAAA,GAAG,iBAAiB;AACjD,MAAMC,0BAA0B,GAAAd,OAAA,CAAAc,0BAAA,GAAG,wBAAwB;AAC3D,MAAMC,0BAA0B,GAAAf,OAAA,CAAAe,0BAAA,GAAG,iBAAiB","ignoreList":[]}
|