@atlaskit/adf-schema 57.1.3 → 57.2.0

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-schema
2
2
 
3
+ ## 57.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6f957d4e7bcb8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6f957d4e7bcb8) -
8
+ Make layout column resizing generally available
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 57.1.3
4
15
 
5
16
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.layoutColumnWithLocalId = exports.layoutColumnStage0 = exports.layoutCol
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _nodeTypes = require("../../next-schema/generated/nodeTypes");
10
10
  var _uuid = require("../../utils/uuid");
11
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
12
11
  var _valign = require("./types/valign");
13
12
  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; }
14
13
  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; }
@@ -25,8 +24,7 @@ var setColumnAttributes = function setColumnAttributes(node) {
25
24
  localId = _node$attrs.localId;
26
25
  if (width) {
27
26
  var baseStyle = "flex-basis: ".concat(width, "%");
28
- var columnWidthVar = (0, _experiments.editorExperiment)('platform_editor_layout_column_resize_handle', true) ? "; --column-width: ".concat(width, "%") : '';
29
- attrs['style'] = baseStyle + columnWidthVar;
27
+ attrs['style'] = "".concat(baseStyle, "; --column-width: ").concat(width, "%");
30
28
  attrs['data-column-width'] = "".concat(width);
31
29
  }
32
30
  if (valign) {
@@ -1,6 +1,5 @@
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';
4
3
  import { parseValign } from './types/valign';
5
4
  const setColumnAttributes = (node, {
6
5
  withLocalId = false
@@ -15,8 +14,7 @@ const setColumnAttributes = (node, {
15
14
  } = node.attrs;
16
15
  if (width) {
17
16
  const baseStyle = `flex-basis: ${width}%`;
18
- const columnWidthVar = editorExperiment('platform_editor_layout_column_resize_handle', true) ? `; --column-width: ${width}%` : '';
19
- attrs['style'] = baseStyle + columnWidthVar;
17
+ attrs['style'] = `${baseStyle}; --column-width: ${width}%`;
20
18
  attrs['data-column-width'] = `${width}`;
21
19
  }
22
20
  if (valign) {
@@ -3,7 +3,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  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; }
4
4
  import { layoutColumn as layoutColumnFactory } from '../../next-schema/generated/nodeTypes';
5
5
  import { uuid } from '../../utils/uuid';
6
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
6
  import { parseValign } from './types/valign';
8
7
  var setColumnAttributes = function setColumnAttributes(node) {
9
8
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
@@ -18,8 +17,7 @@ var setColumnAttributes = function setColumnAttributes(node) {
18
17
  localId = _node$attrs.localId;
19
18
  if (width) {
20
19
  var baseStyle = "flex-basis: ".concat(width, "%");
21
- var columnWidthVar = editorExperiment('platform_editor_layout_column_resize_handle', true) ? "; --column-width: ".concat(width, "%") : '';
22
- attrs['style'] = baseStyle + columnWidthVar;
20
+ attrs['style'] = "".concat(baseStyle, "; --column-width: ").concat(width, "%");
23
21
  attrs['data-column-width'] = "".concat(width);
24
22
  }
25
23
  if (valign) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "57.1.3",
3
+ "version": "57.2.0",
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/"
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/adf-schema-generator": "^4.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^8.0.0",
42
42
  "@atlaskit/platform-feature-flags": "^2.1.0",
43
- "@atlaskit/tmp-editor-statsig": "^162.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^163.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "css-color-names": "0.0.4",
46
46
  "linkify-it": "^5.0.2",