gemi 0.4.40 → 0.4.42

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 (149) hide show
  1. package/dist/app/App.d.ts +1 -0
  2. package/dist/app/App.d.ts.map +1 -1
  3. package/dist/app/createFlatApiRoutes.d.ts +6 -4
  4. package/dist/app/createFlatApiRoutes.d.ts.map +1 -1
  5. package/dist/app/createFlatViewRoutes.d.ts +6 -4
  6. package/dist/app/createFlatViewRoutes.d.ts.map +1 -1
  7. package/dist/app/index.js +65 -65
  8. package/dist/chunk-00935722c776a294.js +2 -0
  9. package/dist/chunk-030b4fb955329860.js +16 -0
  10. package/dist/chunk-05fa767ab29abb0f.js +2 -0
  11. package/dist/chunk-08539d08fa7362f7.js +2 -0
  12. package/dist/chunk-09dd89e1046786a5.js +2 -0
  13. package/dist/chunk-187a09f46e2b36e5.js +2 -0
  14. package/dist/chunk-21fe96d1a3bb5a27.js +2 -0
  15. package/dist/chunk-26a5c9db5d17f5e7.js +3 -0
  16. package/dist/chunk-29c46abebbc0f09b.js +2 -0
  17. package/dist/chunk-2b3eabd01b2ae3f8.js +2 -0
  18. package/dist/chunk-2f6867d08b95f2d2.js +2 -0
  19. package/dist/chunk-3567e8e424a60c99.js +18 -0
  20. package/dist/chunk-3a3092db69408490.js +2 -0
  21. package/dist/chunk-3aecba8553e036bf.js +6 -0
  22. package/dist/chunk-40c21fe243675250.js +2 -0
  23. package/dist/chunk-488b4db0c522d44a.js +1 -0
  24. package/dist/chunk-4960e27e19bbe42a.js +2 -0
  25. package/dist/chunk-4d19e16340534ed0.js +1 -1
  26. package/dist/chunk-4eeee2f82b1fa8bb.js +2 -0
  27. package/dist/chunk-51bad63147c3be4e.js +6 -0
  28. package/dist/chunk-584e33c96b1a78e4.js +2 -0
  29. package/dist/chunk-60f3b8242209ac3e.js +18 -0
  30. package/dist/chunk-61abf77c3eee8698.js +2 -0
  31. package/dist/chunk-625025af819f55f5.js +2 -0
  32. package/dist/chunk-6259cd13f53334df.js +2 -0
  33. package/dist/chunk-66ab377654806d08.js +2 -0
  34. package/dist/chunk-68af0a6f6be163ce.js +2 -0
  35. package/dist/chunk-6a28d299b5726bba.js +2 -0
  36. package/dist/chunk-6e415d0e12fc9539.js +1 -0
  37. package/dist/chunk-722f2aeae58daaa3.js +18 -0
  38. package/dist/chunk-76a525af0575486d.js +5 -0
  39. package/dist/chunk-798f550643937b6d.js +2 -0
  40. package/dist/chunk-7ce930fe69575c87.js +2 -0
  41. package/dist/chunk-7e9d5eea3aa359ad.js +2 -0
  42. package/dist/chunk-7ea1baca4032004f.js +2 -0
  43. package/dist/chunk-7ffe2ce59a054e35.js +2 -0
  44. package/dist/chunk-8133ed564834cff3.js +2 -0
  45. package/dist/chunk-81ce9b491b290639.js +1 -0
  46. package/dist/chunk-8a993922ea970923.js +2 -0
  47. package/dist/chunk-8af626a703659719.js +18 -0
  48. package/dist/chunk-901e700a2c2d43f3.js +18 -0
  49. package/dist/chunk-9326224d1e4c1a64.js +2 -0
  50. package/dist/chunk-9501e589e3e86a96.js +2 -0
  51. package/dist/chunk-955e2bfcdb7a7e71.js +2 -0
  52. package/dist/chunk-a2fcc46e344ae7ae.js +2 -0
  53. package/dist/chunk-a3f85d0d3261ae44.js +9 -0
  54. package/dist/chunk-a693f8ec2e8af8ca.js +2 -0
  55. package/dist/chunk-a719a1f305964521.js +1 -1
  56. package/dist/chunk-b05e4833f4bb2f8f.js +9 -0
  57. package/dist/chunk-b3bfe533d66f6a17.js +2 -0
  58. package/dist/chunk-b5d6eb761760b2a7.js +6 -0
  59. package/dist/chunk-b66a9e50afbac035.js +1 -1
  60. package/dist/chunk-b7b365f7e6038104.js +2 -0
  61. package/dist/chunk-b9e4546aaa58319c.js +2 -0
  62. package/dist/chunk-bd2888a454e50cfd.js +1 -0
  63. package/dist/chunk-be095501304df604.js +9 -0
  64. package/dist/chunk-bee6075c5738d87a.js +1 -1
  65. package/dist/chunk-bfccfb070c1630e9.js +2 -0
  66. package/dist/chunk-c041f058dc3d571b.js +1 -0
  67. package/dist/chunk-c0bd8e19395d722b.js +2 -0
  68. package/dist/chunk-c124bf801cec12d9.js +2 -0
  69. package/dist/chunk-c153b192112b0d44.js +2 -0
  70. package/dist/chunk-c72bfaa252a03f6f.js +2 -0
  71. package/dist/chunk-c85fc7168a708cb6.js +3 -0
  72. package/dist/chunk-cb65fe402653c65e.js +1 -1
  73. package/dist/chunk-d0806df6defd9dce.js +2 -0
  74. package/dist/chunk-d2e057b6f3f9d500.js +2 -0
  75. package/dist/chunk-d33a0e61ccf1bab5.js +2 -0
  76. package/dist/chunk-da1c673d9685624e.js +2 -0
  77. package/dist/chunk-dcc432bd72fb7e46.js +3 -0
  78. package/dist/chunk-ddef8961cbf08a05.js +6 -0
  79. package/dist/chunk-dfc390f0bbdf5a81.js +1 -0
  80. package/dist/chunk-e53fdd0a1888c5e8.js +2 -0
  81. package/dist/chunk-e9695f3cdafee20b.js +2 -0
  82. package/dist/chunk-edeefd833c30a5ed.js +2 -0
  83. package/dist/chunk-ee4ff285d7f4ccdf.js +1 -1
  84. package/dist/chunk-f08ca4bd263b132b.js +2 -0
  85. package/dist/chunk-f2dca6305fcba70b.js +1 -1
  86. package/dist/chunk-f99bdfc336b2ac57.js +1 -1
  87. package/dist/chunk-ffe161a589b4c44b.js +1 -0
  88. package/dist/client/ClientRouter.d.ts.map +1 -1
  89. package/dist/client/ClientRouterContext.d.ts +3 -11
  90. package/dist/client/ClientRouterContext.d.ts.map +1 -1
  91. package/dist/client/Link.d.ts +13 -0
  92. package/dist/client/Link.d.ts.map +1 -0
  93. package/dist/client/QueryManager.d.ts.map +1 -1
  94. package/dist/client/ServerDataProvider.d.ts +2 -0
  95. package/dist/client/ServerDataProvider.d.ts.map +1 -1
  96. package/dist/client/auth/useForgotPassword.d.ts.map +1 -1
  97. package/dist/client/auth/useResetPassword.d.ts.map +1 -1
  98. package/dist/client/auth/useSignIn.d.ts.map +1 -1
  99. package/dist/client/auth/useSignOut.d.ts.map +1 -1
  100. package/dist/client/auth/useUser.d.ts.map +1 -1
  101. package/dist/client/i18n/I18nContext.d.ts +18 -0
  102. package/dist/client/i18n/I18nContext.d.ts.map +1 -0
  103. package/dist/client/i18n/useLocale.d.ts +2 -0
  104. package/dist/client/i18n/useLocale.d.ts.map +1 -0
  105. package/dist/client/i18n/useScopedTranslator.d.ts +8 -0
  106. package/dist/client/i18n/useScopedTranslator.d.ts.map +1 -0
  107. package/dist/client/i18n/useTranslator.d.ts +2 -0
  108. package/dist/client/i18n/useTranslator.d.ts.map +1 -0
  109. package/dist/client/index.d.ts +7 -2
  110. package/dist/client/index.d.ts.map +1 -1
  111. package/dist/client/index.js +305 -141
  112. package/dist/client/rpc.d.ts +6 -5
  113. package/dist/client/rpc.d.ts.map +1 -1
  114. package/dist/client/types.d.ts +9 -0
  115. package/dist/client/types.d.ts.map +1 -1
  116. package/dist/client/useRouter.d.ts +15 -0
  117. package/dist/client/useRouter.d.ts.map +1 -0
  118. package/dist/client/useSearchParams.d.ts +21 -0
  119. package/dist/client/useSearchParams.d.ts.map +1 -0
  120. package/dist/email/index.js +1 -1
  121. package/dist/facades/I18n.d.ts +5 -0
  122. package/dist/facades/I18n.d.ts.map +1 -0
  123. package/dist/facades/index.d.ts +1 -0
  124. package/dist/facades/index.d.ts.map +1 -1
  125. package/dist/facades/index.js +1 -1
  126. package/dist/http/HttpRequest.d.ts +2 -0
  127. package/dist/http/HttpRequest.d.ts.map +1 -1
  128. package/dist/http/I18nServiceContainer.d.ts +31 -0
  129. package/dist/http/I18nServiceContainer.d.ts.map +1 -0
  130. package/dist/http/I18nServiceProvider.d.ts +10 -0
  131. package/dist/http/I18nServiceProvider.d.ts.map +1 -0
  132. package/dist/http/index.d.ts +1 -0
  133. package/dist/http/index.d.ts.map +1 -1
  134. package/dist/http/index.js +1 -1
  135. package/dist/http/requestContext.d.ts +2 -0
  136. package/dist/http/requestContext.d.ts.map +1 -1
  137. package/dist/kernel/Kernel.d.ts +5 -0
  138. package/dist/kernel/Kernel.d.ts.map +1 -1
  139. package/dist/kernel/context.d.ts +6 -2
  140. package/dist/kernel/context.d.ts.map +1 -1
  141. package/dist/kernel/index.js +2 -2
  142. package/dist/server/index.js +1 -1
  143. package/dist/storage/index.js +4 -4
  144. package/dist/utils/applyParams.d.ts +2 -0
  145. package/dist/utils/applyParams.d.ts.map +1 -0
  146. package/dist/utils/type.d.ts +1 -0
  147. package/dist/utils/type.d.ts.map +1 -1
  148. package/dist/vite/index.js +1 -1
  149. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{x as h} from"./chunk-a5c18c07abe8fd9c.js";import"./chunk-3bf6f8c8e8589e3d.js";import{jb as _} from"./chunk-2ec287222364c6b6.js";import{mb as N,nb as W,ob as I,rb as v,sb as P} from"./chunk-c62b5c4cec67029c.js";var T=h(_(),1);var H=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var u=h(_(),1);var K=300000,g="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var R={},b=async(e)=>{const{SSOOIDCClient:r}=await import("./chunk-26d58ddc3a89234f.js");if(R[e])return R[e];const s=new r({region:e});return R[e]=s,s};var G=async(e,r)=>{const{CreateTokenCommand:s}=await import("./chunk-26d58ddc3a89234f.js");return(await b(r)).send(new s({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};var U=h(_(),1);var D=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new U.TokenProviderError(`Token is expired. ${g}`,!1)};var q=h(_(),1);var p=(e,r,s=!1)=>{if(typeof r==="undefined")throw new q.TokenProviderError(`Value not present for '${e}' in SSO Token${s?". Cannot refresh":""}. ${g}`,!1)};import{promises as B} from"fs";var{writeFile:Q}=B,j=(e,r)=>{const s=W(e),t=JSON.stringify(r,null,2);return Q(s,t)};var X=new Date(0),z=(e={})=>async()=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");const r=await P(e),s=N(e),t=r[s];if(!t)throw new u.TokenProviderError(`Profile '${s}' could not be found in shared credentials file.`,!1);else if(!t.sso_session)throw new u.TokenProviderError(`Profile '${s}' is missing required property 'sso_session'.`);const i=t.sso_session,a=(await v(e))[i];if(!a)throw new u.TokenProviderError(`Sso session '${i}' could not be found in shared credentials file.`,!1);for(let n of["sso_start_url","sso_region"])if(!a[n])throw new u.TokenProviderError(`Sso session '${i}' is missing required property '${n}'.`,!1);const{sso_start_url:l,sso_region:f}=a;let o;try{o=await I(i)}catch(n){throw new u.TokenProviderError(`The SSO session token associated with profile=${s} was not found or is invalid. ${g}`,!1)}p("accessToken",o.accessToken),p("expiresAt",o.expiresAt);const{accessToken:E,expiresAt:x}=o,c={token:E,expiration:new Date(x)};if(c.expiration.getTime()-Date.now()>K)return c;if(Date.now()-X.getTime()<30000)return D(c),c;p("clientId",o.clientId,!0),p("clientSecret",o.clientSecret,!0),p("refreshToken",o.refreshToken,!0);try{X.setTime(Date.now());const n=await G(o,f);p("accessToken",n.accessToken),p("expiresIn",n.expiresIn);const w=new Date(Date.now()+n.expiresIn*1000);try{await j(i,{...o,accessToken:n.accessToken,expiresAt:w.toISOString(),refreshToken:n.refreshToken})}catch(C){}return{token:n.accessToken,expiration:w}}catch(n){return D(c),c}};var k=h(_(),1);var y=!1,A=async({ssoStartUrl:e,ssoSession:r,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoClient:S,clientConfig:a,profile:l,logger:f})=>{let o;const E="To refresh this SSO session run aws sso login with the corresponding profile.";if(r)try{const d=await z({profile:l})();o={accessToken:d.token,expiresAt:new Date(d.expiration).toISOString()}}catch(d){throw new k.CredentialsProviderError(d.message,{tryNextLink:y,logger:f})}else try{o=await I(e)}catch(d){throw new k.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:f})}if(new Date(o.expiresAt).getTime()-Date.now()<=0)throw new k.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:f});const{accessToken:x}=o,{SSOClient:c,GetRoleCredentialsCommand:n}=await import("./chunk-f13fd46441a58606.js"),w=S||new c(Object.assign({},a??{},{region:a?.region??t}));let C;try{C=await w.send(new n({accountId:s,roleName:i,accessToken:x}))}catch(d){throw new k.CredentialsProviderError(d,{tryNextLink:y,logger:f})}const{roleCredentials:{accessKeyId:m,secretAccessKey:O,sessionToken:$,expiration:F,credentialScope:L,accountId:M}={}}=C;if(!m||!O||!$||!F)throw new k.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:y,logger:f});return{accessKeyId:m,secretAccessKey:O,sessionToken:$,expiration:new Date(F),...L&&{credentialScope:L},...M&&{accountId:M}}};var J=h(_(),1),V=(e,r)=>{const{sso_start_url:s,sso_account_id:t,sso_region:i,sso_role_name:S}=e;if(!s||!t||!i||!S)throw new J.CredentialsProviderError('Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", '+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:r});return e};var Ee=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:r,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoSession:S}=e,{ssoClient:a}=e,l=N(e);if(!r&&!s&&!t&&!i&&!S){const o=(await P(e))[l];if(!o)throw new T.CredentialsProviderError(`Profile ${l} was not found.`,{logger:e.logger});if(!H(o))throw new T.CredentialsProviderError(`Profile ${l} is not configured with SSO credentials.`,{logger:e.logger});if(o?.sso_session){const m=(await v(e))[o.sso_session],O=` configurations in profile ${l} and sso-session ${o.sso_session}`;if(t&&t!==m.sso_region)throw new T.CredentialsProviderError("Conflicting SSO region"+O,{tryNextLink:!1,logger:e.logger});if(r&&r!==m.sso_start_url)throw new T.CredentialsProviderError("Conflicting SSO start_url"+O,{tryNextLink:!1,logger:e.logger});o.sso_region=m.sso_region,o.sso_start_url=m.sso_start_url}const{sso_start_url:E,sso_account_id:x,sso_region:c,sso_role_name:n,sso_session:w}=V(o,e.logger);return A({ssoStartUrl:E,ssoSession:w,ssoAccountId:x,ssoRegion:c,ssoRoleName:n,ssoClient:a,clientConfig:e.clientConfig,profile:l})}else if(!r||!s||!t||!i)throw new T.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return A({ssoStartUrl:r,ssoSession:S,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoClient:a,clientConfig:e.clientConfig,profile:l})};export{V as validateSsoProfile,H as isSsoProfile,Ee as fromSSO};
2
+ import{x as h} from"./chunk-a5c18c07abe8fd9c.js";import"./chunk-3bf6f8c8e8589e3d.js";import{jb as _} from"./chunk-2ec287222364c6b6.js";import{mb as N,nb as W,ob as I,rb as v,sb as P} from"./chunk-c62b5c4cec67029c.js";var T=h(_(),1);var H=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var u=h(_(),1);var K=300000,g="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var R={},b=async(e)=>{const{SSOOIDCClient:r}=await import("./chunk-7ea1baca4032004f.js");if(R[e])return R[e];const s=new r({region:e});return R[e]=s,s};var G=async(e,r)=>{const{CreateTokenCommand:s}=await import("./chunk-7ea1baca4032004f.js");return(await b(r)).send(new s({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};var U=h(_(),1);var D=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new U.TokenProviderError(`Token is expired. ${g}`,!1)};var q=h(_(),1);var p=(e,r,s=!1)=>{if(typeof r==="undefined")throw new q.TokenProviderError(`Value not present for '${e}' in SSO Token${s?". Cannot refresh":""}. ${g}`,!1)};import{promises as B} from"fs";var{writeFile:Q}=B,j=(e,r)=>{const s=W(e),t=JSON.stringify(r,null,2);return Q(s,t)};var X=new Date(0),z=(e={})=>async()=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");const r=await P(e),s=N(e),t=r[s];if(!t)throw new u.TokenProviderError(`Profile '${s}' could not be found in shared credentials file.`,!1);else if(!t.sso_session)throw new u.TokenProviderError(`Profile '${s}' is missing required property 'sso_session'.`);const i=t.sso_session,a=(await v(e))[i];if(!a)throw new u.TokenProviderError(`Sso session '${i}' could not be found in shared credentials file.`,!1);for(let n of["sso_start_url","sso_region"])if(!a[n])throw new u.TokenProviderError(`Sso session '${i}' is missing required property '${n}'.`,!1);const{sso_start_url:l,sso_region:f}=a;let o;try{o=await I(i)}catch(n){throw new u.TokenProviderError(`The SSO session token associated with profile=${s} was not found or is invalid. ${g}`,!1)}p("accessToken",o.accessToken),p("expiresAt",o.expiresAt);const{accessToken:E,expiresAt:x}=o,c={token:E,expiration:new Date(x)};if(c.expiration.getTime()-Date.now()>K)return c;if(Date.now()-X.getTime()<30000)return D(c),c;p("clientId",o.clientId,!0),p("clientSecret",o.clientSecret,!0),p("refreshToken",o.refreshToken,!0);try{X.setTime(Date.now());const n=await G(o,f);p("accessToken",n.accessToken),p("expiresIn",n.expiresIn);const w=new Date(Date.now()+n.expiresIn*1000);try{await j(i,{...o,accessToken:n.accessToken,expiresAt:w.toISOString(),refreshToken:n.refreshToken})}catch(C){}return{token:n.accessToken,expiration:w}}catch(n){return D(c),c}};var k=h(_(),1);var y=!1,A=async({ssoStartUrl:e,ssoSession:r,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoClient:S,clientConfig:a,profile:l,logger:f})=>{let o;const E="To refresh this SSO session run aws sso login with the corresponding profile.";if(r)try{const d=await z({profile:l})();o={accessToken:d.token,expiresAt:new Date(d.expiration).toISOString()}}catch(d){throw new k.CredentialsProviderError(d.message,{tryNextLink:y,logger:f})}else try{o=await I(e)}catch(d){throw new k.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:f})}if(new Date(o.expiresAt).getTime()-Date.now()<=0)throw new k.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:f});const{accessToken:x}=o,{SSOClient:c,GetRoleCredentialsCommand:n}=await import("./chunk-6259cd13f53334df.js"),w=S||new c(Object.assign({},a??{},{region:a?.region??t}));let C;try{C=await w.send(new n({accountId:s,roleName:i,accessToken:x}))}catch(d){throw new k.CredentialsProviderError(d,{tryNextLink:y,logger:f})}const{roleCredentials:{accessKeyId:m,secretAccessKey:O,sessionToken:$,expiration:F,credentialScope:L,accountId:M}={}}=C;if(!m||!O||!$||!F)throw new k.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:y,logger:f});return{accessKeyId:m,secretAccessKey:O,sessionToken:$,expiration:new Date(F),...L&&{credentialScope:L},...M&&{accountId:M}}};var J=h(_(),1),V=(e,r)=>{const{sso_start_url:s,sso_account_id:t,sso_region:i,sso_role_name:S}=e;if(!s||!t||!i||!S)throw new J.CredentialsProviderError('Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", '+`"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:r});return e};var Ee=(e={})=>async()=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");const{ssoStartUrl:r,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoSession:S}=e,{ssoClient:a}=e,l=N(e);if(!r&&!s&&!t&&!i&&!S){const o=(await P(e))[l];if(!o)throw new T.CredentialsProviderError(`Profile ${l} was not found.`,{logger:e.logger});if(!H(o))throw new T.CredentialsProviderError(`Profile ${l} is not configured with SSO credentials.`,{logger:e.logger});if(o?.sso_session){const m=(await v(e))[o.sso_session],O=` configurations in profile ${l} and sso-session ${o.sso_session}`;if(t&&t!==m.sso_region)throw new T.CredentialsProviderError("Conflicting SSO region"+O,{tryNextLink:!1,logger:e.logger});if(r&&r!==m.sso_start_url)throw new T.CredentialsProviderError("Conflicting SSO start_url"+O,{tryNextLink:!1,logger:e.logger});o.sso_region=m.sso_region,o.sso_start_url=m.sso_start_url}const{sso_start_url:E,sso_account_id:x,sso_region:c,sso_role_name:n,sso_session:w}=V(o,e.logger);return A({ssoStartUrl:E,ssoSession:w,ssoAccountId:x,ssoRegion:c,ssoRoleName:n,ssoClient:a,clientConfig:e.clientConfig,profile:l})}else if(!r||!s||!t||!i)throw new T.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return A({ssoStartUrl:r,ssoSession:S,ssoAccountId:s,ssoRegion:t,ssoRoleName:i,ssoClient:a,clientConfig:e.clientConfig,profile:l})};export{V as validateSsoProfile,H as isSsoProfile,Ee as fromSSO};
@@ -1,4 +1,4 @@
1
- import{s as w,t as z,u as B} from"./chunk-50b440397d41ab5a.js";import{x as Q} from"./chunk-a5c18c07abe8fd9c.js";import{jb as X} from"./chunk-2ec287222364c6b6.js";import{lb as $} from"./chunk-c62b5c4cec67029c.js";var q=Q(X(),1);var G=Q(X(),1),k="AWS_EC2_METADATA_DISABLED",Y=async(b)=>{const{ENV_CMDS_FULL_URI:j,ENV_CMDS_RELATIVE_URI:x,fromContainerMetadata:y,fromInstanceMetadata:J}=await import("./chunk-159f5b922269aef1.js");if(process.env[x]||process.env[j]){b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:K}=await import("./chunk-9bd00e182ac2f8a6.js");return G.chain(K(b),y(b))}if(process.env[k])return async()=>{throw new G.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:b.logger})};return b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),J(b)};var Z=!1,T=(b={})=>q.memoize(q.chain(async()=>{if(b.profile??process.env[$]){if(process.env[w]&&process.env[z]){if(!Z)(b.logger?.warn&&b.logger?.constructor?.name!=="NoOpLogger"?b.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
1
+ import{s as w,t as z,u as B} from"./chunk-50b440397d41ab5a.js";import{x as Q} from"./chunk-a5c18c07abe8fd9c.js";import{jb as X} from"./chunk-2ec287222364c6b6.js";import{lb as $} from"./chunk-c62b5c4cec67029c.js";var q=Q(X(),1);var G=Q(X(),1),k="AWS_EC2_METADATA_DISABLED",Y=async(b)=>{const{ENV_CMDS_FULL_URI:j,ENV_CMDS_RELATIVE_URI:x,fromContainerMetadata:y,fromInstanceMetadata:J}=await import("./chunk-b9e4546aaa58319c.js");if(process.env[x]||process.env[j]){b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:K}=await import("./chunk-9bd00e182ac2f8a6.js");return G.chain(K(b),y(b))}if(process.env[k])return async()=>{throw new G.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:b.logger})};return b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),J(b)};var Z=!1,T=(b={})=>q.memoize(q.chain(async()=>{if(b.profile??process.env[$]){if(process.env[w]&&process.env[z]){if(!Z)(b.logger?.warn&&b.logger?.constructor?.name!=="NoOpLogger"?b.logger.warn:console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
2
2
  Multiple credential sources detected:
3
3
  Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
4
4
  This SDK will proceed with the AWS_PROFILE value.
@@ -0,0 +1 @@
1
+ import{y as x} from"./chunk-7ce930fe69575c87.js";import{ib as S} from"./chunk-09dd89e1046786a5.js";var q="AWS_PROFILE";var B=(o)=>o.profile||process.env["AWS_PROFILE"]||"default";import{join as b} from"path";import{homedir as N} from"os";import{sep as L} from"path";var d={},w=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},f=()=>{const{HOME:o,USERPROFILE:e,HOMEPATH:t,HOMEDRIVE:r=`C:${L}`}=process.env;if(o)return o;if(e)return e;if(t)return`${r}${t}`;const i=w();if(!d[i])d[i]=N();return d[i]};var v="AWS_CONFIG_FILE",g=()=>process.env[v]||b(f(),".aws","config");var D=x(S(),1);import{join as I} from"path";var h=x(S(),1);var O=(o)=>Object.entries(o).filter(([e])=>{const t=e.indexOf(c);if(t===-1)return!1;return Object.values(h.IniSectionType).includes(e.substring(0,t))}).reduce((e,[t,r])=>{const i=t.indexOf(c),s=t.substring(0,i)===h.IniSectionType.PROFILE?t.substring(i+1):t;return e[s]=r,e},{...o.default&&{default:o.default}});import{join as j} from"path";var y="AWS_SHARED_CREDENTIALS_FILE",_=()=>process.env[y]||j(f(),".aws","credentials");var C=x(S(),1);var $=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,G=["__proto__","profile __proto__"],a=(o)=>{const e={};let t,r;for(let i of o.split(/\r?\n/)){const s=i.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){t=void 0,r=void 0;const n=s.substring(1,s.length-1),m=$.exec(n);if(m){const[,p,,F]=m;if(Object.values(C.IniSectionType).includes(p))t=[p,F].join(c)}else t=n;if(G.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(t){const n=s.indexOf("=");if(![0,-1].includes(n)){const[m,p]=[s.substring(0,n).trim(),s.substring(n+1).trim()];if(p==="")r=m;else{if(r&&i.trimStart()===i)r=void 0;e[t]=e[t]||{};const F=r?[r,m].join(c):m;e[t][F]=p}}}}return e};import{promises as W} from"fs";var{readFile:K}=W,E={},l=(o,e)=>{if(!E[o]||e?.ignoreCache)E[o]=K(o,"utf8");return E[o]};var P=()=>({}),c=".",R=async(o={})=>{const{filepath:e=_(),configFilepath:t=g()}=o,r=f();let s=e;if(e.startsWith("~/"))s=I(r,e.slice(2));let u=t;if(t.startsWith("~/"))u=I(r,t.slice(2));const n=await Promise.all([l(u,{ignoreCache:o.ignoreCache}).then(a).then(O).catch(P),l(s,{ignoreCache:o.ignoreCache}).then(a).catch(P)]);return{configFile:n[0],credentialsFile:n[1]}};var T=(o)=>Object.entries(o).filter(([e])=>e.startsWith(D.IniSectionType.SSO_SESSION+c)).reduce((e,[t,r])=>({...e,[t.substring(t.indexOf(c)+1)]:r}),{});var V=()=>({}),Pe=async(o={})=>l(o.configFilepath??g()).then(a).then(T).catch(V);var A=(...o)=>{const e={};for(let t of o)for(let[r,i]of Object.entries(t))if(e[r]!==void 0)Object.assign(e[r],i);else e[r]=i;return e};var He=async(o)=>{const e=await R(o);return A(e.configFile,e.credentialsFile)};import{createHash as U} from"crypto";import{join as X} from"path";var H=(o)=>{const t=U("sha1").update(o).digest("hex");return X(f(),".aws","sso","cache",`${t}.json`)};import{promises as k} from"fs";var{readFile:M}=k,$e=async(o)=>{const e=H(o),t=await M(e,"utf8");return JSON.parse(t)};export{q as nb,B as ob,H as pb,$e as qb,c as rb,R as sb,Pe as tb,He as ub};
@@ -1 +1 @@
1
- {"version":3,"file":"ClientRouter.d.ts","sourceRoot":"","sources":["../../client/ClientRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAuEf,eAAO,MAAM,YAAY,UAAW;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,UAAU,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC,4CA0BA,CAAC"}
1
+ {"version":3,"file":"ClientRouter.d.ts","sourceRoot":"","sources":["../../client/ClientRouter.tsx"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAwEf,eAAO,MAAM,YAAY,UAAW;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,UAAU,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;CAChC,4CA4BA,CAAC"}
@@ -1,5 +1,5 @@
1
- import { type History, type To, type Location } from "history";
2
- import { type ComponentProps, type PropsWithChildren } from "react";
1
+ import { type History, type Location } from "history";
2
+ import { type PropsWithChildren } from "react";
3
3
  import { Subject } from "../utils/Subject";
4
4
  interface ClientRouterContextValue {
5
5
  viewEntriesSubject: Subject<string[]>;
@@ -10,6 +10,7 @@ interface ClientRouterContextValue {
10
10
  getScrollPosition: (path: string) => number;
11
11
  params: Record<string, string>;
12
12
  getViewPathsFromPathname: (pathname: string) => string[];
13
+ getRoutePathnameFromHref: (href: string) => string | null;
13
14
  }
14
15
  export declare const ClientRouterContext: import("react").Context<ClientRouterContextValue>;
15
16
  interface ClientRouterProviderProps {
@@ -24,14 +25,5 @@ interface ClientRouterProviderProps {
24
25
  export declare const ClientRouterProvider: (props: PropsWithChildren<ClientRouterProviderProps>) => import("react/jsx-runtime").JSX.Element;
25
26
  export declare function useLocation(): Location;
26
27
  export declare function useParams(): Record<string, string>;
27
- export declare function useSearchParams(): readonly [URLSearchParams, (newSearchParams: URLSearchParams | ((searchParams: URLSearchParams) => URLSearchParams)) => void];
28
- export declare function useViewData(): void;
29
- export declare function useRouter(): {
30
- push: (to: To, state?: any) => Promise<void>;
31
- };
32
- export declare const Link: (props: Omit<ComponentProps<"a">, "href"> & {
33
- href: To;
34
- active?: boolean;
35
- }) => import("react/jsx-runtime").JSX.Element;
36
28
  export {};
37
29
  //# sourceMappingURL=ClientRouterContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ClientRouterContext.d.ts","sourceRoot":"","sources":["../../client/ClientRouterContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,EAAE,EACP,KAAK,QAAQ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QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,eAAO,MAAM,oBAAoB,UACxB,iBAAiB,CAAC,yBAAyB,CAAC,4CAqIpD,CAAC;AAUF,wBAAgB,WAAW,aAU1B;AAED,wBAAgB,SAAS,2BAGxB"}
@@ -0,0 +1,13 @@
1
+ import type { ComponentProps } from "react";
2
+ import type { ViewPaths, UrlParser } from "./types";
3
+ type BaseLinkProps<T extends ViewPaths> = Omit<ComponentProps<"a">, "href"> & {
4
+ active?: boolean;
5
+ href: T;
6
+ search?: Record<string, string | number | boolean | undefined | null>;
7
+ };
8
+ type LinkProps<T extends ViewPaths> = UrlParser<T> extends never ? BaseLinkProps<T> : BaseLinkProps<T> & {
9
+ params: UrlParser<T>;
10
+ };
11
+ export declare const Link: <T extends ViewPaths>(props: LinkProps<T>) => import("react/jsx-runtime").JSX.Element;
12
+ export {};
13
+ //# sourceMappingURL=Link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../client/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpD,KAAK,aAAa,CAAC,CAAC,SAAS,SAAS,IAAI,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG;IAC5E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,CAAC,CAAC;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,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;CAiBnC"}
1
+ {"version":3,"file":"QueryManager.d.ts","sourceRoot":"","sources":["../../client/QueryManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAG3C,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,cAAM,QAAQ;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACtB,KAAK,UAAQ;IACb,UAAU,EAAE,KAAK,GAAG,IAAI,CAAQ;gBAEpB,GAAG,EAAE,MAAM,EAAE,YAAY,GAAE,GAAU;IAWjD,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC;IAS5B,KAAK;IAuBL,OAAO;CA8CR;AAED,qBAAa,YAAY;IACvB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAa;;IAI7C,OAAO,CAAC,iBAAiB;IAIzB,KAAK,CACH,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EACjC,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;CAiBnC"}
@@ -1,4 +1,5 @@
1
1
  import { type PropsWithChildren } from "react";
2
+ import type { Translations } from "./i18n/I18nContext";
2
3
  import type { ComponentTree } from "./types";
3
4
  type Data = Record<string, any>;
4
5
  export interface ServerDataContextValue {
@@ -11,6 +12,7 @@ export interface ServerDataContextValue {
11
12
  is404: boolean;
12
13
  searchParams: string;
13
14
  };
15
+ i18n: Translations;
14
16
  componentTree: ComponentTree;
15
17
  auth: {
16
18
  user: {
@@ -1 +1 @@
1
- {"version":3,"file":"ServerDataProvider.d.ts","sourceRoot":"","sources":["../../client/ServerDataProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEhC,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/C,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC5B,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,OAAO,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE;QACJ,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC;YACb,KAAK,EAAE,MAAM,CAAC;YACd,QAAQ,EAAE,KAAK,CAAC;gBACd,cAAc,EAAE,MAAM,CAAC;gBACvB,IAAI,EAAE,MAAM,CAAC;aACd,CAAC,CAAC;YACH,UAAU,EAAE,MAAM,CAAC;YACnB,EAAE,EAAE,MAAM,CAAC;SACZ,CAAC;KACH,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB,iDAA8C,CAAC;AAE7E,UAAU,uBAAuB;IAC/B,KAAK,CAAC,EAAE,sBAAsB,CAAC;CAChC;AAED,eAAO,MAAM,kBAAkB,UACtB,iBAAiB,CAAC,uBAAuB,CAAC,4CAgBlD,CAAC"}
1
+ {"version":3,"file":"ServerDataProvider.d.ts","sourceRoot":"","sources":["../../client/ServerDataProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,E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"AAEA,UAAU,qBAAqB;IAC7B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,qBAAmC;;;;;;;;;;;EAW1E"}
1
+ {"version":3,"file":"useForgotPassword.d.ts","sourceRoot":"","sources":["../../../client/auth/useForgotPassword.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,qBAAmC;;;;;;;;;;;EAU1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"useResetPassword.d.ts","sourceRoot":"","sources":["../../../client/auth/useResetPassword.ts"],"names":[],"mappings":"AAEA,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,oBAAkC;;;;;;;;;;;EAWxE"}
1
+ {"version":3,"file":"useResetPassword.d.ts","sourceRoot":"","sources":["../../../client/auth/useResetPassword.ts"],"names":[],"mappings":"AAEA,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,oBAAkC;;;;;;;;;;;EAUxE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSignIn.d.ts","sourceRoot":"","sources":["../../../client/auth/useSignIn.tsx"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CACjC;AAMD,wBAAgB,SAAS,CAAC,IAAI,GAAE,aAA2B;;;;;;;;;;;;;;;;;;EAiB1D"}
1
+ {"version":3,"file":"useSignIn.d.ts","sourceRoot":"","sources":["../../../client/auth/useSignIn.tsx"],"names":[],"mappings":"AAGA,UAAU,aAAa;IACrB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CACjC;AAMD,wBAAgB,SAAS,CAAC,IAAI,GAAE,aAA2B;;;;;;;;;;;;;;;;;;EAY1D"}
@@ -1 +1 @@
1
- {"version":3,"file":"useSignOut.d.ts","sourceRoot":"","sources":["../../../client/auth/useSignOut.ts"],"names":[],"mappings":"AAGA,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAMD,wBAAgB,UAAU,CAAC,IAAI,GAAE,cAA4B;;;;;;;;;;;EAiB5D"}
1
+ {"version":3,"file":"useSignOut.d.ts","sourceRoot":"","sources":["../../../client/auth/useSignOut.ts"],"names":[],"mappings":"AAGA,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAMD,wBAAgB,UAAU,CAAC,IAAI,GAAE,cAA4B;;;;;;;;;;;EAY5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"useUser.d.ts","sourceRoot":"","sources":["../../../client/auth/useUser.ts"],"names":[],"mappings":"AAIA,wBAAgB,OAAO;;;;EAgBtB"}
1
+ {"version":3,"file":"useUser.d.ts","sourceRoot":"","sources":["../../../client/auth/useUser.ts"],"names":[],"mappings":"AAIA,wBAAgB,OAAO;;;;EAetB"}
@@ -0,0 +1,18 @@
1
+ import { type PropsWithChildren } from "react";
2
+ type TranslationScope = Record<string, string>;
3
+ type TranslationScopes = Record<string, TranslationScope>;
4
+ export type Translations = Record<string, TranslationScopes>;
5
+ interface I18nContextValue {
6
+ locale: string;
7
+ changeLocale: (locale: string) => void;
8
+ updateDictionary: (translations: Record<string, Record<string, Record<string, string>>>) => void;
9
+ translations: TranslationScopes;
10
+ fetchTranslations: (pathname: string, locale?: string) => Promise<void>;
11
+ }
12
+ export declare const I18nContext: import("react").Context<I18nContextValue>;
13
+ interface I18nProviderProps {
14
+ }
15
+ export type Dictionary = Map<string, Map<string, Record<string, string>>>;
16
+ export declare const I18nProvider: (props: PropsWithChildren<I18nProviderProps>) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=I18nContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"I18nContext.d.ts","sourceRoot":"","sources":["../../../client/i18n/I18nContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAGvB,MAAM,OAAO,CAAC;AAGf,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC/C,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAE7D,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,gBAAgB,EAAE,CAChB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,KACjE,IAAI,CAAC;IACV,YAAY,EAAE,iBAAiB,CAAC;IAChC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACzE;AAED,eAAO,MAAM,WAAW,2CAAwC,CAAC;AAEjE,UAAU,iBAAiB;CAAG;AAE9B,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AAE1E,eAAO,MAAM,YAAY,UAAW,iBAAiB,CAAC,iBAAiB,CAAC,4CA+EvE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useLocale(): readonly [string, (locale: string) => Promise<void>];
2
+ //# sourceMappingURL=useLocale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLocale.d.ts","sourceRoot":"","sources":["../../../client/i18n/useLocale.ts"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,+BAKU,MAAM,oBAOxC"}
@@ -0,0 +1,8 @@
1
+ import type { I18nDictionary } from "../rpc";
2
+ import type { IsEmptyObject } from "../../utils/type";
3
+ type ParseTranslationParams<T extends string> = T extends `${infer _Start}{${infer Param}}${infer Rest}` ? {
4
+ [K in Param]: string;
5
+ } & ParseTranslationParams<Rest> : {};
6
+ export declare function useScopedTranslator<T extends keyof I18nDictionary>(scope: T): <K extends keyof I18nDictionary[T], U extends Record<string, string> = ParseTranslationParams<I18nDictionary[T][K]["en"]>>(key: K, ...args: IsEmptyObject<U> extends true ? [] : [params: U]) => string | K;
7
+ export {};
8
+ //# sourceMappingURL=useScopedTranslator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useScopedTranslator.d.ts","sourceRoot":"","sources":["../../../client/i18n/useScopedTranslator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,KAAK,sBAAsB,CAAC,CAAC,SAAS,MAAM,IAC1C,CAAC,SAAS,GAAG,MAAM,MAAM,IAAI,MAAM,KAAK,IAAI,MAAM,IAAI,EAAE,GACpD;KAAG,CAAC,IAAI,KAAK,GAAG,MAAM;CAAE,GAAG,sBAAsB,CAAC,IAAI,CAAC,GACvD,EAAE,CAAC;AAET,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,cAAc,EAAE,KAAK,EAAE,CAAC,IAIxE,CAAC,SAAS,MAAM,cAAc,CAAC,CAAC,CAAC,EACjC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,4DAI3B,CAAC,WACG,aAAa,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,gBAW5D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useTranslator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTranslator.d.ts","sourceRoot":"","sources":["../../../client/i18n/useTranslator.ts"],"names":[],"mappings":""}
@@ -1,10 +1,13 @@
1
1
  export { useQuery } from "./useQuery";
2
2
  export { useMutation } from "./useMutation";
3
3
  export { Form, FormError, useMutationStatus, ValidationErrors, FormField, } from "./Mutation";
4
- export { Link, useLocation, useParams, useRouter, useSearchParams, } from "./ClientRouterContext";
4
+ export { useLocation, useParams } from "./ClientRouterContext";
5
+ export { useSearchParams } from "./useSearchParams";
6
+ export { useRouter } from "./useRouter";
7
+ export { Link } from "./Link";
5
8
  export { init } from "./init";
6
9
  export { createRoot } from "./createRoot";
7
- export type { RPC, ViewRPC } from "./rpc";
10
+ export type { RPC, ViewRPC, I18nDictionary } from "./rpc";
8
11
  export { type ViewProps, type LayoutProps } from "./types";
9
12
  export { Image } from "./Image";
10
13
  export { useForgotPassword } from "./auth/useForgotPassword";
@@ -13,4 +16,6 @@ export { useSignUp } from "./auth/useSignUp";
13
16
  export { useSignOut } from "./auth/useSignOut";
14
17
  export { useResetPassword } from "./auth/useResetPassword";
15
18
  export { useUser } from "./auth/useUser";
19
+ export { useScopedTranslator } from "./i18n/useScopedTranslator";
20
+ export { useLocale } from "./i18n/useLocale";
16
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACL,IAAI,EACJ,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,IAAI,EACJ,WAAW,EACX,SAAS,EACT,SAAS,EACT,eAAe,G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