@atlaskit/editor-common 110.49.1 → 110.49.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 +9 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/processRawValue.js +17 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/processRawValue.js +19 -6
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/processRawValue.js +17 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.49.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2939bcb36abe7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2939bcb36abe7) -
|
|
8
|
+
Fix nested tables turning into unsupported block nodes under SSR renderer
|
|
9
|
+
- [`f41ee46c84bb1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f41ee46c84bb1) -
|
|
10
|
+
[EDITOR-3881] Fix table styling to work with SSR renderer
|
|
11
|
+
|
|
3
12
|
## 110.49.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "110.49.
|
|
22
|
+
var packageVersion = "110.49.1";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// 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 = "110.49.
|
|
27
|
+
var packageVersion = "110.49.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -9,6 +9,7 @@ exports.processRawValueWithoutValidation = processRawValueWithoutValidation;
|
|
|
9
9
|
var _transforms = require("@atlaskit/adf-utils/transforms");
|
|
10
10
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
11
11
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
13
|
var _analytics = require("../analytics");
|
|
13
14
|
var _privacyFilter = require("./filter/privacy-filter");
|
|
14
15
|
var _trackUnsupportedContent = require("./track-unsupported-content");
|
|
@@ -215,10 +216,6 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
215
216
|
eventType: _analytics.EVENT_TYPE.OPERATIONAL
|
|
216
217
|
});
|
|
217
218
|
}
|
|
218
|
-
|
|
219
|
-
// Convert nested-table extensions into nested tables
|
|
220
|
-
var _transformNestedTable3 = transformNestedTablesWithAnalytics(transformedAdf, dispatchAnalyticsEvent);
|
|
221
|
-
transformedAdf = _transformNestedTable3.transformedAdf;
|
|
222
219
|
if (dispatchAnalyticsEvent) {
|
|
223
220
|
var _transformedAdf$conte;
|
|
224
221
|
var hasSingleColumnLayout = (_transformedAdf$conte = transformedAdf.content) === null || _transformedAdf$conte === void 0 ? void 0 : _transformedAdf$conte.some(function (node) {
|
|
@@ -233,7 +230,22 @@ function processRawValue(schema, value, providerFactory, sanitizePrivateContent,
|
|
|
233
230
|
});
|
|
234
231
|
}
|
|
235
232
|
}
|
|
236
|
-
var entity
|
|
233
|
+
var entity;
|
|
234
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_ssr_renderer', 'isEnabled', true)) {
|
|
235
|
+
// Validate ADF first before converting nested-table extensions into nested tables
|
|
236
|
+
// This matches the renderer's behavior in render-document.ts
|
|
237
|
+
entity = (0, _validateUsingSpec.validateADFEntity)(schema, transformedAdf || node, dispatchAnalyticsEvent);
|
|
238
|
+
|
|
239
|
+
// Convert nested-table extensions into nested tables
|
|
240
|
+
var _transformNestedTable3 = transformNestedTablesWithAnalytics(entity, dispatchAnalyticsEvent);
|
|
241
|
+
transformedAdf = _transformNestedTable3.transformedAdf;
|
|
242
|
+
entity = transformedAdf;
|
|
243
|
+
} else {
|
|
244
|
+
// Convert nested-table extensions into nested tables
|
|
245
|
+
var _transformNestedTable4 = transformNestedTablesWithAnalytics(transformedAdf, dispatchAnalyticsEvent);
|
|
246
|
+
transformedAdf = _transformNestedTable4.transformedAdf;
|
|
247
|
+
entity = (0, _validateUsingSpec.validateADFEntity)(schema, transformedAdf || node, dispatchAnalyticsEvent);
|
|
248
|
+
}
|
|
237
249
|
var newEntity = maySanitizePrivateContent(entity, providerFactory, sanitizePrivateContent);
|
|
238
250
|
var parsedDoc = _model.Node.fromJSON(schema, newEntity);
|
|
239
251
|
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "110.49.
|
|
7
|
+
const packageVersion = "110.49.1";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// 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 = "110.49.
|
|
17
|
+
const packageVersion = "110.49.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { syncBlockFallbackTransform, transformDedupeMarks, transformIndentationMarks, transformInvalidMediaContent, transformMediaLinkMarks, transformNestedTablesIncomingDocument, transformNodesMissingContent, transformTextLinkCodeMarks, transformMediaSingleWidth } from '@atlaskit/adf-utils/transforms';
|
|
2
2
|
import { Fragment, Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
5
6
|
import { sanitizeNodeForPrivacy } from './filter/privacy-filter';
|
|
6
7
|
import { findAndTrackUnsupportedContentNodes } from './track-unsupported-content';
|
|
@@ -214,11 +215,6 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
214
215
|
eventType: EVENT_TYPE.OPERATIONAL
|
|
215
216
|
});
|
|
216
217
|
}
|
|
217
|
-
|
|
218
|
-
// Convert nested-table extensions into nested tables
|
|
219
|
-
({
|
|
220
|
-
transformedAdf
|
|
221
|
-
} = transformNestedTablesWithAnalytics(transformedAdf, dispatchAnalyticsEvent));
|
|
222
218
|
if (dispatchAnalyticsEvent) {
|
|
223
219
|
var _transformedAdf$conte;
|
|
224
220
|
const hasSingleColumnLayout = (_transformedAdf$conte = transformedAdf.content) === null || _transformedAdf$conte === void 0 ? void 0 : _transformedAdf$conte.some(node => {
|
|
@@ -233,7 +229,24 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
233
229
|
});
|
|
234
230
|
}
|
|
235
231
|
}
|
|
236
|
-
|
|
232
|
+
let entity;
|
|
233
|
+
if (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true)) {
|
|
234
|
+
// Validate ADF first before converting nested-table extensions into nested tables
|
|
235
|
+
// This matches the renderer's behavior in render-document.ts
|
|
236
|
+
entity = validateADFEntity(schema, transformedAdf || node, dispatchAnalyticsEvent);
|
|
237
|
+
|
|
238
|
+
// Convert nested-table extensions into nested tables
|
|
239
|
+
({
|
|
240
|
+
transformedAdf
|
|
241
|
+
} = transformNestedTablesWithAnalytics(entity, dispatchAnalyticsEvent));
|
|
242
|
+
entity = transformedAdf;
|
|
243
|
+
} else {
|
|
244
|
+
// Convert nested-table extensions into nested tables
|
|
245
|
+
({
|
|
246
|
+
transformedAdf
|
|
247
|
+
} = transformNestedTablesWithAnalytics(transformedAdf, dispatchAnalyticsEvent));
|
|
248
|
+
entity = validateADFEntity(schema, transformedAdf || node, dispatchAnalyticsEvent);
|
|
249
|
+
}
|
|
237
250
|
const newEntity = maySanitizePrivateContent(entity, providerFactory, sanitizePrivateContent);
|
|
238
251
|
const parsedDoc = Node.fromJSON(schema, newEntity);
|
|
239
252
|
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "110.49.
|
|
13
|
+
var packageVersion = "110.49.1";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// 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 = "110.49.
|
|
24
|
+
var packageVersion = "110.49.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { syncBlockFallbackTransform, transformDedupeMarks, transformIndentationMarks, transformInvalidMediaContent, transformMediaLinkMarks, transformNestedTablesIncomingDocument, transformNodesMissingContent, transformTextLinkCodeMarks, transformMediaSingleWidth } from '@atlaskit/adf-utils/transforms';
|
|
2
2
|
import { Fragment, Node } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
5
6
|
import { sanitizeNodeForPrivacy } from './filter/privacy-filter';
|
|
6
7
|
import { findAndTrackUnsupportedContentNodes } from './track-unsupported-content';
|
|
@@ -207,10 +208,6 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
207
208
|
eventType: EVENT_TYPE.OPERATIONAL
|
|
208
209
|
});
|
|
209
210
|
}
|
|
210
|
-
|
|
211
|
-
// Convert nested-table extensions into nested tables
|
|
212
|
-
var _transformNestedTable3 = transformNestedTablesWithAnalytics(transformedAdf, dispatchAnalyticsEvent);
|
|
213
|
-
transformedAdf = _transformNestedTable3.transformedAdf;
|
|
214
211
|
if (dispatchAnalyticsEvent) {
|
|
215
212
|
var _transformedAdf$conte;
|
|
216
213
|
var hasSingleColumnLayout = (_transformedAdf$conte = transformedAdf.content) === null || _transformedAdf$conte === void 0 ? void 0 : _transformedAdf$conte.some(function (node) {
|
|
@@ -225,7 +222,22 @@ export function processRawValue(schema, value, providerFactory, sanitizePrivateC
|
|
|
225
222
|
});
|
|
226
223
|
}
|
|
227
224
|
}
|
|
228
|
-
var entity
|
|
225
|
+
var entity;
|
|
226
|
+
if (expValEquals('platform_editor_ssr_renderer', 'isEnabled', true)) {
|
|
227
|
+
// Validate ADF first before converting nested-table extensions into nested tables
|
|
228
|
+
// This matches the renderer's behavior in render-document.ts
|
|
229
|
+
entity = validateADFEntity(schema, transformedAdf || node, dispatchAnalyticsEvent);
|
|
230
|
+
|
|
231
|
+
// Convert nested-table extensions into nested tables
|
|
232
|
+
var _transformNestedTable3 = transformNestedTablesWithAnalytics(entity, dispatchAnalyticsEvent);
|
|
233
|
+
transformedAdf = _transformNestedTable3.transformedAdf;
|
|
234
|
+
entity = transformedAdf;
|
|
235
|
+
} else {
|
|
236
|
+
// Convert nested-table extensions into nested tables
|
|
237
|
+
var _transformNestedTable4 = transformNestedTablesWithAnalytics(transformedAdf, dispatchAnalyticsEvent);
|
|
238
|
+
transformedAdf = _transformNestedTable4.transformedAdf;
|
|
239
|
+
entity = validateADFEntity(schema, transformedAdf || node, dispatchAnalyticsEvent);
|
|
240
|
+
}
|
|
229
241
|
var newEntity = maySanitizePrivateContent(entity, providerFactory, sanitizePrivateContent);
|
|
230
242
|
var parsedDoc = Node.fromJSON(schema, newEntity);
|
|
231
243
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "110.49.
|
|
3
|
+
"version": "110.49.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/"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@atlaskit/media-viewer": "^52.5.0",
|
|
66
66
|
"@atlaskit/mention": "^24.4.0",
|
|
67
67
|
"@atlaskit/menu": "^8.4.0",
|
|
68
|
-
"@atlaskit/onboarding": "^14.
|
|
68
|
+
"@atlaskit/onboarding": "^14.5.0",
|
|
69
69
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
70
70
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
71
71
|
"@atlaskit/popper": "^7.1.0",
|