@xhub-short/ui 0.1.0-beta.14 → 0.1.0-beta.15
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.
|
@@ -139,6 +139,7 @@ function DetailViewHeadlessBase({
|
|
|
139
139
|
time: Date.now()
|
|
140
140
|
};
|
|
141
141
|
setIsDragging(true);
|
|
142
|
+
onGestureLockRef.current?.(true);
|
|
142
143
|
},
|
|
143
144
|
[enableSwipeToClose]
|
|
144
145
|
);
|
|
@@ -196,7 +197,8 @@ function DetailViewHeadlessBase({
|
|
|
196
197
|
onComment,
|
|
197
198
|
onShare,
|
|
198
199
|
onBookmark,
|
|
199
|
-
onFollow
|
|
200
|
+
onFollow,
|
|
201
|
+
onGestureLock
|
|
200
202
|
},
|
|
201
203
|
states: {
|
|
202
204
|
isLiked,
|
|
@@ -214,6 +216,7 @@ function DetailViewHeadlessBase({
|
|
|
214
216
|
onShare,
|
|
215
217
|
onBookmark,
|
|
216
218
|
onFollow,
|
|
219
|
+
onGestureLock,
|
|
217
220
|
isLiked,
|
|
218
221
|
isBookmarked,
|
|
219
222
|
isFollowing
|
|
@@ -304,7 +307,7 @@ function DetailViewGallery({
|
|
|
304
307
|
enableZoom = true,
|
|
305
308
|
className
|
|
306
309
|
}) {
|
|
307
|
-
const { imagePost, currentImageIndex, setCurrentImageIndex } = useDetailViewContext();
|
|
310
|
+
const { imagePost, currentImageIndex, setCurrentImageIndex, actions } = useDetailViewContext();
|
|
308
311
|
return /* @__PURE__ */ jsx("div", { className: clsx2("sv-detail-view__gallery", className), children: /* @__PURE__ */ jsx(
|
|
309
312
|
ImageCarouselHeadless,
|
|
310
313
|
{
|
|
@@ -314,7 +317,12 @@ function DetailViewGallery({
|
|
|
314
317
|
showIndicators: imagePost.images.length > 1,
|
|
315
318
|
indicatorStyle: "dots",
|
|
316
319
|
enableZoom,
|
|
317
|
-
lazyLoad: false
|
|
320
|
+
lazyLoad: false,
|
|
321
|
+
onSwipeDirectionChange: (direction) => {
|
|
322
|
+
if (direction === "horizontal") {
|
|
323
|
+
actions.onGestureLock?.(true);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
318
326
|
}
|
|
319
327
|
) });
|
|
320
328
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DETAIL_VIEW_CSS, DetailViewActionButton, DetailViewActions, DetailViewAuthor, DetailViewBottomBar, DetailViewCaption, DetailViewCommentInput, DetailViewGallery, DetailViewHeadless, DetailViewIcons, DetailViewMusic, DetailViewStats, formatCount as formatDetailViewCount, useDetailViewContext } from '../../chunk-
|
|
1
|
+
export { DETAIL_VIEW_CSS, DetailViewActionButton, DetailViewActions, DetailViewAuthor, DetailViewBottomBar, DetailViewCaption, DetailViewCommentInput, DetailViewGallery, DetailViewHeadless, DetailViewIcons, DetailViewMusic, DetailViewStats, formatCount as formatDetailViewCount, useDetailViewContext } from '../../chunk-ZDJA2T66.js';
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { AUTHOR_INFO_CSS, AuthorAvatar, AuthorDescription, AuthorInfoContext, Au
|
|
|
18
18
|
export { BookmarkFilledIcon, BookmarkIcon, CloseIcon, CommentIcon, HeartFilledIcon, HeartIcon, MoreIcon, MusicIcon, PauseIcon, PlayIcon, PlusIcon, ShareIcon, UserCheckIcon, UserPlusIcon, VerifiedIcon, VolumeIcon, VolumeMutedIcon } from './chunk-ANCP53F3.js';
|
|
19
19
|
export { CLEAN_MODE_OVERLAY_CSS, CleanModeOverlayHeadless, injectCleanModeOverlayCSS } from './chunk-QUEJHA24.js';
|
|
20
20
|
export { COMMENT_SHEET_CSS, CommentInput, CommentItemComponent, CommentList, CommentSheet, CommentSheetContext, CommentSheetHeadless, SheetHeader, useCommentSheetContext, useOptionalCommentSheetContext } from './chunk-IC2KUU4V.js';
|
|
21
|
-
export { DETAIL_VIEW_CSS, DetailViewAuthor, DetailViewCaption, DetailViewGallery, DetailViewHeadless, DetailViewMusic, DetailViewStats, useDetailViewContext } from './chunk-
|
|
21
|
+
export { DETAIL_VIEW_CSS, DetailViewAuthor, DetailViewCaption, DetailViewGallery, DetailViewHeadless, DetailViewMusic, DetailViewStats, useDetailViewContext } from './chunk-ZDJA2T66.js';
|
|
22
22
|
export { IMAGE_CAROUSEL_CSS, ImageCarouselHeadless } from './chunk-GSNIZ6DF.js';
|
|
23
23
|
export { clsx, clsx2 as cn } from './chunk-EDWS2IPH.js';
|
|
24
24
|
export { formatCount, formatCountWithSeparators, parseFormattedCount } from './chunk-3XPJHUYL.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xhub-short/ui",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"tsup": "^8.3.0",
|
|
94
94
|
"typescript": "^5.7.0",
|
|
95
95
|
"vitest": "^2.1.0",
|
|
96
|
-
"@xhub-short/
|
|
97
|
-
"@xhub-short/
|
|
96
|
+
"@xhub-short/vitest-config": "0.1.0-beta.13",
|
|
97
|
+
"@xhub-short/tsconfig": "0.0.1-beta.2"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|
|
100
100
|
"build": "tsup",
|