@esri/hub-common 9.44.1 → 9.45.2

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.
@@ -1,5 +1,5 @@
1
1
  /* @preserve
2
- * @esri/hub-common - v9.44.0 - Mon Jun 27 2022 19:59:43 GMT+0000 (Coordinated Universal Time)
2
+ * @esri/hub-common - v9.45.1 - Tue Jun 28 2022 21:02:08 GMT+0000 (Coordinated Universal Time)
3
3
  * Copyright (c) 2022 Environmental Systems Research Institute, Inc.
4
4
  * Apache-2.0
5
5
  */
@@ -7609,7 +7609,7 @@
7609
7609
  hubInitiative: "initiative",
7610
7610
  hubInitiativeTemplate: "initiative-template",
7611
7611
  hubPage: "browser",
7612
- hubProject: "briefcase",
7612
+ hubProject: "projects",
7613
7613
  hubSiteApplication: "web",
7614
7614
  image: "file-image",
7615
7615
  imageService: "data",
@@ -14948,29 +14948,30 @@
14948
14948
  * @param original
14949
14949
  */
14950
14950
  function convertCatalog(original) {
14951
- var filterGroup = {
14952
- filterType: "item",
14953
- operation: "OR",
14954
- filters: [],
14955
- };
14956
- var groups = getProp(original, "groups");
14957
- if (Array.isArray(groups) && groups.length) {
14958
- filterGroup.filters.push({
14959
- filterType: "item",
14960
- group: groups,
14961
- });
14962
- }
14963
- else if (typeof groups === "string") {
14964
- filterGroup.filters.push({
14965
- filterType: "item",
14966
- group: [groups],
14967
- });
14968
- }
14969
14951
  var catalog = {
14952
+ schemaVersion: 1,
14970
14953
  title: "Default Catalog",
14971
- scope: [filterGroup],
14954
+ scopes: {
14955
+ item: {
14956
+ targetEntity: "item",
14957
+ filters: [],
14958
+ },
14959
+ },
14972
14960
  collections: [],
14973
14961
  };
14962
+ var rawGroups = getProp(original, "groups");
14963
+ var groups = [];
14964
+ if (Array.isArray(rawGroups) && rawGroups.length) {
14965
+ groups = rawGroups;
14966
+ }
14967
+ else if (typeof rawGroups === "string") {
14968
+ groups = [rawGroups];
14969
+ }
14970
+ if (groups.length) {
14971
+ catalog.scopes.item.filters.push({
14972
+ predicates: [{ group: groups }],
14973
+ });
14974
+ }
14974
14975
  return catalog;
14975
14976
  }
14976
14977