hive-react-kit 1.12.2 → 1.12.5

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,28 @@
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. Checks,
15
+ * in order:
16
+ * - `json_metadata.app` names it (e.g. `"hivesuite/1.2.3"`)
17
+ * - `json_metadata.developer` is the HiveSuite dev account
18
+ * - `json_metadata.tags` includes `"hivesuite"` — video posts made via
19
+ * the 3Speak encoder carry `app: "3speak/x.y.z"` (that's the actual
20
+ * uploader), so the `hivesuite` tag is the only signal that the post
21
+ * itself was authored through HiveSuite.
22
+ * The curate button (and the curation backend) only ever considers this
23
+ * content — curation isn't offered for posts/snaps/comments from other
24
+ * apps. */
25
+ export declare function isHiveSuiteContent(jsonMetadata: unknown): boolean;
3
26
  /** True when the post has received at least one downvote / flag.
4
27
  * Prefer `stats.flag_weight` when available — Hive's canonical
5
28
  * 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.12.2",
4
+ "version": "1.12.5",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",