@atlaskit/editor-plugin-help-dialog 10.0.2 → 10.1.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,22 @@
1
1
  # @atlaskit/editor-plugin-help-dialog
2
2
 
3
+ ## 10.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`e5cdd96dcf4f9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e5cdd96dcf4f9) -
14
+ Clean up platform_editor_hydratable_ui experiment (shipped as enabled)
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 10.0.2
4
21
 
5
22
  ### Patch Changes
@@ -11,7 +11,6 @@ var _coreUtils = require("@atlaskit/editor-common/core-utils");
11
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
14
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
14
  var _actions = require("./pm-plugins/actions");
16
15
  var _commands = require("./pm-plugins/commands");
17
16
  var _keymap = require("./pm-plugins/keymap");
@@ -102,14 +101,11 @@ var helpDialogPlugin = exports.helpDialogPlugin = function helpDialogPlugin(_ref
102
101
  },
103
102
  contentComponent: function contentComponent(_ref5) {
104
103
  var editorView = _ref5.editorView;
105
- if ((0, _expValEquals.expValEquals)('platform_editor_hydratable_ui', 'isEnabled', true) && (!editorView || (0, _coreUtils.isSSR)())) {
104
+ if (!editorView || (0, _coreUtils.isSSR)()) {
106
105
  return null;
107
106
  }
108
107
  return /*#__PURE__*/_react.default.createElement(_HelpDialogLoader.HelpDialogLoader, {
109
- pluginInjectionApi: api
110
- // temp non null assertion until platform_editor_hydratable_ui cleaned up
111
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
112
- ,
108
+ pluginInjectionApi: api,
113
109
  editorView: editorView,
114
110
  quickInsertEnabled: !!(api !== null && api !== void 0 && api.quickInsert)
115
111
  });
@@ -4,7 +4,6 @@ import { isSSR } from '@atlaskit/editor-common/core-utils';
4
4
  import { openHelp, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
7
  import { closeHelpAction, openHelpAction } from './pm-plugins/actions';
9
8
  import { openHelpCommand } from './pm-plugins/commands';
10
9
  import { keymapPlugin } from './pm-plugins/keymap';
@@ -94,14 +93,11 @@ export const helpDialogPlugin = ({
94
93
  contentComponent({
95
94
  editorView
96
95
  }) {
97
- if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && (!editorView || isSSR())) {
96
+ if (!editorView || isSSR()) {
98
97
  return null;
99
98
  }
100
99
  return /*#__PURE__*/React.createElement(HelpDialogLoader, {
101
- pluginInjectionApi: api
102
- // temp non null assertion until platform_editor_hydratable_ui cleaned up
103
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
104
- ,
100
+ pluginInjectionApi: api,
105
101
  editorView: editorView,
106
102
  quickInsertEnabled: !!(api !== null && api !== void 0 && api.quickInsert)
107
103
  });
@@ -4,7 +4,6 @@ import { isSSR } from '@atlaskit/editor-common/core-utils';
4
4
  import { openHelp, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
7
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
7
  import { closeHelpAction, openHelpAction } from './pm-plugins/actions';
9
8
  import { openHelpCommand } from './pm-plugins/commands';
10
9
  import { keymapPlugin } from './pm-plugins/keymap';
@@ -96,14 +95,11 @@ export var helpDialogPlugin = function helpDialogPlugin(_ref2) {
96
95
  },
97
96
  contentComponent: function contentComponent(_ref5) {
98
97
  var editorView = _ref5.editorView;
99
- if (expValEquals('platform_editor_hydratable_ui', 'isEnabled', true) && (!editorView || isSSR())) {
98
+ if (!editorView || isSSR()) {
100
99
  return null;
101
100
  }
102
101
  return /*#__PURE__*/React.createElement(HelpDialogLoader, {
103
- pluginInjectionApi: api
104
- // temp non null assertion until platform_editor_hydratable_ui cleaned up
105
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
106
- ,
102
+ pluginInjectionApi: api,
107
103
  editorView: editorView,
108
104
  quickInsertEnabled: !!(api !== null && api !== void 0 && api.quickInsert)
109
105
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-help-dialog",
3
- "version": "10.0.2",
3
+ "version": "10.1.1",
4
4
  "description": "Help Dialog plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,15 +30,15 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/editor-plugin-analytics": "^10.0.0",
33
- "@atlaskit/editor-plugin-quick-insert": "^10.0.0",
33
+ "@atlaskit/editor-plugin-quick-insert": "^10.1.0",
34
34
  "@atlaskit/editor-prosemirror": "^7.3.0",
35
35
  "@atlaskit/editor-shared-styles": "^3.10.0",
36
36
  "@atlaskit/heading": "^5.4.0",
37
- "@atlaskit/icon": "^34.2.0",
38
- "@atlaskit/modal-dialog": "^14.16.0",
37
+ "@atlaskit/icon": "^34.3.0",
38
+ "@atlaskit/modal-dialog": "^14.17.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/primitives": "^19.0.0",
41
- "@atlaskit/tmp-editor-statsig": "^64.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^66.0.0",
42
42
  "@atlaskit/tokens": "^13.0.0",
43
43
  "@atlaskit/tooltip": "^21.1.0",
44
44
  "@babel/runtime": "^7.0.0",
@@ -50,7 +50,7 @@
50
50
  "react-intl": "^6.6.2"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^114.5.0",
53
+ "@atlaskit/editor-common": "^114.7.0",
54
54
  "react": "^18.2.0",
55
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
56
56
  },