@slate-serializers/html
Advanced tools
Comparing version 2.1.6 to 2.2.0
{ | ||
"name": "@slate-serializers/html", | ||
"version": "2.1.6", | ||
"version": "2.2.0", | ||
"type": "commonjs", | ||
@@ -10,13 +10,10 @@ "dependencies": { | ||
"domutils": "^3.1.0", | ||
"html-entities": "^2.3.3", | ||
"htmlparser2": "~7.2.0", | ||
"postcss": "^8.4.24", | ||
"postcss-js": "^4.0.1", | ||
"slate": "^0.94.1", | ||
"slate-hyperscript": "^0.77.0", | ||
"@slate-serializers/dom": "2.1.6", | ||
"@slate-serializers/utilities": "2.1.5", | ||
"tslib": "2.5.0" | ||
"html-entities": "^2.5.2", | ||
"htmlparser2": "~9.1.0", | ||
"slate": "^0.102.0", | ||
"slate-hyperscript": "^0.100.0", | ||
"@slate-serializers/dom": "2.2.0", | ||
"tslib": "2.6.3" | ||
}, | ||
"main": "./src/index.js" | ||
} | ||
} |
@@ -10,4 +10,4 @@ "use strict"; | ||
const default_1 = require("./config/default"); | ||
const utilities_1 = require("@slate-serializers/utilities"); | ||
const whitespace_1 = require("./whitespace"); | ||
const blocks_1 = require("../../utilities/blocks"); | ||
const deserialize = ({ el, config = default_1.config, index = 0, childrenLength = 0, context = '', }) => { | ||
@@ -57,3 +57,3 @@ var _a, _b; | ||
isInlineEnd: Number.isInteger(childrenLength) && isLastChild, | ||
isNextSiblingBlock: (el.next && (0, domhandler_1.isTag)(el.next) && (0, utilities_1.isBlock)(el.next.tagName)) || false, | ||
isNextSiblingBlock: (el.next && (0, domhandler_1.isTag)(el.next) && (0, blocks_1.isBlock)(el.next.tagName)) || false, | ||
shouldTrimWhiteSpace: config.trimWhiteSpace, | ||
@@ -60,0 +60,0 @@ }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getContext = exports.isAllWhitespace = exports.minifyText = exports.processTextValue = void 0; | ||
const utilities_1 = require("@slate-serializers/utilities"); | ||
const blocks_1 = require("./../../utilities/blocks"); | ||
const processTextValue = ({ text, context = '', isInlineStart = false, isInlineEnd = false, isNextSiblingBlock = false, shouldTrimWhiteSpace = true }) => { | ||
@@ -45,3 +45,3 @@ let parsed = text; | ||
} | ||
if ((0, utilities_1.isBlock)(tagName)) { | ||
if ((0, blocks_1.isBlock)(tagName)) { | ||
return 'block'; | ||
@@ -48,0 +48,0 @@ } |
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
42115
10
33
492
+ Added@slate-serializers/dom@2.2.0(transitive)
+ Addedhtmlparser2@9.1.0(transitive)
+ Addedimmer@10.1.1(transitive)
+ Addedslate@0.102.0(transitive)
+ Addedslate-hyperscript@0.100.0(transitive)
+ Addedtslib@2.6.3(transitive)
- Removed@slate-serializers/utilities@2.1.5
- Removedpostcss@^8.4.24
- Removedpostcss-js@^4.0.1
- Removed@slate-serializers/dom@2.1.6(transitive)
- Removed@slate-serializers/utilities@2.1.5(transitive)
- Removedcamelcase-css@2.0.1(transitive)
- Removeddom-serializer@1.4.1(transitive)
- Removeddomhandler@4.3.1(transitive)
- Removeddomutils@2.8.0(transitive)
- Removedentities@2.2.03.0.1(transitive)
- Removedhtmlparser2@7.2.0(transitive)
- Removedimmer@9.0.21(transitive)
- Removednanoid@3.3.8(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.4.49(transitive)
- Removedpostcss-js@4.0.1(transitive)
- Removedslate@0.94.1(transitive)
- Removedslate-hyperscript@0.77.0(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedtslib@2.5.0(transitive)
Updated@slate-serializers/dom@2.2.0
Updatedhtml-entities@^2.5.2
Updatedhtmlparser2@~9.1.0
Updatedslate@^0.102.0
Updatedslate-hyperscript@^0.100.0
Updatedtslib@2.6.3