@atlaskit/editor-plugin-user-preferences 4.0.0 → 4.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,20 @@
1
1
  # @atlaskit/editor-plugin-user-preferences
2
2
 
3
+ ## 4.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4d676bbdb3ce6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d676bbdb3ce6) -
8
+ ts-ignore added temporarily to unblock local consumption for help-center, will be removed once
9
+ project refs are setup
10
+ - Updated dependencies
11
+
12
+ ## 4.0.1
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 4.0.0
4
19
 
5
20
  ### Patch Changes
@@ -96,7 +111,6 @@
96
111
  shared context or singletons.
97
112
 
98
113
  **HOW TO ADJUST:**
99
-
100
114
  - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
101
115
  any of these editor plugins.
102
116
  - Ensure the version you install matches the version required by the plugins.
@@ -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
  },
@@ -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,16 @@
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": "../../../platform/feature-flags/afm-products/tsconfig.json"
30
30
  },
31
31
  {
32
- "path": "../../tmp-editor-statsig/afm-volt/tsconfig.json"
32
+ "path": "../../tmp-editor-statsig/afm-products/tsconfig.json"
33
33
  },
34
34
  {
35
- "path": "../../editor-common/afm-volt/tsconfig.json"
35
+ "path": "../../editor-common/afm-products/tsconfig.json"
36
36
  }
37
37
  ]
38
38
  }
@@ -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.0",
3
+ "version": "4.0.2",
4
4
  "description": "UserPreferences plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -28,15 +28,15 @@
28
28
  "sideEffects": false,
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
- "@atlaskit/editor-plugin-analytics": "^6.0.0",
31
+ "@atlaskit/editor-plugin-analytics": "^6.2.0",
32
32
  "@atlaskit/editor-prosemirror": "7.0.0",
33
33
  "@atlaskit/platform-feature-flags": "^1.1.0",
34
- "@atlaskit/tmp-editor-statsig": "^12.31.0",
34
+ "@atlaskit/tmp-editor-statsig": "^13.42.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "bind-event-listener": "^3.0.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "@atlaskit/editor-common": "^110.0.0",
39
+ "@atlaskit/editor-common": "^110.34.0",
40
40
  "react": "^18.2.0"
41
41
  },
42
42
  "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
- }