Socket
Socket
Sign inDemoInstall

ngx-editor

Package Overview
Dependencies
24
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 17.0.1 to 17.0.2

esm2022/utils/uniq.mjs

7

CHANGELOG.md

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

## v17.0.2 (2024-04-03)
#### Features
- remove nanoid dependency ([3a589e1](https://github.com/sibiraj-s/ngx-editor/commit/3a589e1))
- support options in link menu item to configure `open in new tab` feature ([aacc680](https://github.com/sibiraj-s/ngx-editor/commit/aacc680))
## v17.0.1 (2024-03-05)

@@ -18,0 +25,0 @@

7

lib/modules/menu/link/link.component.d.ts

@@ -8,2 +8,5 @@ import { ElementRef, OnDestroy, OnInit } from '@angular/core';

import * as i0 from "@angular/core";
export interface LinkOptions {
showOpenInNewTab: boolean;
}
export declare class LinkComponent implements OnInit, OnDestroy {

@@ -13,2 +16,3 @@ private el;

private menuService;
options: Partial<LinkOptions>;
showPopup: boolean;

@@ -37,3 +41,4 @@ isActive: boolean;

static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "ngx-link", never, {}, {}, never, never, false, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "ngx-link", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, never, false, never>;
static ngAcceptInputType_options: Partial<LinkOptions>;
}

5

lib/modules/menu/menu.component.d.ts
import { OnInit, TemplateRef } from '@angular/core';
import { Toolbar, ToolbarItem, ToolbarDropdown } from '../../types';
import { Toolbar, ToolbarItem, ToolbarDropdown, ToolbarLinkOptions } from '../../types';
import { MenuService } from './menu.service';

@@ -27,2 +27,5 @@ import Editor from '../../Editor';

getDropdownItems(item: ToolbarItem): ToolbarDropdown;
isLinkItem(item: ToolbarItem): boolean;
isLinkWithOptions(item: ToolbarItem): boolean;
getLinkOptions(item: ToolbarItem): Partial<ToolbarLinkOptions>;
ngOnInit(): void;

@@ -29,0 +32,0 @@ static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;

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

import { Observable } from 'rxjs';
import { LinkOptions } from './modules/menu/link/link.component';
type TCR = {

@@ -16,6 +17,10 @@ dom: HTMLElement;

};
export type ToolbarLinkOptions = Partial<LinkOptions>;
export type ToolbarLink = {
link: ToolbarLinkOptions;
};
export type ToolbarCustomMenuItem = (editorView: EditorView) => TCR;
export type ToolbarDropdownGroupKeys = keyof ToolbarDropdown;
export type ToolbarDropdownGroupValues = ToolbarDropdown[ToolbarDropdownGroupKeys];
export type ToolbarItem = TBItems | ToolbarDropdown | ToolbarCustomMenuItem;
export type ToolbarItem = TBItems | ToolbarDropdown | ToolbarLink | ToolbarCustomMenuItem;
export type Toolbar = Array<ToolbarItem[]>;

@@ -22,0 +27,0 @@ export interface NgxEditorConfig {

{
"name": "ngx-editor",
"version": "17.0.1",
"version": "17.0.2",
"description": "The Rich Text Editor for Angular, Built on ProseMirror",

@@ -28,3 +28,2 @@ "license": "MIT",

"@types/trusted-types": "~2.0.7",
"nanoid": "^5.0.6",
"prosemirror-commands": "1.5.2",

@@ -31,0 +30,0 @@ "prosemirror-history": "1.3.2",

export { default as isNil } from './isNil';
export { default as toStyleString } from './toStyleString';
export { default as NgxEditorError } from './error';
export { default as uniq } from './uniq';

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

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