@yoopta/headings 4.6.1 → 4.6.3-rc.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.
package/README.md
CHANGED
|
@@ -54,7 +54,6 @@ const plugins = [
|
|
|
54
54
|
},
|
|
55
55
|
options: {
|
|
56
56
|
shortcuts: [`<your custom shortcuts>`],
|
|
57
|
-
align: 'left' | 'center' | 'right',
|
|
58
57
|
display: {
|
|
59
58
|
title: `<your custom title>`,
|
|
60
59
|
description: `<your custom description>`,
|
|
@@ -98,7 +97,6 @@ const plugins = [
|
|
|
98
97
|
},
|
|
99
98
|
options: {
|
|
100
99
|
shortcuts: [`<your custom shortcuts>`],
|
|
101
|
-
align: 'left' | 'center' | 'right',
|
|
102
100
|
display: {
|
|
103
101
|
title: `<your custom title>`,
|
|
104
102
|
description: `<your custom description>`,
|
|
@@ -142,7 +140,6 @@ const plugins = [
|
|
|
142
140
|
},
|
|
143
141
|
options: {
|
|
144
142
|
shortcuts: [`<your custom shortcuts>`],
|
|
145
|
-
align: 'left' | 'center' | 'right',
|
|
146
143
|
display: {
|
|
147
144
|
title: `<your custom title>`,
|
|
148
145
|
description: `<your custom description>`,
|
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
|
|
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;
|
|
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;
|
|
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;
|
|
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.
|
|
3
|
+
"version": "4.6.3-rc.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": "
|
|
42
|
+
"gitHead": "d099c10e017a7b9e763d943694689c7819bc2d53"
|
|
43
43
|
}
|