tinacms 0.61.1 → 0.64.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/CHANGELOG.md +73 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/index.es.js +104 -97
- package/dist/index.js +105 -98
- package/dist/style.css +1344 -0
- package/dist/tina-cms.d.ts +27 -4
- package/package.json +11 -3
package/dist/tina-cms.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ import { TinaCloudMediaStoreClass } from './auth';
|
|
|
16
16
|
import type { TinaIOConfig } from './client/index';
|
|
17
17
|
import type { TinaCMS } from '@tinacms/toolkit';
|
|
18
18
|
import type { formifyCallback } from './hooks/use-graphql-forms';
|
|
19
|
-
export declare const TinaCMSProvider2: ({ children,
|
|
19
|
+
export declare const TinaCMSProvider2: ({ children, cmsCallback, mediaStore, tinaioConfig, ...props }: {
|
|
20
20
|
/** The query from getStaticProps */
|
|
21
21
|
query?: string;
|
|
22
22
|
/** Any variables from getStaticProps */
|
|
@@ -25,11 +25,32 @@ export declare const TinaCMSProvider2: ({ children, branch, clientId, isLocalCli
|
|
|
25
25
|
data: object;
|
|
26
26
|
/** Your React page component */
|
|
27
27
|
children: () => React.ReactNode;
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* The URL for the GraphQL API.
|
|
30
|
+
*
|
|
31
|
+
* When working locally, this should be http://localhost:4001/graphql.
|
|
32
|
+
*
|
|
33
|
+
* For Tina Cloud, use https://content.tinajs.io/content/my-client-id/github/my-branch
|
|
34
|
+
*/
|
|
35
|
+
apiURL: string;
|
|
36
|
+
/**
|
|
37
|
+
* Point to the local version of GraphQL instead of tina.io
|
|
38
|
+
* https://tina.io/docs/tinacms-context/#adding-tina-to-the-sites-frontend
|
|
39
|
+
*
|
|
40
|
+
* @deprecated use apiURL instead
|
|
41
|
+
*/
|
|
29
42
|
isLocalClient?: boolean;
|
|
30
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* The base branch to pull content from. Note that this is ignored for local development
|
|
45
|
+
*
|
|
46
|
+
* @deprecated use apiURL instead
|
|
47
|
+
*/
|
|
31
48
|
branch?: string;
|
|
32
|
-
/**
|
|
49
|
+
/**
|
|
50
|
+
* Your clientID from tina.aio
|
|
51
|
+
*
|
|
52
|
+
* @deprecated use apiURL instead
|
|
53
|
+
*/
|
|
33
54
|
clientId?: string;
|
|
34
55
|
/** Callback if you need access to the TinaCMS instance */
|
|
35
56
|
cmsCallback?: (cms: TinaCMS) => TinaCMS;
|
|
@@ -42,6 +63,8 @@ export declare const TinaCMSProvider2: ({ children, branch, clientId, isLocalCli
|
|
|
42
63
|
tinaioConfig?: TinaIOConfig;
|
|
43
64
|
}) => JSX.Element;
|
|
44
65
|
/**
|
|
66
|
+
* @deprecated v0.62.0: Use `staticRequest` and a "try catch" block instead. see https://tina.io/docs/features/data-fetching/#querying-tina-content-in-nextjs for more details
|
|
67
|
+
*
|
|
45
68
|
* A convenience function which makes a GraphQL request
|
|
46
69
|
* to a local GraphQL server and ensures the response fits
|
|
47
70
|
* the shape expected by Tina context in your application
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -16,13 +16,14 @@
|
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"types": "yarn tsc",
|
|
19
|
-
"build": "echo \"Run `yarn build` from the root of the repository instead\""
|
|
19
|
+
"build": "echo \"Run `yarn build` from the root of the repository instead\"",
|
|
20
|
+
"test": "jest --env=jsdom --passWithNoTests"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
23
|
"@headlessui/react": "^1.4.1",
|
|
23
24
|
"@heroicons/react": "^1.0.4",
|
|
24
25
|
"@tinacms/sharedctx": "0.0.1",
|
|
25
|
-
"@tinacms/toolkit": "0.56.
|
|
26
|
+
"@tinacms/toolkit": "0.56.7",
|
|
26
27
|
"crypto-js": "^4.0.0",
|
|
27
28
|
"final-form": "4.20.1",
|
|
28
29
|
"graphql": "^15.1.0",
|
|
@@ -30,17 +31,24 @@
|
|
|
30
31
|
"lodash.set": "^4.3.2",
|
|
31
32
|
"react-icons": "^4.3.1",
|
|
32
33
|
"react-router-dom": "6",
|
|
34
|
+
"url-pattern": "^1.0.3",
|
|
33
35
|
"yup": "^0.32.0"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
38
|
+
"@testing-library/jest-dom": "^5.11.9",
|
|
39
|
+
"@testing-library/react": "^12.0.0",
|
|
40
|
+
"@testing-library/user-event": "^12.7.0",
|
|
36
41
|
"@tinacms/scripts": "0.50.4",
|
|
42
|
+
"@types/jest": "^27.0.1",
|
|
37
43
|
"@types/lodash": "^4.14.169",
|
|
38
44
|
"@types/node": "^14.0.13",
|
|
39
45
|
"@types/react": "^16.9.38",
|
|
40
46
|
"@types/yup": "^0.29.10",
|
|
47
|
+
"jest": "^27.0.6",
|
|
41
48
|
"next": "9.4.2",
|
|
42
49
|
"react": "16.14.0",
|
|
43
50
|
"react-dom": "16.14.0",
|
|
51
|
+
"react-is": "^17.0.2",
|
|
44
52
|
"styled-components": "^5.2.0",
|
|
45
53
|
"typescript": "^4.3.5"
|
|
46
54
|
},
|