hive-react-kit 1.11.3 → 1.12.4

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.
@@ -1,5 +1,22 @@
1
1
  import type { ActiveVote } from '@/types/video';
2
2
  export declare function isDownvote(vote: ActiveVote): boolean;
3
+ /** The curation service account — once it has voted on a post/snap/
4
+ * comment, that content no longer needs a curation request, so the
5
+ * curate button hides itself. */
6
+ export declare const CURATION_VOTER_ACCOUNT = "sagarkothari88";
7
+ /** True when `CURATION_VOTER_ACCOUNT` already voted on this content. */
8
+ export declare function hasCurationVoterVoted(votes?: ActiveVote[] | null): boolean;
9
+ /** True when `username` already voted on this content. Used to detect
10
+ * the "curator already spent their own vote" case — since the vote
11
+ * slider won't reopen for content the user already voted on, curation
12
+ * needs a separate, vote-free entry point for that scenario. */
13
+ export declare function hasUserVoted(votes: ActiveVote[] | null | undefined, username: string | null | undefined): boolean;
14
+ /** True when the content was published via the HiveSuite app — either
15
+ * `json_metadata.app` names it (e.g. `"hivesuite/1.2.3"`) or
16
+ * `json_metadata.developer` is the HiveSuite dev account. The curate
17
+ * button (and the curation backend) only ever considers this content —
18
+ * curation isn't offered for posts/snaps/comments from other apps. */
19
+ export declare function isHiveSuiteContent(jsonMetadata: unknown): boolean;
3
20
  /** True when the post has received at least one downvote / flag.
4
21
  * Prefer `stats.flag_weight` when available — Hive's canonical
5
22
  * signal — and fall back to scanning `active_votes` for negative
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hive-react-kit",
3
3
  "private": false,
4
- "version": "1.11.3",
4
+ "version": "1.12.4",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",