@messenger-box/tailwind-ui-inbox 10.0.3-alpha.100 → 10.0.3-alpha.101
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
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.101](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.100...v10.0.3-alpha.101) (2025-10-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @messenger-box/tailwind-ui-inbox
|
|
9
|
+
|
|
6
10
|
## [10.0.3-alpha.100](https://github.com/CDEBase/messenger-box/compare/v10.0.3-alpha.99...v10.0.3-alpha.100) (2025-10-09)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @messenger-box/tailwind-ui-inbox
|
|
@@ -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;;AA0O1B,wBAA0C"}
|
|
@@ -1,10 +1,10 @@
|
|
|
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/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 {
|
|
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/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 [
|
|
7
|
+
const [createChannelWorkflowJob] = useCreateChannelWorkflowJobMutation();
|
|
8
8
|
const [addChannel] = useAddChannelMutation();
|
|
9
9
|
const [sendMessage] = useSendMessagesMutation();
|
|
10
10
|
const navigate = useNavigate();
|
|
@@ -49,10 +49,11 @@ const AiLandingInput = () => {
|
|
|
49
49
|
console.log('Message sent without channel:', message, files);
|
|
50
50
|
setIsCreatingChannel(true);
|
|
51
51
|
const id = objectId();
|
|
52
|
+
const postId = objectId();
|
|
52
53
|
const channelId = objectId();
|
|
53
|
-
|
|
54
|
+
createChannelWorkflowJob({
|
|
54
55
|
variables: {
|
|
55
|
-
|
|
56
|
+
createChannelInput: {
|
|
56
57
|
channelId,
|
|
57
58
|
title: 'AI Assistant',
|
|
58
59
|
description: 'AI Assistant',
|
|
@@ -61,21 +62,34 @@ const AiLandingInput = () => {
|
|
|
61
62
|
projectId: id,
|
|
62
63
|
type: RoomType.Aiassistant,
|
|
63
64
|
postData: {
|
|
65
|
+
postId: postId,
|
|
64
66
|
type: PostTypeEnum.Aiassistant,
|
|
65
67
|
content: message,
|
|
66
68
|
props: {
|
|
69
|
+
generateAiCode: true,
|
|
67
70
|
template: modelConfig?.template || 'vite-react',
|
|
68
71
|
projectId: id,
|
|
69
72
|
role: AiAgentMessageRole.User,
|
|
70
73
|
fragment: {},
|
|
71
74
|
sendNotificationWithProjectId: true
|
|
72
75
|
}
|
|
76
|
+
},
|
|
77
|
+
additionalProperties: {
|
|
78
|
+
modelConfig: modelConfig
|
|
73
79
|
}
|
|
80
|
+
},
|
|
81
|
+
extensionInput: {
|
|
82
|
+
extensionId: '68e51ad7e9e65cf877392550',
|
|
83
|
+
stepName: 'createChannel',
|
|
84
|
+
formId: 'form-builder-proxy',
|
|
85
|
+
functionId: 'create-channel-function',
|
|
86
|
+
metadata: {},
|
|
87
|
+
source: 'final-submission'
|
|
74
88
|
}
|
|
75
89
|
},
|
|
76
90
|
onCompleted: data => {
|
|
77
91
|
console.log('Channel created:', data);
|
|
78
|
-
if (!data.
|
|
92
|
+
if (!data.createChannelWorkflowJob) {
|
|
79
93
|
setIsCreatingChannel(false);
|
|
80
94
|
return;
|
|
81
95
|
}
|
|
@@ -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":"otCASA,MAAM,sBAAsB,GAAGA,cAAK,CAAC,IAAI,CAAC,MAAMA,cAC5C,CAAA,aAAA,CAAA,KAAA,EAAA;AACI,EAAA,SAAA,EAAA;AAIR,CAAA,EAAAA,cAAM,CAAA,aAAc,CAAa,KAAK,EAAA;AAClC,EAAA,SAAO,EAAA;AACP,CAAA,CAAA,CAAA,CAAA;AACA,MAAA,cAAO,GAAY,MAAG;AACtB,EAAA,MAAA,CAAA,wBAA4B,CAAE,GAAC,mCAAA,EAAA;AAC/B,EAAA,MAAA,CAAA,UAAO,CAAA,GAAA,qBAAmB,EAAA;AAC1B,EAAA,MAAA,CAAA,WAAQ,CAAA,GAAW,uBAAqB,EAAA;QACxC,QAAA,GAAA,WAAA,EAAA;AACA,EAAA,MAAA,CAAA,iBAAsB,EAAE,oBAAmB,CAAA,GAAGA,cAAM,CAAA,QAAS,CAAA,KAAM,CAAA;AAEnE,EAAA,MAAA;eAEQ;qBACI;sBACI;;AAEI,GAAA,GAAA,wBAAA,EAAA;;AAGA,EAAA,MAAA,CAAA,eAAA,EAAA,kBAAA,CAAA,GAAAA,uBAAgB,CAAA,IAAO,CAAA;qCAiBX,CAAA,KAAA,EAAA;AAEI,IAAA,SAAA,EAAA;AAKJ,GAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;;AASR,GAAA,EAAAA,cAAA,CAAA,aAAA,CAAA,KAAM,EAAA;AACN,IAAA,SAAA,EAAA;uCACI,EAAA;;iCAEJ,CAAC,IAAA,EAAA;;oCAED,CAAA,EAAAA,cAAoB,CAAC,aAAM,CAAA,GAAA,EAAA;AAC3B,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EAAA;AACA,YAAA,IAAA,EAAA,QAAA,CAAA,WAAA;AACA,YAAA,QAAA,EAAA;AACA,cAAA,MAAA,EAAA,MAAA;AACA,cAAA,IAAA,EAAA,YAAA,CAAA,WAAQ;AACR,cAAA,OAAA,EAAA,OAAA;AACH,cAAA,KAAA,EAAA;AACJ,gBAAA,cAAA,EAAA,IAAA;AACD,gBAAA,QAAA,EAAA,WAAA,EAAW,QAAY,IAAI,YAAA;AACvB,gBAAA,SAAA,EAAA,EAAA;AACA,gBAAA,IAAA,EAAA,kBAAK,CAAI,IAAC;;6CAEC,EAAA;;;gCAGX,EAAA;;AAEJ;AACI,WAAA;;mDAEH;AACJ,YAAA,QAAA,EAAA,eAAE;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.101",
|
|
4
4
|
"description": "Inbox UI components built with TailwindCSS",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"watch": "npm run build:lib:watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@messenger-box/core": "10.0.3-alpha.
|
|
25
|
-
"@messenger-box/platform-client": "10.0.3-alpha.
|
|
24
|
+
"@messenger-box/core": "10.0.3-alpha.101",
|
|
25
|
+
"@messenger-box/platform-client": "10.0.3-alpha.101",
|
|
26
26
|
"@monaco-editor/react": "^4.7.0",
|
|
27
27
|
"date-fns": "^4.1.0",
|
|
28
28
|
"date-fns-tz": "^3.2.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"typescript": {
|
|
59
59
|
"definition": "lib/index.d.ts"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "1efe826e2695b4801cf941142c8ffb911b6e7855"
|
|
62
62
|
}
|
|
@@ -3,7 +3,7 @@ import { useNavigate } 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';
|
|
6
|
-
import { useAddChannelMutation, useSendMessagesMutation,
|
|
6
|
+
import { useAddChannelMutation, useSendMessagesMutation, useCreateChannelWorkflowJobMutation } from 'common/graphql';
|
|
7
7
|
import { ModelConfigPanel } from '../components/ModelConfigPanel';
|
|
8
8
|
import { usePersistentModelConfig } from '../hooks/usePersistentModelConfig';
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ const TailwindOverlaySpinner = React.memo(() => (
|
|
|
14
14
|
));
|
|
15
15
|
|
|
16
16
|
const AiLandingInput: React.FC = () => {
|
|
17
|
-
const [
|
|
17
|
+
const [createChannelWorkflowJob] = useCreateChannelWorkflowJobMutation();
|
|
18
18
|
const [addChannel] = useAddChannelMutation();
|
|
19
19
|
const [sendMessage] = useSendMessagesMutation();
|
|
20
20
|
const navigate = useNavigate();
|
|
@@ -73,10 +73,11 @@ const AiLandingInput: React.FC = () => {
|
|
|
73
73
|
console.log('Message sent without channel:', message, files);
|
|
74
74
|
setIsCreatingChannel(true);
|
|
75
75
|
const id = objectId();
|
|
76
|
+
const postId = objectId();
|
|
76
77
|
const channelId = objectId();
|
|
77
|
-
|
|
78
|
+
createChannelWorkflowJob({
|
|
78
79
|
variables: {
|
|
79
|
-
|
|
80
|
+
createChannelInput: {
|
|
80
81
|
channelId,
|
|
81
82
|
title: 'AI Assistant',
|
|
82
83
|
description: 'AI Assistant',
|
|
@@ -85,9 +86,11 @@ const AiLandingInput: React.FC = () => {
|
|
|
85
86
|
projectId: id,
|
|
86
87
|
type: RoomType.Aiassistant,
|
|
87
88
|
postData: {
|
|
89
|
+
postId: postId,
|
|
88
90
|
type: PostTypeEnum.Aiassistant,
|
|
89
91
|
content: message,
|
|
90
92
|
props: {
|
|
93
|
+
generateAiCode: true,
|
|
91
94
|
template: modelConfig?.template || 'vite-react',
|
|
92
95
|
projectId: id,
|
|
93
96
|
role: AiAgentMessageRole.User,
|
|
@@ -95,11 +98,22 @@ const AiLandingInput: React.FC = () => {
|
|
|
95
98
|
sendNotificationWithProjectId: true,
|
|
96
99
|
},
|
|
97
100
|
},
|
|
101
|
+
additionalProperties: {
|
|
102
|
+
modelConfig: modelConfig,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
extensionInput: {
|
|
106
|
+
extensionId: '68e51ad7e9e65cf877392550',
|
|
107
|
+
stepName: 'createChannel',
|
|
108
|
+
formId: 'form-builder-proxy',
|
|
109
|
+
functionId: 'create-channel-function',
|
|
110
|
+
metadata: {},
|
|
111
|
+
source: 'final-submission',
|
|
98
112
|
},
|
|
99
113
|
},
|
|
100
114
|
onCompleted: (data: any) => {
|
|
101
115
|
console.log('Channel created:', data);
|
|
102
|
-
if (!data.
|
|
116
|
+
if (!data.createChannelWorkflowJob) {
|
|
103
117
|
setIsCreatingChannel(false);
|
|
104
118
|
return;
|
|
105
119
|
}
|