@atlaskit/editor-plugin-insert-block 18.1.1 → 18.1.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 +9 -0
- package/dist/cjs/insertBlockPlugin.js +11 -13
- package/dist/es2019/insertBlockPlugin.js +9 -11
- package/dist/esm/insertBlockPlugin.js +11 -13
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 18.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c3b80cb940e98`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c3b80cb940e98) -
|
|
8
|
+
Clean up feature gate `platform_editor_experience_tracking_toolbar_button` and permanently enable
|
|
9
|
+
the toolbar action experiences plugin it gated
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 18.1.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -198,19 +198,17 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
|
|
|
198
198
|
return (0, _toggleInsertBlock.toggleInsertBlockPmPlugin)();
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
});
|
|
213
|
-
}
|
|
201
|
+
plugins.push({
|
|
202
|
+
name: 'toolbarActionExperiences',
|
|
203
|
+
plugin: function plugin() {
|
|
204
|
+
return (0, _toolbarActionExperiences.getToolbarActionExperiencesPlugin)({
|
|
205
|
+
dispatchAnalyticsEvent: function dispatchAnalyticsEvent(payload) {
|
|
206
|
+
var _api$analytics;
|
|
207
|
+
return api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 ? void 0 : _api$analytics.fireAnalyticsEvent(payload);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
});
|
|
214
212
|
return plugins;
|
|
215
213
|
},
|
|
216
214
|
pluginsOptions: {},
|
|
@@ -182,17 +182,15 @@ export const insertBlockPlugin = ({
|
|
|
182
182
|
name: 'toggleInsertBlockPmPlugin',
|
|
183
183
|
plugin: () => toggleInsertBlockPmPlugin()
|
|
184
184
|
});
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
});
|
|
195
|
-
}
|
|
185
|
+
plugins.push({
|
|
186
|
+
name: 'toolbarActionExperiences',
|
|
187
|
+
plugin: () => getToolbarActionExperiencesPlugin({
|
|
188
|
+
dispatchAnalyticsEvent: payload => {
|
|
189
|
+
var _api$analytics, _api$analytics$action;
|
|
190
|
+
return api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : (_api$analytics$action = _api$analytics.actions) === null || _api$analytics$action === void 0 ? void 0 : _api$analytics$action.fireAnalyticsEvent(payload);
|
|
191
|
+
}
|
|
192
|
+
})
|
|
193
|
+
});
|
|
196
194
|
return plugins;
|
|
197
195
|
},
|
|
198
196
|
pluginsOptions: {},
|
|
@@ -188,19 +188,17 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
188
188
|
return toggleInsertBlockPmPlugin();
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
});
|
|
203
|
-
}
|
|
191
|
+
plugins.push({
|
|
192
|
+
name: 'toolbarActionExperiences',
|
|
193
|
+
plugin: function plugin() {
|
|
194
|
+
return getToolbarActionExperiencesPlugin({
|
|
195
|
+
dispatchAnalyticsEvent: function dispatchAnalyticsEvent(payload) {
|
|
196
|
+
var _api$analytics;
|
|
197
|
+
return api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 || (_api$analytics = _api$analytics.actions) === null || _api$analytics === void 0 ? void 0 : _api$analytics.fireAnalyticsEvent(payload);
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
});
|
|
204
202
|
return plugins;
|
|
205
203
|
},
|
|
206
204
|
pluginsOptions: {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.2",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-hyperlink": "^19.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-image-upload": "^17.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-layout": "^18.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-media": "^19.
|
|
38
|
+
"@atlaskit/editor-plugin-media": "^19.2.0",
|
|
39
39
|
"@atlaskit/editor-plugin-media-insert": "^32.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-mentions": "^19.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-metrics": "^18.0.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
63
63
|
"@atlaskit/primitives": "^22.5.0",
|
|
64
64
|
"@atlaskit/textfield": "^10.2.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^188.0.0",
|
|
66
66
|
"@atlaskit/tokens": "^16.12.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react-virtualized": "^9.22.6"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^121.
|
|
75
|
+
"@atlaskit/editor-common": "^121.5.0",
|
|
76
76
|
"react": "^18.2.0 || ^19.2.0",
|
|
77
77
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
78
78
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -90,9 +90,6 @@
|
|
|
90
90
|
},
|
|
91
91
|
"platform_editor_ease_of_use_metrics": {
|
|
92
92
|
"type": "boolean"
|
|
93
|
-
},
|
|
94
|
-
"platform_editor_experience_tracking_toolbar_button": {
|
|
95
|
-
"type": "boolean"
|
|
96
93
|
}
|
|
97
94
|
}
|
|
98
95
|
}
|