@atlaskit/editor-plugin-card 11.5.2 → 11.5.4

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,21 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 11.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a05464ea42678`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a05464ea42678) -
8
+ EDITOR-2791 bump adf-schema
9
+ - Updated dependencies
10
+
11
+ ## 11.5.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`4cab7924c4af0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4cab7924c4af0) -
16
+ [ux] Clean up editor_inline_comments_paste_insert_nodes
17
+ - Updated dependencies
18
+
3
19
  ## 11.5.2
4
20
 
5
21
  ### Patch Changes
@@ -52,14 +52,12 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
52
52
  nodes.push(schema.text(' '));
53
53
  }
54
54
  tr.replaceWith(pos, pos + (node.text || url).length, nodes);
55
- if ((0, _platformFeatureFlags.fg)('editor_inline_comments_paste_insert_nodes')) {
56
- var annotationMarksForPos = (0, _utils.getAnnotationMarksForPos)($head);
57
- if (annotationMarksForPos && annotationMarksForPos.length > 0) {
58
- annotationMarksForPos.forEach(function (annotationMark) {
59
- // Add the annotation mark on to the inlineCard node and the trailing space node.
60
- tr.addMark(pos, pos + nodes[0].nodeSize + nodes[1].nodeSize, annotationMark);
61
- });
62
- }
55
+ var annotationMarksForPos = (0, _utils.getAnnotationMarksForPos)($head);
56
+ if (annotationMarksForPos && annotationMarksForPos.length > 0) {
57
+ annotationMarksForPos.forEach(function (annotationMark) {
58
+ // Add the annotation mark on to the inlineCard node and the trailing space node.
59
+ tr.addMark(pos, pos + nodes[0].nodeSize + nodes[1].nodeSize, annotationMark);
60
+ });
63
61
  }
64
62
  return $pos.node($pos.depth - 1).type.name;
65
63
  }
@@ -46,14 +46,12 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
46
46
  nodes.push(schema.text(' '));
47
47
  }
48
48
  tr.replaceWith(pos, pos + (node.text || url).length, nodes);
49
- if (fg('editor_inline_comments_paste_insert_nodes')) {
50
- const annotationMarksForPos = getAnnotationMarksForPos($head);
51
- if (annotationMarksForPos && annotationMarksForPos.length > 0) {
52
- annotationMarksForPos.forEach(annotationMark => {
53
- // Add the annotation mark on to the inlineCard node and the trailing space node.
54
- tr.addMark(pos, pos + nodes[0].nodeSize + nodes[1].nodeSize, annotationMark);
55
- });
56
- }
49
+ const annotationMarksForPos = getAnnotationMarksForPos($head);
50
+ if (annotationMarksForPos && annotationMarksForPos.length > 0) {
51
+ annotationMarksForPos.forEach(annotationMark => {
52
+ // Add the annotation mark on to the inlineCard node and the trailing space node.
53
+ tr.addMark(pos, pos + nodes[0].nodeSize + nodes[1].nodeSize, annotationMark);
54
+ });
57
55
  }
58
56
  return $pos.node($pos.depth - 1).type.name;
59
57
  }
@@ -46,14 +46,12 @@ function replaceLinksToCards(tr, cardAdf, schema, request) {
46
46
  nodes.push(schema.text(' '));
47
47
  }
48
48
  tr.replaceWith(pos, pos + (node.text || url).length, nodes);
49
- if (fg('editor_inline_comments_paste_insert_nodes')) {
50
- var annotationMarksForPos = getAnnotationMarksForPos($head);
51
- if (annotationMarksForPos && annotationMarksForPos.length > 0) {
52
- annotationMarksForPos.forEach(function (annotationMark) {
53
- // Add the annotation mark on to the inlineCard node and the trailing space node.
54
- tr.addMark(pos, pos + nodes[0].nodeSize + nodes[1].nodeSize, annotationMark);
55
- });
56
- }
49
+ var annotationMarksForPos = getAnnotationMarksForPos($head);
50
+ if (annotationMarksForPos && annotationMarksForPos.length > 0) {
51
+ annotationMarksForPos.forEach(function (annotationMark) {
52
+ // Add the annotation mark on to the inlineCard node and the trailing space node.
53
+ tr.addMark(pos, pos + nodes[0].nodeSize + nodes[1].nodeSize, annotationMark);
54
+ });
57
55
  }
58
56
  return $pos.node($pos.depth - 1).type.name;
59
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "11.5.2",
3
+ "version": "11.5.4",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.3.2",
32
+ "@atlaskit/adf-schema": "^51.4.0",
33
33
  "@atlaskit/analytics-next": "^11.1.0",
34
34
  "@atlaskit/button": "^23.6.0",
35
35
  "@atlaskit/custom-steps": "^0.16.0",
@@ -46,24 +46,24 @@
46
46
  "@atlaskit/editor-plugin-toolbar": "^3.4.0",
47
47
  "@atlaskit/editor-plugin-width": "^7.0.0",
48
48
  "@atlaskit/editor-prosemirror": "7.0.0",
49
- "@atlaskit/editor-shared-styles": "^3.9.0",
49
+ "@atlaskit/editor-shared-styles": "^3.10.0",
50
50
  "@atlaskit/frontend-utilities": "^3.2.0",
51
51
  "@atlaskit/icon": "^29.0.0",
52
52
  "@atlaskit/link": "^3.2.0",
53
53
  "@atlaskit/link-analytics": "^11.0.0",
54
54
  "@atlaskit/link-client-extension": "^6.0.0",
55
- "@atlaskit/link-datasource": "^4.29.0",
55
+ "@atlaskit/link-datasource": "^4.30.0",
56
56
  "@atlaskit/link-extractors": "^2.4.0",
57
57
  "@atlaskit/linking-common": "^9.8.0",
58
- "@atlaskit/linking-types": "^14.1.0",
58
+ "@atlaskit/linking-types": "^14.2.0",
59
59
  "@atlaskit/menu": "^8.4.0",
60
60
  "@atlaskit/platform-feature-flags": "^1.1.0",
61
61
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
62
62
  "@atlaskit/primitives": "^16.1.0",
63
63
  "@atlaskit/prosemirror-history": "^0.2.0",
64
- "@atlaskit/smart-card": "^43.6.0",
64
+ "@atlaskit/smart-card": "^43.7.0",
65
65
  "@atlaskit/theme": "^21.0.0",
66
- "@atlaskit/tmp-editor-statsig": "^13.35.0",
66
+ "@atlaskit/tmp-editor-statsig": "^13.38.0",
67
67
  "@atlaskit/tokens": "^8.0.0",
68
68
  "@babel/runtime": "^7.0.0",
69
69
  "@emotion/react": "^11.7.1",
@@ -73,7 +73,7 @@
73
73
  "uuid": "^3.1.0"
74
74
  },
75
75
  "peerDependencies": {
76
- "@atlaskit/editor-common": "^110.27.0",
76
+ "@atlaskit/editor-common": "^110.32.0",
77
77
  "@atlaskit/link-provider": "^4.0.0",
78
78
  "react": "^18.2.0",
79
79
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -112,9 +112,6 @@
112
112
  }
113
113
  },
114
114
  "platform-feature-flags": {
115
- "editor_inline_comments_paste_insert_nodes": {
116
- "type": "boolean"
117
- },
118
115
  "confluence-issue-terminology-refresh": {
119
116
  "type": "boolean"
120
117
  },