@contentful/field-editor-reference 8.5.6-canary.0 → 8.5.6-canary.4
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/cjs/resources/MultipleResourceReferenceEditor.spec.js +2 -2
- package/dist/cjs/resources/SingleResourceReferenceEditor.spec.js +1 -1
- package/dist/esm/resources/MultipleResourceReferenceEditor.spec.js +2 -2
- package/dist/esm/resources/SingleResourceReferenceEditor.spec.js +1 -1
- package/package.json +7 -7
|
@@ -118,8 +118,8 @@ const mockedUseEditorPermissions = _useEditorPermissions.useEditorPermissions;
|
|
|
118
118
|
}));
|
|
119
119
|
const button = await _react1.screen.findByText('Add existing content');
|
|
120
120
|
(0, _vitest.expect)(button).toBeDefined();
|
|
121
|
-
_userevent.default.click(button);
|
|
122
|
-
const dialogFn = sdk.dialogs.selectMultipleResourceEntities;
|
|
121
|
+
await _userevent.default.click(button);
|
|
122
|
+
const dialogFn = _vitest.vi.mocked(sdk.dialogs.selectMultipleResourceEntities);
|
|
123
123
|
(0, _vitest.expect)(dialogFn).toHaveBeenCalledTimes(1);
|
|
124
124
|
const options = dialogFn.mock.calls[0][0];
|
|
125
125
|
(0, _vitest.expect)(options).toEqual({
|
|
@@ -109,7 +109,7 @@ const mockedUseEditorPermissions = _useEditorPermissions.useEditorPermissions;
|
|
|
109
109
|
const button = await _react1.screen.findByText('Add existing content');
|
|
110
110
|
(0, _vitest.expect)(button).toBeDefined();
|
|
111
111
|
_react1.fireEvent.click(button);
|
|
112
|
-
const dialogFn = sdk.dialogs.selectSingleResourceEntity;
|
|
112
|
+
const dialogFn = _vitest.vi.mocked(sdk.dialogs.selectSingleResourceEntity);
|
|
113
113
|
(0, _vitest.expect)(dialogFn).toHaveBeenCalledTimes(1);
|
|
114
114
|
const options = dialogFn.mock.calls[0][0];
|
|
115
115
|
(0, _vitest.expect)(options).toEqual({
|
|
@@ -68,8 +68,8 @@ describe('Multiple resource editor', ()=>{
|
|
|
68
68
|
}));
|
|
69
69
|
const button = await screen.findByText('Add existing content');
|
|
70
70
|
expect(button).toBeDefined();
|
|
71
|
-
userEvent.click(button);
|
|
72
|
-
const dialogFn = sdk.dialogs.selectMultipleResourceEntities;
|
|
71
|
+
await userEvent.click(button);
|
|
72
|
+
const dialogFn = vi.mocked(sdk.dialogs.selectMultipleResourceEntities);
|
|
73
73
|
expect(dialogFn).toHaveBeenCalledTimes(1);
|
|
74
74
|
const options = dialogFn.mock.calls[0][0];
|
|
75
75
|
expect(options).toEqual({
|
|
@@ -64,7 +64,7 @@ describe('Single resource editor', ()=>{
|
|
|
64
64
|
const button = await screen.findByText('Add existing content');
|
|
65
65
|
expect(button).toBeDefined();
|
|
66
66
|
fireEvent.click(button);
|
|
67
|
-
const dialogFn = sdk.dialogs.selectSingleResourceEntity;
|
|
67
|
+
const dialogFn = vi.mocked(sdk.dialogs.selectSingleResourceEntity);
|
|
68
68
|
expect(dialogFn).toHaveBeenCalledTimes(1);
|
|
69
69
|
const options = dialogFn.mock.calls[0][0];
|
|
70
70
|
expect(options).toEqual({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-reference",
|
|
3
|
-
"version": "8.5.6-canary.
|
|
3
|
+
"version": "8.5.6-canary.4+a6e514a4",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@contentful/f36-components": "^6.7.1",
|
|
42
42
|
"@contentful/f36-icons": "^6.7.1",
|
|
43
43
|
"@contentful/f36-tokens": "^6.1.2",
|
|
44
|
-
"@contentful/field-editor-shared": "^4.6.4-canary.
|
|
44
|
+
"@contentful/field-editor-shared": "^4.6.4-canary.4+a6e514a4",
|
|
45
45
|
"@contentful/mimetype": "^2.6.5",
|
|
46
46
|
"@dnd-kit/core": "^6.0.8",
|
|
47
47
|
"@dnd-kit/sortable": "^8.0.0",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
"truncate": "^3.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@contentful/app-sdk": "^
|
|
61
|
-
"@contentful/field-editor-test-utils": "^3.2.
|
|
60
|
+
"@contentful/app-sdk": "^5.2.0",
|
|
61
|
+
"@contentful/field-editor-test-utils": "^3.2.2-canary.65+a6e514a4",
|
|
62
62
|
"@lingui/core": "5.9.5",
|
|
63
63
|
"@testing-library/react-hooks": "^8.0.1",
|
|
64
|
-
"@testing-library/user-event": "^13.
|
|
64
|
+
"@testing-library/user-event": "^13.1.9"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@contentful/app-sdk": "^4.41.2",
|
|
67
|
+
"@contentful/app-sdk": "^4.41.2 || ^5.0.0",
|
|
68
68
|
"@lingui/core": "^5.3.0",
|
|
69
69
|
"react": ">=18.3.1",
|
|
70
70
|
"react-dom": ">=18.3.1"
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"prettier --write"
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "a6e514a4e3f0eebfba881798783a450df0dd347b"
|
|
82
82
|
}
|