prismic-dom
prismic-dom copied to clipboard
Set of helpers to manage Prismic data
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3. Changelog Sourced from y18n's changelog. 4.0.3 (2021-04-07) Bug Fixes release: 4.x.x should not enforce Node 10 (#126) (1e21a53) 4.0.1 (2020-11-30) Bug Fixes address prototype...
Using VueJS ``` Uncaught (in promise) TypeError: t.reduce is not a function at Function.t.fromRichText (prismic-dom.min.js?1613:8) at Object.e [as serialize] (prismic-dom.min.js?1613:8) at Object.asHtml (prismic-dom.min.js?1613:1) ``` Aside from the fact its uncaught,...
When trying to destructure PrismicDOM like that: ```js import { RichText } from 'prismic-dom' ``` I get this error: ``` The requested module '../../_snowpack/pkg/prismic-dom.js' does not provide an export named...
Images from rich text areas display at low resolution on high DPI devices. Including the `&dpr=${window.devicePixelRatio}` query param requests the image at the appropriate resolution. `width` and `height` attributes would...
https://github.com/prismicio/prismic-dom/blob/c0e9b221749351c32d0e0c9a2366815572bb6ee6/src/richtext.js#L52 One solution is to use ` alt` attribute in ` title` attribute
An extra space here prevents the wrapperClassList from being `block-img`. It gets inserted into the DOM as below
Updates webpack config to use "`this`" over "`window`" in generated files. This allows the generated files in `dist` to be usable in both browsers and Node.js. Previously, some server-side environments...
We always get this error, when we run below, ``` PrismicDOM.RichText.asHtml([{ type: 'paragraph', content: { text: "Sample para text", spans: [], }, }]), ``` For, `"prismic-dom": "^2.2.7"`
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2. Release notes Sourced from json5's releases. v1.0.2 Fix: Properties with the name __proto__ are added to objects and arrays. (#199) This also fixes a...
Bumps [flat](https://github.com/hughsk/flat) to 5.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `flat` from 4.1.0 to 5.0.2 Commits e5ffd66 Release 5.0.2 fdb79d5 Update dependencies, refresh...