@commercetools-frontend/constants 22.23.3 → 22.24.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/README.md
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
<a href="https://www.npmjs.com/package/@commercetools-frontend/constants"><img src="https://badgen.net/npm/v/@commercetools-frontend/constants" alt="Latest release (latest dist-tag)" /></a> <a href="https://www.npmjs.com/package/@commercetools-frontend/constants"><img src="https://badgen.net/npm/v/@commercetools-frontend/constants/next" alt="Latest release (next dist-tag)" /></a> <a href="https://bundlephobia.com/result?p=@commercetools-frontend/constants"><img src="https://badgen.net/bundlephobia/minzip/@commercetools-frontend/constants" alt="Minified + GZipped size" /></a> <a href="https://github.com/commercetools/merchant-center-application-kit/blob/main/LICENSE"><img src="https://badgen.net/github/license/commercetools/merchant-center-application-kit" alt="GitHub license" /></a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
-
Check out the [documentation](https://docs.commercetools.com/
|
|
7
|
+
Check out the [documentation](https://docs.commercetools.com/merchant-center-customizations/api-reference/commercetools-frontend-constants) for more information.
|
|
@@ -3,24 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
// NOTE: This string will be replaced on build time with the package version.
|
|
6
|
-
var version = "22.
|
|
6
|
+
var version = "22.24.0";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
10
|
-
*
|
|
9
|
+
* The project key must be between 2 and 36 characters long. It can only contain alphanumeric lowercase characters (a-z, 0-9),
|
|
10
|
+
* up to two consecutive underscores (_) and hyphens (-). Leading and trailing underscore and hyphens are also not allowed.
|
|
11
11
|
*/
|
|
12
|
-
const PROJECT_KEY_REGEX = /^[^-_
|
|
12
|
+
const PROJECT_KEY_REGEX = /^[^-_#\W]([0-9a-z]|([-_]{0,2})(?!([-_]))){0,34}[^-_#\W]$/g;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* The entryPointUriPath may be between 2 and 64 characters and only contain alphabetic lowercase characters,
|
|
16
16
|
* non-consecutive underscores and hyphens. Leading and trailing underscore and hyphens are also not allowed.
|
|
17
17
|
*/
|
|
18
|
-
const ENTRY_POINT_URI_PATH_REGEX = /^[^-_
|
|
18
|
+
const ENTRY_POINT_URI_PATH_REGEX = /^[^-_#\W]([0-9a-z]|[-_](?![-_])){0,62}[^-_#\W]$/g;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* The permission group name may be between 2 and 64 characters and only contain alphanumeric lowercase characters and non-consecutive hyphens.
|
|
21
|
+
* The permission group name may be between 2 and 64 characters and only contain alphanumeric lowercase characters and non-consecutive hyphens.
|
|
22
|
+
* Leading and trailing hyphens are also not allowed.
|
|
22
23
|
*/
|
|
23
|
-
const PERMISSION_GROUP_NAME_REGEX = /^[
|
|
24
|
+
const PERMISSION_GROUP_NAME_REGEX = /^[^-#\W]([a-z]|[-](?![-])){0,62}[^-#\W]$/g;
|
|
24
25
|
|
|
25
26
|
// DOM elements
|
|
26
27
|
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
@@ -3,24 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
// NOTE: This string will be replaced on build time with the package version.
|
|
6
|
-
var version = "22.
|
|
6
|
+
var version = "22.24.0";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
10
|
-
*
|
|
9
|
+
* The project key must be between 2 and 36 characters long. It can only contain alphanumeric lowercase characters (a-z, 0-9),
|
|
10
|
+
* up to two consecutive underscores (_) and hyphens (-). Leading and trailing underscore and hyphens are also not allowed.
|
|
11
11
|
*/
|
|
12
|
-
const PROJECT_KEY_REGEX = /^[^-_
|
|
12
|
+
const PROJECT_KEY_REGEX = /^[^-_#\W]([0-9a-z]|([-_]{0,2})(?!([-_]))){0,34}[^-_#\W]$/g;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* The entryPointUriPath may be between 2 and 64 characters and only contain alphabetic lowercase characters,
|
|
16
16
|
* non-consecutive underscores and hyphens. Leading and trailing underscore and hyphens are also not allowed.
|
|
17
17
|
*/
|
|
18
|
-
const ENTRY_POINT_URI_PATH_REGEX = /^[^-_
|
|
18
|
+
const ENTRY_POINT_URI_PATH_REGEX = /^[^-_#\W]([0-9a-z]|[-_](?![-_])){0,62}[^-_#\W]$/g;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* The permission group name may be between 2 and 64 characters and only contain alphanumeric lowercase characters and non-consecutive hyphens.
|
|
21
|
+
* The permission group name may be between 2 and 64 characters and only contain alphanumeric lowercase characters and non-consecutive hyphens.
|
|
22
|
+
* Leading and trailing hyphens are also not allowed.
|
|
22
23
|
*/
|
|
23
|
-
const PERMISSION_GROUP_NAME_REGEX = /^[
|
|
24
|
+
const PERMISSION_GROUP_NAME_REGEX = /^[^-#\W]([a-z]|[-](?![-])){0,62}[^-#\W]$/g;
|
|
24
25
|
|
|
25
26
|
// DOM elements
|
|
26
27
|
const PORTALS_CONTAINER_ID = 'portals-container';
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
// NOTE: This string will be replaced on build time with the package version.
|
|
2
|
-
var version = "22.
|
|
2
|
+
var version = "22.24.0";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* The
|
|
6
|
-
*
|
|
5
|
+
* The project key must be between 2 and 36 characters long. It can only contain alphanumeric lowercase characters (a-z, 0-9),
|
|
6
|
+
* up to two consecutive underscores (_) and hyphens (-). Leading and trailing underscore and hyphens are also not allowed.
|
|
7
7
|
*/
|
|
8
|
-
const PROJECT_KEY_REGEX = /^[^-_
|
|
8
|
+
const PROJECT_KEY_REGEX = /^[^-_#\W]([0-9a-z]|([-_]{0,2})(?!([-_]))){0,34}[^-_#\W]$/g;
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* The entryPointUriPath may be between 2 and 64 characters and only contain alphabetic lowercase characters,
|
|
12
12
|
* non-consecutive underscores and hyphens. Leading and trailing underscore and hyphens are also not allowed.
|
|
13
13
|
*/
|
|
14
|
-
const ENTRY_POINT_URI_PATH_REGEX = /^[^-_
|
|
14
|
+
const ENTRY_POINT_URI_PATH_REGEX = /^[^-_#\W]([0-9a-z]|[-_](?![-_])){0,62}[^-_#\W]$/g;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* The permission group name may be between 2 and 64 characters and only contain alphanumeric lowercase characters and non-consecutive hyphens.
|
|
17
|
+
* The permission group name may be between 2 and 64 characters and only contain alphanumeric lowercase characters and non-consecutive hyphens.
|
|
18
|
+
* Leading and trailing hyphens are also not allowed.
|
|
18
19
|
*/
|
|
19
|
-
const PERMISSION_GROUP_NAME_REGEX = /^[
|
|
20
|
+
const PERMISSION_GROUP_NAME_REGEX = /^[^-#\W]([a-z]|[-](?![-])){0,62}[^-#\W]$/g;
|
|
20
21
|
|
|
21
22
|
// DOM elements
|
|
22
23
|
const PORTALS_CONTAINER_ID = 'portals-container';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/constants",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.24.0",
|
|
4
4
|
"description": "Shared constants for MC applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://github.com/commercetools/merchant-center-application-kit.git",
|
|
9
9
|
"directory": "packages/constants"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://docs.commercetools.com/
|
|
11
|
+
"homepage": "https://docs.commercetools.com/merchant-center-customizations/api-reference/commercetools-frontend-constants",
|
|
12
12
|
"keywords": [
|
|
13
13
|
"javascript",
|
|
14
14
|
"frontend",
|
|
@@ -30,5 +30,9 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.22.15",
|
|
32
32
|
"@babel/runtime-corejs3": "^7.22.15"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/jest": "^29.5.4",
|
|
36
|
+
"jest": "29.7.0"
|
|
33
37
|
}
|
|
34
38
|
}
|