@thoughtspot/visual-embed-sdk 1.36.9-primary-actions → 1.36.9-primaryAction
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/package.json +1 -1
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +4 -4
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/types.d.ts +16 -15
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +1 -1
- package/cjs/src/types.js.map +1 -1
- package/dist/index-BEyovSez.js +7370 -0
- package/dist/index-Dg18PU5Z.js +7370 -0
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +16 -15
- package/dist/src/types.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +8 -8
- package/dist/tsembed-react.js +7 -7
- package/dist/tsembed.es.js +8 -8
- package/dist/tsembed.js +7 -7
- package/dist/visual-embed-sdk-react-full.d.ts +16 -15
- package/dist/visual-embed-sdk-react.d.ts +16 -15
- package/dist/visual-embed-sdk.d.ts +16 -15
- package/lib/package.json +1 -1
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +4 -4
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/types.d.ts +16 -15
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +1 -1
- package/lib/src/types.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +16 -15
- package/package.json +1 -1
- package/src/embed/ts-embed.ts +5 -4
- package/src/types.ts +20 -15
package/src/embed/ts-embed.ts
CHANGED
|
@@ -540,7 +540,7 @@ export class TsEmbed {
|
|
|
540
540
|
disableRedirectionLinksInNewTab,
|
|
541
541
|
overrideOrgId,
|
|
542
542
|
exposeTranslationIDs,
|
|
543
|
-
|
|
543
|
+
primaryAction,
|
|
544
544
|
} = this.viewConfig;
|
|
545
545
|
|
|
546
546
|
const { additionalFlags: additionalFlagsFromInit } = this.embedConfig;
|
|
@@ -555,6 +555,10 @@ export class TsEmbed {
|
|
|
555
555
|
return queryParams;
|
|
556
556
|
}
|
|
557
557
|
|
|
558
|
+
if (primaryAction) {
|
|
559
|
+
queryParams[Param.PrimaryAction] = primaryAction;
|
|
560
|
+
}
|
|
561
|
+
|
|
558
562
|
if (Array.isArray(visibleTabs) && Array.isArray(hiddenTabs)) {
|
|
559
563
|
this.handleError('You cannot have both hidden Tabs and visible Tabs');
|
|
560
564
|
return queryParams;
|
|
@@ -563,9 +567,6 @@ export class TsEmbed {
|
|
|
563
567
|
if (disabledActions?.length) {
|
|
564
568
|
queryParams[Param.DisableActions] = disabledActions;
|
|
565
569
|
}
|
|
566
|
-
if (primaryActions?.length) {
|
|
567
|
-
queryParams[Param.PrimaryActions] = primaryActions;
|
|
568
|
-
}
|
|
569
570
|
if (disabledActionReason) {
|
|
570
571
|
queryParams[Param.DisableActionReason] = disabledActionReason;
|
|
571
572
|
}
|
package/src/types.ts
CHANGED
|
@@ -712,20 +712,6 @@ export interface ViewConfig {
|
|
|
712
712
|
* ```
|
|
713
713
|
*/
|
|
714
714
|
disabledActions?: Action[];
|
|
715
|
-
/**
|
|
716
|
-
* The list of actions to display as primary actions,
|
|
717
|
-
* These actions will be displayed upfront in the liveboard/app embed.
|
|
718
|
-
* Use this to display actions.
|
|
719
|
-
* @version SDK: 1.38.0 | ThoughtSpot: 10.9.0.cl
|
|
720
|
-
* @example
|
|
721
|
-
* ```js
|
|
722
|
-
* const embed = new LiveboardEmbed('#embed', {
|
|
723
|
-
* ... // other liveboard view config
|
|
724
|
-
* primaryActions: [Action.Download]
|
|
725
|
-
* });
|
|
726
|
-
* ```
|
|
727
|
-
*/
|
|
728
|
-
primaryActions?: Action[];
|
|
729
715
|
/**
|
|
730
716
|
* The tooltip to display for disabled actions.
|
|
731
717
|
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
@@ -754,6 +740,23 @@ export interface ViewConfig {
|
|
|
754
740
|
* @important
|
|
755
741
|
*/
|
|
756
742
|
hiddenActions?: Action[];
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* The primary action to display from the embedded.
|
|
746
|
+
* This action will be displayed from the embedded.
|
|
747
|
+
* Use this to set the primary action.
|
|
748
|
+
* @version SDK: 1.6.0 | ThoughtSpot: ts8.nov.cl, 8.4.1.sw
|
|
749
|
+
* @example
|
|
750
|
+
* ```js
|
|
751
|
+
* const embed = new LiveboardEmbed('#embed', {
|
|
752
|
+
* ... // other liveboard view config
|
|
753
|
+
* primaryAction: 'download'
|
|
754
|
+
* });
|
|
755
|
+
* ```
|
|
756
|
+
* @important
|
|
757
|
+
*/
|
|
758
|
+
primaryAction?: string;
|
|
759
|
+
|
|
757
760
|
/**
|
|
758
761
|
* The list of actions to display from the primary menu, more menu
|
|
759
762
|
* (...), and the contextual menu. These will be only actions that
|
|
@@ -784,6 +787,8 @@ export interface ViewConfig {
|
|
|
784
787
|
* })
|
|
785
788
|
* ```
|
|
786
789
|
*/
|
|
790
|
+
|
|
791
|
+
|
|
787
792
|
showAlerts?: boolean;
|
|
788
793
|
/**
|
|
789
794
|
* The list of runtime filters to apply to a search Answer,
|
|
@@ -3611,7 +3616,7 @@ export enum Param {
|
|
|
3611
3616
|
preAuthCache = 'preAuthCache',
|
|
3612
3617
|
ShowSpotterLimitations = 'showSpotterLimitations',
|
|
3613
3618
|
CoverAndFilterOptionInPDF = 'coverAndFilterOptionInPDF',
|
|
3614
|
-
|
|
3619
|
+
PrimaryAction = 'primaryAction',
|
|
3615
3620
|
}
|
|
3616
3621
|
|
|
3617
3622
|
/**
|