@atlaskit/adf-schema 52.4.15 → 52.4.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 +12 -0
- package/dist/cjs/schema/nodes/layout-column.js +7 -2
- package/dist/es2019/schema/nodes/layout-column.js +7 -2
- package/dist/esm/schema/nodes/layout-column.js +7 -2
- package/dist/types/steps/link-meta-step.d.ts +3 -1
- package/dist/types-ts4.5/steps/link-meta-step.d.ts +3 -1
- package/eslint.config.js +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.layoutColumnWithLocalId = exports.layoutColumn = void 0;
|
|
7
7
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
|
8
8
|
var _uuid = require("../../utils/uuid");
|
|
9
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
9
10
|
/**
|
|
10
11
|
* @name layoutColumn_node
|
|
11
12
|
*/
|
|
@@ -31,7 +32,9 @@ var layoutColumn = exports.layoutColumn = (0, _nodeTypes.layoutColumn)({
|
|
|
31
32
|
};
|
|
32
33
|
var width = node.attrs.width;
|
|
33
34
|
if (width) {
|
|
34
|
-
|
|
35
|
+
var baseStyle = "flex-basis: ".concat(width, "%");
|
|
36
|
+
var columnWidthVar = (0, _experiments.editorExperiment)('platform_editor_layout_column_resize_handle', true) ? "; --column-width: ".concat(width, "%") : '';
|
|
37
|
+
attrs['style'] = baseStyle + columnWidthVar;
|
|
35
38
|
attrs['data-column-width'] = "".concat(width);
|
|
36
39
|
}
|
|
37
40
|
|
|
@@ -69,7 +72,9 @@ var layoutColumnWithLocalId = exports.layoutColumnWithLocalId = (0, _nodeTypes.l
|
|
|
69
72
|
}
|
|
70
73
|
var width = node.attrs.width;
|
|
71
74
|
if (width) {
|
|
72
|
-
|
|
75
|
+
var baseStyle = "flex-basis: ".concat(width, "%");
|
|
76
|
+
var columnWidthVar = (0, _experiments.editorExperiment)('platform_editor_layout_column_resize_handle', true) ? "; --column-width: ".concat(width, "%") : '';
|
|
77
|
+
attrs['style'] = baseStyle + columnWidthVar;
|
|
73
78
|
attrs['data-column-width'] = "".concat(width);
|
|
74
79
|
}
|
|
75
80
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { layoutColumn as layoutColumnFactory } from '../../next-schema/generated/nodeTypes';
|
|
2
2
|
import { uuid } from '../../utils/uuid';
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* @name layoutColumn_node
|
|
@@ -28,7 +29,9 @@ export const layoutColumn = layoutColumnFactory({
|
|
|
28
29
|
width
|
|
29
30
|
} = node.attrs;
|
|
30
31
|
if (width) {
|
|
31
|
-
|
|
32
|
+
const baseStyle = `flex-basis: ${width}%`;
|
|
33
|
+
const columnWidthVar = editorExperiment('platform_editor_layout_column_resize_handle', true) ? `; --column-width: ${width}%` : '';
|
|
34
|
+
attrs['style'] = baseStyle + columnWidthVar;
|
|
32
35
|
attrs['data-column-width'] = `${width}`;
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -68,7 +71,9 @@ export const layoutColumnWithLocalId = layoutColumnFactory({
|
|
|
68
71
|
width
|
|
69
72
|
} = node.attrs;
|
|
70
73
|
if (width) {
|
|
71
|
-
|
|
74
|
+
const baseStyle = `flex-basis: ${width}%`;
|
|
75
|
+
const columnWidthVar = editorExperiment('platform_editor_layout_column_resize_handle', true) ? `; --column-width: ${width}%` : '';
|
|
76
|
+
attrs['style'] = baseStyle + columnWidthVar;
|
|
72
77
|
attrs['data-column-width'] = `${width}`;
|
|
73
78
|
}
|
|
74
79
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { layoutColumn as layoutColumnFactory } from '../../next-schema/generated/nodeTypes';
|
|
2
2
|
import { uuid } from '../../utils/uuid';
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* @name layoutColumn_node
|
|
@@ -26,7 +27,9 @@ export var layoutColumn = layoutColumnFactory({
|
|
|
26
27
|
};
|
|
27
28
|
var width = node.attrs.width;
|
|
28
29
|
if (width) {
|
|
29
|
-
|
|
30
|
+
var baseStyle = "flex-basis: ".concat(width, "%");
|
|
31
|
+
var columnWidthVar = editorExperiment('platform_editor_layout_column_resize_handle', true) ? "; --column-width: ".concat(width, "%") : '';
|
|
32
|
+
attrs['style'] = baseStyle + columnWidthVar;
|
|
30
33
|
attrs['data-column-width'] = "".concat(width);
|
|
31
34
|
}
|
|
32
35
|
|
|
@@ -64,7 +67,9 @@ export var layoutColumnWithLocalId = layoutColumnFactory({
|
|
|
64
67
|
}
|
|
65
68
|
var width = node.attrs.width;
|
|
66
69
|
if (width) {
|
|
67
|
-
|
|
70
|
+
var baseStyle = "flex-basis: ".concat(width, "%");
|
|
71
|
+
var columnWidthVar = editorExperiment('platform_editor_layout_column_resize_handle', true) ? "; --column-width: ".concat(width, "%") : '';
|
|
72
|
+
attrs['style'] = baseStyle + columnWidthVar;
|
|
68
73
|
attrs['data-column-width'] = "".concat(width);
|
|
69
74
|
}
|
|
70
75
|
|
|
@@ -11,8 +11,10 @@ export type LinkStepMetadata = {
|
|
|
11
11
|
/**
|
|
12
12
|
* The applicable card action for this step
|
|
13
13
|
* if is RESOLVE then the undo/redo steps should be considered "updates" of a link
|
|
14
|
+
* if is AUTO_CONVERT then the transaction is converting a link to a non-link node (e.g. extension)
|
|
15
|
+
* and the link removal should not be tracked as a deletion
|
|
14
16
|
*/
|
|
15
|
-
cardAction?: 'RESOLVE';
|
|
17
|
+
cardAction?: 'RESOLVE' | 'AUTO_CONVERT';
|
|
16
18
|
/**
|
|
17
19
|
* Editor input method that triggered the transaction
|
|
18
20
|
*/
|
|
@@ -11,8 +11,10 @@ export type LinkStepMetadata = {
|
|
|
11
11
|
/**
|
|
12
12
|
* The applicable card action for this step
|
|
13
13
|
* if is RESOLVE then the undo/redo steps should be considered "updates" of a link
|
|
14
|
+
* if is AUTO_CONVERT then the transaction is converting a link to a non-link node (e.g. extension)
|
|
15
|
+
* and the link removal should not be tracked as a deletion
|
|
14
16
|
*/
|
|
15
|
-
cardAction?: 'RESOLVE';
|
|
17
|
+
cardAction?: 'RESOLVE' | 'AUTO_CONVERT';
|
|
16
18
|
/**
|
|
17
19
|
* Editor input method that triggered the transaction
|
|
18
20
|
*/
|
package/eslint.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/adf-schema",
|
|
3
|
-
"version": "52.4.
|
|
3
|
+
"version": "52.4.17",
|
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atlaskit/adf-schema-generator": "^2.2.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^56.0.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"css-color-names": "0.0.4",
|
|
48
48
|
"linkify-it": "^3.0.3",
|