@yoopta/paragraph 4.5.1 → 4.5.2-rc.1

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/README.md CHANGED
@@ -38,7 +38,7 @@ const Paragraph = new YooptaPlugin({
38
38
  });
39
39
  ```
40
40
 
41
- ### Options to extend
41
+ ### How to extend
42
42
 
43
43
  ```tsx
44
44
  const plugins = [
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{YooptaPlugin as e}from"@yoopta/editor";import{jsx as t}from"react/jsx-runtime";"function"==typeof SuppressedError&&SuppressedError;const r=new e({type:"Paragraph",elements:{paragraph:{render:e=>{const r=e.HTMLAttributes||{},{className:a=""}=r,o=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]])}return r}(r,["className"]);return t("p",Object.assign({className:`yoopta-paragraph ${a}`},o,e.attributes,{children:e.children}))}}},options:{display:{title:"Text",description:"Start writing plain text."},shortcuts:["p","text"]},parsers:{html:{deserialize:{nodeNames:["P"]}}}});!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&a.firstChild?a.insertBefore(o,a.firstChild):a.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".yoopta-paragraph{font-size:16px;line-height:1.75rem;margin:.5rem 0 0}");export{r as default};
1
+ import{YooptaPlugin as e}from"@yoopta/editor";import{jsx as t}from"react/jsx-runtime";"function"==typeof SuppressedError&&SuppressedError;const r=new e({type:"Paragraph",elements:{paragraph:{render:e=>{const r=e.HTMLAttributes||{},{className:a=""}=r,n=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r}(r,["className"]);return t("p",Object.assign({className:`yoopta-paragraph ${a}`},n,e.attributes,{children:e.children}))}}},options:{display:{title:"Text",description:"Start writing plain text."},shortcuts:["p","text"]},parsers:{html:{deserialize:{nodeNames:["P"]},serialize:(e,t)=>`<p>${t}</p>`},markdown:{serialize:(e,t)=>`${t}\n`}}});!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}(".yoopta-paragraph{font-size:16px;line-height:1.75rem;margin:.5rem 0 0}");export{r as default};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,QAAA,MAAM,SAAS;;;;;;EAqBb,CAAC;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,QAAA,MAAM,SAAS;;;;;;EA6Bb,CAAC;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/paragraph",
3
- "version": "4.5.1",
3
+ "version": "4.5.2-rc.1",
4
4
  "description": "Paragraph plugin for Yoopta Editor",
5
5
  "author": "Darginec05 <devopsbanda@gmail.com>",
6
6
  "homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
@@ -34,5 +34,5 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/Darginec05/Editor-Yoopta/issues"
36
36
  },
37
- "gitHead": "cd8c25f695296c87ae27138330038d931301f663"
37
+ "gitHead": "59437277a9ea6b47bb64b9bbbad8c4a96730ef1d"
38
38
  }