@ai-matrx/meet 0.7.85 → 0.8.0

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.
@@ -419,19 +419,8 @@ function microphoneNoticeCode(track) {
419
419
  return refused.code === "permission-denied" || refused.code === "insecure-context" ? "mic-blocked" : "device-lost";
420
420
  }
421
421
 
422
- // src/core/slot.ts
423
- var NAMESPACE = "ai-matrx.meet";
424
- function globalSlot(name, create) {
425
- const key = /* @__PURE__ */ Symbol.for(`${NAMESPACE}.${name}`);
426
- const host = globalThis;
427
- const existing = host[key];
428
- if (existing !== void 0) return existing;
429
- const created = create();
430
- host[key] = created;
431
- return created;
432
- }
433
-
434
422
  // src/react/provider.tsx
423
+ import { globalSlot } from "@ai-matrx/kit/global-slot";
435
424
  import {
436
425
  createContext,
437
426
  useCallback,
@@ -577,7 +566,7 @@ async function createCameraPreview(deviceId, effect) {
577
566
 
578
567
  // src/react/provider.tsx
579
568
  import { jsx } from "react/jsx-runtime";
580
- var MeetContext = globalSlot("react.context", () => createContext(null));
569
+ var MeetContext = globalSlot("ai-matrx.meet.react.context", () => createContext(null));
581
570
  function useMeetHost() {
582
571
  return useContext(MeetContext);
583
572
  }