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.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.developer === "sagarkothari88";
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 — 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. */
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hive-react-kit",
3
3
  "private": false,
4
- "version": "1.12.4",
4
+ "version": "1.12.5",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",