richlagetest
Advanced tools
Comparing version 0.0.0-85ff40ffa005528b442691e059df951290aa312a to 0.0.0-89a7f1261c8928c8bde2899f84379dba7a137644
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends=require("@babel/runtime/helpers/extends"),_objectWithoutPropertiesLoose=require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),wixRichContentPluginCommons=require("wix-rich-content-plugin-commons"),wixRichContentEditorCommon=require("wix-rich-content-editor-common"),_inheritsLoose=require("@babel/runtime/helpers/inheritsLoose"),React=require("react"),ReactPlayer=require("react-player"),wixRichContentUiComponents=require("wix-rich-content-ui-components"),classNames=require("classnames"),reactDom=require("react-dom"),wixRichContentCommon=require("wix-rich-content-common"),pluginSoundCloudSchema=require("wix-rich-content-common/dist/statics/schemas/plugin-sound-cloud.schema.json"),lodash=require("lodash");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _ModalsMap,_extends__default=_interopDefaultLegacy(_extends),_objectWithoutPropertiesLoose__default=_interopDefaultLegacy(_objectWithoutPropertiesLoose),_inheritsLoose__default=_interopDefaultLegacy(_inheritsLoose),React__default=_interopDefaultLegacy(React),ReactPlayer__default=_interopDefaultLegacy(ReactPlayer),classNames__default=_interopDefaultLegacy(classNames),pluginSoundCloudSchema__default=_interopDefaultLegacy(pluginSoundCloudSchema),SoundCloudURLInputModal=function(_Component){function SoundCloudURLInputModal(props){var _this;(_this=_Component.call(this,props)||this).onConfirm=function(){var url=_this.state.url;if(url&&ReactPlayer__default.default.canPlay(url)){var _helpers$closeModal,_this$props=_this.props,_componentData=_this$props.componentData,helpers=_this$props.helpers,pubsub=_this$props.pubsub,onConfirm=_this$props.onConfirm;onConfirm?onConfirm(_extends__default.default({},_componentData,{src:url})):pubsub.update("componentData",{src:url}),helpers&&helpers.onVideoSelected&&helpers.onVideoSelected(url,(function(data){return pubsub.update("componentData",{metadata:_extends__default.default({},data)})})),null===(_helpers$closeModal=helpers.closeModal)||void 0===_helpers$closeModal||_helpers$closeModal.call(helpers)}else _this.setState({submittedInvalidUrl:!0})};var componentData=_this.props.componentData;return _this.state={url:componentData.src||"",submittedInvalidUrl:!1},_this}return _inheritsLoose__default.default(SoundCloudURLInputModal,_Component),SoundCloudURLInputModal.prototype.render=function(){var _this2=this,_this$state=this.state,url=_this$state.url,submittedInvalidUrl=_this$state.submittedInvalidUrl,_this$props2=this.props,t=_this$props2.t,isMobile=_this$props2.isMobile,languageDir=_this$props2.languageDir,helpers=_this$props2.helpers;return React__default.default.createElement(wixRichContentUiComponents.UrlInputModal,{onConfirm:this.onConfirm,input:url,t:t,languageDir:languageDir,title:t(isMobile?"SoundCloudUploadModal_Header_Mobile":"SoundCloudUploadModal_Header"),submittedInvalidUrl:submittedInvalidUrl,dataHook:"soundCloudUploadModal",onInputChange:function(url){return _this2.setState({url:url})},errorMessage:t("SoundCloudUploadModal_Input_InvalidUrl"),placeholder:t("SoundCloudUploadModal_Input_Placeholder"),onCloseRequested:helpers.closeModal,buttonSize:wixRichContentUiComponents.BUTTON_SIZE.medium})},SoundCloudURLInputModal}(React.Component),Modals={SOUND_CLOUD_URL_INPUT:"sound-cloud-url-input"},ModalsMap=((_ModalsMap={})[Modals.SOUND_CLOUD_URL_INPUT]=SoundCloudURLInputModal,_ModalsMap),InsertPluginIcon=function(props){return React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19"},props),React__default.default.createElement("path",{d:"M5.2,9 L5.8,9 C5.9104569,9 6,9.05969537 6,9.13333333 L6,14.8666667 C6,14.9403046 5.9104569,15 5.8,15 L5.2,15 C5.0895431,15 5,14.9403046 5,14.8666667 L5,9.13333333 C5,9.05969537 5.0895431,9 5.2,9 Z M3.2,8 L3.8,8 C3.9104569,8 4,8.06268014 4,8.14 L4,14.86 C4,14.9373198 3.9104569,15 3.8,15 L3.2,15 C3.0895431,15 3,14.9373198 3,14.86 L3,8.14 C3,8.06268014 3.0895431,8 3.2,8 Z M1.2,10 L1.8,10 C1.91045695,10 2,10.0447715 2,10.1 L2,13.9 C2,13.9552284 1.91045695,14 1.8,14 L1.2,14 C1.08954305,14 1,13.9552284 1,13.9 L1,10.1 C1,10.0447715 1.08954305,10 1.2,10 Z M18,11.6153846 C18,13.4846561 16.4846561,15 14.6153846,15 L7.84615385,15 C7.37883602,15 7,14.621164 7,14.1538462 L7,4.84615385 C8.1282051,4.28205128 9.39743587,4 10.8076923,4 C12.9089391,4 15.0384615,6.12783884 15.0384615,8.23076923 C16.7079981,8.4650878 18,9.8893546 18,11.6153846 Z M8,14 L14.5454545,14 C15.9010625,14 17,12.9010625 17,11.5454545 C17,10.3050264 16.0718944,9.25574738 14.8408286,9.08296796 L14.1363636,8.98409667 L14.1363636,8.27272727 C14.1363636,6.69177453 12.4441412,5 10.8636364,5 C9.81175629,5 8.85922746,5.17619715 8,5.52684396 L8,14 Z"}))},MediaReplaceIcon=function(props){return React__default.default.createElement("svg",Object.assign({xmlnsXlink:"http://www.w3.org/1999/xlink",width:19,height:19,viewBox:"0 0 19 19"},props),React__default.default.createElement("defs",null,React__default.default.createElement("path",{id:"replace-path",d:"M3 7.8V3.2c0-.11.09-.2.2-.2h.6c.11 0 .2.09.2.2v2.592A6.607 6.607 0 0 1 9.412 3C13.05 3 16 5.91 16 9.5c0 .168-.006.335-.02.5h-1.016a5.51 5.51 0 0 0 .022-.5c0-3.038-2.495-5.5-5.574-5.5a5.583 5.583 0 0 0-4.967 3H7.8c.11 0 .2.09.2.2v.6a.2.2 0 0 1-.2.2H3.2a.2.2 0 0 1-.2-.2zm13 3.4v4.6a.2.2 0 0 1-.2.2h-.6a.2.2 0 0 1-.2-.2v-2.592A6.607 6.607 0 0 1 9.588 16C5.95 16 3 13.09 3 9.5c0-.168.006-.335.02-.5h1.016a5.496 5.496 0 0 0-.022.5c0 3.038 2.495 5.5 5.574 5.5a5.583 5.583 0 0 0 4.967-3H11.2a.2.2 0 0 1-.2-.2v-.6c0-.11.09-.2.2-.2h4.6c.11 0 .2.09.2.2z"})),React__default.default.createElement("g",{fillRule:"evenodd"},React__default.default.createElement("mask",{id:"replace-mask"},React__default.default.createElement("use",{xlinkHref:"#replace-path"})),React__default.default.createElement("use",{fillRule:"nonzero",xlinkHref:"#replace-path"})))},createInlineButtons=function(_ref){var _settings$toolbar,_settings$toolbar$ico,t=_ref.t,isMobile=_ref.isMobile,settings=_ref.settings,icon=(null==settings||null===(_settings$toolbar=settings.toolbar)||void 0===_settings$toolbar||null===(_settings$toolbar$ico=_settings$toolbar.icons)||void 0===_settings$toolbar$ico?void 0:_settings$toolbar$ico.replace)||MediaReplaceIcon;return[{keyName:"sizeSmallCenter",type:wixRichContentPluginCommons.BUTTONS.SIZE_SMALL_CENTER,mobile:!1},{keyName:"sizeContent",type:wixRichContentPluginCommons.BUTTONS.SIZE_CONTENT,mobile:!1},{keyName:"sizeFullWidth",type:wixRichContentPluginCommons.BUTTONS.SIZE_FULL_WIDTH,mobile:!1},{keyName:"separator1",type:wixRichContentPluginCommons.BUTTONS.SEPARATOR,mobile:!1},{keyName:"sizeSmallLeft",type:wixRichContentPluginCommons.BUTTONS.SIZE_SMALL_LEFT,mobile:!1},{keyName:"sizeSmallRight",type:wixRichContentPluginCommons.BUTTONS.SIZE_SMALL_RIGHT,mobile:!1},{keyName:"separator2",type:wixRichContentPluginCommons.BUTTONS.SEPARATOR,mobile:!1},{keyName:"replace",type:wixRichContentPluginCommons.BUTTONS.EXTERNAL_MODAL,icon:icon,modalName:Modals.SOUND_CLOUD_URL_INPUT,modalStyles:wixRichContentEditorCommon.getModalStyles({fullScreen:!1,isMobile:isMobile}),mobile:!0,tooltipTextKey:"ReplaceSoundCloudButton_Tooltip",t:t},{keyName:"delete",type:wixRichContentPluginCommons.BUTTONS.DELETE,mobile:!0}]},ReactPlayerWrapper=function(_Component){function ReactPlayerWrapper(props){var _this;return(_this=_Component.call(this,props)||this).isVimeoAndRequireJS=function(){return!wixRichContentCommon.isSSR()&&(url=_this.props.url,MATCH_URL=/vimeo\.com\/.+/,!/vimeo\.com\/external\/[0-9]+\..+/.test(url)&&MATCH_URL.test(url))&&!window.Vimeo&&window.requirejs;var url,MATCH_URL},_this.state={vimeoLoaded:!1},_this}_inheritsLoose__default.default(ReactPlayerWrapper,_Component);var _proto=ReactPlayerWrapper.prototype;return _proto.componentDidMount=function(){var _this2=this;this.isVimeoAndRequireJS()&&window.require(["https://player.vimeo.com/api/player.js"],(function(player){window.Vimeo={Player:player},_this2.setState({vimeoLoaded:!0})}))},ReactPlayerWrapper.getDerivedStateFromProps=function(props){return props.disabled?{playing:!1}:null},_proto.render=function(){var _this3=this;return!this.state.vimeoLoaded&&this.isVimeoAndRequireJS()?null:React__default.default.createElement(ReactPlayer__default.default,_extends__default.default({playing:this.state.playing,onPlay:function(){return _this3.setState({playing:!0})},onPause:function(){return _this3.setState({playing:!1})}},this.props))},ReactPlayerWrapper}(React.Component);ReactPlayerWrapper.defaultProps={};var styles$1={soundCloud_player:"_1fHLh",soundCloud_container:"_2yaT6"},SoundCloudViewer=function(_Component){function SoundCloudViewer(props){var _this;return(_this=_Component.call(this,props)||this).handleReady=function(){_this.state.isLoaded||_this.setState({isLoaded:!0})},wixRichContentCommon.validate(props.componentData,pluginSoundCloudSchema__default.default),_this.state={playing:!1,isLoaded:!1},_this}_inheritsLoose__default.default(SoundCloudViewer,_Component);var _proto=SoundCloudViewer.prototype;return _proto.componentWillReceiveProps=function(nextProps){lodash.isEqual(nextProps.componentData,this.props.componentData)||wixRichContentCommon.validate(nextProps.componentData,pluginSoundCloudSchema__default.default)},_proto.render=function(){this.styles=wixRichContentCommon.mergeStyles({styles:styles$1,theme:this.props.theme});var _this$props=this.props,componentData=_this$props.componentData,width=_this$props.width,height=_this$props.height,controls=_this$props.controls,disabled=_this$props.disabled,setComponentUrl=_this$props.setComponentUrl;null==setComponentUrl||setComponentUrl(componentData.src);var isLoaded=this.state.isLoaded,props={width:width,height:height,controls:controls,disabled:disabled};return React__default.default.createElement(ReactPlayerWrapper,_extends__default.default({className:classNames__default.default(this.styles.soundCloud_player),url:componentData.src,onReady:this.handleReady,"data-loaded":isLoaded},props))},SoundCloudViewer}(React.Component);SoundCloudViewer.defaultProps={width:"100%",height:"100%",controls:!0};var styles={soundCloud_player:"_1K4oD",soundCloud_container:"_2NrS-",soundCloud_overlay:"_2_YOf",soundCloud_overlay_message:"_3REam"},SOUND_CLOUD_TYPE="wix-draft-plugin-sound-cloud",DEFAULTS$1=Object.freeze({config:{size:"content",alignment:"center"}}),SoundCloud=function(_Component){function SoundCloud(props){var _this;(_this=_Component.call(this,props)||this).setPlayer=function(player){_this.player=player},_this.handlePlay=function(event){event.preventDefault(),event.stopPropagation(),_this.setState({isLoading:!0}),setTimeout((function(){return _this.handleReady()}),5e3)},_this.handleSoundCloudStart=function(player){_this.player!==player&&_this.setState({isLoading:!1,isLoaded:!1})},_this.handleReady=function(){_this.state.isLoaded||_this.setState({isLoaded:!0})},_this.renderOverlay=function(styles,t){var isLoaded=_this.state.isLoaded,overlayText=t("SoundCloudComponent_Overlay");return React__default.default.createElement("div",{className:classNames__default.default(styles.soundCloud_overlay)},isLoaded&&React__default.default.createElement("span",{className:styles.soundCloud_overlay_message},overlayText))},_this.renderPlayer=function(){var _this$props=_this.props,componentData=_this$props.componentData,theme=_this$props.theme,disabled=_this$props.disabled,setComponentUrl=_this$props.setComponentUrl;return React__default.default.createElement(SoundCloudViewer,{ref:_this.setPlayer,componentData:componentData,onReady:_this.handleReady,onStart:_this.handleStart,theme:theme,disabled:disabled,setComponentUrl:setComponentUrl})},_this.onKeyDown=function(e,handler){"Enter"!==e.key&&" "!==e.key||handler()};var isPlayable=!props.blockProps;return _this.state={isLoading:!1,isLoaded:!1,isPlayable:isPlayable},_this}_inheritsLoose__default.default(SoundCloud,_Component);var _proto=SoundCloud.prototype;return _proto.componentDidMount=function(){this.handlePlayerFocus()},_proto.componentDidUpdate=function(){this.handlePlayerFocus()},_proto.handlePlayerFocus=function(){return!this.state.isPlayable&&this.player&&reactDom.findDOMNode(this.player).querySelector("iframe")&&(reactDom.findDOMNode(this.player).querySelector("iframe").tabIndex=-1)},_proto.render=function(){var _this2=this;this.styles=this.styles||wixRichContentCommon.mergeStyles({styles:styles,theme:this.props.theme});var _this$props2=this.props,className=_this$props2.className,onClick=_this$props2.onClick,isPlayable=this.state.isPlayable,containerClassNames=classNames__default.default(this.styles.soundCloud_container,className||"");return React__default.default.createElement("div",{"data-hook":"soundCloudPlayer",onClick:onClick,className:containerClassNames,onKeyDown:function(e){return _this2.onKeyDown(e,onClick)},draggable:!0},!isPlayable&&this.renderOverlay(this.styles,this.props.t),this.renderPlayer())},SoundCloud}(React.Component);SoundCloud.type={SOUND_CLOUD_TYPE:SOUND_CLOUD_TYPE};var createInsertButtons=function(_ref){var _settings$toolbar,_settings$toolbar$ico,t=_ref.t,isMobile=_ref.isMobile,settings=_ref.settings,content=isMobile?{maxWidth:580,minHeight:"100%",minWidth:"100%",margin:0,alignContent:"center",top:0,transform:"none"}:{maxWidth:580,minHeight:348},icon=(null==settings||null===(_settings$toolbar=settings.toolbar)||void 0===_settings$toolbar||null===(_settings$toolbar$ico=_settings$toolbar.icons)||void 0===_settings$toolbar$ico?void 0:_settings$toolbar$ico.InsertPluginButtonIcon)||InsertPluginIcon;return[{type:wixRichContentEditorCommon.BUTTON_TYPES.MODAL,name:wixRichContentEditorCommon.INSERT_PLUGIN_BUTTONS.SOUND_CLOUD,tooltip:t("SoundCloudPlugin_InsertButton_Tooltip"),getIcon:function(){return icon},componentData:DEFAULTS$1,toolbars:[wixRichContentEditorCommon.TOOLBARS.INSERT_PLUGIN,wixRichContentEditorCommon.TOOLBARS.MOBILE,wixRichContentEditorCommon.TOOLBARS.FOOTER,wixRichContentEditorCommon.TOOLBARS.SIDE],modalElement:SoundCloudURLInputModal,modalStyles:wixRichContentEditorCommon.getModalStyles({customStyles:{content:content},fullScreen:!1,isMobile:isMobile}),section:"BlockToolbar_Section_Embed_Social"}]},createToolbar=function(_ref){var t=_ref.t,isMobile=_ref.isMobile,settings=_ref.settings;return{InlineButtons:createInlineButtons({t:t,isMobile:isMobile,settings:settings}),InsertButtons:createInsertButtons({t:t,isMobile:isMobile,settings:settings}),name:"soundCloud"}};function _toPropertyKey(arg){var key=function(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"==typeof key?key:String(key)}var createSoundCloudPlugin=function(config){var type=SOUND_CLOUD_TYPE,helpers=config.helpers,t=config.t,_config$type=config[type],settings=void 0===_config$type?{}:_config$type,isMobile=config.isMobile,rest=_objectWithoutPropertiesLoose__default.default(config,["helpers","t",type,"isMobile"].map(_toPropertyKey));return console.warn("Sound-cloud plugin is deprecated and will be removed in the next version. Please consume sound-cloud plugin through video plugin as described in https://ricos.js.org/docs/plugins_api/VideoPlugin#sound-cloud-plugin"),wixRichContentPluginCommons.createBasePlugin(_extends__default.default({component:SoundCloud,settings:settings,type:type,toolbar:createToolbar({helpers:helpers,t:t,isMobile:isMobile,settings:settings}),helpers:helpers,t:t,isMobile:isMobile,defaultPluginData:DEFAULTS$1},rest))};createSoundCloudPlugin.functionName=SOUND_CLOUD_TYPE;var containerClassName=function(theme){return wixRichContentCommon.mergeStyles({styles:styles$1,theme:theme}).soundCloud_container},DEFAULTS_config={};exports.Modals=Modals,exports.ModalsMap=ModalsMap,exports.SOUND_CLOUD_TYPE=SOUND_CLOUD_TYPE,exports.SoundCloudViewer=SoundCloudViewer,exports.createSoundCloudPlugin=createSoundCloudPlugin,exports.pluginSoundCloud=function(config){return{config:_extends__default.default({},DEFAULTS_config,config),type:SOUND_CLOUD_TYPE,createPlugin:createSoundCloudPlugin,ModalsMap:ModalsMap}},exports.soundCloudTypeMapper=function(){var _ref;return(_ref={})[SOUND_CLOUD_TYPE]={component:SoundCloudViewer,classNameStrategies:{container:containerClassName}},_ref}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends=require("@babel/runtime/helpers/extends"),_objectWithoutPropertiesLoose=require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),wixRichContentEditorCommon=require("wix-rich-content-editor-common"),React=require("react"),wixRichContentPluginCommons=require("wix-rich-content-plugin-commons");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _extends__default=_interopDefaultLegacy(_extends),_objectWithoutPropertiesLoose__default=_interopDefaultLegacy(_objectWithoutPropertiesLoose),React__default=_interopDefaultLegacy(React),decreaseIndentPluginIcon=function(props){return props.newFormattingToolbar?React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13"},props),React__default.default.createElement("g",{fill:"none",fillRule:"evenodd"},React__default.default.createElement("g",{fill:"currentColor"},React__default.default.createElement("g",null,React__default.default.createElement("path",{d:"M17.001 15.999V17H4v-1.001h13.001zM17 12v1h-7v-1h7zM7 8v5l-3-2.5L7 8zm10 0v1h-7V8h7zm.001-4v1H4V4h13.001z",transform:"translate(-570.000000, -81.000000) translate(566.000000, 77.000000)"}))))):React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"19",height:"19",viewBox:"0 0 19 19"},props),React__default.default.createElement("defs",null,React__default.default.createElement("path",{id:"decrease-indent",d:"M3.973 3l1.89 2 .002.006.098.157.037.191-.037.191-.098.157-.003.005-1.889 2L3.306 7l1.082-1.146H0v-1h4.388L3.306 3.707 3.973 3z"})),React__default.default.createElement("g",{fillRule:"evenodd",transform:"translate(2 4)"},React__default.default.createElement("path",{d:"M3.2 0h10.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H3.2C3.09 1 3 .91 3 .8V.2c0-.11.09-.2.2-.2zM8.2 5h5.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H8.2c-.11 0-.2-.09-.2-.2v-.6c0-.11.09-.2.2-.2zM3.2 10h10.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H3.2c-.11 0-.2-.09-.2-.2v-.6c0-.11.09-.2.2-.2z"}),React__default.default.createElement("use",{transform:"rotate(-180 3 5.354)",xlinkHref:"#decrease-indent"})))},increaseIndentPluginIcon=function(props){return props.newFormattingToolbar?React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"13",viewBox:"0 0 14 13"},props),React__default.default.createElement("g",{fill:"none",fillRule:"evenodd"},React__default.default.createElement("g",{fill:"currentColor"},React__default.default.createElement("g",null,React__default.default.createElement("path",{d:"M16.5 15.999V17h-13v-1.001h13zm0-3.999v1h-7v-1h7zm-13-4l3 2.5-3 2.5V8zm13 0v1h-7V8h7zm0-4v1h-13V4h13z",transform:"translate(-537.000000, -81.000000) translate(534.000000, 77.000000)"}))))):React__default.default.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"19",height:"19",viewBox:"0 0 19 19"},props),React__default.default.createElement("defs",null,React__default.default.createElement("path",{id:"increase-indent",d:"M3.973 3l1.89 2 .002.006.098.157.037.191-.037.191-.098.157-.003.005-1.889 2L3.306 7l1.082-1.146H0v-1h4.388L3.306 3.707 3.973 3z"})),React__default.default.createElement("g",{fillRule:"evenodd",transform:"translate(2 4)"},React__default.default.createElement("g",{fillRule:"nonzero"},React__default.default.createElement("path",{d:"M.2 0h10.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H.2C.09 1 0 .91 0 .8V.2C0 .09.09 0 .2 0zM5.2 5h5.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H5.2c-.11 0-.2-.09-.2-.2v-.6c0-.11.09-.2.2-.2zM.2 10h10.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H.2c-.11 0-.2-.09-.2-.2v-.6c0-.11.09-.2.2-.2z",transform:"translate(3)"})),React__default.default.createElement("use",{xlinkHref:"#increase-indent"})))},INDENT_TYPE="wix-rich-content-plugin-indent",IndentButton=function(props){var theme=props.theme,helpers=props.helpers,isMobile=props.isMobile,t=props.t,tabIndex=props.tabIndex,setEditorState=props.setEditorState,getEditorState=props.getEditorState,adjustment=props.adjustment,tooltipKey=props.tooltipKey,dataHook=props.dataHook,icon=props.icon,INCREASE_INDENT=wixRichContentEditorCommon.FORMATTING_BUTTONS.INCREASE_INDENT,DECREASE_INDENT=wixRichContentEditorCommon.FORMATTING_BUTTONS.DECREASE_INDENT;return React__default.default.createElement(wixRichContentEditorCommon.InlineToolbarButton,{onClick:function(){var editorState=getEditorState(),newState=wixRichContentEditorCommon.indentSelectedBlocks(editorState,adjustment);newState!==editorState&&setEditorState(newState)},helpers:helpers,theme:theme,isMobile:isMobile,tooltipText:t(tooltipKey),dataHook:dataHook,formattingButtonName:adjustment>0?INCREASE_INDENT:DECREASE_INDENT,tabIndex:tabIndex,icon:icon,pluginType:INDENT_TYPE})},DecreaseIndentButton=function(props){return React__default.default.createElement(IndentButton,Object.assign({},props,{adjustment:-1,tooltipKey:"decreaseIndentButton_Tooltip",dataHook:"decreaseIndentButton",icon:decreaseIndentPluginIcon}))},IncreaseIndentButton=function(props){return React__default.default.createElement(IndentButton,Object.assign({},props,{adjustment:1,tooltipKey:"increaseIndentButton_Tooltip",dataHook:"increaseIndentButton",icon:increaseIndentPluginIcon}))},createToolbar=function(_ref){var getEditorState=_ref.getEditorState,settings=_ref.settings,setEditorState=_ref.setEditorState,t=_ref.t,experiments=_ref.experiments,onKeyboardShortcutClick=_ref.onKeyboardShortcutClick,getIconByDirection=function(type){var _experiments$newForma,_settings$toolbar,_settings$toolbar$ico,_settings$toolbar2,_settings$toolbar2$ic,_settings$toolbar3,_settings$toolbar3$ic,_settings$toolbar4,_settings$toolbar4$ic,editorState=getEditorState(),content=editorState.getCurrentContent(),key=editorState.getSelection().getStartKey(),selectedBlockKey=content.getBlockForKey(key).getKey(),directionMap=editorState.getDirectionMap(),newFormattingToolbar=null==experiments||null===(_experiments$newForma=experiments.newFormattingToolbar)||void 0===_experiments$newForma?void 0:_experiments$newForma.enabled;return{LTR:{indent:(null==settings||null===(_settings$toolbar=settings.toolbar)||void 0===_settings$toolbar||null===(_settings$toolbar$ico=_settings$toolbar.icons)||void 0===_settings$toolbar$ico?void 0:_settings$toolbar$ico.IncreaseIndent)||function(){return increaseIndentPluginIcon({newFormattingToolbar:newFormattingToolbar})},unindent:(null==settings||null===(_settings$toolbar2=settings.toolbar)||void 0===_settings$toolbar2||null===(_settings$toolbar2$ic=_settings$toolbar2.icons)||void 0===_settings$toolbar2$ic?void 0:_settings$toolbar2$ic.DecreaseIndent)||function(){return decreaseIndentPluginIcon({newFormattingToolbar:newFormattingToolbar})}},RTL:{unindent:(null==settings||null===(_settings$toolbar3=settings.toolbar)||void 0===_settings$toolbar3||null===(_settings$toolbar3$ic=_settings$toolbar3.icons)||void 0===_settings$toolbar3$ic?void 0:_settings$toolbar3$ic.IncreaseIndent)||function(){return increaseIndentPluginIcon({newFormattingToolbar:newFormattingToolbar})},indent:(null==settings||null===(_settings$toolbar4=settings.toolbar)||void 0===_settings$toolbar4||null===(_settings$toolbar4$ic=_settings$toolbar4.icons)||void 0===_settings$toolbar4$ic?void 0:_settings$toolbar4$ic.DecreaseIndent)||function(){return decreaseIndentPluginIcon({newFormattingToolbar:newFormattingToolbar})}}}[directionMap.get(selectedBlockKey)][type]};return{TextButtonMapper:function(){var _ref2;return(_ref2={})[wixRichContentEditorCommon.FORMATTING_BUTTONS.DECREASE_INDENT]={component:DecreaseIndentButton,externalizedButtonProps:{onClick:function(e){e.preventDefault();var indented=wixRichContentEditorCommon.indentSelectedBlocks(getEditorState(),-1);setEditorState(indented)},isActive:function(){return!1},getIcon:function(){return getIconByDirection("unindent")},tooltip:t("decreaseIndentButton_Tooltip"),getLabel:function(){return""},type:wixRichContentEditorCommon.BUTTON_TYPES.BUTTON,isDisabled:function(){return wixRichContentEditorCommon.isAtomicBlockFocused(getEditorState())}},keyBindings:[{keyCommand:{command:wixRichContentEditorCommon.COMMANDS.DECREASE_INDENT,modifiers:[wixRichContentEditorCommon.MODIFIERS.COMMAND,wixRichContentEditorCommon.MODIFIERS.SHIFT],key:"m"},commandHandler:function(editorState){return onKeyboardShortcutClick({buttonName:wixRichContentEditorCommon.COMMANDS.DECREASE_INDENT,pluginId:INDENT_TYPE}),wixRichContentEditorCommon.indentSelectedBlocks(editorState,-1)}}]},_ref2[wixRichContentEditorCommon.FORMATTING_BUTTONS.INCREASE_INDENT]={component:IncreaseIndentButton,externalizedButtonProps:{onClick:function(e){e.preventDefault();var indented=wixRichContentEditorCommon.indentSelectedBlocks(getEditorState(),1);setEditorState(indented)},isActive:function(){return!1},getIcon:function(){return getIconByDirection("indent")},tooltip:t("increaseIndentButton_Tooltip"),getLabel:function(){return""},type:wixRichContentEditorCommon.BUTTON_TYPES.BUTTON,isDisabled:function(){return wixRichContentEditorCommon.isAtomicBlockFocused(getEditorState())}},keyBindings:[{keyCommand:{command:wixRichContentEditorCommon.COMMANDS.INCREASE_INDENT,modifiers:[wixRichContentEditorCommon.MODIFIERS.COMMAND],key:"m"},commandHandler:function(editorState){return onKeyboardShortcutClick({buttonName:wixRichContentEditorCommon.COMMANDS.INCREASE_INDENT,pluginId:INDENT_TYPE}),wixRichContentEditorCommon.indentSelectedBlocks(editorState,1)}}]},_ref2},name:"indent"}},DEFAULTS=Object.freeze({type:INDENT_TYPE,config:{}});function _toPropertyKey(arg){var key=function(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"==typeof key?key:String(key)}var createIndentPlugin=function(config){var helpers=config.helpers,t=config.t,_config$INDENT_TYPE=config[INDENT_TYPE],settings=void 0===_config$INDENT_TYPE?{}:_config$INDENT_TYPE,isMobile=config.isMobile,rest=_objectWithoutPropertiesLoose__default.default(config,["helpers","t",INDENT_TYPE,"isMobile"].map(_toPropertyKey));return wixRichContentPluginCommons.createBasePlugin(_extends__default.default({type:INDENT_TYPE,toolbar:createToolbar(config),helpers:helpers,settings:settings,t:t,isMobile:isMobile,defaultPluginData:DEFAULTS},rest))};createIndentPlugin.functionName=INDENT_TYPE;exports.INDENT_TYPE=INDENT_TYPE,exports.createIndentPlugin=createIndentPlugin,exports.pluginIndent=function(config){return{config:_extends__default.default({},DEFAULTS.config,config),type:INDENT_TYPE,createPlugin:createIndentPlugin}}; | ||
//# sourceMappingURL=module.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/objectWithoutPropertiesLoose";import{BUTTONS,createBasePlugin}from"wix-rich-content-plugin-commons";import{getModalStyles,BUTTON_TYPES,INSERT_PLUGIN_BUTTONS,TOOLBARS}from"wix-rich-content-editor-common";import _inheritsLoose from"@babel/runtime/helpers/inheritsLoose";import React,{Component}from"react";import ReactPlayer from"react-player";import{UrlInputModal,BUTTON_SIZE}from"wix-rich-content-ui-components";import classNames from"classnames";import{findDOMNode}from"react-dom";import{isSSR,validate,mergeStyles}from"wix-rich-content-common";import pluginSoundCloudSchema from"wix-rich-content-common/dist/statics/schemas/plugin-sound-cloud.schema.json";import{isEqual}from"lodash";var _ModalsMap,SoundCloudURLInputModal=function(_Component){function SoundCloudURLInputModal(props){var _this;(_this=_Component.call(this,props)||this).onConfirm=function(){var url=_this.state.url;if(url&&ReactPlayer.canPlay(url)){var _helpers$closeModal,_this$props=_this.props,_componentData=_this$props.componentData,helpers=_this$props.helpers,pubsub=_this$props.pubsub,onConfirm=_this$props.onConfirm;onConfirm?onConfirm(_extends({},_componentData,{src:url})):pubsub.update("componentData",{src:url}),helpers&&helpers.onVideoSelected&&helpers.onVideoSelected(url,(function(data){return pubsub.update("componentData",{metadata:_extends({},data)})})),null===(_helpers$closeModal=helpers.closeModal)||void 0===_helpers$closeModal||_helpers$closeModal.call(helpers)}else _this.setState({submittedInvalidUrl:!0})};var componentData=_this.props.componentData;return _this.state={url:componentData.src||"",submittedInvalidUrl:!1},_this}return _inheritsLoose(SoundCloudURLInputModal,_Component),SoundCloudURLInputModal.prototype.render=function(){var _this2=this,_this$state=this.state,url=_this$state.url,submittedInvalidUrl=_this$state.submittedInvalidUrl,_this$props2=this.props,t=_this$props2.t,isMobile=_this$props2.isMobile,languageDir=_this$props2.languageDir,helpers=_this$props2.helpers;return React.createElement(UrlInputModal,{onConfirm:this.onConfirm,input:url,t:t,languageDir:languageDir,title:t(isMobile?"SoundCloudUploadModal_Header_Mobile":"SoundCloudUploadModal_Header"),submittedInvalidUrl:submittedInvalidUrl,dataHook:"soundCloudUploadModal",onInputChange:function(url){return _this2.setState({url:url})},errorMessage:t("SoundCloudUploadModal_Input_InvalidUrl"),placeholder:t("SoundCloudUploadModal_Input_Placeholder"),onCloseRequested:helpers.closeModal,buttonSize:BUTTON_SIZE.medium})},SoundCloudURLInputModal}(Component),Modals={SOUND_CLOUD_URL_INPUT:"sound-cloud-url-input"},ModalsMap=((_ModalsMap={})[Modals.SOUND_CLOUD_URL_INPUT]=SoundCloudURLInputModal,_ModalsMap),InsertPluginIcon=function(props){return React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19"},props),React.createElement("path",{d:"M5.2,9 L5.8,9 C5.9104569,9 6,9.05969537 6,9.13333333 L6,14.8666667 C6,14.9403046 5.9104569,15 5.8,15 L5.2,15 C5.0895431,15 5,14.9403046 5,14.8666667 L5,9.13333333 C5,9.05969537 5.0895431,9 5.2,9 Z M3.2,8 L3.8,8 C3.9104569,8 4,8.06268014 4,8.14 L4,14.86 C4,14.9373198 3.9104569,15 3.8,15 L3.2,15 C3.0895431,15 3,14.9373198 3,14.86 L3,8.14 C3,8.06268014 3.0895431,8 3.2,8 Z M1.2,10 L1.8,10 C1.91045695,10 2,10.0447715 2,10.1 L2,13.9 C2,13.9552284 1.91045695,14 1.8,14 L1.2,14 C1.08954305,14 1,13.9552284 1,13.9 L1,10.1 C1,10.0447715 1.08954305,10 1.2,10 Z M18,11.6153846 C18,13.4846561 16.4846561,15 14.6153846,15 L7.84615385,15 C7.37883602,15 7,14.621164 7,14.1538462 L7,4.84615385 C8.1282051,4.28205128 9.39743587,4 10.8076923,4 C12.9089391,4 15.0384615,6.12783884 15.0384615,8.23076923 C16.7079981,8.4650878 18,9.8893546 18,11.6153846 Z M8,14 L14.5454545,14 C15.9010625,14 17,12.9010625 17,11.5454545 C17,10.3050264 16.0718944,9.25574738 14.8408286,9.08296796 L14.1363636,8.98409667 L14.1363636,8.27272727 C14.1363636,6.69177453 12.4441412,5 10.8636364,5 C9.81175629,5 8.85922746,5.17619715 8,5.52684396 L8,14 Z"}))},MediaReplaceIcon=function(props){return React.createElement("svg",Object.assign({xmlnsXlink:"http://www.w3.org/1999/xlink",width:19,height:19,viewBox:"0 0 19 19"},props),React.createElement("defs",null,React.createElement("path",{id:"replace-path",d:"M3 7.8V3.2c0-.11.09-.2.2-.2h.6c.11 0 .2.09.2.2v2.592A6.607 6.607 0 0 1 9.412 3C13.05 3 16 5.91 16 9.5c0 .168-.006.335-.02.5h-1.016a5.51 5.51 0 0 0 .022-.5c0-3.038-2.495-5.5-5.574-5.5a5.583 5.583 0 0 0-4.967 3H7.8c.11 0 .2.09.2.2v.6a.2.2 0 0 1-.2.2H3.2a.2.2 0 0 1-.2-.2zm13 3.4v4.6a.2.2 0 0 1-.2.2h-.6a.2.2 0 0 1-.2-.2v-2.592A6.607 6.607 0 0 1 9.588 16C5.95 16 3 13.09 3 9.5c0-.168.006-.335.02-.5h1.016a5.496 5.496 0 0 0-.022.5c0 3.038 2.495 5.5 5.574 5.5a5.583 5.583 0 0 0 4.967-3H11.2a.2.2 0 0 1-.2-.2v-.6c0-.11.09-.2.2-.2h4.6c.11 0 .2.09.2.2z"})),React.createElement("g",{fillRule:"evenodd"},React.createElement("mask",{id:"replace-mask"},React.createElement("use",{xlinkHref:"#replace-path"})),React.createElement("use",{fillRule:"nonzero",xlinkHref:"#replace-path"})))},createInlineButtons=function(_ref){var _settings$toolbar,_settings$toolbar$ico,t=_ref.t,isMobile=_ref.isMobile,settings=_ref.settings,icon=(null==settings||null===(_settings$toolbar=settings.toolbar)||void 0===_settings$toolbar||null===(_settings$toolbar$ico=_settings$toolbar.icons)||void 0===_settings$toolbar$ico?void 0:_settings$toolbar$ico.replace)||MediaReplaceIcon;return[{keyName:"sizeSmallCenter",type:BUTTONS.SIZE_SMALL_CENTER,mobile:!1},{keyName:"sizeContent",type:BUTTONS.SIZE_CONTENT,mobile:!1},{keyName:"sizeFullWidth",type:BUTTONS.SIZE_FULL_WIDTH,mobile:!1},{keyName:"separator1",type:BUTTONS.SEPARATOR,mobile:!1},{keyName:"sizeSmallLeft",type:BUTTONS.SIZE_SMALL_LEFT,mobile:!1},{keyName:"sizeSmallRight",type:BUTTONS.SIZE_SMALL_RIGHT,mobile:!1},{keyName:"separator2",type:BUTTONS.SEPARATOR,mobile:!1},{keyName:"replace",type:BUTTONS.EXTERNAL_MODAL,icon:icon,modalName:Modals.SOUND_CLOUD_URL_INPUT,modalStyles:getModalStyles({fullScreen:!1,isMobile:isMobile}),mobile:!0,tooltipTextKey:"ReplaceSoundCloudButton_Tooltip",t:t},{keyName:"delete",type:BUTTONS.DELETE,mobile:!0}]},ReactPlayerWrapper=function(_Component){function ReactPlayerWrapper(props){var _this;return(_this=_Component.call(this,props)||this).isVimeoAndRequireJS=function(){return!isSSR()&&(url=_this.props.url,MATCH_URL=/vimeo\.com\/.+/,!/vimeo\.com\/external\/[0-9]+\..+/.test(url)&&MATCH_URL.test(url))&&!window.Vimeo&&window.requirejs;var url,MATCH_URL},_this.state={vimeoLoaded:!1},_this}_inheritsLoose(ReactPlayerWrapper,_Component);var _proto=ReactPlayerWrapper.prototype;return _proto.componentDidMount=function(){var _this2=this;this.isVimeoAndRequireJS()&&window.require(["https://player.vimeo.com/api/player.js"],(function(player){window.Vimeo={Player:player},_this2.setState({vimeoLoaded:!0})}))},ReactPlayerWrapper.getDerivedStateFromProps=function(props){return props.disabled?{playing:!1}:null},_proto.render=function(){var _this3=this;return!this.state.vimeoLoaded&&this.isVimeoAndRequireJS()?null:React.createElement(ReactPlayer,_extends({playing:this.state.playing,onPlay:function(){return _this3.setState({playing:!0})},onPause:function(){return _this3.setState({playing:!1})}},this.props))},ReactPlayerWrapper}(Component);ReactPlayerWrapper.defaultProps={};var styles$1={soundCloud_player:"_1fHLh",soundCloud_container:"_2yaT6"},SoundCloudViewer=function(_Component){function SoundCloudViewer(props){var _this;return(_this=_Component.call(this,props)||this).handleReady=function(){_this.state.isLoaded||_this.setState({isLoaded:!0})},validate(props.componentData,pluginSoundCloudSchema),_this.state={playing:!1,isLoaded:!1},_this}_inheritsLoose(SoundCloudViewer,_Component);var _proto=SoundCloudViewer.prototype;return _proto.componentWillReceiveProps=function(nextProps){isEqual(nextProps.componentData,this.props.componentData)||validate(nextProps.componentData,pluginSoundCloudSchema)},_proto.render=function(){this.styles=mergeStyles({styles:styles$1,theme:this.props.theme});var _this$props=this.props,componentData=_this$props.componentData,width=_this$props.width,height=_this$props.height,controls=_this$props.controls,disabled=_this$props.disabled,setComponentUrl=_this$props.setComponentUrl;null==setComponentUrl||setComponentUrl(componentData.src);var isLoaded=this.state.isLoaded,props={width:width,height:height,controls:controls,disabled:disabled};return React.createElement(ReactPlayerWrapper,_extends({className:classNames(this.styles.soundCloud_player),url:componentData.src,onReady:this.handleReady,"data-loaded":isLoaded},props))},SoundCloudViewer}(Component);SoundCloudViewer.defaultProps={width:"100%",height:"100%",controls:!0};var styles={soundCloud_player:"_1K4oD",soundCloud_container:"_2NrS-",soundCloud_overlay:"_2_YOf",soundCloud_overlay_message:"_3REam"},SOUND_CLOUD_TYPE="wix-draft-plugin-sound-cloud",DEFAULTS$1=Object.freeze({config:{size:"content",alignment:"center"}}),SoundCloud=function(_Component){function SoundCloud(props){var _this;(_this=_Component.call(this,props)||this).setPlayer=function(player){_this.player=player},_this.handlePlay=function(event){event.preventDefault(),event.stopPropagation(),_this.setState({isLoading:!0}),setTimeout((function(){return _this.handleReady()}),5e3)},_this.handleSoundCloudStart=function(player){_this.player!==player&&_this.setState({isLoading:!1,isLoaded:!1})},_this.handleReady=function(){_this.state.isLoaded||_this.setState({isLoaded:!0})},_this.renderOverlay=function(styles,t){var isLoaded=_this.state.isLoaded,overlayText=t("SoundCloudComponent_Overlay");return React.createElement("div",{className:classNames(styles.soundCloud_overlay)},isLoaded&&React.createElement("span",{className:styles.soundCloud_overlay_message},overlayText))},_this.renderPlayer=function(){var _this$props=_this.props,componentData=_this$props.componentData,theme=_this$props.theme,disabled=_this$props.disabled,setComponentUrl=_this$props.setComponentUrl;return React.createElement(SoundCloudViewer,{ref:_this.setPlayer,componentData:componentData,onReady:_this.handleReady,onStart:_this.handleStart,theme:theme,disabled:disabled,setComponentUrl:setComponentUrl})},_this.onKeyDown=function(e,handler){"Enter"!==e.key&&" "!==e.key||handler()};var isPlayable=!props.blockProps;return _this.state={isLoading:!1,isLoaded:!1,isPlayable:isPlayable},_this}_inheritsLoose(SoundCloud,_Component);var _proto=SoundCloud.prototype;return _proto.componentDidMount=function(){this.handlePlayerFocus()},_proto.componentDidUpdate=function(){this.handlePlayerFocus()},_proto.handlePlayerFocus=function(){return!this.state.isPlayable&&this.player&&findDOMNode(this.player).querySelector("iframe")&&(findDOMNode(this.player).querySelector("iframe").tabIndex=-1)},_proto.render=function(){var _this2=this;this.styles=this.styles||mergeStyles({styles:styles,theme:this.props.theme});var _this$props2=this.props,className=_this$props2.className,onClick=_this$props2.onClick,isPlayable=this.state.isPlayable,containerClassNames=classNames(this.styles.soundCloud_container,className||"");return React.createElement("div",{"data-hook":"soundCloudPlayer",onClick:onClick,className:containerClassNames,onKeyDown:function(e){return _this2.onKeyDown(e,onClick)},draggable:!0},!isPlayable&&this.renderOverlay(this.styles,this.props.t),this.renderPlayer())},SoundCloud}(Component);SoundCloud.type={SOUND_CLOUD_TYPE:SOUND_CLOUD_TYPE};var createInsertButtons=function(_ref){var _settings$toolbar,_settings$toolbar$ico,t=_ref.t,isMobile=_ref.isMobile,settings=_ref.settings,content=isMobile?{maxWidth:580,minHeight:"100%",minWidth:"100%",margin:0,alignContent:"center",top:0,transform:"none"}:{maxWidth:580,minHeight:348},icon=(null==settings||null===(_settings$toolbar=settings.toolbar)||void 0===_settings$toolbar||null===(_settings$toolbar$ico=_settings$toolbar.icons)||void 0===_settings$toolbar$ico?void 0:_settings$toolbar$ico.InsertPluginButtonIcon)||InsertPluginIcon;return[{type:BUTTON_TYPES.MODAL,name:INSERT_PLUGIN_BUTTONS.SOUND_CLOUD,tooltip:t("SoundCloudPlugin_InsertButton_Tooltip"),getIcon:function(){return icon},componentData:DEFAULTS$1,toolbars:[TOOLBARS.INSERT_PLUGIN,TOOLBARS.MOBILE,TOOLBARS.FOOTER,TOOLBARS.SIDE],modalElement:SoundCloudURLInputModal,modalStyles:getModalStyles({customStyles:{content:content},fullScreen:!1,isMobile:isMobile}),section:"BlockToolbar_Section_Embed_Social"}]},createToolbar=function(_ref){var t=_ref.t,isMobile=_ref.isMobile,settings=_ref.settings;return{InlineButtons:createInlineButtons({t:t,isMobile:isMobile,settings:settings}),InsertButtons:createInsertButtons({t:t,isMobile:isMobile,settings:settings}),name:"soundCloud"}};function _toPropertyKey(arg){var key=function(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"==typeof key?key:String(key)}var createSoundCloudPlugin=function(config){var type=SOUND_CLOUD_TYPE,helpers=config.helpers,t=config.t,_config$type=config[type],settings=void 0===_config$type?{}:_config$type,isMobile=config.isMobile,rest=_objectWithoutPropertiesLoose(config,["helpers","t",type,"isMobile"].map(_toPropertyKey));return console.warn("Sound-cloud plugin is deprecated and will be removed in the next version. Please consume sound-cloud plugin through video plugin as described in https://ricos.js.org/docs/plugins_api/VideoPlugin#sound-cloud-plugin"),createBasePlugin(_extends({component:SoundCloud,settings:settings,type:type,toolbar:createToolbar({helpers:helpers,t:t,isMobile:isMobile,settings:settings}),helpers:helpers,t:t,isMobile:isMobile,defaultPluginData:DEFAULTS$1},rest))};createSoundCloudPlugin.functionName=SOUND_CLOUD_TYPE;var containerClassName=function(theme){return mergeStyles({styles:styles$1,theme:theme}).soundCloud_container},typeMapper=function(){var _ref;return(_ref={})[SOUND_CLOUD_TYPE]={component:SoundCloudViewer,classNameStrategies:{container:containerClassName}},_ref},DEFAULTS_config={},pluginSoundCloud=function(config){return{config:_extends({},DEFAULTS_config,config),type:SOUND_CLOUD_TYPE,createPlugin:createSoundCloudPlugin,ModalsMap:ModalsMap}};export{Modals,ModalsMap,SOUND_CLOUD_TYPE,SoundCloudViewer,createSoundCloudPlugin,pluginSoundCloud,typeMapper as soundCloudTypeMapper}; | ||
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/objectWithoutPropertiesLoose";import{FORMATTING_BUTTONS,InlineToolbarButton,indentSelectedBlocks,BUTTON_TYPES,isAtomicBlockFocused,COMMANDS,MODIFIERS}from"wix-rich-content-editor-common";import React from"react";import{createBasePlugin}from"wix-rich-content-plugin-commons";var decreaseIndentPluginIcon=function(props){return props.newFormattingToolbar?React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13"},props),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("g",{fill:"currentColor"},React.createElement("g",null,React.createElement("path",{d:"M17.001 15.999V17H4v-1.001h13.001zM17 12v1h-7v-1h7zM7 8v5l-3-2.5L7 8zm10 0v1h-7V8h7zm.001-4v1H4V4h13.001z",transform:"translate(-570.000000, -81.000000) translate(566.000000, 77.000000)"}))))):React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"19",height:"19",viewBox:"0 0 19 19"},props),React.createElement("defs",null,React.createElement("path",{id:"decrease-indent",d:"M3.973 3l1.89 2 .002.006.098.157.037.191-.037.191-.098.157-.003.005-1.889 2L3.306 7l1.082-1.146H0v-1h4.388L3.306 3.707 3.973 3z"})),React.createElement("g",{fillRule:"evenodd",transform:"translate(2 4)"},React.createElement("path",{d:"M3.2 0h10.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H3.2C3.09 1 3 .91 3 .8V.2c0-.11.09-.2.2-.2zM8.2 5h5.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H8.2c-.11 0-.2-.09-.2-.2v-.6c0-.11.09-.2.2-.2zM3.2 10h10.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H3.2c-.11 0-.2-.09-.2-.2v-.6c0-.11.09-.2.2-.2z"}),React.createElement("use",{transform:"rotate(-180 3 5.354)",xlinkHref:"#decrease-indent"})))},increaseIndentPluginIcon=function(props){return props.newFormattingToolbar?React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"14",height:"13",viewBox:"0 0 14 13"},props),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("g",{fill:"currentColor"},React.createElement("g",null,React.createElement("path",{d:"M16.5 15.999V17h-13v-1.001h13zm0-3.999v1h-7v-1h7zm-13-4l3 2.5-3 2.5V8zm13 0v1h-7V8h7zm0-4v1h-13V4h13z",transform:"translate(-537.000000, -81.000000) translate(534.000000, 77.000000)"}))))):React.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"19",height:"19",viewBox:"0 0 19 19"},props),React.createElement("defs",null,React.createElement("path",{id:"increase-indent",d:"M3.973 3l1.89 2 .002.006.098.157.037.191-.037.191-.098.157-.003.005-1.889 2L3.306 7l1.082-1.146H0v-1h4.388L3.306 3.707 3.973 3z"})),React.createElement("g",{fillRule:"evenodd",transform:"translate(2 4)"},React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M.2 0h10.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H.2C.09 1 0 .91 0 .8V.2C0 .09.09 0 .2 0zM5.2 5h5.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H5.2c-.11 0-.2-.09-.2-.2v-.6c0-.11.09-.2.2-.2zM.2 10h10.6c.11 0 .2.09.2.2v.6c0 .11-.09.2-.2.2H.2c-.11 0-.2-.09-.2-.2v-.6c0-.11.09-.2.2-.2z",transform:"translate(3)"})),React.createElement("use",{xlinkHref:"#increase-indent"})))},INDENT_TYPE="wix-rich-content-plugin-indent",IndentButton=function(props){var theme=props.theme,helpers=props.helpers,isMobile=props.isMobile,t=props.t,tabIndex=props.tabIndex,setEditorState=props.setEditorState,getEditorState=props.getEditorState,adjustment=props.adjustment,tooltipKey=props.tooltipKey,dataHook=props.dataHook,icon=props.icon,INCREASE_INDENT=FORMATTING_BUTTONS.INCREASE_INDENT,DECREASE_INDENT=FORMATTING_BUTTONS.DECREASE_INDENT;return React.createElement(InlineToolbarButton,{onClick:function(){var editorState=getEditorState(),newState=indentSelectedBlocks(editorState,adjustment);newState!==editorState&&setEditorState(newState)},helpers:helpers,theme:theme,isMobile:isMobile,tooltipText:t(tooltipKey),dataHook:dataHook,formattingButtonName:adjustment>0?INCREASE_INDENT:DECREASE_INDENT,tabIndex:tabIndex,icon:icon,pluginType:INDENT_TYPE})},DecreaseIndentButton=function(props){return React.createElement(IndentButton,Object.assign({},props,{adjustment:-1,tooltipKey:"decreaseIndentButton_Tooltip",dataHook:"decreaseIndentButton",icon:decreaseIndentPluginIcon}))},IncreaseIndentButton=function(props){return React.createElement(IndentButton,Object.assign({},props,{adjustment:1,tooltipKey:"increaseIndentButton_Tooltip",dataHook:"increaseIndentButton",icon:increaseIndentPluginIcon}))},createToolbar=function(_ref){var getEditorState=_ref.getEditorState,settings=_ref.settings,setEditorState=_ref.setEditorState,t=_ref.t,experiments=_ref.experiments,onKeyboardShortcutClick=_ref.onKeyboardShortcutClick,getIconByDirection=function(type){var _experiments$newForma,_settings$toolbar,_settings$toolbar$ico,_settings$toolbar2,_settings$toolbar2$ic,_settings$toolbar3,_settings$toolbar3$ic,_settings$toolbar4,_settings$toolbar4$ic,editorState=getEditorState(),content=editorState.getCurrentContent(),key=editorState.getSelection().getStartKey(),selectedBlockKey=content.getBlockForKey(key).getKey(),directionMap=editorState.getDirectionMap(),newFormattingToolbar=null==experiments||null===(_experiments$newForma=experiments.newFormattingToolbar)||void 0===_experiments$newForma?void 0:_experiments$newForma.enabled;return{LTR:{indent:(null==settings||null===(_settings$toolbar=settings.toolbar)||void 0===_settings$toolbar||null===(_settings$toolbar$ico=_settings$toolbar.icons)||void 0===_settings$toolbar$ico?void 0:_settings$toolbar$ico.IncreaseIndent)||function(){return increaseIndentPluginIcon({newFormattingToolbar:newFormattingToolbar})},unindent:(null==settings||null===(_settings$toolbar2=settings.toolbar)||void 0===_settings$toolbar2||null===(_settings$toolbar2$ic=_settings$toolbar2.icons)||void 0===_settings$toolbar2$ic?void 0:_settings$toolbar2$ic.DecreaseIndent)||function(){return decreaseIndentPluginIcon({newFormattingToolbar:newFormattingToolbar})}},RTL:{unindent:(null==settings||null===(_settings$toolbar3=settings.toolbar)||void 0===_settings$toolbar3||null===(_settings$toolbar3$ic=_settings$toolbar3.icons)||void 0===_settings$toolbar3$ic?void 0:_settings$toolbar3$ic.IncreaseIndent)||function(){return increaseIndentPluginIcon({newFormattingToolbar:newFormattingToolbar})},indent:(null==settings||null===(_settings$toolbar4=settings.toolbar)||void 0===_settings$toolbar4||null===(_settings$toolbar4$ic=_settings$toolbar4.icons)||void 0===_settings$toolbar4$ic?void 0:_settings$toolbar4$ic.DecreaseIndent)||function(){return decreaseIndentPluginIcon({newFormattingToolbar:newFormattingToolbar})}}}[directionMap.get(selectedBlockKey)][type]};return{TextButtonMapper:function(){var _ref2;return(_ref2={})[FORMATTING_BUTTONS.DECREASE_INDENT]={component:DecreaseIndentButton,externalizedButtonProps:{onClick:function(e){e.preventDefault();var indented=indentSelectedBlocks(getEditorState(),-1);setEditorState(indented)},isActive:function(){return!1},getIcon:function(){return getIconByDirection("unindent")},tooltip:t("decreaseIndentButton_Tooltip"),getLabel:function(){return""},type:BUTTON_TYPES.BUTTON,isDisabled:function(){return isAtomicBlockFocused(getEditorState())}},keyBindings:[{keyCommand:{command:COMMANDS.DECREASE_INDENT,modifiers:[MODIFIERS.COMMAND,MODIFIERS.SHIFT],key:"m"},commandHandler:function(editorState){return onKeyboardShortcutClick({buttonName:COMMANDS.DECREASE_INDENT,pluginId:INDENT_TYPE}),indentSelectedBlocks(editorState,-1)}}]},_ref2[FORMATTING_BUTTONS.INCREASE_INDENT]={component:IncreaseIndentButton,externalizedButtonProps:{onClick:function(e){e.preventDefault();var indented=indentSelectedBlocks(getEditorState(),1);setEditorState(indented)},isActive:function(){return!1},getIcon:function(){return getIconByDirection("indent")},tooltip:t("increaseIndentButton_Tooltip"),getLabel:function(){return""},type:BUTTON_TYPES.BUTTON,isDisabled:function(){return isAtomicBlockFocused(getEditorState())}},keyBindings:[{keyCommand:{command:COMMANDS.INCREASE_INDENT,modifiers:[MODIFIERS.COMMAND],key:"m"},commandHandler:function(editorState){return onKeyboardShortcutClick({buttonName:COMMANDS.INCREASE_INDENT,pluginId:INDENT_TYPE}),indentSelectedBlocks(editorState,1)}}]},_ref2},name:"indent"}},DEFAULTS=Object.freeze({type:INDENT_TYPE,config:{}});function _toPropertyKey(arg){var key=function(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"==typeof key?key:String(key)}var createIndentPlugin=function(config){var helpers=config.helpers,t=config.t,_config$INDENT_TYPE=config[INDENT_TYPE],settings=void 0===_config$INDENT_TYPE?{}:_config$INDENT_TYPE,isMobile=config.isMobile,rest=_objectWithoutPropertiesLoose(config,["helpers","t",INDENT_TYPE,"isMobile"].map(_toPropertyKey));return createBasePlugin(_extends({type:INDENT_TYPE,toolbar:createToolbar(config),helpers:helpers,settings:settings,t:t,isMobile:isMobile,defaultPluginData:DEFAULTS},rest))};createIndentPlugin.functionName=INDENT_TYPE;var pluginIndent=function(config){return{config:_extends({},DEFAULTS.config,config),type:INDENT_TYPE,createPlugin:createIndentPlugin}};export{INDENT_TYPE,createIndentPlugin,pluginIndent}; | ||
//# sourceMappingURL=module.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends=require("@babel/runtime/helpers/extends"),_inheritsLoose=require("@babel/runtime/helpers/inheritsLoose"),React=require("react"),ReactPlayer=require("react-player"),wixRichContentCommon=require("wix-rich-content-common"),classNames=require("classnames"),pluginSoundCloudSchema=require("wix-rich-content-common/dist/statics/schemas/plugin-sound-cloud.schema.json"),lodash=require("lodash");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _extends__default=_interopDefaultLegacy(_extends),_inheritsLoose__default=_interopDefaultLegacy(_inheritsLoose),React__default=_interopDefaultLegacy(React),ReactPlayer__default=_interopDefaultLegacy(ReactPlayer),classNames__default=_interopDefaultLegacy(classNames),pluginSoundCloudSchema__default=_interopDefaultLegacy(pluginSoundCloudSchema),ReactPlayerWrapper=function(_Component){function ReactPlayerWrapper(props){var _this;return(_this=_Component.call(this,props)||this).isVimeoAndRequireJS=function(){return!wixRichContentCommon.isSSR()&&(url=_this.props.url,MATCH_URL=/vimeo\.com\/.+/,!/vimeo\.com\/external\/[0-9]+\..+/.test(url)&&MATCH_URL.test(url))&&!window.Vimeo&&window.requirejs;var url,MATCH_URL},_this.state={vimeoLoaded:!1},_this}_inheritsLoose__default.default(ReactPlayerWrapper,_Component);var _proto=ReactPlayerWrapper.prototype;return _proto.componentDidMount=function(){var _this2=this;this.isVimeoAndRequireJS()&&window.require(["https://player.vimeo.com/api/player.js"],(function(player){window.Vimeo={Player:player},_this2.setState({vimeoLoaded:!0})}))},ReactPlayerWrapper.getDerivedStateFromProps=function(props){return props.disabled?{playing:!1}:null},_proto.render=function(){var _this3=this;return!this.state.vimeoLoaded&&this.isVimeoAndRequireJS()?null:React__default.default.createElement(ReactPlayer__default.default,_extends__default.default({playing:this.state.playing,onPlay:function(){return _this3.setState({playing:!0})},onPause:function(){return _this3.setState({playing:!1})}},this.props))},ReactPlayerWrapper}(React.Component);ReactPlayerWrapper.defaultProps={};var styles={soundCloud_player:"_1fHLh",soundCloud_container:"_2yaT6"},SoundCloudViewer=function(_Component){function SoundCloudViewer(props){var _this;return(_this=_Component.call(this,props)||this).handleReady=function(){_this.state.isLoaded||_this.setState({isLoaded:!0})},wixRichContentCommon.validate(props.componentData,pluginSoundCloudSchema__default.default),_this.state={playing:!1,isLoaded:!1},_this}_inheritsLoose__default.default(SoundCloudViewer,_Component);var _proto=SoundCloudViewer.prototype;return _proto.componentWillReceiveProps=function(nextProps){lodash.isEqual(nextProps.componentData,this.props.componentData)||wixRichContentCommon.validate(nextProps.componentData,pluginSoundCloudSchema__default.default)},_proto.render=function(){this.styles=wixRichContentCommon.mergeStyles({styles:styles,theme:this.props.theme});var _this$props=this.props,componentData=_this$props.componentData,width=_this$props.width,height=_this$props.height,controls=_this$props.controls,disabled=_this$props.disabled,setComponentUrl=_this$props.setComponentUrl;null==setComponentUrl||setComponentUrl(componentData.src);var isLoaded=this.state.isLoaded,props={width:width,height:height,controls:controls,disabled:disabled};return React__default.default.createElement(ReactPlayerWrapper,_extends__default.default({className:classNames__default.default(this.styles.soundCloud_player),url:componentData.src,onReady:this.handleReady,"data-loaded":isLoaded},props))},SoundCloudViewer}(React.Component);SoundCloudViewer.defaultProps={width:"100%",height:"100%",controls:!0};var containerClassName=function(theme){return wixRichContentCommon.mergeStyles({styles:styles,theme:theme}).soundCloud_container},typeMapper=function(){var _ref;return(_ref={})["wix-draft-plugin-sound-cloud"]={component:SoundCloudViewer,classNameStrategies:{container:containerClassName}},_ref},DEFAULTS_config={};exports.SOUND_CLOUD_TYPE="wix-draft-plugin-sound-cloud",exports.pluginSoundCloud=function(config){return{config:_extends__default.default({},DEFAULTS_config,config),type:"wix-draft-plugin-sound-cloud",typeMapper:typeMapper}},exports.soundCloudTypeMapper=typeMapper; | ||
"use strict";function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var _extends__default=_interopDefaultLegacy(require("@babel/runtime/helpers/extends")),INDENT_TYPE="wix-rich-content-plugin-indent",DEFAULTS=Object.freeze({type:INDENT_TYPE,config:{}});exports.INDENT_TYPE=INDENT_TYPE,exports.pluginIndent=function(config){return{config:_extends__default.default({},DEFAULTS.config,config),type:INDENT_TYPE}}; | ||
//# sourceMappingURL=module.viewer.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
import _extends from"@babel/runtime/helpers/extends";import _inheritsLoose from"@babel/runtime/helpers/inheritsLoose";import React,{Component}from"react";import ReactPlayer from"react-player";import{isSSR,validate,mergeStyles}from"wix-rich-content-common";import classNames from"classnames";import pluginSoundCloudSchema from"wix-rich-content-common/dist/statics/schemas/plugin-sound-cloud.schema.json";import{isEqual}from"lodash";var ReactPlayerWrapper=function(_Component){function ReactPlayerWrapper(props){var _this;return(_this=_Component.call(this,props)||this).isVimeoAndRequireJS=function(){return!isSSR()&&(url=_this.props.url,MATCH_URL=/vimeo\.com\/.+/,!/vimeo\.com\/external\/[0-9]+\..+/.test(url)&&MATCH_URL.test(url))&&!window.Vimeo&&window.requirejs;var url,MATCH_URL},_this.state={vimeoLoaded:!1},_this}_inheritsLoose(ReactPlayerWrapper,_Component);var _proto=ReactPlayerWrapper.prototype;return _proto.componentDidMount=function(){var _this2=this;this.isVimeoAndRequireJS()&&window.require(["https://player.vimeo.com/api/player.js"],(function(player){window.Vimeo={Player:player},_this2.setState({vimeoLoaded:!0})}))},ReactPlayerWrapper.getDerivedStateFromProps=function(props){return props.disabled?{playing:!1}:null},_proto.render=function(){var _this3=this;return!this.state.vimeoLoaded&&this.isVimeoAndRequireJS()?null:React.createElement(ReactPlayer,_extends({playing:this.state.playing,onPlay:function(){return _this3.setState({playing:!0})},onPause:function(){return _this3.setState({playing:!1})}},this.props))},ReactPlayerWrapper}(Component);ReactPlayerWrapper.defaultProps={};var styles={soundCloud_player:"_1fHLh",soundCloud_container:"_2yaT6"},SoundCloudViewer=function(_Component){function SoundCloudViewer(props){var _this;return(_this=_Component.call(this,props)||this).handleReady=function(){_this.state.isLoaded||_this.setState({isLoaded:!0})},validate(props.componentData,pluginSoundCloudSchema),_this.state={playing:!1,isLoaded:!1},_this}_inheritsLoose(SoundCloudViewer,_Component);var _proto=SoundCloudViewer.prototype;return _proto.componentWillReceiveProps=function(nextProps){isEqual(nextProps.componentData,this.props.componentData)||validate(nextProps.componentData,pluginSoundCloudSchema)},_proto.render=function(){this.styles=mergeStyles({styles:styles,theme:this.props.theme});var _this$props=this.props,componentData=_this$props.componentData,width=_this$props.width,height=_this$props.height,controls=_this$props.controls,disabled=_this$props.disabled,setComponentUrl=_this$props.setComponentUrl;null==setComponentUrl||setComponentUrl(componentData.src);var isLoaded=this.state.isLoaded,props={width:width,height:height,controls:controls,disabled:disabled};return React.createElement(ReactPlayerWrapper,_extends({className:classNames(this.styles.soundCloud_player),url:componentData.src,onReady:this.handleReady,"data-loaded":isLoaded},props))},SoundCloudViewer}(Component);SoundCloudViewer.defaultProps={width:"100%",height:"100%",controls:!0};var SOUND_CLOUD_TYPE="wix-draft-plugin-sound-cloud",containerClassName=function(theme){return mergeStyles({styles:styles,theme:theme}).soundCloud_container},typeMapper=function(){var _ref;return(_ref={})["wix-draft-plugin-sound-cloud"]={component:SoundCloudViewer,classNameStrategies:{container:containerClassName}},_ref},DEFAULTS_config={},pluginSoundCloud=function(config){return{config:_extends({},DEFAULTS_config,config),type:"wix-draft-plugin-sound-cloud",typeMapper:typeMapper}};export{SOUND_CLOUD_TYPE,pluginSoundCloud,typeMapper as soundCloudTypeMapper}; | ||
import _extends from"@babel/runtime/helpers/extends";var INDENT_TYPE="wix-rich-content-plugin-indent",DEFAULTS=Object.freeze({type:INDENT_TYPE,config:{}}),pluginIndent=function(config){return{config:_extends({},DEFAULTS.config,config),type:INDENT_TYPE}};export{INDENT_TYPE,pluginIndent}; | ||
//# sourceMappingURL=module.viewer.js.map |
@@ -1,4 +0,5 @@ | ||
export declare const DEFAULTS: { | ||
export declare const DEFAULTS: Readonly<{ | ||
type: string; | ||
config: {}; | ||
}; | ||
}>; | ||
//# sourceMappingURL=defaults.d.ts.map |
@@ -1,4 +0,4 @@ | ||
import { SoundCloudPluginEditorConfig } from './types'; | ||
import { IndentPluginEditorConfig } from './types'; | ||
import { EditorPluginCreator } from 'wix-rich-content-common'; | ||
export declare const pluginSoundCloud: EditorPluginCreator<SoundCloudPluginEditorConfig>; | ||
export declare const pluginIndent: EditorPluginCreator<IndentPluginEditorConfig>; | ||
//# sourceMappingURL=editor.d.ts.map |
@@ -1,7 +0,4 @@ | ||
export { createSoundCloudPlugin } from './createSoundCloudPlugin'; | ||
export { default as SoundCloudViewer } from './soundCloud-viewer'; | ||
export { SOUND_CLOUD_TYPE } from './types'; | ||
export { Modals, ModalsMap } from './modals'; | ||
export { typeMapper as soundCloudTypeMapper } from './typeMapper'; | ||
export { pluginSoundCloud } from './editor'; | ||
export { createIndentPlugin } from './createIndentPlugin'; | ||
export { INDENT_TYPE } from './types'; | ||
export { pluginIndent } from './editor'; | ||
//# sourceMappingURL=index.d.ts.map |
import { EditorPluginConfig, ViewerPluginConfig } from 'wix-rich-content-common'; | ||
export declare const SOUND_CLOUD_TYPE = "wix-draft-plugin-sound-cloud"; | ||
export interface SoundCloudPluginEditorConfig extends EditorPluginConfig { | ||
export declare const INDENT_TYPE = "wix-rich-content-plugin-indent"; | ||
export interface IndentPluginEditorConfig extends EditorPluginConfig { | ||
[key: string]: any; | ||
} | ||
export interface SoundCloudPluginViewerConfig extends ViewerPluginConfig { | ||
export interface IndentPluginViewerConfig extends ViewerPluginConfig { | ||
[key: string]: any; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
@@ -1,6 +0,5 @@ | ||
import { typeMapper } from './typeMapper'; | ||
import { SOUND_CLOUD_TYPE, SoundCloudPluginViewerConfig } from './types'; | ||
import { INDENT_TYPE, IndentPluginViewerConfig } from './types'; | ||
import { ViewerPluginCreator } from 'wix-rich-content-common'; | ||
export { typeMapper as soundCloudTypeMapper, SOUND_CLOUD_TYPE }; | ||
export declare const pluginSoundCloud: ViewerPluginCreator<SoundCloudPluginViewerConfig>; | ||
export { INDENT_TYPE }; | ||
export declare const pluginIndent: ViewerPluginCreator<IndentPluginViewerConfig>; | ||
//# sourceMappingURL=viewer.d.ts.map |
@@ -1,1 +0,1 @@ | ||
{"name":"richlagetest","version":"0.0.0-85ff40ffa005528b442691e059df951290aa312a"} | ||
{"name":"richlagetest","version":"0.0.0-89a7f1261c8928c8bde2899f84379dba7a137644"} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
65194
31
142