@yoopta/paragraph 1.9.3-rc → 1.9.5-rc
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/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{createYooptaPlugin as t,generateId as
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{createYooptaPlugin as t,generateId as i}from"@yoopta/editor";import{Transforms as n}from"slate";var r="hwZ8eR7o";!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".hwZ8eR7o{color:inherit;font-size:16px;letter-spacing:-.003em;line-height:28px;margin-bottom:1px;margin-top:2px;padding-bottom:2px;padding-top:2px;position:relative}");const a=({attributes:t,children:i,element:n,HTMLAttributes:a})=>e("p",Object.assign({draggable:!1,className:r},a,t,{children:i}));a.displayName="Paragraph";const o=t({type:"paragraph",renderer:e=>a,defineElement:()=>({id:i(),type:"paragraph",children:[{text:""}],nodeType:"block"}),createElement:function(e){var t;const i=o.getPlugin.defineElement();n.setNodes(e,i,{at:null===(t=e.selection)||void 0===t?void 0:t.anchor})},exports:{markdown:{serialize:(e,t)=>`${t}\n`},html:{serialize:(e,t)=>`<p>${t}</p>`,deserialize:{nodeName:"P"}}}});export{o as default};
|
package/package.json
CHANGED