Skip to content

Commit f74ed34

Browse files
committed
feat(SHAPE-7043): provide more properties to selected asset
1 parent b39001d commit f74ed34

File tree

1 file changed

+9
-0
lines changed
  • packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage

1 file changed

+9
-0
lines changed

packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage/Asset.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ import { AssetSelectedMessage } from './AssetSelectedMessage'
33

44
export type Asset = {
55
filename: string
6+
fieldtype: 'asset'
7+
name: string
8+
meta_data: Record<string, string>
9+
title: string
10+
copyright: string
11+
focus: string
12+
alt: string
13+
source: string
14+
is_private: boolean
615
}
716

817
export const isAsset = (data: unknown): data is Asset =>

0 commit comments

Comments
 (0)