@atlaskit/editor-plugin-insert-block 1.7.1 → 1.8.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 +13 -0
- package/dist/cjs/assets/switch.js +30 -0
- package/dist/cjs/plugin.js +24 -0
- package/dist/es2019/assets/switch.js +23 -0
- package/dist/es2019/plugin.js +24 -0
- package/dist/esm/assets/switch.js +23 -0
- package/dist/esm/plugin.js +24 -0
- package/dist/types/assets/switch.d.ts +2 -0
- package/dist/types/types.d.ts +3 -1
- package/dist/types-ts4.5/assets/switch.d.ts +2 -0
- package/dist/types-ts4.5/types.d.ts +3 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-insert-block
|
|
2
2
|
|
|
3
|
+
## 1.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`3ac0ae73c0d52`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3ac0ae73c0d52) -
|
|
8
|
+
[ED-24499] Add Turn into dropdown button to text selection toolbar for
|
|
9
|
+
platform_editor_basic_text_transformations experiment. This button will be used to provide options
|
|
10
|
+
to transform selected texts/inline nodes into other elements (e.g. expand) containing the content.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 1.7.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = SwitchIcon;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _svg = _interopRequireDefault(require("@atlaskit/icon/svg"));
|
|
10
|
+
function SwitchIcon() {
|
|
11
|
+
return /*#__PURE__*/_react.default.createElement(_svg.default, {
|
|
12
|
+
label: ""
|
|
13
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
14
|
+
d: "M6.003 16H8.998C9.26322 16 9.51757 15.8947 9.70511 15.7071C9.89264 15.5196 9.998 15.2652 9.998 15C9.998 14.7348 9.89264 14.4805 9.70511 14.2929C9.51757 14.1054 9.26322 14 8.998 14H5.102C4.494 14 4 14.493 4 15.1V19C4 19.2656 4.10551 19.5204 4.29333 19.7082C4.48115 19.896 4.73589 20.0015 5.0015 20.0015C5.26711 20.0015 5.52185 19.896 5.70967 19.7082C5.89748 19.5204 6.003 19.2656 6.003 19V16Z",
|
|
15
|
+
fill: "var(--ds-icon, #44546F)"
|
|
16
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
17
|
+
d: "M18.018 14.572C16.989 16.649 14.807 18 12.37 18C10.104 18 8.051 16.833 6.945 14.98C6.659 14.5 6.023 14.334 5.524 14.609C5.40677 14.6709 5.30331 14.7559 5.21991 14.8589C5.13651 14.9619 5.0749 15.0808 5.0388 15.2083C5.00271 15.3359 4.99289 15.4694 5.00994 15.6009C5.027 15.7323 5.07056 15.8589 5.138 15.973C6.611 18.443 9.35 20 12.37 20C15.618 20 18.528 18.198 19.899 15.43C20.146 14.932 19.925 14.335 19.406 14.098C18.886 13.861 18.265 14.073 18.018 14.572Z",
|
|
18
|
+
fill: "var(--ds-icon, #44546F)"
|
|
19
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
20
|
+
fillRule: "evenodd",
|
|
21
|
+
clipRule: "evenodd",
|
|
22
|
+
d: "M15.002 10L18.898 10C19.506 10 20 9.50703 20 8.90003V5.00003C20 4.73441 19.8945 4.47968 19.7067 4.29186C19.5188 4.10404 19.2641 3.99853 18.9985 3.99853C18.7329 3.99853 18.4782 4.10404 18.2903 4.29186C18.1025 4.47968 17.997 4.73441 17.997 5.00003V8.00003H15.002C14.7368 8.00003 14.4824 8.10538 14.2949 8.29292C14.1074 8.48046 14.002 8.73481 14.002 9.00003C14.002 9.26524 14.1074 9.5196 14.2949 9.70713C14.4824 9.89467 14.7368 10 15.002 10Z",
|
|
23
|
+
fill: "var(--ds-icon, #44546F)"
|
|
24
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
|
+
d: "M4.596 9.90303C5.116 10.14 5.736 9.92803 5.983 9.42903C7.012 7.35203 9.193 6.00103 11.63 6.00103C13.896 6.00103 15.95 7.16803 17.055 9.02203C17.1988 9.25438 17.4265 9.42245 17.6909 9.49135C17.9553 9.56024 18.2361 9.52468 18.475 9.39203C18.975 9.11803 19.148 8.50703 18.862 8.02803C17.389 5.55803 14.65 4.00103 11.63 4.00103C8.382 4.00103 5.472 5.80303 4.102 8.57103C4.03537 8.70353 4.00045 8.84971 4 8.99803C4.00188 9.1902 4.05909 9.37775 4.16479 9.53825C4.27049 9.69875 4.4202 9.8254 4.596 9.90303Z",
|
|
28
|
+
fill: "var(--ds-icon, #44546F)"
|
|
29
|
+
}));
|
|
30
|
+
}
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -9,9 +9,11 @@ exports.insertBlockPlugin = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
12
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
13
|
var _providerFactory = require("@atlaskit/editor-common/provider-factory");
|
|
13
14
|
var _types = require("@atlaskit/editor-common/types");
|
|
14
15
|
var _consts = require("@atlaskit/editor-plugin-block-type/consts");
|
|
16
|
+
var _switch = _interopRequireDefault(require("./assets/switch"));
|
|
15
17
|
var _ToolbarInsertBlock = _interopRequireDefault(require("./ui/ToolbarInsertBlock"));
|
|
16
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -114,6 +116,28 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
|
|
|
114
116
|
toggle();
|
|
115
117
|
}
|
|
116
118
|
},
|
|
119
|
+
pluginsOptions: {
|
|
120
|
+
// This is added for basic text transformations experiment.
|
|
121
|
+
// This may not be the most ideal plugin to add this to, but it is suitable for experiment purpose
|
|
122
|
+
// as relevant plugin dependencies are already set up.
|
|
123
|
+
// If we decide to ship the feature, we will consider a separate plugin if needed.
|
|
124
|
+
// Experiment one-pager: https://hello.atlassian.net/wiki/spaces/ETM/pages/3931754727/Experiment+Elements+Basic+Text+Transformations
|
|
125
|
+
selectionToolbar: function selectionToolbar(_, intl) {
|
|
126
|
+
var _api$featureFlags;
|
|
127
|
+
if (!(api !== null && api !== void 0 && (_api$featureFlags = api.featureFlags) !== null && _api$featureFlags !== void 0 && (_api$featureFlags = _api$featureFlags.sharedState.currentState()) !== null && _api$featureFlags !== void 0 && _api$featureFlags.basicTextTransformations)) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
return {
|
|
131
|
+
items: [{
|
|
132
|
+
type: 'dropdown',
|
|
133
|
+
title: intl.formatMessage(_messages.toolbarInsertBlockMessages.turnInto),
|
|
134
|
+
iconBefore: _switch.default,
|
|
135
|
+
options: []
|
|
136
|
+
}],
|
|
137
|
+
rank: -9
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
},
|
|
117
141
|
usePluginHook: function usePluginHook() {
|
|
118
142
|
(0, _react.useLayoutEffect)(function () {
|
|
119
143
|
return function () {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SVG from '@atlaskit/icon/svg';
|
|
3
|
+
export default function SwitchIcon() {
|
|
4
|
+
return /*#__PURE__*/React.createElement(SVG, {
|
|
5
|
+
label: ""
|
|
6
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
7
|
+
d: "M6.003 16H8.998C9.26322 16 9.51757 15.8947 9.70511 15.7071C9.89264 15.5196 9.998 15.2652 9.998 15C9.998 14.7348 9.89264 14.4805 9.70511 14.2929C9.51757 14.1054 9.26322 14 8.998 14H5.102C4.494 14 4 14.493 4 15.1V19C4 19.2656 4.10551 19.5204 4.29333 19.7082C4.48115 19.896 4.73589 20.0015 5.0015 20.0015C5.26711 20.0015 5.52185 19.896 5.70967 19.7082C5.89748 19.5204 6.003 19.2656 6.003 19V16Z",
|
|
8
|
+
fill: "var(--ds-icon, #44546F)"
|
|
9
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
10
|
+
d: "M18.018 14.572C16.989 16.649 14.807 18 12.37 18C10.104 18 8.051 16.833 6.945 14.98C6.659 14.5 6.023 14.334 5.524 14.609C5.40677 14.6709 5.30331 14.7559 5.21991 14.8589C5.13651 14.9619 5.0749 15.0808 5.0388 15.2083C5.00271 15.3359 4.99289 15.4694 5.00994 15.6009C5.027 15.7323 5.07056 15.8589 5.138 15.973C6.611 18.443 9.35 20 12.37 20C15.618 20 18.528 18.198 19.899 15.43C20.146 14.932 19.925 14.335 19.406 14.098C18.886 13.861 18.265 14.073 18.018 14.572Z",
|
|
11
|
+
fill: "var(--ds-icon, #44546F)"
|
|
12
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
13
|
+
fillRule: "evenodd",
|
|
14
|
+
clipRule: "evenodd",
|
|
15
|
+
d: "M15.002 10L18.898 10C19.506 10 20 9.50703 20 8.90003V5.00003C20 4.73441 19.8945 4.47968 19.7067 4.29186C19.5188 4.10404 19.2641 3.99853 18.9985 3.99853C18.7329 3.99853 18.4782 4.10404 18.2903 4.29186C18.1025 4.47968 17.997 4.73441 17.997 5.00003V8.00003H15.002C14.7368 8.00003 14.4824 8.10538 14.2949 8.29292C14.1074 8.48046 14.002 8.73481 14.002 9.00003C14.002 9.26524 14.1074 9.5196 14.2949 9.70713C14.4824 9.89467 14.7368 10 15.002 10Z",
|
|
16
|
+
fill: "var(--ds-icon, #44546F)"
|
|
17
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
18
|
+
fillRule: "evenodd",
|
|
19
|
+
clipRule: "evenodd",
|
|
20
|
+
d: "M4.596 9.90303C5.116 10.14 5.736 9.92803 5.983 9.42903C7.012 7.35203 9.193 6.00103 11.63 6.00103C13.896 6.00103 15.95 7.16803 17.055 9.02203C17.1988 9.25438 17.4265 9.42245 17.6909 9.49135C17.9553 9.56024 18.2361 9.52468 18.475 9.39203C18.975 9.11803 19.148 8.50703 18.862 8.02803C17.389 5.55803 14.65 4.00103 11.63 4.00103C8.382 4.00103 5.472 5.80303 4.102 8.57103C4.03537 8.70353 4.00045 8.84971 4 8.99803C4.00188 9.1902 4.05909 9.37775 4.16479 9.53825C4.27049 9.69875 4.4202 9.8254 4.596 9.90303Z",
|
|
21
|
+
fill: "var(--ds-icon, #44546F)"
|
|
22
|
+
}));
|
|
23
|
+
}
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { useLayoutEffect } from 'react';
|
|
2
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
5
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
5
6
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
6
7
|
import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
|
|
8
|
+
import SwitchIcon from './assets/switch';
|
|
7
9
|
import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
|
|
8
10
|
const toolbarSizeToButtons = toolbarSize => {
|
|
9
11
|
switch (toolbarSize) {
|
|
@@ -103,6 +105,28 @@ export const insertBlockPlugin = ({
|
|
|
103
105
|
toggle();
|
|
104
106
|
}
|
|
105
107
|
},
|
|
108
|
+
pluginsOptions: {
|
|
109
|
+
// This is added for basic text transformations experiment.
|
|
110
|
+
// This may not be the most ideal plugin to add this to, but it is suitable for experiment purpose
|
|
111
|
+
// as relevant plugin dependencies are already set up.
|
|
112
|
+
// If we decide to ship the feature, we will consider a separate plugin if needed.
|
|
113
|
+
// Experiment one-pager: https://hello.atlassian.net/wiki/spaces/ETM/pages/3931754727/Experiment+Elements+Basic+Text+Transformations
|
|
114
|
+
selectionToolbar: (_, intl) => {
|
|
115
|
+
var _api$featureFlags, _api$featureFlags$sha;
|
|
116
|
+
if (!(api !== null && api !== void 0 && (_api$featureFlags = api.featureFlags) !== null && _api$featureFlags !== void 0 && (_api$featureFlags$sha = _api$featureFlags.sharedState.currentState()) !== null && _api$featureFlags$sha !== void 0 && _api$featureFlags$sha.basicTextTransformations)) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
items: [{
|
|
121
|
+
type: 'dropdown',
|
|
122
|
+
title: intl.formatMessage(messages.turnInto),
|
|
123
|
+
iconBefore: SwitchIcon,
|
|
124
|
+
options: []
|
|
125
|
+
}],
|
|
126
|
+
rank: -9
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
},
|
|
106
130
|
usePluginHook: () => {
|
|
107
131
|
useLayoutEffect(() => {
|
|
108
132
|
return () => {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import SVG from '@atlaskit/icon/svg';
|
|
3
|
+
export default function SwitchIcon() {
|
|
4
|
+
return /*#__PURE__*/React.createElement(SVG, {
|
|
5
|
+
label: ""
|
|
6
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
7
|
+
d: "M6.003 16H8.998C9.26322 16 9.51757 15.8947 9.70511 15.7071C9.89264 15.5196 9.998 15.2652 9.998 15C9.998 14.7348 9.89264 14.4805 9.70511 14.2929C9.51757 14.1054 9.26322 14 8.998 14H5.102C4.494 14 4 14.493 4 15.1V19C4 19.2656 4.10551 19.5204 4.29333 19.7082C4.48115 19.896 4.73589 20.0015 5.0015 20.0015C5.26711 20.0015 5.52185 19.896 5.70967 19.7082C5.89748 19.5204 6.003 19.2656 6.003 19V16Z",
|
|
8
|
+
fill: "var(--ds-icon, #44546F)"
|
|
9
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
10
|
+
d: "M18.018 14.572C16.989 16.649 14.807 18 12.37 18C10.104 18 8.051 16.833 6.945 14.98C6.659 14.5 6.023 14.334 5.524 14.609C5.40677 14.6709 5.30331 14.7559 5.21991 14.8589C5.13651 14.9619 5.0749 15.0808 5.0388 15.2083C5.00271 15.3359 4.99289 15.4694 5.00994 15.6009C5.027 15.7323 5.07056 15.8589 5.138 15.973C6.611 18.443 9.35 20 12.37 20C15.618 20 18.528 18.198 19.899 15.43C20.146 14.932 19.925 14.335 19.406 14.098C18.886 13.861 18.265 14.073 18.018 14.572Z",
|
|
11
|
+
fill: "var(--ds-icon, #44546F)"
|
|
12
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
13
|
+
fillRule: "evenodd",
|
|
14
|
+
clipRule: "evenodd",
|
|
15
|
+
d: "M15.002 10L18.898 10C19.506 10 20 9.50703 20 8.90003V5.00003C20 4.73441 19.8945 4.47968 19.7067 4.29186C19.5188 4.10404 19.2641 3.99853 18.9985 3.99853C18.7329 3.99853 18.4782 4.10404 18.2903 4.29186C18.1025 4.47968 17.997 4.73441 17.997 5.00003V8.00003H15.002C14.7368 8.00003 14.4824 8.10538 14.2949 8.29292C14.1074 8.48046 14.002 8.73481 14.002 9.00003C14.002 9.26524 14.1074 9.5196 14.2949 9.70713C14.4824 9.89467 14.7368 10 15.002 10Z",
|
|
16
|
+
fill: "var(--ds-icon, #44546F)"
|
|
17
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
18
|
+
fillRule: "evenodd",
|
|
19
|
+
clipRule: "evenodd",
|
|
20
|
+
d: "M4.596 9.90303C5.116 10.14 5.736 9.92803 5.983 9.42903C7.012 7.35203 9.193 6.00103 11.63 6.00103C13.896 6.00103 15.95 7.16803 17.055 9.02203C17.1988 9.25438 17.4265 9.42245 17.6909 9.49135C17.9553 9.56024 18.2361 9.52468 18.475 9.39203C18.975 9.11803 19.148 8.50703 18.862 8.02803C17.389 5.55803 14.65 4.00103 11.63 4.00103C8.382 4.00103 5.472 5.80303 4.102 8.57103C4.03537 8.70353 4.00045 8.84971 4 8.99803C4.00188 9.1902 4.05909 9.37775 4.16479 9.53825C4.27049 9.69875 4.4202 9.8254 4.596 9.90303Z",
|
|
21
|
+
fill: "var(--ds-icon, #44546F)"
|
|
22
|
+
}));
|
|
23
|
+
}
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { useLayoutEffect } from 'react';
|
|
2
2
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
4
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
5
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
5
6
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
6
7
|
import { BLOCK_QUOTE, CODE_BLOCK, PANEL } from '@atlaskit/editor-plugin-block-type/consts';
|
|
8
|
+
import SwitchIcon from './assets/switch';
|
|
7
9
|
import ToolbarInsertBlock from './ui/ToolbarInsertBlock';
|
|
8
10
|
var toolbarSizeToButtons = function toolbarSizeToButtons(toolbarSize) {
|
|
9
11
|
switch (toolbarSize) {
|
|
@@ -104,6 +106,28 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
|
|
|
104
106
|
toggle();
|
|
105
107
|
}
|
|
106
108
|
},
|
|
109
|
+
pluginsOptions: {
|
|
110
|
+
// This is added for basic text transformations experiment.
|
|
111
|
+
// This may not be the most ideal plugin to add this to, but it is suitable for experiment purpose
|
|
112
|
+
// as relevant plugin dependencies are already set up.
|
|
113
|
+
// If we decide to ship the feature, we will consider a separate plugin if needed.
|
|
114
|
+
// Experiment one-pager: https://hello.atlassian.net/wiki/spaces/ETM/pages/3931754727/Experiment+Elements+Basic+Text+Transformations
|
|
115
|
+
selectionToolbar: function selectionToolbar(_, intl) {
|
|
116
|
+
var _api$featureFlags;
|
|
117
|
+
if (!(api !== null && api !== void 0 && (_api$featureFlags = api.featureFlags) !== null && _api$featureFlags !== void 0 && (_api$featureFlags = _api$featureFlags.sharedState.currentState()) !== null && _api$featureFlags !== void 0 && _api$featureFlags.basicTextTransformations)) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
return {
|
|
121
|
+
items: [{
|
|
122
|
+
type: 'dropdown',
|
|
123
|
+
title: intl.formatMessage(messages.turnInto),
|
|
124
|
+
iconBefore: SwitchIcon,
|
|
125
|
+
options: []
|
|
126
|
+
}],
|
|
127
|
+
rank: -9
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
},
|
|
107
131
|
usePluginHook: function usePluginHook() {
|
|
108
132
|
useLayoutEffect(function () {
|
|
109
133
|
return function () {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type { DatePlugin } from '@atlaskit/editor-plugin-date';
|
|
|
6
6
|
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
7
7
|
import type { ExpandPlugin } from '@atlaskit/editor-plugin-expand';
|
|
8
8
|
import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
|
|
9
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
9
10
|
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
10
11
|
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
11
12
|
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
@@ -41,5 +42,6 @@ export type InsertBlockPluginDependencies = [
|
|
|
41
42
|
OptionalPlugin<PlaceholderTextPlugin>,
|
|
42
43
|
OptionalPlugin<ExtensionPlugin>,
|
|
43
44
|
OptionalPlugin<TasksAndDecisionsPlugin>,
|
|
44
|
-
OptionalPlugin<PrimaryToolbarPlugin
|
|
45
|
+
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
46
|
+
OptionalPlugin<FeatureFlagsPlugin>
|
|
45
47
|
];
|
|
@@ -6,6 +6,7 @@ import type { DatePlugin } from '@atlaskit/editor-plugin-date';
|
|
|
6
6
|
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
7
7
|
import type { ExpandPlugin } from '@atlaskit/editor-plugin-expand';
|
|
8
8
|
import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
|
|
9
|
+
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
9
10
|
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
10
11
|
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
11
12
|
import type { LayoutPlugin } from '@atlaskit/editor-plugin-layout';
|
|
@@ -41,5 +42,6 @@ export type InsertBlockPluginDependencies = [
|
|
|
41
42
|
OptionalPlugin<PlaceholderTextPlugin>,
|
|
42
43
|
OptionalPlugin<ExtensionPlugin>,
|
|
43
44
|
OptionalPlugin<TasksAndDecisionsPlugin>,
|
|
44
|
-
OptionalPlugin<PrimaryToolbarPlugin
|
|
45
|
+
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
46
|
+
OptionalPlugin<FeatureFlagsPlugin>
|
|
45
47
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-insert-block",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Insert block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^87.
|
|
36
|
+
"@atlaskit/editor-common": "^87.4.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.6.0",
|
|
38
38
|
"@atlaskit/editor-plugin-block-type": "^3.11.0",
|
|
39
39
|
"@atlaskit/editor-plugin-code-block": "^3.2.0",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"@atlaskit/editor-plugin-emoji": "^2.2.0",
|
|
42
42
|
"@atlaskit/editor-plugin-expand": "^2.2.0",
|
|
43
43
|
"@atlaskit/editor-plugin-extension": "^1.12.0",
|
|
44
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
44
45
|
"@atlaskit/editor-plugin-hyperlink": "^2.7.0",
|
|
45
46
|
"@atlaskit/editor-plugin-image-upload": "^1.2.0",
|
|
46
47
|
"@atlaskit/editor-plugin-layout": "^1.6.0",
|