nnews-react 0.4.9 → 0.5.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/dist/index.d.ts CHANGED
@@ -34,7 +34,6 @@ export declare interface Article {
34
34
  title: string;
35
35
  content: string;
36
36
  imageName?: string;
37
- imageUrl?: string;
38
37
  status: ArticleStatus;
39
38
  contentType?: ContentType;
40
39
  dateAt?: string | Date;
package/dist/index.js CHANGED
@@ -36169,7 +36169,7 @@ function cF({
36169
36169
  const { articleApi: a } = As(), { t: l } = en(), [c, u] = de(""), [d, h] = de(""), [f, p] = de(""), [g, b] = de(""), [y, E] = de(!1), [v, S] = de(Ye.Draft), [C, k] = de(pn.Html), [L, q] = de(null), [H, R] = de(""), [F, D] = de(""), [Y, G] = de(!0), [Z, I] = de(/* @__PURE__ */ new Set()), [z, j] = de([]), [X, _] = de(!1), [W, re] = de({});
36170
36170
  Cn(() => {
36171
36171
  var te;
36172
- e && (u(e.title), h(e.content), p(e.imageName || ""), console.log("imageName:", e.imageName), e.imageName && b(e.imageName), S(e.status), k(e.contentType || pn.Html), q(e.categoryId || null), R(e.dateAt ? new Date(e.dateAt).toISOString().slice(0, 16) : ""), D(((te = e.tags) == null ? void 0 : te.map((xe) => xe.title).join(", ")) || ""), e.roles && e.roles.length > 0 ? (G(!1), I(new Set(e.roles.map((xe) => xe.slug)))) : (G(!0), I(/* @__PURE__ */ new Set())));
36172
+ e && (u(e.title), h(e.content), p(e.imageName || ""), e.imageName && b(e.imageName), S(e.status), k(e.contentType || pn.Html), q(e.categoryId || null), R(e.dateAt ? new Date(e.dateAt).toISOString().slice(0, 16) : ""), D(((te = e.tags) == null ? void 0 : te.map((xe) => xe.title).join(", ")) || ""), e.roles && e.roles.length > 0 ? (G(!1), I(new Set(e.roles.map((xe) => xe.slug)))) : (G(!0), I(/* @__PURE__ */ new Set())));
36173
36173
  }, [e]);
36174
36174
  const N = n || z;
36175
36175
  Cn(() => {