@atlaskit/editor-plugin-table 10.12.12 → 10.13.1

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,23 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 10.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.13.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#178354](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/178354)
14
+ [`8768b869f9245`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8768b869f9245) -
15
+ Cleanup platform_editor_stable_editorview_classname experiment
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 10.12.12
4
22
 
5
23
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.createPlugin = createPlugin;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _classnames2 = _interopRequireDefault(require("classnames"));
10
10
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  var _types = require("../../types");
13
12
  var _pluginFactory = require("../plugin-factory");
14
13
  var _commands = require("./commands");
@@ -31,7 +30,7 @@ function createPlugin(dispatch, _ref, getEditorContainerWidth, getEditorFeatureF
31
30
  attributes: function attributes(state) {
32
31
  var pluginState = (0, _pluginFactory2.getPluginState)(state);
33
32
  return {
34
- class: (0, _classnames2.default)((0, _expValEquals.expValEquals)('platform_editor_stable_editorview_classname', 'isEnabled', true) ? '' : _types.TableCssClassName.RESIZING_PLUGIN, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _types.TableCssClassName.RESIZE_CURSOR, pluginState.resizeHandlePos !== null), _types.TableCssClassName.IS_RESIZING, !!pluginState.dragging))
33
+ class: (0, _classnames2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _types.TableCssClassName.RESIZE_CURSOR, pluginState.resizeHandlePos !== null), _types.TableCssClassName.IS_RESIZING, !!pluginState.dragging))
35
34
  };
36
35
  },
37
36
  handleDOMEvents: {
@@ -1,6 +1,5 @@
1
1
  import classnames from 'classnames';
2
2
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
3
  import { TableCssClassName as ClassName } from '../../types';
5
4
  import { getPluginState as getTablePluginState } from '../plugin-factory';
6
5
  import { setResizeHandlePos } from './commands';
@@ -23,7 +22,7 @@ export function createPlugin(dispatch, {
23
22
  attributes(state) {
24
23
  const pluginState = getPluginState(state);
25
24
  return {
26
- class: classnames(expValEquals('platform_editor_stable_editorview_classname', 'isEnabled', true) ? '' : ClassName.RESIZING_PLUGIN, {
25
+ class: classnames({
27
26
  [ClassName.RESIZE_CURSOR]: pluginState.resizeHandlePos !== null,
28
27
  [ClassName.IS_RESIZING]: !!pluginState.dragging
29
28
  })
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import classnames from 'classnames';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { TableCssClassName as ClassName } from '../../types';
6
5
  import { getPluginState as getTablePluginState } from '../plugin-factory';
7
6
  import { setResizeHandlePos } from './commands';
@@ -24,7 +23,7 @@ export function createPlugin(dispatch, _ref, getEditorContainerWidth, getEditorF
24
23
  attributes: function attributes(state) {
25
24
  var pluginState = getPluginState(state);
26
25
  return {
27
- class: classnames(expValEquals('platform_editor_stable_editorview_classname', 'isEnabled', true) ? '' : ClassName.RESIZING_PLUGIN, _defineProperty(_defineProperty({}, ClassName.RESIZE_CURSOR, pluginState.resizeHandlePos !== null), ClassName.IS_RESIZING, !!pluginState.dragging))
26
+ class: classnames(_defineProperty(_defineProperty({}, ClassName.RESIZE_CURSOR, pluginState.resizeHandlePos !== null), ClassName.IS_RESIZING, !!pluginState.dragging))
28
27
  };
29
28
  },
30
29
  handleDOMEvents: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "10.12.12",
3
+ "version": "10.13.1",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,21 +25,20 @@
25
25
  "atlaskit:src": "src/index.ts",
26
26
  "atlassian": {
27
27
  "team": "Editor: Jenga",
28
- "singleton": true,
29
- "runReact18": true
28
+ "singleton": true
30
29
  },
31
30
  "dependencies": {
32
31
  "@atlaskit/adf-schema": "^47.6.0",
33
32
  "@atlaskit/button": "^23.2.0",
34
33
  "@atlaskit/custom-steps": "^0.11.0",
35
- "@atlaskit/editor-common": "^107.2.0",
34
+ "@atlaskit/editor-common": "^107.3.0",
36
35
  "@atlaskit/editor-palette": "^2.1.0",
37
36
  "@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
38
37
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
39
38
  "@atlaskit/editor-plugin-batch-attribute-updates": "^2.1.0",
40
39
  "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
41
40
  "@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
42
- "@atlaskit/editor-plugin-extension": "5.5.12",
41
+ "@atlaskit/editor-plugin-extension": "5.5.13",
43
42
  "@atlaskit/editor-plugin-guideline": "^2.0.0",
44
43
  "@atlaskit/editor-plugin-interaction": "^3.0.0",
45
44
  "@atlaskit/editor-plugin-selection": "^2.2.0",
@@ -53,9 +52,9 @@
53
52
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
54
53
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
55
54
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
56
- "@atlaskit/primitives": "^14.9.0",
55
+ "@atlaskit/primitives": "^14.10.0",
57
56
  "@atlaskit/theme": "^18.0.0",
58
- "@atlaskit/tmp-editor-statsig": "^8.3.0",
57
+ "@atlaskit/tmp-editor-statsig": "^8.5.0",
59
58
  "@atlaskit/toggle": "^15.0.0",
60
59
  "@atlaskit/tokens": "^5.4.0",
61
60
  "@atlaskit/tooltip": "^20.3.0",
@@ -5,7 +5,6 @@ import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
5
5
  import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
6
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
7
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
 
10
9
  import { TableCssClassName as ClassName } from '../../types';
11
10
  import type { ColumnResizingPluginState, PluginInjectionAPI } from '../../types';
@@ -42,15 +41,10 @@ export function createPlugin(
42
41
  const pluginState = getPluginState(state);
43
42
 
44
43
  return {
45
- class: classnames(
46
- expValEquals('platform_editor_stable_editorview_classname', 'isEnabled', true)
47
- ? ''
48
- : ClassName.RESIZING_PLUGIN,
49
- {
50
- [ClassName.RESIZE_CURSOR]: pluginState.resizeHandlePos !== null,
51
- [ClassName.IS_RESIZING]: !!pluginState.dragging,
52
- },
53
- ),
44
+ class: classnames({
45
+ [ClassName.RESIZE_CURSOR]: pluginState.resizeHandlePos !== null,
46
+ [ClassName.IS_RESIZING]: !!pluginState.dragging,
47
+ }),
54
48
  };
55
49
  },
56
50