@googleworkspace/meet-addons 1.2.0-dev-1023177556 → 1.2.0-dev-1024052217

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
@@ -20,7 +20,7 @@ export interface AddonSessionOptions {
20
20
  export interface MeetAddon {
21
21
  /**
22
22
  * Returns the {@link
23
- * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.frametype
23
+ * https://developers.google.com/workspace/meet/add-ons/reference/websdk/addon_sdk.frametype
24
24
  * | FrameType} in which the add-on is running in.
25
25
  */
26
26
  getFrameType: () => FrameType;
@@ -208,7 +208,7 @@ export interface MeetAddonClient {
208
208
  ): Promise<void>;
209
209
  /**
210
210
  * Provides access to the {@link
211
- * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks
211
+ * https://developers.google.com/workspace/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks
212
212
  * | AddonCallbacks} that the add-on can utilize.
213
213
  */
214
214
  on<T extends keyof AddonCallbacks>(
@@ -251,9 +251,9 @@ export interface MeetSidePanelClient extends MeetAddonClient {
251
251
  * Sends a message from the side panel add-on iframe to the main stage add-on
252
252
  * iframe. The add-on running in the main stage iframe can react to this
253
253
  * message using the {@link
254
- * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks.frametoframemessage
254
+ * https://developers.google.com/workspace/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks.frametoframemessage
255
255
  * | frameToFrameMessage} add-on callback (see {@link
256
- * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks
256
+ * https://developers.google.com/workspace/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks
257
257
  * | AddonCallbacks}). The length of this string must be less than 1,000,000
258
258
  * characters.
259
259
  */
@@ -268,7 +268,7 @@ export interface MeetMainStageClient extends MeetAddonClient {
268
268
  * Sends a message from the main stage add-on iframe to the side panel add-on
269
269
  * iframe. The add-on running in the side panel iframe can react to this
270
270
  * message using the {@link
271
- * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks.frametoframemessage
271
+ * https://developers.google.com/workspace/meet/add-ons/reference/websdk/addon_sdk.addoncallbacks.frametoframemessage
272
272
  * | frameToFrameMessage} add-on callback. The length of this string must
273
273
  * be less than 1,000,000 characters.
274
274
  */
@@ -277,10 +277,10 @@ export interface MeetMainStageClient extends MeetAddonClient {
277
277
  * Closes the side panel iframe. Note that side panel add-on state isn't
278
278
  * retained within Meet when the method is called. If the side panel iframe
279
279
  * is opened again, for instance using a call to {@link
280
- * https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.meetmainstageclient.loadsidepanel
280
+ * https://developers.google.com/workspace/meet/add-ons/reference/websdk/addon_sdk.meetmainstageclient.loadsidepanel
281
281
  * | loadSidePanel}, the side panel iframe source URL is set to its original
282
282
  * value from the {@link
283
- * https://developers.google.com/meet/add-ons/guides/deploy-add-on#manifest |
283
+ * https://developers.google.com/workspace/meet/add-ons/guides/deploy-add-on#manifest |
284
284
  * add-on manifest}. It's up to the add-on to persist any add-on state in the
285
285
  * add-on backend before this method is called.
286
286
  */
@@ -288,7 +288,7 @@ export interface MeetMainStageClient extends MeetAddonClient {
288
288
  /**
289
289
  * Opens the side panel iframe with the iframe source set to the side panel
290
290
  * URL from the {@link
291
- * https://developers.google.com/meet/add-ons/guides/deploy-add-on#manifest |
291
+ * https://developers.google.com/workspace/meet/add-ons/guides/deploy-add-on#manifest |
292
292
  * add-on manifest}.
293
293
  */
294
294
  loadSidePanel(): Promise<void>;
package/meet.addons.mjs CHANGED
@@ -13,7 +13,7 @@ function Za(a){var b;return(b=a[ra])!=null?b:a[ra]=new Map}function Ya(a,b,c,d){
13
13
  function ab(a,b,c){var d=a.l,e=d[t]|0;b=$a(d,e,b,c);if(b==null)return b;e=d[t]|0;if(!u(a,e)){let f=Qa(b);f!==b&&(Ra(a)&&(d=a.l,e=d[t]|0),b=f,e=D(d,e,c,b),z(d,e))}return b}function bb(a){a==null&&(a=void 0);return a}function cb(a,b,c){c=bb(c);Va(a,b,c);c&&!u(c)&&z(a.l);return a}
14
14
  function F(a,b,c,d){d=bb(d);a:{var e=d;Sa(a);let h=a.l;var f=h[t]|0;if(e==null){var g=Za(h);if(Ya(g,h,f,c)===b)g.set(c,0);else break a}else{g=h;let k=Za(g),q=Ya(k,g,f,c);q!==b&&(q&&(f=D(g,f,q)),k.set(c,b))}D(h,f,b,e)}d&&!u(d)&&z(a.l);return a}
15
15
  function db(a,b){Sa(a);var c=a.l,d=c[t]|0;if(b==null)D(c,d,1);else{var e=b===ua?7:b[t]|0,f=e,g=Wa(e),h=g||Object.isFrozen(b),k=!0,q=!0;for(let p=0;p<b.length;p++){var r=b[p];g||(r=u(r),k&&(k=!r),q&&(q=r))}g||(e=k?13:5,e=q?e&-4097:e|4096);h&&e===f||(b=[...b],f=0,e=eb(e,d));e!==f&&(b[t]=e);d=D(c,d,1,b);2&e||!(4096&e||16&e)||z(c,d)}return a}function eb(a,b){return a=(2&b?a|2:a&-3)&-273}function G(a,b){a=B(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}
16
- function fb(a,b){a=B(a,b);a=a==null?a:Da(a)?a|0:void 0;return a!=null?a:0}function H(a,b,c,d){c=Xa(a,d)===c?c:-1;return ab(a,b,c)}function gb(a,b){if(b!=null){if(!Da(b))throw a=Error("enum"),oa(a,"warning"),a;b|=0}return E(a,1,b,0)};function hb(){var a=ib||(ib=jb("[1,2,0]"));a=Qa(a);a=Va(a,4,w("dev-1023177556"));var b=a.l,c=b[t]|0;return u(a,c)?a:Oa(a,b,c)?Pa(a,b):new a.constructor(y(b,c,!0))}var I=class{constructor(a){this.l=La(a,void 0,void 0,2048)}toJSON(){return Ka(this)}};I.prototype[ta]=wa;I.prototype.toString=function(){return this.l.toString()};function kb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[t]|=32;b=new a(b)}return b}};var jb=function(a){return b=>{b=JSON.parse(b);if(!Array.isArray(b)){var c=typeof b;throw Error("Expected jspb data to be an array, got "+(c!="object"?c:b?Array.isArray(b)?"array":c:"null")+": "+b);}b[t]|=34;return new a(b)}}(class extends I{});function lb(a){var b=new mb,c=Promise.resolve();return(...d)=>{var e;Date.now()-((e=b.L[b.index])!=null?e:-1*b.J)>=b.J?(b.L[b.index]=Date.now(),b.index=(b.index+1)%b.X,e=!0):e=!1;return e?a(...d):c}};var mb=class{constructor(){this.X=1;this.J=100;this.L=[];this.index=0}};var nb=class extends I{};var J=class extends Error{constructor({errorType:a,message:b,j:c}){super(`Meet add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},K={errorType:"InternalError",message:"An unexpected error has occurred.",j:"No further information is available."},ob={errorType:"MissingUrlParameter",message:"Missing required Meet SDK URL parameter",j:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect)."},
16
+ function fb(a,b){a=B(a,b);a=a==null?a:Da(a)?a|0:void 0;return a!=null?a:0}function H(a,b,c,d){c=Xa(a,d)===c?c:-1;return ab(a,b,c)}function gb(a,b){if(b!=null){if(!Da(b))throw a=Error("enum"),oa(a,"warning"),a;b|=0}return E(a,1,b,0)};function hb(){var a=ib||(ib=jb("[1,2,0]"));a=Qa(a);a=Va(a,4,w("dev-1024052217"));var b=a.l,c=b[t]|0;return u(a,c)?a:Oa(a,b,c)?Pa(a,b):new a.constructor(y(b,c,!0))}var I=class{constructor(a){this.l=La(a,void 0,void 0,2048)}toJSON(){return Ka(this)}};I.prototype[ta]=wa;I.prototype.toString=function(){return this.l.toString()};function kb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[t]|=32;b=new a(b)}return b}};var jb=function(a){return b=>{b=JSON.parse(b);if(!Array.isArray(b)){var c=typeof b;throw Error("Expected jspb data to be an array, got "+(c!="object"?c:b?Array.isArray(b)?"array":c:"null")+": "+b);}b[t]|=34;return new a(b)}}(class extends I{});function lb(a){var b=new mb,c=Promise.resolve();return(...d)=>{var e;Date.now()-((e=b.L[b.index])!=null?e:-1*b.J)>=b.J?(b.L[b.index]=Date.now(),b.index=(b.index+1)%b.X,e=!0):e=!1;return e?a(...d):c}};var mb=class{constructor(){this.X=1;this.J=100;this.L=[];this.index=0}};var nb=class extends I{};var J=class extends Error{constructor({errorType:a,message:b,j:c}){super(`Meet add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},K={errorType:"InternalError",message:"An unexpected error has occurred.",j:"No further information is available."},ob={errorType:"MissingUrlParameter",message:"Missing required Meet SDK URL parameter",j:"This parameter is automatically appended by Meet to the iframe URL. Ensure that your infrastructure does not strip URL parameters (e.g. as part of a redirect)."},
17
17
  pb={errorType:"NeedsMainStageContext",message:"This method can only be invoked if the addon is running in the main stage.",j:"Use getFrameType to check whether the addon is running in the main stage before invoking this method."},qb={errorType:"NeedsSidePanelContext",message:"This method can only be invoked if the addon is running in the side panel.",j:"Use getFrameType to check whether the addon is running in the side panel before invoking this method."},rb={errorType:"NotSupportedInStandalone",
18
18
  message:"This method is not supported in standalone mode.",j:"Do not call this method in standalone mode."},tb={errorType:"MustBeIframed",message:"The SDK must be run in an iframe as part of a Google Meet add-on.",j:"See https://developers.google.com/meet/add-ons/guides/deploy-add-on to deploy to Meet."},ub={errorType:"InternalError",message:"The frame type URL parameter is set to an unexpected value.",j:"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)."},
19
19
  vb={errorType:"InvalidCloudProjectNumber",message:"Cloud Project Number provided by meet does not match the one passed in by the SDK. Ensure that the correct Cloud Project Number is passed to the SDK as a string.",j:"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."},wb={errorType:"DestinationNotReady",
@@ -31,7 +31,7 @@ function Qb(a){switch(a){case 0:return K;case 1:return wb;case 2:return xb;case
31
31
  "string")throw new J(L("additionalData",typeof a.additionalData,"string | undefined"));if(Object.keys(a).length!==+!!a.mainStageUrl+ +!!a.sidePanelUrl+ +!!a.additionalData)throw new J(zb);if(Object.keys(a).length===0)throw new J(yb);}}function pc(a){var b=[];b.push(Vb(Ub(Sb(2),a.mainStageUrl),a.additionalData));b.push(Vb(Ub(Sb(1),a.sidePanelUrl),a.additionalData));return b}
32
32
  var yc=class extends O{constructor(a){super();this.h=a;this.m={};qc(this.h.h.O,b=>{switch(Xa(b.content,N)){case 7:let d=this.m.frameToFrameMessage;b=H(b.content,bc,7,N);if(d&&b){var c=fb(b,1);c=kc.get(c);if(c===void 0)throw Error("Unknown frame type.");d({originator:c,payload:G(b,2)})}}},this)}async getMeetingInfo(){var a=await rc(this.h.h);var b=a.getMeetingInfo();b=G(b,1);a=a.getMeetingInfo();return{meetingId:b,meetingCode:G(a,2)}}async getFrameOpenReason(){var a,b=(a=this.h.i.V)!=null?a:0,c;return(c=
33
33
  lc.get(b))!=null?c:"UNKNOWN"}async getActivityStartingState(){var a=$b(await sc(this.h.h)),b=a==null?void 0:Wb(a).find(c=>c.getFrameType()===2);a=a==null?void 0:Wb(a).find(c=>c.getFrameType()===1);return{mainStageUrl:(b==null?void 0:G(b,2))||void 0,sidePanelUrl:(a==null?void 0:G(a,2))||void 0,additionalData:(a==null?void 0:G(a,3))||void 0}}async setActivityStartingState(a){oc({H:a,M:!0});var b=pc(a);a=tc;var c=this.h.h;var d=new ic;b=Xb(b);d=cb(d,1,b);await a(c,d)}on(a,b){this.m[a]=b}async getMeetPlatformInfo(){var a=
34
- (await uc(this.h.h)).getMeetPlatformInfo();a=B(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return{isMeetHardware:a!=null?a:!1}}async closeAddon(){await vc(this.h.h)}async startActivity(a){oc({H:a,M:!1});var b=new jc;a&&(a=pc(a),a=Xb(a),cb(b,1,a));await wc(this.h.h,b)}async endActivity(a){var b=xc,c=this.h.h,d=new Zb;a=gb(d,a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0);await b(c,a)}};var zc=kb(class extends I{getFrameOpenReason(){return fb(this,5)}});function Ac(){var a=window.location.href;var b=window.location.href;var c=(new URL(b)).searchParams.get("meet_sdk");if(c)b=zc(atob(c));else{var d;((d=window.top)!=null?d:window)===window?M(tb):Rb("meet_sdk",b);b=void 0}(c=G(b,1))||Rb("meet_addon_frame_type",a);c=Number(c);if(c!==2&&c!==1)throw new J(ub);(d=G(b,2))||Rb("meet_control_channel_name",a);var e=G(b,4);e||Rb("addon_cloud_project_number",a);var f;return{V:(f=b.getFrameOpenReason())!=null?f:0,frameType:c,U:d,cloudProjectNumber:e,N:G(b,3)||
34
+ (await uc(this.h.h)).getMeetPlatformInfo(),b;a=B(a,1);return{isMeetHardware:(b=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0)!=null?b:!1}}async closeAddon(){await vc(this.h.h)}async startActivity(a){oc({H:a,M:!1});var b=new jc;a&&(a=pc(a),a=Xb(a),cb(b,1,a));await wc(this.h.h,b)}async endActivity(a){var b=xc,c=this.h.h,d=new Zb;a=gb(d,a==="aab61ee0-51b4-475d-aa4d-849f2498640d"?999:0);await b(c,a)}};var zc=kb(class extends I{getFrameOpenReason(){return fb(this,5)}});function Ac(){var a=window.location.href;var b=window.location.href;var c=(new URL(b)).searchParams.get("meet_sdk");if(c)b=zc(atob(c));else{var d;((d=window.top)!=null?d:window)===window?M(tb):Rb("meet_sdk",b);b=void 0}(c=G(b,1))||Rb("meet_addon_frame_type",a);c=Number(c);if(c!==2&&c!==1)throw new J(ub);(d=G(b,2))||Rb("meet_control_channel_name",a);var e=G(b,4);e||Rb("addon_cloud_project_number",a);var f;return{V:(f=b.getFrameOpenReason())!=null?f:0,frameType:c,U:d,cloudProjectNumber:e,N:G(b,3)||
35
35
  "https://meet.google.com"}};var Bc=class extends I{};var Cc=class extends I{};function Dc(a){var b=new Ec;return cb(b,2,a)}function Fc(a,b){return E(a,3,w(b),"")}var Ec=class extends I{};var Gc=class extends I{};var Hc=class extends I{};var Ic=class extends I{};var Jc=class extends I{};var Kc=class extends I{};var Lc=class extends I{};var Mc=class extends I{setAddonStartingState(a){return cb(this,1,a)}};var Nc=class extends I{};function Oc(a,b){return F(a,2,Q,b)}var R=class extends I{},Q=[1,2,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20];function Pc(a){return H(a,hc,2,Qc)}var Rc=class extends I{},Sc=kb(Rc),Qc=[1,2];class Tc{constructor(a){this.data=a}};var Uc=Promise;function Vc(a){var b=new MessageChannel;Wc(b.port1,a);return b}function Xc(a,b){Wc(a,b);return new Yc(a)}function Zc(a,b,c){c=Vc(c);a.h.postMessage(b,[c.port2].concat([]))}function $c(a,b){return new Uc(c=>{Zc(a,b,c)})}class Yc{constructor(a){this.h=a}}function Wc(a,b){b&&(a.onmessage=c=>{var d=c.data;Xc(c.ports[0]);b(new Tc(d))})};var ad=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?a=>a&&AsyncContext.Snapshot.wrap(a):a=>a;function bd(a,b){a.o(b);a.i<100&&(a.i++,b.next=a.h,a.h=b)}class cd{constructor(a,b){this.m=a;this.o=b;this.i=0;this.h=null}get(){if(this.i>0){this.i--;var a=this.h;this.h=a.next;a.next=null}else a=this.m();return a}};function dd(){var a=ed,b=null;a.h&&(b=a.h,a.h=a.h.next,a.h||(a.i=null),b.next=null);return b}class fd{constructor(){this.i=this.h=null}add(a,b){var c=gd.get();c.set(a,b);this.i?this.i.next=c:this.h=c;this.i=c}}var gd=new cd(()=>new hd,a=>a.reset());class hd{constructor(){this.next=this.h=this.i=null}set(a,b){this.i=a;this.h=b;this.next=null}reset(){this.next=this.h=this.i=null}};let id,jd=!1,ed=new fd,ld=(a,b)=>{id||kd();jd||(id(),jd=!0);ed.add(a,b)},kd=()=>{var a=Promise.resolve(void 0);id=()=>{a.then(md)}};function md(){for(var a;a=dd();){try{a.i.call(a.h)}catch(b){n(b)}bd(gd,a)}jd=!1};function nd(){};function S(a){this.h=0;this.P=void 0;this.o=this.i=this.m=null;this.v=this.F=!1;if(a!=nd)try{let b=this;a.call(void 0,function(c){T(b,2,c)},function(c){T(b,3,c)})}catch(b){T(this,3,b)}}function od(){this.next=this.m=this.i=this.v=this.h=null;this.o=!1}od.prototype.reset=function(){this.m=this.i=this.v=this.h=null;this.o=!1};var pd=new cd(function(){return new od},function(a){a.reset()});function qd(a,b,c){var d=pd.get();d.v=a;d.i=b;d.m=c;return d}
36
36
  function rd(){var a,b,c=new S(function(d,e){a=d;b=e});return new sd(c,a,b)}S.prototype.then=function(a,b,c){return td(this,ad(typeof a==="function"?a:null),ad(typeof b==="function"?b:null),c)};S.prototype.$goog_Thenable=!0;function ud(a,b){b=ad(b);b=qd(b,b);b.o=!0;vd(a,b)}S.prototype.cancel=function(a){if(this.h==0){let b=new U(a);ld(function(){wd(this,b)},this)}};
37
37
  function wd(a,b){if(a.h==0)if(a.m){var c=a.m;if(c.i){var d=0,e=null,f=null;for(let g=c.i;g&&(g.o||(d++,g.h==a&&(e=g),!(e&&d>1)));g=g.next)e||(f=g);e&&(c.h==0&&d==1?wd(c,b):(f?(d=f,d.next==c.o&&(c.o=d),d.next=d.next.next):xd(c),yd(c,e,3,b)))}a.m=null}else T(a,3,b)}function vd(a,b){a.i||a.h!=2&&a.h!=3||zd(a);a.o?a.o.next=b:a.i=b;a.o=b}
@@ -15,7 +15,7 @@ function X(a){var b=ab,c=bb,e=a[Xa];if(e)return e;e={};e.B=a;e.u=Fa(a[0]);var d=
15
15
  k=a;var n=f;typeof d==="function"&&(d=d(),k[n]=d);k=d}d=a[++f];n=h+1;typeof d==="number"&&d<0&&(n-=d,d=a[++f]);for(;h<n;h++){let q=g[h];k?c(e,h,l,k,q):b(e,h,l,q)}}return a[Xa]=e}function Ua(a,b){if(a instanceof V)return a.i;if(Array.isArray(a))return M(a,b[0],b[1])};function ab(a,b,c){a[b]=c.h}function bb(a,b,c,e){var d,f,g=c.h;a[b]=(h,k,n)=>g(h,k,n,f||(f=X(e).u),d||(d=cb(e)))}function cb(a){var b=a[Ya];if(!b){let c=X(a);b=(e,d)=>db(e,d,c);a[Ya]=b}return b}function db(a,b,c){qa(a,a[E]|0,(e,d)=>{if(d!=null){var f=eb(c,e);f?f(b,d,e):e<500||ma(na,3)}})}
16
16
  function eb(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Array.isArray(c)?c[0]instanceof W?c:[Wa,c]:[c,void 0];var e=c[0].h;if(c=c[1]){let d=cb(c),f=X(c).u;c=a.v?$a(f,d):(g,h,k)=>e(g,h,k,f,d)}else c=e;return a[b]=c}};function fb(a,b,c){b=b==null||typeof b==="string"?b:void 0;b!=null&&(b=(ea||(ea=new TextEncoder)).encode(b),R(a.h,c*8+2),R(a.h,b.length),S(a,a.h.end()),S(a,b))};function gb(a){var b=new hb;if(a!=null){if(!xa(a))throw b=Error("enum"),ka(b,"warning"),b;a|=0}return Q(b,1,a,0)}var hb=class extends V{};var ib=class extends V{};var jb=class extends V{};jb.prototype.j=function(a){return function(){var b=new Pa;db(this.i,b,X(a));S(b,b.h.end());var c=new Uint8Array(b.j),e=b.l,d=e.length,f=0;for(let g=0;g<d;g++){let h=e[g];c.set(h,f);f+=h.length}b.l=[c];return c}}([0,new W(fb,Ra),-1,[0,function(a,b,c=U){return new W(b,c)}(function(a,b,c,e,d){if(a.h()!==2)return!1;var f=a.j;e=M(void 0,e[0],e[1]);var g=b[E]|0;if(g&2)throw Error();var h=g&128?ra:void 0;a:if(c===-1)var k=null;else{k=c+(h?0:-1);var n=b.length-1;if(n<1+(h?0:-1))k=void 0;else if(k>=n){var l=
17
17
  b[n];if(l!=null&&typeof l==="object"&&l.constructor===Object)k=l[c];else if(k===n)k=l;else{k=void 0;break a}}else k=b[k]}k=Array.isArray(k)?k:F;l=n=k===F?7:k[E]|0;2&g&&(l|=2);l|=1;if(2&l||Ka(l)||16&l)l===n||Ka(l)||(k[E]=l),k=[...k],n=0,l=La(l,g),P(b,g,c,k,h);l&=-13;l!==n&&(k[E]=l);k.push(e);f.call(a,e,d);return!0},function(a,b,c,e,d){if(Array.isArray(b)){for(let n=0;n<b.length;n++){var f=a,g=c,h=d,k=Ua(b[n],e);k!=null&&(g=Na(f,g),h(k,f),Oa(f,g))}a=b[E]|0;a&1||(b[E]=a|1)}}),[0,new W(function(a,b,c){b=
18
- ya(b);if(b!=null)if(b=parseInt(b,10),R(a.h,c*8),a=a.h,c=b,c>=0)R(a,c);else{for(b=0;b<9;b++)a.h.push(c&127|128),c>>=7;a.h.push(1)}},Sa),new W(fb,Ra),-1]],new W(function(a,b,c){b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0;b!=null&&(R(a.h,c*8),a.h.h.push(b?1:0))},Qa)]);function kb(){var a,b,c=(b=(a=(new URL(lb||window.location.href)).searchParams.get("meet_capture_handle_origins"))==null?void 0:a.split(",").filter(e=>{try{return(new URL(e)).origin.endsWith(".google.com")}catch(d){return!1}}))!=null?b:[];return c.length===0?mb:c}let lb="";const mb=["https://meet.google.com"];for(var nb={exposeToMeetWhenScreensharing:function(a){var b=a.A,c=a.cloudProjectNumber,e=a.additionalData,d=a.mainStageUrl,f=a.sidePanelUrl;a=a.startActivityOnOpen;c||v(ba);var g=new jb;c=O(g,2,K(c));b&&O(c,1,K(b));b=[];e&&!a&&v(ca);d&&!a&&v(da);if(f){g=b.push;var h=gb(1);f=Q(h,2,K(f),"");f=Q(f,3,K(e),"");g.call(b,f)}d&&(f=b.push,g=gb(2),d=Q(g,2,K(d),""),e=Q(d,3,K(e),""),f.call(b,e));e=new ib;Ia(e);d=e.i;f=d[E]|0;if(b==null)P(d,f,1);else{h=g=b===F?7:b[E]|0;var k=Ka(g),n=k||Object.isFrozen(b),l=!0,
18
+ ya(b);if(b!=null)if(b=parseInt(b,10),R(a.h,c*8+0),a=a.h,c=b,c>=0)R(a,c);else{for(b=0;b<9;b++)a.h.push(c&127|128),c>>=7;a.h.push(1)}},Sa),new W(fb,Ra),-1]],new W(function(a,b,c){b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0;b!=null&&(R(a.h,c*8+0),a.h.h.push(b?1:0))},Qa)]);function kb(){var a,b,c=(b=(a=(new URL(lb||window.location.href)).searchParams.get("meet_capture_handle_origins"))==null?void 0:a.split(",").filter(e=>{try{return(new URL(e)).origin.endsWith(".google.com")}catch(d){return!1}}))!=null?b:[];return c.length===0?mb:c}let lb="";const mb=["https://meet.google.com"];for(var nb={exposeToMeetWhenScreensharing:function(a){var b=a.A,c=a.cloudProjectNumber,e=a.additionalData,d=a.mainStageUrl,f=a.sidePanelUrl;a=a.startActivityOnOpen;c||v(ba);var g=new jb;c=O(g,2,K(c));b&&O(c,1,K(b));b=[];e&&!a&&v(ca);d&&!a&&v(da);if(f){g=b.push;var h=gb(1);f=Q(h,2,K(f),"");f=Q(f,3,K(e),"");g.call(b,f)}d&&(f=b.push,g=gb(2),d=Q(g,2,K(d),""),e=Q(d,3,K(e),""),f.call(b,e));e=new ib;Ia(e);d=e.i;f=d[E]|0;if(b==null)P(d,f,1);else{h=g=b===F?7:b[E]|0;var k=Ka(g),n=k||Object.isFrozen(b),l=!0,
19
19
  r=!0;for(let y=0;y<b.length;y++){var q=b[y];k||(q=H(q),l&&(l=!q),r&&(r=q))}k||(g=l?13:5,g=r?g&-4097:g|4096);n&&g===h||(b=[...b],h=0,g=La(g,f));g!==h&&(b[E]=g);f=P(d,f,1,b);2&g||!(4096&g||16&g)||Ja(d,f)}e==null&&(e=void 0);O(c,3,e);e&&!H(e)&&Ja(c.i);if(a!=null&&typeof a!=="boolean"){var t=typeof a;throw Error(`Expected boolean but got ${t!="object"?t:a?Array.isArray(a)?"array":t:"null"}: ${a}`);}O(c,4,a);a=c.j();var p;p===void 0&&(p=0);if(!B)for(B={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
20
20
  e=["+/=","+/","-_=","-_.","-_"],b=0;b<5;b++)for(d=c.concat(e[b].split("")),ja[b]=d,f=0;f<d.length;f++)g=d[f],B[g]===void 0&&(B[g]=f);p=ja[p];c=Array(Math.floor(a.length/3));e=p[64]||"";for(b=d=0;d<a.length-2;d+=3)h=a[d],k=a[d+1],g=a[d+2],f=p[h>>2],h=p[(h&3)<<4|k>>4],k=p[(k&15)<<2|g>>6],g=p[g&63],c[b++]=f+h+k+g;f=0;g=e;switch(a.length-d){case 2:f=a[d+1],g=p[(f&15)<<2]||e;case 1:a=a[d],c[b]=p[a>>2]+p[(a&3)<<4|f>>4]+g+e}a=c.join("");p=window;p.top===p.self&&(a={handle:a,permittedOrigins:kb(),exposeOrigin:!0},
21
21
  (t=p.navigator.mediaDevices)==null||t.setCaptureHandleConfig(a))}},ob=["meet","addon","screensharing"],Y=m,Z;ob.length&&(Z=ob.shift());)ob.length||nb===void 0?Y[Z]&&Y[Z]!==Object.prototype[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=nb;}).apply(topLevel);export const meet = topLevel.meet;
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": "1.2.0-dev-1023177556",
4
+ "version": "1.2.0-dev-1024052217",
5
5
  "repository": "googleworkspace/meet",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://developers.google.com/meet/add-ons/guides/overview",