auth0-lock 12.0.0 → 12.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Change Log
2
2
 
3
+ ## [v12.0.2](https://github.com/auth0/lock/tree/v12.0.2) (2023-02-10)
4
+ [Full Changelog](https://github.com/auth0/lock/compare/v12.0.1...v12.0.2)
5
+
6
+ **Changed**
7
+ - Slight tweaks to Captcha input component handler methods + refresh button mask [\#2272](https://github.com/auth0/lock/pull/2272) ([stevehobbsdev](https://github.com/stevehobbsdev))
8
+
9
+ **Fixed**
10
+ - Fix for when component is undefined on unmount [\#2271](https://github.com/auth0/lock/pull/2271) ([codetheweb](https://github.com/codetheweb))
11
+
12
+ ## [v12.0.1](https://github.com/auth0/lock/tree/v12.0.1) (2023-02-01)
13
+ [Full Changelog](https://github.com/auth0/lock/compare/v12.0.0...v12.0.1)
14
+
15
+ **Changed**
16
+ - FDR-487 - feat: update microsoft button [\#2259](https://github.com/auth0/lock/pull/2259) ([jamescgarrett](https://github.com/jamescgarrett))
17
+
3
18
  ## [v12.0.0](https://github.com/auth0/lock/tree/v12.0.0) (2023-01-20)
4
19
 
5
20
  [Full Changelog](https://github.com/auth0/lock/compare/v11.35.0...v12.0.0)
package/EXAMPLES.md CHANGED
@@ -396,7 +396,7 @@ new Auth0Lock('client ID', 'domain', {
396
396
  ### Other options
397
397
 
398
398
  - **configurationBaseUrl {String}**: Overrides application settings base URL. By default it uses Auth0's CDN URL when the `domain` has the format `*.auth0.com`. Otherwise, it uses the provided `domain`.
399
- - **languageBaseUrl {String}**: Overrides the language source URL for Auth0's provided translations. By default it uses to Auth0's CDN URL `https://cdn.auth0.com`.
399
+ - **languageBaseUrl {String}**: Overrides the language source URL for Auth0's provided translations. By default it uses to Auth0's CDN URL `https://cdn.auth0.com` ([see below for details](#using-languagebaseurl-and-custom-language-files))
400
400
  - **hashCleanup {Boolean}**: When enabled, it will remove the hash part of the callback URL after the user authentication. Defaults to `true`.
401
401
  - **connectionResolver {Function}**: When in use, provides an extensibility point to make it possible to choose which connection to use based on the username information. Has `username`, `context`, and `callback` as parameters. The callback expects an object like: `{type: 'database', name: 'connection name'}`. **This only works for database connections.** Keep in mind that this resolver will run in the form's `onSubmit` event, so keep it simple and fast. **This is a beta feature. If you find a bug, please open a GitHub [issue](https://github.com/auth0/lock/issues/new).**
402
402
  - **legacySameSiteCookie**: If `false`, no compatibility cookies will be created for those browsers that do not understand the `SameSite` attribute. Defaults to `true`. **Note**: this setting only has an effect when running on an HTTPS domain; if HTTP is used, no legacy cookies are created regardless of this setting.
@@ -430,13 +430,38 @@ var options = {
430
430
  };
431
431
  ```
432
432
 
433
+ #### Using `languageBaseUrl` and custom language files
434
+
435
+ By default, language files are loaded from Auth0's CDN. `languageBaseUrl` can be used to specify a different location where language files are hosted, including any new language files you author for your application. Here's an example of a custom language file. Note the call to `Auth0.registerLanguageDictionary` that wraps the language content:
436
+
437
+ ```js
438
+ Auth0.registerLanguageDictionary('en', {
439
+ error: {
440
+ forgotPassword: {
441
+ too_many_requests:
442
+ 'You have reached the limit on password change attempts. Please wait before trying again.',
443
+ 'lock.fallback': "We're sorry, something went wrong when requesting the password change.",
444
+ enterprise_email:
445
+ "Your email's domain is part of an Enterprise identity provider. To reset your password, please see your security administrator."
446
+ }
447
+ },
448
+ {
449
+ // ..
450
+ }
451
+ });
452
+ ```
453
+
454
+ > **Note**
455
+ > Not all the language keys are provided here for this example. Typically all the keys must be specified ([see an example language file](https://github.com/auth0/lock/blob/master/src/i18n/en.js)). For keys that are not specified, Lock will fall back to the default English language file.
456
+
433
457
  ### Additional sign up fields
434
458
 
435
459
  Extra input fields can be added to the sign up screen with the `additionalSignUpFields` option. Every input must have a `name` and a `placeholder`, and an `icon` URL can also be provided. Also, the initial value can be provided with the `prefill` option, which can be a **string** with the value or a **function** that obtains it. Other options depend on the type of the field, which is defined via the `type` option and defaults to `"text"`.
436
460
 
437
461
  Additional sign up fields are rendered below the default fields in the order they are provided.
438
462
 
439
- :warning: **Note**: From `11.34.2` onwards, all HTML tags are stripped from user input into custom signup fields.
463
+ > **Note**
464
+ > From `11.33.0` onwards, all HTML tags are stripped from user input into custom signup fields.
440
465
 
441
466
  #### Text field
442
467
 
package/Makefile CHANGED
@@ -15,8 +15,8 @@ test:
15
15
 
16
16
  build:
17
17
  @echo "Running build..."
18
- rm -f build/*.js && yarn dist build
18
+ rm -rf dist && rm -rf build && yarn dist build
19
19
 
20
20
  publish:
21
21
  @echo "Running cdn-publish..."
22
- npm run publish:cdn
22
+ yarn publish:cdn
package/README.md CHANGED
@@ -30,7 +30,7 @@ From CDN
30
30
 
31
31
  ```html
32
32
  <!-- Latest patch release (recommended for production) -->
33
- <script src="https://cdn.auth0.com/js/lock/12.0.0/lock.min.js"></script>
33
+ <script src="https://cdn.auth0.com/js/lock/12.0.2/lock.min.js"></script>
34
34
  ```
35
35
  ### Configure Auth0
36
36
 
package/karma.conf.js CHANGED
@@ -118,6 +118,6 @@ module.exports = function (config) {
118
118
  }
119
119
  },
120
120
 
121
- browsers: ['bs_chrome_windows', 'bs_ie11_windows']
121
+ browsers: ['bs_chrome_windows']
122
122
  });
123
123
  };
@@ -50,7 +50,7 @@ var STRATEGIES = {
50
50
  thirtysevensignals: 'Basecamp',
51
51
  twitter: 'Twitter',
52
52
  vkontakte: 'vKontakte',
53
- windowslive: 'Microsoft Account',
53
+ windowslive: 'Microsoft',
54
54
  wordpress: 'Wordpress',
55
55
  yahoo: 'Yahoo!',
56
56
  yammer: 'Yammer',
@@ -170,5 +170,5 @@ function trimAuthParams() {
170
170
  return p;
171
171
  }
172
172
  function getVersion() {
173
- return "12.0.0";
173
+ return "12.0.2";
174
174
  }