ricos-common
Advanced tools
Comparing version 7.10.9-alpha.0 to 7.10.9-alpha.1
declare type ModalsMap = Record<string, import('react').ComponentType>; | ||
declare type TypeMapper = () => Record<string, unknown>; | ||
declare type InlineStyleMapper = (config: Record<string, unknown>, raw: RicosContent) => Record<string, unknown>; | ||
declare type Decorator = (theme: RicosCssOverride, config?: Record<string, unknown>) => any; | ||
declare type CreatePluginFunction = (config?: Record<string, unknown>) => Record<string, unknown>; | ||
@@ -18,3 +17,3 @@ interface BasicPluginConfig { | ||
inlineStyleMapper?: InlineStyleMapper; | ||
decorator?: Decorator; | ||
decorator?: import('wix-rich-content-common').Decorator; | ||
} | ||
@@ -21,0 +20,0 @@ interface PluginConfig extends EditorPluginConfig, ViewerPluginConfig { |
@@ -22,3 +22,3 @@ import { Component, FunctionComponent } from 'react'; | ||
strategyProps: { | ||
theme: RichContentTheme; | ||
theme: import("wix-rich-content-common").RichContentTheme; | ||
} & PluginsStrategy & RichContentProps; | ||
@@ -25,0 +25,0 @@ rawCss: string; |
interface RichContentProps { | ||
config?: Record<string, unknown>; | ||
decorators?: Decorator[]; | ||
decorators?: import('wix-rich-content-common').Decorator[]; | ||
editorKey?: string; | ||
helpers?: Helpers; | ||
helpers?: import('wix-rich-content-common').Helpers; | ||
initialState?: RicosContent; | ||
@@ -12,3 +12,3 @@ inlineStyleMappers?: InlineStyleMapper[]; | ||
ModalsMap?: ModalsMap; | ||
onChange?(editorState: DraftEditorState): void; | ||
onChange?(editorState: import('draft-js').EditorState): void; | ||
onError?: OnErrorFunction; | ||
@@ -53,3 +53,3 @@ placeholder?: string; | ||
interface ToolbarSettings { | ||
getToolbarSettings?: GetToolbarSettings; | ||
getToolbarSettings?: import('wix-rich-content-common').GetToolbarSettings; | ||
textToolbarContainer?: HTMLElement; | ||
@@ -60,3 +60,3 @@ useStaticTextToolbar?: boolean; | ||
getContentState: () => RicosContent; | ||
refresh: (editorState: DraftEditorState) => void; | ||
refresh: (editorState: import('draft-js').EditorState) => void; | ||
} | ||
@@ -63,0 +63,0 @@ declare type OnContentChangeFunction = (content: RicosContent) => void; |
@@ -1,2 +0,2 @@ | ||
declare type RicosCssOverride = RichContentTheme; | ||
declare type RicosCssOverride = import('wix-rich-content-common').RichContentTheme; | ||
interface ThemeGeneratorFunction { | ||
@@ -3,0 +3,0 @@ (colors: PaletteColors, utils: ThemeUtils): Record<string, unknown>; |
{ | ||
"name": "ricos-common", | ||
"version": "7.10.9-alpha.0", | ||
"version": "7.10.9-alpha.1", | ||
"author": { | ||
@@ -62,3 +62,3 @@ "name": "Matan Harsat", | ||
"jss-preset-default": "^10.1.1", | ||
"wix-rich-content-common": "7.10.9-alpha.0" | ||
"wix-rich-content-common": "7.10.9-alpha.1" | ||
}, | ||
@@ -65,0 +65,0 @@ "jest": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177188
697
+ Addedwix-rich-content-common@7.10.9-alpha.1(transitive)
- Removedwix-rich-content-common@7.10.9-alpha.0(transitive)