@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.
@@ -540,7 +540,7 @@ export class TsEmbed {
540
540
  disableRedirectionLinksInNewTab,
541
541
  overrideOrgId,
542
542
  exposeTranslationIDs,
543
- primaryActions,
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
- PrimaryActions = 'primaryActions',
3619
+ PrimaryAction = 'primaryAction',
3615
3620
  }
3616
3621
 
3617
3622
  /**