@tern-secure/nextjs 3.0.8 → 3.1.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 (50) hide show
  1. package/dist/app-router/client/auth.d.ts +1 -0
  2. package/dist/app-router/client/auth.d.ts.map +1 -0
  3. package/dist/app-router/client/client-init.d.ts +1 -0
  4. package/dist/app-router/client/client-init.d.ts.map +1 -0
  5. package/dist/app-router/client/config.d.ts +1 -0
  6. package/dist/app-router/client/config.d.ts.map +1 -0
  7. package/dist/app-router/client/index.d.ts +1 -0
  8. package/dist/app-router/client/index.d.ts.map +1 -0
  9. package/dist/app-router/client/providers/ternSecureClientProvider.d.ts +3 -4
  10. package/dist/app-router/client/providers/ternSecureClientProvider.d.ts.map +1 -0
  11. package/dist/app-router/client/providers/ternSecureContext.d.ts +3 -2
  12. package/dist/app-router/client/providers/ternSecureContext.d.ts.map +1 -0
  13. package/dist/app-router/server/index.d.ts +1 -0
  14. package/dist/app-router/server/index.d.ts.map +1 -0
  15. package/dist/app-router/server/providers/TernSecureServerProvider.d.ts +1 -0
  16. package/dist/app-router/server/providers/TernSecureServerProvider.d.ts.map +1 -0
  17. package/dist/components/index.d.ts +1 -0
  18. package/dist/components/index.d.ts.map +1 -0
  19. package/dist/components/sign-in.d.ts +1 -0
  20. package/dist/components/sign-in.d.ts.map +1 -0
  21. package/dist/errors/index.d.ts +1 -0
  22. package/dist/errors/index.d.ts.map +1 -0
  23. package/dist/hooks/index.d.ts +1 -0
  24. package/dist/hooks/index.d.ts.map +1 -0
  25. package/dist/hooks/useAuth.d.ts +1 -0
  26. package/dist/hooks/useAuth.d.ts.map +1 -0
  27. package/dist/index.cjs.js +491 -2
  28. package/dist/index.cjs.js.map +7 -0
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.d.ts.map +1 -0
  31. package/dist/index.js +449 -1
  32. package/dist/index.js.map +7 -0
  33. package/dist/types/index.d.ts +1 -0
  34. package/dist/types/index.d.ts.map +1 -0
  35. package/dist/utils/create-styles.d.ts +1 -0
  36. package/dist/utils/create-styles.d.ts.map +1 -0
  37. package/package.json +1 -1
  38. package/dist/app-router/client/index.js +0 -1
  39. package/dist/app-router/server/index.js +0 -1
  40. package/dist/chunk-2ENCFXUN.js +0 -1
  41. package/dist/chunk-2NA7K5TN.js +0 -2
  42. package/dist/chunk-64G22XTD.js +0 -1
  43. package/dist/chunk-ASFHFC2I.js +0 -1
  44. package/dist/chunk-DLMCL4UP.js +0 -1
  45. package/dist/chunk-LHW3RBUN.js +0 -1
  46. package/dist/components/index.js +0 -1
  47. package/dist/hooks/index.js +0 -1
  48. package/dist/ternSecureClientProvider-IGH5T42M.js +0 -1
  49. package/dist/types/index.js +0 -0
  50. package/dist/utils/create-styles.js +0 -1
@@ -1 +0,0 @@
1
- import r from"react";import u from"next/dynamic";import{jsx as i}from"react/jsx-runtime";var o=u(()=>import("./ternSecureClientProvider-IGH5T42M.js").then(n=>n.TernSecureClientProvider),{loading:()=>null});function c({children:n}){return r.Children.toArray(n).some(e=>r.isValidElement(e)&&e.type==="html")?r.Children.map(n,e=>r.isValidElement(e)&&e.type==="html"?r.cloneElement(e,{},r.Children.map(e.props.children,t=>{if(r.isValidElement(t)&&t.type==="body"){let p=t.props;return r.cloneElement(t,{},i(o,{children:p.children}))}return t})):e):i(o,{children:n})}export{c as a};
@@ -1 +0,0 @@
1
- import{getApps as a,initializeApp as c}from"firebase/app";import{getAuth as E,setPersistence as g,browserSessionPersistence as S}from"firebase/auth";import{getFirestore as I}from"firebase/firestore";import{getStorage as m}from"firebase/storage";var n=(()=>{let e=i(s());return a().length?a()[0]:c(e)})(),p=E(n);g(p,S);var _=I(n),f=m(n),o=()=>p,u=()=>_,C=()=>f;import{signInWithEmailAndPassword as T}from"firebase/auth";async function A({email:e,password:r}){let t=o();return T(t,e,r)}var s=()=>({apiKey:process.env.NEXT_PUBLIC_FIREBASE_API_KEY,authDomain:process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,projectId:process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,storageBucket:process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,messagingSenderId:process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,appId:process.env.NEXT_PUBLIC_FIREBASE_APP_ID,measurementId:process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID}),i=e=>(Object.entries(e).forEach(([r,t])=>{if(!t)throw new Error(`Missing environment variable: NEXT_PUBLIC_FIREBASE_${r.toUpperCase()}`)}),e);export{o as a,u as b,C as c,A as d,s as e,i as f};
@@ -1 +0,0 @@
1
- import{a}from"../chunk-64G22XTD.js";import"../chunk-LHW3RBUN.js";import"../chunk-2NA7K5TN.js";import"../chunk-ASFHFC2I.js";export{a as SignIn};
@@ -1 +0,0 @@
1
- import{a}from"../chunk-2ENCFXUN.js";import"../chunk-LHW3RBUN.js";import"../chunk-ASFHFC2I.js";export{a as useAuth};
@@ -1 +0,0 @@
1
- "use client";import{c as a}from"./chunk-ASFHFC2I.js";export{a as TernSecureClientProvider};
File without changes
@@ -1 +0,0 @@
1
- "use client";import{a,b,c}from"../chunk-2NA7K5TN.js";export{a as defaultClassNames,b as styleConfig,c as styles};