@atlaskit/editor-common 95.8.1 → 95.9.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,34 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 95.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#170673](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/170673)
8
+ [`09f6aa8666f9b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/09f6aa8666f9b) -
9
+ [ux] [ED-25899] Update layout breakpoint to 630px in renderer and corresponding breakpoints in
10
+ editor
11
+ - Updated dependencies
12
+
13
+ ## 95.9.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#167675](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/167675)
18
+ [`9c0185ccd82d3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9c0185ccd82d3) -
19
+ [ux] Adds inputMethod as an optional argument in changeColor plugin action and enables text
20
+ coloroption in the Selection toolbar.
21
+
22
+ ### Patch Changes
23
+
24
+ - [#165609](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165609)
25
+ [`b29c0cc4fef46`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b29c0cc4fef46) -
26
+ Cleaned up media card perf observer feature flag
27
+ - [#170579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/170579)
28
+ [`f9d3dc2a8b76d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f9d3dc2a8b76d) -
29
+ [ux] Adds lists and indentation items to the selection toolbar
30
+ - Updated dependencies
31
+
3
32
  ## 95.8.1
4
33
 
5
34
  ### Patch Changes
@@ -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 && {}.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 = "95.8.1";
20
+ var packageVersion = "95.9.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
@@ -51,11 +51,12 @@ var columnLayoutResponsiveSharedStyle = exports.columnLayoutResponsiveSharedStyl
51
51
  containerName: 'layout-area'
52
52
  }
53
53
  });
54
+ var LAYOUT_BREAKPOINT_RENDERER = 629;
54
55
  var columnLayoutResponsiveRendererStyles = exports.columnLayoutResponsiveRendererStyles = (0, _react.css)({
55
56
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
56
57
  '.layout-section-container': {
57
58
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
58
- '[data-layout-section]': (0, _defineProperty2.default)({}, "@container layout-area (max-width:".concat(_editorSharedStyles.layoutBreakpointWidth.MEDIUM - 1, "px)"), {
59
+ '[data-layout-section]': (0, _defineProperty2.default)({}, "@container layout-area (max-width:".concat(LAYOUT_BREAKPOINT_RENDERER, "px)"), {
59
60
  flexDirection: 'column'
60
61
  })
61
62
  }
@@ -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 = "95.8.1";
27
+ var packageVersion = "95.9.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -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 = "95.8.1";
4
+ const packageVersion = "95.9.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
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- import { gridMediumMaxWidth, layoutBreakpointWidth } from '@atlaskit/editor-shared-styles';
3
+ import { gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
4
4
  const columnLayoutSharedStyle = css({
5
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
6
6
  '[data-layout-section]': {
@@ -44,13 +44,14 @@ const columnLayoutResponsiveSharedStyle = css({
44
44
  containerName: 'layout-area'
45
45
  }
46
46
  });
47
+ const LAYOUT_BREAKPOINT_RENDERER = 629;
47
48
  const columnLayoutResponsiveRendererStyles = css({
48
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
49
50
  '.layout-section-container': {
50
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
51
52
  '[data-layout-section]': {
52
53
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
53
- [`@container layout-area (max-width:${layoutBreakpointWidth.MEDIUM - 1}px)`]: {
54
+ [`@container layout-area (max-width:${LAYOUT_BREAKPOINT_RENDERER}px)`]: {
54
55
  flexDirection: 'column'
55
56
  }
56
57
  }
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "95.8.1";
16
+ const packageVersion = "95.9.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  class DropList extends Component {
@@ -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 = "95.8.1";
10
+ var packageVersion = "95.9.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
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
3
  import { css } from '@emotion/react';
4
- import { gridMediumMaxWidth, layoutBreakpointWidth } from '@atlaskit/editor-shared-styles';
4
+ import { gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
5
5
  var columnLayoutSharedStyle = css({
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
7
7
  '[data-layout-section]': _defineProperty({
@@ -43,11 +43,12 @@ var columnLayoutResponsiveSharedStyle = css({
43
43
  containerName: 'layout-area'
44
44
  }
45
45
  });
46
+ var LAYOUT_BREAKPOINT_RENDERER = 629;
46
47
  var columnLayoutResponsiveRendererStyles = css({
47
48
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
48
49
  '.layout-section-container': {
49
50
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
50
- '[data-layout-section]': _defineProperty({}, "@container layout-area (max-width:".concat(layoutBreakpointWidth.MEDIUM - 1, "px)"), {
51
+ '[data-layout-section]': _defineProperty({}, "@container layout-area (max-width:".concat(LAYOUT_BREAKPOINT_RENDERER, "px)"), {
51
52
  flexDirection: 'column'
52
53
  })
53
54
  }
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
21
21
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "95.8.1";
24
+ var packageVersion = "95.9.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var DropList = /*#__PURE__*/function (_Component) {
@@ -20,7 +20,7 @@ type FormatSuperSubAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_SUPER | ACTION_SUBJE
20
20
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING;
21
21
  }>;
22
22
  type FormatIndentationAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_INDENT, {
23
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD;
23
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
24
24
  direction: INDENT_DIRECTION.INDENT | INDENT_DIRECTION.OUTDENT;
25
25
  previousIndentationLevel: number;
26
26
  newIndentLevel: number;
@@ -41,9 +41,10 @@ type FormatClearAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_CLEAR, {
41
41
  type FormatColorAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_COLOR, {
42
42
  newColor: string;
43
43
  previousColor: string;
44
+ inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
44
45
  }>;
45
46
  type FormatListAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER | ACTION_SUBJECT_ID.FORMAT_LIST_BULLET, {
46
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT;
47
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
47
48
  }>;
48
49
  export type FormatEventPayload = FormatBasicAEP | FormatSuperSubAEP | FormatIndentationAEP | FormatHeadingAEP | FormatBlockQuoteAEP | FormatClearAEP | FormatColorAEP | FormatListAEP;
49
50
  export {};
@@ -44,7 +44,7 @@ type ListItemJoinedBackwardsAEP = ListItemJoinedFormatAEP<{
44
44
  }>;
45
45
  type ListConvertedTrackAEP = TrackAEP<ACTION.CONVERTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER | ACTION_SUBJECT_ID.TEXT, {
46
46
  transformedFrom: ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER;
47
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD;
47
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
48
48
  } & CommonListAnalyticsAttributes, undefined>;
49
49
  type ListIndentedAEP = TrackAEP<ACTION.INDENTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER, {
50
50
  inputMethod: INPUT_METHOD;
@@ -53,7 +53,7 @@ type ListOutdentedAEP = TrackAEP<ACTION.OUTDENTED, ACTION_SUBJECT.LIST, ACTION_S
53
53
  inputMethod: INPUT_METHOD;
54
54
  } & CommonListAnalyticsAttributes & RestartListsAttributesForListOutdented, undefined>;
55
55
  type ListInsertedAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER, {
56
- inputMethod: INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT;
56
+ inputMethod: INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
57
57
  listStartNumber?: number;
58
58
  joinScenario?: JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST;
59
59
  }, undefined, NonRequiredAttributes>;
@@ -20,7 +20,7 @@ type FormatSuperSubAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_SUPER | ACTION_SUBJE
20
20
  inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING;
21
21
  }>;
22
22
  type FormatIndentationAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_INDENT, {
23
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD;
23
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
24
24
  direction: INDENT_DIRECTION.INDENT | INDENT_DIRECTION.OUTDENT;
25
25
  previousIndentationLevel: number;
26
26
  newIndentLevel: number;
@@ -41,9 +41,10 @@ type FormatClearAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_CLEAR, {
41
41
  type FormatColorAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_COLOR, {
42
42
  newColor: string;
43
43
  previousColor: string;
44
+ inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
44
45
  }>;
45
46
  type FormatListAEP = FormatAEP<ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER | ACTION_SUBJECT_ID.FORMAT_LIST_BULLET, {
46
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT;
47
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
47
48
  }>;
48
49
  export type FormatEventPayload = FormatBasicAEP | FormatSuperSubAEP | FormatIndentationAEP | FormatHeadingAEP | FormatBlockQuoteAEP | FormatClearAEP | FormatColorAEP | FormatListAEP;
49
50
  export {};
@@ -44,7 +44,7 @@ type ListItemJoinedBackwardsAEP = ListItemJoinedFormatAEP<{
44
44
  }>;
45
45
  type ListConvertedTrackAEP = TrackAEP<ACTION.CONVERTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER | ACTION_SUBJECT_ID.TEXT, {
46
46
  transformedFrom: ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER;
47
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD;
47
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB;
48
48
  } & CommonListAnalyticsAttributes, undefined>;
49
49
  type ListIndentedAEP = TrackAEP<ACTION.INDENTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER, {
50
50
  inputMethod: INPUT_METHOD;
@@ -53,7 +53,7 @@ type ListOutdentedAEP = TrackAEP<ACTION.OUTDENTED, ACTION_SUBJECT.LIST, ACTION_S
53
53
  inputMethod: INPUT_METHOD;
54
54
  } & CommonListAnalyticsAttributes & RestartListsAttributesForListOutdented, undefined>;
55
55
  type ListInsertedAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.LIST, ACTION_SUBJECT_ID.FORMAT_LIST_BULLET | ACTION_SUBJECT_ID.FORMAT_LIST_NUMBER, {
56
- inputMethod: INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT;
56
+ inputMethod: INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FLOATING_TB;
57
57
  listStartNumber?: number;
58
58
  joinScenario?: JOIN_SCENARIOS_WHEN_TYPING_TO_INSERT_LIST;
59
59
  }, undefined, NonRequiredAttributes>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "95.8.1",
3
+ "version": "95.9.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/"
@@ -128,13 +128,13 @@
128
128
  "@atlaskit/editor-shared-styles": "^3.2.0",
129
129
  "@atlaskit/editor-tables": "^2.8.0",
130
130
  "@atlaskit/emoji": "^67.11.0",
131
- "@atlaskit/icon": "^22.26.0",
131
+ "@atlaskit/icon": "^22.27.0",
132
132
  "@atlaskit/icon-object": "^6.7.0",
133
133
  "@atlaskit/link-datasource": "^3.13.0",
134
134
  "@atlaskit/link-picker": "^1.47.0",
135
- "@atlaskit/media-card": "^78.14.0",
136
- "@atlaskit/media-client": "^28.3.0",
137
- "@atlaskit/media-client-react": "^2.3.0",
135
+ "@atlaskit/media-card": "^78.15.0",
136
+ "@atlaskit/media-client": "^28.4.0",
137
+ "@atlaskit/media-client-react": "^2.4.0",
138
138
  "@atlaskit/media-common": "^11.7.0",
139
139
  "@atlaskit/media-file-preview": "^0.9.0",
140
140
  "@atlaskit/media-picker": "^67.0.0",
@@ -148,13 +148,13 @@
148
148
  "@atlaskit/primitives": "^13.3.0",
149
149
  "@atlaskit/profilecard": "^20.12.0",
150
150
  "@atlaskit/section-message": "^6.7.0",
151
- "@atlaskit/smart-card": "^32.0.0",
151
+ "@atlaskit/smart-card": "^32.1.0",
152
152
  "@atlaskit/smart-user-picker": "^6.11.0",
153
153
  "@atlaskit/spinner": "^16.3.0",
154
154
  "@atlaskit/task-decision": "^17.11.0",
155
155
  "@atlaskit/textfield": "^6.6.0",
156
156
  "@atlaskit/tmp-editor-statsig": "^2.21.0",
157
- "@atlaskit/tokens": "^2.3.0",
157
+ "@atlaskit/tokens": "^2.4.0",
158
158
  "@atlaskit/tooltip": "^18.9.0",
159
159
  "@atlaskit/width-detector": "^4.3.0",
160
160
  "@babel/runtime": "^7.0.0",