@atlaskit/editor-plugin-local-id 8.1.1 → 8.1.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,13 @@
1
1
  # @atlaskit/editor-plugin-local-id
2
2
 
3
+ ## 8.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`79c9ce8cbf593`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/79c9ce8cbf593) -
8
+ FFCLEANUP-84819 - Clean up platform_editor_localid_ime_composition_fix
9
+ - Updated dependencies
10
+
3
11
  ## 8.1.1
4
12
 
5
13
  ### Patch Changes
@@ -35,9 +35,6 @@
35
35
  {
36
36
  "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
37
37
  },
38
- {
39
- "path": "../../tmp-editor-statsig/afm-cc/tsconfig.json"
40
- },
41
38
  {
42
39
  "path": "../../editor-common/afm-cc/tsconfig.json"
43
40
  }
@@ -12,7 +12,6 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
12
12
  var _utils = require("@atlaskit/editor-common/utils");
13
13
  var _state = require("@atlaskit/editor-prosemirror/state");
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
15
  var _generateShortUUID = require("./generateShortUUID");
17
16
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
18
17
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -93,7 +92,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api) {
93
92
  */
94
93
  appendTransaction: function appendTransaction(transactions, _oldState, newState) {
95
94
  var _api$composition$shar;
96
- if (api !== null && api !== void 0 && (_api$composition$shar = api.composition.sharedState.currentState()) !== null && _api$composition$shar !== void 0 && _api$composition$shar.isComposing && (0, _expValEquals.expValEquals)('platform_editor_localid_ime_composition_fix', 'isEnabled', true)) {
95
+ if (api !== null && api !== void 0 && (_api$composition$shar = api.composition.sharedState.currentState()) !== null && _api$composition$shar !== void 0 && _api$composition$shar.isComposing) {
97
96
  return undefined;
98
97
  }
99
98
  var modified = false;
@@ -4,7 +4,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
4
  import { stepHasSlice } from '@atlaskit/editor-common/utils';
5
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
7
  import { generateShortUUID, generatedShortUUIDs } from './generateShortUUID';
9
8
  export const localIdPluginKey = new PluginKey('localIdPlugin');
10
9
  const generateUUID = () => {
@@ -83,7 +82,7 @@ export const createPlugin = api => {
83
82
  */
84
83
  appendTransaction: (transactions, _oldState, newState) => {
85
84
  var _api$composition$shar;
86
- if (api !== null && api !== void 0 && (_api$composition$shar = api.composition.sharedState.currentState()) !== null && _api$composition$shar !== void 0 && _api$composition$shar.isComposing && expValEquals('platform_editor_localid_ime_composition_fix', 'isEnabled', true)) {
85
+ if (api !== null && api !== void 0 && (_api$composition$shar = api.composition.sharedState.currentState()) !== null && _api$composition$shar !== void 0 && _api$composition$shar.isComposing) {
87
86
  return undefined;
88
87
  }
89
88
  let modified = false;
@@ -8,7 +8,6 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
8
8
  import { stepHasSlice } from '@atlaskit/editor-common/utils';
9
9
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
11
  import { generateShortUUID, generatedShortUUIDs } from './generateShortUUID';
13
12
  export var localIdPluginKey = new PluginKey('localIdPlugin');
14
13
  var generateUUID = function generateUUID() {
@@ -86,7 +85,7 @@ export var createPlugin = function createPlugin(api) {
86
85
  */
87
86
  appendTransaction: function appendTransaction(transactions, _oldState, newState) {
88
87
  var _api$composition$shar;
89
- if (api !== null && api !== void 0 && (_api$composition$shar = api.composition.sharedState.currentState()) !== null && _api$composition$shar !== void 0 && _api$composition$shar.isComposing && expValEquals('platform_editor_localid_ime_composition_fix', 'isEnabled', true)) {
88
+ if (api !== null && api !== void 0 && (_api$composition$shar = api.composition.sharedState.currentState()) !== null && _api$composition$shar !== void 0 && _api$composition$shar.isComposing) {
90
89
  return undefined;
91
90
  }
92
91
  var modified = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-local-id",
3
- "version": "8.1.1",
3
+ "version": "8.1.2",
4
4
  "description": "LocalId plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,18 +28,17 @@
28
28
  "sideEffects": false,
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^52.11.0",
31
+ "@atlaskit/adf-schema": "^52.13.0",
32
32
  "@atlaskit/editor-plugin-collab-edit": "^11.2.0",
33
33
  "@atlaskit/editor-plugin-composition": "^9.1.0",
34
34
  "@atlaskit/editor-plugin-limited-mode": "^7.2.0",
35
35
  "@atlaskit/editor-prosemirror": "^7.3.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/tmp-editor-statsig": "^81.0.0",
38
37
  "@babel/runtime": "^7.0.0",
39
38
  "raf-schd": "^4.0.3"
40
39
  },
41
40
  "peerDependencies": {
42
- "@atlaskit/editor-common": "^114.32.0",
41
+ "@atlaskit/editor-common": "^114.36.0",
43
42
  "react": "^18.2.0"
44
43
  },
45
44
  "devDependencies": {