@tinacms/schema-tools 0.2.2 → 1.0.1
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/types.d.ts +8 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -63,6 +63,14 @@ export interface UICollection {
|
|
|
63
63
|
document: Doc;
|
|
64
64
|
collection: Collection;
|
|
65
65
|
}) => string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Determines whether or not this collection can accept new docments
|
|
68
|
+
* or allow documents to be deleted from the CMS.
|
|
69
|
+
*/
|
|
70
|
+
allowedActions?: {
|
|
71
|
+
create?: boolean;
|
|
72
|
+
delete?: boolean;
|
|
73
|
+
};
|
|
66
74
|
}
|
|
67
75
|
export declare type Option = string | {
|
|
68
76
|
label: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/schema-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"exports": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tinacms/scripts": "0.
|
|
34
|
+
"@tinacms/scripts": "1.0.0",
|
|
35
35
|
"@types/yup": "^0.29.10",
|
|
36
36
|
"jest": "^27.0.6",
|
|
37
37
|
"react": "17.0.2",
|