@atlaskit/editor-plugin-floating-toolbar 8.2.16 → 8.2.18
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 +14 -0
- package/dist/cjs/floatingToolbarPlugin.js +1 -1
- package/dist/cjs/ui/Divider.js +1 -1
- package/dist/cjs/ui/ScrollButton.js +2 -2
- package/dist/cjs/ui/Toolbar.js +2 -2
- package/dist/es2019/floatingToolbarPlugin.js +1 -1
- package/dist/es2019/ui/Divider.js +1 -1
- package/dist/es2019/ui/ScrollButton.js +2 -2
- package/dist/es2019/ui/Toolbar.js +2 -2
- package/dist/esm/floatingToolbarPlugin.js +1 -1
- package/dist/esm/ui/Divider.js +1 -1
- package/dist/esm/ui/ScrollButton.js +2 -2
- package/dist/esm/ui/Toolbar.js +2 -2
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 8.2.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`695e971dbebd6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/695e971dbebd6) -
|
|
8
|
+
FG cleanup platform_editor_block_menu_hide_floating_toolbar
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.2.17
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.2.16
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -258,7 +258,7 @@ function ContentComponent(_ref5) {
|
|
|
258
258
|
return null;
|
|
259
259
|
}
|
|
260
260
|
var userIntentEnabled = Boolean((pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.userIntent) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_lovability_user_intent', 'isEnabled', true));
|
|
261
|
-
if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && (0, _expValEquals.expValEquals)('platform_editor_block_menu', 'isEnabled', true)
|
|
261
|
+
if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && (0, _expValEquals.expValEquals)('platform_editor_block_menu', 'isEnabled', true)) && !userIntentEnabled) {
|
|
262
262
|
return null;
|
|
263
263
|
}
|
|
264
264
|
if (userIntentState !== null && userIntentState !== void 0 && userIntentState.currentUserIntent && SUPPRESS_TOOLBAR_USER_INTENTS.includes(userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) && userIntentEnabled) {
|
package/dist/cjs/ui/Divider.js
CHANGED
|
@@ -12,7 +12,7 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
12
12
|
var styles = (0, _primitives.xcss)({
|
|
13
13
|
width: '100%',
|
|
14
14
|
borderBlockEnd: 'none',
|
|
15
|
-
borderBlockStart: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #
|
|
15
|
+
borderBlockStart: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
16
16
|
borderInline: 'none'
|
|
17
17
|
});
|
|
18
18
|
var Divider = exports.Divider = function Divider() {
|
|
@@ -19,13 +19,13 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
19
19
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
20
20
|
|
|
21
21
|
var rightSideStyles = (0, _primitives.xcss)({
|
|
22
|
-
borderLeft: "solid ".concat("var(--ds-border, #
|
|
22
|
+
borderLeft: "solid ".concat("var(--ds-border, #0B120E24)", " 1px"),
|
|
23
23
|
right: 'space.0',
|
|
24
24
|
borderTopRightRadius: 'radius.small',
|
|
25
25
|
borderBottomRightRadius: 'radius.small'
|
|
26
26
|
});
|
|
27
27
|
var leftSideStyles = (0, _primitives.xcss)({
|
|
28
|
-
borderRight: "solid ".concat("var(--ds-border, #
|
|
28
|
+
borderRight: "solid ".concat("var(--ds-border, #0B120E24)", " 1px"),
|
|
29
29
|
left: 'space.0',
|
|
30
30
|
borderTopLeftRadius: 'radius.small',
|
|
31
31
|
borderBottomLeftRadius: 'radius.small'
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -122,10 +122,10 @@ var ToolbarItems = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
122
122
|
};
|
|
123
123
|
var getIconColor = function getIconColor(disabled, selected) {
|
|
124
124
|
if (disabled) {
|
|
125
|
-
return "var(--ds-icon-disabled, #
|
|
125
|
+
return "var(--ds-icon-disabled, #080F214A)";
|
|
126
126
|
}
|
|
127
127
|
if (selected) {
|
|
128
|
-
return "var(--ds-icon-selected, #
|
|
128
|
+
return "var(--ds-icon-selected, #1868DB)";
|
|
129
129
|
}
|
|
130
130
|
return 'currentColor';
|
|
131
131
|
};
|
|
@@ -247,7 +247,7 @@ export function ContentComponent({
|
|
|
247
247
|
return null;
|
|
248
248
|
}
|
|
249
249
|
const userIntentEnabled = Boolean((pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.userIntent) && expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true));
|
|
250
|
-
if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && expValEquals('platform_editor_block_menu', 'isEnabled', true)
|
|
250
|
+
if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && expValEquals('platform_editor_block_menu', 'isEnabled', true)) && !userIntentEnabled) {
|
|
251
251
|
return null;
|
|
252
252
|
}
|
|
253
253
|
if (userIntentState !== null && userIntentState !== void 0 && userIntentState.currentUserIntent && SUPPRESS_TOOLBAR_USER_INTENTS.includes(userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) && userIntentEnabled) {
|
|
@@ -5,7 +5,7 @@ import { Box, xcss } from '@atlaskit/primitives';
|
|
|
5
5
|
const styles = xcss({
|
|
6
6
|
width: '100%',
|
|
7
7
|
borderBlockEnd: 'none',
|
|
8
|
-
borderBlockStart: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #
|
|
8
|
+
borderBlockStart: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
|
|
9
9
|
borderInline: 'none'
|
|
10
10
|
});
|
|
11
11
|
export const Divider = () => /*#__PURE__*/React.createElement(Box, {
|
|
@@ -8,13 +8,13 @@ import ChevronRightLargeIcon from '@atlaskit/icon/core/migration/chevron-right--
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
9
9
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
10
10
|
const rightSideStyles = xcss({
|
|
11
|
-
borderLeft: `solid ${"var(--ds-border, #
|
|
11
|
+
borderLeft: `solid ${"var(--ds-border, #0B120E24)"} 1px`,
|
|
12
12
|
right: 'space.0',
|
|
13
13
|
borderTopRightRadius: 'radius.small',
|
|
14
14
|
borderBottomRightRadius: 'radius.small'
|
|
15
15
|
});
|
|
16
16
|
const leftSideStyles = xcss({
|
|
17
|
-
borderRight: `solid ${"var(--ds-border, #
|
|
17
|
+
borderRight: `solid ${"var(--ds-border, #0B120E24)"} 1px`,
|
|
18
18
|
left: 'space.0',
|
|
19
19
|
borderTopLeftRadius: 'radius.small',
|
|
20
20
|
borderBottomLeftRadius: 'radius.small'
|
|
@@ -110,10 +110,10 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
|
|
|
110
110
|
};
|
|
111
111
|
const getIconColor = (disabled, selected) => {
|
|
112
112
|
if (disabled) {
|
|
113
|
-
return "var(--ds-icon-disabled, #
|
|
113
|
+
return "var(--ds-icon-disabled, #080F214A)";
|
|
114
114
|
}
|
|
115
115
|
if (selected) {
|
|
116
|
-
return "var(--ds-icon-selected, #
|
|
116
|
+
return "var(--ds-icon-selected, #1868DB)";
|
|
117
117
|
}
|
|
118
118
|
return 'currentColor';
|
|
119
119
|
};
|
|
@@ -248,7 +248,7 @@ export function ContentComponent(_ref5) {
|
|
|
248
248
|
return null;
|
|
249
249
|
}
|
|
250
250
|
var userIntentEnabled = Boolean((pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.userIntent) && expValEqualsNoExposure('platform_editor_lovability_user_intent', 'isEnabled', true));
|
|
251
|
-
if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && expValEquals('platform_editor_block_menu', 'isEnabled', true)
|
|
251
|
+
if (((userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'dragging' || (userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) === 'blockMenuOpen' && expValEquals('platform_editor_block_menu', 'isEnabled', true)) && !userIntentEnabled) {
|
|
252
252
|
return null;
|
|
253
253
|
}
|
|
254
254
|
if (userIntentState !== null && userIntentState !== void 0 && userIntentState.currentUserIntent && SUPPRESS_TOOLBAR_USER_INTENTS.includes(userIntentState === null || userIntentState === void 0 ? void 0 : userIntentState.currentUserIntent) && userIntentEnabled) {
|
package/dist/esm/ui/Divider.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Box, xcss } from '@atlaskit/primitives';
|
|
|
5
5
|
var styles = xcss({
|
|
6
6
|
width: '100%',
|
|
7
7
|
borderBlockEnd: 'none',
|
|
8
|
-
borderBlockStart: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #
|
|
8
|
+
borderBlockStart: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
9
9
|
borderInline: 'none'
|
|
10
10
|
});
|
|
11
11
|
export var Divider = function Divider() {
|
|
@@ -9,13 +9,13 @@ import ChevronRightLargeIcon from '@atlaskit/icon/core/migration/chevron-right--
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
10
10
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
11
11
|
var rightSideStyles = xcss({
|
|
12
|
-
borderLeft: "solid ".concat("var(--ds-border, #
|
|
12
|
+
borderLeft: "solid ".concat("var(--ds-border, #0B120E24)", " 1px"),
|
|
13
13
|
right: 'space.0',
|
|
14
14
|
borderTopRightRadius: 'radius.small',
|
|
15
15
|
borderBottomRightRadius: 'radius.small'
|
|
16
16
|
});
|
|
17
17
|
var leftSideStyles = xcss({
|
|
18
|
-
borderRight: "solid ".concat("var(--ds-border, #
|
|
18
|
+
borderRight: "solid ".concat("var(--ds-border, #0B120E24)", " 1px"),
|
|
19
19
|
left: 'space.0',
|
|
20
20
|
borderTopLeftRadius: 'radius.small',
|
|
21
21
|
borderBottomLeftRadius: 'radius.small'
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -116,10 +116,10 @@ var ToolbarItems = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
116
116
|
};
|
|
117
117
|
var getIconColor = function getIconColor(disabled, selected) {
|
|
118
118
|
if (disabled) {
|
|
119
|
-
return "var(--ds-icon-disabled, #
|
|
119
|
+
return "var(--ds-icon-disabled, #080F214A)";
|
|
120
120
|
}
|
|
121
121
|
if (selected) {
|
|
122
|
-
return "var(--ds-icon-selected, #
|
|
122
|
+
return "var(--ds-icon-selected, #1868DB)";
|
|
123
123
|
}
|
|
124
124
|
return 'currentColor';
|
|
125
125
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.18",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
],
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-utils": "^19.
|
|
24
|
+
"@atlaskit/adf-utils": "^19.26.0",
|
|
25
25
|
"@atlaskit/button": "^23.6.0",
|
|
26
26
|
"@atlaskit/checkbox": "^17.1.0",
|
|
27
27
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-table": "^15.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
|
-
"@atlaskit/emoji": "^69.
|
|
41
|
-
"@atlaskit/icon": "^
|
|
40
|
+
"@atlaskit/emoji": "^69.7.0",
|
|
41
|
+
"@atlaskit/icon": "^29.0.0",
|
|
42
42
|
"@atlaskit/menu": "^8.4.0",
|
|
43
43
|
"@atlaskit/modal-dialog": "^14.6.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/primitives": "^16.1.0",
|
|
46
46
|
"@atlaskit/select": "^21.3.0",
|
|
47
47
|
"@atlaskit/theme": "^21.0.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^13.35.0",
|
|
49
49
|
"@atlaskit/tokens": "^8.0.0",
|
|
50
50
|
"@atlaskit/tooltip": "^20.8.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-loadable": "^5.1.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^110.
|
|
60
|
+
"@atlaskit/editor-common": "^110.27.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0"
|
|
63
63
|
},
|
|
@@ -119,9 +119,6 @@
|
|
|
119
119
|
"platform_editor_user_intent_plugin": {
|
|
120
120
|
"type": "boolean"
|
|
121
121
|
},
|
|
122
|
-
"platform_editor_block_menu_hide_floating_toolbar": {
|
|
123
|
-
"type": "boolean"
|
|
124
|
-
},
|
|
125
122
|
"platform_editor_fix_confirm_table_removal": {
|
|
126
123
|
"type": "boolean"
|
|
127
124
|
},
|