@amityco/ulta-ui-kit 1.0.0-beta.33 → 1.0.0-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +939 -890
- package/dist/index.css +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1020 -971
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +2 -2
- package/readme.md +7 -1
package/dist/index.d.mts
CHANGED
|
@@ -16,6 +16,7 @@ type PostRendererProps = {
|
|
|
16
16
|
handleApprovePost?: () => void;
|
|
17
17
|
handleDeclinePost?: () => void;
|
|
18
18
|
handleClosePoll?: () => void;
|
|
19
|
+
handleUpdatePost?: (post: Amity.Post) => void;
|
|
19
20
|
poll?: Amity.Poll | null;
|
|
20
21
|
isPollClosed?: boolean;
|
|
21
22
|
hidePostTarget?: boolean;
|
|
@@ -32,6 +33,9 @@ type PostRendererConfigType = Record<ValueOf<typeof PostContentType> | string, (
|
|
|
32
33
|
interface UltaConfigContextProps {
|
|
33
34
|
newsCommunityId: string;
|
|
34
35
|
faqCommunityId: string;
|
|
36
|
+
defaultTab?: 'explore' | 'newsfeed';
|
|
37
|
+
termsAndConditionsUrl: string;
|
|
38
|
+
privacyAndPolicyUrl: string;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
interface UiKitProviderProps {
|
|
@@ -114,6 +118,7 @@ interface PostProps {
|
|
|
114
118
|
hidePostTarget?: boolean;
|
|
115
119
|
readonly?: boolean;
|
|
116
120
|
onDeleted?: (postId: string) => void;
|
|
121
|
+
onUpdated?: (post: Amity.Post) => void;
|
|
117
122
|
}
|
|
118
123
|
declare const _default$2: React.MemoExoticComponent<(props: PostProps) => React.JSX.Element>;
|
|
119
124
|
|
|
@@ -194,7 +199,8 @@ type Page = {
|
|
|
194
199
|
targetType?: string;
|
|
195
200
|
};
|
|
196
201
|
type ContextValue = {
|
|
197
|
-
page: Page;
|
|
202
|
+
page: Page | null;
|
|
203
|
+
pages: Page[];
|
|
198
204
|
onChangePage: (type: string) => void;
|
|
199
205
|
onClickCategory: (categoryId: string) => void;
|
|
200
206
|
onClickCommunity: (communityId: string) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ type PostRendererProps = {
|
|
|
16
16
|
handleApprovePost?: () => void;
|
|
17
17
|
handleDeclinePost?: () => void;
|
|
18
18
|
handleClosePoll?: () => void;
|
|
19
|
+
handleUpdatePost?: (post: Amity.Post) => void;
|
|
19
20
|
poll?: Amity.Poll | null;
|
|
20
21
|
isPollClosed?: boolean;
|
|
21
22
|
hidePostTarget?: boolean;
|
|
@@ -32,6 +33,9 @@ type PostRendererConfigType = Record<ValueOf<typeof PostContentType> | string, (
|
|
|
32
33
|
interface UltaConfigContextProps {
|
|
33
34
|
newsCommunityId: string;
|
|
34
35
|
faqCommunityId: string;
|
|
36
|
+
defaultTab?: 'explore' | 'newsfeed';
|
|
37
|
+
termsAndConditionsUrl: string;
|
|
38
|
+
privacyAndPolicyUrl: string;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
interface UiKitProviderProps {
|
|
@@ -114,6 +118,7 @@ interface PostProps {
|
|
|
114
118
|
hidePostTarget?: boolean;
|
|
115
119
|
readonly?: boolean;
|
|
116
120
|
onDeleted?: (postId: string) => void;
|
|
121
|
+
onUpdated?: (post: Amity.Post) => void;
|
|
117
122
|
}
|
|
118
123
|
declare const _default$2: React.MemoExoticComponent<(props: PostProps) => React.JSX.Element>;
|
|
119
124
|
|
|
@@ -194,7 +199,8 @@ type Page = {
|
|
|
194
199
|
targetType?: string;
|
|
195
200
|
};
|
|
196
201
|
type ContextValue = {
|
|
197
|
-
page: Page;
|
|
202
|
+
page: Page | null;
|
|
203
|
+
pages: Page[];
|
|
198
204
|
onChangePage: (type: string) => void;
|
|
199
205
|
onClickCategory: (categoryId: string) => void;
|
|
200
206
|
onClickCommunity: (communityId: string) => void;
|