@atlaskit/editor-plugin-loom 2.2.1 → 2.2.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 +8 -0
- package/dist/cjs/plugin.js +4 -2
- package/dist/cjs/ui/ToolbarButton.js +2 -1
- package/dist/es2019/plugin.js +4 -2
- package/dist/es2019/ui/ToolbarButton.js +2 -1
- package/dist/esm/plugin.js +4 -2
- package/dist/esm/ui/ToolbarButton.js +2 -1
- package/dist/types/ui/ToolbarButton.d.ts +3 -0
- package/dist/types-ts4.5/ui/ToolbarButton.d.ts +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-loom
|
|
2
2
|
|
|
3
|
+
## 2.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#96234](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96234)
|
|
8
|
+
[`d414d3e7503b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d414d3e7503b) -
|
|
9
|
+
Update copy for Loom toolbar tooltip item and quickinsert description
|
|
10
|
+
|
|
3
11
|
## 2.2.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -85,13 +85,15 @@ var loomPlugin = exports.loomPlugin = function loomPlugin(_ref) {
|
|
|
85
85
|
},
|
|
86
86
|
// Enable inserting Loom recordings through main toolbar
|
|
87
87
|
primaryToolbarComponent: function primaryToolbarComponent(_ref3) {
|
|
88
|
-
var disabled = _ref3.disabled
|
|
88
|
+
var disabled = _ref3.disabled,
|
|
89
|
+
appearance = _ref3.appearance;
|
|
89
90
|
if (!config.shouldShowToolbarButton) {
|
|
90
91
|
return null;
|
|
91
92
|
}
|
|
92
93
|
return /*#__PURE__*/_react.default.createElement(_ToolbarButton.default, {
|
|
93
94
|
disabled: disabled,
|
|
94
|
-
api: api
|
|
95
|
+
api: api,
|
|
96
|
+
appearance: appearance
|
|
95
97
|
});
|
|
96
98
|
}
|
|
97
99
|
};
|
|
@@ -16,13 +16,14 @@ var _commands = require("../commands");
|
|
|
16
16
|
var LoomToolbarButton = function LoomToolbarButton(_ref) {
|
|
17
17
|
var disabled = _ref.disabled,
|
|
18
18
|
api = _ref.api,
|
|
19
|
+
appearance = _ref.appearance,
|
|
19
20
|
formatMessage = _ref.intl.formatMessage;
|
|
20
21
|
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(api, ['loom']),
|
|
21
22
|
loomState = _useSharedPluginState.loomState;
|
|
22
23
|
if (!loomState) {
|
|
23
24
|
return null;
|
|
24
25
|
}
|
|
25
|
-
var label = formatMessage(_messages.toolbarInsertBlockMessages.addLoomVideo);
|
|
26
|
+
var label = formatMessage(appearance === 'comment' ? _messages.toolbarInsertBlockMessages.addLoomVideoComment : _messages.toolbarInsertBlockMessages.addLoomVideo);
|
|
26
27
|
return /*#__PURE__*/_react.default.createElement(_uiMenu.ToolbarButton, {
|
|
27
28
|
buttonId: _uiMenu.TOOLBAR_BUTTON.RECORD_VIDEO,
|
|
28
29
|
onClick: function onClick() {
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -72,14 +72,16 @@ export const loomPlugin = ({
|
|
|
72
72
|
},
|
|
73
73
|
// Enable inserting Loom recordings through main toolbar
|
|
74
74
|
primaryToolbarComponent({
|
|
75
|
-
disabled
|
|
75
|
+
disabled,
|
|
76
|
+
appearance
|
|
76
77
|
}) {
|
|
77
78
|
if (!config.shouldShowToolbarButton) {
|
|
78
79
|
return null;
|
|
79
80
|
}
|
|
80
81
|
return /*#__PURE__*/React.createElement(LoomToolbarButton, {
|
|
81
82
|
disabled: disabled,
|
|
82
|
-
api: api
|
|
83
|
+
api: api,
|
|
84
|
+
appearance: appearance
|
|
83
85
|
});
|
|
84
86
|
}
|
|
85
87
|
};
|
|
@@ -9,6 +9,7 @@ import { recordVideo } from '../commands';
|
|
|
9
9
|
const LoomToolbarButton = ({
|
|
10
10
|
disabled,
|
|
11
11
|
api,
|
|
12
|
+
appearance,
|
|
12
13
|
intl: {
|
|
13
14
|
formatMessage
|
|
14
15
|
}
|
|
@@ -19,7 +20,7 @@ const LoomToolbarButton = ({
|
|
|
19
20
|
if (!loomState) {
|
|
20
21
|
return null;
|
|
21
22
|
}
|
|
22
|
-
const label = formatMessage(toolbarInsertBlockMessages.addLoomVideo);
|
|
23
|
+
const label = formatMessage(appearance === 'comment' ? toolbarInsertBlockMessages.addLoomVideoComment : toolbarInsertBlockMessages.addLoomVideo);
|
|
23
24
|
return /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
24
25
|
buttonId: TOOLBAR_BUTTON.RECORD_VIDEO,
|
|
25
26
|
onClick: () => {
|
package/dist/esm/plugin.js
CHANGED
|
@@ -78,13 +78,15 @@ export var loomPlugin = function loomPlugin(_ref) {
|
|
|
78
78
|
},
|
|
79
79
|
// Enable inserting Loom recordings through main toolbar
|
|
80
80
|
primaryToolbarComponent: function primaryToolbarComponent(_ref3) {
|
|
81
|
-
var disabled = _ref3.disabled
|
|
81
|
+
var disabled = _ref3.disabled,
|
|
82
|
+
appearance = _ref3.appearance;
|
|
82
83
|
if (!config.shouldShowToolbarButton) {
|
|
83
84
|
return null;
|
|
84
85
|
}
|
|
85
86
|
return /*#__PURE__*/React.createElement(LoomToolbarButton, {
|
|
86
87
|
disabled: disabled,
|
|
87
|
-
api: api
|
|
88
|
+
api: api,
|
|
89
|
+
appearance: appearance
|
|
88
90
|
});
|
|
89
91
|
}
|
|
90
92
|
};
|
|
@@ -9,13 +9,14 @@ import { recordVideo } from '../commands';
|
|
|
9
9
|
var LoomToolbarButton = function LoomToolbarButton(_ref) {
|
|
10
10
|
var disabled = _ref.disabled,
|
|
11
11
|
api = _ref.api,
|
|
12
|
+
appearance = _ref.appearance,
|
|
12
13
|
formatMessage = _ref.intl.formatMessage;
|
|
13
14
|
var _useSharedPluginState = useSharedPluginState(api, ['loom']),
|
|
14
15
|
loomState = _useSharedPluginState.loomState;
|
|
15
16
|
if (!loomState) {
|
|
16
17
|
return null;
|
|
17
18
|
}
|
|
18
|
-
var label = formatMessage(toolbarInsertBlockMessages.addLoomVideo);
|
|
19
|
+
var label = formatMessage(appearance === 'comment' ? toolbarInsertBlockMessages.addLoomVideoComment : toolbarInsertBlockMessages.addLoomVideo);
|
|
19
20
|
return /*#__PURE__*/React.createElement(ToolbarButton, {
|
|
20
21
|
buttonId: TOOLBAR_BUTTON.RECORD_VIDEO,
|
|
21
22
|
onClick: function onClick() {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
4
5
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
5
6
|
disabled: boolean;
|
|
7
|
+
appearance: EditorAppearance;
|
|
6
8
|
api: import("@atlaskit/editor-common/types").PublicPluginAPI<[import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
|
|
7
9
|
pluginConfiguration: import("..").LoomPluginOptions;
|
|
8
10
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -93,6 +95,7 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
93
95
|
} & WrappedComponentProps>> & {
|
|
94
96
|
WrappedComponent: React.ComponentType<{
|
|
95
97
|
disabled: boolean;
|
|
98
|
+
appearance: EditorAppearance;
|
|
96
99
|
api: import("@atlaskit/editor-common/types").PublicPluginAPI<[import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
|
|
97
100
|
pluginConfiguration: import("..").LoomPluginOptions;
|
|
98
101
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
4
5
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
5
6
|
disabled: boolean;
|
|
7
|
+
appearance: EditorAppearance;
|
|
6
8
|
api: import("@atlaskit/editor-common/types").PublicPluginAPI<[
|
|
7
9
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
|
|
8
10
|
pluginConfiguration: import("..").LoomPluginOptions;
|
|
@@ -112,6 +114,7 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
112
114
|
} & WrappedComponentProps>> & {
|
|
113
115
|
WrappedComponent: React.ComponentType<{
|
|
114
116
|
disabled: boolean;
|
|
117
|
+
appearance: EditorAppearance;
|
|
115
118
|
api: import("@atlaskit/editor-common/types").PublicPluginAPI<[
|
|
116
119
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"loom", {
|
|
117
120
|
pluginConfiguration: import("..").LoomPluginOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-loom",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "Loom plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
".": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^78.
|
|
39
|
+
"@atlaskit/editor-common": "^78.37.0",
|
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^1.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-hyperlink": "^1.6.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "4.0.0",
|