@@ -100,9 +100,12 @@ export class HttpDetailsPane extends React.Component<{
100100 } = uiStore ! ;
101101 const { requestBreakpoint, responseBreakpoint } = exchange ;
102102
103- // The full API details - only available for paid usage, so we drop this
104- // for non-paid users at this stage.
105- const apiExchange = isPaidUser ? exchange . api : undefined ;
103+ // The full API details - for paid APIs, and non-paid users, we don't show
104+ // the detailed API data in any of the cards, we just show the name (below)
105+ // in a collapsed API card.
106+ const apiExchange = ( isPaidUser || exchange . api ?. isBuiltInApi )
107+ ? exchange . api
108+ : undefined ;
106109
107110 // We do still want the API name though, if there is one - we use this to
108111 // show non-paid users when API data might be available, iff this request
@@ -190,16 +193,16 @@ export class HttpDetailsPane extends React.Component<{
190193 ) {
191194 if ( ! apiName ) return null ;
192195
193- if ( ! this . props . accountStore ! . isPaidUser ) {
194- // If you're not paid, but we do recognize this as a specific API
195- // operation, we show a placeholder:
196+ if ( ! apiExchange ) {
197+ // If you're not a paid user, and it's a paid API, then we only have
198+ // the basic API name here but no details, so we just show a placeholder:
196199 return < HttpApiPlaceholderCard
197200 { ...this . cardProps . api }
198201 apiName = { apiName }
199202 /> ;
200203 }
201204
202- // If paid & we have a name, we must have full API details, show them:
205+ // If paid/built-in API & we have a name, we must have full API details, show them:
203206 return < HttpApiCard
204207 { ...this . cardProps . api }
205208 apiName = { apiName }
0 commit comments