@apolitical/component-library 6.6.2 → 6.6.4

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
@@ -23960,7 +23960,7 @@ const _m = ({
23960
23960
  dispatch: B
23961
23961
  });
23962
23962
  }, 100);
23963
- return L ? /* @__PURE__ */ c.jsx("div", { id: D, className: "rich-text-editor", children: /* @__PURE__ */ c.jsxs(
23963
+ return L ? /* @__PURE__ */ c.jsx("div", { id: D, className: "rich-text-editor input", children: /* @__PURE__ */ c.jsxs(
23964
23964
  pn.Provider,
23965
23965
  {
23966
23966
  value: {
@@ -23990,7 +23990,7 @@ const _m = ({
23990
23990
  /* @__PURE__ */ c.jsx(
23991
23991
  cw,
23992
23992
  {
23993
- className: "input",
23993
+ className: "editor",
23994
23994
  renderElement: J,
23995
23995
  renderLeaf: G,
23996
23996
  placeholder: n || d.formatMessage({ id: "richTextEditor_placeholder" }),
@@ -27184,7 +27184,7 @@ const Es = ({
27184
27184
  };
27185
27185
  function F_({ content: e }) {
27186
27186
  var t;
27187
- return (t = e.categories) != null && t.length ? /* @__PURE__ */ c.jsx("ul", { className: "categories-list", children: e.categories.map((n) => !n.slug || !n.name ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx(cn, { size: "small", element: "li", children: n.name }, n.slug)) }) : /* @__PURE__ */ c.jsx(c.Fragment, {});
27187
+ return !e || !((t = e.categories) != null && t.length) ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx("ul", { className: "categories-list", children: e.categories.map((n) => !n.slug || !n.name ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx(cn, { size: "small", element: "li", children: n.name }, n.slug)) });
27188
27188
  }
27189
27189
  var ao = /* @__PURE__ */ ((e) => (e.Always = "always", e.AfterVoting = "after-voting", e))(ao || {});
27190
27190
  const B_ = (e, t, n) => n === void 0 ? 0 : e.some((i) => i.hasUserVoted) ? t ? e.findIndex((i) => !i.hasUserVoted) : e.findIndex((i) => i.hasUserVoted) : 0, T_ = (e, t, n, r = 0) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "6.6.2",
3
+ "version": "6.6.4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {