@atlaskit/editor-common 116.12.1 → 116.13.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.
- package/CHANGELOG.md +22 -1
- package/afm-cc/tsconfig.json +3 -3
- package/afm-products/tsconfig.json +3 -3
- package/dist/cjs/analytics/types/table-events.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +2 -2
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
- package/dist/cjs/utils/datasource.js +1 -6
- package/dist/es2019/analytics/types/table-events.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Popup/index.js +2 -2
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
- package/dist/es2019/utils/datasource.js +1 -6
- package/dist/esm/analytics/types/table-events.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Popup/index.js +2 -2
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
- package/dist/esm/utils/datasource.js +1 -6
- package/dist/types/analytics/types/table-events.d.ts +9 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d461a7ef54404`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d461a7ef54404) -
|
|
8
|
+
Add analytics for table cell vertical alignment changes
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`38ea9ee83c0a6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38ea9ee83c0a6) -
|
|
13
|
+
Clean up `linking_platform_datasource_assets_objects` feature gate (always-on). No behaviour
|
|
14
|
+
change for consumers — gate was already `true` everywhere via
|
|
15
|
+
`always-on-gates-DO_NOT_EDIT_THIS_FILE.ts`.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 116.12.2
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 116.12.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -48,7 +69,7 @@
|
|
|
48
69
|
### Patch Changes
|
|
49
70
|
|
|
50
71
|
- [`ee28cf33718b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee28cf33718b0) -
|
|
51
|
-
Add @
|
|
72
|
+
Add @atlaskit/react-compiler-gating as a runtime dependency to enable React Compiler platform
|
|
52
73
|
gating.
|
|
53
74
|
- [`64a0b50380570`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64a0b50380570) - -
|
|
54
75
|
Improve TypeScript auto-detection for class fields and typed arrow function params/return types.
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -148,6 +148,9 @@
|
|
|
148
148
|
{
|
|
149
149
|
"path": "../../prosemirror-history/afm-cc/tsconfig.json"
|
|
150
150
|
},
|
|
151
|
+
{
|
|
152
|
+
"path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
|
|
153
|
+
},
|
|
151
154
|
{
|
|
152
155
|
"path": "../../../react-ufo/atlaskit/afm-cc/tsconfig.json"
|
|
153
156
|
},
|
|
@@ -184,9 +187,6 @@
|
|
|
184
187
|
{
|
|
185
188
|
"path": "../../../design-system/width-detector/afm-cc/tsconfig.json"
|
|
186
189
|
},
|
|
187
|
-
{
|
|
188
|
-
"path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
|
|
189
|
-
},
|
|
190
190
|
{
|
|
191
191
|
"path": "../../../media/media-core/afm-cc/tsconfig.json"
|
|
192
192
|
}
|
|
@@ -148,6 +148,9 @@
|
|
|
148
148
|
{
|
|
149
149
|
"path": "../../prosemirror-history/afm-products/tsconfig.json"
|
|
150
150
|
},
|
|
151
|
+
{
|
|
152
|
+
"path": "../../../react-compiler/react-compiler-gating/afm-products/tsconfig.json"
|
|
153
|
+
},
|
|
151
154
|
{
|
|
152
155
|
"path": "../../../react-ufo/atlaskit/afm-products/tsconfig.json"
|
|
153
156
|
},
|
|
@@ -184,9 +187,6 @@
|
|
|
184
187
|
{
|
|
185
188
|
"path": "../../../design-system/width-detector/afm-products/tsconfig.json"
|
|
186
189
|
},
|
|
187
|
-
{
|
|
188
|
-
"path": "../../../react-compiler/react-compiler-gating/afm-products/tsconfig.json"
|
|
189
|
-
},
|
|
190
190
|
{
|
|
191
191
|
"path": "../../../media/media-core/afm-products/tsconfig.json"
|
|
192
192
|
}
|
|
@@ -43,6 +43,7 @@ var TABLE_ACTION = exports.TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
43
43
|
TABLE_ACTION["ROW_OR_COLUMN_MOVED"] = "rowOrColumnMoved";
|
|
44
44
|
TABLE_ACTION["CHANGED_DISPLAY_MODE"] = "changedDisplayMode";
|
|
45
45
|
TABLE_ACTION["CHANGED_ALIGNMENT"] = "changedAlignment";
|
|
46
|
+
TABLE_ACTION["CHANGED_CELL_VERTICAL_ALIGNMENT"] = "changedVerticalAlignment";
|
|
46
47
|
// Temporary to track usage of CONFCLOUD-78239 bug
|
|
47
48
|
TABLE_ACTION["TABLE_CELL_BACKGROUND_FIXED"] = "tableCellBackgroundFixed";
|
|
48
49
|
TABLE_ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "116.12.
|
|
31
|
+
var packageVersion = "116.12.2";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "116.12.
|
|
27
|
+
var packageVersion = "116.12.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -17,7 +17,7 @@ var _focusTrap = _interopRequireDefault(require("focus-trap"));
|
|
|
17
17
|
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
18
18
|
var _reactDom = require("react-dom");
|
|
19
19
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
20
|
-
var
|
|
20
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
21
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
22
|
var _utils = require("./utils");
|
|
23
23
|
var _validatePosition = require("./validatePosition");
|
|
@@ -73,7 +73,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
73
73
|
returnFocusOnDeactivate: false
|
|
74
74
|
};
|
|
75
75
|
var trapConfig = typeof _this.props.focusTrap === 'boolean' ? defaultTrapConfig : _objectSpread(_objectSpread({}, defaultTrapConfig), _this.props.focusTrap);
|
|
76
|
-
_this.focusTrap = (0, _focusTrap.default)(popup, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) || (0,
|
|
76
|
+
_this.focusTrap = (0, _focusTrap.default)(popup, (0, _experiments.editorExperiment)('platform_editor_block_menu', true) || (0, _expValEquals.expValEquals)('platform_editor_layout_column_menu', 'isEnabled', true) ? trapConfig : defaultTrapConfig);
|
|
77
77
|
_this.focusTrap.activate();
|
|
78
78
|
}));
|
|
79
79
|
return _this;
|
|
@@ -9,7 +9,7 @@ exports.MenuArrowKeyNavigationProvider = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _browserApis = require("@atlaskit/browser-apis");
|
|
12
|
-
var
|
|
12
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
14
|
var hasEnabledItems = function hasEnabledItems(list) {
|
|
15
15
|
return list.some(function (item) {
|
|
@@ -42,7 +42,7 @@ var MenuArrowKeyNavigationProvider = exports.MenuArrowKeyNavigationProvider = fu
|
|
|
42
42
|
listenerTargetElement = _useState4[0];
|
|
43
43
|
var getCurrentIndex = (0, _react.useCallback)(function (list) {
|
|
44
44
|
var _getDocument;
|
|
45
|
-
if (!(0,
|
|
45
|
+
if (!(0, _expValEquals.expValEquals)('platform_editor_layout_column_menu', 'isEnabled', true)) {
|
|
46
46
|
return currentSelectedItemIndex;
|
|
47
47
|
}
|
|
48
48
|
var activeElement = (_getDocument = (0, _browserApis.getDocument)()) === null || _getDocument === void 0 ? void 0 : _getDocument.activeElement;
|
|
@@ -10,19 +10,14 @@ Object.defineProperty(exports, "getDatasourceType", {
|
|
|
10
10
|
return _getDatasourceType.getDatasourceType;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _getDatasourceType = require("./getDatasourceType");
|
|
15
14
|
var canRenderDatasource = exports.canRenderDatasource = function canRenderDatasource(datasourceId) {
|
|
16
15
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
17
16
|
var datasourceType = (0, _getDatasourceType.getDatasourceType)(datasourceId);
|
|
18
17
|
switch (datasourceType) {
|
|
19
18
|
case 'jira':
|
|
20
|
-
return true;
|
|
21
19
|
case 'assets':
|
|
22
|
-
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
return false;
|
|
20
|
+
return true;
|
|
26
21
|
default:
|
|
27
22
|
return defaultValue;
|
|
28
23
|
}
|
|
@@ -37,6 +37,7 @@ export let TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
37
37
|
TABLE_ACTION["ROW_OR_COLUMN_MOVED"] = "rowOrColumnMoved";
|
|
38
38
|
TABLE_ACTION["CHANGED_DISPLAY_MODE"] = "changedDisplayMode";
|
|
39
39
|
TABLE_ACTION["CHANGED_ALIGNMENT"] = "changedAlignment";
|
|
40
|
+
TABLE_ACTION["CHANGED_CELL_VERTICAL_ALIGNMENT"] = "changedVerticalAlignment";
|
|
40
41
|
// Temporary to track usage of CONFCLOUD-78239 bug
|
|
41
42
|
TABLE_ACTION["TABLE_CELL_BACKGROUND_FIXED"] = "tableCellBackgroundFixed";
|
|
42
43
|
TABLE_ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "116.12.
|
|
17
|
+
const packageVersion = "116.12.2";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "116.12.
|
|
17
|
+
const packageVersion = "116.12.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -5,7 +5,7 @@ import createFocusTrap from 'focus-trap';
|
|
|
5
5
|
import rafSchedule from 'raf-schd';
|
|
6
6
|
import { createPortal, flushSync } from 'react-dom';
|
|
7
7
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
8
|
-
import {
|
|
8
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
10
|
import { calculatePlacement, calculatePosition, findOverflowScrollParent } from './utils';
|
|
11
11
|
import { validatePosition } from './validatePosition';
|
|
@@ -53,7 +53,7 @@ export default class Popup extends React.Component {
|
|
|
53
53
|
...defaultTrapConfig,
|
|
54
54
|
...this.props.focusTrap
|
|
55
55
|
};
|
|
56
|
-
this.focusTrap = createFocusTrap(popup, editorExperiment('platform_editor_block_menu', true) ||
|
|
56
|
+
this.focusTrap = createFocusTrap(popup, editorExperiment('platform_editor_block_menu', true) || expValEquals('platform_editor_layout_column_menu', 'isEnabled', true) ? trapConfig : defaultTrapConfig);
|
|
57
57
|
this.focusTrap.activate();
|
|
58
58
|
}));
|
|
59
59
|
}
|
package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
2
2
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
3
|
-
import {
|
|
3
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
4
|
const hasEnabledItems = list => list.some(item => item.getAttribute('aria-disabled') !== 'true');
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -24,7 +24,7 @@ export const MenuArrowKeyNavigationProvider = ({
|
|
|
24
24
|
const [listenerTargetElement] = useState(element);
|
|
25
25
|
const getCurrentIndex = useCallback(list => {
|
|
26
26
|
var _getDocument;
|
|
27
|
-
if (!
|
|
27
|
+
if (!expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
|
|
28
28
|
return currentSelectedItemIndex;
|
|
29
29
|
}
|
|
30
30
|
const activeElement = (_getDocument = getDocument()) === null || _getDocument === void 0 ? void 0 : _getDocument.activeElement;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { getDatasourceType } from './getDatasourceType';
|
|
3
2
|
export const canRenderDatasource = (datasourceId, defaultValue = true) => {
|
|
4
3
|
const datasourceType = getDatasourceType(datasourceId);
|
|
5
4
|
switch (datasourceType) {
|
|
6
5
|
case 'jira':
|
|
7
|
-
return true;
|
|
8
6
|
case 'assets':
|
|
9
|
-
|
|
10
|
-
return true;
|
|
11
|
-
}
|
|
12
|
-
return false;
|
|
7
|
+
return true;
|
|
13
8
|
default:
|
|
14
9
|
return defaultValue;
|
|
15
10
|
}
|
|
@@ -37,6 +37,7 @@ export var TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
37
37
|
TABLE_ACTION["ROW_OR_COLUMN_MOVED"] = "rowOrColumnMoved";
|
|
38
38
|
TABLE_ACTION["CHANGED_DISPLAY_MODE"] = "changedDisplayMode";
|
|
39
39
|
TABLE_ACTION["CHANGED_ALIGNMENT"] = "changedAlignment";
|
|
40
|
+
TABLE_ACTION["CHANGED_CELL_VERTICAL_ALIGNMENT"] = "changedVerticalAlignment";
|
|
40
41
|
// Temporary to track usage of CONFCLOUD-78239 bug
|
|
41
42
|
TABLE_ACTION["TABLE_CELL_BACKGROUND_FIXED"] = "tableCellBackgroundFixed";
|
|
42
43
|
TABLE_ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "116.12.
|
|
23
|
+
var packageVersion = "116.12.2";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "116.12.
|
|
24
|
+
var packageVersion = "116.12.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -14,7 +14,7 @@ import createFocusTrap from 'focus-trap';
|
|
|
14
14
|
import rafSchedule from 'raf-schd';
|
|
15
15
|
import { createPortal, flushSync } from 'react-dom';
|
|
16
16
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
17
|
-
import {
|
|
17
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
19
|
import { calculatePlacement, calculatePosition as _calculatePosition, findOverflowScrollParent } from './utils';
|
|
20
20
|
import { validatePosition } from './validatePosition';
|
|
@@ -66,7 +66,7 @@ var Popup = /*#__PURE__*/function (_React$Component) {
|
|
|
66
66
|
returnFocusOnDeactivate: false
|
|
67
67
|
};
|
|
68
68
|
var trapConfig = typeof _this.props.focusTrap === 'boolean' ? defaultTrapConfig : _objectSpread(_objectSpread({}, defaultTrapConfig), _this.props.focusTrap);
|
|
69
|
-
_this.focusTrap = createFocusTrap(popup, editorExperiment('platform_editor_block_menu', true) ||
|
|
69
|
+
_this.focusTrap = createFocusTrap(popup, editorExperiment('platform_editor_block_menu', true) || expValEquals('platform_editor_layout_column_menu', 'isEnabled', true) ? trapConfig : defaultTrapConfig);
|
|
70
70
|
_this.focusTrap.activate();
|
|
71
71
|
}));
|
|
72
72
|
return _this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
3
3
|
import { getDocument } from '@atlaskit/browser-apis';
|
|
4
|
-
import {
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
5
|
var hasEnabledItems = function hasEnabledItems(list) {
|
|
6
6
|
return list.some(function (item) {
|
|
7
7
|
return item.getAttribute('aria-disabled') !== 'true';
|
|
@@ -33,7 +33,7 @@ export var MenuArrowKeyNavigationProvider = function MenuArrowKeyNavigationProvi
|
|
|
33
33
|
listenerTargetElement = _useState4[0];
|
|
34
34
|
var getCurrentIndex = useCallback(function (list) {
|
|
35
35
|
var _getDocument;
|
|
36
|
-
if (!
|
|
36
|
+
if (!expValEquals('platform_editor_layout_column_menu', 'isEnabled', true)) {
|
|
37
37
|
return currentSelectedItemIndex;
|
|
38
38
|
}
|
|
39
39
|
var activeElement = (_getDocument = getDocument()) === null || _getDocument === void 0 ? void 0 : _getDocument.activeElement;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { getDatasourceType } from './getDatasourceType';
|
|
3
2
|
export var canRenderDatasource = function canRenderDatasource(datasourceId) {
|
|
4
3
|
var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
5
4
|
var datasourceType = getDatasourceType(datasourceId);
|
|
6
5
|
switch (datasourceType) {
|
|
7
6
|
case 'jira':
|
|
8
|
-
return true;
|
|
9
7
|
case 'assets':
|
|
10
|
-
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
return false;
|
|
8
|
+
return true;
|
|
14
9
|
default:
|
|
15
10
|
return defaultValue;
|
|
16
11
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Valign } from '@atlaskit/adf-schema/layout-column';
|
|
1
2
|
import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
|
|
2
3
|
import type { EditorBreakpointKey } from '../../utils/analytics';
|
|
3
4
|
import type { ACTION_SUBJECT, INPUT_METHOD, ACTION_SUBJECT_ID } from './enums';
|
|
@@ -41,6 +42,7 @@ export declare enum TABLE_ACTION {
|
|
|
41
42
|
ROW_OR_COLUMN_MOVED = "rowOrColumnMoved",
|
|
42
43
|
CHANGED_DISPLAY_MODE = "changedDisplayMode",
|
|
43
44
|
CHANGED_ALIGNMENT = "changedAlignment",
|
|
45
|
+
CHANGED_CELL_VERTICAL_ALIGNMENT = "changedVerticalAlignment",
|
|
44
46
|
TABLE_CELL_BACKGROUND_FIXED = "tableCellBackgroundFixed",
|
|
45
47
|
TABLE_WIDTH_INFO = "tableWidthInformation",
|
|
46
48
|
TABLE_EDITOR_HEIGHT_INFO = "tableEditorHeightInformation",
|
|
@@ -130,6 +132,12 @@ type TableColorAEP = TableAEP<TABLE_ACTION.COLORED, {
|
|
|
130
132
|
} & {
|
|
131
133
|
cellColor: string;
|
|
132
134
|
} & AllCellInfo, undefined>;
|
|
135
|
+
type TableChangedCellVerticalAlignmentAEP = TableAEP<TABLE_ACTION.CHANGED_CELL_VERTICAL_ALIGNMENT, {
|
|
136
|
+
inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU;
|
|
137
|
+
previousValign: Valign | 'mixed';
|
|
138
|
+
updatedCount: number;
|
|
139
|
+
valign: Valign;
|
|
140
|
+
} & AllCellInfo, undefined>;
|
|
133
141
|
type TableToggleHeaderAEP = TableAEP<TABLE_ACTION.TOGGLED_NUMBER_COLUMN | TABLE_ACTION.TOGGLED_HEADER_ROW | TABLE_ACTION.TOGGLED_HEADER_COLUMN, {
|
|
134
142
|
newState: boolean;
|
|
135
143
|
} & TotalRowAndColCount, undefined>;
|
|
@@ -255,5 +263,5 @@ type TableFitToContentOnDemandAEP = TableAEP<TABLE_ACTION.FIT_TO_CONTENT_ON_DEMA
|
|
|
255
263
|
tableWidth: number;
|
|
256
264
|
totalColumnCount: number;
|
|
257
265
|
}, undefined>;
|
|
258
|
-
export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableDragMenuOpenedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP | TableBackgroundColorFixAEP | TableChangedAlignmentAEP | TableWidthInfoAEP | TableHeightInfoAEP | TableStickyHeaderEnabledAEP | TableFitToContentAutoConvertedAEP | TableFitToContentOnDemandAEP;
|
|
266
|
+
export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableChangedCellVerticalAlignmentAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableDragMenuOpenedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableChangedDisplayModeAEP | TableColumnResizedAEP | TableBackgroundColorFixAEP | TableChangedAlignmentAEP | TableWidthInfoAEP | TableHeightInfoAEP | TableStickyHeaderEnabledAEP | TableFitToContentAutoConvertedAEP | TableFitToContentOnDemandAEP;
|
|
259
267
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "116.
|
|
3
|
+
"version": "116.13.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"react-compiler": {
|
|
21
21
|
"enabled": true,
|
|
22
22
|
"gating": {
|
|
23
|
-
"source": "@
|
|
23
|
+
"source": "@atlaskit/react-compiler-gating",
|
|
24
24
|
"importSpecifierName": "isReactCompilerActivePlatform"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"@atlaskit/primitives": "^20.0.0",
|
|
72
72
|
"@atlaskit/profilecard": "^26.2.0",
|
|
73
73
|
"@atlaskit/prosemirror-history": "^1.0.0",
|
|
74
|
+
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
74
75
|
"@atlaskit/react-ufo": "^7.2.0",
|
|
75
76
|
"@atlaskit/section-message": "^9.1.0",
|
|
76
77
|
"@atlaskit/smart-card": "^45.4.0",
|
|
@@ -79,11 +80,10 @@
|
|
|
79
80
|
"@atlaskit/task-decision": "^21.2.0",
|
|
80
81
|
"@atlaskit/teams-app-config": "^2.0.0",
|
|
81
82
|
"@atlaskit/textfield": "^9.0.0",
|
|
82
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
83
|
+
"@atlaskit/tmp-editor-statsig": "^113.0.0",
|
|
83
84
|
"@atlaskit/tokens": "^15.0.0",
|
|
84
85
|
"@atlaskit/tooltip": "^23.0.0",
|
|
85
86
|
"@atlaskit/width-detector": "^6.0.0",
|
|
86
|
-
"@atlassian/react-compiler-gating": "^0.2.0",
|
|
87
87
|
"@babel/runtime": "^7.0.0",
|
|
88
88
|
"@compiled/react": "^0.20.0",
|
|
89
89
|
"@emotion/react": "^11.7.1",
|
|
@@ -163,9 +163,6 @@
|
|
|
163
163
|
"platform_editor_updated_dropdown_colors": {
|
|
164
164
|
"type": "boolean"
|
|
165
165
|
},
|
|
166
|
-
"linking_platform_datasource_assets_objects": {
|
|
167
|
-
"type": "boolean"
|
|
168
|
-
},
|
|
169
166
|
"editor_inline_comments_on_inline_nodes": {
|
|
170
167
|
"type": "boolean"
|
|
171
168
|
},
|