@ai-matrx/associations 0.9.29 → 0.9.31
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/CHANGELOG.md +12 -0
- package/dist/{CommentThread-DC_0ddWH.d.cts → CommentThread-DBN0DnHt.d.cts} +1 -1
- package/dist/{CommentThread-DC_0ddWH.d.ts → CommentThread-DBN0DnHt.d.ts} +1 -1
- package/dist/core/index.cjs +3 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +3 -1
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +16 -3
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +16 -3
- package/dist/react/index.js.map +1 -1
- package/dist/react/lazy/index.d.cts +1 -1
- package/dist/react/lazy/index.d.ts +1 -1
- package/package.json +5 -5
package/dist/react/index.cjs
CHANGED
|
@@ -774,6 +774,7 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
774
774
|
"part_config_sub",
|
|
775
775
|
"party",
|
|
776
776
|
"party_contact_point",
|
|
777
|
+
"passkey_credential",
|
|
777
778
|
"pc_article",
|
|
778
779
|
"pc_episode",
|
|
779
780
|
"pc_show",
|
|
@@ -3786,9 +3787,21 @@ function AssociationCaptureToolbar({
|
|
|
3786
3787
|
}
|
|
3787
3788
|
if (result.failed.length > 0) {
|
|
3788
3789
|
const first = result.failed[0];
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3790
|
+
if (result.failed.length === 1 && first) {
|
|
3791
|
+
notifier.error(`Failed to upload ${first.name}: ${first.error}`);
|
|
3792
|
+
} else {
|
|
3793
|
+
const reasonCounts = /* @__PURE__ */ new Map();
|
|
3794
|
+
for (const f of result.failed) {
|
|
3795
|
+
const reason = f.error && f.error.trim().length > 0 ? f.error : "Upload failed";
|
|
3796
|
+
reasonCounts.set(reason, (reasonCounts.get(reason) ?? 0) + 1);
|
|
3797
|
+
}
|
|
3798
|
+
const lines = Array.from(reasonCounts.entries()).map(
|
|
3799
|
+
([reason, count]) => `${count}\xD7 ${reason}`
|
|
3800
|
+
);
|
|
3801
|
+
notifier.error(`Failed to upload ${result.failed.length} files`, {
|
|
3802
|
+
description: lines.join("\n")
|
|
3803
|
+
});
|
|
3804
|
+
}
|
|
3792
3805
|
}
|
|
3793
3806
|
if (ids.length === 0 && result.failed.length === 0) {
|
|
3794
3807
|
notifier.error("Nothing was uploaded or attached");
|