JSDoc examples for section and workspace condition

This commit is contained in:
Niels Lyngsø
2023-08-03 14:32:35 +02:00
parent e141fa5c2b
commit df5a3bb841
3 changed files with 13 additions and 1 deletions

View File

@@ -26,6 +26,12 @@ export class UmbSectionAliasCondition extends UmbBaseController implements UmbEx
}
export type SectionAliasConditionConfig = UmbConditionConfigBase<'Umb.Condition.SectionAlias'> & {
/**
* Define the section that this extension should be available in
*
* @examples
* "Umb.Section.Content"
*/
match: string;
};

View File

@@ -24,6 +24,12 @@ export class UmbWorkspaceAliasCondition extends UmbBaseController implements Umb
}
export type WorkspaceAliasConditionConfig = UmbConditionConfigBase<'Umb.Condition.WorkspaceAlias'> & {
/**
* Define the workspace that this extension should be available in
*
* @examples
* "Umb.Workspace.Document"
*/
match: string;
};

View File

@@ -1,7 +1,7 @@
import { UmbDictionaryRepository } from '@umbraco-cms/backoffice/dictionary';
import { UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS } from '../../modals/manifests.js';
import { getInsertDictionarySnippet, getInsertPartialSnippet } from '../../utils.js';
import { ChooseInsertTypeModalResult, CodeSnippetType } from '../../modals/insert-choose-type-sidebar.element.js';
import { UmbDictionaryRepository } from '@umbraco-cms/backoffice/dictionary';
import { customElement, property, css, html } from '@umbraco-cms/backoffice/external/lit';
import { UUITextStyles } from '@umbraco-cms/backoffice/external/uui';
import {