hive-react-kit 1.5.1 → 1.5.2
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/build.css +32 -5
- package/dist/components/community/CommunityDetail.d.ts +15 -1
- package/dist/index.cjs.js +154 -154
- package/dist/index.esm.js +13833 -13570
- package/dist/services/activityListService.d.ts +6 -1
- package/dist/services/communityService.d.ts +5 -0
- package/dist/types/activityList.d.ts +5 -1
- package/package.json +1 -1
package/dist/build.css
CHANGED
|
@@ -3054,6 +3054,9 @@
|
|
|
3054
3054
|
.text-blue-600 {
|
|
3055
3055
|
color: var(--color-blue-600);
|
|
3056
3056
|
}
|
|
3057
|
+
.text-blue-700 {
|
|
3058
|
+
color: var(--color-blue-700);
|
|
3059
|
+
}
|
|
3057
3060
|
.text-blue-800 {
|
|
3058
3061
|
color: var(--color-blue-800);
|
|
3059
3062
|
}
|
|
@@ -3342,6 +3345,9 @@
|
|
|
3342
3345
|
.ring-blue-500 {
|
|
3343
3346
|
--tw-ring-color: var(--color-blue-500);
|
|
3344
3347
|
}
|
|
3348
|
+
.ring-gray-200 {
|
|
3349
|
+
--tw-ring-color: var(--color-gray-200);
|
|
3350
|
+
}
|
|
3345
3351
|
.ring-gray-700 {
|
|
3346
3352
|
--tw-ring-color: var(--color-gray-700);
|
|
3347
3353
|
}
|
|
@@ -4417,11 +4423,6 @@
|
|
|
4417
4423
|
background-color: var(--hrk-bg-surface-raised);
|
|
4418
4424
|
}
|
|
4419
4425
|
}
|
|
4420
|
-
.disabled\:bg-blue-400 {
|
|
4421
|
-
&:disabled {
|
|
4422
|
-
background-color: var(--color-blue-400);
|
|
4423
|
-
}
|
|
4424
|
-
}
|
|
4425
4426
|
.disabled\:text-\[var\(--hrk-text-tertiary\)\] {
|
|
4426
4427
|
&:disabled {
|
|
4427
4428
|
color: var(--hrk-text-tertiary);
|
|
@@ -4442,6 +4443,11 @@
|
|
|
4442
4443
|
opacity: 50%;
|
|
4443
4444
|
}
|
|
4444
4445
|
}
|
|
4446
|
+
.disabled\:opacity-60 {
|
|
4447
|
+
&:disabled {
|
|
4448
|
+
opacity: 60%;
|
|
4449
|
+
}
|
|
4450
|
+
}
|
|
4445
4451
|
.sm\:absolute {
|
|
4446
4452
|
@media (width >= 40rem) {
|
|
4447
4453
|
position: absolute;
|
|
@@ -5568,6 +5574,14 @@
|
|
|
5568
5574
|
}
|
|
5569
5575
|
}
|
|
5570
5576
|
}
|
|
5577
|
+
.dark\:bg-blue-900\/30 {
|
|
5578
|
+
@media (prefers-color-scheme: dark) {
|
|
5579
|
+
background-color: color-mix(in srgb, oklch(37.9% 0.146 265.522) 30%, transparent);
|
|
5580
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
5581
|
+
background-color: color-mix(in oklab, var(--color-blue-900) 30%, transparent);
|
|
5582
|
+
}
|
|
5583
|
+
}
|
|
5584
|
+
}
|
|
5571
5585
|
.dark\:bg-gray-700 {
|
|
5572
5586
|
@media (prefers-color-scheme: dark) {
|
|
5573
5587
|
background-color: var(--color-gray-700);
|
|
@@ -5591,6 +5605,14 @@
|
|
|
5591
5605
|
}
|
|
5592
5606
|
}
|
|
5593
5607
|
}
|
|
5608
|
+
.dark\:bg-green-900\/30 {
|
|
5609
|
+
@media (prefers-color-scheme: dark) {
|
|
5610
|
+
background-color: color-mix(in srgb, oklch(39.3% 0.095 152.535) 30%, transparent);
|
|
5611
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
5612
|
+
background-color: color-mix(in oklab, var(--color-green-900) 30%, transparent);
|
|
5613
|
+
}
|
|
5614
|
+
}
|
|
5615
|
+
}
|
|
5594
5616
|
.dark\:bg-purple-900 {
|
|
5595
5617
|
@media (prefers-color-scheme: dark) {
|
|
5596
5618
|
background-color: var(--color-purple-900);
|
|
@@ -5721,6 +5743,11 @@
|
|
|
5721
5743
|
}
|
|
5722
5744
|
}
|
|
5723
5745
|
}
|
|
5746
|
+
.dark\:ring-\[var\(--hrk-border-subtle\)\] {
|
|
5747
|
+
@media (prefers-color-scheme: dark) {
|
|
5748
|
+
--tw-ring-color: var(--hrk-border-subtle);
|
|
5749
|
+
}
|
|
5750
|
+
}
|
|
5724
5751
|
.dark\:hover\:border-\[var\(--hrk-border-default\)\] {
|
|
5725
5752
|
@media (prefers-color-scheme: dark) {
|
|
5726
5753
|
&:hover {
|
|
@@ -54,6 +54,20 @@ export interface CommunityDetailProps {
|
|
|
54
54
|
}[];
|
|
55
55
|
onShare?: () => void;
|
|
56
56
|
onRss?: () => void;
|
|
57
|
+
/** Whether the current viewer is subscribed to this community.
|
|
58
|
+
* When omitted (undefined) the kit queries
|
|
59
|
+
* `bridge.list_all_subscriptions` for `currentUser` itself; pass an
|
|
60
|
+
* explicit boolean to override (e.g. to share status with the host
|
|
61
|
+
* app). */
|
|
62
|
+
isSubscribed?: boolean;
|
|
63
|
+
/** Fired when the user taps the Subscribe / Unsubscribe button.
|
|
64
|
+
* Receives the next intended state (true = subscribe). Implement on
|
|
65
|
+
* the host to broadcast the `community` custom_json operation, then
|
|
66
|
+
* reflect the new state via `isSubscribed`. */
|
|
67
|
+
onToggleSubscribe?: (next: boolean) => void | Promise<void>;
|
|
68
|
+
/** Show a spinner on the button — set this true while a broadcast is
|
|
69
|
+
* in flight on the host. */
|
|
70
|
+
subscribePending?: boolean;
|
|
57
71
|
/** Controlled top-level tab. Pass alongside `onActiveTabChange` to
|
|
58
72
|
* drive the tab from the URL or any other external store. When
|
|
59
73
|
* omitted, the component manages tab state internally (default
|
|
@@ -71,5 +85,5 @@ export interface CommunityDetailProps {
|
|
|
71
85
|
* the view starts at the top, matching forward navigation. */
|
|
72
86
|
shouldRestoreScroll?: boolean;
|
|
73
87
|
}
|
|
74
|
-
declare const CommunityDetail: ({ communityId, currentUser, onBack, onUserClick, onPostClick, onCommentClick, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onTip, onSharePost, onReportPost, onDeletePost, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, actionsAsMenu, onShare, onRss, loadCommunitySnaps: _loadCommunitySnaps, reportedAuthors, reportedPosts, activeTab: controlledActiveTab, onActiveTabChange, postSort: controlledPostSort, onPostSortChange, shouldRestoreScroll, }: CommunityDetailProps) => import("react/jsx-runtime").JSX.Element;
|
|
88
|
+
declare const CommunityDetail: ({ communityId, currentUser, onBack, onUserClick, onPostClick, onCommentClick, onUpvote, onSubmitComment, onClickCommentUpvote, onReblog, onTip, onSharePost, onReportPost, onDeletePost, ecencyToken, threeSpeakApiKey, giphyApiKey, templateToken, templateApiBaseUrl, defaultVotePercent, voteWeightStep, allowLandscapeVideos, awaitingWalletApproval, defaultReward, actionsAsMenu, onShare, onRss, isSubscribed: controlledIsSubscribed, onToggleSubscribe, subscribePending, loadCommunitySnaps: _loadCommunitySnaps, reportedAuthors, reportedPosts, activeTab: controlledActiveTab, onActiveTabChange, postSort: controlledPostSort, onPostSortChange, shouldRestoreScroll, }: CommunityDetailProps) => import("react/jsx-runtime").JSX.Element;
|
|
75
89
|
export default CommunityDetail;
|