@fileverse-dev/fortune-react 1.0.2-mod-84 → 1.0.2-mod-86
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 +8 -0
- package/dist/index.js +8 -0
- package/dist/index.umd.js +74 -27
- package/dist/index.umd.min.js +2 -2
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -6975,10 +6975,12 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
6975
6975
|
}), showDuneModal && (/*#__PURE__*/React.createElement(DuneChartsInputModal, {
|
|
6976
6976
|
isOpen: showDuneModal,
|
|
6977
6977
|
onSubmit: function onSubmit(url) {
|
|
6978
|
+
var _settings$onDuneChart;
|
|
6978
6979
|
setContext(function (draftCtx) {
|
|
6979
6980
|
insertDuneChart(draftCtx, url);
|
|
6980
6981
|
});
|
|
6981
6982
|
setShowDuneModal(false);
|
|
6983
|
+
(_settings$onDuneChart = settings.onDuneChartEmbed) === null || _settings$onDuneChart === void 0 ? void 0 : _settings$onDuneChart.call(settings);
|
|
6982
6984
|
},
|
|
6983
6985
|
onClose: function onClose() {
|
|
6984
6986
|
return setShowDuneModal(false);
|
|
@@ -7568,6 +7570,10 @@ var SheetTab = function SheetTab() {
|
|
|
7568
7570
|
setIsShowScrollBtn(tabCurrent.scrollWidth > tabCurrent.clientWidth);
|
|
7569
7571
|
});
|
|
7570
7572
|
}, [refs.cellInput, setContext, settings]);
|
|
7573
|
+
useEffect(function () {
|
|
7574
|
+
var _settings$onSheetCoun;
|
|
7575
|
+
(_settings$onSheetCoun = settings.onSheetCountChange) === null || _settings$onSheetCoun === void 0 ? void 0 : _settings$onSheetCoun.call(settings, context.luckysheetfile.length);
|
|
7576
|
+
}, [context.luckysheetfile.length]);
|
|
7571
7577
|
return /*#__PURE__*/React.createElement("div", {
|
|
7572
7578
|
className: "luckysheet-sheet-area luckysheet-noselected-text",
|
|
7573
7579
|
onContextMenu: function onContextMenu(e) {
|
|
@@ -12550,12 +12556,14 @@ var Workbook = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12550
12556
|
});
|
|
12551
12557
|
},
|
|
12552
12558
|
onEmbed: function onEmbed() {
|
|
12559
|
+
var _mergedSettings$onDun;
|
|
12553
12560
|
setContextWithProduce(function (draftCtx) {
|
|
12554
12561
|
insertDuneChart(draftCtx, context.showDunePreview.url);
|
|
12555
12562
|
draftCtx.showDunePreview = undefined;
|
|
12556
12563
|
}, {
|
|
12557
12564
|
noHistory: true
|
|
12558
12565
|
});
|
|
12566
|
+
(_mergedSettings$onDun = mergedSettings.onDuneChartEmbed) === null || _mergedSettings$onDun === void 0 ? void 0 : _mergedSettings$onDun.call(mergedSettings);
|
|
12559
12567
|
}
|
|
12560
12568
|
})))));
|
|
12561
12569
|
});
|
package/dist/index.js
CHANGED
|
@@ -6985,10 +6985,12 @@ var Toolbar = function Toolbar(_ref) {
|
|
|
6985
6985
|
}), showDuneModal && (/*#__PURE__*/React__default['default'].createElement(DuneChartsInputModal, {
|
|
6986
6986
|
isOpen: showDuneModal,
|
|
6987
6987
|
onSubmit: function onSubmit(url) {
|
|
6988
|
+
var _settings$onDuneChart;
|
|
6988
6989
|
setContext(function (draftCtx) {
|
|
6989
6990
|
fortuneCore.insertDuneChart(draftCtx, url);
|
|
6990
6991
|
});
|
|
6991
6992
|
setShowDuneModal(false);
|
|
6993
|
+
(_settings$onDuneChart = settings.onDuneChartEmbed) === null || _settings$onDuneChart === void 0 ? void 0 : _settings$onDuneChart.call(settings);
|
|
6992
6994
|
},
|
|
6993
6995
|
onClose: function onClose() {
|
|
6994
6996
|
return setShowDuneModal(false);
|
|
@@ -7578,6 +7580,10 @@ var SheetTab = function SheetTab() {
|
|
|
7578
7580
|
setIsShowScrollBtn(tabCurrent.scrollWidth > tabCurrent.clientWidth);
|
|
7579
7581
|
});
|
|
7580
7582
|
}, [refs.cellInput, setContext, settings]);
|
|
7583
|
+
React.useEffect(function () {
|
|
7584
|
+
var _settings$onSheetCoun;
|
|
7585
|
+
(_settings$onSheetCoun = settings.onSheetCountChange) === null || _settings$onSheetCoun === void 0 ? void 0 : _settings$onSheetCoun.call(settings, context.luckysheetfile.length);
|
|
7586
|
+
}, [context.luckysheetfile.length]);
|
|
7581
7587
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7582
7588
|
className: "luckysheet-sheet-area luckysheet-noselected-text",
|
|
7583
7589
|
onContextMenu: function onContextMenu(e) {
|
|
@@ -12560,12 +12566,14 @@ var Workbook = /*#__PURE__*/React__default['default'].forwardRef(function (_ref,
|
|
|
12560
12566
|
});
|
|
12561
12567
|
},
|
|
12562
12568
|
onEmbed: function onEmbed() {
|
|
12569
|
+
var _mergedSettings$onDun;
|
|
12563
12570
|
setContextWithProduce(function (draftCtx) {
|
|
12564
12571
|
fortuneCore.insertDuneChart(draftCtx, context.showDunePreview.url);
|
|
12565
12572
|
draftCtx.showDunePreview = undefined;
|
|
12566
12573
|
}, {
|
|
12567
12574
|
noHistory: true
|
|
12568
12575
|
});
|
|
12576
|
+
(_mergedSettings$onDun = mergedSettings.onDuneChartEmbed) === null || _mergedSettings$onDun === void 0 ? void 0 : _mergedSettings$onDun.call(mergedSettings);
|
|
12569
12577
|
}
|
|
12570
12578
|
})))));
|
|
12571
12579
|
});
|