-
-
- {t("field.jsxApiVersion.label")}
-
- form.setFieldValue("jsxApiVersion", value)}
- data={[
- { value: "2", label: t("field.jsxApiVersion.v2") },
- { value: "1", label: t("field.jsxApiVersion.v1") },
- ]}
- />
-
-
- {form.values.jsxApiVersion === "1" ? (
- }>
- {t("field.jsxApiVersion.legacyWarning")}
-
- ) : (
-
-
- )}
-
- form.setFieldValue("template", value)}
- placeholder={CUSTOM_JSX_STARTER}
- starter={CUSTOM_JSX_STARTER}
- diagnostics={templateDiagnostics}
- error={form.errors.template}
- required
- maxLength={CUSTOM_JSX_TEMPLATE_LIMIT}
- />
-
- );
- }
-
- return null;
-}
diff --git a/apps/nextjs/src/app/[locale]/manage/custom-widgets/_custom-widget-import-utils.ts b/apps/nextjs/src/app/[locale]/manage/custom-widgets/_custom-widget-import-utils.ts
deleted file mode 100644
index 589350a77..000000000
--- a/apps/nextjs/src/app/[locale]/manage/custom-widgets/_custom-widget-import-utils.ts
+++ /dev/null
@@ -1,194 +0,0 @@
-export interface ImportReview {
- name: string;
- origin: string;
- authType: string;
- networkScope: string;
- methods: string[];
- permissions: string[];
- hasActions: boolean;
-}
-
-export function parseCustomWidgetClipboard(text: string): Record