evmux-app-framework 0.0.74 → 0.0.76
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
CHANGED
|
@@ -37,6 +37,7 @@ export const availableRequests = {
|
|
|
37
37
|
displayRichTextEditor: "displayRichTextEditor",
|
|
38
38
|
displayToast: "displayToast",
|
|
39
39
|
displayLayerSelector: "displayLayerSelector",
|
|
40
|
+
displayGalleryPicker: "displayGalleryPicker",
|
|
40
41
|
isSudioMode: "isSudioMode",
|
|
41
42
|
getStudioParams: "getStudioParams",
|
|
42
43
|
getSoundRtc: "getSoundRtc",
|
|
@@ -7,7 +7,7 @@ export default class AppsObserverModulesHandler extends AppsObserverRequestHandl
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
canHandleRequest(requestObj) {
|
|
10
|
-
const supportedRequests = [availableRequests.displayDateTimePicker, availableRequests.displayScenePicker, availableRequests.displayRichTextEditor, availableRequests.displayToast, availableRequests.displayLayerSelector];
|
|
10
|
+
const supportedRequests = [availableRequests.displayDateTimePicker, availableRequests.displayScenePicker, availableRequests.displayRichTextEditor, availableRequests.displayToast, availableRequests.displayLayerSelector, availableRequests.displayGalleryPicker];
|
|
11
11
|
return supportedRequests.includes(requestObj.request);
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -19,12 +19,16 @@ export default class AppsObserverModulesHandler extends AppsObserverRequestHandl
|
|
|
19
19
|
return window.mockLayer
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
async displayGalleryPicker(requestObj) {
|
|
23
|
+
return window.mockGalleryResult
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
async displayScenePicker(requestObj) {
|
|
23
27
|
return {value: window.mockScene || 'simple'}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
async displayRichTextEditor(requestObj) {
|
|
27
|
-
return {value: window.mockRichText || '<b>This is a test</b>'}
|
|
31
|
+
return {value: window.mockRichText || '<b>This is a test</b> ' + new Date().getTime()}
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
async displayToast(requestObj) {
|
|
@@ -52,6 +52,27 @@ export default class EvmuxAppsApiModules {
|
|
|
52
52
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
async displayGalleryPicker(
|
|
56
|
+
title = 'Select Media',
|
|
57
|
+
idxList = [],
|
|
58
|
+
allowMultiselect = false,
|
|
59
|
+
filter = null
|
|
60
|
+
){
|
|
61
|
+
let reqObj = {
|
|
62
|
+
request: availableRequests.displayGalleryPicker,
|
|
63
|
+
userAppInstanceId: this.evmuxAppsApi._userAppInstanceId,
|
|
64
|
+
componentId: this.evmuxAppsApi._componentId,
|
|
65
|
+
data: {
|
|
66
|
+
title,
|
|
67
|
+
idxList,
|
|
68
|
+
allowMultiselect,
|
|
69
|
+
filter
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return this.evmuxAppsApi._postMessageManager.sendRequestAsync(reqObj);
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
|
|
55
76
|
async displayDateTimePicker(
|
|
56
77
|
type = 'datetime', // 'date', 'time'
|
|
57
78
|
currentValue = new Date().getTime(),
|
|
@@ -35,7 +35,7 @@ function raiseCommentsEvent(event) {
|
|
|
35
35
|
<div style="display: flex;">
|
|
36
36
|
<div class="panel" >
|
|
37
37
|
Settings (src/settings.html):<br />
|
|
38
|
-
<iframe ref="settingsIframe" width="500" height="500"></iframe>
|
|
38
|
+
<iframe ref="settingsIframe" width="500" height="500" style="resize:both"></iframe>
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
41
|
<div style="width: 50px"></div>
|