@atlaskit/editor-plugin-paste 31.0.1 → 31.0.3

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,19 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 31.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4cdaf1f75d6ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4cdaf1f75d6ad) -
8
+ Use const for stable local bindings
9
+ - Updated dependencies
10
+
11
+ ## 31.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 31.0.1
4
18
 
5
19
  ### Patch Changes
@@ -126,14 +126,13 @@ var fillIncompleteRowWithEmptyCells = function fillIncompleteRowWithEmptyCells(d
126
126
  * headers exist.
127
127
  */
128
128
  var tryReconstructTableRows = exports.tryReconstructTableRows = function tryReconstructTableRows(doc) {
129
- // Ignored via go/ees005
130
- // eslint-disable-next-line prefer-const
131
129
  var _getTableElementsInfo = getTableElementsInfo(doc),
132
- cellCount = _getTableElementsInfo.cellCount,
130
+ initialCellCount = _getTableElementsInfo.cellCount,
133
131
  thCount = _getTableElementsInfo.thCount,
134
132
  mergedCellCount = _getTableElementsInfo.mergedCellCount,
135
133
  hasThAfterTd = _getTableElementsInfo.hasThAfterTd,
136
134
  hasIncompleteRow = _getTableElementsInfo.hasIncompleteRow;
135
+ var cellCount = initialCellCount;
137
136
  if (mergedCellCount || hasThAfterTd) {
138
137
  // bail out to avoid handling more complex table structures
139
138
  return doc.body.innerHTML;
@@ -108,15 +108,14 @@ const fillIncompleteRowWithEmptyCells = (doc, thCount, cellCount) => {
108
108
  * headers exist.
109
109
  */
110
110
  export const tryReconstructTableRows = doc => {
111
- // Ignored via go/ees005
112
- // eslint-disable-next-line prefer-const
113
- let {
114
- cellCount,
111
+ const {
112
+ cellCount: initialCellCount,
115
113
  thCount,
116
114
  mergedCellCount,
117
115
  hasThAfterTd,
118
116
  hasIncompleteRow
119
117
  } = getTableElementsInfo(doc);
118
+ let cellCount = initialCellCount;
120
119
  if (mergedCellCount || hasThAfterTd) {
121
120
  // bail out to avoid handling more complex table structures
122
121
  return doc.body.innerHTML;
@@ -119,14 +119,13 @@ var fillIncompleteRowWithEmptyCells = function fillIncompleteRowWithEmptyCells(d
119
119
  * headers exist.
120
120
  */
121
121
  export var tryReconstructTableRows = function tryReconstructTableRows(doc) {
122
- // Ignored via go/ees005
123
- // eslint-disable-next-line prefer-const
124
122
  var _getTableElementsInfo = getTableElementsInfo(doc),
125
- cellCount = _getTableElementsInfo.cellCount,
123
+ initialCellCount = _getTableElementsInfo.cellCount,
126
124
  thCount = _getTableElementsInfo.thCount,
127
125
  mergedCellCount = _getTableElementsInfo.mergedCellCount,
128
126
  hasThAfterTd = _getTableElementsInfo.hasThAfterTd,
129
127
  hasIncompleteRow = _getTableElementsInfo.hasIncompleteRow;
128
+ var cellCount = initialCellCount;
130
129
  if (mergedCellCount || hasThAfterTd) {
131
130
  // bail out to avoid handling more complex table structures
132
131
  return doc.body.innerHTML;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "31.0.1",
3
+ "version": "31.0.3",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/editor-plugin-extension": "^33.0.0",
32
32
  "@atlaskit/editor-plugin-feature-flags": "^29.0.0",
33
33
  "@atlaskit/editor-plugin-list": "^32.0.0",
34
- "@atlaskit/editor-plugin-media": "^32.0.0",
34
+ "@atlaskit/editor-plugin-media": "^32.1.0",
35
35
  "@atlaskit/editor-plugin-mentions": "^32.0.0",
36
36
  "@atlaskit/editor-prosemirror": "^9.0.0",
37
37
  "@atlaskit/editor-tables": "^3.2.0",
@@ -44,14 +44,14 @@
44
44
  "@atlaskit/platform-feature-experiments": "^0.3.0",
45
45
  "@atlaskit/platform-feature-flags": "^2.2.0",
46
46
  "@atlaskit/prosemirror-history": "^1.3.0",
47
- "@atlaskit/tmp-editor-statsig": "^247.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^248.0.0",
48
48
  "@atlaskit/tokens": "^20.8.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "lodash": "^4.17.21",
51
51
  "uuid": "^11.1.1"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^134.0.0",
54
+ "@atlaskit/editor-common": "^134.1.0",
55
55
  "react": "^18.2.0 || ^19.2.0",
56
56
  "react-dom": "^18.2.0 || ^19.2.0",
57
57
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -60,8 +60,7 @@
60
60
  "@testing-library/react": "^16.3.0",
61
61
  "react": "^19.2.0",
62
62
  "react-dom": "^19.2.0",
63
- "react-intl": "^7.0.0",
64
- "wait-for-expect": "^1.2.0"
63
+ "react-intl": "^7.0.0"
65
64
  },
66
65
  "platform-feature-flags": {
67
66
  "platform_editor_legacy_content_macro_insert": {