@atlaskit/editor-core 217.9.1 → 217.9.3
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 +14 -0
- package/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +11 -3
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +11 -3
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +11 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 217.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 217.9.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`4babe84074774`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4babe84074774) -
|
|
14
|
+
Updates lookup and identiier for gutter to use a data attribute
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 217.9.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -14,6 +14,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
14
14
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
15
15
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
16
16
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
17
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
17
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
19
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
19
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
@@ -207,7 +208,7 @@ var contentAreaHeightNoToolbar = (0, _react2.css)({
|
|
|
207
208
|
var CONTENT_AREA_TEST_ID = exports.CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
208
209
|
var EDITOR_CONTAINER = exports.EDITOR_CONTAINER = 'ak-editor-container';
|
|
209
210
|
var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
210
|
-
var _props$editorAPI, _props$editorAPI$bloc, _props$editorAPI2, _contentAreaRef$curre, _allowScrollGutter$gu;
|
|
211
|
+
var _props$editorAPI, _props$editorAPI$bloc, _props$editorAPI2, _contentAreaRef$curre, _allowScrollGutter$gu, _allowScrollGutter$gu2;
|
|
211
212
|
var theme = (0, _react2.useTheme)();
|
|
212
213
|
var fullWidthMode = props.appearance === 'full-width';
|
|
213
214
|
var maxWidthMode = props.appearance === 'max';
|
|
@@ -302,13 +303,20 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
302
303
|
containerElement: scrollContainerRef.current,
|
|
303
304
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
304
305
|
wrapperElement: props.wrapperElement
|
|
305
|
-
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.after) : null, allowScrollGutter && (0, _react2.jsx)("div", {
|
|
306
|
+
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? (0, _contentComponentWrapper.contentComponentClickWrapper)(props.customContentComponents.after) : null, allowScrollGutter && (_featureGateJsClient.default.getExperimentValue('cc_snippets_dogfooding_beta', 'isEnabled', false) ? (0, _react2.jsx)("div", {
|
|
306
307
|
id: "editor-scroll-gutter",
|
|
307
308
|
style: {
|
|
308
309
|
paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
|
|
309
310
|
},
|
|
311
|
+
"data-vc": "scroll-gutter",
|
|
312
|
+
"data-editor-scroll-gutter": "true"
|
|
313
|
+
}) : (0, _react2.jsx)("div", {
|
|
314
|
+
id: "editor-scroll-gutter",
|
|
315
|
+
style: {
|
|
316
|
+
paddingBottom: "".concat((_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120', "px")
|
|
317
|
+
},
|
|
310
318
|
"data-vc": "scroll-gutter"
|
|
311
|
-
})))))), (0, _react2.jsx)("div", {
|
|
319
|
+
}))))))), (0, _react2.jsx)("div", {
|
|
312
320
|
css: _StyledComponents.sidebarArea
|
|
313
321
|
}, props.contextPanel || (0, _react2.jsx)(_ContextPanel.ContextPanel, {
|
|
314
322
|
editorAPI: props.editorAPI,
|
|
@@ -12,6 +12,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
12
12
|
import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
13
13
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
14
14
|
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
15
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
15
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
17
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -205,7 +206,7 @@ const contentAreaHeightNoToolbar = css({
|
|
|
205
206
|
export const CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
206
207
|
export const EDITOR_CONTAINER = 'ak-editor-container';
|
|
207
208
|
const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
208
|
-
var _props$editorAPI, _props$editorAPI$base, _props$editorAPI$base2, _props$editorAPI$bloc, _props$editorAPI2, _props$editorAPI2$blo, _props$editorAPI2$blo2, _props$editorAPI2$blo3, _contentAreaRef$curre, _allowScrollGutter$gu;
|
|
209
|
+
var _props$editorAPI, _props$editorAPI$base, _props$editorAPI$base2, _props$editorAPI$bloc, _props$editorAPI2, _props$editorAPI2$blo, _props$editorAPI2$blo2, _props$editorAPI2$blo3, _contentAreaRef$curre, _allowScrollGutter$gu, _allowScrollGutter$gu2;
|
|
209
210
|
const theme = useTheme();
|
|
210
211
|
const fullWidthMode = props.appearance === 'full-width';
|
|
211
212
|
const maxWidthMode = props.appearance === 'max';
|
|
@@ -299,13 +300,20 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
299
300
|
containerElement: scrollContainerRef.current,
|
|
300
301
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
301
302
|
wrapperElement: props.wrapperElement
|
|
302
|
-
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && jsx("div", {
|
|
303
|
+
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (FeatureGates.getExperimentValue('cc_snippets_dogfooding_beta', 'isEnabled', false) ? jsx("div", {
|
|
303
304
|
id: "editor-scroll-gutter",
|
|
304
305
|
style: {
|
|
305
306
|
paddingBottom: `${(_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120'}px`
|
|
306
307
|
},
|
|
308
|
+
"data-vc": "scroll-gutter",
|
|
309
|
+
"data-editor-scroll-gutter": "true"
|
|
310
|
+
}) : jsx("div", {
|
|
311
|
+
id: "editor-scroll-gutter",
|
|
312
|
+
style: {
|
|
313
|
+
paddingBottom: `${(_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120'}px`
|
|
314
|
+
},
|
|
307
315
|
"data-vc": "scroll-gutter"
|
|
308
|
-
})))))), jsx("div", {
|
|
316
|
+
}))))))), jsx("div", {
|
|
309
317
|
css: sidebarArea
|
|
310
318
|
}, props.contextPanel || jsx(ContextPanel, {
|
|
311
319
|
editorAPI: props.editorAPI,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "217.9.
|
|
2
|
+
export const version = "217.9.2";
|
|
@@ -15,6 +15,7 @@ import { injectIntl } from 'react-intl-next';
|
|
|
15
15
|
import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
|
|
16
16
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
17
17
|
import { akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
18
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
18
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
20
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
20
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -203,7 +204,7 @@ var contentAreaHeightNoToolbar = css({
|
|
|
203
204
|
export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
204
205
|
export var EDITOR_CONTAINER = 'ak-editor-container';
|
|
205
206
|
var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
206
|
-
var _props$editorAPI, _props$editorAPI$bloc, _props$editorAPI2, _contentAreaRef$curre, _allowScrollGutter$gu;
|
|
207
|
+
var _props$editorAPI, _props$editorAPI$bloc, _props$editorAPI2, _contentAreaRef$curre, _allowScrollGutter$gu, _allowScrollGutter$gu2;
|
|
207
208
|
var theme = useTheme();
|
|
208
209
|
var fullWidthMode = props.appearance === 'full-width';
|
|
209
210
|
var maxWidthMode = props.appearance === 'max';
|
|
@@ -298,13 +299,20 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
298
299
|
containerElement: scrollContainerRef.current,
|
|
299
300
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
300
301
|
wrapperElement: props.wrapperElement
|
|
301
|
-
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && jsx("div", {
|
|
302
|
+
}), props.editorDOMElement, !!props.customContentComponents && 'after' in props.customContentComponents ? contentComponentClickWrapper(props.customContentComponents.after) : null, allowScrollGutter && (FeatureGates.getExperimentValue('cc_snippets_dogfooding_beta', 'isEnabled', false) ? jsx("div", {
|
|
302
303
|
id: "editor-scroll-gutter",
|
|
303
304
|
style: {
|
|
304
305
|
paddingBottom: "".concat((_allowScrollGutter$gu = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu !== void 0 ? _allowScrollGutter$gu : '120', "px")
|
|
305
306
|
},
|
|
307
|
+
"data-vc": "scroll-gutter",
|
|
308
|
+
"data-editor-scroll-gutter": "true"
|
|
309
|
+
}) : jsx("div", {
|
|
310
|
+
id: "editor-scroll-gutter",
|
|
311
|
+
style: {
|
|
312
|
+
paddingBottom: "".concat((_allowScrollGutter$gu2 = allowScrollGutter.gutterSize) !== null && _allowScrollGutter$gu2 !== void 0 ? _allowScrollGutter$gu2 : '120', "px")
|
|
313
|
+
},
|
|
306
314
|
"data-vc": "scroll-gutter"
|
|
307
|
-
})))))), jsx("div", {
|
|
315
|
+
}))))))), jsx("div", {
|
|
308
316
|
css: sidebarArea
|
|
309
317
|
}, props.contextPanel || jsx(ContextPanel, {
|
|
310
318
|
editorAPI: props.editorAPI,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "217.9.
|
|
2
|
+
export var version = "217.9.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "217.9.
|
|
3
|
+
"version": "217.9.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -58,17 +58,18 @@
|
|
|
58
58
|
"@atlaskit/editor-toolbar": "^0.20.0",
|
|
59
59
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
60
60
|
"@atlaskit/emoji": "^69.10.0",
|
|
61
|
-
"@atlaskit/
|
|
61
|
+
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
62
|
+
"@atlaskit/icon": "^34.0.0",
|
|
62
63
|
"@atlaskit/link": "^3.3.0",
|
|
63
64
|
"@atlaskit/media-card": "^79.16.0",
|
|
64
65
|
"@atlaskit/mention": "^24.6.0",
|
|
65
66
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
66
67
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
67
|
-
"@atlaskit/react-ufo": "^5.
|
|
68
|
+
"@atlaskit/react-ufo": "^5.10.0",
|
|
68
69
|
"@atlaskit/task-decision": "^19.3.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
70
|
+
"@atlaskit/tmp-editor-statsig": "^53.0.0",
|
|
70
71
|
"@atlaskit/tokens": "^11.4.0",
|
|
71
|
-
"@atlaskit/tooltip": "^21.
|
|
72
|
+
"@atlaskit/tooltip": "^21.1.0",
|
|
72
73
|
"@atlaskit/width-detector": "^5.0.0",
|
|
73
74
|
"@babel/runtime": "^7.0.0",
|
|
74
75
|
"@emotion/react": "^11.7.1",
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
"uuid": "^3.1.0"
|
|
84
85
|
},
|
|
85
86
|
"peerDependencies": {
|
|
86
|
-
"@atlaskit/editor-common": "^112.
|
|
87
|
+
"@atlaskit/editor-common": "^112.15.0",
|
|
87
88
|
"@atlaskit/link-provider": "^4.3.0",
|
|
88
89
|
"@atlaskit/media-core": "^37.0.0",
|
|
89
90
|
"react": "^18.2.0",
|
|
@@ -106,13 +107,13 @@
|
|
|
106
107
|
"@atlaskit/media-core": "^37.0.0",
|
|
107
108
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
108
109
|
"@atlaskit/media-test-helpers": "^40.0.0",
|
|
109
|
-
"@atlaskit/modal-dialog": "^14.
|
|
110
|
-
"@atlaskit/renderer": "^128.
|
|
110
|
+
"@atlaskit/modal-dialog": "^14.14.0",
|
|
111
|
+
"@atlaskit/renderer": "^128.7.0",
|
|
111
112
|
"@atlaskit/section-message": "^8.12.0",
|
|
112
113
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
113
114
|
"@atlaskit/toggle": "^15.2.0",
|
|
114
115
|
"@atlaskit/util-data-test": "^18.5.0",
|
|
115
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
116
|
+
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
116
117
|
"@atlassian/adf-schema-json": "^1.33.0",
|
|
117
118
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
118
119
|
"@atlassian/search-provider": "^9.0.0",
|