@atlaskit/editor-common 87.3.3 → 87.3.5

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,22 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 87.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#126974](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126974)
8
+ [`8730c454c41f7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8730c454c41f7) -
9
+ [ux] [ED-24386] Clean up FF platform.editor.review-text-highlighting-styling
10
+
11
+ ## 87.3.4
12
+
13
+ ### Patch Changes
14
+
15
+ - [#126818](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126818)
16
+ [`197b047fbe6e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/197b047fbe6e6) -
17
+ ED-24245 - Adding analytics TRACK event that is triggered when the user clicks the toggle word
18
+ wrap button on the code block floating toolbar.
19
+
3
20
  ## 87.3.3
4
21
 
5
22
  ### Patch Changes
@@ -145,6 +145,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
145
145
  ACTION["UPDATE_PARAMETERS"] = "updateParameters";
146
146
  ACTION["GET_CHILDERN"] = "getChildern";
147
147
  ACTION["MOVED"] = "moved";
148
+ ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
148
149
  return ACTION;
149
150
  }({});
150
151
  var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -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 = "87.3.3";
20
+ var packageVersion = "87.3.5";
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
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.backgroundColorStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
9
 
11
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
12
11
  var backgroundColorStyles = exports.backgroundColorStyles = function backgroundColorStyles() {
13
- return (0, _platformFeatureFlags.getBooleanFF)('platform.editor.review-text-highlighting-styling') ? (0, _react.css)({
12
+ return (0, _react.css)({
14
13
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
15
14
  '.fabric-background-color-mark': {
16
15
  backgroundColor: 'var(--custom-palette-color, inherit)',
@@ -31,20 +30,5 @@ var backgroundColorStyles = exports.backgroundColorStyles = function backgroundC
31
30
  '.fabric-background-color-mark .ak-editor-annotation': {
32
31
  backgroundColor: 'unset'
33
32
  }
34
- }) : (0, _react.css)({
35
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
36
- '.fabric-background-color-mark': {
37
- backgroundColor: 'var(--custom-palette-color, inherit)'
38
- },
39
- // Don't show text highlight styling when there is a hyperlink
40
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
41
- 'a .fabric-background-color-mark': {
42
- backgroundColor: 'unset'
43
- },
44
- // Don't show text highlight styling when there is an inline comment
45
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
46
- '.fabric-background-color-mark .ak-editor-annotation': {
47
- backgroundColor: 'unset'
48
- }
49
33
  });
50
34
  };
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "87.3.3";
26
+ var packageVersion = "87.3.5";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  var DropList = /*#__PURE__*/function (_Component) {
@@ -139,6 +139,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
139
139
  ACTION["UPDATE_PARAMETERS"] = "updateParameters";
140
140
  ACTION["GET_CHILDERN"] = "getChildern";
141
141
  ACTION["MOVED"] = "moved";
142
+ ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
142
143
  return ACTION;
143
144
  }({});
144
145
  export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -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 = "87.3.3";
4
+ const packageVersion = "87.3.5";
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,10 +1,9 @@
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 { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
 
5
4
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
6
5
  export const backgroundColorStyles = () => {
7
- return getBooleanFF('platform.editor.review-text-highlighting-styling') ? css({
6
+ return css({
8
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
9
8
  '.fabric-background-color-mark': {
10
9
  backgroundColor: 'var(--custom-palette-color, inherit)',
@@ -25,20 +24,5 @@ export const backgroundColorStyles = () => {
25
24
  '.fabric-background-color-mark .ak-editor-annotation': {
26
25
  backgroundColor: 'unset'
27
26
  }
28
- }) : css({
29
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
30
- '.fabric-background-color-mark': {
31
- backgroundColor: 'var(--custom-palette-color, inherit)'
32
- },
33
- // Don't show text highlight styling when there is a hyperlink
34
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
35
- 'a .fabric-background-color-mark': {
36
- backgroundColor: 'unset'
37
- },
38
- // Don't show text highlight styling when there is an inline comment
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
40
- '.fabric-background-color-mark .ak-editor-annotation': {
41
- backgroundColor: 'unset'
42
- }
43
27
  });
44
28
  };
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
12
12
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
13
13
  import Layer from '../Layer';
14
14
  const packageName = "@atlaskit/editor-common";
15
- const packageVersion = "87.3.3";
15
+ const packageVersion = "87.3.5";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -139,6 +139,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
139
139
  ACTION["UPDATE_PARAMETERS"] = "updateParameters";
140
140
  ACTION["GET_CHILDERN"] = "getChildern";
141
141
  ACTION["MOVED"] = "moved";
142
+ ACTION["TOGGLE_CODE_BLOCK_WRAP"] = "toggleCodeBlockWrap";
142
143
  return ACTION;
143
144
  }({});
144
145
  export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -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 = "87.3.3";
10
+ var packageVersion = "87.3.5";
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,10 +1,9 @@
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 { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
 
5
4
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
6
5
  export var backgroundColorStyles = function backgroundColorStyles() {
7
- return getBooleanFF('platform.editor.review-text-highlighting-styling') ? css({
6
+ return css({
8
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
9
8
  '.fabric-background-color-mark': {
10
9
  backgroundColor: 'var(--custom-palette-color, inherit)',
@@ -25,20 +24,5 @@ export var backgroundColorStyles = function backgroundColorStyles() {
25
24
  '.fabric-background-color-mark .ak-editor-annotation': {
26
25
  backgroundColor: 'unset'
27
26
  }
28
- }) : css({
29
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
30
- '.fabric-background-color-mark': {
31
- backgroundColor: 'var(--custom-palette-color, inherit)'
32
- },
33
- // Don't show text highlight styling when there is a hyperlink
34
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
35
- 'a .fabric-background-color-mark': {
36
- backgroundColor: 'unset'
37
- },
38
- // Don't show text highlight styling when there is an inline comment
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
40
- '.fabric-background-color-mark .ak-editor-annotation': {
41
- backgroundColor: 'unset'
42
- }
43
27
  });
44
28
  };
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
20
20
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "87.3.3";
23
+ var packageVersion = "87.3.5";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -145,7 +145,8 @@ export declare enum ACTION {
145
145
  REMOVE_CHILD = "removeChild",
146
146
  UPDATE_PARAMETERS = "updateParameters",
147
147
  GET_CHILDERN = "getChildern",
148
- MOVED = "moved"
148
+ MOVED = "moved",
149
+ TOGGLE_CODE_BLOCK_WRAP = "toggleCodeBlockWrap"
149
150
  }
150
151
  export declare enum INPUT_METHOD {
151
152
  ASCII = "ascii",
@@ -176,5 +176,10 @@ type CollabStepsTrackerPayloadAEP = OperationalAEP<ACTION.STEPS_TRACKED, ACTION_
176
176
  steps: unknown[];
177
177
  }>;
178
178
  type HeadingAnchorLinkButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.HEADING_ANCHOR_LINK, undefined>;
179
- export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP;
179
+ type CodeBlockWordWrapToggleAEP = TrackAEP<ACTION.TOGGLE_CODE_BLOCK_WRAP, ACTION_SUBJECT.CODE_BLOCK, undefined, {
180
+ platform: PLATFORMS;
181
+ mode: MODE;
182
+ wordWrapEnabled: boolean;
183
+ }, undefined>;
184
+ export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | CodeBlockWordWrapToggleAEP;
180
185
  export {};
@@ -145,7 +145,8 @@ export declare enum ACTION {
145
145
  REMOVE_CHILD = "removeChild",
146
146
  UPDATE_PARAMETERS = "updateParameters",
147
147
  GET_CHILDERN = "getChildern",
148
- MOVED = "moved"
148
+ MOVED = "moved",
149
+ TOGGLE_CODE_BLOCK_WRAP = "toggleCodeBlockWrap"
149
150
  }
150
151
  export declare enum INPUT_METHOD {
151
152
  ASCII = "ascii",
@@ -176,5 +176,10 @@ type CollabStepsTrackerPayloadAEP = OperationalAEP<ACTION.STEPS_TRACKED, ACTION_
176
176
  steps: unknown[];
177
177
  }>;
178
178
  type HeadingAnchorLinkButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.HEADING_ANCHOR_LINK, undefined>;
179
- export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP;
179
+ type CodeBlockWordWrapToggleAEP = TrackAEP<ACTION.TOGGLE_CODE_BLOCK_WRAP, ACTION_SUBJECT.CODE_BLOCK, undefined, {
180
+ platform: PLATFORMS;
181
+ mode: MODE;
182
+ wordWrapEnabled: boolean;
183
+ }, undefined>;
184
+ export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ColorPickerAEP | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | UfoSessionCompletePayloadAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | CodeBlockWordWrapToggleAEP;
180
185
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "87.3.3",
3
+ "version": "87.3.5",
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/"
@@ -140,7 +140,7 @@
140
140
  "@atlaskit/task-decision": "^17.10.0",
141
141
  "@atlaskit/textfield": "^6.4.0",
142
142
  "@atlaskit/theme": "^12.11.0",
143
- "@atlaskit/tokens": "^1.56.0",
143
+ "@atlaskit/tokens": "^1.57.0",
144
144
  "@atlaskit/tooltip": "^18.5.0",
145
145
  "@atlaskit/ufo": "^0.2.0",
146
146
  "@atlaskit/width-detector": "^4.2.0",
@@ -254,9 +254,6 @@
254
254
  "platform_editor_a11y_table_context_menu": {
255
255
  "type": "boolean"
256
256
  },
257
- "platform.editor.review-text-highlighting-styling": {
258
- "type": "boolean"
259
- },
260
257
  "react_18_color_picker_concurrent_mode": {
261
258
  "type": "boolean"
262
259
  },