@appsemble/sdk
Advanced tools
Comparing version 0.11.6 to 0.12.0
@@ -133,3 +133,3 @@ import { Promisable } from 'type-fest'; | ||
*/ | ||
export declare type Action = BaseAction<'dialog'> | BaseAction<'dialog.error'> | BaseAction<'dialog.ok'> | BaseAction<'flow.back'> | BaseAction<'flow.cancel'> | BaseAction<'flow.finish'> | BaseAction<'flow.next'> | BaseAction<'noop'> | BaseAction<'event'> | LinkAction | LogAction | RequestAction | ResourceGetAction | ResourceQueryAction | ResourceCreateAction | ResourceUpdateAction | ResourceDeleteAction | BaseAction<'resource.subscribe'>; | ||
export declare type Action = BaseAction<'dialog'> | BaseAction<'dialog.error'> | BaseAction<'dialog.ok'> | BaseAction<'flow.back'> | BaseAction<'flow.cancel'> | BaseAction<'flow.finish'> | BaseAction<'flow.next'> | BaseAction<'noop'> | BaseAction<'event'> | LinkAction | LogAction | RequestAction | ResourceGetAction | ResourceQueryAction | ResourceCreateAction | ResourceUpdateAction | ResourceDeleteAction | BaseAction<'resource.subscription.subscribe'> | BaseAction<'resource.subscription.unsubscribe'> | BaseAction<'resource.subscription.toggle'> | BaseAction<'resource.subscription.status'>; | ||
/** | ||
@@ -272,2 +272,9 @@ * A block that is displayed on a page. | ||
showMessage: (message: string | Message) => void; | ||
/** | ||
* Get a URL serving an asset for the given asset id. | ||
* | ||
* @param assetId The id of the asset whose URL to get. | ||
* @returns The URL that matches the given asset id. | ||
*/ | ||
asset: (assetId: string) => string; | ||
} | ||
@@ -289,5 +296,6 @@ export interface Events { | ||
* @param callback The callback to remove. | ||
* @returns Boolean indicating whether a listener is implemented or not. | ||
*/ | ||
off: { | ||
[K in keyof EventListeners]: (callback: (data: any, error?: string) => void) => void; | ||
[K in keyof EventListeners]: (callback: (data: any, error?: string) => void) => boolean; | ||
}; | ||
@@ -299,5 +307,6 @@ /** | ||
* @param callback A callback to register for the event. | ||
* @returns Boolean indicating whether a listener is implemented or not. | ||
*/ | ||
on: { | ||
[K in keyof EventListeners]: (callback: (data: any, error?: string) => void) => void; | ||
[K in keyof EventListeners]: (callback: (data: any, error?: string) => void) => boolean; | ||
}; | ||
@@ -316,5 +325,5 @@ } | ||
/** | ||
* The block as it is defined in the app definition. | ||
* The parameters as they are defined in the app definition. | ||
*/ | ||
block: Block; | ||
parameters: Parameters; | ||
/** | ||
@@ -321,0 +330,0 @@ * Any kind of data that has been passed in by some context. |
{ | ||
"name": "@appsemble/sdk", | ||
"version": "0.11.6", | ||
"version": "0.12.0", | ||
"description": "Build your own blocks", | ||
"homepage": "https://appsemble.dev", | ||
@@ -24,4 +25,4 @@ "bugs": { | ||
"dependencies": { | ||
"type-fest": "^0.9.0" | ||
"type-fest": "^0.12.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13380
416
+ Addedtype-fest@0.12.0(transitive)
- Removedtype-fest@0.9.0(transitive)
Updatedtype-fest@^0.12.0