@yoopta/video 4.0.0-rc.3 → 4.0.0-rc.4
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 +1 -1
- package/dist/ui/DailyMotionPlayer.d.ts +1 -2
- package/dist/ui/DailyMotionPlayer.d.ts.map +1 -1
- package/dist/ui/EmbedUploader.d.ts +1 -2
- package/dist/ui/EmbedUploader.d.ts.map +1 -1
- package/dist/ui/FileUploader.d.ts +1 -2
- package/dist/ui/FileUploader.d.ts.map +1 -1
- package/dist/ui/Loader.d.ts +1 -1
- package/dist/ui/Loader.d.ts.map +1 -1
- package/dist/ui/Placeholder.d.ts +1 -2
- package/dist/ui/Placeholder.d.ts.map +1 -1
- package/dist/ui/Resizer.d.ts +1 -2
- package/dist/ui/Resizer.d.ts.map +1 -1
- package/dist/ui/Video.d.ts +1 -4
- package/dist/ui/Video.d.ts.map +1 -1
- package/dist/ui/VideoBlockOptions.d.ts +1 -2
- package/dist/ui/VideoBlockOptions.d.ts.map +1 -1
- package/dist/ui/VideoComponent.d.ts +1 -2
- package/dist/ui/VideoComponent.d.ts.map +1 -1
- package/dist/ui/VideoUploader.d.ts +1 -1
- package/dist/ui/VideoUploader.d.ts.map +1 -1
- package/dist/ui/VimeoPlayer.d.ts +1 -2
- package/dist/ui/VimeoPlayer.d.ts.map +1 -1
- package/dist/ui/YootubePlayer.d.ts +1 -2
- package/dist/ui/YootubePlayer.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,4 +3,4 @@ import{useYooptaEditor as e,useYooptaPluginOptions as t,UI as n,useBlockData as
|
|
|
3
3
|
* tabbable 6.2.0
|
|
4
4
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
5
|
*/
|
|
6
|
-
var et=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),tt="undefined"==typeof Element,nt=tt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,it=!tt&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},ot=function e(t,n){var i;void 0===n&&(n=!0);var o=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},rt=function e(t,n,i){for(var o=[],r=Array.from(t);r.length;){var s=r.shift();if(!ot(s,!1))if("SLOT"===s.tagName){var l=s.assignedElements(),a=e(l.length?l:s.children,!0,i);i.flatten?o.push.apply(o,a):o.push({scopeParent:s,candidates:a})}else{nt.call(s,et)&&i.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(s),u=!ot(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(c&&u){var d=e(!0===c?s.children:c.children,!0,i);i.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else r.unshift.apply(r,s.children)}}return o},st=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},lt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!st(e)?0:e.tabIndex},at=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ct=function(e){return"INPUT"===e.tagName},ut=function(e){return function(e){return ct(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||it(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},dt=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},ht=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=nt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(nt.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return dt(e)}else{if("function"==typeof i){for(var r=e;e;){var s=e.parentElement,l=it(e);if(s&&!s.shadowRoot&&!0===i(s))return dt(e);e=e.assignedSlot?e.assignedSlot:s||l===e.ownerDocument?s:l.host}e=r}if(function(e){var t,n,i,o,r=e&&it(e),s=null===(t=r)||void 0===t?void 0:t.host,l=!1;if(r&&r!==e)for(l=!!(null!==(n=s)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&s;){var a,c,u;l=!(null===(c=s=null===(a=r=it(s))||void 0===a?void 0:a.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},pt=function(e,t){return!(t.disabled||ot(t)||function(e){return ct(e)&&"hidden"===e.type}(t)||ht(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!nt.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},ft=function(e,t){return!(ut(t)||lt(t)<0||!pt(e,t))},gt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},mt=function e(t){var n=[],i=[];return t.forEach((function(t,o){var r=!!t.scopeParent,s=r?t.scopeParent:t,l=function(e,t){var n=lt(e);return n<0&&t&&!st(e)?0:n}(s,r),a=r?e(t.candidates):s;0===l?r?n.push.apply(n,a):n.push(s):i.push({documentOrder:o,tabIndex:l,item:t,isScope:r,content:a})})),i.sort(at).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},vt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?rt([e],t.includeContainer,{filter:ft.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:gt}):function(e,t,n){if(ot(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(et));return t&&nt.call(e,et)&&i.unshift(e),i.filter(n)}(e,t.includeContainer,ft.bind(null,t)),mt(n)};const wt=a["useInsertionEffect".toString()]||(e=>e());var yt="undefined"!=typeof document?h:u;function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bt.apply(this,arguments)}let xt=!1,Ct=0;const St=()=>"floating-ui-"+Ct++;const Rt=a["useId".toString()]||function(){const[e,t]=a.useState((()=>xt?St():void 0));return yt((()=>{null==e&&t(St())}),[]),a.useEffect((()=>{xt||(xt=!0)}),[]),e};const zt=a.createContext(null),Et=a.createContext(null);function Ot(e){return"data-floating-ui-"+e}const Lt=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Nt(e,t){const n=vt(e,Lt());"prev"===t&&n.reverse();const i=n.indexOf(function(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}((null==(o=e)?void 0:o.ownerDocument)||document));var o;return n.slice(i+1)[0]}function kt(e,t){const n=t||e.currentTarget,i=e.relatedTarget;return!i||!function(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&J(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}(n,i)}function _t(e){vt(e,Lt()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function jt(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Mt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Wt(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Tt=a.forwardRef((function(e,t){const[n,i]=a.useState();yt((()=>(/apple/i.test(navigator.vendor)&&i("button"),document.addEventListener("keydown",Wt),()=>{document.removeEventListener("keydown",Wt)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Ot("focus-guard")]:"",style:Mt};return a.createElement("span",bt({},e,o))})),At=a.createContext(null),Bt=Ot("portal");function Pt(e){let{children:t,id:n,root:i=null,preserveTabOrder:o=!0}=e;const r=function(e){let{id:t,root:n}=void 0===e?{}:e;const[i,o]=a.useState(null),r=Rt(),s=It(),l=a.useRef(null);return yt((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{l.current=null}))}),[i]),yt((()=>{if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Bt,""),e.appendChild(n),l.current=n,o(n)}),[t,r]),yt((()=>{if(l.current)return;let e=n||(null==s?void 0:s.portalNode);e&&!G(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const a=document.createElement("div");a.id=r,a.setAttribute(Bt,""),e=i||e,e.appendChild(a),l.current=a,o(a)}),[t,n,r,s]),i}({id:n,root:i}),[s,l]=a.useState(null),c=a.useRef(null),u=a.useRef(null),d=a.useRef(null),h=a.useRef(null),p=!!s&&!s.modal&&s.open&&o&&!(!i&&!r);return a.useEffect((()=>{if(r&&o&&(null==s||!s.modal))return r.addEventListener("focusin",e,!0),r.addEventListener("focusout",e,!0),()=>{r.removeEventListener("focusin",e,!0),r.removeEventListener("focusout",e,!0)};function e(e){if(r&&kt(e)){("focusin"===e.type?jt:_t)(r)}}}),[r,o,null==s?void 0:s.modal]),a.createElement(At.Provider,{value:a.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:h,portalNode:r,setFocusManagerState:l})),[o,r])},p&&r&&a.createElement(Tt,{"data-type":"outside",ref:c,onFocus:e=>{if(kt(e,r)){var t;null==(t=d.current)||t.focus()}else{const e=Nt(document.body,"prev")||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),p&&r&&a.createElement("span",{"aria-owns":r.id,style:Mt}),r&&w(t,r),p&&r&&a.createElement(Tt,{"data-type":"outside",ref:u,onFocus:e=>{if(kt(e,r)){var t;null==(t=h.current)||t.focus()}else{const t=Nt(document.body,"next")||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const It=()=>a.useContext(At),Ht=new Set,Dt=a.forwardRef((function(e,t){let{lockScroll:n=!1,...i}=e;const o=Rt();return yt((()=>{if(!n)return;Ht.add(o);const e=/iP(hone|ad|od)|iOS/.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}()),t=document.body.style,i=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,s=t.left?parseFloat(t.left):window.pageXOffset,l=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",r&&(t[i]=r+"px"),e){var a,c;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(c=window.visualViewport)?void 0:c.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(l-Math.floor(n))+"px",left:-(s-Math.floor(e))+"px",right:"0"})}return()=>{Ht.delete(o),0===Ht.size&&(Object.assign(t,{overflow:"",[i]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(s,l)))}}),[o,n]),a.createElement("div",bt({ref:t},i,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}}))}));function Ft(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:i,nodeId:o}=e,[r,s]=a.useState(null),l=(null==(t=e.elements)?void 0:t.reference)||r,c=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:r,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=a.useState(i);qe(p,i)||f(i);const[g,v]=a.useState(null),[w,y]=a.useState(null),b=a.useCallback((e=>{e!==R.current&&(R.current=e,v(e))}),[]),x=a.useCallback((e=>{e!==z.current&&(z.current=e,y(e))}),[]),C=r||g,S=s||w,R=a.useRef(null),z=a.useRef(null),E=a.useRef(d),O=null!=c,L=Qe(c),N=Qe(o),k=a.useCallback((()=>{if(!R.current||!z.current)return;const e={placement:t,strategy:n,middleware:p};N.current&&(e.platform=N.current),Ze(R.current,z.current,e).then((e=>{const t={...e,isPositioned:!0};_.current&&!qe(E.current,t)&&(E.current=t,m.flushSync((()=>{h(t)})))}))}),[p,t,n,N]);Ge((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[u]);const _=a.useRef(!1);Ge((()=>(_.current=!0,()=>{_.current=!1})),[]),Ge((()=>{if(C&&(R.current=C),S&&(z.current=S),C&&S){if(L.current)return L.current(C,S,k);k()}}),[C,S,k,L,O]);const j=a.useMemo((()=>({reference:R,floating:z,setReference:b,setFloating:x})),[b,x]),M=a.useMemo((()=>({reference:C,floating:S})),[C,S]),W=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=Ke(M.floating,d.x),i=Ke(M.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+i+"px)",...Je(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:i}}),[n,l,M.floating,d.x,d.y]);return a.useMemo((()=>({...d,update:k,refs:j,elements:M,floatingStyles:W})),[d,k,j,M,W])}(e),u=a.useContext(Et),d=null!=((null==(h=a.useContext(zt))?void 0:h.id)||null);var h;const p=function(e){const t=a.useRef((()=>{}));return wt((()=>{t.current=e})),a.useCallback((function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return null==t.current?void 0:t.current(...n)}),[])}(((e,t,n)=>{e&&(g.current.openEvent=t),v.emit("openchange",{open:e,event:t,reason:n,nested:d}),null==i||i(e,t,n)})),f=a.useRef(null),g=a.useRef({}),v=a.useState((()=>function(){const e=new Map;return{emit(t,n){var i;null==(i=e.get(t))||i.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var i;e.set(t,(null==(i=e.get(t))?void 0:i.filter((e=>e!==n)))||[])}}}()))[0],w=Rt(),y=a.useCallback((e=>{const t=G(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c.refs.setReference(t)}),[c.refs]),b=a.useCallback((e=>{(G(e)||null===e)&&(f.current=e,s(e)),(G(c.refs.reference.current)||null===c.refs.reference.current||null!==e&&!G(e))&&c.refs.setReference(e)}),[c.refs]),x=a.useMemo((()=>({...c.refs,setReference:b,setPositionReference:y,domReference:f})),[c.refs,b,y]),C=a.useMemo((()=>({...c.elements,domReference:l})),[c.elements,l]),S=a.useMemo((()=>({...c,refs:x,elements:C,dataRef:g,nodeId:o,floatingId:w,events:v,open:n,onOpenChange:p})),[c,o,w,v,n,p,x,C]);return yt((()=>{const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===o));e&&(e.context=S)})),a.useMemo((()=>({...c,context:S,refs:x,elements:C})),[c,x,C,S])}function Vt(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Ut=["color"],$t=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,Ut);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M7.50005 1.04999C7.74858 1.04999 7.95005 1.25146 7.95005 1.49999V8.41359L10.1819 6.18179C10.3576 6.00605 10.6425 6.00605 10.8182 6.18179C10.994 6.35753 10.994 6.64245 10.8182 6.81819L7.81825 9.81819C7.64251 9.99392 7.35759 9.99392 7.18185 9.81819L4.18185 6.81819C4.00611 6.64245 4.00611 6.35753 4.18185 6.18179C4.35759 6.00605 4.64251 6.00605 4.81825 6.18179L7.05005 8.41359V1.49999C7.05005 1.25146 7.25152 1.04999 7.50005 1.04999ZM2.5 10C2.77614 10 3 10.2239 3 10.5V12C3 12.5539 3.44565 13 3.99635 13H11.0012C11.5529 13 12 12.5528 12 12V10.5C12 10.2239 12.2239 10 12.5 10C12.7761 10 13 10.2239 13 10.5V12C13 13.1041 12.1062 14 11.0012 14H3.99635C2.89019 14 2 13.103 2 12V10.5C2 10.2239 2.22386 10 2.5 10Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))})),Yt=["color"],Xt=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,Yt);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M7.81832 0.68179C7.64258 0.506054 7.35766 0.506054 7.18192 0.68179L5.18192 2.68179C5.00619 2.85753 5.00619 3.14245 5.18192 3.31819C5.35766 3.49392 5.64258 3.49392 5.81832 3.31819L7.05012 2.08638L7.05012 5.50023C7.05012 5.74876 7.25159 5.95023 7.50012 5.95023C7.74865 5.95023 7.95012 5.74876 7.95012 5.50023L7.95012 2.08638L9.18192 3.31819C9.35766 3.49392 9.64258 3.49392 9.81832 3.31819C9.99406 3.14245 9.99406 2.85753 9.81832 2.68179L7.81832 0.68179ZM7.95012 12.9136V9.50023C7.95012 9.2517 7.74865 9.05023 7.50012 9.05023C7.25159 9.05023 7.05012 9.2517 7.05012 9.50023V12.9136L5.81832 11.6818C5.64258 11.5061 5.35766 11.5061 5.18192 11.6818C5.00619 11.8575 5.00619 12.1424 5.18192 12.3182L7.18192 14.3182C7.26632 14.4026 7.38077 14.45 7.50012 14.45C7.61947 14.45 7.73393 14.4026 7.81832 14.3182L9.81832 12.3182C9.99406 12.1424 9.99406 11.8575 9.81832 11.6818C9.64258 11.5061 9.35766 11.5061 9.18192 11.6818L7.95012 12.9136ZM1.49994 7.00017C1.2238 7.00017 0.999939 7.22403 0.999939 7.50017C0.999939 7.77631 1.2238 8.00017 1.49994 8.00017L13.4999 8.00017C13.7761 8.00017 13.9999 7.77631 13.9999 7.50017C13.9999 7.22403 13.7761 7.00017 13.4999 7.00017L1.49994 7.00017Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))})),Zt=["color"],Gt=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,Zt);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M11.5 3.04999C11.7485 3.04999 11.95 3.25146 11.95 3.49999V7.49999C11.95 7.74852 11.7485 7.94999 11.5 7.94999C11.2515 7.94999 11.05 7.74852 11.05 7.49999V4.58639L4.58638 11.05H7.49999C7.74852 11.05 7.94999 11.2515 7.94999 11.5C7.94999 11.7485 7.74852 11.95 7.49999 11.95L3.49999 11.95C3.38064 11.95 3.26618 11.9026 3.18179 11.8182C3.0974 11.7338 3.04999 11.6193 3.04999 11.5L3.04999 7.49999C3.04999 7.25146 3.25146 7.04999 3.49999 7.04999C3.74852 7.04999 3.94999 7.25146 3.94999 7.49999L3.94999 10.4136L10.4136 3.94999L7.49999 3.94999C7.25146 3.94999 7.04999 3.74852 7.04999 3.49999C7.04999 3.25146 7.25146 3.04999 7.49999 3.04999L11.5 3.04999Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))})),qt=["color"],Jt=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,qt);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M4.76447 3.12199C5.63151 3.04859 6.56082 3 7.5 3C8.43918 3 9.36849 3.04859 10.2355 3.12199C11.2796 3.21037 11.9553 3.27008 12.472 3.39203C12.9425 3.50304 13.2048 3.64976 13.4306 3.88086C13.4553 3.90618 13.4902 3.94414 13.5133 3.97092C13.7126 4.20149 13.8435 4.4887 13.918 5.03283C13.9978 5.6156 14 6.37644 14 7.52493C14 8.66026 13.9978 9.41019 13.9181 9.98538C13.8439 10.5206 13.7137 10.8061 13.5125 11.0387C13.4896 11.0651 13.4541 11.1038 13.4296 11.1287C13.2009 11.3625 12.9406 11.5076 12.4818 11.6164C11.9752 11.7365 11.3143 11.7942 10.2878 11.8797C9.41948 11.9521 8.47566 12 7.5 12C6.52434 12 5.58052 11.9521 4.7122 11.8797C3.68572 11.7942 3.02477 11.7365 2.51816 11.6164C2.05936 11.5076 1.7991 11.3625 1.57037 11.1287C1.54593 11.1038 1.51035 11.0651 1.48748 11.0387C1.28628 10.8061 1.15612 10.5206 1.08193 9.98538C1.00221 9.41019 1 8.66026 1 7.52493C1 6.37644 1.00216 5.6156 1.082 5.03283C1.15654 4.4887 1.28744 4.20149 1.48666 3.97092C1.5098 3.94414 1.54468 3.90618 1.56942 3.88086C1.7952 3.64976 2.05752 3.50304 2.52796 3.39203C3.04473 3.27008 3.7204 3.21037 4.76447 3.12199ZM0 7.52493C0 5.28296 0 4.16198 0.729985 3.31713C0.766457 3.27491 0.815139 3.22194 0.854123 3.18204C1.63439 2.38339 2.64963 2.29744 4.68012 2.12555C5.56923 2.05028 6.52724 2 7.5 2C8.47276 2 9.43077 2.05028 10.3199 2.12555C12.3504 2.29744 13.3656 2.38339 14.1459 3.18204C14.1849 3.22194 14.2335 3.27491 14.27 3.31713C15 4.16198 15 5.28296 15 7.52493C15 9.74012 15 10.8477 14.2688 11.6929C14.2326 11.7348 14.1832 11.7885 14.1444 11.8281C13.3629 12.6269 12.3655 12.71 10.3709 12.8763C9.47971 12.9505 8.50782 13 7.5 13C6.49218 13 5.52028 12.9505 4.62915 12.8763C2.63446 12.71 1.63712 12.6269 0.855558 11.8281C0.816844 11.7885 0.767442 11.7348 0.731221 11.6929C0 10.8477 0 9.74012 0 7.52493ZM5.25 5.38264C5.25 5.20225 5.43522 5.08124 5.60041 5.15369L10.428 7.27105C10.6274 7.35853 10.6274 7.64147 10.428 7.72895L5.60041 9.84631C5.43522 9.91876 5.25 9.79775 5.25 9.61736V5.38264Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))})),Kt=["color"],Qt=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,Kt);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M4.81812 4.68161C4.99386 4.85734 4.99386 5.14227 4.81812 5.318L3.08632 7.0498H11.9135L10.1817 5.318C10.006 5.14227 10.006 4.85734 10.1817 4.68161C10.3575 4.50587 10.6424 4.50587 10.8181 4.68161L13.3181 7.18161C13.4939 7.35734 13.4939 7.64227 13.3181 7.818L10.8181 10.318C10.6424 10.4937 10.3575 10.4937 10.1817 10.318C10.006 10.1423 10.006 9.85734 10.1817 9.68161L11.9135 7.9498H3.08632L4.81812 9.68161C4.99386 9.85734 4.99386 10.1423 4.81812 10.318C4.64239 10.4937 4.35746 10.4937 4.18173 10.318L1.68173 7.818C1.50599 7.64227 1.50599 7.35734 1.68173 7.18161L4.18173 4.68161C4.35746 4.50587 4.64239 4.50587 4.81812 4.68161Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}));const en={youtube:e=>{const t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return t&&11===t[2].length?t[2]:null},vimeo:e=>new URL(e).pathname.split("/")[1],dailymotion:e=>{const t=e.match(/^.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/);return null!==t?void 0!==t[4]?t[4]:t[2]:null}},tn=({blockId:t,onClose:n})=>{const i=e(),[o,r]=c(""),a=0===o.length;return s("div",Object.assign({className:"cursor-pointer user-select-none transition-bg duration-20 ease-in white-space-nowrap w-full"},{children:[l("input",{type:"text",placeholder:"Paste video link",value:o,className:"items-center bg-[hsla(45,13%,94%,.6)] rounded-[4px] shadow-[inset_0_0_0_1px_hsla(0,0%,6%,.1)] cursor-text flex text-[14px] h-[32px] leading-[20px] px-[6px] relative w-full border-none",onChange:e=>r(e.target.value)}),l("button",Object.assign({type:"button",className:"user-select-none transition-bg duration-20 ease-in cursor-pointer flex items-center justify-center flex-shrink-0 white-space-nowrap h-[28px] rounded-[4px] shadow-[rgba(15,15,15,0.1)_0px_0px_0px_1px_inset,_rgba(15,15,15,0.1)_0px_1px_2px] bg-[rgb(35,131,226)] text-white fill-white leading-[1.2] px-[12px] text-[14px] font-medium w-full max-w-[300px] mx-auto m-[12px_0_6px] disabled:bg-[rgba(35,131,226,0.5)] disabled:cursor-not-allowed",disabled:a,onClick:()=>{var e;if(0===o.length)return;const r=(s=o).includes("youtube.com")||s.includes("youtu.be")?"youtube":s.includes("vimeo.com")?"vimeo":s.includes("dailymotion.com")||s.includes("dai.ly")?"dailymotion":null;var s;const l=r?null===(e=en[r])||void 0===e?void 0:e.call(en,o):null;if(console.log({type:r,id:l}),!r||!l)return console.warn("Unsopperted video provider or video id is not found.");i.blocks.Video.updateElement(t,"video",{src:o,provider:{type:r,id:l}}),n()}},{children:"Embed video"}))]}))},nn=({accept:n="video/*",onClose:i,blockId:o,onSetLoading:r})=>{const a=t("Video"),c=e();u((()=>{}),[]);return l("div",Object.assign({className:"user-select-none transition-bg duration-20 ease-in white-space-nowrap rounded-[4px] h-[32px] px-[12px] border border-[rgba(55,53,47,0.16)] w-full cursor-pointer"},{children:s("label",Object.assign({htmlFor:"video-uploader",className:"text-[14px] leading-[1.2] font-medium cursor-pointer w-full flex items-center justify-center h-full"},{children:[l("input",{type:"file",id:"video-uploader",className:"absolute left-0 top-0 invisible",accept:(null==a?void 0:a.accept)||n,onChange:e=>{const t=e.target.files[0];t&&(e=>{b(void 0,void 0,void 0,(function*(){if(!(null==a?void 0:a.onUpload))throw new Error("onUpload not provided in plugin options. Check Video.extend({}) method");i(),r(!0);try{const t=yield null==a?void 0:a.onUpload(e);c.blocks.Video.updateElement(o,"video",{src:t.src,sizes:t.sizes,bgColor:t.bgColor})}catch(e){}finally{r(!1)}}))})(t)},multiple:!1}),"Upload video"]}))}))},on=({floatingStyles:e,refs:t,onClose:n,blockId:i,onSetLoading:o})=>{const[r,a]=c("upload"),u=e=>a(e),d="upload"===r,h="embed"===r,p=e=>({borderBottom:e?"2px solid #2483e2":"2px solid transparent"});return l(Pt,Object.assign({root:document.getElementById("yoopta-editor")},{children:l(Dt,Object.assign({lockScroll:!0,className:"z-[100]",onClick:n},{children:l("div",Object.assign({ref:t.setFloating,style:e,onClick:e=>e.stopPropagation()},{children:s("div",Object.assign({className:"flex flex-col min-w-[540px] max-w-[calc(100vw-24px)] h-full max-h-[420px] bg-white shadow-[rgb(15_15_15_/5%)_0px_0px_0px_1px,_rgb(15_15_15_/10%)_0px_3px_6px,_rgb(15_15_15_/20%)_0px_9px_24px]"},{children:[s("div",Object.assign({className:"w-full flex text-[14px] p-[0_8px] shadow-[rgb(55_53_47_/9%)_0px_-1px_0px_inset] relative z-10 h-[40px]"},{children:[l("button",Object.assign({type:"button",onClick:()=>u("upload"),style:p(d),className:"py-[6px] whitespace-nowrap min-w-0 flex-shrink-0 text-[rgb(55,53,47)] relative cursor-pointer user-select-none bg-inherit transition-[height_20ms_ease-in] inline-flex items-center h-full text-[14px] leading-[1.2] px-[8px]"},{children:"Upload"})),l("button",Object.assign({type:"button",onClick:()=>u("embed"),style:p(h),className:"py-[6px] whitespace-nowrap min-w-0 flex-shrink-0 text-[rgb(55,53,47)] relative cursor-pointer user-select-none bg-inherit transition-[height_20ms_ease-in] inline-flex items-center h-full text-[14px] leading-[1.2] px-[8px]"},{children:"Video link"}))]})),s("div",Object.assign({className:"pt-[6px] pb-[6px] mt-[4px] flex justify-center mr-[12px] ml-[12px]"},{children:[h&&l(tn,{onClose:n,blockId:i}),d&&l(nn,{onClose:n,blockId:i,onSetLoading:o})]}))]}))}))}))}))},rn=({className:e,width:t,height:n,children:i})=>s("div",Object.assign({className:e},{children:[i,l("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-loader-2 h-4 w-4 animate-spin"},{children:l("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}))]})),sn=({attributes:e,children:t,blockId:n})=>{const[i,o]=c(!1),[r,a]=c(!1),{refs:u,floatingStyles:d}=Ft({placement:"bottom",open:i,onOpenChange:o,middleware:[Xe(),Ye(),$e(),Ne(10)]});return s("div",Object.assign({className:"w-full user-select-none m-[20px_0_10px] relative flex"},e,{contentEditable:!1},{children:[s("button",Object.assign({className:"p-[12px_36px_12px_12px] flex items-center text-left w-full overflow-hidden rounded-[3px] text-[14px] text-[rgba(55,53,47,0.65)] relative cursor-pointer border-none bg-[#efefef] transition-[background-color_100ms_ease-in] hover:bg-[#e3e3e3]",onClick:()=>o(!0),disabled:r,ref:u.setReference},{children:[l(r?rn:Jt,{className:"mr-2 user-select-none",width:24,height:24}),l("span",Object.assign({className:"font-medium"},{children:r?"Loading...":"Click to add video"})),r&&l("div",{className:"absolute top-0 left-0 h-full bg-[rgba(55,53,47,0.16)]",style:{width:"100%",transition:"width 100ms ease-in"}})]})),i&&l(on,{blockId:n,floatingStyles:d,refs:u,onClose:()=>o(!1),onSetLoading:e=>a(e)}),t]}))},{ExtendedBlockActions:ln,BlockOptionsMenuGroup:an,BlockOptionsMenuItem:cn,BlockOptionsSeparator:un}=n,dn=({editor:e,block:t,props:n})=>s(ln,Object.assign({onClick:()=>e.setSelection([t.meta.order])},{children:[l(un,{}),s(an,{children:[l(cn,{children:s("button",Object.assign({type:"button",className:"rounded-sm hover:bg-[#37352f14] leading-[120%] px-2 py-1.5 mx-[4px] cursor-pointer w-full flex justify-start",onClick:()=>{e.blocks.Image.updateElement(t.id,"video",{fit:"contain"})}},{children:[l(Xt,{width:16,height:16,className:"w-4 h-4 mr-2"}),"Fit"]}))}),l(cn,{children:s("button",Object.assign({type:"button",className:"rounded-sm hover:bg-[#37352f14] leading-[120%] px-2 py-1.5 mx-[4px] cursor-pointer w-full flex justify-start",onClick:()=>{e.blocks.Image.updateElement(t.id,"video",{fit:"fill"})}},{children:[l(Qt,{width:16,height:16,className:"w-4 h-4 mr-2"}),"Fill"]}))}),l(cn,{children:s("button",Object.assign({type:"button",className:"rounded-sm hover:bg-[#37352f14] leading-[120%] px-2 py-1.5 mx-[4px] cursor-pointer w-full flex justify-start",onClick:()=>{e.blocks.Image.updateElement(t.id,"video",{fit:"cover"})}},{children:[l(Gt,{width:16,height:16,className:"w-4 h-4 mr-2"}),"Cover"]}))})]}),l(un,{}),l(an,{children:l(cn,{children:s("button",Object.assign({type:"button",className:"rounded-sm hover:bg-[#37352f14] leading-[120%] px-2 py-1.5 mx-[4px] cursor-pointer w-full flex justify-start",onClick:()=>{if(!n||!n.src)return;const e=document.createElement("a");e.href=n.src,e.download=n.src,e.target="_blank",e.rel="noopener noreferrer",document.body.appendChild(e),e.click(),document.body.removeChild(e)}},{children:[l($t,{width:16,height:16,className:"w-4 h-4 mr-2"}),"Download"]}))})})]})),hn=({position:e})=>l("div",Object.assign({contentEditable:!1,className:"absolute pointer-events-none flex items-center justify-center z-10 opacity-1 h-full w-[15px] cursor-col-resize transition-opacity duration-150 ease-in "+("left"===e?"left-0 top-0":"right-0 top-0")},{children:l("div",{className:"opacity-100 transition-opacity duration-300 ease-in rounded-[20px] bg-[rgba(15,15,15,0.6)] border border-[rgba(255,255,255,0.9)] w-[6px] h-[48px] max-h-[50%] shadow-[0_0_0_.5px_#FFF]"})})),pn=new r({type:"Video",elements:{video:{render:({element:n,attributes:r,children:a,blockId:d})=>{const{src:h,srcSet:p,bgColor:f,settings:m,sizes:v,poster:w,provider:y,fit:b}=n.props||{},x=i(d),C=e(),R=t("Video"),[z,E]=c({width:(null==v?void 0:v.width)||750,height:(null==v?void 0:v.height)||440});u((()=>E({width:(null==v?void 0:v.width)||650,height:(null==v?void 0:v.height)||440})),[n.props]);const O=o({blockId:d});const L=g((()=>{var e,t;return{minWidth:300,size:{width:z.width,height:z.height},maxWidth:(null===(e=null==R?void 0:R.maxSizes)||void 0===e?void 0:e.maxWidth)||800,maxHeight:(null===(t=null==R?void 0:R.maxSizes)||void 0===t?void 0:t.maxHeight)||720,lockAspectRatio:!0,resizeRatio:2,enable:{left:!0,right:!0},handleStyles:{left:{left:0},right:{right:0}},onResize:(e,t,n)=>{E({width:n.offsetWidth,height:n.offsetHeight})},onResizeStop:(e,t,n)=>{C.blocks.Video.updateElement(d,"video",{sizes:{width:n.offsetWidth,height:n.offsetHeight}})},handleComponent:{left:l(hn,{position:"left"}),right:l(hn,{position:"right"})}}}),[z.width,z.height]);return h?l("div",Object.assign({"data-element-type":n.type,contentEditable:!1,draggable:!1,className:"mt-4 relative"},r,{children:s(U,Object.assign({},L,{className:"mx-auto my-0 flex"},{children:[O&&l("div",{className:"absolute pointer-events-none inset-0 bg-[rgba(35,131,226,0.14)] z-[81] rounded-[3px] opacity-100 transition-opacity duration-150 ease-in"}),l(S,{src:h,srcSet:p,width:null==z?void 0:z.width,settings:m,bgColor:f,height:null==z?void 0:z.height,poster:w,provider:y,fit:b}),l(dn,{block:x,editor:C,settings:m,props:n.props}),a]}))})):l(sn,Object.assign({attributes:r,blockId:d},{children:a}))},props:{src:null,srcSet:null,bgColor:null,sizes:{width:650,height:400},nodeType:"void",settings:{controls:!1,loop:!0,muted:!0,autoPlay:!0}}}},options:{display:{title:"Video",description:"Upload from device, embed from Youtube, Vimeo"},accept:"video/*",maxSizes:{maxWidth:650,maxHeight:550}}});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".yoo-video-absolute{position:absolute}.yoo-video-relative{position:relative}.yoo-video-left-0{left:0}.yoo-video-top-0{top:0}.yoo-video-h-full{height:100%}.yoo-video-w-full{width:100%}");export{pn as default};
|
|
6
|
+
var et=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),tt="undefined"==typeof Element,nt=tt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,it=!tt&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},ot=function e(t,n){var i;void 0===n&&(n=!0);var o=null==t||null===(i=t.getAttribute)||void 0===i?void 0:i.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},rt=function e(t,n,i){for(var o=[],r=Array.from(t);r.length;){var s=r.shift();if(!ot(s,!1))if("SLOT"===s.tagName){var l=s.assignedElements(),a=e(l.length?l:s.children,!0,i);i.flatten?o.push.apply(o,a):o.push({scopeParent:s,candidates:a})}else{nt.call(s,et)&&i.filter(s)&&(n||!t.includes(s))&&o.push(s);var c=s.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(s),u=!ot(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(c&&u){var d=e(!0===c?s.children:c.children,!0,i);i.flatten?o.push.apply(o,d):o.push({scopeParent:s,candidates:d})}else r.unshift.apply(r,s.children)}}return o},st=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},lt=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!st(e)?0:e.tabIndex},at=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ct=function(e){return"INPUT"===e.tagName},ut=function(e){return function(e){return ct(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||it(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},dt=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},ht=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=nt.call(e,"details>summary:first-of-type")?e.parentElement:e;if(nt.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return dt(e)}else{if("function"==typeof i){for(var r=e;e;){var s=e.parentElement,l=it(e);if(s&&!s.shadowRoot&&!0===i(s))return dt(e);e=e.assignedSlot?e.assignedSlot:s||l===e.ownerDocument?s:l.host}e=r}if(function(e){var t,n,i,o,r=e&&it(e),s=null===(t=r)||void 0===t?void 0:t.host,l=!1;if(r&&r!==e)for(l=!!(null!==(n=s)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!l&&s;){var a,c,u;l=!(null===(c=s=null===(a=r=it(s))||void 0===a?void 0:a.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(s))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},pt=function(e,t){return!(t.disabled||ot(t)||function(e){return ct(e)&&"hidden"===e.type}(t)||ht(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!nt.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},ft=function(e,t){return!(ut(t)||lt(t)<0||!pt(e,t))},gt=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},mt=function e(t){var n=[],i=[];return t.forEach((function(t,o){var r=!!t.scopeParent,s=r?t.scopeParent:t,l=function(e,t){var n=lt(e);return n<0&&t&&!st(e)?0:n}(s,r),a=r?e(t.candidates):s;0===l?r?n.push.apply(n,a):n.push(s):i.push({documentOrder:o,tabIndex:l,item:t,isScope:r,content:a})})),i.sort(at).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},vt=function(e,t){var n;return n=(t=t||{}).getShadowRoot?rt([e],t.includeContainer,{filter:ft.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:gt}):function(e,t,n){if(ot(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(et));return t&&nt.call(e,et)&&i.unshift(e),i.filter(n)}(e,t.includeContainer,ft.bind(null,t)),mt(n)};const wt=a["useInsertionEffect".toString()]||(e=>e());var yt="undefined"!=typeof document?h:u;function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bt.apply(this,arguments)}let xt=!1,Ct=0;const St=()=>"floating-ui-"+Ct++;const Rt=a["useId".toString()]||function(){const[e,t]=a.useState((()=>xt?St():void 0));return yt((()=>{null==e&&t(St())}),[]),a.useEffect((()=>{xt||(xt=!0)}),[]),e};const zt=a.createContext(null),Et=a.createContext(null);function Ot(e){return"data-floating-ui-"+e}const Lt=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Nt(e,t){const n=vt(e,Lt());"prev"===t&&n.reverse();const i=n.indexOf(function(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}((null==(o=e)?void 0:o.ownerDocument)||document));var o;return n.slice(i+1)[0]}function kt(e,t){const n=t||e.currentTarget,i=e.relatedTarget;return!i||!function(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&J(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}(n,i)}function _t(e){vt(e,Lt()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function jt(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Mt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Wt(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Tt=a.forwardRef((function(e,t){const[n,i]=a.useState();yt((()=>(/apple/i.test(navigator.vendor)&&i("button"),document.addEventListener("keydown",Wt),()=>{document.removeEventListener("keydown",Wt)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Ot("focus-guard")]:"",style:Mt};return a.createElement("span",bt({},e,o))})),At=a.createContext(null),Bt=Ot("portal");function Pt(e){let{children:t,id:n,root:i=null,preserveTabOrder:o=!0}=e;const r=function(e){let{id:t,root:n}=void 0===e?{}:e;const[i,o]=a.useState(null),r=Rt(),s=It(),l=a.useRef(null);return yt((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{l.current=null}))}),[i]),yt((()=>{if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Bt,""),e.appendChild(n),l.current=n,o(n)}),[t,r]),yt((()=>{if(l.current)return;let e=n||(null==s?void 0:s.portalNode);e&&!G(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const a=document.createElement("div");a.id=r,a.setAttribute(Bt,""),e=i||e,e.appendChild(a),l.current=a,o(a)}),[t,n,r,s]),i}({id:n,root:i}),[s,l]=a.useState(null),c=a.useRef(null),u=a.useRef(null),d=a.useRef(null),h=a.useRef(null),p=!!s&&!s.modal&&s.open&&o&&!(!i&&!r);return a.useEffect((()=>{if(r&&o&&(null==s||!s.modal))return r.addEventListener("focusin",e,!0),r.addEventListener("focusout",e,!0),()=>{r.removeEventListener("focusin",e,!0),r.removeEventListener("focusout",e,!0)};function e(e){if(r&&kt(e)){("focusin"===e.type?jt:_t)(r)}}}),[r,o,null==s?void 0:s.modal]),a.createElement(At.Provider,{value:a.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:h,portalNode:r,setFocusManagerState:l})),[o,r])},p&&r&&a.createElement(Tt,{"data-type":"outside",ref:c,onFocus:e=>{if(kt(e,r)){var t;null==(t=d.current)||t.focus()}else{const e=Nt(document.body,"prev")||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),p&&r&&a.createElement("span",{"aria-owns":r.id,style:Mt}),r&&w(t,r),p&&r&&a.createElement(Tt,{"data-type":"outside",ref:u,onFocus:e=>{if(kt(e,r)){var t;null==(t=h.current)||t.focus()}else{const t=Nt(document.body,"next")||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const It=()=>a.useContext(At),Ht=new Set,Dt=a.forwardRef((function(e,t){let{lockScroll:n=!1,...i}=e;const o=Rt();return yt((()=>{if(!n)return;Ht.add(o);const e=/iP(hone|ad|od)|iOS/.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}()),t=document.body.style,i=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,s=t.left?parseFloat(t.left):window.pageXOffset,l=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",r&&(t[i]=r+"px"),e){var a,c;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(c=window.visualViewport)?void 0:c.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(l-Math.floor(n))+"px",left:-(s-Math.floor(e))+"px",right:"0"})}return()=>{Ht.delete(o),0===Ht.size&&(Object.assign(t,{overflow:"",[i]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(s,l)))}}),[o,n]),a.createElement("div",bt({ref:t},i,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...i.style}}))}));function Ft(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:i,nodeId:o}=e,[r,s]=a.useState(null),l=(null==(t=e.elements)?void 0:t.reference)||r,c=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:r,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=a.useState(i);qe(p,i)||f(i);const[g,v]=a.useState(null),[w,y]=a.useState(null),b=a.useCallback((e=>{e!==R.current&&(R.current=e,v(e))}),[]),x=a.useCallback((e=>{e!==z.current&&(z.current=e,y(e))}),[]),C=r||g,S=s||w,R=a.useRef(null),z=a.useRef(null),E=a.useRef(d),O=null!=c,L=Qe(c),N=Qe(o),k=a.useCallback((()=>{if(!R.current||!z.current)return;const e={placement:t,strategy:n,middleware:p};N.current&&(e.platform=N.current),Ze(R.current,z.current,e).then((e=>{const t={...e,isPositioned:!0};_.current&&!qe(E.current,t)&&(E.current=t,m.flushSync((()=>{h(t)})))}))}),[p,t,n,N]);Ge((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[u]);const _=a.useRef(!1);Ge((()=>(_.current=!0,()=>{_.current=!1})),[]),Ge((()=>{if(C&&(R.current=C),S&&(z.current=S),C&&S){if(L.current)return L.current(C,S,k);k()}}),[C,S,k,L,O]);const j=a.useMemo((()=>({reference:R,floating:z,setReference:b,setFloating:x})),[b,x]),M=a.useMemo((()=>({reference:C,floating:S})),[C,S]),W=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=Ke(M.floating,d.x),i=Ke(M.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+i+"px)",...Je(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:i}}),[n,l,M.floating,d.x,d.y]);return a.useMemo((()=>({...d,update:k,refs:j,elements:M,floatingStyles:W})),[d,k,j,M,W])}(e),u=a.useContext(Et),d=null!=((null==(h=a.useContext(zt))?void 0:h.id)||null);var h;const p=function(e){const t=a.useRef((()=>{}));return wt((()=>{t.current=e})),a.useCallback((function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return null==t.current?void 0:t.current(...n)}),[])}(((e,t,n)=>{e&&(g.current.openEvent=t),v.emit("openchange",{open:e,event:t,reason:n,nested:d}),null==i||i(e,t,n)})),f=a.useRef(null),g=a.useRef({}),v=a.useState((()=>function(){const e=new Map;return{emit(t,n){var i;null==(i=e.get(t))||i.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var i;e.set(t,(null==(i=e.get(t))?void 0:i.filter((e=>e!==n)))||[])}}}()))[0],w=Rt(),y=a.useCallback((e=>{const t=G(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c.refs.setReference(t)}),[c.refs]),b=a.useCallback((e=>{(G(e)||null===e)&&(f.current=e,s(e)),(G(c.refs.reference.current)||null===c.refs.reference.current||null!==e&&!G(e))&&c.refs.setReference(e)}),[c.refs]),x=a.useMemo((()=>({...c.refs,setReference:b,setPositionReference:y,domReference:f})),[c.refs,b,y]),C=a.useMemo((()=>({...c.elements,domReference:l})),[c.elements,l]),S=a.useMemo((()=>({...c,refs:x,elements:C,dataRef:g,nodeId:o,floatingId:w,events:v,open:n,onOpenChange:p})),[c,o,w,v,n,p,x,C]);return yt((()=>{const e=null==u?void 0:u.nodesRef.current.find((e=>e.id===o));e&&(e.context=S)})),a.useMemo((()=>({...c,context:S,refs:x,elements:C})),[c,x,C,S])}function Vt(e,t){if(null==e)return{};var n,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Ut=["color"],$t=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,Ut);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M7.50005 1.04999C7.74858 1.04999 7.95005 1.25146 7.95005 1.49999V8.41359L10.1819 6.18179C10.3576 6.00605 10.6425 6.00605 10.8182 6.18179C10.994 6.35753 10.994 6.64245 10.8182 6.81819L7.81825 9.81819C7.64251 9.99392 7.35759 9.99392 7.18185 9.81819L4.18185 6.81819C4.00611 6.64245 4.00611 6.35753 4.18185 6.18179C4.35759 6.00605 4.64251 6.00605 4.81825 6.18179L7.05005 8.41359V1.49999C7.05005 1.25146 7.25152 1.04999 7.50005 1.04999ZM2.5 10C2.77614 10 3 10.2239 3 10.5V12C3 12.5539 3.44565 13 3.99635 13H11.0012C11.5529 13 12 12.5528 12 12V10.5C12 10.2239 12.2239 10 12.5 10C12.7761 10 13 10.2239 13 10.5V12C13 13.1041 12.1062 14 11.0012 14H3.99635C2.89019 14 2 13.103 2 12V10.5C2 10.2239 2.22386 10 2.5 10Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))})),Yt=["color"],Xt=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,Yt);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M7.81832 0.68179C7.64258 0.506054 7.35766 0.506054 7.18192 0.68179L5.18192 2.68179C5.00619 2.85753 5.00619 3.14245 5.18192 3.31819C5.35766 3.49392 5.64258 3.49392 5.81832 3.31819L7.05012 2.08638L7.05012 5.50023C7.05012 5.74876 7.25159 5.95023 7.50012 5.95023C7.74865 5.95023 7.95012 5.74876 7.95012 5.50023L7.95012 2.08638L9.18192 3.31819C9.35766 3.49392 9.64258 3.49392 9.81832 3.31819C9.99406 3.14245 9.99406 2.85753 9.81832 2.68179L7.81832 0.68179ZM7.95012 12.9136V9.50023C7.95012 9.2517 7.74865 9.05023 7.50012 9.05023C7.25159 9.05023 7.05012 9.2517 7.05012 9.50023V12.9136L5.81832 11.6818C5.64258 11.5061 5.35766 11.5061 5.18192 11.6818C5.00619 11.8575 5.00619 12.1424 5.18192 12.3182L7.18192 14.3182C7.26632 14.4026 7.38077 14.45 7.50012 14.45C7.61947 14.45 7.73393 14.4026 7.81832 14.3182L9.81832 12.3182C9.99406 12.1424 9.99406 11.8575 9.81832 11.6818C9.64258 11.5061 9.35766 11.5061 9.18192 11.6818L7.95012 12.9136ZM1.49994 7.00017C1.2238 7.00017 0.999939 7.22403 0.999939 7.50017C0.999939 7.77631 1.2238 8.00017 1.49994 8.00017L13.4999 8.00017C13.7761 8.00017 13.9999 7.77631 13.9999 7.50017C13.9999 7.22403 13.7761 7.00017 13.4999 7.00017L1.49994 7.00017Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))})),Zt=["color"],Gt=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,Zt);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M11.5 3.04999C11.7485 3.04999 11.95 3.25146 11.95 3.49999V7.49999C11.95 7.74852 11.7485 7.94999 11.5 7.94999C11.2515 7.94999 11.05 7.74852 11.05 7.49999V4.58639L4.58638 11.05H7.49999C7.74852 11.05 7.94999 11.2515 7.94999 11.5C7.94999 11.7485 7.74852 11.95 7.49999 11.95L3.49999 11.95C3.38064 11.95 3.26618 11.9026 3.18179 11.8182C3.0974 11.7338 3.04999 11.6193 3.04999 11.5L3.04999 7.49999C3.04999 7.25146 3.25146 7.04999 3.49999 7.04999C3.74852 7.04999 3.94999 7.25146 3.94999 7.49999L3.94999 10.4136L10.4136 3.94999L7.49999 3.94999C7.25146 3.94999 7.04999 3.74852 7.04999 3.49999C7.04999 3.25146 7.25146 3.04999 7.49999 3.04999L11.5 3.04999Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))})),qt=["color"],Jt=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,qt);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M4.76447 3.12199C5.63151 3.04859 6.56082 3 7.5 3C8.43918 3 9.36849 3.04859 10.2355 3.12199C11.2796 3.21037 11.9553 3.27008 12.472 3.39203C12.9425 3.50304 13.2048 3.64976 13.4306 3.88086C13.4553 3.90618 13.4902 3.94414 13.5133 3.97092C13.7126 4.20149 13.8435 4.4887 13.918 5.03283C13.9978 5.6156 14 6.37644 14 7.52493C14 8.66026 13.9978 9.41019 13.9181 9.98538C13.8439 10.5206 13.7137 10.8061 13.5125 11.0387C13.4896 11.0651 13.4541 11.1038 13.4296 11.1287C13.2009 11.3625 12.9406 11.5076 12.4818 11.6164C11.9752 11.7365 11.3143 11.7942 10.2878 11.8797C9.41948 11.9521 8.47566 12 7.5 12C6.52434 12 5.58052 11.9521 4.7122 11.8797C3.68572 11.7942 3.02477 11.7365 2.51816 11.6164C2.05936 11.5076 1.7991 11.3625 1.57037 11.1287C1.54593 11.1038 1.51035 11.0651 1.48748 11.0387C1.28628 10.8061 1.15612 10.5206 1.08193 9.98538C1.00221 9.41019 1 8.66026 1 7.52493C1 6.37644 1.00216 5.6156 1.082 5.03283C1.15654 4.4887 1.28744 4.20149 1.48666 3.97092C1.5098 3.94414 1.54468 3.90618 1.56942 3.88086C1.7952 3.64976 2.05752 3.50304 2.52796 3.39203C3.04473 3.27008 3.7204 3.21037 4.76447 3.12199ZM0 7.52493C0 5.28296 0 4.16198 0.729985 3.31713C0.766457 3.27491 0.815139 3.22194 0.854123 3.18204C1.63439 2.38339 2.64963 2.29744 4.68012 2.12555C5.56923 2.05028 6.52724 2 7.5 2C8.47276 2 9.43077 2.05028 10.3199 2.12555C12.3504 2.29744 13.3656 2.38339 14.1459 3.18204C14.1849 3.22194 14.2335 3.27491 14.27 3.31713C15 4.16198 15 5.28296 15 7.52493C15 9.74012 15 10.8477 14.2688 11.6929C14.2326 11.7348 14.1832 11.7885 14.1444 11.8281C13.3629 12.6269 12.3655 12.71 10.3709 12.8763C9.47971 12.9505 8.50782 13 7.5 13C6.49218 13 5.52028 12.9505 4.62915 12.8763C2.63446 12.71 1.63712 12.6269 0.855558 11.8281C0.816844 11.7885 0.767442 11.7348 0.731221 11.6929C0 10.8477 0 9.74012 0 7.52493ZM5.25 5.38264C5.25 5.20225 5.43522 5.08124 5.60041 5.15369L10.428 7.27105C10.6274 7.35853 10.6274 7.64147 10.428 7.72895L5.60041 9.84631C5.43522 9.91876 5.25 9.79775 5.25 9.61736V5.38264Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))})),Kt=["color"],Qt=p((function(e,t){var n=e.color,i=void 0===n?"currentColor":n,o=Vt(e,Kt);return f("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),f("path",{d:"M4.81812 4.68161C4.99386 4.85734 4.99386 5.14227 4.81812 5.318L3.08632 7.0498H11.9135L10.1817 5.318C10.006 5.14227 10.006 4.85734 10.1817 4.68161C10.3575 4.50587 10.6424 4.50587 10.8181 4.68161L13.3181 7.18161C13.4939 7.35734 13.4939 7.64227 13.3181 7.818L10.8181 10.318C10.6424 10.4937 10.3575 10.4937 10.1817 10.318C10.006 10.1423 10.006 9.85734 10.1817 9.68161L11.9135 7.9498H3.08632L4.81812 9.68161C4.99386 9.85734 4.99386 10.1423 4.81812 10.318C4.64239 10.4937 4.35746 10.4937 4.18173 10.318L1.68173 7.818C1.50599 7.64227 1.50599 7.35734 1.68173 7.18161L4.18173 4.68161C4.35746 4.50587 4.64239 4.50587 4.81812 4.68161Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))}));const en={youtube:e=>{const t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return t&&11===t[2].length?t[2]:null},vimeo:e=>new URL(e).pathname.split("/")[1],dailymotion:e=>{const t=e.match(/^.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/);return null!==t?void 0!==t[4]?t[4]:t[2]:null}},tn=({blockId:t,onClose:n})=>{const i=e(),[o,r]=c(""),a=0===o.length;return s("div",Object.assign({className:"cursor-pointer user-select-none transition-bg duration-20 ease-in white-space-nowrap w-full"},{children:[l("input",{type:"text",placeholder:"Paste video link",value:o,className:"items-center bg-[hsla(45,13%,94%,.6)] rounded-[4px] shadow-[inset_0_0_0_1px_hsla(0,0%,6%,.1)] cursor-text flex text-[14px] h-[32px] leading-[20px] px-[6px] relative w-full border-none",onChange:e=>r(e.target.value)}),l("button",Object.assign({type:"button",className:"user-select-none transition-bg duration-20 ease-in cursor-pointer flex items-center justify-center flex-shrink-0 white-space-nowrap h-[28px] rounded-[4px] shadow-[rgba(15,15,15,0.1)_0px_0px_0px_1px_inset,_rgba(15,15,15,0.1)_0px_1px_2px] bg-[rgb(35,131,226)] text-white fill-white leading-[1.2] px-[12px] text-[14px] font-medium w-full max-w-[300px] mx-auto m-[12px_0_6px] disabled:bg-[rgba(35,131,226,0.5)] disabled:cursor-not-allowed",disabled:a,onClick:()=>{var e;if(0===o.length)return;const r=(s=o).includes("youtube.com")||s.includes("youtu.be")?"youtube":s.includes("vimeo.com")?"vimeo":s.includes("dailymotion.com")||s.includes("dai.ly")?"dailymotion":null;var s;const l=r?null===(e=en[r])||void 0===e?void 0:e.call(en,o):null;if(console.log({type:r,id:l}),!r||!l)return console.warn("Unsopperted video provider or video id is not found.");i.blocks.Video.updateElement(t,"video",{src:o,provider:{type:r,id:l}}),n()}},{children:"Embed video"}))]}))},nn=({accept:n="video/*",onClose:i,blockId:o,onSetLoading:r})=>{const a=t("Video"),c=e();u((()=>{}),[]);return l("div",Object.assign({className:"user-select-none transition-bg duration-20 ease-in white-space-nowrap rounded-[4px] h-[32px] px-[12px] border border-[rgba(55,53,47,0.16)] w-full cursor-pointer"},{children:s("label",Object.assign({htmlFor:"video-uploader",className:"text-[14px] leading-[1.2] font-medium cursor-pointer w-full flex items-center justify-center h-full"},{children:[l("input",{type:"file",id:"video-uploader",className:"absolute left-0 top-0 invisible",accept:(null==a?void 0:a.accept)||n,onChange:e=>{const t=e.target.files[0];t&&(e=>{b(void 0,void 0,void 0,(function*(){if(!(null==a?void 0:a.onUpload))throw new Error("onUpload not provided in plugin options. Check Video.extend({}) method");i(),r(!0);try{const t=yield null==a?void 0:a.onUpload(e);c.blocks.Video.updateElement(o,"video",{src:t.src,sizes:t.sizes,bgColor:t.bgColor})}catch(e){}finally{r(!1)}}))})(t)},multiple:!1}),"Upload video"]}))}))},on=({floatingStyles:e,refs:t,onClose:n,blockId:i,onSetLoading:o})=>{const[r,a]=c("upload"),u=e=>a(e),d="upload"===r,h="embed"===r,p=e=>({borderBottom:e?"2px solid #2483e2":"2px solid transparent"});return l(Pt,Object.assign({root:document.getElementById("yoopta-editor")},{children:l(Dt,Object.assign({lockScroll:!0,className:"z-[100]",onClick:n},{children:l("div",Object.assign({ref:t.setFloating,style:e,onClick:e=>e.stopPropagation()},{children:s("div",Object.assign({className:"flex flex-col min-w-[540px] max-w-[calc(100vw-24px)] h-full max-h-[420px] bg-white shadow-[rgb(15_15_15_/5%)_0px_0px_0px_1px,_rgb(15_15_15_/10%)_0px_3px_6px,_rgb(15_15_15_/20%)_0px_9px_24px]"},{children:[s("div",Object.assign({className:"w-full flex text-[14px] p-[0_8px] shadow-[rgb(55_53_47_/9%)_0px_-1px_0px_inset] relative z-10 h-[40px]"},{children:[l("button",Object.assign({type:"button",onClick:()=>u("upload"),style:p(d),className:"py-[6px] whitespace-nowrap min-w-0 flex-shrink-0 text-[rgb(55,53,47)] relative cursor-pointer user-select-none bg-inherit transition-[height_20ms_ease-in] inline-flex items-center h-full text-[14px] leading-[1.2] px-[8px]"},{children:"Upload"})),l("button",Object.assign({type:"button",onClick:()=>u("embed"),style:p(h),className:"py-[6px] whitespace-nowrap min-w-0 flex-shrink-0 text-[rgb(55,53,47)] relative cursor-pointer user-select-none bg-inherit transition-[height_20ms_ease-in] inline-flex items-center h-full text-[14px] leading-[1.2] px-[8px]"},{children:"Video link"}))]})),s("div",Object.assign({className:"pt-[6px] pb-[6px] mt-[4px] flex justify-center mr-[12px] ml-[12px]"},{children:[h&&l(tn,{onClose:n,blockId:i}),d&&l(nn,{onClose:n,blockId:i,onSetLoading:o})]}))]}))}))}))}))},rn=({className:e,width:t,height:n,children:i})=>s("div",Object.assign({className:e},{children:[i,l("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-loader-2 h-4 w-4 animate-spin"},{children:l("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})}))]})),sn=({attributes:e,children:t,blockId:n})=>{const[i,o]=c(!1),[r,a]=c(!1),{refs:u,floatingStyles:d}=Ft({placement:"bottom",open:i,onOpenChange:o,middleware:[Xe(),Ye(),$e(),Ne(10)]});return s("div",Object.assign({className:"w-full user-select-none m-[20px_0_10px] relative flex"},e,{contentEditable:!1},{children:[s("button",Object.assign({className:"p-[12px_36px_12px_12px] flex items-center text-left w-full overflow-hidden rounded-[3px] text-[14px] text-[rgba(55,53,47,0.65)] relative cursor-pointer border-none bg-[#efefef] transition-[background-color_100ms_ease-in] hover:bg-[#e3e3e3]",onClick:()=>o(!0),disabled:r,ref:u.setReference},{children:[l(r?rn:Jt,{className:"mr-2 user-select-none",width:24,height:24}),l("span",Object.assign({className:"font-medium"},{children:r?"Loading...":"Click to add video"})),r&&l("div",{className:"absolute top-0 left-0 h-full bg-[rgba(55,53,47,0.16)]",style:{width:"100%",transition:"width 100ms ease-in"}})]})),i&&l(on,{blockId:n,floatingStyles:d,refs:u,onClose:()=>o(!1),onSetLoading:e=>a(e)}),t]}))},{ExtendedBlockActions:ln,BlockOptionsMenuGroup:an,BlockOptionsMenuItem:cn,BlockOptionsSeparator:un}=n,dn=({editor:e,block:t,props:n})=>s(ln,Object.assign({onClick:()=>e.setSelection([t.meta.order]),className:"yoopta-video-options"},{children:[l(un,{}),s(an,{children:[l(cn,{children:s("button",Object.assign({type:"button",className:"rounded-sm hover:bg-[#37352f14] leading-[120%] px-2 py-1.5 mx-[4px] cursor-pointer w-full flex justify-start",onClick:()=>{e.blocks.Image.updateElement(t.id,"video",{fit:"contain"})}},{children:[l(Xt,{width:16,height:16,className:"w-4 h-4 mr-2"}),"Fit"]}))}),l(cn,{children:s("button",Object.assign({type:"button",className:"rounded-sm hover:bg-[#37352f14] leading-[120%] px-2 py-1.5 mx-[4px] cursor-pointer w-full flex justify-start",onClick:()=>{e.blocks.Image.updateElement(t.id,"video",{fit:"fill"})}},{children:[l(Qt,{width:16,height:16,className:"w-4 h-4 mr-2"}),"Fill"]}))}),l(cn,{children:s("button",Object.assign({type:"button",className:"rounded-sm hover:bg-[#37352f14] leading-[120%] px-2 py-1.5 mx-[4px] cursor-pointer w-full flex justify-start",onClick:()=>{e.blocks.Image.updateElement(t.id,"video",{fit:"cover"})}},{children:[l(Gt,{width:16,height:16,className:"w-4 h-4 mr-2"}),"Cover"]}))})]}),l(un,{}),l(an,{children:l(cn,{children:s("button",Object.assign({type:"button",className:"rounded-sm hover:bg-[#37352f14] leading-[120%] px-2 py-1.5 mx-[4px] cursor-pointer w-full flex justify-start",onClick:()=>{if(!n||!n.src)return;const e=document.createElement("a");e.href=n.src,e.download=n.src,e.target="_blank",e.rel="noopener noreferrer",document.body.appendChild(e),e.click(),document.body.removeChild(e)}},{children:[l($t,{width:16,height:16,className:"w-4 h-4 mr-2"}),"Download"]}))})})]})),hn=({position:e})=>l("div",Object.assign({contentEditable:!1,className:"absolute pointer-events-none flex items-center justify-center z-10 opacity-1 h-full w-[15px] cursor-col-resize transition-opacity duration-150 ease-in "+("left"===e?"left-0 top-0":"right-0 top-0")},{children:l("div",{className:"opacity-100 transition-opacity duration-300 ease-in rounded-[20px] bg-[rgba(15,15,15,0.6)] border border-[rgba(255,255,255,0.9)] w-[6px] h-[48px] max-h-[50%] shadow-[0_0_0_.5px_#FFF]"})})),pn=new r({type:"Video",elements:{video:{render:({element:n,attributes:r,children:a,blockId:d})=>{const{src:h,srcSet:p,bgColor:f,settings:m,sizes:v,poster:w,provider:y,fit:b}=n.props||{},x=i(d),C=e(),R=t("Video"),[z,E]=c({width:(null==v?void 0:v.width)||750,height:(null==v?void 0:v.height)||440});u((()=>E({width:(null==v?void 0:v.width)||650,height:(null==v?void 0:v.height)||440})),[n.props]);const O=o({blockId:d});const L=g((()=>{var e,t;return{minWidth:300,size:{width:z.width,height:z.height},maxWidth:(null===(e=null==R?void 0:R.maxSizes)||void 0===e?void 0:e.maxWidth)||800,maxHeight:(null===(t=null==R?void 0:R.maxSizes)||void 0===t?void 0:t.maxHeight)||720,lockAspectRatio:!0,resizeRatio:2,enable:{left:!0,right:!0},handleStyles:{left:{left:0},right:{right:0}},onResize:(e,t,n)=>{E({width:n.offsetWidth,height:n.offsetHeight})},onResizeStop:(e,t,n)=>{C.blocks.Video.updateElement(d,"video",{sizes:{width:n.offsetWidth,height:n.offsetHeight}})},handleComponent:{left:l(hn,{position:"left"}),right:l(hn,{position:"right"})}}}),[z.width,z.height]);return h?l("div",Object.assign({"data-element-type":n.type,contentEditable:!1,draggable:!1,className:"mt-4 relative yoopta-video"},r,{children:s(U,Object.assign({},L,{className:"mx-auto my-0 flex"},{children:[O&&l("div",{className:"absolute pointer-events-none inset-0 bg-[rgba(35,131,226,0.14)] z-[81] rounded-[3px] opacity-100 transition-opacity duration-150 ease-in"}),l(S,{src:h,srcSet:p,width:null==z?void 0:z.width,settings:m,bgColor:f,height:null==z?void 0:z.height,poster:w,provider:y,fit:b}),l(dn,{block:x,editor:C,settings:m,props:n.props}),a]}))})):l(sn,Object.assign({attributes:r,blockId:d},{children:a}))},props:{src:null,srcSet:null,bgColor:null,sizes:{width:650,height:400},nodeType:"void",settings:{controls:!1,loop:!0,muted:!0,autoPlay:!0}}}},options:{display:{title:"Video",description:"Upload from device, embed from Youtube, Vimeo"},accept:"video/*",maxSizes:{maxWidth:650,maxHeight:550}}});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".yoo-video-absolute{position:absolute}.yoo-video-relative{position:relative}.yoo-video-left-0{left:0}.yoo-video-top-0{top:0}.yoo-video-h-full{height:100%}.yoo-video-w-full{width:100%}.yoopta-video .yoopta-video-options{opacity:0;transition:opacity .15s ease-in-out}.yoopta-video:hover .yoopta-video-options{opacity:1}");export{pn as default};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare function DailyMotion({ videoId, ...other }: {
|
|
3
2
|
[x: string]: any;
|
|
4
3
|
videoId: any;
|
|
5
|
-
}): JSX.Element;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default DailyMotion;
|
|
7
6
|
//# sourceMappingURL=DailyMotionPlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DailyMotionPlayer.d.ts","sourceRoot":"","sources":["../../src/ui/DailyMotionPlayer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DailyMotionPlayer.d.ts","sourceRoot":"","sources":["../../src/ui/DailyMotionPlayer.tsx"],"names":[],"mappings":"AAKA,iBAAS,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE;;;CAAA,2CA2CzC;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmbedUploader.d.ts","sourceRoot":"","sources":["../../src/ui/EmbedUploader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EmbedUploader.d.ts","sourceRoot":"","sources":["../../src/ui/EmbedUploader.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,aAAa;;;6CA6ClB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
type Props = {
|
|
3
2
|
onClose: () => void;
|
|
4
3
|
blockId: string;
|
|
5
4
|
accept?: string;
|
|
6
5
|
onSetLoading: (_s: boolean) => void;
|
|
7
6
|
};
|
|
8
|
-
declare const FileUploader: ({ accept, onClose, blockId, onSetLoading }: Props) => JSX.Element;
|
|
7
|
+
declare const FileUploader: ({ accept, onClose, blockId, onSetLoading }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export { FileUploader };
|
|
10
9
|
//# sourceMappingURL=FileUploader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploader.d.ts","sourceRoot":"","sources":["../../src/ui/FileUploader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileUploader.d.ts","sourceRoot":"","sources":["../../src/ui/FileUploader.tsx"],"names":[],"mappings":"AAIA,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,IAAI,CAAC;CACrC,CAAC;AAEF,QAAA,MAAM,YAAY,+CAA4D,KAAK,4CAmDlF,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/ui/Loader.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ type Props = {
|
|
|
5
5
|
width?: number;
|
|
6
6
|
height?: number;
|
|
7
7
|
};
|
|
8
|
-
declare const Loader: ({ className, width, height, children }: Props) => JSX.Element;
|
|
8
|
+
declare const Loader: ({ className, width, height, children }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export { Loader };
|
|
10
10
|
//# sourceMappingURL=Loader.d.ts.map
|
package/dist/ui/Loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../src/ui/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,MAAM,2CAA4C,KAAK,
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../src/ui/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,MAAM,2CAA4C,KAAK,4CAoB5D,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/dist/ui/Placeholder.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const Placeholder: ({ attributes, children, blockId }: {
|
|
3
2
|
attributes: any;
|
|
4
3
|
children: any;
|
|
5
4
|
blockId: any;
|
|
6
|
-
}) => JSX.Element;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export { Placeholder };
|
|
8
7
|
//# sourceMappingURL=Placeholder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Placeholder.d.ts","sourceRoot":"","sources":["../../src/ui/Placeholder.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Placeholder.d.ts","sourceRoot":"","sources":["../../src/ui/Placeholder.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW;;;;6CA8ChB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/ui/Resizer.d.ts
CHANGED
package/dist/ui/Resizer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Resizer.d.ts","sourceRoot":"","sources":["../../src/ui/Resizer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Resizer.d.ts","sourceRoot":"","sources":["../../src/ui/Resizer.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,OAAO;;6CASZ,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
package/dist/ui/Video.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import { PluginElementRenderProps } from '@yoopta/editor';
|
|
3
|
-
import { VideoPluginOptions } from '../types';
|
|
4
|
-
declare const VideoRender: ({ element, attributes, children, blockId }: PluginElementRenderProps<VideoPluginOptions>) => JSX.Element;
|
|
1
|
+
declare const VideoRender: ({ element, attributes, children, blockId }: any) => import("react/jsx-runtime").JSX.Element;
|
|
5
2
|
export { VideoRender };
|
|
6
3
|
//# sourceMappingURL=Video.d.ts.map
|
package/dist/ui/Video.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Video.d.ts","sourceRoot":"","sources":["../../src/ui/Video.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Video.d.ts","sourceRoot":"","sources":["../../src/ui/Video.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,WAAW,8FA2FhB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { YooEditor, YooptaBlockData } from '@yoopta/editor';
|
|
3
2
|
import { VideoElementProps } from '../types';
|
|
4
3
|
type Props = {
|
|
@@ -7,6 +6,6 @@ type Props = {
|
|
|
7
6
|
props?: VideoElementProps;
|
|
8
7
|
settings?: VideoElementProps['settings'];
|
|
9
8
|
};
|
|
10
|
-
declare const VideoBlockOptions: ({ editor, block, props: videoProps }: Props) => JSX.Element;
|
|
9
|
+
declare const VideoBlockOptions: ({ editor, block, props: videoProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export { VideoBlockOptions };
|
|
12
11
|
//# sourceMappingURL=VideoBlockOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoBlockOptions.d.ts","sourceRoot":"","sources":["../../src/ui/VideoBlockOptions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VideoBlockOptions.d.ts","sourceRoot":"","sources":["../../src/ui/VideoBlockOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,SAAS,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAuB,MAAM,UAAU,CAAC;AAIlE,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CAC1C,CAAC;AAEF,QAAA,MAAM,iBAAiB,yCAA0C,KAAK,4CA6ErE,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { VideoElementProps } from '../types';
|
|
3
2
|
type VideoComponentProps = Omit<VideoElementProps, 'sizes'> & {
|
|
4
3
|
width: number;
|
|
5
4
|
height: number;
|
|
6
5
|
};
|
|
7
|
-
declare const VideoComponent: ({ width, height, src, settings, bgColor, poster, provider, fit }: VideoComponentProps) => JSX.Element;
|
|
6
|
+
declare const VideoComponent: ({ width, height, src, settings, bgColor, poster, provider, fit }: VideoComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export { VideoComponent, VideoComponentProps };
|
|
9
8
|
//# sourceMappingURL=VideoComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoComponent.d.ts","sourceRoot":"","sources":["../../src/ui/VideoComponent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VideoComponent.d.ts","sourceRoot":"","sources":["../../src/ui/VideoComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAK7C,KAAK,mBAAmB,GAAG,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAQF,QAAA,MAAM,cAAc,qEAAsE,mBAAmB,4CAmD5G,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -6,6 +6,6 @@ type Props = {
|
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
onSetLoading: (_s: boolean) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const VideoUploader: ({ floatingStyles, refs, onClose, blockId, onSetLoading }: Props) => JSX.Element;
|
|
9
|
+
declare const VideoUploader: ({ floatingStyles, refs, onClose, blockId, onSetLoading }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export { VideoUploader };
|
|
11
11
|
//# sourceMappingURL=VideoUploader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoUploader.d.ts","sourceRoot":"","sources":["../../src/ui/VideoUploader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAIhD,KAAK,KAAK,GAAG;IACX,cAAc,EAAE,aAAa,CAAC;IAC9B,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,IAAI,CAAC;CACrC,CAAC;AAIF,QAAA,MAAM,aAAa,6DAA8D,KAAK,
|
|
1
|
+
{"version":3,"file":"VideoUploader.d.ts","sourceRoot":"","sources":["../../src/ui/VideoUploader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAY,MAAM,OAAO,CAAC;AAIhD,KAAK,KAAK,GAAG;IACX,cAAc,EAAE,aAAa,CAAC;IAC9B,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,IAAI,CAAC;CACrC,CAAC;AAIF,QAAA,MAAM,aAAa,6DAA8D,KAAK,4CA8CrF,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/ui/VimeoPlayer.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VimeoPlayer.d.ts","sourceRoot":"","sources":["../../src/ui/VimeoPlayer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VimeoPlayer.d.ts","sourceRoot":"","sources":["../../src/ui/VimeoPlayer.tsx"],"names":[],"mappings":"AAKA,iBAAS,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE;;;CAAA,2CA4CzC;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare function YouTubePlayer({ videoId, ...other }: {
|
|
3
2
|
[x: string]: any;
|
|
4
3
|
videoId: any;
|
|
5
|
-
}): JSX.Element;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default YouTubePlayer;
|
|
7
6
|
//# sourceMappingURL=YootubePlayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YootubePlayer.d.ts","sourceRoot":"","sources":["../../src/ui/YootubePlayer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"YootubePlayer.d.ts","sourceRoot":"","sources":["../../src/ui/YootubePlayer.tsx"],"names":[],"mappings":"AAGA,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE;;;CAAA,2CAoC3C;AAED,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/video",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.4",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Darginec05 <devopsbanda@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/Darginec05/Editor-Yoopta#readme",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"@radix-ui/react-icons": "^1.3.0",
|
|
40
40
|
"re-resizable": "^6.9.11"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "7e5c32bd4c48dd21d84359a3fe87ed82cdaf964f"
|
|
43
43
|
}
|