@amityco/ulta-ui-kit 1.0.0-alpha.23 → 1.0.0-alpha.25

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
@@ -125,8 +125,10 @@ declare const enum PageTypes {
125
125
  CommunityFeed = "communityfeed",
126
126
  CommunityEdit = "communityedit",
127
127
  UserEdit = "useredit",
128
+ PostDetail = "postdetail",
128
129
  ViewStory = "viewstory",
129
- DraftPage = "draftpage"
130
+ DraftPage = "draftpage",
131
+ MyCommunities = "mycommunities"
130
132
  }
131
133
 
132
134
  type AmityStoryMediaType$1 = {
@@ -176,6 +178,14 @@ type Page = {
176
178
  targetId: string;
177
179
  targetType: Amity.StoryTargetType;
178
180
  storyType: 'communityFeed' | 'globalFeed';
181
+ } | {
182
+ type: PageTypes.MyCommunities;
183
+ communityId?: string;
184
+ } | {
185
+ type: PageTypes.PostDetail;
186
+ communityId?: string;
187
+ targetId?: string;
188
+ targetType?: string;
179
189
  };
180
190
  type ContextValue = {
181
191
  page: Page;
@@ -196,6 +206,7 @@ type ContextValue = {
196
206
  okText: ReactNode;
197
207
  onOk?: () => void;
198
208
  } | null | undefined) => void;
209
+ onClickNoti: (targetId: string, targetType: string) => void;
199
210
  };
200
211
  declare const useNavigation: () => ContextValue;
201
212
 
package/dist/index.d.ts CHANGED
@@ -125,8 +125,10 @@ declare const enum PageTypes {
125
125
  CommunityFeed = "communityfeed",
126
126
  CommunityEdit = "communityedit",
127
127
  UserEdit = "useredit",
128
+ PostDetail = "postdetail",
128
129
  ViewStory = "viewstory",
129
- DraftPage = "draftpage"
130
+ DraftPage = "draftpage",
131
+ MyCommunities = "mycommunities"
130
132
  }
131
133
 
132
134
  type AmityStoryMediaType$1 = {
@@ -176,6 +178,14 @@ type Page = {
176
178
  targetId: string;
177
179
  targetType: Amity.StoryTargetType;
178
180
  storyType: 'communityFeed' | 'globalFeed';
181
+ } | {
182
+ type: PageTypes.MyCommunities;
183
+ communityId?: string;
184
+ } | {
185
+ type: PageTypes.PostDetail;
186
+ communityId?: string;
187
+ targetId?: string;
188
+ targetType?: string;
179
189
  };
180
190
  type ContextValue = {
181
191
  page: Page;
@@ -196,6 +206,7 @@ type ContextValue = {
196
206
  okText: ReactNode;
197
207
  onOk?: () => void;
198
208
  } | null | undefined) => void;
209
+ onClickNoti: (targetId: string, targetType: string) => void;
199
210
  };
200
211
  declare const useNavigation: () => ContextValue;
201
212