@carbon/ai-chat 0.1.5 → 0.1.6-alpha0
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/dist/cjs/Carousel.js +2 -2
- package/dist/cjs/Chat.js +24 -4
- package/dist/cjs/GenesysMessengerServiceDesk.js +2 -2
- package/dist/cjs/HumanAgentServiceImpl.js +2 -2
- package/dist/cjs/NiceDFOServiceDesk.js +2 -2
- package/dist/cjs/PDFViewerContainer.js +2 -2
- package/dist/cjs/ReactPlayer.js +2 -2
- package/dist/cjs/SFServiceDesk.js +2 -2
- package/dist/cjs/ServiceDeskImpl.js +2 -2
- package/dist/cjs/Table.js +2 -2
- package/dist/cjs/ZendeskServiceDesk.js +2 -2
- package/dist/cjs/_node-resolve_empty.js +2 -2
- package/dist/cjs/agentActions.js +2 -2
- package/dist/cjs/aiChatEntry.js +2 -2
- package/dist/cjs/anonymousUserIDStorage.js +2 -2
- package/dist/cjs/ar-dz.js +2 -2
- package/dist/cjs/ar-kw.js +2 -2
- package/dist/cjs/ar-ly.js +2 -2
- package/dist/cjs/ar-ma.js +2 -2
- package/dist/cjs/ar-sa.js +2 -2
- package/dist/cjs/ar-tn.js +2 -2
- package/dist/cjs/ar.js +2 -2
- package/dist/cjs/ar2.js +2 -2
- package/dist/cjs/cds-aichat-container.js +2 -2
- package/dist/cjs/cds-aichat-custom-element.js +2 -2
- package/dist/cjs/cds-aichat-internal.js +38 -10
- package/dist/cjs/cs.js +2 -2
- package/dist/cjs/cs2.js +2 -2
- package/dist/cjs/de-at.js +2 -2
- package/dist/cjs/de-ch.js +2 -2
- package/dist/cjs/de.js +2 -2
- package/dist/cjs/de2.js +2 -2
- package/dist/cjs/en-au.js +2 -2
- package/dist/cjs/en-ca.js +2 -2
- package/dist/cjs/en-gb.js +2 -2
- package/dist/cjs/en-ie.js +2 -2
- package/dist/cjs/en-il.js +2 -2
- package/dist/cjs/en-nz.js +2 -2
- package/dist/cjs/es-do.js +2 -2
- package/dist/cjs/es-us.js +2 -2
- package/dist/cjs/es.js +2 -2
- package/dist/cjs/es2.js +2 -2
- package/dist/cjs/export.js +2 -2
- package/dist/cjs/export.legacy.js +2 -2
- package/dist/cjs/fontUtils.js +2 -2
- package/dist/cjs/fr-ca.js +2 -2
- package/dist/cjs/fr-ch.js +2 -2
- package/dist/cjs/fr.js +2 -2
- package/dist/cjs/fr2.js +2 -2
- package/dist/cjs/highlight_js.js +2 -2
- package/dist/cjs/it-ch.js +2 -2
- package/dist/cjs/it.js +2 -2
- package/dist/cjs/it2.js +2 -2
- package/dist/cjs/ja.js +2 -2
- package/dist/cjs/ja2.js +2 -2
- package/dist/cjs/jstz.min.js +2 -2
- package/dist/cjs/ko.js +2 -2
- package/dist/cjs/ko2.js +2 -2
- package/dist/cjs/markdown.js +2 -2
- package/dist/cjs/markdown_attrs.js +2 -2
- package/dist/cjs/mockServiceDesk.js +2 -2
- package/dist/cjs/nl.js +2 -2
- package/dist/cjs/nl2.js +2 -2
- package/dist/cjs/pt-br.js +2 -2
- package/dist/cjs/pt-br2.js +2 -2
- package/dist/cjs/pt.js +2 -2
- package/dist/cjs/render.js +2 -2
- package/dist/cjs/zh-cn.js +2 -2
- package/dist/cjs/zh-tw.js +2 -2
- package/dist/cjs/zh-tw2.js +2 -2
- package/dist/cjs/zh.js +2 -2
- package/dist/es/Carousel.js +3 -3
- package/dist/es/Chat.js +25 -5
- package/dist/es/GenesysMessengerServiceDesk.js +3 -3
- package/dist/es/HumanAgentServiceImpl.js +3 -3
- package/dist/es/NiceDFOServiceDesk.js +3 -3
- package/dist/es/PDFViewerContainer.js +3 -3
- package/dist/es/ReactPlayer.js +2 -2
- package/dist/es/SFServiceDesk.js +3 -3
- package/dist/es/ServiceDeskImpl.js +2 -2
- package/dist/es/Table.js +3 -3
- package/dist/es/ZendeskServiceDesk.js +2 -2
- package/dist/es/_node-resolve_empty.js +2 -2
- package/dist/es/agentActions.js +2 -2
- package/dist/es/aiChatEntry.js +2 -2
- package/dist/es/anonymousUserIDStorage.js +3 -3
- package/dist/es/ar-dz.js +3 -3
- package/dist/es/ar-kw.js +3 -3
- package/dist/es/ar-ly.js +3 -3
- package/dist/es/ar-ma.js +3 -3
- package/dist/es/ar-sa.js +3 -3
- package/dist/es/ar-tn.js +3 -3
- package/dist/es/ar.js +3 -3
- package/dist/es/ar2.js +2 -2
- package/dist/es/cds-aichat-container.js +2 -2
- package/dist/es/cds-aichat-custom-element.js +2 -2
- package/dist/es/cds-aichat-internal.js +37 -11
- package/dist/es/cs.js +3 -3
- package/dist/es/cs2.js +2 -2
- package/dist/es/de-at.js +3 -3
- package/dist/es/de-ch.js +3 -3
- package/dist/es/de.js +3 -3
- package/dist/es/de2.js +2 -2
- package/dist/es/en-au.js +3 -3
- package/dist/es/en-ca.js +3 -3
- package/dist/es/en-gb.js +3 -3
- package/dist/es/en-ie.js +3 -3
- package/dist/es/en-il.js +3 -3
- package/dist/es/en-nz.js +3 -3
- package/dist/es/es-do.js +3 -3
- package/dist/es/es-us.js +3 -3
- package/dist/es/es.js +3 -3
- package/dist/es/es2.js +2 -2
- package/dist/es/export.js +2 -2
- package/dist/es/export.legacy.js +2 -2
- package/dist/es/fontUtils.js +2 -2
- package/dist/es/fr-ca.js +3 -3
- package/dist/es/fr-ch.js +3 -3
- package/dist/es/fr.js +3 -3
- package/dist/es/fr2.js +2 -2
- package/dist/es/highlight_js.js +2 -2
- package/dist/es/it-ch.js +3 -3
- package/dist/es/it.js +3 -3
- package/dist/es/it2.js +2 -2
- package/dist/es/ja.js +3 -3
- package/dist/es/ja2.js +2 -2
- package/dist/es/jstz.min.js +2 -2
- package/dist/es/ko.js +3 -3
- package/dist/es/ko2.js +2 -2
- package/dist/es/markdown.js +2 -2
- package/dist/es/markdown_attrs.js +2 -2
- package/dist/es/mockServiceDesk.js +2 -2
- package/dist/es/nl.js +3 -3
- package/dist/es/nl2.js +2 -2
- package/dist/es/pt-br.js +3 -3
- package/dist/es/pt-br2.js +2 -2
- package/dist/es/pt.js +3 -3
- package/dist/es/render.js +3 -3
- package/dist/es/zh-cn.js +3 -3
- package/dist/es/zh-tw.js +3 -3
- package/dist/es/zh-tw2.js +2 -2
- package/dist/es/zh.js +2 -2
- package/package.json +1 -1
package/dist/cjs/Carousel.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/Chat.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -1359,6 +1359,12 @@ class ChatActionsImpl {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
const item = chunk.partial_item || chunk.complete_item;
|
|
1361
1361
|
store.dispatch(cdsAichatInternal.actions.streamingAddChunk(messageID, item, isCompleteItem, options.disableFadeAnimation ?? true));
|
|
1362
|
+
if (chunk.partial_response?.history) {
|
|
1363
|
+
if (Object.keys(chunk.partial_response).length > 1) {
|
|
1364
|
+
throw new Error(`The partial_response object only supports the "history" property.`);
|
|
1365
|
+
}
|
|
1366
|
+
store.dispatch(cdsAichatInternal.actions.streamingMergeHistory(messageID, chunk.partial_response?.history));
|
|
1367
|
+
}
|
|
1362
1368
|
// Now make sure to handle any user_defined response items in the chunk.
|
|
1363
1369
|
this.handleUserDefinedResponseItemsChunk(messageID, chunk, item);
|
|
1364
1370
|
}
|
|
@@ -4295,7 +4301,7 @@ class MessageService {
|
|
|
4295
4301
|
if (eventType === 'message' || !eventType) {
|
|
4296
4302
|
clearTimeout(streamStartingTimer);
|
|
4297
4303
|
const data = JSON.parse(event.data);
|
|
4298
|
-
if (!streamMessageID && data.streaming_metadata?.response_id) {
|
|
4304
|
+
if (!streamMessageID && cdsAichatInternal.isStreamPartialOrCompleteItem(data) && data.streaming_metadata?.response_id) {
|
|
4299
4305
|
// The first chunk should include the ID of the final message response we are building.
|
|
4300
4306
|
streamMessageID = data.streaming_metadata.response_id;
|
|
4301
4307
|
store.dispatch(cdsAichatInternal.actions.removeLocalMessageItem(streamLoadingItemID));
|
|
@@ -4305,7 +4311,7 @@ class MessageService {
|
|
|
4305
4311
|
current.sendMessagePromise.doResolve();
|
|
4306
4312
|
}
|
|
4307
4313
|
}
|
|
4308
|
-
if (
|
|
4314
|
+
if (cdsAichatInternal.isStreamPartialOrCompleteItem(data)) {
|
|
4309
4315
|
// We don't want the artificial pause when we're streaming chunks of items.
|
|
4310
4316
|
current.requestOptions.skipPause = true;
|
|
4311
4317
|
// Once we get individual items, we don't want to apply the full body message animations anymore. That
|
|
@@ -7274,6 +7280,20 @@ const reducers = {
|
|
|
7274
7280
|
};
|
|
7275
7281
|
return applyFullMessage(state, streamIntoResponse);
|
|
7276
7282
|
},
|
|
7283
|
+
[cdsAichatInternal.STREAMING_MERGE_HISTORY]: (state, { messageID, history }) => {
|
|
7284
|
+
const existingMessage = state.allMessagesByID[messageID];
|
|
7285
|
+
const newMessage = cdsAichatInternal.merge({}, existingMessage, { history });
|
|
7286
|
+
if (existingMessage) {
|
|
7287
|
+
return {
|
|
7288
|
+
...state,
|
|
7289
|
+
allMessagesByID: {
|
|
7290
|
+
...state.allMessagesByID,
|
|
7291
|
+
[messageID]: newMessage,
|
|
7292
|
+
},
|
|
7293
|
+
};
|
|
7294
|
+
}
|
|
7295
|
+
return state;
|
|
7296
|
+
},
|
|
7277
7297
|
[cdsAichatInternal.STREAMING_ADD_CHUNK]: (state, { chunkItem, fullMessageID, isCompleteItem, disableFadeAnimation, }) => {
|
|
7278
7298
|
const message = state.allMessagesByID[fullMessageID];
|
|
7279
7299
|
// This might be undefined if we haven't seen this item before.
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ReactPlayer.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/Table.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/agentActions.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/aiChatEntry.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-dz.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-kw.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-ly.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-ma.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-sa.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar-tn.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/ar2.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -4269,7 +4269,7 @@ var merge = createAssigner(function(object, source, srcIndex) {
|
|
|
4269
4269
|
// Webpack/rollup will replace any "process.env.*" values below that it recognizes at compile time with their corresponding
|
|
4270
4270
|
// values at that time.
|
|
4271
4271
|
|
|
4272
|
-
var VERSION = "0.1.
|
|
4272
|
+
var VERSION = "0.1.6";
|
|
4273
4273
|
|
|
4274
4274
|
// PRODUCTION ENV VARIABLES
|
|
4275
4275
|
// These env variables are used in production (as well as development)
|
|
@@ -10175,6 +10175,7 @@ const SET_RESPONSE_PANEL_IS_OPEN = 'SET_RESPONSE_PANEL_IS_OPEN';
|
|
|
10175
10175
|
const SET_RESPONSE_PANEL_CONTENT = 'SET_PANEL_RESPONSE_CONTENT';
|
|
10176
10176
|
const STREAMING_ADD_CHUNK = 'STREAMING_ADD_CHUNK';
|
|
10177
10177
|
const STREAMING_START = 'STREAMING_START';
|
|
10178
|
+
const STREAMING_MERGE_HISTORY = 'STREAMING_MERGE_HISTORY';
|
|
10178
10179
|
const ADD_NOTIFICATION = 'ADD_NOTIFICATION';
|
|
10179
10180
|
const REMOVE_ALL_NOTIFICATIONS = 'REMOVE_ALL_NOTIFICATIONS';
|
|
10180
10181
|
const REMOVE_NOTIFICATIONS = 'REMOVE_NOTIFICATIONS';
|
|
@@ -10565,6 +10566,12 @@ const actions = {
|
|
|
10565
10566
|
streamingStart(messageID) {
|
|
10566
10567
|
return { type: STREAMING_START, messageID };
|
|
10567
10568
|
},
|
|
10569
|
+
/**
|
|
10570
|
+
* Merges the given message history object into an existing message object.
|
|
10571
|
+
*/
|
|
10572
|
+
streamingMergeHistory(messageID, history) {
|
|
10573
|
+
return { type: STREAMING_MERGE_HISTORY, messageID, history };
|
|
10574
|
+
},
|
|
10568
10575
|
/**
|
|
10569
10576
|
* Adds a new chunk of a streaming response to an existing message.
|
|
10570
10577
|
*/
|
|
@@ -16194,11 +16201,12 @@ function isAnythingElse(message) {
|
|
|
16194
16201
|
/**
|
|
16195
16202
|
* Creates a new {@link TextItem}.
|
|
16196
16203
|
*/
|
|
16197
|
-
function createTextItem(text) {
|
|
16198
|
-
|
|
16204
|
+
function createTextItem(text, streamID) {
|
|
16205
|
+
const item = {
|
|
16199
16206
|
response_type: exports.MessageResponseTypes.TEXT,
|
|
16200
16207
|
text,
|
|
16201
16208
|
};
|
|
16209
|
+
return item;
|
|
16202
16210
|
}
|
|
16203
16211
|
/**
|
|
16204
16212
|
* Determines if the given search result item is empty (has no results in it).
|
|
@@ -16286,6 +16294,12 @@ function isStreamPartialItem(chunk) {
|
|
|
16286
16294
|
function isStreamCompleteItem(chunk) {
|
|
16287
16295
|
return Boolean(chunk.complete_item);
|
|
16288
16296
|
}
|
|
16297
|
+
/**
|
|
16298
|
+
* Indicates if the given stream chunk is a complete item.
|
|
16299
|
+
*/
|
|
16300
|
+
function isStreamPartialOrCompleteItem(chunk) {
|
|
16301
|
+
return isStreamPartialItem(chunk) || isStreamCompleteItem(chunk);
|
|
16302
|
+
}
|
|
16289
16303
|
/**
|
|
16290
16304
|
* Indicates if the given stream chunk is a partial item.
|
|
16291
16305
|
*/
|
|
@@ -38576,8 +38590,14 @@ let ChatContainerInternal = class ChatContainerInternal extends lit.LitElement {
|
|
|
38576
38590
|
if (this.isReact && typeof __webpack_require__ !== 'undefined' && 'resolveWeak' in __webpack_require__) {
|
|
38577
38591
|
// Webpack-friendly runtime check for the existence of the module.
|
|
38578
38592
|
if (__webpack_require__.resolveWeak('react-dom/client')) {
|
|
38579
|
-
|
|
38580
|
-
|
|
38593
|
+
try {
|
|
38594
|
+
const ReactDOMClient = await import('react-dom/client');
|
|
38595
|
+
createRoot = ReactDOMClient.createRoot;
|
|
38596
|
+
}
|
|
38597
|
+
catch {
|
|
38598
|
+
// This is for webpack 4 builds that will try to run this anyway even if conditions are not met.
|
|
38599
|
+
console.warn('Unable to import react-dom/client.');
|
|
38600
|
+
}
|
|
38581
38601
|
}
|
|
38582
38602
|
else {
|
|
38583
38603
|
throw new Error('Unable to render React client. If you are running an application using React 18, but you have not updated to using createRoot, please include the "forceReact17Mode" prop.');
|
|
@@ -38585,14 +38605,20 @@ let ChatContainerInternal = class ChatContainerInternal extends lit.LitElement {
|
|
|
38585
38605
|
}
|
|
38586
38606
|
else {
|
|
38587
38607
|
// General fallback for environments without resolveWeak.
|
|
38588
|
-
|
|
38589
|
-
|
|
38608
|
+
try {
|
|
38609
|
+
const ReactDOMClient = await import('react-dom/client');
|
|
38610
|
+
createRoot = ReactDOMClient.createRoot;
|
|
38611
|
+
}
|
|
38612
|
+
catch {
|
|
38613
|
+
// This is for webpack 4 builds that will try to run this anyway even if conditions are not met.
|
|
38614
|
+
console.warn('Unable to import react-dom/client.');
|
|
38615
|
+
}
|
|
38590
38616
|
}
|
|
38591
38617
|
this._root = createRoot(container);
|
|
38592
38618
|
this._root.render(React$1.createElement(AppContainer, { config: this.config, renderUserDefinedResponse: this.renderUserDefinedResponse, renderWriteableElements: this.renderWriteableElements, onBeforeRender: this.onBeforeRender, onAfterRender: this.onAfterRender, container: container }));
|
|
38593
38619
|
}
|
|
38594
38620
|
catch (error) {
|
|
38595
|
-
consoleError('Unable to render React client. If you are running an application using React 18
|
|
38621
|
+
consoleError('Unable to render React client. If you are running an application using React 18+, but you have not updated to using createRoot, please include the "forceReact17Mode" prop.', error);
|
|
38596
38622
|
}
|
|
38597
38623
|
}
|
|
38598
38624
|
else {
|
|
@@ -38737,6 +38763,7 @@ exports.SET_UPDATE_HISTORY_USER_DEFINED_COUNT = SET_UPDATE_HISTORY_USER_DEFINED_
|
|
|
38737
38763
|
exports.SET_VIEW_CHANGING = SET_VIEW_CHANGING;
|
|
38738
38764
|
exports.SET_VIEW_STATE = SET_VIEW_STATE;
|
|
38739
38765
|
exports.STREAMING_ADD_CHUNK = STREAMING_ADD_CHUNK;
|
|
38766
|
+
exports.STREAMING_MERGE_HISTORY = STREAMING_MERGE_HISTORY;
|
|
38740
38767
|
exports.STREAMING_START = STREAMING_START;
|
|
38741
38768
|
exports.SUGGESTIONS_SET_SELECTED_INDEX = SUGGESTIONS_SET_SELECTED_INDEX;
|
|
38742
38769
|
exports.Search = Search;
|
|
@@ -38868,6 +38895,7 @@ exports.isSecureHost = isSecureHost;
|
|
|
38868
38895
|
exports.isStreamCompleteItem = isStreamCompleteItem;
|
|
38869
38896
|
exports.isStreamFinalResponse = isStreamFinalResponse;
|
|
38870
38897
|
exports.isStreamPartialItem = isStreamPartialItem;
|
|
38898
|
+
exports.isStreamPartialOrCompleteItem = isStreamPartialOrCompleteItem;
|
|
38871
38899
|
exports.isStrike = isStrike;
|
|
38872
38900
|
exports.isSuggestionListItem = isSuggestionListItem;
|
|
38873
38901
|
exports.isTyping = isTyping;
|
package/dist/cjs/cs.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/cs2.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/de-at.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/de-ch.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/de.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/de2.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/en-au.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/en-ca.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/en-gb.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/en-ie.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
package/dist/cjs/en-il.js
CHANGED
|
@@ -13,9 +13,9 @@ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND
|
|
|
13
13
|
or implied. See the License for the specific language governing permissions and limitations under
|
|
14
14
|
the License.
|
|
15
15
|
|
|
16
|
-
@carbon/ai-chat 0.1.
|
|
16
|
+
@carbon/ai-chat 0.1.6-alpha0
|
|
17
17
|
|
|
18
|
-
Built: Jan
|
|
18
|
+
Built: Jan 22 2025 1:15 pm -05:00
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|