@@ -36,7 +36,7 @@ import { EditorContext } from "comps/editorState";
3636import { StringControl } from "../controls/codeControl" ;
3737import { PositionControl } from "comps/controls/dropdownControl" ;
3838import { dropdownControl } from "../controls/dropdownControl" ;
39- import { IconScoutAssetType , IconscoutControl } from "../controls/iconscoutControl" ;
39+ import { AssetType , IconscoutControl } from "../controls/iconscoutControl" ;
4040
4141const Container = styled . div < {
4242 $style : ImageStyleType | undefined ,
@@ -115,7 +115,7 @@ const getStyle = (style: ImageStyleType) => {
115115const EventOptions = [ clickEvent ] as const ;
116116const ModeOptions = [
117117 { label : "URL" , value : "standard" } ,
118- { label : "Advanced " , value : "advanced " } ,
118+ { label : "Asset Library " , value : "asset-library " } ,
119119] as const ;
120120
121121const ContainerImg = ( props : RecordConstructorToView < typeof childrenMap > ) => {
@@ -201,8 +201,8 @@ const ContainerImg = (props: RecordConstructorToView<typeof childrenMap>) => {
201201 >
202202 < AntImage
203203 src = {
204- props . sourceMode === 'advanced '
205- ? props . srcIconScout ?. value
204+ props . sourceMode === 'asset-library '
205+ ? props . iconScoutAsset ?. value
206206 : props . src . value
207207 }
208208 referrerPolicy = "same-origin"
@@ -222,7 +222,7 @@ const ContainerImg = (props: RecordConstructorToView<typeof childrenMap>) => {
222222const childrenMap = {
223223 sourceMode : dropdownControl ( ModeOptions , "standard" ) ,
224224 src : withDefault ( StringStateControl , "https://temp.im/350x400" ) ,
225- srcIconScout : IconscoutControl ( IconScoutAssetType . ILLUSTRATION ) ,
225+ iconScoutAsset : IconscoutControl ( AssetType . ILLUSTRATION ) ,
226226 onEvent : eventHandlerControl ( EventOptions ) ,
227227 style : styleControl ( ImageStyle , 'style' ) ,
228228 animationStyle : styleControl ( AnimationStyle , 'animationStyle' ) ,
@@ -253,7 +253,7 @@ let ImageBasicComp = new UICompBuilder(childrenMap, (props) => {
253253 { children . sourceMode . getView ( ) === 'standard' && children . src . propertyView ( {
254254 label : trans ( "image.src" ) ,
255255 } ) }
256- { children . sourceMode . getView ( ) === 'advanced ' && children . srcIconScout . propertyView ( {
256+ { children . sourceMode . getView ( ) === 'asset-library ' && children . iconScoutAsset . propertyView ( {
257257 label : trans ( "image.src" ) ,
258258 } ) }
259259 </ Section >
0 commit comments