@morgan-and-morgan/intake-agent 1.0.0-alpha.10 → 1.0.0-alpha.11

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.
@@ -360,24 +360,6 @@
360
360
  } catch {
361
361
  }
362
362
  };
363
- const playPromptSound = async () => {
364
- try {
365
- const context = new AudioContext();
366
- const oscillator = context.createOscillator();
367
- const gain = context.createGain();
368
- oscillator.frequency.setValueAtTime(660, context.currentTime);
369
- oscillator.frequency.exponentialRampToValueAtTime(880, context.currentTime + 0.16);
370
- gain.gain.setValueAtTime(0.08, context.currentTime);
371
- gain.gain.exponentialRampToValueAtTime(1e-3, context.currentTime + 0.2);
372
- oscillator.connect(gain);
373
- gain.connect(context.destination);
374
- oscillator.start();
375
- oscillator.stop(context.currentTime + 0.2);
376
- oscillator.addEventListener("ended", () => void context.close());
377
- await context.resume();
378
- } catch {
379
- }
380
- };
381
363
  const mountIntakeWidget = (config, onDestroy) => {
382
364
  var _a;
383
365
  const mount = document.createElement("div");
@@ -487,7 +469,6 @@
487
469
  elements.promptBackdrop.hidden = false;
488
470
  elements.promptBackdrop.removeAttribute("inert");
489
471
  elements.promptClose.focus();
490
- void playPromptSound();
491
472
  };
492
473
  const syncViewport = () => {
493
474
  const viewport = globalThis.visualViewport;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morgan-and-morgan/intake-agent",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.11",
4
4
  "description": "Embeddable chat widget loader.",
5
5
  "license": "UNLICENSED",
6
6
  "files": [