@diplodoc/cut-extension
Advanced tools
Comparing version 0.2.6-beta3 to 0.2.6-beta4
@@ -1,1 +0,1 @@ | ||
export declare const CutRuntime: () => void; | ||
export declare const CutRuntime: () => boolean; |
@@ -1,15 +0,2 @@ | ||
"use strict";(()=>{var D=Object.create;var C=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames;var B=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty;var k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var z=(e,t,r,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of F(t))!M.call(e,o)&&o!==r&&C(e,o,{get:()=>t[o],enumerable:!(u=U(t,o))||u.enumerable});return e};var G=(e,t,r)=>(r=e!=null?D(B(e)):{},z(t||!e||!e.__esModule?C(r,"default",{value:e,enumerable:!0}):r,e));var L=k(n=>{"use strict";var y=Symbol.for("react.element"),H=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),J=Symbol.for("react.provider"),Q=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),ee=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),R=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=R&&e[R]||e["@@iterator"],typeof e=="function"?e:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,x={};function p(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||O}p.prototype.isReactComponent={};p.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};p.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function P(){}P.prototype=p.prototype;function v(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||O}var S=v.prototype=new P;S.constructor=v;j(S,p.prototype);S.isPureReactComponent=!0;var $=Array.isArray,g=Object.prototype.hasOwnProperty,E={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var u,o={},i=null,s=null;if(t!=null)for(u in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)g.call(t,u)&&!T.hasOwnProperty(u)&&(o[u]=t[u]);var f=arguments.length-2;if(f===1)o.children=r;else if(1<f){for(var c=Array(f),a=0;a<f;a++)c[a]=arguments[a+2];o.children=c}if(e&&e.defaultProps)for(u in f=e.defaultProps,f)o[u]===void 0&&(o[u]=f[u]);return{$$typeof:y,type:e,key:i,ref:s,props:o,_owner:E.current}}function ne(e,t){return{$$typeof:y,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function w(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function oe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var b=/\/+/g;function h(e,t){return typeof e=="object"&&e!==null&&e.key!=null?oe(""+e.key):t.toString(36)}function m(e,t,r,u,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case y:case H:s=!0}}if(s)return s=e,o=o(s),e=u===""?"."+h(s,0):u,$(o)?(r="",e!=null&&(r=e.replace(b,"$&/")+"/"),m(o,t,r,"",function(a){return a})):o!=null&&(w(o)&&(o=ne(o,r+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(b,"$&/")+"/")+e)),t.push(o)),1;if(s=0,u=u===""?".":u+":",$(e))for(var f=0;f<e.length;f++){i=e[f];var c=u+h(i,f);s+=m(i,t,r,c,o)}else if(c=re(e),typeof c=="function")for(e=c.call(e),f=0;!(i=e.next()).done;)i=i.value,c=u+h(i,f++),s+=m(i,t,r,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function d(e,t,r){if(e==null)return e;var u=[],o=0;return m(e,u,"","",function(i){return t.call(r,i,o++)}),u}function ue(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var l={current:null},_={transition:null},ce={ReactCurrentDispatcher:l,ReactCurrentBatchConfig:_,ReactCurrentOwner:E};n.Children={map:d,forEach:function(e,t,r){d(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return d(e,function(){t++}),t},toArray:function(e){return d(e,function(t){return t})||[]},only:function(e){if(!w(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};n.Component=p;n.Fragment=K;n.Profiler=W;n.PureComponent=v;n.StrictMode=Y;n.Suspense=Z;n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ce;n.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var u=j({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=E.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(c in t)g.call(t,c)&&!T.hasOwnProperty(c)&&(u[c]=t[c]===void 0&&f!==void 0?f[c]:t[c])}var c=arguments.length-2;if(c===1)u.children=r;else if(1<c){f=Array(c);for(var a=0;a<c;a++)f[a]=arguments[a+2];u.children=f}return{$$typeof:y,type:e.type,key:o,ref:i,props:u,_owner:s}};n.createContext=function(e){return e={$$typeof:Q,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:J,_context:e},e.Consumer=e};n.createElement=I;n.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t};n.createRef=function(){return{current:null}};n.forwardRef=function(e){return{$$typeof:X,render:e}};n.isValidElement=w;n.lazy=function(e){return{$$typeof:te,_payload:{_status:-1,_result:e},_init:ue}};n.memo=function(e,t){return{$$typeof:ee,type:e,compare:t===void 0?null:t}};n.startTransition=function(e){var t=_.transition;_.transition={};try{e()}finally{_.transition=t}};n.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};n.useCallback=function(e,t){return l.current.useCallback(e,t)};n.useContext=function(e){return l.current.useContext(e)};n.useDebugValue=function(){};n.useDeferredValue=function(e){return l.current.useDeferredValue(e)};n.useEffect=function(e,t){return l.current.useEffect(e,t)};n.useId=function(){return l.current.useId()};n.useImperativeHandle=function(e,t,r){return l.current.useImperativeHandle(e,t,r)};n.useInsertionEffect=function(e,t){return l.current.useInsertionEffect(e,t)};n.useLayoutEffect=function(e,t){return l.current.useLayoutEffect(e,t)};n.useMemo=function(e,t){return l.current.useMemo(e,t)};n.useReducer=function(e,t,r){return l.current.useReducer(e,t,r)};n.useRef=function(e){return l.current.useRef(e)};n.useState=function(e){return l.current.useState(e)};n.useSyncExternalStore=function(e,t,r){return l.current.useSyncExternalStore(e,t,r)};n.useTransition=function(){return l.current.useTransition()};n.version="18.2.0"});var A=k((se,N)=>{"use strict";N.exports=L()});var q=G(A());var V="yfm_cut";var pe=()=>{(0,q.useEffect)(()=>{window[V].focusActiveCut()})};})(); | ||
/*! Bundled license information: | ||
react/cjs/react.production.min.js: | ||
(** | ||
* @license React | ||
* react.production.min.js | ||
* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*) | ||
*/ | ||
import{useEffect as o}from"react";var t="yfm_cut";var m=()=>(o(()=>{window[t].focusActiveCut()}),!1);export{m as CutRuntime}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@diplodoc/cut-extension", | ||
"version": "0.2.6-beta3", | ||
"version": "0.2.6-beta4", | ||
"description": "Cut extension for Diplodoc platform", | ||
@@ -5,0 +5,0 @@ "main": "build/plugin/index.js", |
Sorry, the diff of this file is not supported yet
38771
315