Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2743,7 +2743,7 @@ export enum EmbedEvent {
*
* This event can be emitted to intercept search execution initiated by
* the users and implement the logic to allow or restrict search execution.
* You can can also show custom error text if the search query must be
* You can also show custom error text if the search query must be
* restricted due to your application or business requirements.

* Prerequisite: Set `isOnBeforeGetVizDataInterceptEnabled` to `true`
Expand Down Expand Up @@ -6208,7 +6208,6 @@ export type ApiInterceptFlags = {
* ```js
* const embed = new LiveboardEmbed('#embed', {
* ...viewConfig,
* enableApiIntercept: true,
* interceptUrls: [InterceptedApiType.DATA],
Comment on lines 6211 to 6212
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Removing the deprecated enableApiIntercept flag is correct. However, the example still uses InterceptedApiType.DATA, which appears to be an invalid value for URL interception. It will be treated as a literal string 'DATA', which is likely not the intended behavior. The suggestion below removes the deprecated flag and replaces DATA with LiveboardData to make the example correct.

Suggested change
* interceptUrls: [InterceptedApiType.DATA],
* interceptUrls: [InterceptedApiType.LiveboardData],

* })
* ```
Expand All @@ -6224,7 +6223,6 @@ export type ApiInterceptFlags = {
* ```js
* const embed = new LiveboardEmbed('#embed', {
* ...viewConfig,
* enableApiIntercept: true,
* interceptUrls: [InterceptedApiType.ALL],
* interceptTimeout: 1000,
* })
Expand Down
Loading