Skip to content

Commit

Permalink
Merge pull request #372 from Weaverse/media
Browse files Browse the repository at this point in the history
chore: add weaverse video type
  • Loading branch information
viethung26 committed Jul 23, 2024
2 parents 7a534f7 + a0ceaa1 commit 0579947
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export type InputType =
| 'color'
| 'datepicker'
| 'image'
| 'video'
| 'map-autocomplete'
| 'position'
| 'product'
Expand Down Expand Up @@ -66,6 +67,15 @@ export type WeaverseImage = {
altText: string
width: number
height: number
previewSrc: string
}
export type WeaverseVideo = {
id: string
url: string
altText: string
width: number
height: number
previewSrc: string
}
export type AdditionalInputConfigs =
| SelectInputConfigs
Expand Down
3 changes: 2 additions & 1 deletion packages/hydrogen/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import type {
WeaverseImage,
WeaverseProjectDataType,
WeaverseResourcePickerData,
WeaverseVideo,
} from '@weaverse/react'
import type { ForwardRefExoticComponent } from 'react'

Expand All @@ -32,7 +33,7 @@ import type { ThemeSettingsStore } from './hooks/use-theme-settings'
import type { WeaverseClient } from './weaverse-client'

import type { WeaverseHydrogen } from './index'
export type { InputType, PositionInputValue, WeaverseImage }
export type { InputType, PositionInputValue, WeaverseImage, WeaverseVideo }

export type Locale = {
language: LanguageCode
Expand Down

0 comments on commit 0579947

Please sign in to comment.