@atlaskit/editor-core 217.9.1 → 217.9.2

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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 217.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4babe84074774`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4babe84074774) -
8
+ Updates lookup and identiier for gutter to use a data attribute
9
+ - Updated dependencies
10
+
3
11
  ## 217.9.1
4
12
 
5
13
  ### Patch Changes
@@ -78,6 +78,9 @@
78
78
  {
79
79
  "path": "../../../elements/emoji/afm-cc/tsconfig.json"
80
80
  },
81
+ {
82
+ "path": "../../../measurement/feature-gate-js-client/afm-cc/tsconfig.json"
83
+ },
81
84
  {
82
85
  "path": "../../../design-system/icon/afm-cc/tsconfig.json"
83
86
  },
@@ -78,6 +78,9 @@
78
78
  {
79
79
  "path": "../../../elements/emoji/afm-jira/tsconfig.json"
80
80
  },
81
+ {
82
+ "path": "../../../measurement/feature-gate-js-client/afm-jira/tsconfig.json"
83
+ },
81
84
  {
82
85
  "path": "../../../design-system/icon/afm-jira/tsconfig.json"
83
86
  },
@@ -78,6 +78,9 @@
78
78
  {
79
79
  "path": "../../../elements/emoji/afm-products/tsconfig.json"
80
80
  },
81
+ {
82
+ "path": "../../../measurement/feature-gate-js-client/afm-products/tsconfig.json"
83
+ },
81
84
  {
82
85
  "path": "../../../design-system/icon/afm-products/tsconfig.json"
83
86
  },
@@ -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,
@@ -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 = "217.9.0";
8
+ var version = exports.version = "217.9.1";
@@ -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.0";
2
+ export const version = "217.9.1";
@@ -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.0";
2
+ export var version = "217.9.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "217.9.1",
3
+ "version": "217.9.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -58,6 +58,7 @@
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/feature-gate-js-client": "^5.5.0",
61
62
  "@atlaskit/icon": "^33.1.0",
62
63
  "@atlaskit/link": "^3.3.0",
63
64
  "@atlaskit/media-card": "^79.16.0",
@@ -68,7 +69,7 @@
68
69
  "@atlaskit/task-decision": "^19.3.0",
69
70
  "@atlaskit/tmp-editor-statsig": "^52.0.0",
70
71
  "@atlaskit/tokens": "^11.4.0",
71
- "@atlaskit/tooltip": "^21.0.0",
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",
@@ -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.13.0",
110
+ "@atlaskit/modal-dialog": "^14.14.0",
110
111
  "@atlaskit/renderer": "^128.6.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.10.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",