@sendbird/uikit-message-template
Advanced tools
Comparing version 0.0.1-alpha.31 to 0.0.1-alpha.32
@@ -6,2 +6,8 @@ # Change Log | ||
## 0.0.1-alpha.32 (2023-05-16) | ||
### Bug Fixes | ||
- **NOTI-852:** Change image tag policy ([#42](https://github.com/sendbird/sendbird-uikit-core-ts/issues/42)) ([8714197](https://github.com/sendbird/sendbird-uikit-core-ts/commit/871419725563d969cb2dcaec4bc8349dc958b449)) | ||
## 0.0.1-alpha.31 (2023-05-09) | ||
@@ -8,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
import React, { FC } from 'react'; | ||
import React from 'react'; | ||
type Size = { | ||
@@ -18,4 +18,4 @@ width: number; | ||
} | ||
declare const SizeContextProvider: FC<React.PropsWithChildren>; | ||
declare const SizeContextProvider: ({ children }: React.PropsWithChildren<unknown>) => React.JSX.Element; | ||
declare const useSizeContext: () => SizeContextInterface; | ||
export { SizeContextProvider, useSizeContext }; |
@@ -10,3 +10,3 @@ import React from 'react'; | ||
renderer?: Renderer<ParsedProperties>; | ||
Container?: (props: React.PropsWithChildren) => React.ReactElement; | ||
Container?: (props: React.PropsWithChildren<unknown>) => React.ReactElement; | ||
UnknownMessage?: (props: { | ||
@@ -21,5 +21,5 @@ item: ComponentsUnion['properties']; | ||
export declare const createMessageTemplate: <T>(opts: MessageTemplateOptions<T>) => { | ||
MessageTemplate: ({ parentLayout, templateItems }: MessageTemplateProps) => JSX.Element; | ||
MessageTemplateBase: (props: MessageTemplateProps) => JSX.Element; | ||
MessageTemplate: ({ parentLayout, templateItems }: MessageTemplateProps) => React.JSX.Element; | ||
MessageTemplateBase: (props: MessageTemplateProps) => React.JSX.Element; | ||
}; | ||
export {}; |
import React from 'react'; | ||
import type { BasicProps, ComponentType, ComponentsUnion, GetProperties } from '../types/components'; | ||
type FC<Props, ParsedStyle> = (props: BasicProps<Props, ParsedStyle>) => React.ReactElement | null; | ||
type FuncComponent<Props, ParsedStyle> = (props: BasicProps<Props, ParsedStyle>) => React.ReactElement | null; | ||
type ComponentProperties<Type extends ComponentType> = GetProperties<Type, ComponentsUnion>; | ||
interface CreateRendererParams<ParsedStyle> { | ||
views?: { | ||
[component in ComponentType]?: FC<ComponentProperties<component>, ParsedStyle>; | ||
[component in ComponentType]?: FuncComponent<ComponentProperties<component>, ParsedStyle>; | ||
}; | ||
} | ||
export type Renderer<ParsedStyle> = { | ||
[component in ComponentType]: FC<ComponentProperties<component>, ParsedStyle>; | ||
[component in ComponentType]: FuncComponent<ComponentProperties<component>, ParsedStyle>; | ||
}; | ||
export declare function createRenderer<ParsedStyle = object | string>(params?: CreateRendererParams<ParsedStyle>): Renderer<ParsedStyle>; | ||
export {}; |
{ | ||
"name": "@sendbird/uikit-message-template", | ||
"version": "0.0.1-alpha.31", | ||
"version": "0.0.1-alpha.32", | ||
"publishConfig": { | ||
@@ -22,8 +22,8 @@ "registry": "https://registry.npmjs.org/", | ||
"devDependencies": { | ||
"@types/react": "^18.0.24" | ||
"@types/react": "^18.2.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0" | ||
"react": ">=16.8.6" | ||
}, | ||
"gitHead": "d73ee2fccf46b9d6a22be92518d25017c2a5f206" | ||
"gitHead": "4a25191ee80cdfaa00d2e75c72bff6376fde7e92" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
507703