@monterosa/sdk-interact-kit 0.18.2-rc.4 → 0.18.3-rc.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/dist/index.cjs.js +106 -99
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +28 -48
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +106 -98
- package/dist/index.esm5.js.map +1 -1
- package/dist/src/core/element/factory.d.ts +3 -3
- package/dist/src/core/project/api.d.ts +1 -5
- package/package.json +10 -6
- package/dist/src/core/project/internal.d.ts +0 -12
|
@@ -14,8 +14,8 @@ import { ElementContext } from './context';
|
|
|
14
14
|
import { InteractEvent } from '../event/public-types';
|
|
15
15
|
import { Answer } from './answer';
|
|
16
16
|
export declare const elements: Map<string, InteractElement>;
|
|
17
|
-
export declare function buildElement(options: ElementOptions, context: ElementContext): InteractElement
|
|
17
|
+
export declare function buildElement(options: ElementOptions, context: ElementContext): Promise<InteractElement>;
|
|
18
18
|
export declare function configureEvent(event: InteractEvent): Promise<void>;
|
|
19
19
|
export declare function sendAnswer(element: InteractElement, userAnswer: Answer): Promise<void>;
|
|
20
|
-
export declare function storeAnswer(element: InteractElement, userAnswer: Answer): void
|
|
21
|
-
export declare function restoreAnswer(element: InteractElement): void
|
|
20
|
+
export declare function storeAnswer(element: InteractElement, userAnswer: Answer): Promise<void>;
|
|
21
|
+
export declare function restoreAnswer(element: InteractElement): Promise<void>;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { MonterosaSdk } from '@monterosa/sdk-core';
|
|
12
12
|
import { Unsubscribe } from '@monterosa/sdk-util';
|
|
13
|
-
import { InteractProject
|
|
13
|
+
import { InteractProject } from './public-types';
|
|
14
14
|
/**
|
|
15
15
|
* @internal
|
|
16
16
|
*/
|
|
@@ -20,10 +20,6 @@ declare const getProjectMemoized: (...args: any[]) => Promise<InteractProject>;
|
|
|
20
20
|
* with the {@link @monterosa/sdk-core#MonterosaSdk | configured sdk}
|
|
21
21
|
*/
|
|
22
22
|
declare function getProject(sdk?: MonterosaSdk): Promise<InteractProject>;
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
export declare function fetchListings(host: string, projectId: string): Promise<Listings>;
|
|
27
23
|
/**
|
|
28
24
|
* Adds an observer for when {@link InteractProject.fields | project fields}
|
|
29
25
|
* are updated
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monterosa/sdk-interact-kit",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.3-rc.1",
|
|
4
4
|
"description": "Monterosa JS SDK / Interact Kit",
|
|
5
5
|
"author": "Monterosa <hello@monterosa.co.uk> (https://www.monterosa.co/)",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -24,15 +24,19 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@monterosa/sdk-connect-kit": "0.x",
|
|
26
26
|
"@monterosa/sdk-core": "0.x",
|
|
27
|
+
"@monterosa/sdk-interact-interop": "0.x",
|
|
28
|
+
"@monterosa/sdk-storage-kit": "0.x",
|
|
27
29
|
"@monterosa/sdk-util": "0.x"
|
|
28
30
|
},
|
|
29
31
|
"dependencies": {
|
|
30
|
-
"@monterosa/sdk-connect-kit": "^0.18.
|
|
31
|
-
"@monterosa/sdk-core": "^0.18.
|
|
32
|
-
"@monterosa/sdk-
|
|
32
|
+
"@monterosa/sdk-connect-kit": "^0.18.3-rc.1",
|
|
33
|
+
"@monterosa/sdk-core": "^0.18.3-rc.1",
|
|
34
|
+
"@monterosa/sdk-interact-interop": "^0.18.3-rc.1",
|
|
35
|
+
"@monterosa/sdk-storage-kit": "^0.18.3-rc.1",
|
|
36
|
+
"@monterosa/sdk-util": "^0.18.3-rc.1"
|
|
33
37
|
},
|
|
34
38
|
"devDependencies": {
|
|
35
|
-
"@faker-js/faker": "^6.
|
|
39
|
+
"@faker-js/faker": "^6.3.1",
|
|
36
40
|
"@rollup/plugin-json": "^4.1.0",
|
|
37
41
|
"@types/jest": "^27.0.1",
|
|
38
42
|
"jest": "^27.1.0",
|
|
@@ -47,5 +51,5 @@
|
|
|
47
51
|
"publishConfig": {
|
|
48
52
|
"access": "public"
|
|
49
53
|
},
|
|
50
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "aabab2c61c39cf4cc6a25a8903a37afb88c006c8"
|
|
51
55
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* internal.ts
|
|
4
|
-
* interact-kit
|
|
5
|
-
*
|
|
6
|
-
* Created by Rygor Kharytanovich <rygor@monterosa.co.uk> on 2022-02-15
|
|
7
|
-
* Copyright © 2022 Monterosa. All rights reserved.
|
|
8
|
-
*
|
|
9
|
-
* More details on the license can be found at https://www.monterosa.co/sdk/license
|
|
10
|
-
*/
|
|
11
|
-
import { Localised } from '../../types';
|
|
12
|
-
export declare function fetchSettings(host: string, id: string): Promise<Localised<Record<string, unknown>>>;
|