@esri/hub-common 14.25.1 → 14.26.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.
@@ -16,6 +16,7 @@ export const InitiativeTemplatePermissions = [
16
16
  "hub:initiativeTemplate:edit",
17
17
  "hub:initiativeTemplate:view",
18
18
  "hub:initiativeTemplate:workspace:overview",
19
+ "hub:initiativeTemplate:workspace:dashboard",
19
20
  "hub:initiativeTemplate:workspace:details",
20
21
  "hub:initiativeTemplate:workspace:collaborators",
21
22
  "hub:initiativeTemplate:workspace:settings",
@@ -47,10 +48,20 @@ export const InitiativeTemplatePermissionPolicies = [
47
48
  authenticated: true,
48
49
  entityEdit: true,
49
50
  },
51
+ {
52
+ permission: "hub:initiativeTemplate:delete",
53
+ dependencies: ["hub:initiativeTemplate"],
54
+ authenticated: true,
55
+ entityOwner: true,
56
+ },
50
57
  {
51
58
  permission: "hub:initiativeTemplate:workspace:overview",
52
59
  dependencies: ["hub:initiativeTemplate:view"],
53
60
  },
61
+ {
62
+ permission: "hub:initiativeTemplate:workspace:dashboard",
63
+ dependencies: ["hub:initiativeTemplate:edit"],
64
+ },
54
65
  {
55
66
  permission: "hub:initiativeTemplate:workspace:details",
56
67
  dependencies: ["hub:initiativeTemplate:edit"],
@@ -1 +1 @@
1
- {"version":3,"file":"InitiativeTemplateBusinessRules.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateBusinessRules.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAkB;AAC9D,gBAAgB;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,wBAAwB;IACxB,+BAA+B;IAC/B,+BAA+B;IAC/B,6BAA6B;IAC7B,6BAA6B;IAC7B,2CAA2C;IAC3C,0CAA0C;IAC1C,gDAAgD;IAChD,2CAA2C;IAC3C,+BAA+B;CACvB,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAwB;IACvE;QACE,UAAU,EAAE,wBAAwB;QACpC,YAAY,EAAE,CAAC,OAAO,CAAC;QACvB,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD;QACE,UAAU,EAAE,+BAA+B;QAC3C,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,CAAC,wBAAwB,CAAC;KACvC;IACD;QACE,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,CAAC,wBAAwB,CAAC;KACzC;IACD;QACE,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACjB;IACD;QACE,UAAU,EAAE,2CAA2C;QACvD,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,0CAA0C;QACtD,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,gDAAgD;QAC5D,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,2CAA2C;QACvD,YAAY,EAAE,CAAC,6BAA6B,CAAC;QAC7C,WAAW,EAAE,IAAI;KAClB;IACD;QACE,UAAU,EAAE,+BAA+B;QAC3C,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;CACF,CAAC"}
1
+ {"version":3,"file":"InitiativeTemplateBusinessRules.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateBusinessRules.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAkB;AAC9D,gBAAgB;CACjB,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,wBAAwB;IACxB,+BAA+B;IAC/B,+BAA+B;IAC/B,6BAA6B;IAC7B,6BAA6B;I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+2,9 @@ import { HubItemEntitySchema } from "../../core/schemas/shared/HubItemEntitySche
2
2
  export const InitiativeTemplateEditorTypes = [
3
3
  "hub:initiativeTemplate:edit",
4
4
  ];
5
- export const InitiativeTemplateSchema = Object.assign(Object.assign({}, HubItemEntitySchema), { properties: Object.assign({}, HubItemEntitySchema.properties) });
5
+ export const InitiativeTemplateSchema = Object.assign(Object.assign({}, HubItemEntitySchema), { properties: Object.assign(Object.assign({}, HubItemEntitySchema.properties), { previewUrl: {
6
+ type: "string",
7
+ if: { minLength: 1 },
8
+ then: { format: "uri" },
9
+ } }) });
6
10
  //# sourceMappingURL=InitiativeTemplateSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InitiativeTemplateSchema.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAKpF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,6BAA6B;CACrB,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAyB,gCACzD,mBAAmB,KACtB,UAAU,oBACL,mBAAmB,CAAC,UAAU,IAEZ,CAAC"}
1
+ {"version":3,"file":"InitiativeTemplateSchema.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateSchema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAKpF,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,6BAA6B;CACrB,CAAC;AAEX,MAAM,CAAC,MAAM,wBAAwB,GAAyB,gCACzD,mBAAmB,KACtB,UAAU,kCACL,mBAAmB,CAAC,UAAU,KACjC,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;YACpB,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SACxB,MAGoB,CAAC"}
@@ -29,6 +29,59 @@ export const buildUiSchema = async (i18nScope, entity, context) => {
29
29
  ],
30
30
  },
31
31
  },
32
+ {
33
+ type: "Control",
34
+ scope: "/properties/previewUrl",
35
+ labelKey: `${i18nScope}.fields.previewUrl.label`,
36
+ options: {
37
+ helperText: {
38
+ labelKey: `${i18nScope}.fields.previewUrl.helperText`,
39
+ },
40
+ messages: [
41
+ {
42
+ type: "ERROR",
43
+ keyword: "if",
44
+ hidden: true,
45
+ },
46
+ ],
47
+ },
48
+ },
49
+ {
50
+ type: "Control",
51
+ scope: "/properties/summary",
52
+ labelKey: `${i18nScope}.fields.summary.label`,
53
+ options: {
54
+ control: "hub-field-input-input",
55
+ type: "textarea",
56
+ },
57
+ },
58
+ {
59
+ type: "Control",
60
+ scope: "/properties/description",
61
+ labelKey: `${i18nScope}.fields.description.label`,
62
+ options: {
63
+ control: "hub-field-input-input",
64
+ type: "textarea",
65
+ },
66
+ },
67
+ {
68
+ type: "Control",
69
+ scope: "/properties/_thumbnail",
70
+ labelKey: `${i18nScope}.fields._thumbnail.label`,
71
+ options: {
72
+ control: "hub-field-input-image-picker",
73
+ imgSrc: entity.thumbnailUrl,
74
+ maxWidth: 727,
75
+ maxHeight: 484,
76
+ aspectRatio: 1.5,
77
+ helperText: {
78
+ labelKey: `${i18nScope}.fields._thumbnail.helperText`,
79
+ },
80
+ sizeDescription: {
81
+ labelKey: `${i18nScope}.fields._thumbnail.sizeDescription`,
82
+ },
83
+ },
84
+ },
32
85
  ],
33
86
  };
34
87
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InitiativeTemplateUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAE3E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,MAA8B,EAC9B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,kBAAkB;gBACzB,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gBAC1C,OAAO,EAAE;oBACP,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,oBAAoB,CAAC,KAAK;4BAChC,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yBACnD;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"InitiativeTemplateUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAE3E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,MAA8B,EAC9B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,kBAAkB;gBACzB,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gBAC1C,OAAO,EAAE;oBACP,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,oBAAoB,CAAC,KAAK;4BAChC,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yBACnD;qBACF;iBACF;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,wBAAwB;gBAC/B,QAAQ,EAAE,GAAG,SAAS,0BAA0B;gBAChD,OAAO,EAAE;oBACP,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,+BAA+B;qBACtD;oBACD,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,OAAO;4BACb,OAAO,EAAE,IAAI;4BACb,MAAM,EAAE,IAAI;yBACb;qBACF;iBACF;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,qBAAqB;gBAC5B,QAAQ,EAAE,GAAG,SAAS,uBAAuB;gBAC7C,OAAO,EAAE;oBACP,OAAO,EAAE,uBAAuB;oBAChC,IAAI,EAAE,UAAU;iBACjB;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,yBAAyB;gBAChC,QAAQ,EAAE,GAAG,SAAS,2BAA2B;gBACjD,OAAO,EAAE;oBACP,OAAO,EAAE,uBAAuB;oBAChC,IAAI,EAAE,UAAU;iBACjB;aACF;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,wBAAwB;gBAC/B,QAAQ,EAAE,GAAG,SAAS,0BAA0B;gBAChD,OAAO,EAAE;oBACP,OAAO,EAAE,8BAA8B;oBACvC,MAAM,EAAE,MAAM,CAAC,YAAY;oBAC3B,QAAQ,EAAE,GAAG;oBACb,SAAS,EAAE,GAAG;oBACd,WAAW,EAAE,GAAG;oBAChB,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,+BAA+B;qBACtD;oBACD,eAAe,EAAE;wBACf,QAAQ,EAAE,GAAG,SAAS,oCAAoC;qBAC3D;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -19,6 +19,7 @@ exports.InitiativeTemplatePermissions = [
19
19
  "hub:initiativeTemplate:edit",
20
20
  "hub:initiativeTemplate:view",
21
21
  "hub:initiativeTemplate:workspace:overview",
22
+ "hub:initiativeTemplate:workspace:dashboard",
22
23
  "hub:initiativeTemplate:workspace:details",
23
24
  "hub:initiativeTemplate:workspace:collaborators",
24
25
  "hub:initiativeTemplate:workspace:settings",
@@ -50,10 +51,20 @@ exports.InitiativeTemplatePermissionPolicies = [
50
51
  authenticated: true,
51
52
  entityEdit: true,
52
53
  },
54
+ {
55
+ permission: "hub:initiativeTemplate:delete",
56
+ dependencies: ["hub:initiativeTemplate"],
57
+ authenticated: true,
58
+ entityOwner: true,
59
+ },
53
60
  {
54
61
  permission: "hub:initiativeTemplate:workspace:overview",
55
62
  dependencies: ["hub:initiativeTemplate:view"],
56
63
  },
64
+ {
65
+ permission: "hub:initiativeTemplate:workspace:dashboard",
66
+ dependencies: ["hub:initiativeTemplate:edit"],
67
+ },
57
68
  {
58
69
  permission: "hub:initiativeTemplate:workspace:details",
59
70
  dependencies: ["hub:initiativeTemplate:edit"],
@@ -1 +1 @@
1
- {"version":3,"file":"InitiativeTemplateBusinessRules.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateBusinessRules.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,iCAAiC,GAAkB;AAC9D,gBAAgB;CACjB,CAAC;AAEF;;;;GAIG;AACU,QAAA,6BAA6B,GAAG;IAC3C,wBAAwB;IACxB,+BAA+B;IAC/B,+BAA+B;IAC/B,6BAA6B;IAC7B,6BAA6B;IAC7B,2CAA2C;IAC3C,0CAA0C;IAC1C,gDAAgD;IAChD,2CAA2C;IAC3C,+BAA+B;CACvB,CAAC;AAEX;;;GAGG;AACU,QAAA,oCAAoC,GAAwB;IACvE;QACE,UAAU,EAAE,wBAAwB;QACpC,YAAY,EAAE,CAAC,OAAO,CAAC;QACvB,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD;QACE,UAAU,EAAE,+BAA+B;QAC3C,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,CAAC,wBAAwB,CAAC;KACvC;IACD;QACE,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,CAAC,wBAAwB,CAAC;KACzC;IACD;QACE,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACjB;IACD;QACE,UAAU,EAAE,2CAA2C;QACvD,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,0CAA0C;QACtD,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,gDAAgD;QAC5D,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,2CAA2C;QACvD,YAAY,EAAE,CAAC,6BAA6B,CAAC;QAC7C,WAAW,EAAE,IAAI;KAClB;IACD;QACE,UAAU,EAAE,+BAA+B;QAC3C,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;CACF,CAAC"}
1
+ {"version":3,"file":"InitiativeTemplateBusinessRules.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateBusinessRules.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,iCAAiC,GAAkB;AAC9D,gBAAgB;CACjB,CAAC;AAEF;;;;GAIG;AACU,QAAA,6BAA6B,GAAG;IAC3C,wBAAwB;IACxB,+BAA+B;IAC/B,+BAA+B;IAC/B,6BAA6B;IAC7B,6BAA6B;IAC7B,2CAA2C;IAC3C,4CAA4C;IAC5C,0CAA0C;IAC1C,gDAAgD;IAChD,2CAA2C;IAC3C,+BAA+B;CACvB,CAAC;AAEX;;;GAGG;AACU,QAAA,oCAAoC,GAAwB;IACvE;QACE,UAAU,EAAE,wBAAwB;QACpC,YAAY,EAAE,CAAC,OAAO,CAAC;QACvB,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;IACD;QACE,UAAU,EAAE,+BAA+B;QAC3C,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,CAAC,wBAAwB,CAAC;KACvC;IACD;QACE,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,CAAC,wBAAwB,CAAC;KACzC;IACD;QACE,UAAU,EAAE,6BAA6B;QACzC,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,aAAa,EAAE,IAAI;QACnB,UAAU,EAAE,IAAI;KACjB;IACD;QACE,UAAU,EAAE,+BAA+B;QAC3C,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,aAAa,EAAE,IAAI;QACnB,WAAW,EAAE,IAAI;KAClB;IACD;QACE,UAAU,EAAE,2CAA2C;QACvD,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,4CAA4C;QACxD,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,0CAA0C;QACtD,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,gDAAgD;QAC5D,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;IACD;QACE,UAAU,EAAE,2CAA2C;QACvD,YAAY,EAAE,CAAC,6BAA6B,CAAC;QAC7C,WAAW,EAAE,IAAI;KAClB;IACD;QACE,UAAU,EAAE,+BAA+B;QAC3C,YAAY,EAAE,CAAC,6BAA6B,CAAC;KAC9C;CACF,CAAC"}
@@ -5,5 +5,9 @@ const HubItemEntitySchema_1 = require("../../core/schemas/shared/HubItemEntitySc
5
5
  exports.InitiativeTemplateEditorTypes = [
6
6
  "hub:initiativeTemplate:edit",
7
7
  ];
8
- exports.InitiativeTemplateSchema = Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema), { properties: Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema.properties) });
8
+ exports.InitiativeTemplateSchema = Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema), { properties: Object.assign(Object.assign({}, HubItemEntitySchema_1.HubItemEntitySchema.properties), { previewUrl: {
9
+ type: "string",
10
+ if: { minLength: 1 },
11
+ then: { format: "uri" },
12
+ } }) });
9
13
  //# sourceMappingURL=InitiativeTemplateSchema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InitiativeTemplateSchema.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateSchema.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AAKvE,QAAA,6BAA6B,GAAG;IAC3C,6BAA6B;CACrB,CAAC;AAEE,QAAA,wBAAwB,GAAyB,gCACzD,yCAAmB,KACtB,UAAU,oBACL,yCAAmB,CAAC,UAAU,IAEZ,CAAC"}
1
+ {"version":3,"file":"InitiativeTemplateSchema.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateSchema.ts"],"names":[],"mappings":";;;AACA,uFAAoF;AAKvE,QAAA,6BAA6B,GAAG;IAC3C,6BAA6B;CACrB,CAAC;AAEE,QAAA,wBAAwB,GAAyB,gCACzD,yCAAmB,KACtB,UAAU,kCACL,yCAAmB,CAAC,UAAU,KACjC,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;YACpB,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SACxB,MAGoB,CAAC"}
@@ -32,6 +32,59 @@ exports.buildUiSchema = async (i18nScope, entity, context) => {
32
32
  ],
33
33
  },
34
34
  },
35
+ {
36
+ type: "Control",
37
+ scope: "/properties/previewUrl",
38
+ labelKey: `${i18nScope}.fields.previewUrl.label`,
39
+ options: {
40
+ helperText: {
41
+ labelKey: `${i18nScope}.fields.previewUrl.helperText`,
42
+ },
43
+ messages: [
44
+ {
45
+ type: "ERROR",
46
+ keyword: "if",
47
+ hidden: true,
48
+ },
49
+ ],
50
+ },
51
+ },
52
+ {
53
+ type: "Control",
54
+ scope: "/properties/summary",
55
+ labelKey: `${i18nScope}.fields.summary.label`,
56
+ options: {
57
+ control: "hub-field-input-input",
58
+ type: "textarea",
59
+ },
60
+ },
61
+ {
62
+ type: "Control",
63
+ scope: "/properties/description",
64
+ labelKey: `${i18nScope}.fields.description.label`,
65
+ options: {
66
+ control: "hub-field-input-input",
67
+ type: "textarea",
68
+ },
69
+ },
70
+ {
71
+ type: "Control",
72
+ scope: "/properties/_thumbnail",
73
+ labelKey: `${i18nScope}.fields._thumbnail.label`,
74
+ options: {
75
+ control: "hub-field-input-image-picker",
76
+ imgSrc: entity.thumbnailUrl,
77
+ maxWidth: 727,
78
+ maxHeight: 484,
79
+ aspectRatio: 1.5,
80
+ helperText: {
81
+ labelKey: `${i18nScope}.fields._thumbnail.helperText`,
82
+ },
83
+ sizeDescription: {
84
+ labelKey: `${i18nScope}.fields._thumbnail.sizeDescription`,
85
+ },
86
+ },
87
+ },
35
88
  ],
36
89
  };
37
90
  };
@@ -1 +1 @@
1
- {"version":3,"file":"InitiativeTemplateUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.ts"],"names":[],"mappings":";;;AAEA,oDAA2E;AAE3E;;;;;;;;;;GAUG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,MAA8B,EAC9B,OAAuB,EACH,EAAE;IACtB,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,kBAAkB;gBACzB,QAAQ,EAAE,GAAG,SAAS,oBAAoB;gBAC1C,OAAO,EAAE;oBACP,QAAQ,EAAE;wBACR;4BACE,IAAI,EAAE,4BAAoB,CAAC,KAAK;4BAChC,OAAO,EAAE,UAAU;4BACnB,IAAI,EAAE,IAAI;4BACV,QAAQ,EAAE,GAAG,SAAS,4BAA4B;yBACnD;qBACF;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"InitiativeTemplateUiSchemaEdit.js","sourceRoot":"","sources":["../../../../src/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.ts"],"names":[],"mappings":";;;AAEA,oDAA2E;AAE3E;;;;;;;;;;GAUG;AACU,QAAA,aAAa,GAAG,KAAK,EAChC,SAAiB,EACjB,MA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AAQ,EAAE,GAAG;oBACb,SAAS,EAAE,GAAG;oBACd,WAAW,EAAE,GAAG;oBAChB,UAAU,EAAE;wBACV,QAAQ,EAAE,GAAG,SAAS,+BAA+B;qBACtD;oBACD,eAAe,EAAE;wBACf,QAAQ,EAAE,GAAG,SAAS,oCAAoC;qBAC3D;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -8,7 +8,7 @@ export declare const InitiativeTemplateDefaultFeatures: IFeatureFlags;
8
8
  * These define the requirements any user must meet to perform related actions
9
9
  * @private
10
10
  */
11
- export declare const InitiativeTemplatePermissions: readonly ["hub:initiativeTemplate", "hub:initiativeTemplate:create", "hub:initiativeTemplate:delete", "hub:initiativeTemplate:edit", "hub:initiativeTemplate:view", "hub:initiativeTemplate:workspace:overview", "hub:initiativeTemplate:workspace:details", "hub:initiativeTemplate:workspace:collaborators", "hub:initiativeTemplate:workspace:settings", "hub:initiativeTemplate:manage"];
11
+ export declare const InitiativeTemplatePermissions: readonly ["hub:initiativeTemplate", "hub:initiativeTemplate:create", "hub:initiativeTemplate:delete", "hub:initiativeTemplate:edit", "hub:initiativeTemplate:view", "hub:initiativeTemplate:workspace:overview", "hub:initiativeTemplate:workspace:dashboard", "hub:initiativeTemplate:workspace:details", "hub:initiativeTemplate:workspace:collaborators", "hub:initiativeTemplate:workspace:settings", "hub:initiativeTemplate:manage"];
12
12
  /**
13
13
  * Initiative Template policies
14
14
  * @private
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/hub-common",
3
- "version": "14.25.1",
3
+ "version": "14.26.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",