@atlaskit/editor-plugin-layout 8.0.1 → 8.0.2

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,11 @@
1
1
  # @atlaskit/editor-plugin-layout
2
2
 
3
+ ## 8.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 8.0.1
4
10
 
5
11
  ### Patch Changes
@@ -180,7 +180,7 @@ var insertLayoutColumnsWithAnalytics = exports.insertLayoutColumnsWithAnalytics
180
180
  actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
181
181
  actionSubjectId: _analytics.ACTION_SUBJECT_ID.LAYOUT,
182
182
  attributes: {
183
- inputMethod: inputMethod,
183
+ inputMethod: (0, _platformFeatureFlags.fg)('platform_editor_element_browser_analytic') ? inputMethod : _analytics.INPUT_METHOD.QUICK_INSERT,
184
184
  columnCount: (0, _platformFeatureFlags.fg)('platform_editor_column_count_analytics') ? 2 : undefined
185
185
  },
186
186
  eventType: _analytics.EVENT_TYPE.TRACK
@@ -1,4 +1,4 @@
1
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, LAYOUT_TYPE } from '@atlaskit/editor-common/analytics';
1
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, LAYOUT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
2
  import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
3
3
  import { flatmap, getStepRange, isEmptyDocument, mapChildren } from '@atlaskit/editor-common/utils';
4
4
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
@@ -161,7 +161,7 @@ export const insertLayoutColumnsWithAnalytics = editorAnalyticsAPI => inputMetho
161
161
  actionSubject: ACTION_SUBJECT.DOCUMENT,
162
162
  actionSubjectId: ACTION_SUBJECT_ID.LAYOUT,
163
163
  attributes: {
164
- inputMethod,
164
+ inputMethod: fg('platform_editor_element_browser_analytic') ? inputMethod : INPUT_METHOD.QUICK_INSERT,
165
165
  columnCount: fg('platform_editor_column_count_analytics') ? 2 : undefined
166
166
  },
167
167
  eventType: EVENT_TYPE.TRACK
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
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
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, LAYOUT_TYPE } from '@atlaskit/editor-common/analytics';
4
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, LAYOUT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
6
6
  import { flatmap, getStepRange, isEmptyDocument, mapChildren } from '@atlaskit/editor-common/utils';
7
7
  import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
@@ -171,7 +171,7 @@ export var insertLayoutColumnsWithAnalytics = function insertLayoutColumnsWithAn
171
171
  actionSubject: ACTION_SUBJECT.DOCUMENT,
172
172
  actionSubjectId: ACTION_SUBJECT_ID.LAYOUT,
173
173
  attributes: {
174
- inputMethod: inputMethod,
174
+ inputMethod: fg('platform_editor_element_browser_analytic') ? inputMethod : INPUT_METHOD.QUICK_INSERT,
175
175
  columnCount: fg('platform_editor_column_count_analytics') ? 2 : undefined
176
176
  },
177
177
  eventType: EVENT_TYPE.TRACK
@@ -1,4 +1,5 @@
1
- import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
3
  import type { Command, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
3
4
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
5
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
@@ -1,4 +1,5 @@
1
- import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
1
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
3
  import type { Command, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
3
4
  import type { Node } from '@atlaskit/editor-prosemirror/model';
4
5
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "@atlaskit/icon": "^32.0.0",
47
47
  "@atlaskit/icon-lab": "^5.17.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
- "@atlaskit/tmp-editor-statsig": "^36.0.0",
49
+ "@atlaskit/tmp-editor-statsig": "^37.0.0",
50
50
  "@atlaskit/tokens": "^11.1.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^112.0.0",
55
+ "@atlaskit/editor-common": "^112.2.0",
56
56
  "react": "^18.2.0",
57
57
  "react-intl-next": "npm:react-intl@^5.18.1"
58
58
  },
@@ -98,6 +98,9 @@
98
98
  }
99
99
  },
100
100
  "platform-feature-flags": {
101
+ "platform_editor_element_browser_analytic": {
102
+ "type": "boolean"
103
+ },
101
104
  "platform_editor_column_count_analytics": {
102
105
  "type": "boolean"
103
106
  },