@googleworkspace/meet-addons 1.2.0-dev-847898100 → 1.2.0-dev-848657584

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 CHANGED
@@ -25,7 +25,7 @@ function Nb(a,b,c,d){let e=!1;d=Kb(a,d,void 0,f=>{const g=tb(f,c,b);e=g!==f&&g!=
25
25
  function B(a,b,c,d){d=Tb(d);a:{var e=d;Hb(a);const h=a.l;var f=h[l]|0;if(e==null){var g=Rb(h);if(Qb(g,h,f,c)===b)g.set(c,0);else break a}else{g=h;const k=Rb(g),n=Qb(k,g,f,c);n!==b&&(n&&(f=w(g,f,n)),k.set(c,b))}w(h,f,b,e)}d&&!m(d)&&Ib(a.l);return a}
26
26
  function Vb(a,b){Hb(a);const c=a.l;let d=c[l]|0;if(b==null)return w(c,d,1),a;let e=b===Ea?7:b[l]|0,f=e;const g=Ob(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=Wb(e,d));e!==f&&(b[l]=e);d=w(c,d,1,b);2&e||!(4096&e||16&e)||Ib(c,d);return a}function Wb(a,b){return a=(2&b?a|2:a&-3)&-273}
27
27
  function Xb(a){a=v(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function Yb(a){a=ma?v(a,1,void 0,sb):sb(v(a,1));return a!=null?a:Jb}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:db(a)?a|0:void 0;return a!=null?a:0}function E(a,b,c,d){c=x(a,d)===c?c:-1;return Sb(a,b,c)}function Zb(a,b){return y(a,1,b==null?b:jb(b),"0")}
28
- function F(a,b,c){if(c!=null){if(!db(c))throw ya("enum");c|=0}return y(a,b,c,0)};function $b(){var a=ac||(ac=bc("[1,2,0]"));a=Fb(a);a=Lb(a,4,u("dev-847898100"));const b=a.l,c=b[l]|0;return m(a,c)?a:Db(a,b,c)?Eb(a,b):new a.constructor(Cb(b,c,!0))}var G=class{constructor(a){this.l=zb(a,void 0,void 0,2048)}toJSON(){return yb(this)}};G.prototype[Da]=Ga;G.prototype.toString=function(){return this.l.toString()};function cc(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 bc=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 G{});var dc=class extends G{};function ec(a){var b=new fc(500);let c=0,d;return(...e)=>{hc(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},ic(b))))}}function jc(a){var b=new fc(100),c=Promise.resolve();return(...d)=>hc(b)?a(...d):c};function hc(a){return kc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function ic(a){const b=a.g;a=kc(a,a.index);return a>=b?0:b-a}function kc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var fc=class{constructor(a){this.g=a;this.h=[];this.index=0}};var lc=class extends G{},mc=[2,3];var nc=class extends G{};var H=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."},oc={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)."},
28
+ function F(a,b,c){if(c!=null){if(!db(c))throw ya("enum");c|=0}return y(a,b,c,0)};function $b(){var a=ac||(ac=bc("[1,2,0]"));a=Fb(a);a=Lb(a,4,u("dev-848657584"));const b=a.l,c=b[l]|0;return m(a,c)?a:Db(a,b,c)?Eb(a,b):new a.constructor(Cb(b,c,!0))}var G=class{constructor(a){this.l=zb(a,void 0,void 0,2048)}toJSON(){return yb(this)}};G.prototype[Da]=Ga;G.prototype.toString=function(){return this.l.toString()};function cc(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 bc=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 G{});var dc=class extends G{};function ec(a){var b=new fc(500);let c=0,d;return(...e)=>{hc(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},ic(b))))}}function jc(a){var b=new fc(100),c=Promise.resolve();return(...d)=>hc(b)?a(...d):c};function hc(a){return kc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function ic(a){const b=a.g;a=kc(a,a.index);return a>=b?0:b-a}function kc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var fc=class{constructor(a){this.g=a;this.h=[];this.index=0}};var lc=class extends G{},mc=[2,3];var nc=class extends G{};var H=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."},oc={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)."},
29
29
  pc={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."},qc={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."},rc={errorType:"NotSupportedInStandalone",
30
30
  message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},sc={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."},tc={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)."},
31
31
  uc={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."},vc={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
+ }
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-847898100",
4
+ "version": "1.2.0-dev-848657584",
5
5
  "repository": "googleworkspace/meet",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://developers.google.com/meet/add-ons/guides/overview",