@zoom/cobrowsesdk 2.10.0 → 2.11.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoom/cobrowsesdk",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "ZOOM Cobrowse sdk",
5
5
  "files": [
6
6
  "esm",
@@ -1157,6 +1157,24 @@ export type Settings = {
1157
1157
  customizeOverrides?: {
1158
1158
  [key in AgentCustomizeOverridesFeatureKey]?: CustomizeOverride;
1159
1159
  };
1160
+ /**
1161
+ * @description Annotation config, which only takes effect agent-side.
1162
+ */
1163
+ annotation?: {
1164
+ /**
1165
+ * @description Whether to enable annotation on the agent side, the default is true.
1166
+ */
1167
+ enableAgentAnnotation?: boolean;
1168
+ /**
1169
+ * @description Default selected toolbar button on the agent side. The default is 'Vanishing Pen'.
1170
+ * Supported values: 'Mouse', 'Pen', 'Rectangle', 'Eraser', 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse'.
1171
+ * 'Mouse', 'Pen', 'Rectangle', 'Eraser' are in 'Pen' toolbar submenu.
1172
+ * 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse' are in 'Vanishing Pen' toolbar submenu.
1173
+ * 'None', '' or an illegal value means no default selected toolbar button.
1174
+ * This value is also affected by the 'customizeOverrides' config in the toolbar.
1175
+ */
1176
+ defaultSelectedToolbarButton?: string;
1177
+ };
1160
1178
  /**
1161
1179
  * @description In npm mode, a root dom selector or HTMLElement is required to insert an agent portal iframe into your page.
1162
1180
  */
package/types/agent.d.ts CHANGED
@@ -1151,6 +1151,24 @@ export type Settings = {
1151
1151
  customizeOverrides?: {
1152
1152
  [key in AgentCustomizeOverridesFeatureKey]?: CustomizeOverride;
1153
1153
  };
1154
+ /**
1155
+ * @description Annotation config, which only takes effect agent-side.
1156
+ */
1157
+ annotation?: {
1158
+ /**
1159
+ * @description Whether to enable annotation on the agent side, the default is true.
1160
+ */
1161
+ enableAgentAnnotation?: boolean;
1162
+ /**
1163
+ * @description Default selected toolbar button on the agent side. The default is 'Vanishing Pen'.
1164
+ * Supported values: 'Mouse', 'Pen', 'Rectangle', 'Eraser', 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse'.
1165
+ * 'Mouse', 'Pen', 'Rectangle', 'Eraser' are in 'Pen' toolbar submenu.
1166
+ * 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse' are in 'Vanishing Pen' toolbar submenu.
1167
+ * 'None', '' or an illegal value means no default selected toolbar button.
1168
+ * This value is also affected by the 'customizeOverrides' config in the toolbar.
1169
+ */
1170
+ defaultSelectedToolbarButton?: string;
1171
+ };
1154
1172
  /**
1155
1173
  * @description In npm mode, a root dom selector or HTMLElement is required to insert an agent portal iframe into your page.
1156
1174
  */
@@ -778,6 +778,10 @@ declare function session_reconnecting(payload: {
778
778
  * SDK version.
779
779
  */
780
780
  version: string;
781
+ /**
782
+ * Reconnecting type.
783
+ */
784
+ reconnectingType: "reconnecting" | "persisting";
781
785
  }): void;
782
786
  declare function session_started(payload: {
783
787
  /**
@@ -1057,26 +1061,20 @@ export type SessionInfo = {
1057
1061
  */
1058
1062
  export type Settings = {
1059
1063
  /**
1060
- * @description Whether to enable annotation on the customer side, the default is false.
1061
- */
1062
- allowCustomerAnnotation?: boolean;
1063
- /**
1064
- * @description Whether to enable agent on the customer side, the default is true.
1064
+ * @description Annotation config.
1065
1065
  */
1066
- allowAgentAnnotation?: boolean;
1067
- /**
1068
- * @description Whether to enable annotation follow page scroll, the default is false.
1069
- */
1070
- enableAnnotationFollowScroll?: boolean;
1071
- /**
1072
- * @description Default selected toolbar button on the agent side. The default is 'Vanishing Pen'.
1073
- * Support: 'Mouse', 'Pen', 'Rectangle', 'Eraser', 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse'.
1074
- * 'Mouse', 'Pen', 'Rectangle', 'Eraser' in 'Pen' toolbar sub-menu.
1075
- * 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse' in 'Vanishing Pen' toolbar sub-menu.
1076
- */
1077
- defaultSelectedToolbarButton?: string;
1066
+ annotation?: {
1067
+ /**
1068
+ * @description Whether to enable annotation on the customer side, the default is false.
1069
+ */
1070
+ enableCustomerAnnotation?: boolean;
1071
+ /**
1072
+ * @description Whether to enable annotation follow page scroll, the default is false.
1073
+ */
1074
+ enableAnnotationFollowScroll?: boolean;
1075
+ };
1078
1076
  /**
1079
- * @description PII mask configwhich only takes effect when the 'Mask Data in Cobrowse' switch in the admin settings is opened.
1077
+ * @description PII mask config, which only takes effect when the 'Mask Data in Cobrowse' switch in the admin settings is opened.
1080
1078
  */
1081
1079
  piiMask?: {
1082
1080
  //enable?: boolean;
@@ -778,6 +778,10 @@ declare function session_reconnecting(payload: {
778
778
  * SDK version.
779
779
  */
780
780
  version: string;
781
+ /**
782
+ * Reconnecting type.
783
+ */
784
+ reconnectingType: "reconnecting" | "persisting";
781
785
  }): void;
782
786
  declare function session_started(payload: {
783
787
  /**
@@ -1051,26 +1055,20 @@ export type SessionInfo = {
1051
1055
  */
1052
1056
  export type Settings = {
1053
1057
  /**
1054
- * @description Whether to enable annotation on the customer side, the default is false.
1055
- */
1056
- allowCustomerAnnotation?: boolean;
1057
- /**
1058
- * @description Whether to enable agent on the customer side, the default is true.
1058
+ * @description Annotation config.
1059
1059
  */
1060
- allowAgentAnnotation?: boolean;
1061
- /**
1062
- * @description Whether to enable annotation follow page scroll, the default is false.
1063
- */
1064
- enableAnnotationFollowScroll?: boolean;
1065
- /**
1066
- * @description Default selected toolbar button on the agent side. The default is 'Vanishing Pen'.
1067
- * Support: 'Mouse', 'Pen', 'Rectangle', 'Eraser', 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse'.
1068
- * 'Mouse', 'Pen', 'Rectangle', 'Eraser' in 'Pen' toolbar sub-menu.
1069
- * 'Vanishing Pen', 'Vanishing Rectangle', 'Vanishing Mouse' in 'Vanishing Pen' toolbar sub-menu.
1070
- */
1071
- defaultSelectedToolbarButton?: string;
1060
+ annotation?: {
1061
+ /**
1062
+ * @description Whether to enable annotation on the customer side, the default is false.
1063
+ */
1064
+ enableCustomerAnnotation?: boolean;
1065
+ /**
1066
+ * @description Whether to enable annotation follow page scroll, the default is false.
1067
+ */
1068
+ enableAnnotationFollowScroll?: boolean;
1069
+ };
1072
1070
  /**
1073
- * @description PII mask configwhich only takes effect when the 'Mask Data in Cobrowse' switch in the admin settings is opened.
1071
+ * @description PII mask config, which only takes effect when the 'Mask Data in Cobrowse' switch in the admin settings is opened.
1074
1072
  */
1075
1073
  piiMask?: {
1076
1074
  //enable?: boolean;