@atlaskit/editor-core 224.1.4 → 224.2.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,18 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 224.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 224.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`3e6a36c5d30ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e6a36c5d30ad) -
14
+ Add new UNSAFE_outside slot to editor content components.
15
+
3
16
  ## 224.1.4
4
17
 
5
18
  ### Patch Changes
@@ -105,7 +105,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
105
105
  "data-testid": EDITOR_CONTAINER,
106
106
  "data-editor-container": 'true',
107
107
  className: (0, _runtime.ax)([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
108
- }, /*#__PURE__*/_react.default.createElement(_EditorContentContainer.default
108
+ }, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.UNSAFE_outside) : null, /*#__PURE__*/_react.default.createElement(_EditorContentContainer.default
109
109
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
110
110
  , {
111
111
  className: "fabric-editor-popup-scroll-parent",
@@ -322,7 +322,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
322
322
  _StyledComponents.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
323
323
  "data-testid": EDITOR_CONTAINER,
324
324
  "data-editor-container": 'true'
325
- }, (0, _react2.jsx)(_EditorContentContainer.default
325
+ }, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.UNSAFE_outside) : null, (0, _react2.jsx)(_EditorContentContainer.default
326
326
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
327
327
  , {
328
328
  className: "fabric-editor-popup-scroll-parent",
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "224.1.3";
9
+ var version = exports.version = "224.2.0";
@@ -94,7 +94,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
94
94
  "data-testid": EDITOR_CONTAINER,
95
95
  "data-editor-container": 'true',
96
96
  className: ax([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
97
- }, /*#__PURE__*/React.createElement(EditorContentContainer
97
+ }, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.UNSAFE_outside) : null, /*#__PURE__*/React.createElement(EditorContentContainer
98
98
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
99
99
  , {
100
100
  className: "fabric-editor-popup-scroll-parent",
@@ -314,7 +314,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
314
314
  contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
315
315
  "data-testid": EDITOR_CONTAINER,
316
316
  "data-editor-container": 'true'
317
- }, jsx(EditorContentContainer
317
+ }, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.UNSAFE_outside) : null, jsx(EditorContentContainer
318
318
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
319
319
  , {
320
320
  className: "fabric-editor-popup-scroll-parent",
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "224.1.3";
3
+ export const version = "224.2.0";
@@ -98,7 +98,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
98
98
  "data-testid": EDITOR_CONTAINER,
99
99
  "data-editor-container": 'true',
100
100
  className: ax([compiledStyles.contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && compiledStyles.markdownModeContainerBackgroundStyle])
101
- }, /*#__PURE__*/React.createElement(EditorContentContainer
101
+ }, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.UNSAFE_outside) : null, /*#__PURE__*/React.createElement(EditorContentContainer
102
102
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
103
103
  , {
104
104
  className: "fabric-editor-popup-scroll-parent",
@@ -312,7 +312,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
312
312
  contentAreaWrapper, shouldHideProseMirrorForMarkdownMode && markdownModeContainerBackgroundStyle],
313
313
  "data-testid": EDITOR_CONTAINER,
314
314
  "data-editor-container": 'true'
315
- }, jsx(EditorContentContainer
315
+ }, !!props.customContentComponents && 'UNSAFE_outside' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.UNSAFE_outside) : null, jsx(EditorContentContainer
316
316
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
317
317
  , {
318
318
  className: "fabric-editor-popup-scroll-parent",
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "224.1.3";
3
+ export var version = "224.2.0";
@@ -43,6 +43,7 @@ export type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactCo
43
43
  export type BeforeAndAfterContentComponents = {
44
44
  after: ReactComponents;
45
45
  before: ReactComponents;
46
+ UNSAFE_outside?: ReactComponents;
46
47
  };
47
48
  export type ContentComponents = BeforeAndAfterContentComponents | ReactComponents;
48
49
  interface EditorBaseProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "224.1.4",
3
+ "version": "224.2.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/editor-prosemirror": "^8.0.0",
55
55
  "@atlaskit/editor-shared-styles": "^4.0.0",
56
56
  "@atlaskit/editor-ssr-renderer": "^10.0.0",
57
- "@atlaskit/editor-toolbar": "^2.4.0",
57
+ "@atlaskit/editor-toolbar": "^2.5.0",
58
58
  "@atlaskit/editor-toolbar-model": "^1.2.0",
59
59
  "@atlaskit/emoji": "^72.0.0",
60
60
  "@atlaskit/feature-gate-js-client": "^6.0.0",
@@ -69,7 +69,7 @@
69
69
  "@atlaskit/react-compiler-gating": "^0.2.0",
70
70
  "@atlaskit/react-ufo": "^7.6.0",
71
71
  "@atlaskit/task-decision": "^21.8.0",
72
- "@atlaskit/tmp-editor-statsig": "^152.0.0",
72
+ "@atlaskit/tmp-editor-statsig": "^153.0.0",
73
73
  "@atlaskit/tokens": "^16.7.0",
74
74
  "@atlaskit/tooltip": "^24.0.0",
75
75
  "@atlaskit/width-detector": "^7.0.0",