@atlaskit/editor-common 82.1.1 → 82.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,30 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 82.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#108446](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108446)
8
+ [`c2094d9cb4266`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c2094d9cb4266) -
9
+ [ux] EDF-844: Don't show tooltips in floating toolbar buttons if it is the same as the label that
10
+ is displayed - see content guidelines for best practices
11
+ (https://atlassian.design/components/tooltip/usage#content-guidelines)
12
+ - Updated dependencies
13
+
14
+ ## 82.2.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#108600](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108600)
19
+ [`74d240f6ce35b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/74d240f6ce35b) -
20
+ Added new i18n fields for the linking toolbar.
21
+
22
+ ### Patch Changes
23
+
24
+ - [#109596](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109596)
25
+ [`a229428301e3e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a229428301e3e) -
26
+ ED-23600: Added tableSortColumnDiscoverability FF in editor
27
+
3
28
  ## 82.1.1
4
29
 
5
30
  ### Patch Changes
@@ -21,6 +21,16 @@ var linkToolbarMessages = exports.linkToolbarMessages = (0, _reactIntlNext.defin
21
21
  defaultMessage: 'Unlink',
22
22
  description: 'Removes the hyperlink but keeps your text.'
23
23
  },
24
+ editDatasourceStandalone: {
25
+ id: 'fabric.editor.editDatasourceStandalone',
26
+ defaultMessage: 'Edit',
27
+ description: 'A standalone edit button to edit the datasource via a config modal'
28
+ },
29
+ editDatasourceStandaloneTooltip: {
30
+ id: 'fabric.editor.editDatasourceStandaloneTooltip',
31
+ defaultMessage: 'Edit search query',
32
+ description: 'A standalone edit button tooltip to hint at editing the datasource via a config modal'
33
+ },
24
34
  editLink: {
25
35
  id: 'fabric.editor.editLink',
26
36
  defaultMessage: 'Edit link',
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "82.1.1";
20
+ var packageVersion = "82.2.1";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "82.1.1";
23
+ var packageVersion = "82.2.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -50,8 +50,10 @@ var _default = exports.default = function _default(_ref) {
50
50
  var ariaCheckedWithFF = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaChecked : undefined;
51
51
  var ariaPressed = isRadioButton ? undefined : isButtonPressed;
52
52
  var ariaPressedWithFF = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaPressed : isButtonPressed;
53
- return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
54
- content: tooltipContent || title,
53
+ return /*#__PURE__*/_react.default.createElement(_tooltip.default
54
+ // Only fallback to title for tooltip if title is not shown
55
+ , {
56
+ content: tooltipContent || (iconOnly ? title : undefined),
55
57
  hideTooltipOnClick: hideTooltipOnClick,
56
58
  position: "top"
57
59
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -15,6 +15,16 @@ export const linkToolbarMessages = defineMessages({
15
15
  defaultMessage: 'Unlink',
16
16
  description: 'Removes the hyperlink but keeps your text.'
17
17
  },
18
+ editDatasourceStandalone: {
19
+ id: 'fabric.editor.editDatasourceStandalone',
20
+ defaultMessage: 'Edit',
21
+ description: 'A standalone edit button to edit the datasource via a config modal'
22
+ },
23
+ editDatasourceStandaloneTooltip: {
24
+ id: 'fabric.editor.editDatasourceStandaloneTooltip',
25
+ defaultMessage: 'Edit search query',
26
+ description: 'A standalone edit button tooltip to hint at editing the datasource via a config modal'
27
+ },
18
28
  editLink: {
19
29
  id: 'fabric.editor.editLink',
20
30
  defaultMessage: 'Edit link',
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "82.1.1";
4
+ const packageVersion = "82.2.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "82.1.1";
10
+ const packageVersion = "82.2.1";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -37,8 +37,10 @@ export default (({
37
37
  const ariaCheckedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaChecked : undefined;
38
38
  const ariaPressed = isRadioButton ? undefined : isButtonPressed;
39
39
  const ariaPressedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaPressed : isButtonPressed;
40
- return /*#__PURE__*/React.createElement(Tooltip, {
41
- content: tooltipContent || title,
40
+ return /*#__PURE__*/React.createElement(Tooltip
41
+ // Only fallback to title for tooltip if title is not shown
42
+ , {
43
+ content: tooltipContent || (iconOnly ? title : undefined),
42
44
  hideTooltipOnClick: hideTooltipOnClick,
43
45
  position: "top"
44
46
  }, /*#__PURE__*/React.createElement("div", {
@@ -15,6 +15,16 @@ export var linkToolbarMessages = defineMessages({
15
15
  defaultMessage: 'Unlink',
16
16
  description: 'Removes the hyperlink but keeps your text.'
17
17
  },
18
+ editDatasourceStandalone: {
19
+ id: 'fabric.editor.editDatasourceStandalone',
20
+ defaultMessage: 'Edit',
21
+ description: 'A standalone edit button to edit the datasource via a config modal'
22
+ },
23
+ editDatasourceStandaloneTooltip: {
24
+ id: 'fabric.editor.editDatasourceStandaloneTooltip',
25
+ defaultMessage: 'Edit search query',
26
+ description: 'A standalone edit button tooltip to hint at editing the datasource via a config modal'
27
+ },
18
28
  editLink: {
19
29
  id: 'fabric.editor.editLink',
20
30
  defaultMessage: 'Edit link',
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "82.1.1";
10
+ var packageVersion = "82.2.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
15
15
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
16
16
  import Layer from '../Layer';
17
17
  var packageName = "@atlaskit/editor-common";
18
- var packageVersion = "82.1.1";
18
+ var packageVersion = "82.2.1";
19
19
  var halfFocusRing = 1;
20
20
  var dropOffset = '0, 8';
21
21
  var DropList = /*#__PURE__*/function (_Component) {
@@ -43,8 +43,10 @@ export default (function (_ref) {
43
43
  var ariaCheckedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaChecked : undefined;
44
44
  var ariaPressed = isRadioButton ? undefined : isButtonPressed;
45
45
  var ariaPressedWithFF = getBooleanFF('platform.editor.a11y-floating-toolbar-markup_vexmo') ? ariaPressed : isButtonPressed;
46
- return /*#__PURE__*/React.createElement(Tooltip, {
47
- content: tooltipContent || title,
46
+ return /*#__PURE__*/React.createElement(Tooltip
47
+ // Only fallback to title for tooltip if title is not shown
48
+ , {
49
+ content: tooltipContent || (iconOnly ? title : undefined),
48
50
  hideTooltipOnClick: hideTooltipOnClick,
49
51
  position: "top"
50
52
  }, /*#__PURE__*/React.createElement("div", {
@@ -14,6 +14,16 @@ export declare const linkToolbarMessages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
+ editDatasourceStandalone: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ editDatasourceStandaloneTooltip: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
17
27
  editLink: {
18
28
  id: string;
19
29
  defaultMessage: string;
@@ -229,6 +229,14 @@ export type FeatureFlags = {
229
229
  * @default false
230
230
  */
231
231
  tableDuplicateCellColouring?: boolean;
232
+ /**
233
+ * @description
234
+ * Enables moving the table sorting options in the column context menu to the top of the menu
235
+ *
236
+ * @see https://product-fabric.atlassian.net/browse/ED-23600
237
+ * @default false
238
+ */
239
+ tableSortColumnDiscoverability?: boolean;
232
240
  /**
233
241
  * @description
234
242
  * Enables commenting on media
@@ -14,6 +14,16 @@ export declare const linkToolbarMessages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
+ editDatasourceStandalone: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
22
+ editDatasourceStandaloneTooltip: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
17
27
  editLink: {
18
28
  id: string;
19
29
  defaultMessage: string;
@@ -229,6 +229,14 @@ export type FeatureFlags = {
229
229
  * @default false
230
230
  */
231
231
  tableDuplicateCellColouring?: boolean;
232
+ /**
233
+ * @description
234
+ * Enables moving the table sorting options in the column context menu to the top of the menu
235
+ *
236
+ * @see https://product-fabric.atlassian.net/browse/ED-23600
237
+ * @default false
238
+ */
239
+ tableSortColumnDiscoverability?: boolean;
232
240
  /**
233
241
  * @description
234
242
  * Enables commenting on media
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "82.1.1",
3
+ "version": "82.2.1",
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/"
@@ -123,7 +123,7 @@
123
123
  "@atlaskit/media-file-preview": "^0.5.0",
124
124
  "@atlaskit/media-picker": "^66.4.0",
125
125
  "@atlaskit/media-ui": "^25.10.0",
126
- "@atlaskit/media-viewer": "48.6.1",
126
+ "@atlaskit/media-viewer": "48.6.2",
127
127
  "@atlaskit/mention": "^23.2.0",
128
128
  "@atlaskit/menu": "^2.4.0",
129
129
  "@atlaskit/platform-feature-flags": "^0.2.0",