hive-react-kit 1.12.4 → 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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/utils/postVotes.d.ts +11 -5
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -28771,7 +28771,7 @@ function t1(r) {
|
|
|
28771
28771
|
o = {};
|
|
28772
28772
|
}
|
|
28773
28773
|
else r && typeof r == "object" && (o = r);
|
|
28774
|
-
return (typeof o.app == "string" ? o.app.toLowerCase() : "").includes("hivesuite") ? !0 : o.
|
|
28774
|
+
return (typeof o.app == "string" ? o.app.toLowerCase() : "").includes("hivesuite") || o.developer === "sagarkothari88" ? !0 : (Array.isArray(o.tags) ? o.tags : []).some((c) => typeof c == "string" && c.toLowerCase() === "hivesuite");
|
|
28775
28775
|
}
|
|
28776
28776
|
function Xz(r, o) {
|
|
28777
28777
|
return typeof o == "number" && Number.isFinite(o) && o > 0 ? !0 : r?.length ? r.some(zx) : !1;
|
|
@@ -11,11 +11,17 @@ export declare function hasCurationVoterVoted(votes?: ActiveVote[] | null): bool
|
|
|
11
11
|
* slider won't reopen for content the user already voted on, curation
|
|
12
12
|
* needs a separate, vote-free entry point for that scenario. */
|
|
13
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
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
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. */
|
|
19
25
|
export declare function isHiveSuiteContent(jsonMetadata: unknown): boolean;
|
|
20
26
|
/** True when the post has received at least one downvote / flag.
|
|
21
27
|
* Prefer `stats.flag_weight` when available — Hive's canonical
|