@thoughtspot/visual-embed-sdk 1.33.8 → 1.33.10

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.
Files changed (74) hide show
  1. package/cjs/package.json +1 -1
  2. package/cjs/src/embed/conversation.d.ts +27 -0
  3. package/cjs/src/embed/conversation.d.ts.map +1 -1
  4. package/cjs/src/embed/conversation.js +9 -1
  5. package/cjs/src/embed/conversation.js.map +1 -1
  6. package/cjs/src/embed/conversation.spec.js +24 -0
  7. package/cjs/src/embed/conversation.spec.js.map +1 -1
  8. package/cjs/src/embed/liveboard.d.ts +36 -0
  9. package/cjs/src/embed/liveboard.d.ts.map +1 -1
  10. package/cjs/src/embed/liveboard.js +10 -1
  11. package/cjs/src/embed/liveboard.js.map +1 -1
  12. package/cjs/src/embed/liveboard.spec.js +13 -0
  13. package/cjs/src/embed/liveboard.spec.js.map +1 -1
  14. package/cjs/src/embed/ts-embed.d.ts.map +1 -1
  15. package/cjs/src/embed/ts-embed.js +5 -2
  16. package/cjs/src/embed/ts-embed.js.map +1 -1
  17. package/cjs/src/embed/ts-embed.spec.d.ts +2 -1
  18. package/cjs/src/embed/ts-embed.spec.d.ts.map +1 -1
  19. package/cjs/src/embed/ts-embed.spec.js +158 -0
  20. package/cjs/src/embed/ts-embed.spec.js.map +1 -1
  21. package/cjs/src/types.d.ts +51 -3
  22. package/cjs/src/types.d.ts.map +1 -1
  23. package/cjs/src/types.js +41 -0
  24. package/cjs/src/types.js.map +1 -1
  25. package/dist/{index-CHqCPD_I.js → index-HiSgAoIA.js} +1 -1
  26. package/dist/src/embed/conversation.d.ts +27 -0
  27. package/dist/src/embed/conversation.d.ts.map +1 -1
  28. package/dist/src/embed/liveboard.d.ts +36 -0
  29. package/dist/src/embed/liveboard.d.ts.map +1 -1
  30. package/dist/src/embed/ts-embed.d.ts.map +1 -1
  31. package/dist/src/embed/ts-embed.spec.d.ts +2 -1
  32. package/dist/src/embed/ts-embed.spec.d.ts.map +1 -1
  33. package/dist/src/types.d.ts +51 -3
  34. package/dist/src/types.d.ts.map +1 -1
  35. package/dist/tsembed-react.es.js +94 -12
  36. package/dist/tsembed-react.js +93 -11
  37. package/dist/tsembed.es.js +94 -12
  38. package/dist/tsembed.js +93 -11
  39. package/dist/visual-embed-sdk-react-full.d.ts +114 -3
  40. package/dist/visual-embed-sdk-react.d.ts +114 -3
  41. package/dist/visual-embed-sdk.d.ts +114 -3
  42. package/lib/package.json +1 -1
  43. package/lib/src/embed/conversation.d.ts +27 -0
  44. package/lib/src/embed/conversation.d.ts.map +1 -1
  45. package/lib/src/embed/conversation.js +8 -1
  46. package/lib/src/embed/conversation.js.map +1 -1
  47. package/lib/src/embed/conversation.spec.js +24 -0
  48. package/lib/src/embed/conversation.spec.js.map +1 -1
  49. package/lib/src/embed/liveboard.d.ts +36 -0
  50. package/lib/src/embed/liveboard.d.ts.map +1 -1
  51. package/lib/src/embed/liveboard.js +10 -1
  52. package/lib/src/embed/liveboard.js.map +1 -1
  53. package/lib/src/embed/liveboard.spec.js +13 -0
  54. package/lib/src/embed/liveboard.spec.js.map +1 -1
  55. package/lib/src/embed/ts-embed.d.ts.map +1 -1
  56. package/lib/src/embed/ts-embed.js +5 -2
  57. package/lib/src/embed/ts-embed.js.map +1 -1
  58. package/lib/src/embed/ts-embed.spec.d.ts +2 -1
  59. package/lib/src/embed/ts-embed.spec.d.ts.map +1 -1
  60. package/lib/src/embed/ts-embed.spec.js +159 -2
  61. package/lib/src/embed/ts-embed.spec.js.map +1 -1
  62. package/lib/src/types.d.ts +51 -3
  63. package/lib/src/types.d.ts.map +1 -1
  64. package/lib/src/types.js +41 -0
  65. package/lib/src/types.js.map +1 -1
  66. package/lib/src/visual-embed-sdk.d.ts +114 -3
  67. package/package.json +1 -1
  68. package/src/embed/conversation.spec.ts +34 -0
  69. package/src/embed/conversation.ts +36 -0
  70. package/src/embed/liveboard.spec.ts +17 -0
  71. package/src/embed/liveboard.ts +54 -0
  72. package/src/embed/ts-embed.spec.ts +219 -0
  73. package/src/embed/ts-embed.ts +6 -1
  74. package/src/types.ts +51 -0
@@ -1574,6 +1574,42 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
1574
1574
  * ```
1575
1575
  */
1576
1576
  hideIrrelevantChipsInLiveboardTabs?: boolean;
1577
+ /**
1578
+ * The Liveboard to run on regular intervals to fetch the cdw token.
1579
+ * @hidden
1580
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
1581
+ * @example
1582
+ * ```js
1583
+ * const embed = new LiveboardEmbed('#embed-container', {
1584
+ * ... // other options
1585
+ * oAuthPollingInterval: value in milliseconds,
1586
+ * })
1587
+ */
1588
+ oAuthPollingInterval?: number;
1589
+ /**
1590
+ * The Liveboard is set to force a token fetch during the initial load.
1591
+ * @hidden
1592
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
1593
+ * @example
1594
+ * ```js
1595
+ * const embed = new LiveboardEmbed('#embed-container', {
1596
+ * ... // other options
1597
+ * isForceRedirect: false,
1598
+ * })
1599
+ */
1600
+ isForceRedirect?: boolean;
1601
+ /**
1602
+ * The source connection ID for authentication.
1603
+ * @hidden
1604
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
1605
+ * @example
1606
+ * ```js
1607
+ * const embed = new LiveboardEmbed('#embed-container', {
1608
+ * ... // other options
1609
+ * dataSourceId: '',
1610
+ * })
1611
+ */
1612
+ dataSourceId?: string;
1577
1613
  }
1578
1614
  /**
1579
1615
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
@@ -1662,6 +1698,33 @@ export interface ConversationViewConfig extends ViewConfig {
1662
1698
  * Ability to pass a starting search query to the conversation.
1663
1699
  */
1664
1700
  searchOptions?: SearchOptions;
1701
+ /**
1702
+ * disableSourceSelection : Disables data source selection
1703
+ * but still display the selected data source.
1704
+ * @example
1705
+ * ```js
1706
+ * const embed = new ConversationEmbed('#tsEmbed', {
1707
+ * ... // other options
1708
+ * disableSourceSelection : true,
1709
+ * })
1710
+ * ```
1711
+ *
1712
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1713
+ */
1714
+ disableSourceSelection?: boolean;
1715
+ /**
1716
+ * hideSourceSelection : Hide data source selection
1717
+ * @example
1718
+ * ```js
1719
+ * const embed = new ConversationEmbed('#tsEmbed', {
1720
+ * ... // other options
1721
+ * hideSourceSelection : true,
1722
+ * })
1723
+ * ```
1724
+ *
1725
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1726
+ */
1727
+ hideSourceSelection?: boolean;
1665
1728
  }
1666
1729
  /**
1667
1730
  * Embed ThoughtSpot AI Conversation.
@@ -3163,6 +3226,13 @@ export interface ViewConfig {
3163
3226
  * @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
3164
3227
  */
3165
3228
  overrideOrgId?: number;
3229
+ /**
3230
+ * Flag to control new flip tooltip context menu experience
3231
+ *
3232
+ * @default false
3233
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
3234
+ */
3235
+ enableFlipTooltipToContextMenu?: boolean;
3166
3236
  }
3167
3237
  /**
3168
3238
  * MessagePayload: Embed event payload: message type, data and status (start/end)
@@ -5230,7 +5300,15 @@ export declare enum HostEvent {
5230
5300
  *```
5231
5301
  * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
5232
5302
  */
5233
- GetParameters = "GetParameters"
5303
+ GetParameters = "GetParameters",
5304
+ /**
5305
+ * Triggers update of persoanlised view for a liveboard
5306
+ * ```js
5307
+ * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
5308
+ * ```
5309
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
5310
+ */
5311
+ UpdatePersonalisedView = "UpdatePersonalisedView"
5234
5312
  }
5235
5313
  /**
5236
5314
  * The different visual modes that the data sources panel within
@@ -5303,6 +5381,8 @@ export declare enum Param {
5303
5381
  IsSageEmbed = "isSageEmbed",
5304
5382
  HideWorksheetSelector = "hideWorksheetSelector",
5305
5383
  DisableWorksheetChange = "disableWorksheetChange",
5384
+ HideSourceSelection = "hideSourceSelection",
5385
+ DisableSourceSelection = "disableSourceSelection",
5306
5386
  HideEurekaResults = "hideEurekaResults",
5307
5387
  HideEurekaSuggestions = "hideEurekaSuggestions",
5308
5388
  HideAutocompleteSuggestions = "hideAutocompleteSuggestions",
@@ -5344,7 +5424,11 @@ export declare enum Param {
5344
5424
  HideIrrelevantFiltersInTab = "hideIrrelevantFiltersAtTabLevel",
5345
5425
  SpotterEnabled = "isSpotterExperienceEnabled",
5346
5426
  IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
5347
- OverrideOrgId = "orgId"
5427
+ OverrideOrgId = "orgId",
5428
+ EnableFlipTooltipToContextMenu = "flipTooltipToContextMenuEnabled",
5429
+ OauthPollingInterval = "oAuthPollingInterval",
5430
+ IsForceRedirect = "isForceRedirect",
5431
+ DataSourceId = "dataSourceId"
5348
5432
  }
5349
5433
  /**
5350
5434
  * ThoughtSpot application pages include actions and menu commands
@@ -6393,7 +6477,34 @@ export declare enum Action {
6393
6477
  * ```
6394
6478
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
6395
6479
  */
6396
- ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab"
6480
+ ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab",
6481
+ /**
6482
+ * Action ID for hide/disable Preview data button in spotter
6483
+ * @example
6484
+ * ```js
6485
+ * hiddenAction: [Action.PreviewDataSpotter]
6486
+ * ```
6487
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6488
+ */
6489
+ PreviewDataSpotter = "previewDataSpotter",
6490
+ /**
6491
+ * Action ID for hide/disable reset button in spotter
6492
+ * @example
6493
+ * ```js
6494
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6495
+ * ```
6496
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6497
+ */
6498
+ ResetSpotterChat = "resetSpotterChat",
6499
+ /**
6500
+ * Action ID for hide/disable feedback in spotter
6501
+ * @example
6502
+ * ```js
6503
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6504
+ * ```
6505
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6506
+ */
6507
+ SpotterFeedback = "spotterFeedback"
6397
6508
  }
6398
6509
  export interface AnswerServiceType {
6399
6510
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -1564,6 +1564,42 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
1564
1564
  * ```
1565
1565
  */
1566
1566
  hideIrrelevantChipsInLiveboardTabs?: boolean;
1567
+ /**
1568
+ * The Liveboard to run on regular intervals to fetch the cdw token.
1569
+ * @hidden
1570
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
1571
+ * @example
1572
+ * ```js
1573
+ * const embed = new LiveboardEmbed('#embed-container', {
1574
+ * ... // other options
1575
+ * oAuthPollingInterval: value in milliseconds,
1576
+ * })
1577
+ */
1578
+ oAuthPollingInterval?: number;
1579
+ /**
1580
+ * The Liveboard is set to force a token fetch during the initial load.
1581
+ * @hidden
1582
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
1583
+ * @example
1584
+ * ```js
1585
+ * const embed = new LiveboardEmbed('#embed-container', {
1586
+ * ... // other options
1587
+ * isForceRedirect: false,
1588
+ * })
1589
+ */
1590
+ isForceRedirect?: boolean;
1591
+ /**
1592
+ * The source connection ID for authentication.
1593
+ * @hidden
1594
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
1595
+ * @example
1596
+ * ```js
1597
+ * const embed = new LiveboardEmbed('#embed-container', {
1598
+ * ... // other options
1599
+ * dataSourceId: '',
1600
+ * })
1601
+ */
1602
+ dataSourceId?: string;
1567
1603
  }
1568
1604
  /**
1569
1605
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
@@ -1652,6 +1688,33 @@ export interface ConversationViewConfig extends ViewConfig {
1652
1688
  * Ability to pass a starting search query to the conversation.
1653
1689
  */
1654
1690
  searchOptions?: SearchOptions;
1691
+ /**
1692
+ * disableSourceSelection : Disables data source selection
1693
+ * but still display the selected data source.
1694
+ * @example
1695
+ * ```js
1696
+ * const embed = new ConversationEmbed('#tsEmbed', {
1697
+ * ... // other options
1698
+ * disableSourceSelection : true,
1699
+ * })
1700
+ * ```
1701
+ *
1702
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1703
+ */
1704
+ disableSourceSelection?: boolean;
1705
+ /**
1706
+ * hideSourceSelection : Hide data source selection
1707
+ * @example
1708
+ * ```js
1709
+ * const embed = new ConversationEmbed('#tsEmbed', {
1710
+ * ... // other options
1711
+ * hideSourceSelection : true,
1712
+ * })
1713
+ * ```
1714
+ *
1715
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1716
+ */
1717
+ hideSourceSelection?: boolean;
1655
1718
  }
1656
1719
  /**
1657
1720
  * Embed ThoughtSpot AI Conversation.
@@ -2755,6 +2818,13 @@ export interface ViewConfig {
2755
2818
  * @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
2756
2819
  */
2757
2820
  overrideOrgId?: number;
2821
+ /**
2822
+ * Flag to control new flip tooltip context menu experience
2823
+ *
2824
+ * @default false
2825
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
2826
+ */
2827
+ enableFlipTooltipToContextMenu?: boolean;
2758
2828
  }
2759
2829
  /**
2760
2830
  * MessagePayload: Embed event payload: message type, data and status (start/end)
@@ -4822,7 +4892,15 @@ export declare enum HostEvent {
4822
4892
  *```
4823
4893
  * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
4824
4894
  */
4825
- GetParameters = "GetParameters"
4895
+ GetParameters = "GetParameters",
4896
+ /**
4897
+ * Triggers update of persoanlised view for a liveboard
4898
+ * ```js
4899
+ * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
4900
+ * ```
4901
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
4902
+ */
4903
+ UpdatePersonalisedView = "UpdatePersonalisedView"
4826
4904
  }
4827
4905
  /**
4828
4906
  * The different visual modes that the data sources panel within
@@ -4895,6 +4973,8 @@ export declare enum Param {
4895
4973
  IsSageEmbed = "isSageEmbed",
4896
4974
  HideWorksheetSelector = "hideWorksheetSelector",
4897
4975
  DisableWorksheetChange = "disableWorksheetChange",
4976
+ HideSourceSelection = "hideSourceSelection",
4977
+ DisableSourceSelection = "disableSourceSelection",
4898
4978
  HideEurekaResults = "hideEurekaResults",
4899
4979
  HideEurekaSuggestions = "hideEurekaSuggestions",
4900
4980
  HideAutocompleteSuggestions = "hideAutocompleteSuggestions",
@@ -4936,7 +5016,11 @@ export declare enum Param {
4936
5016
  HideIrrelevantFiltersInTab = "hideIrrelevantFiltersAtTabLevel",
4937
5017
  SpotterEnabled = "isSpotterExperienceEnabled",
4938
5018
  IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
4939
- OverrideOrgId = "orgId"
5019
+ OverrideOrgId = "orgId",
5020
+ EnableFlipTooltipToContextMenu = "flipTooltipToContextMenuEnabled",
5021
+ OauthPollingInterval = "oAuthPollingInterval",
5022
+ IsForceRedirect = "isForceRedirect",
5023
+ DataSourceId = "dataSourceId"
4940
5024
  }
4941
5025
  /**
4942
5026
  * ThoughtSpot application pages include actions and menu commands
@@ -5985,7 +6069,34 @@ export declare enum Action {
5985
6069
  * ```
5986
6070
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
5987
6071
  */
5988
- ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab"
6072
+ ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab",
6073
+ /**
6074
+ * Action ID for hide/disable Preview data button in spotter
6075
+ * @example
6076
+ * ```js
6077
+ * hiddenAction: [Action.PreviewDataSpotter]
6078
+ * ```
6079
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6080
+ */
6081
+ PreviewDataSpotter = "previewDataSpotter",
6082
+ /**
6083
+ * Action ID for hide/disable reset button in spotter
6084
+ * @example
6085
+ * ```js
6086
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6087
+ * ```
6088
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6089
+ */
6090
+ ResetSpotterChat = "resetSpotterChat",
6091
+ /**
6092
+ * Action ID for hide/disable feedback in spotter
6093
+ * @example
6094
+ * ```js
6095
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6096
+ * ```
6097
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6098
+ */
6099
+ SpotterFeedback = "spotterFeedback"
5989
6100
  }
5990
6101
  export interface AnswerServiceType {
5991
6102
  getAnswer?: (offset: number, batchSize: number) => any;
@@ -959,6 +959,42 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
959
959
  * ```
960
960
  */
961
961
  hideIrrelevantChipsInLiveboardTabs?: boolean;
962
+ /**
963
+ * The Liveboard to run on regular intervals to fetch the cdw token.
964
+ * @hidden
965
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
966
+ * @example
967
+ * ```js
968
+ * const embed = new LiveboardEmbed('#embed-container', {
969
+ * ... // other options
970
+ * oAuthPollingInterval: value in milliseconds,
971
+ * })
972
+ */
973
+ oAuthPollingInterval?: number;
974
+ /**
975
+ * The Liveboard is set to force a token fetch during the initial load.
976
+ * @hidden
977
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
978
+ * @example
979
+ * ```js
980
+ * const embed = new LiveboardEmbed('#embed-container', {
981
+ * ... // other options
982
+ * isForceRedirect: false,
983
+ * })
984
+ */
985
+ isForceRedirect?: boolean;
986
+ /**
987
+ * The source connection ID for authentication.
988
+ * @hidden
989
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
990
+ * @example
991
+ * ```js
992
+ * const embed = new LiveboardEmbed('#embed-container', {
993
+ * ... // other options
994
+ * dataSourceId: '',
995
+ * })
996
+ */
997
+ dataSourceId?: string;
962
998
  }
963
999
  /**
964
1000
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already
@@ -1428,6 +1464,33 @@ export interface ConversationViewConfig extends ViewConfig {
1428
1464
  * Ability to pass a starting search query to the conversation.
1429
1465
  */
1430
1466
  searchOptions?: SearchOptions;
1467
+ /**
1468
+ * disableSourceSelection : Disables data source selection
1469
+ * but still display the selected data source.
1470
+ * @example
1471
+ * ```js
1472
+ * const embed = new ConversationEmbed('#tsEmbed', {
1473
+ * ... // other options
1474
+ * disableSourceSelection : true,
1475
+ * })
1476
+ * ```
1477
+ *
1478
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1479
+ */
1480
+ disableSourceSelection?: boolean;
1481
+ /**
1482
+ * hideSourceSelection : Hide data source selection
1483
+ * @example
1484
+ * ```js
1485
+ * const embed = new ConversationEmbed('#tsEmbed', {
1486
+ * ... // other options
1487
+ * hideSourceSelection : true,
1488
+ * })
1489
+ * ```
1490
+ *
1491
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
1492
+ */
1493
+ hideSourceSelection?: boolean;
1431
1494
  }
1432
1495
  /**
1433
1496
  * Embed ThoughtSpot AI Conversation.
@@ -2752,6 +2815,13 @@ export interface ViewConfig {
2752
2815
  * @version SDK: 1.35.0 | ThoughtSpot: 10.5.0.cl
2753
2816
  */
2754
2817
  overrideOrgId?: number;
2818
+ /**
2819
+ * Flag to control new flip tooltip context menu experience
2820
+ *
2821
+ * @default false
2822
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
2823
+ */
2824
+ enableFlipTooltipToContextMenu?: boolean;
2755
2825
  }
2756
2826
  /**
2757
2827
  * MessagePayload: Embed event payload: message type, data and status (start/end)
@@ -4819,7 +4889,15 @@ export enum HostEvent {
4819
4889
  *```
4820
4890
  * @version SDK: 1.29.0 | Thoughtspot: 10.1.0.cl
4821
4891
  */
4822
- GetParameters = "GetParameters"
4892
+ GetParameters = "GetParameters",
4893
+ /**
4894
+ * Triggers update of persoanlised view for a liveboard
4895
+ * ```js
4896
+ * liveboardEmbed.trigger(HostEvent.UpdatePersonalisedView, {viewId: '1234'})
4897
+ * ```
4898
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
4899
+ */
4900
+ UpdatePersonalisedView = "UpdatePersonalisedView"
4823
4901
  }
4824
4902
  /**
4825
4903
  * The different visual modes that the data sources panel within
@@ -4892,6 +4970,8 @@ export enum Param {
4892
4970
  IsSageEmbed = "isSageEmbed",
4893
4971
  HideWorksheetSelector = "hideWorksheetSelector",
4894
4972
  DisableWorksheetChange = "disableWorksheetChange",
4973
+ HideSourceSelection = "hideSourceSelection",
4974
+ DisableSourceSelection = "disableSourceSelection",
4895
4975
  HideEurekaResults = "hideEurekaResults",
4896
4976
  HideEurekaSuggestions = "hideEurekaSuggestions",
4897
4977
  HideAutocompleteSuggestions = "hideAutocompleteSuggestions",
@@ -4933,7 +5013,11 @@ export enum Param {
4933
5013
  HideIrrelevantFiltersInTab = "hideIrrelevantFiltersAtTabLevel",
4934
5014
  SpotterEnabled = "isSpotterExperienceEnabled",
4935
5015
  IsUnifiedSearchExperienceEnabled = "isUnifiedSearchExperienceEnabled",
4936
- OverrideOrgId = "orgId"
5016
+ OverrideOrgId = "orgId",
5017
+ EnableFlipTooltipToContextMenu = "flipTooltipToContextMenuEnabled",
5018
+ OauthPollingInterval = "oAuthPollingInterval",
5019
+ IsForceRedirect = "isForceRedirect",
5020
+ DataSourceId = "dataSourceId"
4937
5021
  }
4938
5022
  /**
4939
5023
  * ThoughtSpot application pages include actions and menu commands
@@ -5982,7 +6066,34 @@ export enum Action {
5982
6066
  * ```
5983
6067
  * @version SDK: 1.35.0 | Thoughtspot: 10.5.0.cl
5984
6068
  */
5985
- ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab"
6069
+ ChangeFilterVisibilityInTab = "changeFilterVisibilityInTab",
6070
+ /**
6071
+ * Action ID for hide/disable Preview data button in spotter
6072
+ * @example
6073
+ * ```js
6074
+ * hiddenAction: [Action.PreviewDataSpotter]
6075
+ * ```
6076
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6077
+ */
6078
+ PreviewDataSpotter = "previewDataSpotter",
6079
+ /**
6080
+ * Action ID for hide/disable reset button in spotter
6081
+ * @example
6082
+ * ```js
6083
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6084
+ * ```
6085
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6086
+ */
6087
+ ResetSpotterChat = "resetSpotterChat",
6088
+ /**
6089
+ * Action ID for hide/disable feedback in spotter
6090
+ * @example
6091
+ * ```js
6092
+ * hiddenAction: [Action.ChangeFilterVisibilityInTab]
6093
+ * ```
6094
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
6095
+ */
6096
+ SpotterFeedback = "spotterFeedback"
5986
6097
  }
5987
6098
  export interface AnswerServiceType {
5988
6099
  getAnswer?: (offset: number, batchSize: number) => any;
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thoughtspot/visual-embed-sdk",
3
- "version": "1.33.8",
3
+ "version": "1.33.10",
4
4
  "description": "ThoughtSpot Embed SDK",
5
5
  "module": "lib/src/index.js",
6
6
  "main": "dist/tsembed.js",
@@ -18,6 +18,33 @@ export interface ConversationViewConfig extends ViewConfig {
18
18
  * Ability to pass a starting search query to the conversation.
19
19
  */
20
20
  searchOptions?: SearchOptions;
21
+ /**
22
+ * disableSourceSelection : Disables data source selection
23
+ * but still display the selected data source.
24
+ * @example
25
+ * ```js
26
+ * const embed = new ConversationEmbed('#tsEmbed', {
27
+ * ... // other options
28
+ * disableSourceSelection : true,
29
+ * })
30
+ * ```
31
+ *
32
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
33
+ */
34
+ disableSourceSelection?: boolean;
35
+ /**
36
+ * hideSourceSelection : Hide data source selection
37
+ * @example
38
+ * ```js
39
+ * const embed = new ConversationEmbed('#tsEmbed', {
40
+ * ... // other options
41
+ * hideSourceSelection : true,
42
+ * })
43
+ * ```
44
+ *
45
+ * @version SDK: 1.36.0 | Thoughtspot: 10.6.0.cl
46
+ */
47
+ hideSourceSelection?: boolean;
21
48
  }
22
49
  /**
23
50
  * Embed ThoughtSpot AI Conversation.
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAS,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACtD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,iBAAkB,SAAQ,OAAO;IACN,SAAS,CAAC,UAAU,EAAE,sBAAsB;gBAApE,SAAS,EAAE,WAAW,EAAY,UAAU,EAAE,sBAAsB;IAKzE,YAAY;IAyBN,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAMpD"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAS,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAuB,SAAQ,UAAU;IACtD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;;;;;;;;;OAYG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,iBAAkB,SAAQ,OAAO;IACN,SAAS,CAAC,UAAU,EAAE,sBAAsB;gBAApE,SAAS,EAAE,WAAW,EAAY,UAAU,EAAE,sBAAsB;IAKzE,YAAY;IAiCN,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC;CAMpD"}
@@ -1,3 +1,4 @@
1
+ import isUndefined from 'lodash/isUndefined';
1
2
  import { ERROR_MESSAGE } from '../errors';
2
3
  import { Param } from '../types';
3
4
  import { TsEmbed } from './ts-embed';
@@ -24,13 +25,19 @@ export class ConversationEmbed extends TsEmbed {
24
25
  this.viewConfig = viewConfig;
25
26
  }
26
27
  getIframeSrc() {
27
- const { worksheetId, searchOptions, } = this.viewConfig;
28
+ const { worksheetId, searchOptions, disableSourceSelection, hideSourceSelection, } = this.viewConfig;
28
29
  const path = 'insights/conv-assist';
29
30
  if (!worksheetId) {
30
31
  this.handleError(ERROR_MESSAGE.SPOTTER_EMBED_WORKSHEED_ID_NOT_FOUND);
31
32
  }
32
33
  const queryParams = this.getBaseQueryParams();
33
34
  queryParams[Param.SpotterEnabled] = true;
35
+ if (!isUndefined(disableSourceSelection)) {
36
+ queryParams[Param.DisableSourceSelection] = !!disableSourceSelection;
37
+ }
38
+ if (!isUndefined(hideSourceSelection)) {
39
+ queryParams[Param.HideSourceSelection] = !!hideSourceSelection;
40
+ }
34
41
  let query = '';
35
42
  const queryParamsString = getQueryParamString(queryParams, true);
36
43
  if (queryParamsString) {
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.js","sourceRoot":"","sources":["../../../src/embed/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAc,KAAK,EAA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AAE;YACnC,WAAW,CAAC,KAAK,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,mBAAmB,CAAC;SAClE;QAED,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACjE,IAAI,iBAAiB,EAAE;YACnB,KAAK,GAAG,IAAI,iBAAiB,EAAE,CAAC;SACnC;QACD,MAAM,gBAAgB,GAAG,IAAI,CAAC,2BAA2B,CAAC;YACtD,SAAS,EAAE,WAAW;YACtB,KAAK,EAAE,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW,KAAI,EAAE;SAC1C,CAAC,CAAC;QAEH,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,IAAI,GAAG,gBAAgB,EAAE,CAAC;IAC9E,CAAC;IAEM,KAAK,CAAC,MAAM;QACf,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
@@ -26,6 +26,30 @@ describe('ConversationEmbed', () => {
26
26
  await conversationEmbed.render();
27
27
  expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/v2/?${defaultParams}&isSpotterExperienceEnabled=true#/embed/insights/conv-assist?worksheet=worksheetId&query=searchQuery`);
28
28
  });
29
+ it('should render the conversation embed with worksheets disabled', async () => {
30
+ const viewConfig = {
31
+ worksheetId: 'worksheetId',
32
+ searchOptions: {
33
+ searchQuery: 'searchQuery',
34
+ },
35
+ disableSourceSelection: true,
36
+ };
37
+ const conversationEmbed = new ConversationEmbed(getRootEl(), viewConfig);
38
+ await conversationEmbed.render();
39
+ expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/v2/?${defaultParams}&isSpotterExperienceEnabled=true&disableSourceSelection=true#/embed/insights/conv-assist?worksheet=worksheetId&query=searchQuery`);
40
+ });
41
+ it('should render the conversation embed with worksheets hidden', async () => {
42
+ const viewConfig = {
43
+ worksheetId: 'worksheetId',
44
+ searchOptions: {
45
+ searchQuery: 'searchQuery',
46
+ },
47
+ hideSourceSelection: true,
48
+ };
49
+ const conversationEmbed = new ConversationEmbed(getRootEl(), viewConfig);
50
+ await conversationEmbed.render();
51
+ expectUrlMatchesWithParams(getIFrameSrc(), `http://${thoughtSpotHost}/v2/?${defaultParams}&isSpotterExperienceEnabled=true&hideSourceSelection=true#/embed/insights/conv-assist?worksheet=worksheetId&query=searchQuery`);
52
+ });
29
53
  it('should handle error when worksheetId is not provided', async () => {
30
54
  const viewConfig = {
31
55
  worksheetId: '',
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.spec.js","sourceRoot":"","sources":["../../../src/embed/conversation.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,GAEpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,YAAY,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAU,QAAQ,EAAmB,MAAM,UAAU,CAAC;AAC7D,OAAO,EAEH,eAAe,EACf,YAAY,EACZ,SAAS,EAET,iCAAiC,IAAI,aAAa,EAClD,0BAA0B,GAC7B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEjC,SAAS,CAAC,GAAG,EAAE;IACX,IAAI,CAAC;QACD,eAAe;QACf,QAAQ,EAAE,QAAQ,CAAC,IAAI;KAC1B,CAAC,CAAC;IACH,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CA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IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -319,6 +319,42 @@ export interface LiveboardViewConfig extends Omit<ViewConfig, 'hiddenHomepageMod
319
319
  * ```
320
320
  */
321
321
  hideIrrelevantChipsInLiveboardTabs?: boolean;
322
+ /**
323
+ * The Liveboard to run on regular intervals to fetch the cdw token.
324
+ * @hidden
325
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
326
+ * @example
327
+ * ```js
328
+ * const embed = new LiveboardEmbed('#embed-container', {
329
+ * ... // other options
330
+ * oAuthPollingInterval: value in milliseconds,
331
+ * })
332
+ */
333
+ oAuthPollingInterval?: number;
334
+ /**
335
+ * The Liveboard is set to force a token fetch during the initial load.
336
+ * @hidden
337
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
338
+ * @example
339
+ * ```js
340
+ * const embed = new LiveboardEmbed('#embed-container', {
341
+ * ... // other options
342
+ * isForceRedirect: false,
343
+ * })
344
+ */
345
+ isForceRedirect?: boolean;
346
+ /**
347
+ * The source connection ID for authentication.
348
+ * @hidden
349
+ * @version SDK: 1.35.0 | ThoughtSpot:10.6.0.cl
350
+ * @example
351
+ * ```js
352
+ * const embed = new LiveboardEmbed('#embed-container', {
353
+ * ... // other options
354
+ * dataSourceId: '',
355
+ * })
356
+ */
357
+ dataSourceId?: string;
322
358
  }
323
359
  /**
324
360
  * Embed a ThoughtSpot Liveboard or visualization. When rendered it already