@atlaskit/editor-plugin-layout 6.2.1 → 6.2.3
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 +15 -0
- package/dist/cjs/layoutPlugin.js +81 -106
- package/dist/es2019/layoutPlugin.js +73 -96
- package/dist/esm/layoutPlugin.js +81 -106
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 6.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0d661119b4293`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0d661119b4293) -
|
|
8
|
+
Clean up platform_editor_insertion experiment by shipping control variant. Remove modern TypeAhead
|
|
9
|
+
components and experiment infrastructure while preserving all existing functionality.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 6.2.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 6.2.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/layoutPlugin.js
CHANGED
|
@@ -156,116 +156,91 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
|
|
|
156
156
|
}
|
|
157
157
|
}] : [];
|
|
158
158
|
if ((0, _experiments.editorExperiment)('advanced_layouts', true)) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
withInsertLayoutAnalytics(tr);
|
|
177
|
-
}
|
|
178
|
-
selectIntoLayoutSection(tr);
|
|
179
|
-
return tr;
|
|
180
|
-
}
|
|
181
|
-
}];
|
|
182
|
-
} else {
|
|
183
|
-
return [].concat(advancedSingleColumnOption, [{
|
|
184
|
-
id: 'twocolumnslayout',
|
|
185
|
-
title: formatMessage(_messages.layoutMessages.twoColumnsAdvancedLayout),
|
|
186
|
-
description: formatMessage(_messages.toolbarInsertBlockMessages.columnsDescriptionAdvancedLayout, {
|
|
187
|
-
numberOfColumns: 'two'
|
|
188
|
-
}),
|
|
189
|
-
keywords: ['layout', 'column', 'section', 'two column'],
|
|
190
|
-
priority: 1100,
|
|
191
|
-
icon: function icon() {
|
|
192
|
-
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconTwoColumnLayout, null);
|
|
193
|
-
},
|
|
194
|
-
action: function action(insert, state) {
|
|
195
|
-
var tr = insert((0, _actions.createMultiColumnLayoutSection)(state, 2));
|
|
196
|
-
if ((0, _platformFeatureFlags.fg)('platform_editor_column_count_analytics')) {
|
|
197
|
-
withInsertLayoutAnalytics(tr, 2);
|
|
198
|
-
} else {
|
|
199
|
-
withInsertLayoutAnalytics(tr);
|
|
200
|
-
}
|
|
201
|
-
selectIntoLayoutSection(tr);
|
|
202
|
-
return tr;
|
|
159
|
+
return [].concat(advancedSingleColumnOption, [{
|
|
160
|
+
id: 'twocolumnslayout',
|
|
161
|
+
title: formatMessage(_messages.layoutMessages.twoColumnsAdvancedLayout),
|
|
162
|
+
description: formatMessage(_messages.toolbarInsertBlockMessages.columnsDescriptionAdvancedLayout, {
|
|
163
|
+
numberOfColumns: 'two'
|
|
164
|
+
}),
|
|
165
|
+
keywords: ['layout', 'column', 'section', 'two column'],
|
|
166
|
+
priority: 1100,
|
|
167
|
+
icon: function icon() {
|
|
168
|
+
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconTwoColumnLayout, null);
|
|
169
|
+
},
|
|
170
|
+
action: function action(insert, state) {
|
|
171
|
+
var tr = insert((0, _actions.createMultiColumnLayoutSection)(state, 2));
|
|
172
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_column_count_analytics')) {
|
|
173
|
+
withInsertLayoutAnalytics(tr, 2);
|
|
174
|
+
} else {
|
|
175
|
+
withInsertLayoutAnalytics(tr);
|
|
203
176
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
177
|
+
selectIntoLayoutSection(tr);
|
|
178
|
+
return tr;
|
|
179
|
+
}
|
|
180
|
+
}, {
|
|
181
|
+
id: 'threecolumnslayout',
|
|
182
|
+
title: formatMessage(_messages.layoutMessages.threeColumnsAdvancedLayout),
|
|
183
|
+
description: formatMessage(_messages.toolbarInsertBlockMessages.columnsDescriptionAdvancedLayout, {
|
|
184
|
+
numberOfColumns: 'three'
|
|
185
|
+
}),
|
|
186
|
+
keywords: ['layout', 'column', 'section', 'three column'],
|
|
187
|
+
priority: 1100,
|
|
188
|
+
icon: function icon() {
|
|
189
|
+
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconThreeColumnLayout, null);
|
|
190
|
+
},
|
|
191
|
+
action: function action(insert, state) {
|
|
192
|
+
var tr = insert((0, _actions.createMultiColumnLayoutSection)(state, 3));
|
|
193
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_column_count_analytics')) {
|
|
194
|
+
withInsertLayoutAnalytics(tr, 3);
|
|
195
|
+
} else {
|
|
196
|
+
withInsertLayoutAnalytics(tr);
|
|
224
197
|
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
198
|
+
selectIntoLayoutSection(tr);
|
|
199
|
+
return tr;
|
|
200
|
+
}
|
|
201
|
+
}, {
|
|
202
|
+
id: 'fourcolumnslayout',
|
|
203
|
+
title: formatMessage(_messages.layoutMessages.fourColumns),
|
|
204
|
+
description: formatMessage(_messages.toolbarInsertBlockMessages.columnsDescriptionAdvancedLayout, {
|
|
205
|
+
numberOfColumns: 'four'
|
|
206
|
+
}),
|
|
207
|
+
keywords: ['layout', 'column', 'section', 'four column'],
|
|
208
|
+
priority: 1100,
|
|
209
|
+
icon: function icon() {
|
|
210
|
+
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconFourColumnLayout, null);
|
|
211
|
+
},
|
|
212
|
+
action: function action(insert, state) {
|
|
213
|
+
var tr = insert((0, _actions.createMultiColumnLayoutSection)(state, 4));
|
|
214
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_column_count_analytics')) {
|
|
215
|
+
withInsertLayoutAnalytics(tr, 4);
|
|
216
|
+
} else {
|
|
217
|
+
withInsertLayoutAnalytics(tr);
|
|
245
218
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
219
|
+
selectIntoLayoutSection(tr);
|
|
220
|
+
return tr;
|
|
221
|
+
}
|
|
222
|
+
}, {
|
|
223
|
+
id: 'fivecolumnslayout',
|
|
224
|
+
title: formatMessage(_messages.layoutMessages.fiveColumns),
|
|
225
|
+
description: formatMessage(_messages.toolbarInsertBlockMessages.columnsDescriptionAdvancedLayout, {
|
|
226
|
+
numberOfColumns: 'five'
|
|
227
|
+
}),
|
|
228
|
+
keywords: ['layout', 'column', 'section', 'five column'],
|
|
229
|
+
priority: 1100,
|
|
230
|
+
icon: function icon() {
|
|
231
|
+
return /*#__PURE__*/_react.default.createElement(_quickInsert.IconFiveColumnLayout, null);
|
|
232
|
+
},
|
|
233
|
+
action: function action(insert, state) {
|
|
234
|
+
var tr = insert((0, _actions.createMultiColumnLayoutSection)(state, 5));
|
|
235
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_column_count_analytics')) {
|
|
236
|
+
withInsertLayoutAnalytics(tr, 5);
|
|
237
|
+
} else {
|
|
238
|
+
withInsertLayoutAnalytics(tr);
|
|
266
239
|
}
|
|
267
|
-
|
|
268
|
-
|
|
240
|
+
selectIntoLayoutSection(tr);
|
|
241
|
+
return tr;
|
|
242
|
+
}
|
|
243
|
+
}]);
|
|
269
244
|
} else {
|
|
270
245
|
return [{
|
|
271
246
|
id: 'layout',
|
|
@@ -146,106 +146,83 @@ export const layoutPlugin = ({
|
|
|
146
146
|
}
|
|
147
147
|
}] : [];
|
|
148
148
|
if (editorExperiment('advanced_layouts', true)) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
withInsertLayoutAnalytics(tr);
|
|
165
|
-
}
|
|
166
|
-
selectIntoLayoutSection(tr);
|
|
167
|
-
return tr;
|
|
168
|
-
}
|
|
169
|
-
}];
|
|
170
|
-
} else {
|
|
171
|
-
return [...advancedSingleColumnOption, {
|
|
172
|
-
id: 'twocolumnslayout',
|
|
173
|
-
title: formatMessage(layoutMessages.twoColumnsAdvancedLayout),
|
|
174
|
-
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
175
|
-
numberOfColumns: 'two'
|
|
176
|
-
}),
|
|
177
|
-
keywords: ['layout', 'column', 'section', 'two column'],
|
|
178
|
-
priority: 1100,
|
|
179
|
-
icon: () => /*#__PURE__*/React.createElement(IconTwoColumnLayout, null),
|
|
180
|
-
action(insert, state) {
|
|
181
|
-
const tr = insert(createMultiColumnLayoutSection(state, 2));
|
|
182
|
-
if (fg('platform_editor_column_count_analytics')) {
|
|
183
|
-
withInsertLayoutAnalytics(tr, 2);
|
|
184
|
-
} else {
|
|
185
|
-
withInsertLayoutAnalytics(tr);
|
|
186
|
-
}
|
|
187
|
-
selectIntoLayoutSection(tr);
|
|
188
|
-
return tr;
|
|
149
|
+
return [...advancedSingleColumnOption, {
|
|
150
|
+
id: 'twocolumnslayout',
|
|
151
|
+
title: formatMessage(layoutMessages.twoColumnsAdvancedLayout),
|
|
152
|
+
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
153
|
+
numberOfColumns: 'two'
|
|
154
|
+
}),
|
|
155
|
+
keywords: ['layout', 'column', 'section', 'two column'],
|
|
156
|
+
priority: 1100,
|
|
157
|
+
icon: () => /*#__PURE__*/React.createElement(IconTwoColumnLayout, null),
|
|
158
|
+
action(insert, state) {
|
|
159
|
+
const tr = insert(createMultiColumnLayoutSection(state, 2));
|
|
160
|
+
if (fg('platform_editor_column_count_analytics')) {
|
|
161
|
+
withInsertLayoutAnalytics(tr, 2);
|
|
162
|
+
} else {
|
|
163
|
+
withInsertLayoutAnalytics(tr);
|
|
189
164
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
165
|
+
selectIntoLayoutSection(tr);
|
|
166
|
+
return tr;
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
id: 'threecolumnslayout',
|
|
170
|
+
title: formatMessage(layoutMessages.threeColumnsAdvancedLayout),
|
|
171
|
+
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
172
|
+
numberOfColumns: 'three'
|
|
173
|
+
}),
|
|
174
|
+
keywords: ['layout', 'column', 'section', 'three column'],
|
|
175
|
+
priority: 1100,
|
|
176
|
+
icon: () => /*#__PURE__*/React.createElement(IconThreeColumnLayout, null),
|
|
177
|
+
action(insert, state) {
|
|
178
|
+
const tr = insert(createMultiColumnLayoutSection(state, 3));
|
|
179
|
+
if (fg('platform_editor_column_count_analytics')) {
|
|
180
|
+
withInsertLayoutAnalytics(tr, 3);
|
|
181
|
+
} else {
|
|
182
|
+
withInsertLayoutAnalytics(tr);
|
|
208
183
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
184
|
+
selectIntoLayoutSection(tr);
|
|
185
|
+
return tr;
|
|
186
|
+
}
|
|
187
|
+
}, {
|
|
188
|
+
id: 'fourcolumnslayout',
|
|
189
|
+
title: formatMessage(layoutMessages.fourColumns),
|
|
190
|
+
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
191
|
+
numberOfColumns: 'four'
|
|
192
|
+
}),
|
|
193
|
+
keywords: ['layout', 'column', 'section', 'four column'],
|
|
194
|
+
priority: 1100,
|
|
195
|
+
icon: () => /*#__PURE__*/React.createElement(IconFourColumnLayout, null),
|
|
196
|
+
action(insert, state) {
|
|
197
|
+
const tr = insert(createMultiColumnLayoutSection(state, 4));
|
|
198
|
+
if (fg('platform_editor_column_count_analytics')) {
|
|
199
|
+
withInsertLayoutAnalytics(tr, 4);
|
|
200
|
+
} else {
|
|
201
|
+
withInsertLayoutAnalytics(tr);
|
|
227
202
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
203
|
+
selectIntoLayoutSection(tr);
|
|
204
|
+
return tr;
|
|
205
|
+
}
|
|
206
|
+
}, {
|
|
207
|
+
id: 'fivecolumnslayout',
|
|
208
|
+
title: formatMessage(layoutMessages.fiveColumns),
|
|
209
|
+
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
210
|
+
numberOfColumns: 'five'
|
|
211
|
+
}),
|
|
212
|
+
keywords: ['layout', 'column', 'section', 'five column'],
|
|
213
|
+
priority: 1100,
|
|
214
|
+
icon: () => /*#__PURE__*/React.createElement(IconFiveColumnLayout, null),
|
|
215
|
+
action(insert, state) {
|
|
216
|
+
const tr = insert(createMultiColumnLayoutSection(state, 5));
|
|
217
|
+
if (fg('platform_editor_column_count_analytics')) {
|
|
218
|
+
withInsertLayoutAnalytics(tr, 5);
|
|
219
|
+
} else {
|
|
220
|
+
withInsertLayoutAnalytics(tr);
|
|
246
221
|
}
|
|
247
|
-
|
|
248
|
-
|
|
222
|
+
selectIntoLayoutSection(tr);
|
|
223
|
+
return tr;
|
|
224
|
+
}
|
|
225
|
+
}];
|
|
249
226
|
} else {
|
|
250
227
|
return [{
|
|
251
228
|
id: 'layout',
|
package/dist/esm/layoutPlugin.js
CHANGED
|
@@ -150,116 +150,91 @@ export var layoutPlugin = function layoutPlugin(_ref) {
|
|
|
150
150
|
}
|
|
151
151
|
}] : [];
|
|
152
152
|
if (editorExperiment('advanced_layouts', true)) {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
withInsertLayoutAnalytics(tr);
|
|
171
|
-
}
|
|
172
|
-
selectIntoLayoutSection(tr);
|
|
173
|
-
return tr;
|
|
174
|
-
}
|
|
175
|
-
}];
|
|
176
|
-
} else {
|
|
177
|
-
return [].concat(advancedSingleColumnOption, [{
|
|
178
|
-
id: 'twocolumnslayout',
|
|
179
|
-
title: formatMessage(layoutMessages.twoColumnsAdvancedLayout),
|
|
180
|
-
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
181
|
-
numberOfColumns: 'two'
|
|
182
|
-
}),
|
|
183
|
-
keywords: ['layout', 'column', 'section', 'two column'],
|
|
184
|
-
priority: 1100,
|
|
185
|
-
icon: function icon() {
|
|
186
|
-
return /*#__PURE__*/React.createElement(IconTwoColumnLayout, null);
|
|
187
|
-
},
|
|
188
|
-
action: function action(insert, state) {
|
|
189
|
-
var tr = insert(createMultiColumnLayoutSection(state, 2));
|
|
190
|
-
if (fg('platform_editor_column_count_analytics')) {
|
|
191
|
-
withInsertLayoutAnalytics(tr, 2);
|
|
192
|
-
} else {
|
|
193
|
-
withInsertLayoutAnalytics(tr);
|
|
194
|
-
}
|
|
195
|
-
selectIntoLayoutSection(tr);
|
|
196
|
-
return tr;
|
|
153
|
+
return [].concat(advancedSingleColumnOption, [{
|
|
154
|
+
id: 'twocolumnslayout',
|
|
155
|
+
title: formatMessage(layoutMessages.twoColumnsAdvancedLayout),
|
|
156
|
+
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
157
|
+
numberOfColumns: 'two'
|
|
158
|
+
}),
|
|
159
|
+
keywords: ['layout', 'column', 'section', 'two column'],
|
|
160
|
+
priority: 1100,
|
|
161
|
+
icon: function icon() {
|
|
162
|
+
return /*#__PURE__*/React.createElement(IconTwoColumnLayout, null);
|
|
163
|
+
},
|
|
164
|
+
action: function action(insert, state) {
|
|
165
|
+
var tr = insert(createMultiColumnLayoutSection(state, 2));
|
|
166
|
+
if (fg('platform_editor_column_count_analytics')) {
|
|
167
|
+
withInsertLayoutAnalytics(tr, 2);
|
|
168
|
+
} else {
|
|
169
|
+
withInsertLayoutAnalytics(tr);
|
|
197
170
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
171
|
+
selectIntoLayoutSection(tr);
|
|
172
|
+
return tr;
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
id: 'threecolumnslayout',
|
|
176
|
+
title: formatMessage(layoutMessages.threeColumnsAdvancedLayout),
|
|
177
|
+
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
178
|
+
numberOfColumns: 'three'
|
|
179
|
+
}),
|
|
180
|
+
keywords: ['layout', 'column', 'section', 'three column'],
|
|
181
|
+
priority: 1100,
|
|
182
|
+
icon: function icon() {
|
|
183
|
+
return /*#__PURE__*/React.createElement(IconThreeColumnLayout, null);
|
|
184
|
+
},
|
|
185
|
+
action: function action(insert, state) {
|
|
186
|
+
var tr = insert(createMultiColumnLayoutSection(state, 3));
|
|
187
|
+
if (fg('platform_editor_column_count_analytics')) {
|
|
188
|
+
withInsertLayoutAnalytics(tr, 3);
|
|
189
|
+
} else {
|
|
190
|
+
withInsertLayoutAnalytics(tr);
|
|
218
191
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
192
|
+
selectIntoLayoutSection(tr);
|
|
193
|
+
return tr;
|
|
194
|
+
}
|
|
195
|
+
}, {
|
|
196
|
+
id: 'fourcolumnslayout',
|
|
197
|
+
title: formatMessage(layoutMessages.fourColumns),
|
|
198
|
+
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
199
|
+
numberOfColumns: 'four'
|
|
200
|
+
}),
|
|
201
|
+
keywords: ['layout', 'column', 'section', 'four column'],
|
|
202
|
+
priority: 1100,
|
|
203
|
+
icon: function icon() {
|
|
204
|
+
return /*#__PURE__*/React.createElement(IconFourColumnLayout, null);
|
|
205
|
+
},
|
|
206
|
+
action: function action(insert, state) {
|
|
207
|
+
var tr = insert(createMultiColumnLayoutSection(state, 4));
|
|
208
|
+
if (fg('platform_editor_column_count_analytics')) {
|
|
209
|
+
withInsertLayoutAnalytics(tr, 4);
|
|
210
|
+
} else {
|
|
211
|
+
withInsertLayoutAnalytics(tr);
|
|
239
212
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
213
|
+
selectIntoLayoutSection(tr);
|
|
214
|
+
return tr;
|
|
215
|
+
}
|
|
216
|
+
}, {
|
|
217
|
+
id: 'fivecolumnslayout',
|
|
218
|
+
title: formatMessage(layoutMessages.fiveColumns),
|
|
219
|
+
description: formatMessage(messages.columnsDescriptionAdvancedLayout, {
|
|
220
|
+
numberOfColumns: 'five'
|
|
221
|
+
}),
|
|
222
|
+
keywords: ['layout', 'column', 'section', 'five column'],
|
|
223
|
+
priority: 1100,
|
|
224
|
+
icon: function icon() {
|
|
225
|
+
return /*#__PURE__*/React.createElement(IconFiveColumnLayout, null);
|
|
226
|
+
},
|
|
227
|
+
action: function action(insert, state) {
|
|
228
|
+
var tr = insert(createMultiColumnLayoutSection(state, 5));
|
|
229
|
+
if (fg('platform_editor_column_count_analytics')) {
|
|
230
|
+
withInsertLayoutAnalytics(tr, 5);
|
|
231
|
+
} else {
|
|
232
|
+
withInsertLayoutAnalytics(tr);
|
|
260
233
|
}
|
|
261
|
-
|
|
262
|
-
|
|
234
|
+
selectIntoLayoutSection(tr);
|
|
235
|
+
return tr;
|
|
236
|
+
}
|
|
237
|
+
}]);
|
|
263
238
|
} else {
|
|
264
239
|
return [{
|
|
265
240
|
id: 'layout',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.3",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,23 +35,23 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-decorations": "^6.1.0",
|
|
36
36
|
"@atlaskit/editor-plugin-editor-disabled": "^6.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-guideline": "^6.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
38
|
+
"@atlaskit/editor-plugin-interaction": "^10.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-toolbar": "^3.4.0",
|
|
41
41
|
"@atlaskit/editor-plugin-width": "^7.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.8.0",
|
|
44
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
44
|
+
"@atlaskit/editor-toolbar": "^0.17.0",
|
|
45
45
|
"@atlaskit/icon": "^28.5.0",
|
|
46
|
-
"@atlaskit/icon-lab": "^5.
|
|
46
|
+
"@atlaskit/icon-lab": "^5.11.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
49
|
-
"@atlaskit/tokens": "^
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^13.32.0",
|
|
49
|
+
"@atlaskit/tokens": "^8.0.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^110.
|
|
54
|
+
"@atlaskit/editor-common": "^110.24.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
57
57
|
},
|