@atlaskit/editor-plugin-local-id 4.2.7 → 4.3.0

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,12 @@
1
1
  # @atlaskit/editor-plugin-local-id
2
2
 
3
+ ## 4.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8557b67bb48de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8557b67bb48de) -
8
+ Set isDirty to true for dirty transaction
9
+
3
10
  ## 4.2.7
4
11
 
5
12
  ### Patch Changes
@@ -4,7 +4,8 @@
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-plugin-local-id",
6
6
  "rootDir": "../",
7
- "composite": true
7
+ "composite": true,
8
+ "noCheck": true
8
9
  },
9
10
  "include": [
10
11
  "../src/**/*.ts",
@@ -4,7 +4,8 @@
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../jira/tsDist/@atlaskit__editor-plugin-local-id/app",
6
6
  "rootDir": "../",
7
- "composite": true
7
+ "composite": true,
8
+ "noCheck": true
8
9
  },
9
10
  "include": [
10
11
  "../src/**/*.ts",
@@ -4,7 +4,8 @@
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../tsDist/@atlaskit__editor-plugin-local-id/app",
6
6
  "rootDir": "../",
7
- "composite": true
7
+ "composite": true,
8
+ "noCheck": true
8
9
  },
9
10
  "include": [
10
11
  "../src/**/*.ts",
@@ -8,6 +8,7 @@ exports.localIdPluginKey = exports.createPlugin = exports.batchAddLocalIdToNodes
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _steps = require("@atlaskit/adf-schema/steps");
11
+ var _collab = require("@atlaskit/editor-common/collab");
11
12
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
12
13
  var _utils = require("@atlaskit/editor-common/utils");
13
14
  var _state = require("@atlaskit/editor-prosemirror/state");
@@ -71,10 +72,12 @@ var createPlugin = exports.createPlugin = function createPlugin(api) {
71
72
  if ((0, _platformFeatureFlags.fg)('platform_editor_localid_improvements')) {
72
73
  if (nodesToUpdate.size > 0) {
73
74
  batchAddLocalIdToNodes(nodesToUpdate, tr);
75
+ (0, _collab.tintDirtyTransaction)(tr);
74
76
  editorView.dispatch(tr);
75
77
  }
76
78
  } else if (localIdWasAdded) {
77
79
  tr.setMeta('addToHistory', false);
80
+ (0, _collab.tintDirtyTransaction)(tr);
78
81
  editorView.dispatch(tr);
79
82
  }
80
83
  });
@@ -1,5 +1,6 @@
1
1
  import { uuid } from '@atlaskit/adf-schema';
2
2
  import { BatchAttrsStep } from '@atlaskit/adf-schema/steps';
3
+ import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
3
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
5
  import { stepHasSlice } from '@atlaskit/editor-common/utils';
5
6
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
@@ -61,10 +62,12 @@ export const createPlugin = api => {
61
62
  if (fg('platform_editor_localid_improvements')) {
62
63
  if (nodesToUpdate.size > 0) {
63
64
  batchAddLocalIdToNodes(nodesToUpdate, tr);
65
+ tintDirtyTransaction(tr);
64
66
  editorView.dispatch(tr);
65
67
  }
66
68
  } else if (localIdWasAdded) {
67
69
  tr.setMeta('addToHistory', false);
70
+ tintDirtyTransaction(tr);
68
71
  editorView.dispatch(tr);
69
72
  }
70
73
  });
@@ -4,6 +4,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
4
4
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  import { uuid } from '@atlaskit/adf-schema';
6
6
  import { BatchAttrsStep } from '@atlaskit/adf-schema/steps';
7
+ import { tintDirtyTransaction } from '@atlaskit/editor-common/collab';
7
8
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
8
9
  import { stepHasSlice } from '@atlaskit/editor-common/utils';
9
10
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
@@ -64,10 +65,12 @@ export var createPlugin = function createPlugin(api) {
64
65
  if (fg('platform_editor_localid_improvements')) {
65
66
  if (nodesToUpdate.size > 0) {
66
67
  batchAddLocalIdToNodes(nodesToUpdate, tr);
68
+ tintDirtyTransaction(tr);
67
69
  editorView.dispatch(tr);
68
70
  }
69
71
  } else if (localIdWasAdded) {
70
72
  tr.setMeta('addToHistory', false);
73
+ tintDirtyTransaction(tr);
71
74
  editorView.dispatch(tr);
72
75
  }
73
76
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-local-id",
3
- "version": "4.2.7",
3
+ "version": "4.3.0",
4
4
  "description": "LocalId plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "raf-schd": "^4.0.3"
36
36
  },
37
37
  "peerDependencies": {
38
- "@atlaskit/editor-common": "^110.38.0",
38
+ "@atlaskit/editor-common": "^110.41.0",
39
39
  "react": "^18.2.0"
40
40
  },
41
41
  "devDependencies": {