mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 02:23:53 +02:00
feat: add support for HTML content in HitlEditPanel and PlateEditor components for only Confluence HITL tool
This commit is contained in:
parent
2bc6a0c3bc
commit
a9683bb1dc
8 changed files with 131 additions and 18 deletions
|
|
@ -13,6 +13,7 @@ interface HitlEditPanelState {
|
|||
title: string;
|
||||
content: string;
|
||||
toolName: string;
|
||||
contentFormat?: "markdown" | "html";
|
||||
extraFields?: ExtraField[];
|
||||
onSave:
|
||||
| ((title: string, content: string, extraFieldValues?: Record<string, string>) => void)
|
||||
|
|
@ -25,6 +26,7 @@ const initialState: HitlEditPanelState = {
|
|||
title: "",
|
||||
content: "",
|
||||
toolName: "",
|
||||
contentFormat: undefined,
|
||||
extraFields: undefined,
|
||||
onSave: null,
|
||||
onClose: null,
|
||||
|
|
@ -43,6 +45,7 @@ export const openHitlEditPanelAtom = atom(
|
|||
title: string;
|
||||
content: string;
|
||||
toolName: string;
|
||||
contentFormat?: "markdown" | "html";
|
||||
extraFields?: ExtraField[];
|
||||
onSave: (title: string, content: string, extraFieldValues?: Record<string, string>) => void;
|
||||
onClose?: () => void;
|
||||
|
|
@ -56,6 +59,7 @@ export const openHitlEditPanelAtom = atom(
|
|||
title: payload.title,
|
||||
content: payload.content,
|
||||
toolName: payload.toolName,
|
||||
contentFormat: payload.contentFormat,
|
||||
extraFields: payload.extraFields,
|
||||
onSave: payload.onSave,
|
||||
onClose: payload.onClose ?? null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue