@tinacms/graphql 0.0.0-202222115457 → 0.0.0-202222117018
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 +1 -27
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,37 +1,11 @@
|
|
|
1
1
|
# tina-graphql
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-202222117018
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- e7b27ba3b: Fix issue where un-normalized rich-text fields which send `null` values to the server on save would cause a parsing error
|
|
8
8
|
- 11d55f441: Add experimental useGraphQLForms hook
|
|
9
|
-
- abf25c673: The schema can now to used on the frontend (optional for now but will be the main path moving forward).
|
|
10
|
-
|
|
11
|
-
### How to migrate.
|
|
12
|
-
|
|
13
|
-
If you gone though the `tinacms init` process there should be a file called `.tina/components/TinaProvider`. In that file you can import the schema from `schema.ts` and add it to the TinaCMS wrapper component.
|
|
14
|
-
|
|
15
|
-
```tsx
|
|
16
|
-
import TinaCMS from 'tinacms'
|
|
17
|
-
import schema, { tinaConfig } from '../schema.ts'
|
|
18
|
-
|
|
19
|
-
// Importing the TinaProvider directly into your page will cause Tina to be added to the production bundle.
|
|
20
|
-
// Instead, import the tina/provider/index default export to have it dynamially imported in edit-moode
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @private Do not import this directly, please import the dynamic provider instead
|
|
24
|
-
*/
|
|
25
|
-
const TinaProvider = ({ children }) => {
|
|
26
|
-
return (
|
|
27
|
-
<TinaCMS {...tinaConfig} schema={schema}>
|
|
28
|
-
{children}
|
|
29
|
-
</TinaCMS>
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export default TinaProvider
|
|
34
|
-
```
|
|
35
9
|
|
|
36
10
|
## 0.59.7
|
|
37
11
|
|