@rocket.chat/fuselage 0.66.0 → 0.66.2
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/components/OptionsPaginated/OptionsPaginated.d.ts.map +1 -1
- package/dist/components/SidebarV2/SidebarItem/SidebarItemTimestamp.d.ts +3 -1
- package/dist/components/SidebarV2/SidebarItem/SidebarItemTimestamp.d.ts.map +1 -1
- package/dist/fuselage.css +1 -1
- package/dist/fuselage.css.map +1 -1
- package/dist/fuselage.development.js +48 -47
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +15 -15
|
@@ -75,10 +75,46 @@ module.exports = invariant;
|
|
|
75
75
|
|
|
76
76
|
/***/ }),
|
|
77
77
|
|
|
78
|
-
/***/ "../../node_modules/react-
|
|
79
|
-
|
|
80
|
-
!*** ../../node_modules/react-
|
|
81
|
-
|
|
78
|
+
/***/ "../../node_modules/react-keyed-flatten-children/index.js":
|
|
79
|
+
/*!****************************************************************!*\
|
|
80
|
+
!*** ../../node_modules/react-keyed-flatten-children/index.js ***!
|
|
81
|
+
\****************************************************************/
|
|
82
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86
|
+
/* Returns React children into an array, flattening fragments. */
|
|
87
|
+
var react_1 = __webpack_require__(/*! react */ "react");
|
|
88
|
+
var react_is_1 = __webpack_require__(/*! react-is */ "../../node_modules/react-keyed-flatten-children/node_modules/react-is/index.js");
|
|
89
|
+
function flattenChildren(children, depth, keys) {
|
|
90
|
+
if (depth === void 0) { depth = 0; }
|
|
91
|
+
if (keys === void 0) { keys = []; }
|
|
92
|
+
return react_1.Children.toArray(children).reduce(function (acc, node, nodeIndex) {
|
|
93
|
+
if (react_is_1.isFragment(node)) {
|
|
94
|
+
acc.push.apply(acc, flattenChildren(node.props.children, depth + 1, keys.concat(node.key || nodeIndex)));
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
if (react_1.isValidElement(node)) {
|
|
98
|
+
acc.push(react_1.cloneElement(node, {
|
|
99
|
+
key: keys.concat(String(node.key)).join('.')
|
|
100
|
+
}));
|
|
101
|
+
}
|
|
102
|
+
else if (typeof node === "string" || typeof node === "number") {
|
|
103
|
+
acc.push(node);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return acc;
|
|
107
|
+
}, []);
|
|
108
|
+
}
|
|
109
|
+
exports["default"] = flattenChildren;
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/***/ }),
|
|
113
|
+
|
|
114
|
+
/***/ "../../node_modules/react-keyed-flatten-children/node_modules/react-is/cjs/react-is.development.js":
|
|
115
|
+
/*!*********************************************************************************************************!*\
|
|
116
|
+
!*** ../../node_modules/react-keyed-flatten-children/node_modules/react-is/cjs/react-is.development.js ***!
|
|
117
|
+
\*********************************************************************************************************/
|
|
82
118
|
/***/ (function(__unused_webpack_module, exports) {
|
|
83
119
|
|
|
84
120
|
/** @license React v16.13.1
|
|
@@ -266,54 +302,18 @@ exports.typeOf = typeOf;
|
|
|
266
302
|
|
|
267
303
|
/***/ }),
|
|
268
304
|
|
|
269
|
-
/***/ "../../node_modules/react-is/index.js":
|
|
270
|
-
|
|
271
|
-
!*** ../../node_modules/react-is/index.js ***!
|
|
272
|
-
|
|
305
|
+
/***/ "../../node_modules/react-keyed-flatten-children/node_modules/react-is/index.js":
|
|
306
|
+
/*!**************************************************************************************!*\
|
|
307
|
+
!*** ../../node_modules/react-keyed-flatten-children/node_modules/react-is/index.js ***!
|
|
308
|
+
\**************************************************************************************/
|
|
273
309
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
274
310
|
|
|
275
311
|
|
|
276
312
|
|
|
277
313
|
if (false) // removed by dead control flow
|
|
278
314
|
{} else {
|
|
279
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-is/cjs/react-is.development.js");
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
/***/ }),
|
|
284
|
-
|
|
285
|
-
/***/ "../../node_modules/react-keyed-flatten-children/index.js":
|
|
286
|
-
/*!****************************************************************!*\
|
|
287
|
-
!*** ../../node_modules/react-keyed-flatten-children/index.js ***!
|
|
288
|
-
\****************************************************************/
|
|
289
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
293
|
-
/* Returns React children into an array, flattening fragments. */
|
|
294
|
-
var react_1 = __webpack_require__(/*! react */ "react");
|
|
295
|
-
var react_is_1 = __webpack_require__(/*! react-is */ "../../node_modules/react-is/index.js");
|
|
296
|
-
function flattenChildren(children, depth, keys) {
|
|
297
|
-
if (depth === void 0) { depth = 0; }
|
|
298
|
-
if (keys === void 0) { keys = []; }
|
|
299
|
-
return react_1.Children.toArray(children).reduce(function (acc, node, nodeIndex) {
|
|
300
|
-
if (react_is_1.isFragment(node)) {
|
|
301
|
-
acc.push.apply(acc, flattenChildren(node.props.children, depth + 1, keys.concat(node.key || nodeIndex)));
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
if (react_1.isValidElement(node)) {
|
|
305
|
-
acc.push(react_1.cloneElement(node, {
|
|
306
|
-
key: keys.concat(String(node.key)).join('.')
|
|
307
|
-
}));
|
|
308
|
-
}
|
|
309
|
-
else if (typeof node === "string" || typeof node === "number") {
|
|
310
|
-
acc.push(node);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
return acc;
|
|
314
|
-
}, []);
|
|
315
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../node_modules/react-keyed-flatten-children/node_modules/react-is/cjs/react-is.development.js");
|
|
315
316
|
}
|
|
316
|
-
exports["default"] = flattenChildren;
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
/***/ }),
|
|
@@ -13149,7 +13149,7 @@ exports.OptionsPaginated = (0, react_2.forwardRef)(function (_a, ref) {
|
|
|
13149
13149
|
var OptionsComponentWithData = function (_a) {
|
|
13150
13150
|
var index = _a.index, data = _a.data;
|
|
13151
13151
|
var value = data.value, label = data.label, selected = data.selected;
|
|
13152
|
-
return ((0, react_1.createElement)(OptionComponent, __assign({}, (withTitle && { title: label }), { role: 'option', label: label, onMouseDown: function (e) {
|
|
13152
|
+
return ((0, react_1.createElement)(OptionComponent, __assign({}, (withTitle && { title: label }), { index: index, role: 'option', label: label, onMouseDown: function (e) {
|
|
13153
13153
|
(0, prevent_1.prevent)(e);
|
|
13154
13154
|
onSelect([value, label]);
|
|
13155
13155
|
return false;
|
|
@@ -17238,9 +17238,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
17238
17238
|
exports.SidebarItemTimestamp = void 0;
|
|
17239
17239
|
var jsx_runtime_1 = __webpack_require__(/*! react/jsx-runtime */ "../../node_modules/react/jsx-runtime.js");
|
|
17240
17240
|
var SidebarItemTimestamp = function (_a) {
|
|
17241
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
|
17241
|
+
var className = _a.className, unread = _a.unread, props = __rest(_a, ["className", "unread"]);
|
|
17242
17242
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: [
|
|
17243
17243
|
'rcx-box rcx-box--full rcx-sidebar-v2-item__timestamp',
|
|
17244
|
+
unread && 'rcx-sidebar-v2-item__timestamp--highlighted',
|
|
17244
17245
|
className,
|
|
17245
17246
|
]
|
|
17246
17247
|
.filter(Boolean)
|