@ai-matrx/meet 0.7.85 → 0.8.1
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/CHANGELOG.md +15 -0
- package/dist/core.cjs +2 -15
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +2 -15
- package/dist/core.js.map +1 -1
- package/dist/index.cjs +2 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -15
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +20 -97
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +20 -95
- package/dist/react.js.map +1 -1
- package/dist/skins/meet.cjs +2 -13
- package/dist/skins/meet.cjs.map +1 -1
- package/dist/skins/meet.js +2 -13
- package/dist/skins/meet.js.map +1 -1
- package/package.json +3 -2
package/dist/skins/meet.js
CHANGED
|
@@ -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
|
}
|