@edifice.io/collect-frontend 1.0.12-develop.2.20261109205942 → 1.0.12-develop.2.20261110081123

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 (115) hide show
  1. package/lib/{AppHeaderCollection-BPHwd0pS.js → AppHeaderCollection-Bvug8wqR.js} +3 -5
  2. package/lib/{CXEL7IU7-bSp8E8Ma.js → CXEL7IU7-KQqTZW3I.js} +2 -2
  3. package/lib/{Collection-C6ys5-Bv.js → Collection-CMoQA79H.js} +5 -5
  4. package/lib/{CollectionsLayout-B66EiXm4.js → CollectionsLayout-wmt1jR8l.js} +1 -1
  5. package/lib/{CollectionsList-BRBbyb-s.js → CollectionsList-Avkiw1Aj.js} +3 -3
  6. package/lib/{DeleteCollectionModal-Cw-IZLvp.js → DeleteCollectionModal-CE4XaECV.js} +2 -2
  7. package/lib/{DropdownActionTable-BoodZZI9.js → DropdownActionTable-CcA3rys3.js} +1 -1
  8. package/lib/{FormEdit-Di-Y4r45.js → FormEdit-BK8fEwW4.js} +2 -2
  9. package/lib/{HASRA6WW-CE5UWlEo.js → HASRA6WW-BbBPIcpK.js} +1 -1
  10. package/lib/{I3HPI4QX-DcsxmYEr.js → I3HPI4QX-C5m1qr_y.js} +2 -2
  11. package/lib/{MembersEdit-WFk8DkwB.js → MembersEdit-79qps5R2.js} +2 -2
  12. package/lib/{MineSubmission-DfAVKzBY.js → MineSubmission-m_qn8e0j.js} +1 -1
  13. package/lib/{Root-B_xgOphI.js → Root-DzV0pyeC.js} +1 -1
  14. package/lib/{Submission-pY2ZvgER.js → Submission-BnaHLVUo.js} +4 -4
  15. package/lib/{SubmissionList-ZKL__RHu.js → SubmissionList-DI5paav0.js} +1 -1
  16. package/lib/{src/components → components}/AppHeaderCollection.d.ts +1 -1
  17. package/lib/{src/features → features}/collect-form/components/CollectForm.d.ts +1 -1
  18. package/lib/{src/features → features}/collect-form/components/index.d.ts +1 -1
  19. package/lib/{src/features → features}/collect-form/hooks/useCreateCollectionForm.d.ts +1 -1
  20. package/lib/{src/features → features}/creation-wizard/components/FormCreate.d.ts +1 -1
  21. package/lib/{src/features → features}/creation-wizard/components/Members.d.ts +1 -1
  22. package/lib/{src/features → features}/creation-wizard/components/WizardContext.d.ts +1 -1
  23. package/lib/{src/features → features}/menu/store/menuStore.d.ts +1 -1
  24. package/lib/{src/hooks → hooks}/useSearch.d.ts +1 -1
  25. package/lib/{src/hooks → hooks}/useWizard.d.ts +1 -1
  26. package/lib/{index-D-6KhgeS.js → index-CIhvqYOt.js} +12 -12
  27. package/lib/index.d.ts +14 -1
  28. package/lib/index.js +1 -1
  29. package/lib/routes/index.d.ts +13 -0
  30. package/lib/{src/store → store}/createSelectors.d.ts +1 -2
  31. package/lib/store/submissionActionStore.d.ts +26 -0
  32. package/lib/{submission.queries-Dt5NuCXz.js → submission.queries-D13BY7hC.js} +1 -1
  33. package/package.json +2 -2
  34. package/lib/src/index.d.ts +0 -14
  35. /package/lib/{src/components → components}/AppActionHeader.d.ts +0 -0
  36. /package/lib/{src/components → components}/AppActionHeaderContext.d.ts +0 -0
  37. /package/lib/{src/components → components}/CollectApp/CollectApp.d.ts +0 -0
  38. /package/lib/{src/components → components}/CollectApp/CollectAppContext.d.ts +0 -0
  39. /package/lib/{src/components → components}/CollectAppActionHeader.d.ts +0 -0
  40. /package/lib/{src/components → components}/InstructionCard.d.ts +0 -0
  41. /package/lib/{src/components → components}/SearchBarCollect.d.ts +0 -0
  42. /package/lib/{src/components → components}/SubmissionCard.d.ts +0 -0
  43. /package/lib/{src/config → config}/constants.d.ts +0 -0
  44. /package/lib/{src/features → features}/collect-form/hooks/index.d.ts +0 -0
  45. /package/lib/{src/features → features}/collect-form/index.d.ts +0 -0
  46. /package/lib/{src/features → features}/collection-actions/components/CollectionActions.d.ts +0 -0
  47. /package/lib/{src/features → features}/collection-list/components/CollectionListTable.d.ts +0 -0
  48. /package/lib/{src/features → features}/collection-list/components/CollectionListTableBody.d.ts +0 -0
  49. /package/lib/{src/features → features}/collection-list/components/CollectionListTableFooter.d.ts +0 -0
  50. /package/lib/{src/features → features}/collection-list/components/CollectionListTableHead.d.ts +0 -0
  51. /package/lib/{src/features → features}/collection-list/hooks/useCollectionListTableBody.d.ts +0 -0
  52. /package/lib/{src/features → features}/collection-list/hooks/useCollectionListTableHead.d.ts +0 -0
  53. /package/lib/{src/features → features}/collection-list/hooks/useCollectionPagination.d.ts +0 -0
  54. /package/lib/{src/features → features}/collection-list/store/collectionListStore.d.ts +0 -0
  55. /package/lib/{src/features → features}/collection-submissions-list/components/CollectionSubmissionsList.d.ts +0 -0
  56. /package/lib/{src/features → features}/collection-submissions-list/components/CollectionSubmissionsListMobile.d.ts +0 -0
  57. /package/lib/{src/features → features}/collection-submissions-list/components/CollectionSubmissionsListTr.d.ts +0 -0
  58. /package/lib/{src/features → features}/collection-submissions-list/components/CollectionSubmissionsListView.d.ts +0 -0
  59. /package/lib/{src/features → features}/collection-submissions-list/components/CollectionSubmissionsRender.d.ts +0 -0
  60. /package/lib/{src/features → features}/collection-submissions-list/hooks/useCollectionSubmissionsList.d.ts +0 -0
  61. /package/lib/{src/features → features}/collection-submissions-list/store/collectionSubmissionListStore.d.ts +0 -0
  62. /package/lib/{src/features → features}/creation-wizard/CreationWizard.d.ts +0 -0
  63. /package/lib/{src/features → features}/creation-wizard/components/WizardHeader.d.ts +0 -0
  64. /package/lib/{src/features → features}/creation-wizard/components/WizardLayout.d.ts +0 -0
  65. /package/lib/{src/features → features}/creation-wizard/hooks/useAddMember.d.ts +0 -0
  66. /package/lib/{src/features → features}/creation-wizard/sharing.utils.d.ts +0 -0
  67. /package/lib/{src/features → features}/creation-wizard/store/wizardStore.d.ts +0 -0
  68. /package/lib/{src/features → features}/dropdown-actions/components/DropdownActionTable.d.ts +0 -0
  69. /package/lib/{src/features → features}/dropdown-actions/hooks/useDropdownActionTable.d.ts +0 -0
  70. /package/lib/{src/features → features}/menu/components/CollectMenu.d.ts +0 -0
  71. /package/lib/{src/features → features}/menu/components/DesktopMenu.d.ts +0 -0
  72. /package/lib/{src/features → features}/menu/components/MenuContext.d.ts +0 -0
  73. /package/lib/{src/features → features}/menu/components/MobileMenu.d.ts +0 -0
  74. /package/lib/{src/features → features}/modal/components/DeleteCollectionModal.d.ts +0 -0
  75. /package/lib/{src/features → features}/modal/components/InstructionModal.d.ts +0 -0
  76. /package/lib/{src/features → features}/modal/components/UpdateSubmissionModal.d.ts +0 -0
  77. /package/lib/{src/features → features}/modal/hooks/useDeleteCollectionModal.d.ts +0 -0
  78. /package/lib/{src/features → features}/submission/components/SubmissionEdit.d.ts +0 -0
  79. /package/lib/{src/features → features}/submission/components/SubmissionView.d.ts +0 -0
  80. /package/lib/{src/features → features}/submission-actions/components/SubmissionActions.d.ts +0 -0
  81. /package/lib/{src/features → features}/submission-list/components/SubmissionFilter.d.ts +0 -0
  82. /package/lib/{src/features → features}/submission-list/components/SubmissionsListView.d.ts +0 -0
  83. /package/lib/{src/features → features}/submission-list/hooks/useSubmissionPagination.d.ts +0 -0
  84. /package/lib/{src/features → features}/submission-list/store/submissionListStore.d.ts +0 -0
  85. /package/lib/{src/hooks → hooks}/useGetStatusSubmission.d.ts +0 -0
  86. /package/lib/{src/hooks → hooks}/useStepNavigations.d.ts +0 -0
  87. /package/lib/{src/hooks → hooks}/useSubmissionForm.d.ts +0 -0
  88. /package/lib/{src/i18n.d.ts → i18n.d.ts} +0 -0
  89. /package/lib/{src/main.d.ts → main.d.ts} +0 -0
  90. /package/lib/{src/models → models}/collect.d.ts +0 -0
  91. /package/lib/{src/models → models}/menu.d.ts +0 -0
  92. /package/lib/{src/pages → pages}/Collection.d.ts +0 -0
  93. /package/lib/{src/pages → pages}/CollectionsLayout.d.ts +0 -0
  94. /package/lib/{src/pages → pages}/CollectionsList.d.ts +0 -0
  95. /package/lib/{src/pages → pages}/FormEdit.d.ts +0 -0
  96. /package/lib/{src/pages → pages}/MembersEdit.d.ts +0 -0
  97. /package/lib/{src/pages → pages}/MineSubmission.d.ts +0 -0
  98. /package/lib/{src/pages → pages}/NotFound.d.ts +0 -0
  99. /package/lib/{src/pages → pages}/PageError.d.ts +0 -0
  100. /package/lib/{src/pages → pages}/Root.d.ts +0 -0
  101. /package/lib/{src/pages → pages}/Submission.d.ts +0 -0
  102. /package/lib/{src/pages → pages}/SubmissionList.d.ts +0 -0
  103. /package/lib/{src/providers → providers}/index.d.ts +0 -0
  104. /package/lib/{src/routes → routes}/wizard/wizard.d.ts +0 -0
  105. /package/lib/{src/services → services}/api/collection.service.d.ts +0 -0
  106. /package/lib/{src/services → services}/api/submission.services.d.ts +0 -0
  107. /package/lib/{src/services → services}/api/user.service.d.ts +0 -0
  108. /package/lib/{src/services → services}/queries/collection.queries.d.ts +0 -0
  109. /package/lib/{src/services → services}/queries/index.d.ts +0 -0
  110. /package/lib/{src/services → services}/queries/submission.queries.d.ts +0 -0
  111. /package/lib/{src/services → services}/queries/user.queries.d.ts +0 -0
  112. /package/lib/{src/store → store}/collectionActionStore.d.ts +0 -0
  113. /package/lib/{src/store → store}/userActionStore.d.ts +0 -0
  114. /package/lib/{src/utils → utils}/attachment.d.ts +0 -0
  115. /package/lib/{src/utils → utils}/deadline.d.ts +0 -0
@@ -2,10 +2,10 @@ import { jsxs as d, jsx as n } from "react/jsx-runtime";
2
2
  import { useEdificeClient as p, Flex as m, Button as u, IconButton as f, useBreakpoint as g, useDate as O, Badge as y } from "@edifice.io/react";
3
3
  import { IconPinOn as D, IconOptions as T, IconSave as L, IconSend as N, IconArrowLeft as v, IconCalendarLight as M } from "@edifice.io/react/icons";
4
4
  import { useTranslation as h } from "react-i18next";
5
- import { u as A, D as H } from "./DropdownActionTable-BoodZZI9.js";
5
+ import { u as A, D as H } from "./DropdownActionTable-CcA3rys3.js";
6
6
  import { ContribSubmissionStatus as w } from "@edifice.io/collect-client-rest";
7
7
  import { create as x } from "zustand";
8
- import { c as P, m as U } from "./index-D-6KhgeS.js";
8
+ import { c as P, m as U } from "./index-CIhvqYOt.js";
9
9
  const B = ({
10
10
  collection: s
11
11
  }) => {
@@ -76,9 +76,7 @@ const B = ({
76
76
  submissionAttachmentIdsToDelete: []
77
77
  };
78
78
  })
79
- })), $ = P(
80
- k
81
- ), j = ({
79
+ })), $ = P(k), j = ({
82
80
  handleUpdateSubmission: s
83
81
  }) => {
84
82
  const { appCode: t } = p(), { t: e } = h(t), i = A.use.isPastDeadline(), {
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./HASRA6WW-CE5UWlEo.js";
2
- import { z as v, B as C, D as e } from "./index-D-6KhgeS.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./HASRA6WW-BbBPIcpK.js";
2
+ import { z as v, B as C, D as e } from "./index-CIhvqYOt.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -3,15 +3,15 @@ import { SubmissionStatus as f, ManagerSubmissionStatus as B, WORKFLOW_RIGHTS as
3
3
  import { useDirectory as P, Flex as u, Avatar as R, Badge as v, useEdificeClient as D, Heading as A, Table as C, Button as x, LoadingScreen as T, Modal as I, AddAttachments as U, Dropdown as N, useToast as K, useBreakpoint as O, useDate as Y, EmptyScreen as J, Checkbox as X, Grid as L, useHasWorkflow as Z } from "@edifice.io/react";
4
4
  import { useNavigate as j, useParams as q } from "react-router-dom";
5
5
  import { useState as $, useEffect as M } from "react";
6
- import { A as ee, C as te } from "./AppHeaderCollection-BPHwd0pS.js";
6
+ import { A as ee, C as te } from "./AppHeaderCollection-Bvug8wqR.js";
7
7
  import { IconUsers as se, IconRafterDown as F, IconEdit as ne, IconTextPage as ie, IconCalendarLight as oe } from "@edifice.io/react/icons";
8
8
  import { useTranslation as w } from "react-i18next";
9
- import { u as ae, a as le, s as ce } from "./submission.queries-Dt5NuCXz.js";
9
+ import { u as ae, a as le, s as ce } from "./submission.queries-D13BY7hC.js";
10
10
  import { create as re } from "zustand";
11
- import { c as de, g as ue, m as H, h as me, i as he, j as ge, P as pe, k as be } from "./index-D-6KhgeS.js";
11
+ import { c as de, g as ue, m as H, h as me, i as he, j as ge, P as pe, k as be } from "./index-CIhvqYOt.js";
12
12
  import { u as W } from "./useGetStatusSubmission-DxHmLPxr.js";
13
- import { u as E } from "./DropdownActionTable-BoodZZI9.js";
14
- import { D as fe } from "./DeleteCollectionModal-Cw-IZLvp.js";
13
+ import { u as E } from "./DropdownActionTable-CcA3rys3.js";
14
+ import { D as fe } from "./DeleteCollectionModal-CE4XaECV.js";
15
15
  import { Editor as V } from "@edifice.io/react/editor";
16
16
  import { E as ye } from "./emptyscreen-list-collection-CWGxO4Ss.js";
17
17
  const Q = (t) => {
@@ -3,7 +3,7 @@ import { WORKFLOW_RIGHTS as L } from "@edifice.io/collect-client-rest";
3
3
  import { useEdificeClient as h, useHasWorkflow as T, Dropdown as p, Flex as O, useBreakpoint as N, AppHeader as b, Breadcrumb as E, Grid as C, LoadingScreen as _ } from "@edifice.io/react";
4
4
  import { Suspense as x } from "react";
5
5
  import { useNavigate as w, useLocation as f, Navigate as A, Outlet as R } from "react-router-dom";
6
- import { u as k, M as o, a as v, A as B, C as F } from "./index-D-6KhgeS.js";
6
+ import { u as k, M as o, a as v, A as B, C as F } from "./index-CIhvqYOt.js";
7
7
  import { IconCollect as U, IconSubmission as H } from "@edifice.io/react/icons";
8
8
  import { useTranslation as W } from "react-i18next";
9
9
  const $ = () => {
@@ -1,17 +1,17 @@
1
1
  import { jsx as e, Fragment as T, jsxs as u } from "react/jsx-runtime";
2
2
  import { useState as D, useMemo as L, useCallback as B, useEffect as E } from "react";
3
3
  import { S as A } from "./SearchBarCollect-DBKaVVDV.js";
4
- import { c as F, b as M, W as O, d as R } from "./index-D-6KhgeS.js";
4
+ import { c as F, b as M, W as O, d as R } from "./index-CIhvqYOt.js";
5
5
  import { useDate as $, Table as m, Flex as I, Badge as k, IconButton as S, useEdificeClient as v, EmptyScreen as G, LoadingScreen as j } from "@edifice.io/react";
6
6
  import { useTranslation as N } from "react-i18next";
7
7
  import { E as Q } from "./emptyscreen-list-collection-CWGxO4Ss.js";
8
- import { D as W } from "./DeleteCollectionModal-Cw-IZLvp.js";
8
+ import { D as W } from "./DeleteCollectionModal-CE4XaECV.js";
9
9
  import { SortDirection as C, CollectionSortField as y } from "@edifice.io/collect-client-rest";
10
10
  import { create as _ } from "zustand";
11
11
  import { IconOptions as H, IconRafterLeft as z, IconRafterRight as K, IconListOrder as U, IconArrowUp as Y, IconArrowDown as Z } from "@edifice.io/react/icons";
12
12
  import { t as q } from "i18next";
13
13
  import { useNavigate as J } from "react-router-dom";
14
- import { D as V } from "./DropdownActionTable-BoodZZI9.js";
14
+ import { D as V } from "./DropdownActionTable-CcA3rys3.js";
15
15
  const X = {
16
16
  search: "",
17
17
  sortBy: y.DEADLINE,
@@ -2,8 +2,8 @@ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
2
  import { useEdificeClient as m, useToast as f, Modal as d, Button as C } from "@edifice.io/react";
3
3
  import { IconDelete as h } from "@edifice.io/react/icons";
4
4
  import { useTranslation as p } from "react-i18next";
5
- import { l as M } from "./index-D-6KhgeS.js";
6
- import { u as D } from "./DropdownActionTable-BoodZZI9.js";
5
+ import { l as M } from "./index-CIhvqYOt.js";
6
+ import { u as D } from "./DropdownActionTable-CcA3rys3.js";
7
7
  const y = () => {
8
8
  const { appCode: r } = m(), { t: n } = p(r), e = f(), a = M(), { isDeleteModalOpen: l, onCloseDeleteModal: c, deleteCollectionId: i } = D((o) => ({
9
9
  isDeleteModalOpen: o.isDeleteModalOpen,
@@ -6,7 +6,7 @@ import { IconExternalLink as I, IconEdit as O, IconShare as h, IconDelete as w }
6
6
  import { useTranslation as D } from "react-i18next";
7
7
  import { useNavigate as C } from "react-router-dom";
8
8
  import { create as b } from "zustand";
9
- import { c as M } from "./index-D-6KhgeS.js";
9
+ import { c as M } from "./index-CIhvqYOt.js";
10
10
  const T = b((e) => ({
11
11
  isDeleteModalOpen: !1,
12
12
  deleteCollectionId: null,
@@ -4,8 +4,8 @@ import { useEdificeClient as L, useBreakpoint as O, useToast as R, useHasWorkflo
4
4
  import { useState as w } from "react";
5
5
  import { useTranslation as j } from "react-i18next";
6
6
  import { useParams as Q, useNavigate as W } from "react-router-dom";
7
- import { t as D, v as U, w as z, j as B, P as G, F as H, k as _, m as $, x as K } from "./index-D-6KhgeS.js";
8
- import { s as J } from "./submission.queries-Dt5NuCXz.js";
7
+ import { t as D, v as U, w as z, j as B, P as G, F as H, k as _, m as $, x as K } from "./index-CIhvqYOt.js";
8
+ import { s as J } from "./submission.queries-D13BY7hC.js";
9
9
  const nt = (c) => async ({ params: a }) => {
10
10
  const l = Number(a.collectionId);
11
11
  return await c.ensureQueryData(_(l)), await c.prefetchInfiniteQuery(
@@ -1,7 +1,7 @@
1
1
  var bs = Object.defineProperty;
2
2
  var ps = (e, t, n) => t in e ? bs(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var qe = (e, t, n) => ps(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { E as z, G as H, B as D, D as v, H as xe, I as wt, J as _o, S as N, K as k, L as G, N as T, O as ws, Q as or, R as $e, T as V, U as Gn, V as Vn, X as dt, Y as A, Z as q, _ as xs, $ as cn, a0 as Ne, a1 as $s, a2 as qt, a3 as zt, a4 as Cs, a5 as Ss, a6 as $n, a7 as ks, a8 as Br, a9 as Kt, aa as Ro, ab as Es, ac as W, ad as Nr, ae as Ds, af as Ms, ag as ir, ah as As, ai as Ts, aj as Fs, ak as zn, al as Is, am as Os, an as oe, ao as Ls, ap as Ps } from "./index-D-6KhgeS.js";
4
+ import { E as z, G as H, B as D, D as v, H as xe, I as wt, J as _o, S as N, K as k, L as G, N as T, O as ws, Q as or, R as $e, T as V, U as Gn, V as Vn, X as dt, Y as A, Z as q, _ as xs, $ as cn, a0 as Ne, a1 as $s, a2 as qt, a3 as zt, a4 as Cs, a5 as Ss, a6 as $n, a7 as ks, a8 as Br, a9 as Kt, aa as Ro, ab as Es, ac as W, ad as Nr, ae as Ds, af as Ms, ag as ir, ah as As, ai as Ts, aj as Fs, ak as zn, al as Is, am as Os, an as oe, ao as Ls, ap as Ps } from "./index-CIhvqYOt.js";
5
5
  var qs = (e) => e != null, _s = (e) => e.filter(qs);
6
6
  function Rs(e) {
7
7
  return (...t) => {
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./HASRA6WW-CE5UWlEo.js";
2
- import { z as d, B as f, D as e } from "./index-D-6KhgeS.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./HASRA6WW-BbBPIcpK.js";
2
+ import { z as d, B as f, D as e } from "./index-CIhvqYOt.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -3,8 +3,8 @@ import { WORKFLOW_RIGHTS as N } from "@edifice.io/collect-client-rest";
3
3
  import { useEdificeClient as v, useBreakpoint as I, useToast as w, useHasWorkflow as E, LoadingScreen as L, Grid as d, Flex as u, Button as p } from "@edifice.io/react";
4
4
  import { useTranslation as O } from "react-i18next";
5
5
  import { useParams as T, useNavigate as k } from "react-router-dom";
6
- import { o as P, p as U, j, P as D, q as Q, k as R, r as A, s as F } from "./index-D-6KhgeS.js";
7
- import { s as M } from "./submission.queries-Dt5NuCXz.js";
6
+ import { o as P, p as U, j, P as D, q as Q, k as R, r as A, s as F } from "./index-CIhvqYOt.js";
7
+ import { s as M } from "./submission.queries-D13BY7hC.js";
8
8
  const q = (t) => async ({ params: o }) => {
9
9
  const s = Number(o.collectionId);
10
10
  return await t.ensureQueryData(R(s)), await t.prefetchInfiniteQuery(
@@ -1,7 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { useParams as a, Navigate as n } from "react-router-dom";
3
3
  import { LoadingScreen as d } from "@edifice.io/react";
4
- import { n as f, P as b } from "./index-D-6KhgeS.js";
4
+ import { n as f, P as b } from "./index-CIhvqYOt.js";
5
5
  function S() {
6
6
  var t;
7
7
  const { collectionId: o } = a(), s = Number(o), { data: r, isLoading: c, isError: m, error: u } = f(
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as t, Fragment as c } from "react/jsx-runtime";
2
2
  import { WORKFLOW_RIGHTS as f } from "@edifice.io/collect-client-rest";
3
3
  import { useEdificeClient as u, useHasWorkflow as l, LoadingScreen as m, Layout as p } from "@edifice.io/react";
4
4
  import { useLoaderData as L, Outlet as e, ScrollRestoration as n } from "react-router-dom";
5
- import { P as d } from "./index-D-6KhgeS.js";
5
+ import { P as d } from "./index-CIhvqYOt.js";
6
6
  const g = async () => null;
7
7
  function E() {
8
8
  const { init: s } = u(), i = l(f.COLLECTION_ACCESS), o = L(), a = (o == null ? void 0 : o.header) !== !1;
@@ -2,14 +2,14 @@ import { jsxs as d, jsx as s } from "react/jsx-runtime";
2
2
  import { useEdificeClient as A, Flex as u, Heading as M, IconButton as $, AddAttachments as L, Modal as I, Button as w, useToast as W, useBreakpoint as z, Grid as N, LoadingScreen as G } from "@edifice.io/react";
3
3
  import { useNavigate as E, useParams as V } from "react-router-dom";
4
4
  import { useState as O, useEffect as x } from "react";
5
- import { u as T, A as J, C as K } from "./AppHeaderCollection-BPHwd0pS.js";
5
+ import { u as T, A as J, C as K } from "./AppHeaderCollection-Bvug8wqR.js";
6
6
  import { Editor as k } from "@edifice.io/react/editor";
7
7
  import { IconPinOn as X, IconRafterUp as Y, IconRafterDown as Z, IconSend as _, IconTextPage as q } from "@edifice.io/react/icons";
8
8
  import { useTranslation as f } from "react-i18next";
9
- import { g as tt, m as B, i as st, j as et, P as nt, k as it } from "./index-D-6KhgeS.js";
9
+ import { g as tt, m as B, i as st, j as et, P as nt, k as it } from "./index-CIhvqYOt.js";
10
10
  import { ContribSubmissionStatus as ot } from "@edifice.io/collect-client-rest";
11
- import { u as j } from "./DropdownActionTable-BoodZZI9.js";
12
- import { b as at, c as dt, d as ct, e as mt, f as rt } from "./submission.queries-Dt5NuCXz.js";
11
+ import { u as j } from "./DropdownActionTable-CcA3rys3.js";
12
+ import { b as at, c as dt, d as ct, e as mt, f as rt } from "./submission.queries-D13BY7hC.js";
13
13
  const v = ({
14
14
  collection: t,
15
15
  isMobile: e = !1
@@ -4,7 +4,7 @@ import { S as j } from "./SearchBarCollect-DBKaVVDV.js";
4
4
  import { CollectionStatus as N, SubmissionStatus as v } from "@edifice.io/collect-client-rest";
5
5
  import { useTranslation as x } from "react-i18next";
6
6
  import { create as R } from "zustand";
7
- import { c as U, i as Y, e as k, f as z } from "./index-D-6KhgeS.js";
7
+ import { c as U, i as Y, e as k, f as z } from "./index-CIhvqYOt.js";
8
8
  import { IconRafterDown as A } from "@edifice.io/react/icons";
9
9
  import { useNavigate as G } from "react-router-dom";
10
10
  import { E as O } from "./emptyscreen-list-collection-CWGxO4Ss.js";
@@ -1,5 +1,5 @@
1
1
  import { CollectionDto, ContribSubmissionStatus } from '@edifice.io/collect-client-rest';
2
- import { CollectionContext } from '../../models/collect';
2
+ import { CollectionContext } from '../models/collect';
3
3
  interface AppHeaderCollectProps {
4
4
  collection: CollectionDto;
5
5
  context: CollectionContext.COLLECTION | CollectionContext.SUBMISSION;
@@ -1,5 +1,5 @@
1
1
  import { CollectionDto } from '@edifice.io/collect-client-rest';
2
- import { WizardData } from '../../../../models/collect';
2
+ import { WizardData } from '../../../models/collect';
3
3
  /**
4
4
  * Reusable collection creation form component.
5
5
  * This component can be used by other applications (e.g., community) to embed a collection creation form
@@ -1,3 +1,3 @@
1
1
  export { default as CollectForm } from './CollectForm';
2
2
  export type { CollectFormProps } from './CollectForm';
3
- export type { WizardData } from '../../../../models/collect';
3
+ export type { WizardData } from '../../../models/collect';
@@ -1,5 +1,5 @@
1
1
  import { CollectionDto } from '@edifice.io/collect-client-rest';
2
- import { WizardData } from '../../../../models/collect';
2
+ import { WizardData } from '../../../models/collect';
3
3
  export interface UseCreateCollectionFormReturn {
4
4
  formData: WizardData;
5
5
  updateFormData: (updates: Partial<WizardData>) => void;
@@ -1,5 +1,5 @@
1
1
  import { CollectionDto } from '@edifice.io/collect-client-rest';
2
- import { WizardData } from '../../../../models/collect';
2
+ import { WizardData } from '../../../models/collect';
3
3
  export declare const FormCreate: ({ wizardData, updateWizardData, collection, onRemoveAttachment, }: {
4
4
  wizardData?: WizardData;
5
5
  updateWizardData?: (data: WizardData) => void;
@@ -1,6 +1,6 @@
1
1
  import { CollectionDto } from '@edifice.io/collect-client-rest';
2
2
  import { SharingItem } from '@edifice.io/react';
3
- import { WizardData } from '../../../../models/collect';
3
+ import { WizardData } from '../../../models/collect';
4
4
  export default function Members({ wizardData, updateWizardData, collection, onSharingsChange, }: {
5
5
  wizardData?: WizardData;
6
6
  updateWizardData?: (updates: Partial<WizardData>) => void;
@@ -1,4 +1,4 @@
1
- import { useWizardProps } from '../../../../hooks/useWizard';
1
+ import { useWizardProps } from '../../../hooks/useWizard';
2
2
  type OmittedProps = Omit<useWizardProps, "triggerRef" | "menuRef">;
3
3
  export interface WizardContextProps extends OmittedProps {
4
4
  block?: boolean;
@@ -1,4 +1,4 @@
1
- import { MenuFilter } from '../../../../models/menu';
1
+ import { MenuFilter } from '../../../models/menu';
2
2
  interface MenuState {
3
3
  mobileMenuOpen: boolean;
4
4
  setMobileMenuOpen: (open: boolean) => void;
@@ -1,6 +1,6 @@
1
1
  import { ChangeEvent } from 'react';
2
2
  import { BookmarkInput, OptionListItemType, SharingItem } from '@edifice.io/react';
3
- import { Visible } from '../../services/queries/user.queries';
3
+ import { Visible } from '../services/queries/user.queries';
4
4
  export declare const useSearch: () => {
5
5
  state: {
6
6
  searchInputValue: string;
@@ -1,4 +1,4 @@
1
- import { WizardData } from '../../models/collect';
1
+ import { WizardData } from '../models/collect';
2
2
  export interface useWizardProps {
3
3
  wizardData: WizardData;
4
4
  updateWizardData: (updates: Partial<WizardData>) => void;
@@ -1983,7 +1983,7 @@ var xl = (e, t = !1) => {
1983
1983
  const t = cr(() => {
1984
1984
  const n = this, [r] = b(this, Ae), [s] = b(this, Te), [o] = b(this, Oe), [i] = b(this, Ee), [l] = b(this, we);
1985
1985
  let c;
1986
- return b(this, Ne) ? c = b(this, Ne) : (c = ir(() => import("./I3HPI4QX-DcsxmYEr.js")), T(this, Ne, c)), Er(b(this, Je), b(this, Ie)), sr(c, or({
1986
+ return b(this, Ne) ? c = b(this, Ne) : (c = ir(() => import("./I3HPI4QX-C5m1qr_y.js")), T(this, Ne, c)), Er(b(this, Je), b(this, Ie)), sr(c, or({
1987
1987
  get queryFlavor() {
1988
1988
  return b(n, Ye);
1989
1989
  },
@@ -2077,7 +2077,7 @@ var xl = (e, t = !1) => {
2077
2077
  const t = cr(() => {
2078
2078
  const n = this, [r] = b(this, Pe), [s] = b(this, Me), [o] = b(this, Le), [i] = b(this, ke), [l] = b(this, xe), [c] = b(this, _e);
2079
2079
  let a;
2080
- return b(this, Fe) ? a = b(this, Fe) : (a = ir(() => import("./CXEL7IU7-bSp8E8Ma.js")), T(this, Fe, a)), Er(b(this, st), b(this, Re)), sr(a, or({
2080
+ return b(this, Fe) ? a = b(this, Fe) : (a = ir(() => import("./CXEL7IU7-KQqTZW3I.js")), T(this, Fe, a)), Er(b(this, st), b(this, Re)), sr(a, or({
2081
2081
  get queryFlavor() {
2082
2082
  return b(n, nt);
2083
2083
  },
@@ -3285,7 +3285,7 @@ const Qr = (e, t) => {
3285
3285
  path: "/",
3286
3286
  loader: r,
3287
3287
  async lazy() {
3288
- const { loader: s, Root: o } = await import("./Root-B_xgOphI.js");
3288
+ const { loader: s, Root: o } = await import("./Root-DzV0pyeC.js");
3289
3289
  return {
3290
3290
  loader: async () => {
3291
3291
  const i = await r(), l = await s() ?? {};
@@ -3297,14 +3297,14 @@ const Qr = (e, t) => {
3297
3297
  children: [
3298
3298
  {
3299
3299
  async lazy() {
3300
- const { loader: s, Component: o } = await import("./CollectionsLayout-B66EiXm4.js");
3300
+ const { loader: s, Component: o } = await import("./CollectionsLayout-wmt1jR8l.js");
3301
3301
  return { loader: s, Component: o };
3302
3302
  },
3303
3303
  children: [
3304
3304
  {
3305
3305
  index: !0,
3306
3306
  async lazy() {
3307
- const { loader: s, CollectionsList: o } = await import("./CollectionsList-BRBbyb-s.js");
3307
+ const { loader: s, CollectionsList: o } = await import("./CollectionsList-Avkiw1Aj.js");
3308
3308
  return {
3309
3309
  loader: () => s(e),
3310
3310
  Component: o
@@ -3314,7 +3314,7 @@ const Qr = (e, t) => {
3314
3314
  {
3315
3315
  path: "list-collections",
3316
3316
  async lazy() {
3317
- const { loader: s, CollectionsList: o } = await import("./CollectionsList-BRBbyb-s.js");
3317
+ const { loader: s, CollectionsList: o } = await import("./CollectionsList-Avkiw1Aj.js");
3318
3318
  return {
3319
3319
  loader: () => s(e),
3320
3320
  Component: o
@@ -3324,7 +3324,7 @@ const Qr = (e, t) => {
3324
3324
  {
3325
3325
  path: "list-submissions",
3326
3326
  async lazy() {
3327
- const { loader: s, SubmissionsList: o } = await import("./SubmissionList-ZKL__RHu.js");
3327
+ const { loader: s, SubmissionsList: o } = await import("./SubmissionList-DI5paav0.js");
3328
3328
  return {
3329
3329
  loader: () => s(e),
3330
3330
  Component: o
@@ -3340,28 +3340,28 @@ const Qr = (e, t) => {
3340
3340
  {
3341
3341
  path: "list-collections/id/:collectionId",
3342
3342
  async lazy() {
3343
- const { loader: s, Collection: o } = await import("./Collection-C6ys5-Bv.js");
3343
+ const { loader: s, Collection: o } = await import("./Collection-CMoQA79H.js");
3344
3344
  return { loader: () => s(e), Component: o };
3345
3345
  }
3346
3346
  },
3347
3347
  {
3348
3348
  path: "list-collections/id/:collectionId/submission/mine",
3349
3349
  async lazy() {
3350
- const { MineSubmission: s } = await import("./MineSubmission-DfAVKzBY.js");
3350
+ const { MineSubmission: s } = await import("./MineSubmission-m_qn8e0j.js");
3351
3351
  return { Component: s };
3352
3352
  }
3353
3353
  },
3354
3354
  {
3355
3355
  path: "list-collections/id/:collectionId/submission/:submissionId",
3356
3356
  async lazy() {
3357
- const { loader: s, Submission: o } = await import("./Submission-pY2ZvgER.js");
3357
+ const { loader: s, Submission: o } = await import("./Submission-BnaHLVUo.js");
3358
3358
  return { loader: () => s(e), Component: o };
3359
3359
  }
3360
3360
  },
3361
3361
  {
3362
3362
  path: "id/:collectionId/members",
3363
3363
  async lazy() {
3364
- const { loader: s, MembersEdit: o } = await import("./MembersEdit-WFk8DkwB.js");
3364
+ const { loader: s, MembersEdit: o } = await import("./MembersEdit-79qps5R2.js");
3365
3365
  return {
3366
3366
  loader: () => s(e),
3367
3367
  Component: o
@@ -3371,7 +3371,7 @@ const Qr = (e, t) => {
3371
3371
  {
3372
3372
  path: "id/:collectionId/form",
3373
3373
  async lazy() {
3374
- const { loader: s, FormEdit: o } = await import("./FormEdit-Di-Y4r45.js");
3374
+ const { loader: s, FormEdit: o } = await import("./FormEdit-BK8fEwW4.js");
3375
3375
  return { loader: () => s(e), Component: o };
3376
3376
  }
3377
3377
  }
package/lib/index.d.ts CHANGED
@@ -1 +1,14 @@
1
- export {}
1
+ export { AppActionHeader } from './components/AppActionHeader';
2
+ export { AppActionHeaderContext, AppActionHeaderProvider, useAppActionHeaderContext, } from './components/AppActionHeaderContext';
3
+ export { default as CollectApp } from './components/CollectApp/CollectApp';
4
+ export type { CollectAppProps } from './components/CollectApp/CollectApp';
5
+ export { CollectAppActionHeader } from './components/CollectAppActionHeader';
6
+ export { CollectMenu } from './features/menu/components/CollectMenu';
7
+ export { MenuContext, MenuProvider, useMenuContext, } from './features/menu/components/MenuContext';
8
+ export { basename, router } from './routes';
9
+ export { Providers, queryClient } from './providers';
10
+ export * from './features/collect-form';
11
+ export type * from './features/collect-form';
12
+ export * as queries from './services/queries';
13
+ export * from '@edifice.io/collect-client-rest';
14
+ export type * from '@edifice.io/collect-client-rest';
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as o, aq as s, ar as t, as as r, at as n, au as C, C as p, av as l, aw as A, ax as i, ay as u, az as c, aA as d, aB as x, aC as m, aD as H, aE as v, aF as M } from "./index-D-6KhgeS.js";
1
+ import { A as o, aq as s, ar as t, as as r, at as n, au as C, C as p, av as l, aw as A, ax as i, ay as u, az as c, aA as d, aB as x, aC as m, aD as H, aE as v, aF as M } from "./index-CIhvqYOt.js";
2
2
  export * from "@edifice.io/collect-client-rest";
3
3
  export {
4
4
  o as AppActionHeader,
@@ -0,0 +1,13 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ import { RouteObject, createBrowserRouter } from 'react-router-dom';
3
+ export interface RoutesOptions {
4
+ header?: boolean;
5
+ }
6
+ export declare const routes: (queryClient: QueryClient, options?: RoutesOptions) => RouteObject[];
7
+ export declare const basename: string;
8
+ /**
9
+ * Creates the browser router instance for the app.
10
+ * Pass the queryClient for data-aware routes.
11
+ * Pass options for additional configuration (e.g., header=false for headless mode)
12
+ */
13
+ export declare const router: (queryClient: QueryClient, options?: RoutesOptions) => ReturnType<typeof createBrowserRouter>;
@@ -1,5 +1,5 @@
1
1
  import { StoreApi, UseBoundStore } from 'zustand';
2
- type WithSelectors<S> = S extends {
2
+ export type WithSelectors<S> = S extends {
3
3
  getState: () => infer T;
4
4
  } ? S & {
5
5
  use: {
@@ -7,4 +7,3 @@ type WithSelectors<S> = S extends {
7
7
  };
8
8
  } : never;
9
9
  export declare const createSelectors: <S extends UseBoundStore<StoreApi<object>>>(_store: S) => WithSelectors<S>;
10
- export {};
@@ -0,0 +1,26 @@
1
+ import { SubmissionDto } from '@edifice.io/collect-client-rest';
2
+ import { SingleAttachmentType } from '@edifice.io/react';
3
+ import { StoreApi, UseBoundStore } from 'zustand';
4
+ import { WithSelectors } from './createSelectors';
5
+ export interface SubmissionActionState {
6
+ submissionId: number | null;
7
+ submissionUpdatedAt: SubmissionDto["updatedAt"] | null;
8
+ submissionContent: string;
9
+ submissionAttachments: SingleAttachmentType[];
10
+ submissionPersistedAttachmentIds: number[];
11
+ submissionAttachmentIdsToDelete: number[];
12
+ isUpdateSubmissionModalOpen: boolean;
13
+ submissionHasContent: boolean;
14
+ submissionIsLoading: boolean;
15
+ onOpenUpdateSubmissionModal: () => void;
16
+ onCloseUpdateSubmissionModal: () => void;
17
+ setSubmissionContent: (content: string, hasContent: boolean) => void;
18
+ setSubmissionAttachments: (attachments: SingleAttachmentType[]) => void;
19
+ resetSubmissionAttachments: () => void;
20
+ setSubmissionPersistedAttachmentIds: (attachmentIds: number[]) => void;
21
+ addSubmissionAttachmentIdToDelete: (attachmentId: number) => void;
22
+ resetSubmissionAttachmentIdsToDelete: () => void;
23
+ setSubmissionIsLoading: (isLoading: boolean) => void;
24
+ hydrateSubmissionContent: (submission: SubmissionDto) => void;
25
+ }
26
+ export declare const useSubmissionActionStore: WithSelectors<UseBoundStore<StoreApi<SubmissionActionState>>>;
@@ -1,5 +1,5 @@
1
1
  import { useQuery as b, useQueryClient as a, useMutation as m, useInfiniteQuery as d } from "@tanstack/react-query";
2
- import { y } from "./index-D-6KhgeS.js";
2
+ import { y } from "./index-CIhvqYOt.js";
3
3
  import { odeServices as c } from "@edifice.io/client";
4
4
  import { SubmissionClient as l } from "@edifice.io/collect-client-rest";
5
5
  const S = "/collect/api", u = new l({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/collect-frontend",
3
- "version": "1.0.12-develop.2.20261109205942",
3
+ "version": "1.0.12-develop.2.20261110081123",
4
4
  "private": false,
5
5
  "license": "GPL-3.0",
6
6
  "author": "Edifice",
@@ -17,7 +17,7 @@
17
17
  "react-pdf": "10.2.0",
18
18
  "react-router-dom": "6.30.3",
19
19
  "zustand": "4.5.7",
20
- "@edifice.io/collect-client-rest": "1.0.12-develop.2.20261109205923"
20
+ "@edifice.io/collect-client-rest": "1.0.12-develop.2.20261110081105"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@edifice.io/bootstrap": "*",
@@ -1,14 +0,0 @@
1
- export { AppActionHeader } from './components/AppActionHeader';
2
- export { AppActionHeaderContext, AppActionHeaderProvider, useAppActionHeaderContext, } from './components/AppActionHeaderContext';
3
- export { default as CollectApp } from './components/CollectApp/CollectApp';
4
- export type { CollectAppProps } from './components/CollectApp/CollectApp';
5
- export { CollectAppActionHeader } from './components/CollectAppActionHeader';
6
- export { CollectMenu } from './features/menu/components/CollectMenu';
7
- export { MenuContext, MenuProvider, useMenuContext, } from './features/menu/components/MenuContext';
8
- export { basename, router } from './routes';
9
- export { Providers, queryClient } from './providers';
10
- export * from './features/collect-form';
11
- export type * from './features/collect-form';
12
- export * as queries from './services/queries';
13
- export * from '@edifice.io/collect-client-rest';
14
- export type * from '@edifice.io/collect-client-rest';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes