@thoughtspot/visual-embed-sdk 1.40.1-alpha.2 → 1.40.1
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 +7 -6
- package/cjs/src/css-variables.d.ts +316 -0
- package/cjs/src/css-variables.d.ts.map +1 -1
- package/cjs/src/embed/app.d.ts +6 -1
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js +22 -0
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/app.spec.js +39 -2
- package/cjs/src/embed/app.spec.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +0 -1
- package/cjs/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/cjs/src/embed/bodyless-conversation.js +3 -7
- package/cjs/src/embed/bodyless-conversation.js.map +1 -1
- package/cjs/src/embed/conversation.d.ts +63 -3
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +11 -8
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +102 -0
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts +11 -3
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +23 -33
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/liveboard.spec.js +182 -29
- package/cjs/src/embed/liveboard.spec.js.map +1 -1
- package/cjs/src/embed/sage.d.ts +0 -1
- package/cjs/src/embed/sage.d.ts.map +1 -1
- package/cjs/src/embed/sage.js +6 -10
- package/cjs/src/embed/sage.js.map +1 -1
- package/cjs/src/embed/search-bar.d.ts +0 -1
- package/cjs/src/embed/search-bar.d.ts.map +1 -1
- package/cjs/src/embed/search-bar.js +7 -11
- package/cjs/src/embed/search-bar.js.map +1 -1
- package/cjs/src/embed/search.d.ts +0 -1
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js +8 -7
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/embed/ts-embed.d.ts +22 -9
- package/cjs/src/embed/ts-embed.d.ts.map +1 -1
- package/cjs/src/embed/ts-embed.js +75 -59
- package/cjs/src/embed/ts-embed.js.map +1 -1
- package/cjs/src/embed/ts-embed.spec.js +173 -1
- package/cjs/src/embed/ts-embed.spec.js.map +1 -1
- package/cjs/src/types.d.ts +154 -54
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +140 -52
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/liveboardService/liveboardService.d.ts +21 -6
- package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/cjs/src/utils/liveboardService/liveboardService.js +21 -6
- package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -1
- package/dist/{index-CmEQfuE3.js → index-P5YjBOuJ.js} +1 -1
- package/dist/src/css-variables.d.ts +316 -0
- package/dist/src/css-variables.d.ts.map +1 -1
- package/dist/src/embed/app.d.ts +6 -1
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +0 -1
- package/dist/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/dist/src/embed/conversation.d.ts +63 -3
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts +11 -3
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/sage.d.ts +0 -1
- package/dist/src/embed/sage.d.ts.map +1 -1
- package/dist/src/embed/search-bar.d.ts +0 -1
- package/dist/src/embed/search-bar.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +0 -1
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/embed/ts-embed.d.ts +22 -9
- package/dist/src/embed/ts-embed.d.ts.map +1 -1
- package/dist/src/types.d.ts +154 -54
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/liveboardService/liveboardService.d.ts +21 -6
- package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +298 -190
- package/dist/tsembed-react.js +297 -189
- package/dist/tsembed.es.js +319 -196
- package/dist/tsembed.js +318 -195
- package/dist/visual-embed-sdk-react-full.d.ts +583 -76
- package/dist/visual-embed-sdk-react.d.ts +583 -76
- package/dist/visual-embed-sdk.d.ts +583 -76
- package/lib/package.json +7 -6
- package/lib/src/css-variables.d.ts +316 -0
- package/lib/src/css-variables.d.ts.map +1 -1
- package/lib/src/embed/app.d.ts +6 -1
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js +22 -0
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/app.spec.js +39 -2
- package/lib/src/embed/app.spec.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +0 -1
- package/lib/src/embed/bodyless-conversation.d.ts.map +1 -1
- package/lib/src/embed/bodyless-conversation.js +3 -7
- package/lib/src/embed/bodyless-conversation.js.map +1 -1
- package/lib/src/embed/conversation.d.ts +63 -3
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +12 -9
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +104 -2
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts +11 -3
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +23 -33
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/liveboard.spec.js +182 -29
- package/lib/src/embed/liveboard.spec.js.map +1 -1
- package/lib/src/embed/sage.d.ts +0 -1
- package/lib/src/embed/sage.d.ts.map +1 -1
- package/lib/src/embed/sage.js +6 -10
- package/lib/src/embed/sage.js.map +1 -1
- package/lib/src/embed/search-bar.d.ts +0 -1
- package/lib/src/embed/search-bar.d.ts.map +1 -1
- package/lib/src/embed/search-bar.js +7 -11
- package/lib/src/embed/search-bar.js.map +1 -1
- package/lib/src/embed/search.d.ts +0 -1
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js +8 -7
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/embed/ts-embed.d.ts +22 -9
- package/lib/src/embed/ts-embed.d.ts.map +1 -1
- package/lib/src/embed/ts-embed.js +75 -59
- package/lib/src/embed/ts-embed.js.map +1 -1
- package/lib/src/embed/ts-embed.spec.js +173 -1
- package/lib/src/embed/ts-embed.spec.js.map +1 -1
- package/lib/src/types.d.ts +154 -54
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +140 -52
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/liveboardService/liveboardService.d.ts +21 -6
- package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/lib/src/utils/liveboardService/liveboardService.js +21 -6
- package/lib/src/utils/liveboardService/liveboardService.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +584 -77
- package/package.json +7 -6
- package/src/css-variables.ts +396 -1
- package/src/embed/app.spec.ts +54 -2
- package/src/embed/app.ts +24 -0
- package/src/embed/bodyless-conversation.ts +3 -9
- package/src/embed/conversation.spec.ts +131 -5
- package/src/embed/conversation.ts +87 -23
- package/src/embed/liveboard.spec.ts +233 -32
- package/src/embed/liveboard.ts +24 -39
- package/src/embed/sage.ts +6 -11
- package/src/embed/search-bar.tsx +7 -14
- package/src/embed/search.ts +7 -18
- package/src/embed/ts-embed.spec.ts +344 -112
- package/src/embed/ts-embed.ts +82 -70
- package/src/types.ts +153 -54
- package/src/utils/liveboardService/liveboardService.ts +21 -6
- package/dist/index-D1pyb7RG.js +0 -7371
- package/dist/index-DeFzsyFF.js +0 -7371
- package/dist/index-Dpf0rd6w.js +0 -7371
- package/dist/index-UuEbsISo.js +0 -7447
- package/dist/index-e3Uw3YFO.js +0 -7371
- package/dist/index-k7pkZMhx.js +0 -7371
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughtspot/visual-embed-sdk",
|
|
3
|
-
"version": "1.40.1
|
|
3
|
+
"version": "1.40.1",
|
|
4
4
|
"description": "ThoughtSpot Embed SDK",
|
|
5
5
|
"module": "lib/src/index.js",
|
|
6
6
|
"main": "dist/tsembed.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"size-limit": [
|
|
39
39
|
{
|
|
40
40
|
"path": "dist/tsembed.es.js",
|
|
41
|
-
"limit": "
|
|
41
|
+
"limit": "32 kB"
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
"scripts": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"docgen": "typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck",
|
|
56
56
|
"test-sdk": "jest -c jest.config.sdk.js --runInBand",
|
|
57
57
|
"test": "npm run test-sdk",
|
|
58
|
-
"posttest": "cat ./coverage/sdk/lcov.info | coveralls",
|
|
58
|
+
"posttest": "cat ./coverage/sdk/lcov.info | npx coveralls-next",
|
|
59
59
|
"is-publish-allowed": "node scripts/is-publish-allowed.js",
|
|
60
60
|
"prepublishOnly": "npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build",
|
|
61
61
|
"check-size": "npm run build && size-limit",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@rollup/plugin-json": "^4.1.0",
|
|
86
86
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
87
87
|
"@rollup/plugin-replace": "^5.0.2",
|
|
88
|
-
"@size-limit/preset-big-lib": "^
|
|
88
|
+
"@size-limit/preset-big-lib": "^11.2.0",
|
|
89
89
|
"@testing-library/dom": "^7.31.0",
|
|
90
90
|
"@testing-library/jest-dom": "^5.14.1",
|
|
91
91
|
"@testing-library/react": "^11.2.7",
|
|
@@ -96,11 +96,12 @@
|
|
|
96
96
|
"@types/react-test-renderer": "^17.0.1",
|
|
97
97
|
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
|
98
98
|
"@typescript-eslint/parser": "^8.28.0",
|
|
99
|
+
"ajv": "^8.17.1",
|
|
99
100
|
"asciidoctor": "^2.2.1",
|
|
100
101
|
"babel-jest": "^26.6.3",
|
|
101
102
|
"babel-preset-gatsby": "^1.10.0",
|
|
102
103
|
"command-line-args": "^5.1.1",
|
|
103
|
-
"coveralls": "^
|
|
104
|
+
"coveralls-next": "^5.0.0",
|
|
104
105
|
"crypto": "^1.0.1",
|
|
105
106
|
"current-git-branch": "^1.1.0",
|
|
106
107
|
"dts-bundle": "^0.7.3",
|
|
@@ -120,7 +121,7 @@
|
|
|
120
121
|
"highlight.js": "^10.6.0",
|
|
121
122
|
"html-to-text": "^8.0.0",
|
|
122
123
|
"identity-obj-proxy": "^3.0.0",
|
|
123
|
-
"istanbul-merge": "^
|
|
124
|
+
"istanbul-merge": "^2.0.0",
|
|
124
125
|
"jest": "^26.6.3",
|
|
125
126
|
"jest-fetch-mock": "^3.0.3",
|
|
126
127
|
"jsdom": "^17.0.0",
|
package/src/css-variables.ts
CHANGED
|
@@ -472,4 +472,399 @@ export interface CustomCssVariables {
|
|
|
472
472
|
* Background color of checkbox.
|
|
473
473
|
*/
|
|
474
474
|
'--ts-var-checkbox-background-color'?: string;
|
|
475
|
-
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Height of the tiles in the Liveboard.
|
|
478
|
+
*/
|
|
479
|
+
'--ts-var-viz-tile-height'?: string;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Background color of the layout in the Liveboard.
|
|
483
|
+
*/
|
|
484
|
+
'--ts-var-liveboard-layout-background'?: string;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Font color of the title of the layout in the Liveboard.
|
|
488
|
+
*/
|
|
489
|
+
'--ts-var-liveboard-layout-title-color'?: string;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Font size of the title of the layout in the Liveboard.
|
|
493
|
+
*/
|
|
494
|
+
'--ts-var-liveboard-layout-title-fontsize'?: string;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Background color of the header in the Liveboard.
|
|
498
|
+
*/
|
|
499
|
+
'--ts-var-liveboard-header-background'?: string;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Font size of the header in the Liveboard.
|
|
503
|
+
*/
|
|
504
|
+
'--ts-var-liveboard-header-fontsize'?: string;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Font color of the header in the Liveboard.
|
|
508
|
+
*/
|
|
509
|
+
'--ts-var-liveboard-header-font-color'?: string;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Border color of the tiles in the Liveboard.
|
|
513
|
+
*/
|
|
514
|
+
'--ts-var-liveboard-tile-border-color'?: string;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Background color of the tiles in the Liveboard.
|
|
518
|
+
*/
|
|
519
|
+
'--ts-var-liveboard-tile-background'?: string;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Border radius of the tiles in the Liveboard.
|
|
523
|
+
*/
|
|
524
|
+
'--ts-var-liveboard-tile-border-radius'?: string;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Padding of the tiles in the Liveboard.
|
|
528
|
+
*/
|
|
529
|
+
'--ts-var-liveboard-tile-padding'?: string;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Background color of the table header in the Liveboard.
|
|
533
|
+
*/
|
|
534
|
+
'--ts-var-liveboard-tile-table-header-background'?: string;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Padding of the groups in the Liveboard.
|
|
538
|
+
*/
|
|
539
|
+
'--ts-var-liveboard-group-padding'?: string;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Padding of the title of the groups in the Liveboard.
|
|
543
|
+
*/
|
|
544
|
+
'--ts-var-liveboard-group-title-padding'?: string;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Font size of the title of the groups in the Liveboard.
|
|
548
|
+
*/
|
|
549
|
+
'--ts-var-liveboard-group-title-font-size'?: string;
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Font weight of the title of the groups in the Liveboard.
|
|
553
|
+
*/
|
|
554
|
+
'--ts-var-liveboard-group-title-font-weight'?: string;
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Font size of the title of the tiles inside the groups in the Liveboard.
|
|
558
|
+
*/
|
|
559
|
+
'--ts-var-liveboard-group-tile-title-font-size'?: string;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Font weight of the title of the tiles inside the groups in the Liveboard.
|
|
563
|
+
*/
|
|
564
|
+
'--ts-var-liveboard-group-tile-title-font-weight'?: string;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Font size of the description of the groups in the Liveboard.
|
|
568
|
+
*/
|
|
569
|
+
'--ts-var-liveboard-group-description-font-size'?: string;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Font weight of the description of the groups in the Liveboard.
|
|
573
|
+
*/
|
|
574
|
+
'--ts-var-liveboard-group-description-font-weight'?: string;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Border of the tiles in the Liveboard.
|
|
578
|
+
*/
|
|
579
|
+
'--ts-var-liveboard-group-tile-border'?: string;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Padding of the tiles in the Liveboard.
|
|
583
|
+
*/
|
|
584
|
+
'--ts-var-liveboard-group-tile-padding'?: string;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Padding of the answer viz in the Liveboard.
|
|
588
|
+
*/
|
|
589
|
+
'--ts-var-liveboard-answer-viz-padding'?: string;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Background color of the groups in the Liveboard.
|
|
593
|
+
*/
|
|
594
|
+
'--ts-var-liveboard-group-background'?: string;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Border color of the groups in the Liveboard.
|
|
598
|
+
*/
|
|
599
|
+
'--ts-var-liveboard-group-border-color'?: string;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Font color of the heading of the note title in the Liveboard.
|
|
603
|
+
*/
|
|
604
|
+
'--ts-var-liveboard-notetitle-heading-font-color'?: string;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Font color of the body of the note title in the Liveboard.
|
|
608
|
+
*/
|
|
609
|
+
'--ts-var-liveboard-notetitle-body-font-color'?: string;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Font color of the title of the groups in the Liveboard.
|
|
613
|
+
*/
|
|
614
|
+
'--ts-var-liveboard-group-title-font-color'?: string;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Font color of the description of the groups in the Liveboard.
|
|
618
|
+
*/
|
|
619
|
+
'--ts-var-liveboard-group-description-font-color'?: string;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Font color of the title of the tiles inside the groups in the Liveboard.
|
|
623
|
+
*/
|
|
624
|
+
'--ts-var-liveboard-group-tile-title-font-color'?: string;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Background color of the tiles inside the groups in the Liveboard.
|
|
628
|
+
*/
|
|
629
|
+
'--ts-var-liveboard-group-tile-background'?: string;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Background color of the chips in the Liveboard.
|
|
633
|
+
*/
|
|
634
|
+
'--ts-var-liveboard-chip-background'?: string;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Font color of the chips in the Liveboard.
|
|
638
|
+
*/
|
|
639
|
+
'--ts-var-liveboard-chip-color'?: string;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* Background color of the chips in the Liveboard on hover.
|
|
643
|
+
*/
|
|
644
|
+
'--ts-var-liveboard-chip--hover-background'?: string;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Font color of the chips in the Liveboard on hover.
|
|
648
|
+
*/
|
|
649
|
+
'--ts-var-liveboard-chip--hover-color'?: string;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Background color of the chips in the Liveboard on active.
|
|
653
|
+
*/
|
|
654
|
+
'--ts-var-liveboard-chip--active-background'?: string;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Font color of the chips in the Liveboard on active.
|
|
658
|
+
*/
|
|
659
|
+
'--ts-var-liveboard-chip--active-color'?: string;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Width of the side panel in the Liveboard.
|
|
663
|
+
*/
|
|
664
|
+
'--ts-var-side-panel-width'?: string;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Background color of the edit bar in the Liveboard.
|
|
668
|
+
*/
|
|
669
|
+
'--ts-var-liveboard-edit-bar-background'?: string;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Breakpoint for the dual column layout in the Liveboard.
|
|
673
|
+
*/
|
|
674
|
+
'--ts-var-liveboard-dual-column-breakpoint'?: string;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Breakpoint for the single column layout in the Liveboard.
|
|
678
|
+
*/
|
|
679
|
+
'--ts-var-liveboard-single-column-breakpoint'?: string;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Background color of the cross filter layout in the Liveboard.
|
|
683
|
+
*/
|
|
684
|
+
'--ts-var-liveboard-cross-filter-layout-background'?: string;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Border color of the active tab in the Liveboard.
|
|
688
|
+
*/
|
|
689
|
+
'--ts-var-liveboard-tab-active-border-color'?: string;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* Font color of the hover tab in the Liveboard.
|
|
693
|
+
*/
|
|
694
|
+
'--ts-var-liveboard-tab-hover-color'?: string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Font size of the title of the tiles in the Liveboard.
|
|
698
|
+
*/
|
|
699
|
+
'--ts-var-liveboard-tile-title-fontsize'?: string;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Font weight of the title of the tiles in the Liveboard.
|
|
703
|
+
*/
|
|
704
|
+
'--ts-var-liveboard-tile-title-fontweight'?: string;
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Font weight of the description of the tiles in the Liveboard.
|
|
708
|
+
*/
|
|
709
|
+
'--ts-var-liveboard-tile-description-font-weight'?: string;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Opacity of the description of the tiles in the Liveboard.
|
|
713
|
+
*/
|
|
714
|
+
'--ts-var-liveboard-tile-description-opacity'?: string;
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Background color of the parameter chips in the Liveboard.
|
|
718
|
+
*/
|
|
719
|
+
'--ts-var-parameter-chip-background'?: string;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Font color of the parameter chips in the Liveboard.
|
|
723
|
+
*/
|
|
724
|
+
'--ts-var-parameter-chip-text-color'?: string;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Background color of the parameter chips in the Liveboard on hover.
|
|
728
|
+
*/
|
|
729
|
+
'--ts-var-parameter-chip-hover-background'?: string;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Font color of the parameter chips in the Liveboard on hover.
|
|
733
|
+
*/
|
|
734
|
+
'--ts-var-parameter-chip-hover-text-color'?: string;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Background color of the parameter chips in the Liveboard on active.
|
|
738
|
+
*/
|
|
739
|
+
'--ts-var-parameter-chip-active-background'?: string;
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Font color of the parameter chips in the Liveboard on active.
|
|
743
|
+
*/
|
|
744
|
+
'--ts-var-parameter-chip-active-text-color'?: string;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Background color of the action button in the Liveboard header.
|
|
748
|
+
*/
|
|
749
|
+
'--ts-var-liveboard-header-action-button-background'?: string;
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Font color of the action button in the Liveboard header.
|
|
753
|
+
*/
|
|
754
|
+
'--ts-var-liveboard-header-action-button-font-color'?: string;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Font color of the action button in the Liveboard header on hover.
|
|
758
|
+
*/
|
|
759
|
+
'--ts-var-liveboard-header-action-button-hover-color'?: string;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Font color of the action button in the Liveboard header on active.
|
|
763
|
+
*/
|
|
764
|
+
'--ts-var-liveboard-header-action-button-active-color'?: string;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Background color of the badge in the Liveboard header.
|
|
768
|
+
*/
|
|
769
|
+
'--ts-var-liveboard-header-badge-background'?: string;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Font color of the badge in the Liveboard header.
|
|
773
|
+
*/
|
|
774
|
+
'--ts-var-liveboard-header-badge-font-color'?: string;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Background color of the modified badge in the Liveboard header.
|
|
778
|
+
*/
|
|
779
|
+
'--ts-var-liveboard-header-badge-modified-background'?: string;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Font color of the modified badge in the Liveboard header.
|
|
783
|
+
*/
|
|
784
|
+
'--ts-var-liveboard-header-badge-modified-font-color'?: string;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Font color of the badge in the Liveboard header on hover.
|
|
788
|
+
*/
|
|
789
|
+
'--ts-var-liveboard-header-badge-hover-color'?: string;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Font color of the badge in the Liveboard header on active.
|
|
793
|
+
*/
|
|
794
|
+
'--ts-var-liveboard-header-badge-active-color'?: string;
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Font color of the hero text in the KPI widget.
|
|
798
|
+
*/
|
|
799
|
+
'--ts-var-kpi-hero-color'?: string;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Font color of the comparison text in the KPI widget.
|
|
803
|
+
*/
|
|
804
|
+
'--ts-var-kpi-comparison-color'?: string;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Font color of the analyze text in the KPI widget.
|
|
808
|
+
*/
|
|
809
|
+
'--ts-var-kpi-analyze-text-color'?: string;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Font color of the legend title in the heatmap chart.
|
|
813
|
+
*/
|
|
814
|
+
'--ts-var-chart-heatmap-legend-title-color'?: string;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Font color of the legend label in the heatmap chart.
|
|
818
|
+
*/
|
|
819
|
+
'--ts-var-chart-heatmap-legend-label-color'?: string;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Font color of the legend title in the treemap chart.
|
|
823
|
+
*/
|
|
824
|
+
'--ts-var-chart-treemap-legend-title-color'?: string;
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Font color of the legend label in the treemap chart.
|
|
828
|
+
*/
|
|
829
|
+
'--ts-var-chart-treemap-legend-label-color'?: string;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Color of the positive change in the KPI.
|
|
833
|
+
*/
|
|
834
|
+
'--ts-var-kpi-positive-change-color'?: string;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Color of the negative change in the KPI.
|
|
838
|
+
*/
|
|
839
|
+
'--ts-var-kpi-negative-change-color'?: string;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Background color of the change analysis insights.
|
|
843
|
+
*/
|
|
844
|
+
'--ts-var-change-analysis-insights-background'?: string;
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* Background color of the forecasting card in the SpotIQ analyze.
|
|
848
|
+
*/
|
|
849
|
+
'--ts-var-spotiq-analyze-forecasting-card-background'?: string;
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Background color of the outlier card in the SpotIQ analyze.
|
|
853
|
+
*/
|
|
854
|
+
'--ts-var-spotiq-analyze-outlier-card-background'?: string;
|
|
855
|
+
|
|
856
|
+
/**
|
|
857
|
+
* Background color of the trend card in the SpotIQ analyze.
|
|
858
|
+
*/
|
|
859
|
+
'--ts-var-spotiq-analyze-trend-card-background'?: string;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Background color of the crosscorrelation card in the SpotIQ analyze.
|
|
863
|
+
*/
|
|
864
|
+
'--ts-var-spotiq-analyze-crosscorrelation-card-background'?: string;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Background color of the summary header in the CCA modal.
|
|
868
|
+
*/
|
|
869
|
+
'--ts-var-cca-modal-summary-header-background'?: string;
|
|
870
|
+
}
|
package/src/embed/app.spec.ts
CHANGED
|
@@ -593,9 +593,10 @@ describe('App embed tests', () => {
|
|
|
593
593
|
});
|
|
594
594
|
});
|
|
595
595
|
|
|
596
|
-
test('Should add navigationVersion=v3 & modularHomeExperience=
|
|
596
|
+
test('Should add navigationVersion=v3 & modularHomeExperience=true when primaryNavbarVersion is Sliding to the iframe src', async () => {
|
|
597
597
|
const appEmbed = new AppEmbed(getRootEl(), {
|
|
598
598
|
...defaultViewConfig,
|
|
599
|
+
// Not included the homePage v2 config under discoveryExperience.
|
|
599
600
|
discoveryExperience: {
|
|
600
601
|
primaryNavbarVersion: PrimaryNavbarVersion.Sliding,
|
|
601
602
|
},
|
|
@@ -605,7 +606,58 @@ describe('App embed tests', () => {
|
|
|
605
606
|
await executeAfterWait(() => {
|
|
606
607
|
expectUrlMatchesWithParams(
|
|
607
608
|
getIFrameSrc(),
|
|
608
|
-
`http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=
|
|
609
|
+
`http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true&navigationVersion=v3${defaultParams}${defaultParamsPost}#/home`,
|
|
610
|
+
);
|
|
611
|
+
});
|
|
612
|
+
});
|
|
613
|
+
|
|
614
|
+
test('Should add homepageVersion=v3 & navigationVersion=v3 & modularHomeExperience=true when Sliding and ModularWithStylingChanges configured in the iframe src', async () => {
|
|
615
|
+
const appEmbed = new AppEmbed(getRootEl(), {
|
|
616
|
+
...defaultViewConfig,
|
|
617
|
+
discoveryExperience: {
|
|
618
|
+
primaryNavbarVersion: PrimaryNavbarVersion.Sliding,
|
|
619
|
+
homePage: HomePage.ModularWithStylingChanges,
|
|
620
|
+
},
|
|
621
|
+
} as AppViewConfig);
|
|
622
|
+
|
|
623
|
+
appEmbed.render();
|
|
624
|
+
await executeAfterWait(() => {
|
|
625
|
+
expectUrlMatchesWithParams(
|
|
626
|
+
getIFrameSrc(),
|
|
627
|
+
`http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=true&navigationVersion=v3&homepageVersion=v3${defaultParams}${defaultParamsPost}#/home`,
|
|
628
|
+
);
|
|
629
|
+
});
|
|
630
|
+
});
|
|
631
|
+
|
|
632
|
+
test('Should add homepageVersion=v3 & navigationVersion=v3 & modularHomeExperience=true when homePage is ModularWithStylingChanges to the iframe src', async () => {
|
|
633
|
+
const appEmbed = new AppEmbed(getRootEl(), {
|
|
634
|
+
...defaultViewConfig,
|
|
635
|
+
// primaryNavbarVersion is not included under discoveryExperience,
|
|
636
|
+
// then it set navigationVersion=v2 and modularHomeExperience=false.
|
|
637
|
+
discoveryExperience: {
|
|
638
|
+
homePage: HomePage.ModularWithStylingChanges,
|
|
639
|
+
},
|
|
640
|
+
} as AppViewConfig);
|
|
641
|
+
|
|
642
|
+
appEmbed.render();
|
|
643
|
+
await executeAfterWait(() => {
|
|
644
|
+
expectUrlMatchesWithParams(
|
|
645
|
+
getIFrameSrc(),
|
|
646
|
+
`http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&navigationVersion=v2&homepageVersion=v3${defaultParams}${defaultParamsPost}#/home`,
|
|
647
|
+
);
|
|
648
|
+
});
|
|
649
|
+
});
|
|
650
|
+
|
|
651
|
+
test('Should add navigationVersion=v2 when primaryNavbarVersion is not added to the iframe src', async () => {
|
|
652
|
+
const appEmbed = new AppEmbed(getRootEl(), {
|
|
653
|
+
...defaultViewConfig,
|
|
654
|
+
} as AppViewConfig);
|
|
655
|
+
|
|
656
|
+
appEmbed.render();
|
|
657
|
+
await executeAfterWait(() => {
|
|
658
|
+
expectUrlMatchesWithParams(
|
|
659
|
+
getIFrameSrc(),
|
|
660
|
+
`http://${thoughtSpotHost}/?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false&modularHomeExperience=false&navigationVersion=v2${defaultParams}${defaultParamsPost}#/home`,
|
|
609
661
|
);
|
|
610
662
|
});
|
|
611
663
|
});
|
package/src/embed/app.ts
CHANGED
|
@@ -107,6 +107,11 @@ export enum HomePage {
|
|
|
107
107
|
* It serves as the foundational version of the home page.
|
|
108
108
|
*/
|
|
109
109
|
Modular = 'v2',
|
|
110
|
+
/**
|
|
111
|
+
* ModularWithStylingChanges (v3) introduces Modular Home Experience
|
|
112
|
+
* with styling changes.
|
|
113
|
+
*/
|
|
114
|
+
ModularWithStylingChanges = 'v3',
|
|
110
115
|
}
|
|
111
116
|
|
|
112
117
|
/**
|
|
@@ -740,10 +745,21 @@ export class AppEmbed extends V1Embed {
|
|
|
740
745
|
params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
|
|
741
746
|
}
|
|
742
747
|
|
|
748
|
+
// Set navigation to v2 by default to avoid problems like the app
|
|
749
|
+
// switcher (9-dot menu) not showing when v3 navigation is turned on
|
|
750
|
+
// at the cluster level.
|
|
751
|
+
// To use v3 navigation, we must manually set the discoveryExperience
|
|
752
|
+
// settings.
|
|
753
|
+
params[Param.NavigationVersion] = 'v2';
|
|
754
|
+
// Set homePageVersion to v2 by default to reset the LD flag value
|
|
755
|
+
// for the homepageVersion.
|
|
756
|
+
params[Param.HomepageVersion] = 'v2';
|
|
743
757
|
if (discoveryExperience) {
|
|
744
758
|
// primaryNavbarVersion v3 will enabled the new left navigation
|
|
745
759
|
if (discoveryExperience.primaryNavbarVersion === PrimaryNavbarVersion.Sliding) {
|
|
746
760
|
params[Param.NavigationVersion] = discoveryExperience.primaryNavbarVersion;
|
|
761
|
+
// Enable the modularHomeExperience when Sliding is enabled.
|
|
762
|
+
params[Param.ModularHomeExperienceEnabled] = true;
|
|
747
763
|
}
|
|
748
764
|
|
|
749
765
|
// homePage v2 will enable the modular home page
|
|
@@ -751,6 +767,14 @@ export class AppEmbed extends V1Embed {
|
|
|
751
767
|
if (discoveryExperience.homePage === HomePage.Modular) {
|
|
752
768
|
params[Param.ModularHomeExperienceEnabled] = true;
|
|
753
769
|
}
|
|
770
|
+
|
|
771
|
+
// ModularWithStylingChanges (v3) introduces the styling changes
|
|
772
|
+
// to the Modular Homepage.
|
|
773
|
+
// v3 will be the base version of homePageVersion.
|
|
774
|
+
if (discoveryExperience.homePage === HomePage.ModularWithStylingChanges) {
|
|
775
|
+
params[Param.HomepageVersion] = HomePage.ModularWithStylingChanges;
|
|
776
|
+
}
|
|
777
|
+
|
|
754
778
|
// listPageVersion v3 will enable the new list page
|
|
755
779
|
if (discoveryExperience.listPageVersion === ListPage.ListWithUXChanges) {
|
|
756
780
|
params[Param.ListPageVersion] = discoveryExperience.listPageVersion;
|
|
@@ -39,14 +39,6 @@ export class ConversationMessage extends TsEmbed {
|
|
|
39
39
|
super(container, viewConfig);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
protected getEmbedParamsObject() {
|
|
43
|
-
const queryParams = this.getBaseQueryParams();
|
|
44
|
-
|
|
45
|
-
queryParams[Param.HideActions] = [...(queryParams[Param.HideActions] ?? [])];
|
|
46
|
-
queryParams[Param.isSpotterAgentEmbed] = true;
|
|
47
|
-
return queryParams;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
42
|
public getIframeSrc() {
|
|
51
43
|
const {
|
|
52
44
|
sessionId,
|
|
@@ -57,8 +49,10 @@ export class ConversationMessage extends TsEmbed {
|
|
|
57
49
|
messageId,
|
|
58
50
|
} = this.viewConfig;
|
|
59
51
|
const path = 'conv-assist-answer';
|
|
60
|
-
const queryParams = this.
|
|
52
|
+
const queryParams = this.getBaseQueryParams();
|
|
61
53
|
|
|
54
|
+
queryParams[Param.HideActions] = [...(queryParams[Param.HideActions] ?? [])];
|
|
55
|
+
queryParams[Param.isSpotterAgentEmbed] = true;
|
|
62
56
|
let query = '';
|
|
63
57
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
64
58
|
if (queryParamsString) {
|