@atlaskit/editor-plugin-floating-toolbar 1.13.14 → 1.13.16

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,21 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 1.13.16
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d59aa1fbf1da3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d59aa1fbf1da3) -
8
+ [ux] Migrate renderer, editor-plugin-type-ahead, editor-plugin-floating-toolbar packages
9
+ - Updated dependencies
10
+
11
+ ## 1.13.15
12
+
13
+ ### Patch Changes
14
+
15
+ - [#152823](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152823)
16
+ [`0ec705650807f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0ec705650807f) -
17
+ [ux] ED-25090: ED-25090: Migrated link toolbar and panel toolbar to use the new icons
18
+
3
19
  ## 1.13.14
4
20
 
5
21
  ### Patch Changes
@@ -13,6 +13,7 @@ var _new = _interopRequireDefault(require("@atlaskit/button/new"));
13
13
  var _checkbox = require("@atlaskit/checkbox");
14
14
  var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
15
15
  var _modalDialog = _interopRequireWildcard(require("@atlaskit/modal-dialog"));
16
+ var _primitives = require("@atlaskit/primitives");
16
17
  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
18
  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 && {}.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; }
18
19
  var CheckboxModal = exports.CheckboxModal = function CheckboxModal(props) {
@@ -58,9 +59,13 @@ var CheckboxModal = exports.CheckboxModal = function CheckboxModal(props) {
58
59
  testId: testId
59
60
  }, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalHeader, null, /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTitle, {
60
61
  appearance: "warning"
61
- }, heading)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement("p", null, options === null || options === void 0 ? void 0 : options.message), !!(childrenInfo !== null && childrenInfo !== void 0 && childrenInfo.length) && /*#__PURE__*/_react.default.createElement(ListComponent, {
62
+ }, heading)), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalBody, null, /*#__PURE__*/_react.default.createElement(_primitives.Text, {
63
+ as: "p"
64
+ }, options === null || options === void 0 ? void 0 : options.message), !!(childrenInfo !== null && childrenInfo !== void 0 && childrenInfo.length) && /*#__PURE__*/_react.default.createElement(ListComponent, {
62
65
  nodes: childrenInfo
63
- }), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_checkbox.Checkbox, {
66
+ }), /*#__PURE__*/_react.default.createElement(_primitives.Text, {
67
+ as: "p"
68
+ }, /*#__PURE__*/_react.default.createElement(_checkbox.Checkbox, {
64
69
  isChecked: isChecked,
65
70
  onChange: function onChange() {
66
71
  return setCheckbox(!isChecked);
@@ -13,6 +13,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
13
13
  var _ui = require("@atlaskit/editor-common/ui");
14
14
  var _uiReact = require("@atlaskit/editor-common/ui-react");
15
15
  var _emoji = require("@atlaskit/emoji");
16
+ var _emojiAdd = _interopRequireDefault(require("@atlaskit/icon/core/emoji-add"));
16
17
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
17
18
  var _EditorEmojiAddIcon = _interopRequireDefault(require("./EditorEmojiAddIcon"));
18
19
  /**
@@ -128,6 +129,10 @@ var EmojiPickerButton = exports.EmojiPickerButton = function EmojiPickerButton(p
128
129
  ref: buttonRef,
129
130
  isSelected: props.isSelected,
130
131
  "aria-label": title,
131
- iconBefore: (0, _react2.jsx)(_EditorEmojiAddIcon.default, null)
132
+ iconBefore: (0, _react2.jsx)(_emojiAdd.default, {
133
+ color: "currentColor",
134
+ LEGACY_fallbackIcon: _EditorEmojiAddIcon.default,
135
+ label: "emoji-picker-button"
136
+ })
132
137
  })), renderPopup());
133
138
  };
@@ -4,6 +4,7 @@ import Button from '@atlaskit/button/new';
4
4
  import { Checkbox } from '@atlaskit/checkbox';
5
5
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
6
6
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
7
+ import { Text } from '@atlaskit/primitives';
7
8
  export const CheckboxModal = props => {
8
9
  var _options$getChildrenI;
9
10
  const [isChecked, setCheckbox] = useState(false);
@@ -49,9 +50,13 @@ export const CheckboxModal = props => {
49
50
  testId: testId
50
51
  }, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, {
51
52
  appearance: "warning"
52
- }, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("p", null, options === null || options === void 0 ? void 0 : options.message), !!(childrenInfo !== null && childrenInfo !== void 0 && childrenInfo.length) && /*#__PURE__*/React.createElement(ListComponent, {
53
+ }, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
54
+ as: "p"
55
+ }, options === null || options === void 0 ? void 0 : options.message), !!(childrenInfo !== null && childrenInfo !== void 0 && childrenInfo.length) && /*#__PURE__*/React.createElement(ListComponent, {
53
56
  nodes: childrenInfo
54
- }), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement(Checkbox, {
57
+ }), /*#__PURE__*/React.createElement(Text, {
58
+ as: "p"
59
+ }, /*#__PURE__*/React.createElement(Checkbox, {
55
60
  isChecked: isChecked,
56
61
  onChange: () => setCheckbox(!isChecked),
57
62
  label: checkboxlabel,
@@ -11,6 +11,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
11
11
  import { Popup } from '@atlaskit/editor-common/ui';
12
12
  import { withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
13
13
  import { EmojiPicker } from '@atlaskit/emoji';
14
+ import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
14
15
  import Tooltip from '@atlaskit/tooltip';
15
16
  import EditorEmojiAddIcon from './EditorEmojiAddIcon';
16
17
 
@@ -116,6 +117,10 @@ export const EmojiPickerButton = props => {
116
117
  ref: buttonRef,
117
118
  isSelected: props.isSelected,
118
119
  "aria-label": title,
119
- iconBefore: jsx(EditorEmojiAddIcon, null)
120
+ iconBefore: jsx(EmojiAddIcon, {
121
+ color: "currentColor",
122
+ LEGACY_fallbackIcon: EditorEmojiAddIcon,
123
+ label: "emoji-picker-button"
124
+ })
120
125
  })), renderPopup());
121
126
  };
@@ -5,6 +5,7 @@ import Button from '@atlaskit/button/new';
5
5
  import { Checkbox } from '@atlaskit/checkbox';
6
6
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
7
7
  import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle } from '@atlaskit/modal-dialog';
8
+ import { Text } from '@atlaskit/primitives';
8
9
  export var CheckboxModal = function CheckboxModal(props) {
9
10
  var _options$getChildrenI;
10
11
  var _useState = useState(false),
@@ -48,9 +49,13 @@ export var CheckboxModal = function CheckboxModal(props) {
48
49
  testId: testId
49
50
  }, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, {
50
51
  appearance: "warning"
51
- }, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement("p", null, options === null || options === void 0 ? void 0 : options.message), !!(childrenInfo !== null && childrenInfo !== void 0 && childrenInfo.length) && /*#__PURE__*/React.createElement(ListComponent, {
52
+ }, heading)), /*#__PURE__*/React.createElement(ModalBody, null, /*#__PURE__*/React.createElement(Text, {
53
+ as: "p"
54
+ }, options === null || options === void 0 ? void 0 : options.message), !!(childrenInfo !== null && childrenInfo !== void 0 && childrenInfo.length) && /*#__PURE__*/React.createElement(ListComponent, {
52
55
  nodes: childrenInfo
53
- }), /*#__PURE__*/React.createElement("p", null, /*#__PURE__*/React.createElement(Checkbox, {
56
+ }), /*#__PURE__*/React.createElement(Text, {
57
+ as: "p"
58
+ }, /*#__PURE__*/React.createElement(Checkbox, {
54
59
  isChecked: isChecked,
55
60
  onChange: function onChange() {
56
61
  return setCheckbox(!isChecked);
@@ -12,6 +12,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
12
12
  import { Popup } from '@atlaskit/editor-common/ui';
13
13
  import { withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
14
14
  import { EmojiPicker } from '@atlaskit/emoji';
15
+ import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
15
16
  import Tooltip from '@atlaskit/tooltip';
16
17
  import EditorEmojiAddIcon from './EditorEmojiAddIcon';
17
18
 
@@ -121,6 +122,10 @@ export var EmojiPickerButton = function EmojiPickerButton(props) {
121
122
  ref: buttonRef,
122
123
  isSelected: props.isSelected,
123
124
  "aria-label": title,
124
- iconBefore: jsx(EditorEmojiAddIcon, null)
125
+ iconBefore: jsx(EmojiAddIcon, {
126
+ color: "currentColor",
127
+ LEGACY_fallbackIcon: EditorEmojiAddIcon,
128
+ label: "emoji-picker-button"
129
+ })
125
130
  })), renderPopup());
126
131
  };
@@ -206,7 +206,6 @@ export declare const EmojiPickerButton: (props: {
206
206
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactNodeArray | React.ReactPortal | Date | import("intl-messageformat").FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): React.ReactNode;
207
207
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
208
208
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
209
- hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
210
209
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
211
210
  };
212
211
  }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
@@ -244,7 +244,6 @@ export declare const EmojiPickerButton: (props: {
244
244
  (descriptor: import("react-intl-next").MessageDescriptor, values?: Record<string, string | number | boolean | {} | React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactNodeArray | React.ReactPortal | Date | import("intl-messageformat").FormatXMLElementFn<React.ReactNode, React.ReactNode> | null | undefined> | undefined, opts?: import("intl-messageformat").Options | undefined): React.ReactNode;
245
245
  } | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
246
246
  showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugin-block-controls").HandleOptions) => import("@atlaskit/editor-common/types").EditorCommand;
247
- hideDragHandle: () => import("@atlaskit/editor-common/types").EditorCommand;
248
247
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
249
248
  };
250
249
  }, undefined>>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "1.13.14",
3
+ "version": "1.13.16",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,7 +26,7 @@
26
26
  "@atlaskit/adf-utils": "^19.9.0",
27
27
  "@atlaskit/button": "^20.2.0",
28
28
  "@atlaskit/checkbox": "^14.0.0",
29
- "@atlaskit/editor-common": "^93.5.0",
29
+ "@atlaskit/editor-common": "^93.6.0",
30
30
  "@atlaskit/editor-palette": "1.6.1",
31
31
  "@atlaskit/editor-plugin-block-controls": "^2.6.0",
32
32
  "@atlaskit/editor-plugin-context-panel": "^1.3.0",
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/editor-prosemirror": "6.0.0",
41
41
  "@atlaskit/emoji": "^67.8.0",
42
42
  "@atlaskit/icon": "^22.22.0",
43
- "@atlaskit/menu": "^2.12.0",
43
+ "@atlaskit/menu": "^2.13.0",
44
44
  "@atlaskit/modal-dialog": "^12.17.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.3.0",
46
46
  "@atlaskit/primitives": "^12.2.0",