Kevin Jump
10/23/2024, 11:10 AMUmbExtensionManifest
for example:
ts
const sampleEntityAction: UmbExtensionManifest = {
type: 'entityAction',
kind: 'default',
alias: 'my.sample.action',
name: 'sample entity action',
weight: 20,
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
icon: 'icon-arrow-right',
label: 'Sample action',
},
conditions: [
{
alias: 'Umb.Condition.UserPermission.Document',
allOf: [UMB_USER_PERMISSION_DOCUMENT_PUBLISH],
},
]
}
i am getting an error with the allOf
element
- basically.
> Object literal may only specify known properties, and 'allOf' does not exist in type 'UmbConditionConfigBase'.`
https://cdn.discordapp.com/attachments/1298604470862610462/1298604473626660916/image.png?ex=671a2b29&is=6718d9a9&hm=bdc8cbe949b162aabd77861f11267c5e5e1eaf0d5b758c5a3d7ee302796bfbf3&Kevin Jump
10/23/2024, 11:11 AMjson
"types": [
"@umbraco-cms/backoffice/extension-registry",
"@umbraco-cms/backoffice/icon",
"@umbraco-cms/backoffice/localization",
"@umbraco-cms/backoffice/document"
]
Kevin Jump
10/23/2024, 11:15 AM@umbraco-cms/backoffice/dashboard
to get a dashboard manifest recognise that it the js: ()=> import...
property was valid.
i am doing this right ?Kevin Jump
10/23/2024, 11:20 AMts
conditions: [
{
alias: 'Umb.Condition.SectionAlias',
match: 'Umb.Section.Content',
},
],
Object literal may only specify known properties, and 'match' does not exist
Sebastiaan
10/23/2024, 12:29 PMas any
on some of these things (and left a big TODO
to get back to it later.
So:
json
conditions: [
{
alias: 'Umb.Condition.UserPermission.Document',
allOf: [UMB_USER_PERMISSION_DOCUMENT_PUBLISH],
} as any,
Kevin Jump
10/23/2024, 12:43 PMKevin Jump
10/23/2024, 12:44 PMKevin Jump
10/23/2024, 12:46 PMts
conditions: [
{
alias: 'Umb.Condition.UserPermission.Document',
allOf: [UMB_USER_PERMISSION_DOCUMENT_PUBLISH],
} as UmbConditionConfigBase
does stop that, (and is arguably better than any, but does now have an import, which is what they wanted rid of?)Sebastiaan
10/23/2024, 2:06 PMnathanwoulfe
10/23/2024, 7:51 PMKevin Jump
10/23/2024, 8:02 PMentityUserPermission
😦 - so i do still have an 'any' on that - problem now, is either they are missing or you have to know the line to put into the tsconfig types. previously. intellisense would pick up the import for you, and you didn't have to have them all in your head 😞