@yoopta/paragraph 4.3.2 → 4.4.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/ui/Paragraph.tsx","../src/plugin/index.tsx","../../../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["import { PluginElementRenderProps } from '@yoopta/editor';\n\nconst ParagraphRender = (props: PluginElementRenderProps) => {\n const { className = '', ...htmlAttrs } = props.HTMLAttributes || {};\n\n return (\n <p\n data-element-type={props.element.type}\n className={`yoopta-paragraph ${className}`}\n {...htmlAttrs}\n {...props.attributes}\n >\n {props.children}\n </p>\n );\n};\n\nexport { ParagraphRender };\n","import { YooptaPlugin } from '@yoopta/editor';\nimport { ParagraphRender } from '../ui/Paragraph';\n\nconst Paragraph = new YooptaPlugin({\n type: 'Paragraph',\n elements: {\n paragraph: {\n render: ParagraphRender,\n },\n },\n options: {\n display: {\n title: 'Text',\n description: 'Start writing plain text.',\n },\n shortcuts: ['p', 'text'],\n },\n parsers: {\n html: {\n deserialize: {\n nodeNames: ['P'],\n },\n },\n },\n});\n\nexport { Paragraph };\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAM,eAAe,GAAG,CAAC,KAA+B,KAAI;AAC1D,IAAA,MAAM,KAAmC,KAAK,CAAC,cA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,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;;","x_google_ignoreList":[2]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/paragraph",
3
- "version": "4.3.2",
3
+ "version": "4.4.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": "228dd8503a28b29beac2f40786e148d710a3fc74"
37
+ "gitHead": "1254b8da2e3cde2cfcbb8b092022deec12e18247"
38
38
  }