File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
packages/react-uploader/src Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { AdapterUploadCtxProvider } from "../core/AdapterUploadCtxProvider";
6
6
import type { TProps } from "../types" ;
7
7
import { getStyleSource } from "../default" ;
8
8
import { getCalcPropertyOfProps } from "../../utils/getCalcPropertyOfProps" ;
9
- import { getUserAgentIntegration } from "../../utils/getUserAgentIntegration" ;
9
+ import { getUserAgentIntegration } from "../../utils/getUserAgentIntegration.ts " ;
10
10
11
11
LR . registerBlocks ( LR ) ;
12
12
@@ -33,7 +33,7 @@ export const FileUploaderInline: FC<TProps> = ({
33
33
return (
34
34
< div className = { className } >
35
35
{ /* @ts -ignore */ }
36
- < AdapterConfig userAgentIntegration = { getUserAgentIntegration ( config . pubkey ) } ctx-name = { CTX_NAME } { ...config } />
36
+ < AdapterConfig userAgentIntegration = { getUserAgentIntegration ( ) } ctx-name = { CTX_NAME } { ...config } />
37
37
{ /* @ts -ignore */ }
38
38
< AdapterUploadCtxProvider
39
39
ref = { refUploadCtxProvider }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { AdapterUploadCtxProvider } from "../core/AdapterUploadCtxProvider";
6
6
import type { TProps } from "../types" ;
7
7
import { getStyleSource } from "../default" ;
8
8
import { getCalcPropertyOfProps } from "../../utils/getCalcPropertyOfProps" ;
9
- import { getUserAgentIntegration } from "../../utils/getUserAgentIntegration" ;
9
+ import { getUserAgentIntegration } from "../../utils/getUserAgentIntegration.ts " ;
10
10
11
11
LR . registerBlocks ( LR ) ;
12
12
@@ -34,7 +34,7 @@ export const FileUploaderMinimal: FC<TProps> = ({
34
34
return (
35
35
< div className = { className } >
36
36
{ /* @ts -ignore */ }
37
- < AdapterConfig userAgentIntegration = { getUserAgentIntegration ( config . pubkey ) } ctx-name = { CTX_NAME } { ...config } />
37
+ < AdapterConfig userAgentIntegration = { getUserAgentIntegration ( ) } ctx-name = { CTX_NAME } { ...config } />
38
38
{ /* @ts -ignore */ }
39
39
< AdapterUploadCtxProvider
40
40
ref = { refUploadCtxProvider }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { getStyleSource } from "../default";
7
7
import type { TProps } from "../types" ;
8
8
9
9
import { getCalcPropertyOfProps } from "../../utils/getCalcPropertyOfProps" ;
10
- import { getUserAgentIntegration } from "../../utils/getUserAgentIntegration" ;
10
+ import { getUserAgentIntegration } from "../../utils/getUserAgentIntegration.ts " ;
11
11
12
12
LR . registerBlocks ( LR ) ;
13
13
@@ -35,7 +35,7 @@ export const FileUploaderRegular: FC<TProps> = ({
35
35
return (
36
36
< div className = { className } >
37
37
{ /* @ts -ignore */ }
38
- < AdapterConfig userAgentIntegration = { getUserAgentIntegration ( config . pubkey ) } ctx-name = { CTX_NAME } { ...config } />
38
+ < AdapterConfig userAgentIntegration = { getUserAgentIntegration ( ) } ctx-name = { CTX_NAME } { ...config } />
39
39
{ /* @ts -ignore */ }
40
40
< AdapterUploadCtxProvider
41
41
ref = { refUploadCtxProvider }
Original file line number Diff line number Diff line change 1
- import { version , name } from "../../package.json" ;
1
+ import { version } from "../../package.json" ;
2
2
3
- export const getUserAgentIntegration = ( pubkey : string ) => {
4
- return `${ name } /${ version } /${ pubkey } (JavaScript; React;)` ;
3
+ const NAME_EXTENTION = "React-Uploader" ;
4
+
5
+ export const getUserAgentIntegration = ( ) => {
6
+ return `${ NAME_EXTENTION } /${ version } ` ;
5
7
} ;
You can’t perform that action at this time.
0 commit comments