@commercetools-frontend/application-config 27.11.0 → 27.11.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/custom-application.schema.json +13 -0
- package/dist/commercetools-frontend-application-config.cjs.dev.js +14 -0
- package/dist/commercetools-frontend-application-config.cjs.prod.js +14 -0
- package/dist/commercetools-frontend-application-config.esm.js +14 -0
- package/dist/declarations/src/schemas/generated/custom-application.schema.d.ts +7 -0
- package/package.json +3 -3
|
@@ -116,6 +116,19 @@
|
|
|
116
116
|
"description": "Set to 'legacy' to use legacy login mode for development, sending x-mc-identity-login-mode-override header instead of cookies",
|
|
117
117
|
"type": "string",
|
|
118
118
|
"enum": ["legacy"]
|
|
119
|
+
},
|
|
120
|
+
"menuGroup": {
|
|
121
|
+
"description": "Optional navbar group header used when rendering menuLinks in local development",
|
|
122
|
+
"type": "object",
|
|
123
|
+
"properties": {
|
|
124
|
+
"label": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"isNew": {
|
|
128
|
+
"type": "boolean"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"additionalProperties": false
|
|
119
132
|
}
|
|
120
133
|
},
|
|
121
134
|
"additionalProperties": false,
|
|
@@ -483,6 +483,19 @@ var customApplicationSchemaJson = {
|
|
|
483
483
|
"enum": [
|
|
484
484
|
"legacy"
|
|
485
485
|
]
|
|
486
|
+
},
|
|
487
|
+
menuGroup: {
|
|
488
|
+
description: "Optional navbar group header used when rendering menuLinks in local development",
|
|
489
|
+
type: "object",
|
|
490
|
+
properties: {
|
|
491
|
+
label: {
|
|
492
|
+
type: "string"
|
|
493
|
+
},
|
|
494
|
+
isNew: {
|
|
495
|
+
type: "boolean"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
additionalProperties: false
|
|
486
499
|
}
|
|
487
500
|
},
|
|
488
501
|
additionalProperties: false,
|
|
@@ -1301,6 +1314,7 @@ const getRuntimeEnvironmentConfigForDevelopment = _ref => {
|
|
|
1301
1314
|
}, configurationData.mainMenuLink), {}, {
|
|
1302
1315
|
submenuLinks: configurationData.submenuLinks
|
|
1303
1316
|
}),
|
|
1317
|
+
menuGroup: appConfig.env.development.menuGroup,
|
|
1304
1318
|
// @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
1305
1319
|
accountLinks: appConfig.accountLinks,
|
|
1306
1320
|
mcIdentityLoginModeOverride: appConfig.env.development.mcIdentityLoginModeOverride
|
|
@@ -483,6 +483,19 @@ var customApplicationSchemaJson = {
|
|
|
483
483
|
"enum": [
|
|
484
484
|
"legacy"
|
|
485
485
|
]
|
|
486
|
+
},
|
|
487
|
+
menuGroup: {
|
|
488
|
+
description: "Optional navbar group header used when rendering menuLinks in local development",
|
|
489
|
+
type: "object",
|
|
490
|
+
properties: {
|
|
491
|
+
label: {
|
|
492
|
+
type: "string"
|
|
493
|
+
},
|
|
494
|
+
isNew: {
|
|
495
|
+
type: "boolean"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
additionalProperties: false
|
|
486
499
|
}
|
|
487
500
|
},
|
|
488
501
|
additionalProperties: false,
|
|
@@ -1301,6 +1314,7 @@ const getRuntimeEnvironmentConfigForDevelopment = _ref => {
|
|
|
1301
1314
|
}, configurationData.mainMenuLink), {}, {
|
|
1302
1315
|
submenuLinks: configurationData.submenuLinks
|
|
1303
1316
|
}),
|
|
1317
|
+
menuGroup: appConfig.env.development.menuGroup,
|
|
1304
1318
|
// @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
1305
1319
|
accountLinks: appConfig.accountLinks,
|
|
1306
1320
|
mcIdentityLoginModeOverride: appConfig.env.development.mcIdentityLoginModeOverride
|
|
@@ -447,6 +447,19 @@ var customApplicationSchemaJson = {
|
|
|
447
447
|
"enum": [
|
|
448
448
|
"legacy"
|
|
449
449
|
]
|
|
450
|
+
},
|
|
451
|
+
menuGroup: {
|
|
452
|
+
description: "Optional navbar group header used when rendering menuLinks in local development",
|
|
453
|
+
type: "object",
|
|
454
|
+
properties: {
|
|
455
|
+
label: {
|
|
456
|
+
type: "string"
|
|
457
|
+
},
|
|
458
|
+
isNew: {
|
|
459
|
+
type: "boolean"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
additionalProperties: false
|
|
450
463
|
}
|
|
451
464
|
},
|
|
452
465
|
additionalProperties: false,
|
|
@@ -1265,6 +1278,7 @@ const getRuntimeEnvironmentConfigForDevelopment = _ref => {
|
|
|
1265
1278
|
}, configurationData.mainMenuLink), {}, {
|
|
1266
1279
|
submenuLinks: configurationData.submenuLinks
|
|
1267
1280
|
}),
|
|
1281
|
+
menuGroup: appConfig.env.development.menuGroup,
|
|
1268
1282
|
// @ts-expect-error: the `accountLinks` is not explicitly typed as it's only used by the account app.
|
|
1269
1283
|
accountLinks: appConfig.accountLinks,
|
|
1270
1284
|
mcIdentityLoginModeOverride: appConfig.env.development.mcIdentityLoginModeOverride
|
|
@@ -65,6 +65,13 @@ export interface JSONSchemaForCustomApplicationConfigurationFiles {
|
|
|
65
65
|
* Set to 'legacy' to use legacy login mode for development, sending x-mc-identity-login-mode-override header instead of cookies
|
|
66
66
|
*/
|
|
67
67
|
mcIdentityLoginModeOverride?: 'legacy';
|
|
68
|
+
/**
|
|
69
|
+
* Optional navbar group header used when rendering menuLinks in local development
|
|
70
|
+
*/
|
|
71
|
+
menuGroup?: {
|
|
72
|
+
label?: string;
|
|
73
|
+
isNew?: boolean;
|
|
74
|
+
};
|
|
68
75
|
};
|
|
69
76
|
production: {
|
|
70
77
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-config",
|
|
3
|
-
"version": "27.11.
|
|
3
|
+
"version": "27.11.2",
|
|
4
4
|
"description": "Configuration utilities for building Custom Applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"jsdom": "^21.1.2",
|
|
56
56
|
"lodash": "4.18.1",
|
|
57
57
|
"omit-empty-es": "1.2.0",
|
|
58
|
-
"@commercetools-frontend/constants": "^27.11.
|
|
58
|
+
"@commercetools-frontend/constants": "^27.11.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/jsdom": "^21.1.2",
|
|
62
62
|
"json-schema-to-typescript": "15.0.4",
|
|
63
|
-
"@commercetools-frontend/assets": "^27.11.
|
|
63
|
+
"@commercetools-frontend/assets": "^27.11.2"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": "18.x || 20.x || >=22.0.0"
|