synapse-react-client 4.0.13 → 4.0.15-SWC-7835

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 (98) hide show
  1. package/dist/SWC.index.js +1 -1
  2. package/dist/components/ChallengeRegisterButton/ChallengeRegisterButton.d.ts.map +1 -1
  3. package/dist/components/ChallengeRegisterButton/ChallengeRegisterButton.js +76 -45
  4. package/dist/components/ChallengeRegisterButton/ChallengeRegisterButton.js.map +1 -1
  5. package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.d.ts.map +1 -1
  6. package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.js +2 -2
  7. package/dist/components/ChallengeRequirementsModal/ChallengeRequirementsModal.js.map +1 -1
  8. package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.d.ts.map +1 -1
  9. package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.js +2 -2
  10. package/dist/components/ChallengeTeamWizard/ChallengeTeamWizard.js.map +1 -1
  11. package/dist/components/DataGrid/utils/DataGridUtils.js +1 -1
  12. package/dist/components/DataGrid/utils/DataGridUtils.js.map +1 -1
  13. package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts +6 -0
  14. package/dist/components/EntityDownloadButton/EntityDownloadButton.d.ts.map +1 -1
  15. package/dist/components/EntityDownloadButton/EntityDownloadButton.js +6 -1
  16. package/dist/components/EntityDownloadButton/EntityDownloadButton.js.map +1 -1
  17. package/dist/components/FullTextSearch/FullTextSearch.d.ts.map +1 -1
  18. package/dist/components/FullTextSearch/FullTextSearch.js +28 -20
  19. package/dist/components/FullTextSearch/FullTextSearch.js.map +1 -1
  20. package/dist/components/FullTextSearch/FullTextSearchUtils.d.ts.map +1 -1
  21. package/dist/components/FullTextSearch/FullTextSearchUtils.js +7 -2
  22. package/dist/components/FullTextSearch/FullTextSearchUtils.js.map +1 -1
  23. package/dist/components/GenericCard/BioregistryRules.d.ts.map +1 -1
  24. package/dist/components/GenericCard/BioregistryRules.js +9 -1
  25. package/dist/components/GenericCard/BioregistryRules.js.map +1 -1
  26. package/dist/components/Goals/Goals.Desktop.d.ts +3 -1
  27. package/dist/components/Goals/Goals.Desktop.d.ts.map +1 -1
  28. package/dist/components/Goals/Goals.Desktop.js +2 -3
  29. package/dist/components/Goals/Goals.Desktop.js.map +1 -1
  30. package/dist/components/Goals/Goals.d.ts +1 -0
  31. package/dist/components/Goals/Goals.d.ts.map +1 -1
  32. package/dist/components/Goals/Goals.js +33 -27
  33. package/dist/components/Goals/Goals.js.map +1 -1
  34. package/dist/components/Markdown/widget/MarkdownTableOfContents.d.ts.map +1 -1
  35. package/dist/components/Markdown/widget/MarkdownTableOfContents.js +15 -11
  36. package/dist/components/Markdown/widget/MarkdownTableOfContents.js.map +1 -1
  37. package/dist/components/QueryWrapper/useOnQueryDataChange.d.ts.map +1 -1
  38. package/dist/components/QueryWrapper/useOnQueryDataChange.js +19 -17
  39. package/dist/components/QueryWrapper/useOnQueryDataChange.js.map +1 -1
  40. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
  41. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +2 -2
  42. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -1
  43. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts.map +1 -1
  44. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js +30 -30
  45. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js.map +1 -1
  46. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts +1 -1
  47. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts.map +1 -1
  48. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js +4 -2
  49. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js.map +1 -1
  50. package/dist/components/SynapseHomepageV2/WordPressNews.d.ts.map +1 -1
  51. package/dist/components/SynapseHomepageV2/WordPressNews.js +13 -36
  52. package/dist/components/SynapseHomepageV2/WordPressNews.js.map +1 -1
  53. package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.d.ts.map +1 -1
  54. package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js +1 -1
  55. package/dist/components/SynapseSearchPageResults/SearchPagePortalBanners.js.map +1 -1
  56. package/dist/components/SynapseSearchPageResults/SynapseSearchPageRouter.d.ts.map +1 -1
  57. package/dist/components/SynapseSearchPageResults/SynapseSearchPageRouter.js +14 -12
  58. package/dist/components/SynapseSearchPageResults/SynapseSearchPageRouter.js.map +1 -1
  59. package/dist/components/SynapseTable/SearchV2.d.ts +11 -0
  60. package/dist/components/SynapseTable/SearchV2.d.ts.map +1 -1
  61. package/dist/components/SynapseTable/SearchV2.js.map +1 -1
  62. package/dist/components/WordPress/WordPressLatestPostChip.css +1 -0
  63. package/dist/components/WordPress/WordPressLatestPostChip.d.ts +5 -0
  64. package/dist/components/WordPress/WordPressLatestPostChip.d.ts.map +1 -0
  65. package/dist/components/WordPress/WordPressLatestPostChip.js +29 -0
  66. package/dist/components/WordPress/WordPressLatestPostChip.js.map +1 -0
  67. package/dist/components/WordPress/WordPressLatestPostChip.module.js +9 -0
  68. package/dist/components/WordPress/WordPressLatestPostChip.module.js.map +1 -0
  69. package/dist/components/WordPress/WordPressLatestPostChip.module.scss +33 -0
  70. package/dist/components/WordPress/useWordPressCategories.d.ts +3 -0
  71. package/dist/components/WordPress/useWordPressCategories.d.ts.map +1 -0
  72. package/dist/components/WordPress/useWordPressCategories.js +19 -0
  73. package/dist/components/WordPress/useWordPressCategories.js.map +1 -0
  74. package/dist/components/WordPress/useWordPressPosts.d.ts +3 -0
  75. package/dist/components/WordPress/useWordPressPosts.d.ts.map +1 -0
  76. package/dist/components/WordPress/useWordPressPosts.js +23 -0
  77. package/dist/components/WordPress/useWordPressPosts.js.map +1 -0
  78. package/dist/features/curator/dashboard/components/CurationTaskCard.js +1 -1
  79. package/dist/features/curator/dashboard/components/CurationTaskCard.js.map +1 -1
  80. package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.d.ts.map +1 -1
  81. package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js +6 -6
  82. package/dist/features/entity/metadata-task/components/MetadataTaskTableActionCell.js.map +1 -1
  83. package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.d.ts.map +1 -1
  84. package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.js +24 -20
  85. package/dist/features/entity/metadata-task/hooks/useGridSessionForCurationTask.js.map +1 -1
  86. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.d.ts +2 -2
  87. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.d.ts.map +1 -1
  88. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js +30 -21
  89. package/dist/features/entity/metadata-task/hooks/useOpenCuratorButton.js.map +1 -1
  90. package/dist/features/entity/metadata-task/utils/constants.d.ts +1 -0
  91. package/dist/features/entity/metadata-task/utils/constants.d.ts.map +1 -1
  92. package/dist/features/entity/metadata-task/utils/constants.js +2 -2
  93. package/dist/features/entity/metadata-task/utils/constants.js.map +1 -1
  94. package/dist/tsconfig.build.tsbuildinfo +1 -1
  95. package/dist/utils/hooks/useShowDesktop.d.ts.map +1 -1
  96. package/dist/utils/hooks/useShowDesktop.js +4 -9
  97. package/dist/utils/hooks/useShowDesktop.js.map +1 -1
  98. package/package.json +4 -4
@@ -1 +1 @@
1
- {"version":3,"file":"useOpenCuratorButton.d.ts","sourceRoot":"","sources":["../../../../../src/features/entity/metadata-task/hooks/useOpenCuratorButton.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EAGb,MAAM,kCAAkC,CAAA;AAUzC,KAAK,kCAAkC,GAAG;IACxC,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAOD,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAClD,YAAY,EAAE,YAAY,GACzB,kCAAkC,CAgDpC"}
1
+ {"version":3,"file":"useOpenCuratorButton.d.ts","sourceRoot":"","sources":["../../../../../src/features/entity/metadata-task/hooks/useOpenCuratorButton.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,UAAU,EACX,MAAM,kCAAkC,CAAA;AAYzC,KAAK,kCAAkC,GAAG;IACxC,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAOD,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAClD,UAAU,EAAE,UAAU,GACrB,kCAAkC,CA2EpC"}
@@ -1,37 +1,46 @@
1
1
  import { displayToast as e } from "../../../../components/ToastMessage/ToastMessage.js";
2
2
  import { useGetEntityPermissions as t } from "../../../../synapse-queries/entity/useEntity.js";
3
+ import { useGetFeatureFlag as n } from "../../../../synapse-queries/featureflags/useGetFeatureFlag.js";
3
4
  import "../../../../synapse-queries/index.js";
4
5
  import "../../../../components/index.js";
5
- import { getLinkToGridSession as n } from "../../../../utils/functions/getSynapseWebClientLink.js";
6
- import { OPEN_CURATOR_ERROR_TITLE as r, OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE as i } from "../utils/constants.js";
7
- import { getGridSourceIdForTask as a } from "../utils/getGridSourceIdForTask.js";
8
- import o from "./useGridSessionForCurationTask_legacy.js";
9
- import { useCallback as s } from "react";
10
- import { SynapseClientError as c } from "@sage-bionetworks/synapse-client";
6
+ import { getLinkToGridSession as r } from "../../../../utils/functions/getSynapseWebClientLink.js";
7
+ import { OPEN_CURATOR_ERROR_TITLE as i, OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE as a } from "../utils/constants.js";
8
+ import { getGridSourceIdForTask as o } from "../utils/getGridSourceIdForTask.js";
9
+ import s from "./useGridSessionForCurationTask.js";
10
+ import c from "./useGridSessionForCurationTask_legacy.js";
11
+ import { useCallback as l } from "react";
12
+ import { FeatureFlagEnum as u } from "@sage-bionetworks/synapse-types";
13
+ import { SynapseClientError as d } from "@sage-bionetworks/synapse-client";
11
14
  //#region src/features/entity/metadata-task/hooks/useOpenCuratorButton.ts
12
- function l(e, t) {
13
- let r = n(e, t);
14
- window.open(r, "_blank", "noopener");
15
+ function f(e, t) {
16
+ let n = r(e, t);
17
+ window.open(n, "_blank", "noopener");
15
18
  }
16
- function u(n) {
17
- let { mutateAsync: u, isPending: d } = o(), { data: f, isLoading: p } = t(a(n)), m = f?.canView, h = s(async () => {
19
+ function p(r) {
20
+ let p = r.task, m = n(u.CURATOR_LINK_TASK_TO_GRID_SESSION) && !1, { mutateAsync: h, isPending: g } = c(), { mutateAsync: _, isPending: v } = s(), { data: y, isLoading: b } = t(o(p)), x = y?.canView, S = l(async () => {
18
21
  let t;
19
22
  try {
20
- t = await u({ curationTask: n }), l(t.sessionId, n.taskId);
23
+ t = m ? (await _(r)).gridSession : await h({ curationTask: p }), f(t.sessionId, p.taskId);
21
24
  } catch (t) {
22
- t instanceof c && t.status === 403 ? (console.error(t), e(i, "danger", { title: r })) : (console.error("Error opening Curator for curation task", t), e(t instanceof Error ? t.message : String(t), "danger", { title: r }));
25
+ t instanceof d && t.status === 403 ? (console.error(t), e(a, "danger", { title: i })) : (console.error("Error opening Curator for curation task", t), e(t instanceof Error ? t.message : String(t), "danger", { title: i }));
23
26
  }
24
- }, [n, u]);
27
+ }, [
28
+ p,
29
+ r,
30
+ m,
31
+ h,
32
+ _
33
+ ]), C = l(() => {
34
+ S();
35
+ }, [S]);
25
36
  return {
26
- hasPermission: m,
27
- isLoading: p,
28
- isPending: d,
29
- onClick: s(() => {
30
- h();
31
- }, [h])
37
+ hasPermission: x,
38
+ isLoading: b,
39
+ isPending: m ? v : g,
40
+ onClick: C
32
41
  };
33
42
  }
34
43
  //#endregion
35
- export { u as default };
44
+ export { p as default };
36
45
 
37
46
  //# sourceMappingURL=useOpenCuratorButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useOpenCuratorButton.js","names":[],"sources":["../../../../../src/features/entity/metadata-task/hooks/useOpenCuratorButton.ts"],"sourcesContent":["import { displayToast } from '@/components'\nimport { useGetEntityPermissions } from '@/synapse-queries'\nimport {\n CurationTask,\n GridSession,\n SynapseClientError,\n} from '@sage-bionetworks/synapse-client'\nimport { useCallback } from 'react'\nimport {\n OPEN_CURATOR_ERROR_TITLE,\n OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE,\n} from '../utils/constants'\nimport { getGridSourceIdForTask } from '../utils/getGridSourceIdForTask'\nimport useGridSessionForCurationTask_legacy from './useGridSessionForCurationTask_legacy'\nimport { getLinkToGridSession } from '@/utils/functions/getSynapseWebClientLink'\n\ntype UseOpenCuratorFromTaskButtonReturn = {\n isLoading: boolean\n isPending: boolean\n hasPermission?: boolean\n onClick: () => void\n}\n\nfunction openGridSessionInNewWindow(gridSessionId: string, taskId: number) {\n const gridUrl = getLinkToGridSession(gridSessionId, taskId)\n window.open(gridUrl, '_blank', 'noopener')\n}\n\nexport default function useOpenCuratorFromTaskButton(\n curationTask: CurationTask,\n): UseOpenCuratorFromTaskButtonReturn {\n const {\n mutateAsync: getOrCreateLegacyGridSessionForUnassignedTask,\n isPending: openGridIsPending,\n } = useGridSessionForCurationTask_legacy()\n\n const gridSourceEntityId = getGridSourceIdForTask(curationTask)\n const {\n data: sourceEntityPermissions,\n isLoading: isLoadingEntityPermissions,\n } = useGetEntityPermissions(gridSourceEntityId)\n\n const hasPermission = sourceEntityPermissions?.canView\n\n const openNewOrExistingCuratorSession = useCallback(async () => {\n let gridSession: GridSession\n try {\n gridSession = await getOrCreateLegacyGridSessionForUnassignedTask({\n curationTask,\n })\n openGridSessionInNewWindow(gridSession.sessionId!, curationTask.taskId!)\n } catch (error) {\n if (error instanceof SynapseClientError && error.status === 403) {\n console.error(error)\n displayToast(OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE, 'danger', {\n title: OPEN_CURATOR_ERROR_TITLE,\n })\n } else {\n console.error('Error opening Curator for curation task', error)\n const errorMessage =\n error instanceof Error ? error.message : String(error)\n displayToast(errorMessage, 'danger', {\n title: OPEN_CURATOR_ERROR_TITLE,\n })\n }\n }\n }, [curationTask, getOrCreateLegacyGridSessionForUnassignedTask])\n\n const handleClickOpenCurator = useCallback(() => {\n void openNewOrExistingCuratorSession()\n }, [openNewOrExistingCuratorSession])\n\n return {\n hasPermission,\n isLoading: isLoadingEntityPermissions,\n isPending: openGridIsPending,\n onClick: handleClickOpenCurator,\n }\n}\n"],"mappings":";;;;;;;;;;;AAuBA,SAAS,EAA2B,GAAuB,GAAgB;CACzE,IAAM,IAAU,EAAqB,GAAe,EAAO;AAC3D,QAAO,KAAK,GAAS,UAAU,WAAW;;AAG5C,SAAwB,EACtB,GACoC;CACpC,IAAM,EACJ,aAAa,GACb,WAAW,MACT,GAAsC,EAGpC,EACJ,MAAM,GACN,WAAW,MACT,EAJuB,EAAuB,EAItB,CAAmB,EAEzC,IAAgB,GAAyB,SAEzC,IAAkC,EAAY,YAAY;EAC9D,IAAI;AACJ,MAAI;AAIF,GAHA,IAAc,MAAM,EAA8C,EAChE,iBACD,CAAC,EACF,EAA2B,EAAY,WAAY,EAAa,OAAQ;WACjE,GAAO;AACd,GAAI,aAAiB,KAAsB,EAAM,WAAW,OAC1D,QAAQ,MAAM,EAAM,EACpB,EAAa,GAAyC,UAAU,EAC9D,OAAO,GACR,CAAC,KAEF,QAAQ,MAAM,2CAA2C,EAAM,EAG/D,EADE,aAAiB,QAAQ,EAAM,UAAU,OAAO,EAAM,EAC7B,UAAU,EACnC,OAAO,GACR,CAAC;;IAGL,CAAC,GAAc,EAA8C,CAAC;AAMjE,QAAO;EACL;EACA,WAAW;EACX,WAAW;EACX,SAR6B,QAAkB;AAC1C,MAAiC;KACrC,CAAC,EAAgC,CAMzB;EACV"}
1
+ {"version":3,"file":"useOpenCuratorButton.js","names":[],"sources":["../../../../../src/features/entity/metadata-task/hooks/useOpenCuratorButton.ts"],"sourcesContent":["import { displayToast } from '@/components'\nimport { useGetEntityPermissions } from '@/synapse-queries'\nimport { useGetFeatureFlag } from '@/synapse-queries/featureflags/useGetFeatureFlag'\nimport {\n GridSession,\n SynapseClientError,\n TaskBundle,\n} from '@sage-bionetworks/synapse-client'\nimport { FeatureFlagEnum } from '@sage-bionetworks/synapse-types'\nimport { useCallback } from 'react'\nimport {\n OPEN_CURATOR_ERROR_TITLE,\n OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE,\n} from '../utils/constants'\nimport { getGridSourceIdForTask } from '../utils/getGridSourceIdForTask'\nimport useGridSessionForCurationTask from './useGridSessionForCurationTask'\nimport useGridSessionForCurationTask_legacy from './useGridSessionForCurationTask_legacy'\nimport { getLinkToGridSession } from '@/utils/functions/getSynapseWebClientLink'\n\ntype UseOpenCuratorFromTaskButtonReturn = {\n isLoading: boolean\n isPending: boolean\n hasPermission?: boolean\n onClick: () => void\n}\n\nfunction openGridSessionInNewWindow(gridSessionId: string, taskId: number) {\n const gridUrl = getLinkToGridSession(gridSessionId, taskId)\n window.open(gridUrl, '_blank', 'noopener')\n}\n\nexport default function useOpenCuratorFromTaskButton(\n taskBundle: TaskBundle,\n): UseOpenCuratorFromTaskButtonReturn {\n const curationTask = taskBundle.task!\n\n const isTaskLinkedSessionFlagEnabled =\n useGetFeatureFlag(FeatureFlagEnum.CURATOR_LINK_TASK_TO_GRID_SESSION) &&\n false // SWC-7835 - temporarily disable this feature flag\n // We want to add an opt-in (PLFM-9686)\n // Also the feature flag does not work because we did not bump synapse-client after adding the flag\n // FeatureFlagEnum['CURATOR_LINK_TASK_TO_GRID_SESSION'] in the old version of synapse-client returns `undefined`.\n\n const {\n mutateAsync: getOrCreateLegacyGridSessionForUnassignedTask,\n isPending: legacyOpenGridIsPending,\n } = useGridSessionForCurationTask_legacy()\n\n const {\n mutateAsync: getOrCreateTaskLinkedGridSession,\n isPending: taskLinkedOpenGridIsPending,\n } = useGridSessionForCurationTask()\n\n const gridSourceEntityId = getGridSourceIdForTask(curationTask)\n const {\n data: sourceEntityPermissions,\n isLoading: isLoadingEntityPermissions,\n } = useGetEntityPermissions(gridSourceEntityId)\n\n const hasPermission = sourceEntityPermissions?.canView\n\n const openNewOrExistingCuratorSession = useCallback(async () => {\n let gridSession: GridSession\n try {\n if (isTaskLinkedSessionFlagEnabled) {\n const result = await getOrCreateTaskLinkedGridSession(taskBundle)\n gridSession = result.gridSession\n } else {\n gridSession = await getOrCreateLegacyGridSessionForUnassignedTask({\n curationTask,\n })\n }\n openGridSessionInNewWindow(gridSession.sessionId!, curationTask.taskId!)\n } catch (error) {\n if (error instanceof SynapseClientError && error.status === 403) {\n console.error(error)\n displayToast(OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE, 'danger', {\n title: OPEN_CURATOR_ERROR_TITLE,\n })\n } else {\n console.error('Error opening Curator for curation task', error)\n const errorMessage =\n error instanceof Error ? error.message : String(error)\n displayToast(errorMessage, 'danger', {\n title: OPEN_CURATOR_ERROR_TITLE,\n })\n }\n }\n }, [\n curationTask,\n taskBundle,\n isTaskLinkedSessionFlagEnabled,\n getOrCreateLegacyGridSessionForUnassignedTask,\n getOrCreateTaskLinkedGridSession,\n ])\n\n const handleClickOpenCurator = useCallback(() => {\n void openNewOrExistingCuratorSession()\n }, [openNewOrExistingCuratorSession])\n\n return {\n hasPermission,\n isLoading: isLoadingEntityPermissions,\n isPending: isTaskLinkedSessionFlagEnabled\n ? taskLinkedOpenGridIsPending\n : legacyOpenGridIsPending,\n onClick: handleClickOpenCurator,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AA0BA,SAAS,EAA2B,GAAuB,GAAgB;CACzE,IAAM,IAAU,EAAqB,GAAe,EAAO;AAC3D,QAAO,KAAK,GAAS,UAAU,WAAW;;AAG5C,SAAwB,EACtB,GACoC;CACpC,IAAM,IAAe,EAAW,MAE1B,IACJ,EAAkB,EAAgB,kCAAkC,IACpE,IAKI,EACJ,aAAa,GACb,WAAW,MACT,GAAsC,EAEpC,EACJ,aAAa,GACb,WAAW,MACT,GAA+B,EAG7B,EACJ,MAAM,GACN,WAAW,MACT,EAJuB,EAAuB,EAItB,CAAmB,EAEzC,IAAgB,GAAyB,SAEzC,IAAkC,EAAY,YAAY;EAC9D,IAAI;AACJ,MAAI;AASF,GARA,AAIE,IAJE,KAEY,MADO,EAAiC,EAAW,EAC5C,cAEP,MAAM,EAA8C,EAChE,iBACD,CAAC,EAEJ,EAA2B,EAAY,WAAY,EAAa,OAAQ;WACjE,GAAO;AACd,GAAI,aAAiB,KAAsB,EAAM,WAAW,OAC1D,QAAQ,MAAM,EAAM,EACpB,EAAa,GAAyC,UAAU,EAC9D,OAAO,GACR,CAAC,KAEF,QAAQ,MAAM,2CAA2C,EAAM,EAG/D,EADE,aAAiB,QAAQ,EAAM,UAAU,OAAO,EAAM,EAC7B,UAAU,EACnC,OAAO,GACR,CAAC;;IAGL;EACD;EACA;EACA;EACA;EACA;EACD,CAAC,EAEI,IAAyB,QAAkB;AAC1C,KAAiC;IACrC,CAAC,EAAgC,CAAC;AAErC,QAAO;EACL;EACA,WAAW;EACX,WAAW,IACP,IACA;EACJ,SAAS;EACV"}
@@ -2,4 +2,5 @@ export declare const OPEN_CURATOR_ERROR_TITLE = "An error occurred while trying
2
2
  export declare const OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE = "You don't have permission to view the existing Curator session for this task. It was likely created by another data contributor. A data manager should create a new task and assign it to you or your team.";
3
3
  export declare const OPEN_CURATOR_TOOLTIP_TITLE = "Open Curator to edit metadata";
4
4
  export declare const OPEN_CURATOR_NO_PERMISSION_ON_SOURCE_ERROR_MESSAGE = "You do not have permission to view the Working Copy";
5
+ export declare const OPEN_CURATOR_LINK_TASK_CONFLICT_ERROR_MESSAGE = "Failed to link Grid session to Curation Task. The task was updated since it was last retrieved. Please refresh and try again.";
5
6
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/entity/metadata-task/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,mDACa,CAAA;AAClD,eAAO,MAAM,uCAAuC,gNAC2J,CAAA;AAE/M,eAAO,MAAM,0BAA0B,kCAAkC,CAAA;AACzE,eAAO,MAAM,kDAAkD,wDACR,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/features/entity/metadata-task/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,mDACa,CAAA;AAClD,eAAO,MAAM,uCAAuC,gNAC2J,CAAA;AAE/M,eAAO,MAAM,0BAA0B,kCAAkC,CAAA;AACzE,eAAO,MAAM,kDAAkD,wDACR,CAAA;AACvD,eAAO,MAAM,6CAA6C,kIACuE,CAAA"}
@@ -1,6 +1,6 @@
1
1
  //#region src/features/entity/metadata-task/utils/constants.ts
2
- var e = "An error occurred while trying to open Curator", t = "You don't have permission to view the existing Curator session for this task. It was likely created by another data contributor. A data manager should create a new task and assign it to you or your team.", n = "Open Curator to edit metadata", r = "You do not have permission to view the Working Copy";
2
+ var e = "An error occurred while trying to open Curator", t = "You don't have permission to view the existing Curator session for this task. It was likely created by another data contributor. A data manager should create a new task and assign it to you or your team.", n = "Open Curator to edit metadata", r = "You do not have permission to view the Working Copy", i = "Failed to link Grid session to Curation Task. The task was updated since it was last retrieved. Please refresh and try again.";
3
3
  //#endregion
4
- export { e as OPEN_CURATOR_ERROR_TITLE, r as OPEN_CURATOR_NO_PERMISSION_ON_SOURCE_ERROR_MESSAGE, n as OPEN_CURATOR_TOOLTIP_TITLE, t as OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE };
4
+ export { e as OPEN_CURATOR_ERROR_TITLE, i as OPEN_CURATOR_LINK_TASK_CONFLICT_ERROR_MESSAGE, r as OPEN_CURATOR_NO_PERMISSION_ON_SOURCE_ERROR_MESSAGE, n as OPEN_CURATOR_TOOLTIP_TITLE, t as OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE };
5
5
 
6
6
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":[],"sources":["../../../../../src/features/entity/metadata-task/utils/constants.ts"],"sourcesContent":["export const OPEN_CURATOR_ERROR_TITLE =\n 'An error occurred while trying to open Curator'\nexport const OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE =\n \"You don't have permission to view the existing Curator session for this task. It was likely created by another data contributor. A data manager should create a new task and assign it to you or your team.\"\n\nexport const OPEN_CURATOR_TOOLTIP_TITLE = 'Open Curator to edit metadata'\nexport const OPEN_CURATOR_NO_PERMISSION_ON_SOURCE_ERROR_MESSAGE =\n 'You do not have permission to view the Working Copy'\n"],"mappings":";AAAA,IAAa,IACX,kDACW,IACX,+MAEW,IAA6B,iCAC7B,IACX"}
1
+ {"version":3,"file":"constants.js","names":[],"sources":["../../../../../src/features/entity/metadata-task/utils/constants.ts"],"sourcesContent":["export const OPEN_CURATOR_ERROR_TITLE =\n 'An error occurred while trying to open Curator'\nexport const OPEN_CURATOR_UNAUTHORIZED_ERROR_MESSAGE =\n \"You don't have permission to view the existing Curator session for this task. It was likely created by another data contributor. A data manager should create a new task and assign it to you or your team.\"\n\nexport const OPEN_CURATOR_TOOLTIP_TITLE = 'Open Curator to edit metadata'\nexport const OPEN_CURATOR_NO_PERMISSION_ON_SOURCE_ERROR_MESSAGE =\n 'You do not have permission to view the Working Copy'\nexport const OPEN_CURATOR_LINK_TASK_CONFLICT_ERROR_MESSAGE =\n 'Failed to link Grid session to Curation Task. The task was updated since it was last retrieved. Please refresh and try again.'\n"],"mappings":";AAAA,IAAa,IACX,kDACW,IACX,+MAEW,IAA6B,iCAC7B,IACX,uDACW,IACX"}