contentful-management 7.45.2 → 7.45.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/contentful-management.browser.js +19 -39
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +19 -39
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +19 -39
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js +1 -8
- package/dist/es-modules/contentful-management.js +1 -1
- package/package.json +7 -6
|
@@ -9,7 +9,6 @@ var SidebarWidgetTypes = {
|
|
|
9
9
|
VERSIONS: 'versions-widget',
|
|
10
10
|
INFO_PANEL: 'info-panel',
|
|
11
11
|
JOBS: 'jobs-widget',
|
|
12
|
-
TASKS: 'content-workflows-tasks-widget',
|
|
13
12
|
COMMENTS_PANEL: 'comments-panel'
|
|
14
13
|
};
|
|
15
14
|
var Publication = {
|
|
@@ -24,12 +23,6 @@ var Releases = {
|
|
|
24
23
|
name: 'Release',
|
|
25
24
|
description: 'Built-in - View release, add to it, etc.'
|
|
26
25
|
};
|
|
27
|
-
var Tasks = {
|
|
28
|
-
widgetId: SidebarWidgetTypes.TASKS,
|
|
29
|
-
widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,
|
|
30
|
-
name: 'Tasks',
|
|
31
|
-
description: 'Built-in - Assign tasks to be completed before publishing. Currently only supported for master environment.'
|
|
32
|
-
};
|
|
33
26
|
var ContentPreview = {
|
|
34
27
|
widgetId: SidebarWidgetTypes.CONTENT_PREVIEW,
|
|
35
28
|
widgetNamespace: WidgetNamespace.SIDEBAR_BUILTIN,
|
|
@@ -60,5 +53,5 @@ var Users = {
|
|
|
60
53
|
name: 'Users',
|
|
61
54
|
description: 'Built-in - Displays users on the same entry.'
|
|
62
55
|
};
|
|
63
|
-
export var SidebarEntryConfiguration = [Publication, Releases,
|
|
56
|
+
export var SidebarEntryConfiguration = [Publication, Releases, ContentPreview, Links, Translation, Versions, Users];
|
|
64
57
|
export var SidebarAssetConfiguration = [Publication, Releases, Links, Translation, Users];
|
|
@@ -24,7 +24,7 @@ function createClient(params) {
|
|
|
24
24
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
25
25
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
26
26
|
var userAgent = getUserAgentHeader( // @ts-expect-error
|
|
27
|
-
"".concat(sdkMain, "/").concat("7.45.
|
|
27
|
+
"".concat(sdkMain, "/").concat("7.45.3"), params.application, params.integration, params.feature);
|
|
28
28
|
var adapter = createAdapter(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
29
29
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
30
30
|
// @ts-expect-error
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "7.45.
|
|
3
|
+
"version": "7.45.3",
|
|
4
4
|
"description": "Client for Contentful's Content Management API",
|
|
5
5
|
"homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
|
|
6
6
|
"main": "./dist/contentful-management.node.js",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"lint": "eslint lib test --ext '.ts,.tsx,.js,.jsx'",
|
|
32
32
|
"pretest": "rimraf coverage && npm run lint",
|
|
33
33
|
"test": "npm run test:cover-unit && npm run test:cover-integration && npm run test:size",
|
|
34
|
-
"test:cover-unit": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --report-dir=coverage/unit npm run test:unit",
|
|
35
|
-
"test:cover-integration": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --report-dir=coverage/integration npm run test:integration",
|
|
36
|
-
"test:unit": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/unit/**/*-test.[tj]s' --config mocharc.js --require @babel/register",
|
|
34
|
+
"test:cover-unit": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/unit npm run test:unit",
|
|
35
|
+
"test:cover-integration": "./node_modules/.bin/nyc --reporter=lcov --reporter=text --reporter=clover --report-dir=coverage/integration npm run test:integration",
|
|
36
|
+
"test:unit": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/unit/**/*-test.[tj]s' --config mocharc.js --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=reports/unit-results.xml",
|
|
37
37
|
"test:unit-watch": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/unit/**/*-test.[tj]s' --config mocharc.js --watch --require @babel/register",
|
|
38
|
-
"test:integration": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/integration/*.[tj]s' --config mocharc.js --require @babel/register",
|
|
38
|
+
"test:integration": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/integration/*.[tj]s' --config mocharc.js --require @babel/register --reporter mocha-junit-reporter --reporter-options mochaFile=reports/integration-results.xml",
|
|
39
39
|
"test:integration-watch": "BABEL_ENV=test babel-node --extensions .ts --extensions .js ./node_modules/.bin/mocha './test/integration/*.[tj]s' --config mocharc.js --watch --require @babel/register",
|
|
40
40
|
"test:browser": "BABEL_ENV=test karma start karma.conf.local.js --log-level info",
|
|
41
41
|
"test:size": "bundlesize",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@types/json-patch": "0.0.30",
|
|
59
59
|
"axios": "^0.21.4",
|
|
60
|
-
"contentful-sdk-core": "^6.10.
|
|
60
|
+
"contentful-sdk-core": "^6.10.4",
|
|
61
61
|
"fast-copy": "^2.1.0",
|
|
62
62
|
"lodash.isplainobject": "^4.0.6",
|
|
63
63
|
"type-fest": "^2.5.3"
|
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
"lodash": "^4.17.20",
|
|
118
118
|
"lodash-webpack-plugin": "^0.11.5",
|
|
119
119
|
"mocha": "^9.1.1",
|
|
120
|
+
"mocha-junit-reporter": "^2.0.2",
|
|
120
121
|
"nodemon": "^2.0.7",
|
|
121
122
|
"nyc": "^15.1.0",
|
|
122
123
|
"prettier": "^2.0.5",
|