@atlaskit/editor-plugin-table 23.0.3 → 23.1.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,18 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 23.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6e3b4e2317b34`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e3b4e2317b34) -
8
+ [EDITOR-7476](https://hello.jira.atlassian.cloud/browse/EDITOR-7476) - centralize SSR streaming
9
+ checks behind `isSSRStreaming()` so SSR eligibility is checked before emitting exposure for the
10
+ `platform_editor_editor_ssr_streaming` experiment.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 23.0.3
4
17
 
5
18
  ### Patch Changes
@@ -67,7 +67,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatchAnalytic
67
67
  return editorView.state;
68
68
  };
69
69
  var getNodeView = function getNodeView() {
70
- return _objectSpread(_objectSpread({}, (0, _expValEquals.expValEquals)('platform_editor_editor_ssr_streaming', 'isEnabled', true) && (0, _coreUtils.isSSR)() ? {} : {
70
+ return _objectSpread(_objectSpread({}, (0, _coreUtils.isSSR)() && (0, _coreUtils.isSSRStreaming)() ? {} : {
71
71
  table: (0, _tableNodeViews.tableView)({
72
72
  portalProviderAPI: portalProviderAPI,
73
73
  eventDispatcher: eventDispatcher,
@@ -1,7 +1,7 @@
1
1
  import { bind } from 'bind-event-listener';
2
2
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
3
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
4
- import { insideTable, isSSR } from '@atlaskit/editor-common/core-utils';
4
+ import { insideTable, isSSR, isSSRStreaming } from '@atlaskit/editor-common/core-utils';
5
5
  import { isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
6
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
7
  import { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenLayoutNodes, transformSliceToRemoveOpenMultiBodiedExtension, transformSliceToRemoveOpenNestedExpand } from '@atlaskit/editor-common/transforms';
@@ -60,7 +60,7 @@ export const createPlugin = (dispatchAnalyticsEvent, dispatch, portalProviderAPI
60
60
  const getNodeView = () => {
61
61
  return {
62
62
  // In SSR use native ProseMirror spec-based render for table nodes
63
- ...(expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true) && isSSR() ? {} : {
63
+ ...(isSSR() && isSSRStreaming() ? {} : {
64
64
  table: tableView({
65
65
  portalProviderAPI,
66
66
  eventDispatcher,
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { bind } from 'bind-event-listener';
5
5
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
6
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
7
- import { insideTable, isSSR } from '@atlaskit/editor-common/core-utils';
7
+ import { insideTable, isSSR, isSSRStreaming } from '@atlaskit/editor-common/core-utils';
8
8
  import { isNestedTablesSupported } from '@atlaskit/editor-common/nesting';
9
9
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
10
10
  import { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenLayoutNodes, transformSliceToRemoveOpenMultiBodiedExtension, transformSliceToRemoveOpenNestedExpand } from '@atlaskit/editor-common/transforms';
@@ -60,7 +60,7 @@ export var createPlugin = function createPlugin(dispatchAnalyticsEvent, dispatch
60
60
  return editorView.state;
61
61
  };
62
62
  var getNodeView = function getNodeView() {
63
- return _objectSpread(_objectSpread({}, expValEquals('platform_editor_editor_ssr_streaming', 'isEnabled', true) && isSSR() ? {} : {
63
+ return _objectSpread(_objectSpread({}, isSSR() && isSSRStreaming() ? {} : {
64
64
  table: tableView({
65
65
  portalProviderAPI: portalProviderAPI,
66
66
  eventDispatcher: eventDispatcher,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "23.0.3",
3
+ "version": "23.1.0",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/editor-plugin-batch-attribute-updates": "^11.0.0",
38
38
  "@atlaskit/editor-plugin-content-insertion": "^11.0.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^13.0.0",
40
- "@atlaskit/editor-plugin-extension": "14.0.1",
40
+ "@atlaskit/editor-plugin-extension": "14.1.0",
41
41
  "@atlaskit/editor-plugin-guideline": "^11.0.0",
42
42
  "@atlaskit/editor-plugin-interaction": "^20.0.0",
43
43
  "@atlaskit/editor-plugin-limited-mode": "^8.0.0",
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
61
61
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.2.0",
62
62
  "@atlaskit/primitives": "^19.0.0",
63
- "@atlaskit/tmp-editor-statsig": "^89.0.0",
63
+ "@atlaskit/tmp-editor-statsig": "^89.1.0",
64
64
  "@atlaskit/toggle": "^16.1.0",
65
65
  "@atlaskit/tokens": "^13.1.0",
66
66
  "@atlaskit/tooltip": "^22.6.0",
@@ -75,7 +75,7 @@
75
75
  "uuid": "^3.1.0"
76
76
  },
77
77
  "peerDependencies": {
78
- "@atlaskit/editor-common": "^115.2.0",
78
+ "@atlaskit/editor-common": "^115.6.0",
79
79
  "react": "^18.2.0",
80
80
  "react-dom": "^18.2.0",
81
81
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"