Socket
Socket
Sign inDemoInstall

roosterjs-editor-api

Package Overview
Dependencies
Maintainers
4
Versions
317
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roosterjs-editor-api - npm Package Compare versions

Comparing version 8.58.1 to 8.59.0

10

lib-amd/utils/toggleListType.js

@@ -40,2 +40,5 @@ define(["require", "exports", "../utils/blockFormat", "roosterjs-editor-dom"], function (require, exports, blockFormat_1, roosterjs_editor_dom_1) {

vList.setListStyleType(orderedStyle, unorderedStyle);
if (isNewList(vList)) {
vList.removeMargins();
}
vList.writeBack(editor.isFeatureEnabled("ReuseAllAncestorListElements" /* ReuseAllAncestorListElements */), editor.isFeatureEnabled("DisableListChain" /* DisableListChain */));

@@ -46,3 +49,10 @@ }

exports.default = toggleListType;
function isNewList(vList) {
var list = vList === null || vList === void 0 ? void 0 : vList.rootList;
if (list) {
return list.childElementCount === 0;
}
return false;
}
});
//# sourceMappingURL=toggleListType.js.map

@@ -39,2 +39,5 @@ import blockFormat from '../utils/blockFormat';

vList.setListStyleType(orderedStyle, unorderedStyle);
if (isNewList(vList)) {
vList.removeMargins();
}
vList.writeBack(editor.isFeatureEnabled("ReuseAllAncestorListElements" /* ReuseAllAncestorListElements */), editor.isFeatureEnabled("DisableListChain" /* DisableListChain */));

@@ -44,2 +47,9 @@ }

}
function isNewList(vList) {
var list = vList === null || vList === void 0 ? void 0 : vList.rootList;
if (list) {
return list.childElementCount === 0;
}
return false;
}
//# sourceMappingURL=toggleListType.js.map

@@ -41,2 +41,5 @@ "use strict";

vList.setListStyleType(orderedStyle, unorderedStyle);
if (isNewList(vList)) {
vList.removeMargins();
}
vList.writeBack(editor.isFeatureEnabled("ReuseAllAncestorListElements" /* ReuseAllAncestorListElements */), editor.isFeatureEnabled("DisableListChain" /* DisableListChain */));

@@ -47,2 +50,9 @@ }

exports.default = toggleListType;
function isNewList(vList) {
var list = vList === null || vList === void 0 ? void 0 : vList.rootList;
if (list) {
return list.childElementCount === 0;
}
return false;
}
//# sourceMappingURL=toggleListType.js.map

7

package.json

@@ -6,8 +6,9 @@ {

"tslib": "^2.3.1",
"roosterjs-editor-types": "^8.58.1",
"roosterjs-editor-dom": "^8.58.1"
"roosterjs-editor-types": "^8.59.0",
"roosterjs-editor-dom": "^8.59.0"
},
"version": "8.58.1",
"version": "8.59.0",
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"module": "./lib-mjs/index.js",
"license": "MIT",

@@ -14,0 +15,0 @@ "repository": {

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc