@appsemble/sdk 0.40.8 → 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.
- package/README.md +3 -3
- package/index.d.ts +5 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble SDK
|
|
2
2
|
|
|
3
3
|
> Build your own blocks
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/sdk)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.40.10)
|
|
7
7
|
[](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.
|
|
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<
|
|
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.
|
|
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.
|
|
46
|
-
"@appsemble/lang-sdk": "0.40.
|
|
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
|
},
|