@ix_waterford/lib 1.0.4 → 1.0.5

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/README.md CHANGED
@@ -18,15 +18,15 @@ npm run build
18
18
  # Run ESLint for code quality checks (shows errors only)
19
19
  npm run lint
20
20
 
21
- # Fix ESLint issues manually (optional)
21
+ ### Fix ESLint issues manually (optional)
22
22
  npm run lint:fix
23
23
 
24
- # Run TypeScript type checking
24
+ ### Run TypeScript type checking
25
25
  npm run type-check
26
26
 
27
- # Check changes with local bundling
27
+ ### Check changes with local bundling
28
28
  npm pack
29
29
 
30
- # Publish the repo to npm
30
+ ### Publish the repo to npm
31
31
  npm publish
32
32
 
package/dist/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html><head><title>Rsbuild App</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.js"></script><script defer src="/static/js/vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-8ea93d.js"></script><script defer src="/static/js/index.js"></script><link href="/static/css/index.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1
+ <!doctype html><html><head><title>Rsbuild App</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><script defer src="/static/js/lib-react.js"></script><script defer src="/static/js/vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-897cfa.js"></script><script defer src="/static/js/index.js"></script><link href="/static/css/index.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -8,7 +8,7 @@ __webpack_require__.r(__webpack_exports__);
8
8
  if(true) {
9
9
  (function() {
10
10
  var localsJsonString = undefined;
11
- // 1763531454524
11
+ // 1763532477580
12
12
  var cssReload = (__webpack_require__("./node_modules/@rspack/core/dist/cssExtractHmr.js")/* .cssReload */.cssReload)(module.id, {});
13
13
  // only invalidate when locals change
14
14
  if (
@@ -1157,6 +1157,106 @@ function $RefreshReg$(type, id) { $ReactRefreshRuntime$.register(type, module.id
1157
1157
  Promise.resolve().then(() => { $ReactRefreshRuntime$.refresh(module.id, module.hot) });
1158
1158
 
1159
1159
 
1160
+ }),
1161
+ "./src/components/errorBoundary/errorBoundary.tsx": (function (module, __webpack_exports__, __webpack_require__) {
1162
+ __webpack_require__.r(__webpack_exports__);
1163
+ __webpack_require__.d(__webpack_exports__, {
1164
+ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1165
+ });
1166
+ /* import */var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./node_modules/@swc/helpers/esm/_define_property.js");
1167
+ /* import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/jsx-dev-runtime.js");
1168
+ /* import */var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/react/index.js");
1169
+ /* import */var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1170
+ /* import */var _mui_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./node_modules/@mui/material/esm/Paper/Paper.js");
1171
+ /* import */var _mui_material__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./node_modules/@mui/material/esm/Box/Box.js");
1172
+ /* import */var _mui_material__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("./node_modules/@mui/material/esm/Typography/Typography.js");
1173
+ /* import */var _mui_material__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./node_modules/@mui/material/esm/Button/Button.js");
1174
+ /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
1175
+
1176
+
1177
+
1178
+
1179
+ class ErrorBoundary extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
1180
+ static getDerivedStateFromError(error) {
1181
+ return {
1182
+ hasError: true,
1183
+ error
1184
+ };
1185
+ }
1186
+ componentDidCatch(_error, _errorInfo) {
1187
+ // Error logged for debugging
1188
+ }
1189
+ render() {
1190
+ if (this.state.hasError) {
1191
+ var _this_state_error;
1192
+ if (this.props.fallback) {
1193
+ return this.props.fallback;
1194
+ }
1195
+ return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_mui_material__WEBPACK_IMPORTED_MODULE_2__["default"], {
1196
+ elevation: 3,
1197
+ children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_mui_material__WEBPACK_IMPORTED_MODULE_3__["default"], {
1198
+ children: [
1199
+ /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_mui_material__WEBPACK_IMPORTED_MODULE_4__["default"], {
1200
+ variant: "h6",
1201
+ color: "error",
1202
+ children: "Something went wrong"
1203
+ }, void 0, false, {
1204
+ fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/errorBoundary/errorBoundary.tsx",
1205
+ lineNumber: 42,
1206
+ columnNumber: 25
1207
+ }, this),
1208
+ /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_mui_material__WEBPACK_IMPORTED_MODULE_4__["default"], {
1209
+ variant: "body2",
1210
+ color: "text.secondary",
1211
+ children: ((_this_state_error = this.state.error) === null || _this_state_error === void 0 ? void 0 : _this_state_error.message) || 'An unknown error occurred'
1212
+ }, void 0, false, {
1213
+ fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/errorBoundary/errorBoundary.tsx",
1214
+ lineNumber: 45,
1215
+ columnNumber: 25
1216
+ }, this),
1217
+ /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_mui_material__WEBPACK_IMPORTED_MODULE_5__["default"], {
1218
+ variant: "outlined",
1219
+ onClick: this.handleReset,
1220
+ children: "Try again"
1221
+ }, void 0, false, {
1222
+ fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/errorBoundary/errorBoundary.tsx",
1223
+ lineNumber: 48,
1224
+ columnNumber: 25
1225
+ }, this)
1226
+ ]
1227
+ }, void 0, true, {
1228
+ fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/errorBoundary/errorBoundary.tsx",
1229
+ lineNumber: 41,
1230
+ columnNumber: 21
1231
+ }, this)
1232
+ }, void 0, false, {
1233
+ fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/errorBoundary/errorBoundary.tsx",
1234
+ lineNumber: 40,
1235
+ columnNumber: 17
1236
+ }, this);
1237
+ }
1238
+ return this.props.children;
1239
+ }
1240
+ constructor(props){
1241
+ super(props), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_6__._)(this, "handleReset", ()=>{
1242
+ this.setState({
1243
+ hasError: false,
1244
+ error: null
1245
+ });
1246
+ });
1247
+ this.state = {
1248
+ hasError: false,
1249
+ error: null
1250
+ };
1251
+ }
1252
+ }
1253
+ /* export default */ const __WEBPACK_DEFAULT_EXPORT__ = (ErrorBoundary);
1254
+
1255
+ function $RefreshSig$() { return $ReactRefreshRuntime$.createSignatureFunctionForTransform() }
1256
+ function $RefreshReg$(type, id) { $ReactRefreshRuntime$.register(type, module.id + "_" + id) }
1257
+ Promise.resolve().then(() => { $ReactRefreshRuntime$.refresh(module.id, module.hot) });
1258
+
1259
+
1160
1260
  }),
1161
1261
  "./src/components/iconButton/iconButton.tsx": (function (module, __webpack_exports__, __webpack_require__) {
1162
1262
  __webpack_require__.r(__webpack_exports__);
@@ -4588,26 +4688,27 @@ __webpack_require__.d(__webpack_exports__, {
4588
4688
  Checkbox: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_18__["default"]),
4589
4689
  Chip: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_24__["default"]),
4590
4690
  CircularLoader: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_16__["default"]),
4591
- CloseIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_43__.CloseIcon),
4691
+ CloseIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_44__.CloseIcon),
4592
4692
  ColorPicker: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_3__["default"]),
4593
4693
  DatePicker: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_11__["default"]),
4594
4694
  Dialog: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_13__["default"]),
4595
- DoubleArrow: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_44__.DoubleArrow),
4695
+ DoubleArrow: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_45__.DoubleArrow),
4596
4696
  Drawer: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_4__["default"]),
4597
- EditIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_41__.EditIcon),
4598
- ExpandMoreIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_45__.ExpandMoreIcon),
4697
+ EditIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_42__.EditIcon),
4698
+ ErrorBoundary: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_37__["default"]),
4699
+ ExpandMoreIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_46__.ExpandMoreIcon),
4599
4700
  IconButton: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_12__["default"]),
4600
4701
  LinearLoader: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_15__["default"]),
4601
4702
  Link: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_7__["default"]),
4602
4703
  MediaPlayer: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_17__["default"]),
4603
4704
  Menu: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_23__["default"]),
4604
4705
  Modal: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_6__["default"]),
4605
- MoreIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_46__.MoreIcon),
4706
+ MoreIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_47__.MoreIcon),
4606
4707
  MultiSelect: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_26__["default"]),
4607
4708
  Popover: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_9__["default"]),
4608
4709
  Radio: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_19__["default"]),
4609
4710
  SearchBar: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_27__["default"]),
4610
- SearchIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_42__.SearchIcon),
4711
+ SearchIcon: () => (/* reexport safe */ _assets__WEBPACK_IMPORTED_MODULE_43__.SearchIcon),
4611
4712
  Select: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_25__["default"]),
4612
4713
  Slider: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_21__["default"]),
4613
4714
  SnackBar: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_5__["default"]),
@@ -4622,13 +4723,13 @@ __webpack_require__.d(__webpack_exports__, {
4622
4723
  Timeline: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_14__["default"]),
4623
4724
  Tooltip: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_8__["default"]),
4624
4725
  Typography: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_28__["default"]),
4625
- formatDate: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_38__.formatDate),
4626
- isEmpty: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_40__.isEmpty),
4627
- isEmptyArray: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_40__.isEmptyArray),
4628
- isEmptyObject: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_40__.isEmptyObject),
4629
- isEmptyString: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_40__.isEmptyString),
4630
- isValidEmail: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_39__.isValidEmail),
4631
- useDebounce: () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_37__.useDebounce)
4726
+ formatDate: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_39__.formatDate),
4727
+ isEmpty: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_41__.isEmpty),
4728
+ isEmptyArray: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_41__.isEmptyArray),
4729
+ isEmptyObject: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_41__.isEmptyObject),
4730
+ isEmptyString: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_41__.isEmptyString),
4731
+ isValidEmail: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_40__.isValidEmail),
4732
+ useDebounce: () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_38__.useDebounce)
4632
4733
  });
4633
4734
  /* import */var _components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./src/components/button/button.tsx");
4634
4735
  /* import */var _components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/components/badge/badge.tsx");
@@ -4667,16 +4768,17 @@ __webpack_require__.d(__webpack_exports__, {
4667
4768
  /* import */var _components__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__("./src/components/avatar/avatarGroup.tsx");
4668
4769
  /* import */var _components__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__("./src/components/theme/ThemeProvider.tsx");
4669
4770
  /* import */var _components__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__("./src/components/textEditor/textEditor.tsx");
4670
- /* import */var _hooks__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("./src/hooks/debounce.ts");
4671
- /* import */var _utils__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__("./src/utils/date.ts");
4672
- /* import */var _utils__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__("./src/utils/email.ts");
4673
- /* import */var _utils__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("./src/utils/global.ts");
4674
- /* import */var _assets__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__("./src/assets/editIcon.tsx");
4675
- /* import */var _assets__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__("./src/assets/searchIcon.tsx");
4676
- /* import */var _assets__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__("./src/assets/svg/closeIcon.tsx");
4677
- /* import */var _assets__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__("./src/assets/svg/doubleArrow.tsx");
4678
- /* import */var _assets__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__("./src/assets/svg/expandMoreIcon.tsx");
4679
- /* import */var _assets__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__("./src/assets/svg/moreIcon.tsx");
4771
+ /* import */var _components__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("./src/components/errorBoundary/errorBoundary.tsx");
4772
+ /* import */var _hooks__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__("./src/hooks/debounce.ts");
4773
+ /* import */var _utils__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__("./src/utils/date.ts");
4774
+ /* import */var _utils__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("./src/utils/email.ts");
4775
+ /* import */var _utils__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__("./src/utils/global.ts");
4776
+ /* import */var _assets__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__("./src/assets/editIcon.tsx");
4777
+ /* import */var _assets__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__("./src/assets/searchIcon.tsx");
4778
+ /* import */var _assets__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__("./src/assets/svg/closeIcon.tsx");
4779
+ /* import */var _assets__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__("./src/assets/svg/doubleArrow.tsx");
4780
+ /* import */var _assets__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__("./src/assets/svg/expandMoreIcon.tsx");
4781
+ /* import */var _assets__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__("./src/assets/svg/moreIcon.tsx");
4680
4782
  /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
4681
4783
  // Components
4682
4784
 
@@ -5030,7 +5132,7 @@ __webpack_require__.hu = (chunkId) => ('' + chunkId + '.' + __webpack_require__.
5030
5132
  })();
5031
5133
  // webpack/runtime/get_full_hash
5032
5134
  (() => {
5033
- __webpack_require__.h = () => ("41f43f6ef36d0ff8")
5135
+ __webpack_require__.h = () => ("76e247e3ee353c50")
5034
5136
  })();
5035
5137
  // webpack/runtime/get_main_filename/update manifest
5036
5138
  (() => {
@@ -6252,8 +6354,8 @@ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.pus
6252
6354
  // module cache are used so entry inlining is disabled
6253
6355
  // startup
6254
6356
  // Load entry module and return exports
6255
- __webpack_require__.O(undefined, ["lib-react", "vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-8ea93d"], () => __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefreshEntry.js"));
6256
- var __webpack_exports__ = __webpack_require__.O(undefined, ["lib-react", "vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-8ea93d"], () => __webpack_require__("./src/index.ts"));
6357
+ __webpack_require__.O(undefined, ["lib-react", "vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-897cfa"], () => __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefreshEntry.js"));
6358
+ var __webpack_exports__ = __webpack_require__.O(undefined, ["lib-react", "vendors-node_modules_rspack_core_dist_cssExtractHmr_js-node_modules_dayjs_plugin_utc_js-node_-897cfa"], () => __webpack_require__("./src/index.ts"));
6257
6359
  __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
6258
6360
  })()
6259
6361
  ;