@atlaskit/editor-plugin-tasks-and-decisions 4.1.4 → 4.1.6

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,17 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 4.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 4.1.4
4
16
 
5
17
  ### Patch Changes
@@ -28,6 +28,8 @@ var decisionItemSpecWithFixedToDOM = exports.decisionItemSpecWithFixedToDOM = fu
28
28
  class: 'decisionItemView-content-wrap'
29
29
  };
30
30
 
31
+ // Ignored via go/ees007
32
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
31
33
  // TODO: can copy raw SVG from DST later
32
34
  var decisionItemIcon = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
33
35
  decisionItemIcon.setAttribute('width', '24');
@@ -82,9 +82,7 @@ var addItem = function addItem(start, end) {
82
82
  localId: listLocalId
83
83
  }, [item.create(_objectSpread({
84
84
  localId: itemLocalId
85
- }, itemAttrs),
86
- // TODO: [ts30] handle void and null properly
87
- tr.doc.nodeAt($from.pos + 1).content)])).setSelection(new _state.TextSelection(tr.doc.resolve($from.pos + depthAdjustment))).delete(start, end + 1);
85
+ }, itemAttrs), tr.doc.nodeAt($from.pos + 1).content)])).setSelection(new _state.TextSelection(tr.doc.resolve($from.pos + depthAdjustment))).delete(start, end + 1);
88
86
  return tr;
89
87
  };
90
88
  };
@@ -48,10 +48,6 @@ function createPlugin(portalProviderAPI, eventDispatcher, providerFactory, dispa
48
48
  // should be replaced with what was just typed. This custom text input handler
49
49
  // is needed to implement that behaviour.
50
50
 
51
- // TODO: ProseMirror should already do this by default
52
- // Tech debt to investigate why we need a custom handler here:
53
- // https://product-fabric.atlassian.net/browse/ED-9278
54
-
55
51
  var state = view.state,
56
52
  dispatch = view.dispatch;
57
53
  var tr = state.tr;
@@ -20,6 +20,8 @@ export const decisionItemSpecWithFixedToDOM = () => {
20
20
  class: 'decisionItemView-content-wrap'
21
21
  };
22
22
 
23
+ // Ignored via go/ees007
24
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
23
25
  // TODO: can copy raw SVG from DST later
24
26
  const decisionItemIcon = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
25
27
  decisionItemIcon.setAttribute('width', '24');
@@ -82,9 +82,7 @@ const addItem = (start, end) => ({
82
82
  }, [item.create({
83
83
  localId: itemLocalId,
84
84
  ...itemAttrs
85
- },
86
- // TODO: [ts30] handle void and null properly
87
- tr.doc.nodeAt($from.pos + 1).content)])).setSelection(new TextSelection(tr.doc.resolve($from.pos + depthAdjustment))).delete(start, end + 1);
85
+ }, tr.doc.nodeAt($from.pos + 1).content)])).setSelection(new TextSelection(tr.doc.resolve($from.pos + depthAdjustment))).delete(start, end + 1);
88
86
  return tr;
89
87
  };
90
88
  export const inputRulePlugin = (editorAnalyticsAPI, getContextIdentifierProvider) => (schema, featureFlags) => {
@@ -31,10 +31,6 @@ export function createPlugin(portalProviderAPI, eventDispatcher, providerFactory
31
31
  // should be replaced with what was just typed. This custom text input handler
32
32
  // is needed to implement that behaviour.
33
33
 
34
- // TODO: ProseMirror should already do this by default
35
- // Tech debt to investigate why we need a custom handler here:
36
- // https://product-fabric.atlassian.net/browse/ED-9278
37
-
38
34
  const {
39
35
  state,
40
36
  dispatch
@@ -21,6 +21,8 @@ export var decisionItemSpecWithFixedToDOM = function decisionItemSpecWithFixedTo
21
21
  class: 'decisionItemView-content-wrap'
22
22
  };
23
23
 
24
+ // Ignored via go/ees007
25
+ // eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
24
26
  // TODO: can copy raw SVG from DST later
25
27
  var decisionItemIcon = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
26
28
  decisionItemIcon.setAttribute('width', '24');
@@ -75,9 +75,7 @@ var addItem = function addItem(start, end) {
75
75
  localId: listLocalId
76
76
  }, [item.create(_objectSpread({
77
77
  localId: itemLocalId
78
- }, itemAttrs),
79
- // TODO: [ts30] handle void and null properly
80
- tr.doc.nodeAt($from.pos + 1).content)])).setSelection(new TextSelection(tr.doc.resolve($from.pos + depthAdjustment))).delete(start, end + 1);
78
+ }, itemAttrs), tr.doc.nodeAt($from.pos + 1).content)])).setSelection(new TextSelection(tr.doc.resolve($from.pos + depthAdjustment))).delete(start, end + 1);
81
79
  return tr;
82
80
  };
83
81
  };
@@ -41,10 +41,6 @@ export function createPlugin(portalProviderAPI, eventDispatcher, providerFactory
41
41
  // should be replaced with what was just typed. This custom text input handler
42
42
  // is needed to implement that behaviour.
43
43
 
44
- // TODO: ProseMirror should already do this by default
45
- // Tech debt to investigate why we need a custom handler here:
46
- // https://product-fabric.atlassian.net/browse/ED-9278
47
-
48
44
  var state = view.state,
49
45
  dispatch = view.dispatch;
50
46
  var tr = state.tr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "4.1.4",
3
+ "version": "4.1.6",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,21 +37,21 @@
37
37
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
38
38
  "@atlaskit/analytics-next": "^11.0.0",
39
39
  "@atlaskit/css": "^0.10.0",
40
- "@atlaskit/editor-common": "^101.1.0",
40
+ "@atlaskit/editor-common": "^102.4.0",
41
41
  "@atlaskit/editor-plugin-analytics": "^2.1.0",
42
42
  "@atlaskit/editor-plugin-context-identifier": "^2.0.0",
43
- "@atlaskit/editor-plugin-editor-viewmode": "3.0.1",
43
+ "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
44
44
  "@atlaskit/editor-plugin-type-ahead": "^2.1.0",
45
45
  "@atlaskit/editor-prosemirror": "7.0.0",
46
- "@atlaskit/heading": "5.1.0",
47
- "@atlaskit/icon": "24.1.0",
46
+ "@atlaskit/heading": "^5.1.0",
47
+ "@atlaskit/icon": "^25.0.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
- "@atlaskit/popup": "2.0.3",
50
- "@atlaskit/primitives": "14.1.3",
49
+ "@atlaskit/popup": "^2.0.0",
50
+ "@atlaskit/primitives": "^14.1.0",
51
51
  "@atlaskit/prosemirror-input-rules": "^3.3.0",
52
52
  "@atlaskit/task-decision": "^19.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^3.4.0",
54
- "@atlaskit/tokens": "4.3.2",
53
+ "@atlaskit/tmp-editor-statsig": "^3.6.0",
54
+ "@atlaskit/tokens": "^4.4.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@compiled/react": "^0.18.2"
57
57
  },
@@ -61,11 +61,11 @@
61
61
  "react-intl-next": "npm:react-intl@^5.18.1"
62
62
  },
63
63
  "devDependencies": {
64
- "@af/integration-testing": "*",
65
- "@af/visual-regression": "*",
66
- "@atlaskit/ssr": "*",
64
+ "@af/integration-testing": "^0.5.0",
65
+ "@af/visual-regression": "^1.3.0",
66
+ "@atlaskit/ssr": "^0.4.0",
67
67
  "@atlaskit/util-data-test": "^18.0.0",
68
- "@atlaskit/visual-regression": "*",
68
+ "@atlaskit/visual-regression": "^0.10.0",
69
69
  "@testing-library/react": "^13.4.0",
70
70
  "typescript": "~5.4.2",
71
71
  "wait-for-expect": "^1.2.0"