hplx-feature-library 1.0.91 → 1.0.92

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.
@@ -60,12 +60,16 @@ const c2 = (o) => {
60
60
  // immutably add single doc
61
61
  })),
62
62
  updateDocument: (u) => o((E) => ({
63
- document: E.document.map(
64
- (P) => P.id === u.id ? { ...P, ...u } : P
65
- // immutably replace matched doc
66
- )
63
+ ...E,
64
+ document: [
65
+ ...E.document.map(
66
+ (P) => P.id === u.id ? { ...u } : P
67
+ // immutably replace matched doc
68
+ )
69
+ ]
67
70
  })),
68
71
  deleteDocument: (u) => o((E) => ({
72
+ ...E,
69
73
  document: E.document.filter((P) => P.id !== u)
70
74
  // immutably remove doc
71
75
  })),
@@ -168,8 +172,6 @@ const Ky = bu(w6), R6 = (o) => {
168
172
  };
169
173
  }, D6 = [
170
174
  { label: "Edit", icon: "hx_edit", action: "onEdit" },
171
- { label: "Preview", icon: "hx_preview", action: "onPreview" },
172
- // Assuming hx_preview icon exists
173
175
  { label: "Delete", icon: "hx_delete", action: "onDelete" }
174
176
  ];
175
177
  function N6({ dropdownRef: o, position: u, onEdit: E, onPreview: P, onDelete: R }) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.91",
4
+ "version": "1.0.92",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",