@cloudflare/realtimekit-ui 1.0.4-staging.3 → 1.0.4-staging.4

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.
@@ -93,6 +93,10 @@ export class RtkMeeting {
93
93
  this.setupStoreRequestListener();
94
94
  this.setupStateUpdateListener();
95
95
  this.meetingChanged(this.meeting);
96
+ this.iconPackChanged(this.iconPack);
97
+ this.tChanged(this.t);
98
+ this.configChanged(this.config);
99
+ this.sizeChanged(this.size);
96
100
  this.resizeObserver = new ResizeObserver(() => this.handleResize());
97
101
  this.resizeObserver.observe(this.host);
98
102
  if (this.applyDesignSystem &&
@@ -229,11 +233,31 @@ export class RtkMeeting {
229
233
  }
230
234
  window.removeEventListener('rtkError', this.authErrorListener);
231
235
  }
232
- onSizeChange(newSize) {
236
+ iconPackChanged(newIconPack) {
237
+ if (this.peerStore) {
238
+ this.peerStore.state.iconPack = newIconPack;
239
+ }
240
+ }
241
+ tChanged(newT) {
242
+ if (this.peerStore) {
243
+ this.peerStore.state.t = newT;
244
+ }
245
+ }
246
+ sizeChanged(newSize) {
233
247
  if (this.peerStore) {
234
248
  this.peerStore.state.size = newSize;
235
249
  }
236
250
  }
251
+ configChanged(config) {
252
+ if (this.peerStore) {
253
+ this.peerStore.state.config = config;
254
+ }
255
+ if ((config === null || config === void 0 ? void 0 : config.designTokens) &&
256
+ typeof document !== 'undefined' &&
257
+ (this.peerStore || legacyGlobalUIStore).state.states.activeDebugger !== true) {
258
+ provideRtkDesignSystem(document.documentElement, config.designTokens);
259
+ }
260
+ }
237
261
  handleResize() {
238
262
  this.size = getSize(this.host.clientWidth);
239
263
  }
@@ -567,9 +591,18 @@ export class RtkMeeting {
567
591
  return [{
568
592
  "propName": "meeting",
569
593
  "methodName": "meetingChanged"
594
+ }, {
595
+ "propName": "iconPack",
596
+ "methodName": "iconPackChanged"
597
+ }, {
598
+ "propName": "t",
599
+ "methodName": "tChanged"
570
600
  }, {
571
601
  "propName": "size",
572
- "methodName": "onSizeChange"
602
+ "methodName": "sizeChanged"
603
+ }, {
604
+ "propName": "config",
605
+ "methodName": "configChanged"
573
606
  }];
574
607
  }
575
608
  }
@@ -71,11 +71,11 @@ export class RtkUiProvider {
71
71
  }
72
72
  // Listen for store requests from child components
73
73
  this.setupStoreRequestListener();
74
- this.onMeetingChange(this.meeting);
75
- this.onIconPackChange(this.iconPack);
76
- this.onTChange(this.t);
77
- this.onConfigChange(this.config);
78
- this.onSizeChange(this.size);
74
+ this.meetingChanged(this.meeting);
75
+ this.iconPackChanged(this.iconPack);
76
+ this.tChanged(this.t);
77
+ this.configChanged(this.config);
78
+ this.sizeChanged(this.size);
79
79
  this.resizeObserver = new ResizeObserver(() => this.handleResize());
80
80
  this.resizeObserver.observe(this.host);
81
81
  }
@@ -143,7 +143,7 @@ export class RtkUiProvider {
143
143
  };
144
144
  this.host.addEventListener('rtkRequestStore', this.storeRequestListener);
145
145
  }
146
- onMeetingChange(meeting) {
146
+ meetingChanged(meeting) {
147
147
  if (meeting) {
148
148
  this.peerStore = createPeerStore({
149
149
  meeting,
@@ -188,17 +188,17 @@ export class RtkUiProvider {
188
188
  window.removeEventListener('rtkError', this.authErrorListener);
189
189
  }
190
190
  }
191
- onIconPackChange(newIconPack) {
191
+ iconPackChanged(newIconPack) {
192
192
  if (this.peerStore) {
193
193
  this.peerStore.state.iconPack = newIconPack;
194
194
  }
195
195
  }
196
- onTChange(newT) {
196
+ tChanged(newT) {
197
197
  if (this.peerStore) {
198
198
  this.peerStore.state.t = newT;
199
199
  }
200
200
  }
201
- onConfigChange(config) {
201
+ configChanged(config) {
202
202
  if (this.peerStore) {
203
203
  this.peerStore.state.config = config;
204
204
  }
@@ -208,7 +208,7 @@ export class RtkUiProvider {
208
208
  provideRtkDesignSystem(document.documentElement, config.designTokens);
209
209
  }
210
210
  }
211
- onSizeChange(newSize) {
211
+ sizeChanged(newSize) {
212
212
  if (this.peerStore) {
213
213
  this.peerStore.state.size = newSize;
214
214
  }
@@ -430,19 +430,19 @@ export class RtkUiProvider {
430
430
  static get watchers() {
431
431
  return [{
432
432
  "propName": "meeting",
433
- "methodName": "onMeetingChange"
433
+ "methodName": "meetingChanged"
434
434
  }, {
435
435
  "propName": "iconPack",
436
- "methodName": "onIconPackChange"
436
+ "methodName": "iconPackChanged"
437
437
  }, {
438
438
  "propName": "t",
439
- "methodName": "onTChange"
439
+ "methodName": "tChanged"
440
440
  }, {
441
441
  "propName": "config",
442
- "methodName": "onConfigChange"
442
+ "methodName": "configChanged"
443
443
  }, {
444
444
  "propName": "size",
445
- "methodName": "onSizeChange"
445
+ "methodName": "sizeChanged"
446
446
  }];
447
447
  }
448
448
  }
@@ -144,6 +144,10 @@ const RtkMeeting$1 = /*@__PURE__*/ proxyCustomElement(class RtkMeeting extends H
144
144
  this.setupStoreRequestListener();
145
145
  this.setupStateUpdateListener();
146
146
  this.meetingChanged(this.meeting);
147
+ this.iconPackChanged(this.iconPack);
148
+ this.tChanged(this.t);
149
+ this.configChanged(this.config);
150
+ this.sizeChanged(this.size);
147
151
  this.resizeObserver = new index(() => this.handleResize());
148
152
  this.resizeObserver.observe(this.host);
149
153
  if (this.applyDesignSystem &&
@@ -280,11 +284,31 @@ const RtkMeeting$1 = /*@__PURE__*/ proxyCustomElement(class RtkMeeting extends H
280
284
  }
281
285
  window.removeEventListener('rtkError', this.authErrorListener);
282
286
  }
283
- onSizeChange(newSize) {
287
+ iconPackChanged(newIconPack) {
288
+ if (this.peerStore) {
289
+ this.peerStore.state.iconPack = newIconPack;
290
+ }
291
+ }
292
+ tChanged(newT) {
293
+ if (this.peerStore) {
294
+ this.peerStore.state.t = newT;
295
+ }
296
+ }
297
+ sizeChanged(newSize) {
284
298
  if (this.peerStore) {
285
299
  this.peerStore.state.size = newSize;
286
300
  }
287
301
  }
302
+ configChanged(config) {
303
+ if (this.peerStore) {
304
+ this.peerStore.state.config = config;
305
+ }
306
+ if ((config === null || config === void 0 ? void 0 : config.designTokens) &&
307
+ typeof document !== 'undefined' &&
308
+ (this.peerStore || uiStore).state.states.activeDebugger !== true) {
309
+ provideRtkDesignSystem(document.documentElement, config.designTokens);
310
+ }
311
+ }
288
312
  handleResize() {
289
313
  this.size = getSize(this.host.clientWidth);
290
314
  }
@@ -325,7 +349,10 @@ const RtkMeeting$1 = /*@__PURE__*/ proxyCustomElement(class RtkMeeting extends H
325
349
  get host() { return this; }
326
350
  static get watchers() { return {
327
351
  "meeting": ["meetingChanged"],
328
- "size": ["onSizeChange"]
352
+ "iconPack": ["iconPackChanged"],
353
+ "t": ["tChanged"],
354
+ "size": ["sizeChanged"],
355
+ "config": ["configChanged"]
329
356
  }; }
330
357
  static get style() { return RtkMeetingStyle0; }
331
358
  }, [1, "rtk-meeting", {
@@ -342,7 +369,10 @@ const RtkMeeting$1 = /*@__PURE__*/ proxyCustomElement(class RtkMeeting extends H
342
369
  "iconPack": [16]
343
370
  }, undefined, {
344
371
  "meeting": ["meetingChanged"],
345
- "size": ["onSizeChange"]
372
+ "iconPack": ["iconPackChanged"],
373
+ "t": ["tChanged"],
374
+ "size": ["sizeChanged"],
375
+ "config": ["configChanged"]
346
376
  }]);
347
377
  function defineCustomElement$1() {
348
378
  if (typeof customElements === "undefined") {
@@ -78,11 +78,11 @@ const RtkUiProvider$1 = /*@__PURE__*/ proxyCustomElement(class RtkUiProvider ext
78
78
  }
79
79
  // Listen for store requests from child components
80
80
  this.setupStoreRequestListener();
81
- this.onMeetingChange(this.meeting);
82
- this.onIconPackChange(this.iconPack);
83
- this.onTChange(this.t);
84
- this.onConfigChange(this.config);
85
- this.onSizeChange(this.size);
81
+ this.meetingChanged(this.meeting);
82
+ this.iconPackChanged(this.iconPack);
83
+ this.tChanged(this.t);
84
+ this.configChanged(this.config);
85
+ this.sizeChanged(this.size);
86
86
  this.resizeObserver = new ResizeObserver(() => this.handleResize());
87
87
  this.resizeObserver.observe(this.host);
88
88
  }
@@ -150,7 +150,7 @@ const RtkUiProvider$1 = /*@__PURE__*/ proxyCustomElement(class RtkUiProvider ext
150
150
  };
151
151
  this.host.addEventListener('rtkRequestStore', this.storeRequestListener);
152
152
  }
153
- onMeetingChange(meeting) {
153
+ meetingChanged(meeting) {
154
154
  if (meeting) {
155
155
  this.peerStore = createPeerStore({
156
156
  meeting,
@@ -195,17 +195,17 @@ const RtkUiProvider$1 = /*@__PURE__*/ proxyCustomElement(class RtkUiProvider ext
195
195
  window.removeEventListener('rtkError', this.authErrorListener);
196
196
  }
197
197
  }
198
- onIconPackChange(newIconPack) {
198
+ iconPackChanged(newIconPack) {
199
199
  if (this.peerStore) {
200
200
  this.peerStore.state.iconPack = newIconPack;
201
201
  }
202
202
  }
203
- onTChange(newT) {
203
+ tChanged(newT) {
204
204
  if (this.peerStore) {
205
205
  this.peerStore.state.t = newT;
206
206
  }
207
207
  }
208
- onConfigChange(config) {
208
+ configChanged(config) {
209
209
  if (this.peerStore) {
210
210
  this.peerStore.state.config = config;
211
211
  }
@@ -215,7 +215,7 @@ const RtkUiProvider$1 = /*@__PURE__*/ proxyCustomElement(class RtkUiProvider ext
215
215
  provideRtkDesignSystem(document.documentElement, config.designTokens);
216
216
  }
217
217
  }
218
- onSizeChange(newSize) {
218
+ sizeChanged(newSize) {
219
219
  if (this.peerStore) {
220
220
  this.peerStore.state.size = newSize;
221
221
  }
@@ -229,11 +229,11 @@ const RtkUiProvider$1 = /*@__PURE__*/ proxyCustomElement(class RtkUiProvider ext
229
229
  }
230
230
  get host() { return this; }
231
231
  static get watchers() { return {
232
- "meeting": ["onMeetingChange"],
233
- "iconPack": ["onIconPackChange"],
234
- "t": ["onTChange"],
235
- "config": ["onConfigChange"],
236
- "size": ["onSizeChange"]
232
+ "meeting": ["meetingChanged"],
233
+ "iconPack": ["iconPackChanged"],
234
+ "t": ["tChanged"],
235
+ "config": ["configChanged"],
236
+ "size": ["sizeChanged"]
237
237
  }; }
238
238
  static get style() { return RtkUiProviderStyle0; }
239
239
  }, [4, "rtk-ui-provider", {
@@ -245,11 +245,11 @@ const RtkUiProvider$1 = /*@__PURE__*/ proxyCustomElement(class RtkUiProvider ext
245
245
  "size": [1537],
246
246
  "showSetupScreen": [4, "show-setup-screen"]
247
247
  }, undefined, {
248
- "meeting": ["onMeetingChange"],
249
- "iconPack": ["onIconPackChange"],
250
- "t": ["onTChange"],
251
- "config": ["onConfigChange"],
252
- "size": ["onSizeChange"]
248
+ "meeting": ["meetingChanged"],
249
+ "iconPack": ["iconPackChanged"],
250
+ "t": ["tChanged"],
251
+ "config": ["configChanged"],
252
+ "size": ["sizeChanged"]
253
253
  }]);
254
254
  function defineCustomElement$1() {
255
255
  if (typeof customElements === "undefined") {
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-07-25T05:47:09",
2
+ "timestamp": "2025-07-25T07:57:29",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.27.2",