@etsoo/materialui 1.0.96 → 1.0.98

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/lib/DnDList.d.ts CHANGED
@@ -39,6 +39,10 @@ export interface DnDListRef<D extends object> {
39
39
  * @param index Index
40
40
  */
41
41
  editItem(newItem: D, index: number): boolean;
42
+ /**
43
+ * Get all items
44
+ */
45
+ getItems(): D[];
42
46
  }
43
47
  /**
44
48
  * DnD sortable list properties
package/lib/DnDList.js CHANGED
@@ -139,6 +139,9 @@ export function DnDList(props) {
139
139
  newItems.splice(index, 1);
140
140
  // Update the state
141
141
  changeItems(newItems);
142
+ },
143
+ getItems() {
144
+ return items;
142
145
  }
143
146
  };
144
147
  }, [items]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -51,15 +51,15 @@
51
51
  "@emotion/css": "^11.10.5",
52
52
  "@emotion/react": "^11.10.5",
53
53
  "@emotion/styled": "^11.10.5",
54
- "@etsoo/appscript": "^1.3.43",
54
+ "@etsoo/appscript": "^1.3.44",
55
55
  "@etsoo/notificationbase": "^1.1.18",
56
- "@etsoo/react": "^1.6.33",
57
- "@etsoo/shared": "^1.1.78",
56
+ "@etsoo/react": "^1.6.35",
57
+ "@etsoo/shared": "^1.1.79",
58
58
  "@mui/icons-material": "^5.10.16",
59
59
  "@mui/material": "^5.10.16",
60
60
  "@types/pica": "^9.0.1",
61
61
  "@types/pulltorefreshjs": "^0.1.5",
62
- "@types/react": "^18.0.25",
62
+ "@types/react": "^18.0.26",
63
63
  "@types/react-avatar-editor": "^13.0.0",
64
64
  "@types/react-dom": "^18.0.9",
65
65
  "@types/react-input-mask": "^3.0.2",
@@ -71,7 +71,7 @@
71
71
  "react-dom": "^18.2.0",
72
72
  "react-draggable": "^4.4.5",
73
73
  "react-imask": "^6.4.3",
74
- "react-router-dom": "^6.4.3",
74
+ "react-router-dom": "^6.4.4",
75
75
  "react-window": "^1.8.8"
76
76
  },
77
77
  "devDependencies": {
@@ -85,7 +85,7 @@
85
85
  "@types/jest": "^29.2.3",
86
86
  "@typescript-eslint/eslint-plugin": "^5.45.0",
87
87
  "@typescript-eslint/parser": "^5.45.0",
88
- "eslint": "^8.28.0",
88
+ "eslint": "^8.29.0",
89
89
  "eslint-config-airbnb-base": "^15.0.0",
90
90
  "eslint-plugin-import": "^2.26.0",
91
91
  "eslint-plugin-react": "^7.31.11",
package/src/DnDList.tsx CHANGED
@@ -104,6 +104,11 @@ export interface DnDListRef<D extends object> {
104
104
  * @param index Index
105
105
  */
106
106
  editItem(newItem: D, index: number): boolean;
107
+
108
+ /**
109
+ * Get all items
110
+ */
111
+ getItems(): D[];
107
112
  }
108
113
 
109
114
  /**
@@ -304,6 +309,10 @@ export function DnDList<
304
309
 
305
310
  // Update the state
306
311
  changeItems(newItems);
312
+ },
313
+
314
+ getItems() {
315
+ return items;
307
316
  }
308
317
  };
309
318
  },