@atlaskit/editor-common 127.0.0 → 127.1.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 127.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`457c77d8f6992`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/457c77d8f6992) -
8
+ Behind `platform-dst-top-layer-tooltip`: tooltips whose content changes on press (for example
9
+ "Copy" to "Copied!") stay open to show the new content. `@atlaskit/editor-common` floating toolbar
10
+ buttons and `@atlaskit/smart-card` stack-item actions add an optional
11
+ `hasNewContentOnTriggerClick` prop.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 127.0.0
4
18
 
5
19
  ### Major Changes
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
27
27
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
28
28
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
29
29
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
30
- var packageVersion = "126.4.4";
30
+ var packageVersion = "127.0.0";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -139,7 +139,8 @@ var SortingIcon = function SortingIcon(_ref) {
139
139
  return (0, _react.jsx)(_Tooltip.default, {
140
140
  delay: 0,
141
141
  content: content,
142
- position: "top"
142
+ position: "top",
143
+ hasNewContentOnTriggerClick: true
143
144
  }, (0, _react.jsx)("div", {
144
145
  css: [buttonStyles, (0, _expValEquals.expValEquals)('confluence_live_doc_table_sort_bugfix', 'isEnabled', true) && sortButtonElevatedStyles]
145
146
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -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 = "126.4.4";
27
+ var packageVersion = "127.0.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -49,6 +49,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
49
49
  interactionName = _ref.interactionName,
50
50
  _ref$hideTooltipOnCli = _ref.hideTooltipOnClick,
51
51
  hideTooltipOnClick = _ref$hideTooltipOnCli === void 0 ? true : _ref$hideTooltipOnCli,
52
+ hasNewContentOnTriggerClick = _ref.hasNewContentOnTriggerClick,
52
53
  ariaHasPopup = _ref.ariaHasPopup,
53
54
  tabIndex = _ref.tabIndex,
54
55
  areaControls = _ref.areaControls,
@@ -82,6 +83,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
82
83
  content: tooltipContent || (iconOnly ? title : undefined),
83
84
  component: tooltipStyle,
84
85
  hideTooltipOnClick: hideTooltipOnClick,
86
+ hasNewContentOnTriggerClick: hasNewContentOnTriggerClick,
85
87
  position: "top"
86
88
  }, /*#__PURE__*/_react.default.createElement("div", {
87
89
  onMouseEnter: (0, _expValEquals.expValEquals)('editor_a11y__enghealth-46814_fy26', 'isEnabled', true) ? undefined : onMouseEnter,
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
13
13
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
14
14
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
15
15
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
16
- const packageVersion = "126.4.4";
16
+ const packageVersion = "127.0.0";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -172,7 +172,8 @@ const SortingIcon = ({
172
172
  return jsx(Tooltip, {
173
173
  delay: 0,
174
174
  content: content,
175
- position: "top"
175
+ position: "top",
176
+ hasNewContentOnTriggerClick: true
176
177
  }, jsx("div", {
177
178
  css: [buttonStyles, expValEquals('confluence_live_doc_table_sort_bugfix', 'isEnabled', true) && sortButtonElevatedStyles]
178
179
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags/fg';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "126.4.4";
17
+ const packageVersion = "127.0.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -32,6 +32,7 @@ const FloatingToolbarButton = ({
32
32
  testId,
33
33
  interactionName,
34
34
  hideTooltipOnClick = true,
35
+ hasNewContentOnTriggerClick,
35
36
  ariaHasPopup,
36
37
  tabIndex,
37
38
  areaControls,
@@ -64,6 +65,7 @@ const FloatingToolbarButton = ({
64
65
  content: tooltipContent || (iconOnly ? title : undefined),
65
66
  component: tooltipStyle,
66
67
  hideTooltipOnClick: hideTooltipOnClick,
68
+ hasNewContentOnTriggerClick: hasNewContentOnTriggerClick,
67
69
  position: "top"
68
70
  }, /*#__PURE__*/React.createElement("div", {
69
71
  onMouseEnter: expValEquals('editor_a11y__enghealth-46814_fy26', 'isEnabled', true) ? undefined : onMouseEnter,
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
19
19
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "126.4.4";
22
+ var packageVersion = "127.0.0";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -128,7 +128,8 @@ var SortingIcon = function SortingIcon(_ref) {
128
128
  return jsx(Tooltip, {
129
129
  delay: 0,
130
130
  content: content,
131
- position: "top"
131
+ position: "top",
132
+ hasNewContentOnTriggerClick: true
132
133
  }, jsx("div", {
133
134
  css: [buttonStyles, expValEquals('confluence_live_doc_table_sort_bugfix', 'isEnabled', true) && sortButtonElevatedStyles]
134
135
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags/fg';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "126.4.4";
24
+ var packageVersion = "127.0.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -40,6 +40,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
40
40
  interactionName = _ref.interactionName,
41
41
  _ref$hideTooltipOnCli = _ref.hideTooltipOnClick,
42
42
  hideTooltipOnClick = _ref$hideTooltipOnCli === void 0 ? true : _ref$hideTooltipOnCli,
43
+ hasNewContentOnTriggerClick = _ref.hasNewContentOnTriggerClick,
43
44
  ariaHasPopup = _ref.ariaHasPopup,
44
45
  tabIndex = _ref.tabIndex,
45
46
  areaControls = _ref.areaControls,
@@ -73,6 +74,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
73
74
  content: tooltipContent || (iconOnly ? title : undefined),
74
75
  component: tooltipStyle,
75
76
  hideTooltipOnClick: hideTooltipOnClick,
77
+ hasNewContentOnTriggerClick: hasNewContentOnTriggerClick,
76
78
  position: "top"
77
79
  }, /*#__PURE__*/React.createElement("div", {
78
80
  onMouseEnter: expValEquals('editor_a11y__enghealth-46814_fy26', 'isEnabled', true) ? undefined : onMouseEnter,
@@ -164,6 +164,8 @@ export type FloatingToolbarButton<T extends object> = {
164
164
  /** If true, the component will have pulse onboarding effect around it. */
165
165
  pulse?: boolean;
166
166
  selected?: boolean;
167
+ /** Keep the tooltip open when the button is pressed. Set it when a press changes the tooltip content. */
168
+ hasNewContentOnTriggerClick?: boolean;
167
169
  showTitle?: boolean;
168
170
  supportsViewMode?: boolean;
169
171
  tabIndex?: number | null | undefined;
@@ -27,6 +27,8 @@ export interface Props {
27
27
  /** If true, the component will have pulse onboarding effect around it. */
28
28
  pulse?: boolean;
29
29
  selected?: boolean;
30
+ /** Keep the tooltip open when the button is pressed. Set it when a press changes the tooltip content. */
31
+ hasNewContentOnTriggerClick?: boolean;
30
32
  tabIndex?: number | null | undefined;
31
33
  target?: string;
32
34
  testId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "127.0.0",
3
+ "version": "127.1.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/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/codemod-utils": "^5.1.0",
42
42
  "@atlaskit/css": "^1.1.0",
43
43
  "@atlaskit/custom-steps": "^1.1.0",
44
- "@atlaskit/dropdown-menu": "^20.0.0",
44
+ "@atlaskit/dropdown-menu": "^21.0.0",
45
45
  "@atlaskit/editor-json-transformer": "^10.0.0",
46
46
  "@atlaskit/editor-palette": "^3.5.0",
47
47
  "@atlaskit/editor-prosemirror": "^9.0.0",
@@ -79,7 +79,7 @@
79
79
  "@atlaskit/react-compiler-gating": "^0.2.0",
80
80
  "@atlaskit/react-ufo": "^8.0.0",
81
81
  "@atlaskit/section-message": "^10.2.0",
82
- "@atlaskit/smart-card": "^46.2.0",
82
+ "@atlaskit/smart-card": "^46.3.0",
83
83
  "@atlaskit/smart-user-picker": "^12.1.0",
84
84
  "@atlaskit/spinner": "^20.4.0",
85
85
  "@atlaskit/task-decision": "^21.11.0",
@@ -87,7 +87,7 @@
87
87
  "@atlaskit/textfield": "^10.2.0",
88
88
  "@atlaskit/tmp-editor-statsig": "^219.0.0",
89
89
  "@atlaskit/tokens": "^20.1.0",
90
- "@atlaskit/tooltip": "^24.3.0",
90
+ "@atlaskit/tooltip": "^24.4.0",
91
91
  "@atlaskit/width-detector": "^7.2.0",
92
92
  "@babel/runtime": "^7.0.0",
93
93
  "@compiled/react": "^1.0.2",