@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/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;