chore: migrate fe 250722
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import type { CommentEditorBlock } from '../../type';
|
||||
import { getCozeCom, getCozeCn } from './util';
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { getCozeCom, getCozeCn } from './util';
|
||||
|
||||
export const commentEditorMockHTML = `<h1><u><strong>Workflow Comment</strong></u></h1><p><strong>[Format]</strong></p><p><strong>Bold</strong> <em>Italic</em> <u>Underline</u> <del>Strikethrough</del> <del><u><em><strong>Mixed</strong></em></u></del></p><p><strong>[Quote]</strong></p><blockquote><p>This line should be displayed as a quote.</p></blockquote><blockquote><p>Line 2: content.</p></blockquote><blockquote><p>Line 3: content.</p></blockquote><p><strong>[Bullet List]</strong></p><ul><li>item order 1</li><li>item order 2</li><li>item order 3</li></ul><p><strong>[Numbered List]</strong></p><ol><li>item order 1</li><li>item order 2</li><li>item order 3</li></ol><p><strong>[Hyper Link]</strong></p><p>Coze 👉🏻 <a href="${getCozeCom()}">coze.com</a></p><p>Coze for CN 👉🏻 <a href="${getCozeCn()}">coze.cn</a></p><p><strong>[Heading]</strong></p><h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><h3><u><em><strong>Heading Formatted</strong></em></u></h3>`;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export { commentEditorMockMarkdown } from './markdown';
|
||||
export { commentEditorMockText } from './text';
|
||||
export { commentEditorMockBlocks } from './blocks';
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { commentEditorMockBlocks } from './blocks';
|
||||
|
||||
export const commentEditorMockJSON = JSON.stringify(commentEditorMockBlocks);
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { getCozeCom, getCozeCn } from './util';
|
||||
|
||||
export const commentEditorMockMarkdown = `# __**Workflow Comment**__
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export const commentEditorMockText = `Workflow Comment
|
||||
[Format]
|
||||
Bold Italic Underline Strikethrough Mixed
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
export const getCozeCom = () => ['https://', 'coze.com'].join('');
|
||||
|
||||
export const getCozeCn = () => ['https://', 'coze.cn'].join('');
|
||||
|
||||
@@ -65,7 +65,7 @@ const getFileChildren = () => {
|
||||
|
||||
// 1. 是否开启了auto start节点支持音色字段能力
|
||||
// 2. 是否开启了语音资源功能
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
if (
|
||||
FLAGS['bot.automation.start_support_voice'] &&
|
||||
FLAGS['bot.studio.library_voice_resource']
|
||||
|
||||
@@ -89,7 +89,7 @@ const getFileChildren = (
|
||||
generateVariableOption({ type: ViewVariableType.Video, parentPath }),
|
||||
// 1. 是否开启了auto start节点支持音色字段能力
|
||||
// 2. 是否开启了语音资源功能
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
FLAGS['bot.automation.start_support_voice'] &&
|
||||
FLAGS['bot.studio.library_voice_resource']
|
||||
? generateVariableOption({ type: ViewVariableType.Voice })
|
||||
|
||||
@@ -62,7 +62,7 @@ export const Inputs = withFieldArray(
|
||||
tooltip={I18n.t('ltm_240826_01')}
|
||||
testId={getNodeSetterId(fieldName)}
|
||||
actions={[
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
isChatflow && FLAGS['bot.automation.ltm_enhance'] ? (
|
||||
<HistorySwitchField name="inputs.historySetting.enableChatHistory" />
|
||||
) : null,
|
||||
|
||||
@@ -118,7 +118,7 @@ export const FormRender = withNodeConfigForm(() => {
|
||||
hasFeedback={false}
|
||||
/>
|
||||
|
||||
{/* 社区版暂不支持该功能 */}
|
||||
{/* 开源版暂不支持该功能 */}
|
||||
{isChatflow && FLAGS['bot.automation.message_auto_write'] ? (
|
||||
<Section title={I18n.t('basic_setting')} tooltip="">
|
||||
<SwitchField
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { get } from 'lodash-es';
|
||||
import {
|
||||
ValidateTrigger,
|
||||
|
||||
@@ -91,7 +91,7 @@ export const EditorWithPromptKit: FC<EditorWithPromptKitProps> = props => {
|
||||
const promptValue = useRef<string>(value || '');
|
||||
|
||||
const [FLAGS] = useFlags();
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
const isHitLLMPromptSkills = FLAGS['bot.automation.llm_prompt_skills'];
|
||||
|
||||
const { open, node: PromptLibrary } = usePromptLibraryModal({
|
||||
@@ -158,7 +158,7 @@ export const EditorWithPromptKit: FC<EditorWithPromptKitProps> = props => {
|
||||
<InputSlotWidget mode="input" />
|
||||
<LibraryBlockWidget
|
||||
{
|
||||
// 社区版暂不支持该功能
|
||||
// 开源版暂不支持该功能
|
||||
...(isHitLLMPromptSkills
|
||||
? {
|
||||
librarys: libraries,
|
||||
@@ -179,7 +179,7 @@ export const EditorWithPromptKit: FC<EditorWithPromptKitProps> = props => {
|
||||
/>
|
||||
<HighlightExpressionOnActive />
|
||||
|
||||
{/* 社区版暂不支持该功能 */}
|
||||
{/* 开源版暂不支持该功能 */}
|
||||
{isHitLLMPromptSkills ? (
|
||||
<ContentSearchPopover
|
||||
variableTree={variableTree}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { inject, injectable } from 'inversify';
|
||||
import { type FormModelV2 } from '@flowgram-adapter/free-layout-editor';
|
||||
import { FlowNodeFormData } from '@flowgram-adapter/free-layout-editor';
|
||||
@@ -22,8 +22,8 @@ import { WorkflowDocument } from '@flowgram-adapter/free-layout-editor';
|
||||
import { WorkflowNodeData } from '@coze-workflow/nodes';
|
||||
import { workflowApi, StandardNodeType, BlockInput } from '@coze-workflow/base';
|
||||
import { I18n } from '@coze-arch/i18n';
|
||||
import { Modal } from '@coze-arch/coze-design';
|
||||
import { type GetApiDetailRequest } from '@coze-arch/bot-api/workflow_api';
|
||||
import { Modal } from '@coze-arch/coze-design';
|
||||
|
||||
import { WorkflowPlaygroundContext } from '@/workflow-playground-context';
|
||||
import { isNodeV2 } from '@/nodes-v2';
|
||||
|
||||
Reference in New Issue
Block a user