Skip to content

Commit

Permalink
fix: [EXT-3363] use correct IDS api for fields (#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jwhiles authored Feb 14, 2022
1 parent 1f8b266 commit 84daaa2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/types/api.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,28 +192,30 @@ export interface BaseExtensionSDK {

export type EditorExtensionSDK = Omit<BaseExtensionSDK, 'ids'> &
SharedEditorSDK & {
/** A set of IDs actual for the app */
/** A set of IDs for the app */
ids: Omit<IdsAPI, 'field'>
}

export type SidebarExtensionSDK = Omit<BaseExtensionSDK, 'ids'> &
SharedEditorSDK & {
/** A set of IDs actual for the app */
/** A set of IDs for the app */
ids: Omit<IdsAPI, 'field'>
/** Methods to update the size of the iframe the app is contained within. */
window: WindowAPI
}

export type FieldExtensionSDK = BaseExtensionSDK &
SharedEditorSDK & {
/** A set of IDs for the app */
ids: IdsAPI
/** Gives you access to the value and metadata of the field the app is attached to. */
field: FieldAPI
/** Methods to update the size of the iframe the app is contained within. */
window: WindowAPI
}

export type DialogExtensionSDK = Omit<BaseExtensionSDK, 'ids'> & {
/** A set of IDs actual for the app */
/** A set of IDs for the app */
ids: Omit<IdsAPI, EntryScopedIds>
/** Closes the dialog and resolves openCurrentApp promise with data */
close: (data?: any) => void
Expand Down

0 comments on commit 84daaa2

Please sign in to comment.