@atlaskit/editor-common 110.34.2 → 110.34.4

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
+ ## 110.34.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4d676bbdb3ce6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d676bbdb3ce6) -
8
+ ts-ignore added temporarily to unblock local consumption for help-center, will be removed once
9
+ project refs are setup
10
+ - Updated dependencies
11
+
12
+ ## 110.34.3
13
+
14
+ ### Patch Changes
15
+
16
+ - [`7c690600403b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7c690600403b0) -
17
+ EDITOR-2419 fire UnifiedAnalytics Actioned analytics event upon AI content being kept
18
+ - Updated dependencies
19
+
3
20
  ## 110.34.2
4
21
 
5
22
  ### Patch Changes
@@ -28,6 +28,7 @@ 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
31
32
  return tr.steps.reduce(function (metadata, step) {
32
33
  if (!(step instanceof _steps.LinkMetaStep)) {
33
34
  return metadata;
@@ -95,6 +95,8 @@ 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
98
100
  usePluginStateEffectInternal(namedExternalPlugins, effect, options);
99
101
  }
100
102
  function usePluginStateEffectInternal(externalPlugins, effect) {
@@ -19,6 +19,7 @@ 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
22
23
  handleKeyDown: function handleKeyDown(view, event) {
23
24
  var name = (0, _w3cKeyname.keyName)(event);
24
25
  var keyboardEvent = event;
@@ -327,4 +327,6 @@ 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)((0, _reactIntlNext.injectIntl)(RecentLink));
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));
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  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); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "110.34.1";
19
+ var packageVersion = "0.0.0-development";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // 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.34.1";
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,7 +20,10 @@ 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
23
25
  transaction.mapping.maps.forEach(function (stepMap, index) {
26
+ // @ts-ignore - Workaround for help-center local consumption
24
27
  stepMap.forEach(function (oldStart, oldEnd) {
25
28
  var newStart = transaction.mapping.slice(index).map(oldStart, -1);
26
29
  var newEnd = transaction.mapping.slice(index).map(oldEnd);
@@ -64,9 +64,13 @@ 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
+
67
69
  init: function init(_, state) {
68
70
  return isFunction(initialState) ? initialState(state) : initialState;
69
71
  },
72
+ // @ts-ignore - Workaround for help-center local consumption
73
+
70
74
  apply: function apply(tr, _pluginState, _oldEditorState, newEditorState) {
71
75
  var oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
72
76
  var newPluginState = oldPluginState;
@@ -18,6 +18,7 @@ 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
21
22
  return tr.steps.reduce((metadata, step) => {
22
23
  if (!(step instanceof LinkMetaStep)) {
23
24
  return metadata;
@@ -79,6 +79,8 @@ 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
82
84
  usePluginStateEffectInternal(namedExternalPlugins, effect, options);
83
85
  }
84
86
  function usePluginStateEffectInternal(externalPlugins, effect, options = {}) {
@@ -14,6 +14,7 @@ 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
17
18
  handleKeyDown(view, event) {
18
19
  const name = keyName(event);
19
20
  let keyboardEvent = event;
@@ -220,4 +220,6 @@ class RecentLink extends React.Component {
220
220
  _defineProperty(RecentLink, "defaultProps", {
221
221
  limit: DEFAULT_ITEMS_LIMIT
222
222
  });
223
- export default withActivityProvider(injectIntl(RecentLink));
223
+ export default withActivityProvider(
224
+ // @ts-ignore - Workaround for help-center local consumption (prop type incompatibility)
225
+ injectIntl(RecentLink));
@@ -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 = "110.34.1";
4
+ const packageVersion = "0.0.0-development";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // 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.34.1";
17
+ const packageVersion = "0.0.0-development";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -5,7 +5,10 @@ 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
8
10
  transaction.mapping.maps.forEach((stepMap, index) => {
11
+ // @ts-ignore - Workaround for help-center local consumption
9
12
  stepMap.forEach((oldStart, oldEnd) => {
10
13
  const newStart = transaction.mapping.slice(index).map(oldStart, -1);
11
14
  const newEnd = transaction.mapping.slice(index).map(oldEnd);
@@ -59,7 +59,11 @@ 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
+
62
64
  init: (_, state) => isFunction(initialState) ? initialState(state) : initialState,
65
+ // @ts-ignore - Workaround for help-center local consumption
66
+
63
67
  apply: (tr, _pluginState, _oldEditorState, newEditorState) => {
64
68
  const oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
65
69
  let newPluginState = oldPluginState;
@@ -19,6 +19,7 @@ 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
22
23
  return tr.steps.reduce(function (metadata, step) {
23
24
  if (!(step instanceof LinkMetaStep)) {
24
25
  return metadata;
@@ -89,6 +89,8 @@ 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
92
94
  usePluginStateEffectInternal(namedExternalPlugins, effect, options);
93
95
  }
94
96
  function usePluginStateEffectInternal(externalPlugins, effect) {
@@ -14,6 +14,7 @@ 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
17
18
  handleKeyDown: function handleKeyDown(view, event) {
18
19
  var name = keyName(event);
19
20
  var keyboardEvent = event;
@@ -320,4 +320,6 @@ var RecentLink = /*#__PURE__*/function (_React$Component) {
320
320
  _defineProperty(RecentLink, "defaultProps", {
321
321
  limit: DEFAULT_ITEMS_LIMIT
322
322
  });
323
- export default withActivityProvider(injectIntl(RecentLink));
323
+ export default withActivityProvider(
324
+ // @ts-ignore - Workaround for help-center local consumption (prop type incompatibility)
325
+ injectIntl(RecentLink));
@@ -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 = "110.34.1";
10
+ var packageVersion = "0.0.0-development";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // 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.34.1";
24
+ var packageVersion = "0.0.0-development";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -5,7 +5,10 @@ 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
8
10
  transaction.mapping.maps.forEach(function (stepMap, index) {
11
+ // @ts-ignore - Workaround for help-center local consumption
9
12
  stepMap.forEach(function (oldStart, oldEnd) {
10
13
  var newStart = transaction.mapping.slice(index).map(oldStart, -1);
11
14
  var newEnd = transaction.mapping.slice(index).map(oldEnd);
@@ -58,9 +58,13 @@ 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
+
61
63
  init: function init(_, state) {
62
64
  return isFunction(initialState) ? initialState(state) : initialState;
63
65
  },
66
+ // @ts-ignore - Workaround for help-center local consumption
67
+
64
68
  apply: function apply(tr, _pluginState, _oldEditorState, newEditorState) {
65
69
  var oldPluginState = mapping ? mapping(tr, _pluginState, newEditorState) : _pluginState;
66
70
  var newPluginState = oldPluginState;
@@ -32,6 +32,7 @@ type AIInteractionInitiatedAEP = TrackAEP<ACTION.INITIATED, ACTION_SUBJECT.AI_IN
32
32
  type AIInteractionDismissedAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_INTERACTION, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
33
33
  type AIResultViewedAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
34
34
  type AIResultActionedAEP = TrackAEP<ACTION.ACTIONED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
35
+ aiActionedType?: string;
35
36
  aiResultAction: string;
36
37
  promptType?: string;
37
38
  refinementCount?: number;
@@ -32,6 +32,7 @@ type AIInteractionInitiatedAEP = TrackAEP<ACTION.INITIATED, ACTION_SUBJECT.AI_IN
32
32
  type AIInteractionDismissedAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_INTERACTION, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
33
33
  type AIResultViewedAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
34
34
  type AIResultActionedAEP = TrackAEP<ACTION.ACTIONED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
35
+ aiActionedType?: string;
35
36
  aiResultAction: string;
36
37
  promptType?: string;
37
38
  refinementCount?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.34.2",
3
+ "version": "110.34.4",
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/"
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/button": "^23.6.0",
41
41
  "@atlaskit/code": "^17.3.0",
42
42
  "@atlaskit/codemod-utils": "^4.2.0",
43
- "@atlaskit/css": "^0.16.0",
43
+ "@atlaskit/css": "^0.17.0",
44
44
  "@atlaskit/custom-steps": "^0.16.0",
45
45
  "@atlaskit/dropdown-menu": "^16.3.0",
46
46
  "@atlaskit/editor-json-transformer": "^8.31.0",
@@ -70,7 +70,7 @@
70
70
  "@atlaskit/platform-feature-flags": "^1.1.0",
71
71
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
72
72
  "@atlaskit/popper": "^7.1.0",
73
- "@atlaskit/primitives": "^16.2.0",
73
+ "@atlaskit/primitives": "^16.3.0",
74
74
  "@atlaskit/profilecard": "^24.21.0",
75
75
  "@atlaskit/prosemirror-history": "^0.2.0",
76
76
  "@atlaskit/react-ufo": "^4.15.0",
@@ -83,7 +83,7 @@
83
83
  "@atlaskit/textfield": "^8.1.0",
84
84
  "@atlaskit/theme": "^21.0.0",
85
85
  "@atlaskit/tmp-editor-statsig": "^13.42.0",
86
- "@atlaskit/tokens": "^8.2.0",
86
+ "@atlaskit/tokens": "^8.3.0",
87
87
  "@atlaskit/tooltip": "^20.10.0",
88
88
  "@atlaskit/ufo": "^0.4.0",
89
89
  "@atlaskit/width-detector": "^5.0.0",