Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

richlagetest

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

richlagetest - npm Package Compare versions

Comparing version 0.0.0-f4001b7701fab648a26d2592223771bcfad2ad47 to 0.0.0-f5183b37cc173895a8204172f7fa8aa0010dda09

dist/module.viewer.cjs.js

2

dist/module.cjs.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _inheritsLoose=require("@babel/runtime/helpers/inheritsLoose"),React=require("react"),wixRichContentCommon=require("wix-rich-content-common");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _inheritsLoose__default=_interopDefaultLegacy(_inheritsLoose),React__default=_interopDefaultLegacy(React),styles_container="_1RlQn",styles_viewerContainer="v7drN",styles_texts="_2muJu",styles_url="_3pkMv",styles_title="_3inqE",styles_description="_2JehM",styles_Image="CZtZ2",styles_ImageWrapper="JuiuN";function addLinkPreviewPopoverListener(container,callback){var handleMouseOver=function(event){var _event$target,_event$target$parentN,_event$target$parentN2,linkNode,url,linkNodeRect,position;return(null===(_event$target=event.target)||void 0===_event$target||null===(_event$target$parentN=_event$target.parentNode)||void 0===_event$target$parentN||null===(_event$target$parentN2=_event$target$parentN.dataset)||void 0===_event$target$parentN2?void 0:_event$target$parentN2.hook)===wixRichContentCommon.LINK_VIEWER_DATA_HOOK?(linkNode=event.target.closest("a"),url=linkNode.href,linkNodeRect=linkNode.getBoundingClientRect(),position={top:linkNodeRect.top+linkNodeRect.height+4,left:linkNodeRect.left},void callback(url,position)):callback(void 0)};return container.addEventListener("mouseover",handleMouseOver),function(){container.removeEventListener("mouseover",handleMouseOver)}}var LinkPreviewPopoverViewer=function(_React$Component){function LinkPreviewPopoverViewer(props){var _this;return(_this=_React$Component.call(this,props)||this).state={},_this}return _inheritsLoose__default.default(LinkPreviewPopoverViewer,_React$Component),LinkPreviewPopoverViewer.prototype.render=function(){var _this$props=this.props,title=_this$props.title,description=_this$props.description,provider_url=_this$props.provider_url,thumbnail_url=_this$props.thumbnail_url;return React__default.default.createElement("div",{className:styles_viewerContainer},thumbnail_url?React__default.default.createElement("div",{className:styles_ImageWrapper},React__default.default.createElement("img",{className:styles_Image,src:thumbnail_url,alt:""})):null,React__default.default.createElement("div",{className:styles_texts},React__default.default.createElement("div",{className:styles_url},provider_url),React__default.default.createElement("div",{className:styles_title},title),React__default.default.createElement("div",{className:styles_description},description)))},LinkPreviewPopoverViewer}(React__default.default.Component),LinkPreviewPopover=function(_React$Component){function LinkPreviewPopover(props){var _this;return(_this=_React$Component.call(this,props)||this).onPreview=function(url,position){if(!position)return _this.setState({linkPreviewData:void 0});_this.props.fetchUrlPreviewData(url).then((function(data){return _this.setState({linkPreviewData:{position:position,data:data}})}))},_this.addLinkPreviewPopoverListener=function(container){container&&!_this.removeLinkPreviewPopoverListener&&(_this.removeLinkPreviewPopoverListener=addLinkPreviewPopoverListener(container,_this.onPreview))},_this.state={},_this}_inheritsLoose__default.default(LinkPreviewPopover,_React$Component);var _proto=LinkPreviewPopover.prototype;return _proto.componentDidMount=function(){this.addLinkPreviewPopoverListener(this.props.container)},_proto.componentWillUnmount=function(){this.removeLinkPreviewPopoverListener()},_proto.render=function(){var linkPreviewData=this.state.linkPreviewData;return linkPreviewData?React__default.default.createElement("div",{className:styles_container,style:linkPreviewData.position},React__default.default.createElement(LinkPreviewPopoverViewer,Object.assign({},linkPreviewData.data))):null},LinkPreviewPopover}(React__default.default.Component);exports.LinkPreviewPopover=LinkPreviewPopover;
"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 _inheritsLoose from"@babel/runtime/helpers/inheritsLoose";import React from"react";import{LINK_VIEWER_DATA_HOOK}from"wix-rich-content-common";var styles_container="_1RlQn",styles_viewerContainer="v7drN",styles_texts="_2muJu",styles_url="_3pkMv",styles_title="_3inqE",styles_description="_2JehM",styles_Image="CZtZ2",styles_ImageWrapper="JuiuN";function addLinkPreviewPopoverListener(container,callback){var handleMouseOver=function(event){var _event$target,_event$target$parentN,_event$target$parentN2,linkNode,url,linkNodeRect,position;return(null===(_event$target=event.target)||void 0===_event$target||null===(_event$target$parentN=_event$target.parentNode)||void 0===_event$target$parentN||null===(_event$target$parentN2=_event$target$parentN.dataset)||void 0===_event$target$parentN2?void 0:_event$target$parentN2.hook)===LINK_VIEWER_DATA_HOOK?(linkNode=event.target.closest("a"),url=linkNode.href,linkNodeRect=linkNode.getBoundingClientRect(),position={top:linkNodeRect.top+linkNodeRect.height+4,left:linkNodeRect.left},void callback(url,position)):callback(void 0)};return container.addEventListener("mouseover",handleMouseOver),function(){container.removeEventListener("mouseover",handleMouseOver)}}var LinkPreviewPopoverViewer=function(_React$Component){function LinkPreviewPopoverViewer(props){var _this;return(_this=_React$Component.call(this,props)||this).state={},_this}return _inheritsLoose(LinkPreviewPopoverViewer,_React$Component),LinkPreviewPopoverViewer.prototype.render=function(){var _this$props=this.props,title=_this$props.title,description=_this$props.description,provider_url=_this$props.provider_url,thumbnail_url=_this$props.thumbnail_url;return React.createElement("div",{className:styles_viewerContainer},thumbnail_url?React.createElement("div",{className:styles_ImageWrapper},React.createElement("img",{className:styles_Image,src:thumbnail_url,alt:""})):null,React.createElement("div",{className:styles_texts},React.createElement("div",{className:styles_url},provider_url),React.createElement("div",{className:styles_title},title),React.createElement("div",{className:styles_description},description)))},LinkPreviewPopoverViewer}(React.Component),LinkPreviewPopover=function(_React$Component){function LinkPreviewPopover(props){var _this;return(_this=_React$Component.call(this,props)||this).onPreview=function(url,position){if(!position)return _this.setState({linkPreviewData:void 0});_this.props.fetchUrlPreviewData(url).then((function(data){return _this.setState({linkPreviewData:{position:position,data:data}})}))},_this.addLinkPreviewPopoverListener=function(container){container&&!_this.removeLinkPreviewPopoverListener&&(_this.removeLinkPreviewPopoverListener=addLinkPreviewPopoverListener(container,_this.onPreview))},_this.state={},_this}_inheritsLoose(LinkPreviewPopover,_React$Component);var _proto=LinkPreviewPopover.prototype;return _proto.componentDidMount=function(){this.addLinkPreviewPopoverListener(this.props.container)},_proto.componentWillUnmount=function(){this.removeLinkPreviewPopoverListener()},_proto.render=function(){var linkPreviewData=this.state.linkPreviewData;return linkPreviewData?React.createElement("div",{className:styles_container,style:linkPreviewData.position},React.createElement(LinkPreviewPopoverViewer,Object.assign({},linkPreviewData.data))):null},LinkPreviewPopover}(React.Component);export{LinkPreviewPopover};
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,4 @@

export * from './LinkPreviewPopover';
export { createIndentPlugin } from './createIndentPlugin';
export { INDENT_TYPE } from './types';
export { pluginIndent } from './editor';
//# sourceMappingURL=index.d.ts.map

@@ -1,1 +0,1 @@

{"name":"richlagetest","version":"0.0.0-f4001b7701fab648a26d2592223771bcfad2ad47"}
{"name":"richlagetest","version":"0.0.0-f5183b37cc173895a8204172f7fa8aa0010dda09"}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc