dtable-ui-component 5.3.1 → 6.0.0
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.
|
@@ -8,12 +8,12 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _HtmlLongTextFormatter = _interopRequireDefault(require("../HtmlLongTextFormatter"));
|
|
10
10
|
var _SimpleLongTextFormatter = _interopRequireDefault(require("../SimpleLongTextFormatter"));
|
|
11
|
-
function LongTextFormatter(
|
|
12
|
-
|
|
13
|
-
isSample,
|
|
11
|
+
function LongTextFormatter(_ref) {
|
|
12
|
+
let {
|
|
13
|
+
isSample = true,
|
|
14
14
|
value,
|
|
15
15
|
containerClassName
|
|
16
|
-
} =
|
|
16
|
+
} = _ref;
|
|
17
17
|
if (isSample) {
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement(_SimpleLongTextFormatter.default, {
|
|
19
19
|
value: value,
|
|
@@ -25,7 +25,4 @@ function LongTextFormatter(props) {
|
|
|
25
25
|
containerClassName: containerClassName
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
LongTextFormatter.defaultProps = {
|
|
29
|
-
isSample: true
|
|
30
|
-
};
|
|
31
28
|
var _default = exports.default = LongTextFormatter;
|
|
@@ -42,11 +42,12 @@ const RoleStatusEditor = _ref => {
|
|
|
42
42
|
})
|
|
43
43
|
}))), /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownMenu, {
|
|
44
44
|
positionFixed: true,
|
|
45
|
-
modifiers: {
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
modifiers: [{
|
|
46
|
+
name: 'preventOverflow',
|
|
47
|
+
options: {
|
|
48
|
+
boundary: document.body
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
|
+
}]
|
|
50
51
|
}, menuOptions.map(option => {
|
|
51
52
|
const {
|
|
52
53
|
value,
|
package/lib/toaster/toaster.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _client = require("react-dom/client");
|
|
10
10
|
var _toastManager = _interopRequireDefault(require("./toastManager"));
|
|
11
11
|
require("./index.css");
|
|
12
12
|
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -65,11 +65,12 @@ class Toaster {
|
|
|
65
65
|
const container = document.createElement('div');
|
|
66
66
|
container.setAttribute('data-evergreen-toaster-container', '');
|
|
67
67
|
document.body.appendChild(container);
|
|
68
|
-
|
|
68
|
+
const root = (0, _client.createRoot)(container);
|
|
69
|
+
root.render( /*#__PURE__*/_react.default.createElement(_toastManager.default, {
|
|
69
70
|
bindNotify: this._bindNotify,
|
|
70
71
|
bindGetToasts: this._bindGetToasts,
|
|
71
72
|
bindCloseAll: this._bindCloseAll
|
|
72
|
-
})
|
|
73
|
+
}));
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
exports.default = Toaster;
|
package/package.json
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@seafile/react-image-lightbox": "
|
|
6
|
+
"@seafile/react-image-lightbox": "4.0.0",
|
|
7
7
|
"@seafile/seafile-calendar": "0.0.24",
|
|
8
|
-
"@seafile/seafile-editor": "
|
|
8
|
+
"@seafile/seafile-editor": "2.0.0",
|
|
9
9
|
"antd-mobile": "2.3.1",
|
|
10
10
|
"classnames": "2.3.2",
|
|
11
11
|
"dayjs": "1.10.7",
|
|
12
12
|
"dtable-utils": "5.0.11",
|
|
13
13
|
"is-hotkey": "0.2.0",
|
|
14
|
-
"prop-types": "^15.8.1",
|
|
15
|
-
"react": "17.0.2",
|
|
16
|
-
"react-dom": "17.0.2",
|
|
17
|
-
"react-responsive": "9.0.2",
|
|
18
14
|
"react-color": "2.19.3",
|
|
19
|
-
"react-
|
|
20
|
-
"react-
|
|
21
|
-
"
|
|
15
|
+
"react-responsive": "10.0.0",
|
|
16
|
+
"react-select": "5.10.0",
|
|
17
|
+
"react-transition-group": "4.4.5",
|
|
18
|
+
"reactstrap": "9.2.3"
|
|
22
19
|
},
|
|
23
20
|
"scripts": {
|
|
24
21
|
"lint": "./node_modules/.bin/eslint ./src/ --fix",
|
|
@@ -66,6 +63,7 @@
|
|
|
66
63
|
"@babel/polyfill": "^7.10.1",
|
|
67
64
|
"@babel/preset-env": "^7.9.5",
|
|
68
65
|
"@babel/runtime": "7.22.11",
|
|
66
|
+
"@cfaester/enzyme-adapter-react-18": "0.8.0",
|
|
69
67
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
70
68
|
"@storybook/addon-actions": "7.6.17",
|
|
71
69
|
"@storybook/addon-docs": "7.6.17",
|
|
@@ -84,7 +82,6 @@
|
|
|
84
82
|
"@testing-library/react": "^11.1.0",
|
|
85
83
|
"@testing-library/user-event": "13.5.0",
|
|
86
84
|
"@types/jest": "^29.5.10",
|
|
87
|
-
"@wojtekmaj/enzyme-adapter-react-17": "0.8.0",
|
|
88
85
|
"autoprefixer": "10.4.5",
|
|
89
86
|
"babel-jest": "^27.4.2",
|
|
90
87
|
"babel-loader": "^8.2.3",
|
|
@@ -126,9 +123,12 @@
|
|
|
126
123
|
"postcss-normalize": "^10.0.1",
|
|
127
124
|
"postcss-preset-env": "^7.0.1",
|
|
128
125
|
"prompts": "^2.4.2",
|
|
126
|
+
"prop-types": "15.8.1",
|
|
127
|
+
"react": "18.3.1",
|
|
129
128
|
"react-app-polyfill": "^3.0.0",
|
|
130
129
|
"react-dev-utils": "^12.0.1",
|
|
131
|
-
"react-
|
|
130
|
+
"react-dom": "18.3.1",
|
|
131
|
+
"react-element-to-jsx-string": "15.0.0",
|
|
132
132
|
"react-i18next": "12.1.4",
|
|
133
133
|
"react-refresh": "^0.11.0",
|
|
134
134
|
"resolve": "^1.20.0",
|