-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docbuilder] fix broken docbuilder stories (#231)
Co-authored-by: Rohan Bansal <[email protected]>
- Loading branch information
Showing
21 changed files
with
293 additions
and
96 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@stonecrop/desktop/fix-docbuilder-issue-1_2025-01-02-09-06.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@stonecrop/desktop", | ||
"comment": "fix broken docbuilder stories", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "@stonecrop/desktop" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Base type for elements in the Action Set | ||
* @public | ||
*/ | ||
export type BaseElement = { | ||
label: string | ||
show?: boolean | ||
} | ||
|
||
/** | ||
* Element actions | ||
* @public | ||
*/ | ||
export type ElementAction = BaseElement & { | ||
link?: string | ||
action?: () => void | ||
} | ||
|
||
/** | ||
* Button elements | ||
* @public | ||
*/ | ||
export type ButtonElement = BaseElement & | ||
ElementAction & { | ||
type: 'button' | ||
} | ||
|
||
/** | ||
* Dropdown elements | ||
* @public | ||
*/ | ||
export type DropdownElement = BaseElement & { | ||
type: 'dropdown' | ||
actions: ElementAction[] | ||
} | ||
|
||
/** | ||
* Superset of all element types in the Action Set | ||
* @public | ||
*/ | ||
export type ActionElements = ButtonElement | DropdownElement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@stonecrop/desktop](./desktop.md) > [ActionElements](./desktop.actionelements.md) | ||
|
||
## ActionElements type | ||
|
||
Superset of all element types in the Action Set | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type ActionElements = ButtonElement | DropdownElement; | ||
``` | ||
**References:** [ButtonElement](./desktop.buttonelement.md)<!-- -->, [DropdownElement](./desktop.dropdownelement.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@stonecrop/desktop](./desktop.md) > [BaseElement](./desktop.baseelement.md) | ||
|
||
## BaseElement type | ||
|
||
Base type for elements in the Action Set | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type BaseElement = { | ||
label: string; | ||
show?: boolean; | ||
}; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@stonecrop/desktop](./desktop.md) > [ButtonElement](./desktop.buttonelement.md) | ||
|
||
## ButtonElement type | ||
|
||
Button elements | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type ButtonElement = BaseElement & ElementAction & { | ||
type: 'button'; | ||
}; | ||
``` | ||
**References:** [BaseElement](./desktop.baseelement.md)<!-- -->, [ElementAction](./desktop.elementaction.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@stonecrop/desktop](./desktop.md) > [DropdownElement](./desktop.dropdownelement.md) | ||
|
||
## DropdownElement type | ||
|
||
Dropdown elements | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type DropdownElement = BaseElement & { | ||
type: 'dropdown'; | ||
actions: ElementAction[]; | ||
}; | ||
``` | ||
**References:** [BaseElement](./desktop.baseelement.md)<!-- -->, [ElementAction](./desktop.elementaction.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@stonecrop/desktop](./desktop.md) > [ElementAction](./desktop.elementaction.md) | ||
|
||
## ElementAction type | ||
|
||
Element actions | ||
|
||
**Signature:** | ||
|
||
```typescript | ||
export type ElementAction = BaseElement & { | ||
link?: string; | ||
action?: () => void; | ||
}; | ||
``` | ||
**References:** [BaseElement](./desktop.baseelement.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.