@yoopta/exports 4.6.9 → 4.6.10-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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import{getRootBlockElementType as e,generateId as t,buildBlockData as n}from"@yoopta/editor";const r={underline:{type:"underline",tag:"U"},strike:{type:"strike",tag:"S"},code:{type:"code",tag:"CODE"},italic:{type:"italic",tag:"I"},bold:{type:"bold",tag:"B"}};function s(e,t){return e.map((e=>{var n,i;let o="";if(e.text)return o=Object.keys(r).reduce(((t,n)=>e[n]?`<${r[n].tag}>${t}</${r[n].tag}>`:t),e.text),o;if(e.type){const r=function(e,t){return Object.values(e).find((e=>{var n;return e.type===(null===(n=e.elements)||void 0===n?void 0:n[t].rootPlugin)}))}(t,e.type);if(r&&(null===(i=null===(n=r.parsers)||void 0===n?void 0:n.html)||void 0===i?void 0:i.serialize))return o=r.parsers.html.serialize(e,s(e.children,t)),o}return o})).join("")}function i(e,t){return function(e,t){const n=t.sort(((e,t)=>e.meta.order-t.meta.order)).map((t=>{var n,r;const i=e.plugins[t.type];if(i&&(null===(r=null===(n=i.parsers)||void 0===n?void 0:n.html)||void 0===r?void 0:r.serialize)){const n=s(t.value[0].children,e.plugins);return`${i.parsers.html.serialize(t.value[0],n)}\n`}return""}));return`<body id="yoopta-clipboard" data-editor-id="${e.id}">${n.join("")}</body>`}(e,Object.values(t))}
1
+ import{getRootBlockElementType as e,generateId as t,buildBlockData as n}from"@yoopta/editor";const r={underline:{type:"underline",tag:"U"},strike:{type:"strike",tag:"S"},code:{type:"code",tag:"CODE"},italic:{type:"italic",tag:"I"},bold:{type:"bold",tag:"B"}};function s(e,t){return e.map((e=>{var n,i;let o="";if(e.text)return o=Object.keys(r).reduce(((t,n)=>e[n]?`<${r[n].tag}>${t}</${r[n].tag}>`:t),e.text),o;if(e.type){const r=function(e,t){return Object.values(e).find((e=>{var n,r;return e.type===(null===(r=null===(n=e.elements)||void 0===n?void 0:n[t])||void 0===r?void 0:r.rootPlugin)}))}(t,e.type);if(r&&(null===(i=null===(n=r.parsers)||void 0===n?void 0:n.html)||void 0===i?void 0:i.serialize))return o=r.parsers.html.serialize(e,s(e.children,t)),o}return o})).join("")}function i(e,t){return function(e,t){const n=t.sort(((e,t)=>e.meta.order-t.meta.order)).map((t=>{var n,r;const i=e.plugins[t.type];if(i&&(null===(r=null===(n=i.parsers)||void 0===n?void 0:n.html)||void 0===r?void 0:r.serialize)){const n=s(t.value[0].children,e.plugins);return`${i.parsers.html.serialize(t.value[0],n)}\n`}return""}));return`<body id="yoopta-clipboard" data-editor-id="${e.id}">${n.join("")}</body>`}(e,Object.values(t))}
2
2
  /*!
3
3
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/exports",
3
- "version": "4.6.9",
3
+ "version": "4.6.10-rc.1",
4
4
  "description": "Serialize/deserialize exports in different formats for Yoopta-Editor",
5
5
  "author": "Darginec05 <devopsbanda@gmail.com>",
6
6
  "homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
@@ -36,5 +36,5 @@
36
36
  "dependencies": {
37
37
  "marked": "^13.0.0"
38
38
  },
39
- "gitHead": "e6eb1df8a0a59cebe0a1f65c8d99419ebaef1416"
39
+ "gitHead": "4181e51a227ff57a9c4939cb5a6d3d1507bb1f28"
40
40
  }