sanity 6.2.0-next.158 → 6.2.0-next.160

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 (50) hide show
  1. package/lib/_chunks-dts/ActiveWorkspaceMatcherContext.d.ts +163 -2
  2. package/lib/_chunks-es/CommentsInspector.js +6 -3
  3. package/lib/_chunks-es/CommentsInspector.js.map +1 -1
  4. package/lib/_chunks-es/ReleasesStudioLayout.js +6 -3
  5. package/lib/_chunks-es/ReleasesStudioLayout.js.map +1 -1
  6. package/lib/_chunks-es/ReleasesTool.js +4 -2
  7. package/lib/_chunks-es/ReleasesTool.js.map +1 -1
  8. package/lib/_chunks-es/TasksDocumentInputLayout.js +6 -3
  9. package/lib/_chunks-es/TasksDocumentInputLayout.js.map +1 -1
  10. package/lib/_chunks-es/TasksFooterOpenTasks.js +6 -3
  11. package/lib/_chunks-es/TasksFooterOpenTasks.js.map +1 -1
  12. package/lib/_chunks-es/TasksStudioActiveToolLayout.js +6 -3
  13. package/lib/_chunks-es/TasksStudioActiveToolLayout.js.map +1 -1
  14. package/lib/_chunks-es/TasksStudioLayout.js +6 -3
  15. package/lib/_chunks-es/TasksStudioLayout.js.map +1 -1
  16. package/lib/_chunks-es/TasksStudioNavbar.js +6 -3
  17. package/lib/_chunks-es/TasksStudioNavbar.js.map +1 -1
  18. package/lib/_chunks-es/VariantsStudioNavbar.js +6 -3
  19. package/lib/_chunks-es/VariantsStudioNavbar.js.map +1 -1
  20. package/lib/_chunks-es/VariantsTool.js +5 -2
  21. package/lib/_chunks-es/VariantsTool.js.map +1 -1
  22. package/lib/_chunks-es/index2.js +2527 -1024
  23. package/lib/_chunks-es/index2.js.map +1 -1
  24. package/lib/_chunks-es/index3.js +6 -3
  25. package/lib/_chunks-es/index3.js.map +1 -1
  26. package/lib/_chunks-es/index6.js +6 -3
  27. package/lib/_chunks-es/index6.js.map +1 -1
  28. package/lib/_chunks-es/index7.js +6 -3
  29. package/lib/_chunks-es/index7.js.map +1 -1
  30. package/lib/_chunks-es/index8.js +6 -3
  31. package/lib/_chunks-es/index8.js.map +1 -1
  32. package/lib/_chunks-es/resources2.js +6 -3
  33. package/lib/_chunks-es/resources2.js.map +1 -1
  34. package/lib/_chunks-es/resources3.js +6 -3
  35. package/lib/_chunks-es/resources3.js.map +1 -1
  36. package/lib/_chunks-es/resources4.js +6 -3
  37. package/lib/_chunks-es/resources4.js.map +1 -1
  38. package/lib/_chunks-es/resources5.js +6 -3
  39. package/lib/_chunks-es/resources5.js.map +1 -1
  40. package/lib/_chunks-es/resources6.js +26 -15
  41. package/lib/_chunks-es/resources6.js.map +1 -1
  42. package/lib/_chunks-es/resources7.js +18 -23
  43. package/lib/_chunks-es/resources7.js.map +1 -1
  44. package/lib/_chunks-es/structureTool.js +1008 -984
  45. package/lib/_chunks-es/structureTool.js.map +1 -1
  46. package/lib/_chunks-es/version.js +2 -2
  47. package/lib/_singletons.d.ts +1 -1
  48. package/lib/index.d.ts +2 -2
  49. package/lib/index.js +3 -1
  50. package/package.json +10 -10
@@ -1240,6 +1240,7 @@ interface DocumentPerspectiveState {
1240
1240
  }
1241
1241
  /**
1242
1242
  * Fetches the document versions for a given document
1243
+ *
1243
1244
  * @param props - document Id of the document (might include release id)
1244
1245
  * @returns - data: document versions, loading, errors
1245
1246
  * @hidden
@@ -2675,7 +2676,47 @@ declare const studioLocaleStrings: {
2675
2676
  'divergence.effect.summary': string; /** Description of the position of the current divergence being inspected, compared to the total count of divergences */
2676
2677
  'divergence.pagination': string; /** Label for divergence in a single node */
2677
2678
  'divergence.unresolved-divergence_one': string; /** Label for divergences in multiple nodes */
2678
- 'divergence.unresolved-divergence_other': string; /** Label to show in the document footer indicating the creation date of the document */
2679
+ 'divergence.unresolved-divergence_other': string;
2680
+ /** --- Document inventory --- */
2681
+ /** The label for the input that filters the variants in the document group inventory */
2682
+ 'document-group-inventory.filter-string.label': string; /** The document inventory title (singular) */
2683
+ 'document-group-inventory.title': string; /** The document inventory title (plural) */
2684
+ 'document-group-inventory.title_one': string; /** The document inventory title (plural) */
2685
+ 'document-group-inventory.title_other': string; /** The label text that indicates an item in the document group inventory is currently being viewed */
2686
+ 'document-group-inventory.viewing-item-label': string;
2687
+ /** --- Document group --- */
2688
+ /** The text in the "Cancel" button in the confirm delete dialog that cancels the action */
2689
+ 'document-group.delete.cancel-button.text': string; /** Used in `document-group.delete.cdr-summary.title` */
2690
+ 'document-group.delete.cdr-summary.document-count_one': string; /** Used in `document-group.delete.cdr-summary.title` */
2691
+ 'document-group.delete.cdr-summary.document-count_other': string; /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
2692
+ 'document-group.delete.cdr-summary.subtitle_one': string; /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
2693
+ 'document-group.delete.cdr-summary.subtitle_other': string; /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
2694
+ 'document-group.delete.cdr-summary.subtitle_unavailable_one': string; /** The text that appears in the subtitle `<summary>` that lists the datasets below the title */
2695
+ 'document-group.delete.cdr-summary.subtitle_unavailable_other': string; /** The text that appears in the title `<summary>` that includes the list of CDRs (singular) */
2696
+ 'document-group.delete.cdr-summary.title_one': string; /** The text that appears in the title `<summary>` that includes the list of CDRs (plural) */
2697
+ 'document-group.delete.cdr-summary.title_other': string; /** Appears when hovering over the copy button to copy */
2698
+ 'document-group.delete.cdr-table.copy-id-button.tooltip': string; /** The header for the dataset column in the list of cross-dataset references found */
2699
+ 'document-group.delete.cdr-table.dataset.label': string; /** The header for the document ID column in the list of cross-dataset references found */
2700
+ 'document-group.delete.cdr-table.document-id.label': string; /** The toast title when the copy button has been clicked but copying failed */
2701
+ 'document-group.delete.cdr-table.id-copied-toast.title-failed': string; /** The header for the project ID column in the list of cross-dataset references found */
2702
+ 'document-group.delete.cdr-table.project-id.label': string; /** The text in the "Delete now" button in the confirm delete dialog that confirms the action (singular) */
2703
+ 'document-group.delete.confirm-button.text_one': string; /** The text in the "Delete now" button in the confirm delete dialog that confirms the action (plural) */
2704
+ 'document-group.delete.confirm-button.text_other': string; /** The message shown after deletion fails */
2705
+ 'document-group.delete.error.message': string; /** Shown if there are references to other documents but the user does not have the permission to see the relevant document IDs */
2706
+ 'document-group.delete.other-reference-count.title_one': string; /** Shown if there are references to other documents but the user does not have the permission to see the relevant document IDs */
2707
+ 'document-group.delete.other-reference-count.title_other': string; /** Text in the tooltip of this component if hovering over the info icon */
2708
+ 'document-group.delete.other-reference-count.tooltip': string; /** Appears when unable to render a document preview in the referring document list */
2709
+ 'document-group.delete.preview-item.preview-unavailable.subtitle': string; /** Appears when unable to render a document preview in the referring document list */
2710
+ 'document-group.delete.preview-item.preview-unavailable.title': string; /** Tells the user the count of how many other referring documents there are before listing them. (singular) */
2711
+ 'document-group.delete.referring-document-count.text_one': string; /** Tells the user the count of how many other referring documents there are before listing them. (plural) */
2712
+ 'document-group.delete.referring-document-count.text_other': string; /** Describes the list of documents that refer to the one trying to be deleted (delete) */
2713
+ 'document-group.delete.referring-documents-descriptor.text': string; /** Header of the delete dialog. `count` controls pluralization; `subject` is a translated noun (see `document-group.subject.*`) (singular) */
2714
+ 'document-group.delete.title_one': string; /** Header of the delete dialog. `count` controls pluralization; `subject` is a translated noun (see `document-group.subject.*`) (plural) */
2715
+ 'document-group.delete.title_other': string; /** Translated noun used as the `{{subject}}` value in document group strings such as `document-group.delete.title` (singular) */
2716
+ 'document-group.subject.variant_one': string; /** Translated noun used as the `{{subject}}` value in document group strings such as `document-group.delete.title` (plural) */
2717
+ 'document-group.subject.variant_other': string; /** Translated noun used as the `{{subject}}` value in document group strings such as `document-group.delete.title` (singular) */
2718
+ 'document-group.subject.version_one': string; /** Translated noun used as the `{{subject}}` value in document group strings such as `document-group.delete.title` (plural) */
2719
+ 'document-group.subject.version_other': string; /** Label to show in the document footer indicating the creation date of the document */
2679
2720
  'document-status.created': string; /** Label to show in the document status indicating the date of the status */
2680
2721
  'document-status.date': string; /** Label to show in the document footer indicating the last edited date of the document */
2681
2722
  'document-status.edited': string; /** Label to show in the document footer status line when a document was last published */
@@ -6667,6 +6708,126 @@ type ScrollEventHandler = (event: Event) => void;
6667
6708
  interface ScrollContextValue {
6668
6709
  onScroll?: ScrollEventHandler;
6669
6710
  }
6711
+ declare const DocumentGroupInventoryAction: ComponentType<PropsWithChildren<{
6712
+ documentId: string;
6713
+ portalElementName: string;
6714
+ }>>;
6715
+ /**
6716
+ * @internal
6717
+ */
6718
+ interface IncomingReference {
6719
+ _id: string;
6720
+ _type: string;
6721
+ }
6722
+ /**
6723
+ * @internal
6724
+ */
6725
+ interface InternalReferences {
6726
+ totalCount: number;
6727
+ references: IncomingReference[];
6728
+ }
6729
+ /**
6730
+ * @internal
6731
+ */
6732
+ interface CrossDatasetReference {
6733
+ projectId: string;
6734
+ documentId?: string;
6735
+ datasetName?: string;
6736
+ }
6737
+ /**
6738
+ * @internal
6739
+ */
6740
+ interface CrossDatasetReferences {
6741
+ totalCount: number;
6742
+ references: CrossDatasetReference[];
6743
+ }
6744
+ /**
6745
+ * @internal
6746
+ */
6747
+ interface ReferringDocuments {
6748
+ isLoading: boolean;
6749
+ totalCount: number;
6750
+ projectIds: string[];
6751
+ datasetNames: string[];
6752
+ hasUnknownDatasetNames: boolean;
6753
+ internalReferences?: InternalReferences;
6754
+ crossDatasetReferences?: CrossDatasetReferences;
6755
+ }
6756
+ /**
6757
+ * Props for the (pane-coupled) reference preview link component injected into
6758
+ * the document group inventory.
6759
+ *
6760
+ * @internal
6761
+ */
6762
+ interface DocumentGroupInventoryReferencePreviewLinkProps {
6763
+ onClick?: () => void;
6764
+ type: SchemaType & {
6765
+ icon?: unknown;
6766
+ };
6767
+ value: SanityDocument | {
6768
+ _id: string;
6769
+ _type: string;
6770
+ };
6771
+ }
6772
+ /**
6773
+ * The subset of the document perspective list state consumed by the document
6774
+ * group inventory.
6775
+ *
6776
+ * @internal
6777
+ */
6778
+ interface DocumentGroupInventoryPerspectiveList {
6779
+ filteredReleases: {
6780
+ notCurrentReleases: ReleaseDocument[];
6781
+ };
6782
+ getReleaseChipState: (releaseId: string) => {
6783
+ selected: boolean;
6784
+ disabled?: boolean;
6785
+ };
6786
+ handleCopyToDraftsNavigate: () => void;
6787
+ isDraftSelected: boolean;
6788
+ isPublishSelected: boolean;
6789
+ }
6790
+ /**
6791
+ * @internal
6792
+ */
6793
+ interface DocumentGroupInventoryProps {
6794
+ documentId: string;
6795
+ documentType: string;
6796
+ /**
6797
+ * The name of the portal element used to render popovers and dialogs (e.g.
6798
+ * the document panel portal provided by the structure tool).
6799
+ */
6800
+ portalElementName: string;
6801
+ /**
6802
+ * Navigate to the provided perspective.
6803
+ */
6804
+ navigatePerspective: (perspective: TargetPerspective) => void;
6805
+ /**
6806
+ * Derived perspective list state for the inventory document.
6807
+ */
6808
+ perspectiveList: DocumentGroupInventoryPerspectiveList;
6809
+ /**
6810
+ * Observable describing the documents that refer to the inventory document.
6811
+ */
6812
+ referringDocuments$: Observable<ReferringDocuments>;
6813
+ /**
6814
+ * Pane-coupled presentational components injected by the consumer.
6815
+ */
6816
+ components: {
6817
+ DocTitle: ComponentType<{
6818
+ document: SanityDocumentLike;
6819
+ }>;
6820
+ ReferencePreviewLink: ComponentType<DocumentGroupInventoryReferencePreviewLinkProps>;
6821
+ VersionsPreviewList: ComponentType<{
6822
+ documentType: string;
6823
+ documentVersions: string[];
6824
+ }>;
6825
+ };
6826
+ }
6827
+ /**
6828
+ * @internal
6829
+ */
6830
+ declare const DocumentGroupInventory: ComponentType<DocumentGroupInventoryProps>;
6670
6831
  /** @internal */
6671
6832
  declare const isDev: boolean;
6672
6833
  /** @internal */
@@ -16762,4 +16923,4 @@ interface ActiveWorkspaceMatcherContextValue {
16762
16923
  activeWorkspace: WorkspaceSummary;
16763
16924
  setActiveWorkspace: (workspaceName: string) => void;
16764
16925
  }
16765
- export { NewDocumentCreationContext as $, ReleaseTitle as $C, CommentDeleteDialog as $S, FormDecPatch as $_, snapshotPair as $a, LocaleDefinition as $b, dec as $c, LoadingState as $d, ScheduledBadge as $f, CommentInlineHighlightSpan as $g, createUserColorManager as $h, TemplatePermissionsResult as $i, PreviewCard as $l, ChunkType as $m, ArrayOfPrimitiveOptionsInput as $n, FormBuilderInputComponentMap as $o, noop as $p, FieldPresenceData as $r, PortableTextPluginsProps as $s, useFormBuilder as $t, useFormState as $u, SearchFactoryOptions as $v, ConnectingStatus as $w, useProjectId as $x, CommentBaseCreatePayload as $y, ComposableOption as A, DocumentPreviewStoreOptions as AC, MutationEvent as AS, createSanityMediaLibraryFileSource as AT, StudioAnnouncementsCard as A_, createDocumentStore as Aa, validateDocument as Ab, defaultRenderInput as Ac, FieldError as Ad, ReactHook as Af, ScrollEventHandler as Ag, DocumentVersionEventType as Ah, useProject as Ai, CircularProgress as Al, TIMELINE_ITEM_I18N_KEY_MAPPING as Am, SelectInput as An, prepareForPreview as Ao, isPerspectiveWriteable as Ap, FormFieldValidation as Ar, PrimitiveInputElementProps as As, DocumentInspectorProps as At, useReleasesIds as Au, SearchProvider as Av, isVersionId as Aw, resolveInitialValue as Ax, WorkspacesContextValue as Ay, DocumentBadgesResolver as B, FieldName as BC, DocumentRemoteMutationEvent as BS, generateStudioManifest as B_, InitialValueSuccessMsg as Ba, useLocale as Bb, useParseErrorForPath as Bc, resolveConditionalProperty as Bd, TasksNavigationContextValue as Bf, buildTextSelectionFromFragment as Bg, isCreateDocumentVersionEvent as Bh, DocumentPresence as Bi, DetailPreview as Bl, DiffVisitor as Bm, ImageUrlBuilder$1 as Bn, PreviewLoader as Bo, normalizeKeySegment as Bp, FormFieldHeaderText as Br, RenderPreviewCallback as Bs, DocumentFieldActionItem as Bt, isDocumentLimitError as Bu, OperatorInputComponentProps as Bv, CommandListGetItemDisabledCallback as Bw, TemplateParameter as Bx, getNamelessWorkspaceIdentifier as By, ActionComponent as C, useFormatRelativeLocalePublishDate as CC, DocumentStoreExtraOptions as CS, CookielessCompatibleLoginMethod as CT, NavbarContextValue as C_, isNewDocument as Ca, Loadable as Cb, FormProviderProps as Cc, ObjectArrayFormNode as Cd, globalScope as Cf, FeedbackDialogProps as Cg, useEvents as Ch, useHistoryStore as Ci, useRovingFocus as Cl, DiffFromToProps as Cm, TelephoneInput as Cn, WithVersion as Co, useSetPerspective as Cp, useDocumentDivergences as Cr, InputProps as Cs, ReleaseActionDescription as Ct, RELEASES_STUDIO_CLIENT_OPTIONS as Cu, ToolMenuProps as Cv, getVersionId as Cw, TimeAgoOpts as Cx, AddonDatasetProvider as Cy, AsyncConfigPropertyReducer as D, isReleaseDocument as DC, MutationPerformanceEvent as DS, isAgentBundleName as DT, isValidAnnouncementRole as D_, DocumentStore as Da, useVersionRelease as Db, defaultRenderBlock as Dc, StringFormNode as Dd, EMPTY_ARRAY as Df, isDev as Dg, DeleteDocumentGroupEvent as Dh, useRenderingContextStore as Di, RelativeTime as Dl, DiffErrorBoundaryState as Dm, StringInput as Dn, createBufferedDocument as Do, PerspectiveProvider as Dp, FormInput as Dr, OnPathFocusPayload as Ds, DocumentInspector as Dt, getReleaseIdFromReleaseDocumentId as Du, PartialIndexSettings as Dv, isPublishedId as Dw, Serializeable as Dx, matchWorkspace as Dy, AsyncComposableOption as E, VersionInfoDocumentStub as EC, ListenerEvent as ES, useAgentVersionDisplay as ET, isValidAnnouncementAudience as E_, useDocumentType as Ea, useWorkspaceSchemaId as Eb, defaultRenderAnnotation as Ec, PrimitiveFormNode as Ed, formatRelativeLocale as Ef, StudioFeedbackProvider as Eg, CreateLiveDocumentEvent as Eh, useProjectStore as Ei, Resizable as El, DiffErrorBoundaryProps as Em, TagsArrayInputProps as En, BufferedDocumentWrapper as Eo, useExcludedPerspective as Ep, FormRow as Er, OnPasteFn as Es, FormComponents as Et, getReleaseTone as Eu, SearchButton as Ev, isDraftId as Ew, DEFAULT_MAX_RECURSION_DEPTH as Ex, MatchWorkspaceResult as Ey, DocumentActionsContext as F, AvailabilityResponse as FC, WelcomeEvent as FS, useSource as F_, getInitialValueStream as Fa, usEnglishLocale as Fb, ReferenceInputOptions as Fc, TypeAnnotationMismatchError as Fd, LegacyThemeProps as Ff, CollapseMenuButtonProps as Fg, PublishDocumentVersionEvent as Fh, ProjectOrganizationData as Fi, BlockPreview as Fl, ChangeList as Fm, PortableTextMemberItem as Fn, useValuePreview as Fo, getItemKeySegment as Fp, FormFieldValidationStatusProps as Fr, RenderArrayOfPrimitivesItemCallback as Fs, defineDocumentFieldAction as Ft, RELEASES_INTENT as Fu, SearchOperatorType as Fv, DocumentVariantType as Fw, InitialValueTemplateItem as Fx, useWorkspaces as Fy, DocumentLanguageFilterContext as G, ObservePathsFn as GC, UseDateTimeFormatOptions as GS, useCopyPaste as G_, emitOperation as Ga, defineLocaleResourceBundle as Gb, useFormCallbacks as Gc, measureFirstEmission as Gd, useScheduledDraftsEnabled as Gf, CommentsOnboardingContextValue as Gg, isPublishDocumentVersionEvent as Gh, UserSessionPair as Gi, CompactPreviewProps as Gl, Annotation as Gm, DateTimeInputProps as Gn, isBooleanInputProps as Go, resolveDiffComponent as Gp, PresenceScopeProps as Gr, ObjectItemProps as Gs, DocumentFieldActionsResolver as Gt, mergeParseErrors as Gu, SearchOperatorParams as Gv, CommandListProps as Gw, useStudioUrl as Gx, RouterHistory as Gy, DocumentInspectorContext as H, InvalidationChannelEvent as HC, RemoteSnapshotEvent as HS, StudioManifest as H_, remoteSnapshots as Ha, I18nNode as Hb, useReportParseError as Hc, useNavigateToCanvasDoc as Hd, IsLastPaneProvider as Hf, buildCommentRangeDecorations as Hg, isDeleteDocumentGroupEvent as Hh, PresenceLocation as Hi, DefaultPreview as Hl, getAnnotationColor as Hm, EmailInputProps as Hn, isArrayOfBlocksInputProps as Ho, pathToString as Hp, FormField as Hr, BaseItemProps as Hs, DocumentFieldActionProps as Ht, DivergenceNavigator as Hu, SearchOperatorBuilder as Hv, CommandListGetItemSelectedCallback as Hw, TypeTarget as Hx, WorkspaceLike as Hy, DocumentActionsResolver as I, DocumentAvailability as IC, CommitFunction as IS, renderStudio as I_, InitialValueErrorMsg as Ia, UseTranslationOptions as Ib, ReferenceInputOptionsProvider as Ic, UndeclaredMembersError as Id, LegacyThemeTints as If, CommonProps as Ig, ScheduleDocumentVersionEvent as Ih, ProjectStore as Ii, BlockImagePreview as Il, ChangeListProps as Im, UpdateReadOnlyPlugin as In, unstable_useObserveDocument as Io, getValueAtPath as Ip, FieldStatusProps as Ir, RenderBlockCallback as Is, DocumentFieldAction as It, DEFAULT_ANNOTATIONS as Iu, operatorDefinitions as Iv, getDocumentVariantType as Iw, Template as Ix, evaluateWorkspaceHidden as Iy, DocumentPluginOptions as J, Previewable as JC, ConnectionState as JS, CopyPasteContextType as J_, Operation as Ja, LocaleProvider as Jb, PatchMsg as Jc, useThrottledCallback as Jd, SingleDocReleaseProvider as Jf, useComments as Jg, isUnscheduleDocumentVersionEvent as Jh, createUserStore as Ji, PortableTextPreviewLayoutKey as Jl, ArrayItemMetadata as Jm, CrossDatasetReferencePreview as Jn, isObjectItemProps as Jo, isAddedItemDiff as Jp, FieldPresence as Jr, BlockDecoratorProps as Js, decodePath as Jt, ExpandPathOperation as Ju, ValuelessSearchOperatorParams as Jv, BetaBadgeProps as Jw, RelativeTimeOptions as Jx, CommentsSelectedPathProvider as Jy, DocumentLanguageFilterResolver as K, PreparedSnapshot as KC, useDateTimeFormat as KS, BaseOptions as K_, operationEvents as Ka, defineLocalesResources as Kb, MutationPatchMsg as Kc, measureFirstMatch as Kd, useScheduledDraftDocument as Kf, useCommentsEnabled as Kg, isScheduleDocumentVersionEvent as Kh, UserStore as Ki, GeneralDocumentListLayoutKey as Kl, AnnotationDetails as Km, DateInput as Kn, isNumberInputProps as Ko, useDocumentChange as Kp, PresenceOverlay as Kr, PrimitiveItemProps as Ks, DocumentFieldActionsResolverContext as Kt, ExpandFieldSetOperation as Ku, SearchValueFormatterContext as Kv, CommandListRenderItemCallback as Kw, useSchema as Kx, CommentsSelectedPath as Ky, DocumentActionsVersionType as L, DocumentStackAvailability as LC, CommittedEvent as LS, uploadSchema as L_, InitialValueLoadingMsg as La, UseTranslationResponse as Lb, TemplateOption as Lc, FormFieldGroup as Ld, useDocumentPreviewValues as Lf, AutoCollapseMenu as Lg, UnpublishDocumentEvent as Lh, PresenceStore as Li, BlockImagePreviewProps as Ll, ChangeBreadcrumb as Lm, ObjectInput as Ln, useUnstableObserveDocument as Lo, isEmptyObject as Lp, FormFieldStatus as Lr, RenderFieldCallback as Ls, DocumentFieldActionDivider as Lt, DEFAULT_DECORATORS as Lu, I18nSearchOperatorDescriptionKey as Lv, ContextMenuButton as Lw, TemplateArrayFieldDefinition as Lx, useVisibleWorkspaces as Ly, ConfigContext$1 as M, createDocumentPreviewStore as MC, ReconnectEvent as MS, StudioProps as M_, ListenQueryParams as Ma, TranslateComponentMap as Mb, defaultRenderPreview as Mc, InvalidItemTypeError as Md, catchWithCount as Mf, ScrollContainerProps as Mg, EventsStore as Mh, ProjectData as Mi, TemplatePreviewProps as Ml, ChangesError as Mm, CreateButton as Mn, getPreviewStateObservable as Mo, FIXME as Mp, FormFieldValidationInfo as Mr, StringInputProps as Ms, defineDocumentInspector as Mt, useDocumentVersionInfo as Mu, SearchFilterDefinition as Mv, removeDupes as Mw, defaultTemplateForType as Mx, validateBasePaths as My, ConfigPropertyReducer as N, ApiConfig as NC, ResetEvent as NS, SourceProvider as N_, listenQuery as Na, TranslationProps as Nb, EditReferenceLinkComponentProps as Nc, MissingKeysError as Nd, defaultTheme as Nf, useOnScroll as Ng, EventsStoreRevision as Nh, ProjectDatasetData as Ni, InlinePreview as Nl, ChangeResolver as Nm, CreateReferenceOption as Nn, getPreviewPaths as No, findIndex as Np, FormFieldValidationWarning as Nr, RenderAnnotationCallback as Ns, initialDocumentFieldActions as Nt, useArchivedReleases as Nu, defineSearchFilter as Nv, systemBundles as Nw, defaultTemplatesForSchema as Nx, validateNames as Ny, BaseActionDescription as O, MetadataWrapper as OC, getPairListener as OS, EnhancedObjectDialog as OT, StudioAnnouncementsDialog as O_, DocumentStoreOptions as Oa, useValidationStatus as Ob, defaultRenderField as Oc, ArrayItemError as Od, EMPTY_OBJECT as Of, isProd as Og, DeleteDocumentVersionEvent as Oh, useUserStore as Oi, RelativeTimeProps as Ol, DiffCard as Om, SlugInput as On, CommitRequest as Oo, ReleasesNav as Op, FormInputAbsolutePathArg as Or, PasteData$1 as Os, DocumentInspectorComponent as Ot, LATEST as Ou, useSearchMaxFieldDepth as Ov, isSystemBundle as Ow, isBuilder as Ox, WorkspacesProvider as Oy, DefaultPluginsWorkspaceOptions as P, AvailabilityReason as PC, WelcomeBackEvent as PS, SourceProviderProps as P_, InitialValueOptions as Pa, defaultLocale as Pb, EditReferenceOptions as Pc, MixedArrayError as Pd, buildLegacyTheme as Pf, CollapseMenuButton as Pg, HistoryClearedEvent as Ph, ProjectGrants as Pi, InlinePreviewProps as Pl, ChangeResolverProps as Pm, PortableTextInput as Pn, unstable_useValuePreview as Po, getItemKey as Pp, FormFieldValidationStatus as Pr, RenderArrayOfObjectsItemCallback as Ps, documentFieldActionsReducer as Pt, useActiveReleases as Pu, defineSearchFilterOperators as Pv, Chip as Pw, prepareTemplates as Px, validateWorkspaces as Py, MissingConfigFile as Q, getVersionInlineBadge as QC, CommentDisabledIcon as QS, PatchEvent as Q_, DocumentVersionSnapshots as Qa, LocaleConfigContext as Qb, SANITY_PATCH_TYPE as Qc, LoadedState as Qd, SchedulesContext as Qf, COMMENTS_INSPECTOR_NAME as Qg, UserColorManagerOptions as Qh, TemplatePermissionsOptions as Qi, PreviewProps as Ql, Chunk as Qm, ArrayOfPrimitivesFunctions as Qn, FormBuilderFilterFieldFn as Qo, isUnchangedDiff as Qp, FieldPresenceWithOverlay as Qr, MarkdownConfig as Qs, toMutationPatches as Qt, UseFormStateOptions as Qu, getSearchableTypes as Qv, ConnectedStatus as Qw, useReconnectingToast as Qx, CommentsProvider as Qy, DocumentAskToEditEnabledContext as R, DraftsModelDocument as RC, DocumentMutationEvent as RS, LiveManifestRegisterProvider as R_, InitialValueMsg as Ra, useTranslation as Rb, useReferenceInputOptions as Rc, ProvenanceDiffAnnotation as Rd, TasksUpsellContextValue as Rf, CollapseMenu as Rg, UnscheduleDocumentVersionEvent as Rh, SESSION_ID as Ri, MediaPreview as Rl, useAnnotationColor as Rm, NumberInput as Rn, SanityDefaultPreview as Ro, normalizeIndexSegment as Rp, FormFieldSet as Rr, RenderInputCallback as Rs, DocumentFieldActionGroup as Rt, ReleaseDocument$1 as Ru, I18nSearchOperatorNameKey as Rv, CommandList as Rw, TemplateFieldDefinition as Rx, VisibleWorkspacesContextValue as Ry, useMiddlewareComponents as S, useIsReleaseActive as SC, DocumentRebaseTelemetryEvent as SS, AuthProvider as ST, StudioProviderProps as S_, selectUpstreamVersion as Sa, CommentsUIMode as Sb, FormProvider as Sc, NumberFormNode as Sd, isArray as Sf, FeedbackDialog as Sg, EventsProvider as Sh, useGrantsStore as Si, StatusButtonProps as Sl, DiffFromTo as Sm, TextInputProps as Sn, RemoteSnapshotVersionEvent as So, EditScheduleForm as Sp, DivergencesProvider as Sr, InputOnSelectFileFunctionProps as Ss, ReleaseActionComponent as St, isReleaseScheduledOrScheduling as Su, StudioComponentsPluginOptions as Sv, getVersionFromId as Sw, useTools as Sx, AddonDatasetContextValue as Sy, AssetSourceResolver as T, useDocumentVersions as TC, LatencyReportEvent as TS, AgentVersionDisplay as TT, StudioLayoutComponent as T_, DocumentTypeResolveState as Ta, CommentsAuthoringPathProvider as Tb, FormBuilderProps as Tc, ObjectRenderMembersCallback as Td, getErrorMessage as Tf, ConsentStatus as Tg, CreateDocumentVersionEvent as Th, usePresenceStore as Ti, RovingFocusProps as Tl, DiffErrorBoundary as Tm, TagsArrayInput as Tn, BufferedDocumentEvent as To, useGetDefaultPerspective as Tp, FormCell as Tr, ObjectInputProps as Ts, ReleaseActionsContext as Tt, isGoingToUnpublish as Tu, SearchDialog as Tv, isDraft as Tw, useTemplates as Tx, MatchWorkspaceOptions as Ty, DocumentInspectorsResolver as U, ObserveDocumentAvailabilityFn as UC, SnapshotEvent as US, StudioWorkspaceManifest as U_, OperationError as Ua, useI18nText as Ub, FormCallbacksProvider as Uc, useCanvasCompanionDoc as Ud, TasksEnabledContextValue as Uf, useCommentsTelemetry as Ug, isDeleteDocumentVersionEvent as Uh, Session as Ui, DefaultPreviewProps as Ul, getDiffAtPath as Um, getCalendarLabels as Un, isArrayOfObjectsInputProps as Uo, pathsAreEqual as Up, FormFieldProps as Ur, ItemProps as Us, DocumentFieldActionStatus as Ut, useDivergenceNavigator as Uu, SearchOperatorButtonValue as Uv, CommandListHandle as Uw, SyncState as Ux, ActiveWorkspaceMatcher as Uy, DocumentCommentsEnabledContext as V, Id as VC, MutationPayload as VS, ManifestWorkspaceInput as V_, validation$1 as Va, useGetI18nText as Vb, useParseErrors as Vc, getDocumentIdForCanvasLink as Vd, MentionUserContextValue as Vf, buildRangeDecorationSelectionsFromComments as Vg, isCreateLiveDocumentEvent as Vh, GlobalPresence as Vi, DetailPreviewProps as Vl, getAnnotationAtPath as Vm, EmailInput as Vn, Preview as Vo, normalizePathSegment as Vp, FormFieldHeaderTextProps as Vr, RenderPreviewCallbackProps as Vs, DocumentFieldActionNode as Vt, useDocumentLimitsUpsellContext as Vu, SearchOperatorBase as Vv, CommandListGetItemKeyCallback as Vw, TemplateReferenceTarget as Vx, getWorkspaceIdentifier as Vy, DocumentLanguageFilterComponent as W, ObserveDocumentTypeFromIdFn as WC, useDialogStack as WS, CopyPasteProvider as W_, OperationSuccess as Wa, defineLocale as Wb, FormCallbacksValue as Wc, SANITY_VERSION as Wd, DEFAULT_STUDIO_CLIENT_OPTIONS as Wf, useCommentsSelectedPath as Wg, isEditDocumentVersionEvent as Wh, Status as Wi, CompactPreview as Wl, visitDiff as Wm, DateTimeInput as Wn, isArrayOfPrimitivesInputProps as Wo, stringToPath as Wp, PresenceScope as Wr, ObjectItem as Ws, DocumentFieldActionTone as Wt, ParseError as Wu, SearchOperatorInput as Wv, CommandListItemContext as Ww, useSyncState as Wx, ActiveWorkspaceMatcherProps as Wy, GroupableActionDescription as X, Selection as XC, useConditionalToast as XS, PasteOptions as X_, OperationImpl as Xa, ImplicitLocaleResourceBundle as Xb, RebasePatchMsg as Xc, ErrorState as Xd, getSchemaTypeTitle as Xf, hasCommentMessageValue as Xg, UserColorManagerProvider as Xh, KeyValueStore as Xi, PreviewLayoutKey as Xl, ChangeNode as Xm, UniversalArrayInput as Xn, ArrayInputFunctionsProps as Xo, isGroupChange as Xp, FieldPresenceInnerProps as Xr, BlockProps as Xs, MutationPatch as Xt, getExpandOperations as Xu, createSearch as Xv, CorsOriginErrorOptions as Xw, DocumentField as Xx, CommentsIntentProviderProps as Xy, FormBuilderComponentResolverContext as Y, PreviewableType as YC, useConnectionState as YS, DocumentMeta as Y_, OperationArgs as Ya, LocaleProviderBase as Yb, PatchMsgSubscriber as Yc, userHasRole as Yd, useSingleDocRelease as Yf, CommentsContextValue as Yg, isUpdateLiveDocumentEvent as Yh, createKeyValueStore as Yi, PreviewComponent as Yl, BooleanDiff$1 as Ym, BooleanInput as Yn, isStringInputProps as Yo, isFieldChange as Yp, FieldPresenceInner as Yr, BlockListItemProps as Ys, encodePath as Yt, SetActiveGroupOperation as Yu, defineSearchOperator as Yv, CorsOriginError as Yw, useRelativeTime as Yx, CommentsIntentProvider as Yy, MediaLibraryConfig as Z, VersionInlineBadge as ZC, useClient as ZS, SanityClipboardItem as Z_, OperationsAPI as Za, Locale as Zb, createPatchChannel as Zc, LoadableState as Zd, createSchema as Zf, isTextSelectionComment as Zg, UserColorManagerProviderProps as Zh, KeyValueStoreValue as Zi, PreviewMediaDimensions as Zl, ChangeTitlePath as Zm, ArrayOfPrimitivesInput as Zn, FormBuilderCustomMarkersComponent as Zo, isRemovedItemDiff as Zp, FieldPresenceProps as Zr, BlockStyleProps as Zs, fromMutationPatches as Zt, FormState as Zu, isPerspectiveRaw as Zv, CONNECTING as Zw, useReferringDocuments as Zx, CommentsEnabledProvider as Zy, createDefaultIcon as _, ChangeIndicatorProps as _C, DocumentIdStack as _S, AuthState as _T, UpsellDialogLearnMoreCtaClicked as __, GrantsStore as _a, CommentUpdateOperationOptions as _b, UploaderResolver as _c, ComputeDiff as _d, PartialExcept as _f, FeedbackPayload as _g, StringSegmentUnchanged$1 as _h, useDocumentPresence as _i, ToastParams$1 as _l, DiffTooltipWithAnnotationsProps as _m, ArrayOfObjectsInputMember as _n, Transaction as _o, DuplicateActionProps as _p, GetFormValueProvider as _r, ArrayOfPrimitivesInputProps as _s, Workspace as _t, DocumentStatus as _u, LayoutProps as _v, createPublishedFrom as _w, useUserListWithPermissions as _x, useColorSchemeValue as _y, resolveSchemaTypes as a, TrackedChange as aC, useListFormat as aS, createConnectionStatusStore as aT, CommentsUpsellContextValue as a_, grantsPermissionOn as aa, CommentListBreadcrumbs as ab, useEnhancedObjectDialog as ac, ArrayOfObjectsMember as ad, supportsTouch as af, UserColorManager as ag, FieldChangeNode as ah, RegionWithIntersectionDetails as ai, setIfMissing as al, MetaInfo as am, ObjectInputMemberProps as an, HistoryStore as ao, HookCollectionActionHook as ap, ArrayOfObjectsInput as ar, ArrayFieldProps as as, PreparedConfig as at, IntentButton as au, FormPatchBase as av, ReleaseId as aw, LocaleSource as ax, SearchPopover as ay, ConfigPropertyError as b, useVersionOperations as bC, editState$1 as bS, LoginComponentProps as bT, UpsellDialogViewedInfo as b_, useInitialValue as ba, CommentsTextSelectionItem as bb, StudioCrossDatasetReferenceInput as bc, NodeChronologyProps as bd, isRecord as bf, StudioFeedbackDialog as bg, getValueError as bh, useDocumentPreviewStore as bi, TextWithToneProps as bl, DiffInspectWrapper as bm, UrlInputProps as bn, MutationResult as bo, isSanityDefinedAction as bp, FormValueProvider as br, ComplexElementProps as bs, WorkspaceOptions as bt, isDraftPerspective as bu, NavbarProps as bv, getIdPair as bw, UseUnitFormatterOptions as bx, StudioThemeColorSchemeKey as by, createWorkspaceFromConfig as c, useTrackerStore as cC, FormDocumentValue as cS, isCookielessCompatibleLoginMethod as cT, useWorkspaceLoader as c_, useDocumentValuePermissions as ca, CommentPath as cb, FileInputProps as cc, DecorationMember as cd, joinPath as cf, FeedbackContextValue as cg, GroupChangeNode as ch, DocumentPreviewPresence as ci, useZIndex as cl, FromToArrow as cm, MemberField as cn, removeMissingReferences as co, DocumentActionConfirmDialogProps as cp, FormBuilderContextValue as cr, BooleanFieldProps as cs, SanityFormConfig as ct, Hotkeys as cu, FormSetIfMissingPatch as cv, TargetPerspective as cw, LocalesOption as cx, Filters as cy, flattenConfig as d, Reported as dC, useFormattedDuration as dS, createMockAuthStore as dT, WorkspaceProvider as d_, getDocumentPairPermissions as da, CommentReactionOption as db, FileLike as dc, FieldsetRenderMembersCallback as dd, _isType as df, useFeedback as dg, NumberDiff$1 as dh, useUser as di, UserAvatar as dl, FromToProps as dm, ArrayOfPrimitivesItem as dn, TimelineControllerOptions as do, DocumentActionDialogProps as dp, useFieldActions as dr, NumberFieldProps as ds, SingleWorkspace as dt, useCopyErrorDetails as du, PatchArg as dv, DraftId as dw, ValidationLocaleResourceKeys as dx, ColorSchemeProvider as dy, ChangeIndicatorsTracker as eC, UseNumberFormatOptions as eS, ConnectionStatus as eT, CommentInputContextValue as e_, getTemplatePermissions as ea, CommentContext as eb, ArrayInputCopyEvent as ec, setAtPath as ed, asLoadable as ef, useUserColor as eg, Diff$1 as eh, FormNodePresence as ei, diffMatchPatch as el, DocumentChangeContextInstance as em, useDocumentForm as en, useTimelineSelector as eo, DocumentBadgeComponent as ep, ArrayOfOptionsInput as er, FormBuilderMarkersComponent as es, NewDocumentOptionsContext as et, PreviewCardContextValue as eu, FormDiffMatchPatch as ev, ReleaseAvatar as ew, LocaleNestedResource as ex, SearchOptions as ey, PluginFactory as f, ReporterHook as fC, useFilteredReleases as fS, AuthStoreOptions as fT, WorkspaceProviderProps as f_, useDocumentPairPermissions as fa, CommentReactionShortNames as fb, ResolvedUploader as fc, ObjectMember as fd, createSWR as ff, SendFeedbackOptions as fg, ObjectDiff$1 as fh, ResourceCache as fi, UserAvatarProps as fl, FieldChange as fm, PrimitiveMemberItemProps as fn, ParsedTimeRef as fo, DocumentActionGroup as fp, FieldActionsProps as fr, ObjectFieldProps as fs, Source as ft, ErrorWithId as fu, ToolLink as fv, PublishedId as fw, StudioLocaleResourceKeys as fx, ColorSchemeProviderProps as fy, defineConfig as g, ChangeIndicator as gC, useDocumentOperation as gS, AuthProbeResult as gT, UpsellDialogDismissed as g_, Grant as ga, CommentThreadItem as gb, UploaderDef as gc, BooleanFormNode as gd, isPausedCardinalityOneRelease as gf, DynamicFeedbackTags as gg, StringSegmentChanged$1 as gh, useGlobalPresence as gi, ImperativeToast as gl, DiffTooltipProps as gm, ArrayOfObjectsInputMembersProps as gn, DocumentRemoteMutationVersionEvent as go, DocumentActionProps as gp, FieldActionMenuProps as gr, ArrayOfPrimitivesElementType as gs, Tool as gt, CapabilityGate as gu, ActiveToolLayoutProps as gv, createDraftFrom as gw, UserWithPermission as gx, useColorSchemeSetValue as gy, createConfig as h, ConnectorContextValue as hC, useDocumentOperationEvent as hS, createAuthStore as hT, UpsellDescriptionSerializer as h_, EvaluationParams as ha, CommentTextSelection as hb, Uploader as hc, BaseFormNode as hd, isCardinalityOneRelease as hf, BaseFeedbackTags as hg, StringDiffSegment as hh, useResourceCache as hi, ZIndexContextValue as hl, DiffTooltip as hm, ArrayOfObjectsInputMembers as hn, CombinedDocument as ho, DocumentActionPopoverDialogProps as hp, FieldActionMenu as hr, ArrayOfObjectsInputProps as hs, TemplateResolver as ht, DocumentStatusIndicator as hu, StudioNavbar as hv, collate as hw, UserListWithPermissionsOptions as hx, useColorSchemeOptions as hy, SchemaError as i, TrackedArea as iC, UseListFormatOptions as iS, RetryingStatus as iT, CommentsList as i_, createGrantsStore as ia, CommentIntentGetter as ib, EnhancedObjectDialogContextValue as ic, ArrayOfObjectsItemMember as id, uncaughtErrorHandler as if, UserColorHue as ig, DiffProps as ih, Rect as ii, set as il, NoChanges as im, ObjectInputMember as in, DocumentRevision as io, GetHookCollectionStateProps as ip, useVirtualizerScrollInstance as ir, RenderCustomMarkers as is, PluginOptions as it, LoadingBlock as iu, FormPatch as iv, PerspectiveStack as iw, LocaleResourceRecord as ix, SearchResultItemPreview as iy, Config as j, ObserveForPreviewFn as jC, PendingMutationsEvent as jS, createSanityMediaLibraryImageSource as jT, Studio as j_, ListenQueryOptions as ja, Translate as jb, defaultRenderItem as jc, IncompatibleTypeError as jd, createHookFromObservableFactory as jf, ScrollContainer as jg, EditDocumentVersionEvent as jh, createProjectStore as ji, TemplatePreview as jl, ChangeTitleSegment as jm, ReferenceAutocomplete as jn, getPreviewValueWithFallback as jo, getSelectedVariant as jp, FormFieldValidationError as jr, PrimitiveInputProps as js, DocumentInspectorUseMenuItemProps as jt, ReleasesUpsellContextValue as ju, SearchContextValue as jv, newDraftFrom as jw, resolveInitialValueForType as jx, ValidateWorkspaceOptions as jy, BetaFeatures as k, DocumentPreviewStore as kC, IdPair as kS, EditPortal as kT, StudioAnnouncementsContextValue as k_, QueryParams$1 as ka, ValidateDocumentOptions as kb, defaultRenderInlineBlock as kc, DuplicateKeysError as kd, LoadingTuple as kf, ScrollContextValue as kg, DocumentGroupEvent as kh, useProjectDatasets as ki, LinearProgress as kl, DiffCardProps as km, SlugInputProps as kn, createObservableBufferedDocument as ko, PerspectiveNotWriteableReason as kp, FormInputRelativePathArg as kr, PortableTextInputProps as ks, DocumentInspectorMenuItem as kt, PUBLISHED as ku, useSearchState as kv, isSystemBundleName as kw, resolveInitialObjectValue as kx, WorkspacesProviderProps as ky, resolveConfig as l, useTrackerStoreReporter as lC, FormattedDuration as lS, getProviderTitle as lT, ErrorMessage as l_, DocumentPairPermissionsOptions as la, CommentPostPayload as lb, StudioFileInput as lc, FieldMember as ld, _isCustomDocumentTypeDefinition as lf, useStudioFeedbackTags as lg, ItemDiff$1 as lh, DocumentPreviewPresenceProps as li, WithReferringDocuments as ll, FromToArrowDirection as lm, MemberFieldProps as ln, SelectionState as lo, DocumentActionCustomDialogComponentProps as lp, useHoveredField as lr, FieldCommentsProps as ls, ScheduledPublishingPluginOptions as lt, HotkeysProps$1 as lu, FormSetPatch as lv, CollatedHit as lw, StaticLocaleResourceBundle as lx, ColorSchemeCustomProvider as ly, definePlugin as m, ChangeConnectorRootProps as mC, useEditState as mS, _createAuthStore as mT, InterpolationProp as m_, DocumentValuePermission as ma, CommentTaskCreatePayload as mb, UploadProgressEvent as mc, ArrayOfPrimitivesFormNode as md, isCardinalityOnePerspective as mf, useInStudioFeedback as mg, StringDiff$1 as mh, ResourceCacheProviderProps as mi, ZIndexContextValueKey as ml, Event$1 as mm, MemberItemProps as mn, TimelineOptions as mo, DocumentActionModalDialogProps as mp, FieldActionsProvider as mr, StringFieldProps as ms, SourceOptions as mt, ErrorActionsProps as mu, StudioToolMenu as mv, VERSION_FOLDER as mw, UserListWithPermissionsHookValue as mx, useColorSchemeInternalValue as my, getConfigContextFromSource as n, useChangeIndicatorsReporter as nC, UseManageFavoriteProps as nS, ConnectionStatusStoreOptions as nT, CommentInputHandle as n_, useTemplatePermissionsFromHookFactory as na, CommentDocument as nb, ArrayInputMoveItemEvent as nc, FieldsetMembers as nd, sliceString as nf, HexColor as ng, DiffComponentOptions as nh, Position as ni, insert as nl, RevertChangesConfirmDialog as nm, ObjectMembers as nn, TimelineStore as no, DocumentBadgeProps as np, VirtualizerScrollInstanceProvider as nr, RenderBlockActionsCallback as ns, PartialContext as nt, usePreviewCard as nu, FormInsertPatch as nv, VersionChip as nw, LocaleResourceBundle as nx, SearchTerms as ny, CreateWorkspaceFromConfigOptions as o, TrackerContextGetSnapshot as oC, GlobalCopyPasteElementHandler as oS, onRetry as oT, UpsellData as o_, DocumentValuePermissionsOptions as oa, CommentMessage as ob, ImageInputProps as oc, ArrayOfPrimitivesItemMember as od, escapeField as of, UserId as og, FieldOperationsAPI as oh, ReportedRegionWithRect as oi, unset as ol, MetaInfoProps as om, MemberFieldSet as on, HistoryStoreOptions as oo, useScheduleAction as op, ArrayOfObjectsFunctions as or, ArrayOfPrimitivesFieldProps as os, ReleaseActionsResolver as ot, InsufficientPermissionsMessage as ou, FormPatchJSONValue as ov, ReleasesNavMenuItemPropsGetter as ow, LocaleWeekInfo as ox, SearchPopoverProps as oy, createPlugin as p, ChangeConnectorRoot as pC, useFeatureEnabled as pS, CreateAuthStoreOptions as pT, useWorkspace as p_, useDocumentPairPermissionsFromHookFactory as pa, CommentStatus as pb, UploadOptions as pc, ArrayOfObjectsFormNode as pd, CardinalityOneRelease as pf, UseInStudioFeedbackReturn as pg, ReferenceDiff as ph, ResourceCacheProvider as pi, LegacyLayerProvider as pl, FallbackDiff as pm, ArrayOfObjectsItem as pn, Timeline as po, DocumentActionKeys as pp, FieldActionsResolver as pr, PrimitiveFieldProps as ps, SourceClientOptions as pt, ErrorActions as pu, ToolLinkProps as pv, SystemBundle as pw, Rule as px, useColorScheme as py, DocumentLayoutProps as q, PreviewPath as qC, useDataset as qS, CopyOptions as q_, MapDocument as qa, removeUndefinedLocaleResources as qb, PatchChannel as qc, useUnique as qd, usePausedScheduledDraft as qf, CommentsEnabledContextValue as qg, isUnpublishDocumentEvent as qh, UserStoreOptions as qi, GeneralPreviewLayoutKey as ql, ArrayDiff$1 as qm, DateInputProps as qn, isObjectInputProps as qo, emptyValuesByType as qp, PresenceOverlayProps as qr, BlockAnnotationProps as qs, TransformPatches as qt, ExpandOperation as qu, ValuelessSearchOperatorBuilder as qv, BetaBadge as qw, useReviewChanges as qx, CommentsSelectedPathContextValue as qy, useConfigContextFromSource as r, ChangeIndicatorTrackerContextValue as rC, useManageFavorite as rS, ErrorStatus as rT, CommentInputProps as r_, GrantsStoreOptions as ra, CommentFieldCreatePayload as rb, UploadEvent as rc, FieldsetState as rd, truncateString as rf, UserColor as rg, DiffComponentResolver as rh, PresentUser as ri, prefixPath as rl, RevertChangesButton as rm, ObjectMembersProps as rn, useTimelineStore as ro, GetHookCollectionState as rp, VirtualizerScrollInstance as rr, RenderBlockActionsProps as rs, Plugin as rt, PopoverDialog as ru, FormInsertPatchPosition as rv, PerspectiveContextValue as rw, LocaleResourceKey as rx, compileFieldPath as ry, createSourceFromConfig as s, TrackerContextStore as sC, useGlobalCopyPasteElementHandler as sS, isAuthStore as sT, WorkspaceLoaderBoundary as s_, getDocumentValuePermissions as sa, CommentOperations as sb, StudioImageInput as sc, ArrayOfPrimitivesMember as sd, fieldNeedsEscape as sf, FeedbackContext as sg, FromToIndex as sh, Size as si, ZIndexProvider as sl, GroupChange as sm, MemberFieldError as sn, createHistoryStore as so, DocumentActionComponent as sp, useDidUpdate as sr, BaseFieldProps as ss, ResolveProductionUrlContext as st, InsufficientPermissionsMessageProps as su, FormPatchOrigin as sv, SelectedPerspective as sw, LocalesBundlesOption as sx, SearchHeader as sy, ActiveWorkspaceMatcherContextValue as t, useChangeIndicatorsReportedValues as tC, useNumberFormat as tS, ConnectionStatusStore as tT, CommentInput as t_, useTemplatePermissions as ta, CommentCreatePayload as tb, ArrayInputInsertEvent as tc, StateTree as td, useLoadable as tf, useUserColorManager as tg, DiffComponent as th, Location as ti, inc as tl, ValueError as tm, ObjectInputMembers as tn, TimelineState as to, DocumentBadgeDescription as tp, ArrayOfObjectOptionsInput as tr, PortableTextMarker as ts, NewDocumentOptionsResolver as tt, ReferenceInputPreviewCard as tu, FormIncPatch as tv, ReleaseAvatarIcon as tw, LocalePluginOptions as tx, SearchSort as ty, prepareConfig as u, IsEqualFunction as uC, UseFormattedDurationOptions as uS, MockAuthStoreOptions as uT, ErrorMessageProps as u_, DocumentPermission as ua, CommentReactionItem as ub, AssetSourcesResolver as uc, FieldSetMember as ud, _isSanityDocumentTypeDefinition as uf, UseFeedbackReturn as ug, NullDiff$1 as uh, useCurrentUser as ui, AvatarSkeleton as ul, FromTo as um, MemberItemError as un, TimelineController as uo, DocumentActionDescription as up, HoveredFieldProvider as ur, FieldProps as us, SchemaPluginOptions as ut, serializeError as uu, FormUnsetPatch as uv, DRAFTS_FOLDER as uw, TFunction$1 as ux, ColorSchemeLocalStorageProvider as uy, ConfigResolutionError as v, ChangeFieldWrapper as vC, useDocumentIdStack as vS, AuthStore as vT, UpsellDialogUpgradeCtaClicked as v_, PermissionCheckResult as va, CommentUpdatePayload as vb, StudioReferenceInput as vc, DocumentFormNode as vd, isTruthy as vf, Sentiment as vg, TypeChangeDiff$1 as vh, useComlinkStore as vi, TooltipOfDisabled as vl, DiffString as vm, ArrayOfObjectsMemberProps as vn, DocumentVersion as vo, DuplicateDocumentActionComponent as vp, useGetFormValue as vr, BaseInputProps as vs, WorkspaceHiddenContext as vt, formatRelativeLocalePublishDate as vu, LogoProps as vv, documentIdEquals as vw, FormattableMeasurementUnit as vx, StudioColorScheme as vy, AppsOptions as w, useDocumentVersionTypeSortedList as wC, InitialSnapshotEvent as wS, LoginMethod as wT, StudioLayout as w_, useDocumentValues as wa, CommentsAuthoringPathContextValue as wb, FormBuilder as wc, ObjectFormNode as wd, getReferencePaths as wf, useTelemetryConsent as wg, BaseEvent as wh, useKeyValueStore as wi, RovingFocusNavigationType as wl, FieldPreviewComponent as wm, TelephoneInputProps as wn, checkoutPair as wo, usePerspective as wp, FormContainer as wr, NumberInputProps as ws, ReleaseActionProps as wt, isReleasePerspective as wu, StudioLogo as wv, idMatchesPerspective as ww, useTimeAgo as wx, useActiveWorkspace as wy, ConfigPropertyErrorOptions as x, useOnlyHasVersions as xC, DocumentPairLoadedEvent as xS, AuthConfig as xT, StudioProvider as x_, useInitialValueResolverContext as xa, CommentsType as xb, StudioCrossDatasetReferenceInputProps as xc, NodeDiffProps as xd, isNonNullable as xf, StudioFeedbackDialogProps as xg, useEventsStore as xh, useDocumentStore as xi, StatusButton as xl, DiffInspectWrapperProps as xm, TextInput as xn, Pair as xo, SchedulesContextValue as xp, useFormValue as xr, EditorChange as xs, WorkspaceSummary as xt, isPublishedPerspective as xu, StudioComponents as xv, getPublishedId as xw, useUnitFormatter as xx, useAddonDataset as xy, ConfigResolutionErrorOptions as y, sortReleases as yC, EditStateFor as yS, HandleCallbackResult as yT, UpsellDialogViewed as y_, useResolveInitialValueForType as ya, CommentsListBreadcrumbItem as yb, StudioReferenceInputProps as yc, HiddenField as yd, isString as yf, TagValue as yg, FieldValueError as yh, useConnectionStatusStore as yi, TextWithTone as yl, DiffStringSegment as ym, UrlInput as yn, DocumentVersionEvent as yo, SanityDefinedAction as yp, FormValueContextValue as yr, BooleanInputProps as ys, WorkspaceHiddenProperty as yt, getDocumentIsInPerspective as yu, NavbarAction as yv, getDraftId as yw, UnitFormatter as yx, StudioTheme as yy, DocumentBadgesContext as z, DraftsModelDocumentAvailability as zC, DocumentRebaseEvent as zS, GenerateStudioManifestOptions as z_, InitialValueState as za, useCurrentLocale as zb, ParseErrorsProvider as zc, ALL_FIELDS_GROUP as zd, TasksContextValue as zf, CollapseMenuProps as zg, UpdateLiveDocumentEvent as zh, createPresenceStore as zi, MediaPreviewProps as zl, useDiffAnnotationColor as zm, AssetAccessPolicy as zn, SanityDefaultPreviewProps as zo, normalizeIndexTupleSegment as zp, FormFieldSetProps as zr, RenderItemCallback as zs, DocumentFieldActionHook as zt, useSetVariant as zu, OperatorButtonValueComponentProps as zv, CommandListElementType as zw, TemplateItem as zx, VisibleWorkspacesProvider as zy };
16926
+ export { NewDocumentCreationContext as $, Previewable as $C, ConnectionState as $S, CopyPasteContextType as $_, snapshotPair as $a, LocaleProvider as $b, dec as $c, LoadingState as $d, ScheduledBadge as $f, useComments as $g, createUserColorManager as $h, TemplatePermissionsResult as $i, PreviewCard as $l, ChunkType as $m, ArrayOfPrimitiveOptionsInput as $n, FormBuilderInputComponentMap as $o, noop as $p, FieldPresenceData as $r, PortableTextPluginsProps as $s, useFormBuilder as $t, useFormState as $u, ValuelessSearchOperatorParams as $v, BetaBadgeProps as $w, RelativeTimeOptions as $x, CommentsSelectedPathProvider as $y, ComposableOption as A, useDocumentVersions as AC, LatencyReportEvent as AS, AgentVersionDisplay as AT, StudioLayoutComponent as A_, createDocumentStore as Aa, CommentsAuthoringPathProvider as Ab, defaultRenderInput as Ac, FieldError as Ad, ReactHook as Af, DocumentGroupInventoryProps as Ag, DocumentVersionEventType as Ah, useProject as Ai, CircularProgress as Al, TIMELINE_ITEM_I18N_KEY_MAPPING as Am, SelectInput as An, prepareForPreview as Ao, isPerspectiveWriteable as Ap, FormFieldValidation as Ar, PrimitiveInputElementProps as As, DocumentInspectorProps as At, useReleasesIds as Au, SearchDialog as Av, isDraft as Aw, useTemplates as Ax, MatchWorkspaceOptions as Ay, DocumentBadgesResolver as B, AvailabilityResponse as BC, WelcomeEvent as BS, useSource as B_, InitialValueSuccessMsg as Ba, usEnglishLocale as Bb, useParseErrorForPath as Bc, resolveConditionalProperty as Bd, TasksNavigationContextValue as Bf, CollapseMenuButtonProps as Bg, isCreateDocumentVersionEvent as Bh, DocumentPresence as Bi, DetailPreview as Bl, DiffVisitor as Bm, ImageUrlBuilder$1 as Bn, PreviewLoader as Bo, normalizeKeySegment as Bp, FormFieldHeaderText as Br, RenderPreviewCallback as Bs, DocumentFieldActionItem as Bt, isDocumentLimitError as Bu, SearchOperatorType as Bv, DocumentVariantType as Bw, InitialValueTemplateItem as Bx, useWorkspaces as By, ActionComponent as C, ChangeFieldWrapper as CC, useDocumentIdStack as CS, AuthStore as CT, UpsellDialogUpgradeCtaClicked as C_, isNewDocument as Ca, CommentUpdatePayload as Cb, FormProviderProps as Cc, ObjectArrayFormNode as Cd, globalScope as Cf, FeedbackDialogProps as Cg, useEvents as Ch, useHistoryStore as Ci, useRovingFocus as Cl, DiffFromToProps as Cm, TelephoneInput as Cn, WithVersion as Co, useSetPerspective as Cp, useDocumentDivergences as Cr, InputProps as Cs, ReleaseActionDescription as Ct, RELEASES_STUDIO_CLIENT_OPTIONS as Cu, LogoProps as Cv, documentIdEquals as Cw, FormattableMeasurementUnit as Cx, StudioColorScheme as Cy, AsyncConfigPropertyReducer as D, useIsReleaseActive as DC, DocumentRebaseTelemetryEvent as DS, AuthProvider as DT, StudioProviderProps as D_, DocumentStore as Da, CommentsUIMode as Db, defaultRenderBlock as Dc, StringFormNode as Dd, EMPTY_ARRAY as Df, isDev as Dg, DeleteDocumentGroupEvent as Dh, useRenderingContextStore as Di, RelativeTime as Dl, DiffErrorBoundaryState as Dm, StringInput as Dn, createBufferedDocument as Do, PerspectiveProvider as Dp, FormInput as Dr, OnPathFocusPayload as Ds, DocumentInspector as Dt, getReleaseIdFromReleaseDocumentId as Du, StudioComponentsPluginOptions as Dv, getVersionFromId as Dw, useTools as Dx, AddonDatasetContextValue as Dy, AsyncComposableOption as E, useOnlyHasVersions as EC, DocumentPairLoadedEvent as ES, AuthConfig as ET, StudioProvider as E_, useDocumentType as Ea, CommentsType as Eb, defaultRenderAnnotation as Ec, PrimitiveFormNode as Ed, formatRelativeLocale as Ef, StudioFeedbackProvider as Eg, CreateLiveDocumentEvent as Eh, useProjectStore as Ei, Resizable as El, DiffErrorBoundaryProps as Em, TagsArrayInputProps as En, BufferedDocumentWrapper as Eo, useExcludedPerspective as Ep, FormRow as Er, OnPasteFn as Es, FormComponents as Et, getReleaseTone as Eu, StudioComponents as Ev, getPublishedId as Ew, useUnitFormatter as Ex, useAddonDataset as Ey, DocumentActionsContext as F, DocumentPreviewStoreOptions as FC, MutationEvent as FS, createSanityMediaLibraryFileSource as FT, StudioAnnouncementsCard as F_, getInitialValueStream as Fa, validateDocument as Fb, ReferenceInputOptions as Fc, TypeAnnotationMismatchError as Fd, LegacyThemeProps as Ff, ScrollEventHandler as Fg, PublishDocumentVersionEvent as Fh, ProjectOrganizationData as Fi, BlockPreview as Fl, ChangeList as Fm, PortableTextMemberItem as Fn, useValuePreview as Fo, getItemKeySegment as Fp, FormFieldValidationStatusProps as Fr, RenderArrayOfPrimitivesItemCallback as Fs, defineDocumentFieldAction as Ft, RELEASES_INTENT as Fu, SearchProvider as Fv, isVersionId as Fw, resolveInitialValue as Fx, WorkspacesContextValue as Fy, DocumentLanguageFilterContext as G, FieldName as GC, DocumentRemoteMutationEvent as GS, generateStudioManifest as G_, emitOperation as Ga, useLocale as Gb, useFormCallbacks as Gc, measureFirstEmission as Gd, useScheduledDraftsEnabled as Gf, buildTextSelectionFromFragment as Gg, isPublishDocumentVersionEvent as Gh, UserSessionPair as Gi, CompactPreviewProps as Gl, Annotation as Gm, DateTimeInputProps as Gn, isBooleanInputProps as Go, resolveDiffComponent as Gp, PresenceScopeProps as Gr, ObjectItemProps as Gs, DocumentFieldActionsResolver as Gt, mergeParseErrors as Gu, OperatorInputComponentProps as Gv, CommandListGetItemDisabledCallback as Gw, TemplateParameter as Gx, getNamelessWorkspaceIdentifier as Gy, DocumentInspectorContext as H, DocumentStackAvailability as HC, CommittedEvent as HS, uploadSchema as H_, remoteSnapshots as Ha, UseTranslationResponse as Hb, useReportParseError as Hc, useNavigateToCanvasDoc as Hd, IsLastPaneProvider as Hf, AutoCollapseMenu as Hg, isDeleteDocumentGroupEvent as Hh, PresenceLocation as Hi, DefaultPreview as Hl, getAnnotationColor as Hm, EmailInputProps as Hn, isArrayOfBlocksInputProps as Ho, pathToString as Hp, FormField as Hr, BaseItemProps as Hs, DocumentFieldActionProps as Ht, DivergenceNavigator as Hu, I18nSearchOperatorDescriptionKey as Hv, ContextMenuButton as Hw, TemplateArrayFieldDefinition as Hx, useVisibleWorkspaces as Hy, DocumentActionsResolver as I, ObserveForPreviewFn as IC, PendingMutationsEvent as IS, createSanityMediaLibraryImageSource as IT, Studio as I_, InitialValueErrorMsg as Ia, Translate as Ib, ReferenceInputOptionsProvider as Ic, UndeclaredMembersError as Id, LegacyThemeTints as If, ScrollContainer as Ig, ScheduleDocumentVersionEvent as Ih, ProjectStore as Ii, BlockImagePreview as Il, ChangeListProps as Im, UpdateReadOnlyPlugin as In, unstable_useObserveDocument as Io, getValueAtPath as Ip, FieldStatusProps as Ir, RenderBlockCallback as Is, DocumentFieldAction as It, DEFAULT_ANNOTATIONS as Iu, SearchContextValue as Iv, newDraftFrom as Iw, resolveInitialValueForType as Ix, ValidateWorkspaceOptions as Iy, DocumentPluginOptions as J, ObserveDocumentAvailabilityFn as JC, SnapshotEvent as JS, StudioWorkspaceManifest as J_, Operation as Ja, useI18nText as Jb, PatchMsg as Jc, useThrottledCallback as Jd, SingleDocReleaseProvider as Jf, useCommentsTelemetry as Jg, isUnscheduleDocumentVersionEvent as Jh, createUserStore as Ji, PortableTextPreviewLayoutKey as Jl, ArrayItemMetadata as Jm, CrossDatasetReferencePreview as Jn, isObjectItemProps as Jo, isAddedItemDiff as Jp, FieldPresence as Jr, BlockDecoratorProps as Js, decodePath as Jt, ExpandPathOperation as Ju, SearchOperatorButtonValue as Jv, CommandListHandle as Jw, SyncState as Jx, ActiveWorkspaceMatcher as Jy, DocumentLanguageFilterResolver as K, Id as KC, MutationPayload as KS, ManifestWorkspaceInput as K_, operationEvents as Ka, useGetI18nText as Kb, MutationPatchMsg as Kc, measureFirstMatch as Kd, useScheduledDraftDocument as Kf, buildRangeDecorationSelectionsFromComments as Kg, isScheduleDocumentVersionEvent as Kh, UserStore as Ki, GeneralDocumentListLayoutKey as Kl, AnnotationDetails as Km, DateInput as Kn, isNumberInputProps as Ko, useDocumentChange as Kp, PresenceOverlay as Kr, PrimitiveItemProps as Ks, DocumentFieldActionsResolverContext as Kt, ExpandFieldSetOperation as Ku, SearchOperatorBase as Kv, CommandListGetItemKeyCallback as Kw, TemplateReferenceTarget as Kx, getWorkspaceIdentifier as Ky, DocumentActionsVersionType as L, createDocumentPreviewStore as LC, ReconnectEvent as LS, StudioProps as L_, InitialValueLoadingMsg as La, TranslateComponentMap as Lb, TemplateOption as Lc, FormFieldGroup as Ld, useDocumentPreviewValues as Lf, ScrollContainerProps as Lg, UnpublishDocumentEvent as Lh, PresenceStore as Li, BlockImagePreviewProps as Ll, ChangeBreadcrumb as Lm, ObjectInput as Ln, useUnstableObserveDocument as Lo, isEmptyObject as Lp, FormFieldStatus as Lr, RenderFieldCallback as Ls, DocumentFieldActionDivider as Lt, DEFAULT_DECORATORS as Lu, SearchFilterDefinition as Lv, removeDupes as Lw, defaultTemplateForType as Lx, validateBasePaths as Ly, ConfigContext$1 as M, isReleaseDocument as MC, MutationPerformanceEvent as MS, isAgentBundleName as MT, isValidAnnouncementRole as M_, ListenQueryParams as Ma, useVersionRelease as Mb, defaultRenderPreview as Mc, InvalidItemTypeError as Md, catchWithCount as Mf, DocumentGroupInventoryReferencePreviewLinkProps as Mg, EventsStore as Mh, ProjectData as Mi, TemplatePreviewProps as Ml, ChangesError as Mm, CreateButton as Mn, getPreviewStateObservable as Mo, FIXME as Mp, FormFieldValidationInfo as Mr, StringInputProps as Ms, defineDocumentInspector as Mt, useDocumentVersionInfo as Mu, PartialIndexSettings as Mv, isPublishedId as Mw, Serializeable as Mx, matchWorkspace as My, ConfigPropertyReducer as N, MetadataWrapper as NC, getPairListener as NS, EnhancedObjectDialog as NT, StudioAnnouncementsDialog as N_, listenQuery as Na, useValidationStatus as Nb, EditReferenceLinkComponentProps as Nc, MissingKeysError as Nd, defaultTheme as Nf, DocumentGroupInventoryAction as Ng, EventsStoreRevision as Nh, ProjectDatasetData as Ni, InlinePreview as Nl, ChangeResolver as Nm, CreateReferenceOption as Nn, getPreviewPaths as No, findIndex as Np, FormFieldValidationWarning as Nr, RenderAnnotationCallback as Ns, initialDocumentFieldActions as Nt, useArchivedReleases as Nu, useSearchMaxFieldDepth as Nv, isSystemBundle as Nw, isBuilder as Nx, WorkspacesProvider as Ny, BaseActionDescription as O, useFormatRelativeLocalePublishDate as OC, DocumentStoreExtraOptions as OS, CookielessCompatibleLoginMethod as OT, NavbarContextValue as O_, DocumentStoreOptions as Oa, Loadable as Ob, defaultRenderField as Oc, ArrayItemError as Od, EMPTY_OBJECT as Of, isProd as Og, DeleteDocumentVersionEvent as Oh, useUserStore as Oi, RelativeTimeProps as Ol, DiffCard as Om, SlugInput as On, CommitRequest as Oo, ReleasesNav as Op, FormInputAbsolutePathArg as Or, PasteData$1 as Os, DocumentInspectorComponent as Ot, LATEST as Ou, ToolMenuProps as Ov, getVersionId as Ow, TimeAgoOpts as Ox, AddonDatasetProvider as Oy, DefaultPluginsWorkspaceOptions as P, DocumentPreviewStore as PC, IdPair as PS, EditPortal as PT, StudioAnnouncementsContextValue as P_, InitialValueOptions as Pa, ValidateDocumentOptions as Pb, EditReferenceOptions as Pc, MixedArrayError as Pd, buildLegacyTheme as Pf, ScrollContextValue as Pg, HistoryClearedEvent as Ph, ProjectGrants as Pi, InlinePreviewProps as Pl, ChangeResolverProps as Pm, PortableTextInput as Pn, unstable_useValuePreview as Po, getItemKey as Pp, FormFieldValidationStatus as Pr, RenderArrayOfObjectsItemCallback as Ps, documentFieldActionsReducer as Pt, useActiveReleases as Pu, useSearchState as Pv, isSystemBundleName as Pw, resolveInitialObjectValue as Px, WorkspacesProviderProps as Py, MissingConfigFile as Q, PreviewPath as QC, useDataset as QS, CopyOptions as Q_, DocumentVersionSnapshots as Qa, removeUndefinedLocaleResources as Qb, SANITY_PATCH_TYPE as Qc, LoadedState as Qd, SchedulesContext as Qf, CommentsEnabledContextValue as Qg, UserColorManagerOptions as Qh, TemplatePermissionsOptions as Qi, PreviewProps as Ql, Chunk as Qm, ArrayOfPrimitivesFunctions as Qn, FormBuilderFilterFieldFn as Qo, isUnchangedDiff as Qp, FieldPresenceWithOverlay as Qr, MarkdownConfig as Qs, toMutationPatches as Qt, UseFormStateOptions as Qu, ValuelessSearchOperatorBuilder as Qv, BetaBadge as Qw, useReviewChanges as Qx, CommentsSelectedPathContextValue as Qy, DocumentAskToEditEnabledContext as R, ApiConfig as RC, ResetEvent as RS, SourceProvider as R_, InitialValueMsg as Ra, TranslationProps as Rb, useReferenceInputOptions as Rc, ProvenanceDiffAnnotation as Rd, TasksUpsellContextValue as Rf, useOnScroll as Rg, UnscheduleDocumentVersionEvent as Rh, SESSION_ID as Ri, MediaPreview as Rl, useAnnotationColor as Rm, NumberInput as Rn, SanityDefaultPreview as Ro, normalizeIndexSegment as Rp, FormFieldSet as Rr, RenderInputCallback as Rs, DocumentFieldActionGroup as Rt, ReleaseDocument$1 as Ru, defineSearchFilter as Rv, systemBundles as Rw, defaultTemplatesForSchema as Rx, validateNames as Ry, useMiddlewareComponents as S, ChangeIndicatorProps as SC, DocumentIdStack as SS, AuthState as ST, UpsellDialogLearnMoreCtaClicked as S_, selectUpstreamVersion as Sa, CommentUpdateOperationOptions as Sb, FormProvider as Sc, NumberFormNode as Sd, isArray as Sf, FeedbackDialog as Sg, EventsProvider as Sh, useGrantsStore as Si, StatusButtonProps as Sl, DiffFromTo as Sm, TextInputProps as Sn, RemoteSnapshotVersionEvent as So, EditScheduleForm as Sp, DivergencesProvider as Sr, InputOnSelectFileFunctionProps as Ss, ReleaseActionComponent as St, isReleaseScheduledOrScheduling as Su, LayoutProps as Sv, createPublishedFrom as Sw, useUserListWithPermissions as Sx, useColorSchemeValue as Sy, AssetSourceResolver as T, useVersionOperations as TC, editState$1 as TS, LoginComponentProps as TT, UpsellDialogViewedInfo as T_, DocumentTypeResolveState as Ta, CommentsTextSelectionItem as Tb, FormBuilderProps as Tc, ObjectRenderMembersCallback as Td, getErrorMessage as Tf, ConsentStatus as Tg, CreateDocumentVersionEvent as Th, usePresenceStore as Ti, RovingFocusProps as Tl, DiffErrorBoundary as Tm, TagsArrayInput as Tn, BufferedDocumentEvent as To, useGetDefaultPerspective as Tp, FormCell as Tr, ObjectInputProps as Ts, ReleaseActionsContext as Tt, isGoingToUnpublish as Tu, NavbarProps as Tv, getIdPair as Tw, UseUnitFormatterOptions as Tx, StudioThemeColorSchemeKey as Ty, DocumentInspectorsResolver as U, DraftsModelDocument as UC, DocumentMutationEvent as US, LiveManifestRegisterProvider as U_, OperationError as Ua, useTranslation as Ub, FormCallbacksProvider as Uc, useCanvasCompanionDoc as Ud, TasksEnabledContextValue as Uf, CollapseMenu as Ug, isDeleteDocumentVersionEvent as Uh, Session as Ui, DefaultPreviewProps as Ul, getDiffAtPath as Um, getCalendarLabels as Un, isArrayOfObjectsInputProps as Uo, pathsAreEqual as Up, FormFieldProps as Ur, ItemProps as Us, DocumentFieldActionStatus as Ut, useDivergenceNavigator as Uu, I18nSearchOperatorNameKey as Uv, CommandList as Uw, TemplateFieldDefinition as Ux, VisibleWorkspacesContextValue as Uy, DocumentCommentsEnabledContext as V, DocumentAvailability as VC, CommitFunction as VS, renderStudio as V_, validation$1 as Va, UseTranslationOptions as Vb, useParseErrors as Vc, getDocumentIdForCanvasLink as Vd, MentionUserContextValue as Vf, CommonProps as Vg, isCreateLiveDocumentEvent as Vh, GlobalPresence as Vi, DetailPreviewProps as Vl, getAnnotationAtPath as Vm, EmailInput as Vn, Preview as Vo, normalizePathSegment as Vp, FormFieldHeaderTextProps as Vr, RenderPreviewCallbackProps as Vs, DocumentFieldActionNode as Vt, useDocumentLimitsUpsellContext as Vu, operatorDefinitions as Vv, getDocumentVariantType as Vw, Template as Vx, evaluateWorkspaceHidden as Vy, DocumentLanguageFilterComponent as W, DraftsModelDocumentAvailability as WC, DocumentRebaseEvent as WS, GenerateStudioManifestOptions as W_, OperationSuccess as Wa, useCurrentLocale as Wb, FormCallbacksValue as Wc, SANITY_VERSION as Wd, DEFAULT_STUDIO_CLIENT_OPTIONS as Wf, CollapseMenuProps as Wg, isEditDocumentVersionEvent as Wh, Status as Wi, CompactPreview as Wl, visitDiff as Wm, DateTimeInput as Wn, isArrayOfPrimitivesInputProps as Wo, stringToPath as Wp, PresenceScope as Wr, ObjectItem as Ws, DocumentFieldActionTone as Wt, ParseError as Wu, OperatorButtonValueComponentProps as Wv, CommandListElementType as Ww, TemplateItem as Wx, VisibleWorkspacesProvider as Wy, GroupableActionDescription as X, ObservePathsFn as XC, UseDateTimeFormatOptions as XS, useCopyPaste as X_, OperationImpl as Xa, defineLocaleResourceBundle as Xb, RebasePatchMsg as Xc, ErrorState as Xd, getSchemaTypeTitle as Xf, CommentsOnboardingContextValue as Xg, UserColorManagerProvider as Xh, KeyValueStore as Xi, PreviewLayoutKey as Xl, ChangeNode as Xm, UniversalArrayInput as Xn, ArrayInputFunctionsProps as Xo, isGroupChange as Xp, FieldPresenceInnerProps as Xr, BlockProps as Xs, MutationPatch as Xt, getExpandOperations as Xu, SearchOperatorParams as Xv, CommandListProps as Xw, useStudioUrl as Xx, RouterHistory as Xy, FormBuilderComponentResolverContext as Y, ObserveDocumentTypeFromIdFn as YC, useDialogStack as YS, CopyPasteProvider as Y_, OperationArgs as Ya, defineLocale as Yb, PatchMsgSubscriber as Yc, userHasRole as Yd, useSingleDocRelease as Yf, useCommentsSelectedPath as Yg, isUpdateLiveDocumentEvent as Yh, createKeyValueStore as Yi, PreviewComponent as Yl, BooleanDiff$1 as Ym, BooleanInput as Yn, isStringInputProps as Yo, isFieldChange as Yp, FieldPresenceInner as Yr, BlockListItemProps as Ys, encodePath as Yt, SetActiveGroupOperation as Yu, SearchOperatorInput as Yv, CommandListItemContext as Yw, useSyncState as Yx, ActiveWorkspaceMatcherProps as Yy, MediaLibraryConfig as Z, PreparedSnapshot as ZC, useDateTimeFormat as ZS, BaseOptions as Z_, OperationsAPI as Za, defineLocalesResources as Zb, createPatchChannel as Zc, LoadableState as Zd, createSchema as Zf, useCommentsEnabled as Zg, UserColorManagerProviderProps as Zh, KeyValueStoreValue as Zi, PreviewMediaDimensions as Zl, ChangeTitlePath as Zm, ArrayOfPrimitivesInput as Zn, FormBuilderCustomMarkersComponent as Zo, isRemovedItemDiff as Zp, FieldPresenceProps as Zr, BlockStyleProps as Zs, fromMutationPatches as Zt, FormState as Zu, SearchValueFormatterContext as Zv, CommandListRenderItemCallback as Zw, useSchema as Zx, CommentsSelectedPath as Zy, createDefaultIcon as _, ReporterHook as _C, useFilteredReleases as _S, AuthStoreOptions as _T, WorkspaceProviderProps as __, GrantsStore as _a, CommentReactionShortNames as _b, UploaderResolver as _c, ComputeDiff as _d, PartialExcept as _f, FeedbackPayload as _g, StringSegmentUnchanged$1 as _h, useDocumentPresence as _i, ToastParams$1 as _l, DiffTooltipWithAnnotationsProps as _m, ArrayOfObjectsInputMember as _n, Transaction as _o, DuplicateActionProps as _p, GetFormValueProvider as _r, ArrayOfPrimitivesInputProps as _s, Workspace as _t, DocumentStatus as _u, ToolLink as _v, PublishedId as _w, StudioLocaleResourceKeys as _x, ColorSchemeProviderProps as _y, resolveSchemaTypes as a, ChangeIndicatorsTracker as aC, UseNumberFormatOptions as aS, ConnectionStatus as aT, CommentInputContextValue as a_, grantsPermissionOn as aa, CommentContext as ab, useEnhancedObjectDialog as ac, ArrayOfObjectsMember as ad, supportsTouch as af, UserColorManager as ag, FieldChangeNode as ah, RegionWithIntersectionDetails as ai, setIfMissing as al, MetaInfo as am, ObjectInputMemberProps as an, HistoryStore as ao, HookCollectionActionHook as ap, ArrayOfObjectsInput as ar, ArrayFieldProps as as, PreparedConfig as at, IntentButton as au, FormDiffMatchPatch as av, ReleaseAvatar as aw, LocaleNestedResource as ax, SearchOptions as ay, ConfigPropertyError as b, ConnectorContextValue as bC, useDocumentOperationEvent as bS, createAuthStore as bT, UpsellDescriptionSerializer as b_, useInitialValue as ba, CommentTextSelection as bb, StudioCrossDatasetReferenceInput as bc, NodeChronologyProps as bd, isRecord as bf, StudioFeedbackDialog as bg, getValueError as bh, useDocumentPreviewStore as bi, TextWithToneProps as bl, DiffInspectWrapper as bm, UrlInputProps as bn, MutationResult as bo, isSanityDefinedAction as bp, FormValueProvider as br, ComplexElementProps as bs, WorkspaceOptions as bt, isDraftPerspective as bu, StudioNavbar as bv, collate as bw, UserListWithPermissionsOptions as bx, useColorSchemeOptions as by, createWorkspaceFromConfig as c, ChangeIndicatorTrackerContextValue as cC, useManageFavorite as cS, ErrorStatus as cT, CommentInputProps as c_, useDocumentValuePermissions as ca, CommentFieldCreatePayload as cb, FileInputProps as cc, DecorationMember as cd, joinPath as cf, FeedbackContextValue as cg, GroupChangeNode as ch, DocumentPreviewPresence as ci, useZIndex as cl, FromToArrow as cm, MemberField as cn, removeMissingReferences as co, DocumentActionConfirmDialogProps as cp, FormBuilderContextValue as cr, BooleanFieldProps as cs, SanityFormConfig as ct, Hotkeys as cu, FormInsertPatchPosition as cv, PerspectiveContextValue as cw, LocaleResourceKey as cx, compileFieldPath as cy, flattenConfig as d, TrackerContextGetSnapshot as dC, GlobalCopyPasteElementHandler as dS, onRetry as dT, UpsellData as d_, getDocumentPairPermissions as da, CommentMessage as db, FileLike as dc, FieldsetRenderMembersCallback as dd, _isType as df, useFeedback as dg, NumberDiff$1 as dh, useUser as di, UserAvatar as dl, FromToProps as dm, ArrayOfPrimitivesItem as dn, TimelineControllerOptions as do, DocumentActionDialogProps as dp, useFieldActions as dr, NumberFieldProps as ds, SingleWorkspace as dt, useCopyErrorDetails as du, FormPatchJSONValue as dv, ReleasesNavMenuItemPropsGetter as dw, LocaleWeekInfo as dx, SearchPopoverProps as dy, useConnectionState as eC, useRelativeTime as eS, CorsOriginError as eT, CommentsContextValue as e_, getTemplatePermissions as ea, CommentsIntentProvider as eb, ArrayInputCopyEvent as ec, setAtPath as ed, asLoadable as ef, useUserColor as eg, Diff$1 as eh, FormNodePresence as ei, diffMatchPatch as el, DocumentChangeContextInstance as em, useDocumentForm as en, useTimelineSelector as eo, DocumentBadgeComponent as ep, ArrayOfOptionsInput as er, FormBuilderMarkersComponent as es, NewDocumentOptionsContext as et, PreviewCardContextValue as eu, DocumentMeta as ev, PreviewableType as ew, LocaleProviderBase as ex, defineSearchOperator as ey, PluginFactory as f, TrackerContextStore as fC, useGlobalCopyPasteElementHandler as fS, isAuthStore as fT, WorkspaceLoaderBoundary as f_, useDocumentPairPermissions as fa, CommentOperations as fb, ResolvedUploader as fc, ObjectMember as fd, createSWR as ff, SendFeedbackOptions as fg, ObjectDiff$1 as fh, ResourceCache as fi, UserAvatarProps as fl, FieldChange as fm, PrimitiveMemberItemProps as fn, ParsedTimeRef as fo, DocumentActionGroup as fp, FieldActionsProps as fr, ObjectFieldProps as fs, Source as ft, ErrorWithId as fu, FormPatchOrigin as fv, SelectedPerspective as fw, LocalesBundlesOption as fx, SearchHeader as fy, defineConfig as g, Reported as gC, useFormattedDuration as gS, createMockAuthStore as gT, WorkspaceProvider as g_, Grant as ga, CommentReactionOption as gb, UploaderDef as gc, BooleanFormNode as gd, isPausedCardinalityOneRelease as gf, DynamicFeedbackTags as gg, StringSegmentChanged$1 as gh, useGlobalPresence as gi, ImperativeToast as gl, DiffTooltipProps as gm, ArrayOfObjectsInputMembersProps as gn, DocumentRemoteMutationVersionEvent as go, DocumentActionProps as gp, FieldActionMenuProps as gr, ArrayOfPrimitivesElementType as gs, Tool as gt, CapabilityGate as gu, PatchArg as gv, DraftId as gw, ValidationLocaleResourceKeys as gx, ColorSchemeProvider as gy, createConfig as h, IsEqualFunction as hC, UseFormattedDurationOptions as hS, MockAuthStoreOptions as hT, ErrorMessageProps as h_, EvaluationParams as ha, CommentReactionItem as hb, Uploader as hc, BaseFormNode as hd, isCardinalityOneRelease as hf, BaseFeedbackTags as hg, StringDiffSegment as hh, useResourceCache as hi, ZIndexContextValue as hl, DiffTooltip as hm, ArrayOfObjectsInputMembers as hn, CombinedDocument as ho, DocumentActionPopoverDialogProps as hp, FieldActionMenu as hr, ArrayOfObjectsInputProps as hs, TemplateResolver as ht, DocumentStatusIndicator as hu, FormUnsetPatch as hv, DRAFTS_FOLDER as hw, TFunction$1 as hx, ColorSchemeLocalStorageProvider as hy, SchemaError as i, CommentDeleteDialog as iC, useProjectId as iS, ConnectingStatus as iT, CommentInlineHighlightSpan as i_, createGrantsStore as ia, CommentBaseCreatePayload as ib, EnhancedObjectDialogContextValue as ic, ArrayOfObjectsItemMember as id, uncaughtErrorHandler as if, UserColorHue as ig, DiffProps as ih, Rect as ii, set as il, NoChanges as im, ObjectInputMember as in, DocumentRevision as io, GetHookCollectionStateProps as ip, useVirtualizerScrollInstance as ir, RenderCustomMarkers as is, PluginOptions as it, LoadingBlock as iu, FormDecPatch as iv, ReleaseTitle as iw, LocaleDefinition as ix, SearchFactoryOptions as iy, Config as j, VersionInfoDocumentStub as jC, ListenerEvent as jS, useAgentVersionDisplay as jT, isValidAnnouncementAudience as j_, ListenQueryOptions as ja, useWorkspaceSchemaId as jb, defaultRenderItem as jc, IncompatibleTypeError as jd, createHookFromObservableFactory as jf, DocumentGroupInventoryPerspectiveList as jg, EditDocumentVersionEvent as jh, createProjectStore as ji, TemplatePreview as jl, ChangeTitleSegment as jm, ReferenceAutocomplete as jn, getPreviewValueWithFallback as jo, getSelectedVariant as jp, FormFieldValidationError as jr, PrimitiveInputProps as js, DocumentInspectorUseMenuItemProps as jt, ReleasesUpsellContextValue as ju, SearchButton as jv, isDraftId as jw, DEFAULT_MAX_RECURSION_DEPTH as jx, MatchWorkspaceResult as jy, BetaFeatures as k, useDocumentVersionTypeSortedList as kC, InitialSnapshotEvent as kS, LoginMethod as kT, StudioLayout as k_, QueryParams$1 as ka, CommentsAuthoringPathContextValue as kb, defaultRenderInlineBlock as kc, DuplicateKeysError as kd, LoadingTuple as kf, DocumentGroupInventory as kg, DocumentGroupEvent as kh, useProjectDatasets as ki, LinearProgress as kl, DiffCardProps as km, SlugInputProps as kn, createObservableBufferedDocument as ko, PerspectiveNotWriteableReason as kp, FormInputRelativePathArg as kr, PortableTextInputProps as ks, DocumentInspectorMenuItem as kt, PUBLISHED as ku, StudioLogo as kv, idMatchesPerspective as kw, useTimeAgo as kx, useActiveWorkspace as ky, resolveConfig as l, TrackedArea as lC, UseListFormatOptions as lS, RetryingStatus as lT, CommentsList as l_, DocumentPairPermissionsOptions as la, CommentIntentGetter as lb, StudioFileInput as lc, FieldMember as ld, _isCustomDocumentTypeDefinition as lf, useStudioFeedbackTags as lg, ItemDiff$1 as lh, DocumentPreviewPresenceProps as li, WithReferringDocuments as ll, FromToArrowDirection as lm, MemberFieldProps as ln, SelectionState as lo, DocumentActionCustomDialogComponentProps as lp, useHoveredField as lr, FieldCommentsProps as ls, ScheduledPublishingPluginOptions as lt, HotkeysProps$1 as lu, FormPatch as lv, PerspectiveStack as lw, LocaleResourceRecord as lx, SearchResultItemPreview as ly, definePlugin as m, useTrackerStoreReporter as mC, FormattedDuration as mS, getProviderTitle as mT, ErrorMessage as m_, DocumentValuePermission as ma, CommentPostPayload as mb, UploadProgressEvent as mc, ArrayOfPrimitivesFormNode as md, isCardinalityOnePerspective as mf, useInStudioFeedback as mg, StringDiff$1 as mh, ResourceCacheProviderProps as mi, ZIndexContextValueKey as ml, Event$1 as mm, MemberItemProps as mn, TimelineOptions as mo, DocumentActionModalDialogProps as mp, FieldActionsProvider as mr, StringFieldProps as ms, SourceOptions as mt, ErrorActionsProps as mu, FormSetPatch as mv, CollatedHit as mw, StaticLocaleResourceBundle as mx, ColorSchemeCustomProvider as my, getConfigContextFromSource as n, useClient as nC, useReferringDocuments as nS, CONNECTING as nT, isTextSelectionComment as n_, useTemplatePermissionsFromHookFactory as na, CommentsEnabledProvider as nb, ArrayInputMoveItemEvent as nc, FieldsetMembers as nd, sliceString as nf, HexColor as ng, DiffComponentOptions as nh, Position as ni, insert as nl, RevertChangesConfirmDialog as nm, ObjectMembers as nn, TimelineStore as no, DocumentBadgeProps as np, VirtualizerScrollInstanceProvider as nr, RenderBlockActionsCallback as ns, PartialContext as nt, usePreviewCard as nu, SanityClipboardItem as nv, VersionInlineBadge as nw, Locale as nx, isPerspectiveRaw as ny, CreateWorkspaceFromConfigOptions as o, useChangeIndicatorsReportedValues as oC, useNumberFormat as oS, ConnectionStatusStore as oT, CommentInput as o_, DocumentValuePermissionsOptions as oa, CommentCreatePayload as ob, ImageInputProps as oc, ArrayOfPrimitivesItemMember as od, escapeField as of, UserId as og, FieldOperationsAPI as oh, ReportedRegionWithRect as oi, unset as ol, MetaInfoProps as om, MemberFieldSet as on, HistoryStoreOptions as oo, useScheduleAction as op, ArrayOfObjectsFunctions as or, ArrayOfPrimitivesFieldProps as os, ReleaseActionsResolver as ot, InsufficientPermissionsMessage as ou, FormIncPatch as ov, ReleaseAvatarIcon as ow, LocalePluginOptions as ox, SearchSort as oy, createPlugin as p, useTrackerStore as pC, FormDocumentValue as pS, isCookielessCompatibleLoginMethod as pT, useWorkspaceLoader as p_, useDocumentPairPermissionsFromHookFactory as pa, CommentPath as pb, UploadOptions as pc, ArrayOfObjectsFormNode as pd, CardinalityOneRelease as pf, UseInStudioFeedbackReturn as pg, ReferenceDiff as ph, ResourceCacheProvider as pi, LegacyLayerProvider as pl, FallbackDiff as pm, ArrayOfObjectsItem as pn, Timeline as po, DocumentActionKeys as pp, FieldActionsResolver as pr, PrimitiveFieldProps as ps, SourceClientOptions as pt, ErrorActions as pu, FormSetIfMissingPatch as pv, TargetPerspective as pw, LocalesOption as px, Filters as py, DocumentLayoutProps as q, InvalidationChannelEvent as qC, RemoteSnapshotEvent as qS, StudioManifest as q_, MapDocument as qa, I18nNode as qb, PatchChannel as qc, useUnique as qd, usePausedScheduledDraft as qf, buildCommentRangeDecorations as qg, isUnpublishDocumentEvent as qh, UserStoreOptions as qi, GeneralPreviewLayoutKey as ql, ArrayDiff$1 as qm, DateInputProps as qn, isObjectInputProps as qo, emptyValuesByType as qp, PresenceOverlayProps as qr, BlockAnnotationProps as qs, TransformPatches as qt, ExpandOperation as qu, SearchOperatorBuilder as qv, CommandListGetItemSelectedCallback as qw, TypeTarget as qx, WorkspaceLike as qy, useConfigContextFromSource as r, CommentDisabledIcon as rC, useReconnectingToast as rS, ConnectedStatus as rT, COMMENTS_INSPECTOR_NAME as r_, GrantsStoreOptions as ra, CommentsProvider as rb, UploadEvent as rc, FieldsetState as rd, truncateString as rf, UserColor as rg, DiffComponentResolver as rh, PresentUser as ri, prefixPath as rl, RevertChangesButton as rm, ObjectMembersProps as rn, useTimelineStore as ro, GetHookCollectionState as rp, VirtualizerScrollInstance as rr, RenderBlockActionsProps as rs, Plugin as rt, PopoverDialog as ru, PatchEvent as rv, getVersionInlineBadge as rw, LocaleConfigContext as rx, getSearchableTypes as ry, createSourceFromConfig as s, useChangeIndicatorsReporter as sC, UseManageFavoriteProps as sS, ConnectionStatusStoreOptions as sT, CommentInputHandle as s_, getDocumentValuePermissions as sa, CommentDocument as sb, StudioImageInput as sc, ArrayOfPrimitivesMember as sd, fieldNeedsEscape as sf, FeedbackContext as sg, FromToIndex as sh, Size as si, ZIndexProvider as sl, GroupChange as sm, MemberFieldError as sn, createHistoryStore as so, DocumentActionComponent as sp, useDidUpdate as sr, BaseFieldProps as ss, ResolveProductionUrlContext as st, InsufficientPermissionsMessageProps as su, FormInsertPatch as sv, VersionChip as sw, LocaleResourceBundle as sx, SearchTerms as sy, ActiveWorkspaceMatcherContextValue as t, useConditionalToast as tC, DocumentField as tS, CorsOriginErrorOptions as tT, hasCommentMessageValue as t_, useTemplatePermissions as ta, CommentsIntentProviderProps as tb, ArrayInputInsertEvent as tc, StateTree as td, useLoadable as tf, useUserColorManager as tg, DiffComponent as th, Location as ti, inc as tl, ValueError as tm, ObjectInputMembers as tn, TimelineState as to, DocumentBadgeDescription as tp, ArrayOfObjectOptionsInput as tr, PortableTextMarker as ts, NewDocumentOptionsResolver as tt, ReferenceInputPreviewCard as tu, PasteOptions as tv, Selection as tw, ImplicitLocaleResourceBundle as tx, createSearch as ty, prepareConfig as u, TrackedChange as uC, useListFormat as uS, createConnectionStatusStore as uT, CommentsUpsellContextValue as u_, DocumentPermission as ua, CommentListBreadcrumbs as ub, AssetSourcesResolver as uc, FieldSetMember as ud, _isSanityDocumentTypeDefinition as uf, UseFeedbackReturn as ug, NullDiff$1 as uh, useCurrentUser as ui, AvatarSkeleton as ul, FromTo as um, MemberItemError as un, TimelineController as uo, DocumentActionDescription as up, HoveredFieldProvider as ur, FieldProps as us, SchemaPluginOptions as ut, serializeError as uu, FormPatchBase as uv, ReleaseId as uw, LocaleSource as ux, SearchPopover as uy, ConfigResolutionError as v, ChangeConnectorRoot as vC, useFeatureEnabled as vS, CreateAuthStoreOptions as vT, useWorkspace as v_, PermissionCheckResult as va, CommentStatus as vb, StudioReferenceInput as vc, DocumentFormNode as vd, isTruthy as vf, Sentiment as vg, TypeChangeDiff$1 as vh, useComlinkStore as vi, TooltipOfDisabled as vl, DiffString as vm, ArrayOfObjectsMemberProps as vn, DocumentVersion as vo, DuplicateDocumentActionComponent as vp, useGetFormValue as vr, BaseInputProps as vs, WorkspaceHiddenContext as vt, formatRelativeLocalePublishDate as vu, ToolLinkProps as vv, SystemBundle as vw, Rule as vx, useColorScheme as vy, AppsOptions as w, sortReleases as wC, EditStateFor as wS, HandleCallbackResult as wT, UpsellDialogViewed as w_, useDocumentValues as wa, CommentsListBreadcrumbItem as wb, FormBuilder as wc, ObjectFormNode as wd, getReferencePaths as wf, useTelemetryConsent as wg, BaseEvent as wh, useKeyValueStore as wi, RovingFocusNavigationType as wl, FieldPreviewComponent as wm, TelephoneInputProps as wn, checkoutPair as wo, usePerspective as wp, FormContainer as wr, NumberInputProps as ws, ReleaseActionProps as wt, isReleasePerspective as wu, NavbarAction as wv, getDraftId as ww, UnitFormatter as wx, StudioTheme as wy, ConfigPropertyErrorOptions as x, ChangeIndicator as xC, useDocumentOperation as xS, AuthProbeResult as xT, UpsellDialogDismissed as x_, useInitialValueResolverContext as xa, CommentThreadItem as xb, StudioCrossDatasetReferenceInputProps as xc, NodeDiffProps as xd, isNonNullable as xf, StudioFeedbackDialogProps as xg, useEventsStore as xh, useDocumentStore as xi, StatusButton as xl, DiffInspectWrapperProps as xm, TextInput as xn, Pair as xo, SchedulesContextValue as xp, useFormValue as xr, EditorChange as xs, WorkspaceSummary as xt, isPublishedPerspective as xu, ActiveToolLayoutProps as xv, createDraftFrom as xw, UserWithPermission as xx, useColorSchemeSetValue as xy, ConfigResolutionErrorOptions as y, ChangeConnectorRootProps as yC, useEditState as yS, _createAuthStore as yT, InterpolationProp as y_, useResolveInitialValueForType as ya, CommentTaskCreatePayload as yb, StudioReferenceInputProps as yc, HiddenField as yd, isString as yf, TagValue as yg, FieldValueError as yh, useConnectionStatusStore as yi, TextWithTone as yl, DiffStringSegment as ym, UrlInput as yn, DocumentVersionEvent as yo, SanityDefinedAction as yp, FormValueContextValue as yr, BooleanInputProps as ys, WorkspaceHiddenProperty as yt, getDocumentIsInPerspective as yu, StudioToolMenu as yv, VERSION_FOLDER as yw, UserListWithPermissionsHookValue as yx, useColorSchemeInternalValue as yy, DocumentBadgesContext as z, AvailabilityReason as zC, WelcomeBackEvent as zS, SourceProviderProps as z_, InitialValueState as za, defaultLocale as zb, ParseErrorsProvider as zc, ALL_FIELDS_GROUP as zd, TasksContextValue as zf, CollapseMenuButton as zg, UpdateLiveDocumentEvent as zh, createPresenceStore as zi, MediaPreviewProps as zl, useDiffAnnotationColor as zm, AssetAccessPolicy as zn, SanityDefaultPreviewProps as zo, normalizeIndexTupleSegment as zp, FormFieldSetProps as zr, RenderItemCallback as zs, DocumentFieldActionHook as zt, useSetVariant as zu, defineSearchFilterOperators as zv, Chip as zw, prepareTemplates as zx, validateWorkspaces as zy };
@@ -88,14 +88,18 @@ import "@sanity/mutator";
88
88
  import "@portabletext/react";
89
89
  import "lodash-es/findIndex.js";
90
90
  import { useCommentsUpsell } from "./useCommentsUpsell.js";
91
- import "@sentry/react";
92
- import "@portabletext/toolkit";
91
+ import "@xstate/react";
92
+ import "xstate";
93
93
  import "@sanity/schema";
94
94
  import "@sanity/util/client";
95
95
  import "@sanity/util/concurrency-limiter";
96
96
  import "lodash-es/uniqBy.js";
97
97
  import "json-reduce";
98
98
  import "rxjs-exhaustmap-with-trailing";
99
+ import "date-fns/isBefore";
100
+ import "date-fns/startOfMinute";
101
+ import "@sentry/react";
102
+ import "@portabletext/toolkit";
99
103
  import "polished";
100
104
  import "@sanity/client";
101
105
  import "react-is";
@@ -122,7 +126,6 @@ import "lodash-es/last.js";
122
126
  import "react-dom/client";
123
127
  import "date-fns/addWeeks";
124
128
  import "date-fns/isAfter";
125
- import "date-fns/isBefore";
126
129
  import "semver";
127
130
  import "lodash-es/isObject.js";
128
131
  function CommentsUpsellPanel(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"CommentsInspector.js","sources":["../../src/core/comments/components/upsell/CommentsUpsellPanel.tsx","../../src/core/comments/hooks/useCommentsOnboarding.ts","../../src/core/comments/plugin/inspector/CommentsInspectorError.tsx","../../src/core/comments/plugin/inspector/CommentsInspectorHeader.tsx","../../src/core/comments/plugin/inspector/CommentsInspector.tsx"],"sourcesContent":["import {Box, Container} from '@sanity/ui'\n\nimport {type UpsellData} from '../../../studio/upsell/types'\nimport {UpsellPanel} from '../../../studio/upsell/UpsellPanel'\n\ninterface CommentsUpsellPanelProps {\n data: UpsellData\n onPrimaryClick: () => void\n onSecondaryClick: () => void\n}\n\nexport function CommentsUpsellPanel(props: CommentsUpsellPanelProps) {\n const {data, onPrimaryClick, onSecondaryClick} = props\n return (\n <Container width={1}>\n <Box marginBottom={6}>\n <UpsellPanel\n data={data}\n onPrimaryClick={onPrimaryClick}\n onSecondaryClick={onSecondaryClick}\n />\n </Box>\n </Container>\n )\n}\n","import {useContext} from 'react'\nimport {CommentsOnboardingContext} from 'sanity/_singletons'\n\nimport {type CommentsOnboardingContextValue} from '../context/onboarding/types'\n\nexport function useCommentsOnboarding(): CommentsOnboardingContextValue {\n const ctx = useContext(CommentsOnboardingContext)\n\n if (!ctx) {\n throw new Error('useCommentsOnboarding: missing context value')\n }\n\n return ctx\n}\n","import {Box, Card, Stack, Text} from '@sanity/ui'\n\nimport {useTranslation} from '../../../i18n'\nimport {commentsLocaleNamespace} from '../../i18n'\n\nexport function CommentsInspectorError({error}: {error: Error}) {\n const {t} = useTranslation(commentsLocaleNamespace)\n\n return (\n <Box padding={2}>\n <Card paddingX={2} paddingY={3} tone=\"critical\" border radius={3}>\n <Stack space={3}>\n <Text size={1} weight=\"medium\">\n {t('inspector-error.title')}\n </Text>\n <Text size={1} muted>\n {error.message}\n </Text>\n </Stack>\n </Card>\n </Box>\n )\n}\n","import {CheckmarkIcon, ChevronDownIcon, CloseIcon} from '@sanity/icons'\nimport {Card, Flex, Menu, Text} from '@sanity/ui'\nimport {forwardRef, useCallback} from 'react'\nimport {styled} from 'styled-components'\n\nimport {Button, MenuButton, MenuItem} from '../../../../ui-components'\nimport {useTranslation} from '../../../i18n'\nimport {commentsLocaleNamespace} from '../../i18n'\nimport {type CommentStatus, type CommentsUIMode} from '../../types'\n\nconst Root = styled(Card)({\n position: 'relative',\n zIndex: '1',\n lineHeight: '0',\n})\n\ninterface CommentsInspectorHeaderProps {\n onClose: () => void\n onViewChange: (view: CommentStatus) => void\n view: CommentStatus\n mode: CommentsUIMode\n}\n\nexport const CommentsInspectorHeader = forwardRef(function CommentsInspectorHeader(\n props: CommentsInspectorHeaderProps,\n ref: React.ForwardedRef<HTMLDivElement>,\n) {\n const {t} = useTranslation(commentsLocaleNamespace)\n const {onClose, onViewChange, view, mode} = props\n\n const handleSetOpenView = useCallback(() => onViewChange('open'), [onViewChange])\n const handleSetResolvedView = useCallback(() => onViewChange('resolved'), [onViewChange])\n\n return (\n <Root ref={ref}>\n <Flex padding={2}>\n <Flex align=\"center\" flex={1} gap={2} paddingY={2} padding={3}>\n <Text as=\"h1\" size={1} weight=\"medium\">\n {t('feature-name')}\n </Text>\n </Flex>\n\n <Flex flex=\"none\" padding={1} gap={2}>\n <MenuButton\n id=\"comment-status-menu-button\"\n button={\n <Button\n text={\n view === 'open'\n ? t('status-filter.status-open')\n : t('status-filter.status-resolved')\n }\n mode=\"bleed\"\n iconRight={ChevronDownIcon}\n />\n }\n menu={\n <Menu style={{width: '180px'}}>\n <MenuItem\n iconRight={view === 'open' ? CheckmarkIcon : undefined}\n onClick={handleSetOpenView}\n text={t('status-filter.status-open-full')}\n />\n <MenuItem\n iconRight={view === 'resolved' ? CheckmarkIcon : undefined}\n onClick={handleSetResolvedView}\n text={t('status-filter.status-resolved-full')}\n tooltipProps={\n mode === 'upsell'\n ? {content: t('status-filter.status-resolved-full-upsell')}\n : undefined\n }\n disabled={mode === 'upsell'}\n />\n </Menu>\n }\n popover={{placement: 'bottom-end'}}\n />\n\n <Button\n aria-label={t('close-pane-button-text-aria-label')}\n icon={CloseIcon}\n mode=\"bleed\"\n onClick={onClose}\n tooltipProps={{content: t('close-pane-button-text')}}\n />\n </Flex>\n </Flex>\n </Root>\n )\n})\n","import {Flex, Layer, useClickOutsideEvent, useLayer, useToast} from '@sanity/ui'\nimport * as PathUtils from '@sanity/util/paths'\nimport {Fragment, useCallback, useEffect, useMemo, useRef, useState} from 'react'\nimport {styled} from 'styled-components'\n\nimport {type DocumentInspectorProps} from '../../../config'\nimport {useTranslation} from '../../../i18n'\nimport {useCurrentUser} from '../../../store'\nimport {useAddonDataset} from '../../../studio/addonDataset'\nimport {\n CommentDeleteDialog,\n CommentsList,\n CommentsOnboardingPopover,\n CommentsUpsellPanel,\n} from '../../components'\nimport {type CommentsSelectedPath} from '../../context'\nimport {isTextSelectionComment} from '../../helpers'\nimport {\n useComments,\n useCommentsEnabled,\n useCommentsOnboarding,\n useCommentsScroll,\n useCommentsSelectedPath,\n useCommentsTelemetry,\n useCommentsUpsell,\n} from '../../hooks'\nimport {commentsLocaleNamespace} from '../../i18n'\nimport {\n type CommentBaseCreatePayload,\n type CommentReactionOption,\n type CommentStatus,\n type CommentsUIMode,\n type CommentUpdatePayload,\n} from '../../types'\nimport {CommentsInspectorError} from './CommentsInspectorError'\nimport {CommentsInspectorHeader} from './CommentsInspectorHeader'\n\ninterface CommentToDelete {\n commentId: string\n isParent: boolean\n}\n\nconst RootLayer = styled(Layer)`\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: hidden;\n`\n\nexport function CommentsInspector(props: DocumentInspectorProps) {\n const {enabled, mode} = useCommentsEnabled()\n\n if (!enabled) return null\n\n // We wrap the comments inspector in a Layer in order to know when the comments inspector\n // is the top layer (that is, if there is e.g. a popover open). This is used to determine\n // if we should deselect the selected path when clicking outside the comments inspector.\n return (\n <RootLayer>\n <CommentsInspectorInner {...props} mode={mode} />\n </RootLayer>\n )\n}\n\nfunction CommentsInspectorInner(\n props: DocumentInspectorProps & {\n mode: CommentsUIMode\n },\n) {\n const {t} = useTranslation(commentsLocaleNamespace)\n const {onClose, mode} = props\n const [showDeleteDialog, setShowDeleteDialog] = useState<boolean>(false)\n const [commentToDelete, setCommentToDelete] = useState<CommentToDelete | null>(null)\n const [deleteLoading, setDeleteLoading] = useState<boolean>(false)\n const [deleteError, setDeleteError] = useState<Error | null>(null)\n\n const rootRef = useRef<HTMLDivElement | null>(null)\n const [rootElement, setRootElement] = useState<HTMLDivElement | null>(null)\n\n const currentUser = useCurrentUser()\n const {\n comments,\n getComment,\n isCreatingDataset,\n mentionOptions,\n setStatus,\n status,\n operation,\n selectedCommentId,\n getCommentLink,\n onClearSelectedComment,\n onPathOpen,\n } = useComments()\n const commentIdParamRef = useRef<string | undefined>(selectedCommentId)\n const {error: addonDatasetError} = useAddonDataset()\n const didScrollToCommentFromParam = useRef<boolean>(false)\n\n const pushToast = useToast().push\n const {isTopLayer} = useLayer()\n\n const {scrollToComment, scrollToField, scrollToInlineComment} = useCommentsScroll({\n boundaryElement: rootElement,\n })\n const {selectedPath, setSelectedPath} = useCommentsSelectedPath()\n const {isDismissed, setDismissed} = useCommentsOnboarding()\n const telemetry = useCommentsTelemetry()\n\n const {upsellData, telemetryLogs: upsellTelemetryLogs} = useCommentsUpsell()\n\n const currentComments = useMemo(() => comments.data[status], [comments, status])\n\n const {loading} = comments\n\n const handleChangeView = useCallback(\n (nextView: CommentStatus) => {\n setStatus(nextView)\n setSelectedPath(null)\n\n telemetry.commentListViewChanged(nextView)\n },\n [setSelectedPath, setStatus, telemetry],\n )\n\n const handleCloseInspector = useCallback(() => {\n onClose()\n setSelectedPath(null)\n }, [onClose, setSelectedPath])\n\n const handleCopyLink = useMemo(() => {\n if (!getCommentLink) return undefined\n\n const copyLink = (id: string) => {\n navigator.clipboard.writeText(getCommentLink(id)).catch(() => {\n pushToast({\n closable: true,\n status: 'error',\n title: t('copy-link-error-message'),\n })\n })\n\n telemetry.commentLinkCopied()\n }\n\n return copyLink\n }, [getCommentLink, pushToast, t, telemetry])\n\n const handleCreateRetry = useCallback(\n (id: string) => {\n const comment = getComment(id)\n if (!comment) return\n\n void operation.create({\n type: 'field',\n fieldPath: comment.target.path?.field || '',\n id: comment._id,\n message: comment.message,\n parentCommentId: comment.parentCommentId,\n reactions: comment.reactions || [],\n status: comment.status,\n threadId: comment.threadId,\n })\n },\n [getComment, operation],\n )\n\n const closeDeleteDialog = useCallback(() => {\n if (deleteLoading) return\n setShowDeleteDialog(false)\n setCommentToDelete(null)\n }, [deleteLoading])\n\n const handlePathSelect = useCallback(\n (nextPath: CommentsSelectedPath) => {\n setSelectedPath(nextPath)\n\n if (nextPath?.fieldPath) {\n const path = PathUtils.fromString(nextPath.fieldPath)\n onPathOpen?.(path)\n\n scrollToField(nextPath.fieldPath)\n\n const isInlineComment = comments.data.open\n .filter((c) => c.threadId === nextPath?.threadId)\n .some((x) => isTextSelectionComment(x.parentComment))\n\n if (isInlineComment && nextPath.threadId) {\n scrollToInlineComment(nextPath.threadId)\n }\n }\n },\n [comments.data.open, onPathOpen, scrollToField, scrollToInlineComment, setSelectedPath],\n )\n\n const handleNewThreadCreate = useCallback(\n (nextComment: CommentBaseCreatePayload) => {\n const fieldPath = nextComment?.payload?.fieldPath || ''\n\n void operation.create({\n type: 'field',\n fieldPath,\n message: nextComment.message,\n parentCommentId: nextComment.parentCommentId,\n reactions: nextComment.reactions,\n status: nextComment.status,\n threadId: nextComment.threadId,\n })\n\n setSelectedPath({\n fieldPath,\n origin: 'inspector',\n threadId: nextComment.threadId,\n })\n },\n [operation, setSelectedPath],\n )\n\n const handleReply = useCallback(\n (nextComment: CommentBaseCreatePayload) => {\n void operation.create({\n ...nextComment,\n type: 'field',\n fieldPath: nextComment?.payload?.fieldPath || '',\n })\n },\n [operation],\n )\n\n const handleEdit = useCallback(\n (id: string, nextComment: CommentUpdatePayload) => {\n void operation.update(id, nextComment)\n },\n [operation],\n )\n\n const onDeleteStart = useCallback(\n (id: string) => {\n const parent = currentComments.find((c) => c.parentComment?._id === id)\n const isParent = Boolean(parent && parent?.replies?.length > 0)\n\n setShowDeleteDialog(true)\n setCommentToDelete({\n commentId: id,\n isParent,\n })\n },\n\n [currentComments],\n )\n\n const handleDeleteConfirm = useCallback(\n async (id: string) => {\n try {\n setDeleteLoading(true)\n await operation.remove(id)\n closeDeleteDialog()\n } catch (err) {\n setDeleteError(err)\n }\n setDeleteLoading(false)\n },\n [closeDeleteDialog, operation],\n )\n\n const handleStatusChange = useCallback(\n (id: string, nextStatus: CommentStatus) => {\n void operation.update(id, {\n status: nextStatus,\n })\n\n // If the comment is being opened, we want to change to the \"open\" view\n // and scroll to the comment\n if (nextStatus === 'open') {\n setStatus('open')\n\n const comment = getComment(id)\n\n if (!comment) return\n\n setSelectedPath({\n fieldPath: comment.target.path?.field || null,\n origin: 'inspector',\n threadId: comment.threadId || null,\n })\n\n scrollToComment(id)\n }\n },\n [getComment, operation, scrollToComment, setSelectedPath, setStatus],\n )\n\n const handleReactionSelect = useCallback(\n (id: string, reaction: CommentReactionOption) => {\n void operation.react(id, reaction)\n },\n [operation],\n )\n\n const handleDeselectPath = useCallback(() => {\n // Clear the selected path when:\n // - Clicking outside the inspector when it's the top layer\n // - The target is not a slate editor string. This is needed because we do not want to\n // frequently deselect the selected path when clicking inside the editor.\n if (selectedPath && isTopLayer) {\n setSelectedPath(null)\n }\n }, [isTopLayer, selectedPath, setSelectedPath])\n\n const setRootRef = useCallback((element: HTMLDivElement | null) => {\n rootRef.current = element\n setRootElement(element)\n }, [])\n\n useClickOutsideEvent(\n (event) => {\n // Clear the selected path when clicking outside the comments inspector.\n // We do this only when the comments inspector is the top layer.\n const isPTETarget =\n event.target instanceof HTMLElement && event.target?.hasAttribute('data-pt-text')\n\n if (!isPTETarget) {\n handleDeselectPath()\n }\n },\n () => [rootRef.current],\n )\n\n const [loggedTelemetry, setLoggedTelemetry] = useState(false)\n useEffect(() => {\n if (loggedTelemetry || mode !== 'upsell') return undefined\n // oxlint-disable-next-line react/react-compiler\n setLoggedTelemetry(true)\n if (selectedPath?.origin === 'form') {\n upsellTelemetryLogs.panelViewed('field_action')\n } else if (commentIdParamRef.current) {\n upsellTelemetryLogs.panelViewed('link')\n } else {\n upsellTelemetryLogs.panelViewed('document_action')\n }\n return () => {\n upsellTelemetryLogs.panelDismissed()\n }\n }, [loggedTelemetry, mode, selectedPath?.origin, upsellTelemetryLogs])\n\n // Handle scroll to comment from URL param\n useEffect(() => {\n // Make sure that the comment exists before we try to scroll to it.\n // We can't solely rely on the comment id from the url since the comment might not be loaded yet.\n const commentToScrollTo = getComment(commentIdParamRef.current || '')\n\n if (!loading && commentToScrollTo && !didScrollToCommentFromParam.current) {\n // Make sure we have the correct status set before we scroll to the comment\n setStatus(commentToScrollTo.status || 'open')\n\n handlePathSelect({\n fieldPath: commentToScrollTo.target.path?.field || null,\n origin: 'url',\n threadId: commentToScrollTo.threadId || null,\n })\n\n // Defer the comment scroll to prevent React batching from overwriting the field scroll\n requestAnimationFrame(() => {\n scrollToComment(commentToScrollTo._id)\n })\n\n didScrollToCommentFromParam.current = true\n commentIdParamRef.current = undefined\n\n onClearSelectedComment?.()\n\n telemetry.commentViewedFromLink()\n }\n }, [\n getComment,\n handlePathSelect,\n loading,\n onClearSelectedComment,\n scrollToComment,\n setStatus,\n telemetry,\n ])\n\n const beforeListNode = useMemo(() => {\n if (mode === 'upsell' && upsellData) {\n return (\n <CommentsUpsellPanel\n data={upsellData}\n onPrimaryClick={upsellTelemetryLogs.panelPrimaryClicked}\n onSecondaryClick={upsellTelemetryLogs.panelSecondaryClicked}\n />\n )\n }\n\n return null\n }, [\n mode,\n upsellTelemetryLogs.panelPrimaryClicked,\n upsellTelemetryLogs.panelSecondaryClicked,\n upsellData,\n ])\n\n return (\n <Fragment>\n {commentToDelete && showDeleteDialog && (\n <CommentDeleteDialog\n {...commentToDelete}\n error={deleteError}\n loading={deleteLoading}\n onClose={closeDeleteDialog}\n onConfirm={handleDeleteConfirm}\n />\n )}\n\n <Flex\n direction=\"column\"\n flex={1}\n height=\"fill\"\n onClick={handleDeselectPath}\n overflow=\"hidden\"\n ref={setRootRef}\n >\n <CommentsOnboardingPopover\n onDismiss={setDismissed}\n open={!isDismissed}\n placement=\"left-start\"\n >\n <CommentsInspectorHeader\n onClose={handleCloseInspector}\n onViewChange={handleChangeView}\n view={status}\n mode={mode}\n />\n </CommentsOnboardingPopover>\n {addonDatasetError && <CommentsInspectorError error={addonDatasetError} />}\n {currentUser && (\n <CommentsList\n beforeListNode={beforeListNode}\n comments={currentComments}\n currentUser={currentUser}\n error={comments.error}\n loading={loading}\n mentionOptions={mentionOptions}\n mode={mode}\n onCopyLink={handleCopyLink}\n onCreateRetry={handleCreateRetry}\n onDelete={onDeleteStart}\n onEdit={handleEdit}\n onNewThreadCreate={handleNewThreadCreate}\n onPathSelect={handlePathSelect}\n onReactionSelect={handleReactionSelect}\n onReply={handleReply}\n onStatusChange={handleStatusChange}\n readOnly={isCreatingDataset}\n selectedPath={selectedPath}\n status={status}\n />\n )}\n </Flex>\n </Fragment>\n )\n}\n"],"names":["CommentsUpsellPanel","props","$","_c","data","onPrimaryClick","onSecondaryClick","t0","useCommentsOnboarding","ctx","useContext","CommentsOnboardingContext","Error","CommentsInspectorError","error","t","useTranslation","commentsLocaleNamespace","t1","t2","t3","message","t4","Root","styled","Card","withConfig","displayName","componentId","position","zIndex","lineHeight","CommentsInspectorHeader","forwardRef","ref","onClose","onViewChange","view","mode","handleSetOpenView","handleSetResolvedView","t5","ChevronDownIcon","t6","for","width","t7","CheckmarkIcon","undefined","t8","t9","t10","t11","t12","content","t13","t14","t15","t16","placement","t17","t18","t19","t20","t21","CloseIcon","t22","t23","t24","RootLayer","Layer","CommentsInspector","enabled","useCommentsEnabled","CommentsInspectorInner","showDeleteDialog","setShowDeleteDialog","useState","commentToDelete","setCommentToDelete","deleteLoading","setDeleteLoading","deleteError","setDeleteError","rootRef","useRef","rootElement","setRootElement","currentUser","useCurrentUser","comments","getComment","isCreatingDataset","mentionOptions","setStatus","status","operation","selectedCommentId","getCommentLink","onClearSelectedComment","onPathOpen","useComments","commentIdParamRef","addonDatasetError","useAddonDataset","didScrollToCommentFromParam","pushToast","useToast","push","isTopLayer","useLayer","boundaryElement","scrollToComment","scrollToField","scrollToInlineComment","useCommentsScroll","selectedPath","setSelectedPath","useCommentsSelectedPath","isDismissed","setDismissed","telemetry","useCommentsTelemetry","upsellData","telemetryLogs","upsellTelemetryLogs","useCommentsUpsell","currentComments","loading","nextView","commentListViewChanged","handleChangeView","handleCloseInspector","bb0","id","navigator","clipboard","writeText","catch","closable","title","commentLinkCopied","handleCopyLink","id_0","comment","create","type","fieldPath","target","path","field","_id","parentCommentId","reactions","threadId","handleCreateRetry","closeDeleteDialog","open","nextPath","PathUtils","fromString","filter","c","some","_temp","handlePathSelect","nextComment","payload","origin","handleNewThreadCreate","nextComment_0","handleReply","id_1","nextComment_1","update","handleEdit","id_2","parent","find","c_0","parentComment","isParent","Boolean","replies","length","commentId","onDeleteStart","id_3","remove","err","handleDeleteConfirm","id_4","nextStatus","comment_0","handleStatusChange","id_5","reaction","react","handleReactionSelect","handleDeselectPath","Symbol","element","current","setRootRef","event","HTMLElement","hasAttribute","useClickOutsideEvent","loggedTelemetry","setLoggedTelemetry","panelViewed","panelDismissed","useEffect","commentToScrollTo","requestAnimationFrame","commentViewedFromLink","bb1","panelPrimaryClicked","panelSecondaryClicked","beforeListNode","t25","t26","t27","t28","t29","t30","t31","x","isTextSelectionComment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,SAAAA,oBAAAC,OAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA,GACL;AAAA,IAAAC;AAAAA,IAAAC;AAAAA,IAAAC;AAAAA,EAAAA,IAAiDL;AAAK,MAAAM;AAAA,SAAAL,EAAA,CAAA,MAAAE,QAAAF,SAAAG,kBAAAH,EAAA,CAAA,MAAAI,oBAEpDC,yBAAC,aAAiB,UAChB,8BAAC,KAAA,EAAkB,cAAA,GACjB,UAAA,oBAAC,aAAA,EACOH,MACUC,gBACEC,iBAAAA,CAAgB,GAEtC,GACF,GA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AvDTC,MAAA,qBAAC,UAAA,EACE9J,UAAAA;AAAAA,IAAAA;AAAAA,IAUD6J;AAAAA,EAAAA,EAAAA,CA6CF,GAAW/N,SAAAkE,KAAAlE,SAAA+N,KAAA/N,SAAAgO,OAAAA,MAAAhO,EAAA,GAAA,GAxDXgO;AAwDW;AAzYf,SAAA9D,MAAA+D,GAAA;AAAA,SAuHuBC,uBAAuBD,EAAC/C,aAAc;AAAC;"}
1
+ {"version":3,"file":"CommentsInspector.js","sources":["../../src/core/comments/components/upsell/CommentsUpsellPanel.tsx","../../src/core/comments/hooks/useCommentsOnboarding.ts","../../src/core/comments/plugin/inspector/CommentsInspectorError.tsx","../../src/core/comments/plugin/inspector/CommentsInspectorHeader.tsx","../../src/core/comments/plugin/inspector/CommentsInspector.tsx"],"sourcesContent":["import {Box, Container} from '@sanity/ui'\n\nimport {type UpsellData} from '../../../studio/upsell/types'\nimport {UpsellPanel} from '../../../studio/upsell/UpsellPanel'\n\ninterface CommentsUpsellPanelProps {\n data: UpsellData\n onPrimaryClick: () => void\n onSecondaryClick: () => void\n}\n\nexport function CommentsUpsellPanel(props: CommentsUpsellPanelProps) {\n const {data, onPrimaryClick, onSecondaryClick} = props\n return (\n <Container width={1}>\n <Box marginBottom={6}>\n <UpsellPanel\n data={data}\n onPrimaryClick={onPrimaryClick}\n onSecondaryClick={onSecondaryClick}\n />\n </Box>\n </Container>\n )\n}\n","import {useContext} from 'react'\nimport {CommentsOnboardingContext} from 'sanity/_singletons'\n\nimport {type CommentsOnboardingContextValue} from '../context/onboarding/types'\n\nexport function useCommentsOnboarding(): CommentsOnboardingContextValue {\n const ctx = useContext(CommentsOnboardingContext)\n\n if (!ctx) {\n throw new Error('useCommentsOnboarding: missing context value')\n }\n\n return ctx\n}\n","import {Box, Card, Stack, Text} from '@sanity/ui'\n\nimport {useTranslation} from '../../../i18n'\nimport {commentsLocaleNamespace} from '../../i18n'\n\nexport function CommentsInspectorError({error}: {error: Error}) {\n const {t} = useTranslation(commentsLocaleNamespace)\n\n return (\n <Box padding={2}>\n <Card paddingX={2} paddingY={3} tone=\"critical\" border radius={3}>\n <Stack space={3}>\n <Text size={1} weight=\"medium\">\n {t('inspector-error.title')}\n </Text>\n <Text size={1} muted>\n {error.message}\n </Text>\n </Stack>\n </Card>\n </Box>\n )\n}\n","import {CheckmarkIcon, ChevronDownIcon, CloseIcon} from '@sanity/icons'\nimport {Card, Flex, Menu, Text} from '@sanity/ui'\nimport {forwardRef, useCallback} from 'react'\nimport {styled} from 'styled-components'\n\nimport {Button, MenuButton, MenuItem} from '../../../../ui-components'\nimport {useTranslation} from '../../../i18n'\nimport {commentsLocaleNamespace} from '../../i18n'\nimport {type CommentStatus, type CommentsUIMode} from '../../types'\n\nconst Root = styled(Card)({\n position: 'relative',\n zIndex: '1',\n lineHeight: '0',\n})\n\ninterface CommentsInspectorHeaderProps {\n onClose: () => void\n onViewChange: (view: CommentStatus) => void\n view: CommentStatus\n mode: CommentsUIMode\n}\n\nexport const CommentsInspectorHeader = forwardRef(function CommentsInspectorHeader(\n props: CommentsInspectorHeaderProps,\n ref: React.ForwardedRef<HTMLDivElement>,\n) {\n const {t} = useTranslation(commentsLocaleNamespace)\n const {onClose, onViewChange, view, mode} = props\n\n const handleSetOpenView = useCallback(() => onViewChange('open'), [onViewChange])\n const handleSetResolvedView = useCallback(() => onViewChange('resolved'), [onViewChange])\n\n return (\n <Root ref={ref}>\n <Flex padding={2}>\n <Flex align=\"center\" flex={1} gap={2} paddingY={2} padding={3}>\n <Text as=\"h1\" size={1} weight=\"medium\">\n {t('feature-name')}\n </Text>\n </Flex>\n\n <Flex flex=\"none\" padding={1} gap={2}>\n <MenuButton\n id=\"comment-status-menu-button\"\n button={\n <Button\n text={\n view === 'open'\n ? t('status-filter.status-open')\n : t('status-filter.status-resolved')\n }\n mode=\"bleed\"\n iconRight={ChevronDownIcon}\n />\n }\n menu={\n <Menu style={{width: '180px'}}>\n <MenuItem\n iconRight={view === 'open' ? CheckmarkIcon : undefined}\n onClick={handleSetOpenView}\n text={t('status-filter.status-open-full')}\n />\n <MenuItem\n iconRight={view === 'resolved' ? CheckmarkIcon : undefined}\n onClick={handleSetResolvedView}\n text={t('status-filter.status-resolved-full')}\n tooltipProps={\n mode === 'upsell'\n ? {content: t('status-filter.status-resolved-full-upsell')}\n : undefined\n }\n disabled={mode === 'upsell'}\n />\n </Menu>\n }\n popover={{placement: 'bottom-end'}}\n />\n\n <Button\n aria-label={t('close-pane-button-text-aria-label')}\n icon={CloseIcon}\n mode=\"bleed\"\n onClick={onClose}\n tooltipProps={{content: t('close-pane-button-text')}}\n />\n </Flex>\n </Flex>\n </Root>\n )\n})\n","import {Flex, Layer, useClickOutsideEvent, useLayer, useToast} from '@sanity/ui'\nimport * as PathUtils from '@sanity/util/paths'\nimport {Fragment, useCallback, useEffect, useMemo, useRef, useState} from 'react'\nimport {styled} from 'styled-components'\n\nimport {type DocumentInspectorProps} from '../../../config'\nimport {useTranslation} from '../../../i18n'\nimport {useCurrentUser} from '../../../store'\nimport {useAddonDataset} from '../../../studio/addonDataset'\nimport {\n CommentDeleteDialog,\n CommentsList,\n CommentsOnboardingPopover,\n CommentsUpsellPanel,\n} from '../../components'\nimport {type CommentsSelectedPath} from '../../context'\nimport {isTextSelectionComment} from '../../helpers'\nimport {\n useComments,\n useCommentsEnabled,\n useCommentsOnboarding,\n useCommentsScroll,\n useCommentsSelectedPath,\n useCommentsTelemetry,\n useCommentsUpsell,\n} from '../../hooks'\nimport {commentsLocaleNamespace} from '../../i18n'\nimport {\n type CommentBaseCreatePayload,\n type CommentReactionOption,\n type CommentStatus,\n type CommentsUIMode,\n type CommentUpdatePayload,\n} from '../../types'\nimport {CommentsInspectorError} from './CommentsInspectorError'\nimport {CommentsInspectorHeader} from './CommentsInspectorHeader'\n\ninterface CommentToDelete {\n commentId: string\n isParent: boolean\n}\n\nconst RootLayer = styled(Layer)`\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: hidden;\n`\n\nexport function CommentsInspector(props: DocumentInspectorProps) {\n const {enabled, mode} = useCommentsEnabled()\n\n if (!enabled) return null\n\n // We wrap the comments inspector in a Layer in order to know when the comments inspector\n // is the top layer (that is, if there is e.g. a popover open). This is used to determine\n // if we should deselect the selected path when clicking outside the comments inspector.\n return (\n <RootLayer>\n <CommentsInspectorInner {...props} mode={mode} />\n </RootLayer>\n )\n}\n\nfunction CommentsInspectorInner(\n props: DocumentInspectorProps & {\n mode: CommentsUIMode\n },\n) {\n const {t} = useTranslation(commentsLocaleNamespace)\n const {onClose, mode} = props\n const [showDeleteDialog, setShowDeleteDialog] = useState<boolean>(false)\n const [commentToDelete, setCommentToDelete] = useState<CommentToDelete | null>(null)\n const [deleteLoading, setDeleteLoading] = useState<boolean>(false)\n const [deleteError, setDeleteError] = useState<Error | null>(null)\n\n const rootRef = useRef<HTMLDivElement | null>(null)\n const [rootElement, setRootElement] = useState<HTMLDivElement | null>(null)\n\n const currentUser = useCurrentUser()\n const {\n comments,\n getComment,\n isCreatingDataset,\n mentionOptions,\n setStatus,\n status,\n operation,\n selectedCommentId,\n getCommentLink,\n onClearSelectedComment,\n onPathOpen,\n } = useComments()\n const commentIdParamRef = useRef<string | undefined>(selectedCommentId)\n const {error: addonDatasetError} = useAddonDataset()\n const didScrollToCommentFromParam = useRef<boolean>(false)\n\n const pushToast = useToast().push\n const {isTopLayer} = useLayer()\n\n const {scrollToComment, scrollToField, scrollToInlineComment} = useCommentsScroll({\n boundaryElement: rootElement,\n })\n const {selectedPath, setSelectedPath} = useCommentsSelectedPath()\n const {isDismissed, setDismissed} = useCommentsOnboarding()\n const telemetry = useCommentsTelemetry()\n\n const {upsellData, telemetryLogs: upsellTelemetryLogs} = useCommentsUpsell()\n\n const currentComments = useMemo(() => comments.data[status], [comments, status])\n\n const {loading} = comments\n\n const handleChangeView = useCallback(\n (nextView: CommentStatus) => {\n setStatus(nextView)\n setSelectedPath(null)\n\n telemetry.commentListViewChanged(nextView)\n },\n [setSelectedPath, setStatus, telemetry],\n )\n\n const handleCloseInspector = useCallback(() => {\n onClose()\n setSelectedPath(null)\n }, [onClose, setSelectedPath])\n\n const handleCopyLink = useMemo(() => {\n if (!getCommentLink) return undefined\n\n const copyLink = (id: string) => {\n navigator.clipboard.writeText(getCommentLink(id)).catch(() => {\n pushToast({\n closable: true,\n status: 'error',\n title: t('copy-link-error-message'),\n })\n })\n\n telemetry.commentLinkCopied()\n }\n\n return copyLink\n }, [getCommentLink, pushToast, t, telemetry])\n\n const handleCreateRetry = useCallback(\n (id: string) => {\n const comment = getComment(id)\n if (!comment) return\n\n void operation.create({\n type: 'field',\n fieldPath: comment.target.path?.field || '',\n id: comment._id,\n message: comment.message,\n parentCommentId: comment.parentCommentId,\n reactions: comment.reactions || [],\n status: comment.status,\n threadId: comment.threadId,\n })\n },\n [getComment, operation],\n )\n\n const closeDeleteDialog = useCallback(() => {\n if (deleteLoading) return\n setShowDeleteDialog(false)\n setCommentToDelete(null)\n }, [deleteLoading])\n\n const handlePathSelect = useCallback(\n (nextPath: CommentsSelectedPath) => {\n setSelectedPath(nextPath)\n\n if (nextPath?.fieldPath) {\n const path = PathUtils.fromString(nextPath.fieldPath)\n onPathOpen?.(path)\n\n scrollToField(nextPath.fieldPath)\n\n const isInlineComment = comments.data.open\n .filter((c) => c.threadId === nextPath?.threadId)\n .some((x) => isTextSelectionComment(x.parentComment))\n\n if (isInlineComment && nextPath.threadId) {\n scrollToInlineComment(nextPath.threadId)\n }\n }\n },\n [comments.data.open, onPathOpen, scrollToField, scrollToInlineComment, setSelectedPath],\n )\n\n const handleNewThreadCreate = useCallback(\n (nextComment: CommentBaseCreatePayload) => {\n const fieldPath = nextComment?.payload?.fieldPath || ''\n\n void operation.create({\n type: 'field',\n fieldPath,\n message: nextComment.message,\n parentCommentId: nextComment.parentCommentId,\n reactions: nextComment.reactions,\n status: nextComment.status,\n threadId: nextComment.threadId,\n })\n\n setSelectedPath({\n fieldPath,\n origin: 'inspector',\n threadId: nextComment.threadId,\n })\n },\n [operation, setSelectedPath],\n )\n\n const handleReply = useCallback(\n (nextComment: CommentBaseCreatePayload) => {\n void operation.create({\n ...nextComment,\n type: 'field',\n fieldPath: nextComment?.payload?.fieldPath || '',\n })\n },\n [operation],\n )\n\n const handleEdit = useCallback(\n (id: string, nextComment: CommentUpdatePayload) => {\n void operation.update(id, nextComment)\n },\n [operation],\n )\n\n const onDeleteStart = useCallback(\n (id: string) => {\n const parent = currentComments.find((c) => c.parentComment?._id === id)\n const isParent = Boolean(parent && parent?.replies?.length > 0)\n\n setShowDeleteDialog(true)\n setCommentToDelete({\n commentId: id,\n isParent,\n })\n },\n\n [currentComments],\n )\n\n const handleDeleteConfirm = useCallback(\n async (id: string) => {\n try {\n setDeleteLoading(true)\n await operation.remove(id)\n closeDeleteDialog()\n } catch (err) {\n setDeleteError(err)\n }\n setDeleteLoading(false)\n },\n [closeDeleteDialog, operation],\n )\n\n const handleStatusChange = useCallback(\n (id: string, nextStatus: CommentStatus) => {\n void operation.update(id, {\n status: nextStatus,\n })\n\n // If the comment is being opened, we want to change to the \"open\" view\n // and scroll to the comment\n if (nextStatus === 'open') {\n setStatus('open')\n\n const comment = getComment(id)\n\n if (!comment) return\n\n setSelectedPath({\n fieldPath: comment.target.path?.field || null,\n origin: 'inspector',\n threadId: comment.threadId || null,\n })\n\n scrollToComment(id)\n }\n },\n [getComment, operation, scrollToComment, setSelectedPath, setStatus],\n )\n\n const handleReactionSelect = useCallback(\n (id: string, reaction: CommentReactionOption) => {\n void operation.react(id, reaction)\n },\n [operation],\n )\n\n const handleDeselectPath = useCallback(() => {\n // Clear the selected path when:\n // - Clicking outside the inspector when it's the top layer\n // - The target is not a slate editor string. This is needed because we do not want to\n // frequently deselect the selected path when clicking inside the editor.\n if (selectedPath && isTopLayer) {\n setSelectedPath(null)\n }\n }, [isTopLayer, selectedPath, setSelectedPath])\n\n const setRootRef = useCallback((element: HTMLDivElement | null) => {\n rootRef.current = element\n setRootElement(element)\n }, [])\n\n useClickOutsideEvent(\n (event) => {\n // Clear the selected path when clicking outside the comments inspector.\n // We do this only when the comments inspector is the top layer.\n const isPTETarget =\n event.target instanceof HTMLElement && event.target?.hasAttribute('data-pt-text')\n\n if (!isPTETarget) {\n handleDeselectPath()\n }\n },\n () => [rootRef.current],\n )\n\n const [loggedTelemetry, setLoggedTelemetry] = useState(false)\n useEffect(() => {\n if (loggedTelemetry || mode !== 'upsell') return undefined\n // oxlint-disable-next-line react/react-compiler\n setLoggedTelemetry(true)\n if (selectedPath?.origin === 'form') {\n upsellTelemetryLogs.panelViewed('field_action')\n } else if (commentIdParamRef.current) {\n upsellTelemetryLogs.panelViewed('link')\n } else {\n upsellTelemetryLogs.panelViewed('document_action')\n }\n return () => {\n upsellTelemetryLogs.panelDismissed()\n }\n }, [loggedTelemetry, mode, selectedPath?.origin, upsellTelemetryLogs])\n\n // Handle scroll to comment from URL param\n useEffect(() => {\n // Make sure that the comment exists before we try to scroll to it.\n // We can't solely rely on the comment id from the url since the comment might not be loaded yet.\n const commentToScrollTo = getComment(commentIdParamRef.current || '')\n\n if (!loading && commentToScrollTo && !didScrollToCommentFromParam.current) {\n // Make sure we have the correct status set before we scroll to the comment\n setStatus(commentToScrollTo.status || 'open')\n\n handlePathSelect({\n fieldPath: commentToScrollTo.target.path?.field || null,\n origin: 'url',\n threadId: commentToScrollTo.threadId || null,\n })\n\n // Defer the comment scroll to prevent React batching from overwriting the field scroll\n requestAnimationFrame(() => {\n scrollToComment(commentToScrollTo._id)\n })\n\n didScrollToCommentFromParam.current = true\n commentIdParamRef.current = undefined\n\n onClearSelectedComment?.()\n\n telemetry.commentViewedFromLink()\n }\n }, [\n getComment,\n handlePathSelect,\n loading,\n onClearSelectedComment,\n scrollToComment,\n setStatus,\n telemetry,\n ])\n\n const beforeListNode = useMemo(() => {\n if (mode === 'upsell' && upsellData) {\n return (\n <CommentsUpsellPanel\n data={upsellData}\n onPrimaryClick={upsellTelemetryLogs.panelPrimaryClicked}\n onSecondaryClick={upsellTelemetryLogs.panelSecondaryClicked}\n />\n )\n }\n\n return null\n }, [\n mode,\n upsellTelemetryLogs.panelPrimaryClicked,\n upsellTelemetryLogs.panelSecondaryClicked,\n upsellData,\n ])\n\n return (\n <Fragment>\n {commentToDelete && showDeleteDialog && (\n <CommentDeleteDialog\n {...commentToDelete}\n error={deleteError}\n loading={deleteLoading}\n onClose={closeDeleteDialog}\n onConfirm={handleDeleteConfirm}\n />\n )}\n\n <Flex\n direction=\"column\"\n flex={1}\n height=\"fill\"\n onClick={handleDeselectPath}\n overflow=\"hidden\"\n ref={setRootRef}\n >\n <CommentsOnboardingPopover\n onDismiss={setDismissed}\n open={!isDismissed}\n placement=\"left-start\"\n >\n <CommentsInspectorHeader\n onClose={handleCloseInspector}\n onViewChange={handleChangeView}\n view={status}\n mode={mode}\n />\n </CommentsOnboardingPopover>\n {addonDatasetError && <CommentsInspectorError error={addonDatasetError} />}\n {currentUser && (\n <CommentsList\n beforeListNode={beforeListNode}\n comments={currentComments}\n currentUser={currentUser}\n error={comments.error}\n loading={loading}\n mentionOptions={mentionOptions}\n mode={mode}\n onCopyLink={handleCopyLink}\n onCreateRetry={handleCreateRetry}\n onDelete={onDeleteStart}\n onEdit={handleEdit}\n onNewThreadCreate={handleNewThreadCreate}\n onPathSelect={handlePathSelect}\n onReactionSelect={handleReactionSelect}\n onReply={handleReply}\n onStatusChange={handleStatusChange}\n readOnly={isCreatingDataset}\n selectedPath={selectedPath}\n status={status}\n />\n )}\n </Flex>\n </Fragment>\n )\n}\n"],"names":["CommentsUpsellPanel","props","$","_c","data","onPrimaryClick","onSecondaryClick","t0","useCommentsOnboarding","ctx","useContext","CommentsOnboardingContext","Error","CommentsInspectorError","error","t","useTranslation","commentsLocaleNamespace","t1","t2","t3","message","t4","Root","styled","Card","withConfig","displayName","componentId","position","zIndex","lineHeight","CommentsInspectorHeader","forwardRef","ref","onClose","onViewChange","view","mode","handleSetOpenView","handleSetResolvedView","t5","ChevronDownIcon","t6","for","width","t7","CheckmarkIcon","undefined","t8","t9","t10","t11","t12","content","t13","t14","t15","t16","placement","t17","t18","t19","t20","t21","CloseIcon","t22","t23","t24","RootLayer","Layer","CommentsInspector","enabled","useCommentsEnabled","CommentsInspectorInner","showDeleteDialog","setShowDeleteDialog","useState","commentToDelete","setCommentToDelete","deleteLoading","setDeleteLoading","deleteError","setDeleteError","rootRef","useRef","rootElement","setRootElement","currentUser","useCurrentUser","comments","getComment","isCreatingDataset","mentionOptions","setStatus","status","operation","selectedCommentId","getCommentLink","onClearSelectedComment","onPathOpen","useComments","commentIdParamRef","addonDatasetError","useAddonDataset","didScrollToCommentFromParam","pushToast","useToast","push","isTopLayer","useLayer","boundaryElement","scrollToComment","scrollToField","scrollToInlineComment","useCommentsScroll","selectedPath","setSelectedPath","useCommentsSelectedPath","isDismissed","setDismissed","telemetry","useCommentsTelemetry","upsellData","telemetryLogs","upsellTelemetryLogs","useCommentsUpsell","currentComments","loading","nextView","commentListViewChanged","handleChangeView","handleCloseInspector","bb0","id","navigator","clipboard","writeText","catch","closable","title","commentLinkCopied","handleCopyLink","id_0","comment","create","type","fieldPath","target","path","field","_id","parentCommentId","reactions","threadId","handleCreateRetry","closeDeleteDialog","open","nextPath","PathUtils","fromString","filter","c","some","_temp","handlePathSelect","nextComment","payload","origin","handleNewThreadCreate","nextComment_0","handleReply","id_1","nextComment_1","update","handleEdit","id_2","parent","find","c_0","parentComment","isParent","Boolean","replies","length","commentId","onDeleteStart","id_3","remove","err","handleDeleteConfirm","id_4","nextStatus","comment_0","handleStatusChange","id_5","reaction","react","handleReactionSelect","handleDeselectPath","Symbol","element","current","setRootRef","event","HTMLElement","hasAttribute","useClickOutsideEvent","loggedTelemetry","setLoggedTelemetry","panelViewed","panelDismissed","useEffect","commentToScrollTo","requestAnimationFrame","commentViewedFromLink","bb1","panelPrimaryClicked","panelSecondaryClicked","beforeListNode","t25","t26","t27","t28","t29","t30","t31","x","isTextSelectionComment"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;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AAA,GAAA;AAAA,MAAA+N;AAAA/N,IAAA,GAAA,MAAAqM,sBAAArM,EAAA,GAAA,MAAA4N,OAAA5N,EAAA,GAAA,MAAA6N,OAAA7N,WAAA8N,OA3CHC,2BAAC,MAAA,EACW,WAAA,UACJ,MAAA,GACC,QAAA,QACE1B,6BACA,UAAA,UACJI,KAAAA,YAELmB,UAAAA;AAAAA,IAAAA;AAAAA,IAYCC;AAAAA,IACAC;AAAAA,EAAAA,GAuBH,GAAO9N,SAAAqM,oBAAArM,SAAA4N,KAAA5N,SAAA6N,KAAA7N,SAAA8N,KAAA9N,SAAA+N,OAAAA,MAAA/N,EAAA,GAAA;AAAA,MAAAgO;AAAA,SAAAhO,EAAA,GAAA,MAAAkE,OAAAlE,WAAA+N,OAvDTC,MAAA,qBAAC,UAAA,EACE9J,UAAAA;AAAAA,IAAAA;AAAAA,IAUD6J;AAAAA,EAAAA,EAAAA,CA6CF,GAAW/N,SAAAkE,KAAAlE,SAAA+N,KAAA/N,SAAAgO,OAAAA,MAAAhO,EAAA,GAAA,GAxDXgO;AAwDW;AAzYf,SAAA9D,MAAA+D,GAAA;AAAA,SAuHuBC,uBAAuBD,EAAC/C,aAAc;AAAC;"}
@@ -88,14 +88,18 @@ import "rxjs-mergemap-array";
88
88
  import "@sanity/mutator";
89
89
  import "@portabletext/react";
90
90
  import "lodash-es/findIndex.js";
91
- import "@sentry/react";
92
- import "@portabletext/toolkit";
91
+ import "@xstate/react";
92
+ import "xstate";
93
93
  import "@sanity/schema";
94
94
  import "@sanity/util/client";
95
95
  import "@sanity/util/concurrency-limiter";
96
96
  import "lodash-es/uniqBy.js";
97
97
  import "json-reduce";
98
98
  import "rxjs-exhaustmap-with-trailing";
99
+ import "date-fns/isBefore";
100
+ import "date-fns/startOfMinute";
101
+ import "@sentry/react";
102
+ import "@portabletext/toolkit";
99
103
  import "polished";
100
104
  import "@sanity/client";
101
105
  import "react-is";
@@ -122,7 +126,6 @@ import "lodash-es/last.js";
122
126
  import "react-dom/client";
123
127
  import "date-fns/addWeeks";
124
128
  import "date-fns/isAfter";
125
- import "date-fns/isBefore";
126
129
  import "semver";
127
130
  import "lodash-es/isObject.js";
128
131
  function ReleaseLimitsMisconfigurationDialog(props) {