@esri/hub-common 14.165.0 → 14.167.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 (43) hide show
  1. package/dist/esm/core/schemas/getEditorConfig.js.map +1 -1
  2. package/dist/esm/core/schemas/internal/events/EventGalleryCardSchema.js +60 -0
  3. package/dist/esm/core/schemas/internal/events/EventGalleryCardSchema.js.map +1 -0
  4. package/dist/esm/core/schemas/internal/events/EventGalleryCardUiSchema.js +392 -0
  5. package/dist/esm/core/schemas/internal/events/EventGalleryCardUiSchema.js.map +1 -0
  6. package/dist/esm/core/schemas/internal/follow/FollowCardUiSchema.js.map +1 -1
  7. package/dist/esm/core/schemas/internal/getCardEditorSchemas.js +7 -0
  8. package/dist/esm/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
  9. package/dist/esm/core/schemas/internal/metrics/MetricSchema.js +2 -12
  10. package/dist/esm/core/schemas/internal/metrics/MetricSchema.js.map +1 -1
  11. package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js +33 -22
  12. package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
  13. package/dist/esm/core/schemas/internal/metrics/interfaces.js +1 -2
  14. package/dist/esm/core/schemas/internal/metrics/interfaces.js.map +1 -1
  15. package/dist/esm/core/schemas/shared/subschemas.js.map +1 -1
  16. package/dist/esm/core/schemas/types.js +8 -0
  17. package/dist/esm/core/schemas/types.js.map +1 -1
  18. package/dist/node/core/schemas/getEditorConfig.js.map +1 -1
  19. package/dist/node/core/schemas/internal/events/EventGalleryCardSchema.js +63 -0
  20. package/dist/node/core/schemas/internal/events/EventGalleryCardSchema.js.map +1 -0
  21. package/dist/node/core/schemas/internal/events/EventGalleryCardUiSchema.js +396 -0
  22. package/dist/node/core/schemas/internal/events/EventGalleryCardUiSchema.js.map +1 -0
  23. package/dist/node/core/schemas/internal/follow/FollowCardUiSchema.js.map +1 -1
  24. package/dist/node/core/schemas/internal/getCardEditorSchemas.js +7 -0
  25. package/dist/node/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
  26. package/dist/node/core/schemas/internal/metrics/MetricSchema.js +2 -12
  27. package/dist/node/core/schemas/internal/metrics/MetricSchema.js.map +1 -1
  28. package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js +33 -22
  29. package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
  30. package/dist/node/core/schemas/internal/metrics/interfaces.js +1 -2
  31. package/dist/node/core/schemas/internal/metrics/interfaces.js.map +1 -1
  32. package/dist/node/core/schemas/shared/subschemas.js.map +1 -1
  33. package/dist/node/core/schemas/types.js +9 -1
  34. package/dist/node/core/schemas/types.js.map +1 -1
  35. package/dist/types/core/schemas/getEditorConfig.d.ts +4 -3
  36. package/dist/types/core/schemas/internal/EditorOptions.d.ts +14 -1
  37. package/dist/types/core/schemas/internal/events/EventGalleryCardSchema.d.ts +2 -0
  38. package/dist/types/core/schemas/internal/events/EventGalleryCardUiSchema.d.ts +4 -0
  39. package/dist/types/core/schemas/internal/follow/FollowCardUiSchema.d.ts +2 -2
  40. package/dist/types/core/schemas/internal/metrics/interfaces.d.ts +1 -2
  41. package/dist/types/core/schemas/shared/subschemas.d.ts +3 -12
  42. package/dist/types/core/schemas/types.d.ts +8 -2
  43. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/core/schemas/internal/metrics/interfaces.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,gCAAqB,CAAA;AACvB,CAAC,EAJW,OAAO,GAAP,eAAO,KAAP,eAAO,QAIlB;AACD,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,oBAAW,CAAA;IACX,qBAAY,CAAA;IACZ,oBAAW,CAAA;AACb,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB;AACD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AACD,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,0CAAuB,CAAA;IACvB,gCAAa,CAAA;IACb,gCAAa,CAAA;AACf,CAAC,EALW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAK1B;AACD,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;IACjB,iCAAuB,CAAA;AACzB,CAAC,EAJW,MAAM,GAAN,cAAM,KAAN,cAAM,QAIjB"}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/core/schemas/internal/metrics/interfaces.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,0CAA+B,CAAA;AACjC,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;AACD,IAAY,KAIX;AAJD,WAAY,KAAK;IACf,oBAAW,CAAA;IACX,qBAAY,CAAA;IACZ,oBAAW,CAAA;AACb,CAAC,EAJW,KAAK,GAAL,aAAK,KAAL,aAAK,QAIhB;AACD,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,iCAAe,CAAA;AACjB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AACD,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,0CAAuB,CAAA;IACvB,gCAAa,CAAA;IACb,gCAAa,CAAA;AACf,CAAC,EALW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAK1B;AACD,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;IACjB,iCAAuB,CAAA;AACzB,CAAC,EAJW,MAAM,GAAN,cAAM,KAAN,cAAM,QAIjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"subschemas.js","sourceRoot":"","sources":["../../../../../src/core/schemas/shared/subschemas.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEU,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,GAAG;CACf,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACnC,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,IAAI;CAChB,CAAC;AAEW,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC;IAClC,OAAO,EAAE,SAAS;CACnB,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;KACf;CACF,CAAC;AAEW,QAAA,wBAAwB,GAAG;IACtC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;KACf;CACF,CAAC;AAEW,QAAA,4BAA4B,GAAG;IAC1C,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC;IACnB,OAAO,EAAE,IAAI;CACd,CAAC;AAEW,QAAA,8BAA8B,GAAG;IAC5C,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC;IACX,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;KACf;CACF,CAAC;AAEW,QAAA,sBAAsB,GAAG;IACpC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CAC1B,CAAC;AAEF;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,cAAc,EAAE;YACd,IAAI,EAAE,OA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,EAAE,QAAQ,EAAE;yBAC1B;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACnC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,aAAa,EAAE;YACb,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,kBAAkB,EAAE;oBAClB,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,KAAK;iBACf;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,KAAK;iBACf;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,OAAO;oBACb,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,QAAQ;4BACd,UAAU,EAAE;gCACV,IAAI,EAAE;oCACJ,IAAI,EAAE,QAAQ;iCACf;gCACD,IAAI,EAAE;oCACJ,IAAI,EAAE,QAAQ;iCACf;gCACD,OAAO,EAAE;oCACP,IAAI,EAAE,SAAS;iCAChB;6BACF;yBACF;qBACF;iBACF;gBACD,SAAS,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,OAAO,EACL,sEAAsE;iBACzE;aACF;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"subschemas.js","sourceRoot":"","sources":["../../../../../src/core/schemas/shared/subschemas.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIU,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,GAAG;CACf,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACnC,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,IAAI;CAChB,CAAC;AAEW,QAAA,oBAAoB,GAAG;IAClC,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC;IAClC,OAAO,EAAE,SAAS;CACnB,CAAC;AAEW,QAAA,kBAAkB,GAAe;IAC5C,IAAI,EAAE,OAAO;IACb,K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AI,EAAE,SAAS;iCAChB;6BACF;yBACF;qBACF;iBACF;gBACD,SAAS,EAAE;oBACT,IAAI,EAAE,QAAQ;oBACd,OAAO,EACL,sEAAsE;iBACzE;aACF;SACF;KACF;CACF,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UiSchemaMessageTypes = exports.UiSchemaSectionTypes = exports.UiSchemaElementTypes = exports.UiSchemaRuleEffects = exports.validEditorTypes = exports.validCardEditorTypes = exports.validFollowCardEditorTypes = exports.validStatCardEditorTypes = exports.validEntityEditorTypes = void 0;
3
+ exports.UiSchemaMessageTypes = exports.UiSchemaSectionTypes = exports.UiSchemaElementTypes = exports.UiSchemaRuleEffects = exports.validEditorTypes = exports.validCardEditorTypes = exports.validEventGalleryCardEditorTypes = exports.validFollowCardEditorTypes = exports.validStatCardEditorTypes = exports.validEntityEditorTypes = void 0;
4
4
  const ProjectSchema_1 = require("../../projects/_internal/ProjectSchema");
5
5
  const InitiativeSchema_1 = require("../../initiatives/_internal/InitiativeSchema");
6
6
  const SiteSchema_1 = require("../../sites/_internal/SiteSchema");
@@ -27,9 +27,17 @@ exports.validEntityEditorTypes = [
27
27
  ];
28
28
  exports.validStatCardEditorTypes = ["hub:card:stat"];
29
29
  exports.validFollowCardEditorTypes = ["hub:card:follow"];
30
+ /** Defines the possible editor type values for an event gallery card. These
31
+ * correspond to the supported/defined uiSchema configurations. This should
32
+ * have its own signature in the getEditorConfig function.
33
+ */
34
+ exports.validEventGalleryCardEditorTypes = [
35
+ "hub:card:eventGallery",
36
+ ];
30
37
  exports.validCardEditorTypes = [
31
38
  ...exports.validStatCardEditorTypes,
32
39
  ...exports.validFollowCardEditorTypes,
40
+ ...exports.validEventGalleryCardEditorTypes,
33
41
  ];
34
42
  exports.validEditorTypes = [
35
43
  ...exports.validEntityEditorTypes,
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/core/schemas/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IACb,6CAAqB,CAAA;IACrB,qCAAa,CAAA;AACf,CAAC,EARW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAQ/B;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,2CAAmB,CAAA;IACnB,yCAAiB,CAAA;AACnB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/core/schemas/types.ts"],"names":[],"mappings":";;;AAGA,0EAA4E;AAC5E,mFAAqF;AACrF,iEAAmE;AACnE,mFAAqF;AACrF,iEAAmE;AACnE,yEAA2E;AAC3E,6EAA+E;AAC/E,oEAAsE;AACtE,4GAA8G;AAC9G,uEAAyE;AAMzE,gFAA4E;AAc/D,QAAA,sBAAsB,GAAG;IACpC,GAAG,kCAAkB;IACrB,GAAG,kCAAkB;IACrB,GAAG,wCAAqB;IACxB,GAAG,4BAAe;IAClB,GAAG,wCAAqB;IACxB,GAAG,4BAAe;IAClB,GAAG,oCAAmB;IACtB,GAAG,8BAAgB;IACnB,GAAG,wDAA6B;IAChC,GAAG,gCAAiB;IACpB,GAAG,oCAAgB;CACX,CAAC;AAOE,QAAA,wBAAwB,GAAG,CAAC,eAAe,CAAU,CAAC;AAOtD,QAAA,0BAA0B,GAAG,CAAC,iBAAiB,CAAU,CAAC;AAEvE;;;GAGG;AACU,QAAA,gCAAgC,GAAG;IAC9C,uBAAuB;CACf,CAAC;AASE,QAAA,oBAAoB,GAAG;IAClC,GAAG,gCAAwB;IAC3B,GAAG,kCAA0B;IAC7B,GAAG,wCAAgC;CAC3B,CAAC;AAOE,QAAA,gBAAgB,GAAG;IAC9B,GAAG,8BAAsB;IACzB,GAAG,4BAAoB;CACf,CAAC;AA8CX,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,oCAAa,CAAA;IACb,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,gCAAS,CAAA;AACX,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,2CAAmB,CAAA;IACnB,yCAAiB,CAAA;IACjB,qCAAa,CAAA;AACf,CAAC,EALW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAK/B;AAED,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,uDAA+B,CAAA;IAC/B,uCAAe,CAAA;IACf,2CAAmB,CAAA;IACnB,qCAAa,CAAA;IACb,6CAAqB,CAAA;IACrB,qCAAa,CAAA;AACf,CAAC,EARW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAQ/B;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,2CAAmB,CAAA;IACnB,yCAAiB,CAAA;AACnB,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B"}
@@ -1,6 +1,6 @@
1
- import { EntityEditorType, IEditorConfig, StatCardEditorType, FollowCardEditorType } from "./types";
1
+ import { EntityEditorType, IEditorConfig, StatCardEditorType, FollowCardEditorType, EventGalleryCardEditorType } from "./types";
2
2
  import { IArcGISContext } from "../../ArcGISContext";
3
- import { EntityEditorOptions, IStatCardEditorOptions, CardEditorOptions } from "./internal/EditorOptions";
3
+ import { EntityEditorOptions, IStatCardEditorOptions, IFollowCardEditorOptions, IEventGalleryCardEditorOptions } from "./internal/EditorOptions";
4
4
  /**
5
5
  * NOTE: We use the concept of function overloading to write getEditorConfig.
6
6
  * In doing so, we create multiple signatures for the function.
@@ -18,4 +18,5 @@ import { EntityEditorOptions, IStatCardEditorOptions, CardEditorOptions } from "
18
18
  */
19
19
  export declare function getEditorConfig(i18nScope: string, type: EntityEditorType, options: EntityEditorOptions, context: IArcGISContext): Promise<IEditorConfig>;
20
20
  export declare function getEditorConfig(i18nScope: string, type: StatCardEditorType, options: IStatCardEditorOptions, context: IArcGISContext): Promise<IEditorConfig>;
21
- export declare function getEditorConfig(i18nScope: string, type: FollowCardEditorType, options: CardEditorOptions, context: IArcGISContext): Promise<IEditorConfig>;
21
+ export declare function getEditorConfig(i18nScope: string, type: FollowCardEditorType, options: IFollowCardEditorOptions, context: IArcGISContext): Promise<IEditorConfig>;
22
+ export declare function getEditorConfig(i18nScope: string, type: EventGalleryCardEditorType, options: IEventGalleryCardEditorOptions, context: IArcGISContext): Promise<IEditorConfig>;
@@ -14,7 +14,7 @@ export declare type EntityEditorOptions = HubEntity;
14
14
  * a layout card's editor. This should be a union of all of the different
15
15
  * layout card editor options, i.e. IStatCardEditorOptions | ICountdownCardEditorOptions | ...
16
16
  */
17
- export declare type CardEditorOptions = IStatCardEditorOptions;
17
+ export declare type CardEditorOptions = IStatCardEditorOptions | IFollowCardEditorOptions | IEventGalleryCardEditorOptions;
18
18
  /**
19
19
  * Options to use when constructing a schema and uiSchema for
20
20
  * a stat card editor.
@@ -22,3 +22,16 @@ export declare type CardEditorOptions = IStatCardEditorOptions;
22
22
  export interface IStatCardEditorOptions {
23
23
  themeColors: string[];
24
24
  }
25
+ /**
26
+ * Options to use when constructing a schema and uiSchema for
27
+ * a follow card editor.
28
+ */
29
+ export interface IFollowCardEditorOptions {
30
+ }
31
+ /**
32
+ * Options to use when constructing a schema and uiSchema for
33
+ * an event gallery card editor.
34
+ */
35
+ export interface IEventGalleryCardEditorOptions {
36
+ tags: string[];
37
+ }
@@ -0,0 +1,2 @@
1
+ import { IConfigurationSchema } from "../../types";
2
+ export declare const EventGalleryCardSchema: IConfigurationSchema;
@@ -0,0 +1,4 @@
1
+ import { IArcGISContext } from "../../../../ArcGISContext";
2
+ import { IUiSchema } from "../../types";
3
+ import { IEventGalleryCardEditorOptions } from "../EditorOptions";
4
+ export declare function buildUiSchema(i18nScope: string, options: IEventGalleryCardEditorOptions, context: IArcGISContext): Promise<IUiSchema>;
@@ -1,4 +1,4 @@
1
1
  import { IArcGISContext } from "../../../../ArcGISContext";
2
- import { CardEditorOptions } from "../EditorOptions";
2
+ import { IFollowCardEditorOptions } from "../EditorOptions";
3
3
  import { IUiSchema } from "../../types";
4
- export declare const buildUiSchema: (i18nScope: string, config: CardEditorOptions, context: IArcGISContext) => IUiSchema;
4
+ export declare const buildUiSchema: (i18nScope: string, config: IFollowCardEditorOptions, context: IArcGISContext) => IUiSchema;
@@ -1,7 +1,6 @@
1
1
  export declare enum LAYOUTS {
2
2
  simple = "simple",
3
- dataViz = "dataViz",
4
- moreInfo = "moreInfo"
3
+ informational = "informational"
5
4
  }
6
5
  export declare enum SCALE {
7
6
  small = "s",
@@ -2,6 +2,7 @@
2
2
  * For consistency and validation purposes, leverage these commonly
3
3
  * re-used subschemas in your schema definitions
4
4
  */
5
+ import { JSONSchema } from "json-schema-typed";
5
6
  export declare const ENTITY_NAME_SCHEMA: {
6
7
  type: string;
7
8
  minLength: number;
@@ -16,18 +17,8 @@ export declare const ENTITY_ACCESS_SCHEMA: {
16
17
  enum: string[];
17
18
  default: string;
18
19
  };
19
- export declare const ENTITY_TAGS_SCHEMA: {
20
- type: string;
21
- items: {
22
- type: string;
23
- };
24
- };
25
- export declare const ENTITY_CATEGORIES_SCHEMA: {
26
- type: string;
27
- items: {
28
- type: string;
29
- };
30
- };
20
+ export declare const ENTITY_TAGS_SCHEMA: JSONSchema;
21
+ export declare const ENTITY_CATEGORIES_SCHEMA: JSONSchema;
31
22
  export declare const ENTITY_IS_DISCUSSABLE_SCHEMA: {
32
23
  type: string;
33
24
  enum: boolean[];
@@ -26,18 +26,24 @@ export declare const validStatCardEditorTypes: readonly ["hub:card:stat"];
26
26
  */
27
27
  export declare type FollowCardEditorType = (typeof validFollowCardEditorTypes)[number];
28
28
  export declare const validFollowCardEditorTypes: readonly ["hub:card:follow"];
29
+ /** Defines the possible editor type values for an event gallery card. These
30
+ * correspond to the supported/defined uiSchema configurations. This should
31
+ * have its own signature in the getEditorConfig function.
32
+ */
33
+ export declare const validEventGalleryCardEditorTypes: readonly ["hub:card:eventGallery"];
34
+ export declare type EventGalleryCardEditorType = (typeof validEventGalleryCardEditorTypes)[number];
29
35
  /**
30
36
  * Defines the possible editor type values for any layout card. These
31
37
  * correspond to the supported/defined uiSchema configurations for cards.
32
38
  */
33
39
  export declare type CardEditorType = (typeof validCardEditorTypes)[number];
34
- export declare const validCardEditorTypes: readonly ["hub:card:stat", "hub:card:follow"];
40
+ export declare const validCardEditorTypes: readonly ["hub:card:stat", "hub:card:follow", "hub:card:eventGallery"];
35
41
  /**
36
42
  * All supported editor types - these "map"
37
43
  * to defined schema/uiSchema configurations
38
44
  */
39
45
  export declare type EditorType = (typeof validEditorTypes)[number];
40
- export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:create2", "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:create2", "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:page:create", "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:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees", "hub:card:stat", "hub:card:follow"];
46
+ export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:create2", "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:create2", "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:page:create", "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:group:create", "hub:initiativeTemplate:edit", "hub:survey:edit", "hub:survey:settings", "hub:event:create", "hub:event:edit", "hub:event:attendees", "hub:card:stat", "hub:card:follow", "hub:card:eventGallery"];
41
47
  /**
42
48
  * An editor's module when dynamically imported depending on the EditorType. This
43
49
  * will always have a buildUiSchema function, and sometimes it will have a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "14.165.0",
3
+ "version": "14.167.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",