Skip to content

Commit c2dc3e4

Browse files
committed
Add s-modal
1 parent 8a4e058 commit c2dc3e4

File tree

2 files changed

+2
-31
lines changed

2 files changed

+2
-31
lines changed

packages/ui-extensions/src/surfaces/admin/components/Modal.d.ts

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** VERSION: 1.21.2 **/
1+
/** VERSION: 1.24.0 **/
22
/* eslint-disable import/extensions */
33

44
/* eslint-disable @typescript-eslint/no-namespace */
@@ -184,35 +184,6 @@ declare class PreactOverlayElement extends PreactCustomElement {
184184
[overlayHideFrameId]?: number;
185185
}
186186

187-
export interface Context<T> {
188-
readonly defaultValue: T;
189-
}
190-
/**
191-
* A callback which is provided by a context requester and is called with the value satisfying the request.
192-
* This callback can be called multiple times by context providers as the requested value is changed.
193-
*/
194-
export type ContextCallback<T> = (value: T) => void;
195-
/**
196-
* An event fired by a context requester to signal it desires a named context.
197-
*
198-
* A provider should inspect the `context` property of the event to determine if it has a value that can
199-
* satisfy the request, calling the `callback` with the requested value if so.
200-
*/
201-
declare class ContextRequestEvent<T> extends Event {
202-
readonly context: Context<T>;
203-
readonly callback: ContextCallback<T>;
204-
constructor(context: Context<T>, callback: ContextCallback<T>);
205-
}
206-
declare global {
207-
interface HTMLElementEventMap {
208-
/**
209-
* A 'context-request' event can be emitted by any element which desires
210-
* a context value to be injected by an external provider.
211-
*/
212-
'context-request': ContextRequestEvent<unknown>;
213-
}
214-
}
215-
216187
declare const hasOpenChildModal: unique symbol;
217188

218189
declare const show: unique symbol;

packages/ui-extensions/src/surfaces/admin/extension-targets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ export interface ExtensionTargets {
730730

731731
'admin.app.home.render': RenderExtension<
732732
StandardApi<'admin.app.home.render'>,
733-
FormExtensionComponents
733+
FormExtensionComponents | 'Modal'
734734
>;
735735
}
736736

0 commit comments

Comments
 (0)