@merkur/integration 0.45.0 → 0.45.1
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/package.json +5 -3
- package/types.d.ts +36 -0
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkur/integration",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.1",
|
|
4
4
|
"description": "Merkur module for easy integration with other apps.",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"module": "lib/index",
|
|
7
|
+
"types": "./types.d.ts",
|
|
7
8
|
"unpkg": "lib/index.umd.js",
|
|
8
9
|
"sideEffects": false,
|
|
9
10
|
"exports": {
|
|
10
11
|
".": {
|
|
12
|
+
"types": "./types.d.ts",
|
|
11
13
|
"import": "./lib/index.mjs",
|
|
12
14
|
"require": "./lib/index.cjs"
|
|
13
15
|
},
|
|
@@ -48,10 +50,10 @@
|
|
|
48
50
|
},
|
|
49
51
|
"homepage": "https://merkur.js.org/",
|
|
50
52
|
"devDependencies": {
|
|
51
|
-
"@merkur/core": "^0.45.
|
|
53
|
+
"@merkur/core": "^0.45.1"
|
|
52
54
|
},
|
|
53
55
|
"peerDependencies": {
|
|
54
56
|
"@merkur/core": "*"
|
|
55
57
|
},
|
|
56
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "2a9745c5050c06d43d268c2fdbcb0d2b7f3fb75b"
|
|
57
59
|
}
|
package/types.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { WidgetAsset, SourceAsset } from '@merkur/core';
|
|
2
|
+
|
|
3
|
+
export const isLoadedSymbol: symbol;
|
|
4
|
+
export const loadingPromiseSymbol: symbol;
|
|
5
|
+
|
|
6
|
+
export interface LoadedAsset extends SourceAsset {
|
|
7
|
+
element: HTMLElement | null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface TestScript {
|
|
11
|
+
isES9Supported(): boolean;
|
|
12
|
+
isES11Supported(): boolean;
|
|
13
|
+
isES13Supported(): boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const testScript: TestScript;
|
|
17
|
+
|
|
18
|
+
export function loadAssets(
|
|
19
|
+
assets: (WidgetAsset | SourceAsset)[],
|
|
20
|
+
root?: HTMLElement,
|
|
21
|
+
): Promise<LoadedAsset[]>;
|
|
22
|
+
|
|
23
|
+
export function loadStyleAssets(
|
|
24
|
+
assets: (WidgetAsset | SourceAsset)[],
|
|
25
|
+
root?: HTMLElement,
|
|
26
|
+
): Promise<LoadedAsset[]>;
|
|
27
|
+
|
|
28
|
+
export function loadScriptAssets(
|
|
29
|
+
assets: (WidgetAsset | SourceAsset)[],
|
|
30
|
+
root?: HTMLElement,
|
|
31
|
+
): Promise<LoadedAsset[]>;
|
|
32
|
+
|
|
33
|
+
export function loadJsonAssets(
|
|
34
|
+
assets: (WidgetAsset | SourceAsset)[],
|
|
35
|
+
root?: HTMLElement,
|
|
36
|
+
): Promise<LoadedAsset[]>;
|