@yoopta/headings 4.0.0-rc.8 → 4.0.0-rc.9

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
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("@yoopta/editor");function o(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]])}return o}"function"==typeof SuppressedError&&SuppressedError;const n=({attributes:t,children:n,element:i,HTMLAttributes:r={}})=>{const{className:s}=r,a=o(r,["className"]);return e.jsx("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 ${s}`},a,t,{children:n}))};n.displayName="HeadingTwo";const i=new t.YooptaPlugin({type:"HeadingTwo",elements:{"heading-two":{render:n,props:{nodeType:"block"}}},options:{display:{title:"Heading 2",description:"Medium section heading"},shortcuts:["h2","##"]},parsers:{html:{deserialize:{nodeNames:["H2"]}}}}),r=({attributes:t,children:n,element:i,HTMLAttributes:r={}})=>{const{className:s}=r,a=o(r,["className"]);return e.jsx("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-3x ${s}`},a,t,{children:n}))};r.displayName="HeadingOne";const s=new t.YooptaPlugin({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=>""}}}),a=({attributes:t,children:n,element:i,HTMLAttributes:r={}})=>{const{className:s}=r,a=o(r,["className"]);return e.jsx("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 ${s}`},a,t,{children:n}))};a.displayName="HeadingThree";const l=new t.YooptaPlugin({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 n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 d={HeadingOne:s,HeadingTwo:i,HeadingThree:l};exports.HeadingOne=s,exports.HeadingThree=l,exports.HeadingTwo=i,exports.default=d;
1
+ import{jsx as e}from"react/jsx-runtime";import{YooptaPlugin as t}from"@yoopta/editor";function o(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]])}return o}"function"==typeof SuppressedError&&SuppressedError;const n=({attributes:t,children:n,element:i,HTMLAttributes:r={}})=>{const{className:s}=r,a=o(r,["className"]);return 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 ${s}`},a,t,{children:n}))};n.displayName="HeadingTwo";const i=new t({type:"HeadingTwo",elements:{"heading-two":{render:n,props:{nodeType:"block"}}},options:{display:{title:"Heading 2",description:"Medium section heading"},shortcuts:["h2","##"]},parsers:{html:{deserialize:{nodeNames:["H2"]}}}}),r=({attributes:t,children:n,element:i,HTMLAttributes:r={}})=>{const{className:s}=r,a=o(r,["className"]);return 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-3x ${s}`},a,t,{children:n}))};r.displayName="HeadingOne";const s=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=>""}}}),a=({attributes:t,children:n,element:i,HTMLAttributes:r={}})=>{const{className:s}=r,a=o(r,["className"]);return 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 ${s}`},a,t,{children:n}))};a.displayName="HeadingThree";const l=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 n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 d={HeadingOne:s,HeadingTwo:i,HeadingThree:l};export{s as HeadingOne,l as HeadingThree,i as HeadingTwo,d as default};
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@yoopta/headings",
3
- "version": "4.0.0-rc.8",
3
+ "version": "4.0.0-rc.9",
4
4
  "description": "> TODO: description",
5
5
  "author": "Darginec05 <devopsbanda@gmail.com>",
6
6
  "homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
7
7
  "license": "MIT",
8
8
  "private": false,
9
9
  "main": "dist/index.js",
10
- "module": "dist/index.es.js",
10
+ "type": "module",
11
+ "module": "dist/index.js",
11
12
  "types": "./dist/index.d.ts",
12
13
  "files": [
13
14
  "dist/"
@@ -38,5 +39,5 @@
38
39
  "bugs": {
39
40
  "url": "https://github.com/Darginec05/Editor-Yoopta/issues"
40
41
  },
41
- "gitHead": "daa226c7a3570b330c6f196f6a19729d72785733"
42
+ "gitHead": "a4599f8ecac6c322b01ae25b4829d120db250736"
42
43
  }
package/dist/index.es.js DELETED
@@ -1 +0,0 @@
1
- import{jsx as e}from"react/jsx-runtime";import{YooptaPlugin as t}from"@yoopta/editor";function o(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(o[n[i]]=e[n[i]])}return o}"function"==typeof SuppressedError&&SuppressedError;const n=({attributes:t,children:n,element:i,HTMLAttributes:r={}})=>{const{className:s}=r,a=o(r,["className"]);return 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 ${s}`},a,t,{children:n}))};n.displayName="HeadingTwo";const i=new t({type:"HeadingTwo",elements:{"heading-two":{render:n,props:{nodeType:"block"}}},options:{display:{title:"Heading 2",description:"Medium section heading"},shortcuts:["h2","##"]},parsers:{html:{deserialize:{nodeNames:["H2"]}}}}),r=({attributes:t,children:n,element:i,HTMLAttributes:r={}})=>{const{className:s}=r,a=o(r,["className"]);return 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-3x ${s}`},a,t,{children:n}))};r.displayName="HeadingOne";const s=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=>""}}}),a=({attributes:t,children:n,element:i,HTMLAttributes:r={}})=>{const{className:s}=r,a=o(r,["className"]);return 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 ${s}`},a,t,{children:n}))};a.displayName="HeadingThree";const l=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 n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.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 d={HeadingOne:s,HeadingTwo:i,HeadingThree:l};export{s as HeadingOne,l as HeadingThree,i as HeadingTwo,d as default};