@esri/hub-common 14.81.0 → 14.82.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 (51) hide show
  1. package/dist/esm/core/schemas/getEditorConfig.js.map +1 -1
  2. package/dist/esm/core/schemas/internal/follow/FollowCardUiSchema.js +89 -0
  3. package/dist/esm/core/schemas/internal/follow/FollowCardUiSchema.js.map +1 -0
  4. package/dist/esm/core/schemas/internal/follow/FollowSchema.js +42 -0
  5. package/dist/esm/core/schemas/internal/follow/FollowSchema.js.map +1 -0
  6. package/dist/esm/core/schemas/internal/getCardEditorSchemas.js +17 -2
  7. package/dist/esm/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
  8. package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js +3 -0
  9. package/dist/esm/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
  10. package/dist/esm/core/schemas/types.js +7 -3
  11. package/dist/esm/core/schemas/types.js.map +1 -1
  12. package/dist/esm/groups/_internal/GroupUiSchemaCreateFollowers.js +8 -2
  13. package/dist/esm/groups/_internal/GroupUiSchemaCreateFollowers.js.map +1 -1
  14. package/dist/esm/initiatives/_internal/InitiativeUiSchemaCreate.js +12 -3
  15. package/dist/esm/initiatives/_internal/InitiativeUiSchemaCreate.js.map +1 -1
  16. package/dist/esm/permissions/HubPermissionPolicies.js +8 -0
  17. package/dist/esm/permissions/HubPermissionPolicies.js.map +1 -1
  18. package/dist/esm/permissions/types/Permission.js +1 -0
  19. package/dist/esm/permissions/types/Permission.js.map +1 -1
  20. package/dist/esm/projects/_internal/ProjectUiSchemaCreate.js +12 -3
  21. package/dist/esm/projects/_internal/ProjectUiSchemaCreate.js.map +1 -1
  22. package/dist/esm/sites/_internal/SiteUiSchemaCreate.js +12 -3
  23. package/dist/esm/sites/_internal/SiteUiSchemaCreate.js.map +1 -1
  24. package/dist/node/core/schemas/getEditorConfig.js.map +1 -1
  25. package/dist/node/core/schemas/internal/follow/FollowCardUiSchema.js +92 -0
  26. package/dist/node/core/schemas/internal/follow/FollowCardUiSchema.js.map +1 -0
  27. package/dist/node/core/schemas/internal/follow/FollowSchema.js +45 -0
  28. package/dist/node/core/schemas/internal/follow/FollowSchema.js.map +1 -0
  29. package/dist/node/core/schemas/internal/getCardEditorSchemas.js +17 -2
  30. package/dist/node/core/schemas/internal/getCardEditorSchemas.js.map +1 -1
  31. package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js +3 -0
  32. package/dist/node/core/schemas/internal/metrics/StatCardUiSchema.js.map +1 -1
  33. package/dist/node/core/schemas/types.js +8 -4
  34. package/dist/node/core/schemas/types.js.map +1 -1
  35. package/dist/node/groups/_internal/GroupUiSchemaCreateFollowers.js +8 -2
  36. package/dist/node/groups/_internal/GroupUiSchemaCreateFollowers.js.map +1 -1
  37. package/dist/node/initiatives/_internal/InitiativeUiSchemaCreate.js +12 -3
  38. package/dist/node/initiatives/_internal/InitiativeUiSchemaCreate.js.map +1 -1
  39. package/dist/node/permissions/HubPermissionPolicies.js +8 -0
  40. package/dist/node/permissions/HubPermissionPolicies.js.map +1 -1
  41. package/dist/node/permissions/types/Permission.js +1 -0
  42. package/dist/node/permissions/types/Permission.js.map +1 -1
  43. package/dist/node/projects/_internal/ProjectUiSchemaCreate.js +12 -3
  44. package/dist/node/projects/_internal/ProjectUiSchemaCreate.js.map +1 -1
  45. package/dist/node/sites/_internal/SiteUiSchemaCreate.js +12 -3
  46. package/dist/node/sites/_internal/SiteUiSchemaCreate.js.map +1 -1
  47. package/dist/types/core/schemas/getEditorConfig.d.ts +3 -2
  48. package/dist/types/core/schemas/internal/follow/FollowCardUiSchema.d.ts +9 -0
  49. package/dist/types/core/schemas/internal/follow/FollowSchema.d.ts +2 -0
  50. package/dist/types/core/schemas/types.d.ts +10 -4
  51. package/package.json +1 -1
@@ -16,18 +16,24 @@ export declare const validEntityEditorTypes: readonly ["hub:project:create", "hu
16
16
  */
17
17
  export declare type StatCardEditorType = (typeof validStatCardEditorTypes)[number];
18
18
  export declare const validStatCardEditorTypes: readonly ["hub:card:stat"];
19
+ /** Defines the possible editor type values for a follow card. These
20
+ * correspond to the supported/defined uiSchema configurations. This should
21
+ * have its own signature in the getEditorConfig function.
22
+ */
23
+ export declare type FollowCardEditorType = (typeof validFollowCardEditorTypes)[number];
24
+ export declare const validFollowCardEditorTypes: readonly ["hub:card:follow"];
19
25
  /**
20
26
  * Defines the possible editor type values for any layout card. These
21
27
  * correspond to the supported/defined uiSchema configurations for cards.
22
28
  */
23
29
  export declare type CardEditorType = (typeof validCardEditorTypes)[number];
24
- export declare const validCardEditorTypes: readonly ["hub:card:stat"];
30
+ export declare const validCardEditorTypes: readonly ["hub:card:stat", "hub:card:follow"];
25
31
  /**
26
32
  * All supported editor types - these "map"
27
33
  * to defined schema/uiSchema configurations
28
34
  */
29
35
  export declare type EditorType = (typeof validEditorTypes)[number];
30
- 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: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:initiativeTemplate:edit", "hub:card:stat"];
36
+ 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: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:initiativeTemplate:edit", "hub:card:stat", "hub:card:follow"];
31
37
  export declare enum UiSchemaRuleEffects {
32
38
  SHOW = "SHOW",
33
39
  HIDE = "HIDE",
@@ -35,17 +41,17 @@ export declare enum UiSchemaRuleEffects {
35
41
  NONE = ""
36
42
  }
37
43
  export declare enum UiSchemaElementTypes {
38
- accordionItem = "AccordionItem",
39
44
  section = "Section",
40
- step = "Step",
41
45
  control = "Control",
42
46
  layout = "Layout",
43
47
  slot = "Slot"
44
48
  }
45
49
  export declare enum UiSchemaSectionTypes {
46
50
  accordion = "accordion",
51
+ accordionItem = "accordionItem",
47
52
  block = "block",
48
53
  stepper = "stepper",
54
+ step = "step",
49
55
  subblock = "subblock",
50
56
  card = "card"
51
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "14.81.0",
3
+ "version": "14.82.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",