@atlaskit/editor-plugin-floating-toolbar 1.13.15 → 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,13 @@
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
+
3
11
  ## 1.13.15
4
12
 
5
13
  ### 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);
@@ -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,
@@ -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);
@@ -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.15",
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",