@atlaskit/editor-plugin-layout 27.0.6 → 28.0.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 +27 -0
- package/dist/cjs/layoutPlugin.js +2 -10
- package/dist/cjs/pm-plugins/actions.js +1 -2
- package/dist/es2019/layoutPlugin.js +2 -10
- package/dist/es2019/pm-plugins/actions.js +1 -2
- package/dist/esm/layoutPlugin.js +2 -10
- package/dist/esm/pm-plugins/actions.js +1 -2
- package/package.json +17 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 28.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 27.0.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d79264682f5bb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d79264682f5bb) -
|
|
14
|
+
Clean up feature gate `platform_editor_column_count_analytics`. The `columnCount` attribute is now
|
|
15
|
+
always included in layout insertion analytics events.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 27.0.8
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
24
|
+
## 27.0.7
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 27.0.6
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/cjs/layoutPlugin.js
CHANGED
|
@@ -191,11 +191,7 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
|
|
|
191
191
|
icon: Icon,
|
|
192
192
|
action: function action(insert, state) {
|
|
193
193
|
var tr = insert((0, _actions.createMultiColumnLayoutSection)(state, columnCount));
|
|
194
|
-
|
|
195
|
-
withInsertLayoutAnalytics(tr, columnCount);
|
|
196
|
-
} else {
|
|
197
|
-
withInsertLayoutAnalytics(tr);
|
|
198
|
-
}
|
|
194
|
+
withInsertLayoutAnalytics(tr, columnCount);
|
|
199
195
|
selectIntoLayoutSection(tr);
|
|
200
196
|
return tr;
|
|
201
197
|
}
|
|
@@ -212,11 +208,7 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
|
|
|
212
208
|
},
|
|
213
209
|
action: function action(insert, state) {
|
|
214
210
|
var tr = insert((0, _actions.createMultiColumnLayoutSection)(state, 1));
|
|
215
|
-
|
|
216
|
-
withInsertLayoutAnalytics(tr, 1);
|
|
217
|
-
} else {
|
|
218
|
-
withInsertLayoutAnalytics(tr);
|
|
219
|
-
}
|
|
211
|
+
withInsertLayoutAnalytics(tr, 1);
|
|
220
212
|
selectIntoLayoutSection(tr);
|
|
221
213
|
return tr;
|
|
222
214
|
}
|
|
@@ -18,7 +18,6 @@ var _model = require("@atlaskit/editor-prosemirror/model");
|
|
|
18
18
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
19
19
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
20
20
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
21
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
22
21
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
23
22
|
var _consts = require("./consts");
|
|
24
23
|
var _pluginKey = require("./plugin-key");
|
|
@@ -187,7 +186,7 @@ var insertLayoutColumnsWithAnalytics = exports.insertLayoutColumnsWithAnalytics
|
|
|
187
186
|
actionSubjectId: _enums.ACTION_SUBJECT_ID.LAYOUT,
|
|
188
187
|
attributes: {
|
|
189
188
|
inputMethod: inputMethod,
|
|
190
|
-
columnCount:
|
|
189
|
+
columnCount: 2
|
|
191
190
|
},
|
|
192
191
|
eventType: _enums.EVENT_TYPE.TRACK
|
|
193
192
|
})(function (state, dispatch) {
|
|
@@ -183,11 +183,7 @@ export const layoutPlugin = ({
|
|
|
183
183
|
icon: Icon,
|
|
184
184
|
action(insert, state) {
|
|
185
185
|
const tr = insert(createMultiColumnLayoutSection(state, columnCount));
|
|
186
|
-
|
|
187
|
-
withInsertLayoutAnalytics(tr, columnCount);
|
|
188
|
-
} else {
|
|
189
|
-
withInsertLayoutAnalytics(tr);
|
|
190
|
-
}
|
|
186
|
+
withInsertLayoutAnalytics(tr, columnCount);
|
|
191
187
|
selectIntoLayoutSection(tr);
|
|
192
188
|
return tr;
|
|
193
189
|
}
|
|
@@ -201,11 +197,7 @@ export const layoutPlugin = ({
|
|
|
201
197
|
icon: () => /*#__PURE__*/React.createElement(IconOneColumnLayout, null),
|
|
202
198
|
action(insert, state) {
|
|
203
199
|
const tr = insert(createMultiColumnLayoutSection(state, 1));
|
|
204
|
-
|
|
205
|
-
withInsertLayoutAnalytics(tr, 1);
|
|
206
|
-
} else {
|
|
207
|
-
withInsertLayoutAnalytics(tr);
|
|
208
|
-
}
|
|
200
|
+
withInsertLayoutAnalytics(tr, 1);
|
|
209
201
|
selectIntoLayoutSection(tr);
|
|
210
202
|
return tr;
|
|
211
203
|
}
|
|
@@ -7,7 +7,6 @@ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
|
7
7
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
8
8
|
import { Mapping, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
|
9
9
|
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
12
11
|
import { DEFAULT_LAYOUT_COLUMN_VALIGN, EVEN_DISTRIBUTED_COL_WIDTHS, MAX_LAYOUT_COLUMNS, MAX_STANDARD_LAYOUT_COLUMNS, MIN_LAYOUT_COLUMN_WIDTH_PERCENT } from './consts';
|
|
13
12
|
import { pluginKey } from './plugin-key';
|
|
@@ -167,7 +166,7 @@ export const insertLayoutColumnsWithAnalytics = editorAnalyticsAPI => inputMetho
|
|
|
167
166
|
actionSubjectId: ACTION_SUBJECT_ID.LAYOUT,
|
|
168
167
|
attributes: {
|
|
169
168
|
inputMethod,
|
|
170
|
-
columnCount:
|
|
169
|
+
columnCount: 2
|
|
171
170
|
},
|
|
172
171
|
eventType: EVENT_TYPE.TRACK
|
|
173
172
|
})((state, dispatch) => {
|
package/dist/esm/layoutPlugin.js
CHANGED
|
@@ -184,11 +184,7 @@ export var layoutPlugin = function layoutPlugin(_ref) {
|
|
|
184
184
|
icon: Icon,
|
|
185
185
|
action: function action(insert, state) {
|
|
186
186
|
var tr = insert(createMultiColumnLayoutSection(state, columnCount));
|
|
187
|
-
|
|
188
|
-
withInsertLayoutAnalytics(tr, columnCount);
|
|
189
|
-
} else {
|
|
190
|
-
withInsertLayoutAnalytics(tr);
|
|
191
|
-
}
|
|
187
|
+
withInsertLayoutAnalytics(tr, columnCount);
|
|
192
188
|
selectIntoLayoutSection(tr);
|
|
193
189
|
return tr;
|
|
194
190
|
}
|
|
@@ -205,11 +201,7 @@ export var layoutPlugin = function layoutPlugin(_ref) {
|
|
|
205
201
|
},
|
|
206
202
|
action: function action(insert, state) {
|
|
207
203
|
var tr = insert(createMultiColumnLayoutSection(state, 1));
|
|
208
|
-
|
|
209
|
-
withInsertLayoutAnalytics(tr, 1);
|
|
210
|
-
} else {
|
|
211
|
-
withInsertLayoutAnalytics(tr);
|
|
212
|
-
}
|
|
204
|
+
withInsertLayoutAnalytics(tr, 1);
|
|
213
205
|
selectIntoLayoutSection(tr);
|
|
214
206
|
return tr;
|
|
215
207
|
}
|
|
@@ -10,7 +10,6 @@ import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
|
10
10
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
11
11
|
import { Mapping, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
|
12
12
|
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
15
14
|
import { DEFAULT_LAYOUT_COLUMN_VALIGN, EVEN_DISTRIBUTED_COL_WIDTHS, MAX_LAYOUT_COLUMNS, MAX_STANDARD_LAYOUT_COLUMNS, MIN_LAYOUT_COLUMN_WIDTH_PERCENT } from './consts';
|
|
16
15
|
import { pluginKey } from './plugin-key';
|
|
@@ -177,7 +176,7 @@ export var insertLayoutColumnsWithAnalytics = function insertLayoutColumnsWithAn
|
|
|
177
176
|
actionSubjectId: ACTION_SUBJECT_ID.LAYOUT,
|
|
178
177
|
attributes: {
|
|
179
178
|
inputMethod: inputMethod,
|
|
180
|
-
columnCount:
|
|
179
|
+
columnCount: 2
|
|
181
180
|
},
|
|
182
181
|
eventType: EVENT_TYPE.TRACK
|
|
183
182
|
})(function (state, dispatch) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^57.7.0",
|
|
25
25
|
"@atlaskit/css": "^1.1.0",
|
|
26
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
27
|
-
"@atlaskit/editor-plugin-block-controls": "^
|
|
28
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
29
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
30
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
31
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
32
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
33
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
34
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
35
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
36
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^
|
|
37
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
38
|
-
"@atlaskit/editor-plugin-width": "^
|
|
26
|
+
"@atlaskit/editor-plugin-analytics": "^27.0.0",
|
|
27
|
+
"@atlaskit/editor-plugin-block-controls": "^28.0.0",
|
|
28
|
+
"@atlaskit/editor-plugin-block-menu": "^26.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-decorations": "^27.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-editor-disabled": "^27.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^29.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-guideline": "^27.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-interaction": "^41.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-selection": "^27.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-toolbar": "^24.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^21.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-user-intent": "^25.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-width": "^28.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^4.4.0",
|
|
41
41
|
"@atlaskit/editor-toolbar": "^2.8.0",
|
|
@@ -44,21 +44,18 @@
|
|
|
44
44
|
"@atlaskit/icon-lab": "^7.11.0",
|
|
45
45
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
48
|
-
"@atlaskit/tokens": "^20.
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^235.0.0",
|
|
48
|
+
"@atlaskit/tokens": "^20.5.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"bind-event-listener": "^3.0.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^
|
|
54
|
+
"@atlaskit/editor-common": "^131.0.0",
|
|
55
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
57
57
|
},
|
|
58
58
|
"platform-feature-flags": {
|
|
59
|
-
"platform_editor_column_count_analytics": {
|
|
60
|
-
"type": "boolean"
|
|
61
|
-
},
|
|
62
59
|
"platform_editor_adf_with_localid": {
|
|
63
60
|
"type": "boolean"
|
|
64
61
|
}
|