richlagetest
Advanced tools
Comparing version 0.0.0-c1c54508e143627c121ba7103459dabfff1b632f to 0.0.0-c31f5c73b659921a0c368a9e83707d06391fdc78
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends=require("@babel/runtime/helpers/extends");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("wix-rich-content-common");var _extends__default=_interopDefaultLegacy(_extends);Object.freeze(["#ffffff","#303030","#3a54b4","#bfad80","#bf695c","#f7f7f7"]);var userColors=[],DEFAULTS_configTextColor={editor:{onColorAdded:function(color){return userColors=[].concat(userColors,[color])},getUserColors:function(){return userColors}},viewer:{}},DEFAULTS_configTextHighlight={editor:{onColorAdded:function(color){return userColors=[].concat(userColors,[color])},getUserColors:function(){return userColors}},viewer:{}};exports.TEXT_COLOR_TYPE="wix-rich-content-text-color",exports.TEXT_HIGHLIGHT_TYPE="wix-rich-content-text-highlight",exports.pluginTextColor=function(config){return{config:_extends__default.default({},DEFAULTS_configTextColor.viewer,config),type:"wix-rich-content-text-color"}},exports.pluginTextHighlight=function(config){return{config:_extends__default.default({},DEFAULTS_configTextHighlight.viewer,config),type:"wix-rich-content-text-highlight"}}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends=require("@babel/runtime/helpers/extends"),_inheritsLoose=require("@babel/runtime/helpers/inheritsLoose"),React=require("react"),wixRichContentCommon=require("wix-rich-content-common"),cx=require("classnames");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),cx__default=_interopDefaultLegacy(cx),styles={mentionPalette:"_2CUMC",mention:"_9iGOt",mentionDisabled:"_2VyOK",mentionSuggestionsEntry:"XZmSA",mentionSuggestionsEntryFocused:"_3hRqE",mentionSuggestionsEntryText:"_2Wnqo",mentionSuggestionsEntryAvatar:"_1mmCq",mentionSuggestions:"_15Vzh"},MentionComponent=function(_ref){var children=_ref.children,mention=_ref.mention,settings=_ref.settings,theme=_ref.theme,onMentionClick=settings.onMentionClick,onMentionHover=settings.onMentionHover,getMentionLink=settings.getMentionLink,mergedStyles=wixRichContentCommon.mergeStyles({theme:theme,styles:styles}),ref=React__default.default.useRef(null),onClick=function(){return null==onMentionClick?void 0:onMentionClick(mention)},commonProps={ref:ref,onMouseOver:function(){return null==onMentionHover?void 0:onMentionHover(mention,ref.current)},className:cx__default.default(mergedStyles.mention,theme.mentionPalette)};return onMentionClick?React__default.default.createElement("span",Object.assign({},commonProps,{role:"link",tabIndex:0,onKeyDown:function(e){return("Enter"===e.key||" "===e.key)&&onClick()},onClick:onClick}),children):getMentionLink?React__default.default.createElement("a",Object.assign({},commonProps,{href:getMentionLink(mention),rel:"noopener noreferrer",tabIndex:0}),children):React__default.default.createElement("span",Object.assign({},commonProps),children)},MentionViewer=function(_Component){function MentionViewer(){return _Component.apply(this,arguments)||this}return _inheritsLoose__default.default(MentionViewer,_Component),MentionViewer.prototype.render=function(){return React__default.default.createElement(MentionComponent,Object.assign({mention:this.props.componentData.mention},this.props))},MentionViewer}(React.Component),typeMapper=function(){var _ref;return(_ref={}).mention={component:MentionViewer,elementType:"inline"},_ref},DEFAULT_SETTINGS={mentionPrefix:"@",mentionTrigger:"@",getMentionLink:function(){return"#"},repositionSuggestions:!0,entryHeight:34,additionalHeight:17,visibleItemsBeforeOverflow:5,popoverComponent:React__default.default.createElement("div",null),handleDropdownOpen:function(){return!0},onMentionClick:function(mention){return mention},handleDropdownClose:function(){return!0},getMentions:function(searchQuery){return new Promise((function(resolve){return setTimeout((function(){return resolve([{name:searchQuery,slug:searchQuery},{name:"Test One",slug:"testone"},{name:"Test One.1",slug:"testone1"},{name:"Test One.2",slug:"testone2"},{name:"Test One.3",slug:"testone3"},{name:"Test One.4",slug:"testone4"},{name:"Test One.5",slug:"testone5"},{name:"Test One.6",slug:"testone6"},{name:"Test One.7",slug:"testone7"},{name:"Test One.8",slug:"testone8"},{name:"Test Two",slug:"testwo",avatar:"https://via.placeholder.com/100x100?text=Image=50"}])}),250)}))}},DEFAULTS={config:_extends__default.default({},DEFAULT_SETTINGS)};exports.MENTION_TYPE="mention",exports.mentionsTypeMapper=typeMapper,exports.pluginMentions=function(config){return{config:_extends__default.default({},DEFAULTS.config,config),type:"mention",typeMapper:typeMapper}}; | ||
//# sourceMappingURL=module.viewer.cjs.js.map |
@@ -1,2 +0,2 @@ | ||
import _extends from"@babel/runtime/helpers/extends";import"wix-rich-content-common";var TEXT_COLOR_TYPE="wix-rich-content-text-color",TEXT_HIGHLIGHT_TYPE="wix-rich-content-text-highlight";Object.freeze(["#ffffff","#303030","#3a54b4","#bfad80","#bf695c","#f7f7f7"]);var userColors=[],DEFAULTS_configTextColor={editor:{onColorAdded:function(color){return userColors=[].concat(userColors,[color])},getUserColors:function(){return userColors}},viewer:{}},DEFAULTS_configTextHighlight={editor:{onColorAdded:function(color){return userColors=[].concat(userColors,[color])},getUserColors:function(){return userColors}},viewer:{}},pluginTextColor=function(config){return{config:_extends({},DEFAULTS_configTextColor.viewer,config),type:"wix-rich-content-text-color"}},pluginTextHighlight=function(config){return{config:_extends({},DEFAULTS_configTextHighlight.viewer,config),type:"wix-rich-content-text-highlight"}};export{TEXT_COLOR_TYPE,TEXT_HIGHLIGHT_TYPE,pluginTextColor,pluginTextHighlight}; | ||
import _extends from"@babel/runtime/helpers/extends";import _inheritsLoose from"@babel/runtime/helpers/inheritsLoose";import React,{Component}from"react";import{mergeStyles}from"wix-rich-content-common";import cx from"classnames";var MENTION_TYPE="mention",styles={mentionPalette:"_2CUMC",mention:"_9iGOt",mentionDisabled:"_2VyOK",mentionSuggestionsEntry:"XZmSA",mentionSuggestionsEntryFocused:"_3hRqE",mentionSuggestionsEntryText:"_2Wnqo",mentionSuggestionsEntryAvatar:"_1mmCq",mentionSuggestions:"_15Vzh"},MentionComponent=function(_ref){var children=_ref.children,mention=_ref.mention,settings=_ref.settings,theme=_ref.theme,onMentionClick=settings.onMentionClick,onMentionHover=settings.onMentionHover,getMentionLink=settings.getMentionLink,mergedStyles=mergeStyles({theme:theme,styles:styles}),ref=React.useRef(null),onClick=function(){return null==onMentionClick?void 0:onMentionClick(mention)},commonProps={ref:ref,onMouseOver:function(){return null==onMentionHover?void 0:onMentionHover(mention,ref.current)},className:cx(mergedStyles.mention,theme.mentionPalette)};return onMentionClick?React.createElement("span",Object.assign({},commonProps,{role:"link",tabIndex:0,onKeyDown:function(e){return("Enter"===e.key||" "===e.key)&&onClick()},onClick:onClick}),children):getMentionLink?React.createElement("a",Object.assign({},commonProps,{href:getMentionLink(mention),rel:"noopener noreferrer",tabIndex:0}),children):React.createElement("span",Object.assign({},commonProps),children)},MentionViewer=function(_Component){function MentionViewer(){return _Component.apply(this,arguments)||this}return _inheritsLoose(MentionViewer,_Component),MentionViewer.prototype.render=function(){return React.createElement(MentionComponent,Object.assign({mention:this.props.componentData.mention},this.props))},MentionViewer}(Component),typeMapper=function(){var _ref;return(_ref={}).mention={component:MentionViewer,elementType:"inline"},_ref},DEFAULTS={config:_extends({},{mentionPrefix:"@",mentionTrigger:"@",getMentionLink:function(){return"#"},repositionSuggestions:!0,entryHeight:34,additionalHeight:17,visibleItemsBeforeOverflow:5,popoverComponent:React.createElement("div",null),handleDropdownOpen:function(){return!0},onMentionClick:function(mention){return mention},handleDropdownClose:function(){return!0},getMentions:function(searchQuery){return new Promise((function(resolve){return setTimeout((function(){return resolve([{name:searchQuery,slug:searchQuery},{name:"Test One",slug:"testone"},{name:"Test One.1",slug:"testone1"},{name:"Test One.2",slug:"testone2"},{name:"Test One.3",slug:"testone3"},{name:"Test One.4",slug:"testone4"},{name:"Test One.5",slug:"testone5"},{name:"Test One.6",slug:"testone6"},{name:"Test One.7",slug:"testone7"},{name:"Test One.8",slug:"testone8"},{name:"Test Two",slug:"testwo",avatar:"https://via.placeholder.com/100x100?text=Image=50"}])}),250)}))}})},pluginMentions=function(config){return{config:_extends({},DEFAULTS.config,config),type:"mention",typeMapper:typeMapper}};export{MENTION_TYPE,typeMapper as mentionsTypeMapper,pluginMentions}; | ||
//# sourceMappingURL=module.viewer.js.map |
@@ -1,5 +0,4 @@ | ||
import { TextColorPluginEditorConfig, TextHighlightPluginEditorConfig } from './types'; | ||
import { MentionsPluginEditorConfig } from './types'; | ||
import { EditorPluginCreator } from 'wix-rich-content-common'; | ||
export declare const pluginTextColor: EditorPluginCreator<TextColorPluginEditorConfig>; | ||
export declare const pluginTextHighlight: EditorPluginCreator<TextHighlightPluginEditorConfig>; | ||
export declare const pluginMentions: EditorPluginCreator<MentionsPluginEditorConfig>; | ||
//# sourceMappingURL=editor.d.ts.map |
@@ -1,9 +0,5 @@ | ||
export { createTextColorPlugin } from './createTextColorPlugin'; | ||
export { createTextHighlightPlugin } from './createTextHighlightPlugin'; | ||
export { TEXT_COLOR_TYPE, TEXT_HIGHLIGHT_TYPE } from './types'; | ||
export { Modals, ModalsMap } from './modals'; | ||
export { getColor, isTextColor, isTextHighlight } from './text-decorations-utils'; | ||
export { pluginTextColor, pluginTextHighlight } from './editor'; | ||
export declare const textColorInlineStyleMapper: import("wix-rich-content-common").InlineStyleMapperFunction<Record<string, any>>; | ||
export declare const textHighlightInlineStyleMapper: import("wix-rich-content-common").InlineStyleMapperFunction<Record<string, any>>; | ||
export { createExternalMentionsPlugin } from './createMentionsPlugin'; | ||
export { addMentionToEditorState, getMentionsFromEditorState } from './utils'; | ||
export { EXTERNAL_MENTIONS_TYPE, MENTION_TYPE } from './types'; | ||
export { pluginMentions } from './editor'; | ||
//# sourceMappingURL=index.d.ts.map |
import { EditorPluginConfig, ViewerPluginConfig } from 'wix-rich-content-common'; | ||
export declare const TEXT_COLOR_TYPE = "wix-rich-content-text-color"; | ||
export declare const TEXT_HIGHLIGHT_TYPE = "wix-rich-content-text-highlight"; | ||
export interface TextColorPluginEditorConfig extends EditorPluginConfig { | ||
inlinePopups?: boolean; | ||
export declare const EXTERNAL_MENTIONS_TYPE = "wix-draft-plugin-external-mentions"; | ||
export declare const MENTION_TYPE = "mention"; | ||
export interface MentionsPluginEditorConfig extends EditorPluginConfig { | ||
[key: string]: any; | ||
} | ||
export interface TextColorPluginViewerConfig extends ViewerPluginConfig { | ||
export interface MentionsPluginViewerConfig extends ViewerPluginConfig { | ||
[key: string]: any; | ||
} | ||
export interface TextHighlightPluginEditorConfig extends EditorPluginConfig { | ||
inlinePopups?: boolean; | ||
[key: string]: any; | ||
} | ||
export interface TextHighlightPluginViewerConfig extends ViewerPluginConfig { | ||
[key: string]: any; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
@@ -1,6 +0,6 @@ | ||
import { TEXT_COLOR_TYPE, TEXT_HIGHLIGHT_TYPE, TextColorPluginViewerConfig, TextHighlightPluginViewerConfig } from './types'; | ||
import typeMapper from './typeMapper'; | ||
import { MENTION_TYPE, MentionsPluginViewerConfig } from './types'; | ||
import { ViewerPluginCreator } from 'wix-rich-content-common'; | ||
export { TEXT_COLOR_TYPE, TEXT_HIGHLIGHT_TYPE }; | ||
export declare const pluginTextColor: ViewerPluginCreator<TextColorPluginViewerConfig>; | ||
export declare const pluginTextHighlight: ViewerPluginCreator<TextHighlightPluginViewerConfig>; | ||
export { MENTION_TYPE, typeMapper as mentionsTypeMapper }; | ||
export declare const pluginMentions: ViewerPluginCreator<MentionsPluginViewerConfig>; | ||
//# sourceMappingURL=viewer.d.ts.map |
@@ -1,1 +0,1 @@ | ||
{"name":"richlagetest","version":"0.0.0-c1c54508e143627c121ba7103459dabfff1b632f"} | ||
{"name":"richlagetest","version":"0.0.0-c31f5c73b659921a0c368a9e83707d06391fdc78"} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
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
995661
1252
38
3