@contentful/field-editor-reference 5.29.2 → 5.30.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.
|
@@ -194,7 +194,9 @@ async function fetchExternalResource({ urn, fetch, options, spaceId, environment
|
|
|
194
194
|
'resource-types',
|
|
195
195
|
spaceId,
|
|
196
196
|
environmentId
|
|
197
|
-
], ({ cmaClient })=>cmaClient.raw.get(`/spaces/${spaceId}/environments/${environmentId}/resource_types
|
|
197
|
+
], ({ cmaClient })=>(0, _contentfulmanagement.fetchAll)(({ query })=>cmaClient.raw.get(`/spaces/${spaceId}/environments/${environmentId}/resource_types`, {
|
|
198
|
+
params: query
|
|
199
|
+
}), {}))
|
|
198
200
|
]);
|
|
199
201
|
const resourceTypeEntity = resourceTypes.find((rt)=>rt.sys.id === resourceType);
|
|
200
202
|
if (!resourceTypeEntity) {
|
|
@@ -97,7 +97,8 @@ const sdk = {
|
|
|
97
97
|
return Promise.resolve({
|
|
98
98
|
items: [
|
|
99
99
|
_resourcetypejson.default
|
|
100
|
-
]
|
|
100
|
+
],
|
|
101
|
+
pages: {}
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
if (url === `/spaces/space-id/environments/environment-id/resource_types/${resolvableExternalResourceType}/resources` && config.params['sys.urn[in]'] === resolvableExternalEntityUrn) {
|
|
@@ -13,7 +13,7 @@ function _define_property(obj, key, value) {
|
|
|
13
13
|
}
|
|
14
14
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
15
15
|
import constate from 'constate';
|
|
16
|
-
import { createClient } from 'contentful-management';
|
|
16
|
+
import { createClient, fetchAll } from 'contentful-management';
|
|
17
17
|
import PQueue from 'p-queue';
|
|
18
18
|
import { SharedQueryClientProvider, useQuery, useQueryClient } from './queryClient';
|
|
19
19
|
export function isContentfulResourceInfo(info) {
|
|
@@ -115,7 +115,9 @@ async function fetchExternalResource({ urn, fetch, options, spaceId, environment
|
|
|
115
115
|
'resource-types',
|
|
116
116
|
spaceId,
|
|
117
117
|
environmentId
|
|
118
|
-
], ({ cmaClient })=>cmaClient.raw.get(`/spaces/${spaceId}/environments/${environmentId}/resource_types
|
|
118
|
+
], ({ cmaClient })=>fetchAll(({ query })=>cmaClient.raw.get(`/spaces/${spaceId}/environments/${environmentId}/resource_types`, {
|
|
119
|
+
params: query
|
|
120
|
+
}), {}))
|
|
119
121
|
]);
|
|
120
122
|
const resourceTypeEntity = resourceTypes.find((rt)=>rt.sys.id === resourceType);
|
|
121
123
|
if (!resourceTypeEntity) {
|
|
@@ -47,7 +47,8 @@ const sdk = {
|
|
|
47
47
|
return Promise.resolve({
|
|
48
48
|
items: [
|
|
49
49
|
resourceType
|
|
50
|
-
]
|
|
50
|
+
],
|
|
51
|
+
pages: {}
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
if (url === `/spaces/space-id/environments/environment-id/resource_types/${resolvableExternalResourceType}/resources` && config.params['sys.urn[in]'] === resolvableExternalEntityUrn) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-reference",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@contentful/f36-components": "^4.67.0",
|
|
39
39
|
"@contentful/f36-icons": "^4.28.2",
|
|
40
40
|
"@contentful/f36-tokens": "^4.0.5",
|
|
41
|
-
"@contentful/field-editor-shared": "^1.
|
|
41
|
+
"@contentful/field-editor-shared": "^1.6.0",
|
|
42
42
|
"@contentful/mimetype": "^2.2.29",
|
|
43
43
|
"@dnd-kit/core": "^6.0.8",
|
|
44
44
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
45
45
|
"@dnd-kit/sortable": "^7.0.2",
|
|
46
46
|
"@tanstack/react-query": "^4.3.9",
|
|
47
47
|
"constate": "^3.3.2",
|
|
48
|
-
"contentful-management": "^
|
|
48
|
+
"contentful-management": "^11.30.0",
|
|
49
49
|
"emotion": "^10.0.17",
|
|
50
50
|
"lodash": "^4.17.15",
|
|
51
51
|
"moment": "^2.20.0",
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
"type-fest": "2.17.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@contentful/app-sdk": "^4.
|
|
58
|
-
"@contentful/field-editor-test-utils": "^1.
|
|
57
|
+
"@contentful/app-sdk": "^4.29.0",
|
|
58
|
+
"@contentful/field-editor-test-utils": "^1.5.0",
|
|
59
59
|
"@testing-library/react-hooks": "^5.0.3"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@contentful/app-sdk": "^4.
|
|
62
|
+
"@contentful/app-sdk": "^4.29.0",
|
|
63
63
|
"react": ">=16.8.0"
|
|
64
64
|
},
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"registry": "https://npm.pkg.github.com/"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "6598ec65e210c4e84bed073f8b50c8bdb883a9a4"
|
|
69
69
|
}
|