Skip to content

Commit 2634f53

Browse files
committed
chore: add docs
1 parent b8a586b commit 2634f53

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

packages/blueprints-integration/src/action.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ export interface IBlueprintActionTriggerMode {
6464
label: ITranslatableMessage
6565
/** An optional, longer description that will not be immediately visible to the user */
6666
description?: ITranslatableMessage
67-
/** An icon to be displayed to the user next to the label */
67+
/** An icon to be displayed to the user next to the label
68+
*
69+
* This can either be a relative URL to an image in the Blueprints assets or a `data:` URL
70+
*/
6871
icon?: string
6972
}
7073
}

packages/blueprints-integration/src/userEditing.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ export interface UserEditingDefinitionAction {
2121
id: string
2222
/** Label to show to the user for this operation */
2323
label: ITranslatableMessage
24-
/** Icon to show when this action is 'active' */
24+
/** Icon to show when this action is 'active'
25+
*
26+
* This can either be a relative URL to an image in the Blueprints assets or a `data:` URL
27+
*/
2528
icon?: string
26-
/** Icon to show when this action is 'disabled' */
29+
/** Icon to show when this action is 'disabled'
30+
*
31+
* This can either be a relative URL to an image in the Blueprints assets or a `data:` URL
32+
*/
2733
iconInactive?: string
2834
/** Whether this action should be indicated as being active */
2935
isActive?: boolean

packages/corelib/src/dataModel/UserEditingDefinitions.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ export interface CoreUserEditingDefinitionAction {
1818
id: string
1919
/** Label to show to the user for this operation */
2020
label: ITranslatableMessage
21-
/** Icon to show when this action is 'active' */
21+
/** Icon to show when this action is 'active'.
22+
*
23+
* This can either be a relative URL to an image in the Blueprints assets or a `data:` URL */
2224
icon?: string
23-
/** Icon to show when this action is 'disabled' */
25+
/** Icon to show when this action is 'disabled'.
26+
*
27+
* This can either be a relative URL to an image in the Blueprints assets or a `data:` URL */
2428
iconInactive?: string
2529
/** Whether this action should be indicated as being active */
2630
isActive?: boolean

0 commit comments

Comments
 (0)