@esri/hub-common 14.57.0 → 14.58.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.
@@ -7,8 +7,8 @@ export const DiscussionEditorTypes = [
7
7
  /**
8
8
  * defines the JSON schema for a Discussion's editable fields
9
9
  */
10
- export const DiscussionSchema = Object.assign(Object.assign({}, HubItemEntitySchema), { properties: Object.assign(Object.assign({}, HubItemEntitySchema.properties), { prompt: {
10
+ export const DiscussionSchema = Object.assign(Object.assign({}, HubItemEntitySchema), { required: ["name", "prompt"], properties: Object.assign(Object.assign({}, HubItemEntitySchema.properties), { prompt: {
11
11
  type: "string",
12
- default: "We want to hear from you!",
12
+ default: "",
13
13
  } }) });
14
14
  //# sourceMappingURL=DiscussionSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiscussionSchema.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAGpF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,qBAAqB;IACrB,uBAAuB;IACvB,yBAAyB;CACjB,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAyB,gCACjD,mBAAmB,KACtB,UAAU,kCACL,mBAAmB,CAAC,UAAU,KACjC,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,2BAA2B;SACrC,MAEoB,CAAC"}
1
+ {"version":3,"file":"DiscussionSchema.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAGpF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,qBAAqB;IACrB,uBAAuB;IACvB,yBAAyB;CACjB,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAyB,gCACjD,mBAAmB,KACtB,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC5B,UAAU,kCACL,mBAAmB,CAAC,UAAU,KACjC,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;SACZ,MAEoB,CAAC"}
@@ -29,6 +29,24 @@ export const buildUiSchema = async (i18nScope, options, context) => {
29
29
  ],
30
30
  },
31
31
  },
32
+ {
33
+ labelKey: `${i18nScope}.fields.prompt.label`,
34
+ scope: "/properties/prompt",
35
+ type: "Control",
36
+ options: {
37
+ helperText: {
38
+ labelKey: `${i18nScope}.fields.prompt.helperText`,
39
+ },
40
+ messages: [
41
+ {
42
+ type: "ERROR",
43
+ keyword: "required",
44
+ icon: true,
45
+ labelKey: `${i18nScope}.fields.prompt.requiredError`,
46
+ },
47
+ ],
48
+ },
49
+ },
32
50
  ],
33
51
  };
34
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DiscussionUiSchemaCreate.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionUiSchemaCreate.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gBAC1C,KAAK,EAAE,kBAAkB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yBACnD;wBACD;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,WAAW;4BACpB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,oCAAoC;yBAC/C;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"DiscussionUiSchemaCreate.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionUiSchemaCreate.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gBAC1C,KAAK,EAAE,kBAAkB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yBACnD;wBACD;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,WAAW;4BACpB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,oCAAoC;yBAC/C;qBACF;iBACF;aACF;YACD;gBACE,QAAQ,EAAE,GAAG,SAAS,sBAAsB;gBAC5C,KAAK,EAAE,oBAAoB;gBAC3B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,2BAA2B;qBAClD;oBACD,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,8BAA8B;yBACrD;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- import { getAuthedImageUrl } from "../../core/schemas/internal/getAuthedImageUrl";
2
1
  import { getTagItems } from "../../core/schemas/internal/getTagItems";
3
2
  import { getCategoryItems } from "../../core/schemas/internal/getCategoryItems";
4
3
  import { getLocationExtent } from "../../core/schemas/internal/getLocationExtent";
@@ -11,7 +10,6 @@ import { getThumbnailUiSchemaElement } from "../../core/schemas/internal/getThum
11
10
  * rendered in the discussion editing experience
12
11
  */
13
12
  export const buildUiSchema = async (i18nScope, options, context) => {
14
- var _a;
15
13
  return {
16
14
  type: "Layout",
17
15
  elements: [
@@ -58,70 +56,34 @@ export const buildUiSchema = async (i18nScope, options, context) => {
58
56
  ],
59
57
  },
60
58
  },
61
- {
62
- labelKey: `${i18nScope}.fields.summary.label`,
63
- scope: "/properties/summary",
64
- type: "Control",
65
- options: {
66
- control: "hub-field-input-input",
67
- type: "textarea",
68
- rows: 4,
69
- helperText: {
70
- labelKey: `${i18nScope}.fields.summary.helperText`,
71
- },
72
- messages: [
73
- {
74
- type: "ERROR",
75
- keyword: "maxLength",
76
- icon: true,
77
- labelKey: `shared.fields.purpose.maxLengthError`,
78
- },
79
- ],
80
- },
81
- },
82
- {
83
- labelKey: `${i18nScope}.fields.description.label`,
84
- scope: "/properties/description",
85
- type: "Control",
86
- options: {
87
- control: "hub-field-input-input",
88
- type: "textarea",
89
- helperText: {
90
- labelKey: `${i18nScope}.fields.description.helperText`,
91
- },
92
- },
93
- },
94
59
  getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl),
95
- {
96
- labelKey: `${i18nScope}.fields.featuredImage.label`,
97
- scope: "/properties/view/properties/featuredImage",
98
- type: "Control",
99
- options: {
100
- control: "hub-field-input-image-picker",
101
- imgSrc: getAuthedImageUrl((_a = options.view) === null || _a === void 0 ? void 0 : _a.featuredImageUrl, context),
102
- maxWidth: 727,
103
- maxHeight: 484,
104
- aspectRatio: 1.5,
105
- sizeDescription: {
106
- labelKey: `${i18nScope}.fields.featuredImage.sizeDescription`,
107
- },
108
- },
60
+ ],
61
+ },
62
+ {
63
+ type: "Section",
64
+ labelKey: `${i18nScope}.sections.location.label`,
65
+ options: {
66
+ helperText: {
67
+ labelKey: `${i18nScope}.sections.location.helperText`,
109
68
  },
69
+ },
70
+ elements: [
110
71
  {
111
- labelKey: `${i18nScope}.fields.featuredImage.altText.label`,
112
- scope: "/properties/view/properties/featuredImageAltText",
72
+ scope: "/properties/location",
113
73
  type: "Control",
114
74
  options: {
115
- helperText: {
116
- labelKey: `${i18nScope}.fields.featuredImage.altText.helperText`,
117
- },
75
+ control: "hub-field-input-location-picker",
76
+ extent: await getLocationExtent(options.location, context.hubRequestOptions),
77
+ options: await getLocationOptions(options.id, options.type, options.location, context.portal.name, context.hubRequestOptions),
78
+ mapTools: ["polygon", "rectangle"],
118
79
  },
119
80
  },
120
- {
121
- labelKey: `${i18nScope}.fields.featuredImage.name.label`,
122
- scope: "/properties/view/properties/featuredImageName",
123
- type: "Control",
124
- },
81
+ ],
82
+ },
83
+ {
84
+ type: "Section",
85
+ labelKey: `${i18nScope}.sections.searchDiscoverability.label`,
86
+ elements: [
125
87
  {
126
88
  labelKey: `${i18nScope}.fields.tags.label`,
127
89
  scope: "/properties/tags",
@@ -146,25 +108,37 @@ export const buildUiSchema = async (i18nScope, options, context) => {
146
108
  placeholderIcon: "select-category",
147
109
  },
148
110
  },
149
- ],
150
- },
151
- {
152
- type: "Section",
153
- labelKey: `${i18nScope}.sections.location.label`,
154
- options: {
155
- helperText: {
156
- labelKey: `${i18nScope}.sections.location.helperText`,
111
+ {
112
+ labelKey: `${i18nScope}.fields.summary.label`,
113
+ scope: "/properties/summary",
114
+ type: "Control",
115
+ options: {
116
+ control: "hub-field-input-input",
117
+ type: "textarea",
118
+ rows: 4,
119
+ helperText: {
120
+ labelKey: `${i18nScope}.fields.summary.helperText`,
121
+ },
122
+ messages: [
123
+ {
124
+ type: "ERROR",
125
+ keyword: "maxLength",
126
+ icon: true,
127
+ labelKey: `shared.fields.purpose.maxLengthError`,
128
+ },
129
+ ],
130
+ },
157
131
  },
158
- },
159
- elements: [
160
132
  {
161
- scope: "/properties/location",
133
+ labelKey: `${i18nScope}.fields.description.label`,
134
+ scope: "/properties/description",
162
135
  type: "Control",
163
136
  options: {
164
- control: "hub-field-input-location-picker",
165
- extent: await getLocationExtent(options.location, context.hubRequestOptions),
166
- options: await getLocationOptions(options.id, options.type, options.location, context.portal.name, context.hubRequestOptions),
167
- mapTools: ["polygon", "rectangle"],
137
+ control: "hub-field-input-input",
138
+ type: "textarea",
139
+ helperText: {
140
+ labelKey: `${i18nScope}.fields.description.helperText`,
141
+ },
168
142
  },
169
143
  },
170
144
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"DiscussionUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionUiSchemaEdit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AAGtG;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAAgC,EAChC,OAAuB,EACH,EAAE;;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,GAAG,SAAS,4BAA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CAAC,MAAM,CAAC,EAAE,EACjB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,iBAAiB,EAAE,KAAK;4BACxB,aAAa,EAAE,UAAU;4BACzB,eAAe,EAAE,iBAAiB;yBACnC;qBACF;iBACF;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,0BAA0B;gBAChD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,+BAA+B;qBACtD;iBACF;gBACD,QAAQ,EAAE;oBACR;wBACE,KAAK,EAAE,sBAAsB;wBAC7B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,iCAAiC;4BAC1C,MAAM,EAAE,MAAM,iBAAiB,CAC7B,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,OAAO,EAAE,MAAM,kBAAkB,CAC/B,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,IAAI,EACnB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;yBACnC;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"DiscussionUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionUiSchemaEdit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAClF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yDAAyD,CAAC;AAGtG;;;;;GAKG;AACH,MAAM,CAAC,MAAM,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oBACD;wBACE,QAAQ,EAAE,GAAG,SAAS,uBAAuB;wBAC7C,KAAK,EAAE,qBAAqB;wBAC5B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,uBAAuB;4BAChC,IAAI,EAAE,UAAU;4BAChB,IAAI,EAAE,CAAC;4BACP,UAAU,EAAE;gCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;6BACnD;4BACD,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;oCACpB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,sCAAsC;iCACjD;6BACF;yBACF;qBACF;oBACD;wBACE,QAAQ,EAAE,GAAG,SAAS,2BAA2B;wBACjD,KAAK,EAAE,yBAAyB;wBAChC,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,uBAAuB;4BAChC,IAAI,EAAE,UAAU;4BAChB,UAAU,EAAE;gCACV,QAAQ,EAAE,GAAG,SAAS,gCAAgC;6BACvD;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -3,7 +3,7 @@ export const HUB_DISCUSSION_ITEM_TYPE = "Discussion";
3
3
  * Default values of a IHubDiscussion
4
4
  */
5
5
  export const DEFAULT_DISCUSSION = {
6
- name: "No title provided",
6
+ name: "",
7
7
  tags: [],
8
8
  typeKeywords: ["Hub Discussion"],
9
9
  permissions: [],
@@ -16,8 +16,8 @@ export const DEFAULT_DISCUSSION = {
16
16
  export const DEFAULT_DISCUSSION_MODEL = {
17
17
  item: {
18
18
  type: HUB_DISCUSSION_ITEM_TYPE,
19
- title: "No Title Provided",
20
- description: "No Description Provided",
19
+ title: "",
20
+ description: "",
21
21
  snippet: "",
22
22
  tags: [],
23
23
  typeKeywords: ["Hub Discussion"],
@@ -27,7 +27,7 @@ export const DEFAULT_DISCUSSION_MODEL = {
27
27
  },
28
28
  },
29
29
  data: {
30
- prompt: "We want to hear from you!",
30
+ prompt: "",
31
31
  },
32
32
  };
33
33
  //# sourceMappingURL=defaults.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/discussions/defaults.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC;AAErD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA4B;IACzD,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,EAAE;IACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;IAChC,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAW;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,wBAAwB;QAC9B,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,EAAE;QACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,UAAU,EAAE;YACV,IAAI,EAAE,EAAE;YACR,aAAa,EAAE,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,2BAA2B;KACpC;CACmB,CAAC"}
1
+ {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/discussions/defaults.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAC;AAErD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA4B;IACzD,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;IAChC,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAW;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,wBAAwB;QAC9B,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,EAAE;QACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,UAAU,EAAE;YACV,IAAI,EAAE,EAAE;YACR,aAAa,EAAE,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,EAAE;KACX;CACmB,CAAC"}
@@ -10,8 +10,8 @@ exports.DiscussionEditorTypes = [
10
10
  /**
11
11
  * defines the JSON schema for a Discussion's editable fields
12
12
  */
13
- exports.DiscussionSchema = Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema), { properties: Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema.properties), { prompt: {
13
+ exports.DiscussionSchema = Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema), { required: ["name", "prompt"], properties: Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema.properties), { prompt: {
14
14
  type: "string",
15
- default: "We want to hear from you!",
15
+ default: "",
16
16
  } }) });
17
17
  //# sourceMappingURL=DiscussionSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiscussionSchema.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionSchema.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AAGvE,QAAA,qBAAqB,GAAG;IACnC,qBAAqB;IACrB,uBAAuB;IACvB,yBAAyB;CACjB,CAAC;AAEX;;GAEG;AACU,QAAA,gBAAgB,GAAyB,gCACjD,yCAAmB,KACtB,UAAU,kCACL,yCAAmB,CAAC,UAAU,KACjC,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,2BAA2B;SACrC,MAEoB,CAAC"}
1
+ {"version":3,"file":"DiscussionSchema.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionSchema.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AAGvE,QAAA,qBAAqB,GAAG;IACnC,qBAAqB;IACrB,uBAAuB;IACvB,yBAAyB;CACjB,CAAC;AAEX;;GAEG;AACU,QAAA,gBAAgB,GAAyB,gCACjD,yCAAmB,KACtB,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC5B,UAAU,kCACL,yCAAmB,CAAC,UAAU,KACjC,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;SACZ,MAEoB,CAAC"}
@@ -32,6 +32,24 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
32
32
  ],
33
33
  },
34
34
  },
35
+ {
36
+ labelKey: `${i18nScope}.fields.prompt.label`,
37
+ scope: "/properties/prompt",
38
+ type: "Control",
39
+ options: {
40
+ helperText: {
41
+ labelKey: `${i18nScope}.fields.prompt.helperText`,
42
+ },
43
+ messages: [
44
+ {
45
+ type: "ERROR",
46
+ keyword: "required",
47
+ icon: true,
48
+ labelKey: `${i18nScope}.fields.prompt.requiredError`,
49
+ },
50
+ ],
51
+ },
52
+ },
35
53
  ],
36
54
  };
37
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DiscussionUiSchemaCreate.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionUiSchemaCreate.ts"],"names":[],"mappings":";;;AAGA;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gBAC1C,KAAK,EAAE,kBAAkB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yBACnD;wBACD;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,WAAW;4BACpB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,oCAAoC;yBAC/C;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"DiscussionUiSchemaCreate.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionUiSchemaCreate.ts"],"names":[],"mappings":";;;AAGA;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAA4B,EAC5B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gBAC1C,KAAK,EAAE,kBAAkB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yBACnD;wBACD;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,WAAW;4BACpB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,oCAAoC;yBAC/C;qBACF;iBACF;aACF;YACD;gBACE,QAAQ,EAAE,GAAG,SAAS,sBAAsB;gBAC5C,KAAK,EAAE,oBAAoB;gBAC3B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,2BAA2B;qBAClD;oBACD,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,8BAA8B;yBACrD;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildUiSchema = void 0;
4
- const getAuthedImageUrl_1 = require("../../core/schemas/internal/getAuthedImageUrl");
5
4
  const getTagItems_1 = require("../../core/schemas/internal/getTagItems");
6
5
  const getCategoryItems_1 = require("../../core/schemas/internal/getCategoryItems");
7
6
  const getLocationExtent_1 = require("../../core/schemas/internal/getLocationExtent");
@@ -14,7 +13,6 @@ const getThumbnailUiSchemaElement_1 = require("../../core/schemas/internal/getTh
14
13
  * rendered in the discussion editing experience
15
14
  */
16
15
  exports.buildUiSchema = async (i18nScope, options, context) => {
17
- var _a;
18
16
  return {
19
17
  type: "Layout",
20
18
  elements: [
@@ -61,70 +59,34 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
61
59
  ],
62
60
  },
63
61
  },
64
- {
65
- labelKey: `${i18nScope}.fields.summary.label`,
66
- scope: "/properties/summary",
67
- type: "Control",
68
- options: {
69
- control: "hub-field-input-input",
70
- type: "textarea",
71
- rows: 4,
72
- helperText: {
73
- labelKey: `${i18nScope}.fields.summary.helperText`,
74
- },
75
- messages: [
76
- {
77
- type: "ERROR",
78
- keyword: "maxLength",
79
- icon: true,
80
- labelKey: `shared.fields.purpose.maxLengthError`,
81
- },
82
- ],
83
- },
84
- },
85
- {
86
- labelKey: `${i18nScope}.fields.description.label`,
87
- scope: "/properties/description",
88
- type: "Control",
89
- options: {
90
- control: "hub-field-input-input",
91
- type: "textarea",
92
- helperText: {
93
- labelKey: `${i18nScope}.fields.description.helperText`,
94
- },
95
- },
96
- },
97
62
  getThumbnailUiSchemaElement_1.getThumbnailUiSchemaElement(i18nScope, options.thumbnail, options.thumbnailUrl),
98
- {
99
- labelKey: `${i18nScope}.fields.featuredImage.label`,
100
- scope: "/properties/view/properties/featuredImage",
101
- type: "Control",
102
- options: {
103
- control: "hub-field-input-image-picker",
104
- imgSrc: getAuthedImageUrl_1.getAuthedImageUrl((_a = options.view) === null || _a === void 0 ? void 0 : _a.featuredImageUrl, context),
105
- maxWidth: 727,
106
- maxHeight: 484,
107
- aspectRatio: 1.5,
108
- sizeDescription: {
109
- labelKey: `${i18nScope}.fields.featuredImage.sizeDescription`,
110
- },
111
- },
63
+ ],
64
+ },
65
+ {
66
+ type: "Section",
67
+ labelKey: `${i18nScope}.sections.location.label`,
68
+ options: {
69
+ helperText: {
70
+ labelKey: `${i18nScope}.sections.location.helperText`,
112
71
  },
72
+ },
73
+ elements: [
113
74
  {
114
- labelKey: `${i18nScope}.fields.featuredImage.altText.label`,
115
- scope: "/properties/view/properties/featuredImageAltText",
75
+ scope: "/properties/location",
116
76
  type: "Control",
117
77
  options: {
118
- helperText: {
119
- labelKey: `${i18nScope}.fields.featuredImage.altText.helperText`,
120
- },
78
+ control: "hub-field-input-location-picker",
79
+ extent: await getLocationExtent_1.getLocationExtent(options.location, context.hubRequestOptions),
80
+ options: await getLocationOptions_1.getLocationOptions(options.id, options.type, options.location, context.portal.name, context.hubRequestOptions),
81
+ mapTools: ["polygon", "rectangle"],
121
82
  },
122
83
  },
123
- {
124
- labelKey: `${i18nScope}.fields.featuredImage.name.label`,
125
- scope: "/properties/view/properties/featuredImageName",
126
- type: "Control",
127
- },
84
+ ],
85
+ },
86
+ {
87
+ type: "Section",
88
+ labelKey: `${i18nScope}.sections.searchDiscoverability.label`,
89
+ elements: [
128
90
  {
129
91
  labelKey: `${i18nScope}.fields.tags.label`,
130
92
  scope: "/properties/tags",
@@ -149,25 +111,37 @@ exports.buildUiSchema = async (i18nScope, options, context) => {
149
111
  placeholderIcon: "select-category",
150
112
  },
151
113
  },
152
- ],
153
- },
154
- {
155
- type: "Section",
156
- labelKey: `${i18nScope}.sections.location.label`,
157
- options: {
158
- helperText: {
159
- labelKey: `${i18nScope}.sections.location.helperText`,
114
+ {
115
+ labelKey: `${i18nScope}.fields.summary.label`,
116
+ scope: "/properties/summary",
117
+ type: "Control",
118
+ options: {
119
+ control: "hub-field-input-input",
120
+ type: "textarea",
121
+ rows: 4,
122
+ helperText: {
123
+ labelKey: `${i18nScope}.fields.summary.helperText`,
124
+ },
125
+ messages: [
126
+ {
127
+ type: "ERROR",
128
+ keyword: "maxLength",
129
+ icon: true,
130
+ labelKey: `shared.fields.purpose.maxLengthError`,
131
+ },
132
+ ],
133
+ },
160
134
  },
161
- },
162
- elements: [
163
135
  {
164
- scope: "/properties/location",
136
+ labelKey: `${i18nScope}.fields.description.label`,
137
+ scope: "/properties/description",
165
138
  type: "Control",
166
139
  options: {
167
- control: "hub-field-input-location-picker",
168
- extent: await getLocationExtent_1.getLocationExtent(options.location, context.hubRequestOptions),
169
- options: await getLocationOptions_1.getLocationOptions(options.id, options.type, options.location, context.portal.name, context.hubRequestOptions),
170
- mapTools: ["polygon", "rectangle"],
140
+ control: "hub-field-input-input",
141
+ type: "textarea",
142
+ helperText: {
143
+ labelKey: `${i18nScope}.fields.description.helperText`,
144
+ },
171
145
  },
172
146
  },
173
147
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"DiscussionUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionUiSchemaEdit.ts"],"names":[],"mappings":";;;AAEA,qFAAkF;AAClF,yEAAsE;AACtE,mFAAgF;AAChF,qFAAkF;AAClF,uFAAoF;AACpF,yGAAsG;AAGtG;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAAgC,EAChC,OAAuB,EACH,EAAE;;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,QAAQ,EAAE;oBACR;wBACE,QAAQ,EAAE,GAAG,SAAS,oBAAoB;wBAC1C,KAAK,EAAE,kBAAkB;wBACzB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,UAAU;oCACnB,IAAI,EAAE,IAAI;oCACV,QAAQ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AAM,mCAAgB,CAC3B,OAAO,CAAC,MAAM,CAAC,EAAE,EACjB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,iBAAiB,EAAE,KAAK;4BACxB,aAAa,EAAE,UAAU;4BACzB,eAAe,EAAE,iBAAiB;yBACnC;qBACF;iBACF;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GAAG,SAAS,0BAA0B;gBAChD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,+BAA+B;qBACtD;iBACF;gBACD,QAAQ,EAAE;oBACR;wBACE,KAAK,EAAE,sBAAsB;wBAC7B,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,iCAAiC;4BAC1C,MAAM,EAAE,MAAM,qCAAiB,CAC7B,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,OAAO,EAAE,MAAM,uCAAkB,CAC/B,OAAO,CAAC,EAAE,EACV,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,QAAQ,EAChB,OAAO,CAAC,MAAM,CAAC,IAAI,EACnB,OAAO,CAAC,iBAAiB,CAC1B;4BACD,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;yBACnC;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"DiscussionUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/discussions/_internal/DiscussionUiSchemaEdit.ts"],"names":[],"mappings":";;;AAGA,yEAAsE;AACtE,mFAAgF;AAChF,qFAAkF;AAClF,uFAAoF;AACpF,yGAAsG;AAGtG;;;;;GAKG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,OAAgC,EAChC,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,GA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BAChB,IAAI,EAAE,CAAC;4BACP,UAAU,EAAE;gCACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;6BACnD;4BACD,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,OAAO;oCACb,OAAO,EAAE,WAAW;oCACpB,IAAI,EAAE,IAAI;oCACV,QAAQ,EAAE,sCAAsC;iCACjD;6BACF;yBACF;qBACF;oBACD;wBACE,QAAQ,EAAE,GAAG,SAAS,2BAA2B;wBACjD,KAAK,EAAE,yBAAyB;wBAChC,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACP,OAAO,EAAE,uBAAuB;4BAChC,IAAI,EAAE,UAAU;4BAChB,UAAU,EAAE;gCACV,QAAQ,EAAE,GAAG,SAAS,gCAAgC;6BACvD;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -6,7 +6,7 @@ exports.HUB_DISCUSSION_ITEM_TYPE = "Discussion";
6
6
  * Default values of a IHubDiscussion
7
7
  */
8
8
  exports.DEFAULT_DISCUSSION = {
9
- name: "No title provided",
9
+ name: "",
10
10
  tags: [],
11
11
  typeKeywords: ["Hub Discussion"],
12
12
  permissions: [],
@@ -19,8 +19,8 @@ exports.DEFAULT_DISCUSSION = {
19
19
  exports.DEFAULT_DISCUSSION_MODEL = {
20
20
  item: {
21
21
  type: exports.HUB_DISCUSSION_ITEM_TYPE,
22
- title: "No Title Provided",
23
- description: "No Description Provided",
22
+ title: "",
23
+ description: "",
24
24
  snippet: "",
25
25
  tags: [],
26
26
  typeKeywords: ["Hub Discussion"],
@@ -30,7 +30,7 @@ exports.DEFAULT_DISCUSSION_MODEL = {
30
30
  },
31
31
  },
32
32
  data: {
33
- prompt: "We want to hear from you!",
33
+ prompt: "",
34
34
  },
35
35
  };
36
36
  //# sourceMappingURL=defaults.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/discussions/defaults.ts"],"names":[],"mappings":";;;AAGa,QAAA,wBAAwB,GAAG,YAAY,CAAC;AAErD;;GAEG;AACU,QAAA,kBAAkB,GAA4B;IACzD,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,EAAE;IACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;IAChC,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF;;GAEG;AACU,QAAA,wBAAwB,GAAW;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,gCAAwB;QAC9B,KAAK,EAAE,mBAAmB;QAC1B,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,EAAE;QACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,UAAU,EAAE;YACV,IAAI,EAAE,EAAE;YACR,aAAa,EAAE,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,2BAA2B;KACpC;CACmB,CAAC"}
1
+ {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../../src/discussions/defaults.ts"],"names":[],"mappings":";;;AAGa,QAAA,wBAAwB,GAAG,YAAY,CAAC;AAErD;;GAEG;AACU,QAAA,kBAAkB,GAA4B;IACzD,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;IAChC,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,CAAC;IAChB,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF;;GAEG;AACU,QAAA,wBAAwB,GAAW;IAC9C,IAAI,EAAE;QACJ,IAAI,EAAE,gCAAwB;QAC9B,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,EAAE;QACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;QAChC,UAAU,EAAE;YACV,IAAI,EAAE,EAAE;YACR,aAAa,EAAE,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,EAAE;KACX;CACmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "14.57.0",
3
+ "version": "14.58.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",