@apolitical/component-library 6.1.3 → 6.2.0

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/index.mjs CHANGED
@@ -1227,7 +1227,6 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1227
1227
  discussion_moreMenu_report: "Report",
1228
1228
  discussion_comments_screenReader: "See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",
1229
1229
  discussion_comments: "{count, plural, =0 {0 comments} one {# comment} other {# comments}}",
1230
- discussion_comments_loading: "... comments",
1231
1230
  discussion_responses_answer: "Answers",
1232
1231
  discussion_responses_comment: "Comments",
1233
1232
  discussion_responses_title: "{action} ({count})",
@@ -7430,12 +7429,7 @@ const Gn = "discussion_", Og = ({
7430
7429
  { id: `${Gn}comments_screenReader` },
7431
7430
  { count: a.count }
7432
7431
  ),
7433
- children: l.formatMessage(
7434
- {
7435
- id: `${Gn}comments${a.count === null ? "_loading" : ""}`
7436
- },
7437
- { count: a.count }
7438
- )
7432
+ children: l.formatMessage({ id: `${Gn}comments` }, { count: a.count })
7439
7433
  }
7440
7434
  ) }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
7441
7435
  i ? /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
@@ -47,7 +47,7 @@ interface Props {
47
47
  /** Props for the comments button */
48
48
  comments: false | {
49
49
  /** The number of comments on the post */
50
- count: number | null;
50
+ count: number;
51
51
  functions: {
52
52
  /** The function to handle the comment click */
53
53
  onClick: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "6.1.3",
3
+ "version": "6.2.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {