@commercetools-frontend/application-config 20.10.6 → 20.12.3
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/commercetools-frontend-application-config.cjs.dev.js +5 -2
- package/dist/commercetools-frontend-application-config.cjs.prod.js +5 -2
- package/dist/commercetools-frontend-application-config.esm.js +5 -2
- package/dist/declarations/src/schema.d.ts +1 -0
- package/dist/declarations/src/utils.d.ts +0 -2
- package/package.json +7 -7
- package/schema.json +4 -1
|
@@ -287,6 +287,9 @@ var schemaJson = {
|
|
|
287
287
|
},
|
|
288
288
|
"style-src": {
|
|
289
289
|
$ref: "#/definitions/cspDirective"
|
|
290
|
+
},
|
|
291
|
+
"frame-src": {
|
|
292
|
+
$ref: "#/definitions/cspDirective"
|
|
290
293
|
}
|
|
291
294
|
},
|
|
292
295
|
additionalProperties: false,
|
|
@@ -324,7 +327,7 @@ var schemaJson = {
|
|
|
324
327
|
type: "object",
|
|
325
328
|
properties: {
|
|
326
329
|
icon: {
|
|
327
|
-
description: "The SVG icon that represents this application. Pass the raw SVG string or a path to an SVG file, for example a relative path `${path:./app.svg}`, or a path from a module `${path:@commercetools-frontend/assets/application-icons/
|
|
330
|
+
description: "The SVG icon that represents this application. Pass the raw SVG string or a path to an SVG file, for example a relative path `${path:./app.svg}`, or a path from a module `${path:@commercetools-frontend/assets/application-icons/rocket.svg}`.",
|
|
328
331
|
type: "string"
|
|
329
332
|
},
|
|
330
333
|
defaultLabel: {
|
|
@@ -567,7 +570,7 @@ var getOrThrow = function getOrThrow(fn, errorMessage) {
|
|
|
567
570
|
* Allows variable placeholders. Supported types are:
|
|
568
571
|
* - `env`: For example `${env:MC_API_URL}`.
|
|
569
572
|
* - `intl`: For example `${intl:en:Menu.title}`.
|
|
570
|
-
* - `path`: For example `${path:./app.svg}`, or `${path:@commercetools-frontend/assets/application-icons/
|
|
573
|
+
* - `path`: For example `${path:./app.svg}`, or `${path:@commercetools-frontend/assets/application-icons/rocket.svg}`.
|
|
571
574
|
*/
|
|
572
575
|
var variableSyntax = /\${([ ~:\w.'",\-/()@]+?)}/g;
|
|
573
576
|
var envRefSyntax = /^env:/g;
|
|
@@ -287,6 +287,9 @@ var schemaJson = {
|
|
|
287
287
|
},
|
|
288
288
|
"style-src": {
|
|
289
289
|
$ref: "#/definitions/cspDirective"
|
|
290
|
+
},
|
|
291
|
+
"frame-src": {
|
|
292
|
+
$ref: "#/definitions/cspDirective"
|
|
290
293
|
}
|
|
291
294
|
},
|
|
292
295
|
additionalProperties: false,
|
|
@@ -324,7 +327,7 @@ var schemaJson = {
|
|
|
324
327
|
type: "object",
|
|
325
328
|
properties: {
|
|
326
329
|
icon: {
|
|
327
|
-
description: "The SVG icon that represents this application. Pass the raw SVG string or a path to an SVG file, for example a relative path `${path:./app.svg}`, or a path from a module `${path:@commercetools-frontend/assets/application-icons/
|
|
330
|
+
description: "The SVG icon that represents this application. Pass the raw SVG string or a path to an SVG file, for example a relative path `${path:./app.svg}`, or a path from a module `${path:@commercetools-frontend/assets/application-icons/rocket.svg}`.",
|
|
328
331
|
type: "string"
|
|
329
332
|
},
|
|
330
333
|
defaultLabel: {
|
|
@@ -567,7 +570,7 @@ var getOrThrow = function getOrThrow(fn, errorMessage) {
|
|
|
567
570
|
* Allows variable placeholders. Supported types are:
|
|
568
571
|
* - `env`: For example `${env:MC_API_URL}`.
|
|
569
572
|
* - `intl`: For example `${intl:en:Menu.title}`.
|
|
570
|
-
* - `path`: For example `${path:./app.svg}`, or `${path:@commercetools-frontend/assets/application-icons/
|
|
573
|
+
* - `path`: For example `${path:./app.svg}`, or `${path:@commercetools-frontend/assets/application-icons/rocket.svg}`.
|
|
571
574
|
*/
|
|
572
575
|
var variableSyntax = /\${([ ~:\w.'",\-/()@]+?)}/g;
|
|
573
576
|
var envRefSyntax = /^env:/g;
|
|
@@ -259,6 +259,9 @@ var schemaJson = {
|
|
|
259
259
|
},
|
|
260
260
|
"style-src": {
|
|
261
261
|
$ref: "#/definitions/cspDirective"
|
|
262
|
+
},
|
|
263
|
+
"frame-src": {
|
|
264
|
+
$ref: "#/definitions/cspDirective"
|
|
262
265
|
}
|
|
263
266
|
},
|
|
264
267
|
additionalProperties: false,
|
|
@@ -296,7 +299,7 @@ var schemaJson = {
|
|
|
296
299
|
type: "object",
|
|
297
300
|
properties: {
|
|
298
301
|
icon: {
|
|
299
|
-
description: "The SVG icon that represents this application. Pass the raw SVG string or a path to an SVG file, for example a relative path `${path:./app.svg}`, or a path from a module `${path:@commercetools-frontend/assets/application-icons/
|
|
302
|
+
description: "The SVG icon that represents this application. Pass the raw SVG string or a path to an SVG file, for example a relative path `${path:./app.svg}`, or a path from a module `${path:@commercetools-frontend/assets/application-icons/rocket.svg}`.",
|
|
300
303
|
type: "string"
|
|
301
304
|
},
|
|
302
305
|
defaultLabel: {
|
|
@@ -539,7 +542,7 @@ var getOrThrow = function getOrThrow(fn, errorMessage) {
|
|
|
539
542
|
* Allows variable placeholders. Supported types are:
|
|
540
543
|
* - `env`: For example `${env:MC_API_URL}`.
|
|
541
544
|
* - `intl`: For example `${intl:en:Menu.title}`.
|
|
542
|
-
* - `path`: For example `${path:./app.svg}`, or `${path:@commercetools-frontend/assets/application-icons/
|
|
545
|
+
* - `path`: For example `${path:./app.svg}`, or `${path:@commercetools-frontend/assets/application-icons/rocket.svg}`.
|
|
543
546
|
*/
|
|
544
547
|
var variableSyntax = /\${([ ~:\w.'",\-/()@]+?)}/g;
|
|
545
548
|
var envRefSyntax = /^env:/g;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="webpack-env" />
|
|
3
1
|
import { CLOUD_IDENTIFIERS } from './constants';
|
|
4
2
|
declare const mapCloudIdentifierToApiUrl: (key: typeof CLOUD_IDENTIFIERS[keyof typeof CLOUD_IDENTIFIERS]) => string;
|
|
5
3
|
declare const getUniqueValues: (initialValues?: string[], additionalValues?: string[]) => string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-config",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.12.3",
|
|
4
4
|
"description": "Configuration utilities for building Custom Applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"build:schema": "json2ts schema.json src/schema.ts --style.singleQuote --bannerComment '/* eslint-disable prettier/prettier */\n// This file was automatically generated by json-schema-to-typescript.\n// DO NOT MODIFY IT BY HAND. Instead, modify the source schema.json file.'"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/register": "7.
|
|
32
|
-
"@babel/runtime": "7.
|
|
33
|
-
"@babel/runtime-corejs3": "7.
|
|
34
|
-
"@commercetools-frontend/babel-preset-mc-app": "20.
|
|
35
|
-
"ajv": "8.
|
|
36
|
-
"core-js": "3.
|
|
31
|
+
"@babel/register": "7.16.5",
|
|
32
|
+
"@babel/runtime": "7.16.5",
|
|
33
|
+
"@babel/runtime-corejs3": "7.16.5",
|
|
34
|
+
"@commercetools-frontend/babel-preset-mc-app": "20.12.3",
|
|
35
|
+
"ajv": "8.8.2",
|
|
36
|
+
"core-js": "3.20.0",
|
|
37
37
|
"cosmiconfig": "7.0.1",
|
|
38
38
|
"lodash": "4.17.21",
|
|
39
39
|
"omit-empty-es": "1.1.3"
|
package/schema.json
CHANGED
|
@@ -136,6 +136,9 @@
|
|
|
136
136
|
},
|
|
137
137
|
"style-src": {
|
|
138
138
|
"$ref": "#/definitions/cspDirective"
|
|
139
|
+
},
|
|
140
|
+
"frame-src": {
|
|
141
|
+
"$ref": "#/definitions/cspDirective"
|
|
139
142
|
}
|
|
140
143
|
},
|
|
141
144
|
"additionalProperties": false,
|
|
@@ -166,7 +169,7 @@
|
|
|
166
169
|
"type": "object",
|
|
167
170
|
"properties": {
|
|
168
171
|
"icon": {
|
|
169
|
-
"description": "The SVG icon that represents this application. Pass the raw SVG string or a path to an SVG file, for example a relative path `${path:./app.svg}`, or a path from a module `${path:@commercetools-frontend/assets/application-icons/
|
|
172
|
+
"description": "The SVG icon that represents this application. Pass the raw SVG string or a path to an SVG file, for example a relative path `${path:./app.svg}`, or a path from a module `${path:@commercetools-frontend/assets/application-icons/rocket.svg}`.",
|
|
170
173
|
"type": "string"
|
|
171
174
|
},
|
|
172
175
|
"defaultLabel": {
|