siam-ui-utils 3.1.0 → 3.1.2
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/CustomBootstrap.js +9 -9
- package/dist/_virtual/_commonjsHelpers.js +7 -7
- package/dist/_virtual/events.js +6 -6
- package/dist/_virtual/events2.js +5 -5
- package/dist/_virtual/index.js +8 -8
- package/dist/_virtual/index2.js +5 -5
- package/dist/assets/img/copiar.png.js +5 -5
- package/dist/assets/img/take-photo.jpg.js +5 -5
- package/dist/constants.js +9 -9
- package/dist/copy-link/index.js +60 -60
- package/dist/copy-link/styles.css +37 -37
- package/dist/custom-input/CustomInputCheckbox.js +37 -37
- package/dist/custom-input/CustomInputCurrency.js +84 -84
- package/dist/custom-input/CustomInputFile.js +47 -47
- package/dist/custom-input/CustomInputRadio.js +68 -68
- package/dist/custom-input/constant.js +5 -5
- package/dist/custom-input/index.js +12 -12
- package/dist/drag-and-dropzone/DropzoneComponent.js +83 -83
- package/dist/drag-and-dropzone/config.js +59 -59
- package/dist/drag-and-dropzone/index.js +39 -39
- package/dist/dropzone/Input.js +77 -77
- package/dist/dropzone/Layout.js +50 -50
- package/dist/dropzone/Preview.js +117 -117
- package/dist/dropzone/SubmitButton.js +34 -34
- package/dist/dropzone/assets/cancel.svg.js +5 -5
- package/dist/dropzone/assets/remove.svg.js +5 -5
- package/dist/dropzone/assets/restart.svg.js +5 -5
- package/dist/dropzone/index.js +514 -514
- package/dist/dropzone/utils.js +93 -93
- package/dist/dropzone-uploader/base/index.js +135 -135
- package/dist/dropzone-uploader/index.js +7 -7
- package/dist/dropzone-uploader/styled/index.js +148 -148
- package/dist/iconos/constants-svg.js +666 -666
- package/dist/iconos/icon-button-svg.js +50 -50
- package/dist/iconos/index.js +24 -24
- package/dist/iconos/styled-icon.js +26 -26
- package/dist/index.js +4 -4
- package/dist/intl-messages/index.js +11 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +8 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +13 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +8 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +13 -13
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +9 -9
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Badge.js +77 -0
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Badge.js.map +1 -0
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Button.js +111 -111
- package/dist/node_modules/@neolution-ch/reactstrap/esm/CloseButton.js +106 -106
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Col.js +125 -125
- package/dist/node_modules/@neolution-ch/reactstrap/esm/FormGroup.js +75 -75
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Input.js +225 -225
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Label.js +122 -122
- package/dist/node_modules/@neolution-ch/reactstrap/esm/Row.js +83 -83
- package/dist/node_modules/@neolution-ch/reactstrap/esm/utils.js +68 -68
- package/dist/node_modules/classnames/index.js +62 -62
- package/dist/node_modules/dom-helpers/esm/addClass.js +10 -10
- package/dist/node_modules/dom-helpers/esm/hasClass.js +8 -8
- package/dist/node_modules/dom-helpers/esm/removeClass.js +16 -16
- package/dist/node_modules/dropzone/dist/dropzone.js +1968 -1968
- package/dist/node_modules/events/events.js +372 -372
- package/dist/node_modules/just-extend/index.esm.js +43 -43
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js +275 -275
- package/dist/node_modules/react-transition-group/esm/Transition.js +441 -441
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +146 -146
- package/dist/node_modules/react-transition-group/esm/TransitionGroupContext.js +6 -6
- package/dist/node_modules/react-transition-group/esm/config.js +7 -7
- package/dist/node_modules/react-transition-group/esm/utils/ChildMapping.js +100 -100
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +24 -24
- package/dist/node_modules/react-transition-group/esm/utils/reflow.js +7 -7
- package/dist/react-notifications/Notification.js +73 -73
- package/dist/react-notifications/NotificationContainer.js +59 -59
- package/dist/react-notifications/NotificationManager.js +174 -174
- package/dist/react-notifications/Notifications.js +72 -72
- package/dist/react-notifications/constants.js +26 -26
- package/dist/react-notifications/index.js +11 -11
- package/dist/select/custom-select/constants.js +8 -8
- package/dist/select/custom-select/index.js +89 -89
- package/dist/select/custom-select-input/index.js +12 -12
- package/dist/select/index.js +9 -9
- package/dist/select/multi-select/badge-label-multi-select.js +29 -29
- package/dist/select/multi-select/index.css +36 -36
- package/dist/select/multi-select/index.js +171 -171
- package/dist/select/multi-select/index.js.map +1 -1
- package/dist/select/multi-select/styled-component.js +23 -23
- package/dist/select/multi-select/styled-component.js.map +1 -1
- package/dist/timer/index.js +60 -60
- package/dist/timer/styles.css +58 -58
- package/dist/tomar-foto/index.js +62 -62
- package/dist/view-layout/button-editor.js +14 -14
- package/dist/view-layout/constants.js +11 -11
- package/dist/view-layout/editor-layer.js +28 -28
- package/dist/view-layout/index.js +53 -53
- package/dist/view-layout/slot-wrapper.js +39 -39
- package/dist/view-layout/styles.css +126 -126
- package/dist/where-by-room/index.js +20 -20
- package/dist/where-by-room/room.js +78 -78
- package/package.json +1 -4
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
.visualizador-container {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.visualizador-grid,
|
|
6
|
-
.visualizador-grid-css {
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
min-width: 90vh;
|
|
10
|
-
min-height: 80vh;
|
|
11
|
-
background: #ffffff;
|
|
12
|
-
border-radius: 12px;
|
|
13
|
-
display: grid;
|
|
14
|
-
border: solid 2px #900604;
|
|
15
|
-
position: relative;
|
|
16
|
-
gap: 1px;
|
|
17
|
-
box-sizing: content-box;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.visualizador-slot {
|
|
21
|
-
display: flex;
|
|
22
|
-
border: 1px solid #900604;
|
|
23
|
-
border-radius: 7px;
|
|
24
|
-
background: #fff;
|
|
25
|
-
}
|
|
26
|
-
.visualizador-slot--row, .visualizador-slot-row {
|
|
27
|
-
flex-direction: row;
|
|
28
|
-
}
|
|
29
|
-
.visualizador-slot--column, .visualizador-slot-column, .visualizador-slot-column-col {
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
}
|
|
32
|
-
.visualizador-slot-content--small {
|
|
33
|
-
font-size: 0.85rem;
|
|
34
|
-
}
|
|
35
|
-
.visualizador-slot-content--medium {
|
|
36
|
-
font-size: 1rem;
|
|
37
|
-
}
|
|
38
|
-
.visualizador-slot-content--large {
|
|
39
|
-
font-size: 1.5rem;
|
|
40
|
-
}
|
|
41
|
-
.visualizador-slot-align--start {
|
|
42
|
-
align-items: flex-start;
|
|
43
|
-
}
|
|
44
|
-
.visualizador-slot-align--center {
|
|
45
|
-
align-items: center;
|
|
46
|
-
}
|
|
47
|
-
.visualizador-slot-align--end {
|
|
48
|
-
align-items: flex-end;
|
|
49
|
-
}
|
|
50
|
-
.visualizador-slot-align--stretch {
|
|
51
|
-
align-items: stretch;
|
|
52
|
-
}
|
|
53
|
-
.visualizador-slot-justify--start {
|
|
54
|
-
justify-content: flex-start;
|
|
55
|
-
}
|
|
56
|
-
.visualizador-slot-justify--center {
|
|
57
|
-
justify-content: center;
|
|
58
|
-
}
|
|
59
|
-
.visualizador-slot-justify--end {
|
|
60
|
-
justify-content: flex-end;
|
|
61
|
-
}
|
|
62
|
-
.visualizador-slot-justify--space-between {
|
|
63
|
-
justify-content: space-between;
|
|
64
|
-
}
|
|
65
|
-
.visualizador-slot-justify--space-around {
|
|
66
|
-
justify-content: space-around;
|
|
67
|
-
}
|
|
68
|
-
.visualizador-slot-justify--space-evenly {
|
|
69
|
-
justify-content: space-evenly;
|
|
70
|
-
}
|
|
71
|
-
.visualizador-slot--no-border {
|
|
72
|
-
border: none !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.slot-legend {
|
|
76
|
-
width: auto;
|
|
77
|
-
font-size: 0.75rem;
|
|
78
|
-
margin-bottom: 0px !important;
|
|
79
|
-
margin-left: -20px !important;
|
|
80
|
-
font-weight: 700;
|
|
81
|
-
color: #900604;
|
|
82
|
-
white-space: nowrap;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.editor-layer {
|
|
86
|
-
position: absolute;
|
|
87
|
-
width: 100%;
|
|
88
|
-
height: 100%;
|
|
89
|
-
pointer-events: none;
|
|
90
|
-
z-index: 20;
|
|
91
|
-
display: grid;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.editor-layer-cell-coord {
|
|
95
|
-
font-size: 0.75rem;
|
|
96
|
-
justify-self: center;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.editor-layer-cell {
|
|
100
|
-
font-size: 0.7em;
|
|
101
|
-
color: #797979;
|
|
102
|
-
align-content: center;
|
|
103
|
-
padding: 2px;
|
|
104
|
-
text-align: left;
|
|
105
|
-
pointer-events: none;
|
|
106
|
-
box-sizing: border-box;
|
|
107
|
-
border: 1px dashed #bbb;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.visualizador-editor-btn {
|
|
111
|
-
position: absolute;
|
|
112
|
-
top: 8px;
|
|
113
|
-
right: 8px;
|
|
114
|
-
z-index: 100;
|
|
115
|
-
padding: 6px 12px;
|
|
116
|
-
font-size: 1em;
|
|
117
|
-
color: #fff;
|
|
118
|
-
border: none;
|
|
119
|
-
border-radius: 4px;
|
|
120
|
-
cursor: pointer;
|
|
121
|
-
}
|
|
122
|
-
.visualizador-editor-btn--activo {
|
|
123
|
-
background: #900604;
|
|
124
|
-
}
|
|
125
|
-
.visualizador-editor-btn--inactivo {
|
|
126
|
-
background: #bbb;
|
|
1
|
+
.visualizador-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.visualizador-grid,
|
|
6
|
+
.visualizador-grid-css {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
min-width: 90vh;
|
|
10
|
+
min-height: 80vh;
|
|
11
|
+
background: #ffffff;
|
|
12
|
+
border-radius: 12px;
|
|
13
|
+
display: grid;
|
|
14
|
+
border: solid 2px #900604;
|
|
15
|
+
position: relative;
|
|
16
|
+
gap: 1px;
|
|
17
|
+
box-sizing: content-box;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.visualizador-slot {
|
|
21
|
+
display: flex;
|
|
22
|
+
border: 1px solid #900604;
|
|
23
|
+
border-radius: 7px;
|
|
24
|
+
background: #fff;
|
|
25
|
+
}
|
|
26
|
+
.visualizador-slot--row, .visualizador-slot-row {
|
|
27
|
+
flex-direction: row;
|
|
28
|
+
}
|
|
29
|
+
.visualizador-slot--column, .visualizador-slot-column, .visualizador-slot-column-col {
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
}
|
|
32
|
+
.visualizador-slot-content--small {
|
|
33
|
+
font-size: 0.85rem;
|
|
34
|
+
}
|
|
35
|
+
.visualizador-slot-content--medium {
|
|
36
|
+
font-size: 1rem;
|
|
37
|
+
}
|
|
38
|
+
.visualizador-slot-content--large {
|
|
39
|
+
font-size: 1.5rem;
|
|
40
|
+
}
|
|
41
|
+
.visualizador-slot-align--start {
|
|
42
|
+
align-items: flex-start;
|
|
43
|
+
}
|
|
44
|
+
.visualizador-slot-align--center {
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
.visualizador-slot-align--end {
|
|
48
|
+
align-items: flex-end;
|
|
49
|
+
}
|
|
50
|
+
.visualizador-slot-align--stretch {
|
|
51
|
+
align-items: stretch;
|
|
52
|
+
}
|
|
53
|
+
.visualizador-slot-justify--start {
|
|
54
|
+
justify-content: flex-start;
|
|
55
|
+
}
|
|
56
|
+
.visualizador-slot-justify--center {
|
|
57
|
+
justify-content: center;
|
|
58
|
+
}
|
|
59
|
+
.visualizador-slot-justify--end {
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
}
|
|
62
|
+
.visualizador-slot-justify--space-between {
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
}
|
|
65
|
+
.visualizador-slot-justify--space-around {
|
|
66
|
+
justify-content: space-around;
|
|
67
|
+
}
|
|
68
|
+
.visualizador-slot-justify--space-evenly {
|
|
69
|
+
justify-content: space-evenly;
|
|
70
|
+
}
|
|
71
|
+
.visualizador-slot--no-border {
|
|
72
|
+
border: none !important;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.slot-legend {
|
|
76
|
+
width: auto;
|
|
77
|
+
font-size: 0.75rem;
|
|
78
|
+
margin-bottom: 0px !important;
|
|
79
|
+
margin-left: -20px !important;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
color: #900604;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.editor-layer {
|
|
86
|
+
position: absolute;
|
|
87
|
+
width: 100%;
|
|
88
|
+
height: 100%;
|
|
89
|
+
pointer-events: none;
|
|
90
|
+
z-index: 20;
|
|
91
|
+
display: grid;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.editor-layer-cell-coord {
|
|
95
|
+
font-size: 0.75rem;
|
|
96
|
+
justify-self: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.editor-layer-cell {
|
|
100
|
+
font-size: 0.7em;
|
|
101
|
+
color: #797979;
|
|
102
|
+
align-content: center;
|
|
103
|
+
padding: 2px;
|
|
104
|
+
text-align: left;
|
|
105
|
+
pointer-events: none;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
border: 1px dashed #bbb;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.visualizador-editor-btn {
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 8px;
|
|
113
|
+
right: 8px;
|
|
114
|
+
z-index: 100;
|
|
115
|
+
padding: 6px 12px;
|
|
116
|
+
font-size: 1em;
|
|
117
|
+
color: #fff;
|
|
118
|
+
border: none;
|
|
119
|
+
border-radius: 4px;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
}
|
|
122
|
+
.visualizador-editor-btn--activo {
|
|
123
|
+
background: #900604;
|
|
124
|
+
}
|
|
125
|
+
.visualizador-editor-btn--inactivo {
|
|
126
|
+
background: #bbb;
|
|
127
127
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { WherebyProvider } from "@whereby.com/browser-sdk/react";
|
|
3
|
-
import "@whereby.com/browser-sdk/embed";
|
|
4
|
-
import { Room } from "./room.js";
|
|
5
|
-
const WhereByRoom = ({ src, onEvent, onActions, iframeClass }) => {
|
|
6
|
-
return /* @__PURE__ */ jsx(WherebyProvider, { children: /* @__PURE__ */ jsx(
|
|
7
|
-
Room,
|
|
8
|
-
{
|
|
9
|
-
src,
|
|
10
|
-
onEvent,
|
|
11
|
-
onActions,
|
|
12
|
-
iframeClass
|
|
13
|
-
}
|
|
14
|
-
) });
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
WhereByRoom,
|
|
18
|
-
WhereByRoom as default
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { WherebyProvider } from "@whereby.com/browser-sdk/react";
|
|
3
|
+
import "@whereby.com/browser-sdk/embed";
|
|
4
|
+
import { Room } from "./room.js";
|
|
5
|
+
const WhereByRoom = ({ src, onEvent, onActions, iframeClass }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(WherebyProvider, { children: /* @__PURE__ */ jsx(
|
|
7
|
+
Room,
|
|
8
|
+
{
|
|
9
|
+
src,
|
|
10
|
+
onEvent,
|
|
11
|
+
onActions,
|
|
12
|
+
iframeClass
|
|
13
|
+
}
|
|
14
|
+
) });
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
WhereByRoom,
|
|
18
|
+
WhereByRoom as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useRef, useEffect } from "react";
|
|
3
|
-
import "@whereby.com/browser-sdk/embed";
|
|
4
|
-
const Room = ({ src, onEvent, onActions, iframeClass }) => {
|
|
5
|
-
const wherebyRef = useRef(null);
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
const elm = wherebyRef.current;
|
|
8
|
-
if (!elm) return;
|
|
9
|
-
if (onActions) {
|
|
10
|
-
onActions({
|
|
11
|
-
endMeeting: () => elm.endMeeting(),
|
|
12
|
-
knock: () => elm.knock(),
|
|
13
|
-
cancelKnock: () => elm.cancelKnock(),
|
|
14
|
-
leaveRoom: () => elm.leaveRoom(),
|
|
15
|
-
startRecording: () => elm.startRecording(),
|
|
16
|
-
stopRecording: () => elm.stopRecording(),
|
|
17
|
-
startStreaming: () => elm.startStreaming(),
|
|
18
|
-
stopStreaming: () => elm.stopStreaming(),
|
|
19
|
-
startLiveTranscription: () => elm.startLiveTranscription(),
|
|
20
|
-
stopLiveTranscription: () => elm.stopLiveTranscription(),
|
|
21
|
-
toggleCamera: (enabled) => elm.toggleCamera(enabled),
|
|
22
|
-
toggleMicrophone: (enabled) => elm.toggleMicrophone(enabled),
|
|
23
|
-
toggleScreenshare: (enabled) => elm.toggleScreenshare(enabled),
|
|
24
|
-
toggleChat: (enabled) => elm.toggleChat(enabled)
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
const events = [
|
|
28
|
-
"ready",
|
|
29
|
-
"grant_device_permission",
|
|
30
|
-
"deny_device_permission",
|
|
31
|
-
"precall_check_completed",
|
|
32
|
-
"precall_check_skipped",
|
|
33
|
-
"knock",
|
|
34
|
-
"cancel_knock",
|
|
35
|
-
"join",
|
|
36
|
-
"leave",
|
|
37
|
-
"meeting_end",
|
|
38
|
-
"participantupdate",
|
|
39
|
-
"participant_join",
|
|
40
|
-
"participant_leave",
|
|
41
|
-
"microphone_toggle",
|
|
42
|
-
"camera_toggle",
|
|
43
|
-
"screenshare_toggle",
|
|
44
|
-
"chat_toggle",
|
|
45
|
-
"people_toggle",
|
|
46
|
-
"pip_toggle",
|
|
47
|
-
"streaming_status_change",
|
|
48
|
-
"recording_status_change",
|
|
49
|
-
"transcription_status_change",
|
|
50
|
-
"connection_status_change"
|
|
51
|
-
];
|
|
52
|
-
function handleEvent(e) {
|
|
53
|
-
if (onEvent) onEvent(e.type, e.detail);
|
|
54
|
-
}
|
|
55
|
-
events.forEach((ev) => elm.addEventListener(ev, handleEvent));
|
|
56
|
-
return () => {
|
|
57
|
-
events.forEach((ev) => elm.removeEventListener(ev, handleEvent));
|
|
58
|
-
};
|
|
59
|
-
}, [onEvent, onActions]);
|
|
60
|
-
return /* @__PURE__ */ jsx("div", { className: iframeClass, children: /* @__PURE__ */ jsx(
|
|
61
|
-
"whereby-embed",
|
|
62
|
-
{
|
|
63
|
-
ref: wherebyRef,
|
|
64
|
-
class: iframeClass,
|
|
65
|
-
room: src,
|
|
66
|
-
chat: "on",
|
|
67
|
-
screenshare: "on",
|
|
68
|
-
audio: "on",
|
|
69
|
-
video: "on",
|
|
70
|
-
allow: "camera; microphone; fullscreen"
|
|
71
|
-
}
|
|
72
|
-
) });
|
|
73
|
-
};
|
|
74
|
-
export {
|
|
75
|
-
Room,
|
|
76
|
-
Room as default
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=room.js.map
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useEffect } from "react";
|
|
3
|
+
import "@whereby.com/browser-sdk/embed";
|
|
4
|
+
const Room = ({ src, onEvent, onActions, iframeClass }) => {
|
|
5
|
+
const wherebyRef = useRef(null);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
const elm = wherebyRef.current;
|
|
8
|
+
if (!elm) return;
|
|
9
|
+
if (onActions) {
|
|
10
|
+
onActions({
|
|
11
|
+
endMeeting: () => elm.endMeeting(),
|
|
12
|
+
knock: () => elm.knock(),
|
|
13
|
+
cancelKnock: () => elm.cancelKnock(),
|
|
14
|
+
leaveRoom: () => elm.leaveRoom(),
|
|
15
|
+
startRecording: () => elm.startRecording(),
|
|
16
|
+
stopRecording: () => elm.stopRecording(),
|
|
17
|
+
startStreaming: () => elm.startStreaming(),
|
|
18
|
+
stopStreaming: () => elm.stopStreaming(),
|
|
19
|
+
startLiveTranscription: () => elm.startLiveTranscription(),
|
|
20
|
+
stopLiveTranscription: () => elm.stopLiveTranscription(),
|
|
21
|
+
toggleCamera: (enabled) => elm.toggleCamera(enabled),
|
|
22
|
+
toggleMicrophone: (enabled) => elm.toggleMicrophone(enabled),
|
|
23
|
+
toggleScreenshare: (enabled) => elm.toggleScreenshare(enabled),
|
|
24
|
+
toggleChat: (enabled) => elm.toggleChat(enabled)
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const events = [
|
|
28
|
+
"ready",
|
|
29
|
+
"grant_device_permission",
|
|
30
|
+
"deny_device_permission",
|
|
31
|
+
"precall_check_completed",
|
|
32
|
+
"precall_check_skipped",
|
|
33
|
+
"knock",
|
|
34
|
+
"cancel_knock",
|
|
35
|
+
"join",
|
|
36
|
+
"leave",
|
|
37
|
+
"meeting_end",
|
|
38
|
+
"participantupdate",
|
|
39
|
+
"participant_join",
|
|
40
|
+
"participant_leave",
|
|
41
|
+
"microphone_toggle",
|
|
42
|
+
"camera_toggle",
|
|
43
|
+
"screenshare_toggle",
|
|
44
|
+
"chat_toggle",
|
|
45
|
+
"people_toggle",
|
|
46
|
+
"pip_toggle",
|
|
47
|
+
"streaming_status_change",
|
|
48
|
+
"recording_status_change",
|
|
49
|
+
"transcription_status_change",
|
|
50
|
+
"connection_status_change"
|
|
51
|
+
];
|
|
52
|
+
function handleEvent(e) {
|
|
53
|
+
if (onEvent) onEvent(e.type, e.detail);
|
|
54
|
+
}
|
|
55
|
+
events.forEach((ev) => elm.addEventListener(ev, handleEvent));
|
|
56
|
+
return () => {
|
|
57
|
+
events.forEach((ev) => elm.removeEventListener(ev, handleEvent));
|
|
58
|
+
};
|
|
59
|
+
}, [onEvent, onActions]);
|
|
60
|
+
return /* @__PURE__ */ jsx("div", { className: iframeClass, children: /* @__PURE__ */ jsx(
|
|
61
|
+
"whereby-embed",
|
|
62
|
+
{
|
|
63
|
+
ref: wherebyRef,
|
|
64
|
+
class: iframeClass,
|
|
65
|
+
room: src,
|
|
66
|
+
chat: "on",
|
|
67
|
+
screenshare: "on",
|
|
68
|
+
audio: "on",
|
|
69
|
+
video: "on",
|
|
70
|
+
allow: "camera; microphone; fullscreen"
|
|
71
|
+
}
|
|
72
|
+
) });
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
Room,
|
|
76
|
+
Room as default
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=room.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "siam-ui-utils",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"ampf-react",
|
|
6
6
|
"ampf-utils",
|
|
@@ -129,8 +129,5 @@
|
|
|
129
129
|
"vite": "^7.0.1",
|
|
130
130
|
"vite-plugin-commonjs": "^0.10.3",
|
|
131
131
|
"vitest": "^3.2.4"
|
|
132
|
-
},
|
|
133
|
-
"overrides": {
|
|
134
|
-
"react-popper": "2.3.0"
|
|
135
132
|
}
|
|
136
133
|
}
|