@atlaskit/editor-plugin-tasks-and-decisions 2.4.1 → 2.4.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,16 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 2.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#134213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134213)
8
+ [`93bd7032842ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93bd7032842ec) -
9
+ [ux] [ED-24636] Bump ADF Schema package
10
+ - [#134135](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134135)
11
+ [`9cad1ed145e27`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9cad1ed145e27) -
12
+ updated lnv toDOM implementation of decision node to match ReactNodeView
13
+
3
14
  ## 2.4.1
4
15
 
5
16
  ### Patch Changes
@@ -22,8 +22,9 @@ var decisionItemSpecWithFixedToDOM = exports.decisionItemSpecWithFixedToDOM = fu
22
22
  localId = _node$attrs.localId,
23
23
  state = _node$attrs.state;
24
24
  var attrs = {
25
- 'data-decision-local-id': localId || 'local-decision',
26
- 'data-decision-state': state,
25
+ decisionLocalId: localId || 'local-decision',
26
+ decisionState: state,
27
+ class: 'decisionItemView-content-wrap',
27
28
  // Styles to match `packages/elements/task-decision/src/components/styles.ts`
28
29
  style: (0, _lazyNodeView.convertToInlineCss)({
29
30
  background: "var(--ds-background-neutral, rgba(9, 30, 66, 0.04))",
@@ -34,13 +35,19 @@ var decisionItemSpecWithFixedToDOM = exports.decisionItemSpecWithFixedToDOM = fu
34
35
  })
35
36
  };
36
37
  return ['li', attrs, ['span', {
37
- // Styles to match `packages/elements/task-decision/src/components/DecisionItem.tsx`
38
38
  style: (0, _lazyNodeView.convertToInlineCss)({
39
39
  width: '16px',
40
40
  height: '16px',
41
41
  margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-200, 16px)", " 0 0")
42
42
  })
43
- }], ['span', 0]];
43
+ }], ['div', {
44
+ 'data-decision-wrapper': true,
45
+ 'data-testid': 'elements-decision-item'
46
+ }, ['div', {
47
+ 'data-component': 'content'
48
+ }, ['div', {
49
+ class: 'decision-item'
50
+ }, 0]]]];
44
51
  }
45
52
  });
46
53
  };
@@ -14,8 +14,9 @@ export const decisionItemSpecWithFixedToDOM = () => {
14
14
  state
15
15
  } = node.attrs;
16
16
  const attrs = {
17
- 'data-decision-local-id': localId || 'local-decision',
18
- 'data-decision-state': state,
17
+ decisionLocalId: localId || 'local-decision',
18
+ decisionState: state,
19
+ class: 'decisionItemView-content-wrap',
19
20
  // Styles to match `packages/elements/task-decision/src/components/styles.ts`
20
21
  style: convertToInlineCss({
21
22
  background: "var(--ds-background-neutral, rgba(9, 30, 66, 0.04))",
@@ -26,13 +27,19 @@ export const decisionItemSpecWithFixedToDOM = () => {
26
27
  })
27
28
  };
28
29
  return ['li', attrs, ['span', {
29
- // Styles to match `packages/elements/task-decision/src/components/DecisionItem.tsx`
30
30
  style: convertToInlineCss({
31
31
  width: '16px',
32
32
  height: '16px',
33
33
  margin: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-200, 16px)"} 0 0`
34
34
  })
35
- }], ['span', 0]];
35
+ }], ['div', {
36
+ 'data-decision-wrapper': true,
37
+ 'data-testid': 'elements-decision-item'
38
+ }, ['div', {
39
+ 'data-component': 'content'
40
+ }, ['div', {
41
+ class: 'decision-item'
42
+ }, 0]]]];
36
43
  }
37
44
  };
38
45
  };
@@ -15,8 +15,9 @@ export var decisionItemSpecWithFixedToDOM = function decisionItemSpecWithFixedTo
15
15
  localId = _node$attrs.localId,
16
16
  state = _node$attrs.state;
17
17
  var attrs = {
18
- 'data-decision-local-id': localId || 'local-decision',
19
- 'data-decision-state': state,
18
+ decisionLocalId: localId || 'local-decision',
19
+ decisionState: state,
20
+ class: 'decisionItemView-content-wrap',
20
21
  // Styles to match `packages/elements/task-decision/src/components/styles.ts`
21
22
  style: convertToInlineCss({
22
23
  background: "var(--ds-background-neutral, rgba(9, 30, 66, 0.04))",
@@ -27,13 +28,19 @@ export var decisionItemSpecWithFixedToDOM = function decisionItemSpecWithFixedTo
27
28
  })
28
29
  };
29
30
  return ['li', attrs, ['span', {
30
- // Styles to match `packages/elements/task-decision/src/components/DecisionItem.tsx`
31
31
  style: convertToInlineCss({
32
32
  width: '16px',
33
33
  height: '16px',
34
34
  margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-200, 16px)", " 0 0")
35
35
  })
36
- }], ['span', 0]];
36
+ }], ['div', {
37
+ 'data-decision-wrapper': true,
38
+ 'data-testid': 'elements-decision-item'
39
+ }, ['div', {
40
+ 'data-component': 'content'
41
+ }, ['div', {
42
+ class: 'decision-item'
43
+ }, 0]]]];
37
44
  }
38
45
  });
39
46
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,15 +33,15 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^40.8.1",
36
+ "@atlaskit/adf-schema": "^40.9.0",
37
37
  "@atlaskit/analytics-namespaced-context": "^6.11.0",
38
38
  "@atlaskit/analytics-next": "^10.1.0",
39
- "@atlaskit/editor-common": "^88.0.0",
39
+ "@atlaskit/editor-common": "^88.2.0",
40
40
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
41
41
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
42
42
  "@atlaskit/editor-plugin-type-ahead": "^1.8.0",
43
43
  "@atlaskit/editor-prosemirror": "5.0.1",
44
- "@atlaskit/icon": "^22.14.0",
44
+ "@atlaskit/icon": "^22.15.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.3.0",
46
46
  "@atlaskit/prosemirror-input-rules": "^3.2.0",
47
47
  "@atlaskit/task-decision": "^17.10.0",