@yoopta/paragraph 4.6.1 → 4.6.3-rc.0

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
@@ -48,7 +48,6 @@ const plugins = [
48
48
  },
49
49
  options: {
50
50
  shortcuts: [`<your custom shortcuts>`],
51
- align: 'left' | 'center' | 'right',
52
51
  display: {
53
52
  title: `<your custom title>`,
54
53
  description: `<your custom description>`,
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,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
+ import{YooptaPlugin as e}from"@yoopta/editor";import{jsx as t}from"react/jsx-runtime";function r(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}"function"==typeof SuppressedError&&SuppressedError;const n=new e({type:"Paragraph",elements:{paragraph:{render:e=>{var{extendRender:n}=e,a=r(e,["extendRender"]);const o=a.HTMLAttributes||{},{className:s=""}=o,i=r(o,["className"]);return n?n(a):t("p",Object.assign({className:`yoopta-paragraph ${s}`},i,a.attributes,{children:a.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 n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===r&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".yoopta-paragraph{font-size:16px;line-height:1.75rem;margin:.5rem 0 0}");export{n as default};
@@ -1,4 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { PluginElementRenderProps } from '@yoopta/editor';
2
- declare const ParagraphRender: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ParagraphRender: ({ extendRender, ...props }: PluginElementRenderProps) => JSX.Element;
3
4
  export { ParagraphRender };
4
5
  //# sourceMappingURL=Paragraph.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../src/ui/Paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,QAAA,MAAM,eAAe,UAAW,wBAAwB,4CAQvD,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../src/ui/Paragraph.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,QAAA,MAAM,eAAe,+BAAgC,wBAAwB,gBAU5E,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/paragraph",
3
- "version": "4.6.1",
3
+ "version": "4.6.3-rc.0",
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": "9855ce3744b331828efbbeca1460a73cdc737330"
37
+ "gitHead": "d099c10e017a7b9e763d943694689c7819bc2d53"
38
38
  }