@xhub-short/ui 0.1.0-beta.8 → 1.0.0-beta.18
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/CommentSheet.css-DuBy01rU.d.ts +219 -0
- package/dist/VideoSlotPlayIndicator-DPs8Xt5C.d.ts +51 -0
- package/dist/chunk-3OB3OVYR.js +349 -0
- package/dist/chunk-4RIMQOBR.js +58 -0
- package/dist/chunk-5MKYDI4X.js +1 -0
- package/dist/chunk-5Y43HNRG.js +296 -0
- package/dist/chunk-7WXAQHJI.js +350 -0
- package/dist/chunk-BADA7OLG.js +564 -0
- package/dist/chunk-BEJAJFV6.js +191 -0
- package/dist/chunk-BNI7CYRI.js +334 -0
- package/dist/{chunk-UPCVSGWH.js → chunk-CAWE42LH.js} +5 -2
- package/dist/chunk-DGKMO3AE.js +717 -0
- package/dist/chunk-DR7KR7OT.js +103 -0
- package/dist/chunk-GSNIZ6DF.js +605 -0
- package/dist/chunk-HXQPEZRG.js +105 -0
- package/dist/chunk-IC2KUU4V.js +1264 -0
- package/dist/chunk-IWSBYOSS.js +91 -0
- package/dist/chunk-MFJS65C5.js +368 -0
- package/dist/{chunk-CXPNPSF7.js → chunk-NJXIYSDZ.js} +12 -1
- package/dist/{chunk-NRQXKZO3.js → chunk-OM4L7RE5.js} +12 -2
- package/dist/chunk-QCRRF76W.js +75 -0
- package/dist/chunk-QUEJHA24.js +508 -0
- package/dist/chunk-UYBQTE4M.js +337 -0
- package/dist/chunk-VJ744W5N.js +603 -0
- package/dist/chunk-VXW7AOGM.js +285 -0
- package/dist/{chunk-OQ7P5XC7.js → chunk-YB7AXTX7.js} +1 -1
- package/dist/components/ActionBar/index.d.ts +7 -2
- package/dist/components/ActionBar/index.js +1 -1
- package/dist/components/AdvanceMenu/index.d.ts +80 -0
- package/dist/components/AdvanceMenu/index.js +1 -0
- package/dist/components/ArticleSlot/index.d.ts +213 -0
- package/dist/components/ArticleSlot/index.js +1 -0
- package/dist/components/AuthorInfo/index.js +1 -1
- package/dist/components/BottomSheet/index.d.ts +87 -0
- package/dist/components/BottomSheet/index.js +1 -0
- package/dist/components/CleanModeOverlay/index.d.ts +60 -0
- package/dist/components/CleanModeOverlay/index.js +1 -0
- package/dist/components/CommentSheet/index.d.ts +155 -3
- package/dist/components/CommentSheet/index.js +1 -1
- package/dist/components/DetailView/index.d.ts +314 -0
- package/dist/components/DetailView/index.js +1 -0
- package/dist/components/ErrorBoundary/index.js +1 -1
- package/dist/components/{VideoFeed → Feed}/index.d.ts +64 -45
- package/dist/components/Feed/index.js +1 -0
- package/dist/components/ImageCarousel/index.d.ts +50 -0
- package/dist/components/ImageCarousel/index.js +1 -0
- package/dist/components/Playlist/index.d.ts +117 -0
- package/dist/components/Playlist/index.js +1 -0
- package/dist/components/ProgressBar/index.js +1 -1
- package/dist/components/QualityPicker/index.d.ts +35 -0
- package/dist/components/QualityPicker/index.js +1 -0
- package/dist/components/ReportSheet/index.d.ts +74 -0
- package/dist/components/ReportSheet/index.js +1 -0
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/SpeedPicker/index.d.ts +32 -0
- package/dist/components/SpeedPicker/index.js +1 -0
- package/dist/components/VideoInfo/index.d.ts +7 -3
- package/dist/components/VideoInfo/index.js +1 -1
- package/dist/components/VideoPlayer/index.js +1 -1
- package/dist/components/VideoSlot/index.d.ts +31 -68
- package/dist/components/VideoSlot/index.js +2 -1
- package/dist/components/VirtualSlider/index.js +1 -1
- package/dist/index.d.ts +74 -11
- package/dist/index.js +39 -15
- package/package.json +8 -4
- package/dist/CommentSheet.css-BD6XbpU2.d.ts +0 -207
- package/dist/chunk-EBAMBI3O.js +0 -571
- package/dist/chunk-K3CETRCY.js +0 -737
- package/dist/chunk-PGHLVKXS.js +0 -148
- package/dist/chunk-QF7O26KZ.js +0 -357
- package/dist/chunk-RKS7YA7Z.js +0 -562
- package/dist/chunk-T4RQWGRY.js +0 -1519
- package/dist/chunk-UXNIXHII.js +0 -2040
- package/dist/chunk-YWAPI7JO.js +0 -204
- package/dist/components/VideoFeed/index.js +0 -1
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
import { ImageCarouselHeadless } from './chunk-GSNIZ6DF.js';
|
|
2
|
+
import { clsx2 } from './chunk-EDWS2IPH.js';
|
|
3
|
+
import { injectComponentCSS } from './chunk-CAWE42LH.js';
|
|
4
|
+
import { createContext, memo, useInsertionEffect, useState, useRef, useEffect, useCallback, useMemo, useContext } from 'react';
|
|
5
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
// src/components/DetailView/DetailView.css.ts
|
|
8
|
+
var DETAIL_VIEW_CSS = `.sv-detail-view{position:fixed;inset:0;z-index:var(--sv-detail-view-z-index,1000);background:var(--sv-detail-view-bg,#000);overflow:hidden;touch-action:none}.sv-detail-view--entering{animation:sv-detail-view-enter .3s cubic-bezier(.32,.72,0,1)forwards}.sv-detail-view--exiting{animation:sv-detail-view-exit .3s cubic-bezier(.32,.72,0,1)forwards}.sv-detail-view--dragging{transition:none}@keyframes sv-detail-view-enter{from{opacity:0;transform:translateY(100%)scale(.9)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes sv-detail-view-exit{from{opacity:1;transform:translateY(0)scale(1)}to{opacity:0;transform:translateY(100%)scale(.9)}}.sv-detail-view__backdrop{position:absolute;inset:0;background:var(--sv-detail-view-backdrop-bg,rgba(0,0,0,.8));opacity:1;transition:opacity .3s ease}.sv-detail-view--exiting .sv-detail-view__backdrop{opacity:0}.sv-detail-view__container{position:absolute;inset:0;display:flex;flex-direction:column;will-change:transform}.sv-detail-view__header{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:var(--sv-detail-view-header-padding,12px 16px);background:var(--sv-detail-view-header-bg,rgba(0,0,0,.8));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.sv-detail-view__back-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--sv-detail-view-back-bg,rgba(255,255,255,.1));color:var(--sv-detail-view-back-color,#fff);cursor:pointer;transition:background .2s ease}.sv-detail-view__back-button:hover{background:var(--sv-detail-view-back-hover-bg,rgba(255,255,255,.2))}.sv-detail-view__back-button svg{width:24px;height:24px}.sv-detail-view__title{font-size:var(--sv-detail-view-title-font-size,16px);font-weight:600;color:var(--sv-detail-view-title-color,#fff)}.sv-detail-view__actions{display:flex;gap:8px}.sv-detail-view__drag-indicator{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:36px;height:5px;background:var(--sv-detail-view-drag-indicator-bg,rgba(255,255,255,.3));border-radius:3px;z-index:20}.sv-detail-view__scroll{flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;padding-bottom:70px}.sv-detail-view__content{min-height:100%}.sv-detail-view__gallery{position:relative;width:100%;aspect-ratio:1;background:var(--sv-detail-view-gallery-bg,#111);overflow:hidden}.sv-detail-view__gallery-image{width:100%;height:100%;object-fit:contain}.sv-detail-view__gallery-pagination{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:6px;padding:6px 12px;background:rgba(0,0,0,.5);border-radius:20px}.sv-detail-view__gallery-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.5);border:0;padding:0;cursor:pointer;transition:all .2s ease}.sv-detail-view__gallery-dot--active{background:#fff;transform:scale(1.2)}.sv-detail-view__author{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--sv-detail-view-border-color,rgba(255,255,255,.1))}.sv-detail-view__author-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover}.sv-detail-view__author-info{flex:1}.sv-detail-view__author-name{font-size:15px;font-weight:600;color:var(--sv-detail-view-text-color,#fff)}.sv-detail-view__author-date{font-size:13px;color:var(--sv-detail-view-secondary-color,rgba(255,255,255,.6));margin-top:2px}.sv-detail-view__follow-button{padding:8px 20px;background:var(--sv-detail-view-follow-bg,#fe2c55);border:0;border-radius:4px;font-size:14px;font-weight:600;color:#fff;cursor:pointer;transition:opacity .2s ease}.sv-detail-view__follow-button:hover{opacity:.9}.sv-detail-view__follow-button--following{background:var(--sv-detail-view-following-bg,rgba(255,255,255,.1));color:var(--sv-detail-view-following-color,#fff)}.sv-detail-view__caption{padding:16px;font-size:var(--sv-detail-view-caption-font-size,15px);line-height:1.5;color:var(--sv-detail-view-text-color,#fff);white-space:pre-wrap;word-break:break-word}.sv-detail-view__hashtag{color:var(--sv-detail-view-hashtag-color,#4dabff);cursor:pointer}.sv-detail-view__hashtag:hover{text-decoration:underline}.sv-detail-view__stats{display:flex;gap:24px;padding:16px 0;border-top:1px solid var(--sv-detail-view-border-color,rgba(255,255,255,.1))}.sv-detail-view__stat{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--sv-detail-view-secondary-color,rgba(255,255,255,.6))}.sv-detail-view__stat-value{font-weight:600;color:var(--sv-detail-view-text-color,#fff)}.sv-detail-view__action-bar{position:sticky;bottom:0;display:flex;justify-content:space-around;padding:12px 16px;background:var(--sv-detail-view-action-bar-bg,rgba(0,0,0,.9));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--sv-detail-view-border-color,rgba(255,255,255,.1))}.sv-detail-view__action{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 16px;border:0;background:transparent;color:var(--sv-detail-view-action-color,#fff);cursor:pointer;transition:opacity .2s ease}.sv-detail-view__action:hover{opacity:.8}.sv-detail-view__action--active{color:var(--sv-detail-view-action-active-color,#fe2c55)}.sv-detail-view__action svg{width:24px;height:24px}.sv-detail-view__action-label{font-size:12px}.sv-detail-view__music{display:flex;align-items:center;gap:12px;padding:12px;margin:0 16px 16px;background:var(--sv-detail-view-music-bg,rgba(255,255,255,.05));border-radius:8px;border:0;width:calc(100% - 32px);cursor:pointer;text-align:left}.sv-detail-view__music-cover{width:48px;height:48px;border-radius:4px;object-fit:cover}.sv-detail-view__music-info{flex:1;overflow:hidden}.sv-detail-view__music-title{font-size:14px;font-weight:500;color:var(--sv-detail-view-text-color,#fff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sv-detail-view__music-artist{font-size:12px;color:var(--sv-detail-view-secondary-color,rgba(255,255,255,.6));margin-top:2px}.sv-detail-view__music-icon{width:24px;height:24px;color:var(--sv-detail-view-secondary-color,rgba(255,255,255,.6))}.sv-detail-view__header-author{display:flex;align-items:center;gap:10px;flex:1;min-width:0;margin-left:12px}.sv-detail-view__header-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}.sv-detail-view__header-name{font-size:15px;font-weight:600;color:var(--sv-detail-view-text-color,#fff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sv-detail-view__follow-btn{padding:6px 16px;font-size:13px;font-weight:600;border:0;border-radius:4px;background:var(--sv-detail-view-follow-bg,#fe2c55);color:#fff;cursor:pointer;transition:background .2s ease,opacity .2s ease;flex-shrink:0}.sv-detail-view__follow-btn:hover{opacity:.9}.sv-detail-view__follow-btn--following{background:var(--sv-detail-view-following-bg,rgba(255,255,255,.12));color:var(--sv-detail-view-text-color,#fff)}.sv-detail-view__bottom-bar{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;gap:8px;padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom));background:var(--sv-detail-view-bottom-bar-bg,rgba(0,0,0,.95));border-top:1px solid var(--sv-detail-view-border-color,rgba(255,255,255,.1));z-index:20}.sv-detail-view__comment-input{flex:1;display:flex;align-items:center;background:var(--sv-detail-view-input-bg,rgba(255,255,255,.08));border-radius:18px;min-width:0;overflow:hidden}.sv-detail-view__bottom-bar .sv-detail-view__comment-input input,.sv-detail-view__comment-field,input.sv-detail-view__comment-field{flex:1;width:100%;height:auto;padding:10px 14px;margin:0;border:0;border-radius:0;background:transparent;background-color:transparent;font-family:inherit;font-size:14px;line-height:1.4;color:var(--sv-detail-view-text-color,#fff);outline:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.sv-detail-view__bottom-bar .sv-detail-view__comment-input input::placeholder,.sv-detail-view__comment-field::placeholder,input.sv-detail-view__comment-field::placeholder{color:var(--sv-detail-view-placeholder-color,rgba(255,255,255,.5));opacity:1}.sv-detail-view__bottom-bar .sv-detail-view__comment-input input:focus,.sv-detail-view__comment-field:focus,input.sv-detail-view__comment-field:focus{outline:none;box-shadow:none;border:0}.sv-detail-view__bottom-actions{display:flex;align-items:center;gap:2px;flex-shrink:0}.sv-detail-view__action-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:40px;padding:4px 6px;background:0 0;border:0;color:var(--sv-detail-view-text-color,#fff);cursor:pointer;transition:transform .15s ease,color .15s ease}.sv-detail-view__action-btn:hover{transform:scale(1.05)}.sv-detail-view__action-btn:active{transform:scale(.95)}.sv-detail-view__action-btn--active{color:var(--sv-detail-view-active-color,#fe2c55)}.sv-detail-view__action-btn svg{width:22px;height:22px}.sv-detail-view__action-count{font-size:11px;margin-top:2px;color:var(--sv-detail-view-secondary-color,rgba(255,255,255,.7))}.sv-detail-view__action-btn--active .sv-detail-view__action-count{color:var(--sv-detail-view-active-color,#fe2c55)}.sv-detail-view:focus-visible{outline:2px solid var(--sv-detail-view-focus-color,#4dabff);outline-offset:-2px}.sv-detail-view__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}`;
|
|
9
|
+
var cssInjected = false;
|
|
10
|
+
function injectDetailViewCSS() {
|
|
11
|
+
if (cssInjected) return void 0;
|
|
12
|
+
cssInjected = true;
|
|
13
|
+
return injectComponentCSS("detail-view", DETAIL_VIEW_CSS);
|
|
14
|
+
}
|
|
15
|
+
var DetailViewContext = createContext(null);
|
|
16
|
+
function useDetailViewContext() {
|
|
17
|
+
const context = useContext(DetailViewContext);
|
|
18
|
+
if (!context) {
|
|
19
|
+
throw new Error("useDetailViewContext must be used within DetailViewHeadless");
|
|
20
|
+
}
|
|
21
|
+
return context;
|
|
22
|
+
}
|
|
23
|
+
function BackIcon() {
|
|
24
|
+
return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx("path", { d: "M19 12H5M12 19l-7-7 7-7" }) });
|
|
25
|
+
}
|
|
26
|
+
function HeartIcon({ filled = false }) {
|
|
27
|
+
return filled ? /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "#fe2c55", children: /* @__PURE__ */ jsx("path", { d: "M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" }) }) : /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" }) });
|
|
28
|
+
}
|
|
29
|
+
function CommentIcon() {
|
|
30
|
+
return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx("path", { d: "M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z" }) });
|
|
31
|
+
}
|
|
32
|
+
function BookmarkIcon({ filled = false }) {
|
|
33
|
+
return filled ? /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ jsx("path", { d: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z" }) }) : /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx("path", { d: "M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z" }) });
|
|
34
|
+
}
|
|
35
|
+
function ShareIcon() {
|
|
36
|
+
return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx("path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8M16 6l-4-4-4 4M12 2v13" }) });
|
|
37
|
+
}
|
|
38
|
+
var DEFAULT_ANIMATION_DURATION = 300;
|
|
39
|
+
var DEFAULT_SWIPE_THRESHOLD = 0.3;
|
|
40
|
+
function formatCount(count) {
|
|
41
|
+
if (count >= 1e6) {
|
|
42
|
+
return `${(count / 1e6).toFixed(1)}M`;
|
|
43
|
+
}
|
|
44
|
+
if (count >= 1e3) {
|
|
45
|
+
return `${(count / 1e3).toFixed(1)}K`;
|
|
46
|
+
}
|
|
47
|
+
return count.toString();
|
|
48
|
+
}
|
|
49
|
+
function DetailViewHeadlessBase({
|
|
50
|
+
isOpen,
|
|
51
|
+
onClose,
|
|
52
|
+
article,
|
|
53
|
+
initialImageIndex = 0,
|
|
54
|
+
animationDuration = DEFAULT_ANIMATION_DURATION,
|
|
55
|
+
enableSwipeToClose = true,
|
|
56
|
+
swipeCloseThreshold = DEFAULT_SWIPE_THRESHOLD,
|
|
57
|
+
headerTitle = "Post",
|
|
58
|
+
showDragIndicator = false,
|
|
59
|
+
// Action states
|
|
60
|
+
isLiked = false,
|
|
61
|
+
isBookmarked = false,
|
|
62
|
+
isFollowing = false,
|
|
63
|
+
// Action callbacks
|
|
64
|
+
onLike,
|
|
65
|
+
onComment,
|
|
66
|
+
onShare,
|
|
67
|
+
onBookmark,
|
|
68
|
+
onFollow,
|
|
69
|
+
// Bottom bar customization
|
|
70
|
+
renderBottomBar,
|
|
71
|
+
hideBottomBar = false,
|
|
72
|
+
onGestureLock,
|
|
73
|
+
className,
|
|
74
|
+
children
|
|
75
|
+
}) {
|
|
76
|
+
useInsertionEffect(() => {
|
|
77
|
+
return injectDetailViewCSS();
|
|
78
|
+
}, []);
|
|
79
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
80
|
+
const [isAnimating, setIsAnimating] = useState(false);
|
|
81
|
+
const [viewState, setViewState] = useState("entering");
|
|
82
|
+
const [currentImageIndex, setCurrentImageIndex] = useState(initialImageIndex);
|
|
83
|
+
const [dragOffset, setDragOffset] = useState(0);
|
|
84
|
+
const [isDragging, setIsDragging] = useState(false);
|
|
85
|
+
const dragStartRef = useRef(null);
|
|
86
|
+
const containerRef = useRef(null);
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
if (isOpen && !isVisible) {
|
|
89
|
+
setIsVisible(true);
|
|
90
|
+
setIsAnimating(true);
|
|
91
|
+
setViewState("entering");
|
|
92
|
+
setCurrentImageIndex(initialImageIndex);
|
|
93
|
+
const timer = setTimeout(() => {
|
|
94
|
+
setViewState("visible");
|
|
95
|
+
setIsAnimating(false);
|
|
96
|
+
}, animationDuration);
|
|
97
|
+
return () => clearTimeout(timer);
|
|
98
|
+
}
|
|
99
|
+
if (!isOpen && isVisible) {
|
|
100
|
+
setIsAnimating(true);
|
|
101
|
+
setViewState("exiting");
|
|
102
|
+
const timer = setTimeout(() => {
|
|
103
|
+
setIsVisible(false);
|
|
104
|
+
setIsAnimating(false);
|
|
105
|
+
setViewState("entering");
|
|
106
|
+
setDragOffset(0);
|
|
107
|
+
}, animationDuration);
|
|
108
|
+
return () => clearTimeout(timer);
|
|
109
|
+
}
|
|
110
|
+
return void 0;
|
|
111
|
+
}, [isOpen, isVisible, animationDuration, initialImageIndex]);
|
|
112
|
+
const onGestureLockRef = useRef(onGestureLock);
|
|
113
|
+
useEffect(() => {
|
|
114
|
+
onGestureLockRef.current = onGestureLock;
|
|
115
|
+
}, [onGestureLock]);
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
if (isVisible) {
|
|
118
|
+
const originalOverflow = document.body.style.overflow;
|
|
119
|
+
document.body.style.overflow = "hidden";
|
|
120
|
+
onGestureLockRef.current?.(true);
|
|
121
|
+
return () => {
|
|
122
|
+
document.body.style.overflow = originalOverflow;
|
|
123
|
+
onGestureLockRef.current?.(false);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
return void 0;
|
|
127
|
+
}, [isVisible]);
|
|
128
|
+
const handleClose = useCallback(() => {
|
|
129
|
+
onClose();
|
|
130
|
+
}, [onClose]);
|
|
131
|
+
const handlePointerDown = useCallback(
|
|
132
|
+
(e) => {
|
|
133
|
+
if (!enableSwipeToClose) return;
|
|
134
|
+
const target = e.target;
|
|
135
|
+
const isInteractive = target.tagName === "BUTTON" || target.tagName === "A" || target.tagName === "INPUT" || target.closest("button") || target.closest("a") || target.closest('[role="button"]');
|
|
136
|
+
if (isInteractive) return;
|
|
137
|
+
dragStartRef.current = {
|
|
138
|
+
y: e.clientY,
|
|
139
|
+
time: Date.now()
|
|
140
|
+
};
|
|
141
|
+
setIsDragging(true);
|
|
142
|
+
onGestureLockRef.current?.(true);
|
|
143
|
+
},
|
|
144
|
+
[enableSwipeToClose]
|
|
145
|
+
);
|
|
146
|
+
const handlePointerMove = useCallback(
|
|
147
|
+
(e) => {
|
|
148
|
+
if (!isDragging || !dragStartRef.current) return;
|
|
149
|
+
const dy = e.clientY - dragStartRef.current.y;
|
|
150
|
+
if (dy > 0) {
|
|
151
|
+
setDragOffset(dy);
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
[isDragging]
|
|
155
|
+
);
|
|
156
|
+
const handlePointerUp = useCallback(() => {
|
|
157
|
+
if (!isDragging || !dragStartRef.current) return;
|
|
158
|
+
const container = containerRef.current;
|
|
159
|
+
if (!container) {
|
|
160
|
+
setIsDragging(false);
|
|
161
|
+
setDragOffset(0);
|
|
162
|
+
dragStartRef.current = null;
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
const containerHeight = container.offsetHeight;
|
|
166
|
+
const threshold = containerHeight * swipeCloseThreshold;
|
|
167
|
+
const velocity = dragOffset / (Date.now() - dragStartRef.current.time);
|
|
168
|
+
if (dragOffset > threshold || velocity > 0.5) {
|
|
169
|
+
handleClose();
|
|
170
|
+
}
|
|
171
|
+
setIsDragging(false);
|
|
172
|
+
setDragOffset(0);
|
|
173
|
+
dragStartRef.current = null;
|
|
174
|
+
}, [isDragging, dragOffset, swipeCloseThreshold, handleClose]);
|
|
175
|
+
const stopClickPropagation = useCallback((e) => {
|
|
176
|
+
e.stopPropagation();
|
|
177
|
+
}, []);
|
|
178
|
+
useEffect(() => {
|
|
179
|
+
if (!isVisible) return;
|
|
180
|
+
const handleKeyDown = (e) => {
|
|
181
|
+
if (e.key === "Escape") {
|
|
182
|
+
handleClose();
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
186
|
+
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
187
|
+
}, [isVisible, handleClose]);
|
|
188
|
+
const contextValue = useMemo(
|
|
189
|
+
() => ({
|
|
190
|
+
article,
|
|
191
|
+
currentImageIndex,
|
|
192
|
+
setCurrentImageIndex,
|
|
193
|
+
close: handleClose,
|
|
194
|
+
isAnimating,
|
|
195
|
+
actions: {
|
|
196
|
+
onLike,
|
|
197
|
+
onComment,
|
|
198
|
+
onShare,
|
|
199
|
+
onBookmark,
|
|
200
|
+
onFollow,
|
|
201
|
+
onGestureLock
|
|
202
|
+
},
|
|
203
|
+
states: {
|
|
204
|
+
isLiked,
|
|
205
|
+
isBookmarked,
|
|
206
|
+
isFollowing
|
|
207
|
+
}
|
|
208
|
+
}),
|
|
209
|
+
[
|
|
210
|
+
article,
|
|
211
|
+
currentImageIndex,
|
|
212
|
+
handleClose,
|
|
213
|
+
isAnimating,
|
|
214
|
+
onLike,
|
|
215
|
+
onComment,
|
|
216
|
+
onShare,
|
|
217
|
+
onBookmark,
|
|
218
|
+
onFollow,
|
|
219
|
+
onGestureLock,
|
|
220
|
+
isLiked,
|
|
221
|
+
isBookmarked,
|
|
222
|
+
isFollowing
|
|
223
|
+
]
|
|
224
|
+
);
|
|
225
|
+
if (!isVisible) return null;
|
|
226
|
+
const containerStyle = isDragging ? {
|
|
227
|
+
transform: `translateY(${dragOffset}px)`,
|
|
228
|
+
opacity: 1 - dragOffset / (containerRef.current?.offsetHeight ?? 1) / 2
|
|
229
|
+
} : void 0;
|
|
230
|
+
return /* @__PURE__ */ jsx(DetailViewContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs(
|
|
231
|
+
"div",
|
|
232
|
+
{
|
|
233
|
+
ref: containerRef,
|
|
234
|
+
className: clsx2(
|
|
235
|
+
"sv-detail-view",
|
|
236
|
+
viewState === "entering" && "sv-detail-view--entering",
|
|
237
|
+
viewState === "exiting" && "sv-detail-view--exiting",
|
|
238
|
+
isDragging && "sv-detail-view--dragging",
|
|
239
|
+
className
|
|
240
|
+
),
|
|
241
|
+
"aria-modal": "true",
|
|
242
|
+
"aria-label": `Detail view for article by ${article.author?.name ?? "Unknown"}`,
|
|
243
|
+
onClick: stopClickPropagation,
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ jsx("div", { className: "sv-detail-view__backdrop", onClick: handleClose }),
|
|
246
|
+
/* @__PURE__ */ jsxs(
|
|
247
|
+
"div",
|
|
248
|
+
{
|
|
249
|
+
className: "sv-detail-view__container",
|
|
250
|
+
style: containerStyle,
|
|
251
|
+
onPointerDown: handlePointerDown,
|
|
252
|
+
onPointerMove: handlePointerMove,
|
|
253
|
+
onPointerUp: handlePointerUp,
|
|
254
|
+
onPointerLeave: handlePointerUp,
|
|
255
|
+
children: [
|
|
256
|
+
showDragIndicator && /* @__PURE__ */ jsx("div", { className: "sv-detail-view__drag-indicator" }),
|
|
257
|
+
/* @__PURE__ */ jsxs("header", { className: "sv-detail-view__header", children: [
|
|
258
|
+
/* @__PURE__ */ jsx(
|
|
259
|
+
"button",
|
|
260
|
+
{
|
|
261
|
+
type: "button",
|
|
262
|
+
className: "sv-detail-view__back-button",
|
|
263
|
+
onClick: (e) => {
|
|
264
|
+
e.stopPropagation();
|
|
265
|
+
handleClose();
|
|
266
|
+
},
|
|
267
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
268
|
+
"aria-label": "Back",
|
|
269
|
+
children: /* @__PURE__ */ jsx(BackIcon, {})
|
|
270
|
+
}
|
|
271
|
+
),
|
|
272
|
+
/* @__PURE__ */ jsxs("div", { className: "sv-detail-view__header-author", children: [
|
|
273
|
+
article.author?.avatar && /* @__PURE__ */ jsx(
|
|
274
|
+
"img",
|
|
275
|
+
{
|
|
276
|
+
src: article.author.avatar,
|
|
277
|
+
alt: article.author.name,
|
|
278
|
+
className: "sv-detail-view__header-avatar"
|
|
279
|
+
}
|
|
280
|
+
),
|
|
281
|
+
/* @__PURE__ */ jsx("span", { className: "sv-detail-view__header-name", children: article.author?.name ?? headerTitle })
|
|
282
|
+
] })
|
|
283
|
+
] }),
|
|
284
|
+
/* @__PURE__ */ jsx("div", { className: "sv-detail-view__scroll", children: /* @__PURE__ */ jsx("div", { className: "sv-detail-view__content", children }) }),
|
|
285
|
+
!hideBottomBar && (renderBottomBar ? renderBottomBar() : /* @__PURE__ */ jsx(
|
|
286
|
+
DetailViewDefaultBottomBar,
|
|
287
|
+
{
|
|
288
|
+
article,
|
|
289
|
+
isLiked,
|
|
290
|
+
isBookmarked,
|
|
291
|
+
onLike,
|
|
292
|
+
onComment,
|
|
293
|
+
onShare,
|
|
294
|
+
onBookmark
|
|
295
|
+
}
|
|
296
|
+
))
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
)
|
|
300
|
+
]
|
|
301
|
+
}
|
|
302
|
+
) });
|
|
303
|
+
}
|
|
304
|
+
var DetailViewHeadless = memo(DetailViewHeadlessBase);
|
|
305
|
+
DetailViewHeadless.displayName = "DetailViewHeadless";
|
|
306
|
+
function DetailViewGallery({
|
|
307
|
+
enableZoom = true,
|
|
308
|
+
className
|
|
309
|
+
}) {
|
|
310
|
+
const { article, currentImageIndex, setCurrentImageIndex, actions } = useDetailViewContext();
|
|
311
|
+
return /* @__PURE__ */ jsx("div", { className: clsx2("sv-detail-view__gallery", className), children: /* @__PURE__ */ jsx(
|
|
312
|
+
ImageCarouselHeadless,
|
|
313
|
+
{
|
|
314
|
+
images: article.images,
|
|
315
|
+
currentIndex: currentImageIndex,
|
|
316
|
+
onIndexChange: setCurrentImageIndex,
|
|
317
|
+
showIndicators: article.images.length > 1,
|
|
318
|
+
indicatorStyle: "dots",
|
|
319
|
+
enableZoom,
|
|
320
|
+
lazyLoad: false,
|
|
321
|
+
onSwipeDirectionChange: (direction) => {
|
|
322
|
+
if (direction === "horizontal") {
|
|
323
|
+
actions.onGestureLock?.(true);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
) });
|
|
328
|
+
}
|
|
329
|
+
function DetailViewAuthor({
|
|
330
|
+
isFollowing = false,
|
|
331
|
+
onFollowClick,
|
|
332
|
+
showFollowButton = true,
|
|
333
|
+
formatDate = (date) => new Date(date).toLocaleDateString(),
|
|
334
|
+
followLabel = "Follow",
|
|
335
|
+
followingLabel = "Following",
|
|
336
|
+
className
|
|
337
|
+
}) {
|
|
338
|
+
const { article } = useDetailViewContext();
|
|
339
|
+
const author = article.author;
|
|
340
|
+
if (!author) return null;
|
|
341
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx2("sv-detail-view__author", className), children: [
|
|
342
|
+
author.avatar && /* @__PURE__ */ jsx("img", { src: author.avatar, alt: author.name, className: "sv-detail-view__author-avatar" }),
|
|
343
|
+
/* @__PURE__ */ jsxs("div", { className: "sv-detail-view__author-info", children: [
|
|
344
|
+
/* @__PURE__ */ jsx("div", { className: "sv-detail-view__author-name", children: author.name }),
|
|
345
|
+
article.createdAt && /* @__PURE__ */ jsx("div", { className: "sv-detail-view__author-date", children: formatDate(article.createdAt) })
|
|
346
|
+
] }),
|
|
347
|
+
showFollowButton && /* @__PURE__ */ jsx(
|
|
348
|
+
"button",
|
|
349
|
+
{
|
|
350
|
+
type: "button",
|
|
351
|
+
className: clsx2(
|
|
352
|
+
"sv-detail-view__follow-button",
|
|
353
|
+
isFollowing && "sv-detail-view__follow-button--following"
|
|
354
|
+
),
|
|
355
|
+
onClick: onFollowClick,
|
|
356
|
+
children: isFollowing ? followingLabel : followLabel
|
|
357
|
+
}
|
|
358
|
+
)
|
|
359
|
+
] });
|
|
360
|
+
}
|
|
361
|
+
function DetailViewCaption({
|
|
362
|
+
renderHashtag,
|
|
363
|
+
className
|
|
364
|
+
}) {
|
|
365
|
+
const { article } = useDetailViewContext();
|
|
366
|
+
if (!article.caption) return null;
|
|
367
|
+
const parts = article.caption.split(/(#\w+)/g);
|
|
368
|
+
return /* @__PURE__ */ jsx("div", { className: clsx2("sv-detail-view__caption", className), children: parts.map((part, index) => {
|
|
369
|
+
if (part.startsWith("#")) {
|
|
370
|
+
return renderHashtag ? renderHashtag(part) : (
|
|
371
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
|
|
372
|
+
/* @__PURE__ */ jsx("span", { className: "sv-detail-view__hashtag", children: part }, index)
|
|
373
|
+
);
|
|
374
|
+
}
|
|
375
|
+
return part;
|
|
376
|
+
}) });
|
|
377
|
+
}
|
|
378
|
+
function DetailViewStats({
|
|
379
|
+
formatNumber = (n) => n.toLocaleString(),
|
|
380
|
+
labels = {},
|
|
381
|
+
className
|
|
382
|
+
}) {
|
|
383
|
+
const { article } = useDetailViewContext();
|
|
384
|
+
const stats = article.stats;
|
|
385
|
+
const { likes = "likes", comments = "comments", shares = "shares" } = labels;
|
|
386
|
+
return /* @__PURE__ */ jsxs("div", { className: clsx2("sv-detail-view__stats", className), children: [
|
|
387
|
+
stats.likes !== void 0 && /* @__PURE__ */ jsxs("div", { className: "sv-detail-view__stat", children: [
|
|
388
|
+
/* @__PURE__ */ jsx("span", { className: "sv-detail-view__stat-value", children: formatNumber(stats.likes) }),
|
|
389
|
+
/* @__PURE__ */ jsx("span", { children: likes })
|
|
390
|
+
] }),
|
|
391
|
+
stats.comments !== void 0 && /* @__PURE__ */ jsxs("div", { className: "sv-detail-view__stat", children: [
|
|
392
|
+
/* @__PURE__ */ jsx("span", { className: "sv-detail-view__stat-value", children: formatNumber(stats.comments) }),
|
|
393
|
+
/* @__PURE__ */ jsx("span", { children: comments })
|
|
394
|
+
] }),
|
|
395
|
+
stats.shares !== void 0 && /* @__PURE__ */ jsxs("div", { className: "sv-detail-view__stat", children: [
|
|
396
|
+
/* @__PURE__ */ jsx("span", { className: "sv-detail-view__stat-value", children: formatNumber(stats.shares) }),
|
|
397
|
+
/* @__PURE__ */ jsx("span", { children: shares })
|
|
398
|
+
] })
|
|
399
|
+
] });
|
|
400
|
+
}
|
|
401
|
+
function DetailViewMusic({
|
|
402
|
+
music,
|
|
403
|
+
isPlaying = false,
|
|
404
|
+
onClick,
|
|
405
|
+
className
|
|
406
|
+
}) {
|
|
407
|
+
if (!music) return null;
|
|
408
|
+
return /* @__PURE__ */ jsxs("button", { type: "button", className: clsx2("sv-detail-view__music", className), onClick, children: [
|
|
409
|
+
music.cover && /* @__PURE__ */ jsx("img", { src: music.cover, alt: music.title, className: "sv-detail-view__music-cover" }),
|
|
410
|
+
/* @__PURE__ */ jsxs("div", { className: "sv-detail-view__music-info", children: [
|
|
411
|
+
/* @__PURE__ */ jsx("div", { className: "sv-detail-view__music-title", children: music.title }),
|
|
412
|
+
/* @__PURE__ */ jsx("div", { className: "sv-detail-view__music-artist", children: music.artist })
|
|
413
|
+
] }),
|
|
414
|
+
/* @__PURE__ */ jsx(
|
|
415
|
+
"svg",
|
|
416
|
+
{
|
|
417
|
+
"aria-hidden": "true",
|
|
418
|
+
className: "sv-detail-view__music-icon",
|
|
419
|
+
viewBox: "0 0 24 24",
|
|
420
|
+
fill: "currentColor",
|
|
421
|
+
children: isPlaying ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
422
|
+
/* @__PURE__ */ jsx("rect", { x: "6", y: "4", width: "4", height: "16" }),
|
|
423
|
+
/* @__PURE__ */ jsx("rect", { x: "14", y: "4", width: "4", height: "16" })
|
|
424
|
+
] }) : /* @__PURE__ */ jsx("path", { d: "M8 5v14l11-7z" })
|
|
425
|
+
}
|
|
426
|
+
)
|
|
427
|
+
] });
|
|
428
|
+
}
|
|
429
|
+
function DetailViewDefaultBottomBar({
|
|
430
|
+
article,
|
|
431
|
+
isLiked,
|
|
432
|
+
isBookmarked,
|
|
433
|
+
onLike,
|
|
434
|
+
onComment,
|
|
435
|
+
onShare,
|
|
436
|
+
onBookmark
|
|
437
|
+
}) {
|
|
438
|
+
return /* @__PURE__ */ jsxs(DetailViewBottomBar, { children: [
|
|
439
|
+
/* @__PURE__ */ jsx(DetailViewCommentInput, { placeholder: "Add a comment..." }),
|
|
440
|
+
/* @__PURE__ */ jsxs(DetailViewActions, { children: [
|
|
441
|
+
/* @__PURE__ */ jsx(
|
|
442
|
+
DetailViewActionButton,
|
|
443
|
+
{
|
|
444
|
+
type: "like",
|
|
445
|
+
isActive: isLiked,
|
|
446
|
+
count: article.stats.likes,
|
|
447
|
+
onClick: onLike
|
|
448
|
+
}
|
|
449
|
+
),
|
|
450
|
+
/* @__PURE__ */ jsx(DetailViewActionButton, { type: "comment", count: article.stats.comments, onClick: onComment }),
|
|
451
|
+
/* @__PURE__ */ jsx(DetailViewActionButton, { type: "bookmark", isActive: isBookmarked, onClick: onBookmark }),
|
|
452
|
+
/* @__PURE__ */ jsx(DetailViewActionButton, { type: "share", count: article.stats.shares, onClick: onShare })
|
|
453
|
+
] })
|
|
454
|
+
] });
|
|
455
|
+
}
|
|
456
|
+
function DetailViewBottomBar({
|
|
457
|
+
children,
|
|
458
|
+
className
|
|
459
|
+
}) {
|
|
460
|
+
return /* @__PURE__ */ jsx(
|
|
461
|
+
"footer",
|
|
462
|
+
{
|
|
463
|
+
className: clsx2("sv-detail-view__bottom-bar", className),
|
|
464
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
465
|
+
children
|
|
466
|
+
}
|
|
467
|
+
);
|
|
468
|
+
}
|
|
469
|
+
function DetailViewCommentInput({
|
|
470
|
+
placeholder = "Add a comment...",
|
|
471
|
+
onSubmit,
|
|
472
|
+
className
|
|
473
|
+
}) {
|
|
474
|
+
return /* @__PURE__ */ jsx("div", { className: clsx2("sv-detail-view__comment-input", className), children: /* @__PURE__ */ jsx(
|
|
475
|
+
"input",
|
|
476
|
+
{
|
|
477
|
+
type: "text",
|
|
478
|
+
className: "sv-detail-view__comment-field",
|
|
479
|
+
placeholder,
|
|
480
|
+
onKeyDown: (e) => {
|
|
481
|
+
e.stopPropagation();
|
|
482
|
+
if (e.key === "Enter" && e.currentTarget.value.trim()) {
|
|
483
|
+
onSubmit?.(e.currentTarget.value.trim());
|
|
484
|
+
e.currentTarget.value = "";
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
onClick: (e) => e.stopPropagation()
|
|
488
|
+
}
|
|
489
|
+
) });
|
|
490
|
+
}
|
|
491
|
+
function DetailViewActions({ children, className }) {
|
|
492
|
+
return /* @__PURE__ */ jsx("div", { className: clsx2("sv-detail-view__bottom-actions", className), children });
|
|
493
|
+
}
|
|
494
|
+
function DetailViewActionButton({
|
|
495
|
+
type,
|
|
496
|
+
icon,
|
|
497
|
+
isActive = false,
|
|
498
|
+
count,
|
|
499
|
+
onClick,
|
|
500
|
+
ariaLabel,
|
|
501
|
+
className,
|
|
502
|
+
children
|
|
503
|
+
}) {
|
|
504
|
+
const renderIcon = () => {
|
|
505
|
+
if (icon) return icon;
|
|
506
|
+
switch (type) {
|
|
507
|
+
case "like":
|
|
508
|
+
return /* @__PURE__ */ jsx(HeartIcon, { filled: isActive });
|
|
509
|
+
case "comment":
|
|
510
|
+
return /* @__PURE__ */ jsx(CommentIcon, {});
|
|
511
|
+
case "bookmark":
|
|
512
|
+
return /* @__PURE__ */ jsx(BookmarkIcon, { filled: isActive });
|
|
513
|
+
case "share":
|
|
514
|
+
return /* @__PURE__ */ jsx(ShareIcon, {});
|
|
515
|
+
default:
|
|
516
|
+
return null;
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
const getAriaLabel = () => {
|
|
520
|
+
if (ariaLabel) return ariaLabel;
|
|
521
|
+
switch (type) {
|
|
522
|
+
case "like":
|
|
523
|
+
return isActive ? "Unlike" : "Like";
|
|
524
|
+
case "comment":
|
|
525
|
+
return "Comment";
|
|
526
|
+
case "bookmark":
|
|
527
|
+
return isActive ? "Remove bookmark" : "Bookmark";
|
|
528
|
+
case "share":
|
|
529
|
+
return "Share";
|
|
530
|
+
default:
|
|
531
|
+
return void 0;
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
return /* @__PURE__ */ jsxs(
|
|
535
|
+
"button",
|
|
536
|
+
{
|
|
537
|
+
type: "button",
|
|
538
|
+
className: clsx2(
|
|
539
|
+
"sv-detail-view__action-btn",
|
|
540
|
+
isActive && "sv-detail-view__action-btn--active",
|
|
541
|
+
className
|
|
542
|
+
),
|
|
543
|
+
onClick: (e) => {
|
|
544
|
+
e.stopPropagation();
|
|
545
|
+
onClick?.();
|
|
546
|
+
},
|
|
547
|
+
"aria-label": getAriaLabel(),
|
|
548
|
+
children: [
|
|
549
|
+
renderIcon(),
|
|
550
|
+
count !== void 0 && /* @__PURE__ */ jsx("span", { className: "sv-detail-view__action-count", children: formatCount(count) }),
|
|
551
|
+
children
|
|
552
|
+
]
|
|
553
|
+
}
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
var DetailViewIcons = {
|
|
557
|
+
Back: BackIcon,
|
|
558
|
+
Heart: HeartIcon,
|
|
559
|
+
Comment: CommentIcon,
|
|
560
|
+
Bookmark: BookmarkIcon,
|
|
561
|
+
Share: ShareIcon
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
export { DETAIL_VIEW_CSS, DetailViewActionButton, DetailViewActions, DetailViewAuthor, DetailViewBottomBar, DetailViewCaption, DetailViewCommentInput, DetailViewGallery, DetailViewHeadless, DetailViewIcons, DetailViewMusic, DetailViewStats, formatCount, useDetailViewContext };
|