@overmap-ai/core 1.0.44-tiptap.6 → 1.0.44-tiptap.8
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.
|
@@ -4109,6 +4109,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4109
4109
|
...fileProps
|
|
4110
4110
|
}
|
|
4111
4111
|
});
|
|
4112
|
+
promise.catch((error2) => {
|
|
4113
|
+
this.client.store.dispatch(removeIssueAttachment(offlineAttachment.offline_id));
|
|
4114
|
+
throw error2;
|
|
4115
|
+
});
|
|
4112
4116
|
return [offlineAttachment, promise];
|
|
4113
4117
|
}
|
|
4114
4118
|
async addComponentAttachment(attachmentPayload) {
|
|
@@ -4139,6 +4143,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4139
4143
|
...fileProps
|
|
4140
4144
|
}
|
|
4141
4145
|
});
|
|
4146
|
+
promise.catch((error2) => {
|
|
4147
|
+
this.client.store.dispatch(removeComponentAttachment(offlineAttachment.offline_id));
|
|
4148
|
+
throw error2;
|
|
4149
|
+
});
|
|
4142
4150
|
return [offlineAttachment, promise];
|
|
4143
4151
|
}
|
|
4144
4152
|
async addComponentTypeAttachment(attachmentPayload) {
|
|
@@ -4158,7 +4166,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4158
4166
|
const promise = this.enqueueRequest({
|
|
4159
4167
|
description: "Create attachment",
|
|
4160
4168
|
method: HttpMethod.POST,
|
|
4161
|
-
url: `/
|
|
4169
|
+
url: `/components/types/${component_type_id}/attach/`,
|
|
4162
4170
|
blocks: [offline_id, component_type_id],
|
|
4163
4171
|
blockers: [file_sha1],
|
|
4164
4172
|
payload: {
|
|
@@ -4169,6 +4177,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4169
4177
|
...fileProps
|
|
4170
4178
|
}
|
|
4171
4179
|
});
|
|
4180
|
+
promise.catch((error2) => {
|
|
4181
|
+
this.client.store.dispatch(removeComponentTypeAttachment(offlineAttachment.offline_id));
|
|
4182
|
+
throw error2;
|
|
4183
|
+
});
|
|
4172
4184
|
return [offlineAttachment, promise];
|
|
4173
4185
|
}
|
|
4174
4186
|
/** the outer Promise is needed to await the hashing of each file, which is required before offline use. If wanting to
|
|
@@ -12538,7 +12550,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12538
12550
|
gap: "0",
|
|
12539
12551
|
...rest,
|
|
12540
12552
|
children: [
|
|
12541
|
-
!file && /* @__PURE__ */ jsxRuntime.jsx(Flex, { width: "100%", height: "100%", align: "center", justify: "center", position: "absolute", children: /* @__PURE__ */ jsxRuntime.jsx(blocks.Spinner, {}) }),
|
|
12553
|
+
!file && !error2 && /* @__PURE__ */ jsxRuntime.jsx(Flex, { width: "100%", height: "100%", align: "center", justify: "center", position: "absolute", children: /* @__PURE__ */ jsxRuntime.jsx(blocks.Spinner, {}) }),
|
|
12542
12554
|
/* @__PURE__ */ jsxRuntime.jsx(Inset, { className: styles$4.ImageInset, ref: imageInsetRef, clip: "padding-box", side: "y", pb: "0", children: file && !error2 && /* @__PURE__ */ jsxRuntime.jsx("img", { className: styles$4.Image, src: URL.createObjectURL(file), alt: alt ?? file.name }) }),
|
|
12543
12555
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12544
12556
|
blocks.OvermapItem,
|