@atlaskit/editor-core 216.6.6 → 216.7.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
  3. package/dist/cjs/ui/EditorContentContainer/styles/blockTypeStyles.js +1 -1
  4. package/dist/cjs/ui/EditorContentContainer/styles/codeBidiWarningStyles.js +3 -3
  5. package/dist/cjs/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -1
  6. package/dist/cjs/ui/EditorContentContainer/styles/codeMarkStyles.js +1 -1
  7. package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +1 -1
  8. package/dist/cjs/ui/EditorContentContainer/styles/statusStyles.js +2 -2
  9. package/dist/cjs/ui/EditorContentContainer/styles/telepointerStyles.js +1 -1
  10. package/dist/cjs/ui/EditorContext/index.js +25 -23
  11. package/dist/cjs/ui/Toolbar/Toolbar.js +1 -1
  12. package/dist/cjs/ui/WithHelpTrigger/index.js +64 -10
  13. package/dist/cjs/version-wrapper.js +1 -1
  14. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
  15. package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +1 -1
  16. package/dist/es2019/ui/EditorContentContainer/styles/codeBidiWarningStyles.js +3 -3
  17. package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -1
  18. package/dist/es2019/ui/EditorContentContainer/styles/codeMarkStyles.js +1 -1
  19. package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +1 -1
  20. package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +2 -2
  21. package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +1 -1
  22. package/dist/es2019/ui/EditorContext/index.js +14 -15
  23. package/dist/es2019/ui/Toolbar/Toolbar.js +1 -1
  24. package/dist/es2019/ui/WithHelpTrigger/index.js +48 -3
  25. package/dist/es2019/version-wrapper.js +1 -1
  26. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
  27. package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +1 -1
  28. package/dist/esm/ui/EditorContentContainer/styles/codeBidiWarningStyles.js +3 -3
  29. package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -1
  30. package/dist/esm/ui/EditorContentContainer/styles/codeMarkStyles.js +1 -1
  31. package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +1 -1
  32. package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +2 -2
  33. package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +1 -1
  34. package/dist/esm/ui/EditorContext/index.js +22 -19
  35. package/dist/esm/ui/Toolbar/Toolbar.js +1 -1
  36. package/dist/esm/ui/WithHelpTrigger/index.js +63 -8
  37. package/dist/esm/version-wrapper.js +1 -1
  38. package/dist/types/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +1 -1
  39. package/dist/types/ui/EditorContext/index.d.ts +4 -2
  40. package/dist/types/ui/WithHelpTrigger/index.d.ts +11 -2
  41. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +1 -1
  42. package/dist/types-ts4.5/ui/EditorContext/index.d.ts +4 -2
  43. package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +11 -2
  44. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`ee5135bafb31d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee5135bafb31d) -
8
+ [EDITOR-4495] clean up platform_editor_toolbar_aifc_patch_4
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 216.6.7
15
+
16
+ ### Patch Changes
17
+
18
+ - [`a7fd4015da337`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a7fd4015da337) -
19
+ phase out contextTypes for editor context
20
+ - Updated dependencies
21
+
3
22
  ## 216.6.6
4
23
 
5
24
  ### Patch Changes
@@ -157,7 +157,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
157
157
  (0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(isToolbarAIFCEnabled)
158
158
  }
159
159
  }, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? (0, _react2.jsx)(_FullPageToolbarNext.FullPageToolbarNext, {
160
- disabled: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? !!props.disabled : undefined,
160
+ disabled: !!props.disabled,
161
161
  toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
162
162
  beforeIcon: props.primaryToolbarIconBefore,
163
163
  editorAPI: editorAPI,
@@ -315,7 +315,7 @@ var blocktypeStyles_without_fg_platform_editor_typography_ugc = exports.blocktyp
315
315
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
316
316
  lineHeight: 'calc(16 / 11)',
317
317
  color: "var(--ds-text-subtlest, #6B6E76)",
318
- fontWeight: "var(--ds-font-weight-bold, 700)",
318
+ fontWeight: "var(--ds-font-weight-bold, 653)",
319
319
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
320
320
  marginTop: '1.455em',
321
321
  textTransform: 'none'
@@ -17,9 +17,9 @@ var codeBidiWarningStyles = exports.codeBidiWarningStyles = (0, _react.css)({
17
17
  '[data-prosemirror-node-name="code-bidi-warning"] [data-bidi-component="code-bidi-warning-decorator"]': {
18
18
  paddingInlineStart: "var(--ds-space-050, 4px)",
19
19
  paddingInlineEnd: "var(--ds-space-050, 4px)",
20
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
20
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
21
21
  fontStyle: 'normal',
22
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
22
+ fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
23
23
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
24
24
  paddingTop: '0.05rem',
25
25
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
@@ -54,7 +54,7 @@ var codeBidiWarningStyles = exports.codeBidiWarningStyles = (0, _react.css)({
54
54
  transform: 'translate(calc(-50% - 40px), calc(24px - 4px))',
55
55
  opacity: 0,
56
56
  whiteSpace: 'normal',
57
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
57
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
58
58
  zIndex: 9999,
59
59
  // Exit animation timings
60
60
  // - Mark invisible after 0.475s
@@ -61,7 +61,7 @@ var codeBlockStyles = exports.codeBlockStyles = (0, _react.css)({
61
61
  borderRadius: "var(--ds-radius-small, 3px)",
62
62
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
63
63
  margin: "".concat(blockNodesVerticalMargin, " 0 0 0"),
64
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
64
+ fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
65
65
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
66
66
  minWidth: 48,
67
67
  cursor: 'pointer',
@@ -20,7 +20,7 @@ var codeMarkStyles = exports.codeMarkStyles = (0, _react.css)({
20
20
  borderStyle: 'none',
21
21
  boxDecorationBreak: 'clone',
22
22
  color: "var(--ds-text, #292A2E)",
23
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
23
+ fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
24
24
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
25
25
  fontSize: '0.875em',
26
26
  fontWeight: "var(--ds-font-weight-regular, 400)",
@@ -272,7 +272,7 @@ var expandStylesMixin_fg_platform_visual_refresh_icons = exports.expandStylesMix
272
272
  '.ak-editor-expand__title-input': {
273
273
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
274
274
  lineHeight: 1,
275
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
275
+ fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
276
276
  }
277
277
  });
278
278
 
@@ -66,8 +66,8 @@ var statusStyles = exports.statusStyles = (0, _react.css)({
66
66
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
67
67
  fontSize: '11px',
68
68
  fontStyle: 'normal',
69
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
70
- fontWeight: "var(--ds-font-weight-bold, 700)",
69
+ fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
70
+ fontWeight: "var(--ds-font-weight-bold, 653)",
71
71
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
72
72
  lineHeight: '16px',
73
73
  overflow: 'hidden',
@@ -169,7 +169,7 @@ var telepointerStyle = exports.telepointerStyle = (0, _react.css)({
169
169
  whiteSpace: 'pre',
170
170
  top: -14,
171
171
  left: 0,
172
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
172
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
173
173
  paddingLeft: "var(--ds-space-050, 4px)",
174
174
  paddingRight: "var(--ds-space-050, 4px)",
175
175
  borderRadius: "0 ".concat("var(--ds-radius-xsmall, 2px)", " ", "var(--ds-radius-xsmall, 2px)", " 0")
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.useEditorContext = exports.default = exports.LegacyEditorContext = void 0;
7
+ exports.useEditorContext = exports.default = exports.LegacyEditorContextOld = exports.LegacyEditorContext = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
@@ -14,6 +14,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
16
16
  var _UNSAFE_do_not_use_editor_context = require("@atlaskit/editor-common/UNSAFE_do_not_use_editor_context");
17
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
18
  var _actions = _interopRequireDefault(require("../../actions"));
18
19
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
19
20
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
@@ -25,38 +26,32 @@ var useEditorContext = exports.useEditorContext = function useEditorContext() {
25
26
  // eslint-disable-next-line @repo/internal/react/no-class-components, react/prefer-stateless-function
26
27
  var LegacyEditorContext = exports.LegacyEditorContext = /*#__PURE__*/function (_React$Component) {
27
28
  function LegacyEditorContext(props) {
29
+ var _this;
28
30
  (0, _classCallCheck2.default)(this, LegacyEditorContext);
29
- return _callSuper(this, LegacyEditorContext, [props]);
31
+ _this = _callSuper(this, LegacyEditorContext, [props]);
32
+ _this.editorActions = props.editorActions || new _actions.default();
33
+ return _this;
30
34
  }
31
35
  (0, _inherits2.default)(LegacyEditorContext, _React$Component);
32
36
  return (0, _createClass2.default)(LegacyEditorContext, [{
33
37
  key: "render",
34
38
  value: function render() {
35
- // Ignored via go/ees005
36
- // eslint-disable-next-line react/jsx-props-no-spreading
37
- return /*#__PURE__*/_react.default.createElement(LegacyEditorContextNew, this.props, this.props.children);
39
+ return /*#__PURE__*/_react.default.createElement(_UNSAFE_do_not_use_editor_context.EditorContext.Provider, {
40
+ value: {
41
+ editorActions: this.editorActions
42
+ }
43
+ }, this.props.children);
38
44
  }
39
45
  }]);
40
- }(_react.default.Component);
41
- function LegacyEditorContextNew(_ref) {
42
- var children = _ref.children,
43
- editorActions = _ref.editorActions;
44
- return /*#__PURE__*/_react.default.createElement(_UNSAFE_do_not_use_editor_context.EditorContext.Provider, {
45
- value: {
46
- editorActions: editorActions !== null && editorActions !== void 0 ? editorActions : new _actions.default()
47
- }
48
- }, children);
49
- }
50
-
51
- // Ignored via go/ees005
46
+ }(_react.default.Component); // Ignored via go/ees005
52
47
  // eslint-disable-next-line @repo/internal/react/no-class-components
53
- var LegacyEditorContextOld = exports.default = /*#__PURE__*/function (_React$Component2) {
48
+ var LegacyEditorContextOld = exports.LegacyEditorContextOld = /*#__PURE__*/function (_React$Component2) {
54
49
  function LegacyEditorContextOld(props) {
55
- var _this;
50
+ var _this2;
56
51
  (0, _classCallCheck2.default)(this, LegacyEditorContextOld);
57
- _this = _callSuper(this, LegacyEditorContextOld, [props]);
58
- _this.editorActions = props.editorActions || new _actions.default();
59
- return _this;
52
+ _this2 = _callSuper(this, LegacyEditorContextOld, [props]);
53
+ _this2.editorActions = props.editorActions || new _actions.default();
54
+ return _this2;
60
55
  }
61
56
  (0, _inherits2.default)(LegacyEditorContextOld, _React$Component2);
62
57
  return (0, _createClass2.default)(LegacyEditorContextOld, [{
@@ -77,4 +72,11 @@ var LegacyEditorContextOld = exports.default = /*#__PURE__*/function (_React$Com
77
72
  }(_react.default.Component);
78
73
  (0, _defineProperty2.default)(LegacyEditorContextOld, "childContextTypes", {
79
74
  editorActions: _propTypes.default.object
80
- });
75
+ });
76
+ var _default = exports.default = function _default(props) {
77
+ return (0, _expValEquals.expValEquals)('platform_editor_context_context_types_migration', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(LegacyEditorContext, {
78
+ editorActions: props.editorActions
79
+ }, props.children) : /*#__PURE__*/_react.default.createElement(LegacyEditorContextOld, {
80
+ editorActions: props.editorActions
81
+ }, props.children);
82
+ };
@@ -85,7 +85,7 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
85
85
  return /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarProvider, {
86
86
  editorView: editorView !== null && editorView !== void 0 ? editorView : null,
87
87
  editorAppearance: editorAppearance,
88
- editorViewMode: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
88
+ editorViewMode: editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit',
89
89
  editorToolbarDockingPreference: editorToolbarDockingPreference,
90
90
  isOffline: isOffline
91
91
  }, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarUIProvider, {
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = void 0;
7
+ exports.default = exports.WithHelpTriggerOld = exports.WithHelpTriggerNew = exports.WithHelpTrigger = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
@@ -15,20 +15,22 @@ var _react = _interopRequireDefault(require("react"));
15
15
  var _propTypes = _interopRequireDefault(require("prop-types"));
16
16
  var _analytics = require("@atlaskit/editor-common/analytics");
17
17
  var _eventDispatcher = require("@atlaskit/editor-common/event-dispatcher");
18
+ var _UNSAFE_do_not_use_editor_context = require("@atlaskit/editor-common/UNSAFE_do_not_use_editor_context");
18
19
  var _analytics2 = require("@atlaskit/editor-common/utils/analytics");
19
20
  var _helpDialog = require("@atlaskit/editor-plugins/help-dialog");
21
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
20
22
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
21
23
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
24
  // Ignored via go/ees005
23
25
  // eslint-disable-next-line @repo/internal/react/no-class-components
24
- var WithHelpTrigger = exports.default = /*#__PURE__*/function (_React$Component) {
25
- function WithHelpTrigger() {
26
+ var WithHelpTriggerOld = exports.WithHelpTriggerOld = /*#__PURE__*/function (_React$Component) {
27
+ function WithHelpTriggerOld() {
26
28
  var _this;
27
- (0, _classCallCheck2.default)(this, WithHelpTrigger);
29
+ (0, _classCallCheck2.default)(this, WithHelpTriggerOld);
28
30
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
29
31
  args[_key] = arguments[_key];
30
32
  }
31
- _this = _callSuper(this, WithHelpTrigger, [].concat(args));
33
+ _this = _callSuper(this, WithHelpTriggerOld, [].concat(args));
32
34
  (0, _defineProperty2.default)(_this, "openHelp", function () {
33
35
  // Ignored via go/ees005
34
36
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -55,14 +57,66 @@ var WithHelpTrigger = exports.default = /*#__PURE__*/function (_React$Component)
55
57
  });
56
58
  return _this;
57
59
  }
58
- (0, _inherits2.default)(WithHelpTrigger, _React$Component);
59
- return (0, _createClass2.default)(WithHelpTrigger, [{
60
+ (0, _inherits2.default)(WithHelpTriggerOld, _React$Component);
61
+ return (0, _createClass2.default)(WithHelpTriggerOld, [{
60
62
  key: "render",
61
63
  value: function render() {
62
64
  return this.props.render(this.openHelp);
63
65
  }
64
66
  }]);
65
- }(_react.default.Component);
66
- (0, _defineProperty2.default)(WithHelpTrigger, "contextTypes", {
67
+ }(_react.default.Component); // Ignored via go/ees005
68
+ // eslint-disable-next-line @repo/internal/react/no-class-components
69
+ (0, _defineProperty2.default)(WithHelpTriggerOld, "contextTypes", {
67
70
  editorActions: _propTypes.default.object.isRequired
68
- });
71
+ });
72
+ var WithHelpTriggerNew = exports.WithHelpTriggerNew = /*#__PURE__*/function (_React$Component2) {
73
+ function WithHelpTriggerNew() {
74
+ var _this2;
75
+ (0, _classCallCheck2.default)(this, WithHelpTriggerNew);
76
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
77
+ args[_key2] = arguments[_key2];
78
+ }
79
+ _this2 = _callSuper(this, WithHelpTriggerNew, [].concat(args));
80
+ (0, _defineProperty2.default)(_this2, "openHelp", function () {
81
+ // Ignored via go/ees005
82
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
83
+ var _ref2 = _this2.context,
84
+ editorActions = _ref2.editorActions;
85
+
86
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
87
+ var dispatch = (0, _eventDispatcher.createDispatch)(editorActions.eventDispatcher);
88
+ dispatch(_analytics2.analyticsEventKey, {
89
+ payload: {
90
+ action: _analytics.ACTION.CLICKED,
91
+ actionSubject: _analytics.ACTION_SUBJECT.BUTTON,
92
+ actionSubjectId: _analytics.ACTION_SUBJECT_ID.BUTTON_HELP,
93
+ attributes: {
94
+ inputMethod: _analytics.INPUT_METHOD.TOOLBAR
95
+ },
96
+ eventType: _analytics.EVENT_TYPE.UI
97
+ }
98
+ });
99
+ var editorView = editorActions._privateGetEditorView();
100
+ if (editorView) {
101
+ (0, _helpDialog.deprecatedOpenHelpCommand)(editorView.state.tr, editorView.dispatch);
102
+ }
103
+ });
104
+ return _this2;
105
+ }
106
+ (0, _inherits2.default)(WithHelpTriggerNew, _React$Component2);
107
+ return (0, _createClass2.default)(WithHelpTriggerNew, [{
108
+ key: "render",
109
+ value: function render() {
110
+ return this.props.render(this.openHelp);
111
+ }
112
+ }]);
113
+ }(_react.default.Component);
114
+ (0, _defineProperty2.default)(WithHelpTriggerNew, "contextType", _UNSAFE_do_not_use_editor_context.EditorContext);
115
+ var WithHelpTrigger = exports.WithHelpTrigger = function WithHelpTrigger(props) {
116
+ return (0, _expValEquals.expValEquals)('platform_editor_context_context_types_migration', 'isEnabled', true) ? /*#__PURE__*/_react.default.createElement(WithHelpTriggerNew, {
117
+ render: props.render
118
+ }) : /*#__PURE__*/_react.default.createElement(WithHelpTriggerOld, {
119
+ render: props.render
120
+ });
121
+ };
122
+ var _default = exports.default = WithHelpTrigger;
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "216.6.5";
8
+ var version = exports.version = "216.6.7";
@@ -142,7 +142,7 @@ export const FullPageEditor = props => {
142
142
  FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
143
143
  }
144
144
  }, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? jsx(FullPageToolbarNext, {
145
- disabled: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? !!props.disabled : undefined,
145
+ disabled: !!props.disabled,
146
146
  toolbarDockingPosition: (_toolbarDockingPositi = toolbarDockingPosition) !== null && _toolbarDockingPositi !== void 0 ? _toolbarDockingPositi : toolbarDocking,
147
147
  beforeIcon: props.primaryToolbarIconBefore,
148
148
  editorAPI: editorAPI,
@@ -306,7 +306,7 @@ export const blocktypeStyles_without_fg_platform_editor_typography_ugc = css({
306
306
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
307
307
  lineHeight: 'calc(16 / 11)',
308
308
  color: "var(--ds-text-subtlest, #6B6E76)",
309
- fontWeight: "var(--ds-font-weight-bold, 700)",
309
+ fontWeight: "var(--ds-font-weight-bold, 653)",
310
310
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
311
311
  marginTop: '1.455em',
312
312
  textTransform: 'none'
@@ -10,9 +10,9 @@ export const codeBidiWarningStyles = css({
10
10
  '[data-prosemirror-node-name="code-bidi-warning"] [data-bidi-component="code-bidi-warning-decorator"]': {
11
11
  paddingInlineStart: "var(--ds-space-050, 4px)",
12
12
  paddingInlineEnd: "var(--ds-space-050, 4px)",
13
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
13
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
14
14
  fontStyle: 'normal',
15
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
15
+ fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
16
16
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
17
17
  paddingTop: '0.05rem',
18
18
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
@@ -47,7 +47,7 @@ export const codeBidiWarningStyles = css({
47
47
  transform: 'translate(calc(-50% - 40px), calc(24px - 4px))',
48
48
  opacity: 0,
49
49
  whiteSpace: 'normal',
50
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
50
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
51
51
  zIndex: 9999,
52
52
  // Exit animation timings
53
53
  // - Mark invisible after 0.475s
@@ -58,7 +58,7 @@ export const codeBlockStyles = css({
58
58
  borderRadius: "var(--ds-radius-small, 3px)",
59
59
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
60
60
  margin: `${blockNodesVerticalMargin} 0 0 0`,
61
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
61
+ fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
62
62
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
63
63
  minWidth: 48,
64
64
  cursor: 'pointer',
@@ -13,7 +13,7 @@ export const codeMarkStyles = css({
13
13
  borderStyle: 'none',
14
14
  boxDecorationBreak: 'clone',
15
15
  color: "var(--ds-text, #292A2E)",
16
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
16
+ fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
17
17
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
18
18
  fontSize: '0.875em',
19
19
  fontWeight: "var(--ds-font-weight-regular, 400)",
@@ -265,7 +265,7 @@ export const expandStylesMixin_fg_platform_visual_refresh_icons = css({
265
265
  '.ak-editor-expand__title-input': {
266
266
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
267
267
  lineHeight: 1,
268
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
268
+ fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
269
269
  }
270
270
  });
271
271
 
@@ -59,8 +59,8 @@ export const statusStyles = css({
59
59
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
60
60
  fontSize: '11px',
61
61
  fontStyle: 'normal',
62
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
63
- fontWeight: "var(--ds-font-weight-bold, 700)",
62
+ fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
63
+ fontWeight: "var(--ds-font-weight-bold, 653)",
64
64
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
65
65
  lineHeight: '16px',
66
66
  overflow: 'hidden',
@@ -162,7 +162,7 @@ export const telepointerStyle = css({
162
162
  whiteSpace: 'pre',
163
163
  top: -14,
164
164
  left: 0,
165
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
165
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
166
166
  paddingLeft: "var(--ds-space-050, 4px)",
167
167
  paddingRight: "var(--ds-space-050, 4px)",
168
168
  borderRadius: `0 ${"var(--ds-radius-xsmall, 2px)"} ${"var(--ds-radius-xsmall, 2px)"} 0`
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { EditorContext } from '@atlaskit/editor-common/UNSAFE_do_not_use_editor_context';
5
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
6
  import EditorActions from '../../actions';
6
7
  export const useEditorContext = () => React.useContext(EditorContext);
7
8
 
@@ -10,27 +11,20 @@ export const useEditorContext = () => React.useContext(EditorContext);
10
11
  export class LegacyEditorContext extends React.Component {
11
12
  constructor(props) {
12
13
  super(props);
14
+ this.editorActions = props.editorActions || new EditorActions();
13
15
  }
14
16
  render() {
15
- // Ignored via go/ees005
16
- // eslint-disable-next-line react/jsx-props-no-spreading
17
- return /*#__PURE__*/React.createElement(LegacyEditorContextNew, this.props, this.props.children);
17
+ return /*#__PURE__*/React.createElement(EditorContext.Provider, {
18
+ value: {
19
+ editorActions: this.editorActions
20
+ }
21
+ }, this.props.children);
18
22
  }
19
23
  }
20
- function LegacyEditorContextNew({
21
- children,
22
- editorActions
23
- }) {
24
- return /*#__PURE__*/React.createElement(EditorContext.Provider, {
25
- value: {
26
- editorActions: editorActions !== null && editorActions !== void 0 ? editorActions : new EditorActions()
27
- }
28
- }, children);
29
- }
30
24
 
31
25
  // Ignored via go/ees005
32
26
  // eslint-disable-next-line @repo/internal/react/no-class-components
33
- export default class LegacyEditorContextOld extends React.Component {
27
+ export class LegacyEditorContextOld extends React.Component {
34
28
  constructor(props) {
35
29
  super(props);
36
30
  this.editorActions = props.editorActions || new EditorActions();
@@ -48,4 +42,9 @@ export default class LegacyEditorContextOld extends React.Component {
48
42
  }
49
43
  _defineProperty(LegacyEditorContextOld, "childContextTypes", {
50
44
  editorActions: PropTypes.object
51
- });
45
+ });
46
+ export default (props => expValEquals('platform_editor_context_context_types_migration', 'isEnabled', true) ? /*#__PURE__*/React.createElement(LegacyEditorContext, {
47
+ editorActions: props.editorActions
48
+ }, props.children) : /*#__PURE__*/React.createElement(LegacyEditorContextOld, {
49
+ editorActions: props.editorActions
50
+ }, props.children));
@@ -79,7 +79,7 @@ export const ToolbarNext = ({
79
79
  return /*#__PURE__*/React.createElement(EditorToolbarProvider, {
80
80
  editorView: editorView !== null && editorView !== void 0 ? editorView : null,
81
81
  editorAppearance: editorAppearance,
82
- editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
82
+ editorViewMode: editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit',
83
83
  editorToolbarDockingPreference: editorToolbarDockingPreference,
84
84
  isOffline: isOffline
85
85
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
@@ -3,11 +3,13 @@ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { createDispatch } from '@atlaskit/editor-common/event-dispatcher';
6
+ import { EditorContext } from '@atlaskit/editor-common/UNSAFE_do_not_use_editor_context';
6
7
  import { analyticsEventKey } from '@atlaskit/editor-common/utils/analytics';
7
8
  import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugins/help-dialog';
9
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
10
  // Ignored via go/ees005
9
11
  // eslint-disable-next-line @repo/internal/react/no-class-components
10
- export default class WithHelpTrigger extends React.Component {
12
+ export class WithHelpTriggerOld extends React.Component {
11
13
  constructor(...args) {
12
14
  super(...args);
13
15
  _defineProperty(this, "openHelp", () => {
@@ -40,6 +42,49 @@ export default class WithHelpTrigger extends React.Component {
40
42
  return this.props.render(this.openHelp);
41
43
  }
42
44
  }
43
- _defineProperty(WithHelpTrigger, "contextTypes", {
45
+
46
+ // Ignored via go/ees005
47
+ // eslint-disable-next-line @repo/internal/react/no-class-components
48
+ _defineProperty(WithHelpTriggerOld, "contextTypes", {
44
49
  editorActions: PropTypes.object.isRequired
45
- });
50
+ });
51
+ export class WithHelpTriggerNew extends React.Component {
52
+ constructor(...args) {
53
+ super(...args);
54
+ _defineProperty(this, "openHelp", () => {
55
+ // Ignored via go/ees005
56
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
57
+ const {
58
+ editorActions
59
+ } = this.context;
60
+
61
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
62
+ const dispatch = createDispatch(editorActions.eventDispatcher);
63
+ dispatch(analyticsEventKey, {
64
+ payload: {
65
+ action: ACTION.CLICKED,
66
+ actionSubject: ACTION_SUBJECT.BUTTON,
67
+ actionSubjectId: ACTION_SUBJECT_ID.BUTTON_HELP,
68
+ attributes: {
69
+ inputMethod: INPUT_METHOD.TOOLBAR
70
+ },
71
+ eventType: EVENT_TYPE.UI
72
+ }
73
+ });
74
+ const editorView = editorActions._privateGetEditorView();
75
+ if (editorView) {
76
+ deprecatedOpenHelpCommand(editorView.state.tr, editorView.dispatch);
77
+ }
78
+ });
79
+ }
80
+ render() {
81
+ return this.props.render(this.openHelp);
82
+ }
83
+ }
84
+ _defineProperty(WithHelpTriggerNew, "contextType", EditorContext);
85
+ export const WithHelpTrigger = props => expValEquals('platform_editor_context_context_types_migration', 'isEnabled', true) ? /*#__PURE__*/React.createElement(WithHelpTriggerNew, {
86
+ render: props.render
87
+ }) : /*#__PURE__*/React.createElement(WithHelpTriggerOld, {
88
+ render: props.render
89
+ });
90
+ export default WithHelpTrigger;
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "216.6.5";
2
+ export const version = "216.6.7";
@@ -147,7 +147,7 @@ export var FullPageEditor = function FullPageEditor(props) {
147
147
  FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(isToolbarAIFCEnabled)
148
148
  }
149
149
  }, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? jsx(FullPageToolbarNext, {
150
- disabled: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? !!props.disabled : undefined,
150
+ disabled: !!props.disabled,
151
151
  toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
152
152
  beforeIcon: props.primaryToolbarIconBefore,
153
153
  editorAPI: editorAPI,
@@ -307,7 +307,7 @@ export var blocktypeStyles_without_fg_platform_editor_typography_ugc = css({
307
307
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
308
308
  lineHeight: 'calc(16 / 11)',
309
309
  color: "var(--ds-text-subtlest, #6B6E76)",
310
- fontWeight: "var(--ds-font-weight-bold, 700)",
310
+ fontWeight: "var(--ds-font-weight-bold, 653)",
311
311
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
312
312
  marginTop: '1.455em',
313
313
  textTransform: 'none'
@@ -10,9 +10,9 @@ export var codeBidiWarningStyles = css({
10
10
  '[data-prosemirror-node-name="code-bidi-warning"] [data-bidi-component="code-bidi-warning-decorator"]': {
11
11
  paddingInlineStart: "var(--ds-space-050, 4px)",
12
12
  paddingInlineEnd: "var(--ds-space-050, 4px)",
13
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
13
+ font: "var(--ds-font-body, normal 400 14px/20px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
14
14
  fontStyle: 'normal',
15
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
15
+ fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
16
16
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
17
17
  paddingTop: '0.05rem',
18
18
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
@@ -47,7 +47,7 @@ export var codeBidiWarningStyles = css({
47
47
  transform: 'translate(calc(-50% - 40px), calc(24px - 4px))',
48
48
  opacity: 0,
49
49
  whiteSpace: 'normal',
50
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
50
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
51
51
  zIndex: 9999,
52
52
  // Exit animation timings
53
53
  // - Mark invisible after 0.475s
@@ -53,7 +53,7 @@ export var codeBlockStyles = css({
53
53
  borderRadius: "var(--ds-radius-small, 3px)",
54
54
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
55
55
  margin: "".concat(blockNodesVerticalMargin, " 0 0 0"),
56
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
56
+ fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
57
57
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
58
58
  minWidth: 48,
59
59
  cursor: 'pointer',
@@ -13,7 +13,7 @@ export var codeMarkStyles = css({
13
13
  borderStyle: 'none',
14
14
  boxDecorationBreak: 'clone',
15
15
  color: "var(--ds-text, #292A2E)",
16
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
16
+ fontFamily: "var(--ds-font-family-code, \"Atlassian Mono\", ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)",
17
17
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
18
18
  fontSize: '0.875em',
19
19
  fontWeight: "var(--ds-font-weight-regular, 400)",
@@ -265,7 +265,7 @@ export var expandStylesMixin_fg_platform_visual_refresh_icons = css({
265
265
  '.ak-editor-expand__title-input': {
266
266
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
267
267
  lineHeight: 1,
268
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
268
+ fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"
269
269
  }
270
270
  });
271
271
 
@@ -59,8 +59,8 @@ export var statusStyles = css({
59
59
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
60
60
  fontSize: '11px',
61
61
  fontStyle: 'normal',
62
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
63
- fontWeight: "var(--ds-font-weight-bold, 700)",
62
+ fontFamily: "var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
63
+ fontWeight: "var(--ds-font-weight-bold, 653)",
64
64
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
65
65
  lineHeight: '16px',
66
66
  overflow: 'hidden',
@@ -162,7 +162,7 @@ export var telepointerStyle = css({
162
162
  whiteSpace: 'pre',
163
163
  top: -14,
164
164
  left: 0,
165
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
165
+ font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
166
166
  paddingLeft: "var(--ds-space-050, 4px)",
167
167
  paddingRight: "var(--ds-space-050, 4px)",
168
168
  borderRadius: "0 ".concat("var(--ds-radius-xsmall, 2px)", " ", "var(--ds-radius-xsmall, 2px)", " 0")
@@ -9,6 +9,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
9
9
  import React from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import { EditorContext } from '@atlaskit/editor-common/UNSAFE_do_not_use_editor_context';
12
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
13
  import EditorActions from '../../actions';
13
14
  export var useEditorContext = function useEditorContext() {
14
15
  return React.useContext(EditorContext);
@@ -18,38 +19,34 @@ export var useEditorContext = function useEditorContext() {
18
19
  // eslint-disable-next-line @repo/internal/react/no-class-components, react/prefer-stateless-function
19
20
  export var LegacyEditorContext = /*#__PURE__*/function (_React$Component) {
20
21
  function LegacyEditorContext(props) {
22
+ var _this;
21
23
  _classCallCheck(this, LegacyEditorContext);
22
- return _callSuper(this, LegacyEditorContext, [props]);
24
+ _this = _callSuper(this, LegacyEditorContext, [props]);
25
+ _this.editorActions = props.editorActions || new EditorActions();
26
+ return _this;
23
27
  }
24
28
  _inherits(LegacyEditorContext, _React$Component);
25
29
  return _createClass(LegacyEditorContext, [{
26
30
  key: "render",
27
31
  value: function render() {
28
- // Ignored via go/ees005
29
- // eslint-disable-next-line react/jsx-props-no-spreading
30
- return /*#__PURE__*/React.createElement(LegacyEditorContextNew, this.props, this.props.children);
32
+ return /*#__PURE__*/React.createElement(EditorContext.Provider, {
33
+ value: {
34
+ editorActions: this.editorActions
35
+ }
36
+ }, this.props.children);
31
37
  }
32
38
  }]);
33
39
  }(React.Component);
34
- function LegacyEditorContextNew(_ref) {
35
- var children = _ref.children,
36
- editorActions = _ref.editorActions;
37
- return /*#__PURE__*/React.createElement(EditorContext.Provider, {
38
- value: {
39
- editorActions: editorActions !== null && editorActions !== void 0 ? editorActions : new EditorActions()
40
- }
41
- }, children);
42
- }
43
40
 
44
41
  // Ignored via go/ees005
45
42
  // eslint-disable-next-line @repo/internal/react/no-class-components
46
- var LegacyEditorContextOld = /*#__PURE__*/function (_React$Component2) {
43
+ export var LegacyEditorContextOld = /*#__PURE__*/function (_React$Component2) {
47
44
  function LegacyEditorContextOld(props) {
48
- var _this;
45
+ var _this2;
49
46
  _classCallCheck(this, LegacyEditorContextOld);
50
- _this = _callSuper(this, LegacyEditorContextOld, [props]);
51
- _this.editorActions = props.editorActions || new EditorActions();
52
- return _this;
47
+ _this2 = _callSuper(this, LegacyEditorContextOld, [props]);
48
+ _this2.editorActions = props.editorActions || new EditorActions();
49
+ return _this2;
53
50
  }
54
51
  _inherits(LegacyEditorContextOld, _React$Component2);
55
52
  return _createClass(LegacyEditorContextOld, [{
@@ -71,4 +68,10 @@ var LegacyEditorContextOld = /*#__PURE__*/function (_React$Component2) {
71
68
  _defineProperty(LegacyEditorContextOld, "childContextTypes", {
72
69
  editorActions: PropTypes.object
73
70
  });
74
- export { LegacyEditorContextOld as default };
71
+ export default (function (props) {
72
+ return expValEquals('platform_editor_context_context_types_migration', 'isEnabled', true) ? /*#__PURE__*/React.createElement(LegacyEditorContext, {
73
+ editorActions: props.editorActions
74
+ }, props.children) : /*#__PURE__*/React.createElement(LegacyEditorContextOld, {
75
+ editorActions: props.editorActions
76
+ }, props.children);
77
+ });
@@ -79,7 +79,7 @@ export var ToolbarNext = function ToolbarNext(_ref) {
79
79
  return /*#__PURE__*/React.createElement(EditorToolbarProvider, {
80
80
  editorView: editorView !== null && editorView !== void 0 ? editorView : null,
81
81
  editorAppearance: editorAppearance,
82
- editorViewMode: expValEquals('platform_editor_toolbar_aifc_patch_4', 'isEnabled', true) ? editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit' : editorViewMode,
82
+ editorViewMode: editorViewMode !== null && editorViewMode !== void 0 ? editorViewMode : 'edit',
83
83
  editorToolbarDockingPreference: editorToolbarDockingPreference,
84
84
  isOffline: isOffline
85
85
  }, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
@@ -10,18 +10,20 @@ import React from 'react';
10
10
  import PropTypes from 'prop-types';
11
11
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
12
12
  import { createDispatch } from '@atlaskit/editor-common/event-dispatcher';
13
+ import { EditorContext } from '@atlaskit/editor-common/UNSAFE_do_not_use_editor_context';
13
14
  import { analyticsEventKey } from '@atlaskit/editor-common/utils/analytics';
14
15
  import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugins/help-dialog';
16
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
15
17
  // Ignored via go/ees005
16
18
  // eslint-disable-next-line @repo/internal/react/no-class-components
17
- var WithHelpTrigger = /*#__PURE__*/function (_React$Component) {
18
- function WithHelpTrigger() {
19
+ export var WithHelpTriggerOld = /*#__PURE__*/function (_React$Component) {
20
+ function WithHelpTriggerOld() {
19
21
  var _this;
20
- _classCallCheck(this, WithHelpTrigger);
22
+ _classCallCheck(this, WithHelpTriggerOld);
21
23
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
22
24
  args[_key] = arguments[_key];
23
25
  }
24
- _this = _callSuper(this, WithHelpTrigger, [].concat(args));
26
+ _this = _callSuper(this, WithHelpTriggerOld, [].concat(args));
25
27
  _defineProperty(_this, "openHelp", function () {
26
28
  // Ignored via go/ees005
27
29
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -48,15 +50,68 @@ var WithHelpTrigger = /*#__PURE__*/function (_React$Component) {
48
50
  });
49
51
  return _this;
50
52
  }
51
- _inherits(WithHelpTrigger, _React$Component);
52
- return _createClass(WithHelpTrigger, [{
53
+ _inherits(WithHelpTriggerOld, _React$Component);
54
+ return _createClass(WithHelpTriggerOld, [{
53
55
  key: "render",
54
56
  value: function render() {
55
57
  return this.props.render(this.openHelp);
56
58
  }
57
59
  }]);
58
60
  }(React.Component);
59
- _defineProperty(WithHelpTrigger, "contextTypes", {
61
+
62
+ // Ignored via go/ees005
63
+ // eslint-disable-next-line @repo/internal/react/no-class-components
64
+ _defineProperty(WithHelpTriggerOld, "contextTypes", {
60
65
  editorActions: PropTypes.object.isRequired
61
66
  });
62
- export { WithHelpTrigger as default };
67
+ export var WithHelpTriggerNew = /*#__PURE__*/function (_React$Component2) {
68
+ function WithHelpTriggerNew() {
69
+ var _this2;
70
+ _classCallCheck(this, WithHelpTriggerNew);
71
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
72
+ args[_key2] = arguments[_key2];
73
+ }
74
+ _this2 = _callSuper(this, WithHelpTriggerNew, [].concat(args));
75
+ _defineProperty(_this2, "openHelp", function () {
76
+ // Ignored via go/ees005
77
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
78
+ var _ref2 = _this2.context,
79
+ editorActions = _ref2.editorActions;
80
+
81
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
82
+ var dispatch = createDispatch(editorActions.eventDispatcher);
83
+ dispatch(analyticsEventKey, {
84
+ payload: {
85
+ action: ACTION.CLICKED,
86
+ actionSubject: ACTION_SUBJECT.BUTTON,
87
+ actionSubjectId: ACTION_SUBJECT_ID.BUTTON_HELP,
88
+ attributes: {
89
+ inputMethod: INPUT_METHOD.TOOLBAR
90
+ },
91
+ eventType: EVENT_TYPE.UI
92
+ }
93
+ });
94
+ var editorView = editorActions._privateGetEditorView();
95
+ if (editorView) {
96
+ deprecatedOpenHelpCommand(editorView.state.tr, editorView.dispatch);
97
+ }
98
+ });
99
+ return _this2;
100
+ }
101
+ _inherits(WithHelpTriggerNew, _React$Component2);
102
+ return _createClass(WithHelpTriggerNew, [{
103
+ key: "render",
104
+ value: function render() {
105
+ return this.props.render(this.openHelp);
106
+ }
107
+ }]);
108
+ }(React.Component);
109
+ _defineProperty(WithHelpTriggerNew, "contextType", EditorContext);
110
+ export var WithHelpTrigger = function WithHelpTrigger(props) {
111
+ return expValEquals('platform_editor_context_context_types_migration', 'isEnabled', true) ? /*#__PURE__*/React.createElement(WithHelpTriggerNew, {
112
+ render: props.render
113
+ }) : /*#__PURE__*/React.createElement(WithHelpTriggerOld, {
114
+ render: props.render
115
+ });
116
+ };
117
+ export default WithHelpTrigger;
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "216.6.5";
2
+ export var version = "216.6.7";
@@ -11,7 +11,7 @@ import type { PrimaryToolbarComponents } from '../../../types';
11
11
  type FullPageToolbarNextProps = {
12
12
  beforeIcon?: React.ReactNode;
13
13
  customPrimaryToolbarComponents?: PrimaryToolbarComponents;
14
- disabled?: boolean;
14
+ disabled: boolean;
15
15
  editorAPI?: PublicPluginAPI<[ToolbarPlugin]>;
16
16
  editorView?: EditorView;
17
17
  popupsBoundariesElement?: HTMLElement;
@@ -8,9 +8,10 @@ export type EditorContextProps = React.PropsWithChildren<EditorContextInternal>;
8
8
  export declare const useEditorContext: () => EditorContextProps;
9
9
  export declare class LegacyEditorContext extends React.Component<EditorContextProps, Object> {
10
10
  constructor(props: EditorContextProps);
11
+ private editorActions;
11
12
  render(): React.JSX.Element;
12
13
  }
13
- export default class LegacyEditorContextOld extends React.Component<EditorContextProps, Object> {
14
+ export declare class LegacyEditorContextOld extends React.Component<EditorContextProps, Object> {
14
15
  static childContextTypes: {
15
16
  editorActions: PropTypes.Requireable<object>;
16
17
  };
@@ -21,4 +22,5 @@ export default class LegacyEditorContextOld extends React.Component<EditorContex
21
22
  };
22
23
  render(): React.JSX.Element;
23
24
  }
24
- export {};
25
+ declare const _default: (props: EditorContextProps) => React.JSX.Element;
26
+ export default _default;
@@ -4,7 +4,7 @@ import type EditorActions from '../../actions';
4
4
  interface WithHelpTriggerProps {
5
5
  render: (openHelp: () => void) => React.ReactNode;
6
6
  }
7
- export default class WithHelpTrigger extends React.Component<WithHelpTriggerProps> {
7
+ export declare class WithHelpTriggerOld extends React.Component<WithHelpTriggerProps> {
8
8
  static contextTypes: {
9
9
  editorActions: PropTypes.Validator<object>;
10
10
  };
@@ -14,4 +14,13 @@ export default class WithHelpTrigger extends React.Component<WithHelpTriggerProp
14
14
  openHelp: () => void;
15
15
  render(): React.ReactNode;
16
16
  }
17
- export {};
17
+ export declare class WithHelpTriggerNew extends React.Component<WithHelpTriggerProps> {
18
+ static contextType: React.Context<{}>;
19
+ context: {
20
+ editorActions: EditorActions;
21
+ };
22
+ openHelp: () => void;
23
+ render(): React.ReactNode;
24
+ }
25
+ export declare const WithHelpTrigger: (props: WithHelpTriggerProps) => React.JSX.Element;
26
+ export default WithHelpTrigger;
@@ -11,7 +11,7 @@ import type { PrimaryToolbarComponents } from '../../../types';
11
11
  type FullPageToolbarNextProps = {
12
12
  beforeIcon?: React.ReactNode;
13
13
  customPrimaryToolbarComponents?: PrimaryToolbarComponents;
14
- disabled?: boolean;
14
+ disabled: boolean;
15
15
  editorAPI?: PublicPluginAPI<[
16
16
  ToolbarPlugin
17
17
  ]>;
@@ -8,9 +8,10 @@ export type EditorContextProps = React.PropsWithChildren<EditorContextInternal>;
8
8
  export declare const useEditorContext: () => EditorContextProps;
9
9
  export declare class LegacyEditorContext extends React.Component<EditorContextProps, Object> {
10
10
  constructor(props: EditorContextProps);
11
+ private editorActions;
11
12
  render(): React.JSX.Element;
12
13
  }
13
- export default class LegacyEditorContextOld extends React.Component<EditorContextProps, Object> {
14
+ export declare class LegacyEditorContextOld extends React.Component<EditorContextProps, Object> {
14
15
  static childContextTypes: {
15
16
  editorActions: PropTypes.Requireable<object>;
16
17
  };
@@ -21,4 +22,5 @@ export default class LegacyEditorContextOld extends React.Component<EditorContex
21
22
  };
22
23
  render(): React.JSX.Element;
23
24
  }
24
- export {};
25
+ declare const _default: (props: EditorContextProps) => React.JSX.Element;
26
+ export default _default;
@@ -4,7 +4,7 @@ import type EditorActions from '../../actions';
4
4
  interface WithHelpTriggerProps {
5
5
  render: (openHelp: () => void) => React.ReactNode;
6
6
  }
7
- export default class WithHelpTrigger extends React.Component<WithHelpTriggerProps> {
7
+ export declare class WithHelpTriggerOld extends React.Component<WithHelpTriggerProps> {
8
8
  static contextTypes: {
9
9
  editorActions: PropTypes.Validator<object>;
10
10
  };
@@ -14,4 +14,13 @@ export default class WithHelpTrigger extends React.Component<WithHelpTriggerProp
14
14
  openHelp: () => void;
15
15
  render(): React.ReactNode;
16
16
  }
17
- export {};
17
+ export declare class WithHelpTriggerNew extends React.Component<WithHelpTriggerProps> {
18
+ static contextType: React.Context<{}>;
19
+ context: {
20
+ editorActions: EditorActions;
21
+ };
22
+ openHelp: () => void;
23
+ render(): React.ReactNode;
24
+ }
25
+ export declare const WithHelpTrigger: (props: WithHelpTriggerProps) => React.JSX.Element;
26
+ export default WithHelpTrigger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.6.6",
3
+ "version": "216.7.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -66,7 +66,7 @@
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^4.17.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^16.23.0",
69
+ "@atlaskit/tmp-editor-statsig": "^16.25.0",
70
70
  "@atlaskit/tokens": "^10.0.0",
71
71
  "@atlaskit/tooltip": "^20.14.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -357,6 +357,9 @@
357
357
  },
358
358
  "platform_editor_a11y_find_replace_focus_ring": {
359
359
  "type": "boolean"
360
+ },
361
+ "platform_editor_context_context_types_migration": {
362
+ "type": "boolean"
360
363
  }
361
364
  },
362
365
  "stricter": {