@atlaskit/editor-plugin-user-preferences 1.2.4 → 2.0.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,19 @@
1
1
  # @atlaskit/editor-plugin-user-preferences
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.2.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`04ed1e34ba001`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/04ed1e34ba001) -
14
+ Return initialUserPreferences from config when userPreferencesProvider is unavailable
15
+ - Updated dependencies
16
+
3
17
  ## 1.2.4
4
18
 
5
19
  ### Patch Changes
@@ -2,9 +2,9 @@
2
2
  "extends": "../../../../tsconfig.entry-points.confluence.json",
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
- "composite": true,
6
5
  "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-plugin-user-preferences",
7
- "rootDir": "../"
6
+ "rootDir": "../",
7
+ "composite": true
8
8
  },
9
9
  "include": [
10
10
  "../src/**/*.ts",
@@ -35,4 +35,4 @@
35
35
  "path": "../../editor-common/afm-cc/tsconfig.json"
36
36
  }
37
37
  ]
38
- }
38
+ }
@@ -36,7 +36,7 @@ var userPreferencesPlugin = exports.userPreferencesPlugin = function userPrefere
36
36
  },
37
37
  getUserPreferences: function getUserPreferences() {
38
38
  if (!userPreferencesProvider) {
39
- return undefined;
39
+ return config.initialUserPreferences;
40
40
  }
41
41
  return userPreferencesProvider.getPreferences();
42
42
  }
@@ -31,7 +31,7 @@ export const userPreferencesPlugin = ({
31
31
  },
32
32
  getUserPreferences: () => {
33
33
  if (!userPreferencesProvider) {
34
- return undefined;
34
+ return config.initialUserPreferences;
35
35
  }
36
36
  return userPreferencesProvider.getPreferences();
37
37
  }
@@ -30,7 +30,7 @@ export var userPreferencesPlugin = function userPreferencesPlugin(_ref) {
30
30
  },
31
31
  getUserPreferences: function getUserPreferences() {
32
32
  if (!userPreferencesProvider) {
33
- return undefined;
33
+ return config.initialUserPreferences;
34
34
  }
35
35
  return userPreferencesProvider.getPreferences();
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-user-preferences",
3
- "version": "1.2.4",
3
+ "version": "2.0.0",
4
4
  "description": "UserPreferences plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,19 +27,16 @@
27
27
  },
28
28
  "sideEffects": false,
29
29
  "atlaskit:src": "src/index.ts",
30
- "af:exports": {
31
- ".": "./src/index.ts"
32
- },
33
30
  "dependencies": {
34
- "@atlaskit/editor-plugin-analytics": "^3.0.0",
31
+ "@atlaskit/editor-plugin-analytics": "^4.0.0",
35
32
  "@atlaskit/editor-prosemirror": "7.0.0",
36
33
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/tmp-editor-statsig": "^11.5.0",
34
+ "@atlaskit/tmp-editor-statsig": "^12.0.0",
38
35
  "@babel/runtime": "^7.0.0",
39
36
  "bind-event-listener": "^3.0.0"
40
37
  },
41
38
  "peerDependencies": {
42
- "@atlaskit/editor-common": "^107.28.0",
39
+ "@atlaskit/editor-common": "^108.0.0",
43
40
  "react": "^18.2.0"
44
41
  },
45
42
  "techstack": {