@yoopta/headings 4.0.0-rc.1 → 4.0.0-rc.11
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.d.ts +12 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin/HeadingOne.d.ts +4 -1
- package/dist/plugin/HeadingOne.d.ts.map +1 -1
- package/dist/plugin/HeadingThree.d.ts +4 -1
- package/dist/plugin/HeadingThree.d.ts.map +1 -1
- package/dist/plugin/HeadingTwo.d.ts +4 -1
- package/dist/plugin/HeadingTwo.d.ts.map +1 -1
- package/package.json +5 -7
package/dist/index.d.ts
CHANGED
|
@@ -12,19 +12,28 @@ declare const Headings: {
|
|
|
12
12
|
HeadingOne: import("@yoopta/editor").YooptaPlugin<"heading-one", {
|
|
13
13
|
nodeType: "block";
|
|
14
14
|
}, {
|
|
15
|
-
|
|
15
|
+
display: {
|
|
16
|
+
title: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
16
19
|
shortcuts: string[];
|
|
17
20
|
}>;
|
|
18
21
|
HeadingTwo: import("@yoopta/editor").YooptaPlugin<"heading-two", {
|
|
19
22
|
nodeType: "block";
|
|
20
23
|
}, {
|
|
21
|
-
|
|
24
|
+
display: {
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
22
28
|
shortcuts: string[];
|
|
23
29
|
}>;
|
|
24
30
|
HeadingThree: import("@yoopta/editor").YooptaPlugin<"heading-three", {
|
|
25
31
|
nodeType: "block";
|
|
26
32
|
}, {
|
|
27
|
-
|
|
33
|
+
display: {
|
|
34
|
+
title: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
28
37
|
shortcuts: string[];
|
|
29
38
|
}>;
|
|
30
39
|
};
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACpF,OAAO,cAAc,CAAC;AAEtB,OAAO,QAAQ,OAAO,CAAC;IACrB,UAAU,WAAW;QACnB,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;KACtE;CACF;AAED,QAAA,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACpF,OAAO,cAAc,CAAC;AAEtB,OAAO,QAAQ,OAAO,CAAC;IACrB,UAAU,WAAW;QACnB,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;KACtE;CACF;AAED,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIb,CAAC;AAEF,eAAe,QAAQ,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{YooptaPlugin as t}from"@yoopta/editor";
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{YooptaPlugin as t}from"@yoopta/editor";function o(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[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])&&(o[i[r]]=e[i[r]])}return o}"function"==typeof SuppressedError&&SuppressedError;const i=({attributes:t,children:i,element:r,HTMLAttributes:n={}})=>{const{className:a}=n,s=o(n,["className"]);return e("h2",Object.assign({id:r.id,draggable:!1,"data-element-type":r.type,className:`yoo-h-scroll-m-20 yoo-h-mt-4 yoo-h-text-3xl yoo-h-font-semibold yoo-h-tracking-tight ${a}`},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"]}}}}),n=({attributes:t,children:i,element:r,HTMLAttributes:n={}})=>{const{className:a}=n,s=o(n,["className"]);return e("h1",Object.assign({id:r.id,draggable:!1,"data-element-type":r.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 ${a}`},s,t,{children:i}))};n.displayName="HeadingOne";const a=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=>""}}}),s=({attributes:t,children:i,element:r,HTMLAttributes:n={}})=>{const{className:a}=n,s=o(n,["className"]);return e("h3",Object.assign({id:r.id,draggable:!1,"data-element-type":r.type,className:`yoo-h-mt-2 yoo-h-scroll-m-20 yoo-h-text-2xl yoo-h-font-semibold yoo-h-tracking-tight ${a}`},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 o=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}("#yoopta-editor .yoo-h-mt-2{margin-top:.5rem}#yoopta-editor .yoo-h-mt-4{margin-top:1rem}#yoopta-editor .yoo-h-mt-6{margin-top:1.5rem}#yoopta-editor .yoo-h-scroll-m-20{scroll-margin:5rem}#yoopta-editor .yoo-h-text-2xl{font-size:1.5rem;line-height:2rem}#yoopta-editor .yoo-h-text-3xl{font-size:1.875rem;line-height:2.25rem}#yoopta-editor .yoo-h-text-4xl{font-size:2.25rem;line-height:2.5rem}#yoopta-editor .yoo-h-font-bold{font-weight:700}#yoopta-editor .yoo-h-font-semibold{font-weight:600}#yoopta-editor .yoo-h-tracking-tight{letter-spacing:-.025em}");const l={HeadingOne:a,HeadingTwo:r,HeadingThree:d};export{a as HeadingOne,d as HeadingThree,r as HeadingTwo,l as default};
|
|
@@ -2,7 +2,10 @@ import { YooptaPlugin } from '@yoopta/editor';
|
|
|
2
2
|
declare const HeadingOne: YooptaPlugin<"heading-one", {
|
|
3
3
|
nodeType: "block";
|
|
4
4
|
}, {
|
|
5
|
-
|
|
5
|
+
display: {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
6
9
|
shortcuts: string[];
|
|
7
10
|
}>;
|
|
8
11
|
export { HeadingOne };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingOne.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingOne.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"HeadingOne.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingOne.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA4B,MAAM,gBAAgB,CAAC;AAqBxE,QAAA,MAAM,UAAU;;;;;;;;EAyBd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -2,7 +2,10 @@ import { YooptaPlugin } from '@yoopta/editor';
|
|
|
2
2
|
declare const HeadingThree: YooptaPlugin<"heading-three", {
|
|
3
3
|
nodeType: "block";
|
|
4
4
|
}, {
|
|
5
|
-
|
|
5
|
+
display: {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
6
9
|
shortcuts: string[];
|
|
7
10
|
}>;
|
|
8
11
|
export { HeadingThree };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingThree.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingThree.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HeadingThree.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingThree.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAqBxE,QAAA,MAAM,YAAY;;;;;;;;EAwBhB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -2,7 +2,10 @@ import { YooptaPlugin } from '@yoopta/editor';
|
|
|
2
2
|
declare const HeadingTwo: YooptaPlugin<"heading-two", {
|
|
3
3
|
nodeType: "block";
|
|
4
4
|
}, {
|
|
5
|
-
|
|
5
|
+
display: {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
6
9
|
shortcuts: string[];
|
|
7
10
|
}>;
|
|
8
11
|
export { HeadingTwo };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadingTwo.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingTwo.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HeadingTwo.d.ts","sourceRoot":"","sources":["../../src/plugin/HeadingTwo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAqBxE,QAAA,MAAM,UAAU;;;;;;;;EAwBd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/headings",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.11",
|
|
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
|
-
"type": "module",
|
|
10
9
|
"main": "dist/index.js",
|
|
10
|
+
"type": "module",
|
|
11
11
|
"module": "dist/index.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
14
14
|
"dist/"
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@yoopta/editor": ">=
|
|
17
|
+
"@yoopta/editor": ">=4.0.0-rc.0",
|
|
18
18
|
"react": ">=17.0.2",
|
|
19
|
-
"react-dom": ">=17.0.2"
|
|
20
|
-
"slate": ">=0.99.0",
|
|
21
|
-
"slate-react": ">=0.99.0"
|
|
19
|
+
"react-dom": ">=17.0.2"
|
|
22
20
|
},
|
|
23
21
|
"devDependencies": {
|
|
24
22
|
"autoprefixer": "^10.0.1",
|
|
@@ -41,5 +39,5 @@
|
|
|
41
39
|
"bugs": {
|
|
42
40
|
"url": "https://github.com/Darginec05/Editor-Yoopta/issues"
|
|
43
41
|
},
|
|
44
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "47486295e1f53b2033ef0c859d1e4c831832b1e3"
|
|
45
43
|
}
|