@atlaskit/editor-plugin-user-preferences 4.0.1 → 4.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,20 @@
1
1
  # @atlaskit/editor-plugin-user-preferences
2
2
 
3
+ ## 4.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4d676bbdb3ce6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d676bbdb3ce6) -
14
+ ts-ignore added temporarily to unblock local consumption for help-center, will be removed once
15
+ project refs are setup
16
+ - Updated dependencies
17
+
3
18
  ## 4.0.1
4
19
 
5
20
  ### Patch Changes
@@ -102,7 +117,6 @@
102
117
  shared context or singletons.
103
118
 
104
119
  **HOW TO ADJUST:**
105
-
106
120
  - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
107
121
  any of these editor plugins.
108
122
  - Ensure the version you install matches the version required by the plugins.
@@ -25,9 +25,6 @@
25
25
  {
26
26
  "path": "../../editor-plugin-analytics/afm-cc/tsconfig.json"
27
27
  },
28
- {
29
- "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
30
- },
31
28
  {
32
29
  "path": "../../tmp-editor-statsig/afm-cc/tsconfig.json"
33
30
  },
@@ -2,7 +2,7 @@
2
2
  "extends": "../../../../tsconfig.entry-points.jira.json",
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
- "outDir": "../../../../../tsDist/@atlaskit__editor-plugin-user-preferences/app",
5
+ "outDir": "../../../../../jira/tsDist/@atlaskit__editor-plugin-user-preferences/app",
6
6
  "rootDir": "../",
7
7
  "composite": true
8
8
  },
@@ -25,9 +25,6 @@
25
25
  {
26
26
  "path": "../../editor-plugin-analytics/afm-jira/tsconfig.json"
27
27
  },
28
- {
29
- "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
30
- },
31
28
  {
32
29
  "path": "../../tmp-editor-statsig/afm-jira/tsconfig.json"
33
30
  },
@@ -1,8 +1,8 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.volt.json",
2
+ "extends": "../../../../tsconfig.entry-points.products.json",
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
- "outDir": "../../../../../volt/tsDist/@atlaskit__editor-plugin-user-preferences/app",
5
+ "outDir": "../../../../../tsDist/@atlaskit__editor-plugin-user-preferences/app",
6
6
  "rootDir": "../",
7
7
  "composite": true
8
8
  },
@@ -23,16 +23,13 @@
23
23
  ],
24
24
  "references": [
25
25
  {
26
- "path": "../../editor-plugin-analytics/afm-volt/tsconfig.json"
26
+ "path": "../../editor-plugin-analytics/afm-products/tsconfig.json"
27
27
  },
28
28
  {
29
- "path": "../../../platform/feature-flags/afm-volt/tsconfig.json"
29
+ "path": "../../tmp-editor-statsig/afm-products/tsconfig.json"
30
30
  },
31
31
  {
32
- "path": "../../tmp-editor-statsig/afm-volt/tsconfig.json"
33
- },
34
- {
35
- "path": "../../editor-common/afm-volt/tsconfig.json"
32
+ "path": "../../editor-common/afm-products/tsconfig.json"
36
33
  }
37
34
  ]
38
35
  }
@@ -26,11 +26,14 @@ var createPlugin = exports.createPlugin = function createPlugin(pluginOptions, _
26
26
  return new _safePlugin.SafePlugin({
27
27
  key: userPreferencesPluginKey,
28
28
  state: {
29
+ // @ts-ignore - Workaround for help-center local consumption
29
30
  init: function init() {
30
31
  return {
31
32
  preferences: (userPreferencesProvider === null || userPreferencesProvider === void 0 ? void 0 : userPreferencesProvider.getPreferences()) || getInitialUserPreferences()
32
33
  };
33
34
  },
35
+ // @ts-ignore - Workaround for help-center local consumption
36
+
34
37
  apply: function apply(tr, currentPluginState) {
35
38
  var meta = tr.getMeta(userPreferencesPluginKey);
36
39
  if (meta !== null && meta !== void 0 && meta.preferences) {
@@ -18,11 +18,15 @@ export const createPlugin = (pluginOptions, _api) => {
18
18
  return new SafePlugin({
19
19
  key: userPreferencesPluginKey,
20
20
  state: {
21
+ // @ts-ignore - Workaround for help-center local consumption
22
+
21
23
  init() {
22
24
  return {
23
25
  preferences: (userPreferencesProvider === null || userPreferencesProvider === void 0 ? void 0 : userPreferencesProvider.getPreferences()) || getInitialUserPreferences()
24
26
  };
25
27
  },
28
+ // @ts-ignore - Workaround for help-center local consumption
29
+
26
30
  apply: (tr, currentPluginState) => {
27
31
  const meta = tr.getMeta(userPreferencesPluginKey);
28
32
  if (meta !== null && meta !== void 0 && meta.preferences) {
@@ -19,11 +19,14 @@ export var createPlugin = function createPlugin(pluginOptions, _api) {
19
19
  return new SafePlugin({
20
20
  key: userPreferencesPluginKey,
21
21
  state: {
22
+ // @ts-ignore - Workaround for help-center local consumption
22
23
  init: function init() {
23
24
  return {
24
25
  preferences: (userPreferencesProvider === null || userPreferencesProvider === void 0 ? void 0 : userPreferencesProvider.getPreferences()) || getInitialUserPreferences()
25
26
  };
26
27
  },
28
+ // @ts-ignore - Workaround for help-center local consumption
29
+
27
30
  apply: function apply(tr, currentPluginState) {
28
31
  var meta = tr.getMeta(userPreferencesPluginKey);
29
32
  if (meta !== null && meta !== void 0 && meta.preferences) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-user-preferences",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "UserPreferences plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,15 +28,14 @@
28
28
  "sideEffects": false,
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/editor-plugin-analytics": "^6.1.0",
31
+ "@atlaskit/editor-plugin-analytics": "^6.2.0",
32
32
  "@atlaskit/editor-prosemirror": "7.0.0",
33
- "@atlaskit/platform-feature-flags": "^1.1.0",
34
- "@atlaskit/tmp-editor-statsig": "^13.0.0",
33
+ "@atlaskit/tmp-editor-statsig": "^14.0.0",
35
34
  "@babel/runtime": "^7.0.0",
36
35
  "bind-event-listener": "^3.0.0"
37
36
  },
38
37
  "peerDependencies": {
39
- "@atlaskit/editor-common": "^110.4.0",
38
+ "@atlaskit/editor-common": "^110.36.0",
40
39
  "react": "^18.2.0"
41
40
  },
42
41
  "techstack": {
@@ -1,38 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.dev-agents.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "outDir": "../../../../../dev-agents/tsDist/@atlaskit__editor-plugin-user-preferences/app",
6
- "rootDir": "../",
7
- "composite": true
8
- },
9
- "include": [
10
- "../src/**/*.ts",
11
- "../src/**/*.tsx"
12
- ],
13
- "exclude": [
14
- "../src/**/__tests__/*",
15
- "../src/**/*.test.*",
16
- "../src/**/test.*",
17
- "../src/**/examples.*",
18
- "../src/**/examples/*",
19
- "../src/**/examples/**/*",
20
- "../src/**/*.stories.*",
21
- "../src/**/stories/*",
22
- "../src/**/stories/**/*"
23
- ],
24
- "references": [
25
- {
26
- "path": "../../editor-plugin-analytics/afm-dev-agents/tsconfig.json"
27
- },
28
- {
29
- "path": "../../../platform/feature-flags/afm-dev-agents/tsconfig.json"
30
- },
31
- {
32
- "path": "../../tmp-editor-statsig/afm-dev-agents/tsconfig.json"
33
- },
34
- {
35
- "path": "../../editor-common/afm-dev-agents/tsconfig.json"
36
- }
37
- ]
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.passionfruit.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "outDir": "../../../../../passionfruit/tsDist/@atlaskit__editor-plugin-user-preferences/app",
6
- "rootDir": "../",
7
- "composite": true
8
- },
9
- "include": [
10
- "../src/**/*.ts",
11
- "../src/**/*.tsx"
12
- ],
13
- "exclude": [
14
- "../src/**/__tests__/*",
15
- "../src/**/*.test.*",
16
- "../src/**/test.*",
17
- "../src/**/examples.*",
18
- "../src/**/examples/*",
19
- "../src/**/examples/**/*",
20
- "../src/**/*.stories.*",
21
- "../src/**/stories/*",
22
- "../src/**/stories/**/*"
23
- ],
24
- "references": [
25
- {
26
- "path": "../../editor-plugin-analytics/afm-passionfruit/tsconfig.json"
27
- },
28
- {
29
- "path": "../../../platform/feature-flags/afm-passionfruit/tsconfig.json"
30
- },
31
- {
32
- "path": "../../tmp-editor-statsig/afm-passionfruit/tsconfig.json"
33
- },
34
- {
35
- "path": "../../editor-common/afm-passionfruit/tsconfig.json"
36
- }
37
- ]
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.post-office.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "outDir": "../../../../../post-office/tsDist/@atlaskit__editor-plugin-user-preferences/app",
6
- "rootDir": "../",
7
- "composite": true
8
- },
9
- "include": [
10
- "../src/**/*.ts",
11
- "../src/**/*.tsx"
12
- ],
13
- "exclude": [
14
- "../src/**/__tests__/*",
15
- "../src/**/*.test.*",
16
- "../src/**/test.*",
17
- "../src/**/examples.*",
18
- "../src/**/examples/*",
19
- "../src/**/examples/**/*",
20
- "../src/**/*.stories.*",
21
- "../src/**/stories/*",
22
- "../src/**/stories/**/*"
23
- ],
24
- "references": [
25
- {
26
- "path": "../../editor-plugin-analytics/afm-post-office/tsconfig.json"
27
- },
28
- {
29
- "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
30
- },
31
- {
32
- "path": "../../tmp-editor-statsig/afm-post-office/tsconfig.json"
33
- },
34
- {
35
- "path": "../../editor-common/afm-post-office/tsconfig.json"
36
- }
37
- ]
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.rovo-extension.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "outDir": "../../../../../rovo-extension/tsDist/@atlaskit__editor-plugin-user-preferences/app",
6
- "rootDir": "../",
7
- "composite": true
8
- },
9
- "include": [
10
- "../src/**/*.ts",
11
- "../src/**/*.tsx"
12
- ],
13
- "exclude": [
14
- "../src/**/__tests__/*",
15
- "../src/**/*.test.*",
16
- "../src/**/test.*",
17
- "../src/**/examples.*",
18
- "../src/**/examples/*",
19
- "../src/**/examples/**/*",
20
- "../src/**/*.stories.*",
21
- "../src/**/stories/*",
22
- "../src/**/stories/**/*"
23
- ],
24
- "references": [
25
- {
26
- "path": "../../editor-plugin-analytics/afm-rovo-extension/tsconfig.json"
27
- },
28
- {
29
- "path": "../../../platform/feature-flags/afm-rovo-extension/tsconfig.json"
30
- },
31
- {
32
- "path": "../../tmp-editor-statsig/afm-rovo-extension/tsconfig.json"
33
- },
34
- {
35
- "path": "../../editor-common/afm-rovo-extension/tsconfig.json"
36
- }
37
- ]
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.townsquare.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "outDir": "../../../../../townsquare/tsDist/@atlaskit__editor-plugin-user-preferences/app",
6
- "rootDir": "../",
7
- "composite": true
8
- },
9
- "include": [
10
- "../src/**/*.ts",
11
- "../src/**/*.tsx"
12
- ],
13
- "exclude": [
14
- "../src/**/__tests__/*",
15
- "../src/**/*.test.*",
16
- "../src/**/test.*",
17
- "../src/**/examples.*",
18
- "../src/**/examples/*",
19
- "../src/**/examples/**/*",
20
- "../src/**/*.stories.*",
21
- "../src/**/stories/*",
22
- "../src/**/stories/**/*"
23
- ],
24
- "references": [
25
- {
26
- "path": "../../editor-plugin-analytics/afm-townsquare/tsconfig.json"
27
- },
28
- {
29
- "path": "../../../platform/feature-flags/afm-townsquare/tsconfig.json"
30
- },
31
- {
32
- "path": "../../tmp-editor-statsig/afm-townsquare/tsconfig.json"
33
- },
34
- {
35
- "path": "../../editor-common/afm-townsquare/tsconfig.json"
36
- }
37
- ]
38
- }