@atlaskit/adf-schema
Advanced tools
Comparing version 3.1.0 to 3.1.1
# @atlaskit/adf-schema | ||
## 3.1.1 | ||
### Patch Changes | ||
- [patch][0d7d459f1a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0d7d459f1a): | ||
Fixes type errors which were incompatible with TS 3.6 | ||
## 3.1.0 | ||
@@ -4,0 +12,0 @@ |
@@ -54,3 +54,3 @@ "use strict"; | ||
'a', | ||
tslib_1.__assign({}, attrs, { class: 'blockLink' }), | ||
tslib_1.__assign(tslib_1.__assign({}, attrs), { class: 'blockLink' }), | ||
0, | ||
@@ -57,0 +57,0 @@ ]; |
@@ -28,3 +28,3 @@ "use strict"; | ||
var key = exports.camelCaseToKebabCase(k).replace(/^__/, ''); | ||
var value = dom.getAttribute("data-" + key); | ||
var value = dom.getAttribute("data-" + key) || ''; | ||
if (value) { | ||
@@ -31,0 +31,0 @@ attrs[k] = value; |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"sideEffects": false | ||
} |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __assign, __read, __spread } from "tslib"; | ||
import { Schema } from 'prosemirror-model'; | ||
@@ -99,3 +99,3 @@ import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups'; | ||
]; | ||
var marksInOrder = tslib_1.__spread([ | ||
var marksInOrder = __spread([ | ||
{ name: 'link', spec: link }, | ||
@@ -138,3 +138,3 @@ { name: 'em', spec: em }, | ||
nodeNames.forEach(function (nodeKey) { | ||
var nodeSpec = tslib_1.__assign({}, nodes[nodeKey]); | ||
var nodeSpec = __assign({}, nodes[nodeKey]); | ||
if (nodeSpec.marks && nodeSpec.marks !== '_') { | ||
@@ -141,0 +141,0 @@ nodeSpec.marks = nodeSpec.marks |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __assign } from "tslib"; | ||
import { LINK, COLOR } from '../groups'; | ||
@@ -52,3 +52,3 @@ import { isSafeUrl, normalizeUrl } from '../../utils/url'; | ||
'a', | ||
tslib_1.__assign({}, attrs, { class: 'blockLink' }), | ||
__assign(__assign({}, attrs), { class: 'blockLink' }), | ||
0, | ||
@@ -55,0 +55,0 @@ ]; |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __read } from "tslib"; | ||
import { COLOR } from '../groups'; | ||
@@ -24,3 +24,3 @@ import { rgbToHex, N90, Y500, T500, R500, P500, G500, N80, Y400, T300, R300, P300, G300, } from '../../utils/colors'; | ||
].forEach(function (_a) { | ||
var _b = tslib_1.__read(_a, 2), color = _b[0], label = _b[1]; | ||
var _b = __read(_a, 2), color = _b[0], label = _b[1]; | ||
return colorPalette.set(color.toLowerCase(), label); | ||
@@ -27,0 +27,0 @@ }); |
@@ -26,3 +26,3 @@ import { N30 } from '../../utils/colors'; | ||
var key = camelCaseToKebabCase(k).replace(/^__/, ''); | ||
var value = dom.getAttribute("data-" + key); | ||
var value = dom.getAttribute("data-" + key) || ''; | ||
if (value) { | ||
@@ -29,0 +29,0 @@ attrs[k] = value; |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __read } from "tslib"; | ||
import { isRgb, rgbToHex, N20, B50, T50, P50, R50, G50, Y50, N0, B75, G75, R75, N40, P75, T75, Y75, } from '../../utils/colors'; | ||
@@ -91,3 +91,3 @@ export var tablePrefixSelector = 'pm-table'; | ||
].forEach(function (_a) { | ||
var _b = tslib_1.__read(_a, 2), colorValue = _b[0], colorName = _b[1]; | ||
var _b = __read(_a, 2), colorValue = _b[0], colorName = _b[1]; | ||
tableBackgroundColorPalette.set(colorValue.toLowerCase(), colorName); | ||
@@ -94,0 +94,0 @@ tableBackgroundColorNames.set(colorName.toLowerCase(), colorValue.toLowerCase()); |
@@ -1,2 +0,2 @@ | ||
import * as tslib_1 from "tslib"; | ||
import { __read } from "tslib"; | ||
import * as namedColors from 'css-color-names'; | ||
@@ -130,3 +130,3 @@ /** | ||
if (matches && matches.length >= 3) { | ||
var _a = tslib_1.__read(matches.map(Number), 3), red = _a[0], green = _a[1], blue = _a[2]; | ||
var _a = __read(matches.map(Number), 3), red = _a[0], green = _a[1], blue = _a[2]; | ||
return ('#' + | ||
@@ -133,0 +133,0 @@ (blue | (green << 8) | (red << 16) | (1 << 24)).toString(16).slice(1) // eslint-disable-line no-bitwise |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs", | ||
@@ -41,4 +41,4 @@ "license": "Apache-2.0", | ||
"@atlaskit/editor-json-transformer": "^6.3.0", | ||
"@atlaskit/editor-test-helpers": "^9.11.8", | ||
"@atlaskit/json-schema-generator": "^2.1.1", | ||
"@atlaskit/editor-test-helpers": "^9.11.10", | ||
"@atlaskit/json-schema-generator": "^2.1.3", | ||
"ajv": "^4.11.3", | ||
@@ -45,0 +45,0 @@ "axios": "^0.18.0", |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"sideEffects": false | ||
} |
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
730076
455
19148