@yoopta/headings 4.6.2 → 4.6.3-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/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 r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;const i=({attributes:t,children:i,element:r,HTMLAttributes:a={}})=>{const{className:o=""}=a,s=n(a,["className"]);return e("h2",Object.assign({id:r.id,draggable:!1,className:`yoopta-heading-two ${o}`},s,t,{children:i}))};i.displayName="HeadingTwo";const r=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"]},serialize:(e,t)=>`<h2>${t}</h2>`},markdown:{serialize:(e,t)=>`## ${t}\n`}}}),a=({attributes:t,children:i,element:r,HTMLAttributes:a={}})=>{const{className:o=""}=a,s=n(a,["className"]);return e("h1",Object.assign({id:r.id,draggable:!1,className:`yoopta-heading-one ${o}`},s,t,{children:i}))};a.displayName="HeadingOne";const o=new t({type:"HeadingOne",elements:{"heading-one":{render:a,props:{nodeType:"block"}}},options:{display:{title:"Heading 1",description:"Big section heading"},shortcuts:["h1","#","*"]},parsers:{html:{deserialize:{nodeNames:["H1"]},serialize:(e,t)=>`<h1>${t}</h1>`},markdown:{serialize:(e,t)=>`# ${t}\n`}}}),s=({attributes:t,children:i,element:r,HTMLAttributes:a={}})=>{const{className:o=""}=a,s=n(a,["className"]);return e("h3",Object.assign({id:r.id,draggable:!1,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"]},serialize:(e,t)=>`<h3>${t}</h3>`},markdown:{serialize:(e,t)=>`### ${t}\n`}}});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.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:r,HeadingThree:d};export{o as HeadingOne,d as HeadingThree,r 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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const r=t=>{var{extendRender:r}=t,i=n(t,["extendRender"]);const{element:a,HTMLAttributes:o={},attributes:s,children:d}=i,{className:l=""}=o,m=n(o,["className"]);return r?r(i):e("h2",Object.assign({id:a.id,draggable:!1,className:`yoopta-heading-two ${l}`},m,s,{children:d}))};r.displayName="HeadingTwo";const i=new t({type:"HeadingTwo",elements:{"heading-two":{render:r,props:{nodeType:"block"}}},options:{display:{title:"Heading 2",description:"Medium section heading"},shortcuts:["h2","##"]},parsers:{html:{deserialize:{nodeNames:["H2"]},serialize:(e,t)=>`<h2>${t}</h2>`},markdown:{serialize:(e,t)=>`## ${t}\n`}}}),a=t=>{var{extendRender:r}=t,i=n(t,["extendRender"]);const{element:a,HTMLAttributes:o={},attributes:s,children:d}=i,{className:l=""}=o,m=n(o,["className"]);return r?r(i):e("h1",Object.assign({id:a.id,draggable:!1,className:`yoopta-heading-one ${l}`},m,s,{children:d}))};a.displayName="HeadingOne";const o=new t({type:"HeadingOne",elements:{"heading-one":{render:a,props:{nodeType:"block"}}},options:{display:{title:"Heading 1",description:"Big section heading"},shortcuts:["h1","#","*"]},parsers:{html:{deserialize:{nodeNames:["H1"]},serialize:(e,t)=>`<h1>${t}</h1>`},markdown:{serialize:(e,t)=>`# ${t}\n`}}}),s=t=>{var{extendRender:r}=t,i=n(t,["extendRender"]);const{element:a,HTMLAttributes:o={},attributes:s,children:d}=i,{className:l=""}=o,m=n(o,["className"]);return r?r(i):e("h3",Object.assign({id:a.id,draggable:!1,className:`yoopta-heading-three ${l}`},m,s,{children:d}))};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"]},serialize:(e,t)=>`<h3>${t}</h3>`},markdown:{serialize:(e,t)=>`### ${t}\n`}}});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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:i,HeadingThree:d};export{o as HeadingOne,d as HeadingThree,i as HeadingTwo,l as default};
@@ -1 +1 @@
1
- {"version":3,"file":"HeadingOne.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingOne.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA4B,MAAM,gBAAgB,CAAC;AAcxE,QAAA,MAAM,UAAU;;;;;;;;EAgCd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"HeadingOne.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingOne.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA4B,MAAM,gBAAgB,CAAC;AAiBxE,QAAA,MAAM,UAAU;;;;;;;;EAgCd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeadingThree.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingThree.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAoBxE,QAAA,MAAM,YAAY;;;;;;;;EAgChB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"HeadingThree.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingThree.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAuBxE,QAAA,MAAM,YAAY;;;;;;;;EAgChB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeadingTwo.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingTwo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAcxE,QAAA,MAAM,UAAU;;;;;;;;EAgCd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"HeadingTwo.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingTwo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAiBxE,QAAA,MAAM,UAAU;;;;;;;;EAgCd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/headings",
3
- "version": "4.6.2",
3
+ "version": "4.6.3-rc.1",
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": "95ce282cea3b2a2d9b8fbb405c4495ac4e04fef8"
42
+ "gitHead": "fef97806a8b05525ba1eaa76524f322fb638ee14"
43
43
  }