@atlaskit/adf-utils 19.27.16 → 19.27.17
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,16 @@
|
|
|
1
1
|
# @atlaskit/adf-utils
|
|
2
2
|
|
|
3
|
+
## 19.27.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`aa4e1fcb89ca8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aa4e1fcb89ca8) -
|
|
8
|
+
Added new `platform_editor_flexible_list_schema` experiment that independently enables ADF schema
|
|
9
|
+
and CSS rendering support for flexible lists, without creation behaviour. Updated schema node
|
|
10
|
+
selection, CSS rendering, ADF validation, and task list schema to use the new gate. Indent/outdent
|
|
11
|
+
behaviour remains on the existing `platform_editor_flexible_list_indentation` gate.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 19.27.16
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -86,7 +86,7 @@ function createSpec(nodes, marks) {
|
|
|
86
86
|
// Ignored via go/ees005
|
|
87
87
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
88
88
|
var spec = _objectSpread({}, specs[k]);
|
|
89
|
-
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('
|
|
89
|
+
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_flexible_list_schema', 'isEnabled', true) && isVariant(spec) &&
|
|
90
90
|
// Only apply to variants which are explicitly marked for override in `variantSpecOverrides`
|
|
91
91
|
Object.values(variantSpecOverrides).includes(k)) {
|
|
92
92
|
// This allows the variant spec to also have the content normalization applied to it
|
|
@@ -378,7 +378,7 @@ var applyVariantSpecOverrides = function applyVariantSpecOverrides(validatorSpec
|
|
|
378
378
|
};
|
|
379
379
|
function validator(nodes, marks, options) {
|
|
380
380
|
var validatorSpecs = createSpec(nodes, marks);
|
|
381
|
-
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('
|
|
381
|
+
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_flexible_list_schema', 'isEnabled', true)) {
|
|
382
382
|
applyVariantSpecOverrides(validatorSpecs);
|
|
383
383
|
}
|
|
384
384
|
var _ref4 = options || {},
|
|
@@ -66,7 +66,7 @@ export function createSpec(nodes, marks) {
|
|
|
66
66
|
let spec = {
|
|
67
67
|
...specs[k]
|
|
68
68
|
};
|
|
69
|
-
if (expValEqualsNoExposure('
|
|
69
|
+
if (expValEqualsNoExposure('platform_editor_flexible_list_schema', 'isEnabled', true) && isVariant(spec) &&
|
|
70
70
|
// Only apply to variants which are explicitly marked for override in `variantSpecOverrides`
|
|
71
71
|
Object.values(variantSpecOverrides).includes(k)) {
|
|
72
72
|
// This allows the variant spec to also have the content normalization applied to it
|
|
@@ -340,7 +340,7 @@ const applyVariantSpecOverrides = validatorSpecs => {
|
|
|
340
340
|
};
|
|
341
341
|
export function validator(nodes, marks, options) {
|
|
342
342
|
const validatorSpecs = createSpec(nodes, marks);
|
|
343
|
-
if (expValEqualsNoExposure('
|
|
343
|
+
if (expValEqualsNoExposure('platform_editor_flexible_list_schema', 'isEnabled', true)) {
|
|
344
344
|
applyVariantSpecOverrides(validatorSpecs);
|
|
345
345
|
}
|
|
346
346
|
const {
|
|
@@ -77,7 +77,7 @@ export function createSpec(nodes, marks) {
|
|
|
77
77
|
// Ignored via go/ees005
|
|
78
78
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
79
79
|
var spec = _objectSpread({}, specs[k]);
|
|
80
|
-
if (expValEqualsNoExposure('
|
|
80
|
+
if (expValEqualsNoExposure('platform_editor_flexible_list_schema', 'isEnabled', true) && isVariant(spec) &&
|
|
81
81
|
// Only apply to variants which are explicitly marked for override in `variantSpecOverrides`
|
|
82
82
|
Object.values(variantSpecOverrides).includes(k)) {
|
|
83
83
|
// This allows the variant spec to also have the content normalization applied to it
|
|
@@ -369,7 +369,7 @@ var applyVariantSpecOverrides = function applyVariantSpecOverrides(validatorSpec
|
|
|
369
369
|
};
|
|
370
370
|
export function validator(nodes, marks, options) {
|
|
371
371
|
var validatorSpecs = createSpec(nodes, marks);
|
|
372
|
-
if (expValEqualsNoExposure('
|
|
372
|
+
if (expValEqualsNoExposure('platform_editor_flexible_list_schema', 'isEnabled', true)) {
|
|
373
373
|
applyVariantSpecOverrides(validatorSpecs);
|
|
374
374
|
}
|
|
375
375
|
var _ref4 = options || {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-utils",
|
|
3
|
-
"version": "19.27.
|
|
3
|
+
"version": "19.27.17",
|
|
4
4
|
"description": "Set of utilities to traverse, modify and create ADF documents.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/adf-schema": "^52.4.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
31
|
-
"@atlaskit/tmp-editor-statsig": "^44.
|
|
31
|
+
"@atlaskit/tmp-editor-statsig": "^44.2.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|