@googleworkspace/meet-addons 1.2.0-dev-797944741 → 1.2.0-dev-799293277

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
@@ -22,7 +22,7 @@ function Hb(a,b,c,d){let e=!1;d=Eb(a,d,void 0,f=>{const g=nb(f,c,b);e=g!==f&&g!=
22
22
  function B(a,b,c,d){d=Nb(d);a:{var e=d;Bb(a);const h=a.l;var f=h[k]|0;if(e==null){var g=Lb(h);if(Kb(g,h,f,c)===b)g.set(c,0);else break a}else{g=h;const m=Lb(g),n=Kb(m,g,f,c);n!==b&&(n&&(f=w(g,f,n)),m.set(c,b))}w(h,f,b,e)}d&&!l(d)&&Cb(a.l);return a}
23
23
  function Pb(a,b){Bb(a);const c=a.l;let d=c[k]|0;if(b==null)return w(c,d,1),a;let e=b===Ca?7:b[k]|0,f=e;const g=Ib(e),h=g||Object.isFrozen(b);let m=!0,n=!0;for(let z=0;z<b.length;z++){var r=b[z];g||(r=l(r),m&&(m=!r),n&&(n=r))}g||(e=m?13:5,e=n?e&-4097:e|4096);h&&e===f||(b=[...b],f=0,e=Qb(e,d));e!==f&&(b[k]=e);d=w(c,d,1,b);2&e||!(4096&e||16&e)||Cb(c,d);return a}function Qb(a,b){return a=(2&b?a|2:a&-3)&-273}
24
24
  function Rb(a){a=v(a,1);a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;return a!=null?a:!1}function Sb(a){a=v(a,1);var b=typeof a;a!=null&&(b==="bigint"?a=p($a(64,a)):fb(a)?b==="string"?(b=cb(Number(a)),ab(b)?a=p(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=Ea()?p($a(64,BigInt(a))):p(ib(a)))):ab(a)?a=p(lb(a)):(a=cb(a),ab(a)?a=String(a):(b=String(a),mb(b)?a=b:(Va(a),a=Za())),a=p(a)):a=void 0);return a!=null?a:Db}
25
- 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:bb(a)?a|0:void 0;return a!=null?a:0}function E(a,b,c,d){c=x(a,d)===c?c:-1;return Mb(a,b,c)}function F(a,b,c){if(c!=null){if(!bb(c))throw xa("enum");c|=0}return y(a,b,c,0)};function Tb(){var a=Ub||(Ub=Vb("[1,2,0]"));a=zb(a);a=Fb(a,4,u("dev-797944741"));const b=a.l,c=b[k]|0;return l(a,c)?a:xb(a,b,c)?yb(a,b):new a.constructor(wb(b,c,!0))}var I=class{constructor(a){this.l=tb(a)}toJSON(){return sb(this)}};I.prototype[Ba]=Fa;I.prototype.toString=function(){return this.l.toString()};function Wb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[k]|=32;b=new a(b)}return b}};var Vb=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[k]|=34;return new a(b)}}(class extends I{});var Xb=class extends I{};function Yb(a){var b=new Zb(500);let c=0,d;return(...e)=>{$b(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},ac(b))))}}function bc(a){var b=new Zb(100),c=Promise.resolve();return(...d)=>$b(b)?a(...d):c};function $b(a){return cc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function ac(a){const b=a.g;a=cc(a,a.index);return a>=b?0:b-a}function cc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var Zb=class{constructor(a){this.g=a;this.h=[];this.index=0}};var dc=class extends I{},ec=[2,3];var fc=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."},hc={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
+ 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:bb(a)?a|0:void 0;return a!=null?a:0}function E(a,b,c,d){c=x(a,d)===c?c:-1;return Mb(a,b,c)}function F(a,b,c){if(c!=null){if(!bb(c))throw xa("enum");c|=0}return y(a,b,c,0)};function Tb(){var a=Ub||(Ub=Vb("[1,2,0]"));a=zb(a);a=Fb(a,4,u("dev-799293277"));const b=a.l,c=b[k]|0;return l(a,c)?a:xb(a,b,c)?yb(a,b):new a.constructor(wb(b,c,!0))}var I=class{constructor(a){this.l=tb(a)}toJSON(){return sb(this)}};I.prototype[Ba]=Fa;I.prototype.toString=function(){return this.l.toString()};function Wb(a){return b=>{if(b==null||b=="")b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");b[k]|=32;b=new a(b)}return b}};var Vb=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[k]|=34;return new a(b)}}(class extends I{});var Xb=class extends I{};function Yb(a){var b=new Zb(500);let c=0,d;return(...e)=>{$b(b)?a(...e):(d=()=>void a(...e),c||(c=setTimeout(()=>{c=0;let f;(f=d)==null||f()},ac(b))))}}function bc(a){var b=new Zb(100),c=Promise.resolve();return(...d)=>$b(b)?a(...d):c};function $b(a){return cc(a,a.index)>=a.g?(a.h[a.index]=Date.now(),a.index=(a.index+1)%1,!0):!1}function ac(a){const b=a.g;a=cc(a,a.index);return a>=b?0:b-a}function cc(a,b){let c;return Date.now()-((c=a.h[b])!=null?c:-1*a.g)}var Zb=class{constructor(a){this.g=a;this.h=[];this.index=0}};var dc=class extends I{},ec=[2,3];var fc=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."},hc={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)."},
26
26
  ic={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."},jc={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."},kc={errorType:"NotSupportedInStandalone",
27
27
  message:"This method is not supported in standalone mode.",i:"Do not call this method in standalone mode."},lc={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."},mc={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)."},
28
28
  nc={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."},oc={errorType:"DestinationNotReady",
@@ -1,40 +1,5 @@
1
1
 
2
2
 
3
- // Original file: index.types.d.ts
4
-
5
-
6
- /**
7
- * The main entry point for accessing Meet add-on screenshare functionality.
8
- * Available globally under `window.meet.addon.screensharing`, or by importing
9
- * `meet.addon.screensharing`.
10
- */
11
- export interface MeetAddonScreenshare {
12
- /**
13
- * Enables a third-party site to set content and its corresponding add-on when
14
- * transitioning from screen sharing to the Meet add-on.
15
- */
16
- exposeToMeetWhenScreensharing(
17
- clientScreenshareInfo: AddonScreenshareInfo,
18
- ): void;
19
- }
20
-
21
- /** The structure of the top-level add-on screenshare export. */
22
- interface MeetAddonScreenshareExport {
23
- addon: {screensharing: MeetAddonScreenshare};
24
- }
25
-
26
- /**
27
- * The main entry point for accessing Meet add-on screenshare functionality.
28
- */
29
- export const meet: MeetAddonScreenshareExport;
30
-
31
- declare global {
32
- export interface Window {
33
- meet: MeetAddonScreenshareExport;
34
- }
35
- }
36
-
37
-
38
3
  // Original file: screenshare_info.types.d.ts
39
4
 
40
5
  /**
@@ -68,3 +33,38 @@ export interface AddonScreenshareInfo {
68
33
  */
69
34
  mainStageUrl?: string;
70
35
  }
36
+
37
+
38
+ // Original file: index.types.d.ts
39
+
40
+
41
+ /**
42
+ * The main entry point for accessing Meet add-on screenshare functionality.
43
+ * Available globally under `window.meet.addon.screensharing`, or by importing
44
+ * `meet.addon.screensharing`.
45
+ */
46
+ export interface MeetAddonScreenshare {
47
+ /**
48
+ * Enables a third-party site to set content and its corresponding add-on when
49
+ * transitioning from screen sharing to the Meet add-on.
50
+ */
51
+ exposeToMeetWhenScreensharing(
52
+ clientScreenshareInfo: AddonScreenshareInfo,
53
+ ): void;
54
+ }
55
+
56
+ /** The structure of the top-level add-on screenshare export. */
57
+ interface MeetAddonScreenshareExport {
58
+ addon: {screensharing: MeetAddonScreenshare};
59
+ }
60
+
61
+ /**
62
+ * The main entry point for accessing Meet add-on screenshare functionality.
63
+ */
64
+ export const meet: MeetAddonScreenshareExport;
65
+
66
+ declare global {
67
+ export interface Window {
68
+ meet: MeetAddonScreenshareExport;
69
+ }
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-797944741",
4
+ "version": "1.2.0-dev-799293277",
5
5
  "repository": "googleworkspace/meet",
6
6
  "license": "SEE LICENSE IN LICENSE",
7
7
  "homepage": "https://developers.google.com/meet/add-ons/guides/overview",