@atlaskit/editor-common 95.6.0 → 95.6.2

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,23 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 95.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#168141](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168141)
8
+ [`7f239fc40666c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7f239fc40666c) -
9
+ CP getIsNamespaceLocked API
10
+ - Updated dependencies
11
+
12
+ ## 95.6.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#168711](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/168711)
17
+ [`b2f2dc82e10b3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b2f2dc82e10b3) -
18
+ Memoises the CellMeasurerCache used in the insert menu
19
+ - Updated dependencies
20
+
3
21
  ## 95.6.0
4
22
 
5
23
  ### Minor Changes
@@ -105,13 +105,13 @@ function ElementListOld(_ref) {
105
105
  }
106
106
  });
107
107
  }, [createAnalyticsEvent]);
108
-
109
- // eslint-disable-next-line react-hooks/exhaustive-deps
110
- var cache = new _CellMeasurer.CellMeasurerCache({
111
- fixedWidth: true,
112
- defaultHeight: 75,
113
- minHeight: 75
114
- });
108
+ var cache = (0, _react.useMemo)(function () {
109
+ return new _CellMeasurer.CellMeasurerCache({
110
+ fixedWidth: true,
111
+ defaultHeight: 75,
112
+ minHeight: 75
113
+ });
114
+ }, []);
115
115
  var columnWidth = (containerWidth - _constants.ELEMENT_ITEM_PADDING * 2) / columnCount;
116
116
  var rowCount = Math.ceil(items.length / columnCount);
117
117
  var rowHeight = function rowHeight(_ref2) {
@@ -264,13 +264,13 @@ function ElementListNew(_ref5) {
264
264
  }
265
265
  });
266
266
  }, [createAnalyticsEvent]);
267
-
268
- // eslint-disable-next-line react-hooks/exhaustive-deps
269
- var listCache = cache !== null && cache !== void 0 ? cache : new _CellMeasurer.CellMeasurerCache({
270
- fixedWidth: true,
271
- defaultHeight: _constants.ELEMENT_ITEM_HEIGHT,
272
- minHeight: _constants.ELEMENT_ITEM_HEIGHT
273
- });
267
+ var listCache = (0, _react.useMemo)(function () {
268
+ return cache !== null && cache !== void 0 ? cache : new _CellMeasurer.CellMeasurerCache({
269
+ fixedWidth: true,
270
+ defaultHeight: _constants.ELEMENT_ITEM_HEIGHT,
271
+ minHeight: _constants.ELEMENT_ITEM_HEIGHT
272
+ });
273
+ }, [cache]);
274
274
  (0, _react.useEffect)(function () {
275
275
  // need to recalculate values if we have the same items, but they're reordered
276
276
  listCache.clearAll();
@@ -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 = "95.6.0";
20
+ var packageVersion = "95.6.2";
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 = "95.6.0";
27
+ var packageVersion = "95.6.2";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -90,13 +90,13 @@ function ElementListOld({
90
90
  }
91
91
  });
92
92
  }, [createAnalyticsEvent]);
93
-
94
- // eslint-disable-next-line react-hooks/exhaustive-deps
95
- const cache = new CellMeasurerCache({
96
- fixedWidth: true,
97
- defaultHeight: 75,
98
- minHeight: 75
99
- });
93
+ const cache = useMemo(() => {
94
+ return new CellMeasurerCache({
95
+ fixedWidth: true,
96
+ defaultHeight: 75,
97
+ minHeight: 75
98
+ });
99
+ }, []);
100
100
  const columnWidth = (containerWidth - ELEMENT_ITEM_PADDING * 2) / columnCount;
101
101
  const rowCount = Math.ceil(items.length / columnCount);
102
102
  const rowHeight = ({
@@ -245,13 +245,13 @@ function ElementListNew({
245
245
  }
246
246
  });
247
247
  }, [createAnalyticsEvent]);
248
-
249
- // eslint-disable-next-line react-hooks/exhaustive-deps
250
- const listCache = cache !== null && cache !== void 0 ? cache : new CellMeasurerCache({
251
- fixedWidth: true,
252
- defaultHeight: ELEMENT_ITEM_HEIGHT,
253
- minHeight: ELEMENT_ITEM_HEIGHT
254
- });
248
+ const listCache = useMemo(() => {
249
+ return cache !== null && cache !== void 0 ? cache : new CellMeasurerCache({
250
+ fixedWidth: true,
251
+ defaultHeight: ELEMENT_ITEM_HEIGHT,
252
+ minHeight: ELEMENT_ITEM_HEIGHT
253
+ });
254
+ }, [cache]);
255
255
  useEffect(() => {
256
256
  // need to recalculate values if we have the same items, but they're reordered
257
257
  listCache.clearAll();
@@ -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 = "95.6.0";
4
+ const packageVersion = "95.6.2";
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 = "95.6.0";
16
+ const packageVersion = "95.6.2";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  class DropList extends Component {
@@ -95,13 +95,13 @@ function ElementListOld(_ref) {
95
95
  }
96
96
  });
97
97
  }, [createAnalyticsEvent]);
98
-
99
- // eslint-disable-next-line react-hooks/exhaustive-deps
100
- var cache = new CellMeasurerCache({
101
- fixedWidth: true,
102
- defaultHeight: 75,
103
- minHeight: 75
104
- });
98
+ var cache = useMemo(function () {
99
+ return new CellMeasurerCache({
100
+ fixedWidth: true,
101
+ defaultHeight: 75,
102
+ minHeight: 75
103
+ });
104
+ }, []);
105
105
  var columnWidth = (containerWidth - ELEMENT_ITEM_PADDING * 2) / columnCount;
106
106
  var rowCount = Math.ceil(items.length / columnCount);
107
107
  var rowHeight = function rowHeight(_ref2) {
@@ -254,13 +254,13 @@ function ElementListNew(_ref5) {
254
254
  }
255
255
  });
256
256
  }, [createAnalyticsEvent]);
257
-
258
- // eslint-disable-next-line react-hooks/exhaustive-deps
259
- var listCache = cache !== null && cache !== void 0 ? cache : new CellMeasurerCache({
260
- fixedWidth: true,
261
- defaultHeight: ELEMENT_ITEM_HEIGHT,
262
- minHeight: ELEMENT_ITEM_HEIGHT
263
- });
257
+ var listCache = useMemo(function () {
258
+ return cache !== null && cache !== void 0 ? cache : new CellMeasurerCache({
259
+ fixedWidth: true,
260
+ defaultHeight: ELEMENT_ITEM_HEIGHT,
261
+ minHeight: ELEMENT_ITEM_HEIGHT
262
+ });
263
+ }, [cache]);
264
264
  useEffect(function () {
265
265
  // need to recalculate values if we have the same items, but they're reordered
266
266
  listCache.clearAll();
@@ -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 = "95.6.0";
10
+ var packageVersion = "95.6.2";
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 = "95.6.0";
24
+ var packageVersion = "95.6.2";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var DropList = /*#__PURE__*/function (_Component) {
@@ -401,6 +401,7 @@ export interface CollabEditProvider<Events extends CollabEvents = CollabEvents>
401
401
  type: K;
402
402
  } & Events[K]): void;
403
403
  getFinalAcknowledgedState(): Promise<ResolvedEditorState>;
404
+ getIsNamespaceLocked(): boolean;
404
405
  }
405
406
  export type CollabEditOptions = {
406
407
  provider?: Providers['collabEditProvider'];
@@ -401,6 +401,7 @@ export interface CollabEditProvider<Events extends CollabEvents = CollabEvents>
401
401
  type: K;
402
402
  } & Events[K]): void;
403
403
  getFinalAcknowledgedState(): Promise<ResolvedEditorState>;
404
+ getIsNamespaceLocked(): boolean;
404
405
  }
405
406
  export type CollabEditOptions = {
406
407
  provider?: Providers['collabEditProvider'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "95.6.0",
3
+ "version": "95.6.2",
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/"
@@ -113,7 +113,7 @@
113
113
  "@atlaskit/activity-provider": "^2.5.0",
114
114
  "@atlaskit/adf-schema": "^44.2.0",
115
115
  "@atlaskit/adf-utils": "^19.13.0",
116
- "@atlaskit/analytics-listeners": "^8.11.0",
116
+ "@atlaskit/analytics-listeners": "^8.13.0",
117
117
  "@atlaskit/analytics-namespaced-context": "^6.12.0",
118
118
  "@atlaskit/analytics-next": "^10.1.0",
119
119
  "@atlaskit/atlassian-context": "^0.0.2",
@@ -121,16 +121,16 @@
121
121
  "@atlaskit/code": "^15.6.0",
122
122
  "@atlaskit/codemod-utils": "^4.2.0",
123
123
  "@atlaskit/custom-steps": "^0.9.0",
124
- "@atlaskit/dropdown-menu": "^12.22.0",
124
+ "@atlaskit/dropdown-menu": "^12.23.0",
125
125
  "@atlaskit/editor-json-transformer": "^8.21.0",
126
126
  "@atlaskit/editor-palette": "1.6.3",
127
127
  "@atlaskit/editor-prosemirror": "6.0.0",
128
128
  "@atlaskit/editor-shared-styles": "^3.2.0",
129
129
  "@atlaskit/editor-tables": "^2.8.0",
130
130
  "@atlaskit/emoji": "^67.11.0",
131
- "@atlaskit/icon": "^22.25.0",
131
+ "@atlaskit/icon": "^22.26.0",
132
132
  "@atlaskit/icon-object": "^6.7.0",
133
- "@atlaskit/link-datasource": "^3.12.0",
133
+ "@atlaskit/link-datasource": "^3.13.0",
134
134
  "@atlaskit/link-picker": "^1.47.0",
135
135
  "@atlaskit/media-card": "^78.14.0",
136
136
  "@atlaskit/media-client": "^28.3.0",
@@ -148,12 +148,12 @@
148
148
  "@atlaskit/primitives": "^13.2.0",
149
149
  "@atlaskit/profilecard": "^20.12.0",
150
150
  "@atlaskit/section-message": "^6.7.0",
151
- "@atlaskit/smart-card": "^30.3.0",
151
+ "@atlaskit/smart-card": "^31.0.0",
152
152
  "@atlaskit/smart-user-picker": "^6.11.0",
153
153
  "@atlaskit/spinner": "^16.3.0",
154
154
  "@atlaskit/task-decision": "^17.11.0",
155
155
  "@atlaskit/textfield": "^6.5.0",
156
- "@atlaskit/tmp-editor-statsig": "^2.19.0",
156
+ "@atlaskit/tmp-editor-statsig": "^2.21.0",
157
157
  "@atlaskit/tokens": "^2.3.0",
158
158
  "@atlaskit/tooltip": "^18.9.0",
159
159
  "@atlaskit/width-detector": "^4.3.0",