@yoopta/headings 4.3.0-alpha.0 → 4.3.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import{YooptaPlugin as t}from"@yoopta/editor";function n(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n}"function"==typeof SuppressedError&&SuppressedError;const i=({attributes:t,children:i,element:a,HTMLAttributes:r={}})=>{const{className:o=""}=r,s=n(r,["className"]);return e("h2",Object.assign({id:a.id,draggable:!1,"data-element-type":a.type,className:`yoopta-heading-two ${o}`},s,t,{children:i}))};i.displayName="HeadingTwo";const a=new t({type:"HeadingTwo",elements:{"heading-two":{render:i,props:{nodeType:"block"}}},options:{display:{title:"Heading 2",description:"Medium section heading"},shortcuts:["h2","##"]},parsers:{html:{deserialize:{nodeNames:["H2"]}}}}),r=({attributes:t,children:i,element:a,HTMLAttributes:r={}})=>{const{className:o}=r,s=n(r,["className"]);return e("h1",Object.assign({id:a.id,draggable:!1,"data-element-type":a.type,className:`yoopta-heading-one ${o}`},s,t,{children:i}))};r.displayName="HeadingOne";const o=new t({type:"HeadingOne",elements:{"heading-one":{render:r,props:{nodeType:"block"}}},options:{display:{title:"Heading 1",description:"Big section heading"},shortcuts:["h1","#","*"]},parsers:{html:{deserialize:{nodeNames:["H1"]},serialize:e=>""}}}),s=({attributes:t,children:i,element:a,HTMLAttributes:r={}})=>{const{className:o}=r,s=n(r,["className"]);return e("h3",Object.assign({id:a.id,draggable:!1,"data-element-type":a.type,className:`yoopta-heading-three ${o}`},s,t,{children:i}))};s.displayName="HeadingThree";const d=new t({type:"HeadingThree",elements:{"heading-three":{render:s,props:{nodeType:"block"}}},options:{display:{title:"Heading 3",description:"Small section heading"},shortcuts:["h3","###"]},parsers:{html:{deserialize:{nodeNames:["H3"]}}}});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".yoopta-heading-one{font-size:2.25rem;font-weight:700;line-height:2.5rem;margin-top:1.5rem}.yoopta-heading-one,.yoopta-heading-two{letter-spacing:-.025em;margin-bottom:.5rem;scroll-margin:5rem}.yoopta-heading-two{font-size:1.875rem;font-weight:600;line-height:2.25rem;margin-top:1rem}.yoopta-heading-three{font-size:1.5rem;font-weight:600;letter-spacing:-.025em;line-height:2rem;margin-bottom:.25rem;margin-top:.5rem;scroll-margin:5rem}");const l={HeadingOne:o,HeadingTwo:a,HeadingThree:d};export{o as HeadingOne,d as HeadingThree,a as HeadingTwo,l as default};
1
+ import{jsx as e}from"react/jsx-runtime";import{YooptaPlugin as t}from"@yoopta/editor";function n(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n}"function"==typeof SuppressedError&&SuppressedError;const i=({attributes:t,children:i,element:a,HTMLAttributes:r={}})=>{const{className:o=""}=r,s=n(r,["className"]);return e("h2",Object.assign({id:a.id,draggable:!1,"data-element-type":a.type,className:`yoopta-heading-two ${o}`},s,t,{children:i}))};i.displayName="HeadingTwo";const a=new t({type:"HeadingTwo",elements:{"heading-two":{render:i,props:{nodeType:"block"}}},options:{display:{title:"Heading 2",description:"Medium section heading"},shortcuts:["h2","##"]},parsers:{html:{deserialize:{nodeNames:["H2"]}}}}),r=({attributes:t,children:i,element:a,HTMLAttributes:r={}})=>{const{className:o=""}=r,s=n(r,["className"]);return e("h1",Object.assign({id:a.id,draggable:!1,"data-element-type":a.type,className:`yoopta-heading-one ${o}`},s,t,{children:i}))};r.displayName="HeadingOne";const o=new t({type:"HeadingOne",elements:{"heading-one":{render:r,props:{nodeType:"block"}}},options:{display:{title:"Heading 1",description:"Big section heading"},shortcuts:["h1","#","*"]},parsers:{html:{deserialize:{nodeNames:["H1"]},serialize:e=>""}}}),s=({attributes:t,children:i,element:a,HTMLAttributes:r={}})=>{const{className:o=""}=r,s=n(r,["className"]);return e("h3",Object.assign({id:a.id,draggable:!1,"data-element-type":a.type,className:`yoopta-heading-three ${o}`},s,t,{children:i}))};s.displayName="HeadingThree";const d=new t({type:"HeadingThree",elements:{"heading-three":{render:s,props:{nodeType:"block"}}},options:{display:{title:"Heading 3",description:"Small section heading"},shortcuts:["h3","###"]},parsers:{html:{deserialize:{nodeNames:["H3"]}}}});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".yoopta-heading-one{font-size:2.25rem;font-weight:700;line-height:2.5rem;margin-top:1.5rem}.yoopta-heading-one,.yoopta-heading-two{letter-spacing:-.025em;margin-bottom:.5rem;scroll-margin:5rem}.yoopta-heading-two{font-size:1.875rem;font-weight:600;line-height:2.25rem;margin-top:1rem}.yoopta-heading-three{font-size:1.5rem;font-weight:600;letter-spacing:-.025em;line-height:2rem;margin-bottom:.25rem;margin-top:.5rem;scroll-margin:5rem}");const l={HeadingOne:o,HeadingTwo:a,HeadingThree:d};export{o as HeadingOne,d as HeadingThree,a as HeadingTwo,l as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/headings",
3
- "version": "4.3.0-alpha.0",
3
+ "version": "4.3.0",
4
4
  "description": "Headings plugin for Yoopta Editor",
5
5
  "author": "Darginec05 <devopsbanda@gmail.com>",
6
6
  "homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
@@ -39,5 +39,5 @@
39
39
  "bugs": {
40
40
  "url": "https://github.com/Darginec05/Editor-Yoopta/issues"
41
41
  },
42
- "gitHead": "75209253ff1616624d58501deaf9446c78774cb8"
42
+ "gitHead": "535e341651799f9a44d104b49c8a8ab89d105db9"
43
43
  }