@googleworkspace/meet-addons 1.2.0-dev-798343097 → 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.d.ts +243 -243
- package/meet.addons.mjs +1 -1
- package/package.json +1 -1
package/meet.addons.d.ts
CHANGED
|
@@ -1,5 +1,248 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
// Original file: live_sharing.v2.types.d.ts
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Binary-encoded state for CoDoing experiences.
|
|
8
|
+
*/
|
|
9
|
+
export interface CoDoingState {
|
|
10
|
+
bytes: Uint8Array;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Host-provided set of base configuration options.
|
|
16
|
+
*/
|
|
17
|
+
export interface CoActivityDelegate {
|
|
18
|
+
/**
|
|
19
|
+
* User-suitable string describing the CoActivity.
|
|
20
|
+
*/
|
|
21
|
+
activityTitle: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Host-provided set of callbacks required to operate a CoDoing experience.
|
|
27
|
+
*/
|
|
28
|
+
export interface CoDoingDelegate extends CoActivityDelegate {
|
|
29
|
+
/**
|
|
30
|
+
* Callback for state updates broadcast by other participants in the meeting.
|
|
31
|
+
*
|
|
32
|
+
* Note: This isn't called in response to local changes.
|
|
33
|
+
*
|
|
34
|
+
* @param update the state update to be applied.
|
|
35
|
+
*/
|
|
36
|
+
onCoDoingStateChanged(newState: CoDoingState): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Client-constructed CoDoing experience with hooks for hosts to notify
|
|
43
|
+
* of state updates.
|
|
44
|
+
*/
|
|
45
|
+
export interface CoDoingClient {
|
|
46
|
+
/**
|
|
47
|
+
* Broadcasts state to all other current participants, and is the default
|
|
48
|
+
* state for any participant until some other state is broadcast.
|
|
49
|
+
*
|
|
50
|
+
* **Note:** This shared state is eventually consistent across
|
|
51
|
+
* participants. For predictable behavior, this binary state should be
|
|
52
|
+
* complete, not partial, as the Meet add-ons SDK doesn't provide
|
|
53
|
+
* guarantees around the delivery of individual messages -- only eventual
|
|
54
|
+
* consistency.
|
|
55
|
+
*
|
|
56
|
+
* **Note:** In a race condition where two participants call this method
|
|
57
|
+
* simultaneously, the Meet add-ons SDK selects a canonical winning
|
|
58
|
+
* update. The losing update might or might not be applied to participants,
|
|
59
|
+
* but the winning update is always applied later.
|
|
60
|
+
*/
|
|
61
|
+
broadcastStateUpdate(newState: CoDoingState): void;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Current PlaybackState for CoWatching experiences.
|
|
68
|
+
*/
|
|
69
|
+
export type PlaybackState =
|
|
70
|
+
| 'INVALID'
|
|
71
|
+
| 'BUFFERING'
|
|
72
|
+
| 'PLAY'
|
|
73
|
+
| 'PAUSE'
|
|
74
|
+
| 'ENDED';
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* State for CoWatching experiences.
|
|
78
|
+
*/
|
|
79
|
+
export interface CoWatchingState {
|
|
80
|
+
/**
|
|
81
|
+
* The identifier for the media being played.
|
|
82
|
+
*
|
|
83
|
+
* Note: The actual format only matters to the co-watching app.
|
|
84
|
+
*/
|
|
85
|
+
mediaId: string;
|
|
86
|
+
|
|
87
|
+
/** The current position of the media playout, in seconds. */
|
|
88
|
+
mediaPlayoutPosition: number;
|
|
89
|
+
|
|
90
|
+
/** The current playout rate, where {@code 1.0} is normal speed. */
|
|
91
|
+
mediaPlayoutRate: number;
|
|
92
|
+
|
|
93
|
+
/** The current player state, such as Paused, Playing, Buffering, etc. */
|
|
94
|
+
playbackState: PlaybackState;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
type CoWatchingQueryResponse = Pick<CoWatchingState, 'mediaPlayoutPosition'>;
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Host-provided set of callbacks required to operate a CoWatching experience.
|
|
104
|
+
*/
|
|
105
|
+
export interface CoWatchingDelegate extends CoActivityDelegate {
|
|
106
|
+
/**
|
|
107
|
+
* Apply the supplied state to media playout, up to and including switching
|
|
108
|
+
* to a new media stream if the mediaId changes.
|
|
109
|
+
*
|
|
110
|
+
* @param state the new state to be applied to the player.
|
|
111
|
+
*/
|
|
112
|
+
onCoWatchingStateChanged(newState: CoWatchingState): void;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Return the current state of the local media playout. This is called
|
|
116
|
+
* regularly so it should be written to be performant.
|
|
117
|
+
*
|
|
118
|
+
* @return a {@link CoWatchingState} describing the current state.
|
|
119
|
+
*/
|
|
120
|
+
onCoWatchingStateQuery(): CoWatchingQueryResponse;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Client-constructed CoWatching experience with hooks for hosts to manage the
|
|
127
|
+
* state.
|
|
128
|
+
*/
|
|
129
|
+
export interface CoWatchingClient {
|
|
130
|
+
/**
|
|
131
|
+
* Notify Meet that the user has switched media so Meet can pass that along
|
|
132
|
+
* to other users.
|
|
133
|
+
*
|
|
134
|
+
* @param mediaTitle The title of the media switched to. This title is
|
|
135
|
+
* reflected in the Meet UI when other users are considering connecting to
|
|
136
|
+
* the co-watching session.
|
|
137
|
+
* @param mediaId The string URI of the media switched to.
|
|
138
|
+
* @param mediaPlayoutPosition The position at which the media began playout.
|
|
139
|
+
*/
|
|
140
|
+
notifySwitchedToMedia(
|
|
141
|
+
mediaTitle: string,
|
|
142
|
+
mediaId: string,
|
|
143
|
+
mediaPlayoutPosition: number,
|
|
144
|
+
): void;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Notify Meet that the user has paused or unpaused the playback of media, so
|
|
148
|
+
* Meet can mirror that action for other users.
|
|
149
|
+
*
|
|
150
|
+
* @param paused The new paused or unpaused state.
|
|
151
|
+
*/
|
|
152
|
+
notifyPauseState(paused: boolean, mediaPlayoutPosition: number): void;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Notify Meet that the user has sought the playback point of the media, so
|
|
156
|
+
* Meet can mirror that action for other users.
|
|
157
|
+
*
|
|
158
|
+
* @param mediaPlayoutPosition The timestamp that the user sought.
|
|
159
|
+
*/
|
|
160
|
+
notifySeekToTimestamp(mediaPlayoutPosition: number): void;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Notify Meet that the user updated the playout rate of the media to a new
|
|
164
|
+
* value (for example, 1.25x).
|
|
165
|
+
*
|
|
166
|
+
* @param rate The rate at which the media is now being played.
|
|
167
|
+
* @param mediaPlayoutPosition The position at which the media began playout
|
|
168
|
+
*/
|
|
169
|
+
notifyPlayoutRate(rate: number, mediaPlayoutPosition: number): void;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Notify Meet that the media isn't ready to be played due to
|
|
173
|
+
* buffering, a prior media switch, seeking, or normal network
|
|
174
|
+
* congestion.
|
|
175
|
+
*
|
|
176
|
+
* @param mediaPlayoutPosition The timestamp at which the media is paused or
|
|
177
|
+
* waiting for buffering to complete.
|
|
178
|
+
*/
|
|
179
|
+
notifyBuffering(mediaPlayoutPosition: number): void;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Notify Meet that the buffering is complete and the media is now ready to
|
|
183
|
+
* play, starting at the supplied timestamp.
|
|
184
|
+
*
|
|
185
|
+
* @param mediaPlayoutPosition The timestamp at which the media is buffered
|
|
186
|
+
* and is now ready to play.
|
|
187
|
+
*/
|
|
188
|
+
notifyReady(mediaPlayoutPosition: number): void;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
// Original file: index.types.d.ts
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Parameters to retrieve the add-on session.
|
|
198
|
+
*/
|
|
199
|
+
export interface AddonSessionOptions {
|
|
200
|
+
/**
|
|
201
|
+
* The Google Cloud project number of the add-on.
|
|
202
|
+
*/
|
|
203
|
+
cloudProjectNumber: string;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The main entry point for accessing Meet add-on functionality. Available
|
|
208
|
+
* globally under `window.meet.addon`.
|
|
209
|
+
*/
|
|
210
|
+
export interface MeetAddon {
|
|
211
|
+
/**
|
|
212
|
+
* Returns the {@link
|
|
213
|
+
* https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.frametype
|
|
214
|
+
* | FrameType} in which the add-on is running in.
|
|
215
|
+
*/
|
|
216
|
+
getFrameType: () => FrameType;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Creates an add-on session.
|
|
220
|
+
*/
|
|
221
|
+
createAddonSession: (options: AddonSessionOptions) => Promise<AddonSession>;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** The structure of the top-level add-on export. */
|
|
225
|
+
interface MeetAddonExport {
|
|
226
|
+
addon: MeetAddon;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/** The structure of an error generated from the Meet add-ons SDK. */
|
|
230
|
+
interface MeetAddonError extends Error {
|
|
231
|
+
readonly errorType: ErrorType;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* The main entry point for accessing Meet add-on functionality.
|
|
236
|
+
*/
|
|
237
|
+
export const meet: MeetAddonExport;
|
|
238
|
+
|
|
239
|
+
declare global {
|
|
240
|
+
export interface Window {
|
|
241
|
+
meet: MeetAddonExport;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
|
|
3
246
|
// Original file: client.types.d.ts
|
|
4
247
|
|
|
5
248
|
|
|
@@ -257,246 +500,3 @@ export interface AddonSession {
|
|
|
257
500
|
coWatchingDelegate: CoWatchingDelegate,
|
|
258
501
|
): Promise<CoWatchingClient>;
|
|
259
502
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
// Original file: index.types.d.ts
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Parameters to retrieve the add-on session.
|
|
267
|
-
*/
|
|
268
|
-
export interface AddonSessionOptions {
|
|
269
|
-
/**
|
|
270
|
-
* The Google Cloud project number of the add-on.
|
|
271
|
-
*/
|
|
272
|
-
cloudProjectNumber: string;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* The main entry point for accessing Meet add-on functionality. Available
|
|
277
|
-
* globally under `window.meet.addon`.
|
|
278
|
-
*/
|
|
279
|
-
export interface MeetAddon {
|
|
280
|
-
/**
|
|
281
|
-
* Returns the {@link
|
|
282
|
-
* https://developers.google.com/meet/add-ons/reference/websdk/addon_sdk.frametype
|
|
283
|
-
* | FrameType} in which the add-on is running in.
|
|
284
|
-
*/
|
|
285
|
-
getFrameType: () => FrameType;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Creates an add-on session.
|
|
289
|
-
*/
|
|
290
|
-
createAddonSession: (options: AddonSessionOptions) => Promise<AddonSession>;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/** The structure of the top-level add-on export. */
|
|
294
|
-
interface MeetAddonExport {
|
|
295
|
-
addon: MeetAddon;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
/** The structure of an error generated from the Meet add-ons SDK. */
|
|
299
|
-
interface MeetAddonError extends Error {
|
|
300
|
-
readonly errorType: ErrorType;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* The main entry point for accessing Meet add-on functionality.
|
|
305
|
-
*/
|
|
306
|
-
export const meet: MeetAddonExport;
|
|
307
|
-
|
|
308
|
-
declare global {
|
|
309
|
-
export interface Window {
|
|
310
|
-
meet: MeetAddonExport;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
// Original file: live_sharing.v2.types.d.ts
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Binary-encoded state for CoDoing experiences.
|
|
320
|
-
*/
|
|
321
|
-
export interface CoDoingState {
|
|
322
|
-
bytes: Uint8Array;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* Host-provided set of base configuration options.
|
|
328
|
-
*/
|
|
329
|
-
export interface CoActivityDelegate {
|
|
330
|
-
/**
|
|
331
|
-
* User-suitable string describing the CoActivity.
|
|
332
|
-
*/
|
|
333
|
-
activityTitle: string;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Host-provided set of callbacks required to operate a CoDoing experience.
|
|
339
|
-
*/
|
|
340
|
-
export interface CoDoingDelegate extends CoActivityDelegate {
|
|
341
|
-
/**
|
|
342
|
-
* Callback for state updates broadcast by other participants in the meeting.
|
|
343
|
-
*
|
|
344
|
-
* Note: This isn't called in response to local changes.
|
|
345
|
-
*
|
|
346
|
-
* @param update the state update to be applied.
|
|
347
|
-
*/
|
|
348
|
-
onCoDoingStateChanged(newState: CoDoingState): void;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Client-constructed CoDoing experience with hooks for hosts to notify
|
|
355
|
-
* of state updates.
|
|
356
|
-
*/
|
|
357
|
-
export interface CoDoingClient {
|
|
358
|
-
/**
|
|
359
|
-
* Broadcasts state to all other current participants, and is the default
|
|
360
|
-
* state for any participant until some other state is broadcast.
|
|
361
|
-
*
|
|
362
|
-
* **Note:** This shared state is eventually consistent across
|
|
363
|
-
* participants. For predictable behavior, this binary state should be
|
|
364
|
-
* complete, not partial, as the Meet add-ons SDK doesn't provide
|
|
365
|
-
* guarantees around the delivery of individual messages -- only eventual
|
|
366
|
-
* consistency.
|
|
367
|
-
*
|
|
368
|
-
* **Note:** In a race condition where two participants call this method
|
|
369
|
-
* simultaneously, the Meet add-ons SDK selects a canonical winning
|
|
370
|
-
* update. The losing update might or might not be applied to participants,
|
|
371
|
-
* but the winning update is always applied later.
|
|
372
|
-
*/
|
|
373
|
-
broadcastStateUpdate(newState: CoDoingState): void;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Current PlaybackState for CoWatching experiences.
|
|
380
|
-
*/
|
|
381
|
-
export type PlaybackState =
|
|
382
|
-
| 'INVALID'
|
|
383
|
-
| 'BUFFERING'
|
|
384
|
-
| 'PLAY'
|
|
385
|
-
| 'PAUSE'
|
|
386
|
-
| 'ENDED';
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* State for CoWatching experiences.
|
|
390
|
-
*/
|
|
391
|
-
export interface CoWatchingState {
|
|
392
|
-
/**
|
|
393
|
-
* The identifier for the media being played.
|
|
394
|
-
*
|
|
395
|
-
* Note: The actual format only matters to the co-watching app.
|
|
396
|
-
*/
|
|
397
|
-
mediaId: string;
|
|
398
|
-
|
|
399
|
-
/** The current position of the media playout, in seconds. */
|
|
400
|
-
mediaPlayoutPosition: number;
|
|
401
|
-
|
|
402
|
-
/** The current playout rate, where {@code 1.0} is normal speed. */
|
|
403
|
-
mediaPlayoutRate: number;
|
|
404
|
-
|
|
405
|
-
/** The current player state, such as Paused, Playing, Buffering, etc. */
|
|
406
|
-
playbackState: PlaybackState;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
type CoWatchingQueryResponse = Pick<CoWatchingState, 'mediaPlayoutPosition'>;
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
/**
|
|
415
|
-
* Host-provided set of callbacks required to operate a CoWatching experience.
|
|
416
|
-
*/
|
|
417
|
-
export interface CoWatchingDelegate extends CoActivityDelegate {
|
|
418
|
-
/**
|
|
419
|
-
* Apply the supplied state to media playout, up to and including switching
|
|
420
|
-
* to a new media stream if the mediaId changes.
|
|
421
|
-
*
|
|
422
|
-
* @param state the new state to be applied to the player.
|
|
423
|
-
*/
|
|
424
|
-
onCoWatchingStateChanged(newState: CoWatchingState): void;
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* Return the current state of the local media playout. This is called
|
|
428
|
-
* regularly so it should be written to be performant.
|
|
429
|
-
*
|
|
430
|
-
* @return a {@link CoWatchingState} describing the current state.
|
|
431
|
-
*/
|
|
432
|
-
onCoWatchingStateQuery(): CoWatchingQueryResponse;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Client-constructed CoWatching experience with hooks for hosts to manage the
|
|
439
|
-
* state.
|
|
440
|
-
*/
|
|
441
|
-
export interface CoWatchingClient {
|
|
442
|
-
/**
|
|
443
|
-
* Notify Meet that the user has switched media so Meet can pass that along
|
|
444
|
-
* to other users.
|
|
445
|
-
*
|
|
446
|
-
* @param mediaTitle The title of the media switched to. This title is
|
|
447
|
-
* reflected in the Meet UI when other users are considering connecting to
|
|
448
|
-
* the co-watching session.
|
|
449
|
-
* @param mediaId The string URI of the media switched to.
|
|
450
|
-
* @param mediaPlayoutPosition The position at which the media began playout.
|
|
451
|
-
*/
|
|
452
|
-
notifySwitchedToMedia(
|
|
453
|
-
mediaTitle: string,
|
|
454
|
-
mediaId: string,
|
|
455
|
-
mediaPlayoutPosition: number,
|
|
456
|
-
): void;
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* Notify Meet that the user has paused or unpaused the playback of media, so
|
|
460
|
-
* Meet can mirror that action for other users.
|
|
461
|
-
*
|
|
462
|
-
* @param paused The new paused or unpaused state.
|
|
463
|
-
*/
|
|
464
|
-
notifyPauseState(paused: boolean, mediaPlayoutPosition: number): void;
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Notify Meet that the user has sought the playback point of the media, so
|
|
468
|
-
* Meet can mirror that action for other users.
|
|
469
|
-
*
|
|
470
|
-
* @param mediaPlayoutPosition The timestamp that the user sought.
|
|
471
|
-
*/
|
|
472
|
-
notifySeekToTimestamp(mediaPlayoutPosition: number): void;
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* Notify Meet that the user updated the playout rate of the media to a new
|
|
476
|
-
* value (for example, 1.25x).
|
|
477
|
-
*
|
|
478
|
-
* @param rate The rate at which the media is now being played.
|
|
479
|
-
* @param mediaPlayoutPosition The position at which the media began playout
|
|
480
|
-
*/
|
|
481
|
-
notifyPlayoutRate(rate: number, mediaPlayoutPosition: number): void;
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* Notify Meet that the media isn't ready to be played due to
|
|
485
|
-
* buffering, a prior media switch, seeking, or normal network
|
|
486
|
-
* congestion.
|
|
487
|
-
*
|
|
488
|
-
* @param mediaPlayoutPosition The timestamp at which the media is paused or
|
|
489
|
-
* waiting for buffering to complete.
|
|
490
|
-
*/
|
|
491
|
-
notifyBuffering(mediaPlayoutPosition: number): void;
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* Notify Meet that the buffering is complete and the media is now ready to
|
|
495
|
-
* play, starting at the supplied timestamp.
|
|
496
|
-
*
|
|
497
|
-
* @param mediaPlayoutPosition The timestamp at which the media is buffered
|
|
498
|
-
* and is now ready to play.
|
|
499
|
-
*/
|
|
500
|
-
notifyReady(mediaPlayoutPosition: number): void;
|
|
501
|
-
}
|
|
502
|
-
|
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-
|
|
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",
|
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-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",
|