@atlaskit/editor-common 120.11.2 → 120.12.0
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 +21 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MultiBodiedExtension/index.js +4 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +4 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MultiBodiedExtension/index.js +4 -3
- package/dist/types/analytics/types/insert-events.d.ts +2 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 120.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`2c4ffdece0401`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c4ffdece0401) -
|
|
8
|
+
Add a typed snippet insertion command and shared snippet input methods for the
|
|
9
|
+
`platform_editor_snippets_plugin_confluence` experiment.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`a6c26b16402ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a6c26b16402ca) -
|
|
14
|
+
Migrate nine dogfooding editor experiments from `@atlaskit/tmp-editor-statsig` to the Platform
|
|
15
|
+
experiment API and move their tests to Platform experiment mocks.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 120.11.3
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 120.11.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "120.11.
|
|
31
|
+
var packageVersion = "120.11.3";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// 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 = "120.11.
|
|
27
|
+
var packageVersion = "120.11.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.sharedMultiBodiedExtensionStyles = exports.removeMarginsAndBorder = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
8
9
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
10
|
/* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
|
|
10
11
|
/**
|
|
@@ -137,7 +138,7 @@ var extensionFrameContent = (0, _react.css)({
|
|
|
137
138
|
// Block spacing hook variant of extensionFrameContent. Identical to extensionFrameContent except
|
|
138
139
|
// the extension content margins read from the `--ak-editor-extension-block-spacing` CSS custom
|
|
139
140
|
// property (falling back to the original token values). Selected only when
|
|
140
|
-
//
|
|
141
|
+
// isExperimentEnabled('platform_editor_extension_block_spacing') is enabled.
|
|
141
142
|
var extensionFrameContentWithBlockSpacing = (0, _react.css)({
|
|
142
143
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
143
144
|
display: 'block !important',
|
|
@@ -216,7 +217,7 @@ var sharedMultiBodiedExtensionStyles = exports.sharedMultiBodiedExtensionStyles
|
|
|
216
217
|
}
|
|
217
218
|
// Block spacing hook — when the experiment is on, use the variant whose extension content
|
|
218
219
|
// margins read from --ak-editor-extension-block-spacing (falling back to the originals).
|
|
219
|
-
//
|
|
220
|
-
return (0,
|
|
220
|
+
// isExperimentEnabled always fires an exposure event.
|
|
221
|
+
return (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_extension_block_spacing') ? extensionFrameContentWithBlockSpacing : extensionFrameContent;
|
|
221
222
|
}
|
|
222
223
|
};
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "120.11.
|
|
17
|
+
const packageVersion = "120.11.3";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "120.11.
|
|
17
|
+
const packageVersion = "120.11.3";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css } from '@emotion/react';
|
|
9
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
11
|
// Wraps the navigation bar and extensionFrames
|
|
11
12
|
const mbeExtensionContainerOld = css({
|
|
@@ -130,7 +131,7 @@ const extensionFrameContent = css({
|
|
|
130
131
|
// Block spacing hook variant of extensionFrameContent. Identical to extensionFrameContent except
|
|
131
132
|
// the extension content margins read from the `--ak-editor-extension-block-spacing` CSS custom
|
|
132
133
|
// property (falling back to the original token values). Selected only when
|
|
133
|
-
//
|
|
134
|
+
// isExperimentEnabled('platform_editor_extension_block_spacing') is enabled.
|
|
134
135
|
const extensionFrameContentWithBlockSpacing = css({
|
|
135
136
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
136
137
|
display: 'block !important',
|
|
@@ -209,7 +210,7 @@ export const sharedMultiBodiedExtensionStyles = {
|
|
|
209
210
|
}
|
|
210
211
|
// Block spacing hook — when the experiment is on, use the variant whose extension content
|
|
211
212
|
// margins read from --ak-editor-extension-block-spacing (falling back to the originals).
|
|
212
|
-
//
|
|
213
|
-
return
|
|
213
|
+
// isExperimentEnabled always fires an exposure event.
|
|
214
|
+
return isExperimentEnabled('platform_editor_extension_block_spacing') ? extensionFrameContentWithBlockSpacing : extensionFrameContent;
|
|
214
215
|
}
|
|
215
216
|
};
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "120.11.
|
|
23
|
+
var packageVersion = "120.11.3";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "120.11.
|
|
24
|
+
var packageVersion = "120.11.3";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css } from '@emotion/react';
|
|
9
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
11
|
// Wraps the navigation bar and extensionFrames
|
|
11
12
|
var mbeExtensionContainerOld = css({
|
|
@@ -130,7 +131,7 @@ var extensionFrameContent = css({
|
|
|
130
131
|
// Block spacing hook variant of extensionFrameContent. Identical to extensionFrameContent except
|
|
131
132
|
// the extension content margins read from the `--ak-editor-extension-block-spacing` CSS custom
|
|
132
133
|
// property (falling back to the original token values). Selected only when
|
|
133
|
-
//
|
|
134
|
+
// isExperimentEnabled('platform_editor_extension_block_spacing') is enabled.
|
|
134
135
|
var extensionFrameContentWithBlockSpacing = css({
|
|
135
136
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
136
137
|
display: 'block !important',
|
|
@@ -209,7 +210,7 @@ export var sharedMultiBodiedExtensionStyles = {
|
|
|
209
210
|
}
|
|
210
211
|
// Block spacing hook — when the experiment is on, use the variant whose extension content
|
|
211
212
|
// margins read from --ak-editor-extension-block-spacing (falling back to the originals).
|
|
212
|
-
//
|
|
213
|
-
return
|
|
213
|
+
// isExperimentEnabled always fires an exposure event.
|
|
214
|
+
return isExperimentEnabled('platform_editor_extension_block_spacing') ? extensionFrameContentWithBlockSpacing : extensionFrameContent;
|
|
214
215
|
}
|
|
215
216
|
};
|
|
@@ -163,9 +163,10 @@ type InsertReferenceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.SYNCED_BLOC
|
|
|
163
163
|
export type InsertSourceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.BODIED_SYNCED_BLOCK, {
|
|
164
164
|
resourceId: string;
|
|
165
165
|
}, undefined>;
|
|
166
|
+
export type InsertSnippetInputMethod = INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
|
|
166
167
|
type InsertSnippetAEP = InsertAEP<ACTION_SUBJECT_ID.SNIPPET, {
|
|
167
168
|
hadMedia?: boolean;
|
|
168
|
-
inputMethod:
|
|
169
|
+
inputMethod: InsertSnippetInputMethod;
|
|
169
170
|
snippetId: string;
|
|
170
171
|
templateType?: 'atlassian' | 'user';
|
|
171
172
|
}, undefined>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "120.
|
|
3
|
+
"version": "120.12.0",
|
|
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/"
|
|
@@ -76,15 +76,15 @@
|
|
|
76
76
|
"@atlaskit/profilecard": "^26.21.0",
|
|
77
77
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
78
78
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
79
|
-
"@atlaskit/react-ufo": "^7.
|
|
79
|
+
"@atlaskit/react-ufo": "^7.8.0",
|
|
80
80
|
"@atlaskit/section-message": "^10.2.0",
|
|
81
81
|
"@atlaskit/smart-card": "^45.19.0",
|
|
82
82
|
"@atlaskit/smart-user-picker": "^11.6.0",
|
|
83
83
|
"@atlaskit/spinner": "^20.4.0",
|
|
84
84
|
"@atlaskit/task-decision": "^21.9.0",
|
|
85
|
-
"@atlaskit/teams-app-config": "^3.
|
|
85
|
+
"@atlaskit/teams-app-config": "^3.1.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.2.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^174.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^16.11.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.3.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.2.0",
|