@googleworkspace/meet-addons 1.2.0-dev-721917849 → 1.2.0-dev-722806511
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/README.md +1 -1
- package/meet.addons.d.ts +3 -3
- package/meet.addons.mjs +4 -4
- package/meet.addons.screenshare.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
package/meet.addons.d.ts
CHANGED
|
@@ -204,7 +204,7 @@ export interface AddonSessionOptions {
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
|
-
* The main entry point for accessing Meet
|
|
207
|
+
* The main entry point for accessing Meet add-on functionality. Available
|
|
208
208
|
* globally under `window.meet.addon`.
|
|
209
209
|
*/
|
|
210
210
|
export interface MeetAddon {
|
|
@@ -221,12 +221,12 @@ export interface MeetAddon {
|
|
|
221
221
|
createAddonSession: (options: AddonSessionOptions) => Promise<AddonSession>;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
/** The structure of the top-level
|
|
224
|
+
/** The structure of the top-level add-on export. */
|
|
225
225
|
interface MeetAddonExport {
|
|
226
226
|
addon: MeetAddon;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
/** The structure of an error generated from the Meet
|
|
229
|
+
/** The structure of an error generated from the Meet add-ons SDK. */
|
|
230
230
|
interface MeetAddonError extends Error {
|
|
231
231
|
readonly errorType: ErrorType;
|
|
232
232
|
}
|
package/meet.addons.mjs
CHANGED
|
@@ -17,21 +17,21 @@ function B(a,b){a=a.m;return Ub(Vb(a),a,a[q]|0,b)}function Vb(a){let b;return(b=
|
|
|
17
17
|
function Wb(a,b,c){b=Sb(a,b,c,!1);if(b==null)return b;a=a.m;let d=a[q]|0;if(!(d&2)){const e=Ob(b);e!==b&&(b=e,z(a,d,c,b))}return b}function Xb(a,b,c){c==null&&(c=void 0);return Qb(a,b,c)}function D(a,b,c,d){d==null&&(d=void 0);a:{const g=a.m;var e=g[q]|0;Za(e);if(d==null){var f=Vb(g);if(Ub(f,g,e,c)===b)f.set(c,0);else break a}else{f=g;const h=Vb(f),k=Ub(h,f,e,c);k!==b&&(k&&(e=z(f,e,k)),h.set(c,b))}z(g,e,b,d)}return a}
|
|
18
18
|
function Yb(a,b){const c=a.m;let d=c[q]|0;Za(d);if(b==null)return z(c,d,1),a;let e=b[q]|0,f=e;const g=Tb(e),h=g||Object.isFrozen(b);let k=!0,r=!0;for(let A=0;A<b.length;A++){var t=b[A];g||(t=!!((t.m[q]|0)&2),k&&(k=!t),r&&(r=t))}g||(e=k?13:5,e=r?e|16:e&-17);h&&e===f||(b=Qa(b),f=0,e=Zb(e,d),e=$b(e,d,!0));e!==f&&(b[q]=e);z(c,d,1,b);return a}function Zb(a,b){a=(2&b?a|2:a&-3)|32;return a&=-2049}function $b(a,b,c){32&b&&c||(a&=-33);return a}
|
|
19
19
|
function ac(a){a=y(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function bc(a){a=y(a,1);a!=null&&(typeof a==="bigint"?ob(a)?a=Number(a):(a=ub(64,a),a=ob(a)?Number(a):String(a)):a=zb(a)?typeof a==="number"?Db(a):Cb(a):void 0);return a!=null?a:0}function E(a,b){a=y(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function F(a,b){a=y(a,b);a=a==null?a:wb(a)?a|0:void 0;return a!=null?a:0}
|
|
20
|
-
function G(a,b,c,d){c=B(a,d)===c?c:-1;return Wb(a,b,c)};function cc(a){return a}let H;function dc(a){try{return H=cc,JSON.stringify(ec(a),Fb)}finally{H=void 0}}function fc(){var a=gc||(gc=hc("[1,2,0]"));a=Ob(a);a=Qb(a,4,x("dev-
|
|
20
|
+
function G(a,b,c,d){c=B(a,d)===c?c:-1;return Wb(a,b,c)};function cc(a){return a}let H;function dc(a){try{return H=cc,JSON.stringify(ec(a),Fb)}finally{H=void 0}}function fc(){var a=gc||(gc=hc("[1,2,0]"));a=Ob(a);a=Qb(a,4,x("dev-722806511"));const b=a.m,c=b[q]|0;return c&2?a:new a.constructor(Nb(b,c,!0))}
|
|
21
21
|
var I=class{constructor(a){a:{if(a==null){var b=96;a=[]}else{if(!Array.isArray(a))throw Error("narr");b=a[q]|0;if(b&2048)throw Error("farr");if(b&64)break a;var c=a;b|=64;var d=c.length;if(d&&(--d,Ua(c[d]))){b|=256;c=d-(b&512?0:-1);if(c>=1024)throw Error("pvtlmt");b=b&-33521665|(c&1023)<<15}}a[q]=b}this.m=a}toJSON(){const a=!H;try{return a&&(H=Lb),ec(this)}finally{a&&(H=void 0)}}};I.prototype.H=Ra;I.prototype.toString=function(){try{return H=cc,ec(this).toString()}finally{H=void 0}};
|
|
22
22
|
function ec(a){var b=a.m;a=H(b);{b=a!==b;let r=a.length;if(r){var c=a[r-1],d=Ua(c);d?r--:c=void 0;var e=a;if(d){b:{var f=c;var g;var h=!1;if(f)for(let t in f)if(isNaN(+t)){let A;((A=g)!=null?A:g={})[t]=f[t]}else if(d=f[t],Array.isArray(d)&&(Wa(d)||Ta(d)&&d.size===0)&&(d=null),d==null&&(h=!0),d!=null){let A;((A=g)!=null?A:g={})[t]=d}h||(g=f);if(g)for(let t in g){h=g;break b}h=null}f=h==null?c!=null:h!==c}for(;r>0;r--){g=e[r-1];if(!(g==null||Wa(g)||Ta(g)&&g.size===0))break;var k=!0}if(e!==a||f||k){if(!b)e=
|
|
23
|
-
Array.prototype.slice.call(e,0,r);else if(k||f||h)e.length=r;h&&e.push(h)}k=e}else k=a}return k};function ic(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[q]|=32;b=new a(b)}return b}};var hc=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[q]|=34;return new a(b)}}(class extends I{});var jc=class extends I{};function kc(a){var b=new lc(500);let c=0,d;return(...e)=>{mc(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},nc(b))))}}function oc(a){var b=new lc(100),c=Promise.resolve();return(...d)=>mc(b)?a(...d):c};function mc(a){return pc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function nc(a){const b=a.g;a=pc(a,a.index);return a>=b?0:b-a}function pc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var lc=class{constructor(a){this.g=a;this.h=[];this.index=0}};var qc=class extends I{},rc=[2,3];var sc=class extends I{};var J=class extends Error{constructor({errorType:a,message:b,i:c}){super(`Meet
|
|
23
|
+
Array.prototype.slice.call(e,0,r);else if(k||f||h)e.length=r;h&&e.push(h)}k=e}else k=a}return k};function ic(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[q]|=32;b=new a(b)}return b}};var hc=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[q]|=34;return new a(b)}}(class extends I{});var jc=class extends I{};function kc(a){var b=new lc(500);let c=0,d;return(...e)=>{mc(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},nc(b))))}}function oc(a){var b=new lc(100),c=Promise.resolve();return(...d)=>mc(b)?a(...d):c};function mc(a){return pc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function nc(a){const b=a.g;a=pc(a,a.index);return a>=b?0:b-a}function pc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var lc=class{constructor(a){this.g=a;this.h=[];this.index=0}};var qc=class extends I{},rc=[2,3];var sc=class extends I{};var J=class extends Error{constructor({errorType:a,message:b,i:c}){super(`Meet add-on SDK error: ${`${b}${c?` - ${c}`:""}`}`);this.errorType=a}},K={errorType:"InternalError",message:"An unexpected error has occurred.",i:"No further information is available."},tc={errorType:"MissingUrlParameter",message:"Missing required Meet SDK URL parameter",i:"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)."},
|
|
24
24
|
uc={errorType:"NeedsMainStageContext",message:"This method can only be invoked if the addon is running in the main stage.",i:"Use getFrameType to check whether the addon is running in the main stage before invoking this method."},vc={errorType:"NeedsSidePanelContext",message:"This method can only be invoked if the addon is running in the side panel.",i:"Use getFrameType to check whether the addon is running in the side panel before invoking this method."},wc={errorType:"NotSupportedInStandalone",
|
|
25
25
|
message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},xc={errorType:"MustBeIframed",message:"The SDK must be run in an iframe as part of a Google Meet add-on.",i:"See https://developers.google.com/meet/add-ons/guides/deploy-add-on to deploy to Meet."},yc={errorType:"InternalError",message:"The frame type URL parameter is set to an unexpected value.",i:"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)."},
|
|
26
26
|
zc={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.",i:"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."},Ac={errorType:"DestinationNotReady",
|
|
27
|
-
message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",i:"Make sure the destination frame has connected before sending messages to it."},Bc={errorType:"InvalidActivityStartingState",message:"Origin of the ActivityStartingState iframeURLs does not match the origin of the URLs provided in the
|
|
27
|
+
message:"The recipient frame is not connected via the addon SDK and cannot receive the notification.",i:"Make sure the destination frame has connected before sending messages to it."},Bc={errorType:"InvalidActivityStartingState",message:"Origin of the ActivityStartingState iframeURLs does not match the origin of the URLs provided in the add-on manifest.",i:"Ensure that the ActivityStartingState iframeURL origins match the origins of the URLs provided in the add-on manifest."},Cc={errorType:"ActivityStartingStateMissingAttributes",
|
|
28
28
|
message:"The supplied ActivityStartingState object does not contain any recognized attributes.",i:"Ensure that the ActivityStartingState object contains at least one of the following attributes: mainStageUrl, sidePanelUrl, additionalData."},Ec={errorType:"ActivityStartingStateUnrecognizedAttributes",message:"The supplied ActivityStartingState object contains attributes that are not recognized.",i:"Ensure that the ActivityStartingState object has only the following attributes: mainStageUrl, sidePanelUrl, additionalData."},
|
|
29
29
|
Fc={errorType:"AddonStartingStateMissingAttributes",message:"The supplied AddonStartingState object does not contain any recognized attributes.",i:"Ensure that the AddonStartingState object contains at least one of the following attributes: sidePanelUrl, additionalData."},Gc={errorType:"AddonStartingStateUnrecognizedAttributes",message:"The supplied AddonStartingState object contains attributes that are not recognized.",i:"Ensure that the AddonStartingState object has only the following attributes: sidePanelUrl, additionalData."},
|
|
30
30
|
Hc=a=>({errorType:"ArgumentNullError",message:`The argument supplied for '${a}' was 'null' but a value was expected.`,i:"Ensure you are passing a value of the expected type for the argument."}),L=(a,b,c)=>({errorType:"ArgumentTypeError",message:`The type '${b}' of argument supplied for '${a}' did not match the expected type '${c}'.`,i:"Ensure the type of the argument provided matches the expected type."}),Ic=a=>({errorType:"InternalError",message:`Could not connect to ${a} channel. Unknown error`,
|
|
31
31
|
i:"No further information is available."}),Jc={errorType:"ActivityIsOngoing",message:"Operation cannot be performed while an activity is ongoing.",i:"Ensure that no activity is ongoing."},Kc={errorType:"InternalError",message:"Frame message missing required Meet SDK command.",i:"Send one of the available commands in the frame message."},Lc={errorType:"NoActivityFound",message:"No activity found.",i:"Ensure that the activity is started before performing this operation."},Mc={errorType:"RequiresEapEnrollment",
|
|
32
32
|
message:"This feature is only available to early access partners.",i:"Meet add-on early access enrollment is currently closed."},Nc={errorType:"UserNotInitiator",message:"Operation cannot be performed because the user is not the initiator of the current activity.",i:"Ensure that the user is the initiator of the current activity or that the activity has ended."},Oc={errorType:"SizeLimitExceededActivityStartingState",message:"The size of the activityStartingState URLs and/or its data exceed the limits allowed.",
|
|
33
33
|
i:"Ensure that the activityStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Pc={errorType:"SizeLimitExceededFrameToFrameMessage",message:"The size of the frame to frame message exceeds the limits allowed.",i:"Ensure that the frame to frame message size is less than 1,000,000 characters."},Qc={errorType:"AddonSessionAlreadyCreated",message:"The addon session has already been created.",i:"Only instantiate the AddonSession once."},Rc={errorType:"UserCancelled",
|
|
34
|
-
message:"The user cancelled starting an activity.",i:"The user needs to click continue to start the activity."},Sc={errorType:"NotSupportedInMeetCall",message:"This method is not supported during a Meet call.",i:"Do not call this method during a Meet call."},Tc={errorType:"InvalidAddonStartingState",message:"Origin of the AddonStartingState iframeURLs does not match the origin of the URLs provided in the
|
|
34
|
+
message:"The user cancelled starting an activity.",i:"The user needs to click continue to start the activity."},Sc={errorType:"NotSupportedInMeetCall",message:"This method is not supported during a Meet call.",i:"Do not call this method during a Meet call."},Tc={errorType:"InvalidAddonStartingState",message:"Origin of the AddonStartingState iframeURLs does not match the origin of the URLs provided in the add-on manifest.",i:"Ensure that the AddonStartingState iframeURL origins match the origins of the URLs provided in the add-on manifest."},
|
|
35
35
|
Uc={errorType:"SizeLimitExceededAddonStartingState",message:"The size of the AddonStartingState URLs and/or its data exceed the limits allowed.",i:"Ensure that the AddonStartingState URL size is less than 512 characters and the additional data size is less than 4096 characters."},Vc={errorType:"MeetingPolicyPreventsStartingActivity",message:"A meeting policy (such as using host control settings) prevents the user from starting the activity.",i:"Have a meeting host or administrator modify the necessary settings to allow the current user to start the activity."};
|
|
36
36
|
function Wc(a){switch(a){case 0:return K;case 1:return Ac;case 2:return Bc;case 3:return Jc;case 4:return Kc;case 5:return Mc;case 6:return wc;case 7:return Nc;case 8:return Oc;case 9:return Pc;case 10:return Rc;case 11:return Sc;case 12:return Tc;case 13:return Uc;case 14:return Lc;case 15:return Vc;default:return K}}
|
|
37
37
|
function Xc(a){let b;var c=(b=F(a,1))!=null?b:0;a=Yc(B(a,rc));switch(c){case 1:return{errorType:"InternalError",message:`Could not connect to ${a} channel. Meet did not respond with a MessagePort.`,i:"No further information is available."};case 2:return{errorType:"InternalError",message:`Could not connect to ${a}. A conflicting ${a} exists.`,i:"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}.`,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
export interface AddonScreenshareInfo {
|
|
10
10
|
/**
|
|
11
11
|
* The Google Cloud project number of the add-on that Meet should start when
|
|
12
|
-
* transitioning from screen sharing to the Meet
|
|
12
|
+
* transitioning from screen sharing to the Meet add-on.
|
|
13
13
|
*/
|
|
14
14
|
cloudProjectNumber: string;
|
|
15
15
|
/**
|
|
@@ -53,7 +53,7 @@ export interface MeetAddonScreenshare {
|
|
|
53
53
|
): void;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
/** The structure of the top-level
|
|
56
|
+
/** The structure of the top-level add-on screenshare export. */
|
|
57
57
|
interface MeetAddonScreenshareExport {
|
|
58
58
|
addon: {screensharing: MeetAddonScreenshare};
|
|
59
59
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleworkspace/meet-addons",
|
|
3
|
-
"description": "The Google Meet
|
|
4
|
-
"version": "1.2.0-dev-
|
|
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-722806511",
|
|
5
5
|
"repository": "googleworkspace/meet",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"homepage": "https://developers.google.com/meet/add-ons/guides/overview",
|