@googleworkspace/meet-addons 1.2.0-dev-828598976 → 1.2.0-dev-829579165
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.mjs +1 -1
- package/meet.addons.screenshare.d.ts +35 -35
- package/meet.addons.screenshare.mjs +1 -1
- package/package.json +1 -1
package/meet.addons.mjs
CHANGED
|
@@ -21,7 +21,7 @@ function Kb(a,b,c,d){let e=!1;d=Hb(a,d,void 0,f=>{const g=qb(f,c,b);e=g!==f&&g!=
|
|
|
21
21
|
function B(a,b,c,d){d=Qb(d);a:{var e=d;Eb(a);const h=a.l;var f=h[l]|0;if(e==null){var g=Ob(h);if(Nb(g,h,f,c)===b)g.set(c,0);else break a}else{g=h;const k=Ob(g),n=Nb(k,g,f,c);n!==b&&(n&&(f=w(g,f,n)),k.set(c,b))}w(h,f,b,e)}d&&!m(d)&&Fb(a.l);return a}
|
|
22
22
|
function Sb(a,b){Eb(a);const c=a.l;let d=c[l]|0;if(b==null)return w(c,d,1),a;let e=b===Ga?7:b[l]|0,f=e;const g=Lb(e),h=g||Object.isFrozen(b);let k=!0,n=!0;for(let z=0;z<b.length;z++){var r=b[z];g||(r=m(r),k&&(k=!r),n&&(n=r))}g||(e=k?13:5,e=n?e&-4097:e|4096);h&&e===f||(b=[...b],f=0,e=Tb(e,d));e!==f&&(b[l]=e);d=w(c,d,1,b);2&e||!(4096&e||16&e)||Fb(c,d);return a}function Tb(a,b){return a=(2&b?a|2:a&-3)&-273}
|
|
23
23
|
function Ub(a){a=v(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function Vb(a){a=v(a,1);var b=typeof a;a!=null&&(b==="bigint"?a=p(db(64,a)):jb(a)?b==="string"?(b=gb(Number(a)),eb(b)?a=p(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=Ia()?p(db(64,BigInt(a))):p(mb(a)))):eb(a)?a=p(pb(a)):(a=gb(a),eb(a)?a=String(a):(Za(a),a=cb()),a=p(a)):a=void 0);return a!=null?a:Gb}
|
|
24
|
-
function C(a,b){a=v(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function D(a,b){a=v(a,b);a=a==null?a:fb(a)?a|0:void 0;return a!=null?a:0}function E(a,b,c,d){c=x(a,d)===c?c:-1;return Pb(a,b,c)}function F(a,b,c){if(c!=null){if(!fb(c))throw Ba("enum");c|=0}return y(a,b,c,0)};function Wb(){var a=Xb||(Xb=Yb("[1,2,0]"));a=Cb(a);a=Ib(a,4,u("dev-
|
|
24
|
+
function C(a,b){a=v(a,b);a=a==null||typeof a==="string"?a:void 0;return a!=null?a:""}function D(a,b){a=v(a,b);a=a==null?a:fb(a)?a|0:void 0;return a!=null?a:0}function E(a,b,c,d){c=x(a,d)===c?c:-1;return Pb(a,b,c)}function F(a,b,c){if(c!=null){if(!fb(c))throw Ba("enum");c|=0}return y(a,b,c,0)};function Wb(){var a=Xb||(Xb=Yb("[1,2,0]"));a=Cb(a);a=Ib(a,4,u("dev-829579165"));const b=a.l,c=b[l]|0;return m(a,c)?a:Ab(a,b,c)?Bb(a,b):new a.constructor(zb(b,c,!0))}var I=class{constructor(a){this.l=wb(a,void 0,void 0,2048)}toJSON(){return vb(this)}};I.prototype[Fa]=Ja;I.prototype.toString=function(){return this.l.toString()};function Zb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[l]|=32;b=new a(b)}return b}};var Yb=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[l]|=34;return new a(b)}}(class extends I{});var $b=class extends I{};function ac(a){var b=new bc(500);let c=0,d;return(...e)=>{cc(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},dc(b))))}}function ec(a){var b=new bc(100),c=Promise.resolve();return(...d)=>cc(b)?a(...d):c};function cc(a){return fc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function dc(a){const b=a.g;a=fc(a,a.index);return a>=b?0:b-a}function fc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var bc=class{constructor(a){this.g=a;this.h=[];this.index=0}};var hc=class extends I{},ic=[2,3];var jc=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."},kc={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)."},
|
|
25
25
|
lc={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."},mc={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."},nc={errorType:"NotSupportedInStandalone",
|
|
26
26
|
message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},oc={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."},pc={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)."},
|
|
27
27
|
qc={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."},rc={errorType:"DestinationNotReady",
|
|
@@ -1,40 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
// Original file: screenshare_info.types.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Information about the add-on that should be used when a user transitions
|
|
7
|
-
* from screen sharing to an in-meeting add-on experience.
|
|
8
|
-
*/
|
|
9
|
-
export interface AddonScreenshareInfo {
|
|
10
|
-
/**
|
|
11
|
-
* The Google Cloud project number of the add-on that Meet should start when
|
|
12
|
-
* transitioning from screen sharing to the Meet add-on.
|
|
13
|
-
*/
|
|
14
|
-
cloudProjectNumber: string;
|
|
15
|
-
/**
|
|
16
|
-
* Whether to start an activity when the add-on is opened. If a
|
|
17
|
-
* mainstage URL is provided, must be true.
|
|
18
|
-
*/
|
|
19
|
-
startActivityOnOpen: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Data supplied by the third-party that the add-on can use to initialize
|
|
22
|
-
* itself
|
|
23
|
-
*/
|
|
24
|
-
additionalData?: string;
|
|
25
|
-
/**
|
|
26
|
-
* The URL that the side panel opens after the add-on starts. Must
|
|
27
|
-
* belong to the same domain as the URLs specified in the add-on manifest.
|
|
28
|
-
*/
|
|
29
|
-
sidePanelUrl?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The URL that the main stage opens after the add-on starts. Must
|
|
32
|
-
* belong to the same domain as the URLs specified in the add-on manifest.
|
|
33
|
-
*/
|
|
34
|
-
mainStageUrl?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
3
|
// Original file: index.types.d.ts
|
|
39
4
|
|
|
40
5
|
|
|
@@ -68,3 +33,38 @@ declare global {
|
|
|
68
33
|
meet: MeetAddonScreenshareExport;
|
|
69
34
|
}
|
|
70
35
|
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// Original file: screenshare_info.types.d.ts
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Information about the add-on that should be used when a user transitions
|
|
42
|
+
* from screen sharing to an in-meeting add-on experience.
|
|
43
|
+
*/
|
|
44
|
+
export interface AddonScreenshareInfo {
|
|
45
|
+
/**
|
|
46
|
+
* The Google Cloud project number of the add-on that Meet should start when
|
|
47
|
+
* transitioning from screen sharing to the Meet add-on.
|
|
48
|
+
*/
|
|
49
|
+
cloudProjectNumber: string;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to start an activity when the add-on is opened. If a
|
|
52
|
+
* mainstage URL is provided, must be true.
|
|
53
|
+
*/
|
|
54
|
+
startActivityOnOpen: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Data supplied by the third-party that the add-on can use to initialize
|
|
57
|
+
* itself
|
|
58
|
+
*/
|
|
59
|
+
additionalData?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The URL that the side panel opens after the add-on starts. Must
|
|
62
|
+
* belong to the same domain as the URLs specified in the add-on manifest.
|
|
63
|
+
*/
|
|
64
|
+
sidePanelUrl?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The URL that the main stage opens after the add-on starts. Must
|
|
67
|
+
* belong to the same domain as the URLs specified in the add-on manifest.
|
|
68
|
+
*/
|
|
69
|
+
mainStageUrl?: string;
|
|
70
|
+
}
|
|
@@ -5,7 +5,7 @@ const topLevel = typeof global !== 'undefined' ? global : typeof self !== 'undef
|
|
|
5
5
|
*/
|
|
6
6
|
var m=this||self;function aa(a){return a};var u=class extends Error{constructor(a,b){super(`Meet Addon Screenshare Info error: ${`${a}${b?` - ${b}`:""}`}`)}};function v(a){throw new a.l(a.message,a.m);}
|
|
7
7
|
var ba={message:"cloudProjectNumber was not defined.",m:"Ensure that cloudProjectNumber is provided in the call to exposeToMeetWhenScreensharing.",l:u},ca={message:"additionalData was defined, but startActivityOnOpen was not true.",m:"Ensure that startActivityOnOpen is set to true if additionalData is provided in the call to exposeToMeetWhenScreensharing.",l:u},da={message:"Received an incorrect value for startActivityOnOpen.",m:"Ensure that startActivityOnOpen is set to true if a mainStageUrl is provided in the call to exposeToMeetWhenScreensharing.",
|
|
8
|
-
l:u};let ea;function fa(a){m.setTimeout(()=>{throw a;},0)};var w,x;a:{for(var ha=["CLOSURE_FLAGS"],z=m,A=0;A<ha.length;A++)if(z=z[ha[A]],z==null){x=null;break a}x=z}var ia=x&&x[748402147];w=ia!=null?ia:!0;
|
|
8
|
+
l:u};let ea;function fa(a){m.setTimeout(()=>{throw a;},0)};var w,x;a:{for(var ha=["CLOSURE_FLAGS"],z=m,A=0;A<ha.length;A++)if(z=z[ha[A]],z==null){x=null;break a}x=z}var ia=x&&x[748402147];w=ia!=null?ia:!0;const ja={};let B=null;function ka(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};let la=void 0;function ma(a,b){if(a!=null){var c;var e=(c=la)!=null?c:la={};c=e[a]||0;c>=b||(e[a]=c+1,a=Error(),ka(a,"incident"),fa(a))}};function C(a,b=!1){return b&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol()}var na=C(),oa=C(),D=C("m_m",!0);const E=C("jas",!0);var F;const pa=[];pa[E]=7;F=Object.freeze(pa);var G={};function H(a,b){return b===void 0?a.g!==I&&!!(2&(a.h[E]|0)):!!(2&b)&&a.g!==I}const I={};function qa(a,b,c){const e=b&128?0:-1,d=a.length;var f;if(f=!!d)f=a[d-1],f=f!=null&&typeof f==="object"&&f.constructor===Object;const g=d+(f?-1:0);for(b=b&128?1:0;b<g;b++)c(b-e,a[b]);if(f){a=a[d-1];for(const h in a)!isNaN(h)&&c(+h,a[h])}}var ra={};var J=typeof m.BigInt==="function"&&typeof m.BigInt(0)==="bigint";const sa=Number.MIN_SAFE_INTEGER.toString(),ta=J?BigInt(Number.MIN_SAFE_INTEGER):void 0,ua=Number.MAX_SAFE_INTEGER.toString(),va=J?BigInt(Number.MAX_SAFE_INTEGER):void 0;function wa(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(let c=0;c<a.length;c++){const e=a[c],d=b[c];if(e>d)return!1;if(e<d)return!0}};const xa=Number.isFinite;function ya(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return xa(a)?a|0:void 0}function K(a){if(a!=null&&typeof a!=="string")throw Error();return a};function za(a){return a};function L(a,b,c,e){var d=e!==void 0;e=!!e;const f=[];var g=a.length;let h,k=4294967295,p=!1;const l=!!(b&64),q=l?b&128?0:-1:void 0;if(!(b&1||(h=g&&a[g-1],h!=null&&typeof h==="object"&&h.constructor===Object?(g--,k=g):h=void 0,!l||b&128||d))){p=!0;var n;k=((n=Aa)!=null?n:za)(k-q,q,a,h,void 0)+q}b=void 0;for(d=0;d<g;d++)if(n=a[d],n!=null&&(n=c(n,e))!=null)if(l&&d>=k){const t=d-q;let r;((r=b)!=null?r:b={})[t]=n}else f[d]=n;if(h)for(let t in h){a=h[t];if(a==null||(a=c(a,e))==null)continue;g=+t;let r;
|
|
9
9
|
if(l&&!Number.isNaN(g)&&(r=g+q)<k)f[r]=a;else{let y;((y=b)!=null?y:b={})[t]=a}}b&&(p?f.push(b):f[k]=b);return f}function Ba(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return(J?a>=ta&&a<=va:a[0]==="-"?wa(a,sa):wa(a,ua))?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){const b=a[E]|0;return a.length===0&&b&1?void 0:L(a,b,Ba)}if(a!=null&&a[D]===G)return Ca(a);return}return a}let Aa;function Ca(a){a=a.h;return L(a,a[E]|0,Ba)};let Da,Ea;function Fa(a){switch(typeof a){case "boolean":return Da||(Da=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Ea||(Ea=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}
|
|
10
10
|
function M(a,b,c,e=0){if(a==null){var d=32;c?(a=[c],d|=128):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=a[E]|0;if(w&&1&d)throw Error("rfarr");2048&d&&!(2&d)&&Ga();if(d&256)throw Error("farr");if(d&64)return(d|e)!==d&&(a[E]=d|e),a;if(c&&(d|=128,c!==a[0]))throw Error("mid");a:{c=a;d|=64;var f=c.length;if(f){var g=f-1;const k=c[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){b=d&128?0:-1;g-=b;if(g>=1024)throw Error("pvtlmt");for(var h in k)if(f=+h,
|
|
11
11
|
f<g)c[f+b]=k[h],delete k[h];else break;d=d&-16760833|(g&1023)<<14;break a}}if(b){h=Math.max(b,f-(d&128?0:-1));if(h>1024)throw Error("spvt");d=d&-16760833|(h&1023)<<14}}}a[E]=d|64|e;return a}function Ga(){if(w)throw Error("carr");ma(oa,5)};function Ha(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[E]|0;a.length===0&&c&1?a=void 0:c&2||(!b||4096&c||16&c?a=N(a,c,!1,b&&!(c&16)):(a[E]|=34,c&4&&Object.freeze(a)));return a}if(a!=null&&a[D]===G){c=a.h;const e=c[E]|0;H(a,e)||(e&2?b=!0:e&32&&!(e&4096)?(c[E]=e|2,a.g=I,b=!0):b=!1,b?(a=new a.constructor(c),a.j=I):a=N(c,e));return a}}function N(a,b,c,e){e!=null||(e=!!(34&b));a=L(a,b,Ha,e);e=32;c&&(e|=2);b=b&16769217|e;a[E]=b;return a}
|
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-
|
|
4
|
+
"version": "1.2.0-dev-829579165",
|
|
5
5
|
"repository": "googleworkspace/meet",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"homepage": "https://developers.google.com/meet/add-ons/guides/overview",
|