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

@tinymce/tinymce-react

Package Overview
Dependencies
Maintainers
2
Versions
365
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinymce/tinymce-react - npm Package Compare versions

Comparing version 5.1.2-rc.20240715020545320.shad919ad8 to 6.0.0-feature.20240716075607072.shab0c2481

6

CHANGELOG.md

@@ -9,2 +9,8 @@ # Change log

### Fixed
- Updated dependencies. #INT-3324
### Changed
- Moved tinymce dependency to peerDependencies, as well as making it optional. #INT-3324
## 5.1.0 - 2024-06-11

@@ -11,0 +17,0 @@

2

lib/cjs/main/ts/components/Editor.d.ts

@@ -5,3 +5,3 @@ import * as React from 'react';

import { IEditorPropTypes } from './EditorPropTypes';
import { Editor as TinyMCEEditor, TinyMCE } from 'tinymce';
import type { Editor as TinyMCEEditor, TinyMCE } from 'tinymce';
type OmitStringIndexSignature<T> = {

@@ -8,0 +8,0 @@ [K in keyof T as string extends K ? never : K]: T[K];

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

import { Editor as TinyMCEEditor, EditorEvent, Events } from 'tinymce';
import type { Editor as TinyMCEEditor, EditorEvent, Events } from 'tinymce';
export type EventHandler<A> = (a: EditorEvent<A>, editor: TinyMCEEditor) => unknown;

@@ -3,0 +3,0 @@ type EEventHandler<K extends keyof Events.EditorEventMap> = EventHandler<Events.EditorEventMap[K]>;

@@ -8,4 +8,4 @@ export type CallbackFn = () => void;

export declare const ScriptLoader: {
loadList: (doc: Document, items: ScriptItem[], delay: number, success: () => void, failure?: ((err: unknown) => void) | undefined) => void;
loadList: (doc: Document, items: ScriptItem[], delay: number, success: () => void, failure?: (err: unknown) => void) => void;
reinitialize: () => void;
};

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

import { TinyMCE as TinyMCEGlobal } from 'tinymce';
import type { TinyMCE as TinyMCEGlobal } from 'tinymce';
declare const getTinymce: (view: Window) => TinyMCEGlobal | null;
export { getTinymce };
import { IEventPropTypes } from './components/EditorPropTypes';
import { IAllProps } from './components/Editor';
import { Editor as TinyMCEEditor, EditorEvent } from 'tinymce';
import type { Editor as TinyMCEEditor, EditorEvent } from 'tinymce';
export declare const isFunction: (x: unknown) => x is Function;
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;
export declare const configHandlers2: <H>(handlerLookup: PropLookup, on: (name: string, handler: H) => void, off: (name: string, handler: H) => void, adapter: <K extends keyof IEventPropTypes>(lookup: PropLookup, key: K) => H, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, H>) => void;
export declare const configHandlers: (editor: TinyMCEEditor, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, (event: EditorEvent<any>) => unknown>, lookup: PropLookup) => void;
export declare const uuid: (prefix: string) => string;
export declare const isTextareaOrInput: (element: Element | null) => element is HTMLInputElement | HTMLTextAreaElement;
export declare const isTextareaOrInput: (element: Element | null) => element is (HTMLTextAreaElement | HTMLInputElement);
export declare const mergePlugins: (initPlugins: string | string[] | undefined, inputPlugins: string | string[] | undefined) => string[];
export declare const isBeforeInputEventAvailable: () => boolean;
export declare const isInDoc: (elem: Node) => boolean;
export declare const setMode: (editor: TinyMCEEditor | undefined, mode: 'readonly' | 'design') => void;
export declare const setMode: (editor: TinyMCEEditor | undefined, mode: "readonly" | "design") => void;
export {};

@@ -5,3 +5,3 @@ import * as React from 'react';

import { IEditorPropTypes } from './EditorPropTypes';
import { Editor as TinyMCEEditor, TinyMCE } from 'tinymce';
import type { Editor as TinyMCEEditor, TinyMCE } from 'tinymce';
type OmitStringIndexSignature<T> = {

@@ -8,0 +8,0 @@ [K in keyof T as string extends K ? never : K]: T[K];

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

import { Editor as TinyMCEEditor, EditorEvent, Events } from 'tinymce';
import type { Editor as TinyMCEEditor, EditorEvent, Events } from 'tinymce';
export type EventHandler<A> = (a: EditorEvent<A>, editor: TinyMCEEditor) => unknown;

@@ -3,0 +3,0 @@ type EEventHandler<K extends keyof Events.EditorEventMap> = EventHandler<Events.EditorEventMap[K]>;

@@ -8,4 +8,4 @@ export type CallbackFn = () => void;

export declare const ScriptLoader: {
loadList: (doc: Document, items: ScriptItem[], delay: number, success: () => void, failure?: ((err: unknown) => void) | undefined) => void;
loadList: (doc: Document, items: ScriptItem[], delay: number, success: () => void, failure?: (err: unknown) => void) => void;
reinitialize: () => void;
};

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

import { TinyMCE as TinyMCEGlobal } from 'tinymce';
import type { TinyMCE as TinyMCEGlobal } from 'tinymce';
declare const getTinymce: (view: Window) => TinyMCEGlobal | null;
export { getTinymce };
import { IEventPropTypes } from './components/EditorPropTypes';
import { IAllProps } from './components/Editor';
import { Editor as TinyMCEEditor, EditorEvent } from 'tinymce';
import type { Editor as TinyMCEEditor, EditorEvent } from 'tinymce';
export declare const isFunction: (x: unknown) => x is Function;
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;
export declare const configHandlers2: <H>(handlerLookup: PropLookup, on: (name: string, handler: H) => void, off: (name: string, handler: H) => void, adapter: <K extends keyof IEventPropTypes>(lookup: PropLookup, key: K) => H, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, H>) => void;
export declare const configHandlers: (editor: TinyMCEEditor, prevProps: Partial<IAllProps>, props: Partial<IAllProps>, boundHandlers: Record<string, (event: EditorEvent<any>) => unknown>, lookup: PropLookup) => void;
export declare const uuid: (prefix: string) => string;
export declare const isTextareaOrInput: (element: Element | null) => element is HTMLInputElement | HTMLTextAreaElement;
export declare const isTextareaOrInput: (element: Element | null) => element is (HTMLTextAreaElement | HTMLInputElement);
export declare const mergePlugins: (initPlugins: string | string[] | undefined, inputPlugins: string | string[] | undefined) => string[];
export declare const isBeforeInputEventAvailable: () => boolean;
export declare const isInDoc: (elem: Node) => boolean;
export declare const setMode: (editor: TinyMCEEditor | undefined, mode: 'readonly' | 'design') => void;
export declare const setMode: (editor: TinyMCEEditor | undefined, mode: "readonly" | "design") => void;
export {};

@@ -29,17 +29,22 @@ {

"dependencies": {
"prop-types": "^15.6.2",
"tinymce": "^7.0.0 || ^6.0.0 || ^5.5.1"
"prop-types": "^15.6.2"
},
"peerDependencies": {
"react": "^18.0.0 || ^17.0.1 || ^16.7.0",
"react-dom": "^18.0.0 || ^17.0.1 || ^16.7.0"
"react-dom": "^18.0.0 || ^17.0.1 || ^16.7.0",
"tinymce": "^7.0.0 || ^6.0.0 || ^5.5.1"
},
"peerDependenciesMeta": {
"tinymce": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@babel/core": "^7.24.9",
"@babel/preset-env": "^7.24.8",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@ephox/agar": "^8.0.0-alpha.0",
"@ephox/bedrock-client": "^14.1.1",
"@ephox/bedrock-server": "^14.1.3",
"@ephox/bedrock-server": "^14.1.4",
"@ephox/katamari": "^9.1.5",

@@ -49,20 +54,21 @@ "@ephox/mcagar": "^9.0.0-alpha.0",

"@ephox/sugar": "^9.2.1",
"@storybook/addon-essentials": "^8.0.2",
"@storybook/addon-interactions": "^8.0.2",
"@storybook/addon-links": "^8.0.2",
"@storybook/blocks": "^8.0.2",
"@storybook/react": "^8.0.2",
"@storybook/react-vite": "^8.0.2",
"@storybook/addon-essentials": "^8.2.4",
"@storybook/addon-interactions": "^8.2.4",
"@storybook/addon-links": "^8.2.4",
"@storybook/blocks": "^8.2.4",
"@storybook/react": "^8.2.4",
"@storybook/react-vite": "^8.2.4",
"@tinymce/beehive-flow": "^0.19.0",
"@tinymce/eslint-plugin": "^2.3.1",
"@tinymce/miniature": "^6.0.0",
"@types/node": "^20.9.0",
"@types/prop-types": "^15.7.10",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@types/node": "^20.14.10",
"@types/prop-types": "^15.7.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"gh-pages": "^6.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.5",
"storybook": "^8.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rimraf": "^6.0.1",
"storybook": "^8.2.4",
"tinymce": "^7.2.1",
"tinymce-4": "npm:tinymce@^4",

@@ -72,7 +78,7 @@ "tinymce-5": "npm:tinymce@^5",

"tinymce-7": "npm:tinymce@^7",
"typescript": "~5.4.3",
"vite": "^5.2.2"
"typescript": "~5.5.3",
"vite": "^5.3.3"
},
"version": "5.1.2-rc.20240715020545320.shad919ad8",
"version": "6.0.0-feature.20240716075607072.shab0c2481",
"name": "@tinymce/tinymce-react"
}
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