sanity 6.14.0 → 6.14.1

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 (163) hide show
  1. package/lib/{AddonDatasetProvider-0aiLWkZg.js → AddonDatasetProvider-C9tdum2G.js} +2 -2
  2. package/lib/{AddonDatasetProvider-0aiLWkZg.js.map → AddonDatasetProvider-C9tdum2G.js.map} +1 -1
  3. package/lib/{CalendarFilter-DVz369RP.js → CalendarFilter-C80uOkw-.js} +3 -3
  4. package/lib/{CalendarFilter-DVz369RP.js.map → CalendarFilter-C80uOkw-.js.map} +1 -1
  5. package/lib/{CommandList-CTDV_QZY.js → CommandList-duj-LVnd.js} +2 -2
  6. package/lib/{CommandList-CTDV_QZY.js.map → CommandList-duj-LVnd.js.map} +1 -1
  7. package/lib/{CommentInput-B5T1Iwnt.js → CommentInput-BXYQnGhq.js} +5 -5
  8. package/lib/{CommentInput-B5T1Iwnt.js.map → CommentInput-BXYQnGhq.js.map} +1 -1
  9. package/lib/{CommentsDocumentLayout-ByFwej_y.js → CommentsDocumentLayout-DAwAhx7q.js} +2 -2
  10. package/lib/{CommentsDocumentLayout-ByFwej_y.js.map → CommentsDocumentLayout-DAwAhx7q.js.map} +1 -1
  11. package/lib/{CommentsDocumentLayout-Czb6fC0_.js → CommentsDocumentLayout-pfM29WSy.js} +2 -2
  12. package/lib/{CommentsDocumentLayout-Czb6fC0_.js.map → CommentsDocumentLayout-pfM29WSy.js.map} +1 -1
  13. package/lib/{CommentsEnabledProvider-D2gutvsb.js → CommentsEnabledProvider-DN_oXwXM.js} +3 -3
  14. package/lib/{CommentsEnabledProvider-D2gutvsb.js.map → CommentsEnabledProvider-DN_oXwXM.js.map} +1 -1
  15. package/lib/{CommentsField-D2Fum0Jx.js → CommentsField-B7wTBRMB.js} +5 -5
  16. package/lib/{CommentsField-D2Fum0Jx.js.map → CommentsField-B7wTBRMB.js.map} +1 -1
  17. package/lib/{CommentsField-YM3cp3fA.js → CommentsField-BxoVuJOl.js} +4 -4
  18. package/lib/{CommentsField-YM3cp3fA.js.map → CommentsField-BxoVuJOl.js.map} +1 -1
  19. package/lib/{CommentsInput-Bx2t5AW_.js → CommentsInput-C3rEb5L8.js} +6 -6
  20. package/lib/{CommentsInput-Bx2t5AW_.js.map → CommentsInput-C3rEb5L8.js.map} +1 -1
  21. package/lib/{CommentsInput-BBBng3CJ.js → CommentsInput-CU-PFXmu.js} +7 -7
  22. package/lib/{CommentsInput-BBBng3CJ.js.map → CommentsInput-CU-PFXmu.js.map} +1 -1
  23. package/lib/{CommentsInspector-BnSG5Mq0.js → CommentsInspector-BJ1qwj6P.js} +6 -6
  24. package/lib/{CommentsInspector-BnSG5Mq0.js.map → CommentsInspector-BJ1qwj6P.js.map} +1 -1
  25. package/lib/{CommentsInspector-B5V_Bpz5.js → CommentsInspector-BQiMPjvm.js} +6 -6
  26. package/lib/{CommentsInspector-B5V_Bpz5.js.map → CommentsInspector-BQiMPjvm.js.map} +1 -1
  27. package/lib/{CommentsListItem-DnqAlN4p.js → CommentsListItem-QyYan1DB.js} +5 -5
  28. package/lib/{CommentsListItem-DnqAlN4p.js.map → CommentsListItem-QyYan1DB.js.map} +1 -1
  29. package/lib/{CommentsListItem-DVE4IMls.js → CommentsListItem-dvKmANi3.js} +4 -4
  30. package/lib/{CommentsListItem-DVE4IMls.js.map → CommentsListItem-dvKmANi3.js.map} +1 -1
  31. package/lib/{CommentsSelectedPathProvider-DRJ3Xqs4.js → CommentsSelectedPathProvider-COcPb3W3.js} +3 -3
  32. package/lib/{CommentsSelectedPathProvider-DRJ3Xqs4.js.map → CommentsSelectedPathProvider-COcPb3W3.js.map} +1 -1
  33. package/lib/{CommentsStudioLayout-Di510XhD.js → CommentsStudioLayout-BkX6o14w.js} +3 -3
  34. package/lib/{CommentsStudioLayout-Di510XhD.js.map → CommentsStudioLayout-BkX6o14w.js.map} +1 -1
  35. package/lib/{CommentsStudioLayout-Z09s50bM.js → CommentsStudioLayout-dIXEz52s.js} +3 -3
  36. package/lib/{CommentsStudioLayout-Z09s50bM.js.map → CommentsStudioLayout-dIXEz52s.js.map} +1 -1
  37. package/lib/{GlobalPerspectiveMenu-Cwur4_iD.js → GlobalPerspectiveMenu-0Hs276Z-.js} +15 -15
  38. package/lib/{GlobalPerspectiveMenu-Cwur4_iD.js.map → GlobalPerspectiveMenu-0Hs276Z-.js.map} +1 -1
  39. package/lib/{LoadingBlock-Ch_dBXfn.js → LoadingBlock-CElIdb7F.js} +3 -3
  40. package/lib/{LoadingBlock-Ch_dBXfn.js.map → LoadingBlock-CElIdb7F.js.map} +1 -1
  41. package/lib/{PerspectiveProvider-Yk7lgugx.js → PerspectiveProvider-D-6sweQH.js} +130 -97
  42. package/lib/PerspectiveProvider-D-6sweQH.js.map +1 -0
  43. package/lib/{ReleaseAvatar-C68bGuVQ.js → ReleaseAvatar-Bqp_Ci7r.js} +4 -4
  44. package/lib/{ReleaseAvatar-C68bGuVQ.js.map → ReleaseAvatar-Bqp_Ci7r.js.map} +1 -1
  45. package/lib/{ReleasesMetadataProvider-DabLuMD8.js → ReleasesMetadataProvider-BD6XRcpT.js} +2 -2
  46. package/lib/{ReleasesMetadataProvider-DabLuMD8.js.map → ReleasesMetadataProvider-BD6XRcpT.js.map} +1 -1
  47. package/lib/{ReleasesStudioLayout-DsygG30q.js → ReleasesStudioLayout-C6mmxoaY.js} +7 -7
  48. package/lib/{ReleasesStudioLayout-DsygG30q.js.map → ReleasesStudioLayout-C6mmxoaY.js.map} +1 -1
  49. package/lib/{ReleasesTool-CNXNODI_.js → ReleasesTool-DIDmkzic.js} +23 -23
  50. package/lib/{ReleasesTool-CNXNODI_.js.map → ReleasesTool-DIDmkzic.js.map} +1 -1
  51. package/lib/{SchedulePublishingStudioLayout-EsgEGZ7F.js → SchedulePublishingStudioLayout-DrZO-qbI.js} +3 -3
  52. package/lib/{SchedulePublishingStudioLayout-EsgEGZ7F.js.map → SchedulePublishingStudioLayout-DrZO-qbI.js.map} +1 -1
  53. package/lib/{SchedulePublishingUpsellProvider-CWxgqzFp.js → SchedulePublishingUpsellProvider-DeZ_jZIX.js} +2 -2
  54. package/lib/{SchedulePublishingUpsellProvider-CWxgqzFp.js.map → SchedulePublishingUpsellProvider-DeZ_jZIX.js.map} +1 -1
  55. package/lib/{ScheduledPublishingEnabledProvider-CQ-T1Y96.js → ScheduledPublishingEnabledProvider-B8C0_tc5.js} +3 -3
  56. package/lib/{ScheduledPublishingEnabledProvider-CQ-T1Y96.js.map → ScheduledPublishingEnabledProvider-B8C0_tc5.js.map} +1 -1
  57. package/lib/{SearchProvider-CEXmRg1N.js → SearchProvider-T8fsDJV5.js} +8 -8
  58. package/lib/{SearchProvider-CEXmRg1N.js.map → SearchProvider-T8fsDJV5.js.map} +1 -1
  59. package/lib/{SingleDocReleaseLayout-ByDXFS8N.js → SingleDocReleaseLayout-BpMXU9KY.js} +2 -2
  60. package/lib/{SingleDocReleaseLayout-ByDXFS8N.js.map → SingleDocReleaseLayout-BpMXU9KY.js.map} +1 -1
  61. package/lib/{SingleDocReleaseUpsellProvider-ByuDpBIG.js → SingleDocReleaseUpsellProvider-7_OXHySY.js} +3 -3
  62. package/lib/{SingleDocReleaseUpsellProvider-ByuDpBIG.js.map → SingleDocReleaseUpsellProvider-7_OXHySY.js.map} +1 -1
  63. package/lib/{TasksFooterOpenTasks-BSO8TgVF.js → TasksFooterOpenTasks-IFtOEGnB.js} +2 -2
  64. package/lib/{TasksFooterOpenTasks-BSO8TgVF.js.map → TasksFooterOpenTasks-IFtOEGnB.js.map} +1 -1
  65. package/lib/{TasksStudioActiveToolLayout-BXktrH08.js → TasksStudioActiveToolLayout-C99LQz4S.js} +20 -20
  66. package/lib/{TasksStudioActiveToolLayout-BXktrH08.js.map → TasksStudioActiveToolLayout-C99LQz4S.js.map} +1 -1
  67. package/lib/{TasksStudioLayout-BfN-M93c.js → TasksStudioLayout-CmFbUpnB.js} +4 -4
  68. package/lib/{TasksStudioLayout-BfN-M93c.js.map → TasksStudioLayout-CmFbUpnB.js.map} +1 -1
  69. package/lib/{TasksStudioNavbar-CfqloSfP.js → TasksStudioNavbar-DB7DJC4e.js} +2 -2
  70. package/lib/{TasksStudioNavbar-CfqloSfP.js.map → TasksStudioNavbar-DB7DJC4e.js.map} +1 -1
  71. package/lib/{TimeZoneButton-FCwCyJ1J.js → TimeZoneButton-B_ki5v8q.js} +7 -7
  72. package/lib/{TimeZoneButton-FCwCyJ1J.js.map → TimeZoneButton-B_ki5v8q.js.map} +1 -1
  73. package/lib/{Tool-PzN5dskE.js → Tool-DlkZrcrD.js} +15 -15
  74. package/lib/{Tool-PzN5dskE.js.map → Tool-DlkZrcrD.js.map} +1 -1
  75. package/lib/{UpsellPanel-T-5ZD_7k.js → UpsellPanel-ITWwjktp.js} +2 -2
  76. package/lib/{UpsellPanel-T-5ZD_7k.js.map → UpsellPanel-ITWwjktp.js.map} +1 -1
  77. package/lib/{VariantsStudioNavbar-D0XbvL1D.js → VariantsStudioNavbar-DwEV1roH.js} +9 -9
  78. package/lib/{VariantsStudioNavbar-D0XbvL1D.js.map → VariantsStudioNavbar-DwEV1roH.js.map} +1 -1
  79. package/lib/{VariantsTool-B3EEDrQT.js → VariantsTool-Dzhy3PST.js} +12 -12
  80. package/lib/{VariantsTool-B3EEDrQT.js.map → VariantsTool-Dzhy3PST.js.map} +1 -1
  81. package/lib/{WorkspaceLoader-BH_VDaY4.js → WorkspaceLoader-Ck4TMoR5.js} +31 -31
  82. package/lib/{WorkspaceLoader-BH_VDaY4.js.map → WorkspaceLoader-Ck4TMoR5.js.map} +1 -1
  83. package/lib/_createContext.js +1 -1
  84. package/lib/_unstable-embedded.js +5 -5
  85. package/lib/{buildRangeDecorationSelectionsFromComments-B1-tJPvG.js → buildRangeDecorationSelectionsFromComments-BnlhrvDK.js} +3 -3
  86. package/lib/{buildRangeDecorationSelectionsFromComments-B1-tJPvG.js.map → buildRangeDecorationSelectionsFromComments-BnlhrvDK.js.map} +1 -1
  87. package/lib/{buildTextSelectionFromFragment-BiLg851R.js → buildTextSelectionFromFragment-BXrYd9lr.js} +3 -3
  88. package/lib/{buildTextSelectionFromFragment-BiLg851R.js.map → buildTextSelectionFromFragment-BXrYd9lr.js.map} +1 -1
  89. package/lib/{constants-DdgHySkY.js → constants-BQItnHll.js} +2 -2
  90. package/lib/{constants-DdgHySkY.js.map → constants-BQItnHll.js.map} +1 -1
  91. package/lib/{datastores-D1tF4HQA.js → datastores-DNOJm1LF.js} +2 -2
  92. package/lib/{datastores-D1tF4HQA.js.map → datastores-DNOJm1LF.js.map} +1 -1
  93. package/lib/{i18n-Cl_y4bbR.js → i18n-JUYUb7y_.js} +2 -2
  94. package/lib/{i18n-Cl_y4bbR.js.map → i18n-JUYUb7y_.js.map} +1 -1
  95. package/lib/index.js +38 -38
  96. package/lib/{inputResolver-CUWPjdGU.js → inputResolver-Ce1lTBE-.js} +4 -4
  97. package/lib/{inputResolver-CUWPjdGU.js.map → inputResolver-Ce1lTBE-.js.map} +1 -1
  98. package/lib/{navigation.telemetry-rXclq03x.js → navigation.telemetry-BPxX2IEN.js} +10 -10
  99. package/lib/{navigation.telemetry-rXclq03x.js.map → navigation.telemetry-BPxX2IEN.js.map} +1 -1
  100. package/lib/{plugin-CSp8hwQE.js → plugin-Bvxhb5ko.js} +8 -8
  101. package/lib/{plugin-CSp8hwQE.js.map → plugin-Bvxhb5ko.js.map} +1 -1
  102. package/lib/{plugin-Daxe5hwG.js → plugin-Cv6TLYbE.js} +6 -6
  103. package/lib/{plugin-Daxe5hwG.js.map → plugin-Cv6TLYbE.js.map} +1 -1
  104. package/lib/{plugin-BFTpdKKH.js → plugin-D6-7jrXf.js} +3 -3
  105. package/lib/{plugin-BFTpdKKH.js.map → plugin-D6-7jrXf.js.map} +1 -1
  106. package/lib/{plugin-dtgDcBsL.js → plugin-D_GVPwTR.js} +6 -6
  107. package/lib/{plugin-dtgDcBsL.js.map → plugin-D_GVPwTR.js.map} +1 -1
  108. package/lib/{releases.telemetry-B6tRA9U2.js → releases.telemetry-BAO7xaO7.js} +6 -6
  109. package/lib/{releases.telemetry-B6tRA9U2.js.map → releases.telemetry-BAO7xaO7.js.map} +1 -1
  110. package/lib/{resources-BjljYbUa.js → resources-Bw1bpPhG.js} +2 -2
  111. package/lib/{resources-BjljYbUa.js.map → resources-Bw1bpPhG.js.map} +1 -1
  112. package/lib/{resources-DYxnNjS8.js → resources-CC1qBsSO.js} +2 -2
  113. package/lib/{resources-DYxnNjS8.js.map → resources-CC1qBsSO.js.map} +1 -1
  114. package/lib/{resources-D7Mp6N-8.js → resources-CH42UqhC.js} +2 -2
  115. package/lib/{resources-D7Mp6N-8.js.map → resources-CH42UqhC.js.map} +1 -1
  116. package/lib/{resources-GpX0LblP.js → resources-Cq1lXH8T.js} +2 -2
  117. package/lib/{resources-GpX0LblP.js.map → resources-Cq1lXH8T.js.map} +1 -1
  118. package/lib/{resources-B7mfG9Km.js → resources-D7XsFe7y.js} +2 -2
  119. package/lib/{resources-B7mfG9Km.js.map → resources-D7XsFe7y.js.map} +1 -1
  120. package/lib/{resources-CmmAynkL.js → resources-DYn0yzEW.js} +2 -2
  121. package/lib/{resources-CmmAynkL.js.map → resources-DYn0yzEW.js.map} +1 -1
  122. package/lib/{resources-C79qQva3.js → resources-TsgtFPi7.js} +2 -2
  123. package/lib/{resources-C79qQva3.js.map → resources-TsgtFPi7.js.map} +1 -1
  124. package/lib/{scheduleItem-Bdvl81Kb.js → scheduleItem-5fXCZgfo.js} +13 -13
  125. package/lib/{scheduleItem-Bdvl81Kb.js.map → scheduleItem-5fXCZgfo.js.map} +1 -1
  126. package/lib/{schedules-D7bPbTPm.js → schedules-BsE0_g47.js} +3 -3
  127. package/lib/{schedules-D7bPbTPm.js.map → schedules-BsE0_g47.js.map} +1 -1
  128. package/lib/{searchDocumentRelease-v1o9dMnE.js → searchDocumentRelease-Bang3A8l.js} +5 -5
  129. package/lib/{searchDocumentRelease-v1o9dMnE.js.map → searchDocumentRelease-Bang3A8l.js.map} +1 -1
  130. package/lib/{studioClient-EJDu6kOb.js → studioClient-C7B6Aobi.js} +2 -2
  131. package/lib/{studioClient-EJDu6kOb.js.map → studioClient-C7B6Aobi.js.map} +1 -1
  132. package/lib/{useActiveReleases-Bh_Q6f7G.js → useActiveReleases-DxYjyTB1.js} +5 -5
  133. package/lib/{useActiveReleases-Bh_Q6f7G.js.map → useActiveReleases-DxYjyTB1.js.map} +1 -1
  134. package/lib/{useBundleDocuments-zP6JiTzz.js → useBundleDocuments-2YaaN-2l.js} +3 -3
  135. package/lib/{useBundleDocuments-zP6JiTzz.js.map → useBundleDocuments-2YaaN-2l.js.map} +1 -1
  136. package/lib/{useComments-BGOJwUe0.js → useComments-DWh1k0kS.js} +5 -5
  137. package/lib/{useComments-BGOJwUe0.js.map → useComments-DWh1k0kS.js.map} +1 -1
  138. package/lib/{useCommentsTelemetry-BMkf6MTO.js → useCommentsTelemetry-BbJ8lTKN.js} +4 -4
  139. package/lib/{useCommentsTelemetry-BMkf6MTO.js.map → useCommentsTelemetry-BbJ8lTKN.js.map} +1 -1
  140. package/lib/{useDocumentPreviewValues-CryTvfKc.js → useDocumentPreviewValues-CK5VteK3.js} +4 -4
  141. package/lib/{useDocumentPreviewValues-CryTvfKc.js.map → useDocumentPreviewValues-CK5VteK3.js.map} +1 -1
  142. package/lib/{useFieldActions-BTj7VsW5.js → useFieldActions-BmY1Kh3s.js} +2 -2
  143. package/lib/{useFieldActions-BTj7VsW5.js.map → useFieldActions-BmY1Kh3s.js.map} +1 -1
  144. package/lib/{useProjectId-BN6GCdwS.js → useProjectId-C8pZxybz.js} +2 -2
  145. package/lib/{useProjectId-BN6GCdwS.js.map → useProjectId-C8pZxybz.js.map} +1 -1
  146. package/lib/{useReleasesToolAvailable-CQ9-I8Tt.js → useReleasesToolAvailable-DjaSujLo.js} +3 -3
  147. package/lib/{useReleasesToolAvailable-CQ9-I8Tt.js.map → useReleasesToolAvailable-DjaSujLo.js.map} +1 -1
  148. package/lib/{useScheduledDraftMenuActions-OSkdxONo.js → useScheduledDraftMenuActions-DSJU6xQa.js} +9 -9
  149. package/lib/{useScheduledDraftMenuActions-OSkdxONo.js.map → useScheduledDraftMenuActions-DSJU6xQa.js.map} +1 -1
  150. package/lib/{useStudioUrl-DUBI_S4K.js → useStudioUrl-DcTGV00c.js} +5 -5
  151. package/lib/{useStudioUrl-DUBI_S4K.js.map → useStudioUrl-DcTGV00c.js.map} +1 -1
  152. package/lib/{useTasksNavigation-fohCXW6l.js → useTasksNavigation-tAXFJd2V.js} +2 -2
  153. package/lib/{useTasksNavigation-fohCXW6l.js.map → useTasksNavigation-tAXFJd2V.js.map} +1 -1
  154. package/lib/{useTimeZone-DM8ZmUO2.js → useTimeZone-Dj7C8tfZ.js} +2 -2
  155. package/lib/{useTimeZone-DM8ZmUO2.js.map → useTimeZone-Dj7C8tfZ.js.map} +1 -1
  156. package/lib/{utils-D-4rueJZ.js → utils-CT034e4q.js} +3 -3
  157. package/lib/{utils-D-4rueJZ.js.map → utils-CT034e4q.js.map} +1 -1
  158. package/lib/{validationUtils-jTd1rxfY.js → validationUtils-BZPoHEYN.js} +4 -4
  159. package/lib/{validationUtils-jTd1rxfY.js.map → validationUtils-BZPoHEYN.js.map} +1 -1
  160. package/lib/{version-D0Vx4cX1.js → version-BDSMcNU7.js} +2 -2
  161. package/lib/{version-D0Vx4cX1.js.map → version-BDSMcNU7.js.map} +1 -1
  162. package/package.json +17 -17
  163. package/lib/PerspectiveProvider-Yk7lgugx.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"releases.telemetry-B6tRA9U2.js","names":["documentStore.pair.operationEvents(publishedDocId, docTypeName)","pair","useMemo(\n () => documentStore.pair.operationEvents(publishedDocId, docTypeName),\n [docTypeName, documentStore.pair, publishedDocId],\n )","showCompletionToasts = true","getPublishedId(versionId)","(isVersionId(versionId) && getVersionFromId(versionId)) || undefined","discardScopeId ?? getPairTarget(targetDocumentState)","getVersionNameFromId(versionId as VersionId)","versionId as VersionId","rawReleaseName || coreT('release.placeholder-untitled-release')","schema.get(documentType)","discardScopeId ?? getTargetScopeId(targetDocumentState)","targetScopeId ? getVersionId(publishedId, targetScopeId) : undefined","() => {\n if (!event || event === prevEvent.current) return\n prevEvent.current = event\n\n if (!awaitingDiscardRef.current) return\n if (event.op !== 'discardChanges' || event.idPair.versionId !== targetVersionId) return\n\n awaitingDiscardRef.current = false\n\n if (event.type === 'error' && showCompletionToasts) {\n toast.push({\n closable: true,\n status: 'error',\n title: coreT('release.action.discard-version.failure'),\n description: event.error.message,\n })\n }\n\n onClose()\n }","[coreT, event, onClose, showCompletionToasts, targetVersionId, toast]","() => {\n if (discardChanges.disabled) return\n\n setIsDiscarding(true)\n awaitingDiscardRef.current = true\n discardChanges.execute()\n }","discardChanges.disabled","useCallback(() => {\n if (discardChanges.disabled) return\n\n setIsDiscarding(true)\n awaitingDiscardRef.current = true\n discardChanges.execute()\n }, [discardChanges])","{releaseTitle: releaseName}","<Translate\n t={t}\n i18nKey={`discard-version-dialog.header-${discardType}`}\n values={{releaseTitle: releaseName}}\n />","`discard-version-dialog.header-${discardType}`","{\n disabled: isDiscarding,\n onClick: onClose,\n }","t(`discard-version-dialog.title-${discardType}`)","`discard-version-dialog.title-${discardType}`","{\n text: t(`discard-version-dialog.title-${discardType}`),\n onClick: handleDiscardVersion,\n disabled: isDiscarding || !isTargetReady || Boolean(discardChanges.disabled),\n loading: isDiscarding,\n }","isDiscarding || !isTargetReady || Boolean(discardChanges.disabled)","{\n cancelButton: {\n disabled: isDiscarding,\n onClick: onClose,\n },\n confirmButton: {\n text: t(`discard-version-dialog.title-${discardType}`),\n onClick: handleDiscardVersion,\n disabled: isDiscarding || !isTargetReady || Boolean(discardChanges.disabled),\n loading: isDiscarding,\n },\n }","schemaType ? (\n <Preview\n value={{_id: isGoingToUnpublish ? publishedId : versionId}}\n schemaType={schemaType}\n // Resolve the preview under the perspective of what's being discarded:\n // the published doc when unpublishing, the drafts perspective when\n // discarding a draft, otherwise the release version. Without the\n // explicit 'drafts' stack a draft falls back to its published value\n // (or \"Untitled\" when none exists), so it wouldn't show the draft\n // being discarded.\n perspectiveStack={\n isGoingToUnpublish ? [] : discardType === 'draft' ? ['drafts'] : [currentRelease]\n }\n />\n ) : (\n <LoadingBlock />\n )","{maxWidth: '400px'}","<Box paddingX={2} style={{maxWidth: '400px'}}>\n <Text size={1} muted>\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.description-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n </Text>\n </Box>","`discard-version-dialog.description-${discardType}`","<Stack gap={3} paddingX={3} marginBottom={2}>\n {schemaType ? (\n <Preview\n value={{_id: isGoingToUnpublish ? publishedId : versionId}}\n schemaType={schemaType}\n // Resolve the preview under the perspective of what's being discarded:\n // the published doc when unpublishing, the drafts perspective when\n // discarding a draft, otherwise the release version. Without the\n // explicit 'drafts' stack a draft falls back to its published value\n // (or \"Untitled\" when none exists), so it wouldn't show the draft\n // being discarded.\n perspectiveStack={\n isGoingToUnpublish ? [] : discardType === 'draft' ? ['drafts'] : [currentRelease]\n }\n />\n ) : (\n <LoadingBlock />\n )}\n <Box paddingX={2} style={{maxWidth: '400px'}}>\n <Text size={1} muted>\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.description-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n </Text>\n </Box>\n </Stack>","<Dialog\n id={'discard-version-dialog'}\n header={\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.header-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n }\n onClose={onClose}\n width={0}\n padding={false}\n footer={{\n cancelButton: {\n disabled: isDiscarding,\n onClick: onClose,\n },\n confirmButton: {\n text: t(`discard-version-dialog.title-${discardType}`),\n onClick: handleDiscardVersion,\n disabled: isDiscarding || !isTargetReady || Boolean(discardChanges.disabled),\n loading: isDiscarding,\n },\n }}\n >\n <Stack gap={3} paddingX={3} marginBottom={2}>\n {schemaType ? (\n <Preview\n value={{_id: isGoingToUnpublish ? publishedId : versionId}}\n schemaType={schemaType}\n // Resolve the preview under the perspective of what's being discarded:\n // the published doc when unpublishing, the drafts perspective when\n // discarding a draft, otherwise the release version. Without the\n // explicit 'drafts' stack a draft falls back to its published value\n // (or \"Untitled\" when none exists), so it wouldn't show the draft\n // being discarded.\n perspectiveStack={\n isGoingToUnpublish ? [] : discardType === 'draft' ? ['drafts'] : [currentRelease]\n }\n />\n ) : (\n <LoadingBlock />\n )}\n <Box paddingX={2} style={{maxWidth: '400px'}}>\n <Text size={1} muted>\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.description-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n </Text>\n </Box>\n </Stack>\n </Dialog>","Array.from(releases.values()).filter((release) => {\n return ARCHIVED_RELEASE_STATES.includes(release.state)\n })","(release) => {\n return ARCHIVED_RELEASE_STATES.includes(release.state)\n }","useMemo(\n () =>\n Array.from(releases.values()).filter((release) => {\n return ARCHIVED_RELEASE_STATES.includes(release.state)\n }),\n [releases],\n )","{data: archivedReleases, error, loading}","useMemo(\n () => ({data: archivedReleases, error, loading}),\n [archivedReleases, error, loading],\n )","{children, tone}: {children?: React.ReactNode; tone?: BadgeTone}","{\n color: `var(--card-badge-${tone ?? 'default'}-fg-color)`,\n backgroundColor: `var(--card-badge-${tone ?? 'default'}-bg-color)`,\n borderRadius: 3,\n textDecoration: 'none',\n padding: '0px 2px',\n fontWeight: 500,\n }","`var(--card-badge-${tone ?? 'default'}-fg-color)`","`var(--card-badge-${tone ?? 'default'}-bg-color)`","<span\n style={\n {\n color: `var(--card-badge-${tone ?? 'default'}-fg-color)`,\n backgroundColor: `var(--card-badge-${tone ?? 'default'}-bg-color)`,\n borderRadius: 3,\n textDecoration: 'none',\n padding: '0px 2px',\n fontWeight: 500,\n } as CSSProperties\n }\n >\n {children}\n </span>","{\n color: `var(--card-badge-${tone ?? 'default'}-fg-color)`,\n backgroundColor: `var(--card-badge-${tone ?? 'default'}-bg-color)`,\n borderRadius: 3,\n textDecoration: 'none',\n padding: '0px 2px',\n fontWeight: 500,\n } as CSSProperties","showCompletionToasts = true","getPublishedId(documentVersionId)","getVersionFromId(documentVersionId)","getReleaseTone(release as ReleaseDocument)","(candidate) => getReleaseIdFromReleaseDocumentId(candidate._id) === scopeId","schema.get(documentType)","{_id: documentVersionId}","{schemaType, value: {_id: documentVersionId}}","() => {\n if (!event || event === prevEvent.current) return\n prevEvent.current = event\n\n if (!awaitingUnpublishRef.current) return\n // `operationEvents` is keyed by published id and type only, so an unpublish of another bundle\n // of the same document would otherwise be mistaken for this dialog's own result.\n if (event.op !== 'unpublish' || event.idPair.versionId !== documentVersionId) return\n\n awaitingUnpublishRef.current = false\n\n if (showCompletionToasts) {\n toast.push(\n event.type === 'success'\n ? {\n closable: true,\n status: 'success',\n description: (\n <Translate\n t={coreT}\n i18nKey={'release.action.unpublish-version.success'}\n values={{title: previewTitle || documentVersionId}}\n />\n ),\n }\n : {\n closable: true,\n status: 'error',\n title: coreT('release.action.unpublish-version.failure'),\n description: event.error.message,\n },\n )\n }\n\n onClose()\n }","[coreT, documentVersionId, event, onClose, previewTitle, showCompletionToasts, toast]","() => {\n if (!canUnpublish) return\n\n setIsUnpublishing(true)\n awaitingUnpublishRef.current = true\n unpublish.execute()\n }","useCallback(() => {\n if (!canUnpublish) return\n\n setIsUnpublishing(true)\n awaitingUnpublishRef.current = true\n unpublish.execute()\n }, [canUnpublish, unpublish])","t('unpublish-dialog.header')","t('unpublish-dialog.action.cancel')","{\n text: t('unpublish-dialog.action.cancel'),\n onClick: onClose,\n }","t('unpublish-dialog.action.unpublish')","{\n text: t('unpublish-dialog.action.unpublish'),\n onClick: handleUnpublish,\n tone: 'critical',\n disabled: isUnpublishing || !canUnpublish,\n loading: isUnpublishing,\n }","isUnpublishing || !canUnpublish","{\n cancelButton: {\n text: t('unpublish-dialog.action.cancel'),\n onClick: onClose,\n },\n confirmButton: {\n text: t('unpublish-dialog.action.unpublish'),\n onClick: handleUnpublish,\n tone: 'critical',\n disabled: isUnpublishing || !canUnpublish,\n loading: isUnpublishing,\n },\n }","schemaType ? (\n <Preview value={{_id: documentVersionId}} schemaType={schemaType} />\n ) : (\n <LoadingBlock />\n )","release?.metadata.title || coreT('release.placeholder-untitled-release')","title","{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }","{Label: ToneLabel}","{tone}","<Text muted size={1}>\n <Translate\n t={t}\n i18nKey=\"unpublish-dialog.description.to-draft\"\n values={{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }}\n components={{Label: ToneLabel}}\n componentProps={{tone}}\n />\n </Text>","t('unpublish-dialog.description.lost-changes')","<Text muted size={1}>\n {t('unpublish-dialog.description.lost-changes')}\n </Text>","<Stack gap={4} paddingX={4} paddingBottom={4}>\n {schemaType ? (\n <Preview value={{_id: documentVersionId}} schemaType={schemaType} />\n ) : (\n <LoadingBlock />\n )}\n <Text muted size={1}>\n <Translate\n t={t}\n i18nKey=\"unpublish-dialog.description.to-draft\"\n values={{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }}\n components={{Label: ToneLabel}}\n componentProps={{tone}}\n />\n </Text>\n <Text muted size={1}>\n {t('unpublish-dialog.description.lost-changes')}\n </Text>\n </Stack>","<Dialog\n header={t('unpublish-dialog.header')}\n id=\"document-unpublish-dialog\"\n onClickOutside={onClose}\n onClose={onClose}\n width={0}\n padding={false}\n footer={{\n cancelButton: {\n text: t('unpublish-dialog.action.cancel'),\n onClick: onClose,\n },\n confirmButton: {\n text: t('unpublish-dialog.action.unpublish'),\n onClick: handleUnpublish,\n tone: 'critical',\n disabled: isUnpublishing || !canUnpublish,\n loading: isUnpublishing,\n },\n }}\n >\n <Stack gap={4} paddingX={4} paddingBottom={4}>\n {schemaType ? (\n <Preview value={{_id: documentVersionId}} schemaType={schemaType} />\n ) : (\n <LoadingBlock />\n )}\n <Text muted size={1}>\n <Translate\n t={t}\n i18nKey=\"unpublish-dialog.description.to-draft\"\n values={{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }}\n components={{Label: ToneLabel}}\n componentProps={{tone}}\n />\n </Text>\n <Text muted size={1}>\n {t('unpublish-dialog.description.lost-changes')}\n </Text>\n </Stack>\n </Dialog>","(releaseId: SystemBundle | ReleaseId | undefined) => {\n const newPerspective = getPerspectiveParam(releaseId, defaultPerspective)\n\n router.navigate({\n stickyParams: {\n excludedPerspectives: null,\n perspective: newPerspective,\n },\n })\n }","useCallback(\n (releaseId: SystemBundle | ReleaseId | undefined) => {\n const newPerspective = getPerspectiveParam(releaseId, defaultPerspective)\n\n router.navigate({\n stickyParams: {\n excludedPerspectives: null,\n perspective: newPerspective,\n },\n })\n },\n [defaultPerspective, router],\n )"],"sources":["../src/core/hooks/useDocumentOperationEvent.ts","../src/core/releases/components/dialog/DiscardVersionDialog.tsx","../src/core/releases/store/useArchivedReleases.ts","../src/core/releases/components/dialog/UnpublishVersionDialog.tsx","../src/core/perspective/useGetDefaultPerspective.ts","../src/core/perspective/useSetPerspective.tsx","../src/core/releases/__telemetry__/releases.telemetry.ts"],"sourcesContent":["import {useMemo} from 'react'\nimport {useSyncObservable} from 'react-rx'\n\nimport {useDocumentStore} from '../store/datastores'\n\n/** @internal */\nexport function useDocumentOperationEvent(publishedDocId: string, docTypeName: string) {\n const documentStore = useDocumentStore()\n\n const observable = useMemo(\n () => documentStore.pair.operationEvents(publishedDocId, docTypeName),\n [docTypeName, documentStore.pair, publishedDocId],\n )\n // Kept synchronous: this is an event stream driving effects (toasts,\n // pane-close). Deferring could coalesce a quick success/error sequence into\n // one render and drop an event consumers must react to.\n return useSyncObservable(observable, undefined)\n}\n","import {getVersionNameFromId, type VersionId} from '@sanity/id-utils'\nimport {Stack, Text} from '@sanity/ui'\nimport {useToast} from '@sanity/ui/toast'\nimport {useCallback, useEffect, useRef, useState} from 'react'\nimport {Box} from 'ui5'\n\nimport {Dialog} from '../../../../ui-components/dialog/Dialog'\nimport {LoadingBlock} from '../../../components/loadingBlock/LoadingBlock'\nimport {useDocumentOperation} from '../../../hooks/useDocumentOperation'\nimport {useDocumentOperationEvent} from '../../../hooks/useDocumentOperationEvent'\nimport {useSchema} from '../../../hooks/useSchema'\nimport {\n getPairTarget,\n getTargetScopeId,\n useTargetDocumentState,\n} from '../../../hooks/useTargetDocumentState'\nimport {useTranslation} from '../../../i18n/hooks/useTranslation'\nimport {Translate} from '../../../i18n/Translate'\nimport {type TargetPerspective} from '../../../perspective/types'\nimport {Preview} from '../../../preview/components/Preview'\nimport {\n getPublishedId,\n getVersionFromId,\n getVersionId,\n isDraftId,\n isVersionId,\n} from '../../../util/draftUtils'\nimport {releasesLocaleNamespace} from '../../i18n'\n\n/**\n * @internal\n */\nexport function DiscardVersionDialog(props: {\n onClose: () => void\n versionId: string\n documentType: string\n fromPerspective: string | TargetPerspective\n isGoingToUnpublish: boolean\n /**\n * Whether the dialog pushes its own failure toast. Callers rendered inside the document pane\n * should leave this off: `DocumentOperationResults` already toasts the same operation events\n * there, so the dialog would duplicate them. Defaults to `true` for the release tool, which\n * has no such listener.\n */\n showCompletionToasts?: boolean\n}): React.JSX.Element {\n const {\n onClose,\n versionId,\n documentType,\n fromPerspective,\n isGoingToUnpublish,\n showCompletionToasts = true,\n } = props\n const {t} = useTranslation(releasesLocaleNamespace)\n const {t: coreT} = useTranslation()\n const publishedId = getPublishedId(versionId)\n const targetDocumentState = useTargetDocumentState(publishedId)\n // Discarding a version must target the bundle encoded in `versionId`, not the globally selected\n // perspective: the dialog is opened from version chips and the release tool's document table,\n // where the selected perspective can be a different release (or the drafts pair) and would\n // discard the wrong document.\n // `|| undefined` so a malformed version id (no bundle segment) falls back to the perspective\n // target below rather than checking out an empty scope.\n const discardScopeId = (isVersionId(versionId) && getVersionFromId(versionId)) || undefined\n // Only the draft case follows the selected perspective, so that discarding a draft targets the\n // variant-scoped version when a variant is selected. While that lookup resolves, confirming is\n // disabled below instead of silently operating on the base pair.\n const isTargetReady = Boolean(discardScopeId) || targetDocumentState.status === 'ready'\n const {discardChanges} = useDocumentOperation(\n publishedId,\n documentType,\n discardScopeId ?? getPairTarget(targetDocumentState),\n )\n const schema = useSchema()\n const toast = useToast()\n const [isDiscarding, setIsDiscarding] = useState(false)\n const discardType = isDraftId(versionId) ? 'draft' : 'release'\n const rawReleaseName =\n typeof fromPerspective === 'string' ? fromPerspective : fromPerspective.metadata.title\n const currentRelease = getVersionNameFromId(versionId as VersionId)\n const releaseName = rawReleaseName || coreT('release.placeholder-untitled-release')\n\n const schemaType = schema.get(documentType)\n\n // The pair the operation runs against, used to recognise this dialog's own completion event:\n // `operationEvents` is keyed by published id and type only, so a discard of another bundle of\n // the same document would otherwise be mistaken for this one.\n const targetScopeId = discardScopeId ?? getTargetScopeId(targetDocumentState)\n const targetVersionId = targetScopeId ? getVersionId(publishedId, targetScopeId) : undefined\n\n const event = useDocumentOperationEvent(publishedId, documentType)\n const prevEvent = useRef(event)\n const awaitingDiscardRef = useRef(false)\n\n useEffect(() => {\n if (!event || event === prevEvent.current) return\n prevEvent.current = event\n\n if (!awaitingDiscardRef.current) return\n if (event.op !== 'discardChanges' || event.idPair.versionId !== targetVersionId) return\n\n awaitingDiscardRef.current = false\n\n if (event.type === 'error' && showCompletionToasts) {\n toast.push({\n closable: true,\n status: 'error',\n title: coreT('release.action.discard-version.failure'),\n description: event.error.message,\n })\n }\n\n onClose()\n }, [coreT, event, onClose, showCompletionToasts, targetVersionId, toast])\n\n const handleDiscardVersion = useCallback(() => {\n if (discardChanges.disabled) return\n\n setIsDiscarding(true)\n awaitingDiscardRef.current = true\n discardChanges.execute()\n }, [discardChanges])\n\n return (\n <Dialog\n id={'discard-version-dialog'}\n header={\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.header-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n }\n onClose={onClose}\n width={0}\n padding={false}\n footer={{\n cancelButton: {\n disabled: isDiscarding,\n onClick: onClose,\n },\n confirmButton: {\n text: t(`discard-version-dialog.title-${discardType}`),\n onClick: handleDiscardVersion,\n disabled: isDiscarding || !isTargetReady || Boolean(discardChanges.disabled),\n loading: isDiscarding,\n },\n }}\n >\n <Stack gap={3} paddingX={3} marginBottom={2}>\n {schemaType ? (\n <Preview\n value={{_id: isGoingToUnpublish ? publishedId : versionId}}\n schemaType={schemaType}\n // Resolve the preview under the perspective of what's being discarded:\n // the published doc when unpublishing, the drafts perspective when\n // discarding a draft, otherwise the release version. Without the\n // explicit 'drafts' stack a draft falls back to its published value\n // (or \"Untitled\" when none exists), so it wouldn't show the draft\n // being discarded.\n perspectiveStack={\n isGoingToUnpublish ? [] : discardType === 'draft' ? ['drafts'] : [currentRelease]\n }\n />\n ) : (\n <LoadingBlock />\n )}\n <Box paddingX={2} style={{maxWidth: '400px'}}>\n <Text size={1} muted>\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.description-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n </Text>\n </Box>\n </Stack>\n </Dialog>\n )\n}\n","import {type ReleaseDocument} from '@sanity/client'\nimport {useMemo} from 'react'\n\nimport {ARCHIVED_RELEASE_STATES} from '../util/const'\nimport {useAllReleases} from './useAllReleases'\n\n/**\n * @internal\n */\nexport function useArchivedReleases(): {\n data: ReleaseDocument[]\n error?: Error\n loading: boolean\n} {\n const {data: releases, error, loading} = useAllReleases()\n\n const archivedReleases = useMemo(\n () =>\n Array.from(releases.values()).filter((release) => {\n return ARCHIVED_RELEASE_STATES.includes(release.state)\n }),\n [releases],\n )\n\n return useMemo(\n () => ({data: archivedReleases, error, loading}),\n [archivedReleases, error, loading],\n )\n}\n","import {type ReleaseDocument} from '@sanity/client'\nimport {type BadgeTone, Stack, Text} from '@sanity/ui'\nimport {useToast} from '@sanity/ui/toast'\nimport {type CSSProperties, useCallback, useEffect, useRef, useState} from 'react'\n\nimport {Dialog} from '../../../../ui-components/dialog/Dialog'\nimport {LoadingBlock} from '../../../components/loadingBlock/LoadingBlock'\nimport {useDocumentOperation} from '../../../hooks/useDocumentOperation'\nimport {useDocumentOperationEvent} from '../../../hooks/useDocumentOperationEvent'\nimport {useSchema} from '../../../hooks/useSchema'\nimport {useTranslation} from '../../../i18n/hooks/useTranslation'\nimport {Translate} from '../../../i18n/Translate'\nimport {Preview} from '../../../preview/components/Preview'\nimport {useValuePreview} from '../../../preview/useValuePreview'\nimport {getPublishedId, getVersionFromId} from '../../../util/draftUtils'\nimport {releasesLocaleNamespace} from '../../i18n'\nimport {useActiveReleases} from '../../store/useActiveReleases'\nimport {useArchivedReleases} from '../../store/useArchivedReleases'\nimport {getReleaseIdFromReleaseDocumentId} from '../../util/getReleaseIdFromReleaseDocumentId'\nimport {getReleaseTone} from '../../util/getReleaseTone'\n\nfunction ToneLabel({children, tone}: {children?: React.ReactNode; tone?: BadgeTone}) {\n return (\n <span\n style={\n {\n color: `var(--card-badge-${tone ?? 'default'}-fg-color)`,\n backgroundColor: `var(--card-badge-${tone ?? 'default'}-bg-color)`,\n borderRadius: 3,\n textDecoration: 'none',\n padding: '0px 2px',\n fontWeight: 500,\n } as CSSProperties\n }\n >\n {children}\n </span>\n )\n}\n\nexport function UnpublishVersionDialog(props: {\n onClose: () => void\n documentVersionId: string\n documentType: string\n /**\n * Whether the dialog pushes its own completion toasts. Callers rendered inside the document\n * pane should leave this off: `DocumentOperationResults` already toasts the same operation\n * events there, so the dialog would duplicate them. Defaults to `true` for the release tool,\n * which has no such listener.\n */\n showCompletionToasts?: boolean\n}): React.JSX.Element {\n const {onClose, documentVersionId, documentType, showCompletionToasts = true} = props\n const {t} = useTranslation(releasesLocaleNamespace)\n const {t: coreT} = useTranslation()\n\n const schema = useSchema()\n const publishedId = getPublishedId(documentVersionId)\n // The bundle to unpublish is the one encoded in the id, never the selected perspective: the\n // dialog is opened from the release tool's document table and from version chips, where the\n // selected perspective is frequently a different release.\n const scopeId = getVersionFromId(documentVersionId)\n const {unpublish} = useDocumentOperation(publishedId, documentType, scopeId)\n // Without a bundle segment in the id there is no release to unpublish within, and the operation\n // would target the draft/published pair and hard-unpublish the document instead. The version\n // operation this replaced threw in that case.\n const canUnpublish = Boolean(scopeId) && !unpublish.disabled\n const [isUnpublishing, setIsUnpublishing] = useState(false)\n const toast = useToast()\n const {data} = useActiveReleases()\n const {data: archivedReleases} = useArchivedReleases()\n\n const release = data\n .concat(archivedReleases)\n .find((candidate) => getReleaseIdFromReleaseDocumentId(candidate._id) === scopeId)\n\n const tone = getReleaseTone(release as ReleaseDocument)\n const schemaType = schema.get(documentType)\n\n const preview = useValuePreview({schemaType, value: {_id: documentVersionId}})\n const previewTitle = preview?.value?.title\n\n const event = useDocumentOperationEvent(publishedId, documentType)\n const prevEvent = useRef(event)\n const awaitingUnpublishRef = useRef(false)\n\n useEffect(() => {\n if (!event || event === prevEvent.current) return\n prevEvent.current = event\n\n if (!awaitingUnpublishRef.current) return\n // `operationEvents` is keyed by published id and type only, so an unpublish of another bundle\n // of the same document would otherwise be mistaken for this dialog's own result.\n if (event.op !== 'unpublish' || event.idPair.versionId !== documentVersionId) return\n\n awaitingUnpublishRef.current = false\n\n if (showCompletionToasts) {\n toast.push(\n event.type === 'success'\n ? {\n closable: true,\n status: 'success',\n description: (\n <Translate\n t={coreT}\n i18nKey={'release.action.unpublish-version.success'}\n values={{title: previewTitle || documentVersionId}}\n />\n ),\n }\n : {\n closable: true,\n status: 'error',\n title: coreT('release.action.unpublish-version.failure'),\n description: event.error.message,\n },\n )\n }\n\n onClose()\n }, [coreT, documentVersionId, event, onClose, previewTitle, showCompletionToasts, toast])\n\n const handleUnpublish = useCallback(() => {\n if (!canUnpublish) return\n\n setIsUnpublishing(true)\n awaitingUnpublishRef.current = true\n unpublish.execute()\n }, [canUnpublish, unpublish])\n\n return (\n <Dialog\n header={t('unpublish-dialog.header')}\n id=\"document-unpublish-dialog\"\n onClickOutside={onClose}\n onClose={onClose}\n width={0}\n padding={false}\n footer={{\n cancelButton: {\n text: t('unpublish-dialog.action.cancel'),\n onClick: onClose,\n },\n confirmButton: {\n text: t('unpublish-dialog.action.unpublish'),\n onClick: handleUnpublish,\n tone: 'critical',\n disabled: isUnpublishing || !canUnpublish,\n loading: isUnpublishing,\n },\n }}\n >\n <Stack gap={4} paddingX={4} paddingBottom={4}>\n {schemaType ? (\n <Preview value={{_id: documentVersionId}} schemaType={schemaType} />\n ) : (\n <LoadingBlock />\n )}\n <Text muted size={1}>\n <Translate\n t={t}\n i18nKey=\"unpublish-dialog.description.to-draft\"\n values={{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }}\n components={{Label: ToneLabel}}\n componentProps={{tone}}\n />\n </Text>\n <Text muted size={1}>\n {t('unpublish-dialog.description.lost-changes')}\n </Text>\n </Stack>\n </Dialog>\n )\n}\n","import {LATEST, PUBLISHED} from '../releases/util/const'\nimport {useWorkspace} from '../studio/workspace'\n\n/**\n * @beta\n * Exposes the default perspective based on the draft model enabled status.\n * If the user hasn't opt out from draft, the default perspective is `drafts`\n * Otherwise, the default perspective is `published`\n * @returns The default perspective based on the draft model enabled status.\n */\nexport function useGetDefaultPerspective(): 'drafts' | 'published' {\n const isDraftModelEnabled = useWorkspace().document.drafts.enabled\n return isDraftModelEnabled ? LATEST : PUBLISHED\n}\n","import {useCallback} from 'react'\nimport {useRouter} from 'sanity/router'\n\nimport {type SystemBundle} from '../util/draftUtils'\nimport {type ReleaseId} from './types'\nimport {useGetDefaultPerspective} from './useGetDefaultPerspective'\n\n/**\n * Resolves the value of the `perspective` sticky param for a given perspective. Default states\n * (no perspective, or the default perspective) resolve to an empty string so the param is removed.\n *\n * @internal\n */\nexport function getPerspectiveParam(\n perspective: SystemBundle | ReleaseId | undefined,\n defaultPerspective: SystemBundle,\n) {\n if (!perspective) return ''\n if (perspective === defaultPerspective) return ''\n return perspective\n}\n\n/**\n * @internal\n */\nexport function useSetPerspective() {\n const router = useRouter()\n\n const defaultPerspective = useGetDefaultPerspective()\n\n const setPerspective = useCallback(\n (releaseId: SystemBundle | ReleaseId | undefined) => {\n const newPerspective = getPerspectiveParam(releaseId, defaultPerspective)\n\n router.navigate({\n stickyParams: {\n excludedPerspectives: null,\n perspective: newPerspective,\n },\n })\n },\n [defaultPerspective, router],\n )\n return setPerspective\n}\n","import {defineEvent} from '@sanity/telemetry'\n\nimport {type DocumentVariantType} from '../../util/getDocumentVariantType'\n\ninterface VersionInfo {\n /**\n * document type that was added\n */\n\n /**\n * the origin of the version created (from a draft or from a version)\n */\n documentOrigin: DocumentVariantType\n}\n\nexport interface OriginInfo {\n /**\n * determines where the release was created, either from the structure view or the release plugin\n */\n origin: 'structure' | 'release-plugin'\n}\n\nexport interface RevertInfo {\n /**\n * determined whether reverting a release created a new staged release, or immediately reverted\n */\n revertType: 'immediate' | 'staged'\n}\n\nexport interface ReleaseDescriptionInfo {\n /**\n * whether the description was set when creating the release, or edited on an existing release\n */\n action: 'create' | 'edit'\n /**\n * number of characters in the description - never the description content itself\n */\n characterCount: number\n /**\n * whether the description contains a URL\n */\n containsUrl: boolean\n}\n\n/**\n * When a document (version) is successfully added to a release\n */\nexport const AddedVersion = defineEvent<VersionInfo>({\n name: 'Version Document Added to Release ',\n version: 1,\n description: 'User added a document to a release',\n})\n\n/** When a release is successfully created */\nexport const CreatedRelease = defineEvent<OriginInfo>({\n name: 'Release Created',\n version: 1,\n description: 'User created a release',\n})\n\n/** When a release is successfully deleted */\nexport const DeletedRelease = defineEvent({\n name: 'Release Deleted',\n version: 1,\n description: 'User deleted a release',\n})\n\n/** When a release is successfully published */\nexport const PublishedRelease = defineEvent({\n name: 'Release Published',\n version: 1,\n description: 'User published a release',\n})\n\n/** When a release is successfully scheduled*/\nexport const ScheduledRelease = defineEvent({\n name: 'Release Scheduled',\n version: 1,\n description: 'User scheduled a release',\n})\n\n/** When a release is successfully scheduled */\nexport const UnscheduledRelease = defineEvent({\n name: 'Release Unscheduled',\n version: 1,\n description: 'User unscheduled a release',\n})\n\n/** When a release is successfully archived*/\nexport const ArchivedRelease = defineEvent({\n name: 'Release Archived',\n version: 1,\n description: 'User archived a release',\n})\n\n/** When a release is successfully unarchived */\nexport const UnarchivedRelease = defineEvent({\n name: 'Release Unarchived',\n version: 1,\n description: 'User unarchived a release',\n})\n\n/** When a release is successfully reverted */\nexport const RevertRelease = defineEvent<RevertInfo>({\n name: 'Release Reverted',\n version: 1,\n description: 'User reverted a release',\n})\n\n/** When a release is successfully duplicated */\nexport const DuplicatedRelease = defineEvent({\n name: 'Release Duplicated',\n version: 1,\n description: 'User duplicated a release',\n})\n\n/** When a release link is copied to clipboard */\nexport const ReleaseLinkCopied = defineEvent({\n name: 'Release Link Copied',\n version: 1,\n description: 'User copied release link to clipboard',\n})\n\n/** When a release ID is copied to clipboard */\nexport const ReleaseIdCopied = defineEvent({\n name: 'Release ID Copied',\n version: 1,\n description: 'User copied release ID to clipboard',\n})\n\n/** When a release title is copied to clipboard */\nexport const ReleaseTitleCopied = defineEvent({\n name: 'Release Title Copied',\n version: 1,\n description: 'User copied release title to clipboard',\n})\n\n/** Records release description usage - set at creation or edited in Studio */\nexport const ReleaseDescriptionSet = defineEvent<ReleaseDescriptionInfo>({\n name: 'Release Description Set',\n version: 1,\n description:\n 'Whether a release description was set at creation or edited in Studio, with its character count (never the content itself)',\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAMA,SAAgB,0BAA0B,gBAAwB,aAAqB;eAC/E,gBAAgB,iBAAiB,GAG/BA;CAMR,OAN2D,EAAA,OAAA,eAAA,EAAA,OAArCC,cAAAA,QAAAA,EAAAA,OAAqB,kBAAnC,KAAA,cAAc,KAAK,gBAAgB,gBAAgB,WAAW,GAAX,EAAA,KAAA,aAArCA,EAAAA,KAAAA,cAAAA,MAAqB,EAAA,KAAA,wCAMpC,kBAAkB,IAAY,KAAA,CAAS;AAChD;;;;ACeA,SAAgB,qBAAqB,OAaf;gBACd,EACJ,SACA,WACA,cACA,iBACA,oBACA,sBAAA,OACE,OADF,uBAAA,OAAA,KAAA,KAAAE,IAEI,EAAC,MAAK,eAAe,uBAAuB,GAC5C,EAAC,GAAG,UAAS,eAAe,GACdC;CAAe,AAAA,EAAA,OAA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AAC,GAGY,iBAAiB,YAAwB;CACpD,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,iBAAiB,YAAY;CACxC,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,mBAAmB,YAAY;CAC1C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,mBAAmB,YAAY;CAC1C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,qBAAqB,YAAY;CAC5C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,kBAAkB,YAAY;CACzC,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,oBAAoB,YAAY;CAC3C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,gBAAgB,YAAwB;CACnD,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,oBAAoB,YAAY;CAC3C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,oBAAoB,YAAY;CAC3C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,kBAAkB,YAAY;CACzC,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,qBAAqB,YAAY;CAC5C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,wBAAwB,YAAoC;CACvE,MAAM;CACN,SAAS;CACT,aACE;AACJ,CAAC"}
1
+ {"version":3,"file":"releases.telemetry-BAO7xaO7.js","names":["documentStore.pair.operationEvents(publishedDocId, docTypeName)","pair","useMemo(\n () => documentStore.pair.operationEvents(publishedDocId, docTypeName),\n [docTypeName, documentStore.pair, publishedDocId],\n )","showCompletionToasts = true","getPublishedId(versionId)","(isVersionId(versionId) && getVersionFromId(versionId)) || undefined","discardScopeId ?? getPairTarget(targetDocumentState)","getVersionNameFromId(versionId as VersionId)","versionId as VersionId","rawReleaseName || coreT('release.placeholder-untitled-release')","schema.get(documentType)","discardScopeId ?? getTargetScopeId(targetDocumentState)","targetScopeId ? getVersionId(publishedId, targetScopeId) : undefined","() => {\n if (!event || event === prevEvent.current) return\n prevEvent.current = event\n\n if (!awaitingDiscardRef.current) return\n if (event.op !== 'discardChanges' || event.idPair.versionId !== targetVersionId) return\n\n awaitingDiscardRef.current = false\n\n if (event.type === 'error' && showCompletionToasts) {\n toast.push({\n closable: true,\n status: 'error',\n title: coreT('release.action.discard-version.failure'),\n description: event.error.message,\n })\n }\n\n onClose()\n }","[coreT, event, onClose, showCompletionToasts, targetVersionId, toast]","() => {\n if (discardChanges.disabled) return\n\n setIsDiscarding(true)\n awaitingDiscardRef.current = true\n discardChanges.execute()\n }","discardChanges.disabled","useCallback(() => {\n if (discardChanges.disabled) return\n\n setIsDiscarding(true)\n awaitingDiscardRef.current = true\n discardChanges.execute()\n }, [discardChanges])","{releaseTitle: releaseName}","<Translate\n t={t}\n i18nKey={`discard-version-dialog.header-${discardType}`}\n values={{releaseTitle: releaseName}}\n />","`discard-version-dialog.header-${discardType}`","{\n disabled: isDiscarding,\n onClick: onClose,\n }","t(`discard-version-dialog.title-${discardType}`)","`discard-version-dialog.title-${discardType}`","{\n text: t(`discard-version-dialog.title-${discardType}`),\n onClick: handleDiscardVersion,\n disabled: isDiscarding || !isTargetReady || Boolean(discardChanges.disabled),\n loading: isDiscarding,\n }","isDiscarding || !isTargetReady || Boolean(discardChanges.disabled)","{\n cancelButton: {\n disabled: isDiscarding,\n onClick: onClose,\n },\n confirmButton: {\n text: t(`discard-version-dialog.title-${discardType}`),\n onClick: handleDiscardVersion,\n disabled: isDiscarding || !isTargetReady || Boolean(discardChanges.disabled),\n loading: isDiscarding,\n },\n }","schemaType ? (\n <Preview\n value={{_id: isGoingToUnpublish ? publishedId : versionId}}\n schemaType={schemaType}\n // Resolve the preview under the perspective of what's being discarded:\n // the published doc when unpublishing, the drafts perspective when\n // discarding a draft, otherwise the release version. Without the\n // explicit 'drafts' stack a draft falls back to its published value\n // (or \"Untitled\" when none exists), so it wouldn't show the draft\n // being discarded.\n perspectiveStack={\n isGoingToUnpublish ? [] : discardType === 'draft' ? ['drafts'] : [currentRelease]\n }\n />\n ) : (\n <LoadingBlock />\n )","{maxWidth: '400px'}","<Box paddingX={2} style={{maxWidth: '400px'}}>\n <Text size={1} muted>\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.description-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n </Text>\n </Box>","`discard-version-dialog.description-${discardType}`","<Stack gap={3} paddingX={3} marginBottom={2}>\n {schemaType ? (\n <Preview\n value={{_id: isGoingToUnpublish ? publishedId : versionId}}\n schemaType={schemaType}\n // Resolve the preview under the perspective of what's being discarded:\n // the published doc when unpublishing, the drafts perspective when\n // discarding a draft, otherwise the release version. Without the\n // explicit 'drafts' stack a draft falls back to its published value\n // (or \"Untitled\" when none exists), so it wouldn't show the draft\n // being discarded.\n perspectiveStack={\n isGoingToUnpublish ? [] : discardType === 'draft' ? ['drafts'] : [currentRelease]\n }\n />\n ) : (\n <LoadingBlock />\n )}\n <Box paddingX={2} style={{maxWidth: '400px'}}>\n <Text size={1} muted>\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.description-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n </Text>\n </Box>\n </Stack>","<Dialog\n id={'discard-version-dialog'}\n header={\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.header-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n }\n onClose={onClose}\n width={0}\n padding={false}\n footer={{\n cancelButton: {\n disabled: isDiscarding,\n onClick: onClose,\n },\n confirmButton: {\n text: t(`discard-version-dialog.title-${discardType}`),\n onClick: handleDiscardVersion,\n disabled: isDiscarding || !isTargetReady || Boolean(discardChanges.disabled),\n loading: isDiscarding,\n },\n }}\n >\n <Stack gap={3} paddingX={3} marginBottom={2}>\n {schemaType ? (\n <Preview\n value={{_id: isGoingToUnpublish ? publishedId : versionId}}\n schemaType={schemaType}\n // Resolve the preview under the perspective of what's being discarded:\n // the published doc when unpublishing, the drafts perspective when\n // discarding a draft, otherwise the release version. Without the\n // explicit 'drafts' stack a draft falls back to its published value\n // (or \"Untitled\" when none exists), so it wouldn't show the draft\n // being discarded.\n perspectiveStack={\n isGoingToUnpublish ? [] : discardType === 'draft' ? ['drafts'] : [currentRelease]\n }\n />\n ) : (\n <LoadingBlock />\n )}\n <Box paddingX={2} style={{maxWidth: '400px'}}>\n <Text size={1} muted>\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.description-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n </Text>\n </Box>\n </Stack>\n </Dialog>","Array.from(releases.values()).filter((release) => {\n return ARCHIVED_RELEASE_STATES.includes(release.state)\n })","(release) => {\n return ARCHIVED_RELEASE_STATES.includes(release.state)\n }","useMemo(\n () =>\n Array.from(releases.values()).filter((release) => {\n return ARCHIVED_RELEASE_STATES.includes(release.state)\n }),\n [releases],\n )","{data: archivedReleases, error, loading}","useMemo(\n () => ({data: archivedReleases, error, loading}),\n [archivedReleases, error, loading],\n )","{children, tone}: {children?: React.ReactNode; tone?: BadgeTone}","{\n color: `var(--card-badge-${tone ?? 'default'}-fg-color)`,\n backgroundColor: `var(--card-badge-${tone ?? 'default'}-bg-color)`,\n borderRadius: 3,\n textDecoration: 'none',\n padding: '0px 2px',\n fontWeight: 500,\n }","`var(--card-badge-${tone ?? 'default'}-fg-color)`","`var(--card-badge-${tone ?? 'default'}-bg-color)`","<span\n style={\n {\n color: `var(--card-badge-${tone ?? 'default'}-fg-color)`,\n backgroundColor: `var(--card-badge-${tone ?? 'default'}-bg-color)`,\n borderRadius: 3,\n textDecoration: 'none',\n padding: '0px 2px',\n fontWeight: 500,\n } as CSSProperties\n }\n >\n {children}\n </span>","{\n color: `var(--card-badge-${tone ?? 'default'}-fg-color)`,\n backgroundColor: `var(--card-badge-${tone ?? 'default'}-bg-color)`,\n borderRadius: 3,\n textDecoration: 'none',\n padding: '0px 2px',\n fontWeight: 500,\n } as CSSProperties","showCompletionToasts = true","getPublishedId(documentVersionId)","getVersionFromId(documentVersionId)","getReleaseTone(release as ReleaseDocument)","(candidate) => getReleaseIdFromReleaseDocumentId(candidate._id) === scopeId","schema.get(documentType)","{_id: documentVersionId}","{schemaType, value: {_id: documentVersionId}}","() => {\n if (!event || event === prevEvent.current) return\n prevEvent.current = event\n\n if (!awaitingUnpublishRef.current) return\n // `operationEvents` is keyed by published id and type only, so an unpublish of another bundle\n // of the same document would otherwise be mistaken for this dialog's own result.\n if (event.op !== 'unpublish' || event.idPair.versionId !== documentVersionId) return\n\n awaitingUnpublishRef.current = false\n\n if (showCompletionToasts) {\n toast.push(\n event.type === 'success'\n ? {\n closable: true,\n status: 'success',\n description: (\n <Translate\n t={coreT}\n i18nKey={'release.action.unpublish-version.success'}\n values={{title: previewTitle || documentVersionId}}\n />\n ),\n }\n : {\n closable: true,\n status: 'error',\n title: coreT('release.action.unpublish-version.failure'),\n description: event.error.message,\n },\n )\n }\n\n onClose()\n }","[coreT, documentVersionId, event, onClose, previewTitle, showCompletionToasts, toast]","() => {\n if (!canUnpublish) return\n\n setIsUnpublishing(true)\n awaitingUnpublishRef.current = true\n unpublish.execute()\n }","useCallback(() => {\n if (!canUnpublish) return\n\n setIsUnpublishing(true)\n awaitingUnpublishRef.current = true\n unpublish.execute()\n }, [canUnpublish, unpublish])","t('unpublish-dialog.header')","t('unpublish-dialog.action.cancel')","{\n text: t('unpublish-dialog.action.cancel'),\n onClick: onClose,\n }","t('unpublish-dialog.action.unpublish')","{\n text: t('unpublish-dialog.action.unpublish'),\n onClick: handleUnpublish,\n tone: 'critical',\n disabled: isUnpublishing || !canUnpublish,\n loading: isUnpublishing,\n }","isUnpublishing || !canUnpublish","{\n cancelButton: {\n text: t('unpublish-dialog.action.cancel'),\n onClick: onClose,\n },\n confirmButton: {\n text: t('unpublish-dialog.action.unpublish'),\n onClick: handleUnpublish,\n tone: 'critical',\n disabled: isUnpublishing || !canUnpublish,\n loading: isUnpublishing,\n },\n }","schemaType ? (\n <Preview value={{_id: documentVersionId}} schemaType={schemaType} />\n ) : (\n <LoadingBlock />\n )","release?.metadata.title || coreT('release.placeholder-untitled-release')","title","{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }","{Label: ToneLabel}","{tone}","<Text muted size={1}>\n <Translate\n t={t}\n i18nKey=\"unpublish-dialog.description.to-draft\"\n values={{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }}\n components={{Label: ToneLabel}}\n componentProps={{tone}}\n />\n </Text>","t('unpublish-dialog.description.lost-changes')","<Text muted size={1}>\n {t('unpublish-dialog.description.lost-changes')}\n </Text>","<Stack gap={4} paddingX={4} paddingBottom={4}>\n {schemaType ? (\n <Preview value={{_id: documentVersionId}} schemaType={schemaType} />\n ) : (\n <LoadingBlock />\n )}\n <Text muted size={1}>\n <Translate\n t={t}\n i18nKey=\"unpublish-dialog.description.to-draft\"\n values={{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }}\n components={{Label: ToneLabel}}\n componentProps={{tone}}\n />\n </Text>\n <Text muted size={1}>\n {t('unpublish-dialog.description.lost-changes')}\n </Text>\n </Stack>","<Dialog\n header={t('unpublish-dialog.header')}\n id=\"document-unpublish-dialog\"\n onClickOutside={onClose}\n onClose={onClose}\n width={0}\n padding={false}\n footer={{\n cancelButton: {\n text: t('unpublish-dialog.action.cancel'),\n onClick: onClose,\n },\n confirmButton: {\n text: t('unpublish-dialog.action.unpublish'),\n onClick: handleUnpublish,\n tone: 'critical',\n disabled: isUnpublishing || !canUnpublish,\n loading: isUnpublishing,\n },\n }}\n >\n <Stack gap={4} paddingX={4} paddingBottom={4}>\n {schemaType ? (\n <Preview value={{_id: documentVersionId}} schemaType={schemaType} />\n ) : (\n <LoadingBlock />\n )}\n <Text muted size={1}>\n <Translate\n t={t}\n i18nKey=\"unpublish-dialog.description.to-draft\"\n values={{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }}\n components={{Label: ToneLabel}}\n componentProps={{tone}}\n />\n </Text>\n <Text muted size={1}>\n {t('unpublish-dialog.description.lost-changes')}\n </Text>\n </Stack>\n </Dialog>","(releaseId: SystemBundle | ReleaseId | undefined) => {\n const newPerspective = getPerspectiveParam(releaseId, defaultPerspective)\n\n router.navigate({\n stickyParams: {\n excludedPerspectives: null,\n perspective: newPerspective,\n },\n })\n }","useCallback(\n (releaseId: SystemBundle | ReleaseId | undefined) => {\n const newPerspective = getPerspectiveParam(releaseId, defaultPerspective)\n\n router.navigate({\n stickyParams: {\n excludedPerspectives: null,\n perspective: newPerspective,\n },\n })\n },\n [defaultPerspective, router],\n )"],"sources":["../src/core/hooks/useDocumentOperationEvent.ts","../src/core/releases/components/dialog/DiscardVersionDialog.tsx","../src/core/releases/store/useArchivedReleases.ts","../src/core/releases/components/dialog/UnpublishVersionDialog.tsx","../src/core/perspective/useGetDefaultPerspective.ts","../src/core/perspective/useSetPerspective.tsx","../src/core/releases/__telemetry__/releases.telemetry.ts"],"sourcesContent":["import {useMemo} from 'react'\nimport {useSyncObservable} from 'react-rx'\n\nimport {useDocumentStore} from '../store/datastores'\n\n/** @internal */\nexport function useDocumentOperationEvent(publishedDocId: string, docTypeName: string) {\n const documentStore = useDocumentStore()\n\n const observable = useMemo(\n () => documentStore.pair.operationEvents(publishedDocId, docTypeName),\n [docTypeName, documentStore.pair, publishedDocId],\n )\n // Kept synchronous: this is an event stream driving effects (toasts,\n // pane-close). Deferring could coalesce a quick success/error sequence into\n // one render and drop an event consumers must react to.\n return useSyncObservable(observable, undefined)\n}\n","import {getVersionNameFromId, type VersionId} from '@sanity/id-utils'\nimport {Stack, Text} from '@sanity/ui'\nimport {useToast} from '@sanity/ui/toast'\nimport {useCallback, useEffect, useRef, useState} from 'react'\nimport {Box} from 'ui5'\n\nimport {Dialog} from '../../../../ui-components/dialog/Dialog'\nimport {LoadingBlock} from '../../../components/loadingBlock/LoadingBlock'\nimport {useDocumentOperation} from '../../../hooks/useDocumentOperation'\nimport {useDocumentOperationEvent} from '../../../hooks/useDocumentOperationEvent'\nimport {useSchema} from '../../../hooks/useSchema'\nimport {\n getPairTarget,\n getTargetScopeId,\n useTargetDocumentState,\n} from '../../../hooks/useTargetDocumentState'\nimport {useTranslation} from '../../../i18n/hooks/useTranslation'\nimport {Translate} from '../../../i18n/Translate'\nimport {type TargetPerspective} from '../../../perspective/types'\nimport {Preview} from '../../../preview/components/Preview'\nimport {\n getPublishedId,\n getVersionFromId,\n getVersionId,\n isDraftId,\n isVersionId,\n} from '../../../util/draftUtils'\nimport {releasesLocaleNamespace} from '../../i18n'\n\n/**\n * @internal\n */\nexport function DiscardVersionDialog(props: {\n onClose: () => void\n versionId: string\n documentType: string\n fromPerspective: string | TargetPerspective\n isGoingToUnpublish: boolean\n /**\n * Whether the dialog pushes its own failure toast. Callers rendered inside the document pane\n * should leave this off: `DocumentOperationResults` already toasts the same operation events\n * there, so the dialog would duplicate them. Defaults to `true` for the release tool, which\n * has no such listener.\n */\n showCompletionToasts?: boolean\n}): React.JSX.Element {\n const {\n onClose,\n versionId,\n documentType,\n fromPerspective,\n isGoingToUnpublish,\n showCompletionToasts = true,\n } = props\n const {t} = useTranslation(releasesLocaleNamespace)\n const {t: coreT} = useTranslation()\n const publishedId = getPublishedId(versionId)\n const targetDocumentState = useTargetDocumentState(publishedId)\n // Discarding a version must target the bundle encoded in `versionId`, not the globally selected\n // perspective: the dialog is opened from version chips and the release tool's document table,\n // where the selected perspective can be a different release (or the drafts pair) and would\n // discard the wrong document.\n // `|| undefined` so a malformed version id (no bundle segment) falls back to the perspective\n // target below rather than checking out an empty scope.\n const discardScopeId = (isVersionId(versionId) && getVersionFromId(versionId)) || undefined\n // Only the draft case follows the selected perspective, so that discarding a draft targets the\n // variant-scoped version when a variant is selected. While that lookup resolves, confirming is\n // disabled below instead of silently operating on the base pair.\n const isTargetReady = Boolean(discardScopeId) || targetDocumentState.status === 'ready'\n const {discardChanges} = useDocumentOperation(\n publishedId,\n documentType,\n discardScopeId ?? getPairTarget(targetDocumentState),\n )\n const schema = useSchema()\n const toast = useToast()\n const [isDiscarding, setIsDiscarding] = useState(false)\n const discardType = isDraftId(versionId) ? 'draft' : 'release'\n const rawReleaseName =\n typeof fromPerspective === 'string' ? fromPerspective : fromPerspective.metadata.title\n const currentRelease = getVersionNameFromId(versionId as VersionId)\n const releaseName = rawReleaseName || coreT('release.placeholder-untitled-release')\n\n const schemaType = schema.get(documentType)\n\n // The pair the operation runs against, used to recognise this dialog's own completion event:\n // `operationEvents` is keyed by published id and type only, so a discard of another bundle of\n // the same document would otherwise be mistaken for this one.\n const targetScopeId = discardScopeId ?? getTargetScopeId(targetDocumentState)\n const targetVersionId = targetScopeId ? getVersionId(publishedId, targetScopeId) : undefined\n\n const event = useDocumentOperationEvent(publishedId, documentType)\n const prevEvent = useRef(event)\n const awaitingDiscardRef = useRef(false)\n\n useEffect(() => {\n if (!event || event === prevEvent.current) return\n prevEvent.current = event\n\n if (!awaitingDiscardRef.current) return\n if (event.op !== 'discardChanges' || event.idPair.versionId !== targetVersionId) return\n\n awaitingDiscardRef.current = false\n\n if (event.type === 'error' && showCompletionToasts) {\n toast.push({\n closable: true,\n status: 'error',\n title: coreT('release.action.discard-version.failure'),\n description: event.error.message,\n })\n }\n\n onClose()\n }, [coreT, event, onClose, showCompletionToasts, targetVersionId, toast])\n\n const handleDiscardVersion = useCallback(() => {\n if (discardChanges.disabled) return\n\n setIsDiscarding(true)\n awaitingDiscardRef.current = true\n discardChanges.execute()\n }, [discardChanges])\n\n return (\n <Dialog\n id={'discard-version-dialog'}\n header={\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.header-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n }\n onClose={onClose}\n width={0}\n padding={false}\n footer={{\n cancelButton: {\n disabled: isDiscarding,\n onClick: onClose,\n },\n confirmButton: {\n text: t(`discard-version-dialog.title-${discardType}`),\n onClick: handleDiscardVersion,\n disabled: isDiscarding || !isTargetReady || Boolean(discardChanges.disabled),\n loading: isDiscarding,\n },\n }}\n >\n <Stack gap={3} paddingX={3} marginBottom={2}>\n {schemaType ? (\n <Preview\n value={{_id: isGoingToUnpublish ? publishedId : versionId}}\n schemaType={schemaType}\n // Resolve the preview under the perspective of what's being discarded:\n // the published doc when unpublishing, the drafts perspective when\n // discarding a draft, otherwise the release version. Without the\n // explicit 'drafts' stack a draft falls back to its published value\n // (or \"Untitled\" when none exists), so it wouldn't show the draft\n // being discarded.\n perspectiveStack={\n isGoingToUnpublish ? [] : discardType === 'draft' ? ['drafts'] : [currentRelease]\n }\n />\n ) : (\n <LoadingBlock />\n )}\n <Box paddingX={2} style={{maxWidth: '400px'}}>\n <Text size={1} muted>\n <Translate\n t={t}\n i18nKey={`discard-version-dialog.description-${discardType}`}\n values={{releaseTitle: releaseName}}\n />\n </Text>\n </Box>\n </Stack>\n </Dialog>\n )\n}\n","import {type ReleaseDocument} from '@sanity/client'\nimport {useMemo} from 'react'\n\nimport {ARCHIVED_RELEASE_STATES} from '../util/const'\nimport {useAllReleases} from './useAllReleases'\n\n/**\n * @internal\n */\nexport function useArchivedReleases(): {\n data: ReleaseDocument[]\n error?: Error\n loading: boolean\n} {\n const {data: releases, error, loading} = useAllReleases()\n\n const archivedReleases = useMemo(\n () =>\n Array.from(releases.values()).filter((release) => {\n return ARCHIVED_RELEASE_STATES.includes(release.state)\n }),\n [releases],\n )\n\n return useMemo(\n () => ({data: archivedReleases, error, loading}),\n [archivedReleases, error, loading],\n )\n}\n","import {type ReleaseDocument} from '@sanity/client'\nimport {type BadgeTone, Stack, Text} from '@sanity/ui'\nimport {useToast} from '@sanity/ui/toast'\nimport {type CSSProperties, useCallback, useEffect, useRef, useState} from 'react'\n\nimport {Dialog} from '../../../../ui-components/dialog/Dialog'\nimport {LoadingBlock} from '../../../components/loadingBlock/LoadingBlock'\nimport {useDocumentOperation} from '../../../hooks/useDocumentOperation'\nimport {useDocumentOperationEvent} from '../../../hooks/useDocumentOperationEvent'\nimport {useSchema} from '../../../hooks/useSchema'\nimport {useTranslation} from '../../../i18n/hooks/useTranslation'\nimport {Translate} from '../../../i18n/Translate'\nimport {Preview} from '../../../preview/components/Preview'\nimport {useValuePreview} from '../../../preview/useValuePreview'\nimport {getPublishedId, getVersionFromId} from '../../../util/draftUtils'\nimport {releasesLocaleNamespace} from '../../i18n'\nimport {useActiveReleases} from '../../store/useActiveReleases'\nimport {useArchivedReleases} from '../../store/useArchivedReleases'\nimport {getReleaseIdFromReleaseDocumentId} from '../../util/getReleaseIdFromReleaseDocumentId'\nimport {getReleaseTone} from '../../util/getReleaseTone'\n\nfunction ToneLabel({children, tone}: {children?: React.ReactNode; tone?: BadgeTone}) {\n return (\n <span\n style={\n {\n color: `var(--card-badge-${tone ?? 'default'}-fg-color)`,\n backgroundColor: `var(--card-badge-${tone ?? 'default'}-bg-color)`,\n borderRadius: 3,\n textDecoration: 'none',\n padding: '0px 2px',\n fontWeight: 500,\n } as CSSProperties\n }\n >\n {children}\n </span>\n )\n}\n\nexport function UnpublishVersionDialog(props: {\n onClose: () => void\n documentVersionId: string\n documentType: string\n /**\n * Whether the dialog pushes its own completion toasts. Callers rendered inside the document\n * pane should leave this off: `DocumentOperationResults` already toasts the same operation\n * events there, so the dialog would duplicate them. Defaults to `true` for the release tool,\n * which has no such listener.\n */\n showCompletionToasts?: boolean\n}): React.JSX.Element {\n const {onClose, documentVersionId, documentType, showCompletionToasts = true} = props\n const {t} = useTranslation(releasesLocaleNamespace)\n const {t: coreT} = useTranslation()\n\n const schema = useSchema()\n const publishedId = getPublishedId(documentVersionId)\n // The bundle to unpublish is the one encoded in the id, never the selected perspective: the\n // dialog is opened from the release tool's document table and from version chips, where the\n // selected perspective is frequently a different release.\n const scopeId = getVersionFromId(documentVersionId)\n const {unpublish} = useDocumentOperation(publishedId, documentType, scopeId)\n // Without a bundle segment in the id there is no release to unpublish within, and the operation\n // would target the draft/published pair and hard-unpublish the document instead. The version\n // operation this replaced threw in that case.\n const canUnpublish = Boolean(scopeId) && !unpublish.disabled\n const [isUnpublishing, setIsUnpublishing] = useState(false)\n const toast = useToast()\n const {data} = useActiveReleases()\n const {data: archivedReleases} = useArchivedReleases()\n\n const release = data\n .concat(archivedReleases)\n .find((candidate) => getReleaseIdFromReleaseDocumentId(candidate._id) === scopeId)\n\n const tone = getReleaseTone(release as ReleaseDocument)\n const schemaType = schema.get(documentType)\n\n const preview = useValuePreview({schemaType, value: {_id: documentVersionId}})\n const previewTitle = preview?.value?.title\n\n const event = useDocumentOperationEvent(publishedId, documentType)\n const prevEvent = useRef(event)\n const awaitingUnpublishRef = useRef(false)\n\n useEffect(() => {\n if (!event || event === prevEvent.current) return\n prevEvent.current = event\n\n if (!awaitingUnpublishRef.current) return\n // `operationEvents` is keyed by published id and type only, so an unpublish of another bundle\n // of the same document would otherwise be mistaken for this dialog's own result.\n if (event.op !== 'unpublish' || event.idPair.versionId !== documentVersionId) return\n\n awaitingUnpublishRef.current = false\n\n if (showCompletionToasts) {\n toast.push(\n event.type === 'success'\n ? {\n closable: true,\n status: 'success',\n description: (\n <Translate\n t={coreT}\n i18nKey={'release.action.unpublish-version.success'}\n values={{title: previewTitle || documentVersionId}}\n />\n ),\n }\n : {\n closable: true,\n status: 'error',\n title: coreT('release.action.unpublish-version.failure'),\n description: event.error.message,\n },\n )\n }\n\n onClose()\n }, [coreT, documentVersionId, event, onClose, previewTitle, showCompletionToasts, toast])\n\n const handleUnpublish = useCallback(() => {\n if (!canUnpublish) return\n\n setIsUnpublishing(true)\n awaitingUnpublishRef.current = true\n unpublish.execute()\n }, [canUnpublish, unpublish])\n\n return (\n <Dialog\n header={t('unpublish-dialog.header')}\n id=\"document-unpublish-dialog\"\n onClickOutside={onClose}\n onClose={onClose}\n width={0}\n padding={false}\n footer={{\n cancelButton: {\n text: t('unpublish-dialog.action.cancel'),\n onClick: onClose,\n },\n confirmButton: {\n text: t('unpublish-dialog.action.unpublish'),\n onClick: handleUnpublish,\n tone: 'critical',\n disabled: isUnpublishing || !canUnpublish,\n loading: isUnpublishing,\n },\n }}\n >\n <Stack gap={4} paddingX={4} paddingBottom={4}>\n {schemaType ? (\n <Preview value={{_id: documentVersionId}} schemaType={schemaType} />\n ) : (\n <LoadingBlock />\n )}\n <Text muted size={1}>\n <Translate\n t={t}\n i18nKey=\"unpublish-dialog.description.to-draft\"\n values={{\n title: release?.metadata.title || coreT('release.placeholder-untitled-release'),\n }}\n components={{Label: ToneLabel}}\n componentProps={{tone}}\n />\n </Text>\n <Text muted size={1}>\n {t('unpublish-dialog.description.lost-changes')}\n </Text>\n </Stack>\n </Dialog>\n )\n}\n","import {LATEST, PUBLISHED} from '../releases/util/const'\nimport {useWorkspace} from '../studio/workspace'\n\n/**\n * @beta\n * Exposes the default perspective based on the draft model enabled status.\n * If the user hasn't opt out from draft, the default perspective is `drafts`\n * Otherwise, the default perspective is `published`\n * @returns The default perspective based on the draft model enabled status.\n */\nexport function useGetDefaultPerspective(): 'drafts' | 'published' {\n const isDraftModelEnabled = useWorkspace().document.drafts.enabled\n return isDraftModelEnabled ? LATEST : PUBLISHED\n}\n","import {useCallback} from 'react'\nimport {useRouter} from 'sanity/router'\n\nimport {type SystemBundle} from '../util/draftUtils'\nimport {type ReleaseId} from './types'\nimport {useGetDefaultPerspective} from './useGetDefaultPerspective'\n\n/**\n * Resolves the value of the `perspective` sticky param for a given perspective. Default states\n * (no perspective, or the default perspective) resolve to an empty string so the param is removed.\n *\n * @internal\n */\nexport function getPerspectiveParam(\n perspective: SystemBundle | ReleaseId | undefined,\n defaultPerspective: SystemBundle,\n) {\n if (!perspective) return ''\n if (perspective === defaultPerspective) return ''\n return perspective\n}\n\n/**\n * @internal\n */\nexport function useSetPerspective() {\n const router = useRouter()\n\n const defaultPerspective = useGetDefaultPerspective()\n\n const setPerspective = useCallback(\n (releaseId: SystemBundle | ReleaseId | undefined) => {\n const newPerspective = getPerspectiveParam(releaseId, defaultPerspective)\n\n router.navigate({\n stickyParams: {\n excludedPerspectives: null,\n perspective: newPerspective,\n },\n })\n },\n [defaultPerspective, router],\n )\n return setPerspective\n}\n","import {defineEvent} from '@sanity/telemetry'\n\nimport {type DocumentVariantType} from '../../util/getDocumentVariantType'\n\ninterface VersionInfo {\n /**\n * document type that was added\n */\n\n /**\n * the origin of the version created (from a draft or from a version)\n */\n documentOrigin: DocumentVariantType\n}\n\nexport interface OriginInfo {\n /**\n * determines where the release was created, either from the structure view or the release plugin\n */\n origin: 'structure' | 'release-plugin'\n}\n\nexport interface RevertInfo {\n /**\n * determined whether reverting a release created a new staged release, or immediately reverted\n */\n revertType: 'immediate' | 'staged'\n}\n\nexport interface ReleaseDescriptionInfo {\n /**\n * whether the description was set when creating the release, or edited on an existing release\n */\n action: 'create' | 'edit'\n /**\n * number of characters in the description - never the description content itself\n */\n characterCount: number\n /**\n * whether the description contains a URL\n */\n containsUrl: boolean\n}\n\n/**\n * When a document (version) is successfully added to a release\n */\nexport const AddedVersion = defineEvent<VersionInfo>({\n name: 'Version Document Added to Release ',\n version: 1,\n description: 'User added a document to a release',\n})\n\n/** When a release is successfully created */\nexport const CreatedRelease = defineEvent<OriginInfo>({\n name: 'Release Created',\n version: 1,\n description: 'User created a release',\n})\n\n/** When a release is successfully deleted */\nexport const DeletedRelease = defineEvent({\n name: 'Release Deleted',\n version: 1,\n description: 'User deleted a release',\n})\n\n/** When a release is successfully published */\nexport const PublishedRelease = defineEvent({\n name: 'Release Published',\n version: 1,\n description: 'User published a release',\n})\n\n/** When a release is successfully scheduled*/\nexport const ScheduledRelease = defineEvent({\n name: 'Release Scheduled',\n version: 1,\n description: 'User scheduled a release',\n})\n\n/** When a release is successfully scheduled */\nexport const UnscheduledRelease = defineEvent({\n name: 'Release Unscheduled',\n version: 1,\n description: 'User unscheduled a release',\n})\n\n/** When a release is successfully archived*/\nexport const ArchivedRelease = defineEvent({\n name: 'Release Archived',\n version: 1,\n description: 'User archived a release',\n})\n\n/** When a release is successfully unarchived */\nexport const UnarchivedRelease = defineEvent({\n name: 'Release Unarchived',\n version: 1,\n description: 'User unarchived a release',\n})\n\n/** When a release is successfully reverted */\nexport const RevertRelease = defineEvent<RevertInfo>({\n name: 'Release Reverted',\n version: 1,\n description: 'User reverted a release',\n})\n\n/** When a release is successfully duplicated */\nexport const DuplicatedRelease = defineEvent({\n name: 'Release Duplicated',\n version: 1,\n description: 'User duplicated a release',\n})\n\n/** When a release link is copied to clipboard */\nexport const ReleaseLinkCopied = defineEvent({\n name: 'Release Link Copied',\n version: 1,\n description: 'User copied release link to clipboard',\n})\n\n/** When a release ID is copied to clipboard */\nexport const ReleaseIdCopied = defineEvent({\n name: 'Release ID Copied',\n version: 1,\n description: 'User copied release ID to clipboard',\n})\n\n/** When a release title is copied to clipboard */\nexport const ReleaseTitleCopied = defineEvent({\n name: 'Release Title Copied',\n version: 1,\n description: 'User copied release title to clipboard',\n})\n\n/** Records release description usage - set at creation or edited in Studio */\nexport const ReleaseDescriptionSet = defineEvent<ReleaseDescriptionInfo>({\n name: 'Release Description Set',\n version: 1,\n description:\n 'Whether a release description was set at creation or edited in Studio, with its character count (never the content itself)',\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAMA,SAAgB,0BAA0B,gBAAwB,aAAqB;eAC/E,gBAAgB,iBAAiB,GAG/BA;CAMR,OAN2D,EAAA,OAAA,eAAA,EAAA,OAArCC,cAAAA,QAAAA,EAAAA,OAAqB,kBAAnC,KAAA,cAAc,KAAK,gBAAgB,gBAAgB,WAAW,GAAX,EAAA,KAAA,aAArCA,EAAAA,KAAAA,cAAAA,MAAqB,EAAA,KAAA,wCAMpC,kBAAkB,IAAY,KAAA,CAAS;AAChD;;;;ACeA,SAAgB,qBAAqB,OAaf;gBACd,EACJ,SACA,WACA,cACA,iBACA,oBACA,sBAAA,OACE,OADF,uBAAA,OAAA,KAAA,KAAAE,IAEI,EAAC,MAAK,eAAe,uBAAuB,GAC5C,EAAC,GAAG,UAAS,eAAe,GACdC;CAAe,AAAA,EAAA,OAAA,yBAAf,KAAA,eAAe,SAAS,GAAT,EAAA,KAAA;CAAnC,IAAM,cAAcA,IACd,sBAAsB,uBAAu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YAAY;CACxC,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,mBAAmB,YAAY;CAC1C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,mBAAmB,YAAY;CAC1C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,qBAAqB,YAAY;CAC5C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,kBAAkB,YAAY;CACzC,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,oBAAoB,YAAY;CAC3C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,gBAAgB,YAAwB;CACnD,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,oBAAoB,YAAY;CAC3C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,oBAAoB,YAAY;CAC3C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,kBAAkB,YAAY;CACzC,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,qBAAqB,YAAY;CAC5C,MAAM;CACN,SAAS;CACT,aAAa;AACf,CAAC,GAGY,wBAAwB,YAAoC;CACvE,MAAM;CACN,SAAS;CACT,aACE;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { f as defineLocalesResources } from "./PerspectiveProvider-Yk7lgugx.js";
1
+ import { f as defineLocalesResources } from "./PerspectiveProvider-D-6sweQH.js";
2
2
  /**
3
3
  * Defined locale strings for the task tool, in US English.
4
4
  *
@@ -158,4 +158,4 @@ const tasksLocaleStrings = defineLocalesResources("tasks", {
158
158
  });
159
159
  export { tasksLocaleStrings as default };
160
160
 
161
- //# sourceMappingURL=resources-BjljYbUa.js.map
161
+ //# sourceMappingURL=resources-Bw1bpPhG.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources-BjljYbUa.js","names":[],"sources":["../src/core/tasks/i18n/resources.ts"],"sourcesContent":["/* eslint sort-keys: \"error\" */\nimport {defineLocalesResources} from '../../i18n/helpers'\n\n/**\n * Defined locale strings for the task tool, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst tasksLocaleStrings = defineLocalesResources('tasks', {\n /** The label for the create task action */\n 'actions.create.text': 'Create new task',\n /** The label for the open tasks panel action */\n 'actions.open.text': 'Tasks',\n /** The label for the button to create a new task */\n 'buttons.create.text': 'Create Task',\n /** The label for the button to discard changes */\n 'buttons.discard.text': 'Discard',\n /** The label for the button to open the draft */\n 'buttons.draft.text': 'Draft',\n /** The label for the button to create a new task */\n 'buttons.new.text': 'New task',\n /** The text for tooltip in the create a new task button when mode is upsell */\n 'buttons.new.upsell-tooltip': 'Upgrade to create tasks',\n /** The label for the button that will navigate to the next task */\n 'buttons.next.tooltip': 'Go to next task',\n /** The label for the button that will previous to the next task */\n 'buttons.previous.tooltip': 'Go to previous task',\n /** Text for the remove task dialog asking for confirmation of deletion */\n 'dialog.remove-task.body': 'Once deleted, a task cannot be recovered.',\n /** The label for the cancel button on the remove task dialog */\n 'dialog.remove-task.buttons.cancel.text': 'Cancel',\n /** The label for the confirmation button on the remove task dialog */\n 'dialog.remove-task.buttons.confirm.text': 'Delete',\n /** The title for the remove task dialog */\n 'dialog.remove-task.title': 'Delete this task?',\n /** The text used as a placeholder for the footer action in a document with a single task */\n 'document.footer.open-tasks.placeholder_one': 'Open task',\n /** The text used as a placeholder for the footer action in a document with multiple tasks */\n 'document.footer.open-tasks.placeholder_other': 'Open tasks',\n /** The label used in the button in the footer action in a document with a single task */\n 'document.footer.open-tasks.text_one': '{{count}} open task',\n /** The label used in the button in the footer action in a document with multiple tasks */\n 'document.footer.open-tasks.text_other': '{{count}} open tasks',\n\n /** The heading in the tasks sidebar, in the assigned tab, when the user hasn't been assigned to any task*/\n 'empty-state.list.assigned.heading': \"You haven't been assigned any tasks\",\n /** The text in the tasks sidebar, in the assigned tab, when the user hasn't been assigned to any task*/\n 'empty-state.list.assigned.text': \"Once you're assigned tasks they'll show up here\",\n /** The text in the tasks sidebar button any of the empty states is rendered*/\n 'empty-state.list.create-new': 'Create new task',\n /** The heading in the tasks sidebar, in the document tab, when the document doesn't have any task*/\n 'empty-state.list.document.heading': \"This document doesn't have any tasks yet\",\n /** The text in the tasks sidebar, in the document tab, when the document doesn't have any task*/\n 'empty-state.list.document.text': 'Once a document has connected tasks, they will be shown here.',\n /** The heading in the tasks sidebar, when viewing the document tab, but there is not an active document*/\n 'empty-state.list.no-active-document.heading': 'Open a document to see its task',\n /** The text in the tasks sidebar, when viewing the document tab, but there is not an active document*/\n 'empty-state.list.no-active-document.text': 'Tasks on your active document will be shown here.',\n /** The heading in the tasks sidebar, in the subscriber tab, when the user is not subscribed to any task*/\n 'empty-state.list.subscribed.heading': \"You haven't subscribed to any tasks\",\n /** The text in the tasks sidebar, in the subscriber tab, when the user is not subscribed to any task*/\n 'empty-state.list.subscribed.text':\n 'When you create, modify, or comment on a task you will be subscribed automatically',\n\n /** The heading in the tasks sidebar, in the assigned tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.assigned.heading': 'No completed tasks',\n /** The text in the tasks sidebar, in the assigned tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.assigned.text': 'Your tasks marked done will show up here',\n /** The heading in the tasks sidebar, in the document tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.document.heading': 'No completed tasks',\n /** The heading in the tasks sidebar, in the subscribed tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.subscribed.heading': 'No completed tasks',\n /** The text in the tasks sidebar, in the subscribed tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.subscribed.text':\n 'Tasks you subscribe to marked done will show up here',\n\n /** The heading in the tasks sidebar, in the assigned tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.assigned.heading': \"You're all caught up\",\n /** The text in the tasks sidebar, in the assigned tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.assigned.text': 'New tasks assigned to you will show up here',\n /** The heading in the tasks sidebar, in the document tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.document.heading': 'No tasks on this document',\n /** The heading in the tasks sidebar, in the subscribed tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.subscribed.heading': 'No subscribed tasks',\n /** The text in the tasks sidebar, in the subscribed tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.subscribed.text': 'Tasks you subscribe to will show up here',\n\n /** Text used in the assignee input when there is no user assigned */\n 'form.input.assignee.no-user-assigned.text': 'Unassigned',\n /** Text used in the assignee input tooltip when there is no user assigned */\n 'form.input.assignee.no-user-assigned.tooltip': 'Set assignee',\n /** Text used in the assignee input when searching and no users are found */\n 'form.input.assignee.search.no-users.text': 'No users found',\n /** Placeholder text used in the search box in the assignee input */\n 'form.input.assignee.search.placeholder': 'Select assignee',\n /** Text used in the assignee input when user is not authorized */\n 'form.input.assignee.unauthorized.text': 'Unauthorized',\n /** Text used in the assignee input tooltip when there is no user assigned */\n 'form.input.assignee.user-assigned.tooltip': 'Change assignee',\n /** Text used in the assignee input when user is not found */\n 'form.input.assignee.user-not-found.text': 'User not found',\n /** The label used in the create more toggle */\n 'form.input.create-more.text': 'Create more',\n /** The label used in the date input button tooltip when it's empty */\n 'form.input.date.buttons.empty.tooltip': 'Set due date',\n /** The label used in the date input to remove the current value */\n 'form.input.date.buttons.remove.text': 'Remove',\n /** The label used in the date input button tooltip when it has value */\n 'form.input.date.buttons.tooltip': 'Change due date',\n /** Placeholder text used in the description input */\n 'form.input.description.placeholder': 'Add description',\n /** Text used in the tooltip in the status change button */\n 'form.input.status.button.tooltip': 'Change status',\n /** The label used in the target input to remove the current value */\n 'form.input.target.buttons.remove.text': 'Remove target content',\n /** The text used in the target input when encountering a schema error */\n 'form.input.target.error.schema-not-found': 'Schema not found',\n /** The placeholder text used in the target input for the search component */\n 'form.input.target.search.placeholder': 'Select target document',\n /** The placeholder text for the title input */\n 'form.input.title.placeholder': 'Task title',\n /** The status error message presented when the user does not supply a title */\n 'form.status.error.title-required': 'Title is required',\n /** The status message upon successful creation of a task */\n 'form.status.success': 'Task created',\n /** The text displayed when no tasks are found */\n 'list.empty.text': 'No tasks',\n /** The text displayed at the bottom of the tasks list inviting users provide feedback */\n 'list.feedback.text': 'Help us improve, <Link>share feedback on Tasks</Link> ',\n /** The label for the copy link menu item */\n 'menuitem.copylink.text': 'Copy link to task',\n /** The label for the delete task menu item */\n 'menuitem.delete.text': 'Delete task',\n /** The label for the duplicate task menu item */\n 'menuitem.duplicate.text': 'Duplicate task',\n /** The text for the duplicate task menu item tooltip when mode is upsell */\n 'menuitem.duplicate.upsell-tooltip': 'Upgrade to duplicate tasks',\n /** Fragment used to construct the first entry in the activity log */\n 'panel.activity.created-fragment': 'created this task',\n /** The title of the activity section of the task */\n 'panel.activity.title': 'Activity',\n /** The text used in the activity log when unable to find the user */\n 'panel.activity.unknown-user': 'Unknown user',\n /** The tooltip for the close button for the task panel */\n 'panel.close.tooltip': 'Close sidebar',\n /** The placeholder text for the comment text box */\n 'panel.comment.placeholder': 'Add a comment...',\n /** The placeholder text for the comment text box when mode is upsell */\n 'panel.comment.placeholder.upsell': 'Upgrade to comment on tasks',\n /** The title used in the task panel when showing the create task form */\n 'panel.create.title': 'Create',\n /** The title used in the drafts pulldown */\n 'panel.drafts.title': 'Drafts',\n /** The tooltip for the task navigation component */\n 'panel.navigation.tooltip': 'Open tasks',\n /** Title of the Tasks panel */\n 'panel.title': 'Tasks',\n\n /** Label for the Assigned Tab */\n 'tab.assigned.label': 'Assigned',\n /** Label for the Active Document Tab */\n 'tab.document.label': 'Active Document',\n /** Label for the Subscribed Tab */\n 'tab.subscribed.label': 'Subscribed',\n /** Tooltip for the tasks navbar icon */\n 'toolbar.tooltip': 'Tasks',\n})\n\n/**\n * @alpha\n */\nexport type TasksLocaleResourceKeys = keyof typeof tasksLocaleStrings\n\nexport default tasksLocaleStrings\n"],"mappings":";;;;;;AASA,MAAM,qBAAqB,uBAAuB,SAAS;;CAEzD,uBAAuB;;CAEvB,q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version":3,"file":"resources-Bw1bpPhG.js","names":[],"sources":["../src/core/tasks/i18n/resources.ts"],"sourcesContent":["/* eslint sort-keys: \"error\" */\nimport {defineLocalesResources} from '../../i18n/helpers'\n\n/**\n * Defined locale strings for the task tool, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst tasksLocaleStrings = defineLocalesResources('tasks', {\n /** The label for the create task action */\n 'actions.create.text': 'Create new task',\n /** The label for the open tasks panel action */\n 'actions.open.text': 'Tasks',\n /** The label for the button to create a new task */\n 'buttons.create.text': 'Create Task',\n /** The label for the button to discard changes */\n 'buttons.discard.text': 'Discard',\n /** The label for the button to open the draft */\n 'buttons.draft.text': 'Draft',\n /** The label for the button to create a new task */\n 'buttons.new.text': 'New task',\n /** The text for tooltip in the create a new task button when mode is upsell */\n 'buttons.new.upsell-tooltip': 'Upgrade to create tasks',\n /** The label for the button that will navigate to the next task */\n 'buttons.next.tooltip': 'Go to next task',\n /** The label for the button that will previous to the next task */\n 'buttons.previous.tooltip': 'Go to previous task',\n /** Text for the remove task dialog asking for confirmation of deletion */\n 'dialog.remove-task.body': 'Once deleted, a task cannot be recovered.',\n /** The label for the cancel button on the remove task dialog */\n 'dialog.remove-task.buttons.cancel.text': 'Cancel',\n /** The label for the confirmation button on the remove task dialog */\n 'dialog.remove-task.buttons.confirm.text': 'Delete',\n /** The title for the remove task dialog */\n 'dialog.remove-task.title': 'Delete this task?',\n /** The text used as a placeholder for the footer action in a document with a single task */\n 'document.footer.open-tasks.placeholder_one': 'Open task',\n /** The text used as a placeholder for the footer action in a document with multiple tasks */\n 'document.footer.open-tasks.placeholder_other': 'Open tasks',\n /** The label used in the button in the footer action in a document with a single task */\n 'document.footer.open-tasks.text_one': '{{count}} open task',\n /** The label used in the button in the footer action in a document with multiple tasks */\n 'document.footer.open-tasks.text_other': '{{count}} open tasks',\n\n /** The heading in the tasks sidebar, in the assigned tab, when the user hasn't been assigned to any task*/\n 'empty-state.list.assigned.heading': \"You haven't been assigned any tasks\",\n /** The text in the tasks sidebar, in the assigned tab, when the user hasn't been assigned to any task*/\n 'empty-state.list.assigned.text': \"Once you're assigned tasks they'll show up here\",\n /** The text in the tasks sidebar button any of the empty states is rendered*/\n 'empty-state.list.create-new': 'Create new task',\n /** The heading in the tasks sidebar, in the document tab, when the document doesn't have any task*/\n 'empty-state.list.document.heading': \"This document doesn't have any tasks yet\",\n /** The text in the tasks sidebar, in the document tab, when the document doesn't have any task*/\n 'empty-state.list.document.text': 'Once a document has connected tasks, they will be shown here.',\n /** The heading in the tasks sidebar, when viewing the document tab, but there is not an active document*/\n 'empty-state.list.no-active-document.heading': 'Open a document to see its task',\n /** The text in the tasks sidebar, when viewing the document tab, but there is not an active document*/\n 'empty-state.list.no-active-document.text': 'Tasks on your active document will be shown here.',\n /** The heading in the tasks sidebar, in the subscriber tab, when the user is not subscribed to any task*/\n 'empty-state.list.subscribed.heading': \"You haven't subscribed to any tasks\",\n /** The text in the tasks sidebar, in the subscriber tab, when the user is not subscribed to any task*/\n 'empty-state.list.subscribed.text':\n 'When you create, modify, or comment on a task you will be subscribed automatically',\n\n /** The heading in the tasks sidebar, in the assigned tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.assigned.heading': 'No completed tasks',\n /** The text in the tasks sidebar, in the assigned tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.assigned.text': 'Your tasks marked done will show up here',\n /** The heading in the tasks sidebar, in the document tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.document.heading': 'No completed tasks',\n /** The heading in the tasks sidebar, in the subscribed tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.subscribed.heading': 'No completed tasks',\n /** The text in the tasks sidebar, in the subscribed tab, under the closed details, when it's empty.*/\n 'empty-state.status.list.closed.subscribed.text':\n 'Tasks you subscribe to marked done will show up here',\n\n /** The heading in the tasks sidebar, in the assigned tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.assigned.heading': \"You're all caught up\",\n /** The text in the tasks sidebar, in the assigned tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.assigned.text': 'New tasks assigned to you will show up here',\n /** The heading in the tasks sidebar, in the document tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.document.heading': 'No tasks on this document',\n /** The heading in the tasks sidebar, in the subscribed tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.subscribed.heading': 'No subscribed tasks',\n /** The text in the tasks sidebar, in the subscribed tab, under the open details, when it's empty.*/\n 'empty-state.status.list.open.subscribed.text': 'Tasks you subscribe to will show up here',\n\n /** Text used in the assignee input when there is no user assigned */\n 'form.input.assignee.no-user-assigned.text': 'Unassigned',\n /** Text used in the assignee input tooltip when there is no user assigned */\n 'form.input.assignee.no-user-assigned.tooltip': 'Set assignee',\n /** Text used in the assignee input when searching and no users are found */\n 'form.input.assignee.search.no-users.text': 'No users found',\n /** Placeholder text used in the search box in the assignee input */\n 'form.input.assignee.search.placeholder': 'Select assignee',\n /** Text used in the assignee input when user is not authorized */\n 'form.input.assignee.unauthorized.text': 'Unauthorized',\n /** Text used in the assignee input tooltip when there is no user assigned */\n 'form.input.assignee.user-assigned.tooltip': 'Change assignee',\n /** Text used in the assignee input when user is not found */\n 'form.input.assignee.user-not-found.text': 'User not found',\n /** The label used in the create more toggle */\n 'form.input.create-more.text': 'Create more',\n /** The label used in the date input button tooltip when it's empty */\n 'form.input.date.buttons.empty.tooltip': 'Set due date',\n /** The label used in the date input to remove the current value */\n 'form.input.date.buttons.remove.text': 'Remove',\n /** The label used in the date input button tooltip when it has value */\n 'form.input.date.buttons.tooltip': 'Change due date',\n /** Placeholder text used in the description input */\n 'form.input.description.placeholder': 'Add description',\n /** Text used in the tooltip in the status change button */\n 'form.input.status.button.tooltip': 'Change status',\n /** The label used in the target input to remove the current value */\n 'form.input.target.buttons.remove.text': 'Remove target content',\n /** The text used in the target input when encountering a schema error */\n 'form.input.target.error.schema-not-found': 'Schema not found',\n /** The placeholder text used in the target input for the search component */\n 'form.input.target.search.placeholder': 'Select target document',\n /** The placeholder text for the title input */\n 'form.input.title.placeholder': 'Task title',\n /** The status error message presented when the user does not supply a title */\n 'form.status.error.title-required': 'Title is required',\n /** The status message upon successful creation of a task */\n 'form.status.success': 'Task created',\n /** The text displayed when no tasks are found */\n 'list.empty.text': 'No tasks',\n /** The text displayed at the bottom of the tasks list inviting users provide feedback */\n 'list.feedback.text': 'Help us improve, <Link>share feedback on Tasks</Link> ',\n /** The label for the copy link menu item */\n 'menuitem.copylink.text': 'Copy link to task',\n /** The label for the delete task menu item */\n 'menuitem.delete.text': 'Delete task',\n /** The label for the duplicate task menu item */\n 'menuitem.duplicate.text': 'Duplicate task',\n /** The text for the duplicate task menu item tooltip when mode is upsell */\n 'menuitem.duplicate.upsell-tooltip': 'Upgrade to duplicate tasks',\n /** Fragment used to construct the first entry in the activity log */\n 'panel.activity.created-fragment': 'created this task',\n /** The title of the activity section of the task */\n 'panel.activity.title': 'Activity',\n /** The text used in the activity log when unable to find the user */\n 'panel.activity.unknown-user': 'Unknown user',\n /** The tooltip for the close button for the task panel */\n 'panel.close.tooltip': 'Close sidebar',\n /** The placeholder text for the comment text box */\n 'panel.comment.placeholder': 'Add a comment...',\n /** The placeholder text for the comment text box when mode is upsell */\n 'panel.comment.placeholder.upsell': 'Upgrade to comment on tasks',\n /** The title used in the task panel when showing the create task form */\n 'panel.create.title': 'Create',\n /** The title used in the drafts pulldown */\n 'panel.drafts.title': 'Drafts',\n /** The tooltip for the task navigation component */\n 'panel.navigation.tooltip': 'Open tasks',\n /** Title of the Tasks panel */\n 'panel.title': 'Tasks',\n\n /** Label for the Assigned Tab */\n 'tab.assigned.label': 'Assigned',\n /** Label for the Active Document Tab */\n 'tab.document.label': 'Active Document',\n /** Label for the Subscribed Tab */\n 'tab.subscribed.label': 'Subscribed',\n /** Tooltip for the tasks navbar icon */\n 'toolbar.tooltip': 'Tasks',\n})\n\n/**\n * @alpha\n */\nexport type TasksLocaleResourceKeys = keyof typeof tasksLoc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4B;;CAE5B,eAAe;;CAGf,sBAAsB;;CAEtB,sBAAsB;;CAEtB,wBAAwB;;CAExB,mBAAmB;AACrB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { f as defineLocalesResources } from "./PerspectiveProvider-Yk7lgugx.js";
1
+ import { f as defineLocalesResources } from "./PerspectiveProvider-D-6sweQH.js";
2
2
  /**
3
3
  * Defined locale strings for the media library plugin, in US English.
4
4
  *
@@ -18,4 +18,4 @@ const mediaLibraryLocaleStrings = defineLocalesResources("media-library", {
18
18
  });
19
19
  export { mediaLibraryLocaleStrings as default };
20
20
 
21
- //# sourceMappingURL=resources-DYxnNjS8.js.map
21
+ //# sourceMappingURL=resources-CC1qBsSO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources-DYxnNjS8.js","names":[],"sources":["../src/media-library/plugin/i18n/resources.ts"],"sourcesContent":["/* eslint sort-keys: \"error\" */\nimport {defineLocalesResources} from '../../../core/i18n/helpers'\n\n/**\n * Defined locale strings for the media library plugin, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst mediaLibraryLocaleStrings = defineLocalesResources('media-library', {\n /** Warning description for invalid video value */\n 'invalid-video-warning.description':\n 'The value of this field is not a valid video. Resetting this field will let you choose a new video.',\n /** Reset button text for invalid video warning */\n 'invalid-video-warning.reset-button.text': 'Reset value',\n /** Warning title for invalid video value */\n 'invalid-video-warning.title': 'Invalid video value',\n /** Video error fallback description */\n 'video-error.description': 'Failed to load video',\n /** Retry button text for video loading errors */\n 'video-error.retry-button.text': 'Retry',\n})\n\n/**\n * @internal\n */\nexport type MediaLibraryLocaleResourceKeys = keyof typeof mediaLibraryLocaleStrings\n\nexport default mediaLibraryLocaleStrings\n"],"mappings":";;;;;;AASA,MAAM,4BAA4B,uBAAuB,iBAAiB;;CAExE,qCACE;;CAEF,2CAA2C;;CAE3C,+BAA+B;;CAE/B,2BAA2B;;CAE3B,iCAAiC;AACnC,CAAC"}
1
+ {"version":3,"file":"resources-CC1qBsSO.js","names":[],"sources":["../src/media-library/plugin/i18n/resources.ts"],"sourcesContent":["/* eslint sort-keys: \"error\" */\nimport {defineLocalesResources} from '../../../core/i18n/helpers'\n\n/**\n * Defined locale strings for the media library plugin, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst mediaLibraryLocaleStrings = defineLocalesResources('media-library', {\n /** Warning description for invalid video value */\n 'invalid-video-warning.description':\n 'The value of this field is not a valid video. Resetting this field will let you choose a new video.',\n /** Reset button text for invalid video warning */\n 'invalid-video-warning.reset-button.text': 'Reset value',\n /** Warning title for invalid video value */\n 'invalid-video-warning.title': 'Invalid video value',\n /** Video error fallback description */\n 'video-error.description': 'Failed to load video',\n /** Retry button text for video loading errors */\n 'video-error.retry-button.text': 'Retry',\n})\n\n/**\n * @internal\n */\nexport type MediaLibraryLocaleResourceKeys = keyof typeof mediaLibraryLocaleStrings\n\nexport default mediaLibraryLocaleStrings\n"],"mappings":";;;;;;AASA,MAAM,4BAA4B,uBAAuB,iBAAiB;;CAExE,qCACE;;CAEF,2CAA2C;;CAE3C,+BAA+B;;CAE/B,2BAA2B;;CAE3B,iCAAiC;AACnC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { f as defineLocalesResources } from "./PerspectiveProvider-Yk7lgugx.js";
1
+ import { f as defineLocalesResources } from "./PerspectiveProvider-D-6sweQH.js";
2
2
  /**
3
3
  * Defined locale strings for the Canvas integration feature, in US English.
4
4
  *
@@ -60,4 +60,4 @@ const canvasLocaleStrings = defineLocalesResources("canvas", {
60
60
  });
61
61
  export { canvasLocaleStrings as default };
62
62
 
63
- //# sourceMappingURL=resources-D7Mp6N-8.js.map
63
+ //# sourceMappingURL=resources-CH42UqhC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources-D7Mp6N-8.js","names":[],"sources":["../src/core/canvas/i18n/resources.ts"],"sourcesContent":["import {defineLocalesResources} from '../../i18n/helpers'\n\n/**\n * Defined locale strings for the Canvas integration feature, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst canvasLocaleStrings = defineLocalesResources('canvas', {\n /** The text for the \"Link to Canvas\" action. */\n 'action.link-document': 'Link to Canvas',\n\n /** The text for the \"Link to Canvas\" action when the document is not in the dashboard. */\n 'action.link-document-disabled.not-in-dashboard':\n 'Open this document in Dashboard to link to Canvas',\n /** The text for the \"Link to Canvas\" action when the user doesn't have permissions to link the document to Canvas. */\n 'action.link-document-disabled.missing-permissions':\n \"You don't have permissions to link this document to Canvas\",\n /** The text for the \"Link to Canvas\" action when the document is a version document. */\n 'action.link-document-disabled.version-document':\n 'Version documents are not yet supported in Canvas',\n /** The text for the \"Link to Canvas\" action when the document is not yet resolved. */\n 'action.link-document-disabled.initial-value-not-resolved':\n 'Please wait until the document initial values are resolved',\n /** The text for the \"Unlink from Canvas\" action. */\n 'action.unlink-document': 'Unlink from Canvas',\n /** The text for the \"Edit in Canvas\" action. */\n 'action.edit-document': 'Edit in Canvas',\n /** The text for the banner when the document is linked to Canvas. */\n 'banner.linked-to-canvas': 'This document is linked to Canvas',\n /** The text for the action button in the banner when the document is linked to Canvas. */\n 'banner.edit-document-in-canvas': 'Edit in Canvas',\n\n /** The title for the \"Confirm document changes\" dialog. */\n 'dialog.confirm-document-changes.title': 'Confirm document changes',\n /** The description for the \"Confirm document changes\" dialog. */\n 'dialog.confirm-document-changes.description':\n 'This document needs to be updated to be compatible with Canvas.\\n Existing content may be edited or removed as part of this process.',\n /** The text for the \"Confirm document changes\" dialog confirm button. */\n 'dialog.confirm-document-changes.confirm': 'Accept and continue',\n /** The text for the \"Confirm document changes\" dialog cancel button. */\n 'dialog.confirm-document-changes.cancel': 'Cancel',\n /** The description for the \"Confirm document changes\" dialog footer. */\n 'dialog.confirm-document-changes.footer-description': 'You can unlink from Canvas at any time',\n\n /** The title for the \"Link to Canvas\" dialog. */\n 'dialog.link-to-canvas.title': 'Link to Canvas',\n /** The text for the \"Link to Canvas\" dialog when the document is being validated. */\n 'dialog.link-to-canvas.validating': 'Validating',\n /** The text for the \"Link to Canvas\" dialog when the document is being redirected. */\n 'dialog.link-to-canvas.redirecting': 'Taking you to Canvas to complete linking...',\n /** The text for the Link to Canvas dialog when there is a error. */\n 'dialog.link-to-canvas.error': 'Failed to link to Canvas',\n\n /** The title for the \"Unlink from Canvas\" dialog. */\n 'dialog.unlink-from-canvas.title': 'Unlink from Canvas',\n /** The text for the \"Unlink from Canvas\" dialog when the document is being unlinked. */\n 'dialog.unlink-from-canvas.unlinking':\n \"You're unlinking <strong>“{{documentTitle}}”</strong> from Canvas.\",\n /** The text for the \"Unlink from Canvas\" dialog cancel button. */\n 'dialog.unlink-from-canvas.cancel': 'Cancel',\n /** The text for the \"Unlink from Canvas\" dialog unlink button. */\n 'dialog.unlink-from-canvas.unlink-action': 'Unlink now',\n /** The text for the \"Unlink from Canvas\" dialog description. */\n 'dialog.unlink-from-canvas.description':\n 'Once unlinked, it will be editable here and future edits in Canvas will no longer automatically map to this document.',\n /** The text for the \"Unlink from Canvas\" dialog success message. */\n 'dialog.unlink-from-canvas.success': 'Unlinked from Canvas',\n /** The text for the \"Unlink from Canvas\" dialog error message. */\n 'dialog.unlink-from-canvas.error': 'Failed to unlink from Canvas',\n /** The text for the \"Navigate to Canvas\" dialog error message. */\n 'navigate-to-canvas-doc.error.missing-permissions': 'Missing permissions to navigate to Canvas',\n})\n\n/**\n * @alpha\n */\nexport type CanvasLocaleResourceKeys = keyof typeof canvasLocaleStrings\n\nexport default canvasLocaleStrings\n"],"mappings":";;;;;;AAQA,MAAM,sBAAsB,uBAAuB,UAAU;;CAE3D,wBAAwB;;CAGxB,kDACE;;CAEF,qDACE;;CAEF,kDACE;;CAEF,4DACE;;CAEF,0BAA0B;;CAE1B,wBAAwB;;CAExB,2BAA2B;;CAE3B,kCAAkC;;CAGlC,yCAAyC;;CAEzC,+CACE;;CAEF,2CAA2C;;CAE3C,0CAA0C;;CAE1C,sDAAsD;;CAGtD,+BAA+B;;CAE/B,oCAAoC;;CAEpC,qCAAqC;;CAErC,+BAA+B;;CAG/B,mCAAmC;;CAEnC,uCACE;;CAEF,oCAAoC;;CAEpC,2CAA2C;;CAE3C,yCACE;;CAEF,qCAAqC;;CAErC,mCAAmC;;CAEnC,oDAAoD;AACtD,CAAC"}
1
+ {"version":3,"file":"resources-CH42UqhC.js","names":[],"sources":["../src/core/canvas/i18n/resources.ts"],"sourcesContent":["import {defineLocalesResources} from '../../i18n/helpers'\n\n/**\n * Defined locale strings for the Canvas integration feature, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst canvasLocaleStrings = defineLocalesResources('canvas', {\n /** The text for the \"Link to Canvas\" action. */\n 'action.link-document': 'Link to Canvas',\n\n /** The text for the \"Link to Canvas\" action when the document is not in the dashboard. */\n 'action.link-document-disabled.not-in-dashboard':\n 'Open this document in Dashboard to link to Canvas',\n /** The text for the \"Link to Canvas\" action when the user doesn't have permissions to link the document to Canvas. */\n 'action.link-document-disabled.missing-permissions':\n \"You don't have permissions to link this document to Canvas\",\n /** The text for the \"Link to Canvas\" action when the document is a version document. */\n 'action.link-document-disabled.version-document':\n 'Version documents are not yet supported in Canvas',\n /** The text for the \"Link to Canvas\" action when the document is not yet resolved. */\n 'action.link-document-disabled.initial-value-not-resolved':\n 'Please wait until the document initial values are resolved',\n /** The text for the \"Unlink from Canvas\" action. */\n 'action.unlink-document': 'Unlink from Canvas',\n /** The text for the \"Edit in Canvas\" action. */\n 'action.edit-document': 'Edit in Canvas',\n /** The text for the banner when the document is linked to Canvas. */\n 'banner.linked-to-canvas': 'This document is linked to Canvas',\n /** The text for the action button in the banner when the document is linked to Canvas. */\n 'banner.edit-document-in-canvas': 'Edit in Canvas',\n\n /** The title for the \"Confirm document changes\" dialog. */\n 'dialog.confirm-document-changes.title': 'Confirm document changes',\n /** The description for the \"Confirm document changes\" dialog. */\n 'dialog.confirm-document-changes.description':\n 'This document needs to be updated to be compatible with Canvas.\\n Existing content may be edited or removed as part of this process.',\n /** The text for the \"Confirm document changes\" dialog confirm button. */\n 'dialog.confirm-document-changes.confirm': 'Accept and continue',\n /** The text for the \"Confirm document changes\" dialog cancel button. */\n 'dialog.confirm-document-changes.cancel': 'Cancel',\n /** The description for the \"Confirm document changes\" dialog footer. */\n 'dialog.confirm-document-changes.footer-description': 'You can unlink from Canvas at any time',\n\n /** The title for the \"Link to Canvas\" dialog. */\n 'dialog.link-to-canvas.title': 'Link to Canvas',\n /** The text for the \"Link to Canvas\" dialog when the document is being validated. */\n 'dialog.link-to-canvas.validating': 'Validating',\n /** The text for the \"Link to Canvas\" dialog when the document is being redirected. */\n 'dialog.link-to-canvas.redirecting': 'Taking you to Canvas to complete linking...',\n /** The text for the Link to Canvas dialog when there is a error. */\n 'dialog.link-to-canvas.error': 'Failed to link to Canvas',\n\n /** The title for the \"Unlink from Canvas\" dialog. */\n 'dialog.unlink-from-canvas.title': 'Unlink from Canvas',\n /** The text for the \"Unlink from Canvas\" dialog when the document is being unlinked. */\n 'dialog.unlink-from-canvas.unlinking':\n \"You're unlinking <strong>“{{documentTitle}}”</strong> from Canvas.\",\n /** The text for the \"Unlink from Canvas\" dialog cancel button. */\n 'dialog.unlink-from-canvas.cancel': 'Cancel',\n /** The text for the \"Unlink from Canvas\" dialog unlink button. */\n 'dialog.unlink-from-canvas.unlink-action': 'Unlink now',\n /** The text for the \"Unlink from Canvas\" dialog description. */\n 'dialog.unlink-from-canvas.description':\n 'Once unlinked, it will be editable here and future edits in Canvas will no longer automatically map to this document.',\n /** The text for the \"Unlink from Canvas\" dialog success message. */\n 'dialog.unlink-from-canvas.success': 'Unlinked from Canvas',\n /** The text for the \"Unlink from Canvas\" dialog error message. */\n 'dialog.unlink-from-canvas.error': 'Failed to unlink from Canvas',\n /** The text for the \"Navigate to Canvas\" dialog error message. */\n 'navigate-to-canvas-doc.error.missing-permissions': 'Missing permissions to navigate to Canvas',\n})\n\n/**\n * @alpha\n */\nexport type CanvasLocaleResourceKeys = keyof typeof canvasLocaleStrings\n\nexport default canvasLocaleStrings\n"],"mappings":";;;;;;AAQA,MAAM,sBAAsB,uBAAuB,UAAU;;CAE3D,wBAAwB;;CAGxB,kDACE;;CAEF,qDACE;;CAEF,kDACE;;CAEF,4DACE;;CAEF,0BAA0B;;CAE1B,wBAAwB;;CAExB,2BAA2B;;CAE3B,kCAAkC;;CAGlC,yCAAyC;;CAEzC,+CACE;;CAEF,2CAA2C;;CAE3C,0CAA0C;;CAE1C,sDAAsD;;CAGtD,+BAA+B;;CAE/B,oCAAoC;;CAEpC,qCAAqC;;CAErC,+BAA+B;;CAG/B,mCAAmC;;CAEnC,uCACE;;CAEF,oCAAoC;;CAEpC,2CAA2C;;CAE3C,yCACE;;CAEF,qCAAqC;;CAErC,mCAAmC;;CAEnC,oDAAoD;AACtD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { f as defineLocalesResources } from "./PerspectiveProvider-Yk7lgugx.js";
1
+ import { f as defineLocalesResources } from "./PerspectiveProvider-D-6sweQH.js";
2
2
  /**
3
3
  * Defined locale strings for the comments feature, in US English.
4
4
  *
@@ -181,4 +181,4 @@ const commentsLocaleStrings = defineLocalesResources("comments", {
181
181
  });
182
182
  export { commentsLocaleStrings as default };
183
183
 
184
- //# sourceMappingURL=resources-GpX0LblP.js.map
184
+ //# sourceMappingURL=resources-Cq1lXH8T.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources-GpX0LblP.js","names":[],"sources":["../src/core/comments-v2/i18n/resources.ts"],"sourcesContent":["/* eslint sort-keys: \"error\" */\nimport {defineLocalesResources} from '../../i18n/helpers'\n\n/**\n * Defined locale strings for the comments feature, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst commentsLocaleStrings = defineLocalesResources('comments', {\n /** The close comments button text */\n 'close-pane-button-text': 'Close comments',\n /** The aria label for the close comments button */\n 'close-pane-button-text-aria-label': 'Close comments',\n\n /** When composing a comment, the placeholder text shown when adding a comment to a field with no current comments */\n 'compose.add-comment-input-placeholder': 'Add comment to <strong>{{field}}</strong>',\n /** When composing a comment, the placeholder text shown when adding a comment to a field with no current comments and the mode is upsell */\n 'compose.add-comment-input-placeholder-upsell': 'Upgrade to add comment',\n /** When composing a comment, the placeholder text shown when the input is empty */\n 'compose.create-comment-placeholder': 'Create a new comment',\n /** When composing a comment, the aria label for the button to mention a user */\n 'compose.mention-user-aria-label': 'Mention user',\n /** When composing a comment, the tooltip text for the button to mention a user */\n 'compose.mention-user-tooltip': 'Mention user',\n /** When composing a reply, the placeholder text shown when the input is empty */\n 'compose.reply-placeholder': 'Reply',\n /** When composing a reply, the placeholder text shown when the input is empty and the mode is upsell */\n 'compose.reply-placeholder-upsell': 'Upgrade to reply',\n /** When composing a comment, the aria label for the button to send a comment */\n 'compose.send-comment-aria-label': 'Send comment',\n /** When composing a comment, the tooltip text for the button to send a comment */\n 'compose.send-comment-tooltip': 'Send comment',\n\n /** The inspector text when error copying link */\n 'copy-link-error-message': 'Unable to copy link to clipboard',\n\n /** The delete dialog body for a comment */\n 'delete-comment.body': 'Once deleted, a comment cannot be recovered.',\n /** The delete dialog confirm button text for a comment */\n 'delete-comment.confirm': 'Delete comment',\n /** The delete dialog title for a comment */\n 'delete-comment.title': 'Delete this comment?',\n /** The delete dialog error */\n 'delete-dialog.error': 'An error occurred while deleting the comment. Please try again.',\n /** The delete dialog body for a thread */\n 'delete-thread.body':\n 'This comment and its replies will be deleted, and once deleted cannot be recovered.',\n /** The delete dialog conform button text for a thread */\n 'delete-thread.confirm': 'Delete thread',\n /** The delete dialog title for a thread */\n 'delete-thread.title': 'Delete this comment thread?',\n\n /** The button text for confirming discard */\n 'discard.button-confirm': 'Discard',\n /** The header for discard comment dialog */\n 'discard.header': 'Discard comment?',\n /** The text for discard comment dialog */\n 'discard.text': 'Do you want to discard the comment?',\n\n /** Sharing feedback on the comments feature: The link title */\n 'feature-feedback.link': 'Share your feedback',\n /** Sharing feedback on the comments feature: The form title */\n 'feature-feedback.title': 'Help improve ',\n\n /** The name of the comments feature, for use in header. Capitalized, eg \"Comments\". */\n 'feature-name': 'Comments',\n\n /** Aria label for button above fields to add a comment, when the field currently do not have any comments */\n 'field-button.aria-label-add': 'Add comment',\n /** Aria label for button above fields that opens the comments for this field, when there are existing comments */\n 'field-button.aria-label-open': 'Open comments',\n /** Text shown in popover when hovering the button above fields that opens the comments panel, when there is a single comment present */\n 'field-button.content_one': 'View comment',\n /** Text shown in popover when hovering the button above fields that opens the comments panel, when there are more than one comment present */\n 'field-button.content_other': 'View comments',\n /** Text shown in popover when hovering the button above fields to add a comment, when the field currently do not have any comments */\n 'field-button.title': 'Add comment',\n\n /* The text shown in the inline comment button when the button is disabled due to overlap */\n 'inline-add-comment-button.disabled-overlap-title': 'Comments cannot overlap',\n /** The text shown in the inline comment button */\n 'inline-add-comment-button.title': 'Add comment',\n\n /** Aria label for the breadcrumb button showing the field path. `{{field}}` is the last (most specific) field. */\n 'list-item.breadcrumb-button-go-to-field-aria-label': 'Go to {{field}} field',\n /** The button tooltip content for the add reaction button */\n 'list-item.context-menu-add-reaction': 'Add reaction',\n /** The button tooltip aria label for adding a reaction */\n 'list-item.context-menu-add-reaction-aria-label': 'Add reaction',\n /** The button tooltip content for the add reaction button and mode is upsell */\n 'list-item.context-menu-add-reaction-upsell': 'Upgrade to add reaction',\n /** The action menu item for copying a comment link */\n 'list-item.copy-link': 'Copy link to comment',\n /** The action menu item for deleting a comment */\n 'list-item.delete-comment': 'Delete comment',\n /** The action menu item for editing a comment */\n 'list-item.edit-comment': 'Edit comment',\n /** The action menu item for editing a comment and the mode is upsell */\n 'list-item.edit-comment-upsell': 'Upgrade to edit comment',\n /** Aria label for the button that takes you to the field, which wraps a thread/comment */\n 'list-item.go-to-field-button.aria-label': 'Go to field',\n /**\n * The text shown below the author and timestamp of a comment including a link back to the context in which the comment was made.\n * Consists of a document title wrapped in a link, and a word or phrase to indicate that the link refers to a location:\n * eg \"on Home\", \"on Coffee Machine | Products\", \"on Pricing – Sanity\"\n */\n 'list-item.layout-context': 'on <IntentLink>{{title}}</IntentLink>',\n /** The marker to indicate that a comment has been edited in brackets */\n 'list-item.layout-edited': 'edited',\n /** The error text when sending a comment has failed */\n 'list-item.layout-failed-sent': 'Failed to send.',\n /** The loading message when posting a comment is in progress */\n 'list-item.layout-posting': 'Posting...',\n /** The text for retrying posting a comment */\n 'list-item.layout-retry': 'Retry',\n /** The text shown when the value a comment references has been deleted */\n 'list-item.missing-referenced-value-tooltip-content': 'The commented text has been deleted',\n /** The aria label for the comments menu button to open the actions menu */\n 'list-item.open-menu-aria-label': 'Open comment actions menu',\n /** Badge shown when a comment was created on the draft but is viewed elsewhere */\n 'list-item.origin.draft': 'From draft',\n /** Badge shown when a comment was created on the published document but is viewed elsewhere */\n 'list-item.origin.published': 'From published',\n /** The button text to re-open a resolved comment */\n 'list-item.re-open-resolved': 'Re-open',\n /** The button aria label to re-open a comment that is resolved */\n 'list-item.re-open-resolved-aria-label': 'Re-open',\n /** The button aria label to mark a comment as resolved */\n 'list-item.resolved-tooltip-aria-label': 'Mark comment as resolved',\n /** The button text to mark a comment as resolved */\n 'list-item.resolved-tooltip-content': 'Mark as resolved',\n\n /** The empty state text for open comments */\n 'list-status.empty-state-open-text': 'Open comments on this document will be shown here.',\n /** The empty state title for open comments */\n 'list-status.empty-state-open-title': 'No open comments yet',\n /** The empty state text for resolved comments */\n 'list-status.empty-state-resolved-text': 'Resolved comments on this document will be shown here.',\n /** The empty state title for resolved comments */\n 'list-status.empty-state-resolved-title': 'No resolved comments yet',\n /** The list status message for error */\n 'list-status.error': 'Something went wrong',\n /** The list status message for loading status */\n 'list-status.loading': 'Loading comments',\n\n /** Text shown when no users can be found to mention */\n 'mentions.no-users-found': 'No users found',\n /** Label/badge shown for users that are not authorized to see the document, and thus cannot be mentioned */\n 'mentions.unauthorized-user': 'Unauthorized',\n /** Aria label for the command list for users to mention */\n 'mentions.user-list-aria-label': 'List of users to mention',\n\n /** The comments onboarding popover text */\n 'onboarding.body':\n \"You can add comments to any field in a document. They'll show up here, grouped by field.\",\n /** The comments onboarding dismiss text */\n 'onboarding.dismiss': 'Got it',\n /** The comments onboarding popover header text */\n 'onboarding.header': 'Document fields now have comments',\n\n /** Tooltip for the button to add a reaction to a comment */\n 'reactions.add-reaction-tooltip': 'Add reaction',\n /** Aria label for the individual reactions you can choose from when reacting to a comment */\n 'reactions.react-with-aria-label': 'React with {{reactionName}}',\n /** When a users' name cannot be resolved, fall back to this name */\n 'reactions.user-list.unknown-user-fallback-name': 'Unknown user',\n /**\n * When showing list of users who have reacted, replaces your own name with \"you\", eg\n * \"Donna, you, James, and Tyler reacted with 👍\". A different key (`_leading` suffix)\n * is used when you are the first to react, eg \"You, Donna and Tyler reacted with 👍\".\n * Use `{{name}}` if you want to instead use the current users' actual name.\n */\n 'reactions.user-list.you': 'you',\n /**\n * When showing list of users who have reacted, replaces your own name with \"You\", eg\n * \"You, Donna, James, and Tyler reacted with 👍\". A different key (`_leading` suffix)\n * is used when you are not the first to react, eg \"Donna, you, James and Tyler reacted with 👍\".\n * Use `{{name}}` if you want to instead use the current users' actual name.\n */\n 'reactions.user-list.you_leading': 'You',\n /**\n * The text shown for the tooltip that appears when hovering over the reaction count, eg\n * \"Donna, James, and Tyler Reacted with 👍\". Three components are available for use:\n * - `<UserList/>` - the list of names of users who have reacted, using the locales list format\n * - `<Text>` - should be wrapped around the text describing the action (\"reacted with\")\n * - `<ReactionName/>` - the name of the reaction emoji, eg \":heavy_plus_sign:\"\n */\n 'reactions.users-reacted-with-reaction': '<UserList/> <Text>reacted with</Text> <ReactionName/>',\n\n /** Status filter: The short title describing filtering on open (non-resolved) comments */\n 'status-filter.status-open': 'Open',\n /** Status filter: The full text for describing filtering on open (non-resolved) comments */\n 'status-filter.status-open-full': 'Open comments',\n /** Status filter: The short title describing filtering on resolved comments */\n 'status-filter.status-resolved': 'Resolved',\n /** Status filter: The full text for describing filtering on resolved comments */\n 'status-filter.status-resolved-full': 'Resolved comments',\n /** Status filter: The full text for describing filtering on resolved comments and is upsell mode */\n 'status-filter.status-resolved-full-upsell': 'Upgrade to see resolved comments',\n})\n\n/**\n * @alpha\n */\nexport type CommentsLocaleResourceKeys = keyof typeof commentsLocaleStrings\n\nexport default commentsLocaleStrings\n"],"mappings":";;;;;;AASA,MAAM,wBAAwB,uBAAuB,YAAY;;CAE/D,0BAA0B;;CAE1B,qCAAqC;;CAGrC,yCAAyC;;CAEzC,gDAAgD;;CAEhD,sCAAsC;;CAEtC,mCAAmC;;CAEnC,gCAAgC;;CAEhC,6BAA6B;;CAE7B,oCAAoC;;CAEpC,mCAAmC;;CAEnC,gCAAgC;;CAGhC,2BAA2B;;CAG3B,uBAAuB;;CAEvB,0BAA0B;;CAE1B,wBAAwB;;CAExB,uBAAuB;;CAEvB,sBACE;;CAEF,yBAAyB;;CAEzB,uBAAuB;;CAGvB,0BAA0B;;CAE1B,kBAAkB;;CAElB,gBAAgB;;CAGhB,yBAAyB;;CAEzB,0BAA0B;;CAG1B,gBAAgB;;CAGhB,+BAA+B;;CAE/B,gCAAgC;;CAEhC,4BAA4B;;CAE5B,8BAA8B;;CAE9B,sBAAsB;CAGtB,oDAAoD;;CAEpD,mCAAmC;;CAGnC,sDAAsD;;CAEtD,uCAAuC;;CAEvC,kDAAkD;;CAElD,8CAA8C;;CAE9C,uBAAuB;;CAEvB,4BAA4B;;CAE5B,0BAA0B;;CAE1B,iCAAiC;;CAEjC,2CAA2C;;;;;;CAM3C,4BAA4B;;CAE5B,2BAA2B;;CAE3B,gCAAgC;;CAEhC,4BAA4B;;CAE5B,0BAA0B;;CAE1B,sDAAsD;;CAEtD,kCAAkC;;CAElC,0BAA0B;;CAE1B,8BAA8B;;CAE9B,8BAA8B;;CAE9B,yCAAyC;;CAEzC,yCAAyC;;CAEzC,sCAAsC;;CAGtC,qCAAqC;;CAErC,sCAAsC;;CAEtC,yCAAyC;;CAEzC,0CAA0C;;CAE1C,qBAAqB;;CAErB,uBAAuB;;CAGvB,2BAA2B;;CAE3B,8BAA8B;;CAE9B,iCAAiC;;CAGjC,mBACE;;CAEF,sBAAsB;;CAEtB,qBAAqB;;CAGrB,kCAAkC;;CAElC,mCAAmC;;CAEnC,kDAAkD;;;;;;;CAOlD,2BAA2B;;;;;;;CAO3B,mCAAmC;;;;;;;;CAQnC,yCAAyC;;CAGzC,6BAA6B;;CAE7B,kCAAkC;;CAElC,iCAAiC;;CAEjC,sCAAsC;;CAEtC,6CAA6C;AAC/C,CAAC"}
1
+ {"version":3,"file":"resources-Cq1lXH8T.js","names":[],"sources":["../src/core/comments-v2/i18n/resources.ts"],"sourcesContent":["/* eslint sort-keys: \"error\" */\nimport {defineLocalesResources} from '../../i18n/helpers'\n\n/**\n * Defined locale strings for the comments feature, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst commentsLocaleStrings = defineLocalesResources('comments', {\n /** The close comments button text */\n 'close-pane-button-text': 'Close comments',\n /** The aria label for the close comments button */\n 'close-pane-button-text-aria-label': 'Close comments',\n\n /** When composing a comment, the placeholder text shown when adding a comment to a field with no current comments */\n 'compose.add-comment-input-placeholder': 'Add comment to <strong>{{field}}</strong>',\n /** When composing a comment, the placeholder text shown when adding a comment to a field with no current comments and the mode is upsell */\n 'compose.add-comment-input-placeholder-upsell': 'Upgrade to add comment',\n /** When composing a comment, the placeholder text shown when the input is empty */\n 'compose.create-comment-placeholder': 'Create a new comment',\n /** When composing a comment, the aria label for the button to mention a user */\n 'compose.mention-user-aria-label': 'Mention user',\n /** When composing a comment, the tooltip text for the button to mention a user */\n 'compose.mention-user-tooltip': 'Mention user',\n /** When composing a reply, the placeholder text shown when the input is empty */\n 'compose.reply-placeholder': 'Reply',\n /** When composing a reply, the placeholder text shown when the input is empty and the mode is upsell */\n 'compose.reply-placeholder-upsell': 'Upgrade to reply',\n /** When composing a comment, the aria label for the button to send a comment */\n 'compose.send-comment-aria-label': 'Send comment',\n /** When composing a comment, the tooltip text for the button to send a comment */\n 'compose.send-comment-tooltip': 'Send comment',\n\n /** The inspector text when error copying link */\n 'copy-link-error-message': 'Unable to copy link to clipboard',\n\n /** The delete dialog body for a comment */\n 'delete-comment.body': 'Once deleted, a comment cannot be recovered.',\n /** The delete dialog confirm button text for a comment */\n 'delete-comment.confirm': 'Delete comment',\n /** The delete dialog title for a comment */\n 'delete-comment.title': 'Delete this comment?',\n /** The delete dialog error */\n 'delete-dialog.error': 'An error occurred while deleting the comment. Please try again.',\n /** The delete dialog body for a thread */\n 'delete-thread.body':\n 'This comment and its replies will be deleted, and once deleted cannot be recovered.',\n /** The delete dialog conform button text for a thread */\n 'delete-thread.confirm': 'Delete thread',\n /** The delete dialog title for a thread */\n 'delete-thread.title': 'Delete this comment thread?',\n\n /** The button text for confirming discard */\n 'discard.button-confirm': 'Discard',\n /** The header for discard comment dialog */\n 'discard.header': 'Discard comment?',\n /** The text for discard comment dialog */\n 'discard.text': 'Do you want to discard the comment?',\n\n /** Sharing feedback on the comments feature: The link title */\n 'feature-feedback.link': 'Share your feedback',\n /** Sharing feedback on the comments feature: The form title */\n 'feature-feedback.title': 'Help improve ',\n\n /** The name of the comments feature, for use in header. Capitalized, eg \"Comments\". */\n 'feature-name': 'Comments',\n\n /** Aria label for button above fields to add a comment, when the field currently do not have any comments */\n 'field-button.aria-label-add': 'Add comment',\n /** Aria label for button above fields that opens the comments for this field, when there are existing comments */\n 'field-button.aria-label-open': 'Open comments',\n /** Text shown in popover when hovering the button above fields that opens the comments panel, when there is a single comment present */\n 'field-button.content_one': 'View comment',\n /** Text shown in popover when hovering the button above fields that opens the comments panel, when there are more than one comment present */\n 'field-button.content_other': 'View comments',\n /** Text shown in popover when hovering the button above fields to add a comment, when the field currently do not have any comments */\n 'field-button.title': 'Add comment',\n\n /* The text shown in the inline comment button when the button is disabled due to overlap */\n 'inline-add-comment-button.disabled-overlap-title': 'Comments cannot overlap',\n /** The text shown in the inline comment button */\n 'inline-add-comment-button.title': 'Add comment',\n\n /** Aria label for the breadcrumb button showing the field path. `{{field}}` is the last (most specific) field. */\n 'list-item.breadcrumb-button-go-to-field-aria-label': 'Go to {{field}} field',\n /** The button tooltip content for the add reaction button */\n 'list-item.context-menu-add-reaction': 'Add reaction',\n /** The button tooltip aria label for adding a reaction */\n 'list-item.context-menu-add-reaction-aria-label': 'Add reaction',\n /** The button tooltip content for the add reaction button and mode is upsell */\n 'list-item.context-menu-add-reaction-upsell': 'Upgrade to add reaction',\n /** The action menu item for copying a comment link */\n 'list-item.copy-link': 'Copy link to comment',\n /** The action menu item for deleting a comment */\n 'list-item.delete-comment': 'Delete comment',\n /** The action menu item for editing a comment */\n 'list-item.edit-comment': 'Edit comment',\n /** The action menu item for editing a comment and the mode is upsell */\n 'list-item.edit-comment-upsell': 'Upgrade to edit comment',\n /** Aria label for the button that takes you to the field, which wraps a thread/comment */\n 'list-item.go-to-field-button.aria-label': 'Go to field',\n /**\n * The text shown below the author and timestamp of a comment including a link back to the context in which the comment was made.\n * Consists of a document title wrapped in a link, and a word or phrase to indicate that the link refers to a location:\n * eg \"on Home\", \"on Coffee Machine | Products\", \"on Pricing – Sanity\"\n */\n 'list-item.layout-context': 'on <IntentLink>{{title}}</IntentLink>',\n /** The marker to indicate that a comment has been edited in brackets */\n 'list-item.layout-edited': 'edited',\n /** The error text when sending a comment has failed */\n 'list-item.layout-failed-sent': 'Failed to send.',\n /** The loading message when posting a comment is in progress */\n 'list-item.layout-posting': 'Posting...',\n /** The text for retrying posting a comment */\n 'list-item.layout-retry': 'Retry',\n /** The text shown when the value a comment references has been deleted */\n 'list-item.missing-referenced-value-tooltip-content': 'The commented text has been deleted',\n /** The aria label for the comments menu button to open the actions menu */\n 'list-item.open-menu-aria-label': 'Open comment actions menu',\n /** Badge shown when a comment was created on the draft but is viewed elsewhere */\n 'list-item.origin.draft': 'From draft',\n /** Badge shown when a comment was created on the published document but is viewed elsewhere */\n 'list-item.origin.published': 'From published',\n /** The button text to re-open a resolved comment */\n 'list-item.re-open-resolved': 'Re-open',\n /** The button aria label to re-open a comment that is resolved */\n 'list-item.re-open-resolved-aria-label': 'Re-open',\n /** The button aria label to mark a comment as resolved */\n 'list-item.resolved-tooltip-aria-label': 'Mark comment as resolved',\n /** The button text to mark a comment as resolved */\n 'list-item.resolved-tooltip-content': 'Mark as resolved',\n\n /** The empty state text for open comments */\n 'list-status.empty-state-open-text': 'Open comments on this document will be shown here.',\n /** The empty state title for open comments */\n 'list-status.empty-state-open-title': 'No open comments yet',\n /** The empty state text for resolved comments */\n 'list-status.empty-state-resolved-text': 'Resolved comments on this document will be shown here.',\n /** The empty state title for resolved comments */\n 'list-status.empty-state-resolved-title': 'No resolved comments yet',\n /** The list status message for error */\n 'list-status.error': 'Something went wrong',\n /** The list status message for loading status */\n 'list-status.loading': 'Loading comments',\n\n /** Text shown when no users can be found to mention */\n 'mentions.no-users-found': 'No users found',\n /** Label/badge shown for users that are not authorized to see the document, and thus cannot be mentioned */\n 'mentions.unauthorized-user': 'Unauthorized',\n /** Aria label for the command list for users to mention */\n 'mentions.user-list-aria-label': 'List of users to mention',\n\n /** The comments onboarding popover text */\n 'onboarding.body':\n \"You can add comments to any field in a document. They'll show up here, grouped by field.\",\n /** The comments onboarding dismiss text */\n 'onboarding.dismiss': 'Got it',\n /** The comments onboarding popover header text */\n 'onboarding.header': 'Document fields now have comments',\n\n /** Tooltip for the button to add a reaction to a comment */\n 'reactions.add-reaction-tooltip': 'Add reaction',\n /** Aria label for the individual reactions you can choose from when reacting to a comment */\n 'reactions.react-with-aria-label': 'React with {{reactionName}}',\n /** When a users' name cannot be resolved, fall back to this name */\n 'reactions.user-list.unknown-user-fallback-name': 'Unknown user',\n /**\n * When showing list of users who have reacted, replaces your own name with \"you\", eg\n * \"Donna, you, James, and Tyler reacted with 👍\". A different key (`_leading` suffix)\n * is used when you are the first to react, eg \"You, Donna and Tyler reacted with 👍\".\n * Use `{{name}}` if you want to instead use the current users' actual name.\n */\n 'reactions.user-list.you': 'you',\n /**\n * When showing list of users who have reacted, replaces your own name with \"You\", eg\n * \"You, Donna, James, and Tyler reacted with 👍\". A different key (`_leading` suffix)\n * is used when you are not the first to react, eg \"Donna, you, James and Tyler reacted with 👍\".\n * Use `{{name}}` if you want to instead use the current users' actual name.\n */\n 'reactions.user-list.you_leading': 'You',\n /**\n * The text shown for the tooltip that appears when hovering over the reaction count, eg\n * \"Donna, James, and Tyler Reacted with 👍\". Three components are available for use:\n * - `<UserList/>` - the list of names of users who have reacted, using the locales list format\n * - `<Text>` - should be wrapped around the text describing the action (\"reacted with\")\n * - `<ReactionName/>` - the name of the reaction emoji, eg \":heavy_plus_sign:\"\n */\n 'reactions.users-reacted-with-reaction': '<UserList/> <Text>reacted with</Text> <ReactionName/>',\n\n /** Status filter: The short title describing filtering on open (non-resolved) comments */\n 'status-filter.status-open': 'Open',\n /** Status filter: The full text for describing filtering on open (non-resolved) comments */\n 'status-filter.status-open-full': 'Open comments',\n /** Status filter: The short title describing filtering on resolved comments */\n 'status-filter.status-resolved': 'Resolved',\n /** Status filter: The full text for describing filtering on resolved comments */\n 'status-filter.status-resolved-full': 'Resolved comments',\n /** Status filter: The full text for describing filtering on resolved comments and is upsell mode */\n 'status-filter.status-resolved-full-upsell': 'Upgrade to see resolved comments',\n})\n\n/**\n * @alpha\n */\nexport type CommentsLocaleResourceKeys = keyof typeof commentsLocaleStrings\n\nexport default commentsLocaleStrings\n"],"mappings":";;;;;;AASA,MAAM,wBAAwB,uBAAuB,YAAY;;CAE/D,0BAA0B;;CAE1B,qCAAqC;;CAGrC,yCAAyC;;CAEzC,gDAAgD;;CAEhD,sCAAsC;;CAEtC,mCAAmC;;CAEnC,gCAAgC;;CAEhC,6BAA6B;;CAE7B,oCAAoC;;CAEpC,mCAAmC;;CAEnC,gCAAgC;;CAGhC,2BAA2B;;CAG3B,uBAAuB;;CAEvB,0BAA0B;;CAE1B,wBAAwB;;CAExB,uBAAuB;;CAEvB,sBACE;;CAEF,yBAAyB;;CAEzB,uBAAuB;;CAGvB,0BAA0B;;CAE1B,kBAAkB;;CAElB,gBAAgB;;CAGhB,yBAAyB;;CAEzB,0BAA0B;;CAG1B,gBAAgB;;CAGhB,+BAA+B;;CAE/B,gCAAgC;;CAEhC,4BAA4B;;CAE5B,8BAA8B;;CAE9B,sBAAsB;CAGtB,oDAAoD;;CAEpD,mCAAmC;;CAGnC,sDAAsD;;CAEtD,uCAAuC;;CAEvC,kDAAkD;;CAElD,8CAA8C;;CAE9C,uBAAuB;;CAEvB,4BAA4B;;CAE5B,0BAA0B;;CAE1B,iCAAiC;;CAEjC,2CAA2C;;;;;;CAM3C,4BAA4B;;CAE5B,2BAA2B;;CAE3B,gCAAgC;;CAEhC,4BAA4B;;CAE5B,0BAA0B;;CAE1B,sDAAsD;;CAEtD,kCAAkC;;CAElC,0BAA0B;;CAE1B,8BAA8B;;CAE9B,8BAA8B;;CAE9B,yCAAyC;;CAEzC,yCAAyC;;CAEzC,sCAAsC;;CAGtC,qCAAqC;;CAErC,sCAAsC;;CAEtC,yCAAyC;;CAEzC,0CAA0C;;CAE1C,qBAAqB;;CAErB,uBAAuB;;CAGvB,2BAA2B;;CAE3B,8BAA8B;;CAE9B,iCAAiC;;CAGjC,mBACE;;CAEF,sBAAsB;;CAEtB,qBAAqB;;CAGrB,kCAAkC;;CAElC,mCAAmC;;CAEnC,kDAAkD;;;;;;;CAOlD,2BAA2B;;;;;;;CAO3B,mCAAmC;;;;;;;;CAQnC,yCAAyC;;CAGzC,6BAA6B;;CAE7B,kCAAkC;;CAElC,iCAAiC;;CAEjC,sCAAsC;;CAEtC,6CAA6C;AAC/C,CAAC"}
@@ -1,4 +1,4 @@
1
- import { f as defineLocalesResources } from "./PerspectiveProvider-Yk7lgugx.js";
1
+ import { f as defineLocalesResources } from "./PerspectiveProvider-D-6sweQH.js";
2
2
  /**
3
3
  * Defined locale strings for the single doc release tool, in US English.
4
4
  *
@@ -28,4 +28,4 @@ const singleDocReleaseLocaleStrings = defineLocalesResources("singleDocRelease",
28
28
  });
29
29
  export { singleDocReleaseLocaleStrings as default };
30
30
 
31
- //# sourceMappingURL=resources-B7mfG9Km.js.map
31
+ //# sourceMappingURL=resources-D7XsFe7y.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resources-B7mfG9Km.js","names":[],"sources":["../src/core/singleDocRelease/i18n/resources.ts"],"sourcesContent":["import {defineLocalesResources} from '../../i18n/helpers'\n\n/**\n * Defined locale strings for the single doc release tool, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst singleDocReleaseLocaleStrings = defineLocalesResources('singleDocRelease', {\n /** Action text for scheduling publish of a draft document */\n 'action.schedule-publish': 'Schedule publish',\n /** Tooltip text for when a document is scheduled for publishing */\n 'action.schedule-publish-success': 'Document scheduled for publishing',\n /** Tooltip description for when a document is scheduled for publishing */\n 'action.schedule-publish-success-description': 'Publishing scheduled for {{publishAt}}',\n\n /** Tooltip text for when schedule publish fails */\n 'action.schedule-publish-error': 'Failed to schedule publishing',\n\n /** Tooltip text for when schedule publish is disabled due to validation errors */\n 'action.schedule-publish.disabled.validation-issues':\n 'Cannot Schedule Draft due to validation errors in the current draft.',\n\n /** Tooltip text for when schedule publish is disabled due to cardinality one releases */\n 'action.schedule-publish.disabled.cardinality-one':\n 'A Scheduled Draft for this document already exists.',\n /** Tooltip text for when schedule publish is disabled because a variant is selected */\n 'action.schedule-publish.disabled.variant': 'Scheduling is not yet available for variants.',\n /** Empty state title for scheduled drafts */\n 'empty-state.title': 'Scheduled Drafts',\n /** Empty state description for scheduled drafts */\n 'empty-state.description':\n 'Schedule and lock draft documents for publishing at a future date and time.',\n /** Empty state action documentation for scheduled drafts */\n 'empty-state.action.documentation': 'Learn about scheduling',\n})\n\n/**\n * @alpha\n */\nexport type SingleDocReleaseLocaleResourceKeys = keyof typeof singleDocReleaseLocaleStrings\n\nexport default singleDocReleaseLocaleStrings\n"],"mappings":";;;;;;AAQA,MAAM,gCAAgC,uBAAuB,oBAAoB;;CAE/E,2BAA2B;;CAE3B,mCAAmC;;CAEnC,+CAA+C;;CAG/C,iCAAiC;;CAGjC,sDACE;;CAGF,oDACE;;CAEF,4CAA4C;;CAE5C,qBAAqB;;CAErB,2BACE;;CAEF,oCAAoC;AACtC,CAAC"}
1
+ {"version":3,"file":"resources-D7XsFe7y.js","names":[],"sources":["../src/core/singleDocRelease/i18n/resources.ts"],"sourcesContent":["import {defineLocalesResources} from '../../i18n/helpers'\n\n/**\n * Defined locale strings for the single doc release tool, in US English.\n *\n * @internal\n */\n// oxlint-disable-next-line no-deprecated -- will fix in follow up PR\nconst singleDocReleaseLocaleStrings = defineLocalesResources('singleDocRelease', {\n /** Action text for scheduling publish of a draft document */\n 'action.schedule-publish': 'Schedule publish',\n /** Tooltip text for when a document is scheduled for publishing */\n 'action.schedule-publish-success': 'Document scheduled for publishing',\n /** Tooltip description for when a document is scheduled for publishing */\n 'action.schedule-publish-success-description': 'Publishing scheduled for {{publishAt}}',\n\n /** Tooltip text for when schedule publish fails */\n 'action.schedule-publish-error': 'Failed to schedule publishing',\n\n /** Tooltip text for when schedule publish is disabled due to validation errors */\n 'action.schedule-publish.disabled.validation-issues':\n 'Cannot Schedule Draft due to validation errors in the current draft.',\n\n /** Tooltip text for when schedule publish is disabled due to cardinality one releases */\n 'action.schedule-publish.disabled.cardinality-one':\n 'A Scheduled Draft for this document already exists.',\n /** Tooltip text for when schedule publish is disabled because a variant is selected */\n 'action.schedule-publish.disabled.variant': 'Scheduling is not yet available for variants.',\n /** Empty state title for scheduled drafts */\n 'empty-state.title': 'Scheduled Drafts',\n /** Empty state description for scheduled drafts */\n 'empty-state.description':\n 'Schedule and lock draft documents for publishing at a future date and time.',\n /** Empty state action documentation for scheduled drafts */\n 'empty-state.action.documentation': 'Learn about scheduling',\n})\n\n/**\n * @alpha\n */\nexport type SingleDocReleaseLocaleResourceKeys = keyof typeof singleDocReleaseLocaleStrings\n\nexport default singleDocReleaseLocaleStrings\n"],"mappings":";;;;;;AAQA,MAAM,gCAAgC,uBAAuB,oBAAoB;;CAE/E,2BAA2B;;CAE3B,mCAAmC;;CAEnC,+CAA+C;;CAG/C,iCAAiC;;CAGjC,sDACE;;CAGF,oDACE;;CAEF,4CAA4C;;CAE5C,qBAAqB;;CAErB,2BACE;;CAEF,oCAAoC;AACtC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { f as defineLocalesResources } from "./PerspectiveProvider-Yk7lgugx.js";
1
+ import { f as defineLocalesResources } from "./PerspectiveProvider-D-6sweQH.js";
2
2
  /**
3
3
  * Defined locale strings for the comments feature, in US English.
4
4
  *
@@ -179,4 +179,4 @@ const commentsLocaleStrings = defineLocalesResources("comments", {
179
179
  });
180
180
  export { commentsLocaleStrings as default };
181
181
 
182
- //# sourceMappingURL=resources-CmmAynkL.js.map
182
+ //# sourceMappingURL=resources-DYn0yzEW.js.map