react-datocms 7.0.1 → 7.0.3
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/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<!--datocms-autoinclude-header start-->
|
|
2
|
+
|
|
2
3
|
<a href="https://www.datocms.com/"><img src="https://www.datocms.com/images/full_logo.svg" height="60"></a>
|
|
3
4
|
|
|
4
5
|
👉 [Visit the DatoCMS homepage](https://www.datocms.com) or see [What is DatoCMS?](#what-is-datocms)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
5
9
|
<!--datocms-autoinclude-header end-->
|
|
6
10
|
|
|
7
11
|
# react-datocms
|
|
@@ -44,7 +48,9 @@ npm run start
|
|
|
44
48
|
```
|
|
45
49
|
|
|
46
50
|
<!--datocms-autoinclude-footer start-->
|
|
47
|
-
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
48
54
|
# What is DatoCMS?
|
|
49
55
|
<a href="https://www.datocms.com/"><img src="https://www.datocms.com/images/full_logo.svg" height="60"></a>
|
|
50
56
|
|
|
@@ -64,8 +70,8 @@ Trusted by over 25,000 enterprise businesses, agency partners, and individuals a
|
|
|
64
70
|
- [datocms/js-rest-api-clients](https://github.com/datocms/js-rest-api-clients): Node and browser JavaScript clients for updating and administering your content. For frontend fetches, we recommend using our [GraphQL Content Delivery API](https://www.datocms.com/docs/content-delivery-api) instead.
|
|
65
71
|
- [datocms/cli](https://github.com/datocms/cli): Command-line interface that includes our [Contentful importer](https://github.com/datocms/cli/tree/main/packages/cli-plugin-contentful) and [Wordpress importer](https://github.com/datocms/cli/tree/main/packages/cli-plugin-wordpress)
|
|
66
72
|
- [datocms/plugins](https://github.com/datocms/plugins): Example plugins we've made that extend the editor/admin dashboard
|
|
67
|
-
- [
|
|
68
|
-
- Frontend examples in different frameworks: [Next.js](https://github.com/datocms/nextjs-demo), [Vue](https://github.com/datocms/vue-datocms) and [Nuxt](https://github.com/datocms/nuxtjs-demo), [Svelte](https://github.com/datocms/datocms-svelte) and [SvelteKit](https://github.com/datocms/sveltekit-demo), [Astro](https://github.com/datocms/datocms-astro-blog-demo), [Remix](https://github.com/datocms/remix-example). See [all our starter templates](https://www.datocms.com/marketplace/starters).
|
|
73
|
+
- [DatoCMS Starters](https://www.datocms.com/marketplace/starters) has examples for various Javascript frontend frameworks
|
|
69
74
|
|
|
70
75
|
Or see [all our public repos](https://github.com/orgs/datocms/repositories?q=&type=public&language=&sort=stargazers)
|
|
76
|
+
|
|
71
77
|
<!--datocms-autoinclude-footer end-->
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RenderMarkRule, type TransformMetaFn, type TransformedMeta, renderMarkRule, renderNodeRule } from 'datocms-structured-text-generic-html-renderer';
|
|
2
|
-
import { type Node, RenderError, type RenderResult, type RenderRule, type Document as StructuredTextDocument, type StructuredText as StructuredTextGraphQlResponse, type
|
|
2
|
+
import { type Node, RenderError, type RenderResult, type RenderRule, type Document as StructuredTextDocument, type StructuredText as StructuredTextGraphQlResponse, type Record as StructuredTextGraphQlResponseRecord, type TypesafeStructuredText as TypesafeStructuredTextGraphQlResponse } from 'datocms-structured-text-utils';
|
|
3
3
|
import { type ReactElement } from 'react';
|
|
4
4
|
export { renderNodeRule, renderMarkRule, RenderError };
|
|
5
5
|
export { renderNodeRule as renderRule };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-datocms",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=8.0.0"
|
|
6
6
|
},
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"enzyme-to-json": "^3.6.2",
|
|
110
110
|
"intersection-observer": "^0.12.0",
|
|
111
111
|
"jest-environment-jsdom": "^29.7.0",
|
|
112
|
-
"np": "^
|
|
112
|
+
"np": "^10.0.7",
|
|
113
113
|
"raf": "^3.4.1",
|
|
114
114
|
"react": "^17.0.2",
|
|
115
115
|
"react-dom": "^17.0.2",
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
type RenderRule,
|
|
15
15
|
type Document as StructuredTextDocument,
|
|
16
16
|
type StructuredText as StructuredTextGraphQlResponse,
|
|
17
|
-
type TypesafeStructuredText as TypesafeStructuredTextGraphQlResponse,
|
|
18
17
|
type Record as StructuredTextGraphQlResponseRecord,
|
|
18
|
+
type TypesafeStructuredText as TypesafeStructuredTextGraphQlResponse,
|
|
19
19
|
isBlock,
|
|
20
20
|
isInlineItem,
|
|
21
21
|
isItemLink,
|