Socket
Socket
Sign inDemoInstall

@appsemble/sdk

Package Overview
Dependencies
Maintainers
4
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsemble/sdk - npm Package Compare versions

Comparing version 0.11.6 to 0.12.0

19

dist/index.d.ts

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc