@fileverse-dev/fortune-react 1.0.2-mod-67-patch-4 → 1.0.2-mod-72

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/dist/index.esm.js CHANGED
@@ -2,7 +2,9 @@ import { defaultContext, defaultSettings, getSheetIndex, colLocationByIndex, fix
2
2
  import React, { useContext, useRef, useState, useMemo, useCallback, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
3
3
  import produce, { applyPatches, enablePatches, produceWithPatches } from 'immer';
4
4
  import _ from 'lodash';
5
- import { LucideIcon, TextField, Button as Button$1, cn, IconButton, Checkbox, Divider as Divider$2, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, Select as Select$1, SelectTrigger, SelectValue, SelectContent, SelectItem as SelectItem$1, Tooltip, RadioGroup, RadioGroupItem, Label } from '@fileverse/ui';
5
+ import { Tooltip, LucideIcon, TextField, Button as Button$1, cn, IconButton, Checkbox, Divider as Divider$2, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, Select as Select$1, SelectTrigger, SelectValue, SelectContent, SelectItem as SelectItem$1, Popover, PopoverTrigger, PopoverContent, RadioGroup, RadioGroupItem, Label } from '@fileverse/ui';
6
+ import { SERVICE_API_KEY } from '@fileverse-dev/formulajs/crypto-constants';
7
+ export * from '@fileverse-dev/formulajs/crypto-constants';
6
8
  import regeneratorRuntime from 'regenerator-runtime';
7
9
  import Tippy from '@tippyjs/react';
8
10
 
@@ -794,6 +796,11 @@ var ContentEditable = function ContentEditable(_ref) {
794
796
  }));
795
797
  };
796
798
 
799
+ var API_KEY_PLACEHOLDER = Object.fromEntries(Object.values(SERVICE_API_KEY).map(function (key) {
800
+ return [key, "".concat(key.replace(/_/g, " ").replace(/\bAPI\b/, "API key"))];
801
+ }));
802
+ var COMIMG_SOON_FUNCTIONS = ["UNISWAP", "ARTEMIS", "FIREFLY", "AAVE", "AERODOME", "PENDLE"];
803
+
797
804
  var FormulaSearch = function FormulaSearch(props) {
798
805
  var _context$luckysheet_s;
799
806
  var _useContext = useContext(WorkbookContext),
@@ -818,7 +825,10 @@ var FormulaSearch = function FormulaSearch(props) {
818
825
  useEffect(function () {
819
826
  calcuatePopUpPlacement();
820
827
  });
821
- if (_.isEmpty(context.functionCandidates)) return null;
828
+ var isComingSoon = function isComingSoon(name) {
829
+ return COMIMG_SOON_FUNCTIONS.includes(name);
830
+ };
831
+ if (_.isEmpty(context.functionCandidates) && _.isEmpty(context.defaultCandidates)) return null;
822
832
  return /*#__PURE__*/React.createElement("div", _objectSpread2(_objectSpread2({}, props), {}, {
823
833
  ref: hintRef,
824
834
  id: "luckysheet-formula-search-c",
@@ -826,11 +836,74 @@ var FormulaSearch = function FormulaSearch(props) {
826
836
  style: {
827
837
  top: top
828
838
  }
829
- }), context.functionCandidates.map(function (v, index) {
839
+ }), context.defaultCandidates.length > 0 && (/*#__PURE__*/React.createElement("div", {
840
+ style: {
841
+ marginBottom: "4px"
842
+ },
843
+ className: "w-full flex flex-col p-2 gap-1"
844
+ }, /*#__PURE__*/React.createElement("h4", {
845
+ className: "text-helper-sm-bold color-text-secondary"
846
+ }, "Onchain functions"), /*#__PURE__*/React.createElement("p", {
847
+ className: "text-helper-text-sm color-text-secondary"
848
+ }, "What is data block description lorem ipsum dolor sit"))), context.defaultCandidates.length > 0 ? (/*#__PURE__*/React.createElement(React.Fragment, null, context.defaultCandidates.slice(0, 5).map(function (v, index) {
830
849
  return /*#__PURE__*/React.createElement("div", {
831
850
  key: v.n,
832
851
  "data-func": v.n,
833
- className: "luckysheet-formula-search-item ".concat(index === 0 ? "luckysheet-formula-search-item-active" : "")
852
+ style: {
853
+ cursor: isComingSoon(v.n) ? "not-allowed" : "pointer"
854
+ },
855
+ className: "luckysheet-formula-search-item ".concat(index === 0 ? "luckysheet-formula-search-item-active" : "")
856
+ }, /*#__PURE__*/React.createElement("div", {
857
+ style: {
858
+ display: "flex",
859
+ justifyContent: "space-between"
860
+ }
861
+ }, /*#__PURE__*/React.createElement("div", {
862
+ className: "luckysheet-formula-search-func ".concat(isComingSoon(v.n) ? "color-text-secondary" : "color-text-default", " text-body-sm")
863
+ }, v.n), /*#__PURE__*/React.createElement("div", {
864
+ style: {
865
+ display: "flex",
866
+ justifyContent: "end",
867
+ minWidth: "68px",
868
+ alignItems: "center",
869
+ gap: "6px"
870
+ }
871
+ }, v.LOGO && (/*#__PURE__*/React.createElement("img", {
872
+ src: v.LOGO,
873
+ alt: "Service Logo",
874
+ style: {
875
+ width: "16px"
876
+ }
877
+ })), v.API_KEY && (/*#__PURE__*/React.createElement(Tooltip, {
878
+ text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API key required"
879
+ }, /*#__PURE__*/React.createElement("div", {
880
+ style: {
881
+ borderRadius: "4px",
882
+ backgroundColor: "".concat(localStorage.getItem(v.API_KEY) ? "#177E23" : "#e8ebec"),
883
+ width: "16px",
884
+ height: "16px"
885
+ },
886
+ className: "flex justify-center"
887
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
888
+ name: "Key",
889
+ style: {
890
+ color: localStorage.getItem(v.API_KEY) ? "white" : "#77818A",
891
+ width: "12px",
892
+ height: "12px"
893
+ }
894
+ })))))), /*#__PURE__*/React.createElement("div", {
895
+ className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm ".concat(isComingSoon(v.n) ? "color-text-secondary" : "color-text-default")
896
+ }, isComingSoon(v.n) ? "Coming soon to dSheets" : v.d));
897
+ }), /*#__PURE__*/React.createElement("p", {
898
+ style: {
899
+ padding: "10px"
900
+ },
901
+ className: "text-helper-text-sm-bold color-text-secondary"
902
+ }, "Functions"), context.defaultCandidates.slice(5, context.defaultCandidates.length).map(function (v) {
903
+ return /*#__PURE__*/React.createElement("div", {
904
+ key: v.n,
905
+ "data-func": v.n,
906
+ className: "luckysheet-formula-search-item"
834
907
  }, /*#__PURE__*/React.createElement("div", {
835
908
  style: {
836
909
  display: "flex",
@@ -845,13 +918,13 @@ var FormulaSearch = function FormulaSearch(props) {
845
918
  width: "68px",
846
919
  height: "20px",
847
920
  alignItems: "center",
848
- gap: "4px"
921
+ gap: "6px"
849
922
  }
850
923
  }, v.LOGO && (/*#__PURE__*/React.createElement("img", {
851
924
  src: v.LOGO,
852
925
  alt: "Service Logo",
853
926
  style: {
854
- width: "20px"
927
+ width: "16px"
855
928
  }
856
929
  })), v.API_KEY && (/*#__PURE__*/React.createElement("div", {
857
930
  style: {
@@ -871,7 +944,53 @@ var FormulaSearch = function FormulaSearch(props) {
871
944
  }))))), /*#__PURE__*/React.createElement("div", {
872
945
  className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm color-text-secondary"
873
946
  }, v.d));
874
- }), /*#__PURE__*/React.createElement("hr", {
947
+ }))) : (/*#__PURE__*/React.createElement(React.Fragment, null, context.functionCandidates.map(function (v, index) {
948
+ return /*#__PURE__*/React.createElement("div", {
949
+ key: v.n,
950
+ "data-func": v.n,
951
+ className: "luckysheet-formula-search-item ".concat(index === 0 ? "luckysheet-formula-search-item-active" : "")
952
+ }, /*#__PURE__*/React.createElement("div", {
953
+ style: {
954
+ display: "flex",
955
+ justifyContent: "space-between"
956
+ }
957
+ }, /*#__PURE__*/React.createElement("div", {
958
+ className: "luckysheet-formula-search-func color-text-default text-body-sm"
959
+ }, v.n), /*#__PURE__*/React.createElement("div", {
960
+ style: {
961
+ display: "flex",
962
+ justifyContent: "end",
963
+ width: "68px",
964
+ alignItems: "center",
965
+ gap: "6px"
966
+ }
967
+ }, v.LOGO && (/*#__PURE__*/React.createElement("img", {
968
+ src: v.LOGO,
969
+ alt: "Service Logo",
970
+ style: {
971
+ width: "16px"
972
+ }
973
+ })), v.API_KEY && (/*#__PURE__*/React.createElement(Tooltip, {
974
+ text: localStorage.getItem(v.API_KEY) ? "API Key added" : "API Key required"
975
+ }, /*#__PURE__*/React.createElement("div", {
976
+ style: {
977
+ borderRadius: "4px",
978
+ backgroundColor: "".concat(localStorage.getItem(v.API_KEY) ? "#177E23" : "#e8ebec"),
979
+ width: "16px",
980
+ height: "16px"
981
+ },
982
+ className: "flex justify-center"
983
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
984
+ name: "Key",
985
+ style: {
986
+ color: localStorage.getItem(v.API_KEY) ? "white" : "#77818A",
987
+ width: "12px",
988
+ height: "12px"
989
+ }
990
+ })))))), /*#__PURE__*/React.createElement("div", {
991
+ className: "luckysheet-formula-search-detail mt-1 text-helper-text-sm color-text-secondary"
992
+ }, v.d));
993
+ }))), /*#__PURE__*/React.createElement("hr", {
875
994
  className: "color-border-default mb-2 mt-4 "
876
995
  }), /*#__PURE__*/React.createElement("div", {
877
996
  style: {
@@ -1038,16 +1157,16 @@ var FormulaHint = function FormulaHint(props) {
1038
1157
  style: {
1039
1158
  display: "flex",
1040
1159
  justifyContent: "end",
1041
- width: "68px",
1160
+ minWidth: "68px",
1042
1161
  height: "20px",
1043
1162
  alignItems: "center",
1044
- gap: "4px"
1163
+ gap: "6px"
1045
1164
  }
1046
1165
  }, fn.LOGO && (/*#__PURE__*/React.createElement("img", {
1047
1166
  src: fn.LOGO,
1048
1167
  alt: "Service Logo",
1049
1168
  style: {
1050
- width: "20px"
1169
+ width: "16px"
1051
1170
  }
1052
1171
  })), fn.API_KEY && (/*#__PURE__*/React.createElement("div", {
1053
1172
  style: {
@@ -1320,7 +1439,7 @@ var InputBox = function InputBox() {
1320
1439
  var textEditor = document.getElementById("luckysheet-rich-text-editor");
1321
1440
  if (!textEditor) return;
1322
1441
  var searchTxt = ((_getrangeseleciton = getrangeseleciton()) === null || _getrangeseleciton === void 0 ? void 0 : _getrangeseleciton.textContent) || "";
1323
- var deleteCount = searchTxt.length;
1442
+ var deleteCount = searchTxt === "=" ? 0 : searchTxt.length;
1324
1443
  textEditor.focus();
1325
1444
  var selection = window.getSelection();
1326
1445
  if (!selection || selection.rangeCount === 0) return;
@@ -1344,6 +1463,7 @@ var InputBox = function InputBox() {
1344
1463
  selection.addRange(range);
1345
1464
  setContext(function (draftCtx) {
1346
1465
  draftCtx.functionCandidates = [];
1466
+ draftCtx.defaultCandidates = [];
1347
1467
  draftCtx.functionHint = formulaName;
1348
1468
  });
1349
1469
  }, [setContext]);
@@ -1488,7 +1608,7 @@ var InputBox = function InputBox() {
1488
1608
  onKeyDown: onKeyDown,
1489
1609
  onPaste: onPaste,
1490
1610
  allowEdit: edit ? !isHidenRC : edit
1491
- })), (context.functionCandidates.length > 0 || context.functionHint) && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormulaSearch, {
1611
+ })), (context.functionCandidates.length > 0 || context.functionHint || context.defaultCandidates.length > 0) && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormulaSearch, {
1492
1612
  onMouseOver: function onMouseOver(e) {
1493
1613
  if (document.getElementById("luckysheet-formula-search-c")) {
1494
1614
  var hoveredItem = e.target.closest(".luckysheet-formula-search-item");
@@ -1917,6 +2037,7 @@ var SearchReplace = function SearchReplace(_ref) {
1917
2037
  var _tableContainerRef$cu;
1918
2038
  if (e.target === tableContainerRef.current || ((_tableContainerRef$cu = tableContainerRef.current) === null || _tableContainerRef$cu === void 0 ? void 0 : _tableContainerRef$cu.contains(e.target))) {
1919
2039
  var _tableContainerRef$cu2;
2040
+ e.preventDefault();
1920
2041
  e.stopPropagation();
1921
2042
  (_tableContainerRef$cu2 = tableContainerRef.current) === null || _tableContainerRef$cu2 === void 0 ? void 0 : _tableContainerRef$cu2.focus();
1922
2043
  }
@@ -1925,13 +2046,17 @@ var SearchReplace = function SearchReplace(_ref) {
1925
2046
  e.preventDefault();
1926
2047
  e.stopPropagation();
1927
2048
  if (tableContainerRef.current) {
1928
- tableContainerRef.current.scrollTop += e.deltaY;
2049
+ var delta = e.deltaY;
2050
+ var currentScroll = tableContainerRef.current.scrollTop;
2051
+ tableContainerRef.current.scrollTop = currentScroll + delta;
1929
2052
  }
1930
2053
  },
1931
2054
  onTouchStart: function onTouchStart(e) {
2055
+ e.preventDefault();
1932
2056
  e.stopPropagation();
1933
2057
  },
1934
2058
  onTouchMove: function onTouchMove(e) {
2059
+ e.preventDefault();
1935
2060
  e.stopPropagation();
1936
2061
  },
1937
2062
  tabIndex: 0
@@ -3706,11 +3831,8 @@ var IframeBoxs = function IframeBoxs() {
3706
3831
  });
3707
3832
  })), /*#__PURE__*/React.createElement("div", {
3708
3833
  className: "luckysheet-modal-dialog-controll"
3709
- }, /*#__PURE__*/React.createElement("span", {
3710
- className: "luckysheet-modal-controll-btn luckysheet-modal-controll-del",
3711
- role: "button",
3712
- tabIndex: 0,
3713
- title: "Delete",
3834
+ }, /*#__PURE__*/React.createElement(IconButton, {
3835
+ icon: "Trash2",
3714
3836
  onClick: function onClick() {
3715
3837
  setContext(function (ctx) {
3716
3838
  var currentSheet = ctx.luckysheetfile.find(function (sheet) {
@@ -3724,8 +3846,10 @@ var IframeBoxs = function IframeBoxs() {
3724
3846
  }
3725
3847
  ctx.activeIframe = undefined;
3726
3848
  });
3727
- }
3728
- }, "DELETE")))));
3849
+ },
3850
+ variant: "ghost",
3851
+ className: "fortune-iframe-boxes-delete-button"
3852
+ })))));
3729
3853
  }));
3730
3854
  };
3731
3855
 
@@ -4504,45 +4628,11 @@ var Combo = function Combo(_ref) {
4504
4628
  _useState2 = _slicedToArray(_useState, 2),
4505
4629
  open = _useState2[0],
4506
4630
  setOpen = _useState2[1];
4507
- var _useState3 = useState({
4508
- left: 0
4509
- }),
4510
- _useState4 = _slicedToArray(_useState3, 2),
4511
- popupPosition = _useState4[0],
4512
- setPopupPosition = _useState4[1];
4513
- var popupRef = useRef(null);
4514
4631
  var buttonRef = useRef(null);
4515
4632
  var isLucideIcon = useMemo(function () {
4516
4633
  return (iconId === null || iconId === void 0 ? void 0 : iconId.startsWith("align-")) || ["text-overflow", "text-wrap", "text-clip", "font-color", "background", "border-all", "merge-all", "format", "conditionFormat", "filter", "comment", "image", "formula-sum", "dune", "template"].includes(iconId);
4517
4634
  }, [iconId]);
4518
- useOutsideClick(popupRef, function () {
4519
- setOpen(false);
4520
- });
4521
- useLayoutEffect(function () {
4522
- if (!popupRef.current) {
4523
- return;
4524
- }
4525
- if (!open) {
4526
- setPopupPosition({
4527
- left: 0
4528
- });
4529
- }
4530
- var winW = window.innerWidth;
4531
- var rect = popupRef.current.getBoundingClientRect();
4532
- var menuW = rect.width;
4533
- var left = rect.left;
4534
- if (left + menuW > winW) {
4535
- setPopupPosition({
4536
- left: -rect.width + buttonRef.current.clientWidth
4537
- });
4538
- }
4539
- }, [open]);
4540
- return /*#__PURE__*/React.createElement("div", {
4541
- className: "fortune-toobar-combo-container fortune-toolbar-item"
4542
- }, /*#__PURE__*/React.createElement("div", {
4543
- ref: buttonRef,
4544
- className: "fortune-toolbar-combo"
4545
- }, !isLucideIcon ? (/*#__PURE__*/React.createElement(Tooltip, {
4635
+ var trigger = !isLucideIcon ? (/*#__PURE__*/React.createElement(Tooltip, {
4546
4636
  text: tooltip,
4547
4637
  placement: "bottom"
4548
4638
  }, /*#__PURE__*/React.createElement("div", {
@@ -4551,8 +4641,6 @@ var Combo = function Combo(_ref) {
4551
4641
  if (_onClick) {
4552
4642
  _onClick(e);
4553
4643
  if (!showArrow) setOpen(!open);
4554
- } else {
4555
- setOpen(!open);
4556
4644
  }
4557
4645
  },
4558
4646
  tabIndex: 0,
@@ -4573,23 +4661,23 @@ var Combo = function Combo(_ref) {
4573
4661
  onClick: function onClick() {
4574
4662
  return setOpen(!open);
4575
4663
  },
4576
- className: showArrow ? "fortune-toolbar-combo-button show-arrow" : ""
4577
- }))), showArrow && (/*#__PURE__*/React.createElement("div", {
4578
- className: "fortune-toolbar-combo-arrow",
4579
- onClick: function onClick() {
4580
- return setOpen(!open);
4581
- },
4582
- tabIndex: 0,
4583
- role: "button",
4584
- style: style
4585
- }, /*#__PURE__*/React.createElement(LucideIcon, {
4586
- name: "ChevronDown",
4587
- width: 14,
4588
- height: 14
4589
- })))), open && (/*#__PURE__*/React.createElement("div", {
4590
- ref: popupRef,
4591
- className: "fortune-toolbar-combo-popup",
4592
- style: popupPosition
4664
+ className: "fortune-toolbar-combo-button"
4665
+ })));
4666
+ return /*#__PURE__*/React.createElement("div", {
4667
+ ref: buttonRef
4668
+ }, /*#__PURE__*/React.createElement(Popover, {
4669
+ open: open,
4670
+ onOpenChange: setOpen
4671
+ }, /*#__PURE__*/React.createElement(PopoverTrigger, {
4672
+ asChild: true
4673
+ }, /*#__PURE__*/React.createElement("div", {
4674
+ className: "flex items-center"
4675
+ }, trigger)), /*#__PURE__*/React.createElement(PopoverContent, {
4676
+ align: "start",
4677
+ side: "bottom",
4678
+ sideOffset: 4,
4679
+ alignOffset: -16,
4680
+ className: "fortune-toolbar-combo-popup border-none"
4593
4681
  }, children === null || children === void 0 ? void 0 : children(setOpen))));
4594
4682
  };
4595
4683
 
@@ -5467,7 +5555,6 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
5467
5555
  var isOpen = _ref.isOpen,
5468
5556
  onClose = _ref.onClose,
5469
5557
  onSubmit = _ref.onSubmit,
5470
- icon = _ref.icon,
5471
5558
  _ref$submitText = _ref.submitText,
5472
5559
  submitText = _ref$submitText === void 0 ? "Submit" : _ref$submitText,
5473
5560
  _ref$placeholder = _ref.placeholder,
@@ -5509,6 +5596,8 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
5509
5596
  e.stopPropagation();
5510
5597
  if (e.key === "Enter") {
5511
5598
  handleSubmit();
5599
+ } else if (e.key === "Escape") {
5600
+ onClose();
5512
5601
  }
5513
5602
  };
5514
5603
  return /*#__PURE__*/React.createElement("div", {
@@ -5525,8 +5614,8 @@ var DuneChartsInputModal = function DuneChartsInputModal(_ref) {
5525
5614
  onKeyDown: handleKeyDown
5526
5615
  }, /*#__PURE__*/React.createElement("div", {
5527
5616
  className: "modal-header"
5528
- }, /*#__PURE__*/React.createElement(SVGIcon, {
5529
- name: icon
5617
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
5618
+ name: "DuneChart"
5530
5619
  }), /*#__PURE__*/React.createElement("input", {
5531
5620
  ref: inputRef,
5532
5621
  className: "modal-input",
@@ -5871,46 +5960,18 @@ var Toolbar = function Toolbar(_ref) {
5871
5960
  if (value === "fmtOtherSelf") {
5872
5961
  return /*#__PURE__*/React.createElement(Option, {
5873
5962
  key: value,
5874
- onMouseEnter: function onMouseEnter(e) {
5875
- return showSubMenu(e, "more-format");
5876
- },
5877
- onMouseLeave: function onMouseLeave(e) {
5878
- return hideSubMenu(e, "more-format");
5879
- }
5880
- }, /*#__PURE__*/React.createElement("div", {
5881
- className: "fortune-toolbar-menu-line"
5882
- }, /*#__PURE__*/React.createElement("div", null, text), /*#__PURE__*/React.createElement(SVGIcon, {
5883
- name: "rightArrow",
5884
- width: 16,
5885
- height: 16
5886
- })), /*#__PURE__*/React.createElement("div", {
5887
- className: "more-format toolbar-item-sub-menu fortune-toolbar-select",
5888
- style: {
5889
- display: "none",
5890
- width: 150,
5891
- bottom: 10,
5892
- top: undefined
5893
- }
5894
- }, [{
5895
- text: toolbarFormat.moreCurrency,
5896
- onclick: function onclick() {
5963
+ onClick: function onClick() {
5897
5964
  showDialog(/*#__PURE__*/React.createElement(FormatSearch, {
5898
5965
  onCancel: hideDialog,
5899
5966
  type: "currency"
5900
5967
  }), undefined, "Currency Format");
5901
5968
  setOpen(false);
5902
5969
  }
5903
- }].map(function (v) {
5904
- return /*#__PURE__*/React.createElement("div", {
5905
- className: "set-background-item fortune-toolbar-select-option",
5906
- key: v.text,
5907
- onClick: function onClick() {
5908
- v.onclick();
5909
- setOpen(false);
5910
- },
5911
- tabIndex: 0
5912
- }, v.text);
5913
- })));
5970
+ }, /*#__PURE__*/React.createElement("div", {
5971
+ className: "fortune-toolbar-menu-line"
5972
+ }, /*#__PURE__*/React.createElement("div", null, text), /*#__PURE__*/React.createElement("div", {
5973
+ className: "fortune-toolbar-subtext"
5974
+ }, example)));
5914
5975
  }
5915
5976
  return /*#__PURE__*/React.createElement(Option, {
5916
5977
  key: value,
@@ -6886,27 +6947,7 @@ var Toolbar = function Toolbar(_ref) {
6886
6947
  onClose: onMoreToolbarItemsClose
6887
6948
  }, moreToolbarItems))), /*#__PURE__*/React.createElement("div", {
6888
6949
  className: "fortune-toolbar-right"
6889
- }, settings.customToolbarItems.filter(function (n) {
6890
- return n.key === "templates";
6891
- }).map(function (n) {
6892
- return /*#__PURE__*/React.createElement(CustomButton, {
6893
- tooltip: n.tooltip,
6894
- onClick: n.onClick,
6895
- key: n.key,
6896
- icon: n.icon,
6897
- iconName: n.iconName
6898
- }, n.children);
6899
- }), settings.customToolbarItems.filter(function (n) {
6900
- return n.key !== "templates" && n.key !== "import-export";
6901
- }).map(function (n) {
6902
- return /*#__PURE__*/React.createElement(CustomButton, {
6903
- tooltip: n.tooltip,
6904
- onClick: n.onClick,
6905
- key: n.key,
6906
- icon: n.icon,
6907
- iconName: n.iconName
6908
- }, n.children);
6909
- }), settings.customToolbarItems.length > 0 && (/*#__PURE__*/React.createElement(Button, {
6950
+ }, settings.customToolbarItems.length > 0 && (/*#__PURE__*/React.createElement(Button, {
6910
6951
  iconId: "dune",
6911
6952
  tooltip: "Insert Dune Chart",
6912
6953
  key: "dune-charts",
@@ -6918,7 +6959,17 @@ var Toolbar = function Toolbar(_ref) {
6918
6959
  backgroundColor: "#F4603E2E",
6919
6960
  borderRadius: "8px"
6920
6961
  }
6921
- })), showDuneModal && (/*#__PURE__*/React.createElement(DuneChartsInputModal, {
6962
+ })), settings.customToolbarItems.filter(function (n) {
6963
+ return n.key !== "import-export";
6964
+ }).map(function (n) {
6965
+ return /*#__PURE__*/React.createElement(CustomButton, {
6966
+ tooltip: n.tooltip,
6967
+ onClick: n.onClick,
6968
+ key: n.key,
6969
+ icon: n.icon,
6970
+ iconName: n.iconName
6971
+ }, n.children);
6972
+ }), showDuneModal && (/*#__PURE__*/React.createElement(DuneChartsInputModal, {
6922
6973
  isOpen: showDuneModal,
6923
6974
  onSubmit: function onSubmit(url) {
6924
6975
  setContext(function (draftCtx) {
@@ -6929,7 +6980,6 @@ var Toolbar = function Toolbar(_ref) {
6929
6980
  onClose: function onClose() {
6930
6981
  return setShowDuneModal(false);
6931
6982
  },
6932
- icon: "dune-logo",
6933
6983
  placeholder: "Add Dune chart link to embed",
6934
6984
  submitText: "Embed Dune chart"
6935
6985
  }))));
@@ -7810,12 +7860,8 @@ var ContextMenu = function ContextMenu() {
7810
7860
  className: "context-item"
7811
7861
  }, /*#__PURE__*/React.createElement(SVGIcon, {
7812
7862
  name: "split-flv",
7813
- width: 17,
7814
- height: 17,
7815
- style: {
7816
- marginTop: "4px",
7817
- marginRight: "8px"
7818
- }
7863
+ width: 18,
7864
+ height: 18
7819
7865
  }), "Split text to columns"));
7820
7866
  }
7821
7867
  if (name === "freeze-row") {
@@ -7837,15 +7883,9 @@ var ContextMenu = function ContextMenu() {
7837
7883
  }
7838
7884
  }, /*#__PURE__*/React.createElement("div", {
7839
7885
  className: "context-item"
7840
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7841
- name: "freeze-flv",
7842
- width: 16,
7843
- height: 16,
7844
- style: {
7845
- marginTop: "4px",
7846
- marginRight: "4px"
7847
- }
7848
- }), isFrozen ? "Unfreeze row" : "Freeze to current row"));
7886
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7887
+ name: "Snowflake"
7888
+ }), /*#__PURE__*/React.createElement("p", null, isFrozen ? "Unfreeze row" : "Freeze upto current row")));
7849
7889
  }
7850
7890
  if (name === "freeze-column") {
7851
7891
  var _freezeState = getFreezeState(context);
@@ -7867,15 +7907,9 @@ var ContextMenu = function ContextMenu() {
7867
7907
  }
7868
7908
  }, /*#__PURE__*/React.createElement("div", {
7869
7909
  className: "context-item"
7870
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7871
- name: "freeze-flv",
7872
- width: 18,
7873
- height: 18,
7874
- style: {
7875
- marginTop: "4px",
7876
- marginRight: "4px"
7877
- }
7878
- }), /*#__PURE__*/React.createElement("p", null, _isFrozen ? "Unfreeze column" : "Freeze to current column")));
7910
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7911
+ name: "Snowflake"
7912
+ }), /*#__PURE__*/React.createElement("p", null, _isFrozen ? "Unfreeze column" : "Freeze upto current column")));
7879
7913
  }
7880
7914
  if (name === "comment") {
7881
7915
  return /*#__PURE__*/React.createElement(Menu, {
@@ -7888,14 +7922,8 @@ var ContextMenu = function ContextMenu() {
7888
7922
  }
7889
7923
  }, /*#__PURE__*/React.createElement("div", {
7890
7924
  className: "context-item"
7891
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7892
- name: "comment-flv",
7893
- width: 18,
7894
- height: 18,
7895
- style: {
7896
- marginTop: "4px",
7897
- marginRight: "8px"
7898
- }
7925
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7926
+ name: "MessageSquarePlus"
7899
7927
  }), /*#__PURE__*/React.createElement("p", null, "Comment")));
7900
7928
  }
7901
7929
  if (name === "dataVerification") {
@@ -7910,13 +7938,8 @@ var ContextMenu = function ContextMenu() {
7910
7938
  }
7911
7939
  }, /*#__PURE__*/React.createElement("div", {
7912
7940
  className: "context-item"
7913
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7914
- name: "dataVerification",
7915
- width: 20,
7916
- height: 20,
7917
- style: {
7918
- marginRight: "7px"
7919
- }
7941
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7942
+ name: "ShieldCheck"
7920
7943
  }), /*#__PURE__*/React.createElement("p", null, "Data Verification")));
7921
7944
  }
7922
7945
  if (name === "searchReplace") {
@@ -7932,13 +7955,8 @@ var ContextMenu = function ContextMenu() {
7932
7955
  }
7933
7956
  }, /*#__PURE__*/React.createElement("div", {
7934
7957
  className: "context-item"
7935
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7936
- name: "search",
7937
- width: 20,
7938
- height: 20,
7939
- style: {
7940
- marginRight: "7px"
7941
- }
7958
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7959
+ name: "Search"
7942
7960
  }), /*#__PURE__*/React.createElement("p", null, "Find and Replace")));
7943
7961
  }
7944
7962
  if (name === "copy") {
@@ -7958,14 +7976,8 @@ var ContextMenu = function ContextMenu() {
7958
7976
  }
7959
7977
  }, /*#__PURE__*/React.createElement("div", {
7960
7978
  className: "context-item"
7961
- }, /*#__PURE__*/React.createElement(SVGIcon, {
7962
- name: "copy-flv",
7963
- width: 21,
7964
- height: 21,
7965
- style: {
7966
- marginTop: "4px",
7967
- marginRight: "4px"
7968
- }
7979
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
7980
+ name: "Copy"
7969
7981
  }), /*#__PURE__*/React.createElement("p", null, rightclick.copy)));
7970
7982
  }
7971
7983
  if (name === "cut") {
@@ -7998,13 +8010,8 @@ var ContextMenu = function ContextMenu() {
7998
8010
  }
7999
8011
  }, /*#__PURE__*/React.createElement("div", {
8000
8012
  className: "context-item"
8001
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8002
- name: "cut-flv",
8003
- width: 17,
8004
- height: 17,
8005
- style: {
8006
- marginRight: "8px"
8007
- }
8013
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8014
+ name: "Scissors"
8008
8015
  }), /*#__PURE__*/React.createElement("p", null, "Cut")));
8009
8016
  }
8010
8017
  if (name === "paste" && regeneratorRuntime) {
@@ -8036,13 +8043,8 @@ var ContextMenu = function ContextMenu() {
8036
8043
  }()
8037
8044
  }, /*#__PURE__*/React.createElement("div", {
8038
8045
  className: "context-item"
8039
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8040
- name: "paste-flv",
8041
- width: 17,
8042
- height: 17,
8043
- style: {
8044
- marginRight: "8px"
8045
- }
8046
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8047
+ name: "Clipboard"
8046
8048
  }), /*#__PURE__*/React.createElement("p", null, rightclick.paste)));
8047
8049
  }
8048
8050
  if (name === "insert-column") {
@@ -8074,10 +8076,10 @@ var ContextMenu = function ContextMenu() {
8074
8076
  insertRowColOp: insertRowColOp
8075
8077
  });
8076
8078
  }
8077
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SVGIcon, {
8078
- name: "insert-flv",
8079
- width: 18,
8080
- height: 18
8079
+ }, /*#__PURE__*/React.createElement("div", {
8080
+ className: "context-item"
8081
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8082
+ name: "Plus"
8081
8083
  }), /*#__PURE__*/React.createElement("div", null, "Insert column to the left")));
8082
8084
  });
8083
8085
  }
@@ -8110,10 +8112,10 @@ var ContextMenu = function ContextMenu() {
8110
8112
  insertRowColOp: insertRowColOp
8111
8113
  });
8112
8114
  }
8113
- }, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SVGIcon, {
8114
- name: "insert-flv",
8115
- width: 18,
8116
- height: 18
8115
+ }, /*#__PURE__*/React.createElement("div", {
8116
+ className: "context-item"
8117
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8118
+ name: "Plus"
8117
8119
  }), /*#__PURE__*/React.createElement("div", null, "Insert row below")));
8118
8120
  });
8119
8121
  }
@@ -8160,13 +8162,8 @@ var ContextMenu = function ContextMenu() {
8160
8162
  }
8161
8163
  }, /*#__PURE__*/React.createElement("div", {
8162
8164
  className: "context-item"
8163
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8164
- name: "delete-flv",
8165
- width: 18,
8166
- height: 18,
8167
- style: {
8168
- marginRight: "8px"
8169
- }
8165
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8166
+ name: "Trash2"
8170
8167
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
8171
8168
  }
8172
8169
  if (name === "cell-delete-column") {
@@ -8212,13 +8209,8 @@ var ContextMenu = function ContextMenu() {
8212
8209
  }
8213
8210
  }, /*#__PURE__*/React.createElement("div", {
8214
8211
  className: "context-item"
8215
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8216
- name: "delete-flv",
8217
- width: 18,
8218
- height: 18,
8219
- style: {
8220
- marginRight: "8px"
8221
- }
8212
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8213
+ name: "Trash2"
8222
8214
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.column))));
8223
8215
  }
8224
8216
  if (name === "delete-row") {
@@ -8263,13 +8255,8 @@ var ContextMenu = function ContextMenu() {
8263
8255
  }
8264
8256
  }, /*#__PURE__*/React.createElement("div", {
8265
8257
  className: "context-item"
8266
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8267
- name: "delete-flv",
8268
- width: 18,
8269
- height: 18,
8270
- style: {
8271
- marginRight: "8px"
8272
- }
8258
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8259
+ name: "Trash2"
8273
8260
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
8274
8261
  }
8275
8262
  if (name === "cell-delete-row") {
@@ -8314,13 +8301,8 @@ var ContextMenu = function ContextMenu() {
8314
8301
  }
8315
8302
  }, /*#__PURE__*/React.createElement("div", {
8316
8303
  className: "context-item"
8317
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8318
- name: "delete-flv",
8319
- width: 18,
8320
- height: 18,
8321
- style: {
8322
- marginRight: "8px"
8323
- }
8304
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8305
+ name: "Trash2"
8324
8306
  }), /*#__PURE__*/React.createElement("div", null, rightclick.deleteSelected, rightclick.row))));
8325
8307
  }
8326
8308
  if (name === "hide-row") {
@@ -8343,13 +8325,8 @@ var ContextMenu = function ContextMenu() {
8343
8325
  }
8344
8326
  }, /*#__PURE__*/React.createElement("div", {
8345
8327
  className: "context-item"
8346
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8347
- name: "hide-flv",
8348
- width: 18,
8349
- height: 18,
8350
- style: {
8351
- marginRight: "8px"
8352
- }
8328
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8329
+ name: "EyeOff"
8353
8330
  }), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.row)));
8354
8331
  });
8355
8332
  }
@@ -8373,13 +8350,8 @@ var ContextMenu = function ContextMenu() {
8373
8350
  }
8374
8351
  }, /*#__PURE__*/React.createElement("div", {
8375
8352
  className: "context-item"
8376
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8377
- name: "hide-flv",
8378
- width: 18,
8379
- height: 18,
8380
- style: {
8381
- marginRight: "8px"
8382
- }
8353
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8354
+ name: "EyeOff"
8383
8355
  }), /*#__PURE__*/React.createElement("div", null, rightclick[item] + rightclick.column)));
8384
8356
  });
8385
8357
  }
@@ -8417,11 +8389,8 @@ var ContextMenu = function ContextMenu() {
8417
8389
  className: "context-item"
8418
8390
  }, /*#__PURE__*/React.createElement(SVGIcon, {
8419
8391
  name: "resize-flv",
8420
- width: 18,
8421
- height: 18,
8422
- style: {
8423
- marginRight: "8px"
8424
- }
8392
+ width: 16,
8393
+ height: 16
8425
8394
  }), /*#__PURE__*/React.createElement("div", null, "Resize row height", /*#__PURE__*/React.createElement("input", {
8426
8395
  onClick: function onClick(e) {
8427
8396
  return e.stopPropagation();
@@ -8457,11 +8426,8 @@ var ContextMenu = function ContextMenu() {
8457
8426
  className: "context-item"
8458
8427
  }, /*#__PURE__*/React.createElement(SVGIcon, {
8459
8428
  name: "resize-flv",
8460
- width: 18,
8461
- height: 18,
8462
- style: {
8463
- marginRight: "8px"
8464
- }
8429
+ width: 16,
8430
+ height: 16
8465
8431
  }), /*#__PURE__*/React.createElement("div", null, "Resize column width")))) : null;
8466
8432
  }
8467
8433
  if (name === "clear") {
@@ -8489,13 +8455,8 @@ var ContextMenu = function ContextMenu() {
8489
8455
  }
8490
8456
  }, /*#__PURE__*/React.createElement("div", {
8491
8457
  className: "context-item"
8492
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8493
- name: "clear-flv",
8494
- width: 17,
8495
- height: 17,
8496
- style: {
8497
- marginRight: "8px"
8498
- }
8458
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8459
+ name: "Eraser"
8499
8460
  }), /*#__PURE__*/React.createElement("p", null, rightclick.clearContent)));
8500
8461
  }
8501
8462
  if (name === "ascSort") {
@@ -8511,14 +8472,8 @@ var ContextMenu = function ContextMenu() {
8511
8472
  }
8512
8473
  }, /*#__PURE__*/React.createElement("div", {
8513
8474
  className: "context-item"
8514
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8515
- name: "asc-sort-flv",
8516
- width: 18,
8517
- height: 18,
8518
- style: {
8519
- marginTop: "4px",
8520
- marginRight: "8px"
8521
- }
8475
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8476
+ name: "ArrowDown01"
8522
8477
  }), /*#__PURE__*/React.createElement("p", null, "Ascending sort")));
8523
8478
  }
8524
8479
  if (name === "desSort") {
@@ -8534,14 +8489,8 @@ var ContextMenu = function ContextMenu() {
8534
8489
  }
8535
8490
  }, /*#__PURE__*/React.createElement("div", {
8536
8491
  className: "context-item"
8537
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8538
- name: "des-sort-flv",
8539
- width: 18,
8540
- height: 18,
8541
- style: {
8542
- marginTop: "4px",
8543
- marginRight: "8px"
8544
- }
8492
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8493
+ name: "ArrowDown10"
8545
8494
  }), /*#__PURE__*/React.createElement("p", null, "Descending sort")));
8546
8495
  }
8547
8496
  if (name === "sort") {
@@ -8575,13 +8524,8 @@ var ContextMenu = function ContextMenu() {
8575
8524
  style: {
8576
8525
  height: "40px"
8577
8526
  }
8578
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8579
- name: "sort-asc",
8580
- width: 24,
8581
- height: 18,
8582
- style: {
8583
- marginRight: "4px"
8584
- }
8527
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8528
+ name: "ArrowUp"
8585
8529
  }), /*#__PURE__*/React.createElement("p", null, sort.asc))), /*#__PURE__*/React.createElement(Menu, {
8586
8530
  onClick: function onClick() {
8587
8531
  setContext(function (draftCtx) {
@@ -8594,13 +8538,8 @@ var ContextMenu = function ContextMenu() {
8594
8538
  style: {
8595
8539
  height: "40px"
8596
8540
  }
8597
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8598
- name: "sort-desc",
8599
- width: 24,
8600
- height: 18,
8601
- style: {
8602
- marginRight: "4px"
8603
- }
8541
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8542
+ name: "ArrowDown"
8604
8543
  }), /*#__PURE__*/React.createElement("p", null, sort.desc))))),
8605
8544
  trigger: "mouseenter focus",
8606
8545
  hideOnClick: false
@@ -8608,16 +8547,12 @@ var ContextMenu = function ContextMenu() {
8608
8547
  className: "flex items-center justify-between w-full"
8609
8548
  }, /*#__PURE__*/React.createElement("div", {
8610
8549
  className: "context-item"
8611
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8612
- name: "sort-flv",
8613
- width: 18,
8614
- height: 18,
8615
- style: {
8616
- marginRight: "8px"
8617
- }
8618
- }), /*#__PURE__*/React.createElement("p", null, rightclick.sortSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
8619
- name: "rightArrow",
8620
- width: 18
8550
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8551
+ name: "ArrowDownUp"
8552
+ }), /*#__PURE__*/React.createElement("p", null, rightclick.sortSelection)), /*#__PURE__*/React.createElement(LucideIcon, {
8553
+ name: "ChevronRight",
8554
+ width: 16,
8555
+ height: 16
8621
8556
  })))));
8622
8557
  }
8623
8558
  if (name === "filter") {
@@ -8651,13 +8586,8 @@ var ContextMenu = function ContextMenu() {
8651
8586
  style: {
8652
8587
  height: "40px"
8653
8588
  }
8654
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8655
- name: "filter",
8656
- width: 22,
8657
- height: 22,
8658
- style: {
8659
- marginRight: "4px"
8660
- }
8589
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8590
+ name: "Filter"
8661
8591
  }), /*#__PURE__*/React.createElement("p", null, filter.filter))), /*#__PURE__*/React.createElement(Menu, {
8662
8592
  onClick: function onClick() {
8663
8593
  setContext(function (draftCtx) {
@@ -8670,14 +8600,8 @@ var ContextMenu = function ContextMenu() {
8670
8600
  style: {
8671
8601
  height: "40px"
8672
8602
  }
8673
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8674
- name: "eraser",
8675
- width: 22,
8676
- height: 22,
8677
- style: {
8678
- marginRight: "4px",
8679
- marginLeft: "2px"
8680
- }
8603
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8604
+ name: "Eraser"
8681
8605
  }), /*#__PURE__*/React.createElement("p", null, filter.clearFilter))))),
8682
8606
  trigger: "mouseenter focus",
8683
8607
  hideOnClick: false
@@ -8685,17 +8609,12 @@ var ContextMenu = function ContextMenu() {
8685
8609
  className: "flex items-center justify-between w-full"
8686
8610
  }, /*#__PURE__*/React.createElement("div", {
8687
8611
  className: "context-item"
8688
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8689
- name: "filter",
8690
- width: 22,
8691
- height: 22,
8692
- style: {
8693
- marginRight: "4px",
8694
- marginTop: "2px"
8695
- }
8696
- }), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(SVGIcon, {
8697
- name: "rightArrow",
8698
- width: 18
8612
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8613
+ name: "Filter"
8614
+ }), /*#__PURE__*/React.createElement("p", null, rightclick.filterSelection)), /*#__PURE__*/React.createElement(LucideIcon, {
8615
+ name: "ChevronRight",
8616
+ width: 16,
8617
+ height: 16
8699
8618
  })))));
8700
8619
  }
8701
8620
  if (name === "image") {
@@ -8720,13 +8639,8 @@ var ContextMenu = function ContextMenu() {
8720
8639
  }
8721
8640
  }, /*#__PURE__*/React.createElement("div", {
8722
8641
  className: "context-item"
8723
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8724
- name: "link",
8725
- width: 20,
8726
- height: 20,
8727
- style: {
8728
- marginRight: "7px"
8729
- }
8642
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8643
+ name: "Link"
8730
8644
  }), /*#__PURE__*/React.createElement("p", null, rightclick.link)));
8731
8645
  }
8732
8646
  if (name === "conditionFormat") {
@@ -8757,16 +8671,11 @@ var ContextMenu = function ContextMenu() {
8757
8671
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement("div", {
8758
8672
  className: "flex items-center justify-between w-full"
8759
8673
  }, /*#__PURE__*/React.createElement("div", {
8760
- className: "flex items-center gap-2"
8761
- }, /*#__PURE__*/React.createElement(SVGIcon, {
8762
- name: "conditionFormat",
8763
- width: 16,
8764
- height: 16,
8765
- style: {
8766
- marginRight: "2px"
8767
- }
8768
- }), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(SVGIcon, {
8769
- name: "rightArrow",
8674
+ className: "flex items-center gap-2 context-item"
8675
+ }, /*#__PURE__*/React.createElement(LucideIcon, {
8676
+ name: "PaintbrushVertical"
8677
+ }), /*#__PURE__*/React.createElement("p", null, rightclick.conditionFormat || "Conditional Format")), /*#__PURE__*/React.createElement(LucideIcon, {
8678
+ name: "ChevronRight",
8770
8679
  width: 16,
8771
8680
  height: 16
8772
8681
  })))));
@@ -12083,13 +11992,14 @@ var DunePreview = function DunePreview(_ref) {
12083
11992
  }
12084
11993
  })), /*#__PURE__*/React.createElement("p", null, "Do you want to insert Dune chart?"), /*#__PURE__*/React.createElement("div", {
12085
11994
  className: "fortune-dune-preview-footer"
12086
- }, /*#__PURE__*/React.createElement(Button$1, {
12087
- variant: "ghost",
11995
+ }, /*#__PURE__*/React.createElement("button", {
11996
+ type: "button",
12088
11997
  onClick: onKeepAsLink,
12089
- className: "!w-fit px-0"
12090
- }, "Keep as Link"), /*#__PURE__*/React.createElement(Button$1, {
11998
+ className: "fortune-dune-preview-button"
11999
+ }, "Keep as Link"), /*#__PURE__*/React.createElement("button", {
12000
+ type: "button",
12091
12001
  onClick: onEmbed,
12092
- className: "!w-fit px-0"
12002
+ className: "fortune-dune-preview-button primary"
12093
12003
  }, "Embed")));
12094
12004
  };
12095
12005