Skip to content

Commit

Permalink
chore(core): export DocumentVersionEventType type from core
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobonamin committed Oct 14, 2024
1 parent 3a42123 commit 8aacc25
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/sanity/src/core/store/events/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './getDocumentEvents'
export {type DocumentVersionEventType} from './types'
4 changes: 4 additions & 0 deletions packages/sanity/src/core/store/events/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ export type DocumentGroupEvent =
| CreateLiveDocumentEvent
| UpdateLiveDocumentEvent

/**
* @internal
* @beta
**/
export const documentVersionEventTypes = [
'document.createVersion',
'document.editVersion',
Expand Down
2 changes: 1 addition & 1 deletion packages/sanity/src/core/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './_legacy'
export * from './events/getDocumentEvents'
export * from './events'
export * from './user'
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
TrashIcon,
UnpublishIcon,
} from '@sanity/icons'
import {type DocumentVersionEventType} from 'sanity'

import {type DocumentVersionEventType} from '../../../../core/store/events/types'
import {type ButtonProps} from '../../../../ui-components'

export const TIMELINE_ICON_COMPONENTS: Record<DocumentVersionEventType, IconComponent> = {
Expand Down

0 comments on commit 8aacc25

Please sign in to comment.