@contentful/field-editor-reference 8.5.6-canary.4 → 8.5.6-canary.5
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.
|
@@ -118,7 +118,7 @@ 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
|
-
|
|
121
|
+
_userevent.default.click(button);
|
|
122
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];
|
|
@@ -68,7 +68,7 @@ describe('Multiple resource editor', ()=>{
|
|
|
68
68
|
}));
|
|
69
69
|
const button = await screen.findByText('Add existing content');
|
|
70
70
|
expect(button).toBeDefined();
|
|
71
|
-
|
|
71
|
+
userEvent.click(button);
|
|
72
72
|
const dialogFn = vi.mocked(sdk.dialogs.selectMultipleResourceEntities);
|
|
73
73
|
expect(dialogFn).toHaveBeenCalledTimes(1);
|
|
74
74
|
const options = dialogFn.mock.calls[0][0];
|
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.5+824676a1",
|
|
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.5+824676a1",
|
|
45
45
|
"@contentful/mimetype": "^2.6.5",
|
|
46
46
|
"@dnd-kit/core": "^6.0.8",
|
|
47
47
|
"@dnd-kit/sortable": "^8.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@contentful/app-sdk": "^5.2.0",
|
|
61
|
-
"@contentful/field-editor-test-utils": "^3.2.
|
|
61
|
+
"@contentful/field-editor-test-utils": "^3.2.1",
|
|
62
62
|
"@lingui/core": "5.9.5",
|
|
63
63
|
"@testing-library/react-hooks": "^8.0.1",
|
|
64
64
|
"@testing-library/user-event": "^13.1.9"
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"prettier --write"
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "824676a15a41db28c0e0adf1a4581cb5374e6c00"
|
|
82
82
|
}
|