@yoopta/headings 4.0.0-rc.4 → 4.0.0-rc.5

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";const o=({attributes:t,children:o,element:i})=>e("h2",Object.assign({id:i.id,draggable:!1,"data-element-type":i.type,className:"yoo-h-scroll-m-20 yoo-h-mt-4 yoo-h-text-3xl yoo-h-font-semibold yoo-h-tracking-tight"},t,{children:o}));o.displayName="HeadingTwo";const i=new t({type:"HeadingTwo",elements:{"heading-two":{render:o,props:{nodeType:"block"}}},options:{display:{title:"Heading 2",description:"Medium section heading"},shortcuts:["h2","##"]}}),n=({attributes:t,children:o,element:i})=>e("h1",Object.assign({id:i.id,draggable:!1,"data-element-type":i.type,className:"yoo-h-mt-6 yoo-h-scroll-m-20 yoo-h-text-4xl yoo-h-font-bold yoo-h-tracking-tight yoo-h-lg:text-5xl"},t,{children:o}));n.displayName="HeadingOne";const d=new t({type:"HeadingOne",elements:{"heading-one":{render:n,props:{nodeType:"block"}}},options:{display:{title:"Heading 1",description:"Big section heading"},shortcuts:["h1","#","*"]}}),a=({attributes:t,children:o,element:i})=>e("h3",Object.assign({id:i.id,draggable:!1,"data-element-type":i.type,className:"yoo-h-mt-2 yoo-h-scroll-m-20 yoo-h-text-2xl yoo-h-font-semibold yoo-h-tracking-tight"},t,{children:o}));a.displayName="HeadingThree";const s=new t({type:"HeadingThree",elements:{"heading-three":{render:a,props:{nodeType:"block"}}},options:{display:{title:"Heading 3",description:"Small section heading"},shortcuts:["h3","###"]}});!function(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}(".yoo-h-mt-2{margin-top:.5rem}.yoo-h-mt-4{margin-top:1rem}.yoo-h-mt-6{margin-top:1.5rem}.yoo-h-scroll-m-20{scroll-margin:5rem}.yoo-h-text-2xl{font-size:1.5rem;line-height:2rem}.yoo-h-text-3xl{font-size:1.875rem;line-height:2.25rem}.yoo-h-text-4xl{font-size:2.25rem;line-height:2.5rem}.yoo-h-font-bold{font-weight:700}.yoo-h-font-semibold{font-weight:600}.yoo-h-tracking-tight{letter-spacing:-.025em}");const l={HeadingOne:d,HeadingTwo:i,HeadingThree:s};export{d as HeadingOne,s as HeadingThree,i as HeadingTwo,l as default};
1
+ import{jsx as e}from"react/jsx-runtime";import{YooptaPlugin as t}from"@yoopta/editor";const o=({attributes:t,children:o,element:i})=>e("h2",Object.assign({id:i.id,draggable:!1,"data-element-type":i.type,className:"yoo-h-scroll-m-20 yoo-h-mt-4 yoo-h-text-3xl yoo-h-font-semibold yoo-h-tracking-tight"},t,{children:o}));o.displayName="HeadingTwo";const i=new t({type:"HeadingTwo",elements:{"heading-two":{render:o,props:{nodeType:"block"}}},options:{display:{title:"Heading 2",description:"Medium section heading"},shortcuts:["h2","##"]},parsers:{html:{deserialize:{nodeNames:["H2"]}}}}),n=({attributes:t,children:o,element:i})=>e("h1",Object.assign({id:i.id,draggable:!1,"data-element-type":i.type,className:"yoo-h-mt-6 yoo-h-scroll-m-20 yoo-h-text-4xl yoo-h-font-bold yoo-h-tracking-tight yoo-h-lg:text-5xl"},t,{children:o}));n.displayName="HeadingOne";const s=new t({type:"HeadingOne",elements:{"heading-one":{render:n,props:{nodeType:"block"}}},options:{display:{title:"Heading 1",description:"Big section heading"},shortcuts:["h1","#","*"]},parsers:{html:{deserialize:{nodeNames:["H1"]},serialize:e=>{}}}}),a=({attributes:t,children:o,element:i})=>e("h3",Object.assign({id:i.id,draggable:!1,"data-element-type":i.type,className:"yoo-h-mt-2 yoo-h-scroll-m-20 yoo-h-text-2xl yoo-h-font-semibold yoo-h-tracking-tight"},t,{children:o}));a.displayName="HeadingThree";const d=new t({type:"HeadingThree",elements:{"heading-three":{render:a,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 o=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}(".yoo-h-mt-2{margin-top:.5rem}.yoo-h-mt-4{margin-top:1rem}.yoo-h-mt-6{margin-top:1.5rem}.yoo-h-scroll-m-20{scroll-margin:5rem}.yoo-h-text-2xl{font-size:1.5rem;line-height:2rem}.yoo-h-text-3xl{font-size:1.875rem;line-height:2.25rem}.yoo-h-text-4xl{font-size:2.25rem;line-height:2.5rem}.yoo-h-font-bold{font-weight:700}.yoo-h-font-semibold{font-weight:600}.yoo-h-tracking-tight{letter-spacing:-.025em}");const r={HeadingOne:s,HeadingTwo:i,HeadingThree:d};export{s as HeadingOne,d as HeadingThree,i as HeadingTwo,r as default};
@@ -1 +1 @@
1
- {"version":3,"file":"HeadingOne.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingOne.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAkB9C,QAAA,MAAM,UAAU;;;;;;;;EAiBd,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,EAAE,MAAM,gBAAgB,CAAC;AAkB9C,QAAA,MAAM,UAAU;;;;;;;;EAyBd,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,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAkB9C,QAAA,MAAM,YAAY;;;;;;;;EAiBhB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"HeadingThree.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingThree.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAkB9C,QAAA,MAAM,YAAY;;;;;;;;EAwBhB,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,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAkB9C,QAAA,MAAM,UAAU;;;;;;;;EAiBd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"HeadingTwo.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingTwo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAkB9C,QAAA,MAAM,UAAU;;;;;;;;EAwBd,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.0.0-rc.4",
3
+ "version": "4.0.0-rc.5",
4
4
  "description": "> TODO: description",
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": "b455dda008a2f7d20bd00783765131668a6a7537"
42
+ "gitHead": "f5e7f29c79b383ea691a66682a44fc5a438516a2"
43
43
  }