@esri/hub-common 14.148.2 → 14.150.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.
Files changed (62) hide show
  1. package/dist/esm/content/_internal/ContentUiSchemaEdit.js +2 -16
  2. package/dist/esm/content/_internal/ContentUiSchemaEdit.js.map +1 -1
  3. package/dist/esm/core/schemas/internal/fetchCategoriesUiSchemaElement.js +51 -0
  4. package/dist/esm/core/schemas/internal/fetchCategoriesUiSchemaElement.js.map +1 -0
  5. package/dist/esm/core/schemas/internal/{getCategoryItems.js → fetchCategoryItems.js} +2 -2
  6. package/dist/esm/core/schemas/internal/fetchCategoryItems.js.map +1 -0
  7. package/dist/esm/core/schemas/internal/getEditorSchemas.js +1 -0
  8. package/dist/esm/core/schemas/internal/getEditorSchemas.js.map +1 -1
  9. package/dist/esm/core/schemas/types.js.map +1 -1
  10. package/dist/esm/discussions/_internal/DiscussionUiSchemaEdit.js +2 -13
  11. package/dist/esm/discussions/_internal/DiscussionUiSchemaEdit.js.map +1 -1
  12. package/dist/esm/events/_internal/EventUiSchemaEdit.js +2 -16
  13. package/dist/esm/events/_internal/EventUiSchemaEdit.js.map +1 -1
  14. package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js +2 -16
  15. package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -1
  16. package/dist/esm/pages/_internal/PageUiSchemaEdit.js +2 -16
  17. package/dist/esm/pages/_internal/PageUiSchemaEdit.js.map +1 -1
  18. package/dist/esm/projects/_internal/ProjectSchema.js +1 -0
  19. package/dist/esm/projects/_internal/ProjectSchema.js.map +1 -1
  20. package/dist/esm/projects/_internal/ProjectUiSchemaEdit.js +2 -16
  21. package/dist/esm/projects/_internal/ProjectUiSchemaEdit.js.map +1 -1
  22. package/dist/esm/projects/_internal/ProjectUiSchemaSettings.js +33 -0
  23. package/dist/esm/projects/_internal/ProjectUiSchemaSettings.js.map +1 -0
  24. package/dist/esm/sites/_internal/SiteUiSchemaEdit.js +2 -16
  25. package/dist/esm/sites/_internal/SiteUiSchemaEdit.js.map +1 -1
  26. package/dist/esm/surveys/_internal/SurveyUiSchemaEdit.js +2 -13
  27. package/dist/esm/surveys/_internal/SurveyUiSchemaEdit.js.map +1 -1
  28. package/dist/node/content/_internal/ContentUiSchemaEdit.js +2 -16
  29. package/dist/node/content/_internal/ContentUiSchemaEdit.js.map +1 -1
  30. package/dist/node/core/schemas/internal/fetchCategoriesUiSchemaElement.js +55 -0
  31. package/dist/node/core/schemas/internal/fetchCategoriesUiSchemaElement.js.map +1 -0
  32. package/dist/node/core/schemas/internal/{getCategoryItems.js → fetchCategoryItems.js} +4 -4
  33. package/dist/node/core/schemas/internal/fetchCategoryItems.js.map +1 -0
  34. package/dist/node/core/schemas/internal/getEditorSchemas.js +1 -0
  35. package/dist/node/core/schemas/internal/getEditorSchemas.js.map +1 -1
  36. package/dist/node/core/schemas/types.js.map +1 -1
  37. package/dist/node/discussions/_internal/DiscussionUiSchemaEdit.js +2 -13
  38. package/dist/node/discussions/_internal/DiscussionUiSchemaEdit.js.map +1 -1
  39. package/dist/node/events/_internal/EventUiSchemaEdit.js +2 -16
  40. package/dist/node/events/_internal/EventUiSchemaEdit.js.map +1 -1
  41. package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js +2 -16
  42. package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -1
  43. package/dist/node/pages/_internal/PageUiSchemaEdit.js +2 -16
  44. package/dist/node/pages/_internal/PageUiSchemaEdit.js.map +1 -1
  45. package/dist/node/projects/_internal/ProjectSchema.js +1 -0
  46. package/dist/node/projects/_internal/ProjectSchema.js.map +1 -1
  47. package/dist/node/projects/_internal/ProjectUiSchemaEdit.js +2 -16
  48. package/dist/node/projects/_internal/ProjectUiSchemaEdit.js.map +1 -1
  49. package/dist/node/projects/_internal/ProjectUiSchemaSettings.js +36 -0
  50. package/dist/node/projects/_internal/ProjectUiSchemaSettings.js.map +1 -0
  51. package/dist/node/sites/_internal/SiteUiSchemaEdit.js +2 -16
  52. package/dist/node/sites/_internal/SiteUiSchemaEdit.js.map +1 -1
  53. package/dist/node/surveys/_internal/SurveyUiSchemaEdit.js +2 -13
  54. package/dist/node/surveys/_internal/SurveyUiSchemaEdit.js.map +1 -1
  55. package/dist/types/core/schemas/internal/fetchCategoriesUiSchemaElement.d.ts +11 -0
  56. package/dist/types/core/schemas/internal/{getCategoryItems.d.ts → fetchCategoryItems.d.ts} +1 -1
  57. package/dist/types/core/schemas/types.d.ts +4 -2
  58. package/dist/types/projects/_internal/ProjectSchema.d.ts +1 -1
  59. package/dist/types/projects/_internal/ProjectUiSchemaSettings.d.ts +10 -0
  60. package/package.json +1 -1
  61. package/dist/esm/core/schemas/internal/getCategoryItems.js.map +0 -1
  62. package/dist/node/core/schemas/internal/getCategoryItems.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildUiSchema = void 0;
4
- const getCategoryItems_1 = require("../../core/schemas/internal/getCategoryItems");
5
4
  const getLocationExtent_1 = require("../../core/schemas/internal/getLocationExtent");
6
5
  const getLocationOptions_1 = require("../../core/schemas/internal/getLocationOptions");
7
6
  const getTagItems_1 = require("../../core/schemas/internal/getTagItems");
8
7
  const getThumbnailUiSchemaElement_1 = require("../../core/schemas/internal/getThumbnailUiSchemaElement");
8
+ const fetchCategoriesUiSchemaElement_1 = require("../../core/schemas/internal/fetchCategoriesUiSchemaElement");
9
9
  /**
10
10
  * @private
11
11
  * constructs the edit uiSchema for Hub Sites.
@@ -88,21 +88,7 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
88
88
  helperText: { labelKey: `${i18nScope}.fields.tags.helperText` },
89
89
  },
90
90
  },
91
- {
92
- labelKey: `${i18nScope}.fields.categories.label`,
93
- scope: "/properties/categories",
94
- type: "Control",
95
- options: {
96
- control: "hub-field-input-combobox",
97
- items: await getCategoryItems_1.getCategoryItems(context.portal.id, context.hubRequestOptions),
98
- allowCustomValues: false,
99
- selectionMode: "ancestors",
100
- placeholderIcon: "select-category",
101
- helperText: {
102
- labelKey: `${i18nScope}.fields.categories.helperText`,
103
- },
104
- },
105
- },
91
+ await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context),
106
92
  ],
107
93
  },
108
94
  {
@@ -1 +1 @@
1
- {"version":3,"file":"SiteUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/sites/_internal/SiteUiSchemaEdit.ts"],"names":[],"mappings":";;;AACA,mFAAgF;AAChF,qFAAkF;AAClF,uFAAoF;AACpF,yEAAsE;AAEtE,yGAAsG;AAGtG;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA0B,EAC1B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;iCACnD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;oCACpB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,6BAA6B;iCACpD;6BACF;yBACF;qBACF;oBACD;wBACE,QAAQ,EAAE,GAAG,SAAS,uBAAuB;wBAC7C,KAAK,EAAE,qBAAqB;wBAC5B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,uBAAuB;4BAChC,IAAI,EAAE,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,iBAAiB,CAC1B;4BACD,iBAAiB,EAAE,KAAK;4BACxB,aAAa,EAAE,WAAW;4BAC1B,eAAe,EAAE,iBAAiB;4BAClC,UAAU,EAAE;gCACV,QAAQ,EAAE,GAAG,SAAS,+BAA+B;6BACtD;yBACF;qBACF;iBACF;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,0BAA0B;gBAChD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,+BAA+B;qBACtD;iBACF;gBACD,QAAQ,EAAE;oBACR;wBACE,KAAK,EAAE,sBAAsB;wBAC7B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,iCAAiC;4BAC1C,MAAM,EAAE,MAAM,qCAAiB,CAC7B,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,OAAO,EAAE,MAAM,uCAAkB,CAC/B,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,IAAI,EACnB,OAAO,CAAC,iBAAiB,CAC1B;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"SiteUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/sites/_internal/SiteUiSchemaEdit.ts"],"names":[],"mappings":";;;AACA,qFAAkF;AAClF,uFAAoF;AACpF,yEAAsE;AAEtE,yGAAsG;AAEtG,+GAA4G;AAE5G;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA0B,EAC1B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,QAAQ,EAAE;oBACR;wBACE,QAAQ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ACf,OAAO,EAAE;4BACP,OAAO,EAAE,0BAA0B;4BACnC,KAAK,EAAE,MAAM,yBAAW,CACtB,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,MAAM,CAAC,EAAE,EACjB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,iBAAiB,EAAE,IAAI;4BACvB,aAAa,EAAE,UAAU;4BACzB,eAAe,EAAE,OAAO;4BACxB,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,SAAS,yBAAyB,EAAE;yBAChE;qBACF;oBACD,MAAM,+DAA8B,CAAC,SAAS,EAAE,OAAO,CAAC;iBACzD;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,0BAA0B;gBAChD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,+BAA+B;qBACtD;iBACF;gBACD,QAAQ,EAAE;oBACR;wBACE,KAAK,EAAE,sBAAsB;wBAC7B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,iCAAiC;4BAC1C,MAAM,EAAE,MAAM,qCAAiB,CAC7B,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,OAAO,EAAE,MAAM,uCAAkB,CAC/B,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,IAAI,EACnB,OAAO,CAAC,iBAAiB,CAC1B;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildUiSchema = void 0;
4
- const getCategoryItems_1 = require("../../core/schemas/internal/getCategoryItems");
4
+ const fetchCategoriesUiSchemaElement_1 = require("../../core/schemas/internal/fetchCategoriesUiSchemaElement");
5
5
  const getTagItems_1 = require("../../core/schemas/internal/getTagItems");
6
6
  const getThumbnailUiSchemaElement_1 = require("../../core/schemas/internal/getThumbnailUiSchemaElement");
7
7
  /**
@@ -90,18 +90,7 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
90
90
  placeholderIcon: "label",
91
91
  },
92
92
  },
93
- {
94
- labelKey: `${i18nScope}.fields.categories.label`,
95
- scope: "/properties/categories",
96
- type: "Control",
97
- options: {
98
- control: "hub-field-input-combobox",
99
- items: await getCategoryItems_1.getCategoryItems(context.portal.id, context.hubRequestOptions),
100
- allowCustomValues: false,
101
- selectionMode: "ancestors",
102
- placeholderIcon: "select-category",
103
- },
104
- },
93
+ await fetchCategoriesUiSchemaElement_1.fetchCategoriesUiSchemaElement(i18nScope, context),
105
94
  getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl),
106
95
  ],
107
96
  },
@@ -1 +1 @@
1
- {"version":3,"file":"SurveyUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/surveys/_internal/SurveyUiSchemaEdit.ts"],"names":[],"mappings":";;;AACA,mFAAgF;AAChF,yEAAsE;AACtE,yGAAsG;AAItG;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;iCACnD;gCACD;oCACE,IAAI,EA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F;oBACD;wBACE,QAAQ,EAAE,GAAG,SAAS,0BAA0B;wBAChD,KAAK,EAAE,wBAAwB;wBAC/B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,0BAA0B;4BACnC,KAAK,EAAE,MAAM,mCAAgB,CAC3B,OAAO,CAAC,MAAM,CAAC,EAAE,EACjB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,iBAAiB,EAAE,KAAK;4BACxB,aAAa,EAAE,WAAW;4BAC1B,eAAe,EAAE,iBAAiB;yBACnC;qBACF;oBACD,yDAA2B,CACzB,SAAS,EACT,OAAO,CAAC,SAAS,EACjB,OAAO,CAAC,YAAY,CACrB;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"SurveyUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/surveys/_internal/SurveyUiSchemaEdit.ts"],"names":[],"mappings":";;;AACA,+GAA4G;AAC5G,yEAAsE;AACtE,yGAAsG;AAItG;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;iCACnD;gCACD;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;oCACpB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,oCAAoC;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AAO,CAAC,SAAS,EACjB,OAAO,CAAC,YAAY,CACrB;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { IArcGISContext } from "../../../ArcGISContext";
2
+ import { IUiSchemaElement } from "../types";
3
+ /**
4
+ * Returns the UI schema element needed to render
5
+ * the categories editing control for an entity.
6
+ *
7
+ * @param i18nScope i18n scope for the entity translations
8
+ * @param entity The entity to build the UI schema for
9
+ * @returns the UI schema element for thumbnail editing
10
+ */
11
+ export declare function fetchCategoriesUiSchemaElement(i18nScope: string, context: IArcGISContext): Promise<IUiSchemaElement>;
@@ -9,4 +9,4 @@ import { IUiSchemaComboboxItem } from "../types";
9
9
  * @param hubRequestOptions The hub request options
10
10
  * @returns a _nested_ structure of categories
11
11
  */
12
- export declare function getCategoryItems(orgId: string, hubRequestOptions: IHubRequestOptions): Promise<IUiSchemaComboboxItem[]>;
12
+ export declare function fetchCategoryItems(orgId: string, hubRequestOptions: IHubRequestOptions): Promise<IUiSchemaComboboxItem[]>;
@@ -2,6 +2,7 @@ import { JSONSchema } from "json-schema-typed";
2
2
  import Ajv from "ajv";
3
3
  import { CardEditorOptions, EntityEditorOptions } from "./internal/EditorOptions";
4
4
  import { IArcGISContext } from "../../ArcGISContext";
5
+ import { HubActionLink } from "../types";
5
6
  export interface IEditorConfig {
6
7
  schema: IConfigurationSchema;
7
8
  uiSchema: IUiSchema;
@@ -12,7 +13,7 @@ export interface IEditorConfig {
12
13
  * to the supported/defined uiSchema configurations
13
14
  */
14
15
  export declare type EntityEditorType = (typeof validEntityEditorTypes)[number];
15
- export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees"];
16
+ export declare const validEntityEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees"];
16
17
  /** Defines the possible editor type values for a stat card. These
17
18
  * correspond to the supported/defined uiSchema configurations. This should
18
19
  * have its own signature in the getEditorConfig function.
@@ -36,7 +37,7 @@ export declare const validCardEditorTypes: readonly ["hub:card:stat", "hub:card:
36
37
  * to defined schema/uiSchema configurations
37
38
  */
38
39
  export declare type EditorType = (typeof validEditorTypes)[number];
39
- export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees", "hub:card:stat", "hub:card:follow"];
40
+ export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:project:settings", "hub:content:edit", "hub:content:settings", "hub:content:discussions", "hub:initiative:edit", "hub:initiative:create", "hub:initiative:metrics", "hub:initiative:associations", "hub:initiative:settings", "hub:site:edit", "hub:site:create", "hub:site:followers", "hub:site:discussions", "hub:site:settings", "hub:discussion:edit", "hub:discussion:create", "hub:discussion:settings", "hub:page:edit", "hub:template:edit", "hub:group:edit", "hub:group:settings", "hub:group:discussions", "hub:group:create:followers", "hub:group:create:association", "hub:group:create:view", "hub:group:create:edit", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees", "hub:card:stat", "hub:card:follow"];
40
41
  /**
41
42
  * An editor's module when dynamically imported depending on the EditorType. This
42
43
  * will always have a buildUiSchema function, and sometimes it will have a
@@ -171,6 +172,7 @@ export interface IUiSchemaMessage {
171
172
  labelKey?: string;
172
173
  icon?: boolean | string;
173
174
  kind?: "brand" | "danger" | "info" | "success" | "warning";
175
+ link?: HubActionLink;
174
176
  hidden?: boolean;
175
177
  condition?: IUiSchemaCondition;
176
178
  conditions?: Array<IUiSchemaCondition | boolean>;
@@ -1,6 +1,6 @@
1
1
  import { IConfigurationSchema } from "../../core/schemas/types";
2
2
  export declare type ProjectEditorType = (typeof ProjectEditorTypes)[number];
3
- export declare const ProjectEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics"];
3
+ export declare const ProjectEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:project:metrics", "hub:project:settings"];
4
4
  /**
5
5
  * Defines the JSON schema for a Hub Project's editable fields
6
6
  */
@@ -0,0 +1,10 @@
1
+ import { IArcGISContext } from "../../ArcGISContext";
2
+ import { IUiSchema } from "../../core/schemas/types";
3
+ import { IHubProject } from "../../core/types";
4
+ /**
5
+ * @private
6
+ * constructs the settings uiSchema for Hub Projects.
7
+ * This defines how the schema should be rendered
8
+ * in the project settings pane
9
+ */
10
+ export declare const buildUiSchema: (i18nScope: string, options: Partial<IHubProject>, context: IArcGISContext) => Promise<IUiSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "14.148.2",
3
+ "version": "14.150.0",
4
4
  "description": "Common TypeScript types and utility functions for @esri/hub.js.",
5
5
  "main": "dist/node/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCategoryItems.js","sourceRoot":"","sources":["../../../../../src/core/schemas/internal/getCategoryItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAIpD;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,KAAa,EACb,iBAAqC;IAErC,MAAM,GAAG,GAAG,GAAG,iBAAiB,CAAC,MAAM,YAAY,KAAK,iBAAiB,CAAC;IAC1E,IAAI;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,OAAO,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;QACjE,oEAAoE;QACpE,OAAO,oBAAoB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;KAC1E;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,EAAE,CAAC;KACX;AACH,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,oBAAoB,CAC3B,iBAAsB,EACtB,WAAmB;IAEnB,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,QAAa,EAAE,EAAE;;QAC7C,4GAA4G;QAC5G,yGAAyG;QACzG,+CAA+C;QAC/C,MAAM,KAAK,GAAG,GAAG,WAAW,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEjD,mFAAmF;QACnF,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAE7B,OAAO;YACL,KAAK;YACL,KAAK;YACL,QAAQ,EAAE,OAAA,QAAQ,CAAC,UAAU,0CAAE,MAAM,EACnC,CAAC,CAAC,oBAAoB,CAAC,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC;gBAClD,CAAC,CAAC,EAAE;SACP,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCategoryItems.js","sourceRoot":"","sources":["../../../../../src/core/schemas/internal/getCategoryItems.ts"],"names":[],"mappings":";;;AAAA,mEAAoD;AAIpD;;;;;;;;GAQG;AACI,KAAK,UAAU,gBAAgB,CACpC,KAAa,EACb,iBAAqC;IAErC,MAAM,GAAG,GAAG,GAAG,iBAAiB,CAAC,MAAM,YAAY,KAAK,iBAAiB,CAAC;IAC1E,IAAI;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,6BAAO,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;QACjE,oEAAoE;QACpE,OAAO,oBAAoB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;KAC1E;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,EAAE,CAAC;KACX;AACH,CAAC;AAZD,4CAYC;AAED;;;;;;;GAOG;AACH,SAAS,oBAAoB,CAC3B,iBAAsB,EACtB,WAAmB;IAEnB,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC,QAAa,EAAE,EAAE;;QAC7C,4GAA4G;QAC5G,yGAAyG;QACzG,+CAA+C;QAC/C,MAAM,KAAK,GAAG,GAAG,WAAW,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;QAEjD,mFAAmF;QACnF,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAE7B,OAAO;YACL,KAAK;YACL,KAAK;YACL,QAAQ,EAAE,OAAA,QAAQ,CAAC,UAAU,0CAAE,MAAM,EACnC,CAAC,CAAC,oBAAoB,CAAC,QAAQ,CAAC,UAAU,EAAE,KAAK,CAAC;gBAClD,CAAC,CAAC,EAAE;SACP,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}