@atlaskit/editor-plugin-tasks-and-decisions 2.6.0 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 2.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#143105](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/143105)
8
+ [`96a8bff98afdc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/96a8bff98afdc) -
9
+ Added data attributes to toDOM
10
+ - Updated dependencies
11
+
12
+ ## 2.6.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 2.6.0
4
19
 
5
20
  ### Minor Changes
@@ -51,15 +51,20 @@ var taskItemSpecWithFixedToDOM = exports.taskItemSpecWithFixedToDOM = function t
51
51
  if (checked) {
52
52
  inputAttrs.checked = 'true';
53
53
  }
54
- return ['div', {
55
- class: _styles.TaskDecisionSharedCssClassName.TASK_CONTAINER,
54
+ var dataAttrs = {
55
+ 'data-task-local-id': node.attrs.localId,
56
+ 'data-task-state': node.attrs.state
57
+ };
58
+ return ['div', _objectSpread(_objectSpread({
59
+ class: _styles.TaskDecisionSharedCssClassName.TASK_CONTAINER
60
+ }, dataAttrs), {}, {
56
61
  style: (0, _lazyNodeView.convertToInlineCss)({
57
62
  listStyleType: 'none',
58
63
  lineHeight: '24px',
59
64
  minWidth: '48px',
60
65
  position: 'relative'
61
66
  })
62
- }, ['div', {
67
+ }), ['div', {
63
68
  style: (0, _lazyNodeView.convertToInlineCss)({
64
69
  display: 'flex'
65
70
  })
@@ -41,8 +41,13 @@ export const taskItemSpecWithFixedToDOM = () => {
41
41
  if (checked) {
42
42
  inputAttrs.checked = 'true';
43
43
  }
44
+ const dataAttrs = {
45
+ 'data-task-local-id': node.attrs.localId,
46
+ 'data-task-state': node.attrs.state
47
+ };
44
48
  return ['div', {
45
49
  class: TaskDecisionSharedCssClassName.TASK_CONTAINER,
50
+ ...dataAttrs,
46
51
  style: convertToInlineCss({
47
52
  listStyleType: 'none',
48
53
  lineHeight: '24px',
@@ -43,15 +43,20 @@ export var taskItemSpecWithFixedToDOM = function taskItemSpecWithFixedToDOM() {
43
43
  if (checked) {
44
44
  inputAttrs.checked = 'true';
45
45
  }
46
- return ['div', {
47
- class: TaskDecisionSharedCssClassName.TASK_CONTAINER,
46
+ var dataAttrs = {
47
+ 'data-task-local-id': node.attrs.localId,
48
+ 'data-task-state': node.attrs.state
49
+ };
50
+ return ['div', _objectSpread(_objectSpread({
51
+ class: TaskDecisionSharedCssClassName.TASK_CONTAINER
52
+ }, dataAttrs), {}, {
48
53
  style: convertToInlineCss({
49
54
  listStyleType: 'none',
50
55
  lineHeight: '24px',
51
56
  minWidth: '48px',
52
57
  position: 'relative'
53
58
  })
54
- }, ['div', {
59
+ }), ['div', {
55
60
  style: convertToInlineCss({
56
61
  display: 'flex'
57
62
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/adf-schema": "^40.9.0",
35
35
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
36
36
  "@atlaskit/analytics-next": "^10.1.0",
37
- "@atlaskit/editor-common": "^89.3.0",
37
+ "@atlaskit/editor-common": "^90.1.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
39
39
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
40
40
  "@atlaskit/editor-plugin-type-ahead": "^1.8.0",
package/.eslintrc.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-duplicate-imports': 'error',
4
- '@typescript-eslint/no-explicit-any': 'error',
5
- },
6
- };