react-datocms
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -66,3 +66,3 @@ "use strict"; | ||
const sizer = layout !== 'fill' ? (react_1.default.createElement("img", { className: imgClassName, style: Object.assign({ display: 'block', width: '100%' }, imgStyle), src: `data:image/svg+xml;base64,${(0, utils_js_2.universalBtoa)(svg)}`, "aria-hidden": "true", alt: "" })) : null; | ||
return (react_1.default.createElement("div", { ref: rootRef, className: className, style: Object.assign(Object.assign({ overflow: 'hidden' }, (layout === 'fill' | ||
return (react_1.default.createElement("div", { key: data.src, ref: rootRef, className: className, style: Object.assign(Object.assign({ overflow: 'hidden' }, (layout === 'fill' | ||
? utils_js_2.absolutePositioning | ||
@@ -69,0 +69,0 @@ : layout === 'intrinsic' |
@@ -60,3 +60,3 @@ 'use client'; | ||
const sizer = layout !== 'fill' ? (React.createElement("img", { className: imgClassName, style: Object.assign({ display: 'block', width: '100%' }, imgStyle), src: `data:image/svg+xml;base64,${universalBtoa(svg)}`, "aria-hidden": "true", alt: "" })) : null; | ||
return (React.createElement("div", { ref: rootRef, className: className, style: Object.assign(Object.assign({ overflow: 'hidden' }, (layout === 'fill' | ||
return (React.createElement("div", { key: data.src, ref: rootRef, className: className, style: Object.assign(Object.assign({ overflow: 'hidden' }, (layout === 'fill' | ||
? absolutePositioning | ||
@@ -63,0 +63,0 @@ : layout === 'intrinsic' |
import { type RenderMarkRule, type TransformMetaFn, type TransformedMeta, renderMarkRule, renderNodeRule } from 'datocms-structured-text-generic-html-renderer'; | ||
import { type Node, RenderError, type RenderResult, type RenderRule, type Document as StructuredTextDocument, type StructuredText as StructuredTextGraphQlResponse, type TypesafeStructuredText as TypesafeStructuredTextGraphQlResponse, type Record as StructuredTextGraphQlResponseRecord } from 'datocms-structured-text-utils'; | ||
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'; | ||
import { type ReactElement } from 'react'; | ||
@@ -4,0 +4,0 @@ export { renderNodeRule, renderMarkRule, RenderError }; |
{ | ||
"name": "react-datocms", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"engines": { | ||
@@ -112,3 +112,3 @@ "node": ">=8.0.0" | ||
"jest-environment-jsdom": "^29.7.0", | ||
"np": "^8.0.2", | ||
"np": "^10.0.7", | ||
"raf": "^3.4.1", | ||
@@ -115,0 +115,0 @@ "react": "^17.0.2", |
<!--datocms-autoinclude-header start--> | ||
<a href="https://www.datocms.com/"><img src="https://www.datocms.com/images/full_logo.svg" height="60"></a> | ||
👉 [Visit the DatoCMS homepage](https://www.datocms.com) or see [What is DatoCMS?](#what-is-datocms) | ||
--- | ||
<!--datocms-autoinclude-header end--> | ||
@@ -47,3 +51,5 @@ | ||
<!--datocms-autoinclude-footer start--> | ||
----------------- | ||
--- | ||
# What is DatoCMS? | ||
@@ -68,6 +74,6 @@ <a href="https://www.datocms.com/"><img src="https://www.datocms.com/images/full_logo.svg" height="60"></a> | ||
- [datocms/plugins](https://github.com/datocms/plugins): Example plugins we've made that extend the editor/admin dashboard | ||
- [datocms/gatsby-source-datocms](https://github.com/datocms/gatsby-source-datocms): Our Gatsby source plugin to pull data from DatoCMS | ||
- 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). | ||
- [DatoCMS Starters](https://www.datocms.com/marketplace/starters) has examples for various Javascript frontend frameworks | ||
Or see [all our public repos](https://github.com/orgs/datocms/repositories?q=&type=public&language=&sort=stargazers) | ||
<!--datocms-autoinclude-footer end--> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
356403
4563
78