@atlaskit/editor-plugin-loom 3.1.9 → 3.1.10
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-loom
|
|
2
2
|
|
|
3
|
+
## 3.1.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#158883](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/158883)
|
|
8
|
+
[`f0e2b3da18c56`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f0e2b3da18c56) -
|
|
9
|
+
ED-24719 Clean up platform.editor.plugin.loom.responsive-menu_4at4a FF
|
|
10
|
+
|
|
3
11
|
## 3.1.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -12,7 +12,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
14
14
|
var _video = _interopRequireDefault(require("@atlaskit/icon/core/video"));
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
/**
|
|
17
16
|
* @jsxRuntime classic
|
|
18
17
|
* @jsx jsx
|
|
@@ -46,7 +45,7 @@ var LoomToolbarButtonInternal = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
46
45
|
var _useSharedPluginState = (0, _hooks.useSharedPluginState)(api, ['loom', 'width']),
|
|
47
46
|
widthState = _useSharedPluginState.widthState;
|
|
48
47
|
var label = formatMessage(appearance === 'comment' ? _messages.toolbarInsertBlockMessages.addLoomVideoComment : _messages.toolbarInsertBlockMessages.addLoomVideo);
|
|
49
|
-
var shouldShowRecordText = (
|
|
48
|
+
var shouldShowRecordText = ((widthState === null || widthState === void 0 ? void 0 : widthState.width) || 0) > LOOM_BUTTON_WIDTH_BREAKPOINT;
|
|
50
49
|
return (0, _react2.jsx)(_uiMenu.ToolbarButton, {
|
|
51
50
|
hideTooltip: hideTooltip,
|
|
52
51
|
ref: ref,
|
|
@@ -11,7 +11,6 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
|
11
11
|
import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
13
|
import VideoIcon from '@atlaskit/icon/core/video';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
// This const is derived from the breakpoint where the toolbar hides its icons. It is used to hide the text in the AI button.
|
|
16
15
|
// Derived from values from platform/packages/editor/editor-core/src/ui/Appearance/FullPage/MainToolbar.tsx
|
|
17
16
|
const LOOM_BUTTON_WIDTH_BREAKPOINT = 1076;
|
|
@@ -42,7 +41,7 @@ const LoomToolbarButtonInternal = /*#__PURE__*/React.forwardRef(({
|
|
|
42
41
|
widthState
|
|
43
42
|
} = useSharedPluginState(api, ['loom', 'width']);
|
|
44
43
|
const label = formatMessage(appearance === 'comment' ? toolbarInsertBlockMessages.addLoomVideoComment : toolbarInsertBlockMessages.addLoomVideo);
|
|
45
|
-
const shouldShowRecordText =
|
|
44
|
+
const shouldShowRecordText = ((widthState === null || widthState === void 0 ? void 0 : widthState.width) || 0) > LOOM_BUTTON_WIDTH_BREAKPOINT;
|
|
46
45
|
return jsx(ToolbarButton, {
|
|
47
46
|
hideTooltip: hideTooltip,
|
|
48
47
|
ref: ref,
|
|
@@ -11,7 +11,6 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
|
11
11
|
import { toolbarInsertBlockMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
13
13
|
import VideoIcon from '@atlaskit/icon/core/video';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
14
|
// This const is derived from the breakpoint where the toolbar hides its icons. It is used to hide the text in the AI button.
|
|
16
15
|
// Derived from values from platform/packages/editor/editor-core/src/ui/Appearance/FullPage/MainToolbar.tsx
|
|
17
16
|
var LOOM_BUTTON_WIDTH_BREAKPOINT = 1076;
|
|
@@ -38,7 +37,7 @@ var LoomToolbarButtonInternal = /*#__PURE__*/React.forwardRef(function (_ref, re
|
|
|
38
37
|
var _useSharedPluginState = useSharedPluginState(api, ['loom', 'width']),
|
|
39
38
|
widthState = _useSharedPluginState.widthState;
|
|
40
39
|
var label = formatMessage(appearance === 'comment' ? toolbarInsertBlockMessages.addLoomVideoComment : toolbarInsertBlockMessages.addLoomVideo);
|
|
41
|
-
var shouldShowRecordText =
|
|
40
|
+
var shouldShowRecordText = ((widthState === null || widthState === void 0 ? void 0 : widthState.width) || 0) > LOOM_BUTTON_WIDTH_BREAKPOINT;
|
|
42
41
|
return jsx(ToolbarButton, {
|
|
43
42
|
hideTooltip: hideTooltip,
|
|
44
43
|
ref: ref,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-loom",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.10",
|
|
4
4
|
"description": "Loom plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/button": "^20.3.0",
|
|
38
|
-
"@atlaskit/editor-common": "^94.
|
|
38
|
+
"@atlaskit/editor-common": "^94.9.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
40
40
|
"@atlaskit/editor-plugin-hyperlink": "^3.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-quick-insert": "^1.
|
|
42
|
+
"@atlaskit/editor-plugin-quick-insert": "^1.6.0",
|
|
43
43
|
"@atlaskit/editor-plugin-width": "^1.3.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
45
45
|
"@atlaskit/icon": "22.24.1",
|
|
@@ -54,11 +54,6 @@
|
|
|
54
54
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.2.0",
|
|
55
55
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
56
56
|
},
|
|
57
|
-
"platform-feature-flags": {
|
|
58
|
-
"platform.editor.plugin.loom.responsive-menu_4at4a": {
|
|
59
|
-
"type": "boolean"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
57
|
"devDependencies": {
|
|
63
58
|
"@atlaskit/editor-plugin-base": "^2.0.0",
|
|
64
59
|
"@atlaskit/editor-plugin-card": "^4.3.0",
|