You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docstrings generation was requested by @guill.
* #6969 (comment)
The following files were modified:
* `src/components/dialog/confirm/confirmDialog.ts`
* `src/composables/useFeatureFlags.ts`
* `src/platform/assets/services/assetService.ts`
* `src/services/dialogService.ts`
* `src/stores/dialogStore.ts`
* @param options.headerComponent - The dialog header component.
420
-
* @param options.footerComponent - The dialog footer component.
421
-
* @param options.component - The dialog component.
422
-
* @param options.props - The dialog props.
423
-
* @returns The dialog instance and a function to close the dialog.
445
+
* Show a dialog provided by a third-party extension.
446
+
*
447
+
* @param options - Dialog configuration including `key`, optional `title`, header/footer components, dialog `component`, and `props` passed to the component.
448
+
* @returns An object with `dialog`, the dialog instance returned by the dialog store, and `closeDialog`, a function that closes the dialog using the provided `key`.
* Closes the dialog identified by the given key or the currently active dialog when no key is provided.
121
+
*
122
+
* Invokes the dialog's `onClose` callback if present, removes the dialog from the stack, updates the active dialog key, and adjusts close-on-Escape handling. If no matching dialog is found this function is a no-op.
123
+
*
124
+
* @param options - Optional object with a `key` specifying which dialog to close; when omitted the active dialog is closed.
* Create and register a dialog instance from the given options and push it into the dialog stack.
146
+
*
147
+
* @param options - Configuration for the dialog. Must include a unique `key`. Other fields configure the component to render (`component`), optional `title`, optional `headerComponent`/`footerComponent` and their props, additional `props` for the content component, `dialogComponentProps` for dialog behavior, and an optional numeric `priority`.
148
+
* @returns The created dialog instance that was inserted into the store's stack.
149
+
*
150
+
* Side effects: enforces a maximum stack size of 10 by removing the oldest dialog when necessary, inserts the new dialog according to its priority, sets the dialog as the active one, and updates close-on-escape handling for the stack.
* Opens the dialog described by `options` and ensures it is the active (top-most) dialog, creating a new dialog if one with the same key does not exist.
229
+
*
230
+
* @param options - Configuration for the dialog to show; may include a `key` to target an existing dialog or omit it to generate a new key
231
+
* @returns The dialog instance that was shown or created
0 commit comments