@amityco/ulta-ui-kit 1.0.0-alpha.22 → 1.0.0-alpha.24
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.js +957 -933
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1037 -1013
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -125,6 +125,7 @@ declare const enum PageTypes {
|
|
|
125
125
|
CommunityFeed = "communityfeed",
|
|
126
126
|
CommunityEdit = "communityedit",
|
|
127
127
|
UserEdit = "useredit",
|
|
128
|
+
PostDetail = "postdetail",
|
|
128
129
|
ViewStory = "viewstory",
|
|
129
130
|
DraftPage = "draftpage"
|
|
130
131
|
}
|
|
@@ -176,6 +177,11 @@ type Page = {
|
|
|
176
177
|
targetId: string;
|
|
177
178
|
targetType: Amity.StoryTargetType;
|
|
178
179
|
storyType: 'communityFeed' | 'globalFeed';
|
|
180
|
+
} | {
|
|
181
|
+
type: PageTypes.PostDetail;
|
|
182
|
+
communityId?: string;
|
|
183
|
+
targetId?: string;
|
|
184
|
+
targetType?: string;
|
|
179
185
|
};
|
|
180
186
|
type ContextValue = {
|
|
181
187
|
page: Page;
|
|
@@ -196,6 +202,7 @@ type ContextValue = {
|
|
|
196
202
|
okText: ReactNode;
|
|
197
203
|
onOk?: () => void;
|
|
198
204
|
} | null | undefined) => void;
|
|
205
|
+
onClickNoti: (targetId: string, targetType: string) => void;
|
|
199
206
|
};
|
|
200
207
|
declare const useNavigation: () => ContextValue;
|
|
201
208
|
|
package/dist/index.d.ts
CHANGED
|
@@ -125,6 +125,7 @@ declare const enum PageTypes {
|
|
|
125
125
|
CommunityFeed = "communityfeed",
|
|
126
126
|
CommunityEdit = "communityedit",
|
|
127
127
|
UserEdit = "useredit",
|
|
128
|
+
PostDetail = "postdetail",
|
|
128
129
|
ViewStory = "viewstory",
|
|
129
130
|
DraftPage = "draftpage"
|
|
130
131
|
}
|
|
@@ -176,6 +177,11 @@ type Page = {
|
|
|
176
177
|
targetId: string;
|
|
177
178
|
targetType: Amity.StoryTargetType;
|
|
178
179
|
storyType: 'communityFeed' | 'globalFeed';
|
|
180
|
+
} | {
|
|
181
|
+
type: PageTypes.PostDetail;
|
|
182
|
+
communityId?: string;
|
|
183
|
+
targetId?: string;
|
|
184
|
+
targetType?: string;
|
|
179
185
|
};
|
|
180
186
|
type ContextValue = {
|
|
181
187
|
page: Page;
|
|
@@ -196,6 +202,7 @@ type ContextValue = {
|
|
|
196
202
|
okText: ReactNode;
|
|
197
203
|
onOk?: () => void;
|
|
198
204
|
} | null | undefined) => void;
|
|
205
|
+
onClickNoti: (targetId: string, targetType: string) => void;
|
|
199
206
|
};
|
|
200
207
|
declare const useNavigation: () => ContextValue;
|
|
201
208
|
|