@gooddata/sdk-ui-gen-ai 11.26.0-alpha.2 → 11.26.0-alpha.4
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 +295 -6
- package/esm/store/localStorage.d.ts +4 -0
- package/esm/store/localStorage.d.ts.map +1 -1
- package/esm/store/localStorage.js +41 -0
- package/esm/store/localStorage.js.map +1 -1
- package/esm/store/messages/messagesSlice.d.ts +6 -3
- package/esm/store/messages/messagesSlice.d.ts.map +1 -1
- package/esm/store/messages/messagesSlice.js +18 -1
- package/esm/store/messages/messagesSlice.js.map +1 -1
- package/esm/store/sideEffects/onEvent.js +15 -1
- package/esm/store/sideEffects/onEvent.js.map +1 -1
- package/esm/store/sideEffects/onThreadLoad.d.ts +15 -1
- package/esm/store/sideEffects/onThreadLoad.d.ts.map +1 -1
- package/esm/store/sideEffects/onThreadLoad.js +52 -4
- package/esm/store/sideEffects/onThreadLoad.js.map +1 -1
- package/package.json +20 -20
package/NOTICE
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
The following 3rd-party software packages may be used by or distributed with gooddata-ui-sdk. Any information relevant to third-party vendors listed below are collected using common, reasonable means.
|
|
9
9
|
|
|
10
|
-
Date generated: 2026-3-
|
|
10
|
+
Date generated: 2026-3-16
|
|
11
11
|
|
|
12
|
-
Revision ID:
|
|
12
|
+
Revision ID: 8c911bffb294d6388922e4c686634a06bd9c92e6
|
|
13
13
|
|
|
14
14
|
================================================================================
|
|
15
15
|
================================================================================
|
|
@@ -228,6 +228,7 @@ Revision ID: 0bc39d0d9d0e369d6a4e8008487c9e54b8d5f834
|
|
|
228
228
|
- @nodelib/fs.scandir (2.1.5) [MIT]
|
|
229
229
|
- @nodelib/fs.stat (2.0.5) [MIT]
|
|
230
230
|
- @nodelib/fs.walk (1.2.8) [MIT]
|
|
231
|
+
- @playwright/test (1.58.2) [Apache-2.0]
|
|
231
232
|
- @polka/url (1.0.0-next.29) [MIT]
|
|
232
233
|
- @react-aria/interactions (3.25.5) [Apache-2.0]
|
|
233
234
|
- @react-aria/ssr (3.9.10) [Apache-2.0]
|
|
@@ -369,7 +370,7 @@ Revision ID: 0bc39d0d9d0e369d6a4e8008487c9e54b8d5f834
|
|
|
369
370
|
- bail (2.0.2) [MIT]
|
|
370
371
|
- balanced-match (2.0.0) [MIT]
|
|
371
372
|
- base64-js (1.5.1) [MIT]
|
|
372
|
-
- baseline-browser-mapping (2.10.
|
|
373
|
+
- baseline-browser-mapping (2.10.8) [Apache-2.0]
|
|
373
374
|
- batch (0.6.1) [MIT]
|
|
374
375
|
- binary-extensions (2.3.0) [MIT]
|
|
375
376
|
- bl (4.1.0) [MIT]
|
|
@@ -829,6 +830,8 @@ Revision ID: 0bc39d0d9d0e369d6a4e8008487c9e54b8d5f834
|
|
|
829
830
|
- picomatch (4.0.3) [MIT]
|
|
830
831
|
- pify (4.0.1) [MIT]
|
|
831
832
|
- pkg-dir (4.2.0) [MIT]
|
|
833
|
+
- playwright (1.58.2) [Apache-2.0, MIT, ISC, CC-BY-4.0, BSD-3-Clause]
|
|
834
|
+
- playwright-core (1.58.2) [Apache-2.0, mit-addition, MIT, ISC, IETF, BSD-2-Clause, BSD-3-Clause]
|
|
832
835
|
- polished (3.7.2) [MIT, OFL-1.1]
|
|
833
836
|
- possible-typed-array-names (1.1.0) [MIT]
|
|
834
837
|
- postcss (8.5.6) [MIT]
|
|
@@ -3552,6 +3555,18 @@ Package Depth: Transitive
|
|
|
3552
3555
|
MIT
|
|
3553
3556
|
|
|
3554
3557
|
|
|
3558
|
+
--------------------------------------------------------------------------------
|
|
3559
|
+
Package Title: @playwright/test (1.58.2)
|
|
3560
|
+
|
|
3561
|
+
Package Locator: npm+@playwright/test$1.58.2
|
|
3562
|
+
|
|
3563
|
+
Package Depth: Direct
|
|
3564
|
+
--------------------------------------------------------------------------------
|
|
3565
|
+
|
|
3566
|
+
* Declared Licenses *
|
|
3567
|
+
Apache-2.0
|
|
3568
|
+
|
|
3569
|
+
|
|
3555
3570
|
--------------------------------------------------------------------------------
|
|
3556
3571
|
Package Title: @polka/url (1.0.0-next.29)
|
|
3557
3572
|
|
|
@@ -5265,9 +5280,9 @@ MIT
|
|
|
5265
5280
|
|
|
5266
5281
|
|
|
5267
5282
|
--------------------------------------------------------------------------------
|
|
5268
|
-
Package Title: baseline-browser-mapping (2.10.
|
|
5283
|
+
Package Title: baseline-browser-mapping (2.10.8)
|
|
5269
5284
|
|
|
5270
|
-
Package Locator: npm+baseline-browser-mapping$2.10.
|
|
5285
|
+
Package Locator: npm+baseline-browser-mapping$2.10.8
|
|
5271
5286
|
|
|
5272
5287
|
Package Depth: Transitive
|
|
5273
5288
|
--------------------------------------------------------------------------------
|
|
@@ -10822,6 +10837,38 @@ Package Depth: Transitive
|
|
|
10822
10837
|
MIT
|
|
10823
10838
|
|
|
10824
10839
|
|
|
10840
|
+
--------------------------------------------------------------------------------
|
|
10841
|
+
Package Title: playwright (1.58.2)
|
|
10842
|
+
|
|
10843
|
+
Package Locator: npm+playwright$1.58.2
|
|
10844
|
+
|
|
10845
|
+
Package Depth: Transitive
|
|
10846
|
+
--------------------------------------------------------------------------------
|
|
10847
|
+
|
|
10848
|
+
* Declared Licenses *
|
|
10849
|
+
Apache-2.0
|
|
10850
|
+
|
|
10851
|
+
|
|
10852
|
+
* Other Licenses *
|
|
10853
|
+
MIT, ISC, CC-BY-4.0, BSD-3-Clause
|
|
10854
|
+
|
|
10855
|
+
|
|
10856
|
+
--------------------------------------------------------------------------------
|
|
10857
|
+
Package Title: playwright-core (1.58.2)
|
|
10858
|
+
|
|
10859
|
+
Package Locator: npm+playwright-core$1.58.2
|
|
10860
|
+
|
|
10861
|
+
Package Depth: Transitive
|
|
10862
|
+
--------------------------------------------------------------------------------
|
|
10863
|
+
|
|
10864
|
+
* Declared Licenses *
|
|
10865
|
+
Apache-2.0
|
|
10866
|
+
|
|
10867
|
+
|
|
10868
|
+
* Other Licenses *
|
|
10869
|
+
mit-addition, MIT, ISC, IETF, BSD-2-Clause, BSD-3-Clause
|
|
10870
|
+
|
|
10871
|
+
|
|
10825
10872
|
--------------------------------------------------------------------------------
|
|
10826
10873
|
Package Title: polished (3.7.2)
|
|
10827
10874
|
|
|
@@ -15635,6 +15682,212 @@ SOFTWARE.
|
|
|
15635
15682
|
limitations under the License.
|
|
15636
15683
|
|
|
15637
15684
|
|
|
15685
|
+
* Apache-2.0 *
|
|
15686
|
+
|
|
15687
|
+
Apache License
|
|
15688
|
+
Version 2.0, January 2004
|
|
15689
|
+
http://www.apache.org/licenses/
|
|
15690
|
+
|
|
15691
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
15692
|
+
|
|
15693
|
+
1. Definitions.
|
|
15694
|
+
|
|
15695
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
15696
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
15697
|
+
|
|
15698
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
15699
|
+
the copyright owner that is granting the License.
|
|
15700
|
+
|
|
15701
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
15702
|
+
other entities that control, are controlled by, or are under common
|
|
15703
|
+
control with that entity. For the purposes of this definition,
|
|
15704
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
15705
|
+
direction or management of such entity, whether by contract or
|
|
15706
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
15707
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
15708
|
+
|
|
15709
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
15710
|
+
exercising permissions granted by this License.
|
|
15711
|
+
|
|
15712
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
15713
|
+
including but not limited to software source code, documentation
|
|
15714
|
+
source, and configuration files.
|
|
15715
|
+
|
|
15716
|
+
"Object" form shall mean any form resulting from mechanical
|
|
15717
|
+
transformation or translation of a Source form, including but
|
|
15718
|
+
not limited to compiled object code, generated documentation,
|
|
15719
|
+
and conversions to other media types.
|
|
15720
|
+
|
|
15721
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
15722
|
+
Object form, made available under the License, as indicated by a
|
|
15723
|
+
copyright notice that is included in or attached to the work
|
|
15724
|
+
(an example is provided in the Appendix below).
|
|
15725
|
+
|
|
15726
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
15727
|
+
form, that is based on (or derived from) the Work and for which the
|
|
15728
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
15729
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
15730
|
+
of this License, Derivative Works shall not include works that remain
|
|
15731
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
15732
|
+
the Work and Derivative Works thereof.
|
|
15733
|
+
|
|
15734
|
+
"Contribution" shall mean any work of authorship, including
|
|
15735
|
+
the original version of the Work and any modifications or additions
|
|
15736
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
15737
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
15738
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
15739
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
15740
|
+
means any form of electronic, verbal, or written communication sent
|
|
15741
|
+
to the Licensor or its representatives, including but not limited to
|
|
15742
|
+
communication on electronic mailing lists, source code control systems,
|
|
15743
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
15744
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
15745
|
+
excluding communication that is conspicuously marked or otherwise
|
|
15746
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
15747
|
+
|
|
15748
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
15749
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
15750
|
+
subsequently incorporated within the Work.
|
|
15751
|
+
|
|
15752
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
15753
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
15754
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
15755
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
15756
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
15757
|
+
Work and such Derivative Works in Source or Object form.
|
|
15758
|
+
|
|
15759
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
15760
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
15761
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
15762
|
+
(except as stated in this section) patent license to make, have made,
|
|
15763
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
15764
|
+
where such license applies only to those patent claims licensable
|
|
15765
|
+
by such Contributor that are necessarily infringed by their
|
|
15766
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
15767
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
15768
|
+
institute patent litigation against any entity (including a
|
|
15769
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
15770
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
15771
|
+
or contributory patent infringement, then any patent licenses
|
|
15772
|
+
granted to You under this License for that Work shall terminate
|
|
15773
|
+
as of the date such litigation is filed.
|
|
15774
|
+
|
|
15775
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
15776
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
15777
|
+
modifications, and in Source or Object form, provided that You
|
|
15778
|
+
meet the following conditions:
|
|
15779
|
+
|
|
15780
|
+
(a) You must give any other recipients of the Work or
|
|
15781
|
+
Derivative Works a copy of this License; and
|
|
15782
|
+
|
|
15783
|
+
(b) You must cause any modified files to carry prominent notices
|
|
15784
|
+
stating that You changed the files; and
|
|
15785
|
+
|
|
15786
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
15787
|
+
that You distribute, all copyright, patent, trademark, and
|
|
15788
|
+
attribution notices from the Source form of the Work,
|
|
15789
|
+
excluding those notices that do not pertain to any part of
|
|
15790
|
+
the Derivative Works; and
|
|
15791
|
+
|
|
15792
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
15793
|
+
distribution, then any Derivative Works that You distribute must
|
|
15794
|
+
include a readable copy of the attribution notices contained
|
|
15795
|
+
within such NOTICE file, excluding those notices that do not
|
|
15796
|
+
pertain to any part of the Derivative Works, in at least one
|
|
15797
|
+
of the following places: within a NOTICE text file distributed
|
|
15798
|
+
as part of the Derivative Works; within the Source form or
|
|
15799
|
+
documentation, if provided along with the Derivative Works; or,
|
|
15800
|
+
within a display generated by the Derivative Works, if and
|
|
15801
|
+
wherever such third-party notices normally appear. The contents
|
|
15802
|
+
of the NOTICE file are for informational purposes only and
|
|
15803
|
+
do not modify the License. You may add Your own attribution
|
|
15804
|
+
notices within Derivative Works that You distribute, alongside
|
|
15805
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
15806
|
+
that such additional attribution notices cannot be construed
|
|
15807
|
+
as modifying the License.
|
|
15808
|
+
|
|
15809
|
+
You may add Your own copyright statement to Your modifications and
|
|
15810
|
+
may provide additional or different license terms and conditions
|
|
15811
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
15812
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
15813
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
15814
|
+
the conditions stated in this License.
|
|
15815
|
+
|
|
15816
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
15817
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
15818
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
15819
|
+
this License, without any additional terms or conditions.
|
|
15820
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
15821
|
+
the terms of any separate license agreement you may have executed
|
|
15822
|
+
with Licensor regarding such Contributions.
|
|
15823
|
+
|
|
15824
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
15825
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
15826
|
+
except as required for reasonable and customary use in describing the
|
|
15827
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
15828
|
+
|
|
15829
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
15830
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
15831
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
15832
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
15833
|
+
implied, including, without limitation, any warranties or conditions
|
|
15834
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
15835
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
15836
|
+
appropriateness of using or redistributing the Work and assume any
|
|
15837
|
+
risks associated with Your exercise of permissions under this License.
|
|
15838
|
+
|
|
15839
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
15840
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
15841
|
+
unless required by applicable law (such as deliberate and grossly
|
|
15842
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
15843
|
+
liable to You for damages, including any direct, indirect, special,
|
|
15844
|
+
incidental, or consequential damages of any character arising as a
|
|
15845
|
+
result of this License or out of the use or inability to use the
|
|
15846
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
15847
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
15848
|
+
other commercial damages or losses), even if such Contributor
|
|
15849
|
+
has been advised of the possibility of such damages.
|
|
15850
|
+
|
|
15851
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
15852
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
15853
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
15854
|
+
or other liability obligations and/or rights consistent with this
|
|
15855
|
+
License. However, in accepting such obligations, You may act only
|
|
15856
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
15857
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
15858
|
+
defend, and hold each Contributor harmless for any liability
|
|
15859
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
15860
|
+
of your accepting any such warranty or additional liability.
|
|
15861
|
+
|
|
15862
|
+
END OF TERMS AND CONDITIONS
|
|
15863
|
+
|
|
15864
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
15865
|
+
|
|
15866
|
+
To apply the Apache License to your work, attach the following
|
|
15867
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
15868
|
+
replaced with your own identifying information. (Don't include
|
|
15869
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
15870
|
+
comment syntax for the file format. We also recommend that a
|
|
15871
|
+
file or class name and description of purpose be included on the
|
|
15872
|
+
same "printed page" as the copyright notice for easier
|
|
15873
|
+
identification within third-party archives.
|
|
15874
|
+
|
|
15875
|
+
Portions Copyright (c) Microsoft Corporation.
|
|
15876
|
+
Portions Copyright 2017 Google Inc.
|
|
15877
|
+
|
|
15878
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
15879
|
+
you may not use this file except in compliance with the License.
|
|
15880
|
+
You may obtain a copy of the License at
|
|
15881
|
+
|
|
15882
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
15883
|
+
|
|
15884
|
+
Unless required by applicable law or agreed to in writing, software
|
|
15885
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15886
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15887
|
+
See the License for the specific language governing permissions and
|
|
15888
|
+
limitations under the License.
|
|
15889
|
+
|
|
15890
|
+
|
|
15638
15891
|
* Apache-2.0 *
|
|
15639
15892
|
|
|
15640
15893
|
Apache License
|
|
@@ -26992,6 +27245,14 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
|
26992
27245
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
26993
27246
|
|
|
26994
27247
|
|
|
27248
|
+
* IETF *
|
|
27249
|
+
|
|
27250
|
+
This repository relates to activities in the Internet Engineering Task Force (IETF). All material in this repository is considered Contributions to the IETF Standards Process, as defined in the intellectual property policies of IETF currently designated as BCP 78, BCP 79 and the IETF Trust Legal Provisions (TLP) Relating to IETF Documents.
|
|
27251
|
+
|
|
27252
|
+
Any edit, commit, pull request, issue, comment or other change made to this repository constitutes Contributions to the IETF Standards Process (https://www.ietf.org/).
|
|
27253
|
+
|
|
27254
|
+
You agree to comply with all applicable IETF policies and procedures, including, BCP 78, 79, the TLP, and the TLP rules regarding code components (e.g. being subject to a Simplified BSD License) in Contributions.
|
|
27255
|
+
|
|
26995
27256
|
* ISC *
|
|
26996
27257
|
|
|
26997
27258
|
ISC License
|
|
@@ -34623,6 +34884,34 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
34623
34884
|
SOFTWARE.
|
|
34624
34885
|
|
|
34625
34886
|
|
|
34887
|
+
* mit-addition *
|
|
34888
|
+
|
|
34889
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
34890
|
+
copy of this software and associated documentation files (the
|
|
34891
|
+
"Software"), to deal in the Software without restriction, including
|
|
34892
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
34893
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
34894
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
34895
|
+
the following conditions:
|
|
34896
|
+
|
|
34897
|
+
The above copyright notice and this permission notice shall be included
|
|
34898
|
+
in all copies or substantial portions of the Software.
|
|
34899
|
+
|
|
34900
|
+
THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
34901
|
+
EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
34902
|
+
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
34903
|
+
|
|
34904
|
+
IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT
|
|
34905
|
+
OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
|
|
34906
|
+
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
|
|
34907
|
+
THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
|
|
34908
|
+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
34909
|
+
|
|
34910
|
+
In addition, the following condition applies:
|
|
34911
|
+
|
|
34912
|
+
All redistributions must retain an intact copy of this copyright notice
|
|
34913
|
+
and disclaimer.
|
|
34914
|
+
|
|
34626
34915
|
* public-domain *
|
|
34627
34916
|
|
|
34628
34917
|
No license text available
|
|
@@ -34663,4 +34952,4 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
|
34663
34952
|
--------------------------------------------------------------------------------
|
|
34664
34953
|
--------------------------------------------------------------------------------
|
|
34665
34954
|
|
|
34666
|
-
Report Generated by FOSSA on 2026-3-
|
|
34955
|
+
Report Generated by FOSSA on 2026-3-16
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { Message } from "../model.js";
|
|
1
2
|
export declare function getIsOpened(): boolean | undefined;
|
|
2
3
|
export declare function setIsOpened(isOpened: boolean): void;
|
|
4
|
+
export declare function saveMessages(workspaceId: string, messages: Message[]): void;
|
|
5
|
+
export declare function loadMessages(workspaceId: string): Message[] | undefined;
|
|
6
|
+
export declare function clearCachedMessages(workspaceId: string): void;
|
|
3
7
|
//# sourceMappingURL=localStorage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localStorage.d.ts","sourceRoot":"","sources":["../../src/store/localStorage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"localStorage.d.ts","sourceRoot":"","sources":["../../src/store/localStorage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C,wBAAgB,WAAW,wBAU1B;AAED,wBAAgB,WAAW,CAAC,QAAQ,EAAE,OAAO,QAY5C;AAMD,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAS3E;AAED,wBAAgB,YAAY,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,SAAS,CAavE;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAS7D"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
const OPENED_KEY = "gd-gen-ai-is-opened";
|
|
3
|
+
const MESSAGES_KEY_PREFIX = "gd-gen-ai-messages";
|
|
3
4
|
export function getIsOpened() {
|
|
4
5
|
if (typeof localStorage !== "undefined") {
|
|
5
6
|
try {
|
|
@@ -27,4 +28,44 @@ export function setIsOpened(isOpened) {
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
}
|
|
31
|
+
function getMessagesKey(workspaceId) {
|
|
32
|
+
return `${MESSAGES_KEY_PREFIX}-${workspaceId}`;
|
|
33
|
+
}
|
|
34
|
+
export function saveMessages(workspaceId, messages) {
|
|
35
|
+
if (typeof sessionStorage === "undefined") {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
sessionStorage.setItem(getMessagesKey(workspaceId), JSON.stringify(messages));
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
// Fail silently (e.g. quota exceeded or serialization errors)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export function loadMessages(workspaceId) {
|
|
46
|
+
if (typeof sessionStorage === "undefined") {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
const raw = sessionStorage.getItem(getMessagesKey(workspaceId));
|
|
51
|
+
if (!raw) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
return JSON.parse(raw);
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export function clearCachedMessages(workspaceId) {
|
|
61
|
+
if (typeof sessionStorage === "undefined") {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
try {
|
|
65
|
+
sessionStorage.removeItem(getMessagesKey(workspaceId));
|
|
66
|
+
}
|
|
67
|
+
catch {
|
|
68
|
+
// Fail silently
|
|
69
|
+
}
|
|
70
|
+
}
|
|
30
71
|
//# sourceMappingURL=localStorage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localStorage.js","sourceRoot":"","sources":["../../src/store/localStorage.ts"],"names":[],"mappings":"AAAA,gCAAgC;
|
|
1
|
+
{"version":3,"file":"localStorage.js","sourceRoot":"","sources":["../../src/store/localStorage.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAIhC,MAAM,UAAU,GAAG,qBAAqB,CAAC;AACzC,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAEjD,MAAM,UAAU,WAAW,GAAG;IAC1B,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,CAAC;QACtC,IAAI,CAAC;YACD,OAAO,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,MAAM,CAAC;QACvD,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACT,OAAO,CAAC,KAAK,CAAC,0DAA0D,EAAE,CAAC,CAAC,CAAC;YAC7E,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC;IACD,OAAO,SAAS,CAAC;AAAA,CACpB;AAED,MAAM,UAAU,WAAW,CAAC,QAAiB,EAAE;IAC3C,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE,CAAC;QACtC,IAAI,CAAC;YACD,IAAI,QAAQ,EAAE,CAAC;gBACX,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;YAC7C,CAAC;iBAAM,CAAC;gBACJ,YAAY,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;YACxC,CAAC;QACL,CAAC;QA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,CACJ"}
|
|
@@ -26,11 +26,12 @@ type MessagesSliceState = {
|
|
|
26
26
|
/**
|
|
27
27
|
* If the interface is busy, this specifies the details of the async operation.
|
|
28
28
|
* Where:
|
|
29
|
-
* - loading: the thread history is being loaded
|
|
29
|
+
* - loading: the thread history is being loaded from the backend (no messages to show yet)
|
|
30
|
+
* - restoring: cached messages have been restored while the backend fetch is still in-flight
|
|
30
31
|
* - clearing: the thread is being cleared
|
|
31
32
|
* - evaluating: the new user message is being evaluated by assistant
|
|
32
33
|
*/
|
|
33
|
-
asyncProcess?: "loading" | "clearing" | "evaluating";
|
|
34
|
+
asyncProcess?: "loading" | "restoring" | "clearing" | "evaluating";
|
|
34
35
|
/**
|
|
35
36
|
* An ID of the conversation thread.
|
|
36
37
|
* Not the same as threadIdSuffix in some of the REST APIs,
|
|
@@ -46,7 +47,9 @@ export declare const loadThreadAction: import("@reduxjs/toolkit").ActionCreatorW
|
|
|
46
47
|
}, "messages/loadThreadErrorAction">, loadThreadSuccessAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
47
48
|
messages: Message[];
|
|
48
49
|
threadId: string;
|
|
49
|
-
}, "messages/loadThreadSuccessAction">,
|
|
50
|
+
}, "messages/loadThreadSuccessAction">, restoreCachedMessagesAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
51
|
+
messages: Message[];
|
|
52
|
+
}, "messages/restoreCachedMessagesAction">, clearThreadErrorAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
50
53
|
error: Error;
|
|
51
54
|
}, "messages/clearThreadErrorAction">, clearThreadSuccessAction: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"messages/clearThreadSuccessAction">, evaluateMessageAction: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
52
55
|
message: AssistantMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messagesSlice.d.ts","sourceRoot":"","sources":["../../../src/store/messages/messagesSlice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,OAAO,EAAe,MAAM,kBAAkB,CAAC;AAEjF,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAG5E,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,OAAO,EAMf,MAAM,gBAAgB,CAAC;AAExB,KAAK,kBAAkB,GAAG;IACtB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC
|
|
1
|
+
{"version":3,"file":"messagesSlice.d.ts","sourceRoot":"","sources":["../../../src/store/messages/messagesSlice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,OAAO,EAAe,MAAM,kBAAkB,CAAC;AAEjF,OAAO,EAAE,KAAK,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AAG5E,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,KAAK,OAAO,EAMf,MAAM,gBAAgB,CAAC;AAExB,KAAK,kBAAkB,GAAG;IACtB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,YAAY,CAAC;IACnE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,cAAc,sBAAsB,CAAC;AAClD,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAkX5C,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,kBAAkB,CAAyB,CAAC;AACvF,eAAO,MACH,gBAAgB,uFAChB,qBAAqB;;sCACrB,uBAAuB;;;wCACvB,2BAA2B;;4CAC3B,sBAAsB;;uCACtB,wBAAwB,+FACxB,qBAAqB;;sCACrB,0BAA0B;;;2CAC1B,8BAA8B;;;;+CAC9B,6BAA6B;;8CAC7B,iBAAiB;;kCACjB,gBAAgB;;iCAChB,oBAAoB;;qCACpB,iBAAiB,wFACjB,eAAe;;;;gCACf,oBAAoB;;;qCACpB,sBAAsB;;uCACtB,uBAAuB;;;;;wCACvB,4BAA4B;;;;;;;6CAC5B,8BAA8B;;;;;+CAC9B,mCAAmC;;;;oDACnC,0CAA0C;;;;2DAC1C,wBAAwB;;;;AAExB;;GAEG;AACH,iBAAiB;AACjB;;GAEG;AACH,gBAAgB,2FACK,CAAC"}
|
|
@@ -67,6 +67,23 @@ const messagesSlice = createSlice({
|
|
|
67
67
|
state.threadId = threadId;
|
|
68
68
|
delete state.asyncProcess;
|
|
69
69
|
},
|
|
70
|
+
/**
|
|
71
|
+
* Restore previously cached messages immediately while the backend is still loading.
|
|
72
|
+
* Unlike loadThreadSuccessAction, this does not mark the thread as fully loaded,
|
|
73
|
+
* so the backend fetch continues and will replace these messages when complete.
|
|
74
|
+
* Sets asyncProcess to "restoring" so that:
|
|
75
|
+
* - The skeleton spinner is hidden and cached messages are rendered (Messages checks for "loading"/"clearing" only).
|
|
76
|
+
* - The input remains disabled (Input checks !!asyncProcess, and "restoring" is truthy).
|
|
77
|
+
*/
|
|
78
|
+
restoreCachedMessagesAction: (state, { payload: { messages } }) => {
|
|
79
|
+
const normalized = messages.reduce((acc, message) => {
|
|
80
|
+
acc[message.localId] = message;
|
|
81
|
+
return acc;
|
|
82
|
+
}, {});
|
|
83
|
+
state.messages = normalized;
|
|
84
|
+
state.messageOrder = messages.map((message) => message.localId);
|
|
85
|
+
state.asyncProcess = "restoring";
|
|
86
|
+
},
|
|
70
87
|
clearThreadAction: (state) => {
|
|
71
88
|
state.asyncProcess = "clearing";
|
|
72
89
|
},
|
|
@@ -208,7 +225,7 @@ const messagesSlice = createSlice({
|
|
|
208
225
|
});
|
|
209
226
|
const errorToObject = (error) => Object.fromEntries(Object.getOwnPropertyNames(error).map((key) => [key, error[key]]));
|
|
210
227
|
export const messagesSliceReducer = messagesSlice.reducer;
|
|
211
|
-
export const { loadThreadAction, loadThreadErrorAction, loadThreadSuccessAction, clearThreadErrorAction, clearThreadSuccessAction, evaluateMessageAction, evaluateMessageErrorAction, evaluateMessageStreamingAction, evaluateMessageCompleteAction, setMessagesAction, setVerboseAction, setGlobalErrorAction, cancelAsyncAction, setUserFeedback, setUserFeedbackError, clearUserFeedbackError, saveVisualizationAction, saveVisualizationErrorAction, saveVisualizationSuccessAction, saveVisualisationRenderStatusAction, saveVisualisationRenderStatusSuccessAction, visualizationErrorAction,
|
|
228
|
+
export const { loadThreadAction, loadThreadErrorAction, loadThreadSuccessAction, restoreCachedMessagesAction, clearThreadErrorAction, clearThreadSuccessAction, evaluateMessageAction, evaluateMessageErrorAction, evaluateMessageStreamingAction, evaluateMessageCompleteAction, setMessagesAction, setVerboseAction, setGlobalErrorAction, cancelAsyncAction, setUserFeedback, setUserFeedbackError, clearUserFeedbackError, saveVisualizationAction, saveVisualizationErrorAction, saveVisualizationSuccessAction, saveVisualisationRenderStatusAction, saveVisualisationRenderStatusSuccessAction, visualizationErrorAction,
|
|
212
229
|
/**
|
|
213
230
|
* @public
|
|
214
231
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messagesSlice.js","sourceRoot":"","sources":["../../../src/store/messages/messagesSlice.ts"],"names":[],"mappings":"AAAA,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,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAG,KAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnG,MAAM,CAAC,MAAM,oBAAoB,GAAgC,aAAa,CAAC,OAAO,CAAC;AACvF,MAAM,CAAC,MAAM,EACT,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,mCAAmC,EACnC,0CAA0C,EAC1C,wBAAwB;AAExB;;GAEG;AACH,iBAAiB;AACjB;;GAEG;AACH,gBAAgB,GACnB,GAAG,aAAa,CAAC,OAAO,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { getContext, select, takeEvery } from "redux-saga/effects";
|
|
3
3
|
import { isRoutingContents, isTextContents, isUserMessage, } from "../../model.js";
|
|
4
4
|
import { copyToClipboardAction, setOpenAction } from "../chatWindow/chatWindowSlice.js";
|
|
5
|
-
import { setIsOpened } from "../localStorage.js";
|
|
5
|
+
import { clearCachedMessages, saveMessages, setIsOpened } from "../localStorage.js";
|
|
6
6
|
import { messagesSelector, threadIdSelector } from "../messages/messagesSelectors.js";
|
|
7
7
|
import { clearThreadAction, evaluateMessageCompleteAction, loadThreadSuccessAction, newMessageAction, saveVisualizationErrorAction, saveVisualizationSuccessAction, setUserFeedback, setUserFeedbackError, visualizationErrorAction, } from "../messages/messagesSlice.js";
|
|
8
8
|
export function* onEvent() {
|
|
@@ -18,6 +18,11 @@ export function* onEvent() {
|
|
|
18
18
|
yield takeEvery(saveVisualizationSuccessAction.type, onSaveVisualizationSuccess);
|
|
19
19
|
yield takeEvery(copyToClipboardAction.type, onCopyToClipboard);
|
|
20
20
|
}
|
|
21
|
+
function* persistMessages() {
|
|
22
|
+
const workspace = yield getContext("workspace");
|
|
23
|
+
const messages = yield select(messagesSelector);
|
|
24
|
+
saveMessages(workspace, messages);
|
|
25
|
+
}
|
|
21
26
|
function* onSetOpen({ payload: { isOpen } }) {
|
|
22
27
|
setIsOpened(isOpen);
|
|
23
28
|
if (isOpen) {
|
|
@@ -32,6 +37,12 @@ function* onSetOpen({ payload: { isOpen } }) {
|
|
|
32
37
|
});
|
|
33
38
|
}
|
|
34
39
|
function* onThreadLoaded({ payload: { threadId } }) {
|
|
40
|
+
yield* persistMessages();
|
|
41
|
+
// Only emit the chatOpened event when we have a real server-side threadId.
|
|
42
|
+
// The cache-restore dispatch uses an empty threadId and should not trigger telemetry.
|
|
43
|
+
if (!threadId) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
35
46
|
const eventDispatcher = yield getContext("eventDispatcher");
|
|
36
47
|
eventDispatcher.dispatch({
|
|
37
48
|
type: "chatOpened",
|
|
@@ -39,6 +50,8 @@ function* onThreadLoaded({ payload: { threadId } }) {
|
|
|
39
50
|
});
|
|
40
51
|
}
|
|
41
52
|
function* onClearThread(_action) {
|
|
53
|
+
const workspace = yield getContext("workspace");
|
|
54
|
+
clearCachedMessages(workspace);
|
|
42
55
|
const eventDispatcher = yield getContext("eventDispatcher");
|
|
43
56
|
const threadId = yield select(threadIdSelector);
|
|
44
57
|
eventDispatcher.dispatch({
|
|
@@ -64,6 +77,7 @@ function* onNewMessage({ payload: message }) {
|
|
|
64
77
|
});
|
|
65
78
|
}
|
|
66
79
|
function* onEvaluateMessageComplete({ payload: { assistantMessageId }, }) {
|
|
80
|
+
yield* persistMessages();
|
|
67
81
|
const allMessages = yield select(messagesSelector);
|
|
68
82
|
const assistantMessage = allMessages.find((m) => m.localId === assistantMessageId);
|
|
69
83
|
if (!assistantMessage) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onEvent.js","sourceRoot":"","sources":["../../../src/store/sideEffects/onEvent.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,EAGH,iBAAiB,EACjB,cAAc,EACd,aAAa,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAExF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"onEvent.js","sourceRoot":"","sources":["../../../src/store/sideEffects/onEvent.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,EAGH,iBAAiB,EACjB,cAAc,EACd,aAAa,GAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAExF,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,EACH,iBAAiB,EACjB,6BAA6B,EAC7B,uBAAuB,EACvB,gBAAgB,EAChB,4BAA4B,EAC5B,8BAA8B,EAC9B,eAAe,EACf,oBAAoB,EACpB,wBAAwB,GAC3B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,SAAS,CAAC,CAAC,OAAO,GAAG;IACvB,MAAM,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC/C,MAAM,SAAS,CAAC,uBAAuB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D,MAAM,SAAS,CAAC,iBAAiB,CAA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IAAI,EAAE,qBAAqB;QAC3B,QAAQ;QACR,OAAO;KACV,CAAC,CAAC;AAAA,CACN"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type IAnalyticalBackend, type IChatThreadHistory, type IUserWorkspaceSettings } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { type Message } from "../../model.js";
|
|
2
3
|
/**
|
|
3
4
|
* Load thread history and put it to the store.
|
|
4
5
|
* @internal
|
|
@@ -10,12 +11,25 @@ export declare function onThreadLoad(): Generator<import("redux-saga/effects").G
|
|
|
10
11
|
type: "messages/loadThreadErrorAction";
|
|
11
12
|
}> | import("redux-saga/effects").PutEffect<{
|
|
12
13
|
payload: {
|
|
13
|
-
messages:
|
|
14
|
+
messages: Message[];
|
|
14
15
|
threadId: string;
|
|
15
16
|
};
|
|
16
17
|
type: "messages/loadThreadSuccessAction";
|
|
18
|
+
}> | import("redux-saga/effects").PutEffect<{
|
|
19
|
+
payload: {
|
|
20
|
+
messages: Message[];
|
|
21
|
+
};
|
|
22
|
+
type: "messages/restoreCachedMessagesAction";
|
|
17
23
|
}> | import("redux-saga/effects").RaceEffect<import("redux-saga/effects").CallEffect<IChatThreadHistory> | import("redux-saga/effects").TakeEffect> | import("redux-saga/effects").SelectEffect, void, IAnalyticalBackend & string & IUserWorkspaceSettings & [results: IChatThreadHistory, {
|
|
18
24
|
payload: undefined;
|
|
19
25
|
type: "messages/cancelAsyncAction";
|
|
20
26
|
}]>;
|
|
27
|
+
/**
|
|
28
|
+
* Merge backend-loaded messages with cached messages.
|
|
29
|
+
* For each assistant message from the backend, if its content is missing semanticSearch
|
|
30
|
+
* data but the corresponding cached message has it, the cached content is preserved.
|
|
31
|
+
* Matching is done by the server-side interaction ID (message.id).
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare function mergeWithCache(backendMessages: Message[], cachedMessages: Message[]): Message[];
|
|
21
35
|
//# sourceMappingURL=onThreadLoad.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onThreadLoad.d.ts","sourceRoot":"","sources":["../../../src/store/sideEffects/onThreadLoad.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC9B,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"onThreadLoad.d.ts","sourceRoot":"","sources":["../../../src/store/sideEffects/onThreadLoad.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC9B,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAGH,KAAK,OAAO,EAGf,MAAM,gBAAgB,CAAC;AAUxB;;;GAGG;AACH,wBAAiB,YAAY;;;;;;;;;;;;;;;;;;;IAyC5B;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,eAAe,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CA+B/F"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// (C) 2024-2026 GoodData Corporation
|
|
2
2
|
import { call, cancelled, getContext, put, race, select, take } from "redux-saga/effects";
|
|
3
3
|
import { interactionsToMessages } from "./converters/interactionsToMessages.js";
|
|
4
|
+
import { isAssistantMessage, isSemanticSearchContents, } from "../../model.js";
|
|
4
5
|
import { settingsSelector } from "../chatWindow/chatWindowSelectors.js";
|
|
5
|
-
import {
|
|
6
|
+
import { loadMessages } from "../localStorage.js";
|
|
7
|
+
import { cancelAsyncAction, loadThreadErrorAction, loadThreadSuccessAction, restoreCachedMessagesAction, } from "../messages/messagesSlice.js";
|
|
6
8
|
/**
|
|
7
9
|
* Load thread history and put it to the store.
|
|
8
10
|
* @internal
|
|
@@ -14,14 +16,26 @@ export function* onThreadLoad() {
|
|
|
14
16
|
const workspace = yield getContext("workspace");
|
|
15
17
|
const settings = yield select(settingsSelector);
|
|
16
18
|
const showReasoning = Boolean(settings?.enableGenAIReasoningVisibility);
|
|
19
|
+
// Immediately restore cached messages so the UI doesn't flash empty while backend loads.
|
|
20
|
+
// Uses restoreCachedMessagesAction which shows messages but keeps loaded=false,
|
|
21
|
+
// preventing useThreadLoading from cancelling the in-progress backend fetch.
|
|
22
|
+
const cachedMessages = loadMessages(workspace);
|
|
23
|
+
if (cachedMessages?.length) {
|
|
24
|
+
yield put(restoreCachedMessagesAction({ messages: cachedMessages }));
|
|
25
|
+
}
|
|
17
26
|
const chatThread = backend.workspace(workspace).genAI().getChatThread();
|
|
18
|
-
const [results,
|
|
19
|
-
if (
|
|
27
|
+
const [results, wasCancelled] = yield race([call(fetchChatHistory, chatThread), take(cancelAsyncAction.type)]);
|
|
28
|
+
if (wasCancelled) {
|
|
20
29
|
// TODO - cancelled during the loading
|
|
21
30
|
}
|
|
22
31
|
else {
|
|
32
|
+
const backendMessages = interactionsToMessages(results?.interactions ?? [], { showReasoning });
|
|
33
|
+
// Merge: preserve semanticSearch content from cached messages when the backend omits it.
|
|
34
|
+
const mergedMessages = cachedMessages?.length
|
|
35
|
+
? mergeWithCache(backendMessages, cachedMessages)
|
|
36
|
+
: backendMessages;
|
|
23
37
|
yield put(loadThreadSuccessAction({
|
|
24
|
-
messages:
|
|
38
|
+
messages: mergedMessages,
|
|
25
39
|
threadId: results?.threadId ?? "",
|
|
26
40
|
}));
|
|
27
41
|
}
|
|
@@ -30,6 +44,40 @@ export function* onThreadLoad() {
|
|
|
30
44
|
yield put(loadThreadErrorAction({ error: e }));
|
|
31
45
|
}
|
|
32
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Merge backend-loaded messages with cached messages.
|
|
49
|
+
* For each assistant message from the backend, if its content is missing semanticSearch
|
|
50
|
+
* data but the corresponding cached message has it, the cached content is preserved.
|
|
51
|
+
* Matching is done by the server-side interaction ID (message.id).
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
export function mergeWithCache(backendMessages, cachedMessages) {
|
|
55
|
+
// Build a lookup of cached assistant messages by their server-side interaction ID.
|
|
56
|
+
const cachedById = new Map();
|
|
57
|
+
for (const msg of cachedMessages) {
|
|
58
|
+
if (isAssistantMessage(msg) && msg.id) {
|
|
59
|
+
cachedById.set(msg.id, msg);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return backendMessages.map((msg) => {
|
|
63
|
+
if (!isAssistantMessage(msg) || !msg.id) {
|
|
64
|
+
return msg;
|
|
65
|
+
}
|
|
66
|
+
const cached = cachedById.get(msg.id);
|
|
67
|
+
if (!cached) {
|
|
68
|
+
return msg;
|
|
69
|
+
}
|
|
70
|
+
// Check if the backend message is missing semanticSearch content but the cache has it.
|
|
71
|
+
const backendHasSemanticSearch = msg.content.some(isSemanticSearchContents);
|
|
72
|
+
const cachedSemanticSearchContents = cached.content.filter(isSemanticSearchContents);
|
|
73
|
+
if (!backendHasSemanticSearch && cachedSemanticSearchContents.length > 0) {
|
|
74
|
+
// Inject cached semanticSearch contents into the backend message.
|
|
75
|
+
const mergedContent = [...msg.content, ...cachedSemanticSearchContents];
|
|
76
|
+
return { ...msg, content: mergedContent };
|
|
77
|
+
}
|
|
78
|
+
return msg;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
33
81
|
function* fetchChatHistory(preparedChatThread) {
|
|
34
82
|
const controller = new AbortController();
|
|
35
83
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onThreadLoad.js","sourceRoot":"","sources":["../../../src/store/sideEffects/onThreadLoad.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAS1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EACH,iBAAi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AAC;QACvB,CAAC;IACL,CAAC;AAAA,CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-gen-ai",
|
|
3
|
-
"version": "11.26.0-alpha.
|
|
3
|
+
"version": "11.26.0-alpha.4",
|
|
4
4
|
"description": "GoodData GenAI SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -56,18 +56,18 @@
|
|
|
56
56
|
"reselect": "5.1.1",
|
|
57
57
|
"tslib": "2.8.1",
|
|
58
58
|
"uuid": "11.1.0",
|
|
59
|
-
"@gooddata/api-client-tiger": "11.26.0-alpha.
|
|
60
|
-
"@gooddata/sdk-
|
|
61
|
-
"@gooddata/sdk-ui": "11.26.0-alpha.
|
|
62
|
-
"@gooddata/sdk-
|
|
63
|
-
"@gooddata/sdk-
|
|
64
|
-
"@gooddata/sdk-ui-dashboard": "11.26.0-alpha.
|
|
65
|
-
"@gooddata/sdk-ui-filters": "11.26.0-alpha.
|
|
66
|
-
"@gooddata/sdk-ui-
|
|
67
|
-
"@gooddata/sdk-ui-
|
|
68
|
-
"@gooddata/sdk-ui-
|
|
69
|
-
"@gooddata/sdk-ui-theme-provider": "11.26.0-alpha.
|
|
70
|
-
"@gooddata/util": "11.26.0-alpha.
|
|
59
|
+
"@gooddata/api-client-tiger": "11.26.0-alpha.4",
|
|
60
|
+
"@gooddata/sdk-model": "11.26.0-alpha.4",
|
|
61
|
+
"@gooddata/sdk-ui": "11.26.0-alpha.4",
|
|
62
|
+
"@gooddata/sdk-ui-charts": "11.26.0-alpha.4",
|
|
63
|
+
"@gooddata/sdk-backend-spi": "11.26.0-alpha.4",
|
|
64
|
+
"@gooddata/sdk-ui-dashboard": "11.26.0-alpha.4",
|
|
65
|
+
"@gooddata/sdk-ui-filters": "11.26.0-alpha.4",
|
|
66
|
+
"@gooddata/sdk-ui-kit": "11.26.0-alpha.4",
|
|
67
|
+
"@gooddata/sdk-ui-pivot": "11.26.0-alpha.4",
|
|
68
|
+
"@gooddata/sdk-ui-semantic-search": "11.26.0-alpha.4",
|
|
69
|
+
"@gooddata/sdk-ui-theme-provider": "11.26.0-alpha.4",
|
|
70
|
+
"@gooddata/util": "11.26.0-alpha.4"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@microsoft/api-documenter": "^7.17.0",
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
"typescript": "5.9.3",
|
|
111
111
|
"vitest": "4.0.8",
|
|
112
112
|
"vitest-dom": "0.1.1",
|
|
113
|
-
"@gooddata/eslint-config": "11.26.0-alpha.
|
|
114
|
-
"@gooddata/i18n-toolkit": "11.26.0-alpha.
|
|
115
|
-
"@gooddata/
|
|
116
|
-
"@gooddata/reference-workspace": "11.26.0-alpha.
|
|
117
|
-
"@gooddata/sdk-
|
|
118
|
-
"@gooddata/
|
|
119
|
-
"@gooddata/stylelint-config": "11.26.0-alpha.
|
|
113
|
+
"@gooddata/eslint-config": "11.26.0-alpha.4",
|
|
114
|
+
"@gooddata/i18n-toolkit": "11.26.0-alpha.4",
|
|
115
|
+
"@gooddata/sdk-backend-mockingbird": "11.26.0-alpha.4",
|
|
116
|
+
"@gooddata/reference-workspace": "11.26.0-alpha.4",
|
|
117
|
+
"@gooddata/sdk-ui-theme-provider": "11.26.0-alpha.4",
|
|
118
|
+
"@gooddata/oxlint-config": "11.26.0-alpha.4",
|
|
119
|
+
"@gooddata/stylelint-config": "11.26.0-alpha.4"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
122
|
"react": "^18.0.0 || ^19.0.0",
|