@atlaskit/editor-common 116.2.0 → 116.2.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 +13 -0
- package/dist/cjs/extensions/extension-handlers.js +3 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensions/extension-handlers.js +3 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensions/extension-handlers.js +3 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 116.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3c607ceed7a02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c607ceed7a02) -
|
|
14
|
+
Fix extension renderer Promise handling behind a feature gate
|
|
15
|
+
|
|
3
16
|
## 116.2.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -152,7 +152,9 @@ function getNodeRenderer(extensionProvider, extensionType, extensionKey) {
|
|
|
152
152
|
var preloaded = maybePromise === null || maybePromise === void 0 || (_renderSync = (_ref = maybePromise).renderSync) === null || _renderSync === void 0 ? void 0 : _renderSync.call(_ref);
|
|
153
153
|
// Only product implemented preloading will return sync result
|
|
154
154
|
// However the out-of-box won't handle this. Confluence uses a custom implementation
|
|
155
|
-
return preloaded ?
|
|
155
|
+
return preloaded ? (0, _platformFeatureFlags.fg)('platform_editor_extension_renderer_promise_fix') ?
|
|
156
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
157
|
+
Promise.resolve((0, _resolveImportSync.resolveImportSync)(preloaded)) :
|
|
156
158
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
157
159
|
(0, _resolveImportSync.resolveImportSync)(preloaded) : (0, _manifestHelpers.resolveImport)(maybePromise.render());
|
|
158
160
|
}
|
|
@@ -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 = "116.1
|
|
31
|
+
var packageVersion = "116.2.1";
|
|
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 = "116.1
|
|
27
|
+
var packageVersion = "116.2.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -89,7 +89,9 @@ export function getNodeRenderer(extensionProvider, extensionType, extensionKey)
|
|
|
89
89
|
const preloaded = maybePromise === null || maybePromise === void 0 ? void 0 : (_renderSync = (_ref = maybePromise).renderSync) === null || _renderSync === void 0 ? void 0 : _renderSync.call(_ref);
|
|
90
90
|
// Only product implemented preloading will return sync result
|
|
91
91
|
// However the out-of-box won't handle this. Confluence uses a custom implementation
|
|
92
|
-
return preloaded ?
|
|
92
|
+
return preloaded ? fg('platform_editor_extension_renderer_promise_fix') ?
|
|
93
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
94
|
+
Promise.resolve(resolveImportSync(preloaded)) :
|
|
93
95
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
94
96
|
resolveImportSync(preloaded) : resolveImport(maybePromise.render());
|
|
95
97
|
}
|
|
@@ -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 = "116.1
|
|
17
|
+
const packageVersion = "116.2.1";
|
|
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';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "116.1
|
|
17
|
+
const packageVersion = "116.2.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -137,7 +137,9 @@ export function getNodeRenderer(extensionProvider, extensionType, extensionKey)
|
|
|
137
137
|
var preloaded = maybePromise === null || maybePromise === void 0 || (_renderSync = (_ref = maybePromise).renderSync) === null || _renderSync === void 0 ? void 0 : _renderSync.call(_ref);
|
|
138
138
|
// Only product implemented preloading will return sync result
|
|
139
139
|
// However the out-of-box won't handle this. Confluence uses a custom implementation
|
|
140
|
-
return preloaded ?
|
|
140
|
+
return preloaded ? fg('platform_editor_extension_renderer_promise_fix') ?
|
|
141
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
142
|
+
Promise.resolve(resolveImportSync(preloaded)) :
|
|
141
143
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
142
144
|
resolveImportSync(preloaded) : resolveImport(maybePromise.render());
|
|
143
145
|
}
|
|
@@ -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 = "116.1
|
|
23
|
+
var packageVersion = "116.2.1";
|
|
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';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "116.1
|
|
24
|
+
var packageVersion = "116.2.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "116.2.
|
|
3
|
+
"version": "116.2.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/"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/primitives": "^20.0.0",
|
|
72
72
|
"@atlaskit/profilecard": "^26.0.0",
|
|
73
73
|
"@atlaskit/prosemirror-history": "^1.0.0",
|
|
74
|
-
"@atlaskit/react-ufo": "^7.
|
|
74
|
+
"@atlaskit/react-ufo": "^7.1.0",
|
|
75
75
|
"@atlaskit/section-message": "^9.0.0",
|
|
76
76
|
"@atlaskit/smart-card": "^45.0.0",
|
|
77
77
|
"@atlaskit/smart-user-picker": "^11.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/task-decision": "^21.0.0",
|
|
80
80
|
"@atlaskit/teams-app-config": "^2.0.0",
|
|
81
81
|
"@atlaskit/textfield": "^9.0.0",
|
|
82
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
82
|
+
"@atlaskit/tmp-editor-statsig": "^106.0.0",
|
|
83
83
|
"@atlaskit/tokens": "^14.0.0",
|
|
84
84
|
"@atlaskit/tooltip": "^23.0.0",
|
|
85
85
|
"@atlaskit/width-detector": "^6.0.0",
|
|
@@ -253,6 +253,9 @@
|
|
|
253
253
|
"tinymce_display_unknown_macro_body_content": {
|
|
254
254
|
"type": "boolean"
|
|
255
255
|
},
|
|
256
|
+
"platform_editor_extension_renderer_promise_fix": {
|
|
257
|
+
"type": "boolean"
|
|
258
|
+
},
|
|
256
259
|
"platform_editor_media_border_radius_fix": {
|
|
257
260
|
"type": "boolean"
|
|
258
261
|
},
|