@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 52.4.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 52.4.16
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 52.4.15
4
16
 
5
17
  ### Patch Changes
@@ -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
- attrs['style'] = "flex-basis: ".concat(width, "%");
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
- attrs['style'] = "flex-basis: ".concat(width, "%");
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
- attrs['style'] = `flex-basis: ${width}%`;
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
- attrs['style'] = `flex-basis: ${width}%`;
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
- attrs['style'] = "flex-basis: ".concat(width, "%");
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
- attrs['style'] = "flex-basis: ".concat(width, "%");
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
@@ -1,4 +1,5 @@
1
1
  // Import the ESLint plugin locally
2
+ // eslint-disable-next-line import/no-extraneous-dependencies
2
3
  const tsParser = require('@typescript-eslint/parser');
3
4
  const warnSchemaEslintPlugin = require('./eslint-plugin-warn-schema');
4
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "52.4.15",
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": "^54.0.0",
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",