@esri/hub-common 12.41.0 → 12.42.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/ArcGISContext.js +18 -0
- package/dist/esm/ArcGISContext.js.map +1 -1
- package/dist/esm/core/schemas/getEntityEditorSchemas.js +9 -0
- package/dist/esm/core/schemas/getEntityEditorSchemas.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeSchema.js +19 -1
- package/dist/esm/initiatives/_internal/InitiativeSchema.js.map +1 -1
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js +78 -0
- package/dist/esm/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -1
- package/dist/esm/initiatives/_internal/getPropertyMap.js +4 -0
- package/dist/esm/initiatives/_internal/getPropertyMap.js.map +1 -1
- package/dist/esm/projects/fetch.js +6 -1
- package/dist/esm/projects/fetch.js.map +1 -1
- package/dist/esm/sites/HubSite.js.map +1 -1
- package/dist/esm/sites/HubSites.js +25 -16
- package/dist/esm/sites/HubSites.js.map +1 -1
- package/dist/esm/sites/_internal/SiteSchema.js +31 -0
- package/dist/esm/sites/_internal/SiteSchema.js.map +1 -0
- package/dist/esm/sites/_internal/SiteUiSchemaCreate.js +125 -0
- package/dist/esm/sites/_internal/SiteUiSchemaCreate.js.map +1 -0
- package/dist/esm/sites/_internal/SiteUiSchemaEdit.js +100 -0
- package/dist/esm/sites/_internal/SiteUiSchemaEdit.js.map +1 -0
- package/dist/esm/sites/_internal/getPropertyMap.js +5 -1
- package/dist/esm/sites/_internal/getPropertyMap.js.map +1 -1
- package/dist/node/ArcGISContext.js +18 -0
- package/dist/node/ArcGISContext.js.map +1 -1
- package/dist/node/core/schemas/getEntityEditorSchemas.js +9 -0
- package/dist/node/core/schemas/getEntityEditorSchemas.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeSchema.js +18 -0
- package/dist/node/initiatives/_internal/InitiativeSchema.js.map +1 -1
- package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js +78 -0
- package/dist/node/initiatives/_internal/InitiativeUiSchemaEdit.js.map +1 -1
- package/dist/node/initiatives/_internal/getPropertyMap.js +4 -0
- package/dist/node/initiatives/_internal/getPropertyMap.js.map +1 -1
- package/dist/node/projects/fetch.js +6 -1
- package/dist/node/projects/fetch.js.map +1 -1
- package/dist/node/sites/HubSite.js.map +1 -1
- package/dist/node/sites/HubSites.js +27 -17
- package/dist/node/sites/HubSites.js.map +1 -1
- package/dist/node/sites/_internal/SiteSchema.js +34 -0
- package/dist/node/sites/_internal/SiteSchema.js.map +1 -0
- package/dist/node/sites/_internal/SiteUiSchemaCreate.js +128 -0
- package/dist/node/sites/_internal/SiteUiSchemaCreate.js.map +1 -0
- package/dist/node/sites/_internal/SiteUiSchemaEdit.js +103 -0
- package/dist/node/sites/_internal/SiteUiSchemaEdit.js.map +1 -0
- package/dist/node/sites/_internal/getPropertyMap.js +5 -1
- package/dist/node/sites/_internal/getPropertyMap.js.map +1 -1
- package/dist/types/ArcGISContext.d.ts +11 -0
- package/dist/types/core/schemas/getEntityEditorSchemas.d.ts +1 -1
- package/dist/types/core/types/IHubItemEntity.d.ts +3 -0
- package/dist/types/core/types/IHubSite.d.ts +3 -2
- package/dist/types/sites/HubSites.d.ts +9 -0
- package/dist/types/sites/_internal/SiteSchema.d.ts +7 -0
- package/dist/types/sites/_internal/SiteUiSchemaCreate.d.ts +7 -0
- package/dist/types/sites/_internal/SiteUiSchemaEdit.d.ts +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uiSchema = void 0;
|
|
4
|
+
const core_1 = require("../../core");
|
|
5
|
+
/**
|
|
6
|
+
* minimal create uiSchema for Hub Projects - this defines
|
|
7
|
+
* how the schema properties should be rendered in the
|
|
8
|
+
* project creation experience
|
|
9
|
+
*/
|
|
10
|
+
exports.uiSchema = {
|
|
11
|
+
type: "Layout",
|
|
12
|
+
elements: [
|
|
13
|
+
{
|
|
14
|
+
type: "Section",
|
|
15
|
+
options: { section: "stepper", scale: "l" },
|
|
16
|
+
elements: [
|
|
17
|
+
{
|
|
18
|
+
type: "Step",
|
|
19
|
+
labelKey: "{{i18nScope}}.sections.details.label",
|
|
20
|
+
elements: [
|
|
21
|
+
{
|
|
22
|
+
type: "Section",
|
|
23
|
+
labelKey: "{{i18nScope}}.sections.basicInfo.label",
|
|
24
|
+
elements: [
|
|
25
|
+
{
|
|
26
|
+
labelKey: "{{i18nScope}}.fields.name.label",
|
|
27
|
+
scope: "/properties/name",
|
|
28
|
+
type: "Control",
|
|
29
|
+
options: {
|
|
30
|
+
messages: [
|
|
31
|
+
{
|
|
32
|
+
type: "ERROR",
|
|
33
|
+
keyword: "required",
|
|
34
|
+
icon: true,
|
|
35
|
+
labelKey: "{{i18nScope}}.fields.name.requiredError",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
labelKey: "{{i18nScope}}.fields.summary.label",
|
|
42
|
+
scope: "/properties/summary",
|
|
43
|
+
type: "Control",
|
|
44
|
+
options: {
|
|
45
|
+
control: "hub-field-input-input",
|
|
46
|
+
type: "textarea",
|
|
47
|
+
helperText: {
|
|
48
|
+
labelKey: "{{i18nScope}}.fields.summary.helperText",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
labelKey: "{{i18nScope}}.fields.status.label",
|
|
54
|
+
scope: "/properties/status",
|
|
55
|
+
type: "Control",
|
|
56
|
+
options: {
|
|
57
|
+
control: "hub-field-input-select",
|
|
58
|
+
enum: {
|
|
59
|
+
i18nScope: "{{i18nScope}}.fields.status.enum",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "Step",
|
|
69
|
+
labelKey: "{{i18nScope}}.sections.location.label",
|
|
70
|
+
rule: {
|
|
71
|
+
effect: core_1.UiSchemaRuleEffects.DISABLE,
|
|
72
|
+
condition: {
|
|
73
|
+
scope: "/properties/name",
|
|
74
|
+
schema: { const: "" },
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
elements: [
|
|
78
|
+
{
|
|
79
|
+
type: "Section",
|
|
80
|
+
labelKey: "{{i18nScope}}.sections.location.label",
|
|
81
|
+
elements: [
|
|
82
|
+
{
|
|
83
|
+
scope: "/properties/location",
|
|
84
|
+
type: "Control",
|
|
85
|
+
options: {
|
|
86
|
+
control: "hub-field-input-location-picker",
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: "Step",
|
|
95
|
+
labelKey: "{{i18nScope}}.sections.sharing.label",
|
|
96
|
+
rule: {
|
|
97
|
+
effect: core_1.UiSchemaRuleEffects.DISABLE,
|
|
98
|
+
condition: {
|
|
99
|
+
scope: "/properties/name",
|
|
100
|
+
schema: { const: "" },
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
elements: [
|
|
104
|
+
{
|
|
105
|
+
scope: "/properties/access",
|
|
106
|
+
type: "Control",
|
|
107
|
+
options: {
|
|
108
|
+
control: "arcgis-hub-access-level-controls",
|
|
109
|
+
itemType: "{{{{i18nScope}}.fields.access.itemType:translate}}",
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
labelKey: "{{i18nScope}}.fields.groups.label",
|
|
114
|
+
scope: "/properties/groups",
|
|
115
|
+
type: "Control",
|
|
116
|
+
options: {
|
|
117
|
+
control: "hub-field-input-combobox",
|
|
118
|
+
allowCustomValues: false,
|
|
119
|
+
selectionMode: "multiple",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
};
|
|
128
|
+
//# sourceMappingURL=SiteUiSchemaCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteUiSchemaCreate.js","sourceRoot":"","sources":["../../../../src/sites/_internal/SiteUiSchemaCreate.ts"],"names":[],"mappings":";;;AAAA,qCAA4D;AAE5D;;;;GAIG;AACU,QAAA,QAAQ,GAAc;IACjC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE;YAC3C,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,sCAAsC;oBAChD,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,SAAS;4BACf,QAAQ,EAAE,wCAAwC;4BAClD,QAAQ,EAAE;gCACR;oCACE,QAAQ,EAAE,iCAAiC;oCAC3C,KAAK,EAAE,kBAAkB;oCACzB,IAAI,EAAE,SAAS;oCACf,OAAO,EAAE;wCACP,QAAQ,EAAE;4CACR;gDACE,IAAI,EAAE,OAAO;gDACb,OAAO,EAAE,UAAU;gDACnB,IAAI,EAAE,IAAI;gDACV,QAAQ,EAAE,yCAAyC;6CACpD;yCACF;qCACF;iCACF;gCACD;oCACE,QAAQ,EAAE,oCAAoC;oCAC9C,KAAK,EAAE,qBAAqB;oCAC5B,IAAI,EAAE,SAAS;oCACf,OAAO,EAAE;wCACP,OAAO,EAAE,uBAAuB;wCAChC,IAAI,EAAE,UAAU;wCAChB,UAAU,EAAE;4CACV,QAAQ,EAAE,yCAAyC;yCACpD;qCACF;iCACF;gCACD;oCACE,QAAQ,EAAE,mCAAmC;oCAC7C,KAAK,EAAE,oBAAoB;oCAC3B,IAAI,EAAE,SAAS;oCACf,OAAO,EAAE;wCACP,OAAO,EAAE,wBAAw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"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uiSchema = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* complete edit uiSchema for Hub Projects - this defines
|
|
6
|
+
* how the schema properties should be rendered in the
|
|
7
|
+
* project editing experience
|
|
8
|
+
*/
|
|
9
|
+
exports.uiSchema = {
|
|
10
|
+
type: "Layout",
|
|
11
|
+
elements: [
|
|
12
|
+
{
|
|
13
|
+
type: "Section",
|
|
14
|
+
labelKey: "{{i18nScope}}.sections.basicInfo.label",
|
|
15
|
+
elements: [
|
|
16
|
+
{
|
|
17
|
+
labelKey: "{{i18nScope}}.fields.name.label",
|
|
18
|
+
scope: "/properties/name",
|
|
19
|
+
type: "Control",
|
|
20
|
+
options: {
|
|
21
|
+
messages: [
|
|
22
|
+
{
|
|
23
|
+
type: "ERROR",
|
|
24
|
+
keyword: "required",
|
|
25
|
+
icon: true,
|
|
26
|
+
labelKey: "{{i18nScope}}.fields.name.requiredError",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
labelKey: "{{i18nScope}}.fields.summary.label",
|
|
33
|
+
scope: "/properties/summary",
|
|
34
|
+
type: "Control",
|
|
35
|
+
options: {
|
|
36
|
+
control: "hub-field-input-input",
|
|
37
|
+
type: "textarea",
|
|
38
|
+
helperText: {
|
|
39
|
+
labelKey: "{{i18nScope}}.fields.summary.helperText",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
labelKey: "{{i18nScope}}.fields.description.label",
|
|
45
|
+
scope: "/properties/description",
|
|
46
|
+
type: "Control",
|
|
47
|
+
options: {
|
|
48
|
+
control: "hub-field-input-input",
|
|
49
|
+
type: "textarea",
|
|
50
|
+
helperText: {
|
|
51
|
+
labelKey: "{{i18nScope}}.fields.description.helperText",
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
labelKey: "{{i18nScope}}.fields.tags.label",
|
|
57
|
+
scope: "/properties/tags",
|
|
58
|
+
type: "Control",
|
|
59
|
+
options: {
|
|
60
|
+
control: "hub-field-input-combobox",
|
|
61
|
+
allowCustomValues: true,
|
|
62
|
+
selectionMode: "multiple",
|
|
63
|
+
placeholderIcon: "label",
|
|
64
|
+
helperText: { labelKey: "{{i18nScope}}.fields.tags.helperText" },
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
labelKey: "{{i18nScope}}.fields.categories.label",
|
|
69
|
+
scope: "/properties/categories",
|
|
70
|
+
type: "Control",
|
|
71
|
+
options: {
|
|
72
|
+
control: "hub-field-input-combobox",
|
|
73
|
+
allowCustomValues: false,
|
|
74
|
+
selectionMode: "multiple",
|
|
75
|
+
placeholderIcon: "select-category",
|
|
76
|
+
helperText: {
|
|
77
|
+
labelKey: "{{i18nScope}}.fields.categories.helperText",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
type: "Section",
|
|
85
|
+
labelKey: "{{i18nScope}}.sections.location.label",
|
|
86
|
+
options: {
|
|
87
|
+
helperText: {
|
|
88
|
+
labelKey: "{{i18nScope}}.sections.location.helperText",
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
elements: [
|
|
92
|
+
{
|
|
93
|
+
scope: "/properties/location",
|
|
94
|
+
type: "Control",
|
|
95
|
+
options: {
|
|
96
|
+
control: "hub-field-input-location-picker",
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=SiteUiSchemaEdit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/sites/_internal/SiteUiSchemaEdit.ts"],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AE,SAAS;oBACf,OAAO,EAAE;wBACP,OAAO,EAAE,0BAA0B;wBACnC,iBAAiB,EAAE,KAAK;wBACxB,aAAa,EAAE,UAAU;wBACzB,eAAe,EAAE,iBAAiB;wBAClC,UAAU,EAAE;4BACV,QAAQ,EAAE,4CAA4C;yBACvD;qBACF;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,uCAAuC;YACjD,OAAO,EAAE;gBACP,UAAU,EAAE;oBACV,QAAQ,EAAE,4CAA4C;iBACvD;aACF;YACD,QAAQ,EAAE;gBACR;oBACE,KAAK,EAAE,sBAAsB;oBAC7B,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACP,OAAO,EAAE,iCAAiC;qBAC3C;iBACF;aACF;SACF;KACF;CACF,CAAC"}
|
|
@@ -43,7 +43,7 @@ function getPropertyMap() {
|
|
|
43
43
|
modelKey: "item.properties.slug",
|
|
44
44
|
});
|
|
45
45
|
map.push({
|
|
46
|
-
objectKey: "
|
|
46
|
+
objectKey: "legacyCapabilities",
|
|
47
47
|
modelKey: "data.values.capabilities",
|
|
48
48
|
});
|
|
49
49
|
map.push({
|
|
@@ -58,6 +58,10 @@ function getPropertyMap() {
|
|
|
58
58
|
objectKey: "name",
|
|
59
59
|
modelKey: "item.title",
|
|
60
60
|
});
|
|
61
|
+
map.push({
|
|
62
|
+
objectKey: "location",
|
|
63
|
+
modelKey: "item.properties.location",
|
|
64
|
+
});
|
|
61
65
|
// Catalog mappings
|
|
62
66
|
// Since v1.x sites use data.catalog, which is really just `{groiups: []}`
|
|
63
67
|
// we can't overtly migrate data.catalog, but we can map the properties
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPropertyMap.js","sourceRoot":"","sources":["../../../../src/sites/_internal/getPropertyMap.ts"],"names":[],"mappings":";;;AACA,gFAA6E;AAE7E;;;;;;;GAOG;AACH,SAAgB,cAAc;IAC5B,MAAM,GAAG,GAAG,uCAAkB,EAAE,C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EAAE,gBAAgB,EAAE,CAAC,CAAC;IAC/D,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;IAEnE,OAAO,GAAG,CAAC;AACb,CAAC;AA7DD,wCA6DC"}
|
|
@@ -72,6 +72,11 @@ export interface IArcGISContext {
|
|
|
72
72
|
* For ArcGIS Enterprise this will return `undefined`
|
|
73
73
|
*/
|
|
74
74
|
hubUrl: string;
|
|
75
|
+
/**
|
|
76
|
+
* Returns the current user's hub-home url. If not authenticated,
|
|
77
|
+
* returns the Hub Url. If portal, returns undefined
|
|
78
|
+
*/
|
|
79
|
+
hubHomeUrl: string;
|
|
75
80
|
/**
|
|
76
81
|
* Returns boolean indicating if the backing system
|
|
77
82
|
* is ArcGIS Enterprise (formerly ArcGIS Portal) or not
|
|
@@ -215,6 +220,7 @@ export declare class ArcGISContext implements IArcGISContext {
|
|
|
215
220
|
private _authentication;
|
|
216
221
|
private _portalUrl;
|
|
217
222
|
private _hubUrl;
|
|
223
|
+
private _hubHomeUrl;
|
|
218
224
|
private _portalSelf;
|
|
219
225
|
private _currentUser;
|
|
220
226
|
private _properties;
|
|
@@ -268,6 +274,11 @@ export declare class ArcGISContext implements IArcGISContext {
|
|
|
268
274
|
* https://{portalHostname}/{webadaptor}
|
|
269
275
|
*/
|
|
270
276
|
get portalUrl(): string;
|
|
277
|
+
/**
|
|
278
|
+
* Returns the current user's hub-home url. If not authenticated,
|
|
279
|
+
* returns the Hub Url. If portal, returns undefined
|
|
280
|
+
*/
|
|
281
|
+
get hubHomeUrl(): string;
|
|
271
282
|
/**
|
|
272
283
|
* Returns the current user's Hub License
|
|
273
284
|
*/
|
|
@@ -5,7 +5,7 @@ import { UiSchemaElementOptions } from "./types";
|
|
|
5
5
|
* to the supported/defined uiSchema configurations
|
|
6
6
|
*/
|
|
7
7
|
export declare type EditorType = (typeof validEditorTypes)[number];
|
|
8
|
-
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:initiative:edit"];
|
|
8
|
+
export declare const validEditorTypes: readonly ["hub:project:create", "hub:project:edit", "hub:initiative:edit", "hub:site:edit"];
|
|
9
9
|
/**
|
|
10
10
|
* get the editor schema and uiSchema defined for an entity.
|
|
11
11
|
* The schema and uiSchema that are returned can be used to
|
|
@@ -62,7 +62,8 @@ export interface IHubSite extends IHubItemEntity, IWithSlug, IWithCatalog, IWith
|
|
|
62
62
|
*/
|
|
63
63
|
headerSass: string;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Legacy capabilities
|
|
66
|
+
* @internal
|
|
66
67
|
*/
|
|
67
|
-
|
|
68
|
+
legacyCapabilities: string[];
|
|
68
69
|
}
|
|
@@ -54,12 +54,21 @@ export declare function deleteSite(id: string, requestOptions: IHubRequestOption
|
|
|
54
54
|
*/
|
|
55
55
|
export declare function fetchSite(identifier: string, requestOptions: IHubRequestOptions): Promise<IHubSite>;
|
|
56
56
|
/**
|
|
57
|
+
* @internal
|
|
57
58
|
* Convert an IModel for a Hub Site Item into an IHubSite
|
|
58
59
|
* @param model
|
|
59
60
|
* @param requestOptions
|
|
60
61
|
* @returns
|
|
61
62
|
*/
|
|
62
63
|
export declare function convertModelToSite(model: IModel, requestOptions: IRequestOptions): IHubSite;
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* Convert an IHubSite into an IModel
|
|
67
|
+
* @param site
|
|
68
|
+
* @param requestOptions
|
|
69
|
+
* @returns
|
|
70
|
+
*/
|
|
71
|
+
export declare function convertSiteToModel(site: IHubSite, requestOptions: IRequestOptions): IModel;
|
|
63
72
|
/**
|
|
64
73
|
* Convert a Hub Site Application item into a Hub Site, fetching any
|
|
65
74
|
* additional information that may be required
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IConfigurationSchema } from "../../core";
|
|
2
|
+
export declare type SiteEditorType = (typeof SiteEditorTypes)[number];
|
|
3
|
+
export declare const SiteEditorTypes: readonly ["hub:site:edit"];
|
|
4
|
+
/**
|
|
5
|
+
* defines the JSON schema for a Hub Site's editable fields
|
|
6
|
+
*/
|
|
7
|
+
export declare const SiteSchema: IConfigurationSchema;
|