@gooddata/sdk-ui-gen-ai 11.67.0-alpha.2 → 11.67.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 +798 -2473
- package/README.md +58 -1
- package/esm/components/ConfigContext.d.ts +3 -1
- package/esm/components/ConfigContext.d.ts.map +1 -1
- package/esm/components/ConfigContext.js +14 -2
- package/esm/components/GenAIChat.d.ts +5 -0
- package/esm/components/GenAIChat.d.ts.map +1 -1
- package/esm/components/GenAIChat.js +2 -1
- package/esm/components/GenAIChatDialog.d.ts +2 -1
- package/esm/components/GenAIChatDialog.d.ts.map +1 -1
- package/esm/components/GenAIChatDialog.js +4 -4
- package/esm/components/GenAIChatDialogConnected.d.ts +6 -8
- package/esm/components/GenAIChatDialogConnected.d.ts.map +1 -1
- package/esm/components/GenAIChatDialogConnected.js +5 -6
- package/esm/components/GenAIChatWrapper.js +1 -1
- package/esm/components/GenAIStandaloneInput.d.ts +6 -1
- package/esm/components/GenAIStandaloneInput.d.ts.map +1 -1
- package/esm/components/GenAIStandaloneInput.js +2 -2
- package/esm/components/GenAiConversations.js +1 -1
- package/esm/components/Input.d.ts.map +1 -1
- package/esm/components/Input.js +3 -1
- package/esm/components/customized/types.d.ts +22 -0
- package/esm/components/customized/types.d.ts.map +1 -1
- package/esm/components/hooks/useAppEventSync.d.ts +18 -0
- package/esm/components/hooks/useAppEventSync.d.ts.map +1 -0
- package/esm/components/hooks/useAppEventSync.js +35 -0
- package/esm/components/hooks/useSettingsClick.d.ts +1 -2
- package/esm/components/hooks/useSettingsClick.d.ts.map +1 -1
- package/esm/components/hooks/useSettingsClick.js +7 -20
- package/esm/components/intelligence/data/constants.d.ts +1 -1
- package/esm/components/intelligence/data/constants.js +1 -1
- package/esm/components/intelligence/detail/IntelligenceStepCarousel.d.ts +1 -1
- package/esm/components/intelligence/detail/IntelligenceStepCarousel.js +1 -1
- package/esm/components/intelligence/panel/IntelligenceDurationTokens.d.ts +1 -1
- package/esm/components/intelligence/panel/IntelligenceDurationTokens.js +1 -1
- package/esm/components/messages/ConversationItemContents.d.ts +1 -1
- package/esm/components/messages/ConversationItemContents.d.ts.map +1 -1
- package/esm/components/messages/ConversationItemContents.js +10 -1
- package/esm/components/messages/ItemsGroup.d.ts.map +1 -1
- package/esm/components/messages/ItemsGroup.js +4 -11
- package/esm/components/messages/contents/CustomHyperlink.js +2 -2
- package/esm/components/messages/conversationContents/ConversationErrorContent.d.ts.map +1 -1
- package/esm/components/messages/conversationContents/ConversationErrorContent.js +1 -4
- package/esm/components/messages/conversationContents/ConversationPublisherDocumentContent.js +2 -2
- package/esm/components/messages/conversationContents/utils/errors.d.ts +4 -4
- package/esm/components/messages/conversationContents/utils/errors.js +4 -4
- package/esm/components/utils/groupUtility.d.ts +1 -0
- package/esm/components/utils/groupUtility.d.ts.map +1 -1
- package/esm/components/utils/groupUtility.js +11 -0
- package/esm/copilot/CopilotComposingOverlay.d.ts +4 -0
- package/esm/copilot/CopilotComposingOverlay.d.ts.map +1 -0
- package/esm/copilot/CopilotComposingOverlay.js +151 -0
- package/esm/copilot/CopilotInteractionComposing.d.ts +29 -0
- package/esm/copilot/CopilotInteractionComposing.d.ts.map +1 -0
- package/esm/copilot/CopilotInteractionComposing.js +39 -0
- package/esm/copilot/CopilotInteractionComposingWithHandler.d.ts +15 -0
- package/esm/copilot/CopilotInteractionComposingWithHandler.d.ts.map +1 -0
- package/esm/copilot/CopilotInteractionComposingWithHandler.js +11 -0
- package/esm/copilot/selectors.d.ts +4 -2
- package/esm/copilot/selectors.d.ts.map +1 -1
- package/esm/copilot/selectors.js +73 -14
- package/esm/copilot/transitions.d.ts.map +1 -1
- package/esm/copilot/transitions.js +264 -81
- package/esm/copilot/types.d.ts +10 -4
- package/esm/copilot/types.d.ts.map +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/internal.d.ts +1 -2
- package/esm/internal.d.ts.map +1 -1
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/de-DE.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/de-DE.localization-bundle.js +4 -2
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/en-AU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-AU.localization-bundle.js +4 -2
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/en-GB.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-GB.localization-bundle.js +4 -2
- package/esm/localization/bundles/en-US.localization-bundle.d.ts +8 -0
- package/esm/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/en-US.localization-bundle.js +12 -4
- package/esm/localization/bundles/es-419.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/es-419.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-419.localization-bundle.js +4 -2
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/es-ES.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/es-ES.localization-bundle.js +4 -2
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/fi-FI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fi-FI.localization-bundle.js +4 -2
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/fr-CA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-CA.localization-bundle.js +4 -2
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/fr-FR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/fr-FR.localization-bundle.js +4 -2
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/id-ID.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/id-ID.localization-bundle.js +4 -2
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/it-IT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/it-IT.localization-bundle.js +4 -2
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/ja-JP.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ja-JP.localization-bundle.js +4 -2
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/ko-KR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ko-KR.localization-bundle.js +4 -2
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/nl-NL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/nl-NL.localization-bundle.js +4 -2
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/pl-PL.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pl-PL.localization-bundle.js +4 -2
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/pt-BR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-BR.localization-bundle.js +4 -2
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/pt-PT.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/pt-PT.localization-bundle.js +4 -2
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/ru-RU.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/ru-RU.localization-bundle.js +4 -2
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/sl-SI.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/sl-SI.localization-bundle.js +4 -2
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/th-TH.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/th-TH.localization-bundle.js +4 -2
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/tr-TR.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/tr-TR.localization-bundle.js +4 -2
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/uk-UA.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/uk-UA.localization-bundle.js +4 -2
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/vi-VN.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/vi-VN.localization-bundle.js +4 -2
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/zh-HK.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-HK.localization-bundle.js +4 -2
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/zh-Hans.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hans.localization-bundle.js +4 -2
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts +2 -0
- package/esm/localization/bundles/zh-Hant.localization-bundle.d.ts.map +1 -1
- package/esm/localization/bundles/zh-Hant.localization-bundle.js +4 -2
- package/esm/sdk-ui-gen-ai.d.ts +85 -51
- package/esm/store/events.d.ts +6 -45
- package/esm/store/events.d.ts.map +1 -1
- package/esm/store/messages/messagesSlice.d.ts.map +1 -1
- package/esm/store/messages/messagesSlice.js +2 -0
- package/esm/store/sideEffects/onEvent.d.ts +11 -3
- package/esm/store/sideEffects/onEvent.d.ts.map +1 -1
- package/esm/store/sideEffects/onEvent.js +32 -25
- package/esm/utils.d.ts +0 -4
- package/esm/utils.d.ts.map +1 -1
- package/esm/utils.js +3 -23
- package/package.json +28 -29
- package/styles/css/copilotInteractionComposing.css +94 -0
- package/styles/css/copilotInteractionComposing.css.map +1 -0
- package/styles/css/input.css +4 -4
- package/styles/css/main.css +97 -4
- package/styles/css/main.css.map +1 -1
- package/styles/scss/copilotInteractionComposing.scss +106 -0
- package/styles/scss/input.scss +1 -1
- package/styles/scss/main.scss +1 -0
- package/esm/components/hooks/useDashboardSavedSync.d.ts +0 -13
- package/esm/components/hooks/useDashboardSavedSync.d.ts.map +0 -1
- package/esm/components/hooks/useDashboardSavedSync.js +0 -14
- package/esm/components/hooks/usePublisherDocumentSavedSync.d.ts +0 -20
- package/esm/components/hooks/usePublisherDocumentSavedSync.d.ts.map +0 -1
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|
package/esm/utils.d.ts.map
CHANGED
|
@@ -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,MAA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B,iCAAiC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,UAEjF;AAED,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,UAKpG;AAED,wBAAgB,uCAAuC,CACnD,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,UAGlB;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,mBAAmB,EAAE;IAE5D,UAAU;QACN,OAAO;;EAGlB;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,sBAAsB,GAAG,MAAM,CAS5F;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgC9D;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,wBAAwB,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAa3G;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,GAAG,wBAAwB,CAe3G;AAED,wBAAgB,4BAA4B,CACxC,IAAI,EAAE,0BAA0B,GAAG,qBAAqB,GAAG,SAAS,WAMvE"}
|
package/esm/utils.js
CHANGED
|
@@ -28,14 +28,14 @@ export function getDashboardHref(wsId, dasId, status, conversationId) {
|
|
|
28
28
|
// Encoded like the Publisher app's own route builder, so an id with a slash stays one segment.
|
|
29
29
|
export function getPublisherDocumentHref(wsId, documentId, format) {
|
|
30
30
|
const route = format === "aac-v2" ? "document" : "report";
|
|
31
|
-
return `/workspace/${wsId}/
|
|
31
|
+
return `/workspace/${wsId}/reports/${route}/${encodeURIComponent(documentId)}`;
|
|
32
32
|
}
|
|
33
33
|
function getPublisherDocumentDraftParams(conversationId, itemId) {
|
|
34
34
|
// The parameter names are what the publisher app reads the draft back by.
|
|
35
35
|
return new URLSearchParams({ conversation: conversationId, item: itemId }).toString();
|
|
36
36
|
}
|
|
37
37
|
export function getPublisherDocumentDraftHref(wsId, conversationId, itemId) {
|
|
38
|
-
return `/workspace/${wsId}/
|
|
38
|
+
return `/workspace/${wsId}/reports/new?${getPublisherDocumentDraftParams(conversationId, itemId)}`;
|
|
39
39
|
}
|
|
40
40
|
export function getPublisherDocumentModifyHref({ workspaceId, documentId, conversationId, itemId, format, }) {
|
|
41
41
|
return `${getPublisherDocumentHref(workspaceId, documentId, format)}?${getPublisherDocumentDraftParams(conversationId, itemId)}`;
|
|
@@ -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.
|
|
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.
|
|
3
|
+
"version": "11.67.0-alpha.4",
|
|
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,24 +57,24 @@
|
|
|
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.
|
|
62
|
-
"@gooddata/sdk-backend-spi": "11.67.0-alpha.
|
|
63
|
-
"@gooddata/sdk-model": "11.67.0-alpha.
|
|
64
|
-
"@gooddata/sdk-pluggable-application-model": "11.67.0-alpha.
|
|
65
|
-
"@gooddata/sdk-ui": "11.67.0-alpha.
|
|
66
|
-
"@gooddata/sdk-ui-charts": "11.67.0-alpha.
|
|
67
|
-
"@gooddata/sdk-ui-dashboard": "11.67.0-alpha.
|
|
68
|
-
"@gooddata/sdk-ui-ext": "11.67.0-alpha.
|
|
69
|
-
"@gooddata/sdk-ui-geo": "11.67.0-alpha.
|
|
70
|
-
"@gooddata/sdk-ui-filters": "11.67.0-alpha.
|
|
71
|
-
"@gooddata/sdk-ui-kit": "11.67.0-alpha.
|
|
72
|
-
"@gooddata/sdk-ui-pivot": "11.67.0-alpha.
|
|
73
|
-
"@gooddata/sdk-ui-semantic-search": "11.67.0-alpha.
|
|
74
|
-
"@gooddata/
|
|
75
|
-
"@gooddata/
|
|
60
|
+
"@gooddata/api-client-tiger": "11.67.0-alpha.4",
|
|
61
|
+
"@gooddata/sdk-backend-spi": "11.67.0-alpha.4",
|
|
62
|
+
"@gooddata/sdk-model": "11.67.0-alpha.4",
|
|
63
|
+
"@gooddata/sdk-pluggable-application-model": "11.67.0-alpha.4",
|
|
64
|
+
"@gooddata/sdk-ui": "11.67.0-alpha.4",
|
|
65
|
+
"@gooddata/sdk-ui-charts": "11.67.0-alpha.4",
|
|
66
|
+
"@gooddata/sdk-ui-dashboard": "11.67.0-alpha.4",
|
|
67
|
+
"@gooddata/sdk-ui-ext": "11.67.0-alpha.4",
|
|
68
|
+
"@gooddata/sdk-ui-geo": "11.67.0-alpha.4",
|
|
69
|
+
"@gooddata/sdk-ui-filters": "11.67.0-alpha.4",
|
|
70
|
+
"@gooddata/sdk-ui-kit": "11.67.0-alpha.4",
|
|
71
|
+
"@gooddata/sdk-ui-pivot": "11.67.0-alpha.4",
|
|
72
|
+
"@gooddata/sdk-ui-semantic-search": "11.67.0-alpha.4",
|
|
73
|
+
"@gooddata/sdk-ui-theme-provider": "11.67.0-alpha.4",
|
|
74
|
+
"@gooddata/util": "11.67.0-alpha.4"
|
|
76
75
|
},
|
|
77
76
|
"devDependencies": {
|
|
78
|
-
"@microsoft/api-documenter": "7.30.
|
|
77
|
+
"@microsoft/api-documenter": "7.30.20",
|
|
79
78
|
"@microsoft/api-extractor": "7.59.2",
|
|
80
79
|
"@testing-library/dom": "10.4.2",
|
|
81
80
|
"@testing-library/jest-dom": "7.0.1",
|
|
@@ -89,14 +88,14 @@
|
|
|
89
88
|
"@typescript-eslint/eslint-plugin": "8.58.0",
|
|
90
89
|
"@typescript-eslint/parser": "8.58.0",
|
|
91
90
|
"dependency-cruiser": "17.3.10",
|
|
92
|
-
"eslint": "^
|
|
91
|
+
"eslint": "^10.14.0",
|
|
93
92
|
"eslint-plugin-headers": "1.3.3",
|
|
94
|
-
"eslint-plugin-import-esm": "
|
|
95
|
-
"eslint-plugin-jsdoc": "
|
|
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
|
-
"eslint-plugin-
|
|
99
|
-
"eslint-plugin-
|
|
97
|
+
"eslint-plugin-sonarjs": "4.2.2",
|
|
98
|
+
"eslint-plugin-tsdoc": "0.5.4",
|
|
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.
|
|
115
|
-
"@gooddata/i18n-toolkit": "11.67.0-alpha.
|
|
116
|
-
"@gooddata/oxlint-config": "11.67.0-alpha.
|
|
117
|
-
"@gooddata/reference-workspace": "11.67.0-alpha.
|
|
118
|
-
"@gooddata/sdk-backend-mockingbird": "11.67.0-alpha.
|
|
119
|
-
"@gooddata/stylelint-config": "11.67.0-alpha.
|
|
113
|
+
"@gooddata/eslint-config": "11.67.0-alpha.4",
|
|
114
|
+
"@gooddata/i18n-toolkit": "11.67.0-alpha.4",
|
|
115
|
+
"@gooddata/oxlint-config": "11.67.0-alpha.4",
|
|
116
|
+
"@gooddata/reference-workspace": "11.67.0-alpha.4",
|
|
117
|
+
"@gooddata/sdk-backend-mockingbird": "11.67.0-alpha.4",
|
|
118
|
+
"@gooddata/stylelint-config": "11.67.0-alpha.4"
|
|
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"}
|
package/styles/css/input.css
CHANGED
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
position: relative;
|
|
82
82
|
z-index: 1;
|
|
83
83
|
}
|
|
84
|
-
.gd-gen-ai-chat__input__mc {
|
|
84
|
+
.gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc {
|
|
85
85
|
position: relative;
|
|
86
86
|
z-index: 1;
|
|
87
87
|
}
|
|
88
|
-
.gd-gen-ai-chat__input__mc .cm-editor {
|
|
88
|
+
.gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc .cm-editor {
|
|
89
89
|
height: auto;
|
|
90
90
|
border: 0;
|
|
91
91
|
border-radius: 0;
|
|
@@ -93,11 +93,11 @@
|
|
|
93
93
|
padding: 3px 5px 0;
|
|
94
94
|
background: transparent;
|
|
95
95
|
}
|
|
96
|
-
.gd-gen-ai-chat__input__mc .cm-editor:hover, .gd-gen-ai-chat__input__mc .cm-editor.cm-focused {
|
|
96
|
+
.gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc .cm-editor:hover, .gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc .cm-editor.cm-focused {
|
|
97
97
|
border: 0;
|
|
98
98
|
box-shadow: none;
|
|
99
99
|
}
|
|
100
|
-
.gd-gen-ai-chat__input__mc .cm-scroller {
|
|
100
|
+
.gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc .cm-scroller {
|
|
101
101
|
font-family: var(--gd-font-family, gdcustomfont, Avenir, "Helvetica Neue", arial, sans-serif) !important;
|
|
102
102
|
}
|
|
103
103
|
.gd-gen-ai-chat__input__actions {
|
package/styles/css/main.css
CHANGED
|
@@ -22738,11 +22738,11 @@ button.gd-list-item {
|
|
|
22738
22738
|
position: relative;
|
|
22739
22739
|
z-index: 1;
|
|
22740
22740
|
}
|
|
22741
|
-
.gd-gen-ai-chat__input__mc {
|
|
22741
|
+
.gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc {
|
|
22742
22742
|
position: relative;
|
|
22743
22743
|
z-index: 1;
|
|
22744
22744
|
}
|
|
22745
|
-
.gd-gen-ai-chat__input__mc .cm-editor {
|
|
22745
|
+
.gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc .cm-editor {
|
|
22746
22746
|
height: auto;
|
|
22747
22747
|
border: 0;
|
|
22748
22748
|
border-radius: 0;
|
|
@@ -22750,11 +22750,11 @@ button.gd-list-item {
|
|
|
22750
22750
|
padding: 3px 5px 0;
|
|
22751
22751
|
background: transparent;
|
|
22752
22752
|
}
|
|
22753
|
-
.gd-gen-ai-chat__input__mc .cm-editor:hover, .gd-gen-ai-chat__input__mc .cm-editor.cm-focused {
|
|
22753
|
+
.gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc .cm-editor:hover, .gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc .cm-editor.cm-focused {
|
|
22754
22754
|
border: 0;
|
|
22755
22755
|
box-shadow: none;
|
|
22756
22756
|
}
|
|
22757
|
-
.gd-gen-ai-chat__input__mc .cm-scroller {
|
|
22757
|
+
.gd-gen-ai-chat__input .gd-gen-ai-chat__input__mc .cm-scroller {
|
|
22758
22758
|
font-family: var(--gd-font-family, gdcustomfont, Avenir, "Helvetica Neue", arial, sans-serif) !important;
|
|
22759
22759
|
}
|
|
22760
22760
|
.gd-gen-ai-chat__input__actions {
|
|
@@ -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;
|