File tree Expand file tree Collapse file tree 2 files changed +2
-31
lines changed
packages/ui-extensions/src/surfaces/admin Expand file tree Collapse file tree 2 files changed +2
-31
lines changed Original file line number Diff line number Diff line change 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-
216187declare const hasOpenChildModal : unique symbol ;
217188
218189declare const show : unique symbol ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments