@yoopta/blockquote 4.0.0-rc.1 → 4.0.0-rc.10

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{YooptaPlugin as e}from"@yoopta/editor";import{jsx as t}from"react/jsx-runtime";const o=new e({type:"BlockquotePlugin",elements:{blockquote:{render:e=>t("blockquote",Object.assign({"data-element-type":e.element.type},e.attributes,{className:"yoo-b-mt-2 yoo-b-border-l-2 yoo-b-pl-6 yoo-b-leading-7"},{children:e.children}))}},options:{displayLabel:"Blockquote",shortcuts:[">"]}});!function(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===o&&r.firstChild?r.insertBefore(d,r.firstChild):r.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}(".yoo-b-mt-2{margin-top:.5rem}.yoo-b-border-l-2{border-left-width:2px}.yoo-b-pl-6{padding-left:1.5rem}.yoo-b-leading-7{line-height:1.75rem}");export{o as default};
1
+ import{YooptaPlugin as e}from"@yoopta/editor";import{jsx as t}from"react/jsx-runtime";"function"==typeof SuppressedError&&SuppressedError;const o=new e({type:"Blockquote",elements:{blockquote:{render:e=>{const o=e.HTMLAttributes||{},{className:r}=o,n=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(o[r[n]]=e[r[n]])}return o}(o,["className"]);return t("blockquote",Object.assign({"data-element-type":e.element.type,className:`yoo-b-mt-2 yoo-b-border-l-2 yoo-b-pl-6 yoo-b-leading-7 ${r}`},n,e.attributes,{children:e.children}))}}},options:{display:{title:"Blockquote",description:"Capture quote"},shortcuts:[">"]},parsers:{html:{deserialize:{nodeNames:["BLOCKQUOTE"]}}}});!function(e,t){void 0===t&&(t={});var o=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("#yoopta-editor .yoo-b-mt-2{margin-top:.5rem}#yoopta-editor .yoo-b-border-l-2{border-left-width:2px}#yoopta-editor .yoo-b-pl-6{padding-left:1.5rem}#yoopta-editor .yoo-b-leading-7{line-height:1.75rem}");export{o as default};
@@ -1,6 +1,9 @@
1
1
  import { YooptaPlugin } from '@yoopta/editor';
2
2
  declare const Blockquote: YooptaPlugin<"blockquote", import("slate").Descendant, {
3
- displayLabel: string;
3
+ display: {
4
+ title: string;
5
+ description: string;
6
+ };
4
7
  shortcuts: string[];
5
8
  }>;
6
9
  export { Blockquote };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,QAAA,MAAM,UAAU;;;EAwBd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,QAAA,MAAM,UAAU;;;;;;EAqBd,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
1
  import { PluginElementRenderProps } from '@yoopta/editor';
3
- declare const BlockquoteRender: (props: PluginElementRenderProps) => JSX.Element;
2
+ declare const BlockquoteRender: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
4
3
  export { BlockquoteRender };
5
4
  //# sourceMappingURL=Blockquote.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blockquote.d.ts","sourceRoot":"","sources":["../../src/ui/Blockquote.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,QAAA,MAAM,gBAAgB,UAAW,wBAAwB,gBAUxD,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"Blockquote.d.ts","sourceRoot":"","sources":["../../src/ui/Blockquote.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,QAAA,MAAM,gBAAgB,UAAW,wBAAwB,4CAaxD,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@yoopta/blockquote",
3
- "version": "4.0.0-rc.1",
3
+ "version": "4.0.0-rc.10",
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": [
@@ -16,9 +16,7 @@
16
16
  "peerDependencies": {
17
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
  "publishConfig": {
24
22
  "registry": "https://registry.yarnpkg.com"
@@ -36,5 +34,5 @@
36
34
  "bugs": {
37
35
  "url": "https://github.com/Darginec05/Editor-Yoopta/issues"
38
36
  },
39
- "gitHead": "c46f09afdb5f60f98f2065e24305a9d02ed57ca7"
37
+ "gitHead": "47486295e1f53b2033ef0c859d1e4c831832b1e3"
40
38
  }