tinacms 0.57.1 → 0.58.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.
- package/CHANGELOG.md +36 -0
- package/dist/admin/components/GetCollection.d.ts +7 -0
- package/dist/admin/components/GetDocumentFields.d.ts +6 -3
- package/dist/admin/plugins/route-mapping.d.ts +32 -0
- package/dist/auth/TinaCloudProvider.d.ts +1 -1
- package/dist/edit-state.es.js +3 -0
- package/dist/edit-state.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +289 -163
- package/dist/index.js +287 -160
- package/dist/tina-cms.d.ts +2 -2
- package/dist/utils/client.d.ts +29 -0
- package/package.json +6 -9
package/dist/tina-cms.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export declare const TinaCMSProvider2: ({ children, branch, clientId, isLocalCli
|
|
|
38
38
|
/** Callback if you need access to the "document creator" API */
|
|
39
39
|
documentCreatorCallback?: Parameters<typeof useDocumentCreatorPlugin>[0];
|
|
40
40
|
/** TinaCMS media store instance */
|
|
41
|
-
mediaStore?: TinaCloudMediaStoreClass | Promise<TinaCloudMediaStoreClass
|
|
41
|
+
mediaStore?: TinaCloudMediaStoreClass | (() => Promise<TinaCloudMediaStoreClass>);
|
|
42
42
|
tinaioConfig?: TinaIOConfig;
|
|
43
43
|
}) => JSX.Element;
|
|
44
44
|
/**
|
|
@@ -66,4 +66,4 @@ export declare const staticRequest: ({ query, variables, }: {
|
|
|
66
66
|
* to know the temlpate string is a GraphQL
|
|
67
67
|
* query or muation
|
|
68
68
|
*/
|
|
69
|
-
export declare function gql(strings: TemplateStringsArray): string;
|
|
69
|
+
export declare function gql(strings: TemplateStringsArray, ...args: string[]): string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Copyright 2021 Forestry.io Holdings, Inc.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
Unless required by applicable law or agreed to in writing, software
|
|
8
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10
|
+
See the License for the specific language governing permissions and
|
|
11
|
+
limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
export declare class TinaGQLClient {
|
|
14
|
+
private _usedFrags;
|
|
15
|
+
private _frags;
|
|
16
|
+
private _selections;
|
|
17
|
+
private get _queryAST();
|
|
18
|
+
private get _DocumentAST();
|
|
19
|
+
get query(): string;
|
|
20
|
+
/**
|
|
21
|
+
* getAuthorDocument
|
|
22
|
+
*/
|
|
23
|
+
getAuthorDocument(args: {
|
|
24
|
+
relativePath: string;
|
|
25
|
+
}): this;
|
|
26
|
+
gePostsDocument(args: {
|
|
27
|
+
relativePath: string;
|
|
28
|
+
}): this;
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"types": "yarn tsc",
|
|
19
|
-
"build": "yarn
|
|
20
|
-
"watch": "yarn tsup src/index.ts src/edit-state.tsx --watch --format cjs --dts"
|
|
19
|
+
"build": "echo \"Run `yarn build` from the root of the repository instead\""
|
|
21
20
|
},
|
|
22
21
|
"dependencies": {
|
|
23
22
|
"@graphql-codegen/core": "^1.15.4",
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
"@graphql-codegen/typescript-operations": "^1.15.4",
|
|
26
25
|
"@headlessui/react": "^1.4.1",
|
|
27
26
|
"@heroicons/react": "^1.0.4",
|
|
28
|
-
"@tinacms/toolkit": "0.55.
|
|
27
|
+
"@tinacms/toolkit": "0.55.3",
|
|
29
28
|
"@xstate/react": "^1.1.0",
|
|
30
29
|
"codemirror": "^5.55.0",
|
|
31
30
|
"cors": "^2.8.5",
|
|
@@ -44,26 +43,24 @@
|
|
|
44
43
|
"prop-types": "15.7.2",
|
|
45
44
|
"react-icons": "^4.3.1",
|
|
46
45
|
"react-router-dom": "^5.3.0",
|
|
47
|
-
"ts-jest": "^26.5.3",
|
|
48
46
|
"xstate": "^4.15.1",
|
|
49
47
|
"yup": "^0.32.0"
|
|
50
48
|
},
|
|
51
49
|
"devDependencies": {
|
|
52
|
-
"@tinacms/scripts": "0.50.
|
|
50
|
+
"@tinacms/scripts": "0.50.4",
|
|
53
51
|
"@types/lodash": "^4.14.169",
|
|
54
52
|
"@types/node": "^14.0.13",
|
|
55
53
|
"@types/react": "^16.9.38",
|
|
56
54
|
"@types/yup": "^0.29.10",
|
|
57
55
|
"next": "9.4.2",
|
|
58
56
|
"react": "16.14.0",
|
|
59
|
-
"react-dom": "16.
|
|
57
|
+
"react-dom": "16.14.0",
|
|
60
58
|
"styled-components": "^5.2.0",
|
|
61
|
-
"tsup": "4.12.5",
|
|
62
59
|
"typescript": "^4.3.5"
|
|
63
60
|
},
|
|
64
61
|
"peerDependencies": {
|
|
65
62
|
"react": ">=16.14.0",
|
|
66
|
-
"react-dom": ">=16.
|
|
63
|
+
"react-dom": ">=16.14.0",
|
|
67
64
|
"react-is": "^16.13.1 || <18.0.0",
|
|
68
65
|
"styled-components": "*"
|
|
69
66
|
},
|