@project-sunbird/collection-editor-react 0.1.13 → 0.1.14

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.js CHANGED
@@ -19381,13 +19381,13 @@ const YN = "_row_11nth_1", XN = "_removeBtn_11nth_14", ZN = "_grip_11nth_17", JN
19381
19381
  }
19382
19382
  );
19383
19383
  async function mT(e) {
19384
- var i;
19384
+ var o;
19385
19385
  const t = {
19386
19386
  status: ["Live"],
19387
19387
  ...e.filters ?? {}
19388
19388
  };
19389
19389
  e.channel && (t.channel = e.channel);
19390
- const n = ((i = (await Ve.post("/action/composite/v3/search", {
19390
+ const n = ((o = (await Ve.post("/action/composite/v3/search", {
19391
19391
  request: {
19392
19392
  filters: t,
19393
19393
  query: e.query ?? "",
@@ -19411,9 +19411,9 @@ async function mT(e) {
19411
19411
  "X-Source": "web",
19412
19412
  "X-msgid": Math.random().toString(36).slice(2)
19413
19413
  }
19414
- })).data) == null ? void 0 : i.result) ?? {};
19414
+ })).data) == null ? void 0 : o.result) ?? {}, i = /* @__PURE__ */ new Set(["count", "facets"]);
19415
19415
  return {
19416
- content: n.content ?? [],
19416
+ content: Object.entries(n).filter(([a]) => !i.has(a)).flatMap(([, a]) => Array.isArray(a) ? a : []),
19417
19417
  count: n.count ?? 0
19418
19418
  };
19419
19419
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@project-sunbird/collection-editor-react",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",