@atlaskit/editor-common 99.2.0 → 99.3.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,22 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 99.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#103315](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103315)
8
+ [`3b0f9317f5803`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3b0f9317f5803) -
9
+ [ux] Fix bodied macro edit button positioning after a previous bug fix
10
+ - Updated dependencies
11
+
12
+ ## 99.3.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [#100830](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/100830)
17
+ [`c46ec6d414867`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c46ec6d414867) -
18
+ New collab event namespace-lock:check
19
+
3
20
  ## 99.2.0
4
21
 
5
22
  ### Minor Changes
@@ -25,7 +25,7 @@ var buttonContainerStyles = (0, _react2.css)({
25
25
  position: 'absolute',
26
26
  width: 'max-content',
27
27
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
28
- top: '-19px',
28
+ top: '-28px',
29
29
  display: 'inline-flex',
30
30
  justifyContent: 'flex-end',
31
31
  color: "var(--ds-text-subtle, #44546F)"
@@ -38,6 +38,7 @@ var labelStyles = (0, _react.css)({
38
38
  width: 'max-content',
39
39
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
40
40
  top: '-28px',
41
+ // When updating this value, make sure to also update the value in EditToggle.tsx, buttonContainerStyles
41
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
42
43
  '&.show-label': {
43
44
  cursor: 'pointer',
@@ -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 = "99.2.0";
20
+ var packageVersion = "99.3.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
@@ -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 = "99.2.0";
26
+ var packageVersion = "99.3.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -18,7 +18,7 @@ const buttonContainerStyles = css({
18
18
  position: 'absolute',
19
19
  width: 'max-content',
20
20
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
21
- top: '-19px',
21
+ top: '-28px',
22
22
  display: 'inline-flex',
23
23
  justifyContent: 'flex-end',
24
24
  color: "var(--ds-text-subtle, #44546F)"
@@ -30,6 +30,7 @@ const labelStyles = css({
30
30
  width: 'max-content',
31
31
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
32
32
  top: '-28px',
33
+ // When updating this value, make sure to also update the value in EditToggle.tsx, buttonContainerStyles
33
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
34
35
  '&.show-label': {
35
36
  cursor: 'pointer',
@@ -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 = "99.2.0";
4
+ const packageVersion = "99.3.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 = "99.2.0";
16
+ const packageVersion = "99.3.1";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -18,7 +18,7 @@ var buttonContainerStyles = css({
18
18
  position: 'absolute',
19
19
  width: 'max-content',
20
20
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
21
- top: '-19px',
21
+ top: '-28px',
22
22
  display: 'inline-flex',
23
23
  justifyContent: 'flex-end',
24
24
  color: "var(--ds-text-subtle, #44546F)"
@@ -30,6 +30,7 @@ var labelStyles = css({
30
30
  width: 'max-content',
31
31
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
32
32
  top: '-28px',
33
+ // When updating this value, make sure to also update the value in EditToggle.tsx, buttonContainerStyles
33
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
34
35
  '&.show-label': {
35
36
  cursor: 'pointer',
@@ -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 = "99.2.0";
10
+ var packageVersion = "99.3.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
@@ -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 = "99.2.0";
23
+ var packageVersion = "99.3.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -242,6 +242,9 @@ export interface CollabDisconnectedPayload {
242
242
  reason: DisconnectReason;
243
243
  sid: string;
244
244
  }
245
+ export interface CollabNamespaceLockCheckPayload {
246
+ isLocked: boolean;
247
+ }
245
248
  export interface CollabEventRemoteData {
246
249
  json?: any;
247
250
  newState?: EditorState;
@@ -441,6 +444,7 @@ export interface CollabEvents {
441
444
  connecting: CollabConnectingPayload;
442
445
  permission: CollabPermissionEventPayload;
443
446
  'commit-status': CollabCommitStatusEventPayload;
447
+ 'namespace-lock:check': CollabNamespaceLockCheckPayload;
444
448
  }
445
449
  export type SyncUpErrorFunction = (attributes: NewCollabSyncUpErrorAttributes) => void;
446
450
  export interface CollabEditProvider<Events extends CollabEvents = CollabEvents> {
@@ -242,6 +242,9 @@ export interface CollabDisconnectedPayload {
242
242
  reason: DisconnectReason;
243
243
  sid: string;
244
244
  }
245
+ export interface CollabNamespaceLockCheckPayload {
246
+ isLocked: boolean;
247
+ }
245
248
  export interface CollabEventRemoteData {
246
249
  json?: any;
247
250
  newState?: EditorState;
@@ -441,6 +444,7 @@ export interface CollabEvents {
441
444
  connecting: CollabConnectingPayload;
442
445
  permission: CollabPermissionEventPayload;
443
446
  'commit-status': CollabCommitStatusEventPayload;
447
+ 'namespace-lock:check': CollabNamespaceLockCheckPayload;
444
448
  }
445
449
  export type SyncUpErrorFunction = (attributes: NewCollabSyncUpErrorAttributes) => void;
446
450
  export interface CollabEditProvider<Events extends CollabEvents = CollabEvents> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "99.2.0",
3
+ "version": "99.3.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/"
@@ -154,8 +154,8 @@
154
154
  "@atlaskit/spinner": "^16.3.0",
155
155
  "@atlaskit/task-decision": "^17.11.0",
156
156
  "@atlaskit/textfield": "^6.7.0",
157
- "@atlaskit/tmp-editor-statsig": "^2.35.0",
158
- "@atlaskit/tokens": "^3.0.0",
157
+ "@atlaskit/tmp-editor-statsig": "^2.36.0",
158
+ "@atlaskit/tokens": "^3.1.0",
159
159
  "@atlaskit/tooltip": "^19.0.0",
160
160
  "@atlaskit/width-detector": "^4.3.0",
161
161
  "@babel/runtime": "^7.0.0",