@gooddata/sdk-ui-gen-ai 11.69.0-alpha.1 → 11.69.0-alpha.2
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/NOTICE +51 -51
- package/README.md +28 -0
- package/esm/components/CustomizationContext.d.ts +2 -1
- package/esm/components/CustomizationContext.d.ts.map +1 -1
- package/esm/components/CustomizationProvider.d.ts.map +1 -1
- package/esm/components/CustomizationProvider.js +10 -0
- package/esm/components/GenAIStandaloneInput.d.ts.map +1 -1
- package/esm/components/GenAIStandaloneInput.js +1 -1
- package/esm/components/GenAiChatAgentSwitching.d.ts +1 -0
- package/esm/components/GenAiChatAgentSwitching.d.ts.map +1 -1
- package/esm/components/GenAiChatAgentSwitching.js +5 -15
- package/esm/components/Input.d.ts.map +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/completion/references.d.ts +1 -1
- package/esm/components/completion/references.d.ts.map +1 -1
- package/esm/components/completion/references.js +1 -1
- package/esm/components/customized/SendButton.d.ts +7 -0
- package/esm/components/customized/SendButton.d.ts.map +1 -0
- package/esm/components/customized/SendButton.js +20 -0
- package/esm/components/customized/types.d.ts +22 -0
- package/esm/components/customized/types.d.ts.map +1 -1
- package/esm/components/utils/markdownUtils.js +4 -4
- package/esm/index.d.ts +2 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/localization/bundles/de-DE.localization-bundle.js +2 -2
- package/esm/localization/bundles/en-AU.localization-bundle.js +2 -2
- package/esm/localization/bundles/en-GB.localization-bundle.js +2 -2
- package/esm/localization/bundles/es-419.localization-bundle.js +2 -2
- package/esm/localization/bundles/es-ES.localization-bundle.js +2 -2
- package/esm/localization/bundles/fi-FI.localization-bundle.js +2 -2
- package/esm/localization/bundles/fr-CA.localization-bundle.js +2 -2
- package/esm/localization/bundles/fr-FR.localization-bundle.js +2 -2
- package/esm/localization/bundles/id-ID.localization-bundle.js +2 -2
- package/esm/localization/bundles/it-IT.localization-bundle.js +2 -2
- package/esm/localization/bundles/ja-JP.localization-bundle.js +2 -2
- package/esm/localization/bundles/ko-KR.localization-bundle.js +2 -2
- package/esm/localization/bundles/nl-NL.localization-bundle.js +2 -2
- package/esm/localization/bundles/pl-PL.localization-bundle.js +2 -2
- package/esm/localization/bundles/pt-BR.localization-bundle.js +2 -2
- package/esm/localization/bundles/pt-PT.localization-bundle.js +2 -2
- package/esm/localization/bundles/ru-RU.localization-bundle.js +2 -2
- package/esm/localization/bundles/sl-SI.localization-bundle.js +2 -2
- package/esm/localization/bundles/th-TH.localization-bundle.js +2 -2
- package/esm/localization/bundles/tr-TR.localization-bundle.js +2 -2
- package/esm/localization/bundles/uk-UA.localization-bundle.js +2 -2
- package/esm/localization/bundles/vi-VN.localization-bundle.js +2 -2
- package/esm/localization/bundles/zh-HK.localization-bundle.js +2 -2
- package/esm/localization/bundles/zh-Hans.localization-bundle.js +2 -2
- package/esm/localization/bundles/zh-Hant.localization-bundle.js +2 -2
- package/esm/sdk-ui-gen-ai.d.ts +29 -0
- package/package.json +23 -22
package/NOTICE
CHANGED
|
@@ -3,11 +3,11 @@ Copyright (c) 2017-2026 GoodData Corporation
|
|
|
3
3
|
This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
|
|
4
4
|
|
|
5
5
|
--------------------------------------------------------------------------------
|
|
6
|
-
Attribution Notice for @gooddata/sdk-ui-gen-ai (11.69.0-alpha.
|
|
6
|
+
Attribution Notice for @gooddata/sdk-ui-gen-ai (11.69.0-alpha.2)
|
|
7
7
|
Package License: LicenseRef-LICENSE
|
|
8
8
|
Own License File: LICENSE
|
|
9
|
-
Date generated: 2026-11-
|
|
10
|
-
Revision ID:
|
|
9
|
+
Date generated: 2026-11-13
|
|
10
|
+
Revision ID: f07dd3a7251c3c343762a6fda0c9b1cb88df1ed1
|
|
11
11
|
|
|
12
12
|
This notice lists the components that @gooddata/sdk-ui-gen-ai depends on, directly or through other
|
|
13
13
|
packages, with the license and copyright information reported for each of them.
|
|
@@ -19,30 +19,30 @@ change those terms.
|
|
|
19
19
|
Dependencies
|
|
20
20
|
|
|
21
21
|
Local GoodData SDK components
|
|
22
|
-
- @gooddata/api-client-tiger (11.69.0-alpha.
|
|
23
|
-
- @gooddata/sdk-backend-base (11.69.0-alpha.
|
|
24
|
-
- @gooddata/sdk-backend-spi (11.69.0-alpha.
|
|
25
|
-
- @gooddata/sdk-backend-tiger (11.69.0-alpha.
|
|
26
|
-
- @gooddata/sdk-code-convertors (11.69.0-alpha.
|
|
27
|
-
- @gooddata/sdk-code-schemas (11.69.0-alpha.
|
|
28
|
-
- @gooddata/sdk-embedding (11.69.0-alpha.
|
|
29
|
-
- @gooddata/sdk-maql-language-server (11.69.0-alpha.
|
|
30
|
-
- @gooddata/sdk-model (11.69.0-alpha.
|
|
31
|
-
- @gooddata/sdk-pluggable-application-model (11.69.0-alpha.
|
|
32
|
-
- @gooddata/sdk-ui (11.69.0-alpha.
|
|
33
|
-
- @gooddata/sdk-ui-analytical-designer (11.69.0-alpha.
|
|
34
|
-
- @gooddata/sdk-ui-charts (11.69.0-alpha.
|
|
35
|
-
- @gooddata/sdk-ui-dashboard (11.69.0-alpha.
|
|
36
|
-
- @gooddata/sdk-ui-ext (11.69.0-alpha.
|
|
37
|
-
- @gooddata/sdk-ui-filters (11.69.0-alpha.
|
|
38
|
-
- @gooddata/sdk-ui-geo (11.69.0-alpha.
|
|
39
|
-
- @gooddata/sdk-ui-kit (11.69.0-alpha.
|
|
40
|
-
- @gooddata/sdk-ui-metric-component (11.69.0-alpha.
|
|
41
|
-
- @gooddata/sdk-ui-pivot (11.69.0-alpha.
|
|
42
|
-
- @gooddata/sdk-ui-semantic-search (11.69.0-alpha.
|
|
43
|
-
- @gooddata/sdk-ui-theme-provider (11.69.0-alpha.
|
|
44
|
-
- @gooddata/sdk-ui-vis-commons (11.69.0-alpha.
|
|
45
|
-
- @gooddata/util (11.69.0-alpha.
|
|
22
|
+
- @gooddata/api-client-tiger (11.69.0-alpha.2) [MIT] — Direct
|
|
23
|
+
- @gooddata/sdk-backend-base (11.69.0-alpha.2) [MIT] — Transitive
|
|
24
|
+
- @gooddata/sdk-backend-spi (11.69.0-alpha.2) [MIT] — Direct
|
|
25
|
+
- @gooddata/sdk-backend-tiger (11.69.0-alpha.2) [MIT] — Transitive
|
|
26
|
+
- @gooddata/sdk-code-convertors (11.69.0-alpha.2) [MIT] — Transitive
|
|
27
|
+
- @gooddata/sdk-code-schemas (11.69.0-alpha.2) [MIT] — Transitive
|
|
28
|
+
- @gooddata/sdk-embedding (11.69.0-alpha.2) [MIT] — Transitive
|
|
29
|
+
- @gooddata/sdk-maql-language-server (11.69.0-alpha.2) [MIT] — Transitive
|
|
30
|
+
- @gooddata/sdk-model (11.69.0-alpha.2) [MIT] — Direct
|
|
31
|
+
- @gooddata/sdk-pluggable-application-model (11.69.0-alpha.2) [MIT] — Direct
|
|
32
|
+
- @gooddata/sdk-ui (11.69.0-alpha.2) [MIT] — Direct
|
|
33
|
+
- @gooddata/sdk-ui-analytical-designer (11.69.0-alpha.2) [LicenseRef-LICENSE] — Transitive
|
|
34
|
+
- @gooddata/sdk-ui-charts (11.69.0-alpha.2) [LicenseRef-LICENSE] — Direct
|
|
35
|
+
- @gooddata/sdk-ui-dashboard (11.69.0-alpha.2) [LicenseRef-LICENSE] — Direct
|
|
36
|
+
- @gooddata/sdk-ui-ext (11.69.0-alpha.2) [LicenseRef-LICENSE] — Direct
|
|
37
|
+
- @gooddata/sdk-ui-filters (11.69.0-alpha.2) [MIT] — Direct
|
|
38
|
+
- @gooddata/sdk-ui-geo (11.69.0-alpha.2) [LicenseRef-LICENSE] — Direct
|
|
39
|
+
- @gooddata/sdk-ui-kit (11.69.0-alpha.2) [MIT] — Direct
|
|
40
|
+
- @gooddata/sdk-ui-metric-component (11.69.0-alpha.2) [LicenseRef-LICENSE] — Transitive
|
|
41
|
+
- @gooddata/sdk-ui-pivot (11.69.0-alpha.2) [LicenseRef-LICENSE] — Direct
|
|
42
|
+
- @gooddata/sdk-ui-semantic-search (11.69.0-alpha.2) [MIT] — Direct
|
|
43
|
+
- @gooddata/sdk-ui-theme-provider (11.69.0-alpha.2) [MIT] — Direct
|
|
44
|
+
- @gooddata/sdk-ui-vis-commons (11.69.0-alpha.2) [MIT] — Transitive
|
|
45
|
+
- @gooddata/util (11.69.0-alpha.2) [MIT] — Direct
|
|
46
46
|
|
|
47
47
|
External components
|
|
48
48
|
- @aaronhayes/react-use-hubspot-form (2.1.2) [MIT] — Transitive
|
|
@@ -521,7 +521,7 @@ Local GoodData SDK components
|
|
|
521
521
|
================================================================================
|
|
522
522
|
|
|
523
523
|
--------------------------------------------------------------------------------
|
|
524
|
-
Package Title: @gooddata/api-client-tiger (11.69.0-alpha.
|
|
524
|
+
Package Title: @gooddata/api-client-tiger (11.69.0-alpha.2)
|
|
525
525
|
Package Source: Local workspace
|
|
526
526
|
Package Depth: Direct
|
|
527
527
|
--------------------------------------------------------------------------------
|
|
@@ -539,7 +539,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
539
539
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
540
540
|
|
|
541
541
|
--------------------------------------------------------------------------------
|
|
542
|
-
Package Title: @gooddata/sdk-backend-base (11.69.0-alpha.
|
|
542
|
+
Package Title: @gooddata/sdk-backend-base (11.69.0-alpha.2)
|
|
543
543
|
Package Source: Local workspace
|
|
544
544
|
Package Depth: Transitive
|
|
545
545
|
--------------------------------------------------------------------------------
|
|
@@ -557,7 +557,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
557
557
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
558
558
|
|
|
559
559
|
--------------------------------------------------------------------------------
|
|
560
|
-
Package Title: @gooddata/sdk-backend-spi (11.69.0-alpha.
|
|
560
|
+
Package Title: @gooddata/sdk-backend-spi (11.69.0-alpha.2)
|
|
561
561
|
Package Source: Local workspace
|
|
562
562
|
Package Depth: Direct
|
|
563
563
|
--------------------------------------------------------------------------------
|
|
@@ -575,7 +575,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
575
575
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
576
576
|
|
|
577
577
|
--------------------------------------------------------------------------------
|
|
578
|
-
Package Title: @gooddata/sdk-backend-tiger (11.69.0-alpha.
|
|
578
|
+
Package Title: @gooddata/sdk-backend-tiger (11.69.0-alpha.2)
|
|
579
579
|
Package Source: Local workspace
|
|
580
580
|
Package Depth: Transitive
|
|
581
581
|
--------------------------------------------------------------------------------
|
|
@@ -593,7 +593,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
593
593
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
594
594
|
|
|
595
595
|
--------------------------------------------------------------------------------
|
|
596
|
-
Package Title: @gooddata/sdk-code-convertors (11.69.0-alpha.
|
|
596
|
+
Package Title: @gooddata/sdk-code-convertors (11.69.0-alpha.2)
|
|
597
597
|
Package Source: Local workspace
|
|
598
598
|
Package Depth: Transitive
|
|
599
599
|
--------------------------------------------------------------------------------
|
|
@@ -611,7 +611,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
611
611
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
612
612
|
|
|
613
613
|
--------------------------------------------------------------------------------
|
|
614
|
-
Package Title: @gooddata/sdk-code-schemas (11.69.0-alpha.
|
|
614
|
+
Package Title: @gooddata/sdk-code-schemas (11.69.0-alpha.2)
|
|
615
615
|
Package Source: Local workspace
|
|
616
616
|
Package Depth: Transitive
|
|
617
617
|
--------------------------------------------------------------------------------
|
|
@@ -641,7 +641,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
641
641
|
SOFTWARE.
|
|
642
642
|
|
|
643
643
|
--------------------------------------------------------------------------------
|
|
644
|
-
Package Title: @gooddata/sdk-embedding (11.69.0-alpha.
|
|
644
|
+
Package Title: @gooddata/sdk-embedding (11.69.0-alpha.2)
|
|
645
645
|
Package Source: Local workspace
|
|
646
646
|
Package Depth: Transitive
|
|
647
647
|
--------------------------------------------------------------------------------
|
|
@@ -659,7 +659,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
659
659
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
660
660
|
|
|
661
661
|
--------------------------------------------------------------------------------
|
|
662
|
-
Package Title: @gooddata/sdk-maql-language-server (11.69.0-alpha.
|
|
662
|
+
Package Title: @gooddata/sdk-maql-language-server (11.69.0-alpha.2)
|
|
663
663
|
Package Source: Local workspace
|
|
664
664
|
Package Depth: Transitive
|
|
665
665
|
--------------------------------------------------------------------------------
|
|
@@ -677,7 +677,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
677
677
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
678
678
|
|
|
679
679
|
--------------------------------------------------------------------------------
|
|
680
|
-
Package Title: @gooddata/sdk-model (11.69.0-alpha.
|
|
680
|
+
Package Title: @gooddata/sdk-model (11.69.0-alpha.2)
|
|
681
681
|
Package Source: Local workspace
|
|
682
682
|
Package Depth: Direct
|
|
683
683
|
--------------------------------------------------------------------------------
|
|
@@ -695,7 +695,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
695
695
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
696
696
|
|
|
697
697
|
--------------------------------------------------------------------------------
|
|
698
|
-
Package Title: @gooddata/sdk-pluggable-application-model (11.69.0-alpha.
|
|
698
|
+
Package Title: @gooddata/sdk-pluggable-application-model (11.69.0-alpha.2)
|
|
699
699
|
Package Source: Local workspace
|
|
700
700
|
Package Depth: Direct
|
|
701
701
|
--------------------------------------------------------------------------------
|
|
@@ -725,7 +725,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
725
725
|
SOFTWARE.
|
|
726
726
|
|
|
727
727
|
--------------------------------------------------------------------------------
|
|
728
|
-
Package Title: @gooddata/sdk-ui (11.69.0-alpha.
|
|
728
|
+
Package Title: @gooddata/sdk-ui (11.69.0-alpha.2)
|
|
729
729
|
Package Source: Local workspace
|
|
730
730
|
Package Depth: Direct
|
|
731
731
|
--------------------------------------------------------------------------------
|
|
@@ -743,7 +743,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
743
743
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
744
744
|
|
|
745
745
|
--------------------------------------------------------------------------------
|
|
746
|
-
Package Title: @gooddata/sdk-ui-analytical-designer (11.69.0-alpha.
|
|
746
|
+
Package Title: @gooddata/sdk-ui-analytical-designer (11.69.0-alpha.2)
|
|
747
747
|
Package Source: Local workspace
|
|
748
748
|
Package Depth: Transitive
|
|
749
749
|
--------------------------------------------------------------------------------
|
|
@@ -783,7 +783,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
783
783
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
784
784
|
|
|
785
785
|
--------------------------------------------------------------------------------
|
|
786
|
-
Package Title: @gooddata/sdk-ui-charts (11.69.0-alpha.
|
|
786
|
+
Package Title: @gooddata/sdk-ui-charts (11.69.0-alpha.2)
|
|
787
787
|
Package Source: Local workspace
|
|
788
788
|
Package Depth: Direct
|
|
789
789
|
--------------------------------------------------------------------------------
|
|
@@ -823,7 +823,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
823
823
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
824
824
|
|
|
825
825
|
--------------------------------------------------------------------------------
|
|
826
|
-
Package Title: @gooddata/sdk-ui-dashboard (11.69.0-alpha.
|
|
826
|
+
Package Title: @gooddata/sdk-ui-dashboard (11.69.0-alpha.2)
|
|
827
827
|
Package Source: Local workspace
|
|
828
828
|
Package Depth: Direct
|
|
829
829
|
--------------------------------------------------------------------------------
|
|
@@ -863,7 +863,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
863
863
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
864
864
|
|
|
865
865
|
--------------------------------------------------------------------------------
|
|
866
|
-
Package Title: @gooddata/sdk-ui-ext (11.69.0-alpha.
|
|
866
|
+
Package Title: @gooddata/sdk-ui-ext (11.69.0-alpha.2)
|
|
867
867
|
Package Source: Local workspace
|
|
868
868
|
Package Depth: Direct
|
|
869
869
|
--------------------------------------------------------------------------------
|
|
@@ -903,7 +903,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
903
903
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
904
904
|
|
|
905
905
|
--------------------------------------------------------------------------------
|
|
906
|
-
Package Title: @gooddata/sdk-ui-filters (11.69.0-alpha.
|
|
906
|
+
Package Title: @gooddata/sdk-ui-filters (11.69.0-alpha.2)
|
|
907
907
|
Package Source: Local workspace
|
|
908
908
|
Package Depth: Direct
|
|
909
909
|
--------------------------------------------------------------------------------
|
|
@@ -921,7 +921,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
921
921
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
922
922
|
|
|
923
923
|
--------------------------------------------------------------------------------
|
|
924
|
-
Package Title: @gooddata/sdk-ui-geo (11.69.0-alpha.
|
|
924
|
+
Package Title: @gooddata/sdk-ui-geo (11.69.0-alpha.2)
|
|
925
925
|
Package Source: Local workspace
|
|
926
926
|
Package Depth: Direct
|
|
927
927
|
--------------------------------------------------------------------------------
|
|
@@ -961,7 +961,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
961
961
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
962
962
|
|
|
963
963
|
--------------------------------------------------------------------------------
|
|
964
|
-
Package Title: @gooddata/sdk-ui-kit (11.69.0-alpha.
|
|
964
|
+
Package Title: @gooddata/sdk-ui-kit (11.69.0-alpha.2)
|
|
965
965
|
Package Source: Local workspace
|
|
966
966
|
Package Depth: Direct
|
|
967
967
|
--------------------------------------------------------------------------------
|
|
@@ -979,7 +979,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
979
979
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
980
980
|
|
|
981
981
|
--------------------------------------------------------------------------------
|
|
982
|
-
Package Title: @gooddata/sdk-ui-metric-component (11.69.0-alpha.
|
|
982
|
+
Package Title: @gooddata/sdk-ui-metric-component (11.69.0-alpha.2)
|
|
983
983
|
Package Source: Local workspace
|
|
984
984
|
Package Depth: Transitive
|
|
985
985
|
--------------------------------------------------------------------------------
|
|
@@ -1019,7 +1019,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
1019
1019
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
1020
1020
|
|
|
1021
1021
|
--------------------------------------------------------------------------------
|
|
1022
|
-
Package Title: @gooddata/sdk-ui-pivot (11.69.0-alpha.
|
|
1022
|
+
Package Title: @gooddata/sdk-ui-pivot (11.69.0-alpha.2)
|
|
1023
1023
|
Package Source: Local workspace
|
|
1024
1024
|
Package Depth: Direct
|
|
1025
1025
|
--------------------------------------------------------------------------------
|
|
@@ -1059,7 +1059,7 @@ THE FOREGOING LIMITATIONS SHALL APPLY TO THE MAXIMUM EXTENT PERMITTED BY APPLICA
|
|
|
1059
1059
|
10. Governing Law These terms are governed by the laws of the State of California and the United States of America without regard to conflict of laws principles. You may not assign any part of this Agreement without the prior written consent of GoodData. Any attempted assignment without consent shall be void. These terms constitute the entire agreement between you and GoodData with respect to the Library and supersede all prior written or oral communications, understandings and agreements. Any waiver of these terms must be in writing to be effective. If any provision of these terms is found to be invalid or unenforceable, the remaining terms will continue to be valid and enforceable to the fullest extent permitted by law.
|
|
1060
1060
|
|
|
1061
1061
|
--------------------------------------------------------------------------------
|
|
1062
|
-
Package Title: @gooddata/sdk-ui-semantic-search (11.69.0-alpha.
|
|
1062
|
+
Package Title: @gooddata/sdk-ui-semantic-search (11.69.0-alpha.2)
|
|
1063
1063
|
Package Source: Local workspace
|
|
1064
1064
|
Package Depth: Direct
|
|
1065
1065
|
--------------------------------------------------------------------------------
|
|
@@ -1077,7 +1077,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
1077
1077
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1078
1078
|
|
|
1079
1079
|
--------------------------------------------------------------------------------
|
|
1080
|
-
Package Title: @gooddata/sdk-ui-theme-provider (11.69.0-alpha.
|
|
1080
|
+
Package Title: @gooddata/sdk-ui-theme-provider (11.69.0-alpha.2)
|
|
1081
1081
|
Package Source: Local workspace
|
|
1082
1082
|
Package Depth: Direct
|
|
1083
1083
|
--------------------------------------------------------------------------------
|
|
@@ -1095,7 +1095,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
1095
1095
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1096
1096
|
|
|
1097
1097
|
--------------------------------------------------------------------------------
|
|
1098
|
-
Package Title: @gooddata/sdk-ui-vis-commons (11.69.0-alpha.
|
|
1098
|
+
Package Title: @gooddata/sdk-ui-vis-commons (11.69.0-alpha.2)
|
|
1099
1099
|
Package Source: Local workspace
|
|
1100
1100
|
Package Depth: Transitive
|
|
1101
1101
|
--------------------------------------------------------------------------------
|
|
@@ -1113,7 +1113,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
1113
1113
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1114
1114
|
|
|
1115
1115
|
--------------------------------------------------------------------------------
|
|
1116
|
-
Package Title: @gooddata/util (11.69.0-alpha.
|
|
1116
|
+
Package Title: @gooddata/util (11.69.0-alpha.2)
|
|
1117
1117
|
Package Source: Local workspace
|
|
1118
1118
|
Package Depth: Direct
|
|
1119
1119
|
--------------------------------------------------------------------------------
|
package/README.md
CHANGED
|
@@ -34,6 +34,34 @@ Omitting the prop keeps the bundled localized placeholder ("Ask here…" in Engl
|
|
|
34
34
|
An empty string hides the placeholder. The standalone input's existing `placeholder` prop remains
|
|
35
35
|
supported, with `inputPlaceholder` taking precedence when both are supplied.
|
|
36
36
|
|
|
37
|
+
## Custom send button
|
|
38
|
+
|
|
39
|
+
Pass a `SendButton` component through `GenAIAssistant`'s `slots` to replace the send button:
|
|
40
|
+
|
|
41
|
+
```tsx
|
|
42
|
+
import { GenAIAssistant, type IGenAIAssistantSlots } from "@gooddata/sdk-ui-gen-ai";
|
|
43
|
+
|
|
44
|
+
const CustomSendButton: NonNullable<IGenAIAssistantSlots["SendButton"]> = ({ defaultProps }) => (
|
|
45
|
+
<button type="button" disabled={defaultProps.isDisabled} onClick={defaultProps.onClick}>
|
|
46
|
+
{defaultProps.isInProgress ? "Generating…" : "Send message"}
|
|
47
|
+
</button>
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
<GenAIAssistant backend={backend} workspace="your-workspace-id" slots={{ SendButton: CustomSendButton }} />;
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The slot follows the standard `Default` / `defaultProps` contract. `defaultProps` contains
|
|
54
|
+
`isDisabled`, `isInProgress` (response generation in the current conversation), and `onClick`,
|
|
55
|
+
which sends the current input and does nothing while sending is unavailable. Use `isDisabled`
|
|
56
|
+
for the button's disabled state; it also covers empty input and other busy states.
|
|
57
|
+
Custom labels must be accessible and translated by the embedding application.
|
|
58
|
+
To wrap the SDK button instead, render `<Default {...defaultProps} />` inside the slot.
|
|
59
|
+
`DefaultSendButton` and `IGenAIAssistantSendButtonProps` are also exported for reuse.
|
|
60
|
+
Without the slot, the localized SDK button and its tooltip are unchanged. Enter-to-send is unaffected.
|
|
61
|
+
|
|
62
|
+
`GenAIStandaloneInput` accepts the same slot; its `isInProgress` is always `false` because it
|
|
63
|
+
starts a conversation rather than generating a response itself.
|
|
64
|
+
|
|
37
65
|
## Links in assistant answers
|
|
38
66
|
|
|
39
67
|
External HTTP(S) links in assistant answers are displayed as non-clickable text; enabling external
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type ComponentType } from "react";
|
|
2
|
-
import { type IGenAIAssistantAgentChooserProps, type IGenAIAssistantAgentItemProps, type IGenAIAssistantAssistantMessageProps, type IGenAIAssistantConversationDateGroupingProps, type IGenAIAssistantConversationDeleteDialogProps, type IGenAIAssistantConversationDrawerHeaderProps, type IGenAIAssistantConversationFooterProps, type IGenAIAssistantConversationHeaderProps, type IGenAIAssistantConversationItemProps, type IGenAIAssistantConversationKdaContentProps, type IGenAIAssistantConversationRenameDialogProps, type IGenAIAssistantConversationVisualizationContentProps, type IGenAIAssistantFeedbackProps, type IGenAIAssistantFollowUpButtonsProps, type IGenAIAssistantFollowUpQuestionProps, type IGenAIAssistantMessageErrorContentProps, type IGenAIAssistantMessageMultipartContentProps, type IGenAIAssistantMessageReasoningContentProps, type IGenAIAssistantMessageTextContentProps, type IGenAIAssistantSlots, type IGenAIAssistantUserMessageProps, type IGenAIAssistantVisualizationMenuProps } from "./customized/types.js";
|
|
2
|
+
import { type IGenAIAssistantAgentChooserProps, type IGenAIAssistantAgentItemProps, type IGenAIAssistantAssistantMessageProps, type IGenAIAssistantConversationDateGroupingProps, type IGenAIAssistantConversationDeleteDialogProps, type IGenAIAssistantConversationDrawerHeaderProps, type IGenAIAssistantConversationFooterProps, type IGenAIAssistantConversationHeaderProps, type IGenAIAssistantConversationItemProps, type IGenAIAssistantConversationKdaContentProps, type IGenAIAssistantConversationRenameDialogProps, type IGenAIAssistantConversationVisualizationContentProps, type IGenAIAssistantFeedbackProps, type IGenAIAssistantFollowUpButtonsProps, type IGenAIAssistantFollowUpQuestionProps, type IGenAIAssistantMessageErrorContentProps, type IGenAIAssistantMessageMultipartContentProps, type IGenAIAssistantMessageReasoningContentProps, type IGenAIAssistantMessageTextContentProps, type IGenAIAssistantSendButtonProps, type IGenAIAssistantSlots, type IGenAIAssistantUserMessageProps, type IGenAIAssistantVisualizationMenuProps } from "./customized/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export interface IGenAIAssistantComponents {
|
|
7
7
|
LandingScreenComponent: ComponentType;
|
|
8
8
|
DisclaimerComponent: ComponentType;
|
|
9
|
+
SendButtonComponent: ComponentType<IGenAIAssistantSendButtonProps>;
|
|
9
10
|
AgentItemComponent: ComponentType<IGenAIAssistantAgentItemProps>;
|
|
10
11
|
ConversationItemComponent: ComponentType<IGenAIAssistantConversationItemProps>;
|
|
11
12
|
ConversationDrawerHeaderComponent: ComponentType<IGenAIAssistantConversationDrawerHeaderProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomizationContext.d.ts","sourceRoot":"","sources":["../../src/components/CustomizationContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,OAAO,CAAC;AAEtE,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,4CAA4C,EACjD,KAAK,4CAA4C,EACjD,KAAK,4CAA4C,EACjD,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,0CAA0C,EAC/C,KAAK,4CAA4C,EACjD,KAAK,oDAAoD,EACzD,KAAK,4BAA4B,EACjC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,uCAAuC,EAC5C,KAAK,2CAA2C,EAChD,KAAK,2CAA2C,EAChD,KAAK,sCAAsC,EAC3C,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC7C,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,sBAAsB,EAAE,aAAa,CAAC;IACtC,mBAAmB,EAAE,aAAa,CAAC;IACnC,kBAAkB,EAAE,aAAa,CAAC,6BAA6B,CAAC,CAAC;IACjE,yBAAyB,EAAE,aAAa,CAAC,oCAAoC,CAAC,CAAC;IAC/E,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,2BAA2B,EAAE,aAAa,CAAC,sCAAsC,CAAC,CAAC;IACnF,2BAA2B,EAAE,aAAa,CAAC,sCAAsC,CAAC,CAAC;IACnF,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,oBAAoB,EAAE,aAAa,CAAC,+BAA+B,CAAC,CAAC;IACrE,yBAAyB,EAAE,aAAa,CAAC,oCAAoC,CAAC,CAAC;IAC/E,2BAA2B,EAAE,aAAa,CAAC,sCAAsC,CAAC,CAAC;IACnF,4BAA4B,EAAE,aAAa,CAAC,uCAAuC,CAAC,CAAC;IACrF,gCAAgC,EAAE,aAAa,CAAC,2CAA2C,CAAC,CAAC;IAC7F,gCAAgC,EAAE,aAAa,CAAC,2CAA2C,CAAC,CAAC;IAC7F,yCAAyC,EAAE,aAAa,CAAC,oDAAoD,CAAC,CAAC;IAC/G,0BAA0B,EAAE,aAAa,CAAC,qCAAqC,CAAC,CAAC;IACjF,+BAA+B,EAAE,aAAa,CAAC,0CAA0C,CAAC,CAAC;IAC3F,wBAAwB,EAAE,aAAa,CAAC,mCAAmC,CAAC,CAAC;IAC7E,yBAAyB,EAAE,aAAa,CAAC,oCAAoC,CAAC,CAAC;IAC/E,iBAAiB,EAAE,aAAa,CAAC,4BAA4B,CAAC,CAAC;IAC/D,qBAAqB,EAAE,aAAa,CAAC,gCAAgC,CAAC,CAAC;CAC1E;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,UAAU,CAAC,EAAE,yBAAyB,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,+CAE/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,iCAM5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"CustomizationContext.d.ts","sourceRoot":"","sources":["../../src/components/CustomizationContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,OAAO,CAAC;AAEtE,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,EACzC,KAAK,4CAA4C,EACjD,KAAK,4CAA4C,EACjD,KAAK,4CAA4C,EACjD,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,oCAAoC,EACzC,KAAK,0CAA0C,EAC/C,KAAK,4CAA4C,EACjD,KAAK,oDAAoD,EACzD,KAAK,4BAA4B,EACjC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,uCAAuC,EAC5C,KAAK,2CAA2C,EAChD,KAAK,2CAA2C,EAChD,KAAK,sCAAsC,EAC3C,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,EACzB,KAAK,+BAA+B,EACpC,KAAK,qCAAqC,EAC7C,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC,sBAAsB,EAAE,aAAa,CAAC;IACtC,mBAAmB,EAAE,aAAa,CAAC;IACnC,mBAAmB,EAAE,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACnE,kBAAkB,EAAE,aAAa,CAAC,6BAA6B,CAAC,CAAC;IACjE,yBAAyB,EAAE,aAAa,CAAC,oCAAoC,CAAC,CAAC;IAC/E,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,2BAA2B,EAAE,aAAa,CAAC,sCAAsC,CAAC,CAAC;IACnF,2BAA2B,EAAE,aAAa,CAAC,sCAAsC,CAAC,CAAC;IACnF,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,iCAAiC,EAAE,aAAa,CAAC,4CAA4C,CAAC,CAAC;IAC/F,oBAAoB,EAAE,aAAa,CAAC,+BAA+B,CAAC,CAAC;IACrE,yBAAyB,EAAE,aAAa,CAAC,oCAAoC,CAAC,CAAC;IAC/E,2BAA2B,EAAE,aAAa,CAAC,sCAAsC,CAAC,CAAC;IACnF,4BAA4B,EAAE,aAAa,CAAC,uCAAuC,CAAC,CAAC;IACrF,gCAAgC,EAAE,aAAa,CAAC,2CAA2C,CAAC,CAAC;IAC7F,gCAAgC,EAAE,aAAa,CAAC,2CAA2C,CAAC,CAAC;IAC7F,yCAAyC,EAAE,aAAa,CAAC,oDAAoD,CAAC,CAAC;IAC/G,0BAA0B,EAAE,aAAa,CAAC,qCAAqC,CAAC,CAAC;IACjF,+BAA+B,EAAE,aAAa,CAAC,0CAA0C,CAAC,CAAC;IAC3F,wBAAwB,EAAE,aAAa,CAAC,mCAAmC,CAAC,CAAC;IAC7E,yBAAyB,EAAE,aAAa,CAAC,oCAAoC,CAAC,CAAC;IAC/E,iBAAiB,EAAE,aAAa,CAAC,4BAA4B,CAAC,CAAC;IAC/D,qBAAqB,EAAE,aAAa,CAAC,gCAAgC,CAAC,CAAC;CAC1E;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,UAAU,CAAC,EAAE,yBAAyB,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,+CAE/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,iCAM5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomizationProvider.d.ts","sourceRoot":"","sources":["../../src/components/CustomizationProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CustomizationProvider.d.ts","sourceRoot":"","sources":["../../src/components/CustomizationProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAyBpE,OAAO,EAqBH,KAAK,oBAAoB,EAG5B,MAAM,uBAAuB,CAAC;AAK/B,MAAM,MAAM,0BAA0B,GAAG;IACrC,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC;AAuQF,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,iBAAiB,CAAC,0BAA0B,CAAC,2CAwCvG"}
|
|
@@ -23,6 +23,7 @@ import { DefaultMessageErrorContent } from "./customized/MessageErrorContent.js"
|
|
|
23
23
|
import { DefaultMessageMultipartContent } from "./customized/MessageMultipartContent.js";
|
|
24
24
|
import { DefaultMessageReasoningContent } from "./customized/MessageReasoningContent.js";
|
|
25
25
|
import { DefaultMessageTextContent } from "./customized/MessageTextContent.js";
|
|
26
|
+
import { DefaultSendButton } from "./customized/SendButton.js";
|
|
26
27
|
import { DefaultUserMessage } from "./customized/UserMessage.js";
|
|
27
28
|
import { DefaultVisualizationMenu } from "./customized/VisualizationMenu.js";
|
|
28
29
|
import { useFullscreenCheck } from "./hooks/useFullscreenCheck.js";
|
|
@@ -45,6 +46,14 @@ function DisclaimerSlotRenderer() {
|
|
|
45
46
|
}
|
|
46
47
|
return _jsx(DefaultDisclaimer, {});
|
|
47
48
|
}
|
|
49
|
+
function SendButtonSlotRenderer(props) {
|
|
50
|
+
const { slots } = useContext(customizationContext);
|
|
51
|
+
const SendButtonSlot = slots?.SendButton;
|
|
52
|
+
if (SendButtonSlot) {
|
|
53
|
+
return _jsx(SendButtonSlot, { Default: DefaultSendButton, defaultProps: props });
|
|
54
|
+
}
|
|
55
|
+
return _jsx(DefaultSendButton, { ...props });
|
|
56
|
+
}
|
|
48
57
|
function AgentItemSlotRenderer(props) {
|
|
49
58
|
const { slots } = useContext(customizationContext);
|
|
50
59
|
const AgentItemSlot = slots?.AgentItem;
|
|
@@ -219,6 +228,7 @@ export function CustomizationProvider({ children, slots }) {
|
|
|
219
228
|
const components = useMemo(() => ({
|
|
220
229
|
LandingScreenComponent: LandingScreenSlotRenderer,
|
|
221
230
|
DisclaimerComponent: DisclaimerSlotRenderer,
|
|
231
|
+
SendButtonComponent: SendButtonSlotRenderer,
|
|
222
232
|
AgentItemComponent: AgentItemSlotRenderer,
|
|
223
233
|
ConversationItemComponent: ConversationItemSlotRenderer,
|
|
224
234
|
ConversationDrawerHeaderComponent: ConversationDrawerHeaderSlotRenderer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenAIStandaloneInput.d.ts","sourceRoot":"","sources":["../../src/components/GenAIStandaloneInput.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMlF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAK9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAYnE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,GAAG;IACxE;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/E;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACvC,CAAC;
|
|
1
|
+
{"version":3,"file":"GenAIStandaloneInput.d.ts","sourceRoot":"","sources":["../../src/components/GenAIStandaloneInput.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMlF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAK9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAYnE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC,GAAG;IACxE;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;IAC/E;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAChD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B;;OAEG;IACH,cAAc,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACvC,CAAC;AA2GF;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CAcpE"}
|
|
@@ -70,7 +70,7 @@ function StandaloneInputContent({ onStart, onAgentSet, onAgentsLoaded, className
|
|
|
70
70
|
"gd-gen-ai-chat__input--fullscreen": isFullscreen,
|
|
71
71
|
"gd-gen-ai-chat__input--big-screen": isBigScreen,
|
|
72
72
|
"gd-gen-ai-chat__input--small-screen": isSmallScreen,
|
|
73
|
-
}), children: _jsx("div", { className: "gd-gen-ai-chat__input__content", children: _jsxs("div", { className: "gd-gen-ai-chat__input__container", children: [_jsx("div", { className: "gd-gen-ai-chat__input__text", ...ref, children: _jsx(DefaultSyntaxHighlightingInput, { className: "gd-gen-ai-chat__input__mc", placeholder: inputPlaceholder ?? placeholder ?? intl.formatMessage(msgs.placeholder), value: value, onApi: setApi, onChange: setValue, onKeyDown: handleKeyDown, beforeExtensions: beforeExtensions, extensions: extensions, onCompletion: onCompletion }) }), _jsx(GenAiChatAgentSwitching, { agentsOverride: agents, disabled: !value.trim(), agentDropdownDisabled: false, isAssistantLoading: false, isConversationsLoading: false, handleSubmit: handleSubmit })] }) }) }));
|
|
73
|
+
}), children: _jsx("div", { className: "gd-gen-ai-chat__input__content", children: _jsxs("div", { className: "gd-gen-ai-chat__input__container", children: [_jsx("div", { className: "gd-gen-ai-chat__input__text", ...ref, children: _jsx(DefaultSyntaxHighlightingInput, { className: "gd-gen-ai-chat__input__mc", placeholder: inputPlaceholder ?? placeholder ?? intl.formatMessage(msgs.placeholder), value: value, onApi: setApi, onChange: setValue, onKeyDown: handleKeyDown, beforeExtensions: beforeExtensions, extensions: extensions, onCompletion: onCompletion }) }), _jsx(GenAiChatAgentSwitching, { agentsOverride: agents, disabled: !value.trim(), agentDropdownDisabled: false, isAssistantLoading: false, isConversationsLoading: false, isInProgress: false, handleSubmit: handleSubmit })] }) }) }));
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* @internal
|
|
@@ -5,6 +5,7 @@ type GenAiChatAgentSwitchingOwnProps = {
|
|
|
5
5
|
agentDropdownDisabled: boolean;
|
|
6
6
|
isAssistantLoading: boolean;
|
|
7
7
|
isConversationsLoading: boolean;
|
|
8
|
+
isInProgress: boolean;
|
|
8
9
|
handleSubmit: () => void;
|
|
9
10
|
onMouseDown?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
10
11
|
setBusy?: (busy: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenAiChatAgentSwitching.d.ts","sourceRoot":"","sources":["../../src/components/GenAiChatAgentSwitching.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAA0B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GenAiChatAgentSwitching.d.ts","sourceRoot":"","sources":["../../src/components/GenAiChatAgentSwitching.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAA0B,MAAM,OAAO,CAAC;AAMhF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AA0B9C,KAAK,+BAA+B,GAAG;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,sBAAsB,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC1D,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,cAAc,CAAC,EAAE,UAAU,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAkJF,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,+BAA+B,2CA0ChF"}
|
|
@@ -4,7 +4,6 @@ import { useCallback, useEffect } from "react";
|
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import { defineMessages, useIntl } from "react-intl";
|
|
6
6
|
import { useDispatch, useSelector } from "react-redux";
|
|
7
|
-
import { UiIconButton, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
8
7
|
import { agentSwitchingActiveSelector, reasoningEffortEnabledSelector, } from "../store/chatWindow/chatWindowSelectors.js";
|
|
9
8
|
import { agentsSelector, conversationSelector, conversationsLoadedSelector, conversationsSelector, selectedAgentIdSelector, selectedEffortSelector, } from "../store/messages/messagesSelectors.js";
|
|
10
9
|
import { setSelectedAgentAction, setSelectedEffortAction } from "../store/messages/messagesSlice.js";
|
|
@@ -12,17 +11,13 @@ import { useCustomization } from "./CustomizationContext.js";
|
|
|
12
11
|
import { GenAIChatEffortDropdown } from "./GenAIChatEffortDropdown.js";
|
|
13
12
|
import { getAgentSelectionStatus, getEffectiveSelectedAgentId } from "./utils/agentSelection.js";
|
|
14
13
|
const msgs = defineMessages({
|
|
15
|
-
send: {
|
|
16
|
-
id: "gd.gen-ai.button.send",
|
|
17
|
-
},
|
|
18
14
|
noAgentAvailable: {
|
|
19
15
|
id: "gd.gen-ai.agent.unavailable",
|
|
20
16
|
},
|
|
21
17
|
});
|
|
22
|
-
function GenAiChatAgentSwitchingCore({ isAssistantLoading, isConversationsLoading, handleSubmit, conversations, conversation, agentDropdownDisabled, agents, selectedAgentId, selectedEffort, reasoningEffortEnabled, agentSwitchingActive, disabled, onMouseDown, setSelectedAgent, setSelectedEffort, setBusy, setNoAgents, leftContent, agentsOverride, }) {
|
|
18
|
+
function GenAiChatAgentSwitchingCore({ isAssistantLoading, isConversationsLoading, isInProgress, handleSubmit, conversations, conversation, agentDropdownDisabled, agents, selectedAgentId, selectedEffort, reasoningEffortEnabled, agentSwitchingActive, disabled, onMouseDown, setSelectedAgent, setSelectedEffort, setBusy, setNoAgents, leftContent, agentsOverride, }) {
|
|
23
19
|
const intl = useIntl();
|
|
24
|
-
const { AgentChooserComponent } = useCustomization();
|
|
25
|
-
const sendLabel = intl.formatMessage(msgs.send);
|
|
20
|
+
const { AgentChooserComponent, SendButtonComponent } = useCustomization();
|
|
26
21
|
const noAgentAvailableLabel = intl.formatMessage(msgs.noAgentAvailable);
|
|
27
22
|
const { availableAgents, hasNoAgents, isSelectionLoading } = getAgentSelectionStatus({
|
|
28
23
|
agentSwitchingActive,
|
|
@@ -39,14 +34,11 @@ function GenAiChatAgentSwitchingCore({ isAssistantLoading, isConversationsLoadin
|
|
|
39
34
|
const buttonDisabled = disabled || (agentSwitchingActive && hasNoAgents);
|
|
40
35
|
const isBusy = agentSwitchingActive && (hasNoAgents || isSelectionLoading);
|
|
41
36
|
const handleSubmitHandler = useCallback(() => {
|
|
42
|
-
if (
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
if (isBusy) {
|
|
37
|
+
if (buttonDisabled || isBusy) {
|
|
46
38
|
return;
|
|
47
39
|
}
|
|
48
40
|
handleSubmit();
|
|
49
|
-
}, [
|
|
41
|
+
}, [buttonDisabled, handleSubmit, isBusy]);
|
|
50
42
|
const handleSelectAgent = useCallback((agentId, options) => {
|
|
51
43
|
setSelectedAgent({
|
|
52
44
|
agentId,
|
|
@@ -63,9 +55,7 @@ function GenAiChatAgentSwitchingCore({ isAssistantLoading, isConversationsLoadin
|
|
|
63
55
|
useEffect(() => {
|
|
64
56
|
setNoAgents?.(hasNoAgents);
|
|
65
57
|
}, [setNoAgents, hasNoAgents]);
|
|
66
|
-
return (_jsxs("div", { className: cx("gd-gen-ai-chat__input__actions"), onMouseDown: onMouseDown, children: [leftContent, agentSwitchingActive && hasNoAgents ? (_jsx("span", { className: "gd-gen-ai-chat__input__no-agent", "data-testid": "no_agent_available", role: "status", "aria-live": "polite", "aria-atomic": "true", children: noAgentAvailableLabel })) : (_jsxs(_Fragment, { children: [agentSwitchingActive ? (_jsx(AgentChooserComponent, { agents: availableAgents, conversations: conversations, conversationAgentId: conversation?.agentId, selectedAgentId: selectedAgentId, effectiveSelectedAgentId: effectiveSelectedAgentId, isDisabled: agentDropdownDisabled || isSelectionLoading, isLoading: isSelectionLoading, onSelectAgent: handleSelectAgent, selectedEffort: selectedEffort, onSelectEffort: handleSelectEffort })) : reasoningEffortEnabled ? (_jsx(GenAIChatEffortDropdown, { selectedEffort: selectedEffort, isDisabled: agentDropdownDisabled, onSelectEffort: handleSelectEffort })) : null, _jsx(
|
|
67
|
-
ariaLabel: sendLabel,
|
|
68
|
-
} }), content: sendLabel })] }))] }));
|
|
58
|
+
return (_jsxs("div", { className: cx("gd-gen-ai-chat__input__actions"), onMouseDown: onMouseDown, children: [leftContent, agentSwitchingActive && hasNoAgents ? (_jsx("span", { className: "gd-gen-ai-chat__input__no-agent", "data-testid": "no_agent_available", role: "status", "aria-live": "polite", "aria-atomic": "true", children: noAgentAvailableLabel })) : (_jsxs(_Fragment, { children: [agentSwitchingActive ? (_jsx(AgentChooserComponent, { agents: availableAgents, conversations: conversations, conversationAgentId: conversation?.agentId, selectedAgentId: selectedAgentId, effectiveSelectedAgentId: effectiveSelectedAgentId, isDisabled: agentDropdownDisabled || isSelectionLoading, isLoading: isSelectionLoading, onSelectAgent: handleSelectAgent, selectedEffort: selectedEffort, onSelectEffort: handleSelectEffort })) : reasoningEffortEnabled ? (_jsx(GenAIChatEffortDropdown, { selectedEffort: selectedEffort, isDisabled: agentDropdownDisabled, onSelectEffort: handleSelectEffort })) : null, _jsx(SendButtonComponent, { isDisabled: buttonDisabled, isInProgress: isInProgress, onClick: handleSubmitHandler })] }))] }));
|
|
69
59
|
}
|
|
70
60
|
export function GenAiChatAgentSwitching(ownProps) {
|
|
71
61
|
const { handleOnFocus } = ownProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/components/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAsD,MAAM,OAAO,CAAC;AAiCpG,MAAM,MAAM,aAAa,GAAG;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CACzC,CAAC;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/components/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAsD,MAAM,OAAO,CAAC;AAiCpG,MAAM,MAAM,aAAa,GAAG;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;CACzC,CAAC;AAsKF,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,aAAa,CAAkB,CAAC"}
|
package/esm/components/Input.js
CHANGED
|
@@ -117,7 +117,7 @@ function InputComponent({ autofocus = false, canManage, canAnalyze, targetRef })
|
|
|
117
117
|
setFocused(true);
|
|
118
118
|
}, onBlur: () => {
|
|
119
119
|
setFocused(false);
|
|
120
|
-
}, onKeyDown: handleKeyDown, onCompletion: onCompletion }) }), _jsx(GenAiChatAgentSwitching, { disabled: buttonDisabled, isConversationsLoading: !conversationsLoaded, isAssistantLoading: isAssistantLoading, agentDropdownDisabled: agentDropdownDisabled, handleSubmit: handleSubmit, handleOnFocus: handleOnFocus, onMouseDown: handleActionsMouseDown, setBusy: setAreAgentsBusy, setNoAgents: setHasNoAgents, leftContent: _jsx(GenAiChatContextChooser, { onAddContext: handleOnFocus }) })] }), _jsx(HintText, { focused: focused, where: "bottom" })] }) }));
|
|
120
|
+
}, onKeyDown: handleKeyDown, onCompletion: onCompletion }) }), _jsx(GenAiChatAgentSwitching, { disabled: buttonDisabled, isConversationsLoading: !conversationsLoaded, isAssistantLoading: isAssistantLoading, isInProgress: isEvaluating, agentDropdownDisabled: agentDropdownDisabled, handleSubmit: handleSubmit, handleOnFocus: handleOnFocus, onMouseDown: handleActionsMouseDown, setBusy: setAreAgentsBusy, setNoAgents: setHasNoAgents, leftContent: _jsx(GenAiChatContextChooser, { onAddContext: handleOnFocus }) })] }), _jsx(HintText, { focused: focused, where: "bottom" })] }) }));
|
|
121
121
|
}
|
|
122
122
|
export const Input = InputComponent;
|
|
123
123
|
function HintText({ where, focused }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CatalogItem, type ICatalogDateAttribute } from "@gooddata/sdk-model";
|
|
2
2
|
import { type IChatConversationLocalItem, type IChatConversationMultipartLocalPart, type TextContentObject } from "../../model.js";
|
|
3
|
-
export declare const REFERENCE_REGEX_PART = "[^{}
|
|
3
|
+
export declare const REFERENCE_REGEX_PART = "[^{}/]+\\/[^{}]+";
|
|
4
4
|
export declare const REFERENCE_REGEX: RegExp;
|
|
5
5
|
export declare function collectReferences(where: string | true, used: (CatalogItem | ICatalogDateAttribute)[]): TextContentObject[];
|
|
6
6
|
export declare function parseReferences<T extends IChatConversationLocalItem["content"] | IChatConversationMultipartLocalPart>(content: T, catalogItems: CatalogItem[]): T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../../src/components/completion/references.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,WAAW,EAEhB,KAAK,qBAAqB,EAI7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACzB,MAAM,gBAAgB,CAAC;AAIxB,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../../../src/components/completion/references.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,WAAW,EAEhB,KAAK,qBAAqB,EAI7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EACzB,MAAM,gBAAgB,CAAC;AAIxB,eAAO,MAAM,oBAAoB,qBAAqB,CAAC;AACvD,eAAO,MAAM,eAAe,QAAmD,CAAC;AAEhF,wBAAgB,iBAAiB,CAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,IAAI,EAAE,CAAC,WAAW,GAAG,qBAAqB,CAAC,EAAE,GAC9C,iBAAiB,EAAE,CAsBrB;AAuBD,wBAAgB,eAAe,CAC3B,CAAC,SAAS,0BAA0B,CAAC,SAAS,CAAC,GAAG,mCAAmC,EACvF,OAAO,EAAE,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,CAAC,CA8B5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAMvF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
2
|
import { isCatalogAttribute, isCatalogDateDataset, } from "@gooddata/sdk-model";
|
|
3
3
|
import { getCatalogItemId, getCatalogItemTitle, getCatalogItemType } from "./utils.js";
|
|
4
|
-
export const REFERENCE_REGEX_PART = "[^{}
|
|
4
|
+
export const REFERENCE_REGEX_PART = "[^{}/]+\\/[^{}]+";
|
|
5
5
|
export const REFERENCE_REGEX = new RegExp(`\\{${REFERENCE_REGEX_PART}\\}`, "g");
|
|
6
6
|
export function collectReferences(where, used) {
|
|
7
7
|
const items = [];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IGenAIAssistantSendButtonProps } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Default implementation of the SendButton slot.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export declare function DefaultSendButton({ isDisabled, onClick }: IGenAIAssistantSendButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=SendButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../src/components/customized/SendButton.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAQjE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,8BAA8B,2CAwBxF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// (C) 2026 GoodData Corporation
|
|
3
|
+
import { defineMessages, useIntl } from "react-intl";
|
|
4
|
+
import { UiIconButton, UiTooltip } from "@gooddata/sdk-ui-kit";
|
|
5
|
+
const msgs = defineMessages({
|
|
6
|
+
send: {
|
|
7
|
+
id: "gd.gen-ai.button.send",
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
/**
|
|
11
|
+
* Default implementation of the SendButton slot.
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export function DefaultSendButton({ isDisabled, onClick }) {
|
|
15
|
+
const intl = useIntl();
|
|
16
|
+
const sendLabel = intl.formatMessage(msgs.send);
|
|
17
|
+
return (_jsx(UiTooltip, { triggerBy: ["focus", "hover"], arrowPlacement: "bottom", anchor: _jsx(UiIconButton, { icon: "arrowUp", variant: "primary", size: "small", dataTestId: "send_message", isDisabled: isDisabled, onClick: isDisabled ? undefined : onClick, accessibilityConfig: {
|
|
18
|
+
ariaLabel: sendLabel,
|
|
19
|
+
} }), content: sendLabel }));
|
|
20
|
+
}
|
|
@@ -28,6 +28,24 @@ export type IGenAIAssistantLandingScreenProps = {
|
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
30
|
export type IGenAIAssistantDisclaimerProps = Record<string, never>;
|
|
31
|
+
/**
|
|
32
|
+
* Properties for the SendButton slot.
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export type IGenAIAssistantSendButtonProps = {
|
|
36
|
+
/**
|
|
37
|
+
* Whether sending is disabled, including when the input is empty or the assistant is busy.
|
|
38
|
+
*/
|
|
39
|
+
isDisabled: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the assistant is generating a response in the current conversation.
|
|
42
|
+
*/
|
|
43
|
+
isInProgress: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Sends the current input. Does nothing while sending is disabled or agent selection is loading.
|
|
46
|
+
*/
|
|
47
|
+
onClick: () => void;
|
|
48
|
+
};
|
|
31
49
|
/**
|
|
32
50
|
* Properties for the AgentItem slot.
|
|
33
51
|
* @public
|
|
@@ -565,6 +583,10 @@ export interface IGenAIAssistantSlots {
|
|
|
565
583
|
* Custom React component rendered below the input as a disclaimer.
|
|
566
584
|
*/
|
|
567
585
|
Disclaimer?: ComponentType<ISlotProps<IGenAIAssistantDisclaimerProps>>;
|
|
586
|
+
/**
|
|
587
|
+
* Custom React component rendered in place of the chat input's send button.
|
|
588
|
+
*/
|
|
589
|
+
SendButton?: ComponentType<ISlotProps<IGenAIAssistantSendButtonProps>>;
|
|
568
590
|
/**
|
|
569
591
|
* Custom React component rendered for each agent in the agent chooser dropdown.
|
|
570
592
|
*/
|