@atlaskit/editor-plugin-insert-block 2.8.0 → 2.8.1

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,15 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 2.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#114079](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114079)
8
+ [`d32dc78b19302`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d32dc78b19302) -
9
+ [ux] Re-enables emojis while offline and adds a fallback for emojis in the emoji picker if the
10
+ image cannot be loaded
11
+ - Updated dependencies
12
+
3
13
  ## 2.8.0
4
14
 
5
15
  ### Minor Changes
@@ -106,7 +106,7 @@ var createInsertBlockItems = function createInsertBlockItems(config) {
106
106
  items.push((0, _item.emoji)({
107
107
  content: formatMessage(_messages.toolbarInsertBlockMessages.emoji),
108
108
  tooltipDescription: formatMessage(_messages.toolbarInsertBlockMessages.emojiDescription),
109
- disabled: emojiDisabled || !isTypeAheadAllowed || isOffline,
109
+ disabled: emojiDisabled || !isTypeAheadAllowed || isOffline && !(0, _platformFeatureFlags.fg)('platform_editor_preload_emoji_picker'),
110
110
  'aria-haspopup': 'dialog'
111
111
  }));
112
112
  }
@@ -93,7 +93,7 @@ const createInsertBlockItems = config => {
93
93
  items.push(emoji({
94
94
  content: formatMessage(messages.emoji),
95
95
  tooltipDescription: formatMessage(messages.emojiDescription),
96
- disabled: emojiDisabled || !isTypeAheadAllowed || isOffline,
96
+ disabled: emojiDisabled || !isTypeAheadAllowed || isOffline && !fg('platform_editor_preload_emoji_picker'),
97
97
  'aria-haspopup': 'dialog'
98
98
  }));
99
99
  }
@@ -99,7 +99,7 @@ var createInsertBlockItems = function createInsertBlockItems(config) {
99
99
  items.push(emoji({
100
100
  content: formatMessage(messages.emoji),
101
101
  tooltipDescription: formatMessage(messages.emojiDescription),
102
- disabled: emojiDisabled || !isTypeAheadAllowed || isOffline,
102
+ disabled: emojiDisabled || !isTypeAheadAllowed || isOffline && !fg('platform_editor_preload_emoji_picker'),
103
103
  'aria-haspopup': 'dialog'
104
104
  }));
105
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/button": "^20.5.0",
35
35
  "@atlaskit/editor-common": "^99.18.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.12.0",
37
- "@atlaskit/editor-plugin-block-type": "^4.4.0",
37
+ "@atlaskit/editor-plugin-block-type": "^4.5.0",
38
38
  "@atlaskit/editor-plugin-code-block": "^3.7.0",
39
39
  "@atlaskit/editor-plugin-connectivity": "^1.3.0",
40
40
  "@atlaskit/editor-plugin-date": "^2.6.0",
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/editor-plugin-expand": "^2.12.0",
43
43
  "@atlaskit/editor-plugin-extension": "^3.5.0",
44
44
  "@atlaskit/editor-plugin-feature-flags": "^1.3.0",
45
- "@atlaskit/editor-plugin-hyperlink": "^3.5.0",
45
+ "@atlaskit/editor-plugin-hyperlink": "^3.6.0",
46
46
  "@atlaskit/editor-plugin-image-upload": "^1.4.0",
47
47
  "@atlaskit/editor-plugin-layout": "^1.15.0",
48
48
  "@atlaskit/editor-plugin-media": "^1.45.0",
@@ -62,8 +62,8 @@
62
62
  "@atlaskit/editor-shared-styles": "^3.3.0",
63
63
  "@atlaskit/emoji": "^67.14.0",
64
64
  "@atlaskit/heading": "4.3.1",
65
- "@atlaskit/icon": "^23.10.0",
66
- "@atlaskit/icon-lab": "^2.7.0",
65
+ "@atlaskit/icon": "^23.11.0",
66
+ "@atlaskit/icon-lab": "^2.8.0",
67
67
  "@atlaskit/platform-feature-flags": "^1.1.0",
68
68
  "@atlaskit/primitives": "^13.6.0",
69
69
  "@atlaskit/theme": "^16.0.0",
@@ -136,6 +136,9 @@
136
136
  },
137
137
  "platform_editor_ease_of_use_metrics": {
138
138
  "type": "boolean"
139
+ },
140
+ "platform_editor_preload_emoji_picker": {
141
+ "type": "boolean"
139
142
  }
140
143
  }
141
144
  }