hplx-feature-library 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.
|
@@ -56,7 +56,7 @@ const c2 = (o) => {
|
|
|
56
56
|
document: [...u]
|
|
57
57
|
})),
|
|
58
58
|
addDocument: (u) => o((E) => ({
|
|
59
|
-
document: [...E.document
|
|
59
|
+
document: [u, ...E.document]
|
|
60
60
|
// immutably add single doc
|
|
61
61
|
})),
|
|
62
62
|
updateDocument: (u) => o((E) => ({
|
|
@@ -23504,7 +23504,7 @@ function yx(o) {
|
|
|
23504
23504
|
}, xt = async (gt) => {
|
|
23505
23505
|
try {
|
|
23506
23506
|
const ht = await p(gt);
|
|
23507
|
-
ht.
|
|
23507
|
+
ht.success && ht.data ? me(ht.data) : m?.("Failed to update document.");
|
|
23508
23508
|
} catch (ht) {
|
|
23509
23509
|
m?.("An unexpected error occurred while updating the document."), console.error(ht);
|
|
23510
23510
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hplx-feature-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.98",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "npm i hplx-react-elements-dev@qa && vite",
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
"@types/react-modal": "^3.16.3",
|
|
121
121
|
"@vitejs/plugin-react": "^4.5.2",
|
|
122
122
|
"autoprefixer": "^10.4.21",
|
|
123
|
+
"axios": "^1.11.0",
|
|
123
124
|
"eslint": "^9.29.0",
|
|
124
125
|
"eslint-config-prettier": "^10.1.5",
|
|
125
126
|
"eslint-plugin-import": "^2.32.0",
|