@atlaskit/editor-plugin-loom 9.0.3 → 9.1.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 +20 -0
- package/dist/cjs/ui/LoomMenuItem.js +1 -2
- package/dist/cjs/ui/MenuSection.js +2 -15
- package/dist/cjs/ui/toolbar-components.js +6 -19
- package/dist/es2019/ui/LoomMenuItem.js +1 -2
- package/dist/es2019/ui/MenuSection.js +2 -13
- package/dist/es2019/ui/toolbar-components.js +6 -18
- package/dist/esm/ui/LoomMenuItem.js +1 -2
- package/dist/esm/ui/MenuSection.js +2 -15
- package/dist/esm/ui/toolbar-components.js +7 -20
- package/dist/types/loomPluginType.d.ts +1 -3
- package/dist/types-ts4.5/loomPluginType.d.ts +1 -3
- package/package.json +3 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-loom
|
|
2
2
|
|
|
3
|
+
## 9.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`6e8029473620b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6e8029473620b) -
|
|
8
|
+
[EDITOR-4496] clean up experiment platform_editor_toolbar_aifc_patch_3 and remove view-mode plugin
|
|
9
|
+
dependency from loom plugin
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 9.0.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`8708f328d5db6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8708f328d5db6) -
|
|
20
|
+
Clean up platform_editor_toolbar_aifc_overflow_menu_update feature gate
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 9.0.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -11,7 +11,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
13
13
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
14
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
14
|
var _commands = require("../pm-plugins/commands");
|
|
16
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
16
|
var useLoomEnabled = function useLoomEnabled(api) {
|
|
@@ -30,7 +29,7 @@ var LoomMenuItem = exports.LoomMenuItem = function LoomMenuItem(_ref) {
|
|
|
30
29
|
var loomEnabled = useLoomEnabled(api);
|
|
31
30
|
var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
|
|
32
31
|
editorViewMode = _useEditorToolbar.editorViewMode;
|
|
33
|
-
if (editorViewMode !== 'edit'
|
|
32
|
+
if (editorViewMode !== 'edit') {
|
|
34
33
|
return null;
|
|
35
34
|
}
|
|
36
35
|
if (renderButton) {
|
|
@@ -7,27 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.MenuSection = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
10
|
-
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
11
10
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
12
|
-
var
|
|
13
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
|
-
/**
|
|
15
|
-
* !! When removing platform_editor_toolbar_aifc_patch_3 also remove package dependency on `@atlaskit/editor-plugin-view-mode`.
|
|
16
|
-
*/
|
|
17
|
-
var usePluginState = (0, _platformFeatureFlagsReact.conditionalHooksFactory)(function () {
|
|
18
|
-
return (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
19
|
-
}, function (api) {
|
|
11
|
+
var usePluginState = function usePluginState(_api) {
|
|
20
12
|
var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
|
|
21
13
|
editorViewMode = _useEditorToolbar.editorViewMode;
|
|
22
14
|
return {
|
|
23
15
|
editorViewMode: editorViewMode
|
|
24
16
|
};
|
|
25
|
-
}
|
|
26
|
-
var editorViewMode = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(api, 'editorViewMode.mode');
|
|
27
|
-
return {
|
|
28
|
-
editorViewMode: editorViewMode
|
|
29
|
-
};
|
|
30
|
-
});
|
|
17
|
+
};
|
|
31
18
|
var MenuSection = exports.MenuSection = function MenuSection(_ref) {
|
|
32
19
|
var children = _ref.children,
|
|
33
20
|
api = _ref.api;
|
|
@@ -5,36 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.getToolbarComponents = void 0;
|
|
8
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
11
|
-
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
10
|
var _LoomMenuItem = require("./LoomMenuItem");
|
|
15
11
|
var _MenuSection = require("./MenuSection");
|
|
16
12
|
var getToolbarComponents = exports.getToolbarComponents = function getToolbarComponents(config, api) {
|
|
17
13
|
return [{
|
|
18
14
|
type: _toolbar.LOOM_MENU_SECTION.type,
|
|
19
15
|
key: _toolbar.LOOM_MENU_SECTION.key,
|
|
20
|
-
parents: [
|
|
21
|
-
type: _toolbar.OVERFLOW_MENU.type,
|
|
22
|
-
key: _toolbar.OVERFLOW_MENU.key,
|
|
23
|
-
rank: _toolbar.OVERFLOW_MENU_RANK[_toolbar.LOOM_MENU_SECTION.key]
|
|
24
|
-
}]), [{
|
|
16
|
+
parents: [{
|
|
25
17
|
type: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
|
|
26
18
|
key: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
|
|
27
19
|
rank: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK[_toolbar.LOOM_MENU_SECTION.key]
|
|
28
|
-
}]
|
|
20
|
+
}],
|
|
29
21
|
component: function component(_ref) {
|
|
30
22
|
var children = _ref.children;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
api: api
|
|
34
|
-
}, children);
|
|
35
|
-
}
|
|
36
|
-
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
|
|
37
|
-
hasSeparator: true
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_MenuSection.MenuSection, {
|
|
24
|
+
api: api
|
|
38
25
|
}, children);
|
|
39
26
|
}
|
|
40
27
|
}, {
|
|
@@ -44,11 +31,11 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
44
31
|
type: _toolbar.LOOM_MENU_SECTION.type,
|
|
45
32
|
key: _toolbar.LOOM_MENU_SECTION.key,
|
|
46
33
|
rank: _toolbar.LOOM_MENU_SECTION_RANK[_toolbar.LOOM_MENU_ITEM.key]
|
|
47
|
-
}
|
|
34
|
+
}, {
|
|
48
35
|
type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
49
36
|
key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
50
37
|
rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.LOOM_MENU_ITEM.key]
|
|
51
|
-
}]
|
|
38
|
+
}],
|
|
52
39
|
component: function component() {
|
|
53
40
|
return /*#__PURE__*/_react.default.createElement(_LoomMenuItem.LoomMenuItem, {
|
|
54
41
|
api: api,
|
|
@@ -4,7 +4,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
4
4
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
6
6
|
import { LoomIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { executeRecordVideo } from '../pm-plugins/commands';
|
|
9
8
|
const useLoomEnabled = api => {
|
|
10
9
|
const {
|
|
@@ -25,7 +24,7 @@ export const LoomMenuItem = ({
|
|
|
25
24
|
const {
|
|
26
25
|
editorViewMode
|
|
27
26
|
} = useEditorToolbar();
|
|
28
|
-
if (editorViewMode !== 'edit'
|
|
27
|
+
if (editorViewMode !== 'edit') {
|
|
29
28
|
return null;
|
|
30
29
|
}
|
|
31
30
|
if (renderButton) {
|
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
/**
|
|
8
|
-
* !! When removing platform_editor_toolbar_aifc_patch_3 also remove package dependency on `@atlaskit/editor-plugin-view-mode`.
|
|
9
|
-
*/
|
|
10
|
-
const usePluginState = conditionalHooksFactory(() => expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true), api => {
|
|
4
|
+
const usePluginState = _api => {
|
|
11
5
|
const {
|
|
12
6
|
editorViewMode
|
|
13
7
|
} = useEditorToolbar();
|
|
14
8
|
return {
|
|
15
9
|
editorViewMode
|
|
16
10
|
};
|
|
17
|
-
}
|
|
18
|
-
const editorViewMode = useSharedPluginStateSelector(api, 'editorViewMode.mode');
|
|
19
|
-
return {
|
|
20
|
-
editorViewMode
|
|
21
|
-
};
|
|
22
|
-
});
|
|
11
|
+
};
|
|
23
12
|
export const MenuSection = ({
|
|
24
13
|
children,
|
|
25
14
|
api
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { LOOM_MENU_SECTION,
|
|
3
|
-
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
2
|
+
import { LOOM_MENU_SECTION, LOOM_MENU_ITEM, LOOM_MENU_SECTION_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar';
|
|
6
3
|
import { LoomMenuItem } from './LoomMenuItem';
|
|
7
4
|
import { MenuSection } from './MenuSection';
|
|
8
5
|
export const getToolbarComponents = (config, api) => {
|
|
9
6
|
return [{
|
|
10
7
|
type: LOOM_MENU_SECTION.type,
|
|
11
8
|
key: LOOM_MENU_SECTION.key,
|
|
12
|
-
parents: [
|
|
13
|
-
type: OVERFLOW_MENU.type,
|
|
14
|
-
key: OVERFLOW_MENU.key,
|
|
15
|
-
rank: OVERFLOW_MENU_RANK[LOOM_MENU_SECTION.key]
|
|
16
|
-
}]), {
|
|
9
|
+
parents: [{
|
|
17
10
|
type: OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
|
|
18
11
|
key: OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
|
|
19
12
|
rank: OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK[LOOM_MENU_SECTION.key]
|
|
@@ -21,13 +14,8 @@ export const getToolbarComponents = (config, api) => {
|
|
|
21
14
|
component: ({
|
|
22
15
|
children
|
|
23
16
|
}) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
api: api
|
|
27
|
-
}, children);
|
|
28
|
-
}
|
|
29
|
-
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
|
|
30
|
-
hasSeparator: true
|
|
17
|
+
return /*#__PURE__*/React.createElement(MenuSection, {
|
|
18
|
+
api: api
|
|
31
19
|
}, children);
|
|
32
20
|
}
|
|
33
21
|
}, {
|
|
@@ -37,11 +25,11 @@ export const getToolbarComponents = (config, api) => {
|
|
|
37
25
|
type: LOOM_MENU_SECTION.type,
|
|
38
26
|
key: LOOM_MENU_SECTION.key,
|
|
39
27
|
rank: LOOM_MENU_SECTION_RANK[LOOM_MENU_ITEM.key]
|
|
40
|
-
},
|
|
28
|
+
}, {
|
|
41
29
|
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
42
30
|
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
43
31
|
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[LOOM_MENU_ITEM.key]
|
|
44
|
-
}]
|
|
32
|
+
}],
|
|
45
33
|
component: () => {
|
|
46
34
|
return /*#__PURE__*/React.createElement(LoomMenuItem, {
|
|
47
35
|
api: api,
|
|
@@ -4,7 +4,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
4
4
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
6
6
|
import { LoomIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { executeRecordVideo } from '../pm-plugins/commands';
|
|
9
8
|
var useLoomEnabled = function useLoomEnabled(api) {
|
|
10
9
|
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['loom'], function (states) {
|
|
@@ -22,7 +21,7 @@ export var LoomMenuItem = function LoomMenuItem(_ref) {
|
|
|
22
21
|
var loomEnabled = useLoomEnabled(api);
|
|
23
22
|
var _useEditorToolbar = useEditorToolbar(),
|
|
24
23
|
editorViewMode = _useEditorToolbar.editorViewMode;
|
|
25
|
-
if (editorViewMode !== 'edit'
|
|
24
|
+
if (editorViewMode !== 'edit') {
|
|
26
25
|
return null;
|
|
27
26
|
}
|
|
28
27
|
if (renderButton) {
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
|
-
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
4
3
|
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
5
|
-
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
|
-
/**
|
|
8
|
-
* !! When removing platform_editor_toolbar_aifc_patch_3 also remove package dependency on `@atlaskit/editor-plugin-view-mode`.
|
|
9
|
-
*/
|
|
10
|
-
var usePluginState = conditionalHooksFactory(function () {
|
|
11
|
-
return expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true);
|
|
12
|
-
}, function (api) {
|
|
4
|
+
var usePluginState = function usePluginState(_api) {
|
|
13
5
|
var _useEditorToolbar = useEditorToolbar(),
|
|
14
6
|
editorViewMode = _useEditorToolbar.editorViewMode;
|
|
15
7
|
return {
|
|
16
8
|
editorViewMode: editorViewMode
|
|
17
9
|
};
|
|
18
|
-
}
|
|
19
|
-
var editorViewMode = useSharedPluginStateSelector(api, 'editorViewMode.mode');
|
|
20
|
-
return {
|
|
21
|
-
editorViewMode: editorViewMode
|
|
22
|
-
};
|
|
23
|
-
});
|
|
10
|
+
};
|
|
24
11
|
export var MenuSection = function MenuSection(_ref) {
|
|
25
12
|
var children = _ref.children,
|
|
26
13
|
api = _ref.api;
|
|
@@ -1,33 +1,20 @@
|
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { LOOM_MENU_SECTION,
|
|
4
|
-
import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
2
|
+
import { LOOM_MENU_SECTION, LOOM_MENU_ITEM, LOOM_MENU_SECTION_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar';
|
|
7
3
|
import { LoomMenuItem } from './LoomMenuItem';
|
|
8
4
|
import { MenuSection } from './MenuSection';
|
|
9
5
|
export var getToolbarComponents = function getToolbarComponents(config, api) {
|
|
10
6
|
return [{
|
|
11
7
|
type: LOOM_MENU_SECTION.type,
|
|
12
8
|
key: LOOM_MENU_SECTION.key,
|
|
13
|
-
parents: [
|
|
14
|
-
type: OVERFLOW_MENU.type,
|
|
15
|
-
key: OVERFLOW_MENU.key,
|
|
16
|
-
rank: OVERFLOW_MENU_RANK[LOOM_MENU_SECTION.key]
|
|
17
|
-
}]), [{
|
|
9
|
+
parents: [{
|
|
18
10
|
type: OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
|
|
19
11
|
key: OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
|
|
20
12
|
rank: OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK[LOOM_MENU_SECTION.key]
|
|
21
|
-
}]
|
|
13
|
+
}],
|
|
22
14
|
component: function component(_ref) {
|
|
23
15
|
var children = _ref.children;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
api: api
|
|
27
|
-
}, children);
|
|
28
|
-
}
|
|
29
|
-
return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
|
|
30
|
-
hasSeparator: true
|
|
16
|
+
return /*#__PURE__*/React.createElement(MenuSection, {
|
|
17
|
+
api: api
|
|
31
18
|
}, children);
|
|
32
19
|
}
|
|
33
20
|
}, {
|
|
@@ -37,11 +24,11 @@ export var getToolbarComponents = function getToolbarComponents(config, api) {
|
|
|
37
24
|
type: LOOM_MENU_SECTION.type,
|
|
38
25
|
key: LOOM_MENU_SECTION.key,
|
|
39
26
|
rank: LOOM_MENU_SECTION_RANK[LOOM_MENU_ITEM.key]
|
|
40
|
-
}
|
|
27
|
+
}, {
|
|
41
28
|
type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
|
|
42
29
|
key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
|
|
43
30
|
rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[LOOM_MENU_ITEM.key]
|
|
44
|
-
}]
|
|
31
|
+
}],
|
|
45
32
|
component: function component() {
|
|
46
33
|
return /*#__PURE__*/React.createElement(LoomMenuItem, {
|
|
47
34
|
api: api,
|
|
@@ -3,7 +3,6 @@ import { type INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
3
3
|
import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
6
|
-
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
7
6
|
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
8
7
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
9
8
|
import { type QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
@@ -42,8 +41,7 @@ export type LoomPlugin = NextEditorPlugin<'loom', {
|
|
|
42
41
|
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
43
42
|
OptionalPlugin<QuickInsertPlugin>,
|
|
44
43
|
OptionalPlugin<ConnectivityPlugin>,
|
|
45
|
-
OptionalPlugin<ToolbarPlugin
|
|
46
|
-
OptionalPlugin<EditorViewModePlugin>
|
|
44
|
+
OptionalPlugin<ToolbarPlugin>
|
|
47
45
|
];
|
|
48
46
|
pluginConfiguration: LoomPluginOptions;
|
|
49
47
|
sharedState: LoomPluginState | undefined;
|
|
@@ -3,7 +3,6 @@ import { type INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
3
3
|
import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
5
|
import type { ConnectivityPlugin } from '@atlaskit/editor-plugin-connectivity';
|
|
6
|
-
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
7
6
|
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
8
7
|
import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugin-primary-toolbar';
|
|
9
8
|
import { type QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
@@ -42,8 +41,7 @@ export type LoomPlugin = NextEditorPlugin<'loom', {
|
|
|
42
41
|
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
43
42
|
OptionalPlugin<QuickInsertPlugin>,
|
|
44
43
|
OptionalPlugin<ConnectivityPlugin>,
|
|
45
|
-
OptionalPlugin<ToolbarPlugin
|
|
46
|
-
OptionalPlugin<EditorViewModePlugin>
|
|
44
|
+
OptionalPlugin<ToolbarPlugin>
|
|
47
45
|
];
|
|
48
46
|
pluginConfiguration: LoomPluginOptions;
|
|
49
47
|
sharedState: LoomPluginState | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-loom",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "Loom plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,19 +35,16 @@
|
|
|
35
35
|
"@atlaskit/button": "^23.9.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-connectivity": "^7.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
|
|
39
38
|
"@atlaskit/editor-plugin-hyperlink": "^9.0.0",
|
|
40
39
|
"@atlaskit/editor-plugin-primary-toolbar": "^8.0.0",
|
|
41
40
|
"@atlaskit/editor-plugin-quick-insert": "^7.1.0",
|
|
42
|
-
"@atlaskit/editor-plugin-toolbar": "^4.
|
|
41
|
+
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
43
42
|
"@atlaskit/editor-plugin-width": "^8.0.0",
|
|
44
43
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
45
44
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
46
45
|
"@atlaskit/icon": "^29.4.0",
|
|
47
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
|
-
"@atlaskit/
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
50
|
-
"@atlaskit/tokens": "^10.0.0",
|
|
47
|
+
"@atlaskit/tokens": "^10.1.0",
|
|
51
48
|
"@babel/runtime": "^7.0.0",
|
|
52
49
|
"@emotion/react": "^11.7.1",
|
|
53
50
|
"@loomhq/record-sdk": "^4.7.1"
|
|
@@ -102,9 +99,6 @@
|
|
|
102
99
|
"platform-feature-flags": {
|
|
103
100
|
"should-render-to-parent-should-be-true-editor-lego": {
|
|
104
101
|
"type": "boolean"
|
|
105
|
-
},
|
|
106
|
-
"platform_editor_toolbar_aifc_overflow_menu_update": {
|
|
107
|
-
"type": "boolean"
|
|
108
102
|
}
|
|
109
103
|
}
|
|
110
104
|
}
|