@atlaskit/editor-plugin-local-id 5.0.1 → 5.0.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,12 @@
1
1
  # @atlaskit/editor-plugin-local-id
2
2
 
3
+ ## 5.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0bae952cf6885`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0bae952cf6885) -
8
+ Cleanup feature gate which prevents initial localid loading on collab editors
9
+
3
10
  ## 5.0.1
4
11
 
5
12
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.jira.json",
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../jira/tsDist/@atlaskit__editor-plugin-local-id/app",
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.products.json",
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../tsDist/@atlaskit__editor-plugin-local-id/app",
@@ -47,9 +47,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api) {
47
47
  * to nodes that don't have them. It's designed to run only once per
48
48
  * editor instance to avoid performance issues.
49
49
  */
50
- // @ts-expect-error - This is an experiment to see if we can improve performance - if successful
51
- // we will add the plugin as a dependency
52
- if (api !== null && api !== void 0 && api.collabEdit && (0, _platformFeatureFlags.fg)('platform_editor_ai_aifc_avoid_initial_localId')) {
50
+ if (api !== null && api !== void 0 && api.collabEdit) {
53
51
  return {
54
52
  update: function update() {}
55
53
  };
@@ -36,9 +36,7 @@ export const createPlugin = api => {
36
36
  * to nodes that don't have them. It's designed to run only once per
37
37
  * editor instance to avoid performance issues.
38
38
  */
39
- // @ts-expect-error - This is an experiment to see if we can improve performance - if successful
40
- // we will add the plugin as a dependency
41
- if (api !== null && api !== void 0 && api.collabEdit && fg('platform_editor_ai_aifc_avoid_initial_localId')) {
39
+ if (api !== null && api !== void 0 && api.collabEdit) {
42
40
  return {
43
41
  update: () => {}
44
42
  };
@@ -40,9 +40,7 @@ export var createPlugin = function createPlugin(api) {
40
40
  * to nodes that don't have them. It's designed to run only once per
41
41
  * editor instance to avoid performance issues.
42
42
  */
43
- // @ts-expect-error - This is an experiment to see if we can improve performance - if successful
44
- // we will add the plugin as a dependency
45
- if (api !== null && api !== void 0 && api.collabEdit && fg('platform_editor_ai_aifc_avoid_initial_localId')) {
43
+ if (api !== null && api !== void 0 && api.collabEdit) {
46
44
  return {
47
45
  update: function update() {}
48
46
  };
@@ -1,4 +1,5 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
1
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
+ import type { CollabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
2
3
  import type { CompositionPlugin } from '@atlaskit/editor-plugin-composition';
3
4
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
5
  import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
@@ -25,5 +26,5 @@ export type LocalIdPlugin = NextEditorPlugin<'localId', {
25
26
  value: Node;
26
27
  }) => boolean;
27
28
  };
28
- dependencies: [CompositionPlugin];
29
+ dependencies: [CompositionPlugin, OptionalPlugin<CollabEditPlugin>];
29
30
  }>;
@@ -1,4 +1,5 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
1
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
+ import type { CollabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
2
3
  import type { CompositionPlugin } from '@atlaskit/editor-plugin-composition';
3
4
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
5
  import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
@@ -26,6 +27,7 @@ export type LocalIdPlugin = NextEditorPlugin<'localId', {
26
27
  }) => boolean;
27
28
  };
28
29
  dependencies: [
29
- CompositionPlugin
30
+ CompositionPlugin,
31
+ OptionalPlugin<CollabEditPlugin>
30
32
  ];
31
33
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-local-id",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "LocalId plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,12 +31,12 @@
31
31
  "@atlaskit/adf-schema": "^51.5.0",
32
32
  "@atlaskit/editor-prosemirror": "^7.2.0",
33
33
  "@atlaskit/platform-feature-flags": "^1.1.0",
34
- "@atlaskit/tmp-editor-statsig": "^16.18.0",
34
+ "@atlaskit/tmp-editor-statsig": "^16.31.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "raf-schd": "^4.0.3"
37
37
  },
38
38
  "peerDependencies": {
39
- "@atlaskit/editor-common": "^111.7.0",
39
+ "@atlaskit/editor-common": "^111.8.0",
40
40
  "react": "^18.2.0"
41
41
  },
42
42
  "devDependencies": {
@@ -85,9 +85,6 @@
85
85
  "platform_editor_ai_local_id_short": {
86
86
  "type": "boolean"
87
87
  },
88
- "platform_editor_ai_aifc_avoid_initial_localId": {
89
- "type": "boolean"
90
- },
91
88
  "platform_editor_localid_improvements": {
92
89
  "type": "boolean"
93
90
  }
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../tsconfig",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "paths": {}
6
- },
7
- "include": [
8
- "../src/**/*.ts",
9
- "../src/**/*.tsx"
10
- ],
11
- "exclude": [
12
- "../src/**/__tests__/*",
13
- "../src/**/*.test.*",
14
- "../src/**/test.*",
15
- "../src/**/examples.*"
16
- ]
17
- }