@rocket.chat/fuselage 0.66.0 → 0.66.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"OptionsPaginated.d.ts","sourceRoot":"","sources":["../../../src/components/OptionsPaginated/OptionsPaginated.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,EAAkB,MAAM,OAAO,CAAC;AAM9E,OAAO,GAAG,MAAM,QAAQ,CAAC;AAKzB,KAAK,qBAAqB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,KAAK,oFAAuC,CAAC;AAI1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;EAUtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,wHA+D5B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,qFAA6C,gFAMvE,CAAC"}
1
+ {"version":3,"file":"OptionsPaginated.d.ts","sourceRoot":"","sources":["../../../src/components/OptionsPaginated/OptionsPaginated.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,EAAkB,MAAM,OAAO,CAAC;AAM9E,OAAO,GAAG,MAAM,QAAQ,CAAC;AAKzB,KAAK,qBAAqB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,KAAK,oFAAuC,CAAC;AAI1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;EAUtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,wHAgE5B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,qFAA6C,gFAMvE,CAAC"}
@@ -75,10 +75,46 @@ module.exports = invariant;
75
75
 
76
76
  /***/ }),
77
77
 
78
- /***/ "../../node_modules/react-is/cjs/react-is.development.js":
79
- /*!***************************************************************!*\
80
- !*** ../../node_modules/react-is/cjs/react-is.development.js ***!
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,56 +302,20 @@ 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");
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");
280
316
  }
281
317
 
282
318
 
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
- }
316
- exports["default"] = flattenChildren;
317
-
318
-
319
319
  /***/ }),
320
320
 
321
321
  /***/ "../../node_modules/react/cjs/react-jsx-runtime.development.js":
@@ -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;