Socket
Socket
Sign inDemoInstall

@wedevign/rich-markdown-editor

Package Overview
Dependencies
139
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 12.1.3 to 12.1.4

dist/embeds/index.d.ts

15

dist/index.d.ts

@@ -156,2 +156,3 @@ import * as React from "react";

onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
defaultEmbeds: EmbedDescriptor[];
embeds: EmbedDescriptor[];

@@ -188,2 +189,16 @@ onShowToast?: (message: string, code: ToastType) => void;

onClickLink: (href: any) => void;
defaultEmbeds: {
title: string;
keywords: string;
searchKeyword: string;
icon: () => JSX.Element;
matcher: (url: any) => any;
component: ({ attrs, isSelected, }: {
attrs: any;
isSelected: any;
}) => React.ReactElement<{
attrs: any;
isSelected: boolean;
}, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>;
}[];
embeds: never[];

@@ -190,0 +205,0 @@ extensions: never[];

6

dist/index.js

@@ -103,2 +103,3 @@ "use strict";

const GoToPreviousInputTrigger_1 = __importDefault(require("./plugins/GoToPreviousInputTrigger"));
const embeds_1 = __importDefault(require("./embeds"));
var Extension_1 = require("./lib/Extension");

@@ -389,3 +390,3 @@ Object.defineProperty(exports, "Extension", { enumerable: true, get: function () { return __importDefault(Extension_1).default; } });

new Embed_1.default({
embeds: this.props.embeds,
embeds: [...this.props.defaultEmbeds, ...this.props.embeds],
}),

@@ -679,3 +680,3 @@ new ListItem_1.default(),

React.createElement(EmojiMenu_1.default, { view: this.view, commands: this.commands, dictionary: dictionary, rtl: isRTL, isActive: this.state.emojiMenuOpen, search: this.state.blockMenuSearch, onClose: () => this.setState({ emojiMenuOpen: false }) }),
React.createElement(BlockMenu_1.default, { view: this.view, commands: this.commands, dictionary: dictionary, rtl: isRTL, isActive: this.state.blockMenuOpen, search: this.state.blockMenuSearch, onClose: this.handleCloseBlockMenu, uploadImage: this.props.uploadImage, onLinkToolbarOpen: this.handleOpenLinkMenu, onArticleLinkToolbarOpen: this.handleOpenArticleLinkMenu, onExerciseLinkToolbarOpen: this.handleOpenExerciseLinkMenu, onExerciseSetLinkToolbarOpen: this.handleOpenExerciseSetLinkMenu, onExerciseProgressionLinkToolbarOpen: this.handleOpenExerciseProgressionLinkMenu, onMethodLinkToolbarOpen: this.handleOpenMethodLinkMenu, onMethodSetLinkToolbarOpen: this.handleOpenMethodSetLinkMenu, onMethodProgressionLinkToolbarOpen: this.handleOpenMethodProgressionLinkMenu, onImageUploadStart: this.props.onImageUploadStart, onImageUploadStop: this.props.onImageUploadStop, onShowToast: this.props.onShowToast, embeds: this.props.embeds })))))));
React.createElement(BlockMenu_1.default, { view: this.view, commands: this.commands, dictionary: dictionary, rtl: isRTL, isActive: this.state.blockMenuOpen, search: this.state.blockMenuSearch, onClose: this.handleCloseBlockMenu, uploadImage: this.props.uploadImage, onLinkToolbarOpen: this.handleOpenLinkMenu, onArticleLinkToolbarOpen: this.handleOpenArticleLinkMenu, onExerciseLinkToolbarOpen: this.handleOpenExerciseLinkMenu, onExerciseSetLinkToolbarOpen: this.handleOpenExerciseSetLinkMenu, onExerciseProgressionLinkToolbarOpen: this.handleOpenExerciseProgressionLinkMenu, onMethodLinkToolbarOpen: this.handleOpenMethodLinkMenu, onMethodSetLinkToolbarOpen: this.handleOpenMethodSetLinkMenu, onMethodProgressionLinkToolbarOpen: this.handleOpenMethodProgressionLinkMenu, onImageUploadStart: this.props.onImageUploadStart, onImageUploadStop: this.props.onImageUploadStop, onShowToast: this.props.onShowToast, embeds: [...this.props.defaultEmbeds, ...this.props.embeds] })))))));
}

@@ -696,2 +697,3 @@ }

},
defaultEmbeds: embeds_1.default,
embeds: [],

@@ -698,0 +700,0 @@ extensions: [],

@@ -72,3 +72,9 @@ "use strict";

component({ isEditable, isSelected, theme, node }) {
const embeds = this.editor.props.embeds;
console.log("isEditable", isEditable);
console.log("isSelected", isSelected);
console.log("theme", theme);
console.log("node", node);
console.log("this", this);
console.log("editor", this.editor);
const embeds = this.editor.props.defaultEmbeds.concat(this.editor.props.embeds);
const hit = cache[node.attrs.href];

@@ -75,0 +81,0 @@ let Component = hit ? hit.Component : undefined;

{
"name": "@wedevign/rich-markdown-editor",
"description": "A rich text editor with Markdown shortcuts",
"version": "12.1.3",
"version": "12.1.4",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "typings": "dist/index.d.ts",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc