@esri/hub-common 14.17.0 → 14.19.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/HubContent.js +8 -5
  2. package/dist/esm/content/HubContent.js.map +1 -1
  3. package/dist/esm/content/_internal/computeProps.js +2 -1
  4. package/dist/esm/content/_internal/computeProps.js.map +1 -1
  5. package/dist/esm/content/_internal/internalContentUtils.js +215 -0
  6. package/dist/esm/content/_internal/internalContentUtils.js.map +1 -1
  7. package/dist/esm/core/EntityEditor.js +2 -2
  8. package/dist/esm/core/EntityEditor.js.map +1 -1
  9. package/dist/esm/core/enrichEntity.js +66 -0
  10. package/dist/esm/core/enrichEntity.js.map +1 -0
  11. package/dist/esm/discussions/HubDiscussion.js +8 -4
  12. package/dist/esm/discussions/HubDiscussion.js.map +1 -1
  13. package/dist/esm/groups/HubGroup.js +8 -3
  14. package/dist/esm/groups/HubGroup.js.map +1 -1
  15. package/dist/esm/initiatives/HubInitiative.js +8 -4
  16. package/dist/esm/initiatives/HubInitiative.js.map +1 -1
  17. package/dist/esm/pages/HubPage.js +8 -4
  18. package/dist/esm/pages/HubPage.js.map +1 -1
  19. package/dist/esm/projects/HubProject.js +8 -3
  20. package/dist/esm/projects/HubProject.js.map +1 -1
  21. package/dist/esm/sites/HubSite.js +8 -6
  22. package/dist/esm/sites/HubSite.js.map +1 -1
  23. package/dist/node/content/HubContent.js +8 -5
  24. package/dist/node/content/HubContent.js.map +1 -1
  25. package/dist/node/content/_internal/computeProps.js +1 -0
  26. package/dist/node/content/_internal/computeProps.js.map +1 -1
  27. package/dist/node/content/_internal/internalContentUtils.js +216 -1
  28. package/dist/node/content/_internal/internalContentUtils.js.map +1 -1
  29. package/dist/node/core/EntityEditor.js +2 -2
  30. package/dist/node/core/EntityEditor.js.map +1 -1
  31. package/dist/node/core/enrichEntity.js +69 -0
  32. package/dist/node/core/enrichEntity.js.map +1 -0
  33. package/dist/node/discussions/HubDiscussion.js +8 -4
  34. package/dist/node/discussions/HubDiscussion.js.map +1 -1
  35. package/dist/node/groups/HubGroup.js +8 -3
  36. package/dist/node/groups/HubGroup.js.map +1 -1
  37. package/dist/node/initiatives/HubInitiative.js +8 -4
  38. package/dist/node/initiatives/HubInitiative.js.map +1 -1
  39. package/dist/node/pages/HubPage.js +8 -4
  40. package/dist/node/pages/HubPage.js.map +1 -1
  41. package/dist/node/projects/HubProject.js +8 -3
  42. package/dist/node/projects/HubProject.js.map +1 -1
  43. package/dist/node/sites/HubSite.js +8 -6
  44. package/dist/node/sites/HubSite.js.map +1 -1
  45. package/dist/types/content/HubContent.d.ts +1 -1
  46. package/dist/types/content/_internal/internalContentUtils.d.ts +15 -8
  47. package/dist/types/core/EntityEditor.d.ts +1 -1
  48. package/dist/types/core/behaviors/IWithEditorBehavior.d.ts +1 -1
  49. package/dist/types/core/enrichEntity.d.ts +16 -0
  50. package/dist/types/core/types/IHubDiscussion.d.ts +2 -8
  51. package/dist/types/core/types/IHubEditableContent.d.ts +2 -8
  52. package/dist/types/core/types/IHubInitiative.d.ts +2 -8
  53. package/dist/types/core/types/IHubItemEntity.d.ts +3 -0
  54. package/dist/types/core/types/IHubPage.d.ts +2 -8
  55. package/dist/types/core/types/IHubProject.d.ts +2 -10
  56. package/dist/types/discussions/HubDiscussion.d.ts +1 -1
  57. package/dist/types/groups/HubGroup.d.ts +2 -1
  58. package/dist/types/initiatives/HubInitiative.d.ts +1 -1
  59. package/dist/types/pages/HubPage.d.ts +1 -1
  60. package/dist/types/projects/HubProject.d.ts +1 -1
  61. package/dist/types/sites/HubSite.d.ts +1 -1
  62. package/package.json +1 -1
@@ -5,6 +5,7 @@ import { IWithPermissionBehavior } from "../core/behaviors/IWithPermissionBehavi
5
5
  import { IArcGISContext } from "../ArcGISContext";
6
6
  import { IEditorConfig, IWithEditorBehavior } from "../core/behaviors/IWithEditorBehavior";
7
7
  import { GroupEditorType } from "./_internal/GroupSchema";
8
+ import { IEntityEditorContext } from "../core";
8
9
  /**
9
10
  * Hub Group Class
10
11
  */
@@ -103,7 +104,7 @@ export declare class HubGroup implements IWithStoreBehavior<IHubGroup>, IWithPer
103
104
  /**
104
105
  * Return the group as an editor object
105
106
  */
106
- toEditor(): IHubGroupEditor;
107
+ toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubGroupEditor>;
107
108
  /**
108
109
  * Load the group from the editor object
109
110
  * @param editor
@@ -81,7 +81,7 @@ export declare class HubInitiative extends HubItemEntity<IHubInitiative> impleme
81
81
  * @param editorContext
82
82
  * @returns
83
83
  */
84
- toEditor(editorContext?: IEntityEditorContext): IHubInitiativeEditor;
84
+ toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubInitiativeEditor>;
85
85
  /**
86
86
  * Load the project from the editor object
87
87
  * @param editor
@@ -61,7 +61,7 @@ export declare class HubPage extends HubItemEntity<IHubPage> implements IWithSto
61
61
  * @param editorContext
62
62
  * @returns
63
63
  */
64
- toEditor(editorContext?: IEntityEditorContext): IHubPageEditor;
64
+ toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubPageEditor>;
65
65
  /**
66
66
  * Load the project from the editor object
67
67
  * @param editor
@@ -64,7 +64,7 @@ export declare class HubProject extends HubItemEntity<IHubProject> implements IW
64
64
  * @param editorContext
65
65
  * @returns
66
66
  */
67
- toEditor(editorContext?: IEntityEditorContext): IHubProjectEditor;
67
+ toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubProjectEditor>;
68
68
  /**
69
69
  * Load the project from the editor object
70
70
  * @param editor
@@ -141,7 +141,7 @@ export declare class HubSite extends HubItemEntity<IHubSite> implements IWithSto
141
141
  * @param editorContext
142
142
  * @returns
143
143
  */
144
- toEditor(editorContext?: IEntityEditorContext): IHubSiteEditor;
144
+ toEditor(editorContext?: IEntityEditorContext, include?: string[]): Promise<IHubSiteEditor>;
145
145
  /**
146
146
  * Load the project from the editor object
147
147
  * @param editor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "14.17.0",
3
+ "version": "14.19.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",