@yoopta/blockquote 4.6.2 → 4.6.3-rc.1

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";"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({className:`yoopta-blockquote ${r}`},n,e.attributes,{children:e.children}))}}},options:{display:{title:"Blockquote",description:"Capture quote"},shortcuts:[">"]},parsers:{html:{deserialize:{nodeNames:["BLOCKQUOTE"]},serialize:(e,t)=>`<blockquote style="border-left: 3px solid; color: #292929; padding: 2px 14px; margin-top: 8px;">${t}</blockquote>`},markdown:{serialize:(e,t)=>`> ${t}`}}});!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-blockquote{--tw-border-opacity:1;border-left-color:rgb(229 231 235/var(--tw-border-opacity));border-left-width:2px;line-height:1.75rem;margin:8px 0 0;padding-left:1.5rem}");export{o as default};
1
+ import{YooptaPlugin as e}from"@yoopta/editor";import{jsx as t}from"react/jsx-runtime";function r(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}"function"==typeof SuppressedError&&SuppressedError;const o=new e({type:"Blockquote",elements:{blockquote:{render:e=>{var{extendRender:o}=e,n=r(e,["extendRender"]);const i=n.HTMLAttributes||{},{className:l=""}=i,s=r(i,["className"]);return o?o(n):t("blockquote",Object.assign({className:`yoopta-blockquote ${l}`},s,n.attributes,{children:n.children}))}}},options:{display:{title:"Blockquote",description:"Capture quote"},shortcuts:[">"]},parsers:{html:{deserialize:{nodeNames:["BLOCKQUOTE"]},serialize:(e,t)=>`<blockquote style="border-left: 3px solid; color: #292929; padding: 2px 14px; margin-top: 8px;">${t}</blockquote>`},markdown:{serialize:(e,t)=>`> ${t}`}}});!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}(".yoopta-blockquote{--tw-border-opacity:1;border-left-color:rgb(229 231 235/var(--tw-border-opacity));border-left-width:2px;line-height:1.75rem;margin:8px 0 0;padding-left:1.5rem}");export{o as default};
@@ -1,4 +1,5 @@
1
+ /// <reference types="react" />
1
2
  import { PluginElementRenderProps } from '@yoopta/editor';
2
- declare const BlockquoteRender: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const BlockquoteRender: ({ extendRender, ...props }: PluginElementRenderProps) => JSX.Element;
3
4
  export { BlockquoteRender };
4
5
  //# 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,4CAQxD,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,+BAAgC,wBAAwB,gBAY7E,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/blockquote",
3
- "version": "4.6.2",
3
+ "version": "4.6.3-rc.1",
4
4
  "description": "Blockquote plugin for Yoopta Editor",
5
5
  "author": "Darginec05 <devopsbanda@gmail.com>",
6
6
  "homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
@@ -34,5 +34,5 @@
34
34
  "bugs": {
35
35
  "url": "https://github.com/Darginec05/Editor-Yoopta/issues"
36
36
  },
37
- "gitHead": "95ce282cea3b2a2d9b8fbb405c4495ac4e04fef8"
37
+ "gitHead": "fef97806a8b05525ba1eaa76524f322fb638ee14"
38
38
  }