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

devexpress-richedit

Package Overview
Dependencies
Maintainers
0
Versions
471
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devexpress-richedit - npm Package Compare versions

Comparing version 23.2.9 to 23.2.10-build-24274-0102

2

bin/gulpfile.js
/**
* DevExpress WebRichEdit (gulpfile.js)
* Version: 23.2.9
* Version: 23.2.10
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED

@@ -5,0 +5,0 @@ * License: https://www.devexpress.com/Support/EULAs

/**
* DevExpress WebRichEdit (index-custom.js)
* Version: 23.2.9
* Version: 23.2.10
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED

@@ -5,0 +5,0 @@ * License: https://www.devexpress.com/Support/EULAs

/**
* DevExpress WebRichEdit (localization-builder.js)
* Version: 23.2.9
* Version: 23.2.10
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED

@@ -5,0 +5,0 @@ * License: https://www.devexpress.com/Support/EULAs

/**
* DevExpress WebRichEdit (nspell-index.js)
* Version: 23.2.9
* Version: 23.2.10
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED

@@ -5,0 +5,0 @@ * License: https://www.devexpress.com/Support/EULAs

/**
* DevExpress WebRichEdit (nspell.webpack.config.js)
* Version: 23.2.9
* Version: 23.2.10
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED

@@ -5,0 +5,0 @@ * License: https://www.devexpress.com/Support/EULAs

/**
* DevExpress WebRichEdit (webpack-externals.js)
* Version: 23.2.9
* Version: 23.2.10
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED

@@ -5,0 +5,0 @@ * License: https://www.devexpress.com/Support/EULAs

/**
* DevExpress WebRichEdit (webpack.config.js)
* Version: 23.2.9
* Version: 23.2.10
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED

@@ -5,0 +5,0 @@ * License: https://www.devexpress.com/Support/EULAs

/**
* DevExpress WebRichEdit (index.d.ts)
* Version: 23.2.9
* Version: 23.2.10
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED

@@ -5,0 +5,0 @@ * License: https://www.devexpress.com/Support/EULAs

/**
* DevExpress WebRichEdit (index.js)
* Version: 23.2.9
* Version: 23.2.10
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED

@@ -5,0 +5,0 @@ * License: https://www.devexpress.com/Support/EULAs

@@ -18,3 +18,6 @@ import { Point } from '@devexpress/utils/lib/geometry/point';

}
export declare function isUrlValid(url: string, options?: IUrlValidationOptions): boolean;
export declare class UrlUtils {
static EmptyPage: string;
static isValid(url: string): boolean;
}
//# sourceMappingURL=utils.d.ts.map

@@ -63,16 +63,14 @@ import { Point } from '@devexpress/utils/lib/geometry/point';

];
export function isUrlValid(url, options) {
let currentLocation;
if (options === null || options === void 0 ? void 0 : options.allowRelativeUrl)
currentLocation = window.location.href;
try {
const resultUrl = new URL(url, currentLocation);
const protocol = resultUrl.protocol.slice(0, -1);
const allowedProtocols = options === null || options === void 0 ? void 0 : options.allowedProtocols;
if (allowedProtocols)
return allowedProtocols.includes(protocol);
return !disallowedProtocols.includes(protocol);
export class UrlUtils {
static isValid(url) {
const currentLocation = window.location.href;
try {
const resultUrl = new URL(url, currentLocation);
const protocol = resultUrl.protocol.slice(0, -1);
return !disallowedProtocols.includes(protocol);
}
catch (_a) { }
return false;
}
catch (_a) { }
return false;
}
UrlUtils.EmptyPage = "about:blank";

@@ -7,4 +7,3 @@ import { ChangeFieldHyperlinkInfoHistoryItem } from '../../../core/model/history/items/change-field-hyperlink-info-history-item';

import { HyperlinkCommandBase } from './hyperlink-command-base';
import { createUrlValidationOptions } from '../../rich-utils/create-url-validation-options';
import { isUrlValid } from '../../../base-utils/utils';
import { UrlUtils } from '../../../base-utils/utils';
export class OpenHyperlinkCommand extends HyperlinkCommandBase {

@@ -34,5 +33,4 @@ executeCore(state, options) {

else {
const options = createUrlValidationOptions(this.control);
if (isUrlValid(hyperlinkInfo.uri, options))
Url.navigate(hyperlinkInfo.uri, "_blank");
const url = UrlUtils.isValid(hyperlinkInfo.uri) ? hyperlinkInfo.uri : UrlUtils.EmptyPage;
Url.navigate(url, "_blank");
}

@@ -39,0 +37,0 @@ return true;

@@ -83,4 +83,2 @@ import { Store } from 'devextreme/data/abstract_store';

keepHyperlinkResultForInvalidReference?: boolean;
disableRelativeHyperlinkUri?: boolean;
allowedHyperlinkUriProtocols?: string[];
createHyperlinkTooltip?: (hyperlinkTooltip: string, hint: string) => string;

@@ -87,0 +85,0 @@ }

@@ -96,4 +96,2 @@ import { Store } from 'devextreme/data/abstract_store';

keepHyperlinkResultForInvalidReference?: boolean;
disableRelativeHyperlinkUri?: boolean;
allowedHyperlinkUriProtocols?: string[];
createHyperlinkTooltip?: (hyperlinkTooltip: string, hint: string) => string;

@@ -100,0 +98,0 @@ }

@@ -149,6 +149,2 @@ import { formatMessage } from 'devextreme/localization';

result.fields.keepHyperlinkResultForInvalidReference = settings.fields.keepHyperlinkResultForInvalidReference;
if (isDefined(settings.fields.disableRelativeHyperlinkUri))
result.fields.disableRelativeHyperlinkUri = settings.fields.disableRelativeHyperlinkUri;
if (isDefined(settings.fields.allowedHyperlinkUriProtocols))
result.fields.allowedHyperlinkUriProtocols = settings.fields.allowedHyperlinkUriProtocols;
}

@@ -155,0 +151,0 @@ }

@@ -9,4 +9,2 @@ export declare class FieldsSettings {

openHyperlinkOnClick: boolean;
disableRelativeHyperlinkUri: boolean;
allowedHyperlinkUriProtocols: string[];
keepHyperlinkResultForInvalidReference: boolean;

@@ -13,0 +11,0 @@ createHyperlinkTooltip: (hyperlinkTooltip: string, hint: string) => string;

@@ -6,3 +6,2 @@ import { convertToFunction } from '../../../base-utils/utils';

this.openHyperlinkOnClick = false;
this.disableRelativeHyperlinkUri = false;
this.updateFieldsBeforePrint = true;

@@ -34,6 +33,2 @@ this.updateFieldsOnPaste = true;

this.createHyperlinkTooltip = convertToFunction(obj.createHyperlinkTooltip);
if (isDefined(obj.disableRelativeHyperlinkUri))
this.disableRelativeHyperlinkUri = obj.disableRelativeHyperlinkUri;
if (isDefined(obj.allowedHyperlinkUriProtocols))
this.allowedHyperlinkUriProtocols = obj.allowedHyperlinkUriProtocols;
}

@@ -40,0 +35,0 @@ clone() {

{
"name": "devexpress-richedit",
"version": "23.2.9",
"version": "23.2.10-build-24274-0102",
"homepage": "https://www.devexpress.com/",

@@ -17,4 +17,4 @@ "bugs": "https://www.devexpress.com/support/",

"peerDependencies": {
"devextreme": "23.2.9",
"devextreme-dist": "23.2.9"
"devextreme": "23.2.10-build-24273-0110",
"devextreme-dist": "23.2.10-build-24273-0110"
},

@@ -21,0 +21,0 @@ "dependencies": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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