From 71de0ff73fd3216ec0a76cbfacede5f5d9489a2b Mon Sep 17 00:00:00 2001 From: Egor Didenko Date: Mon, 29 Apr 2024 11:23:05 -0400 Subject: [PATCH] feat: updated getUserAgentIntegration --- .../src/Uploader/Inline/FileUploaderInline.tsx | 4 ++-- .../src/Uploader/Minimal/FileUploaderMinimal.tsx | 4 ++-- .../src/Uploader/Regular/FileUploaderRegular.tsx | 4 ++-- .../react-uploader/src/utils/getUserAgentIntegration.ts | 8 +++++--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/react-uploader/src/Uploader/Inline/FileUploaderInline.tsx b/packages/react-uploader/src/Uploader/Inline/FileUploaderInline.tsx index 486be67..ee24f3b 100644 --- a/packages/react-uploader/src/Uploader/Inline/FileUploaderInline.tsx +++ b/packages/react-uploader/src/Uploader/Inline/FileUploaderInline.tsx @@ -6,7 +6,7 @@ import { AdapterUploadCtxProvider } from "../core/AdapterUploadCtxProvider"; import type { TProps } from "../types"; import { getStyleSource } from "../default"; import { getCalcPropertyOfProps } from "../../utils/getCalcPropertyOfProps"; -import { getUserAgentIntegration } from "../../utils/getUserAgentIntegration"; +import { getUserAgentIntegration } from "../../utils/getUserAgentIntegration.ts"; LR.registerBlocks(LR); @@ -33,7 +33,7 @@ export const FileUploaderInline: FC = ({ return (
{/* @ts-ignore */} - + {/* @ts-ignore */} = ({ return (
{/* @ts-ignore */} - + {/* @ts-ignore */} = ({ return (
{/* @ts-ignore */} - + {/* @ts-ignore */} { - return `${name}/${version}/${pubkey} (JavaScript; React;)`; +const NAME_EXTENTION = "React-Uploader"; + +export const getUserAgentIntegration = () => { + return `${NAME_EXTENTION}/${version}`; };