ProtectedactiveCurrently active prompt fragments
ProtectedagentProtectedavailableAll available agents that may use prompts
ProtecteddefaultMaps prompt variant set IDs to their default variant IDs
ProtectedeffectiveMaps prompt variant set IDs to their resolved variant IDs
ProtectedexpandedTracks expanded state of prompt fragment sections in the UI
ProtectedexpandedTracks expanded state of prompt content display
ProtectedexpandedTracks expanded state of prompt variant set sections
ReadonlynodeGet the DOM node owned by the widget.
ProtectednodeReadonlyonProtected ReadonlyonReadonlyonProtected ReadonlyonReadonlyonProtected ReadonlyonReadonlyonProtected ReadonlyonProtectedpromptStores all available prompt fragments by ID
ProtectedpromptProtectedpromptStores prompt variant sets and their variant IDs
Protected OptionalscrollProtected OptionalscrollProtected ReadonlytoProtected ReadonlytoProtecteduserMaps prompt variant set IDs to their user selected variant IDs
Static ReadonlyIDStatic ReadonlyLABELThe 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.
ProtectedaddProtectedaddOptionaluseCapture: booleanProtectedaddProtectedaddCreate 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.
ProtectedcreateCreates a new customization for a built-in prompt fragment
Built-in prompt fragment to customize
Mouse event
ProtecteddeleteDeletes a customization with confirmation dialog
Customized prompt fragment to delete
Mouse event
ProtecteddisableProtectededitCall the edit action for the provided customized prompt fragment
Fragment to edit
Mouse event
ProtectedgetFinds 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
ProtectedgetGets fragments that aren't part of any prompt variant set
Map of fragment IDs to their customizations
ProtectedgetProtectedhandleTest 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.
ProtectedinitProtectedisDetermines 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
ProtectedloadLoads all available agents from the agent service
ProtectedloadLoads all prompt fragments and prompt variant sets from the prompt service. Preserves UI expansion states and updates variant information.
ProtectednotifyProtectedonA message handler invoked on an 'activate-request' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'after-attach' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'after-detach' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'after-hide' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'after-show' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'before-attach' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'before-detach' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'before-hide' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'before-show' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'child-added' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'child-removed' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'close-request' message.
The default implementation unparents or detaches the widget.
ProtectedonA message handler invoked on a 'fit-request' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on a 'resize' message.
The default implementation of this handler is a no-op.
ProtectedonA message handler invoked on an 'update-request' message.
The default implementation of this handler is a no-op.
ProtectedremoveRemoves all prompt customizations (resets to built-in versions) with confirmation
ProtectedrenderMain render method for the widget
Complete UI for the configuration widget
ProtectedrenderRenders a prompt fragment with all of its customizations
ID of the prompt fragment
Array of the customizations
React node for the prompt fragment
ProtectedrenderRenders a single prompt fragment customization with its controls and content
The prompt fragment to render
React node for the prompt fragment
ProtectedrenderRenders 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
ProtectedresetResets 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.
Optionalforce: 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.
ProtectedtoggleProtectedtoggleProtectedtoggle
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.