@project-sunbird/collection-editor-react 0.1.12 → 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/collection-editor.umd.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +4 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19381,14 +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
|
|
19384
|
+
var o;
|
|
19385
19385
|
const t = {
|
|
19386
19386
|
status: ["Live"],
|
|
19387
|
-
contentType: ["Resource"],
|
|
19388
19387
|
...e.filters ?? {}
|
|
19389
19388
|
};
|
|
19390
19389
|
e.channel && (t.channel = e.channel);
|
|
19391
|
-
const n = ((
|
|
19390
|
+
const n = ((o = (await Ve.post("/action/composite/v3/search", {
|
|
19392
19391
|
request: {
|
|
19393
19392
|
filters: t,
|
|
19394
19393
|
query: e.query ?? "",
|
|
@@ -19412,9 +19411,9 @@ async function mT(e) {
|
|
|
19412
19411
|
"X-Source": "web",
|
|
19413
19412
|
"X-msgid": Math.random().toString(36).slice(2)
|
|
19414
19413
|
}
|
|
19415
|
-
})).data) == null ? void 0 :
|
|
19414
|
+
})).data) == null ? void 0 : o.result) ?? {}, i = /* @__PURE__ */ new Set(["count", "facets"]);
|
|
19416
19415
|
return {
|
|
19417
|
-
content: n.
|
|
19416
|
+
content: Object.entries(n).filter(([a]) => !i.has(a)).flatMap(([, a]) => Array.isArray(a) ? a : []),
|
|
19418
19417
|
count: n.count ?? 0
|
|
19419
19418
|
};
|
|
19420
19419
|
}
|
|
@@ -20229,7 +20228,6 @@ function bR() {
|
|
|
20229
20228
|
try {
|
|
20230
20229
|
const O = {
|
|
20231
20230
|
status: ["Live"],
|
|
20232
|
-
contentType: ["Resource"],
|
|
20233
20231
|
primaryCategory: g && g !== "all" ? [g] : r
|
|
20234
20232
|
};
|
|
20235
20233
|
(m = p == null ? void 0 : p.board) != null && m.length && (O.board = p.board), (y = p == null ? void 0 : p.medium) != null && y.length && (O.medium = p.medium), (v = p == null ? void 0 : p.gradeLevel) != null && v.length && (O.gradeLevel = p.gradeLevel), (w = p == null ? void 0 : p.subject) != null && w.length && (O.subject = p.subject), (_ = p == null ? void 0 : p.primaryCategory) != null && _.length && (O.primaryCategory = p.primaryCategory);
|