with full interactive drawers
```
```
--------------------------------
### profileUrl Method Signature
Source: https://github.com/automattic/gravatar/blob/trunk/web/packages/url-utils/README.md
The signature for the profileUrl function, indicating it accepts an email and an optional format.
```js
profileUrl(email, format: GravatarFormat)
```
--------------------------------
### GravatarQuickEditor Class
Source: https://context7.com/automattic/gravatar/llms.txt
The GravatarQuickEditor class provides a high-level interface for setting up a quick avatar editor. It handles click events on a trigger element and automatically refreshes avatar images when the user updates their avatar.
```APIDOC
## `new GravatarQuickEditor(options)` — High-level quick editor
Sets up a click handler on the trigger element and automatically refreshes avatar `
![]()
` elements when the user updates their avatar in the popup. Handles the full lifecycle with minimal configuration.
### Installation
```bash
npm install @gravatar-com/quick-editor
```
### Usage
```typescript
import { GravatarQuickEditor } from '@gravatar-com/quick-editor';
document.addEventListener( 'DOMContentLoaded', () => {
new GravatarQuickEditor( {
email: 'user@example.com', // Gravatar account email
editorTriggerSelector: '#edit-avatar', // click this to open popup
avatarSelector: '.user-avatar', // these
![]()
are refreshed on avatar update
scope: [ 'avatars', 'about', 'links' ], // sections shown in the editor
locale: 'fr', // editor UI language (e.g. 'fr', 'es', 'de')
avatarRefreshDelay: 1500, // ms to wait before refreshing (cache busting)
} );
} );
```
### Options
- `email` (string): The Gravatar account email.
- `editorTriggerSelector` (string): CSS selector for the element that triggers the editor popup.
- `avatarSelector` (string): CSS selector for `
![]()
` elements that should be refreshed upon avatar update.
- `scope` (array of strings): The sections to be displayed in the editor (e.g., `['avatars', 'about', 'links']`).
- `locale` (string): The language for the editor UI (e.g., 'fr', 'es', 'de').
- `avatarRefreshDelay` (number): The delay in milliseconds before refreshing avatars after an update.
```