@googleworkspace/meet-addons 0.9.1-662669087 → 0.9.1-663076077

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 CHANGED
@@ -491,7 +491,8 @@ export interface MeetSidePanelClient extends MeetAddonClient {
491
491
  * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks.frametoframemessage
492
492
  * | frameToFrameMessage} add-on callback (see {@link
493
493
  * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks
494
- * | AddonCallbacks}).
494
+ * | AddonCallbacks}). The length of this string must be less than 1,000,000
495
+ * characters.
495
496
  */
496
497
  notifyMainStage(payload: string): Promise<void>;
497
498
  }
@@ -505,7 +506,8 @@ export interface MeetMainStageClient extends MeetAddonClient {
505
506
  * iframe. The add-on running in the side panel iframe can react to this
506
507
  * message using the {@link
507
508
  * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks.frametoframemessage
508
- * | frameToFrameMessage} add-on callback.
509
+ * | frameToFrameMessage} add-on callback. The length of this string must
510
+ * be less than 1,000,000 characters.
509
511
  */
510
512
  notifySidePanel(payload: string): Promise<void>;
511
513
  /**
package/meet.addons.js CHANGED
@@ -30,7 +30,7 @@ message:"Origin of the CollaborationStartingState iframeURLs does not match the
30
30
  message:"The supplied CollaborationStartingState object does not contain any recognized attributes.",g:"Ensure that the CollaborationStartingState object contains at least one of the following attributes: mainStageUrl, sidePanelUrl, additionalData."},Dc={errorType:"CollaborationStartingStateUnrecognizedAttributes",message:"The supplied CollaborationStartingState object contains attributes that are not recognized.",g:"Ensure that the CollaborationStartingState object has only the following attributes: mainStageUrl, sidePanelUrl, additionalData."},
31
31
  Ec=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,g:"No further information is available."}),Fc={errorType:"CoactivityIsOngoing",message:"Operation cannot be performed while a collaboration is ongoing.",g:"Ensure that no collaboration is ongoing."},Gc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",g:"Send one of the available commands in the frame message."},Hc={errorType:"RequiresEapEnrollment",message:"This feature is only available to early access partners.",
32
32
  g:"Meet add-on early access enrollment is currently closed."},Ic={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current collaboration.",g:"Ensure that the user is the initiator of the current collaboration or that the collaboration has ended."},Jc={errorType:"SizeLimitExceededCollaborationStartingState",message:"The size of the collaborationStartingState URLs and/or its data exceed the limits allowed.",g:"Ensure that the collaborationStartingState URL size is less than 512 characters and the data size is less than 4096 characters."},
33
- Kc={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 megabyte."},Lc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",g:"Only instantiate the AddonSession once."};
33
+ Kc={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."},Lc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",g:"Only instantiate the AddonSession once."};
34
34
  function Mc(a){switch(a){case 0:return rc;case 1:return zc;case 2:return Ac;case 3:return Fc;case 4:return Gc;case 5:return Hc;case 6:return wc;case 7:return Ic;case 8:return Jc;case 9:return Kc;default:return sc}}
35
35
  function Nc(a){let b;var c=(b=E(a,1))!=null?b:0;a=Oc(a.Sa());switch(c){case 1:return{errorType:"InternalError",message:`Could not connect to ${a} channel. Meet did not respond with a MessagePort.`,g:"No further information is available."};case 2:return{errorType:"InternalError",message:`Could not connect to ${a}. A conflicting ${a} exists.`,g:"No further information is available."};case 3:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon does not have permission to open a ${a}.`,
36
36
  g:"No further information is available."};case 4:return{errorType:"InternalError",message:`Could not connect to ${a} channel. The addon is not authorized for this ${a}.`,g:"No further information is available."};case 0:return Ec(a);case 5:a:switch(a){case "coActivity":c={errorType:"InternalError",message:`Could not connect to ${a} channel. The coActivity was not found.`,g:`Consider starting the ${a} only after receiving a callback from the 'userInitiatedCollaboration' callback.`};break a;default:c=
@@ -57,7 +57,7 @@ var sd=async function(a){a=a.channel;var b=a.Y;var c=new N;var d=new Ld;c=C(c,13
57
57
  T,d=new N;b=C(d,15,M,b);await c(a,Q(b))},gf=async function(a){setInterval(async()=>{await sd(a)},1E3)},T=async function(a,b){(a=await a.channel.Y(b))||Pc(sc,"Falsy response received from the message channel."+` ${JSON.stringify(a)}`);(b=a.data)||Pc(sc,"Data field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);(b=b.content)||Pc(sc,"Content field in the response from the message channel is falsy."+` ${JSON.stringify(b)}`);let c=void 0;try{c=Od(b)}catch(d){Pc(sc,"The ControlMessage can't be deserialized."+
58
58
  ` ${JSON.stringify(b)}. ${JSON.stringify(d)}`)}(b=F(c,id,2,Pd))||Pc(sc,"MeetToAddonMessage field on ControlMessage is falsy."+` ${JSON.stringify(b)}`);b=b==null?void 0:F(b,qc,10,hd);if((b==null?void 0:E(b,1))!==void 0)throw new K(Mc(E(b,1)));return a},hf=async function(a,b,c){var d=T,e=new N;b=C(e,1,M,b);d=await d(a,Q(b));a=d.data.messagePort;var f;(d=(f=F(Od(d.data.content),id,2,Pd))==null?void 0:F(f,pc,1,hd))!=null?f=d:(f=new pc,f=H(f,1,0));return{channel:a?Re(a,c):void 0,response:f}},jf=async function(a){const b=
59
59
  Gd(),{channel:c,response:d}=await hf(a,b,e=>cf(e));if(!c)throw new K(Nc(d));return c},kf=async function(a){const b=Hd(),{channel:c,response:d}=await hf(a,b,e=>Xe(e));if(!c)throw new K(Nc(d));return{channel:c,response:d}},lf=async function(a){var b=T;var c=new N;var d=new Md;c=C(c,5,M,d);await b(a,Q(c))},mf=async function(a){var b=T;var c=new N;var d=new Jd;c=C(c,6,M,d);await b(a,Q(c))},nf=async function(a,b,c){var d=T,e=new N,f=new Kd;b=H(f,1,b).gb(c);e=C(e,7,M,b);await d(a,Q(e))};
60
- class ff extends L{constructor(a,b){super();this.Db=a;this.channel=b;a=Ye||(Ye=lc("[0,9,1]"));a=Vb(a);a=Zb(a,4,zb("662669087"));b=a.h;var c=b[r];b=c&2?a:Mb(a.constructor,Ub(b,c,!0));a=new N;c=new Id;b=B(c,2,b);a=C(a,2,M,b);this.channel.send(Q(a));gf(this)}};let of;var pf=class{constructor(a){var b=of;this.sa=a;this.i=b}delete(){throw Error("Not implemented.");}};var qf=class extends I{constructor(){super()}};var rf=class extends I{constructor(){super()}};var tf=class extends I{constructor(){super()}F(){return x(this,sf)}za(){return F(this,Ue,1,sf)}oa(a){return C(this,1,sf,a)}},sf=[1,2,3];var V=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.W=!1};V.prototype.stopPropagation=function(){this.W=!0};V.prototype.preventDefault=function(){this.defaultPrevented=!0};var W=function(a,b){V.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;
60
+ class ff extends L{constructor(a,b){super();this.Db=a;this.channel=b;a=Ye||(Ye=lc("[0,9,1]"));a=Vb(a);a=Zb(a,4,zb("663076077"));b=a.h;var c=b[r];b=c&2?a:Mb(a.constructor,Ub(b,c,!0));a=new N;c=new Id;b=B(c,2,b);a=C(a,2,M,b);this.channel.send(Q(a));gf(this)}};let of;var pf=class{constructor(a){var b=of;this.sa=a;this.i=b}delete(){throw Error("Not implemented.");}};var qf=class extends I{constructor(){super()}};var rf=class extends I{constructor(){super()}};var tf=class extends I{constructor(){super()}F(){return x(this,sf)}za(){return F(this,Ue,1,sf)}oa(a){return C(this,1,sf,a)}},sf=[1,2,3];var V=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.W=!1};V.prototype.stopPropagation=function(){this.W=!0};V.prototype.preventDefault=function(){this.defaultPrevented=!0};var W=function(a,b){V.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;
61
61
  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=
62
62
  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&&W.Z.preventDefault.call(this)}};ka(W,V);
63
63
  W.prototype.stopPropagation=function(){W.Z.stopPropagation.call(this);this.T.stopPropagation?this.T.stopPropagation():this.T.cancelBubble=!0};W.prototype.preventDefault=function(){W.Z.preventDefault.call(this);var a=this.T;a.preventDefault?a.preventDefault():a.returnValue=!1};var uf="closure_listenable_"+(Math.random()*1E6|0);var vf=0;var wf=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=++vf;this.X=this.ca=!1},xf=function(a){a.X=!0;a.listener=null;a.proxy=null;a.src=null;a.ga=null};var X=function(a){this.src=a;this.j={};this.ba=0};X.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=yf(a,b,d,e);g>-1?(b=a[g],c||(b.ca=!1)):(b=new wf(b,this.src,f,!!d,e),b.ca=c,a.push(b));return b};X.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=yf(e,b,c,d);return b>-1?(xf(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-662669087",
4
+ "version": "0.9.1-663076077",
5
5
  "repository": "googleworkspace/meet",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://developers.google.com/meet/add-ons/guides/overview",