@tinymce/tinymce-react
Advanced tools
Comparing version 4.2.1-feature.20221201014256832.sha124dc96 to 4.2.1-feature.20221203090345515.sha74b910e
@@ -12,3 +12,3 @@ /** | ||
import { Editor as TinyMCEEditor, TinyMCE } from 'tinymce'; | ||
declare type EditorOptions = Parameters<TinyMCE['init']>[0]; | ||
type EditorOptions = Parameters<TinyMCE['init']>[0]; | ||
export interface IProps { | ||
@@ -15,0 +15,0 @@ apiKey: string; |
@@ -11,6 +11,6 @@ /** | ||
import { IProps } from './Editor'; | ||
export declare type CopyProps<T> = { | ||
export type CopyProps<T> = { | ||
[P in keyof T]: PropTypes.Requireable<unknown>; | ||
}; | ||
export declare type IEventPropTypes = CopyProps<IEvents>; | ||
export type IEventPropTypes = CopyProps<IEvents>; | ||
export interface IEditorPropTypes extends IEventPropTypes, CopyProps<IProps> { | ||
@@ -17,0 +17,0 @@ } |
@@ -9,4 +9,4 @@ /** | ||
import { Editor as TinyMCEEditor, EditorEvent, Events } from 'tinymce'; | ||
export declare type EventHandler<A> = (a: EditorEvent<A>, editor: TinyMCEEditor) => unknown; | ||
declare type EEventHandler<K extends keyof Events.EditorEventMap> = EventHandler<Events.EditorEventMap[K]>; | ||
export type EventHandler<A> = (a: EditorEvent<A>, editor: TinyMCEEditor) => unknown; | ||
type EEventHandler<K extends keyof Events.EditorEventMap> = EventHandler<Events.EditorEventMap[K]>; | ||
export interface INativeEvents { | ||
@@ -13,0 +13,0 @@ onBeforePaste: EEventHandler<'beforepaste'>; |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export declare type CallbackFn = () => void; | ||
export type CallbackFn = () => void; | ||
export interface IStateObj { | ||
@@ -11,0 +11,0 @@ listeners: CallbackFn[]; |
@@ -12,3 +12,3 @@ /** | ||
export declare const isFunction: (x: unknown) => x is Function; | ||
declare type PropLookup = <K extends keyof IAllProps>(key: K) => IAllProps[K] | undefined; | ||
type PropLookup = <K extends keyof IAllProps>(key: K) => IAllProps[K] | undefined; | ||
export declare const configHandlers2: <H>(handlerLookup: PropLookup, on: (name: string, handler: H) => void, off: (name: string, handler: H) => void, adapter: <K extends keyof import("./Events").IEvents>(lookup: PropLookup, key: K) => H, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, H>) => void; | ||
@@ -15,0 +15,0 @@ export declare const configHandlers: (editor: TinyMCEEditor, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, (event: EditorEvent<any>) => unknown>, lookup: PropLookup) => void; |
@@ -12,3 +12,3 @@ /** | ||
import { Editor as TinyMCEEditor, TinyMCE } from 'tinymce'; | ||
declare type EditorOptions = Parameters<TinyMCE['init']>[0]; | ||
type EditorOptions = Parameters<TinyMCE['init']>[0]; | ||
export interface IProps { | ||
@@ -15,0 +15,0 @@ apiKey: string; |
@@ -11,6 +11,6 @@ /** | ||
import { IProps } from './Editor'; | ||
export declare type CopyProps<T> = { | ||
export type CopyProps<T> = { | ||
[P in keyof T]: PropTypes.Requireable<unknown>; | ||
}; | ||
export declare type IEventPropTypes = CopyProps<IEvents>; | ||
export type IEventPropTypes = CopyProps<IEvents>; | ||
export interface IEditorPropTypes extends IEventPropTypes, CopyProps<IProps> { | ||
@@ -17,0 +17,0 @@ } |
@@ -9,4 +9,4 @@ /** | ||
import { Editor as TinyMCEEditor, EditorEvent, Events } from 'tinymce'; | ||
export declare type EventHandler<A> = (a: EditorEvent<A>, editor: TinyMCEEditor) => unknown; | ||
declare type EEventHandler<K extends keyof Events.EditorEventMap> = EventHandler<Events.EditorEventMap[K]>; | ||
export type EventHandler<A> = (a: EditorEvent<A>, editor: TinyMCEEditor) => unknown; | ||
type EEventHandler<K extends keyof Events.EditorEventMap> = EventHandler<Events.EditorEventMap[K]>; | ||
export interface INativeEvents { | ||
@@ -13,0 +13,0 @@ onBeforePaste: EEventHandler<'beforepaste'>; |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export declare type CallbackFn = () => void; | ||
export type CallbackFn = () => void; | ||
export interface IStateObj { | ||
@@ -11,0 +11,0 @@ listeners: CallbackFn[]; |
@@ -12,3 +12,3 @@ /** | ||
export declare const isFunction: (x: unknown) => x is Function; | ||
declare type PropLookup = <K extends keyof IAllProps>(key: K) => IAllProps[K] | undefined; | ||
type PropLookup = <K extends keyof IAllProps>(key: K) => IAllProps[K] | undefined; | ||
export declare const configHandlers2: <H>(handlerLookup: PropLookup, on: (name: string, handler: H) => void, off: (name: string, handler: H) => void, adapter: <K extends keyof import("./Events").IEvents>(lookup: PropLookup, key: K) => H, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, H>) => void; | ||
@@ -15,0 +15,0 @@ export declare const configHandlers: (editor: TinyMCEEditor, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, (event: EditorEvent<any>) => unknown>, lookup: PropLookup) => void; |
@@ -37,10 +37,10 @@ { | ||
"devDependencies": { | ||
"@babel/core": "^7.20.2", | ||
"@ephox/agar": "^7.2.1", | ||
"@babel/core": "^7.20.5", | ||
"@ephox/agar": "^7.3.1", | ||
"@ephox/bedrock-client": "^13.0.0", | ||
"@ephox/bedrock-server": "^13.3.0", | ||
"@ephox/katamari": "^9.1.1", | ||
"@ephox/mcagar": "^8.1.1", | ||
"@ephox/sand": "^6.0.5", | ||
"@ephox/sugar": "^9.1.1", | ||
"@ephox/katamari": "^9.1.3", | ||
"@ephox/mcagar": "^8.2.1", | ||
"@ephox/sand": "^6.0.7", | ||
"@ephox/sugar": "^9.1.3", | ||
"@storybook/addon-actions": "^6.5.13", | ||
@@ -56,9 +56,9 @@ "@storybook/addon-essentials": "^6.5.13", | ||
"@tinymce/miniature": "^5.0.1", | ||
"@types/node": "^18.11.9", | ||
"@types/node": "^18.11.10", | ||
"@types/prop-types": "^15.7.5", | ||
"@types/react": "^18.0.25", | ||
"@types/react-dom": "^18.0.8", | ||
"@types/react-dom": "^18.0.9", | ||
"awesome-typescript-loader": "^5.2.1", | ||
"babel-loader": "^9.1.0", | ||
"core-js": "^3.26.0", | ||
"core-js": "^3.26.1", | ||
"raf": "^3.4.1", | ||
@@ -71,8 +71,8 @@ "react": "^18.2.0", | ||
"tinymce-6": "npm:tinymce@^6", | ||
"ts-loader": "^9.4.1", | ||
"typescript": "~4.7.4", | ||
"ts-loader": "^9.4.2", | ||
"typescript": "~4.9.3", | ||
"webpack": "^5.75.0" | ||
}, | ||
"version": "4.2.1-feature.20221201014256832.sha124dc96", | ||
"version": "4.2.1-feature.20221203090345515.sha74b910e", | ||
"name": "@tinymce/tinymce-react" | ||
} |
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
91800