@atlaskit/editor-common 134.6.1 → 134.7.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 +25 -0
- package/dist/cjs/analytics/types/ai-suggestions-events.js +2 -0
- package/dist/cjs/experiences/Experience.js +2 -3
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +1 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Layer/index.js +3 -1
- package/dist/cjs/ui/Popup/index.js +2 -1
- package/dist/cjs/vanilla-tooltip/index.js +2 -2
- package/dist/es2019/analytics/types/ai-suggestions-events.js +2 -0
- package/dist/es2019/experiences/Experience.js +2 -3
- package/dist/es2019/link/LinkPicker/EditorLinkPicker/index.js +2 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Layer/index.js +3 -0
- package/dist/es2019/ui/Popup/index.js +3 -0
- package/dist/es2019/vanilla-tooltip/index.js +2 -1
- package/dist/esm/analytics/types/ai-suggestions-events.js +2 -0
- package/dist/esm/experiences/Experience.js +2 -3
- package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +2 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Layer/index.js +3 -0
- package/dist/esm/ui/Popup/index.js +3 -0
- package/dist/esm/vanilla-tooltip/index.js +2 -1
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +3 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 134.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 134.7.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`3e09cc46e3481`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e09cc46e3481) -
|
|
14
|
+
Add the `CONTEXTUAL_NUDGE` AI suggestions entry point so analytics can tell reviews started from
|
|
15
|
+
the contextual nudge's call to action apart from other entry points.
|
|
16
|
+
|
|
17
|
+
## 134.6.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`7b848418c36db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b848418c36db) -
|
|
22
|
+
Clean up duplicate_actionsubjectid_to_attributes so sampled editor experience events always
|
|
23
|
+
include actionSubjectId in their attributes.
|
|
24
|
+
- [`268f46899e7a7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/268f46899e7a7) -
|
|
25
|
+
Clean up feature gate `platform_editor_use_vanilla_components_patch_2`
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 134.6.1
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -22,6 +22,8 @@ var AiSuggestionsEntryPointValue = exports.AiSuggestionsEntryPointValue = /*#__P
|
|
|
22
22
|
AiSuggestionsEntryPointValue["SUGGESTIONS_PANEL_MOUNT"] = "suggestionsPanelMount";
|
|
23
23
|
/** The "Review" button on the follow-up card after the last suggestion is actioned. */
|
|
24
24
|
AiSuggestionsEntryPointValue["FOLLOW_UP_CARD"] = "followUpCard";
|
|
25
|
+
/** The call to action on the contextual nudge that points at the Review suggestions button. */
|
|
26
|
+
AiSuggestionsEntryPointValue["CONTEXTUAL_NUDGE"] = "contextualNudge";
|
|
25
27
|
return AiSuggestionsEntryPointValue;
|
|
26
28
|
}({});
|
|
27
29
|
var AiSuggestionsRightRailEntryPointValue = exports.AiSuggestionsRightRailEntryPointValue = /*#__PURE__*/function (AiSuggestionsRightRailEntryPointValue) {
|
|
@@ -8,7 +8,6 @@ exports.Experience = void 0;
|
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
var _dynamicConfigBooleanValue = require("@atlaskit/tmp-editor-statsig/dynamic-config-boolean-value");
|
|
12
11
|
var _analytics = require("../analytics");
|
|
13
12
|
var _consts = require("./consts");
|
|
14
13
|
var _experienceState = require("./experience-state");
|
|
@@ -176,9 +175,9 @@ var Experience = exports.Experience = /*#__PURE__*/function () {
|
|
|
176
175
|
actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
|
|
177
176
|
actionSubjectId: this.actionSubjectId,
|
|
178
177
|
eventType: _analytics.EVENT_TYPE.OPERATIONAL,
|
|
179
|
-
attributes:
|
|
178
|
+
attributes: _objectSpread(_objectSpread({}, attributes), {}, {
|
|
180
179
|
actionSubjectId: this.actionSubjectId
|
|
181
|
-
})
|
|
180
|
+
})
|
|
182
181
|
};
|
|
183
182
|
this.dispatchAnalyticsEvent(experienceSampledEvent);
|
|
184
183
|
}
|
|
@@ -16,7 +16,7 @@ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-ex
|
|
|
16
16
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
17
|
var _utils = require("../../../utils");
|
|
18
18
|
var _useEscapeClickaway = require("./useEscapeClickaway");
|
|
19
|
-
var _excluded = ["view", "onCancel", "invokeMethod", "editorAppearance", "onClose", "onEscapeCallback", "onClickAwayCallback"];
|
|
19
|
+
var _excluded = ["view", "onCancel", "invokeMethod", "editorAppearance", "onClose", "onEscapeCallback", "onClickAwayCallback"]; // eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
20
20
|
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); }
|
|
21
21
|
var PREVENT_SCROLL = {
|
|
22
22
|
preventScroll: true
|
|
@@ -55,6 +55,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
55
55
|
* @jsxRuntime classic
|
|
56
56
|
* @jsx jsx
|
|
57
57
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
58
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
58
59
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
59
60
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
60
61
|
/**
|
|
@@ -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 = "134.
|
|
30
|
+
var packageVersion = "134.7.0";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// Ignored via go/ees007
|
|
@@ -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 = "134.
|
|
26
|
+
var packageVersion = "134.7.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -23,7 +23,9 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
23
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
25
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
26
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-line
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line @atlaskit/design-system/no-third-party-layering -- existing usage from before this rule was added
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-layering -- existing usage from before this rule was added
|
|
28
|
+
// eslint-disable-line import/extensions
|
|
27
29
|
var defaultState = {
|
|
28
30
|
hasExtractedStyles: false,
|
|
29
31
|
// We set these default offsets to prevent a flash of popper content in the wrong position
|
|
@@ -23,7 +23,8 @@ var _validatePosition = require("./validatePosition");
|
|
|
23
23
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
24
24
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
25
25
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
26
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
27
28
|
// Ignored via go/ees005
|
|
28
29
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
29
30
|
var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
@@ -15,7 +15,7 @@ var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
|
15
15
|
var _unsafeImperative = require("@atlaskit/popper/unsafe-imperative");
|
|
16
16
|
var _error = require("../monitoring/error");
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @atlaskit/design-system/no-third-party-layering -- existing usage from before this rule was added
|
|
19
19
|
var startingOffset = {
|
|
20
20
|
name: 'offset',
|
|
21
21
|
options: {
|
|
@@ -198,7 +198,7 @@ var VanillaTooltip = exports.VanillaTooltip = /*#__PURE__*/function () {
|
|
|
198
198
|
|
|
199
199
|
// Resets `isDisplayed` when the browser closes the popover without going through `hide()`
|
|
200
200
|
// (e.g. light-dismissal). Prevents the guard in `show()` from becoming stale.
|
|
201
|
-
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_use_vanilla_components')
|
|
201
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_use_vanilla_components')) {
|
|
202
202
|
this.listeners.push((0, _bindEventListener.bind)(tooltip, {
|
|
203
203
|
type: 'toggle',
|
|
204
204
|
listener: function listener(event) {
|
|
@@ -16,6 +16,8 @@ export let AiSuggestionsEntryPointValue = /*#__PURE__*/function (AiSuggestionsEn
|
|
|
16
16
|
AiSuggestionsEntryPointValue["SUGGESTIONS_PANEL_MOUNT"] = "suggestionsPanelMount";
|
|
17
17
|
/** The "Review" button on the follow-up card after the last suggestion is actioned. */
|
|
18
18
|
AiSuggestionsEntryPointValue["FOLLOW_UP_CARD"] = "followUpCard";
|
|
19
|
+
/** The call to action on the contextual nudge that points at the Review suggestions button. */
|
|
20
|
+
AiSuggestionsEntryPointValue["CONTEXTUAL_NUDGE"] = "contextualNudge";
|
|
19
21
|
return AiSuggestionsEntryPointValue;
|
|
20
22
|
}({});
|
|
21
23
|
export let AiSuggestionsRightRailEntryPointValue = /*#__PURE__*/function (AiSuggestionsRightRailEntryPointValue) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { dynamicConfigBooleanValue } from '@atlaskit/tmp-editor-statsig/dynamic-config-boolean-value';
|
|
3
2
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
4
3
|
import { DEFAULT_EXPERIENCE_SAMPLE_RATE, EXPERIENCE_ABORT_REASON } from './consts';
|
|
5
4
|
import { canTransition } from './experience-state';
|
|
@@ -159,10 +158,10 @@ export class Experience {
|
|
|
159
158
|
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
160
159
|
actionSubjectId: this.actionSubjectId,
|
|
161
160
|
eventType: EVENT_TYPE.OPERATIONAL,
|
|
162
|
-
attributes:
|
|
161
|
+
attributes: {
|
|
163
162
|
...attributes,
|
|
164
163
|
actionSubjectId: this.actionSubjectId
|
|
165
|
-
}
|
|
164
|
+
}
|
|
166
165
|
};
|
|
167
166
|
this.dispatchAnalyticsEvent(experienceSampledEvent);
|
|
168
167
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
3
5
|
import FocusLock from 'react-focus-lock';
|
|
4
6
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
5
7
|
import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
@@ -11,6 +11,7 @@ import { flushSync } from 'react-dom';
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import debounce from 'lodash/debounce';
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
14
15
|
import FocusLock from 'react-focus-lock';
|
|
15
16
|
import { injectIntl } from 'react-intl';
|
|
16
17
|
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
@@ -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 = "134.
|
|
16
|
+
const packageVersion = "134.7.0";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -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 = "134.
|
|
16
|
+
const packageVersion = "134.7.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { Component, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-layering -- existing usage from before this rule was added
|
|
3
4
|
import Popper from 'popper.js';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-layering -- existing usage from before this rule was added
|
|
6
|
+
|
|
4
7
|
// eslint-disable-line import/extensions
|
|
5
8
|
import rafSchedule from 'raf-schd';
|
|
6
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -2,6 +2,9 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { createPortal, flushSync } from 'react-dom';
|
|
4
4
|
import { bind } from 'bind-event-listener';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
5
8
|
import createFocusTrap from 'focus-trap';
|
|
6
9
|
import rafSchedule from 'raf-schd';
|
|
7
10
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-layering -- existing usage from before this rule was added
|
|
2
3
|
import { createPopper as createLegacyPopper } from '@popperjs/core';
|
|
3
4
|
import { bind } from 'bind-event-listener';
|
|
4
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -181,7 +182,7 @@ export class VanillaTooltip {
|
|
|
181
182
|
|
|
182
183
|
// Resets `isDisplayed` when the browser closes the popover without going through `hide()`
|
|
183
184
|
// (e.g. light-dismissal). Prevents the guard in `show()` from becoming stale.
|
|
184
|
-
if (isExperimentEnabled('platform_editor_use_vanilla_components')
|
|
185
|
+
if (isExperimentEnabled('platform_editor_use_vanilla_components')) {
|
|
185
186
|
this.listeners.push(bind(tooltip, {
|
|
186
187
|
type: 'toggle',
|
|
187
188
|
listener: event => {
|
|
@@ -16,6 +16,8 @@ export var AiSuggestionsEntryPointValue = /*#__PURE__*/function (AiSuggestionsEn
|
|
|
16
16
|
AiSuggestionsEntryPointValue["SUGGESTIONS_PANEL_MOUNT"] = "suggestionsPanelMount";
|
|
17
17
|
/** The "Review" button on the follow-up card after the last suggestion is actioned. */
|
|
18
18
|
AiSuggestionsEntryPointValue["FOLLOW_UP_CARD"] = "followUpCard";
|
|
19
|
+
/** The call to action on the contextual nudge that points at the Review suggestions button. */
|
|
20
|
+
AiSuggestionsEntryPointValue["CONTEXTUAL_NUDGE"] = "contextualNudge";
|
|
19
21
|
return AiSuggestionsEntryPointValue;
|
|
20
22
|
}({});
|
|
21
23
|
export var AiSuggestionsRightRailEntryPointValue = /*#__PURE__*/function (AiSuggestionsRightRailEntryPointValue) {
|
|
@@ -3,7 +3,6 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
import { dynamicConfigBooleanValue } from '@atlaskit/tmp-editor-statsig/dynamic-config-boolean-value';
|
|
7
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
8
7
|
import { DEFAULT_EXPERIENCE_SAMPLE_RATE, EXPERIENCE_ABORT_REASON } from './consts';
|
|
9
8
|
import { canTransition } from './experience-state';
|
|
@@ -169,9 +168,9 @@ export var Experience = /*#__PURE__*/function () {
|
|
|
169
168
|
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
170
169
|
actionSubjectId: this.actionSubjectId,
|
|
171
170
|
eventType: EVENT_TYPE.OPERATIONAL,
|
|
172
|
-
attributes:
|
|
171
|
+
attributes: _objectSpread(_objectSpread({}, attributes), {}, {
|
|
173
172
|
actionSubjectId: this.actionSubjectId
|
|
174
|
-
})
|
|
173
|
+
})
|
|
175
174
|
};
|
|
176
175
|
this.dispatchAnalyticsEvent(experienceSampledEvent);
|
|
177
176
|
}
|
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["view", "onCancel", "invokeMethod", "editorAppearance", "onClose", "onEscapeCallback", "onClickAwayCallback"];
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
5
7
|
import FocusLock from 'react-focus-lock';
|
|
6
8
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
7
9
|
import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
@@ -22,6 +22,7 @@ import { flushSync } from 'react-dom';
|
|
|
22
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
23
23
|
import { css, jsx } from '@emotion/react';
|
|
24
24
|
import debounce from 'lodash/debounce';
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
25
26
|
import FocusLock from 'react-focus-lock';
|
|
26
27
|
import { injectIntl } from 'react-intl';
|
|
27
28
|
import { isSafeUrl } from '@atlaskit/adf-schema/is-safe-url';
|
|
@@ -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 = "134.
|
|
22
|
+
var packageVersion = "134.7.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "134.
|
|
23
|
+
var packageVersion = "134.7.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -10,7 +10,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { Component, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-layering -- existing usage from before this rule was added
|
|
13
14
|
import Popper from 'popper.js';
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-layering -- existing usage from before this rule was added
|
|
16
|
+
|
|
14
17
|
// eslint-disable-line import/extensions
|
|
15
18
|
import rafSchedule from 'raf-schd';
|
|
16
19
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -11,6 +11,9 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { createPortal, flushSync } from 'react-dom';
|
|
13
13
|
import { bind } from 'bind-event-listener';
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-focus-traps -- existing usage from before this rule was added
|
|
14
17
|
import createFocusTrap from 'focus-trap';
|
|
15
18
|
import rafSchedule from 'raf-schd';
|
|
16
19
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles/constants';
|
|
@@ -3,6 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
// eslint-disable-next-line @atlaskit/design-system/no-third-party-layering -- existing usage from before this rule was added
|
|
6
7
|
import { createPopper as createLegacyPopper } from '@popperjs/core';
|
|
7
8
|
import { bind } from 'bind-event-listener';
|
|
8
9
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -191,7 +192,7 @@ export var VanillaTooltip = /*#__PURE__*/function () {
|
|
|
191
192
|
|
|
192
193
|
// Resets `isDisplayed` when the browser closes the popover without going through `hide()`
|
|
193
194
|
// (e.g. light-dismissal). Prevents the guard in `show()` from becoming stale.
|
|
194
|
-
if (isExperimentEnabled('platform_editor_use_vanilla_components')
|
|
195
|
+
if (isExperimentEnabled('platform_editor_use_vanilla_components')) {
|
|
195
196
|
this.listeners.push(bind(tooltip, {
|
|
196
197
|
type: 'toggle',
|
|
197
198
|
listener: function listener(event) {
|
|
@@ -17,7 +17,9 @@ export declare enum AiSuggestionsEntryPointValue {
|
|
|
17
17
|
*/
|
|
18
18
|
SUGGESTIONS_PANEL_MOUNT = "suggestionsPanelMount",
|
|
19
19
|
/** The "Review" button on the follow-up card after the last suggestion is actioned. */
|
|
20
|
-
FOLLOW_UP_CARD = "followUpCard"
|
|
20
|
+
FOLLOW_UP_CARD = "followUpCard",
|
|
21
|
+
/** The call to action on the contextual nudge that points at the Review suggestions button. */
|
|
22
|
+
CONTEXTUAL_NUDGE = "contextualNudge"
|
|
21
23
|
}
|
|
22
24
|
export type AiSuggestionsEntryPoint = `${AiSuggestionsEntryPointValue}`;
|
|
23
25
|
export type AiSuggestionInteractionPoint = 'sidebar' | 'card' | 'statusBar';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "134.
|
|
3
|
+
"version": "134.7.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/"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
75
75
|
"@atlaskit/popper": "^9.4.0",
|
|
76
76
|
"@atlaskit/primitives": "^22.6.0",
|
|
77
|
-
"@atlaskit/profilecard": "^27.
|
|
77
|
+
"@atlaskit/profilecard": "^27.5.0",
|
|
78
78
|
"@atlaskit/prosemirror-history": "^1.3.0",
|
|
79
79
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
80
80
|
"@atlaskit/react-ufo": "^8.4.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/task-decision": "^21.14.0",
|
|
86
86
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
87
87
|
"@atlaskit/textfield": "^10.3.0",
|
|
88
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
88
|
+
"@atlaskit/tmp-editor-statsig": "^254.0.0",
|
|
89
89
|
"@atlaskit/tokens": "^20.9.0",
|
|
90
90
|
"@atlaskit/tooltip": "^24.4.0",
|
|
91
91
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -220,9 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"platform_editor_ai_selection_local_ids": {
|
|
222
222
|
"type": "boolean"
|
|
223
|
-
},
|
|
224
|
-
"platform_editor_use_vanilla_components_patch_2": {
|
|
225
|
-
"type": "boolean"
|
|
226
223
|
}
|
|
227
224
|
},
|
|
228
225
|
"platform-experiments": {
|