@fileverse-dev/fortune-react 1.0.7 → 1.0.9
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/es/components/Dialog/index.js +13 -1
- package/es/components/Workbook/api.d.ts +1 -0
- package/es/components/Workbook/api.js +3 -0
- package/es/components/Workbook/index.d.ts +1 -0
- package/lib/components/Dialog/index.js +13 -1
- package/lib/components/Workbook/api.d.ts +1 -0
- package/lib/components/Workbook/api.js +3 -0
- package/lib/components/Workbook/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
6
|
+
}
|
|
7
|
+
return t;
|
|
8
|
+
};
|
|
9
|
+
return __assign.apply(this, arguments);
|
|
10
|
+
};
|
|
1
11
|
import { locale } from "@fileverse-dev/fortune-core";
|
|
2
12
|
import { Button, cn, IconButton } from "@fileverse/ui";
|
|
3
13
|
import React, { useContext } from "react";
|
|
@@ -17,7 +27,9 @@ var Dialog = function Dialog(_a) {
|
|
|
17
27
|
var button = locale(context).button;
|
|
18
28
|
return /*#__PURE__*/React.createElement("div", {
|
|
19
29
|
className: "fortune-dialog",
|
|
20
|
-
style: containerStyle
|
|
30
|
+
style: __assign(__assign({}, containerStyle), title === "Data verification" ? {
|
|
31
|
+
maxWidth: "unset"
|
|
32
|
+
} : {})
|
|
21
33
|
}, /*#__PURE__*/React.createElement("div", {
|
|
22
34
|
className: cn("flex items-center justify-between border-b color-border-default py-3 px-6")
|
|
23
35
|
}, title ? (/*#__PURE__*/React.createElement("div", {
|
|
@@ -390,6 +390,9 @@ export function generateAPIs(context, setContext, handleUndo, handleRedo, settin
|
|
|
390
390
|
},
|
|
391
391
|
getWorkbookContext: function getWorkbookContext() {
|
|
392
392
|
return context;
|
|
393
|
+
},
|
|
394
|
+
getSettings: function getSettings() {
|
|
395
|
+
return settings;
|
|
393
396
|
}
|
|
394
397
|
};
|
|
395
398
|
}
|
|
@@ -12,6 +12,16 @@ var _context = _interopRequireDefault(require("../../context"));
|
|
|
12
12
|
require("./index.css");
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
16
|
+
__assign = Object.assign || function (t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
return __assign.apply(this, arguments);
|
|
24
|
+
};
|
|
15
25
|
var Dialog = function Dialog(_a) {
|
|
16
26
|
var type = _a.type,
|
|
17
27
|
onOk = _a.onOk,
|
|
@@ -26,7 +36,9 @@ var Dialog = function Dialog(_a) {
|
|
|
26
36
|
var button = (0, _fortuneCore.locale)(context).button;
|
|
27
37
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
28
38
|
className: "fortune-dialog",
|
|
29
|
-
style: containerStyle
|
|
39
|
+
style: __assign(__assign({}, containerStyle), title === "Data verification" ? {
|
|
40
|
+
maxWidth: "unset"
|
|
41
|
+
} : {})
|
|
30
42
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
31
43
|
className: (0, _ui.cn)("flex items-center justify-between border-b color-border-default py-3 px-6")
|
|
32
44
|
}, title ? (/*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -397,6 +397,9 @@ function generateAPIs(context, setContext, handleUndo, handleRedo, settings, cel
|
|
|
397
397
|
},
|
|
398
398
|
getWorkbookContext: function getWorkbookContext() {
|
|
399
399
|
return context;
|
|
400
|
+
},
|
|
401
|
+
getSettings: function getSettings() {
|
|
402
|
+
return settings;
|
|
400
403
|
}
|
|
401
404
|
};
|
|
402
405
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fileverse-dev/fortune-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
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.0.
|
|
19
|
+
"@fileverse-dev/fortune-core": "1.0.9",
|
|
20
20
|
"@fileverse/ui": "^4.1.7-patch-16",
|
|
21
21
|
"@tippyjs/react": "^4.2.6",
|
|
22
22
|
"@types/regenerator-runtime": "^0.13.6",
|