@atlaskit/adf-schema
Advanced tools
Comparing version 2.4.0 to 2.4.1
# @atlaskit/adf-schema | ||
## 2.4.1 | ||
- [patch] [97e555c168](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97e555c168): | ||
- Revert "[ED-5259 - ED-6200] adds defaultMarks on tableNode (pull request #5259)" | ||
## 2.4.0 | ||
@@ -4,0 +9,0 @@ - [minor] [09a90e4af1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/09a90e4af1): |
import { Node as PmNode } from 'prosemirror-model'; | ||
import { TableCellContent } from './doc'; | ||
import { StrongDefinition as Strong, EmDefinition as Em, CodeDefinition as Code, StrikeDefinition as Strike, SubSupDefinition as SubSup, UnderlineDefinition as Underline, TextColorDefinition as TextColor } from '../marks'; | ||
export declare const setCellAttrs: (node: PmNode<any>, cell?: HTMLElement | undefined) => { | ||
@@ -9,3 +8,2 @@ colspan?: number | undefined; | ||
'data-colwidth'?: string | undefined; | ||
'data-default-marks'?: string | undefined; | ||
}; | ||
@@ -71,7 +69,2 @@ export declare const tableBackgroundColorPalette: Map<string, string>; | ||
background?: string; | ||
/** | ||
* @stage 0 | ||
* @forceContentValidation true | ||
*/ | ||
defaultMarks?: Array<Em | Strong | Code | Strike | SubSup | Underline | TextColor>; | ||
} | ||
@@ -107,5 +100,2 @@ export declare const table: any; | ||
}; | ||
defaultMarks: { | ||
default: null; | ||
}; | ||
}; | ||
@@ -126,3 +116,2 @@ tableRole: string; | ||
background: string | null; | ||
defaultMarks: any; | ||
}; | ||
@@ -136,3 +125,2 @@ ignore?: undefined; | ||
'data-colwidth'?: string | undefined; | ||
'data-default-marks'?: string | undefined; | ||
})[]; | ||
@@ -158,5 +146,2 @@ }; | ||
}; | ||
defaultMarks: { | ||
default: null; | ||
}; | ||
}; | ||
@@ -173,3 +158,2 @@ tableRole: string; | ||
background: string | null; | ||
defaultMarks: any; | ||
}; | ||
@@ -182,3 +166,2 @@ }[]; | ||
'data-colwidth'?: string | undefined; | ||
'data-default-marks'?: string | undefined; | ||
})[]; | ||
@@ -185,0 +168,0 @@ }; |
@@ -16,8 +16,2 @@ import * as tslib_1 from "tslib"; | ||
} | ||
var dataDefaultMarks = dom.getAttribute('data-default-marks'); | ||
var defaultMarks = null; | ||
try { | ||
defaultMarks = dataDefaultMarks ? JSON.parse(dataDefaultMarks) : null; | ||
} | ||
catch (e) { } | ||
return { | ||
@@ -30,3 +24,2 @@ colspan: colspan, | ||
: null, | ||
defaultMarks: defaultMarks, | ||
}; | ||
@@ -65,5 +58,2 @@ }; | ||
} | ||
if (node.attrs.defaultMarks) { | ||
attrs['data-default-marks'] = JSON.stringify(node.attrs.defaultMarks); | ||
} | ||
return attrs; | ||
@@ -171,3 +161,2 @@ }; | ||
background: { default: null }, | ||
defaultMarks: { default: null }, | ||
}; | ||
@@ -174,0 +163,0 @@ export var tableCell = { |
import { Node as PmNode } from 'prosemirror-model'; | ||
import { TableCellContent } from './doc'; | ||
import { StrongDefinition as Strong, EmDefinition as Em, CodeDefinition as Code, StrikeDefinition as Strike, SubSupDefinition as SubSup, UnderlineDefinition as Underline, TextColorDefinition as TextColor } from '../marks'; | ||
export declare const setCellAttrs: (node: PmNode<any>, cell?: HTMLElement | undefined) => { | ||
@@ -9,3 +8,2 @@ colspan?: number | undefined; | ||
'data-colwidth'?: string | undefined; | ||
'data-default-marks'?: string | undefined; | ||
}; | ||
@@ -71,7 +69,2 @@ export declare const tableBackgroundColorPalette: Map<string, string>; | ||
background?: string; | ||
/** | ||
* @stage 0 | ||
* @forceContentValidation true | ||
*/ | ||
defaultMarks?: Array<Em | Strong | Code | Strike | SubSup | Underline | TextColor>; | ||
} | ||
@@ -107,5 +100,2 @@ export declare const table: any; | ||
}; | ||
defaultMarks: { | ||
default: null; | ||
}; | ||
}; | ||
@@ -126,3 +116,2 @@ tableRole: string; | ||
background: string | null; | ||
defaultMarks: any; | ||
}; | ||
@@ -136,3 +125,2 @@ ignore?: undefined; | ||
'data-colwidth'?: string | undefined; | ||
'data-default-marks'?: string | undefined; | ||
})[]; | ||
@@ -158,5 +146,2 @@ }; | ||
}; | ||
defaultMarks: { | ||
default: null; | ||
}; | ||
}; | ||
@@ -173,3 +158,2 @@ tableRole: string; | ||
background: string | null; | ||
defaultMarks: any; | ||
}; | ||
@@ -182,3 +166,2 @@ }[]; | ||
'data-colwidth'?: string | undefined; | ||
'data-default-marks'?: string | undefined; | ||
})[]; | ||
@@ -185,0 +168,0 @@ }; |
@@ -18,8 +18,2 @@ "use strict"; | ||
} | ||
var dataDefaultMarks = dom.getAttribute('data-default-marks'); | ||
var defaultMarks = null; | ||
try { | ||
defaultMarks = dataDefaultMarks ? JSON.parse(dataDefaultMarks) : null; | ||
} | ||
catch (e) { } | ||
return { | ||
@@ -32,3 +26,2 @@ colspan: colspan, | ||
: null, | ||
defaultMarks: defaultMarks, | ||
}; | ||
@@ -67,5 +60,2 @@ }; | ||
} | ||
if (node.attrs.defaultMarks) { | ||
attrs['data-default-marks'] = JSON.stringify(node.attrs.defaultMarks); | ||
} | ||
return attrs; | ||
@@ -174,3 +164,2 @@ }; | ||
background: { default: null }, | ||
defaultMarks: { default: null }, | ||
}; | ||
@@ -177,0 +166,0 @@ exports.tableCell = { |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.3.2", | ||
"version": "2.4.0", | ||
"sideEffects": false | ||
} |
@@ -1518,30 +1518,2 @@ { | ||
"type": "string" | ||
}, | ||
"defaultMarks": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/em_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/code_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/strike_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/strong_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/underline_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/subsup_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/textColor_mark" | ||
} | ||
] | ||
} | ||
} | ||
@@ -1586,30 +1558,2 @@ }, | ||
"type": "string" | ||
}, | ||
"defaultMarks": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/em_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/code_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/strike_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/strong_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/underline_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/subsup_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/textColor_mark" | ||
} | ||
] | ||
} | ||
} | ||
@@ -1616,0 +1560,0 @@ }, |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"sideEffects": false | ||
} |
@@ -1518,30 +1518,2 @@ { | ||
"type": "string" | ||
}, | ||
"defaultMarks": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/em_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/code_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/strike_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/strong_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/underline_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/subsup_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/textColor_mark" | ||
} | ||
] | ||
} | ||
} | ||
@@ -1586,30 +1558,2 @@ }, | ||
"type": "string" | ||
}, | ||
"defaultMarks": { | ||
"type": "array", | ||
"items": { | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/definitions/em_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/code_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/strike_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/strong_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/underline_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/subsup_mark" | ||
}, | ||
{ | ||
"$ref": "#/definitions/textColor_mark" | ||
} | ||
] | ||
} | ||
} | ||
@@ -1616,0 +1560,0 @@ }, |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"sideEffects": false | ||
} |
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
699866
18387