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

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/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
@@ -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,mBAA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,eAAe,cAAC,KAAC,kBAAkB,KAAG,GAAkB,CAC1D;aACF;YACD;gBACE,IAAI,EAAE,GAAG,wBAAwB,SAAS;gBAC1C,MAAM,EAAE;oBACN,IAAI,EAAE,mBAAmB;iBAC1B;gBACD,OAAO,EAAE,CACP,KAAC,iBAAiB,KAAG,CACtB;aACF;YACD;gBACE,IAAI,EAAE,WAAW;gBACjB,MAAM,EAAE;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 ]\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,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,uCAAuC;QAC3C,IAAI,EAAE,QAAQ;QACR,IAAI;;gBACR,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACtC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;YACvC,CAAC;SAAA;QACD,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,oBAAoB;gBAC1B,OAAO,EAAE,CACP,KAAC,yBAAyB,cAAC,KAAC,gBAAgB,KAAG,GAA4B,CAC5E;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE;oBACN,KAAK,EAAE,CAAC,SAAS,CAAC;iBACnB;gBACD,OAAO,EAAE,CACP,KAAC,eAAe,cAAC,KAAC,YAAY,IAAC,YAAY,EAAE,SAAS,GAAI,GAAkB,CAC7E;aACF;YACD;gBACE,IAAI,EAAE,YAAY;gBAClB,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('./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"]}
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.11",
4
4
  "description": "Frontend authentication",
5
5
  "engines": {
6
6
  "node": "^24.12"