File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @animaapp/anima-sdk-react" ,
3- "version" : " 0.9 .0" ,
3+ "version" : " 0.10 .0" ,
44 "type" : " module" ,
55 "description" : " Anima's JavaScript utilities library" ,
66 "author" : " Anima App, Inc." ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @animaapp/anima-sdk" ,
3- "version" : " 0.9 .0" ,
3+ "version" : " 0.10 .0" ,
44 "type" : " module" ,
55 "description" : " Anima's JavaScript utilities library" ,
66 "author" : " Anima App, Inc." ,
Original file line number Diff line number Diff line change @@ -425,7 +425,13 @@ export class Anima {
425425 }
426426
427427 let input ;
428- if ( params . mhtml ) {
428+ if ( params . mhtmlUrl ) {
429+ input = {
430+ type : "hosted-mhtml" ,
431+ mhtmlUrl : params . mhtmlUrl ,
432+ url : params . url ,
433+ } ;
434+ } else if ( params . mhtml ) {
429435 input = {
430436 type : "mhtml" ,
431437 mhtml : params . mhtml ,
@@ -437,7 +443,7 @@ export class Anima {
437443 url : params . url ,
438444 } ;
439445 } else {
440- throw new Error ( "Either 'url' or 'mhtml ' must be provided" ) ;
446+ throw new Error ( "Either 'url', 'mhtml' or 'mhtmlUrl ' must be provided" ) ;
441447 }
442448
443449 let engine : "react-v2" | undefined = undefined ;
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ export type GeneratingCodePayload = {
9999export type GetCodeFromWebsiteParams = {
100100 url ?: string ;
101101 mhtml ?: string ;
102+ mhtmlUrl ?: string ;
102103
103104 assetsStorage ?: AssetsStorage ;
104105 settings : GetCodeFromWebsiteSettings ;
You can’t perform that action at this time.
0 commit comments