@atlaskit/editor-common 110.36.5 → 110.36.7

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,21 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.36.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2cbe9332dcaad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2cbe9332dcaad) -
8
+ Added isStreamingEnded attribute in discard and dismissed analytics event.
9
+ - Updated dependencies
10
+
11
+ ## 110.36.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [`55920a92e882a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/55920a92e882a) -
16
+ tsignores added for help-center local consumpton removed
17
+ - Updated dependencies
18
+
3
19
  ## 110.36.5
4
20
 
5
21
  ### Patch Changes
@@ -28,7 +28,6 @@ function addLinkMetadata(initialSelection, tr, metadata) {
28
28
  return tr;
29
29
  }
30
30
  function getLinkMetadataFromTransaction(tr) {
31
- // @ts-ignore - Workaround for help-center local consumption
32
31
  return tr.steps.reduce(function (metadata, step) {
33
32
  if (!(step instanceof _steps.LinkMetaStep)) {
34
33
  return metadata;
@@ -95,8 +95,6 @@ function usePluginStateEffect(injectionApi, plugins, effect) {
95
95
  return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, "".concat(String(pluginName), "State"), injectionApi === null || injectionApi === void 0 ? void 0 : injectionApi[pluginName]));
96
96
  }, {});
97
97
  }, [injectionApi, pluginNames]);
98
-
99
- // @ts-ignore - Workaround for help-center local consumption
100
98
  usePluginStateEffectInternal(namedExternalPlugins, effect, options);
101
99
  }
102
100
  function usePluginStateEffectInternal(externalPlugins, effect) {
@@ -19,7 +19,6 @@ var _safePlugin = require("../safe-plugin");
19
19
  function keymap(bindings) {
20
20
  return new _safePlugin.SafePlugin({
21
21
  props: {
22
- // @ts-ignore - Workaround for help-center local consumption
23
22
  handleKeyDown: function handleKeyDown(view, event) {
24
23
  var name = (0, _w3cKeyname.keyName)(event);
25
24
  var keyboardEvent = event;
@@ -327,6 +327,4 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
327
327
  (0, _defineProperty2.default)(RecentLink, "defaultProps", {
328
328
  limit: DEFAULT_ITEMS_LIMIT
329
329
  });
330
- var _default = exports.default = (0, _withActivityProvider.default)(
331
- // @ts-ignore - Workaround for help-center local consumption (prop type incompatibility)
332
- (0, _reactIntlNext.injectIntl)(RecentLink));
330
+ var _default = exports.default = (0, _withActivityProvider.default)((0, _reactIntlNext.injectIntl)(RecentLink));
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  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); }
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 = "110.36.4";
22
+ var packageVersion = "0.0.0-development";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -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 = "110.36.4";
27
+ var packageVersion = "0.0.0-development";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -20,10 +20,7 @@ var _editorCoreUtils = require("./editor-core-utils");
20
20
  var getStepRange = exports.getStepRange = function getStepRange(transaction) {
21
21
  var from = -1;
22
22
  var to = -1;
23
-
24
- // @ts-ignore - Workaround for help-center local consumption
25
23
  transaction.mapping.maps.forEach(function (stepMap, index) {
26
- // @ts-ignore - Workaround for help-center local consumption
27
24
  stepMap.forEach(function (oldStart, oldEnd) {
28
25
  var newStart = transaction.mapping.slice(index).map(oldStart, -1);
29
26
  var newEnd = transaction.mapping.slice(index).map(oldEnd);
@@ -64,13 +64,9 @@ function pluginFactory(pluginKey, reducer) {
64
64
  return {
65
65
  createPluginState: function createPluginState(dispatch, initialState) {
66
66
  return {
67
- // @ts-ignore - Workaround for help-center local consumption
68
-
69
67
  init: function init(_, state) {
70
68
  return isFunction(initialState) ? initialState(state) : initialState;
71
69
  },
72
- // @ts-ignore - Workaround for help-center local consumption
73
-
74
70
  apply: function apply(tr, _pluginState, _oldEditorState, newEditorState) {
75
71
  var oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
76
72
  var newPluginState = oldPluginState;
@@ -18,7 +18,6 @@ export function addLinkMetadata(initialSelection, tr, metadata) {
18
18
  return tr;
19
19
  }
20
20
  export function getLinkMetadataFromTransaction(tr) {
21
- // @ts-ignore - Workaround for help-center local consumption
22
21
  return tr.steps.reduce((metadata, step) => {
23
22
  if (!(step instanceof LinkMetaStep)) {
24
23
  return metadata;
@@ -79,8 +79,6 @@ export function usePluginStateEffect(injectionApi, plugins, effect, options = {}
79
79
  ...acc,
80
80
  [`${String(pluginName)}State`]: injectionApi === null || injectionApi === void 0 ? void 0 : injectionApi[pluginName]
81
81
  }), {}), [injectionApi, pluginNames]);
82
-
83
- // @ts-ignore - Workaround for help-center local consumption
84
82
  usePluginStateEffectInternal(namedExternalPlugins, effect, options);
85
83
  }
86
84
  function usePluginStateEffectInternal(externalPlugins, effect, options = {}) {
@@ -14,7 +14,6 @@ import { SafePlugin } from '../safe-plugin';
14
14
  export function keymap(bindings) {
15
15
  return new SafePlugin({
16
16
  props: {
17
- // @ts-ignore - Workaround for help-center local consumption
18
17
  handleKeyDown(view, event) {
19
18
  const name = keyName(event);
20
19
  let keyboardEvent = event;
@@ -220,6 +220,4 @@ class RecentLink extends React.Component {
220
220
  _defineProperty(RecentLink, "defaultProps", {
221
221
  limit: DEFAULT_ITEMS_LIMIT
222
222
  });
223
- export default withActivityProvider(
224
- // @ts-ignore - Workaround for help-center local consumption (prop type incompatibility)
225
- injectIntl(RecentLink));
223
+ export default withActivityProvider(injectIntl(RecentLink));
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "110.36.4";
7
+ const packageVersion = "0.0.0-development";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "110.36.4";
17
+ const packageVersion = "0.0.0-development";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -5,10 +5,7 @@ import { isEmptyParagraph } from './editor-core-utils';
5
5
  export const getStepRange = transaction => {
6
6
  let from = -1;
7
7
  let to = -1;
8
-
9
- // @ts-ignore - Workaround for help-center local consumption
10
8
  transaction.mapping.maps.forEach((stepMap, index) => {
11
- // @ts-ignore - Workaround for help-center local consumption
12
9
  stepMap.forEach((oldStart, oldEnd) => {
13
10
  const newStart = transaction.mapping.slice(index).map(oldStart, -1);
14
11
  const newEnd = transaction.mapping.slice(index).map(oldEnd);
@@ -59,11 +59,7 @@ export function pluginFactory(pluginKey, reducer, options = {}) {
59
59
  return {
60
60
  createPluginState(dispatch, initialState) {
61
61
  return {
62
- // @ts-ignore - Workaround for help-center local consumption
63
-
64
62
  init: (_, state) => isFunction(initialState) ? initialState(state) : initialState,
65
- // @ts-ignore - Workaround for help-center local consumption
66
-
67
63
  apply: (tr, _pluginState, _oldEditorState, newEditorState) => {
68
64
  const oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
69
65
  let newPluginState = oldPluginState;
@@ -19,7 +19,6 @@ export function addLinkMetadata(initialSelection, tr, metadata) {
19
19
  return tr;
20
20
  }
21
21
  export function getLinkMetadataFromTransaction(tr) {
22
- // @ts-ignore - Workaround for help-center local consumption
23
22
  return tr.steps.reduce(function (metadata, step) {
24
23
  if (!(step instanceof LinkMetaStep)) {
25
24
  return metadata;
@@ -89,8 +89,6 @@ export function usePluginStateEffect(injectionApi, plugins, effect) {
89
89
  return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, "".concat(String(pluginName), "State"), injectionApi === null || injectionApi === void 0 ? void 0 : injectionApi[pluginName]));
90
90
  }, {});
91
91
  }, [injectionApi, pluginNames]);
92
-
93
- // @ts-ignore - Workaround for help-center local consumption
94
92
  usePluginStateEffectInternal(namedExternalPlugins, effect, options);
95
93
  }
96
94
  function usePluginStateEffectInternal(externalPlugins, effect) {
@@ -14,7 +14,6 @@ import { SafePlugin } from '../safe-plugin';
14
14
  export function keymap(bindings) {
15
15
  return new SafePlugin({
16
16
  props: {
17
- // @ts-ignore - Workaround for help-center local consumption
18
17
  handleKeyDown: function handleKeyDown(view, event) {
19
18
  var name = keyName(event);
20
19
  var keyboardEvent = event;
@@ -320,6 +320,4 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
320
320
  _defineProperty(RecentLink, "defaultProps", {
321
321
  limit: DEFAULT_ITEMS_LIMIT
322
322
  });
323
- export default withActivityProvider(
324
- // @ts-ignore - Workaround for help-center local consumption (prop type incompatibility)
325
- injectIntl(RecentLink));
323
+ export default withActivityProvider(injectIntl(RecentLink));
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "110.36.4";
13
+ var packageVersion = "0.0.0-development";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "110.36.4";
24
+ var packageVersion = "0.0.0-development";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -5,10 +5,7 @@ import { isEmptyParagraph } from './editor-core-utils';
5
5
  export var getStepRange = function getStepRange(transaction) {
6
6
  var from = -1;
7
7
  var to = -1;
8
-
9
- // @ts-ignore - Workaround for help-center local consumption
10
8
  transaction.mapping.maps.forEach(function (stepMap, index) {
11
- // @ts-ignore - Workaround for help-center local consumption
12
9
  stepMap.forEach(function (oldStart, oldEnd) {
13
10
  var newStart = transaction.mapping.slice(index).map(oldStart, -1);
14
11
  var newEnd = transaction.mapping.slice(index).map(oldEnd);
@@ -58,13 +58,9 @@ export function pluginFactory(pluginKey, reducer) {
58
58
  return {
59
59
  createPluginState: function createPluginState(dispatch, initialState) {
60
60
  return {
61
- // @ts-ignore - Workaround for help-center local consumption
62
-
63
61
  init: function init(_, state) {
64
62
  return isFunction(initialState) ? initialState(state) : initialState;
65
63
  },
66
- // @ts-ignore - Workaround for help-center local consumption
67
-
68
64
  apply: function apply(tr, _pluginState, _oldEditorState, newEditorState) {
69
65
  var oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
70
66
  var newPluginState = oldPluginState;
@@ -53,4 +53,4 @@ export { type TelepointerClickPayload } from './types/telepointer-events';
53
53
  export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './types/ncs-session-step-events';
54
54
  export type { BlockMenuEventPayload } from './types/block-menu-events';
55
55
  export type { BreakoutEventPayload, BreakoutSupportedNodes } from './types/breakout-events';
56
- export type { RendererSyncBlockEventPayload, SyncBlockEventPayload } from './types/sync-block-events';
56
+ export type { RendererSyncBlockEventPayload, SyncBlockEventPayload, } from './types/sync-block-events';
@@ -10,6 +10,11 @@ export type AIUnifiedCommonAttributes = {
10
10
  aiInteractionID: string;
11
11
  invokedFrom?: string;
12
12
  isAIFeature: 1;
13
+ /**
14
+ * Remove below flag when AIFC is fully rolled out in Jira, only required for old experience in Jira.
15
+ * Because in AFIC, if dismissed event is fired, it means the streaming has not ended.
16
+ */
17
+ isStreamingEnded?: boolean;
13
18
  /**
14
19
  * Nudge metrics will be used passed in analytics events.
15
20
  * It is currently only set when "Improve writing" is triggered from the
@@ -53,4 +53,4 @@ export { type TelepointerClickPayload } from './types/telepointer-events';
53
53
  export { type NcsSessionStepEventAEP, type NcsSessionStepMetrics, } from './types/ncs-session-step-events';
54
54
  export type { BlockMenuEventPayload } from './types/block-menu-events';
55
55
  export type { BreakoutEventPayload, BreakoutSupportedNodes } from './types/breakout-events';
56
- export type { RendererSyncBlockEventPayload, SyncBlockEventPayload } from './types/sync-block-events';
56
+ export type { RendererSyncBlockEventPayload, SyncBlockEventPayload, } from './types/sync-block-events';
@@ -10,6 +10,11 @@ export type AIUnifiedCommonAttributes = {
10
10
  aiInteractionID: string;
11
11
  invokedFrom?: string;
12
12
  isAIFeature: 1;
13
+ /**
14
+ * Remove below flag when AIFC is fully rolled out in Jira, only required for old experience in Jira.
15
+ * Because in AFIC, if dismissed event is fired, it means the streaming has not ended.
16
+ */
17
+ isStreamingEnded?: boolean;
13
18
  /**
14
19
  * Nudge metrics will be used passed in analytics events.
15
20
  * It is currently only set when "Improve writing" is triggered from the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.36.5",
3
+ "version": "110.36.7",
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,14 +74,14 @@
74
74
  "@atlaskit/prosemirror-history": "^0.2.0",
75
75
  "@atlaskit/react-ufo": "^4.15.0",
76
76
  "@atlaskit/section-message": "^8.9.0",
77
- "@atlaskit/smart-card": "^43.11.0",
77
+ "@atlaskit/smart-card": "^43.12.0",
78
78
  "@atlaskit/smart-user-picker": "^8.4.0",
79
79
  "@atlaskit/spinner": "^19.0.0",
80
80
  "@atlaskit/status": "^3.0.0",
81
81
  "@atlaskit/task-decision": "^19.2.0",
82
82
  "@atlaskit/textfield": "^8.1.0",
83
83
  "@atlaskit/theme": "^21.0.0",
84
- "@atlaskit/tmp-editor-statsig": "^14.1.0",
84
+ "@atlaskit/tmp-editor-statsig": "^14.3.0",
85
85
  "@atlaskit/tokens": "^8.4.0",
86
86
  "@atlaskit/tooltip": "^20.10.0",
87
87
  "@atlaskit/width-detector": "^5.0.0",