@strapi/content-releases 5.0.0-beta.5 → 5.0.0-beta.7

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.
Files changed (25) hide show
  1. package/dist/_chunks/{App-FVorrIzF.js → App-BdcItFff.js} +119 -126
  2. package/dist/_chunks/App-BdcItFff.js.map +1 -0
  3. package/dist/_chunks/{App-Cmn2Mkn7.mjs → App-CJdkbHnd.mjs} +110 -116
  4. package/dist/_chunks/App-CJdkbHnd.mjs.map +1 -0
  5. package/dist/_chunks/{PurchaseContentReleases-sD6ADHk2.js → PurchaseContentReleases-Be3acS2L.js} +7 -6
  6. package/dist/_chunks/PurchaseContentReleases-Be3acS2L.js.map +1 -0
  7. package/dist/_chunks/{PurchaseContentReleases-C8djn9fP.mjs → PurchaseContentReleases-_MxP6-Dt.mjs} +8 -7
  8. package/dist/_chunks/PurchaseContentReleases-_MxP6-Dt.mjs.map +1 -0
  9. package/dist/_chunks/{index-BfJLth9Z.js → index-B6Y2hJ10.js} +100 -108
  10. package/dist/_chunks/index-B6Y2hJ10.js.map +1 -0
  11. package/dist/_chunks/{index-DDohgTaQ.mjs → index-BvhZTh4j.mjs} +100 -106
  12. package/dist/_chunks/index-BvhZTh4j.mjs.map +1 -0
  13. package/dist/admin/index.js +1 -1
  14. package/dist/admin/index.mjs +2 -2
  15. package/dist/admin/src/components/ReleaseAction.d.ts +1 -1
  16. package/dist/admin/src/services/baseQuery.d.ts +26 -0
  17. package/dist/admin/src/services/release.d.ts +216 -81
  18. package/package.json +12 -13
  19. package/dist/_chunks/App-Cmn2Mkn7.mjs.map +0 -1
  20. package/dist/_chunks/App-FVorrIzF.js.map +0 -1
  21. package/dist/_chunks/PurchaseContentReleases-C8djn9fP.mjs.map +0 -1
  22. package/dist/_chunks/PurchaseContentReleases-sD6ADHk2.js.map +0 -1
  23. package/dist/_chunks/index-BfJLth9Z.js.map +0 -1
  24. package/dist/_chunks/index-DDohgTaQ.mjs.map +0 -1
  25. package/dist/admin/src/services/axios.d.ts +0 -29
@@ -1,16 +1,16 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { useNotification, useAPIErrorHandler, useQueryParams, useTracking, useRBAC, Page, Pagination, ConfirmDialog, BackButton, useStrapiApp, Table } from "@strapi/admin/strapi-admin";
2
+ import { useNotification, useAPIErrorHandler, useQueryParams, useTracking, useRBAC, Page, Layouts, Pagination, isFetchError, ConfirmDialog, BackButton, useStrapiApp, Table } from "@strapi/admin/strapi-admin";
3
3
  import { useLocation, useNavigate, useParams, Navigate, Link as Link$1, Routes, Route } from "react-router-dom";
4
- import { g as getTimezoneOffset, p as pluginId, u as useGetReleasesQuery, a as useCreateReleaseMutation, P as PERMISSIONS, i as isAxiosError, b as useGetReleaseQuery, c as useUpdateReleaseMutation, d as useDeleteReleaseMutation, e as usePublishReleaseMutation, f as useGetReleaseActionsQuery, h as useUpdateReleaseActionMutation, R as ReleaseActionOptions, j as ReleaseActionMenu, r as releaseApi } from "./index-DDohgTaQ.mjs";
4
+ import { g as getTimezoneOffset, p as pluginId, u as useGetReleasesQuery, a as useCreateReleaseMutation, P as PERMISSIONS, b as useGetReleaseQuery, c as useUpdateReleaseMutation, d as useDeleteReleaseMutation, e as usePublishReleaseMutation, f as useGetReleaseActionsQuery, h as useUpdateReleaseActionMutation, R as ReleaseActionOptions, i as ReleaseActionMenu, r as releaseApi } from "./index-BvhZTh4j.mjs";
5
5
  import * as React from "react";
6
- import { ModalLayout, ModalHeader, Typography, ModalBody, Flex, TextInput, Box, Checkbox, DatePicker, TimePicker, ModalFooter, Button, Combobox, ComboboxOption, Alert, Main, HeaderLayout, ContentLayout, TabGroup, Tabs, Tab, Divider, TabPanels, TabPanel, EmptyStateLayout, Grid, GridItem, Badge, IconButton, SingleSelect, SingleSelectOption, Tr, Td, Icon, Tooltip } from "@strapi/design-system";
7
- import { Link, Menu, LinkButton } from "@strapi/design-system/v2";
8
- import { Plus, EmptyDocuments, Pencil, Trash, More, CrossCircle, CheckCircle } from "@strapi/icons";
9
- import { unstable_useDocument } from "@strapi/plugin-content-manager/strapi-admin";
6
+ import { unstable_useDocument } from "@strapi/content-manager/strapi-admin";
7
+ import { ModalLayout, ModalHeader, Typography, ModalBody, Flex, Field, TextInput, Box, Checkbox, DatePicker, TimePicker, ModalFooter, Button, Combobox, ComboboxOption, Link, Alert, Main, TabGroup, Tabs, Tab, Divider, TabPanels, TabPanel, EmptyStateLayout, Grid, GridItem, Badge, Menu, IconButton, LinkButton, SingleSelect, SingleSelectOption, Tr, Td, Tooltip } from "@strapi/design-system";
8
+ import { Plus, Pencil, Trash, More, CrossCircle, CheckCircle } from "@strapi/icons";
9
+ import { EmptyDocuments } from "@strapi/icons/symbols";
10
10
  import format from "date-fns/format";
11
11
  import { utcToZonedTime, zonedTimeToUtc } from "date-fns-tz";
12
12
  import { useIntl } from "react-intl";
13
- import styled from "styled-components";
13
+ import { styled } from "styled-components";
14
14
  import { intervalToDuration, isPast, formatISO } from "date-fns";
15
15
  import { Formik, Form, useFormikContext } from "formik";
16
16
  import * as yup from "yup";
@@ -117,20 +117,14 @@ const ReleaseModal = ({
117
117
  validateOnChange: false,
118
118
  children: ({ values, errors, handleChange, setFieldValue }) => /* @__PURE__ */ jsxs(Form, { children: [
119
119
  /* @__PURE__ */ jsx(ModalBody, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 6, children: [
120
- /* @__PURE__ */ jsx(
121
- TextInput,
122
- {
123
- label: formatMessage({
124
- id: "content-releases.modal.form.input.label.release-name",
125
- defaultMessage: "Name"
126
- }),
127
- name: "name",
128
- value: values.name,
129
- error: errors.name,
130
- onChange: handleChange,
131
- required: true
132
- }
133
- ),
120
+ /* @__PURE__ */ jsxs(Field.Root, { name: "name", error: errors.name, required: true, children: [
121
+ /* @__PURE__ */ jsx(Field.Label, { children: formatMessage({
122
+ id: "content-releases.modal.form.input.label.release-name",
123
+ defaultMessage: "Name"
124
+ }) }),
125
+ /* @__PURE__ */ jsx(TextInput, { value: values.name, onChange: handleChange }),
126
+ /* @__PURE__ */ jsx(Field.Error, {})
127
+ ] }),
134
128
  /* @__PURE__ */ jsx(Box, { width: "max-content", children: /* @__PURE__ */ jsx(
135
129
  Checkbox,
136
130
  {
@@ -163,54 +157,54 @@ const ReleaseModal = ({
163
157
  ) }),
164
158
  values.isScheduled && /* @__PURE__ */ jsxs(Fragment, { children: [
165
159
  /* @__PURE__ */ jsxs(Flex, { gap: 4, alignItems: "start", children: [
166
- /* @__PURE__ */ jsx(Box, { width: "100%", children: /* @__PURE__ */ jsx(
167
- DatePicker,
168
- {
169
- label: formatMessage({
170
- id: "content-releases.modal.form.input.label.date",
171
- defaultMessage: "Date"
172
- }),
173
- name: "date",
174
- error: errors.date,
175
- onChange: (date) => {
176
- const isoFormatDate = date ? formatISO(date, { representation: "date" }) : null;
177
- setFieldValue("date", isoFormatDate);
178
- },
179
- clearLabel: formatMessage({
180
- id: "content-releases.modal.form.input.clearLabel",
181
- defaultMessage: "Clear"
182
- }),
183
- onClear: () => {
184
- setFieldValue("date", null);
185
- },
186
- selectedDate: values.date || void 0,
187
- required: true,
188
- minDate: utcToZonedTime(/* @__PURE__ */ new Date(), values.timezone.split("&")[1])
189
- }
190
- ) }),
191
- /* @__PURE__ */ jsx(Box, { width: "100%", children: /* @__PURE__ */ jsx(
192
- TimePicker,
193
- {
194
- label: formatMessage({
195
- id: "content-releases.modal.form.input.label.time",
196
- defaultMessage: "Time"
197
- }),
198
- name: "time",
199
- error: errors.time,
200
- onChange: (time) => {
201
- setFieldValue("time", time);
202
- },
203
- clearLabel: formatMessage({
204
- id: "content-releases.modal.form.input.clearLabel",
205
- defaultMessage: "Clear"
206
- }),
207
- onClear: () => {
208
- setFieldValue("time", "");
209
- },
210
- value: values.time || void 0,
211
- required: true
212
- }
213
- ) })
160
+ /* @__PURE__ */ jsx(Box, { width: "100%", children: /* @__PURE__ */ jsxs(Field.Root, { name: "date", error: errors.date, required: true, children: [
161
+ /* @__PURE__ */ jsx(Field.Label, { children: formatMessage({
162
+ id: "content-releases.modal.form.input.label.date",
163
+ defaultMessage: "Date"
164
+ }) }),
165
+ /* @__PURE__ */ jsx(
166
+ DatePicker,
167
+ {
168
+ onChange: (date) => {
169
+ const isoFormatDate = date ? formatISO(date, { representation: "date" }) : null;
170
+ setFieldValue("date", isoFormatDate);
171
+ },
172
+ clearLabel: formatMessage({
173
+ id: "content-releases.modal.form.input.clearLabel",
174
+ defaultMessage: "Clear"
175
+ }),
176
+ onClear: () => {
177
+ setFieldValue("date", null);
178
+ },
179
+ selectedDate: values.date || void 0,
180
+ minDate: utcToZonedTime(/* @__PURE__ */ new Date(), values.timezone.split("&")[1])
181
+ }
182
+ ),
183
+ /* @__PURE__ */ jsx(Field.Error, {})
184
+ ] }) }),
185
+ /* @__PURE__ */ jsx(Box, { width: "100%", children: /* @__PURE__ */ jsxs(Field.Root, { name: "time", error: errors.time, required: true, children: [
186
+ /* @__PURE__ */ jsx(Field.Label, { children: formatMessage({
187
+ id: "content-releases.modal.form.input.label.time",
188
+ defaultMessage: "Time"
189
+ }) }),
190
+ /* @__PURE__ */ jsx(
191
+ TimePicker,
192
+ {
193
+ onChange: (time) => {
194
+ setFieldValue("time", time);
195
+ },
196
+ clearLabel: formatMessage({
197
+ id: "content-releases.modal.form.input.clearLabel",
198
+ defaultMessage: "Clear"
199
+ }),
200
+ onClear: () => {
201
+ setFieldValue("time", "");
202
+ },
203
+ value: values.time || void 0
204
+ }
205
+ ),
206
+ /* @__PURE__ */ jsx(Field.Error, {})
207
+ ] }) })
214
208
  ] }),
215
209
  /* @__PURE__ */ jsx(TimezoneComponent, { timezoneOptions: timezoneList })
216
210
  ] })
@@ -257,31 +251,31 @@ const TimezoneComponent = ({ timezoneOptions }) => {
257
251
  }
258
252
  }
259
253
  }, [setFieldValue, values.date, values.timezone]);
260
- return /* @__PURE__ */ jsx(
261
- Combobox,
262
- {
263
- label: formatMessage({
264
- id: "content-releases.modal.form.input.label.timezone",
265
- defaultMessage: "Timezone"
266
- }),
267
- autocomplete: { type: "list", filter: "contains" },
268
- name: "timezone",
269
- value: values.timezone || void 0,
270
- textValue: values.timezone ? values.timezone.replace(/&/, " ") : void 0,
271
- onChange: (timezone) => {
272
- setFieldValue("timezone", timezone);
273
- },
274
- onTextValueChange: (timezone) => {
275
- setFieldValue("timezone", timezone);
276
- },
277
- onClear: () => {
278
- setFieldValue("timezone", "");
279
- },
280
- error: errors.timezone,
281
- required: true,
282
- children: timezoneList.map((timezone) => /* @__PURE__ */ jsx(ComboboxOption, { value: timezone.value, children: timezone.value.replace(/&/, " ") }, timezone.value))
283
- }
284
- );
254
+ return /* @__PURE__ */ jsxs(Field.Root, { name: "timezone", error: errors.timezone, required: true, children: [
255
+ /* @__PURE__ */ jsx(Field.Label, { children: formatMessage({
256
+ id: "content-releases.modal.form.input.label.timezone",
257
+ defaultMessage: "Timezone"
258
+ }) }),
259
+ /* @__PURE__ */ jsx(
260
+ Combobox,
261
+ {
262
+ autocomplete: { type: "list", filter: "contains" },
263
+ value: values.timezone || void 0,
264
+ textValue: values.timezone ? values.timezone.replace(/&/, " ") : void 0,
265
+ onChange: (timezone) => {
266
+ setFieldValue("timezone", timezone);
267
+ },
268
+ onTextValueChange: (timezone) => {
269
+ setFieldValue("timezone", timezone);
270
+ },
271
+ onClear: () => {
272
+ setFieldValue("timezone", "");
273
+ },
274
+ children: timezoneList.map((timezone) => /* @__PURE__ */ jsx(ComboboxOption, { value: timezone.value, children: timezone.value.replace(/&/, " ") }, timezone.value))
275
+ }
276
+ ),
277
+ /* @__PURE__ */ jsx(Field.Error, {})
278
+ ] });
285
279
  };
286
280
  const useTypedDispatch = useDispatch;
287
281
  const LinkCard = styled(Link)`
@@ -336,7 +330,7 @@ const ReleasesGrid = ({ sectionTitle, releases = [], isError = false }) => {
336
330
  target: sectionTitle
337
331
  }
338
332
  ),
339
- icon: /* @__PURE__ */ jsx(EmptyDocuments, { width: "10rem" })
333
+ icon: /* @__PURE__ */ jsx(EmptyDocuments, { width: "16rem" })
340
334
  }
341
335
  );
342
336
  }
@@ -355,7 +349,7 @@ const ReleasesGrid = ({ sectionTitle, releases = [], isError = false }) => {
355
349
  gap: 4,
356
350
  children: [
357
351
  /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "start", gap: 1, children: [
358
- /* @__PURE__ */ jsx(Typography, { as: "h3", variant: "delta", fontWeight: "bold", children: name }),
352
+ /* @__PURE__ */ jsx(Typography, { tag: "h3", variant: "delta", fontWeight: "bold", children: name }),
359
353
  /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: scheduledAt ? /* @__PURE__ */ jsx(RelativeTime, { timestamp: new Date(scheduledAt) }) : formatMessage({
360
354
  id: "content-releases.pages.Releases.not-scheduled",
361
355
  defaultMessage: "Not scheduled"
@@ -459,7 +453,7 @@ const ReleasesPage = () => {
459
453
  });
460
454
  trackUsage("didCreateRelease");
461
455
  navigate(response2.data.data.id.toString());
462
- } else if (isAxiosError(response2.error)) {
456
+ } else if (isFetchError(response2.error)) {
463
457
  toggleNotification({
464
458
  type: "danger",
465
459
  message: formatAPIError(response2.error)
@@ -473,7 +467,7 @@ const ReleasesPage = () => {
473
467
  };
474
468
  return /* @__PURE__ */ jsxs(Main, { "aria-busy": isLoading, children: [
475
469
  /* @__PURE__ */ jsx(
476
- HeaderLayout,
470
+ Layouts.Header,
477
471
  {
478
472
  title: formatMessage({
479
473
  id: "content-releases.pages.Releases.title",
@@ -497,7 +491,7 @@ const ReleasesPage = () => {
497
491
  ) : null
498
492
  }
499
493
  ),
500
- /* @__PURE__ */ jsx(ContentLayout, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
494
+ /* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
501
495
  hasReachedMaximumPendingReleases && /* @__PURE__ */ jsx(
502
496
  StyledAlert,
503
497
  {
@@ -611,7 +605,7 @@ const StyledMenuItem = styled(Menu.Item)`
611
605
  }
612
606
 
613
607
  &:hover {
614
- background: ${({ theme, variant = "neutral" }) => theme.colors[`${variant}100`]};
608
+ background: ${({ theme, $variant = "neutral" }) => theme.colors[`${$variant}100`]};
615
609
  }
616
610
  `;
617
611
  const PencilIcon = styled(Pencil)`
@@ -651,13 +645,13 @@ const EntryValidationText = ({ action, schema, entry }) => {
651
645
  )
652
646
  ).join(" ");
653
647
  return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
654
- /* @__PURE__ */ jsx(Icon, { color: "danger600", as: CrossCircle }),
648
+ /* @__PURE__ */ jsx(CrossCircle, { fill: "danger600" }),
655
649
  /* @__PURE__ */ jsx(Tooltip, { description: validationErrorsMessages, children: /* @__PURE__ */ jsx(TypographyMaxWidth, { textColor: "danger600", variant: "omega", fontWeight: "semiBold", ellipsis: true, children: validationErrorsMessages }) })
656
650
  ] });
657
651
  }
658
652
  if (action == "publish") {
659
653
  return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
660
- /* @__PURE__ */ jsx(Icon, { color: "success600", as: CheckCircle }),
654
+ /* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
661
655
  entry.publishedAt ? /* @__PURE__ */ jsx(Typography, { textColor: "success600", fontWeight: "bold", children: formatMessage({
662
656
  id: "content-releases.pages.ReleaseDetails.entry-validation.already-published",
663
657
  defaultMessage: "Already published"
@@ -668,7 +662,7 @@ const EntryValidationText = ({ action, schema, entry }) => {
668
662
  ] });
669
663
  }
670
664
  return /* @__PURE__ */ jsxs(Flex, { gap: 2, children: [
671
- /* @__PURE__ */ jsx(Icon, { color: "success600", as: CheckCircle }),
665
+ /* @__PURE__ */ jsx(CheckCircle, { fill: "success600" }),
672
666
  !entry.publishedAt ? /* @__PURE__ */ jsx(Typography, { textColor: "success600", fontWeight: "bold", children: formatMessage({
673
667
  id: "content-releases.pages.ReleaseDetails.entry-validation.already-unpublished",
674
668
  defaultMessage: "Already unpublished"
@@ -720,7 +714,7 @@ const ReleaseDetailsLayout = ({
720
714
  totalPublishedEntries,
721
715
  totalUnpublishedEntries
722
716
  });
723
- } else if (isAxiosError(response.error)) {
717
+ } else if (isFetchError(response.error)) {
724
718
  toggleNotification({
725
719
  type: "danger",
726
720
  message: formatAPIError(response.error)
@@ -802,7 +796,7 @@ const ReleaseDetailsLayout = ({
802
796
  ) : "";
803
797
  return /* @__PURE__ */ jsxs(Main, { "aria-busy": isLoadingDetails, children: [
804
798
  /* @__PURE__ */ jsx(
805
- HeaderLayout,
799
+ Layouts.Header,
806
800
  {
807
801
  title: release.name,
808
802
  subtitle: /* @__PURE__ */ jsxs(Flex, { gap: 2, lineHeight: 6, children: [
@@ -815,7 +809,7 @@ const ReleaseDetailsLayout = ({
815
809
  /* @__PURE__ */ jsx(
816
810
  Menu.Trigger,
817
811
  {
818
- as: IconButton,
812
+ tag: IconButton,
819
813
  paddingLeft: 2,
820
814
  paddingRight: 2,
821
815
  "aria-label": formatMessage({
@@ -826,7 +820,7 @@ const ReleaseDetailsLayout = ({
826
820
  variant: "tertiary"
827
821
  }
828
822
  ),
829
- /* @__PURE__ */ jsxs(Menu.Content, { top: 1, popoverPlacement: "bottom-end", children: [
823
+ /* @__PURE__ */ jsxs(Menu.Content, { top: 1, popoverPlacement: "bottom-end", maxHeight: void 0, children: [
830
824
  /* @__PURE__ */ jsxs(
831
825
  Flex,
832
826
  {
@@ -848,7 +842,7 @@ const ReleaseDetailsLayout = ({
848
842
  {
849
843
  disabled: !canDelete,
850
844
  onSelect: toggleWarningSubmit,
851
- variant: "danger",
845
+ $variant: "danger",
852
846
  children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: 2, hasRadius: true, width: "100%", children: [
853
847
  /* @__PURE__ */ jsx(TrashIcon, {}),
854
848
  /* @__PURE__ */ jsx(Typography, { ellipsis: true, textColor: "danger600", children: formatMessage({
@@ -989,7 +983,7 @@ const ReleaseDetailsBody = ({ releaseId }) => {
989
983
  // We are passing the action path to found the position in the cache of the action for optimistic updates
990
984
  });
991
985
  if ("error" in response) {
992
- if (isAxiosError(response.error)) {
986
+ if (isFetchError(response.error)) {
993
987
  toggleNotification({
994
988
  type: "danger",
995
989
  message: formatAPIError(response.error)
@@ -1035,13 +1029,13 @@ const ReleaseDetailsBody = ({ releaseId }) => {
1035
1029
  return /* @__PURE__ */ jsx(Page.Error, {});
1036
1030
  }
1037
1031
  if (Object.keys(releaseActions).length === 0) {
1038
- return /* @__PURE__ */ jsx(ContentLayout, { children: /* @__PURE__ */ jsx(
1032
+ return /* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsx(
1039
1033
  EmptyStateLayout,
1040
1034
  {
1041
1035
  action: /* @__PURE__ */ jsx(
1042
1036
  LinkButton,
1043
1037
  {
1044
- as: Link$1,
1038
+ tag: Link$1,
1045
1039
  to: {
1046
1040
  pathname: "/content-manager"
1047
1041
  },
@@ -1053,7 +1047,7 @@ const ReleaseDetailsBody = ({ releaseId }) => {
1053
1047
  })
1054
1048
  }
1055
1049
  ),
1056
- icon: /* @__PURE__ */ jsx(EmptyDocuments, { width: "10rem" }),
1050
+ icon: /* @__PURE__ */ jsx(EmptyDocuments, { width: "16rem" }),
1057
1051
  content: formatMessage({
1058
1052
  id: "content-releases.pages.Details.tab.emptyEntries",
1059
1053
  defaultMessage: "This release is empty. Open the Content Manager, select an entry and add it to the release."
@@ -1099,7 +1093,7 @@ const ReleaseDetailsBody = ({ releaseId }) => {
1099
1093
  ] : []
1100
1094
  ];
1101
1095
  const options = hasI18nEnabled ? GROUP_BY_OPTIONS : GROUP_BY_OPTIONS_NO_LOCALE;
1102
- return /* @__PURE__ */ jsx(ContentLayout, { children: /* @__PURE__ */ jsxs(Flex, { gap: 8, direction: "column", alignItems: "stretch", children: [
1096
+ return /* @__PURE__ */ jsx(Layouts.Content, { children: /* @__PURE__ */ jsxs(Flex, { gap: 8, direction: "column", alignItems: "stretch", children: [
1103
1097
  /* @__PURE__ */ jsx(Flex, { children: /* @__PURE__ */ jsx(
1104
1098
  SingleSelect,
1105
1099
  {
@@ -1262,7 +1256,7 @@ const ReleaseDetailsPage = () => {
1262
1256
  })
1263
1257
  });
1264
1258
  toggleEditReleaseModal();
1265
- } else if (isAxiosError(response.error)) {
1259
+ } else if (isFetchError(response.error)) {
1266
1260
  toggleNotification({
1267
1261
  type: "danger",
1268
1262
  message: formatAPIError(response.error)
@@ -1280,7 +1274,7 @@ const ReleaseDetailsPage = () => {
1280
1274
  });
1281
1275
  if ("data" in response) {
1282
1276
  navigate("..");
1283
- } else if (isAxiosError(response.error)) {
1277
+ } else if (isFetchError(response.error)) {
1284
1278
  toggleNotification({
1285
1279
  type: "danger",
1286
1280
  message: formatAPIError(response.error)
@@ -1340,4 +1334,4 @@ const App = () => {
1340
1334
  export {
1341
1335
  App
1342
1336
  };
1343
- //# sourceMappingURL=App-Cmn2Mkn7.mjs.map
1337
+ //# sourceMappingURL=App-CJdkbHnd.mjs.map