@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
@@ -38,7 +38,7 @@ export function* onEvent() {
38
38
  }
39
39
  function* onConversationPinUpdated({ payload: { conversation, pinned }, }) {
40
40
  const eventDispatcher = yield getContext("eventDispatcher");
41
- const threadId = yield select(threadIdSelector);
41
+ const threadId = yield selectRightThreadId();
42
42
  eventDispatcher.dispatch({
43
43
  type: "chatConversationPinned",
44
44
  threadId,
@@ -48,7 +48,7 @@ function* onConversationPinUpdated({ payload: { conversation, pinned }, }) {
48
48
  }
49
49
  function* onConversationPinError({ payload: { conversation, error }, }) {
50
50
  const eventDispatcher = yield getContext("eventDispatcher");
51
- const threadId = yield select(threadIdSelector);
51
+ const threadId = yield selectRightThreadId();
52
52
  eventDispatcher.dispatch({
53
53
  type: "chatConversationPinError",
54
54
  threadId,
@@ -58,7 +58,7 @@ function* onConversationPinError({ payload: { conversation, error }, }) {
58
58
  }
59
59
  function* onConversationDelete({ payload: { conversation } }) {
60
60
  const eventDispatcher = yield getContext("eventDispatcher");
61
- const threadId = yield select(threadIdSelector);
61
+ const threadId = yield selectRightThreadId();
62
62
  eventDispatcher.dispatch({
63
63
  type: "chatConversationDelete",
64
64
  threadId,
@@ -67,7 +67,7 @@ function* onConversationDelete({ payload: { conversation } }) {
67
67
  }
68
68
  function* onConversationDeletedSuccess({ payload: { conversation }, }) {
69
69
  const eventDispatcher = yield getContext("eventDispatcher");
70
- const threadId = yield select(threadIdSelector);
70
+ const threadId = yield selectRightThreadId();
71
71
  eventDispatcher.dispatch({
72
72
  type: "chatConversationDeletedSuccess",
73
73
  threadId,
@@ -76,7 +76,7 @@ function* onConversationDeletedSuccess({ payload: { conversation }, }) {
76
76
  }
77
77
  function* onConversationDeletedError({ payload: { conversation, error }, }) {
78
78
  const eventDispatcher = yield getContext("eventDispatcher");
79
- const threadId = yield select(threadIdSelector);
79
+ const threadId = yield selectRightThreadId();
80
80
  eventDispatcher.dispatch({
81
81
  type: "chatConversationDeletedError",
82
82
  threadId,
@@ -86,7 +86,7 @@ function* onConversationDeletedError({ payload: { conversation, error }, }) {
86
86
  }
87
87
  function* onConversationRename({ payload: { conversation, title }, }) {
88
88
  const eventDispatcher = yield getContext("eventDispatcher");
89
- const threadId = yield select(threadIdSelector);
89
+ const threadId = yield selectRightThreadId();
90
90
  eventDispatcher.dispatch({
91
91
  type: "chatConversationRename",
92
92
  threadId,
@@ -96,7 +96,7 @@ function* onConversationRename({ payload: { conversation, title }, }) {
96
96
  }
97
97
  function* onConversationRenamedSuccess({ payload: { conversation, title }, }) {
98
98
  const eventDispatcher = yield getContext("eventDispatcher");
99
- const threadId = yield select(threadIdSelector);
99
+ const threadId = yield selectRightThreadId();
100
100
  eventDispatcher.dispatch({
101
101
  type: "chatConversationRenamedSuccess",
102
102
  threadId,
@@ -106,7 +106,7 @@ function* onConversationRenamedSuccess({ payload: { conversation, title }, }) {
106
106
  }
107
107
  function* onConversationRenamedError({ payload: { conversation, title, error }, }) {
108
108
  const eventDispatcher = yield getContext("eventDispatcher");
109
- const threadId = yield select(threadIdSelector);
109
+ const threadId = yield selectRightThreadId();
110
110
  eventDispatcher.dispatch({
111
111
  type: "chatConversationRenamedError",
112
112
  title: title ?? "",
@@ -117,7 +117,7 @@ function* onConversationRenamedError({ payload: { conversation, title, error },
117
117
  }
118
118
  function* onConversationChanged({ payload: { conversation }, }) {
119
119
  const eventDispatcher = yield getContext("eventDispatcher");
120
- const threadId = yield select(threadIdSelector);
120
+ const threadId = yield selectRightThreadId();
121
121
  eventDispatcher.dispatch({
122
122
  type: "chatConversationChanged",
123
123
  threadId,
@@ -126,7 +126,7 @@ function* onConversationChanged({ payload: { conversation }, }) {
126
126
  }
127
127
  function* onConversationLoaded({ payload: { currentConversation }, }) {
128
128
  const eventDispatcher = yield getContext("eventDispatcher");
129
- const threadId = yield select(threadIdSelector);
129
+ const threadId = yield selectRightThreadId();
130
130
  eventDispatcher.dispatch({
131
131
  type: "chatConversationChanged",
132
132
  threadId,
@@ -140,7 +140,7 @@ function* onSetOpen({ payload: { isOpen } }) {
140
140
  return;
141
141
  }
142
142
  const eventDispatcher = yield getContext("eventDispatcher");
143
- const threadId = yield select(threadIdSelector);
143
+ const threadId = yield selectRightThreadId();
144
144
  eventDispatcher.dispatch({
145
145
  type: "chatClosed",
146
146
  threadId,
@@ -148,7 +148,7 @@ function* onSetOpen({ payload: { isOpen } }) {
148
148
  }
149
149
  function* onFullscreenChanged({ payload: { isFullscreen } }) {
150
150
  const eventDispatcher = yield getContext("eventDispatcher");
151
- const threadId = yield select(threadIdSelector);
151
+ const threadId = yield selectRightThreadId();
152
152
  eventDispatcher.dispatch({
153
153
  type: "onModeChange",
154
154
  threadId,
@@ -157,7 +157,7 @@ function* onFullscreenChanged({ payload: { isFullscreen } }) {
157
157
  }
158
158
  function* onSelectedAgentChanged({ payload: { previousAgentId, agentId }, }) {
159
159
  const eventDispatcher = yield getContext("eventDispatcher");
160
- const threadId = yield select(threadIdSelector);
160
+ const threadId = yield selectRightThreadId();
161
161
  eventDispatcher.dispatch({
162
162
  type: "onSelectedAgentAction",
163
163
  threadId,
@@ -179,7 +179,7 @@ function* onThreadLoaded({ payload: { threadId } }) {
179
179
  }
180
180
  function* onClearThread(_action) {
181
181
  const eventDispatcher = yield getContext("eventDispatcher");
182
- const threadId = yield select(threadIdSelector);
182
+ const threadId = yield selectRightThreadId();
183
183
  eventDispatcher.dispatch({
184
184
  type: "chatReset",
185
185
  threadId,
@@ -194,8 +194,8 @@ export function* onNewMessage({ payload: message }) {
194
194
  return;
195
195
  }
196
196
  const eventDispatcher = yield getContext("eventDispatcher");
197
- const threadId = yield select(threadIdSelector);
198
197
  const conversation = yield select(conversationSelector);
198
+ const threadId = yield selectRightThreadId();
199
199
  switch (messageContent.type) {
200
200
  case "text":
201
201
  eventDispatcher.dispatch({
@@ -274,7 +274,7 @@ export function* onClarificationQuestionsAnswered({ payload: { assistantMessageI
274
274
  return;
275
275
  }
276
276
  const eventDispatcher = yield getContext("eventDispatcher");
277
- const threadId = yield select(threadIdSelector);
277
+ const threadId = yield selectRightThreadId();
278
278
  eventDispatcher.dispatch({
279
279
  type: "chatClarificationQuestions",
280
280
  interactionId: message.id,
@@ -289,7 +289,7 @@ function* onUserFeedback({ payload: { assistantMessageId, feedback, userTextFeed
289
289
  return;
290
290
  }
291
291
  const eventDispatcher = yield getContext("eventDispatcher");
292
- const threadId = yield select(threadIdSelector);
292
+ const threadId = yield selectRightThreadId();
293
293
  eventDispatcher.dispatch({
294
294
  type: "chatFeedback",
295
295
  interactionId: message.id,
@@ -304,7 +304,7 @@ function* onUserFeedbackError({ payload: { assistantMessageId, error }, }) {
304
304
  return;
305
305
  }
306
306
  const eventDispatcher = yield getContext("eventDispatcher");
307
- const threadId = yield select(threadIdSelector);
307
+ const threadId = yield selectRightThreadId();
308
308
  eventDispatcher.dispatch({
309
309
  type: "chatFeedbackError",
310
310
  interactionId: message.id,
@@ -314,7 +314,7 @@ function* onUserFeedbackError({ payload: { assistantMessageId, error }, }) {
314
314
  }
315
315
  function* onVisualizationError({ payload: { errorMessage, errorType }, }) {
316
316
  const eventDispatcher = yield getContext("eventDispatcher");
317
- const threadId = yield select(threadIdSelector);
317
+ const threadId = yield selectRightThreadId();
318
318
  eventDispatcher.dispatch({
319
319
  type: "chatVisualizationError",
320
320
  threadId,
@@ -324,7 +324,7 @@ function* onVisualizationError({ payload: { errorMessage, errorType }, }) {
324
324
  }
325
325
  function* onSaveVisualizationError({ payload: { error } }) {
326
326
  const eventDispatcher = yield getContext("eventDispatcher");
327
- const threadId = yield select(threadIdSelector);
327
+ const threadId = yield selectRightThreadId();
328
328
  eventDispatcher.dispatch({
329
329
  type: "chatSaveVisualizationError",
330
330
  threadId,
@@ -334,7 +334,7 @@ function* onSaveVisualizationError({ payload: { error } }) {
334
334
  }
335
335
  function* onSaveVisualizationSuccess({ payload: { savedVisualizationId }, }) {
336
336
  const eventDispatcher = yield getContext("eventDispatcher");
337
- const threadId = yield select(threadIdSelector);
337
+ const threadId = yield selectRightThreadId();
338
338
  eventDispatcher.dispatch({
339
339
  type: "chatSaveVisualizationSuccess",
340
340
  threadId,
@@ -343,7 +343,7 @@ function* onSaveVisualizationSuccess({ payload: { savedVisualizationId }, }) {
343
343
  }
344
344
  function* onCopyToClipboard({ payload: { content } }) {
345
345
  const eventDispatcher = yield getContext("eventDispatcher");
346
- const threadId = yield select(threadIdSelector);
346
+ const threadId = yield selectRightThreadId();
347
347
  eventDispatcher.dispatch({
348
348
  type: "chatCopyToClipboard",
349
349
  threadId,
@@ -352,7 +352,7 @@ function* onCopyToClipboard({ payload: { content } }) {
352
352
  }
353
353
  function* onDefinitionReceived({ payload }) {
354
354
  const eventDispatcher = yield getContext("eventDispatcher");
355
- const threadId = yield select(threadIdSelector);
355
+ const threadId = yield selectRightThreadId();
356
356
  eventDispatcher.dispatch({
357
357
  type: "onDefinitionReceived",
358
358
  threadId,
@@ -395,7 +395,7 @@ function convertMessageTypeTo(content) {
395
395
  }
396
396
  function* onAmbientUserContextChanged({ payload }) {
397
397
  const eventDispatcher = yield getContext("eventDispatcher");
398
- const threadId = yield select(threadIdSelector);
398
+ const threadId = yield selectRightThreadId();
399
399
  eventDispatcher.dispatch({
400
400
  type: "onContextChange",
401
401
  threadId,
@@ -405,7 +405,7 @@ function* onAmbientUserContextChanged({ payload }) {
405
405
  }
406
406
  function* onUserContextChanged({ payload }) {
407
407
  const eventDispatcher = yield getContext("eventDispatcher");
408
- const threadId = yield select(threadIdSelector);
408
+ const threadId = yield selectRightThreadId();
409
409
  eventDispatcher.dispatch({
410
410
  type: "onContextChange",
411
411
  threadId,
@@ -413,3 +413,10 @@ function* onUserContextChanged({ payload }) {
413
413
  ...payload,
414
414
  });
415
415
  }
416
+ function* selectRightThreadId() {
417
+ const conversation = yield select(conversationSelector);
418
+ const threadId = conversation
419
+ ? conversation.id || undefined
420
+ : yield select(threadIdSelector);
421
+ return threadId;
422
+ }
package/esm/utils.d.ts CHANGED
@@ -25,10 +25,6 @@ export declare function getPublisherDocumentItemUrl({ workspaceId, saved, baseDo
25
25
  }): string | undefined;
26
26
  export declare function formatPublisherDocumentPeriod(periodStart: string, periodEnd: string, intl: IntlShape): string | undefined;
27
27
  export declare function getAbsoluteVisualizationHref(wsId: string, visId: string, status: "draft" | "saved"): string;
28
- export declare function getSettingHref(section: string, action?: string): string;
29
- export declare function getAbsoluteSettingHref(section: string, action?: string): string;
30
- export declare function getWorkspaceSettingHref(workspaceId: string, section: string, action?: string): string;
31
- export declare function getAbsoluteWorkspaceSettingHref(workspaceId: string, section: string, action?: string): string;
32
28
  export declare function getShellAppOrgSettingHref(section: string, action?: string): string;
33
29
  export declare function getAbsoluteShellAppOrgSettingHref(section: string, action?: string): string;
34
30
  export declare function getShellAppWorkspaceSettingHref(workspaceId: string, section: string, action?: string): string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,4BAA4B,EAAE,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC1G,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,MAAM,EAEd,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,sBAAsB,EAAE,KAAK,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAC1F,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAElF,wBAAgB,iBAAiB,CAC7B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,gBAAgB,CAAC,EAAE,MAAM,GAC1B,qBAAqB,CAOvB;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,UAK1F;AAED,wBAAgB,gBAAgB,CAC5B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,OAAO,GAAG,OAAO,EACzB,cAAc,CAAC,EAAE,MAAM,UAU1B;AAGD,wBAAgB,wBAAwB,CACpC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,4BAA4B,UAIvC;AAOD,wBAAgB,6BAA6B,CAAC,IAAI,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G,SAAS,WAMvE"}
package/esm/utils.js CHANGED
@@ -61,29 +61,9 @@ export function formatPublisherDocumentPeriod(periodStart, periodEnd, intl) {
61
61
  export function getAbsoluteVisualizationHref(wsId, visId, status) {
62
62
  return `${window.location.origin}${getVisualizationHref(wsId, visId, status)}`;
63
63
  }
64
- export function getSettingHref(section, action) {
65
- if (!action) {
66
- return `/ai-hub#/${section}`;
67
- }
68
- return `/ai-hub#/${section}/${action}`;
69
- }
70
- export function getAbsoluteSettingHref(section, action) {
71
- return `${window.location.origin}${getSettingHref(section, action)}`;
72
- }
73
- export function getWorkspaceSettingHref(workspaceId, section, action) {
74
- if (!action) {
75
- return `/workspaces/${workspaceId}/settings/#/${section}`;
76
- }
77
- return `/workspaces/${workspaceId}/settings/#/${section}/${action}`;
78
- }
79
- export function getAbsoluteWorkspaceSettingHref(workspaceId, section, action) {
80
- return `${window.location.origin}${getWorkspaceSettingHref(workspaceId, section, action)}`;
81
- }
82
64
  // Shell-host route shape: the host serves the home-ui module under
83
65
  // `/organization/settings`, and uses `configuration` (not `settings`) for the
84
- // workspace detail route. Used when `enableShellApplication` is on, so
85
- // standalone `/settings`/`/workspaces/{id}/settings` URLs aren't bounced to the
86
- // workspaces list.
66
+ // workspace detail route.
87
67
  export function getShellAppOrgSettingHref(section, action) {
88
68
  if (!action) {
89
69
  return `/organization/settings/ai-hub#/${section}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-gen-ai",
3
- "version": "11.67.0-alpha.2",
3
+ "version": "11.67.0-alpha.3",
4
4
  "description": "GoodData GenAI SDK",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -29,7 +29,6 @@
29
29
  ".": "./esm/index.js",
30
30
  "./internal": "./esm/internal.js",
31
31
  "./context": "./esm/context.js",
32
- "./copilot": "./esm/copilot.js",
33
32
  "./styles/css/*": "./styles/css/*",
34
33
  "./styles/scss/*": "./styles/scss/*",
35
34
  "./esm/assets/*": "./esm/assets/*"
@@ -58,21 +57,21 @@
58
57
  "reselect": "5.1.1",
59
58
  "tslib": "2.8.1",
60
59
  "uuid": "11.1.1",
61
- "@gooddata/api-client-tiger": "11.67.0-alpha.2",
62
- "@gooddata/sdk-backend-spi": "11.67.0-alpha.2",
63
- "@gooddata/sdk-model": "11.67.0-alpha.2",
64
- "@gooddata/sdk-pluggable-application-model": "11.67.0-alpha.2",
65
- "@gooddata/sdk-ui": "11.67.0-alpha.2",
66
- "@gooddata/sdk-ui-charts": "11.67.0-alpha.2",
67
- "@gooddata/sdk-ui-dashboard": "11.67.0-alpha.2",
68
- "@gooddata/sdk-ui-ext": "11.67.0-alpha.2",
69
- "@gooddata/sdk-ui-geo": "11.67.0-alpha.2",
70
- "@gooddata/sdk-ui-filters": "11.67.0-alpha.2",
71
- "@gooddata/sdk-ui-kit": "11.67.0-alpha.2",
72
- "@gooddata/sdk-ui-pivot": "11.67.0-alpha.2",
73
- "@gooddata/sdk-ui-semantic-search": "11.67.0-alpha.2",
74
- "@gooddata/util": "11.67.0-alpha.2",
75
- "@gooddata/sdk-ui-theme-provider": "11.67.0-alpha.2"
60
+ "@gooddata/sdk-backend-spi": "11.67.0-alpha.3",
61
+ "@gooddata/api-client-tiger": "11.67.0-alpha.3",
62
+ "@gooddata/sdk-pluggable-application-model": "11.67.0-alpha.3",
63
+ "@gooddata/sdk-model": "11.67.0-alpha.3",
64
+ "@gooddata/sdk-ui-charts": "11.67.0-alpha.3",
65
+ "@gooddata/sdk-ui": "11.67.0-alpha.3",
66
+ "@gooddata/sdk-ui-dashboard": "11.67.0-alpha.3",
67
+ "@gooddata/sdk-ui-ext": "11.67.0-alpha.3",
68
+ "@gooddata/sdk-ui-filters": "11.67.0-alpha.3",
69
+ "@gooddata/sdk-ui-geo": "11.67.0-alpha.3",
70
+ "@gooddata/sdk-ui-kit": "11.67.0-alpha.3",
71
+ "@gooddata/sdk-ui-semantic-search": "11.67.0-alpha.3",
72
+ "@gooddata/sdk-ui-pivot": "11.67.0-alpha.3",
73
+ "@gooddata/sdk-ui-theme-provider": "11.67.0-alpha.3",
74
+ "@gooddata/util": "11.67.0-alpha.3"
76
75
  },
77
76
  "devDependencies": {
78
77
  "@microsoft/api-documenter": "7.30.16",
@@ -91,12 +90,12 @@
91
90
  "dependency-cruiser": "17.3.10",
92
91
  "eslint": "^9.39.2",
93
92
  "eslint-plugin-headers": "1.3.3",
94
- "eslint-plugin-import-esm": "1.2.1",
95
- "eslint-plugin-jsdoc": "62.1.0",
93
+ "eslint-plugin-import-esm": "3.0.1",
94
+ "eslint-plugin-jsdoc": "65.4.2",
96
95
  "eslint-plugin-no-barrel-files": "1.2.2",
97
96
  "eslint-plugin-no-only-tests": "3.3.0",
98
97
  "eslint-plugin-react": "7.37.5",
99
- "eslint-plugin-sonarjs": "3.0.6",
98
+ "eslint-plugin-sonarjs": "4.2.2",
100
99
  "happy-dom": "21.0.4",
101
100
  "npm-run-all": "4.1.5",
102
101
  "oxfmt": "0.68.0",
@@ -111,12 +110,12 @@
111
110
  "svgo": "2.8.4",
112
111
  "typescript": "7.0.2",
113
112
  "vitest": "5.0.4",
114
- "@gooddata/eslint-config": "11.67.0-alpha.2",
115
- "@gooddata/i18n-toolkit": "11.67.0-alpha.2",
116
- "@gooddata/oxlint-config": "11.67.0-alpha.2",
117
- "@gooddata/reference-workspace": "11.67.0-alpha.2",
118
- "@gooddata/sdk-backend-mockingbird": "11.67.0-alpha.2",
119
- "@gooddata/stylelint-config": "11.67.0-alpha.2"
113
+ "@gooddata/eslint-config": "11.67.0-alpha.3",
114
+ "@gooddata/i18n-toolkit": "11.67.0-alpha.3",
115
+ "@gooddata/oxlint-config": "11.67.0-alpha.3",
116
+ "@gooddata/reference-workspace": "11.67.0-alpha.3",
117
+ "@gooddata/stylelint-config": "11.67.0-alpha.3",
118
+ "@gooddata/sdk-backend-mockingbird": "11.67.0-alpha.3"
120
119
  },
121
120
  "peerDependencies": {
122
121
  "react": "^18.0.0 || ^19.0.0",
@@ -0,0 +1,94 @@
1
+ .gd-copilot-interaction-composing {
2
+ position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ height: 100%;
7
+ min-width: 0;
8
+ min-height: 0;
9
+ }
10
+
11
+ .gd-copilot-interaction-composing__content {
12
+ position: relative;
13
+ z-index: 0;
14
+ display: flex;
15
+ flex: 1 1 auto;
16
+ flex-direction: column;
17
+ min-width: 0;
18
+ min-height: 0;
19
+ }
20
+
21
+ .gd-copilot-interaction-composing__status {
22
+ position: absolute;
23
+ display: flex;
24
+ align-items: center;
25
+ pointer-events: all;
26
+ gap: var(--gd-spacing-10px);
27
+ opacity: 1;
28
+ top: var(--gd-spacing-20px);
29
+ left: 50%;
30
+ z-index: 2;
31
+ box-sizing: border-box;
32
+ min-width: min(400px, 100% - 2 * var(--gd-spacing-10px));
33
+ max-width: calc(100% - 2 * var(--gd-spacing-10px));
34
+ padding: var(--gd-spacing-10px) var(--gd-spacing-20px);
35
+ border: 1px solid var(--gd-palette-complementary-3);
36
+ border-radius: var(--gd-modal-borderRadius);
37
+ box-shadow: var(--gd-shadow-color) 0 2px 9px, var(--gd-shadow-color) 0 1px 3px;
38
+ background: var(--gd-palette-complementary-0);
39
+ color: var(--gd-palette-complementary-8);
40
+ text-align: left;
41
+ overflow-wrap: anywhere;
42
+ transform: translateX(-50%);
43
+ transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
44
+ }
45
+ .gd-copilot-interaction-composing__status--hidden {
46
+ opacity: 0;
47
+ top: -100px;
48
+ pointer-events: none;
49
+ }
50
+
51
+ .gd-copilot-interaction-composing__message {
52
+ flex: 1 1 auto;
53
+ min-width: 0;
54
+ font-weight: 700;
55
+ }
56
+
57
+ .gd-copilot-composing-overlay {
58
+ position: absolute;
59
+ inset: 0;
60
+ z-index: 1;
61
+ pointer-events: none;
62
+ }
63
+ .gd-copilot-composing-overlay svg {
64
+ position: absolute;
65
+ inset: 0;
66
+ width: 100%;
67
+ height: 100%;
68
+ overflow: visible;
69
+ }
70
+ .gd-copilot-composing-overlay rect {
71
+ fill: none;
72
+ stroke: var(--gd-palette-primary-base);
73
+ stroke-width: 2px;
74
+ stroke-linecap: round;
75
+ }
76
+ .gd-copilot-composing-overlay__bloom {
77
+ filter: blur(14px);
78
+ opacity: 0.5;
79
+ }
80
+ .gd-copilot-composing-overlay__bloom rect {
81
+ stroke-width: 12px;
82
+ }
83
+ .gd-copilot-composing-overlay__glow {
84
+ filter: blur(5px);
85
+ opacity: 0.55;
86
+ }
87
+ .gd-copilot-composing-overlay__glow rect {
88
+ stroke-width: 6px;
89
+ }
90
+ .gd-copilot-composing-overlay__tail {
91
+ opacity: 0.35;
92
+ }
93
+
94
+ /*# sourceMappingURL=copilotInteractionComposing.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":["../scss/copilotInteractionComposing.scss"],"names":[],"mappings":"AAEA;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,YACI;EAEJ;EACA;EACA;EACA;EACA;EACA,YACI;;AAGJ;EACI;EACA;EACA;;;AAIR;EACI;EACA;EACA;;;AAGJ;EACI;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;;AAGJ;EACI;EACA;;AAEA;EACI;;AAIR;EACI;EACA;;AAEA;EACI;;AAIR;EACI","file":"copilotInteractionComposing.css"}
@@ -25440,6 +25440,99 @@ button.gd-list-item {
25440
25440
  line-height: 19px;
25441
25441
  }
25442
25442
 
25443
+ .gd-copilot-interaction-composing {
25444
+ position: relative;
25445
+ display: flex;
25446
+ flex-direction: column;
25447
+ width: 100%;
25448
+ height: 100%;
25449
+ min-width: 0;
25450
+ min-height: 0;
25451
+ }
25452
+
25453
+ .gd-copilot-interaction-composing__content {
25454
+ position: relative;
25455
+ z-index: 0;
25456
+ display: flex;
25457
+ flex: 1 1 auto;
25458
+ flex-direction: column;
25459
+ min-width: 0;
25460
+ min-height: 0;
25461
+ }
25462
+
25463
+ .gd-copilot-interaction-composing__status {
25464
+ position: absolute;
25465
+ display: flex;
25466
+ align-items: center;
25467
+ pointer-events: all;
25468
+ gap: var(--gd-spacing-10px);
25469
+ opacity: 1;
25470
+ top: var(--gd-spacing-20px);
25471
+ left: 50%;
25472
+ z-index: 2;
25473
+ box-sizing: border-box;
25474
+ min-width: min(400px, 100% - 2 * var(--gd-spacing-10px));
25475
+ max-width: calc(100% - 2 * var(--gd-spacing-10px));
25476
+ padding: var(--gd-spacing-10px) var(--gd-spacing-20px);
25477
+ border: 1px solid var(--gd-palette-complementary-3);
25478
+ border-radius: var(--gd-modal-borderRadius);
25479
+ box-shadow: var(--gd-shadow-color) 0 2px 9px, var(--gd-shadow-color) 0 1px 3px;
25480
+ background: var(--gd-palette-complementary-0);
25481
+ color: var(--gd-palette-complementary-8);
25482
+ text-align: left;
25483
+ overflow-wrap: anywhere;
25484
+ transform: translateX(-50%);
25485
+ transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
25486
+ }
25487
+ .gd-copilot-interaction-composing__status--hidden {
25488
+ opacity: 0;
25489
+ top: -100px;
25490
+ pointer-events: none;
25491
+ }
25492
+
25493
+ .gd-copilot-interaction-composing__message {
25494
+ flex: 1 1 auto;
25495
+ min-width: 0;
25496
+ font-weight: 700;
25497
+ }
25498
+
25499
+ .gd-copilot-composing-overlay {
25500
+ position: absolute;
25501
+ inset: 0;
25502
+ z-index: 1;
25503
+ pointer-events: none;
25504
+ }
25505
+ .gd-copilot-composing-overlay svg {
25506
+ position: absolute;
25507
+ inset: 0;
25508
+ width: 100%;
25509
+ height: 100%;
25510
+ overflow: visible;
25511
+ }
25512
+ .gd-copilot-composing-overlay rect {
25513
+ fill: none;
25514
+ stroke: var(--gd-palette-primary-base);
25515
+ stroke-width: 2px;
25516
+ stroke-linecap: round;
25517
+ }
25518
+ .gd-copilot-composing-overlay__bloom {
25519
+ filter: blur(14px);
25520
+ opacity: 0.5;
25521
+ }
25522
+ .gd-copilot-composing-overlay__bloom rect {
25523
+ stroke-width: 12px;
25524
+ }
25525
+ .gd-copilot-composing-overlay__glow {
25526
+ filter: blur(5px);
25527
+ opacity: 0.55;
25528
+ }
25529
+ .gd-copilot-composing-overlay__glow rect {
25530
+ stroke-width: 6px;
25531
+ }
25532
+ .gd-copilot-composing-overlay__tail {
25533
+ opacity: 0.35;
25534
+ }
25535
+
25443
25536
  .gd-gen-ai-chat__context-chooser {
25444
25537
  display: flex;
25445
25538
  flex-direction: column;