@shipfox/client-auth 6.0.3 → 8.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.
Files changed (32) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +18 -0
  3. package/dist/components/password-login-form.d.ts +7 -0
  4. package/dist/components/password-login-form.d.ts.map +1 -0
  5. package/dist/components/password-login-form.js +164 -0
  6. package/dist/components/password-login-form.js.map +1 -0
  7. package/dist/continuation.d.ts +2 -1
  8. package/dist/continuation.d.ts.map +1 -1
  9. package/dist/continuation.js +2 -1
  10. package/dist/continuation.js.map +1 -1
  11. package/dist/pages/invitation-context.js +1 -1
  12. package/dist/pages/invitation-context.js.map +1 -1
  13. package/dist/pages/login-page.d.ts.map +1 -1
  14. package/dist/pages/login-page.js +12 -168
  15. package/dist/pages/login-page.js.map +1 -1
  16. package/dist/redirect-context.d.ts.map +1 -0
  17. package/dist/{components/redirect-context.js → redirect-context.js} +1 -1
  18. package/dist/redirect-context.js.map +1 -0
  19. package/dist/tsconfig.test.tsbuildinfo +1 -1
  20. package/package.json +7 -3
  21. package/src/components/password-login-form.test.tsx +34 -0
  22. package/src/components/password-login-form.tsx +149 -0
  23. package/src/continuation.test.ts +2 -0
  24. package/src/continuation.ts +5 -1
  25. package/src/pages/invitation-context.ts +1 -1
  26. package/src/pages/login-page.tsx +4 -141
  27. package/src/{components/redirect-context.test.ts → redirect-context.test.ts} +13 -2
  28. package/src/{components/redirect-context.ts → redirect-context.ts} +1 -1
  29. package/tsconfig.build.tsbuildinfo +1 -1
  30. package/dist/components/redirect-context.d.ts.map +0 -1
  31. package/dist/components/redirect-context.js.map +0 -1
  32. /package/dist/{components/redirect-context.d.ts → redirect-context.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"redirect-context.d.ts","sourceRoot":"","sources":["../../src/components/redirect-context.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,CAQpE"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/redirect-context.ts"],"sourcesContent":["import {isAuthPath, resolveRedirectPath} from './redirect-target.js';\n\nconst INVITATION_ACCEPT_PATH = '/invitations/accept';\n\nexport interface RedirectContext {\n invitationToken?: string;\n returnTo?: string;\n}\n\n/**\n * Separates a safe post-authentication destination from an invitation token.\n * The token never remains in `returnTo`, so callers can keep it in their\n * short-lived invitation flow instead of forwarding it through generic redirects.\n */\nexport function parseRedirectContext(value: unknown): RedirectContext {\n const resolved = resolveRedirectPath(value);\n if (!resolved || isAuthPath(resolved.pathname)) return {};\n\n if (resolved.pathname !== INVITATION_ACCEPT_PATH) return {returnTo: resolved.redirect};\n\n const invitationToken = resolved.target.searchParams.get('token');\n return invitationToken ? {invitationToken} : {};\n}\n"],"names":["isAuthPath","resolveRedirectPath","INVITATION_ACCEPT_PATH","parseRedirectContext","value","resolved","pathname","returnTo","redirect","invitationToken","target","searchParams","get"],"mappings":"AAAA,SAAQA,UAAU,EAAEC,mBAAmB,QAAO,uBAAuB;AAErE,MAAMC,yBAAyB;AAO/B;;;;CAIC,GACD,OAAO,SAASC,qBAAqBC,KAAc;IACjD,MAAMC,WAAWJ,oBAAoBG;IACrC,IAAI,CAACC,YAAYL,WAAWK,SAASC,QAAQ,GAAG,OAAO,CAAC;IAExD,IAAID,SAASC,QAAQ,KAAKJ,wBAAwB,OAAO;QAACK,UAAUF,SAASG,QAAQ;IAAA;IAErF,MAAMC,kBAAkBJ,SAASK,MAAM,CAACC,YAAY,CAACC,GAAG,CAAC;IACzD,OAAOH,kBAAkB;QAACA;IAAe,IAAI,CAAC;AAChD"}