Skip to content

v0.1.3

Choose a tag to compare

@github-actions github-actions released this 29 Nov 14:42
· 126 commits to develop since this release
6e0d20c

Patch Changes

  • #21 85c78da Thanks @kriss145! - In the document form, a field's description sits under its input, so the fields of a row line up whether or not each one has a description.

  • #19 0dcbdf2 Thanks @kriss145! - A storefront installs the plugin without Medusa's backend and renders a rich text field with the plugin's own code: RichText from @mostrajs/cms/shared/rich-text/renderers/react, or HTML from formatHtml in @mostrajs/cms/shared.

    Features

    • RichText, a React component that renders in a server or a client component, on React 18 or 19, and takes your own component for any element, such as a router's link.
    • formatHtml, for a storefront in any framework, and buildRichTextRenderTree for a renderer of your own.
    • Every text and attribute is escaped, and a link is written only when its URL is safe. A node the renderer does not know renders as its children, with a warning.
    • escapeHtml and isSafeLinkUrl in @mostrajs/cms/shared, for any value you write into HTML.
    • Every peer dependency is optional and react takes 18 or 19, so a storefront that installs the plugin gets no Medusa package and no Admin library.