@gooddata/sdk-ui-gen-ai 11.68.0-alpha.1 → 11.68.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 (64) hide show
  1. package/LICENSE +26 -4
  2. package/NOTICE +3 -3
  3. package/README.md +1 -1
  4. package/esm/components/ConfigContext.d.ts +50 -1
  5. package/esm/components/ConfigContext.d.ts.map +1 -1
  6. package/esm/components/ConversationDeleteDialog.d.ts +3 -8
  7. package/esm/components/ConversationDeleteDialog.d.ts.map +1 -1
  8. package/esm/components/ConversationDeleteDialog.js +3 -3
  9. package/esm/components/ConversationRenameDialog.d.ts +3 -8
  10. package/esm/components/ConversationRenameDialog.d.ts.map +1 -1
  11. package/esm/components/ConversationRenameDialog.js +2 -2
  12. package/esm/components/CustomizationContext.d.ts +3 -1
  13. package/esm/components/CustomizationContext.d.ts.map +1 -1
  14. package/esm/components/CustomizationProvider.d.ts.map +1 -1
  15. package/esm/components/CustomizationProvider.js +20 -0
  16. package/esm/components/GenAIChatConversations.d.ts.map +1 -1
  17. package/esm/components/GenAIChatConversations.js +2 -3
  18. package/esm/components/customized/ConversationDeleteDialog.d.ts +8 -0
  19. package/esm/components/customized/ConversationDeleteDialog.d.ts.map +1 -0
  20. package/esm/components/customized/ConversationDeleteDialog.js +11 -0
  21. package/esm/components/customized/ConversationRenameDialog.d.ts +8 -0
  22. package/esm/components/customized/ConversationRenameDialog.d.ts.map +1 -0
  23. package/esm/components/customized/ConversationRenameDialog.js +11 -0
  24. package/esm/components/customized/types.d.ts +81 -0
  25. package/esm/components/customized/types.d.ts.map +1 -1
  26. package/esm/components/messages/AssistantItemFeedback.d.ts.map +1 -1
  27. package/esm/components/messages/AssistantItemFeedback.js +5 -1
  28. package/esm/components/messages/FeedbackPopup.d.ts.map +1 -1
  29. package/esm/components/messages/FeedbackPopup.js +8 -2
  30. package/esm/components/messages/conversationContents/ConversationClarifyingAnswersContent.d.ts.map +1 -1
  31. package/esm/components/messages/conversationContents/ConversationClarifyingAnswersContent.js +2 -2
  32. package/esm/components/messages/conversationContents/ConversationClarifyingQuestionsContent.d.ts.map +1 -1
  33. package/esm/components/messages/conversationContents/ConversationClarifyingQuestionsContent.js +1 -1
  34. package/esm/index.d.ts +3 -1
  35. package/esm/index.d.ts.map +1 -1
  36. package/esm/index.js +2 -0
  37. package/esm/localization/bundles/de-DE.localization-bundle.js +2 -2
  38. package/esm/localization/bundles/es-419.localization-bundle.js +2 -2
  39. package/esm/localization/bundles/es-ES.localization-bundle.js +2 -2
  40. package/esm/localization/bundles/fi-FI.localization-bundle.js +2 -2
  41. package/esm/localization/bundles/fr-CA.localization-bundle.js +2 -2
  42. package/esm/localization/bundles/fr-FR.localization-bundle.js +2 -2
  43. package/esm/localization/bundles/id-ID.localization-bundle.js +2 -2
  44. package/esm/localization/bundles/it-IT.localization-bundle.js +3 -3
  45. package/esm/localization/bundles/nl-NL.localization-bundle.js +2 -2
  46. package/esm/localization/bundles/pl-PL.localization-bundle.js +2 -2
  47. package/esm/localization/bundles/pt-BR.localization-bundle.js +2 -2
  48. package/esm/localization/bundles/pt-PT.localization-bundle.js +17 -17
  49. package/esm/localization/bundles/ru-RU.localization-bundle.js +2 -2
  50. package/esm/localization/bundles/sl-SI.localization-bundle.js +2 -2
  51. package/esm/localization/bundles/th-TH.localization-bundle.js +2 -2
  52. package/esm/localization/bundles/tr-TR.localization-bundle.js +2 -2
  53. package/esm/localization/bundles/uk-UA.localization-bundle.js +2 -2
  54. package/esm/localization/bundles/vi-VN.localization-bundle.js +2 -2
  55. package/esm/localization/bundles/zh-HK.localization-bundle.js +11 -11
  56. package/esm/localization/bundles/zh-Hans.localization-bundle.js +2 -2
  57. package/esm/localization/bundles/zh-Hant.localization-bundle.js +3 -3
  58. package/esm/sdk-ui-gen-ai.d.ts +147 -1
  59. package/package.json +23 -23
  60. package/styles/css/main.css +3 -0
  61. package/styles/css/main.css.map +1 -1
  62. package/styles/css/messages.css +3 -0
  63. package/styles/css/messages.css.map +1 -1
  64. package/styles/scss/messages.scss +4 -0
@@ -625,6 +625,13 @@ export declare function DefaultAssistantMessage(props: IGenAIAssistantAssistantM
625
625
  */
626
626
  export declare function DefaultConversationDateGrouping(props: IGenAIAssistantConversationDateGroupingProps): JSX.Element;
627
627
 
628
+ /**
629
+ * Default implementation of the ConversationDeleteDialog slot.
630
+ *
631
+ * @alpha
632
+ */
633
+ export declare function DefaultConversationDeleteDialog(props: IGenAIAssistantConversationDeleteDialogProps): JSX.Element;
634
+
628
635
  /**
629
636
  * Default implementation of the ConversationDrawerHeader slot.
630
637
  *
@@ -660,6 +667,13 @@ export declare function DefaultConversationItem(props: IGenAIAssistantConversati
660
667
  */
661
668
  export declare function DefaultConversationKdaContent(props: IGenAIAssistantConversationKdaContentProps): JSX.Element;
662
669
 
670
+ /**
671
+ * Default implementation of the ConversationRenameDialog slot.
672
+ *
673
+ * @alpha
674
+ */
675
+ export declare function DefaultConversationRenameDialog(props: IGenAIAssistantConversationRenameDialogProps): JSX.Element;
676
+
663
677
  /**
664
678
  * Default implementation of the ConversationVisualizationContent slot.
665
679
  *
@@ -1448,6 +1462,44 @@ export declare type IGenAIAssistantConversationDateGroupingProps = {
1448
1462
  menuGroupItemProps: IUiMenuGroupItemProps;
1449
1463
  };
1450
1464
 
1465
+ /**
1466
+ * Properties for the ConversationDeleteDialog slot.
1467
+ * @alpha
1468
+ */
1469
+ export declare type IGenAIAssistantConversationDeleteDialogProps = {
1470
+ /**
1471
+ * The conversation to be deleted.
1472
+ */
1473
+ conversation: IChatConversationLocal;
1474
+ /**
1475
+ * Callback invoked when the conversation deletion is confirmed.
1476
+ */
1477
+ onDelete: () => void;
1478
+ /**
1479
+ * Callback invoked when the dialog is closed or cancelled.
1480
+ */
1481
+ onClose: () => void;
1482
+ /**
1483
+ * Optional custom title for the dialog.
1484
+ */
1485
+ title?: string;
1486
+ /**
1487
+ * Optional custom body/message for the dialog.
1488
+ * Name is cleared conversation name
1489
+ */
1490
+ body?: (props: {
1491
+ name: string;
1492
+ }) => ReactNode;
1493
+ /**
1494
+ * Optional custom text for the submit button.
1495
+ */
1496
+ submitButtonText?: string;
1497
+ /**
1498
+ * Optional custom text for the cancel button.
1499
+ */
1500
+ cancelButtonText?: string;
1501
+ };
1502
+
1451
1503
  /**
1452
1504
  * Properties for the ConversationDrawerHeader slot.
1453
1505
  * @alpha
@@ -1524,6 +1576,41 @@ export declare type IGenAIAssistantConversationKdaContentProps = {
1524
1576
  enableKeyDriverAnalysis?: boolean;
1525
1577
  };
1526
1578
 
1579
+ /**
1580
+ * Properties for the ConversationRenameDialog slot.
1581
+ * @alpha
1582
+ */
1583
+ export declare type IGenAIAssistantConversationRenameDialogProps = {
1584
+ /**
1585
+ * The conversation to be renamed.
1586
+ */
1587
+ conversation: IChatConversationLocal;
1588
+ /**
1589
+ * Callback invoked when the conversation rename is confirmed.
1590
+ */
1591
+ onRename: (name: string) => void;
1592
+ /**
1593
+ * Callback invoked when the dialog is closed or cancelled.
1594
+ */
1595
+ onClose: () => void;
1596
+ /**
1597
+ * Optional custom title for the dialog.
1598
+ */
1599
+ title?: string;
1600
+ /**
1601
+ * Optional custom label for the input field.
1602
+ */
1603
+ label?: string;
1604
+ /**
1605
+ * Optional custom text for the submit button.
1606
+ */
1607
+ submitButtonText?: string;
1608
+ /**
1609
+ * Optional custom text for the cancel button.
1610
+ */
1611
+ cancelButtonText?: string;
1612
+ };
1613
+
1527
1614
  /**
1528
1615
  * Properties for the ConversationVisualizationContent slot.
1529
1616
  * @alpha
@@ -1796,6 +1883,16 @@ export declare interface IGenAIAssistantSlots {
1796
1883
  * Custom React component rendered for date grouped conversation sections.
1797
1884
  */
1798
1885
  ConversationDateGrouping?: ComponentType<ISlotProps<IGenAIAssistantConversationDateGroupingProps>>;
1886
+ /**
1887
+ * @alpha
1888
+ * Custom React component rendered as the dialog for renaming a conversation.
1889
+ */
1890
+ ConversationRenameDialog?: ComponentType<ISlotProps<IGenAIAssistantConversationRenameDialogProps>>;
1891
+ /**
1892
+ * @alpha
1893
+ * Custom React component rendered as the dialog for deleting a conversation.
1894
+ */
1895
+ ConversationDeleteDialog?: ComponentType<ISlotProps<IGenAIAssistantConversationDeleteDialogProps>>;
1799
1896
  /**
1800
1897
  * @alpha
1801
1898
  * Custom React component rendered for each user message.
@@ -2196,23 +2293,72 @@ export declare type LandingScreenProps = IGenAIAssistantLandingScreenProps & {
2196
2293
  };
2197
2294
 
2198
2295
  /**
2296
+ * Event passed to a link handler when the Gen AI assistant requests to open or copy a link.
2297
+ *
2199
2298
  * @public
2200
2299
  */
2201
2300
  export declare type LinkHandlerEvent = {
2301
+ /**
2302
+ * Type of the linked object, or `setting` for a settings action.
2303
+ */
2202
2304
  type: "setting" | "report" | GenAIObjectType;
2305
+ /**
2306
+ * Identifier of the linked object or draft, or the action identifier for a settings link.
2307
+ */
2203
2308
  id: string;
2309
+ /**
2310
+ * Identifier of the workspace associated with the link.
2311
+ */
2204
2312
  workspaceId: string;
2313
+ /**
2314
+ * Whether the interaction requests opening the link in a new tab.
2315
+ */
2205
2316
  newTab: boolean;
2317
+ /**
2318
+ * Default URL of the linked item. May be relative to the application or absolute.
2319
+ */
2206
2320
  itemUrl: string;
2321
+ /**
2322
+ * Prevents the default browser action of the originating interaction, such as native link navigation.
2323
+ */
2207
2324
  preventDefault: () => void;
2325
+ /**
2326
+ * Identifier of the conversation associated with the link, when available.
2327
+ */
2208
2328
  conversationId?: string;
2329
+ /**
2330
+ * Settings section to open. Provided for links to AI settings.
2331
+ * - ai - Requested open ai section in settings
2332
+ */
2209
2333
  section?: "ai";
2334
+ /**
2335
+ * Requested link action.
2336
+ * - copy - Requested copy to clipboard action
2337
+ * - open - Requested open link action
2338
+ */
2339
+ action: "copy" | "open";
2340
+ /**
2341
+ * Dashboard definition matching `id` and `dashboardStatus`, when included in a dashboard link event.
2342
+ */
2210
2343
  dashboard?: IDashboard;
2344
+ /**
2345
+ * Insights referenced by `dashboard`, using draft or persisted identifiers to match its status.
2346
+ */
2211
2347
  insights?: IInsight[];
2348
+ /**
2349
+ * Dashboard link's open mode (`saved` or `draft`). Conversation links always use `draft`,
2350
+ * including for already-saved dashboards.
2351
+ */
2212
2352
  dashboardStatus?: "saved" | "draft";
2353
+ /**
2354
+ * Insight definition matching `id` and `visualizationStatus`, when included in a visualization link event.
2355
+ */
2213
2356
  visualization?: IInsight;
2357
+ /**
2358
+ * Whether the visualization exists in metadata (`saved`) or is a generated draft that must be saved (`draft`).
2359
+ * @remarks When copilot editing already saved visualization, its still get status draft.
2360
+ */
2214
2361
  visualizationStatus?: "saved" | "draft";
2215
- action: "copy" | "open";
2216
2362
  };
2217
2363
 
2218
2364
  /**
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-gen-ai",
3
- "version": "11.68.0-alpha.1",
3
+ "version": "11.68.0-alpha.3",
4
4
  "description": "GoodData GenAI SDK",
5
- "license": "MIT",
5
+ "license": "LicenseRef-LICENSE",
6
6
  "author": "GoodData Corporation",
7
7
  "repository": {
8
8
  "type": "git",
@@ -57,21 +57,21 @@
57
57
  "reselect": "5.1.1",
58
58
  "tslib": "2.8.1",
59
59
  "uuid": "11.1.1",
60
- "@gooddata/api-client-tiger": "11.68.0-alpha.1",
61
- "@gooddata/sdk-backend-spi": "11.68.0-alpha.1",
62
- "@gooddata/sdk-model": "11.68.0-alpha.1",
63
- "@gooddata/sdk-pluggable-application-model": "11.68.0-alpha.1",
64
- "@gooddata/sdk-ui": "11.68.0-alpha.1",
65
- "@gooddata/sdk-ui-charts": "11.68.0-alpha.1",
66
- "@gooddata/sdk-ui-dashboard": "11.68.0-alpha.1",
67
- "@gooddata/sdk-ui-ext": "11.68.0-alpha.1",
68
- "@gooddata/sdk-ui-filters": "11.68.0-alpha.1",
69
- "@gooddata/sdk-ui-kit": "11.68.0-alpha.1",
70
- "@gooddata/sdk-ui-geo": "11.68.0-alpha.1",
71
- "@gooddata/sdk-ui-pivot": "11.68.0-alpha.1",
72
- "@gooddata/sdk-ui-semantic-search": "11.68.0-alpha.1",
73
- "@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.1",
74
- "@gooddata/util": "11.68.0-alpha.1"
60
+ "@gooddata/api-client-tiger": "11.68.0-alpha.3",
61
+ "@gooddata/sdk-backend-spi": "11.68.0-alpha.3",
62
+ "@gooddata/sdk-pluggable-application-model": "11.68.0-alpha.3",
63
+ "@gooddata/sdk-ui": "11.68.0-alpha.3",
64
+ "@gooddata/sdk-model": "11.68.0-alpha.3",
65
+ "@gooddata/sdk-ui-charts": "11.68.0-alpha.3",
66
+ "@gooddata/sdk-ui-dashboard": "11.68.0-alpha.3",
67
+ "@gooddata/sdk-ui-ext": "11.68.0-alpha.3",
68
+ "@gooddata/sdk-ui-geo": "11.68.0-alpha.3",
69
+ "@gooddata/sdk-ui-kit": "11.68.0-alpha.3",
70
+ "@gooddata/sdk-ui-pivot": "11.68.0-alpha.3",
71
+ "@gooddata/sdk-ui-filters": "11.68.0-alpha.3",
72
+ "@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.3",
73
+ "@gooddata/sdk-ui-semantic-search": "11.68.0-alpha.3",
74
+ "@gooddata/util": "11.68.0-alpha.3"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@microsoft/api-documenter": "7.30.20",
@@ -110,12 +110,12 @@
110
110
  "svgo": "2.8.4",
111
111
  "typescript": "7.0.2",
112
112
  "vitest": "5.0.4",
113
- "@gooddata/i18n-toolkit": "11.68.0-alpha.1",
114
- "@gooddata/oxlint-config": "11.68.0-alpha.1",
115
- "@gooddata/reference-workspace": "11.68.0-alpha.1",
116
- "@gooddata/eslint-config": "11.68.0-alpha.1",
117
- "@gooddata/stylelint-config": "11.68.0-alpha.1",
118
- "@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.1"
113
+ "@gooddata/i18n-toolkit": "11.68.0-alpha.3",
114
+ "@gooddata/eslint-config": "11.68.0-alpha.3",
115
+ "@gooddata/oxlint-config": "11.68.0-alpha.3",
116
+ "@gooddata/reference-workspace": "11.68.0-alpha.3",
117
+ "@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.3",
118
+ "@gooddata/stylelint-config": "11.68.0-alpha.3"
119
119
  },
120
120
  "peerDependencies": {
121
121
  "react": "^18.0.0 || ^19.0.0",
@@ -23967,6 +23967,9 @@ button.gd-list-item {
23967
23967
  .gd-gen-ai-chat__messages__conversation--user .gd-gen-ai-chat__conversation__item__content--text .gd-ui-kit-tooltip__anchor {
23968
23968
  display: inline-flex;
23969
23969
  }
23970
+ .gd-gen-ai-chat__messages__conversation--user .gd-gen-ai-chat__conversation__item__content--text p {
23971
+ white-space: pre-line;
23972
+ }
23970
23973
  .gd-gen-ai-chat__messages__conversation--assistant {
23971
23974
  justify-content: flex-start;
23972
23975
  color: var(--gd-palette-complementary-8, #464e56);