@openedx/frontend-app-authn 1.0.0-alpha.9 → 1.0.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/Main.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import './sass/_style.scss';
1
+ import './style.scss';
2
2
  declare const Main: () => import("react/jsx-runtime").JSX.Element;
3
3
  export default Main;
package/dist/Main.js CHANGED
@@ -3,7 +3,7 @@ import { Outlet } from 'react-router-dom';
3
3
  import { CurrentAppProvider } from '@openedx/frontend-base';
4
4
  import { appId } from './constants';
5
5
  import { registerIcons, } from './common-components';
6
- import './sass/_style.scss';
6
+ import './style.scss';
7
7
  registerIcons();
8
8
  const Main = () => (_jsx(CurrentAppProvider, { appId: appId, children: _jsx(Outlet, {}) }));
9
9
  export default Main;
package/dist/Main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Main.js","sourceRoot":"","sources":["../src/Main.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EACL,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,oBAAoB,CAAC;AAE5B,aAAa,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,CACjB,KAAC,kBAAkB,IAAC,KAAK,EAAE,KAAK,YAC9B,KAAC,MAAM,KAAG,GACS,CACtB,CAAC;AAEF,eAAe,IAAI,CAAC","sourcesContent":["import { Outlet } from 'react-router-dom';\nimport { CurrentAppProvider } from '@openedx/frontend-base';\n\nimport { appId } from './constants';\nimport {\n registerIcons,\n} from './common-components';\n\nimport './sass/_style.scss';\n\nregisterIcons();\n\nconst Main = () => (\n <CurrentAppProvider appId={appId}>\n <Outlet />\n </CurrentAppProvider>\n);\n\nexport default Main;\n"]}
1
+ {"version":3,"file":"Main.js","sourceRoot":"","sources":["../src/Main.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EACL,aAAa,GACd,MAAM,qBAAqB,CAAC;AAE7B,OAAO,cAAc,CAAC;AAEtB,aAAa,EAAE,CAAC;AAEhB,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,CACjB,KAAC,kBAAkB,IAAC,KAAK,EAAE,KAAK,YAC9B,KAAC,MAAM,KAAG,GACS,CACtB,CAAC;AAEF,eAAe,IAAI,CAAC","sourcesContent":["import { Outlet } from 'react-router-dom';\nimport { CurrentAppProvider } from '@openedx/frontend-base';\n\nimport { appId } from './constants';\nimport {\n registerIcons,\n} from './common-components';\n\nimport './style.scss';\n\nregisterIcons();\n\nconst Main = () => (\n <CurrentAppProvider appId={appId}>\n <Outlet />\n </CurrentAppProvider>\n);\n\nexport default Main;\n"]}
package/dist/app.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import { appId } from './constants';
2
+ import provides from './provides';
2
3
  import routes from './routes';
3
4
  const app = {
4
5
  appId,
5
6
  routes,
7
+ provides,
6
8
  config: {
7
9
  ACTIVATION_EMAIL_SUPPORT_LINK: null,
8
10
  ALLOW_PUBLIC_ACCOUNT_CREATION: true,
package/dist/app.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,GAAG,GAAQ;IACf,KAAK;IACL,MAAM;IACN,MAAM,EAAE;QACN,6BAA6B,EAAE,IAAI;QACnC,6BAA6B,EAAE,IAAI;QACnC,wCAAwC,EAAE,IAAI;QAC9C,wBAAwB,EAAE,EAAE;QAC5B,kBAAkB,EAAE,EAAE;QACtB,mBAAmB,EAAE,EAAE;QACvB,kBAAkB,EAAE,EAAE;QACtB,wBAAwB,EAAE,IAAI;QAC9B,8BAA8B,EAAE,KAAK;QACrC,kCAAkC,EAAE,KAAK;QACzC,mBAAmB,EAAE,KAAK;QAC1B,qCAAqC,EAAE,KAAK;QAC5C,WAAW,EAAE,4CAA4C;QACzD,UAAU,EAAE,EAAE;QACd,wBAAwB,EAAE,IAAI;QAC9B,kBAAkB,EAAE,mDAAmD;QACvE,QAAQ,EAAE,yCAAyC;QACnD,cAAc,EAAE,+CAA+C;QAC/D,uBAAuB,EAAE,EAAE;QAC3B,uBAAuB,EAAE,yBAAyB;QAClD,2BAA2B,EAAE,IAAI;QACjC,8BAA8B,EAAE,EAAE;QAClC,cAAc,EAAE,IAAI;QACpB,kBAAkB,EAAE,IAAI;QACxB,qBAAqB,EAAE,kBAAkB;QACzC,uBAAuB,EAAE,IAAI;QAC7B,kBAAkB,EAAE,IAAI;QACxB,QAAQ,EAAE,IAAI;QACd,0BAA0B,EAAE,EAAE;KAC/B;CACF,CAAC;AAEF,eAAe,GAAG,CAAC","sourcesContent":["import { App } from '@openedx/frontend-base';\nimport { appId } from './constants';\nimport routes from './routes';\n\nconst app: App = {\n appId,\n routes,\n config: {\n ACTIVATION_EMAIL_SUPPORT_LINK: null,\n ALLOW_PUBLIC_ACCOUNT_CREATION: true,\n AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK: null,\n BANNER_IMAGE_EXTRA_SMALL: '',\n BANNER_IMAGE_LARGE: '',\n BANNER_IMAGE_MEDIUM: '',\n BANNER_IMAGE_SMALL: '',\n DISABLE_ENTERPRISE_LOGIN: true,\n ENABLE_AUTO_GENERATED_USERNAME: false,\n ENABLE_DYNAMIC_REGISTRATION_FIELDS: false,\n ENABLE_IMAGE_LAYOUT: false,\n ENABLE_PROGRESSIVE_PROFILING_ON_AUTHN: false,\n FAVICON_URL: 'https://edx-cdn.org/v3/default/favicon.ico',\n INFO_EMAIL: '',\n LOGIN_ISSUE_SUPPORT_LINK: null,\n LOGO_TRADEMARK_URL: 'https://edx-cdn.org/v3/default/logo-trademark.svg',\n LOGO_URL: 'https://edx-cdn.org/v3/default/logo.svg',\n LOGO_WHITE_URL: 'https://edx-cdn.org/v3/default/logo-white.svg',\n MARKETING_EMAILS_OPT_IN: '',\n MARKETING_SITE_BASE_URL: 'http://local.openedx.io',\n PASSWORD_RESET_SUPPORT_LINK: null,\n POST_REGISTRATION_REDIRECT_URL: '',\n PRIVACY_POLICY: null,\n SEARCH_CATALOG_URL: null,\n SESSION_COOKIE_DOMAIN: 'local.openedx.io',\n SHOW_REGISTRATION_LINKS: true,\n TOS_AND_HONOR_CODE: null,\n TOS_LINK: null,\n USER_RETENTION_COOKIE_NAME: '',\n },\n};\n\nexport default app;\n"]}
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,GAAG,GAAQ;IACf,KAAK;IACL,MAAM;IACN,QAAQ;IACR,MAAM,EAAE;QACN,6BAA6B,EAAE,IAAI;QACnC,6BAA6B,EAAE,IAAI;QACnC,wCAAwC,EAAE,IAAI;QAC9C,wBAAwB,EAAE,EAAE;QAC5B,kBAAkB,EAAE,EAAE;QACtB,mBAAmB,EAAE,EAAE;QACvB,kBAAkB,EAAE,EAAE;QACtB,wBAAwB,EAAE,IAAI;QAC9B,8BAA8B,EAAE,KAAK;QACrC,kCAAkC,EAAE,KAAK;QACzC,mBAAmB,EAAE,KAAK;QAC1B,qCAAqC,EAAE,KAAK;QAC5C,WAAW,EAAE,4CAA4C;QACzD,UAAU,EAAE,EAAE;QACd,wBAAwB,EAAE,IAAI;QAC9B,kBAAkB,EAAE,mDAAmD;QACvE,QAAQ,EAAE,yCAAyC;QACnD,cAAc,EAAE,+CAA+C;QAC/D,uBAAuB,EAAE,EAAE;QAC3B,uBAAuB,EAAE,yBAAyB;QAClD,2BAA2B,EAAE,IAAI;QACjC,8BAA8B,EAAE,EAAE;QAClC,cAAc,EAAE,IAAI;QACpB,kBAAkB,EAAE,IAAI;QACxB,qBAAqB,EAAE,kBAAkB;QACzC,uBAAuB,EAAE,IAAI;QAC7B,kBAAkB,EAAE,IAAI;QACxB,QAAQ,EAAE,IAAI;QACd,0BAA0B,EAAE,EAAE;KAC/B;CACF,CAAC;AAEF,eAAe,GAAG,CAAC","sourcesContent":["import { App } from '@openedx/frontend-base';\nimport { appId } from './constants';\nimport provides from './provides';\nimport routes from './routes';\n\nconst app: App = {\n appId,\n routes,\n provides,\n config: {\n ACTIVATION_EMAIL_SUPPORT_LINK: null,\n ALLOW_PUBLIC_ACCOUNT_CREATION: true,\n AUTHN_PROGRESSIVE_PROFILING_SUPPORT_LINK: null,\n BANNER_IMAGE_EXTRA_SMALL: '',\n BANNER_IMAGE_LARGE: '',\n BANNER_IMAGE_MEDIUM: '',\n BANNER_IMAGE_SMALL: '',\n DISABLE_ENTERPRISE_LOGIN: true,\n ENABLE_AUTO_GENERATED_USERNAME: false,\n ENABLE_DYNAMIC_REGISTRATION_FIELDS: false,\n ENABLE_IMAGE_LAYOUT: false,\n ENABLE_PROGRESSIVE_PROFILING_ON_AUTHN: false,\n FAVICON_URL: 'https://edx-cdn.org/v3/default/favicon.ico',\n INFO_EMAIL: '',\n LOGIN_ISSUE_SUPPORT_LINK: null,\n LOGO_TRADEMARK_URL: 'https://edx-cdn.org/v3/default/logo-trademark.svg',\n LOGO_URL: 'https://edx-cdn.org/v3/default/logo.svg',\n LOGO_WHITE_URL: 'https://edx-cdn.org/v3/default/logo-white.svg',\n MARKETING_EMAILS_OPT_IN: '',\n MARKETING_SITE_BASE_URL: 'http://local.openedx.io',\n PASSWORD_RESET_SUPPORT_LINK: null,\n POST_REGISTRATION_REDIRECT_URL: '',\n PRIVACY_POLICY: null,\n SEARCH_CATALOG_URL: null,\n SESSION_COOKIE_DOMAIN: 'local.openedx.io',\n SHOW_REGISTRATION_LINKS: true,\n TOS_AND_HONOR_CODE: null,\n TOS_LINK: null,\n USER_RETENTION_COOKIE_NAME: '',\n },\n};\n\nexport default app;\n"]}
@@ -1,5 +1,12 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { FormattedMessage } from '@openedx/frontend-base';
3
- const NotFoundPage = () => (_jsx("div", { className: "container-fluid d-flex py-5 justify-content-center align-items-start text-center", children: _jsx("p", { className: "my-0 py-5 text-muted mw-32em", children: _jsx(FormattedMessage, { id: "error.notfound.message", defaultMessage: "The page you're looking for is unavailable or there's an error in the URL. Please check the URL and try again.", description: "error message when a page does not exist" }) }) }));
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { FormattedMessage, getSiteConfig, useIntl } from '@openedx/frontend-base';
3
+ import { Helmet } from 'react-helmet';
4
+ import messages from './messages';
5
+ const NotFoundPage = () => {
6
+ const { formatMessage } = useIntl();
7
+ return (_jsxs("div", { className: "container-fluid d-flex py-5 justify-content-center align-items-start text-center", children: [_jsx(Helmet, { children: _jsx("title", { children: formatMessage(messages['error.notfound.page.title'], {
8
+ siteName: getSiteConfig().siteName,
9
+ }) }) }), _jsx("p", { className: "my-0 py-5 text-muted mw-32em", children: _jsx(FormattedMessage, { id: "error.notfound.message", defaultMessage: "The page you're looking for is unavailable or there's an error in the URL. Please check the URL and try again.", description: "error message when a page does not exist" }) })] }));
10
+ };
4
11
  export default NotFoundPage;
5
12
  //# sourceMappingURL=NotFoundPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotFoundPage.js","sourceRoot":"","sources":["../../src/common-components/NotFoundPage.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,CACzB,cAAK,SAAS,EAAC,kFAAkF,YAC/F,YAAG,SAAS,EAAC,8BAA8B,YACzC,KAAC,gBAAgB,IACf,EAAE,EAAC,wBAAwB,EAC3B,cAAc,EAAC,gHAAgH,EAC/H,WAAW,EAAC,0CAA0C,GACtD,GACA,GACA,CACP,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { FormattedMessage } from '@openedx/frontend-base';\n\nconst NotFoundPage = () => (\n <div className=\"container-fluid d-flex py-5 justify-content-center align-items-start text-center\">\n <p className=\"my-0 py-5 text-muted mw-32em\">\n <FormattedMessage\n id=\"error.notfound.message\"\n defaultMessage=\"The page you're looking for is unavailable or there's an error in the URL. Please check the URL and try again.\"\n description=\"error message when a page does not exist\"\n />\n </p>\n </div>\n);\n\nexport default NotFoundPage;\n"]}
1
+ {"version":3,"file":"NotFoundPage.js","sourceRoot":"","sources":["../../src/common-components/NotFoundPage.jsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,MAAM,YAAY,GAAG,GAAG,EAAE;IACxB,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,CAAC;IACpC,OAAO,CACL,eAAK,SAAS,EAAC,kFAAkF,aAC/F,KAAC,MAAM,cACL,0BACG,aAAa,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE;wBACpD,QAAQ,EAAE,aAAa,EAAE,CAAC,QAAQ;qBACnC,CAAC,GACI,GACD,EACT,YAAG,SAAS,EAAC,8BAA8B,YACzC,KAAC,gBAAgB,IACf,EAAE,EAAC,wBAAwB,EAC3B,cAAc,EAAC,gHAAgH,EAC/H,WAAW,EAAC,0CAA0C,GACtD,GACA,IACA,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { FormattedMessage, getSiteConfig, useIntl } from '@openedx/frontend-base';\nimport { Helmet } from 'react-helmet';\n\nimport messages from './messages';\n\nconst NotFoundPage = () => {\n const { formatMessage } = useIntl();\n return (\n <div className=\"container-fluid d-flex py-5 justify-content-center align-items-start text-center\">\n <Helmet>\n <title>\n {formatMessage(messages['error.notfound.page.title'], {\n siteName: getSiteConfig().siteName,\n })}\n </title>\n </Helmet>\n <p className=\"my-0 py-5 text-muted mw-32em\">\n <FormattedMessage\n id=\"error.notfound.message\"\n defaultMessage=\"The page you're looking for is unavailable or there's an error in the URL. Please check the URL and try again.\"\n description=\"error message when a page does not exist\"\n />\n </p>\n </div>\n );\n};\n\nexport default NotFoundPage;\n"]}
@@ -1,5 +1,10 @@
1
1
  export default messages;
2
2
  declare const messages: {
3
+ 'error.notfound.page.title': {
4
+ id: string;
5
+ defaultMessage: string;
6
+ description: string;
7
+ };
3
8
  'institution.login.page.sub.heading': {
4
9
  id: string;
5
10
  defaultMessage: string;
@@ -1,5 +1,11 @@
1
1
  import { defineMessages } from '@openedx/frontend-base';
2
2
  const messages = defineMessages({
3
+ // not found page
4
+ 'error.notfound.page.title': {
5
+ id: 'error.notfound.page.title',
6
+ defaultMessage: 'Page Not Found | {siteName}',
7
+ description: 'Document title for the page-not-found page',
8
+ },
3
9
  // institution login strings
4
10
  'institution.login.page.sub.heading': {
5
11
  id: 'institution.login.page.sub.heading',
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/common-components/messages.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,4BAA4B;IAC5B,oCAAoC,EAAE;QACpC,EAAE,EAAE,oCAAoC;QACxC,cAAc,EAAE,6CAA6C;QAC7D,WAAW,EAAE,kCAAkC;KAChD;IACD,uBAAuB;IACvB,sBAAsB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QAC9B,WAAW,EAAE,wDAAwD;KACtE;IACD,+BAA+B,EAAE;QAC/B,EAAE,EAAE,+BAA+B;QACnC,cAAc,EAAE,2FAA2F;QAC3G,WAAW,EAAE,6CAA6C;KAC3D;IACD,mBAAmB;IACnB,mBAAmB,EAAE;QACnB,EAAE,EAAE,mBAAmB;QACvB,cAAc,EAAE,cAAc;QAC9B,WAAW,EAAE,8EAA8E;KAC5F;IACD,2CAA2C,EAAE;QAC3C,EAAE,EAAE,2CAA2C;QAC/C,cAAc,EAAE,kFAAkF;cAC9F,gFAAgF;cAChF,iDAAiD;QACrD,WAAW,EAAE,wFAAwF;cACjG,gDAAgD;KACrD;IACD,8CAA8C,EAAE;QAC9C,EAAE,EAAE,8CAA8C;QAClD,cAAc,EAAE,6FAA6F;cACzG,gDAAgD;QACpD,WAAW,EAAE,wFAAwF;cACjG,2CAA2C;KAChD;IACD,qCAAqC,EAAE;QACrC,EAAE,EAAE,qCAAqC;QACzC,cAAc,EAAE,8BAA8B;QAC9C,WAAW,EAAE,yFAAyF;KACvG;IACD,oCAAoC,EAAE;QACpC,EAAE,EAAE,oCAAoC;QACxC,cAAc,EAAE,mBAAmB;QACnC,WAAW,EAAE,wFAAwF;KACtG;IACD,0BAA0B,EAAE;QAC1B,EAAE,EAAE,0BAA0B;QAC9B,cAAc,EAAE,gCAAgC;QAChD,WAAW,EAAE,yBAAyB;KACvC;IACD,6BAA6B,EAAE;QAC7B,EAAE,EAAE,6BAA6B;QACjC,cAAc,EAAE,kBAAkB;QAClC,WAAW,EAAE,wEAAwE;KACtF;IACD,2BAA2B,EAAE;QAC3B,EAAE,EAAE,2BAA2B;QAC/B,cAAc,EAAE,+BAA+B;QAC/C,WAAW,EAAE,oCAAoC;KAClD;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { defineMessages } from '@openedx/frontend-base';\n\nconst messages = defineMessages({\n // institution login strings\n 'institution.login.page.sub.heading': {\n id: 'institution.login.page.sub.heading',\n defaultMessage: 'Choose your institution from the list below',\n description: 'Heading of the institutions list',\n },\n // logistration strings\n 'logistration.sign.in': {\n id: 'logistration.sign.in',\n defaultMessage: 'Sign in',\n description: 'Text that appears on the tab to switch between login and register',\n },\n 'logistration.register': {\n id: 'logistration.register',\n defaultMessage: 'Register',\n description: 'Text that appears on the tab to switch between login and register',\n },\n // enterprise sso strings\n 'enterprisetpa.title.heading': {\n id: 'enterprisetpa.title.heading',\n defaultMessage: 'Would you like to sign in using your {providerName} credentials?',\n description: 'Header text used in enterprise third party authentication',\n },\n 'enterprisetpa.login.button.text': {\n id: 'enterprisetpa.login.button.text',\n defaultMessage: 'Show me other ways to sign in or register',\n description: 'Button text for login',\n },\n 'enterprisetpa.login.button.text.public.account.creation.disabled': {\n id: 'enterprisetpa.login.button.text.public.account.creation.disabled',\n defaultMessage: 'Show me other ways to sign in',\n description: 'Button text for login when account creation is disabled',\n },\n // social auth providers\n 'sso.sign.in.with': {\n id: 'sso.sign.in.with',\n defaultMessage: 'Sign in with {providerName}',\n description: 'Screen reader text that appears before social auth provider name',\n },\n 'sso.create.account.using': {\n id: 'sso.create.account.using',\n defaultMessage: 'Create account using {providerName}',\n description: 'Screen reader text that appears before social auth provider name',\n },\n // password field strings\n 'show.password': {\n id: 'show.password',\n defaultMessage: 'Show password',\n description: 'aria label for show password icon on password field',\n },\n 'hide.password': {\n id: 'hide.password',\n defaultMessage: 'Hide password',\n description: 'aria label for hide password icon on password field',\n },\n 'one.letter': {\n id: 'one.letter',\n defaultMessage: '1 letter',\n description: 'password requirement to have 1 letter',\n },\n 'one.number': {\n id: 'one.number',\n defaultMessage: '1 number',\n description: 'password requirement to have 1 number',\n },\n 'eight.characters': {\n id: 'eight.characters',\n defaultMessage: '8 characters',\n description: 'password requirement to have a minimum of 8 characters',\n },\n 'password.sr.only.helping.text': {\n id: 'password.sr.only.helping.text',\n defaultMessage: 'Password must contain at least 8 characters, at least one letter, and at least one number',\n description: 'Password helping text for the sr-only class',\n },\n // third party auth\n 'tpa.alert.heading': {\n id: 'tpa.alert.heading',\n defaultMessage: 'Almost done!',\n description: 'Success alert heading after user has successfully signed in with social auth',\n },\n 'login.third.party.auth.account.not.linked': {\n id: 'login.third.party.auth.account.not.linked',\n defaultMessage: 'You have successfully signed into {currentProvider}, but your {currentProvider} '\n + 'account does not have a linked {platformName} account. To link your accounts, '\n + 'sign in now using your {platformName} password.',\n description: 'Message that appears on login page if user has successfully authenticated with social '\n + 'auth but no associated platform account exists',\n },\n 'register.third.party.auth.account.not.linked': {\n id: 'register.third.party.auth.account.not.linked',\n defaultMessage: 'You\\'ve successfully signed into {currentProvider}! We just need a little more information '\n + 'before you start learning with {platformName}.',\n description: 'Message that appears on register page if user has successfully authenticated with TPA '\n + 'but no associated platform account exists',\n },\n 'registration.using.tpa.form.heading': {\n id: 'registration.using.tpa.form.heading',\n defaultMessage: 'Finish creating your account',\n description: 'Heading that appears above form when user is trying to create account using social auth',\n },\n 'registration.other.options.heading': {\n id: 'registration.other.options.heading',\n defaultMessage: 'Or register with:',\n description: 'A message that appears above third party auth providers i.e saml, google, facebook etc',\n },\n 'institution.login.button': {\n id: 'institution.login.button',\n defaultMessage: 'Institution/campus credentials',\n description: 'shows institutions list',\n },\n 'login.other.options.heading': {\n id: 'login.other.options.heading',\n defaultMessage: 'Or sign in with:',\n description: 'Text that appears above other sign in options like social auth buttons',\n },\n 'enterprise.login.btn.text': {\n id: 'enterprise.login.btn.text',\n defaultMessage: 'Company or school credentials',\n description: 'Company or school login link text.',\n },\n});\n\nexport default messages;\n"]}
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/common-components/messages.jsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,iBAAiB;IACjB,2BAA2B,EAAE;QAC3B,EAAE,EAAE,2BAA2B;QAC/B,cAAc,EAAE,6BAA6B;QAC7C,WAAW,EAAE,4C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C;KAClD;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { defineMessages } from '@openedx/frontend-base';\n\nconst messages = defineMessages({\n // not found page\n 'error.notfound.page.title': {\n id: 'error.notfound.page.title',\n defaultMessage: 'Page Not Found | {siteName}',\n description: 'Document title for the page-not-found page',\n },\n // institution login strings\n 'institution.login.page.sub.heading': {\n id: 'institution.login.page.sub.heading',\n defaultMessage: 'Choose your institution from the list below',\n description: 'Heading of the institutions list',\n },\n // logistration strings\n 'logistration.sign.in': {\n id: 'logistration.sign.in',\n defaultMessage: 'Sign in',\n description: 'Text that appears on the tab to switch between login and register',\n },\n 'logistration.register': {\n id: 'logistration.register',\n defaultMessage: 'Register',\n description: 'Text that appears on the tab to switch between login and register',\n },\n // enterprise sso strings\n 'enterprisetpa.title.heading': {\n id: 'enterprisetpa.title.heading',\n defaultMessage: 'Would you like to sign in using your {providerName} credentials?',\n description: 'Header text used in enterprise third party authentication',\n },\n 'enterprisetpa.login.button.text': {\n id: 'enterprisetpa.login.button.text',\n defaultMessage: 'Show me other ways to sign in or register',\n description: 'Button text for login',\n },\n 'enterprisetpa.login.button.text.public.account.creation.disabled': {\n id: 'enterprisetpa.login.button.text.public.account.creation.disabled',\n defaultMessage: 'Show me other ways to sign in',\n description: 'Button text for login when account creation is disabled',\n },\n // social auth providers\n 'sso.sign.in.with': {\n id: 'sso.sign.in.with',\n defaultMessage: 'Sign in with {providerName}',\n description: 'Screen reader text that appears before social auth provider name',\n },\n 'sso.create.account.using': {\n id: 'sso.create.account.using',\n defaultMessage: 'Create account using {providerName}',\n description: 'Screen reader text that appears before social auth provider name',\n },\n // password field strings\n 'show.password': {\n id: 'show.password',\n defaultMessage: 'Show password',\n description: 'aria label for show password icon on password field',\n },\n 'hide.password': {\n id: 'hide.password',\n defaultMessage: 'Hide password',\n description: 'aria label for hide password icon on password field',\n },\n 'one.letter': {\n id: 'one.letter',\n defaultMessage: '1 letter',\n description: 'password requirement to have 1 letter',\n },\n 'one.number': {\n id: 'one.number',\n defaultMessage: '1 number',\n description: 'password requirement to have 1 number',\n },\n 'eight.characters': {\n id: 'eight.characters',\n defaultMessage: '8 characters',\n description: 'password requirement to have a minimum of 8 characters',\n },\n 'password.sr.only.helping.text': {\n id: 'password.sr.only.helping.text',\n defaultMessage: 'Password must contain at least 8 characters, at least one letter, and at least one number',\n description: 'Password helping text for the sr-only class',\n },\n // third party auth\n 'tpa.alert.heading': {\n id: 'tpa.alert.heading',\n defaultMessage: 'Almost done!',\n description: 'Success alert heading after user has successfully signed in with social auth',\n },\n 'login.third.party.auth.account.not.linked': {\n id: 'login.third.party.auth.account.not.linked',\n defaultMessage: 'You have successfully signed into {currentProvider}, but your {currentProvider} '\n + 'account does not have a linked {platformName} account. To link your accounts, '\n + 'sign in now using your {platformName} password.',\n description: 'Message that appears on login page if user has successfully authenticated with social '\n + 'auth but no associated platform account exists',\n },\n 'register.third.party.auth.account.not.linked': {\n id: 'register.third.party.auth.account.not.linked',\n defaultMessage: 'You\\'ve successfully signed into {currentProvider}! We just need a little more information '\n + 'before you start learning with {platformName}.',\n description: 'Message that appears on register page if user has successfully authenticated with TPA '\n + 'but no associated platform account exists',\n },\n 'registration.using.tpa.form.heading': {\n id: 'registration.using.tpa.form.heading',\n defaultMessage: 'Finish creating your account',\n description: 'Heading that appears above form when user is trying to create account using social auth',\n },\n 'registration.other.options.heading': {\n id: 'registration.other.options.heading',\n defaultMessage: 'Or register with:',\n description: 'A message that appears above third party auth providers i.e saml, google, facebook etc',\n },\n 'institution.login.button': {\n id: 'institution.login.button',\n defaultMessage: 'Institution/campus credentials',\n description: 'shows institutions list',\n },\n 'login.other.options.heading': {\n id: 'login.other.options.heading',\n defaultMessage: 'Or sign in with:',\n description: 'Text that appears above other sign in options like social auth buttons',\n },\n 'enterprise.login.btn.text': {\n id: 'enterprise.login.btn.text',\n defaultMessage: 'Company or school credentials',\n description: 'Company or school login link text.',\n },\n});\n\nexport default messages;\n"]}
@@ -0,0 +1,4 @@
1
+ declare const provides: {
2
+ "org.openedx.frontend.provides.chromelessRoles.v1": string[];
3
+ };
4
+ export default provides;
@@ -0,0 +1,7 @@
1
+ import { providesChromelessRolesId } from '@openedx/frontend-base';
2
+ import { confirmPasswordRole, loginRole, registerRole, resetPasswordRole, welcomeRole, } from './constants';
3
+ const provides = {
4
+ [providesChromelessRolesId]: [loginRole, registerRole, resetPasswordRole, confirmPasswordRole, welcomeRole],
5
+ };
6
+ export default provides;
7
+ //# sourceMappingURL=provides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provides.js","sourceRoot":"","sources":["../src/provides.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EACL,mBAAmB,EACnB,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,WAAW,GACZ,MAAM,aAAa,CAAC;AAErB,MAAM,QAAQ,GAAG;IACf,CAAC,yBAAyB,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,WAAW,CAAC;CAC5G,CAAC;AAEF,eAAe,QAAQ,CAAC","sourcesContent":["import { providesChromelessRolesId } from '@openedx/frontend-base';\nimport {\n confirmPasswordRole,\n loginRole,\n registerRole,\n resetPasswordRole,\n welcomeRole,\n} from './constants';\n\nconst provides = {\n [providesChromelessRolesId]: [loginRole, registerRole, resetPasswordRole, confirmPasswordRole, welcomeRole],\n};\n\nexport default provides;\n"]}
package/dist/routes.d.ts CHANGED
@@ -12,7 +12,7 @@ declare const routes: {
12
12
  } | {
13
13
  path: string;
14
14
  handle: {
15
- role: string;
15
+ roles: string[];
16
16
  };
17
17
  element: import("react/jsx-runtime").JSX.Element;
18
18
  })[];
package/dist/routes.js CHANGED
@@ -21,7 +21,7 @@ const routes = [
21
21
  path: '/authn',
22
22
  lazy() {
23
23
  return __awaiter(this, void 0, void 0, function* () {
24
- const module = yield import('./Main');
24
+ const module = yield import(/* webpackChunkName: "authn-main" */ './Main');
25
25
  return { Component: module.default };
26
26
  });
27
27
  },
@@ -33,35 +33,35 @@ const routes = [
33
33
  {
34
34
  path: loginPath,
35
35
  handle: {
36
- role: loginRole,
36
+ roles: [loginRole],
37
37
  },
38
38
  element: (_jsx(UnAuthOnlyRoute, { children: _jsx(Logistration, { selectedPage: loginPath }) })),
39
39
  },
40
40
  {
41
41
  path: registerPath,
42
42
  handle: {
43
- role: registerRole,
43
+ roles: [registerRole],
44
44
  },
45
45
  element: (_jsx(UnAuthOnlyRoute, { children: _jsx(Logistration, {}) })),
46
46
  },
47
47
  {
48
48
  path: resetPath,
49
49
  handle: {
50
- role: resetPasswordRole,
50
+ roles: [resetPasswordRole],
51
51
  },
52
52
  element: (_jsx(UnAuthOnlyRoute, { children: _jsx(ForgotPasswordPage, {}) })),
53
53
  },
54
54
  {
55
55
  path: `${passwordResetConfirmPath}/:token`,
56
56
  handle: {
57
- role: confirmPasswordRole,
57
+ roles: [confirmPasswordRole],
58
58
  },
59
59
  element: (_jsx(ResetPasswordPage, {})),
60
60
  },
61
61
  {
62
62
  path: welcomePath,
63
63
  handle: {
64
- role: welcomeRole,
64
+ roles: [welcomeRole],
65
65
  },
66
66
  element: (_jsx(ProgressiveProfiling, {})),
67
67
  },
@@ -1 +1 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["../src/routes.jsx"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC/F,OAAO,EACL,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EACvD,wBAAwB,EAAE,oBAAoB,EAAE,YAAY,EAAE,YAAY,EAC1E,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW,GACvD,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,YAAY,MAAM,6BAA6B,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oBACN,IAAI,EAAE,WAAW;iBAClB;gBACD,OAAO,EAAE,CACP,KAAC,oBAAoB,KAAG,CACzB;aACF;YACD;gBACE,IAAI,EAAE,YAAY;gBAClB,OAAO,EAAE,CACP,KAAC,YAAY,KAAG,CACjB;aACF;SACF;KACF;CACF,CAAC;AAEF,eAAe,MAAM,CAAC","sourcesContent":["import { EmbeddedRegistrationRoute, NotFoundPage, UnAuthOnlyRoute } from './common-components';\nimport {\n confirmPasswordRole, loginPath, loginRole, notFoundPath,\n passwordResetConfirmPath, registerEmbeddedPath, registerPath, registerRole,\n resetPath, resetPasswordRole, welcomePath, welcomeRole,\n} from './constants';\nimport { ForgotPasswordPage } from './forgot-password';\nimport Logistration from './logistration/Logistration';\nimport { ProgressiveProfiling } from './progressive-profiling';\nimport { RegistrationPage } from './register';\nimport { ResetPasswordPage } from './reset-password';\n\nconst routes = [\n {\n id: 'org.openedx.frontend.route.authn.main',\n path: '/authn',\n async lazy() {\n const module = await import('./Main');\n return { Component: module.default };\n },\n children: [\n {\n path: registerEmbeddedPath,\n element: (\n <EmbeddedRegistrationRoute><RegistrationPage /></EmbeddedRegistrationRoute>\n ),\n },\n {\n path: loginPath,\n handle: {\n role: loginRole,\n },\n element: (\n <UnAuthOnlyRoute><Logistration selectedPage={loginPath} /></UnAuthOnlyRoute>\n ),\n },\n {\n path: registerPath,\n handle: {\n role: registerRole,\n },\n element: (\n <UnAuthOnlyRoute><Logistration /></UnAuthOnlyRoute>\n ),\n },\n {\n path: resetPath,\n handle: {\n role: resetPasswordRole,\n },\n element: (\n <UnAuthOnlyRoute><ForgotPasswordPage /></UnAuthOnlyRoute>\n ),\n },\n {\n path: `${passwordResetConfirmPath}/:token`,\n handle: {\n role: confirmPasswordRole,\n },\n element: (\n <ResetPasswordPage />\n ),\n },\n {\n path: welcomePath,\n handle: {\n role: welcomeRole,\n },\n element: (\n <ProgressiveProfiling />\n ),\n },\n {\n path: notFoundPath,\n element: (\n <NotFoundPage />\n ),\n },\n ]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,MAAM,EAAE;oBACN,KAAK,EAAE,CAAC,YAAY,CAAC;iBACtB;gBACD,OAAO,EAAE,CACP,KAAC,eAAe,cAAC,KAAC,YAAY,KAAG,GAAkB,CACpD;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE;oBACN,KAAK,EAAE,CAAC,iBAAiB,CAAC;iBAC3B;gBACD,OAAO,EAAE,CACP,KAAC,eAAe,cAAC,KAAC,kBAAkB,KAAG,GAAkB,CAC1D;aACF;YACD;gBACE,IAAI,EAAE,GAAG,wBAAwB,SAAS;gBAC1C,MAAM,EAAE;oBACN,KAAK,EAAE,CAAC,mBAAmB,CAAC;iBAC7B;gBACD,OAAO,EAAE,CACP,KAAC,iBAAiB,KAAG,CACtB;aACF;YACD;gBACE,IAAI,EAAE,WAAW;gBACjB,MAAM,EAAE;oBACN,KAAK,EAAE,CAAC,WAAW,CAAC;iBACrB;gBACD,OAAO,EAAE,CACP,KAAC,oBAAoB,KAAG,CACzB;aACF;YACD;gBACE,IAAI,EAAE,YAAY;gBAClB,OAAO,EAAE,CACP,KAAC,YAAY,KAAG,CACjB;aACF;SACF;KACF;CACF,CAAC;AAEF,eAAe,MAAM,CAAC","sourcesContent":["import { EmbeddedRegistrationRoute, NotFoundPage, UnAuthOnlyRoute } from './common-components';\nimport {\n confirmPasswordRole, loginPath, loginRole, notFoundPath,\n passwordResetConfirmPath, registerEmbeddedPath, registerPath, registerRole,\n resetPath, resetPasswordRole, welcomePath, welcomeRole,\n} from './constants';\nimport { ForgotPasswordPage } from './forgot-password';\nimport Logistration from './logistration/Logistration';\nimport { ProgressiveProfiling } from './progressive-profiling';\nimport { RegistrationPage } from './register';\nimport { ResetPasswordPage } from './reset-password';\n\nconst routes = [\n {\n id: 'org.openedx.frontend.route.authn.main',\n path: '/authn',\n async lazy() {\n const module = await import(/* webpackChunkName: \"authn-main\" */ './Main');\n return { Component: module.default };\n },\n children: [\n {\n path: registerEmbeddedPath,\n element: (\n <EmbeddedRegistrationRoute><RegistrationPage /></EmbeddedRegistrationRoute>\n ),\n },\n {\n path: loginPath,\n handle: {\n roles: [loginRole],\n },\n element: (\n <UnAuthOnlyRoute><Logistration selectedPage={loginPath} /></UnAuthOnlyRoute>\n ),\n },\n {\n path: registerPath,\n handle: {\n roles: [registerRole],\n },\n element: (\n <UnAuthOnlyRoute><Logistration /></UnAuthOnlyRoute>\n ),\n },\n {\n path: resetPath,\n handle: {\n roles: [resetPasswordRole],\n },\n element: (\n <UnAuthOnlyRoute><ForgotPasswordPage /></UnAuthOnlyRoute>\n ),\n },\n {\n path: `${passwordResetConfirmPath}/:token`,\n handle: {\n roles: [confirmPasswordRole],\n },\n element: (\n <ResetPasswordPage />\n ),\n },\n {\n path: welcomePath,\n handle: {\n roles: [welcomeRole],\n },\n element: (\n <ProgressiveProfiling />\n ),\n },\n {\n path: notFoundPath,\n element: (\n <NotFoundPage />\n ),\n },\n ]\n }\n];\n\nexport default routes;\n"]}
@@ -59,7 +59,7 @@
59
59
  margin-bottom: 0.5rem;
60
60
  font-weight: 700;
61
61
 
62
- @media (-pgn-size-breakpoint-max-width-xl) {
62
+ @media (--pgn-size-breakpoint-max-width-xl) {
63
63
  font-size: 1.375rem;
64
64
  line-height: 1.75rem;
65
65
  }
@@ -71,7 +71,7 @@
71
71
  }
72
72
 
73
73
  .large-screen-left-container {
74
- @media (-pgn-size-breakpoint-max-width-xl) {
74
+ @media (--pgn-size-breakpoint-max-width-xl) {
75
75
  flex: 0 0 25%;
76
76
  max-width: 25%;
77
77
  }
@@ -1,10 +1,12 @@
1
+ @use "@openedx/paragon/styles/css/core/custom-media-breakpoints.css";
2
+
1
3
  // Load component based styles
2
- @use "_base_component.scss";
3
- @use "_registration.scss";
4
- @use "_reset_password.scss";
5
- @use "_progressive_profiling_page.scss";
6
- @use "_login_page.scss";
7
- @use "_forgot_password.scss";
4
+ @use "./sass/base_component";
5
+ @use "./sass/registration";
6
+ @use "./sass/reset_password";
7
+ @use "./sass/progressive_profiling_page";
8
+ @use "./sass/login_page";
9
+ @use "./sass/forgot_password";
8
10
 
9
11
  //
10
12
  // ----------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/frontend-app-authn",
3
- "version": "1.0.0-alpha.9",
3
+ "version": "1.0.0",
4
4
  "description": "Frontend authentication",
5
5
  "engines": {
6
6
  "node": "^24.12"
@@ -10,8 +10,7 @@
10
10
  "url": "git+https://github.com/openedx/frontend-app-authn.git"
11
11
  },
12
12
  "exports": {
13
- ".": "./dist/index.js",
14
- "./app.scss": "./dist/app.scss"
13
+ ".": "./dist/index.js"
15
14
  },
16
15
  "files": [
17
16
  "/dist"
@@ -34,6 +33,7 @@
34
33
  },
35
34
  "scripts": {
36
35
  "build": "make build",
36
+ "build:ci": "make build-ci",
37
37
  "build:packages": "make build-packages",
38
38
  "clean": "make clean",
39
39
  "clean:packages": "make clean-packages",
@@ -59,7 +59,6 @@
59
59
  "url": "https://github.com/openedx/frontend-app-authn/issues"
60
60
  },
61
61
  "dependencies": {
62
- "@edx/brand": "npm:@openedx/brand-openedx@^1.2.3",
63
62
  "@edx/openedx-atlas": "^0.7.0",
64
63
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
65
64
  "@fortawesome/free-brands-svg-icons": "^6.7.2",
@@ -90,7 +89,7 @@
90
89
  "turbo": "^2.8.16"
91
90
  },
92
91
  "peerDependencies": {
93
- "@openedx/frontend-base": "^1.0.0-alpha || 0.0.0-dev",
92
+ "@openedx/frontend-base": "^1.0.0 || 0.0.0-dev",
94
93
  "@openedx/paragon": "^23",
95
94
  "@tanstack/react-query": "^5",
96
95
  "react": "^18",
package/dist/app.scss DELETED
@@ -1,2 +0,0 @@
1
- @use "@openedx/frontend-base/shell/app.scss";
2
- @use "./sass/style";