@atlaskit/editor-common 94.11.0 → 94.11.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 94.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#159827](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159827)
8
+ [`8e43150e942f6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8e43150e942f6) -
9
+ [ux] Clean up FF for updateParams API change
10
+ - Updated dependencies
11
+
3
12
  ## 94.11.0
4
13
 
5
14
  ### Minor Changes
@@ -8,7 +8,6 @@ exports.useMultiBodiedExtensionActions = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _state = require("@atlaskit/editor-prosemirror/state");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _analytics = require("../../analytics");
13
12
  var _utils = require("./utils");
14
13
  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; }
@@ -117,23 +116,11 @@ var useMultiBodiedExtensionActions = exports.useMultiBodiedExtensionActions = fu
117
116
  // We are retaining node.attrs to keep the node type and extension key
118
117
  // and only updating the parameters coming in from the user
119
118
  // parameters will contain only macroParams information
120
- var updatedParameters;
121
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.mbe-update-params-change')) {
122
- // With the new feature flag, we will not be de-structuring macroParams,
123
- // and will directly replace/overwrite the macroParams with the parameters
124
- updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
125
- parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
126
- macroParams: parameters
127
- })
128
- });
129
- } else {
130
- var _node$attrs;
131
- updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
132
- parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
133
- macroParams: _objectSpread(_objectSpread({}, (_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.parameters) === null || _node$attrs === void 0 ? void 0 : _node$attrs.macroParams), parameters)
134
- })
135
- });
136
- }
119
+ var updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
120
+ parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
121
+ macroParams: parameters
122
+ })
123
+ });
137
124
  var tr = state.tr.setNodeMarkup(pos, null, updatedParameters);
138
125
  dispatch(tr);
139
126
  if (eventDispatcher) {
@@ -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 && {}.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 = "94.11.0";
20
+ var packageVersion = "94.11.1";
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
@@ -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 = "94.11.0";
27
+ var packageVersion = "94.11.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  import { ACTION } from '../../analytics';
5
4
  import { sendMBEAnalyticsEvent } from './utils';
6
5
  export const useMultiBodiedExtensionActions = ({
@@ -116,30 +115,13 @@ export const useMultiBodiedExtensionActions = ({
116
115
  // We are retaining node.attrs to keep the node type and extension key
117
116
  // and only updating the parameters coming in from the user
118
117
  // parameters will contain only macroParams information
119
- let updatedParameters;
120
- if (getBooleanFF('platform.editor.mbe-update-params-change')) {
121
- // With the new feature flag, we will not be de-structuring macroParams,
122
- // and will directly replace/overwrite the macroParams with the parameters
123
- updatedParameters = {
124
- ...node.attrs,
125
- parameters: {
126
- ...node.attrs.parameters,
127
- macroParams: parameters
128
- }
129
- };
130
- } else {
131
- var _node$attrs, _node$attrs$parameter;
132
- updatedParameters = {
133
- ...node.attrs,
134
- parameters: {
135
- ...node.attrs.parameters,
136
- macroParams: {
137
- ...((_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : (_node$attrs$parameter = _node$attrs.parameters) === null || _node$attrs$parameter === void 0 ? void 0 : _node$attrs$parameter.macroParams),
138
- ...parameters
139
- }
140
- }
141
- };
142
- }
118
+ const updatedParameters = {
119
+ ...node.attrs,
120
+ parameters: {
121
+ ...node.attrs.parameters,
122
+ macroParams: parameters
123
+ }
124
+ };
143
125
  const tr = state.tr.setNodeMarkup(pos, null, updatedParameters);
144
126
  dispatch(tr);
145
127
  if (eventDispatcher) {
@@ -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 = "94.11.0";
4
+ const packageVersion = "94.11.1";
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
@@ -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 = "94.11.0";
16
+ const packageVersion = "94.11.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  class DropList extends Component {
@@ -3,7 +3,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  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; }
4
4
  import React from 'react';
5
5
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
6
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
7
6
  import { ACTION } from '../../analytics';
8
7
  import { sendMBEAnalyticsEvent } from './utils';
9
8
  export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActions(_ref) {
@@ -110,23 +109,11 @@ export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActi
110
109
  // We are retaining node.attrs to keep the node type and extension key
111
110
  // and only updating the parameters coming in from the user
112
111
  // parameters will contain only macroParams information
113
- var updatedParameters;
114
- if (getBooleanFF('platform.editor.mbe-update-params-change')) {
115
- // With the new feature flag, we will not be de-structuring macroParams,
116
- // and will directly replace/overwrite the macroParams with the parameters
117
- updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
118
- parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
119
- macroParams: parameters
120
- })
121
- });
122
- } else {
123
- var _node$attrs;
124
- updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
125
- parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
126
- macroParams: _objectSpread(_objectSpread({}, (_node$attrs = node.attrs) === null || _node$attrs === void 0 || (_node$attrs = _node$attrs.parameters) === null || _node$attrs === void 0 ? void 0 : _node$attrs.macroParams), parameters)
127
- })
128
- });
129
- }
112
+ var updatedParameters = _objectSpread(_objectSpread({}, node.attrs), {}, {
113
+ parameters: _objectSpread(_objectSpread({}, node.attrs.parameters), {}, {
114
+ macroParams: parameters
115
+ })
116
+ });
130
117
  var tr = state.tr.setNodeMarkup(pos, null, updatedParameters);
131
118
  dispatch(tr);
132
119
  if (eventDispatcher) {
@@ -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 = "94.11.0";
10
+ var packageVersion = "94.11.1";
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
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
21
21
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "94.11.0";
24
+ var packageVersion = "94.11.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var DropList = /*#__PURE__*/function (_Component) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "94.11.0",
3
+ "version": "94.11.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/"
@@ -128,7 +128,7 @@
128
128
  "@atlaskit/emoji": "^67.9.0",
129
129
  "@atlaskit/icon": "^22.24.0",
130
130
  "@atlaskit/icon-object": "^6.7.0",
131
- "@atlaskit/link-datasource": "^3.7.0",
131
+ "@atlaskit/link-datasource": "^3.8.0",
132
132
  "@atlaskit/link-picker": "^1.47.0",
133
133
  "@atlaskit/media-card": "^78.10.0",
134
134
  "@atlaskit/media-client": "^28.0.0",
@@ -140,7 +140,7 @@
140
140
  "@atlaskit/media-viewer": "49.2.5",
141
141
  "@atlaskit/mention": "^23.3.0",
142
142
  "@atlaskit/menu": "^2.13.0",
143
- "@atlaskit/onboarding": "^12.0.0",
143
+ "@atlaskit/onboarding": "^12.1.0",
144
144
  "@atlaskit/platform-feature-flags": "^0.3.0",
145
145
  "@atlaskit/popper": "^6.3.0",
146
146
  "@atlaskit/primitives": "^13.0.0",
@@ -152,7 +152,7 @@
152
152
  "@atlaskit/task-decision": "^17.11.0",
153
153
  "@atlaskit/textfield": "^6.5.0",
154
154
  "@atlaskit/tmp-editor-statsig": "^2.11.0",
155
- "@atlaskit/tokens": "^2.0.0",
155
+ "@atlaskit/tokens": "^2.1.0",
156
156
  "@atlaskit/tooltip": "^18.8.0",
157
157
  "@atlaskit/width-detector": "^4.3.0",
158
158
  "@babel/runtime": "^7.0.0",
@@ -238,9 +238,6 @@
238
238
  "editor_inline_comments_on_inline_nodes": {
239
239
  "type": "boolean"
240
240
  },
241
- "platform.editor.mbe-update-params-change": {
242
- "type": "boolean"
243
- },
244
241
  "annotations_align_editor_and_renderer_styles": {
245
242
  "type": "boolean"
246
243
  },