@apolitical/component-library 6.2.0 → 6.2.1

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,6 +1227,7 @@ 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",
1230
1231
  discussion_responses_answer: "Answers",
1231
1232
  discussion_responses_comment: "Comments",
1232
1233
  discussion_responses_title: "{action} ({count})",
@@ -7429,7 +7430,12 @@ const Gn = "discussion_", Og = ({
7429
7430
  { id: `${Gn}comments_screenReader` },
7430
7431
  { count: a.count }
7431
7432
  ),
7432
- children: l.formatMessage({ id: `${Gn}comments` }, { count: a.count })
7433
+ children: l.formatMessage(
7434
+ {
7435
+ id: `${Gn}comments${a.count === null ? "_loading" : ""}`
7436
+ },
7437
+ { count: a.count }
7438
+ )
7433
7439
  }
7434
7440
  ) }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
7435
7441
  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;
50
+ count: number | null;
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.2.0",
3
+ "version": "6.2.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {