@atlaskit/editor-common 119.9.3 → 119.9.5
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 +37 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/validate-using-spec.js +5 -4
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/validate-using-spec.js +5 -4
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/validate-using-spec.js +5 -4
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 119.9.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6158b151ca320`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6158b151ca320) -
|
|
8
|
+
Retire `platform_editor_table_in_panel_patch_1` and let the stage-0 option decide whether
|
|
9
|
+
table-in-panel is accepted.
|
|
10
|
+
|
|
11
|
+
`panel_c1` and `panel_c1_root_only` are `stage0: true` in the schema, so the stage-0 option
|
|
12
|
+
already expresses exactly what the patch flag was gating: a caller validating against stage-0
|
|
13
|
+
accepts table-in-panel at the positions those variants are wired into, `doc`, a layout column and
|
|
14
|
+
a synced block, and a caller validating against full ADF declines them. `validateADFEntity` passes
|
|
15
|
+
`{ stage0: true }` for any caller that does not name `final`, which covers every editor and
|
|
16
|
+
renderer, so table-in-panel keeps working on the paths that need it.
|
|
17
|
+
|
|
18
|
+
Removing the second flag also removes what it had to do to `meta.stage0`. `createSpec` no longer
|
|
19
|
+
clears that annotation from the gated variants, which had granted `breakout` on a root panel to
|
|
20
|
+
full-ADF callers as well, because `panel_c1_root_only` carries both capabilities and the
|
|
21
|
+
annotation is per spec rather than per capability. `withoutStage0Meta` is deleted along with it.
|
|
22
|
+
|
|
23
|
+
`createSpec` withholds the stage-0 variants entirely while `platform_editor_adf_validator_stage0`
|
|
24
|
+
is off, since nothing could decline them for a full-ADF caller and leaving them in place would
|
|
25
|
+
shadow the base `panel` candidate and reject a panel's own children. Table-in-panel therefore
|
|
26
|
+
rides on the stage-0 gate rather than on its own, and `@atlaskit/editor-common` keeps its blunt
|
|
27
|
+
`allowTableInPanel` suppression for exactly as long as that gate is off.
|
|
28
|
+
|
|
29
|
+
`full/invalid/panel-with-nested-table.json` no longer needs an ignore entry: full-ADF validation
|
|
30
|
+
rejects that document and stage-0 validation accepts it, which is what both reference suites say.
|
|
31
|
+
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
|
|
34
|
+
## 119.9.4
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
|
|
3
40
|
## 119.9.3
|
|
4
41
|
|
|
5
42
|
### 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 = "119.9.
|
|
31
|
+
var packageVersion = "119.9.4";
|
|
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 = "119.9.
|
|
27
|
+
var packageVersion = "119.9.4";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -97,10 +97,11 @@ var validationErrorHandler = exports.validationErrorHandler = function validatio
|
|
|
97
97
|
// panel_c1 is a ProseMirror-only variant: on save, table-in-panel documents are stored as
|
|
98
98
|
// plain ADF `panel` nodes containing a `table`. The base validator-spec does not permit
|
|
99
99
|
// `table` inside `panel`, so suppress the INVALID_CONTENT error when the experiment is active.
|
|
100
|
-
//
|
|
101
|
-
//
|
|
102
|
-
//
|
|
103
|
-
|
|
100
|
+
// This suppression is blunt, allowing a table in every panel, and applies only while
|
|
101
|
+
// `platform_editor_adf_validator_stage0` is off. With that gate on, adf-utils offers the stage-0
|
|
102
|
+
// `panel_c1` variants and accepts table-in-panel positionally instead, in `doc`, a layout column
|
|
103
|
+
// and a synced block only.
|
|
104
|
+
if (options.allowTableInPanel && !(0, _fg.fg)('platform_editor_adf_validator_stage0')) {
|
|
104
105
|
var _meta = error.meta;
|
|
105
106
|
if ((_meta === null || _meta === void 0 ? void 0 : _meta.parentType) === 'panel' && error.code === 'INVALID_CONTENT' && entity.type === 'table') {
|
|
106
107
|
return entity;
|
|
@@ -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 = "119.9.
|
|
17
|
+
const packageVersion = "119.9.4";
|
|
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 = "119.9.
|
|
17
|
+
const packageVersion = "119.9.4";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -82,10 +82,11 @@ export const validationErrorHandler = (entity, error, options, marks, validate,
|
|
|
82
82
|
// panel_c1 is a ProseMirror-only variant: on save, table-in-panel documents are stored as
|
|
83
83
|
// plain ADF `panel` nodes containing a `table`. The base validator-spec does not permit
|
|
84
84
|
// `table` inside `panel`, so suppress the INVALID_CONTENT error when the experiment is active.
|
|
85
|
-
//
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
|
|
85
|
+
// This suppression is blunt, allowing a table in every panel, and applies only while
|
|
86
|
+
// `platform_editor_adf_validator_stage0` is off. With that gate on, adf-utils offers the stage-0
|
|
87
|
+
// `panel_c1` variants and accepts table-in-panel positionally instead, in `doc`, a layout column
|
|
88
|
+
// and a synced block only.
|
|
89
|
+
if (options.allowTableInPanel && !fg('platform_editor_adf_validator_stage0')) {
|
|
89
90
|
const meta = error.meta;
|
|
90
91
|
if ((meta === null || meta === void 0 ? void 0 : meta.parentType) === 'panel' && error.code === 'INVALID_CONTENT' && entity.type === 'table') {
|
|
91
92
|
return entity;
|
|
@@ -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 = "119.9.
|
|
23
|
+
var packageVersion = "119.9.4";
|
|
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 = "119.9.
|
|
24
|
+
var packageVersion = "119.9.4";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -84,10 +84,11 @@ export var validationErrorHandler = function validationErrorHandler(entity, erro
|
|
|
84
84
|
// panel_c1 is a ProseMirror-only variant: on save, table-in-panel documents are stored as
|
|
85
85
|
// plain ADF `panel` nodes containing a `table`. The base validator-spec does not permit
|
|
86
86
|
// `table` inside `panel`, so suppress the INVALID_CONTENT error when the experiment is active.
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
|
|
87
|
+
// This suppression is blunt, allowing a table in every panel, and applies only while
|
|
88
|
+
// `platform_editor_adf_validator_stage0` is off. With that gate on, adf-utils offers the stage-0
|
|
89
|
+
// `panel_c1` variants and accepts table-in-panel positionally instead, in `doc`, a layout column
|
|
90
|
+
// and a synced block only.
|
|
91
|
+
if (options.allowTableInPanel && !fg('platform_editor_adf_validator_stage0')) {
|
|
91
92
|
var _meta = error.meta;
|
|
92
93
|
if ((_meta === null || _meta === void 0 ? void 0 : _meta.parentType) === 'panel' && error.code === 'INVALID_CONTENT' && entity.type === 'table') {
|
|
93
94
|
return entity;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "119.9.
|
|
3
|
+
"version": "119.9.5",
|
|
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/"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
50
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
50
|
+
"@atlaskit/editor-toolbar": "^2.5.0",
|
|
51
51
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
52
52
|
"@atlaskit/editor-ui-control-model": "^2.7.0",
|
|
53
53
|
"@atlaskit/emoji": "^72.0.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.8.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^2.2.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.0.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^153.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^16.7.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.0.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.0.0",
|
|
@@ -165,13 +165,13 @@
|
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
"platform-feature-flags": {
|
|
168
|
-
"
|
|
169
|
-
"type": "boolean"
|
|
170
|
-
},
|
|
171
|
-
"platform_editor_table_in_panel_patch_1": {
|
|
168
|
+
"platform_editor_adf_validator_stage0": {
|
|
172
169
|
"type": "boolean",
|
|
173
170
|
"referenceOnly": true
|
|
174
171
|
},
|
|
172
|
+
"platform_editor_use_new_experiments_api": {
|
|
173
|
+
"type": "boolean"
|
|
174
|
+
},
|
|
175
175
|
"platform-dst-popper-consolidation": {
|
|
176
176
|
"type": "boolean",
|
|
177
177
|
"referenceOnly": true
|