@fileverse-dev/fortune-react 1.1.85 → 1.1.87

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.
@@ -415,21 +415,7 @@ var ContextMenu = function ContextMenu() {
415
415
  className: "context-item"
416
416
  }, /*#__PURE__*/React.createElement(LocalLucidIcon, {
417
417
  name: "AddColRight"
418
- }), /*#__PURE__*/React.createElement("div", null, "Insert column to the left")));
419
- });
420
- }
421
- if (name === "insert-column-right") {
422
- return (selection === null || selection === void 0 ? void 0 : selection.row_select) ? null : ["left"].map(function (dir) {
423
- return /*#__PURE__*/React.createElement(Menu, {
424
- key: "add-col-right-".concat(dir),
425
- onClick: function onClick() {
426
- addRowColRightAvobe("column", "rightbottom");
427
- }
428
- }, /*#__PURE__*/React.createElement("div", {
429
- className: "context-item"
430
- }, /*#__PURE__*/React.createElement(LocalLucidIcon, {
431
- name: "AddColRight"
432
- }), /*#__PURE__*/React.createElement("div", null, "Insert column to the left")));
418
+ }), /*#__PURE__*/React.createElement("div", null, "Insert column to the right")));
433
419
  });
434
420
  }
435
421
  if (name === "insert-row-above") {
@@ -103,7 +103,7 @@ export var useColumnDragAndDrop = function useColumnDragAndDrop(containerRef, se
103
103
  var createGhost = function createGhost(host) {
104
104
  var el = document.createElement("div");
105
105
  el.style.position = "fixed";
106
- el.style.top = "135px";
106
+ el.style.top = "134px";
107
107
  el.style.height = "".concat(window.innerHeight, "px");
108
108
  el.style.boxSizing = "border-box";
109
109
  el.style.padding = "6px 8px";
@@ -103,7 +103,7 @@ export var useRowDragAndDrop = function useRowDragAndDrop(containerRef, selected
103
103
  var createGhost = function createGhost(host) {
104
104
  var el = document.createElement("div");
105
105
  el.style.position = "fixed";
106
- el.style.left = "55px";
106
+ el.style.left = "58px";
107
107
  el.style.width = "".concat(window.innerWidth, "px");
108
108
  el.style.boxSizing = "border-box";
109
109
  el.style.padding = "6px 8px";
@@ -424,21 +424,7 @@ var ContextMenu = function ContextMenu() {
424
424
  className: "context-item"
425
425
  }, /*#__PURE__*/_react.default.createElement(_LucideIcon.LucideIcon, {
426
426
  name: "AddColRight"
427
- }), /*#__PURE__*/_react.default.createElement("div", null, "Insert column to the left")));
428
- });
429
- }
430
- if (name === "insert-column-right") {
431
- return (selection === null || selection === void 0 ? void 0 : selection.row_select) ? null : ["left"].map(function (dir) {
432
- return /*#__PURE__*/_react.default.createElement(_Menu.default, {
433
- key: "add-col-right-".concat(dir),
434
- onClick: function onClick() {
435
- addRowColRightAvobe("column", "rightbottom");
436
- }
437
- }, /*#__PURE__*/_react.default.createElement("div", {
438
- className: "context-item"
439
- }, /*#__PURE__*/_react.default.createElement(_LucideIcon.LucideIcon, {
440
- name: "AddColRight"
441
- }), /*#__PURE__*/_react.default.createElement("div", null, "Insert column to the left")));
427
+ }), /*#__PURE__*/_react.default.createElement("div", null, "Insert column to the right")));
442
428
  });
443
429
  }
444
430
  if (name === "insert-row-above") {
@@ -110,7 +110,7 @@ var useColumnDragAndDrop = exports.useColumnDragAndDrop = function useColumnDrag
110
110
  var createGhost = function createGhost(host) {
111
111
  var el = document.createElement("div");
112
112
  el.style.position = "fixed";
113
- el.style.top = "135px";
113
+ el.style.top = "134px";
114
114
  el.style.height = "".concat(window.innerHeight, "px");
115
115
  el.style.boxSizing = "border-box";
116
116
  el.style.padding = "6px 8px";
@@ -110,7 +110,7 @@ var useRowDragAndDrop = exports.useRowDragAndDrop = function useRowDragAndDrop(c
110
110
  var createGhost = function createGhost(host) {
111
111
  var el = document.createElement("div");
112
112
  el.style.position = "fixed";
113
- el.style.left = "55px";
113
+ el.style.left = "58px";
114
114
  el.style.width = "".concat(window.innerWidth, "px");
115
115
  el.style.boxSizing = "border-box";
116
116
  el.style.padding = "6px 8px";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-react",
3
- "version": "1.1.85",
3
+ "version": "1.1.87",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "module": "es/index.js",
@@ -16,7 +16,7 @@
16
16
  "tsc": "tsc"
17
17
  },
18
18
  "dependencies": {
19
- "@fileverse-dev/fortune-core": "1.1.85",
19
+ "@fileverse-dev/fortune-core": "1.1.87",
20
20
  "@fileverse/ui": "^4.1.7-patch-21",
21
21
  "@tippyjs/react": "^4.2.6",
22
22
  "@types/regenerator-runtime": "^0.13.6",