ricos-common
Advanced tools
Comparing version 7.10.7 to 7.10.8
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: Record<string, unknown>, config?: Record<string, unknown>) => any; | ||
declare type Decorator = (theme: RicosCssOverride, config?: Record<string, unknown>) => any; | ||
declare type CreatePluginFunction = (config?: Record<string, unknown>) => Record<string, unknown>; | ||
@@ -6,0 +6,0 @@ interface BasicPluginConfig { |
import { Component, FunctionComponent } from 'react'; | ||
import './styles.css'; | ||
interface EngineProps extends RicosEditorProps, RicosViewerProps { | ||
@@ -21,3 +22,3 @@ children: RichContentChild; | ||
strategyProps: { | ||
theme: RicosCssOverride; | ||
theme: RichContentTheme; | ||
} & PluginsStrategy & RichContentProps; | ||
@@ -24,0 +25,0 @@ rawCss: string; |
@@ -12,3 +12,3 @@ interface RichContentProps { | ||
ModalsMap?: ModalsMap; | ||
onChange?(editorState: import('draft-js').EditorState): void; | ||
onChange?(editorState: DraftEditorState): void; | ||
onError?: OnErrorFunction; | ||
@@ -45,3 +45,2 @@ placeholder?: string; | ||
} | ||
declare type GetToolbarSettings = any; | ||
declare type RichContentChild = import('react').ReactElement<ExportedRichContentProps>; | ||
@@ -59,8 +58,5 @@ interface ModalSettings { | ||
} | ||
declare type Helpers = { | ||
[propName: string]: ((...args: any[]) => any) | undefined; | ||
}; | ||
interface EditorDataInstance { | ||
getContentState: () => RicosContent; | ||
refresh: (editorState: import('draft-js').EditorState) => void; | ||
refresh: (editorState: DraftEditorState) => void; | ||
} | ||
@@ -67,0 +63,0 @@ declare type OnContentChangeFunction = (content: RicosContent) => void; |
@@ -1,9 +0,2 @@ | ||
declare type RicosCssOverride = { | ||
modalTheme?: ModalStyles; | ||
[propName: string]: any; | ||
}; | ||
declare type ModalStyles = { | ||
content?: Record<string, unknown>; | ||
overlay?: Record<string, unknown>; | ||
}; | ||
declare type RicosCssOverride = RichContentTheme; | ||
interface ThemeGeneratorFunction { | ||
@@ -10,0 +3,0 @@ (colors: PaletteColors, utils: ThemeUtils): Record<string, unknown>; |
{ | ||
"name": "ricos-common", | ||
"version": "7.10.7", | ||
"version": "7.10.8", | ||
"author": { | ||
@@ -30,5 +30,3 @@ "name": "Matan Harsat", | ||
"build:analyze:viewer": "npm run build -- --environment MODULE_ANALYZE_VIEWER && open stats.html", | ||
"watch:dev": "cross-env NODE_ENV=development MODULE_WATCH=1 npm run build -- --watch.chokidar", | ||
"watch:flow": "css-modules-flow-types statics/styles -e scss && css-modules-flow-types statics/styles -e scss -w -s", | ||
"watch": "concurrently \"npm run watch:dev\" \"npm run watch:flow\"", | ||
"watch": "cross-env NODE_ENV=development MODULE_WATCH=1 npm run build -- --watch.chokidar", | ||
"lint": "eslint 'src/**/*.{js,jsx,ts,tsx,d.ts}'", | ||
@@ -47,9 +45,2 @@ "test": "jest --verbose", | ||
"@babel/runtime": "7.2.0", | ||
"@types/draft-js": "^0.10.38", | ||
"@types/enzyme": "^3.10.5", | ||
"@types/enzyme-adapter-react-16": "^1.0.6", | ||
"@types/jest": "^25.2.1", | ||
"@types/lodash": "^4.14.149", | ||
"@types/react": "^16.9.34", | ||
"@types/react-modal": "^3.10.5", | ||
"babel-jest": "^25.1.0", | ||
@@ -73,3 +64,3 @@ "classnames": "^2.0.0", | ||
"jss-preset-default": "^10.1.1", | ||
"wix-rich-content-common": "7.10.7" | ||
"wix-rich-content-common": "7.10.8" | ||
}, | ||
@@ -76,0 +67,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
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
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
14
48
176714
697
+ Addedwix-rich-content-common@7.10.8(transitive)
- Removedwix-rich-content-common@7.10.7(transitive)