@googleworkspace/meet-addons 0.9.1-666062218 → 0.9.1-666483321
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/meet.addons.d.ts +3 -4
- package/meet.addons.js +2 -2
- package/package.json +1 -1
package/meet.addons.d.ts
CHANGED
|
@@ -350,16 +350,15 @@ export interface FrameToFrameMessage {
|
|
|
350
350
|
* Possible error types for when interacting with the Meet Web Add-ons SDK
|
|
351
351
|
* throws an error.
|
|
352
352
|
*/
|
|
353
|
-
|
|
354
353
|
export type ErrorType =
|
|
355
354
|
|
|
355
|
+
| 'ActivityIsOngoing'
|
|
356
356
|
| 'ActivityStartingStateEmpty'
|
|
357
357
|
| 'ActivityStartingStateMissingAttributes'
|
|
358
358
|
| 'ActivityStartingStateUnrecognizedAttributes'
|
|
359
359
|
| 'AddonSessionAlreadyCreated'
|
|
360
360
|
| 'ArgumentNullError'
|
|
361
361
|
| 'ArgumentTypeError'
|
|
362
|
-
| 'CoactivityIsOngoing'
|
|
363
362
|
| 'DestinationNotReady'
|
|
364
363
|
| 'InternalError'
|
|
365
364
|
| 'InvalidActivityStartingState'
|
|
@@ -425,7 +424,7 @@ export interface AddonStartingState {
|
|
|
425
424
|
/**
|
|
426
425
|
* Data internal to the add-on that it can use to initialize itself. Useful
|
|
427
426
|
* for communicating application-specific state to users joining the
|
|
428
|
-
*
|
|
427
|
+
* activity that cannot be stored in the URLs.
|
|
429
428
|
* The length of this string must be less than 4,096 characters.
|
|
430
429
|
*/
|
|
431
430
|
additionalData?: string;
|
|
@@ -486,7 +485,7 @@ export interface MeetAddonClient {
|
|
|
486
485
|
/**
|
|
487
486
|
* Ends an ongoing activity.
|
|
488
487
|
* Will fail if:
|
|
489
|
-
* - There is not an ongoing
|
|
488
|
+
* - There is not an ongoing activity.
|
|
490
489
|
* - The user is not the initiator of the activity.
|
|
491
490
|
*/
|
|
492
491
|
endActivity(): Promise<void>;
|
package/meet.addons.js
CHANGED
|
@@ -28,7 +28,7 @@ message:"This method is not supported in standalone mode.",g:"Do not call this m
|
|
|
28
28
|
g:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not modify URL parameters (e.g. as part of a redirect) and ensure that the correct Cloud Project Number was passed into the SDK as a string."},yc={errorType:"DestinationNotReady",message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",g:"Make sure the destination frame has connected before sending messages to it."},zc={errorType:"InvalidActivityStartingState",
|
|
29
29
|
message:"Origin of the ActivityStartingState iframeURLs does not match the origin of the URLs provided in the Add-on manifest.",g:"Ensure that the ActivityStartingState iframeURL origins match the origins of the URLs provided in the Add-on manifest."},Ac={errorType:"ActivityStartingStateMissingAttributes",message:"The supplied ActivityStartingState object does not contain any recognized attributes.",g:"Ensure that the ActivityStartingState object contains at least one of the following attributes: mainStageUrl, sidePanelUrl, additionalData."},
|
|
30
30
|
Bc={errorType:"ActivityStartingStateUnrecognizedAttributes",message:"The supplied ActivityStartingState object contains attributes that are not recognized.",g:"Ensure that the ActivityStartingState object has only the following attributes: mainStageUrl, sidePanelUrl, additionalData."},Cc=(a,b,c)=>({errorType:"ArgumentTypeError",message:`The type '${b}' of argument supplied for '${a}' did not match the expected type '${c}'.`,g:"Ensure the type of the argument provided matches the expected type."}),
|
|
31
|
-
Dc=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,g:"No further information is available."}),Ec={errorType:"
|
|
31
|
+
Dc=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,g:"No further information is available."}),Ec={errorType:"ActivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",g:"Ensure that no activity is ongoing."},Fc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",g:"Send one of the available commands in the frame message."},Gc={errorType:"RequiresEapEnrollment",message:"This feature is only available to early access partners.",
|
|
32
32
|
g:"Meet add-on early access enrollment is currently closed."},Hc={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current activity.",g:"Ensure that the user is the initiator of the current activity or that the activity has ended."},Ic={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",g:"Ensure that the activityStartingState URL size is less than 512 characters and the data size is less than 4096 characters."},
|
|
33
33
|
Jc={errorType:"SizeLimitExceededFrameToFrameMessage",message:"The size of the frame to frame message exceeds the limits allowed.",g:"Ensure that the frame to frame message size is less than 1,000,000 characters."},Kc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",g:"Only instantiate the AddonSession once."},Lc={errorType:"UserCancelled",message:"The user cancelled starting an activity.",g:"The user needs to click continue to start the activity."};
|
|
34
34
|
function Mc(a){switch(a){case 0:return qc;case 1:return yc;case 2:return zc;case 3:return Ec;case 4:return Fc;case 5:return Gc;case 6:return vc;case 7:return Hc;case 8:return Ic;case 9:return Jc;case 10:return Lc;default:return rc}}
|
|
@@ -58,7 +58,7 @@ var qd=async function(a){a=a.channel;var b=a.Y;var c=new M;var d=new Jd;c=B(c,13
|
|
|
58
58
|
S,d=new M;b=B(d,15,L,b);await c(a,P(b))},ef=async function(a){setInterval(async()=>{await qd(a)},1E3)},S=async function(a,b){(a=await a.channel.Y(b))||Pc(rc,"Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||Pc(rc,"Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||Pc(rc,"Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=Md(b)}catch(d){Pc(rc,"The ControlMessage can't be deserialized."+
|
|
59
59
|
` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=E(c,fd,2,Nd))||Pc(rc,"MeetToAddonMessage field on ControlMessage is falsy."+` ${JSON.stringify(b)}`);b=b==null?void 0:E(b,pc,10,ed);if((b==null?void 0:D(b,1))!==void 0)throw new I(Mc(D(b,1)));return a},ff=async function(a,b,c){var d=S,e=new M;b=B(e,1,L,b);d=await d(a,P(b));a=d.data.messagePort;var f;(d=(f=E(Md(d.data.content),fd,2,Nd))==null?void 0:E(f,oc,1,ed))!=null?f=d:(f=new oc,f=G(f,1,0));return{channel:a?Pe(a,c):void 0,response:f}},gf=async function(a){const b=
|
|
60
60
|
Ed(),{channel:c,response:d}=await ff(a,b,e=>af(e));if(!c)throw new I(Nc(d));return c},hf=async function(a){const b=Fd(),{channel:c,response:d}=await ff(a,b,e=>Ve(e));if(!c)throw new I(Nc(d));return{channel:c,response:d}},jf=async function(a){var b=S;var c=new M;var d=new Kd;c=B(c,5,L,d);await b(a,P(c))},kf=async function(a){var b=S;var c=new M;var d=new Hd;c=B(c,6,L,d);await b(a,P(c))},lf=async function(a,b,c){var d=S,e=new M,f=new Id;b=G(f,1,b).kb(c);e=B(e,7,L,b);await d(a,P(e))};
|
|
61
|
-
class df extends K{constructor(a,b,c){super();this.Hb=a;this.channel=b;a=We||(We=kc("[0,9,1]"));a=Tb(a);a=Xb(a,4,xb("
|
|
61
|
+
class df extends K{constructor(a,b,c){super();this.Hb=a;this.channel=b;a=We||(We=kc("[0,9,1]"));a=Tb(a);a=Xb(a,4,xb("666483321"));b=a.h;var d=b[r];b=d&2?a:Kb(a.constructor,Sb(b,d,!0));a=new M;d=new Gd;b=A(d,2,b);c=F(b,3,c);c=B(a,2,L,c);this.channel.send(P(c));ef(this)}};let mf;var nf=class{constructor(a){var b=mf;this.ta=a;this.i=b}delete(){throw Error("Not implemented.");}};var of=class extends H{constructor(){super()}};var pf=class extends H{constructor(){super()}};var rf=class extends H{constructor(){super()}F(){return x(this,qf)}Ba(){return E(this,Se,1,qf)}pa(a){return B(this,1,qf,a)}},qf=[1,2,3];var U=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.W=!1};U.prototype.stopPropagation=function(){this.W=!0};U.prototype.preventDefault=function(){this.defaultPrevented=!0};var V=function(a,b){U.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.T=null;if(a){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;
|
|
62
62
|
this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=va||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=va||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=
|
|
63
63
|
a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.timeStamp=a.timeStamp;this.T=a;a.defaultPrevented&&V.Z.preventDefault.call(this)}};ka(V,U);
|
|
64
64
|
V.prototype.stopPropagation=function(){V.Z.stopPropagation.call(this);this.T.stopPropagation?this.T.stopPropagation():this.T.cancelBubble=!0};V.prototype.preventDefault=function(){V.Z.preventDefault.call(this);var a=this.T;a.preventDefault?a.preventDefault():a.returnValue=!1};var sf="closure_listenable_"+(Math.random()*1E6|0);var tf=0;var uf=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ga=e;this.key=++tf;this.X=this.ca=!1},vf=function(a){a.X=!0;a.listener=null;a.proxy=null;a.src=null;a.ga=null};var W=function(a){this.src=a;this.j={};this.ba=0};W.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.j[f];a||(a=this.j[f]=[],this.ba++);var g=wf(a,b,d,e);g>-1?(b=a[g],c||(b.ca=!1)):(b=new uf(b,this.src,f,!!d,e),b.ca=c,a.push(b));return b};W.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=wf(e,b,c,d);return b>-1?(vf(e[b]),Array.prototype.splice.call(e,b,1),e.length==0&&(delete this.j[a],this.ba--),!0):!1};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleworkspace/meet-addons",
|
|
3
3
|
"description": "The Google Meet Add-ons SDK lets you embed your app into Google Meet as an add-on where users can discover, share, and collaborate in the app without leaving Meet",
|
|
4
|
-
"version": "0.9.1-
|
|
4
|
+
"version": "0.9.1-666483321",
|
|
5
5
|
"repository": "googleworkspace/meet",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"homepage": "https://developers.google.com/meet/add-ons/guides/overview",
|