@overmap-ai/core 1.0.44-tiptap.2 → 1.0.44-tiptap.4

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.
@@ -4424,7 +4424,7 @@ class AttachmentService extends BaseApiService {
4424
4424
  if (!attachment) {
4425
4425
  throw new Error(`Attachment ${componentAttachmentId} not found`);
4426
4426
  }
4427
- store.dispatch(removeIssueAttachment(componentAttachmentId));
4427
+ store.dispatch(removeComponentAttachment(componentAttachmentId));
4428
4428
  void this.client.files.removeCache(attachment.file_sha1);
4429
4429
  return this.enqueueRequest({
4430
4430
  description: "Delete attachment",
@@ -4440,7 +4440,7 @@ class AttachmentService extends BaseApiService {
4440
4440
  if (!attachment) {
4441
4441
  throw new Error(`Attachment ${componentTypeAttachmentId} not found`);
4442
4442
  }
4443
- store.dispatch(removeIssueAttachment(componentTypeAttachmentId));
4443
+ store.dispatch(removeComponentTypeAttachment(componentTypeAttachmentId));
4444
4444
  void this.client.files.removeCache(attachment.file_sha1);
4445
4445
  return this.enqueueRequest({
4446
4446
  description: "Delete attachment",
@@ -6533,7 +6533,7 @@ class FileService extends BaseApiService {
6533
6533
  isAuthNeeded: false,
6534
6534
  blockers: [expectedSha1],
6535
6535
  blocks: [expectedSha1]
6536
- });
6536
+ }).then((blob) => new File([blob], downloadedName ?? expectedSha1, { type: blob.type }));
6537
6537
  cachedRequestPromises[requestCacheKey] = promise;
6538
6538
  } else {
6539
6539
  isFirstRequest = false;