@atlaskit/editor-plugin-user-preferences 1.2.4 → 1.2.5

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-user-preferences
2
2
 
3
+ ## 1.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`04ed1e34ba001`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/04ed1e34ba001) -
8
+ Return initialUserPreferences from config when userPreferencesProvider is unavailable
9
+ - Updated dependencies
10
+
3
11
  ## 1.2.4
4
12
 
5
13
  ### 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",
@@ -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": "1.2.5",
4
4
  "description": "UserPreferences plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,12 +34,12 @@
34
34
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
35
35
  "@atlaskit/editor-prosemirror": "7.0.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/tmp-editor-statsig": "^11.5.0",
37
+ "@atlaskit/tmp-editor-statsig": "^11.6.0",
38
38
  "@babel/runtime": "^7.0.0",
39
39
  "bind-event-listener": "^3.0.0"
40
40
  },
41
41
  "peerDependencies": {
42
- "@atlaskit/editor-common": "^107.28.0",
42
+ "@atlaskit/editor-common": "^107.30.0",
43
43
  "react": "^18.2.0"
44
44
  },
45
45
  "techstack": {