@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.
- package/dist/esm/content/HubContent.js +8 -5
- package/dist/esm/content/HubContent.js.map +1 -1
- package/dist/esm/content/_internal/computeProps.js +2 -1
- package/dist/esm/content/_internal/computeProps.js.map +1 -1
- package/dist/esm/content/_internal/internalContentUtils.js +215 -0
- package/dist/esm/content/_internal/internalContentUtils.js.map +1 -1
- package/dist/esm/core/EntityEditor.js +2 -2
- package/dist/esm/core/EntityEditor.js.map +1 -1
- package/dist/esm/core/enrichEntity.js +66 -0
- package/dist/esm/core/enrichEntity.js.map +1 -0
- package/dist/esm/discussions/HubDiscussion.js +8 -4
- package/dist/esm/discussions/HubDiscussion.js.map +1 -1
- package/dist/esm/groups/HubGroup.js +8 -3
- package/dist/esm/groups/HubGroup.js.map +1 -1
- package/dist/esm/initiatives/HubInitiative.js +8 -4
- package/dist/esm/initiatives/HubInitiative.js.map +1 -1
- package/dist/esm/pages/HubPage.js +8 -4
- package/dist/esm/pages/HubPage.js.map +1 -1
- package/dist/esm/projects/HubProject.js +8 -3
- package/dist/esm/projects/HubProject.js.map +1 -1
- package/dist/esm/sites/HubSite.js +8 -6
- package/dist/esm/sites/HubSite.js.map +1 -1
- package/dist/node/content/HubContent.js +8 -5
- package/dist/node/content/HubContent.js.map +1 -1
- package/dist/node/content/_internal/computeProps.js +1 -0
- package/dist/node/content/_internal/computeProps.js.map +1 -1
- package/dist/node/content/_internal/internalContentUtils.js +216 -1
- package/dist/node/content/_internal/internalContentUtils.js.map +1 -1
- package/dist/node/core/EntityEditor.js +2 -2
- package/dist/node/core/EntityEditor.js.map +1 -1
- package/dist/node/core/enrichEntity.js +69 -0
- package/dist/node/core/enrichEntity.js.map +1 -0
- package/dist/node/discussions/HubDiscussion.js +8 -4
- package/dist/node/discussions/HubDiscussion.js.map +1 -1
- package/dist/node/groups/HubGroup.js +8 -3
- package/dist/node/groups/HubGroup.js.map +1 -1
- package/dist/node/initiatives/HubInitiative.js +8 -4
- package/dist/node/initiatives/HubInitiative.js.map +1 -1
- package/dist/node/pages/HubPage.js +8 -4
- package/dist/node/pages/HubPage.js.map +1 -1
- package/dist/node/projects/HubProject.js +8 -3
- package/dist/node/projects/HubProject.js.map +1 -1
- package/dist/node/sites/HubSite.js +8 -6
- package/dist/node/sites/HubSite.js.map +1 -1
- package/dist/types/content/HubContent.d.ts +1 -1
- package/dist/types/content/_internal/internalContentUtils.d.ts +15 -8
- package/dist/types/core/EntityEditor.d.ts +1 -1
- package/dist/types/core/behaviors/IWithEditorBehavior.d.ts +1 -1
- package/dist/types/core/enrichEntity.d.ts +16 -0
- package/dist/types/core/types/IHubDiscussion.d.ts +2 -8
- package/dist/types/core/types/IHubEditableContent.d.ts +2 -8
- package/dist/types/core/types/IHubInitiative.d.ts +2 -8
- package/dist/types/core/types/IHubItemEntity.d.ts +3 -0
- package/dist/types/core/types/IHubPage.d.ts +2 -8
- package/dist/types/core/types/IHubProject.d.ts +2 -10
- package/dist/types/discussions/HubDiscussion.d.ts +1 -1
- package/dist/types/groups/HubGroup.d.ts +2 -1
- package/dist/types/initiatives/HubInitiative.d.ts +1 -1
- package/dist/types/pages/HubPage.d.ts +1 -1
- package/dist/types/projects/HubProject.d.ts +1 -1
- package/dist/types/sites/HubSite.d.ts +1 -1
- 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
|