File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @sitecore-marketplace-sdk/client ' : patch
3
+ ---
4
+
5
+ Adds support for SiteContext query
Original file line number Diff line number Diff line change @@ -186,6 +186,26 @@ interface PagesContextPageInfo {
186
186
[ key : string ] : any ;
187
187
}
188
188
189
+ interface SiteContext {
190
+ siteInfo : {
191
+ siteId : string ;
192
+ name : string ;
193
+ displayName : string ;
194
+ url : string ;
195
+ hosts : {
196
+ id : string ;
197
+ name : string ;
198
+ languageSettings : {
199
+ defaultLanguage : string ;
200
+ [ key : string ] : any ;
201
+ } ;
202
+ [ key : string ] : any ;
203
+ } [ ] ;
204
+ [ key : string ] : any ;
205
+ } | null ;
206
+ [ key : string ] : any ;
207
+ }
208
+
189
209
// --- Static mappings for queries and mutations ---
190
210
191
211
export interface QueryMap {
@@ -211,6 +231,11 @@ export interface QueryMap {
211
231
response : ApplicationContext ;
212
232
subscribe : false ;
213
233
} ;
234
+ 'site.context' : {
235
+ params : void ;
236
+ response : SiteContext ;
237
+ subscribe : false ;
238
+ } ;
214
239
'host.route' : {
215
240
params : void ;
216
241
response : string ;
You can’t perform that action at this time.
0 commit comments