Protected
activeCurrently active prompt fragments
Protected
agentProtected
availableAll available agents that may use prompts
Protected
defaultMaps prompt variant set IDs to their default variant IDs
Protected
effectiveMaps prompt variant set IDs to their resolved variant IDs
Protected
expandedTracks expanded state of prompt fragment sections in the UI
Protected
expandedTracks expanded state of prompt content display
Protected
expandedTracks expanded state of prompt variant set sections
Readonly
nodeGet the DOM node owned by the widget.
Protected
nodeReadonly
onProtected
Readonly
onReadonly
onProtected
Readonly
onReadonly
onProtected
Readonly
onReadonly
onProtected
Readonly
onProtected
promptStores all available prompt fragments by ID
Protected
promptProtected
promptStores prompt variant sets and their variant IDs
Protected
Optional
scrollProtected
Optional
scrollProtected
Readonly
toProtected
Readonly
toProtected
userMaps prompt variant set IDs to their user selected variant IDs
Static
Readonly
IDStatic
Readonly
LABELThe dataset for the widget's DOM node.
A signal emitted when the widget is disposed.
Get the method for hiding the widget.
Get the id of the widget's DOM node.
Set the id of the widget's DOM node.
Test whether the widget's node is attached to the DOM.
Test whether the widget has been disposed.
Test whether the widget is explicitly hidden.
Get the parent of the widget.
Set the parent of the widget.
Children are typically added to a widget by using a layout, which means user code will not normally set the parent widget directly.
The widget will be automatically removed from its old parent.
This is a no-op if there is no effective parent change.
The title object for the widget.
The title object is used by some container widgets when displaying the widget alongside some title, such as a tab panel or side bar.
Since not all widgets will use the title, it is created on demand.
The owner
property of the title is set to this widget.
Protected
addProtected
addOptional
useCapture: booleanProtected
addProtected
addCreate an iterator over the widget's children.
A new iterator over the children of the widget.
The widget must have a populated layout in order to have children.
If a layout is not installed, the returned iterator will be empty.
Test whether a widget is a descendant of this widget.
The descendant widget of interest.
true
if the widget is a descendant, false
otherwise.
Protected
createCreates a new customization for a built-in prompt fragment
Built-in prompt fragment to customize
Mouse event
Protected
deleteDeletes a customization with confirmation dialog
Customized prompt fragment to delete
Mouse event
Protected
disableProtected
editCall the edit action for the provided customized prompt fragment
Fragment to edit
Mouse event
Protected
getFinds agents that use a specific prompt variant set
ID of the prompt variant set to match
Array of agents that use the prompt variant set
Protected
getGets fragments that aren't part of any prompt variant set
Map of fragment IDs to their customizations
Protected
getProtected
handleTest whether the widget's DOM node has the given class name.
The class name of interest.
true
if the node has the class, false
otherwise.
Hide the widget and make it hidden to its parent widget.
This causes the isHidden property to be true
.
If the widget is explicitly hidden, this is a no-op.
Protected
initProtected
isDetermines if a prompt fragment is currently the active one for its ID
The prompt fragment to check
True if this prompt fragment is the active customization
Protected
loadLoads all available agents from the agent service
Protected
loadLoads all prompt fragments and prompt variant sets from the prompt service. Preserves UI expansion states and updates variant information.
Protected
notifyProtected
onA message handler invoked on an 'activate-request'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on an 'after-attach'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on an 'after-detach'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on an 'after-hide'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on an 'after-show'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on a 'before-attach'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on a 'before-detach'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on a 'before-hide'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on a 'before-show'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on a 'child-added'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on a 'child-removed'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on a 'close-request'
message.
The default implementation unparents or detaches the widget.
Protected
onA message handler invoked on a 'fit-request'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on a 'resize'
message.
The default implementation of this handler is a no-op.
Protected
onA message handler invoked on an 'update-request'
message.
The default implementation of this handler is a no-op.
Protected
removeRemoves all prompt customizations (resets to built-in versions) with confirmation
Protected
renderMain render method for the widget
Complete UI for the configuration widget
Protected
renderRenders a prompt fragment with all of its customizations
ID of the prompt fragment
Array of the customizations
React node for the prompt fragment
Protected
renderRenders a single prompt fragment customization with its controls and content
The prompt fragment to render
React node for the prompt fragment
Protected
renderRenders a prompt variant set with its variants
ID of the prompt variant set
Array of variant IDs
React node for the prompt variant set group
Protected
resetResets a prompt fragment to use a specific customization (with confirmation dialog)
customization to reset to
Mouse event
Show the widget and make it visible to its parent widget.
This causes the isHidden property to be false
.
If the widget is not explicitly hidden, this is a no-op.
Test whether the given widget flag is set.
This will not typically be called directly by user code.
Toggle a class name on the widget's DOM node.
The class name to toggle on the node.
Optional
force: booleanWhether to force add the class (true
) or force
remove the class (false
). If not provided, the presence of
the class will be toggled from its current state.
true
if the class is now present, false
otherwise.
The class name must not contain whitespace.
Protected
toggleProtected
toggleProtected
toggle
Widget for configuring AI prompt fragments and prompt variant sets. Allows users to view, create, edit, and manage various types of prompt fragments including their customizations and variants.