@ctzhian/tiptap 1.6.16 → 1.6.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.
@@ -4,9 +4,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
4
4
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- import { FloatingPopover } from "../../../component";
8
7
  import { CustomSizeIcon, DeleteLineIcon, EditBoxLineIcon } from "../../../component/Icons";
9
- import { Box, Button, IconButton, Stack, TextField, Tooltip } from "@mui/material";
8
+ import { Box, Button, IconButton, Popover, Stack, TextField, Tooltip } from "@mui/material";
10
9
  import { NodeViewWrapper } from "@tiptap/react";
11
10
  import React, { useEffect, useRef, useState } from "react";
12
11
  import CropImage from "./Crop";
@@ -325,11 +324,19 @@ var ImageViewWrapper = function ImageViewWrapper(_ref) {
325
324
  sx: {
326
325
  fontSize: 18
327
326
  }
328
- }))))), /*#__PURE__*/React.createElement(FloatingPopover, {
327
+ }))))), /*#__PURE__*/React.createElement(Popover, {
329
328
  open: Boolean(anchorEl),
330
329
  anchorEl: anchorEl,
331
330
  onClose: handleClosePopover,
332
- placement: "bottom"
331
+ disableScrollLock: true,
332
+ anchorOrigin: {
333
+ vertical: 'bottom',
334
+ horizontal: 'left'
335
+ },
336
+ transformOrigin: {
337
+ vertical: 'top',
338
+ horizontal: 'left'
339
+ }
333
340
  }, /*#__PURE__*/React.createElement(Stack, {
334
341
  sx: {
335
342
  p: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "1.6.16",
3
+ "version": "1.6.18",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",