@appsemble/sdk 0.40.9 → 0.40.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/index.d.ts +5 -1
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.40.9/config/assets/logo.svg) Appsemble SDK
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.40.10/config/assets/logo.svg) Appsemble SDK
2
2
 
3
3
  > Build your own blocks
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/sdk)](https://www.npmjs.com/package/@appsemble/sdk)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.40.9/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.40.9)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.40.10/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.40.10)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -153,5 +153,5 @@ declare module '@appsemble/sdk' {
153
153
 
154
154
  ## License
155
155
 
156
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.40.9/LICENSE.md) ©
156
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.40.10/LICENSE.md) ©
157
157
  [Appsemble](https://appsemble.com)
package/index.d.ts CHANGED
@@ -35,6 +35,10 @@ export interface IconRenderOptions {
35
35
  export type RenderableIcon = {
36
36
  type: 'asset';
37
37
  url: string;
38
+ /**
39
+ * The URL to load when loading `url` fails.
40
+ */
41
+ fallbackUrl?: string;
38
42
  } | {
39
43
  type: 'fontawesome';
40
44
  name: IconName;
@@ -358,7 +362,7 @@ export interface AppsembleBootstrapEvent extends CustomEvent {
358
362
  */
359
363
  export declare function bootstrap(fn: BootstrapFunction): void;
360
364
  export type HandlerFunction = (...params: any[]) => Promisable<unknown>;
361
- export type ControllerFunction = (params: EventParams) => Promisable<Record<keyof Actions, HandlerFunction>>;
365
+ export type ControllerFunction = (params: EventParams) => Promisable<Record<string, HandlerFunction>>;
362
366
  export interface AppsembleControllerEvent extends CustomEvent {
363
367
  detail: {
364
368
  fn: ControllerFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/sdk",
3
- "version": "0.40.9",
3
+ "version": "0.40.10",
4
4
  "description": "Build your own blocks",
5
5
  "keywords": [
6
6
  "app",
@@ -42,8 +42,8 @@
42
42
  "test": "vitest"
43
43
  },
44
44
  "dependencies": {
45
- "@appsemble/types": "0.40.9",
46
- "@appsemble/lang-sdk": "0.40.9",
45
+ "@appsemble/types": "0.40.10",
46
+ "@appsemble/lang-sdk": "0.40.10",
47
47
  "@fortawesome/fontawesome-common-types": "^6.0.0",
48
48
  "type-fest": "^4.0.0"
49
49
  },