Repository navigation
v0.1.3
·
126 commits
to develop
since this release
Patch Changes
-
#21
85c78daThanks @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
0dcbdf2Thanks @kriss145! - A storefront installs the plugin without Medusa's backend and renders a rich text field with the plugin's own code:RichTextfrom@mostrajs/cms/shared/rich-text/renderers/react, or HTML fromformatHtmlin@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, andbuildRichTextRenderTreefor 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.
escapeHtmlandisSafeLinkUrlin@mostrajs/cms/shared, for any value you write into HTML.- Every peer dependency is optional and
reacttakes 18 or 19, so a storefront that installs the plugin gets no Medusa package and no Admin library.