@messenger-box/tailwind-ui-inbox 10.0.3-alpha.106 → 10.0.3-alpha.108
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/CHANGELOG.md +8 -0
- package/lib/config/env-config.d.ts +1 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +3 -0
- package/lib/config/env-config.js.map +1 -1
- package/lib/container/AiLandingInput.d.ts.map +1 -1
- package/lib/container/AiLandingInput.js +8 -2
- package/lib/container/AiLandingInput.js.map +1 -1
- package/package.json +2 -2
- package/src/config/env-config.ts +1 -0
- package/src/container/AiLandingInput.tsx +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [10.0.3-alpha.108](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.107...v10.0.3-alpha.108) (2025-10-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/tailwind-ui-inbox
|
|
9
|
+
|
|
10
|
+
## [10.0.3-alpha.107](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.106...v10.0.3-alpha.107) (2025-10-14)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @messenger-box/tailwind-ui-inbox
|
|
13
|
+
|
|
6
14
|
## [10.0.3-alpha.106](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.105...v10.0.3-alpha.106) (2025-10-14)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @messenger-box/tailwind-ui-inbox
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;;;;;;;;;;;;0CAajB,CAAC"}
|
package/lib/config/env-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"uFAGA,MAAM,GAAG,GAAG,cAAc,EAAE;AAErB,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;YAChC,EAAU;IACV,OAAA,EAAA;IACA;AACA,EAAA,sBAAmB,EAAG,GAAG,CAAA;IACzB,OAAA,EAAA;IACA;yBACqB,KAAI,CAAE;IAC3B,OAAA,EAAA;IACA;qBACiB,GAAG;IACpB,UAAA,EAAA,EAAc;
|
|
1
|
+
{"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"uFAGA,MAAM,GAAG,GAAG,cAAc,EAAE;AAErB,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;YAChC,EAAU;IACV,OAAA,EAAA;IACA;AACA,EAAA,sBAAmB,EAAG,GAAG,CAAA;IACzB,OAAA,EAAA;IACA;yBACqB,KAAI,CAAE;IAC3B,OAAA,EAAA;IACA;qBACiB,GAAG;IACpB,UAAA,EAAA,EAAc;IACd,OAAA,EAAA;AACH,GAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiLandingInput.d.ts","sourceRoot":"","sources":["../../src/container/AiLandingInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;
|
|
1
|
+
{"version":3,"file":"AiLandingInput.d.ts","sourceRoot":"","sources":["../../src/container/AiLandingInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;;AAmP1B,wBAA0C"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import React__default from'react';import {useNavigate}from'@remix-run/react';import {AiAgentMessageRole,PostTypeEnum,RoomType}from'common';import'date-fns';import'@react-icons/all-files/bs/BsFlag.js';import'../components/inbox/FilesList.js';import'../components/inbox/MessageItem.js';import'../components/inbox/ThreadItem.js';import'../components/InboxMessage/ConversationItem.js';import'../components/InboxMessage/ServiceConversationItem.js';import'../components/InboxMessage/LeftSidebar.js';import'react-i18next';import {config}from'../config/env-config.js';import'@react-icons/all-files/bi/BiImage.js';import'@react-icons/all-files/ai/AiOutlineSecurityScan.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/bs/BsFillStarFill.js';import'@common-stack/components-pro';import'react-markdown';import'remark-gfm';import'../enums/messenger-slot-fill-name-enum.js';import'../components/InboxMessage/ServiceInboxItem.js';import {InputComponent}from'../components/InboxMessage/InputComponent.js';import {objectId}from'@messenger-box/core';import {useCreateChannelWorkflowJobMutation,useAddChannelMutation,useSendMessagesMutation}from'common/graphql';import {usePersistentModelConfig}from'../hooks/usePersistentModelConfig.js';const TailwindOverlaySpinner = React__default.memo(() => React__default.createElement("div", {
|
|
1
|
+
import React__default from'react';import {useParams,useNavigate}from'@remix-run/react';import {AiAgentMessageRole,PostTypeEnum,RoomType}from'common';import'date-fns';import'@react-icons/all-files/bs/BsFlag.js';import'../components/inbox/FilesList.js';import'../components/inbox/MessageItem.js';import'../components/inbox/ThreadItem.js';import'../components/InboxMessage/ConversationItem.js';import'../components/InboxMessage/ServiceConversationItem.js';import'../components/InboxMessage/LeftSidebar.js';import'react-i18next';import {config}from'../config/env-config.js';import'@react-icons/all-files/bi/BiImage.js';import'@react-icons/all-files/ai/AiOutlineSecurityScan.js';import'@react-icons/all-files/fi/FiCheck.js';import'@react-icons/all-files/bs/BsFillStarFill.js';import'@common-stack/components-pro';import'react-markdown';import'remark-gfm';import'../enums/messenger-slot-fill-name-enum.js';import'../components/InboxMessage/ServiceInboxItem.js';import {InputComponent}from'../components/InboxMessage/InputComponent.js';import {objectId}from'@messenger-box/core';import {useCreateChannelWorkflowJobMutation,useAddChannelMutation,useSendMessagesMutation}from'common/graphql';import {usePersistentModelConfig}from'../hooks/usePersistentModelConfig.js';const TailwindOverlaySpinner = React__default.memo(() => React__default.createElement("div", {
|
|
2
2
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-30"
|
|
3
3
|
}, React__default.createElement("div", {
|
|
4
4
|
className: "animate-spin rounded-full h-10 w-10 border-2 border-white border-t-transparent"
|
|
5
5
|
})));
|
|
6
6
|
const AiLandingInput = () => {
|
|
7
|
+
const {
|
|
8
|
+
orgName
|
|
9
|
+
} = useParams();
|
|
7
10
|
const [createChannelWorkflowJob] = useCreateChannelWorkflowJobMutation();
|
|
8
11
|
const [addChannel] = useAddChannelMutation();
|
|
9
12
|
const [sendMessage] = useSendMessagesMutation();
|
|
@@ -98,7 +101,10 @@ const AiLandingInput = () => {
|
|
|
98
101
|
setIsCreatingChannel(false);
|
|
99
102
|
return;
|
|
100
103
|
}
|
|
101
|
-
|
|
104
|
+
console.log('orgName', orgName);
|
|
105
|
+
const aiMessengerPath = orgName ? config.AI_MESSENGER_PATH.replace(':orgName', orgName) : config.AI_MESSENGER_PATH;
|
|
106
|
+
console.log('aiMessengerPath', aiMessengerPath);
|
|
107
|
+
navigate(`${aiMessengerPath}?id=${id}`, {
|
|
102
108
|
replace: true
|
|
103
109
|
});
|
|
104
110
|
setIsCreatingChannel(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiLandingInput.js","sources":["../../src/container/AiLandingInput.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"
|
|
1
|
+
{"version":3,"file":"AiLandingInput.js","sources":["../../src/container/AiLandingInput.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"2uCASA,MAAM,sBAAsB,GAAGA,cAAK,CAAC,IAAI,CAAC,MAAMA,cAC5C,CAAA,aAAA,CAAA,KAAA,EAAA;AACI,EAAA,SAAA,EAAA;AAIR,CAAA,EAAAA,cAAM,CAAA,aA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IAAA;;AAEF,gBAAA,6BAAS,EAAA;AACb;AACA,aAAA;gCACA,EAAA;;AAEJ;AACI,WAAA;;oCAEH,EAAA,WAAA,IAAA,MAAA,CAAA,+BAAA;AACJ,YAAA,QAAA,EAAA,0BAAE;AACP,YAAA,MAAA,EAAA,oBACY;AA8FhB,YAAA,UAAA,EAAA,yBAAK;AAKZ,YAAA,QAAA,EAAA,EAAA;AAGb,YAAE,MAAA,EAAA;AAEF;AAEA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/tailwind-ui-inbox",
|
|
3
|
-
"version": "10.0.3-alpha.
|
|
3
|
+
"version": "10.0.3-alpha.108",
|
|
4
4
|
"description": "Inbox UI components built with TailwindCSS",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"typescript": {
|
|
59
59
|
"definition": "lib/index.d.ts"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "806bb0a0bbee59c4e86e9edc12c55437b91de460"
|
|
62
62
|
}
|
package/src/config/env-config.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useNavigate } from '@remix-run/react';
|
|
2
|
+
import { useNavigate, useParams } from '@remix-run/react';
|
|
3
3
|
import { AiAgentMessageRole, PostTypeEnum, RoomType } from 'common';
|
|
4
4
|
import { InputComponent } from '../components/InboxMessage';
|
|
5
5
|
import { objectId } from '@messenger-box/core';
|
|
@@ -7,7 +7,6 @@ import { useAddChannelMutation, useSendMessagesMutation, useCreateChannelWorkflo
|
|
|
7
7
|
import { ModelConfigPanel } from '../components/ModelConfigPanel';
|
|
8
8
|
import { config } from '../config/env-config';
|
|
9
9
|
import { usePersistentModelConfig } from '../hooks/usePersistentModelConfig';
|
|
10
|
-
|
|
11
10
|
const TailwindOverlaySpinner = React.memo(() => (
|
|
12
11
|
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-30">
|
|
13
12
|
<div className="animate-spin rounded-full h-10 w-10 border-2 border-white border-t-transparent"></div>
|
|
@@ -15,6 +14,7 @@ const TailwindOverlaySpinner = React.memo(() => (
|
|
|
15
14
|
));
|
|
16
15
|
|
|
17
16
|
const AiLandingInput: React.FC = () => {
|
|
17
|
+
const { orgName } = useParams();
|
|
18
18
|
const [createChannelWorkflowJob] = useCreateChannelWorkflowJobMutation();
|
|
19
19
|
const [addChannel] = useAddChannelMutation();
|
|
20
20
|
const [sendMessage] = useSendMessagesMutation();
|
|
@@ -121,7 +121,12 @@ const AiLandingInput: React.FC = () => {
|
|
|
121
121
|
setIsCreatingChannel(false);
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
console.log('orgName', orgName);
|
|
125
|
+
const aiMessengerPath = orgName
|
|
126
|
+
? config.AI_MESSENGER_PATH.replace(':orgName', orgName)
|
|
127
|
+
: config.AI_MESSENGER_PATH;
|
|
128
|
+
console.log('aiMessengerPath', aiMessengerPath);
|
|
129
|
+
navigate(`${aiMessengerPath}?id=${id}`, { replace: true });
|
|
125
130
|
setIsCreatingChannel(false);
|
|
126
131
|
},
|
|
127
132
|
onError: (error: any) => {
|