@atlaskit/adf-utils 19.0.21 → 19.0.23
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 +12 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/builders/types.js +1 -5
- package/dist/cjs/types/index.js +1 -5
- package/dist/cjs/validator/custom-specs/inline-card-with-annotation.js +35 -0
- package/dist/cjs/validator/entry.js +1 -5
- package/dist/cjs/validator/specs/inlineCard.js +1 -0
- package/dist/cjs/validator/validator.js +13 -7
- package/dist/es2019/builders/types.js +0 -1
- package/dist/es2019/types/index.js +0 -1
- package/dist/es2019/validator/custom-specs/inline-card-with-annotation.js +29 -0
- package/dist/es2019/validator/entry.js +0 -1
- package/dist/es2019/validator/specs/inlineCard.js +1 -0
- package/dist/es2019/validator/validator.js +13 -5
- package/dist/esm/builders/types.js +0 -1
- package/dist/esm/types/index.js +0 -1
- package/dist/esm/validator/custom-specs/inline-card-with-annotation.js +29 -0
- package/dist/esm/validator/entry.js +0 -1
- package/dist/esm/validator/specs/inlineCard.js +1 -0
- package/dist/esm/validator/validator.js +11 -5
- package/dist/types/types/validatorTypes.d.ts +1 -1
- package/dist/types/validator/custom-specs/inline-card-with-annotation.d.ts +30 -0
- package/dist/types/validator/validator.d.ts +1 -1
- package/dist/types-ts4.5/types/validatorTypes.d.ts +1 -1
- package/dist/types-ts4.5/validator/custom-specs/inline-card-with-annotation.d.ts +30 -0
- package/dist/types-ts4.5/validator/validator.d.ts +1 -1
- package/package.json +10 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/adf-utils
|
|
2
2
|
|
|
3
|
+
## 19.0.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679) [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) - ED-22553 Updating adf-schema version to 35.6.0
|
|
8
|
+
|
|
9
|
+
## 19.0.22
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#79538](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79538) [`d4d91668d3ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d4d91668d3ac) - ED-22501 Update validator specs for inline-card based on feature flag
|
|
14
|
+
|
|
3
15
|
## 19.0.21
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/dist/cjs/types/index.js
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.inlineCardWithAnnotation = void 0;
|
|
7
|
+
// This is a custom spec we're using for inline card till the inline comments feature is fully rolled out.
|
|
8
|
+
var inlineCardWithAnnotation = exports.inlineCardWithAnnotation = {
|
|
9
|
+
props: {
|
|
10
|
+
type: {
|
|
11
|
+
type: 'enum',
|
|
12
|
+
values: ['inlineCard']
|
|
13
|
+
},
|
|
14
|
+
attrs: [{
|
|
15
|
+
props: {
|
|
16
|
+
url: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
validatorFn: 'safeUrl'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
props: {
|
|
23
|
+
data: {
|
|
24
|
+
type: 'object'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}],
|
|
28
|
+
marks: {
|
|
29
|
+
type: 'array',
|
|
30
|
+
items: ['annotation'],
|
|
31
|
+
optional: true
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
required: ['attrs']
|
|
35
|
+
};
|
|
@@ -10,12 +10,14 @@ exports.validator = validator;
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
14
|
var specs = _interopRequireWildcard(require("./specs"));
|
|
15
|
+
var _inlineCardWithAnnotation = require("./custom-specs/inline-card-with-annotation");
|
|
14
16
|
var _utils = require("./utils");
|
|
15
17
|
var _rules = require("./rules");
|
|
16
18
|
var _excluded = ["items"];
|
|
17
|
-
function _getRequireWildcardCache(
|
|
18
|
-
function _interopRequireWildcard(
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
21
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
23
|
function mapMarksItems(spec) {
|
|
@@ -54,14 +56,18 @@ var partitionObject = function partitionObject(obj, predicate) {
|
|
|
54
56
|
* We denormalised the spec to save bundle size.
|
|
55
57
|
*/
|
|
56
58
|
function createSpec(nodes, marks) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
var _specs = _objectSpread({}, specs);
|
|
60
|
+
if (!!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes')) {
|
|
61
|
+
_specs.inlineCard = _inlineCardWithAnnotation.inlineCardWithAnnotation;
|
|
62
|
+
}
|
|
63
|
+
return Object.keys(_specs).reduce(function (newSpecs, k) {
|
|
64
|
+
var spec = _objectSpread({}, _specs[k]);
|
|
59
65
|
if (spec.props) {
|
|
60
66
|
spec.props = _objectSpread({}, spec.props);
|
|
61
67
|
if (spec.props.content) {
|
|
62
68
|
// 'tableCell_content' => { type: 'array', items: [ ... ] }
|
|
63
69
|
if ((0, _utils.isString)(spec.props.content)) {
|
|
64
|
-
spec.props.content =
|
|
70
|
+
spec.props.content = _specs[spec.props.content];
|
|
65
71
|
}
|
|
66
72
|
|
|
67
73
|
// ['inline', 'emoji']
|
|
@@ -89,12 +95,12 @@ function createSpec(nodes, marks) {
|
|
|
89
95
|
// ['inline'] => [['emoji', 'hr', ...]]
|
|
90
96
|
// ['media'] => [['media']]
|
|
91
97
|
.map(function (item) {
|
|
92
|
-
return (0, _utils.isString)(item) ? Array.isArray(
|
|
98
|
+
return (0, _utils.isString)(item) ? Array.isArray(_specs[item]) ? _specs[item] : [item] : item;
|
|
93
99
|
})
|
|
94
100
|
// [['emoji', 'hr', 'inline_code']] => [['emoji', 'hr', ['text', { marks: {} }]]]
|
|
95
101
|
.map(function (item) {
|
|
96
102
|
return item.map(function (subItem) {
|
|
97
|
-
return Array.isArray(
|
|
103
|
+
return Array.isArray(_specs[subItem]) ? _specs[subItem] : (0, _utils.isString)(subItem) ? subItem :
|
|
98
104
|
// Now `NoMark` produces `items: []`, should be fixed in generator
|
|
99
105
|
['text', subItem];
|
|
100
106
|
})
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// This is a custom spec we're using for inline card till the inline comments feature is fully rolled out.
|
|
2
|
+
export const inlineCardWithAnnotation = {
|
|
3
|
+
props: {
|
|
4
|
+
type: {
|
|
5
|
+
type: 'enum',
|
|
6
|
+
values: ['inlineCard']
|
|
7
|
+
},
|
|
8
|
+
attrs: [{
|
|
9
|
+
props: {
|
|
10
|
+
url: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
validatorFn: 'safeUrl'
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
props: {
|
|
17
|
+
data: {
|
|
18
|
+
type: 'object'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}],
|
|
22
|
+
marks: {
|
|
23
|
+
type: 'array',
|
|
24
|
+
items: ['annotation'],
|
|
25
|
+
optional: true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
required: ['attrs']
|
|
29
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import * as specs from './specs';
|
|
3
|
+
import { inlineCardWithAnnotation } from './custom-specs/inline-card-with-annotation';
|
|
2
4
|
import { copy, isBoolean, isDefined, isInteger, isNumber, isPlainObject, isString, makeArray } from './utils';
|
|
3
5
|
import { validatorFnMap } from './rules';
|
|
4
6
|
function mapMarksItems(spec, fn = x => x) {
|
|
@@ -36,9 +38,15 @@ const partitionObject = (obj, predicate) => Object.keys(obj).reduce((acc, key) =
|
|
|
36
38
|
* We denormalised the spec to save bundle size.
|
|
37
39
|
*/
|
|
38
40
|
function createSpec(nodes, marks) {
|
|
39
|
-
|
|
41
|
+
let _specs = {
|
|
42
|
+
...specs
|
|
43
|
+
};
|
|
44
|
+
if (!!getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes')) {
|
|
45
|
+
_specs.inlineCard = inlineCardWithAnnotation;
|
|
46
|
+
}
|
|
47
|
+
return Object.keys(_specs).reduce((newSpecs, k) => {
|
|
40
48
|
const spec = {
|
|
41
|
-
...
|
|
49
|
+
..._specs[k]
|
|
42
50
|
};
|
|
43
51
|
if (spec.props) {
|
|
44
52
|
spec.props = {
|
|
@@ -47,7 +55,7 @@ function createSpec(nodes, marks) {
|
|
|
47
55
|
if (spec.props.content) {
|
|
48
56
|
// 'tableCell_content' => { type: 'array', items: [ ... ] }
|
|
49
57
|
if (isString(spec.props.content)) {
|
|
50
|
-
spec.props.content =
|
|
58
|
+
spec.props.content = _specs[spec.props.content];
|
|
51
59
|
}
|
|
52
60
|
|
|
53
61
|
// ['inline', 'emoji']
|
|
@@ -74,9 +82,9 @@ function createSpec(nodes, marks) {
|
|
|
74
82
|
|
|
75
83
|
// ['inline'] => [['emoji', 'hr', ...]]
|
|
76
84
|
// ['media'] => [['media']]
|
|
77
|
-
.map(item => isString(item) ? Array.isArray(
|
|
85
|
+
.map(item => isString(item) ? Array.isArray(_specs[item]) ? _specs[item] : [item] : item)
|
|
78
86
|
// [['emoji', 'hr', 'inline_code']] => [['emoji', 'hr', ['text', { marks: {} }]]]
|
|
79
|
-
.map(item => item.map(subItem => Array.isArray(
|
|
87
|
+
.map(item => item.map(subItem => Array.isArray(_specs[subItem]) ? _specs[subItem] : isString(subItem) ? subItem :
|
|
80
88
|
// Now `NoMark` produces `items: []`, should be fixed in generator
|
|
81
89
|
['text', subItem])
|
|
82
90
|
// Remove unsupported nodes & marks
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/esm/types/index.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// This is a custom spec we're using for inline card till the inline comments feature is fully rolled out.
|
|
2
|
+
export var inlineCardWithAnnotation = {
|
|
3
|
+
props: {
|
|
4
|
+
type: {
|
|
5
|
+
type: 'enum',
|
|
6
|
+
values: ['inlineCard']
|
|
7
|
+
},
|
|
8
|
+
attrs: [{
|
|
9
|
+
props: {
|
|
10
|
+
url: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
validatorFn: 'safeUrl'
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}, {
|
|
16
|
+
props: {
|
|
17
|
+
data: {
|
|
18
|
+
type: 'object'
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}],
|
|
22
|
+
marks: {
|
|
23
|
+
type: 'array',
|
|
24
|
+
items: ['annotation'],
|
|
25
|
+
optional: true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
required: ['attrs']
|
|
29
|
+
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -4,7 +4,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
var _excluded = ["items"];
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import * as specs from './specs';
|
|
9
|
+
import { inlineCardWithAnnotation } from './custom-specs/inline-card-with-annotation';
|
|
8
10
|
import { copy, isBoolean, isDefined, isInteger, isNumber, isPlainObject, isString, makeArray } from './utils';
|
|
9
11
|
import { validatorFnMap } from './rules';
|
|
10
12
|
function mapMarksItems(spec) {
|
|
@@ -43,14 +45,18 @@ var partitionObject = function partitionObject(obj, predicate) {
|
|
|
43
45
|
* We denormalised the spec to save bundle size.
|
|
44
46
|
*/
|
|
45
47
|
function createSpec(nodes, marks) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
var _specs = _objectSpread({}, specs);
|
|
49
|
+
if (!!getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes')) {
|
|
50
|
+
_specs.inlineCard = inlineCardWithAnnotation;
|
|
51
|
+
}
|
|
52
|
+
return Object.keys(_specs).reduce(function (newSpecs, k) {
|
|
53
|
+
var spec = _objectSpread({}, _specs[k]);
|
|
48
54
|
if (spec.props) {
|
|
49
55
|
spec.props = _objectSpread({}, spec.props);
|
|
50
56
|
if (spec.props.content) {
|
|
51
57
|
// 'tableCell_content' => { type: 'array', items: [ ... ] }
|
|
52
58
|
if (isString(spec.props.content)) {
|
|
53
|
-
spec.props.content =
|
|
59
|
+
spec.props.content = _specs[spec.props.content];
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
// ['inline', 'emoji']
|
|
@@ -78,12 +84,12 @@ function createSpec(nodes, marks) {
|
|
|
78
84
|
// ['inline'] => [['emoji', 'hr', ...]]
|
|
79
85
|
// ['media'] => [['media']]
|
|
80
86
|
.map(function (item) {
|
|
81
|
-
return isString(item) ? Array.isArray(
|
|
87
|
+
return isString(item) ? Array.isArray(_specs[item]) ? _specs[item] : [item] : item;
|
|
82
88
|
})
|
|
83
89
|
// [['emoji', 'hr', 'inline_code']] => [['emoji', 'hr', ['text', { marks: {} }]]]
|
|
84
90
|
.map(function (item) {
|
|
85
91
|
return item.map(function (subItem) {
|
|
86
|
-
return Array.isArray(
|
|
92
|
+
return Array.isArray(_specs[subItem]) ? _specs[subItem] : isString(subItem) ? subItem :
|
|
87
93
|
// Now `NoMark` produces `items: []`, should be fixed in generator
|
|
88
94
|
['text', subItem];
|
|
89
95
|
})
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const inlineCardWithAnnotation: {
|
|
2
|
+
props: {
|
|
3
|
+
type: {
|
|
4
|
+
type: string;
|
|
5
|
+
values: string[];
|
|
6
|
+
};
|
|
7
|
+
attrs: ({
|
|
8
|
+
props: {
|
|
9
|
+
url: {
|
|
10
|
+
type: string;
|
|
11
|
+
validatorFn: string;
|
|
12
|
+
};
|
|
13
|
+
data?: undefined;
|
|
14
|
+
};
|
|
15
|
+
} | {
|
|
16
|
+
props: {
|
|
17
|
+
data: {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
url?: undefined;
|
|
21
|
+
};
|
|
22
|
+
})[];
|
|
23
|
+
marks: {
|
|
24
|
+
type: string;
|
|
25
|
+
items: string[];
|
|
26
|
+
optional: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
required: string[];
|
|
30
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AttributesSpec, ValidationOptions, Validate } from '../types/validatorTypes';
|
|
1
|
+
import type { AttributesSpec, ValidationOptions, Validate } from '../types/validatorTypes';
|
|
2
2
|
export declare function validateAttrs<T>(spec: AttributesSpec, value: T): boolean;
|
|
3
3
|
export declare function validator(nodes?: Array<string>, marks?: Array<string>, options?: ValidationOptions): Validate;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const inlineCardWithAnnotation: {
|
|
2
|
+
props: {
|
|
3
|
+
type: {
|
|
4
|
+
type: string;
|
|
5
|
+
values: string[];
|
|
6
|
+
};
|
|
7
|
+
attrs: ({
|
|
8
|
+
props: {
|
|
9
|
+
url: {
|
|
10
|
+
type: string;
|
|
11
|
+
validatorFn: string;
|
|
12
|
+
};
|
|
13
|
+
data?: undefined;
|
|
14
|
+
};
|
|
15
|
+
} | {
|
|
16
|
+
props: {
|
|
17
|
+
data: {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
url?: undefined;
|
|
21
|
+
};
|
|
22
|
+
})[];
|
|
23
|
+
marks: {
|
|
24
|
+
type: string;
|
|
25
|
+
items: string[];
|
|
26
|
+
optional: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
required: string[];
|
|
30
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AttributesSpec, ValidationOptions, Validate } from '../types/validatorTypes';
|
|
1
|
+
import type { AttributesSpec, ValidationOptions, Validate } from '../types/validatorTypes';
|
|
2
2
|
export declare function validateAttrs<T>(spec: AttributesSpec, value: T): boolean;
|
|
3
3
|
export declare function validator(nodes?: Array<string>, marks?: Array<string>, options?: ValidationOptions): Validate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-utils",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.23",
|
|
4
4
|
"description": "Set of utilities to traverse, modify and create ADF documents.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,13 +41,15 @@
|
|
|
41
41
|
"generate:spec": "rm -rf ./src/validator/specs/ && yarn json-schema-generator --outDir=./src/validator/specs/ --mode=Spec --stage=0 ./src/validator/entry.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/adf-schema": "^35.
|
|
44
|
+
"@atlaskit/adf-schema": "^35.6.0",
|
|
45
45
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
46
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
46
47
|
"@babel/runtime": "^7.0.0"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@atlassian/adf-schema-json": "^1.0.7",
|
|
50
51
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
52
|
+
"@atlassian/feature-flags-test-utils": "*",
|
|
51
53
|
"jscodeshift": "^0.13.0",
|
|
52
54
|
"react": "^16.8.0",
|
|
53
55
|
"typescript": "~4.9.5",
|
|
@@ -66,5 +68,10 @@
|
|
|
66
68
|
]
|
|
67
69
|
}
|
|
68
70
|
},
|
|
69
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
71
|
+
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
72
|
+
"platform-feature-flags": {
|
|
73
|
+
"platform.editor.allow-inline-comments-for-inline-nodes": {
|
|
74
|
+
"type": "boolean"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
70
77
|
}
|