Socket
Socket
Sign inDemoInstall

ngx-editor

Package Overview
Dependencies
30
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 12.2.3 to 12.3.0

esm2020/helpers/canInsertNode.mjs

15

CHANGELOG.md

@@ -16,2 +16,17 @@ # CHANGELOG

## v12.3.0 (2022-05-08)
#### Features
- add horizontal rule menu item ([608e978](https://github.com/sibiraj-s/ngx-editor/commit/608e978))
#### Bug Fixes
- fix typings for attributes config ([396be73](https://github.com/sibiraj-s/ngx-editor/commit/396be73))
#### Dependency Updates
- update @floating-ui/core to v0.7.0 ([c86e6b0](https://github.com/sibiraj-s/ngx-editor/commit/c86e6b0))
- update @floating-ui/dom to v0.5.0 ([fc71027](https://github.com/sibiraj-s/ngx-editor/commit/fc71027))
## v12.2.3 (2022-04-26)

@@ -18,0 +33,0 @@

1

helpers/public_api.d.ts

@@ -7,1 +7,2 @@ export * from './isMarkActive';

export * from './markInputRule';
export * from './canInsertNode';
import Mark from './Mark';
import Blockquote from './Blockquote';
import HorizontalRule from './HorizontalRule';
import ListItem from './ListItem';

@@ -15,2 +16,3 @@ import Heading from './Heading';

export declare const BLOCKQUOTE: Blockquote;
export declare const HORIZONTAL_RULE: HorizontalRule;
export declare const UL: ListItem;

@@ -17,0 +19,0 @@ export declare const OL: ListItem;

@@ -9,1 +9,5 @@ import { EditorState, Transaction } from 'prosemirror-state';

}
export interface InsertCommand {
insert: () => Command;
canExecute: (state: EditorState) => boolean;
}

2

lib/Editor.d.ts

@@ -16,3 +16,3 @@ import { Schema } from 'prosemirror-model';

nodeViews?: EditorProps['nodeViews'];
attributes?: Record<string, string>;
attributes?: EditorProps['attributes'];
features?: EditorFeatures;

@@ -19,0 +19,0 @@ }

@@ -8,2 +8,3 @@ import { OnInit, TemplateRef } from '@angular/core';

export declare const TOOLBAR_MINIMAL: Toolbar;
export declare const TOOLBAR_FULL: Toolbar;
export declare class MenuComponent implements OnInit {

@@ -17,3 +18,4 @@ private menuService;

dropdownPlacement: 'top' | 'bottom';
toggleCommands: any[];
toggleCommands: ToolbarItem[];
insertCommands: ToolbarItem[];
iconContainerClass: string[];

@@ -20,0 +22,0 @@ dropdownContainerClass: string[];

@@ -5,14 +5,15 @@ import * as i0 from "@angular/core";

import * as i3 from "./toggle-command/toggle-command.component";
import * as i4 from "./link/link.component";
import * as i5 from "./dropdown/dropdown.component";
import * as i6 from "./image/image.component";
import * as i7 from "./color-picker/color-picker.component";
import * as i8 from "./floating-menu/floating-menu.component";
import * as i9 from "./bubble/bubble.component";
import * as i10 from "@angular/common";
import * as i11 from "@angular/forms";
import * as i4 from "./insert-command/insert-command.component";
import * as i5 from "./link/link.component";
import * as i6 from "./dropdown/dropdown.component";
import * as i7 from "./image/image.component";
import * as i8 from "./color-picker/color-picker.component";
import * as i9 from "./floating-menu/floating-menu.component";
import * as i10 from "./bubble/bubble.component";
import * as i11 from "@angular/common";
import * as i12 from "@angular/forms";
export declare class MenuModule {
static ɵfac: i0.ɵɵFactoryDeclaration<MenuModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<MenuModule, [typeof i1.SanitizeHtmlPipe, typeof i2.MenuComponent, typeof i3.ToggleCommandComponent, typeof i4.LinkComponent, typeof i5.DropdownComponent, typeof i6.ImageComponent, typeof i7.ColorPickerComponent, typeof i8.FloatingMenuComponent, typeof i9.BubbleComponent], [typeof i10.CommonModule, typeof i11.ReactiveFormsModule], [typeof i2.MenuComponent, typeof i8.FloatingMenuComponent]>;
static ɵmod: i0.ɵɵNgModuleDeclaration<MenuModule, [typeof i1.SanitizeHtmlPipe, typeof i2.MenuComponent, typeof i3.ToggleCommandComponent, typeof i4.InsertCommandComponent, typeof i5.LinkComponent, typeof i6.DropdownComponent, typeof i7.ImageComponent, typeof i8.ColorPickerComponent, typeof i9.FloatingMenuComponent, typeof i10.BubbleComponent], [typeof i11.CommonModule, typeof i12.ReactiveFormsModule], [typeof i2.MenuComponent, typeof i9.FloatingMenuComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<MenuModule>;
}

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

import { ToggleCommand } from '../../commands/types';
import { InsertCommand, ToggleCommand } from '../../commands/types';
export declare const ToggleCommands: Record<string, ToggleCommand>;
export declare const InsertCommands: Record<string, InsertCommand>;
export declare const Link: import("../../commands/Link").default;

@@ -4,0 +5,0 @@ export declare const Image: import("../../commands/Image").default;

@@ -9,3 +9,3 @@ import { EditorState } from 'prosemirror-state';

export declare type TBHeadingItems = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
export declare type TBItems = 'bold' | 'italic' | 'code' | 'blockquote' | 'underline' | 'strike' | 'ordered_list' | 'bullet_list' | 'link' | 'image' | 'text_color' | 'background_color' | 'align_left' | 'align_center' | 'align_right' | 'align_justify';
export declare type TBItems = 'bold' | 'italic' | 'code' | 'blockquote' | 'underline' | 'strike' | 'ordered_list' | 'bullet_list' | 'link' | 'image' | 'text_color' | 'background_color' | 'align_left' | 'align_center' | 'align_right' | 'align_justify' | 'horizontal_rule';
export declare type ToolbarDropdown = {

@@ -12,0 +12,0 @@ heading?: TBHeadingItems[];

{
"name": "ngx-editor",
"version": "12.2.3",
"version": "12.3.0",
"description": "Rich Text Editor for angular using ProseMirror",

@@ -24,4 +24,4 @@ "license": "MIT",

"dependencies": {
"@floating-ui/core": "^0.6.2",
"@floating-ui/dom": "^0.4.5",
"@floating-ui/core": "^0.7.0",
"@floating-ui/dom": "^0.5.0",
"@types/prosemirror-commands": "^1.0.4",

@@ -28,0 +28,0 @@ "@types/prosemirror-history": "^1.0.3",

@@ -26,2 +26,4 @@ import { DOMOutputSpec, Node as ProseMirrorNode, NodeSpec } from 'prosemirror-model';

whitespace?: "normal" | "pre";
definingAsContext?: boolean;
definingForContent?: boolean;
defining?: boolean;

@@ -46,2 +48,4 @@ isolating?: boolean;

whitespace?: "normal" | "pre";
definingAsContext?: boolean;
definingForContent?: boolean;
defining?: boolean;

@@ -66,2 +70,4 @@ isolating?: boolean;

whitespace?: "normal" | "pre";
definingAsContext?: boolean;
definingForContent?: boolean;
defining?: boolean;

@@ -68,0 +74,0 @@ isolating?: boolean;

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

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

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