@ory/elements-react 1.0.0 → 1.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.
package/dist/index.mjs CHANGED
@@ -211,7 +211,7 @@ function useNodesGroups(nodes, { omit } = {}) {
211
211
  };
212
212
  }
213
213
  var findNode = (nodes, opt) => nodes.find((n) => {
214
- return n.attributes.node_type === opt.node_type && (opt.group instanceof RegExp ? n.group.match(opt.group) : n.group === opt.group) && (opt.name && n.attributes.node_type === "input" ? opt.name instanceof RegExp ? n.attributes.name.match(opt.name) : n.attributes.name === opt.name : !opt.name);
214
+ return n.attributes.node_type === opt.node_type && (opt.group instanceof RegExp ? n.group.match(opt.group) : n.group === opt.group) && (opt.name && n.attributes.node_type === "input" ? opt.name instanceof RegExp ? n.attributes.name.match(opt.name) : n.attributes.name === opt.name : !opt.name) && (opt.type && n.attributes.node_type === "input" ? opt.type instanceof RegExp ? n.attributes.type.match(opt.type) : n.attributes.type === opt.type : !opt.type);
215
215
  });
216
216
  function useFunctionalNodes(nodes) {
217
217
  return nodes.filter(
@@ -474,7 +474,8 @@ function useOryConfiguration() {
474
474
  };
475
475
  }
476
476
  var OryConfigurationContext = createContext({
477
- sdk: computeSdkConfig({}),
477
+ sdk: null,
478
+ // This is fine, because we always supply a proper default value for the SDK configuration in the provider
478
479
  project: defaultProject
479
480
  });
480
481
  function OryConfigurationProvider({
@@ -505,7 +506,7 @@ function computeSdkConfig(config) {
505
506
  }
506
507
  function getSDKUrl() {
507
508
  var _a;
508
- if (typeof process !== "undefined" && process.versions && process.versions.node) {
509
+ if (typeof process !== "undefined" && !!process.env) {
509
510
  if (isProduction()) {
510
511
  const sdkUrl = (_a = process.env["NEXT_PUBLIC_ORY_SDK_URL"]) != null ? _a : process.env["ORY_SDK_URL"];
511
512
  if (!sdkUrl) {
@@ -2250,7 +2251,7 @@ var en_default = {
2250
2251
  "identities.messages.1010011": "Sign in with hardware key",
2251
2252
  "identities.messages.1010012": "Prepare your WebAuthn device (e.g. security key, biometrics scanner, ...) and press continue.",
2252
2253
  "identities.messages.1010013": "Continue",
2253
- "identities.messages.1010014": "A code has been sent to the address you provided. If you have not received an message, check the spelling of the address and retry the login.",
2254
+ "identities.messages.1010014": "A code was sent to the address you provided. If you didn't receive it, please check the spelling of the address and try again.",
2254
2255
  "identities.messages.1010015": "Send sign in code",
2255
2256
  "identities.messages.1010016": 'You tried to sign in with "{duplicateIdentifier}", but that email is already used by another account. Sign in to your account with one of the options below to add your account "{duplicateIdentifier}" at "{provider}" as another way to sign in.',
2256
2257
  "identities.messages.1010017": "Sign in and link",
@@ -2458,7 +2459,7 @@ var en_default = {
2458
2459
  "card.header.parts.oidc": "a social provider",
2459
2460
  "card.header.parts.password.registration": "your {identifierLabel} and a password",
2460
2461
  "card.header.parts.password.login": "your {identifierLabel} and password",
2461
- "card.header.parts.code": "a code sent to you",
2462
+ "card.header.parts.code": "a one-time code",
2462
2463
  "card.header.parts.passkey": "a Passkey",
2463
2464
  "card.header.parts.webauthn": "a security key",
2464
2465
  "card.header.parts.totp": "your authenticator app",
@@ -2712,7 +2713,7 @@ var de_default = {
2712
2713
  "identities.messages.4010009": "Die Authentifizierungsmethode stimmt nicht mit der vorherigen Authentifizierungsmethode \xFCberein. Bitte versuchen Sie es erneut.",
2713
2714
  "identities.messages.4010010": "Die eingegebene Adresse stimmt nicht mit der Adresse \xFCberein, die Sie bei der Registrierung angegeben haben. Bitte versuchen Sie es erneut.",
2714
2715
  "input.placeholder": "{placeholder} eingeben",
2715
- "card.header.parts.code": "einem an Sie gesendeten Code",
2716
+ "card.header.parts.code": "ein einmaliger Code",
2716
2717
  "card.header.parts.identifier-first": "Ihrer {identifierLabel}",
2717
2718
  "card.header.parts.oidc": "einem Social-Login",
2718
2719
  "card.header.parts.passkey": "einem Passkey",
@@ -3062,7 +3063,7 @@ var es_default = {
3062
3063
  "card.header.parts.oidc": "un proveedor social",
3063
3064
  "card.header.parts.password.registration": "tu {identifierLabel} y una contrase\xF1a",
3064
3065
  "card.header.parts.password.login": "tu {identifierLabel} y contrase\xF1a",
3065
- "card.header.parts.code": "un c\xF3digo enviado a tu correo electr\xF3nico",
3066
+ "card.header.parts.code": "un c\xF3digo de un solo uso",
3066
3067
  "card.header.parts.passkey": "una clave de acceso",
3067
3068
  "card.header.parts.webauthn": "una clave de seguridad",
3068
3069
  "card.header.parts.totp": "su aplicaci\xF3n de autenticaci\xF3n",
@@ -3351,7 +3352,7 @@ var fr_default = {
3351
3352
  "card.header.parts.passkey": "une cl\xE9 d'acc\xE8s",
3352
3353
  "card.header.parts.webauthn": "une cl\xE9 de s\xE9curit\xE9",
3353
3354
  "card.header.parts.identifier-first": "votre {identifierLabel}",
3354
- "card.header.parts.code": "un code qui vous a \xE9t\xE9 envoy\xE9",
3355
+ "card.header.parts.code": "un code \xE0 usage unique",
3355
3356
  "card.header.parts.totp": "votre application d'authentification",
3356
3357
  "card.header.parts.lookup_secret": "un code de r\xE9cup\xE9ration de secours",
3357
3358
  "card.header.description.login": "Se connecter avec {identifierLabel}",
@@ -3598,7 +3599,7 @@ var nl_default = {
3598
3599
  "input.placeholder": "",
3599
3600
  "card.header.description.login": "",
3600
3601
  "card.header.description.registration": "",
3601
- "card.header.parts.code": "een code die naar je is verzonden",
3602
+ "card.header.parts.code": "een eenmalige code",
3602
3603
  "card.header.parts.totp": "je authenticator-app",
3603
3604
  "card.header.parts.lookup_secret": "een backup herstelcode",
3604
3605
  "card.header.parts.identifier-first": "",
@@ -3895,7 +3896,7 @@ var pl_default = {
3895
3896
  "card.header.parts.password.login": "",
3896
3897
  "card.header.parts.password.registration": "",
3897
3898
  "card.header.parts.webauthn": "",
3898
- "card.header.parts.code": "kod wys\u0142any do Ciebie",
3899
+ "card.header.parts.code": "jednorazowy kod",
3899
3900
  "card.header.parts.totp": "Twoja aplikacja uwierzytelniaj\u0105ca",
3900
3901
  "card.header.parts.lookup_secret": "kod odzyskiwania kopii zapasowej",
3901
3902
  "forms.label.forgot-password": "",
@@ -4180,7 +4181,7 @@ var pt_default = {
4180
4181
  "input.placeholder": "",
4181
4182
  "card.header.description.login": "",
4182
4183
  "card.header.description.registration": "",
4183
- "card.header.parts.code": "um c\xF3digo enviado para voc\xEA",
4184
+ "card.header.parts.code": "um c\xF3digo de uso \xFAnico",
4184
4185
  "card.header.parts.totp": "seu aplicativo autenticador",
4185
4186
  "card.header.parts.lookup_secret": "um c\xF3digo de recupera\xE7\xE3o de backup",
4186
4187
  "card.header.parts.identifier-first": "",
@@ -4471,7 +4472,7 @@ var sv_default = {
4471
4472
  "input.placeholder": "Ange din {placeholder}",
4472
4473
  "card.header.description.login": "Logga in med {identifierLabel}",
4473
4474
  "card.header.description.registration": "Registrera dig med {identifierLabel}",
4474
- "card.header.parts.code": "en kod skickad till dig",
4475
+ "card.header.parts.code": "en eng\xE5ngskod",
4475
4476
  "card.header.parts.totp": "din autentiseringsapp",
4476
4477
  "card.header.parts.lookup_secret": "en s\xE4kerhetskopieringskod",
4477
4478
  "card.header.parts.identifier-first": "din {identifierLabel}",
@@ -4783,7 +4784,7 @@ var no_default = {
4783
4784
  "card.header.parts.oidc": "en sosial leverand\xF8r",
4784
4785
  "card.header.parts.password.registration": "din {identifierLabel} og et passord",
4785
4786
  "card.header.parts.password.login": "din {identifierLabel} og passord",
4786
- "card.header.parts.code": "en kode sendt til deg",
4787
+ "card.header.parts.code": "en engangskode",
4787
4788
  "card.header.parts.passkey": "en passkey",
4788
4789
  "card.header.parts.webauthn": "en sikkerhetsn\xF8kkel",
4789
4790
  "card.header.parts.totp": "din autentiseringsapp",