@gooddata/sdk-ui-gen-ai 11.67.0-alpha.2 → 11.67.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/NOTICE +943 -2401
  2. package/README.md +44 -1
  3. package/esm/components/GenAIChatDialogConnected.d.ts +5 -8
  4. package/esm/components/GenAIChatDialogConnected.d.ts.map +1 -1
  5. package/esm/components/GenAIChatDialogConnected.js +4 -5
  6. package/esm/components/GenAIChatWrapper.js +1 -1
  7. package/esm/components/hooks/useAppEventSync.d.ts +18 -0
  8. package/esm/components/hooks/useAppEventSync.d.ts.map +1 -0
  9. package/esm/components/hooks/useAppEventSync.js +35 -0
  10. package/esm/components/hooks/useSettingsClick.d.ts +1 -2
  11. package/esm/components/hooks/useSettingsClick.d.ts.map +1 -1
  12. package/esm/components/hooks/useSettingsClick.js +7 -20
  13. package/esm/components/messages/conversationContents/ConversationErrorContent.d.ts.map +1 -1
  14. package/esm/components/messages/conversationContents/ConversationErrorContent.js +1 -4
  15. package/esm/copilot/CopilotComposingOverlay.d.ts +4 -0
  16. package/esm/copilot/CopilotComposingOverlay.d.ts.map +1 -0
  17. package/esm/copilot/CopilotComposingOverlay.js +151 -0
  18. package/esm/copilot/CopilotInteractionComposing.d.ts +29 -0
  19. package/esm/copilot/CopilotInteractionComposing.d.ts.map +1 -0
  20. package/esm/copilot/CopilotInteractionComposing.js +39 -0
  21. package/esm/copilot/CopilotInteractionComposingWithHandler.d.ts +15 -0
  22. package/esm/copilot/CopilotInteractionComposingWithHandler.d.ts.map +1 -0
  23. package/esm/copilot/CopilotInteractionComposingWithHandler.js +11 -0
  24. package/esm/copilot/selectors.d.ts +4 -2
  25. package/esm/copilot/selectors.d.ts.map +1 -1
  26. package/esm/copilot/selectors.js +73 -14
  27. package/esm/copilot/transitions.d.ts.map +1 -1
  28. package/esm/copilot/transitions.js +264 -81
  29. package/esm/copilot/types.d.ts +10 -4
  30. package/esm/copilot/types.d.ts.map +1 -1
  31. package/esm/index.d.ts +2 -0
  32. package/esm/index.d.ts.map +1 -1
  33. package/esm/index.js +2 -0
  34. package/esm/internal.d.ts +1 -2
  35. package/esm/internal.d.ts.map +1 -1
  36. package/esm/localization/bundles/en-US.localization-bundle.d.ts +8 -0
  37. package/esm/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  38. package/esm/localization/bundles/en-US.localization-bundle.js +8 -0
  39. package/esm/sdk-ui-gen-ai.d.ts +58 -51
  40. package/esm/store/events.d.ts +6 -45
  41. package/esm/store/events.d.ts.map +1 -1
  42. package/esm/store/sideEffects/onEvent.d.ts +11 -3
  43. package/esm/store/sideEffects/onEvent.d.ts.map +1 -1
  44. package/esm/store/sideEffects/onEvent.js +32 -25
  45. package/esm/utils.d.ts +0 -4
  46. package/esm/utils.d.ts.map +1 -1
  47. package/esm/utils.js +1 -21
  48. package/package.json +25 -26
  49. package/styles/css/copilotInteractionComposing.css +94 -0
  50. package/styles/css/copilotInteractionComposing.css.map +1 -0
  51. package/styles/css/main.css +93 -0
  52. package/styles/css/main.css.map +1 -1
  53. package/styles/scss/copilotInteractionComposing.scss +106 -0
  54. package/styles/scss/main.scss +1 -0
  55. package/esm/components/hooks/useDashboardSavedSync.d.ts +0 -13
  56. package/esm/components/hooks/useDashboardSavedSync.d.ts.map +0 -1
  57. package/esm/components/hooks/useDashboardSavedSync.js +0 -14
  58. package/esm/components/hooks/usePublisherDocumentSavedSync.d.ts +0 -20
  59. package/esm/components/hooks/usePublisherDocumentSavedSync.d.ts.map +0 -1
  60. package/esm/components/hooks/usePublisherDocumentSavedSync.js +0 -18
@@ -1,20 +0,0 @@
1
- import { type GenAIPublisherDocumentFormat } from "@gooddata/sdk-backend-spi";
2
- import { publisherDocumentSavedAction } from "../../store/messages/messagesSlice.js";
3
- /**
4
- * A document of the chat that an application saved. `seq` tells one save from the next, so saving the
5
- * same document again is reported again.
6
- */
7
- export interface IPublisherDocumentSaved {
8
- seq: number;
9
- conversationId: string;
10
- itemId: string;
11
- documentRef?: string;
12
- savedDocumentId: string;
13
- format?: GenAIPublisherDocumentFormat;
14
- }
15
- /**
16
- * Tells the chat store about a document an application saved, so the document in the chat reads as saved
17
- * without the conversation being loaded again.
18
- */
19
- export declare function usePublisherDocumentSavedSync(dispatch: ((action: ReturnType<typeof publisherDocumentSavedAction>) => void) | null, documentSaved: IPublisherDocumentSaved | undefined): void;
20
- //# sourceMappingURL=usePublisherDocumentSavedSync.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePublisherDocumentSavedSync.d.ts","sourceRoot":"","sources":["../../../src/components/hooks/usePublisherDocumentSavedSync.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAE9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAErF;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACzC;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CACzC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,OAAO,4BAA4B,CAAC,KAAK,IAAI,CAAC,GAAG,IAAI,EACpF,aAAa,EAAE,uBAAuB,GAAG,SAAS,QAYrD"}
@@ -1,18 +0,0 @@
1
- // (C) 2026 GoodData Corporation
2
- import { useEffect, useRef } from "react";
3
- import { publisherDocumentSavedAction } from "../../store/messages/messagesSlice.js";
4
- /**
5
- * Tells the chat store about a document an application saved, so the document in the chat reads as saved
6
- * without the conversation being loaded again.
7
- */
8
- export function usePublisherDocumentSavedSync(dispatch, documentSaved) {
9
- const lastSeq = useRef(undefined);
10
- useEffect(() => {
11
- if (!dispatch || !documentSaved || lastSeq.current === documentSaved.seq) {
12
- return;
13
- }
14
- lastSeq.current = documentSaved.seq;
15
- const { seq: _seq, ...payload } = documentSaved;
16
- dispatch(publisherDocumentSavedAction(payload));
17
- }, [dispatch, documentSaved]);
18
- }