@openedx/frontend-app-authn 1.0.0-alpha.10 → 1.0.0-alpha.12

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/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,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,MAAM,GAAG;IACb;QACE,EAAE,EAAE,u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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 ]\n }\n];\n\nexport default routes;\n"]}
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,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,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.10",
3
+ "version": "1.0.0-alpha.12",
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"
@@ -59,7 +58,6 @@
59
58
  "url": "https://github.com/openedx/frontend-app-authn/issues"
60
59
  },
61
60
  "dependencies": {
62
- "@edx/brand": "npm:@openedx/brand-openedx@^1.2.3",
63
61
  "@edx/openedx-atlas": "^0.7.0",
64
62
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
65
63
  "@fortawesome/free-brands-svg-icons": "^6.7.2",
package/dist/app.scss DELETED
@@ -1,2 +0,0 @@
1
- @use "@openedx/frontend-base/shell/app.scss";
2
- @use "./sass/style";