@tinacms/app 2.5.12 → 2.5.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/app",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.13",
|
|
4
4
|
"main": "src/main.tsx",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"react-dom": "^18.3.1",
|
|
37
37
|
"react-router-dom": "^6.30.3",
|
|
38
38
|
"zod": "^3.24.2",
|
|
39
|
-
"@tinacms/mdx": "^2.2.
|
|
40
|
-
"tinacms": "^3.
|
|
39
|
+
"@tinacms/mdx": "^2.2.2",
|
|
40
|
+
"tinacms": "^3.13.0"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"url": "https://github.com/tinacms/tinacms.git",
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
TinaField,
|
|
17
17
|
TinaSchema,
|
|
18
18
|
TinaState,
|
|
19
|
+
isSessionExpiredError,
|
|
19
20
|
resolveField,
|
|
20
21
|
useCMS,
|
|
21
22
|
} from 'tinacms';
|
|
@@ -722,6 +723,8 @@ const onSubmit = async (
|
|
|
722
723
|
});
|
|
723
724
|
cms.alerts.success('Document saved!');
|
|
724
725
|
} catch (e) {
|
|
726
|
+
// request() already sent the user back to the login modal; no alert over it
|
|
727
|
+
if (isSessionExpiredError(e)) throw e;
|
|
725
728
|
cms.alerts.error(() =>
|
|
726
729
|
ErrorDialog({
|
|
727
730
|
title: 'There was a problem saving your document',
|