@meeeetup/camera-web 0.4.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.
Files changed (96) hide show
  1. package/LICENSE +29 -0
  2. package/README.md +154 -0
  3. package/dist/camera-loop.d.ts +40 -0
  4. package/dist/camera-loop.d.ts.map +1 -0
  5. package/dist/camera-loop.js +134 -0
  6. package/dist/camera-loop.js.map +1 -0
  7. package/dist/detectors/mediapipe-detector.d.ts +24 -0
  8. package/dist/detectors/mediapipe-detector.d.ts.map +1 -0
  9. package/dist/detectors/mediapipe-detector.js +67 -0
  10. package/dist/detectors/mediapipe-detector.js.map +1 -0
  11. package/dist/detectors/tensorflow-detector.d.ts +20 -0
  12. package/dist/detectors/tensorflow-detector.d.ts.map +1 -0
  13. package/dist/detectors/tensorflow-detector.js +59 -0
  14. package/dist/detectors/tensorflow-detector.js.map +1 -0
  15. package/dist/frame-buffer.d.ts +21 -0
  16. package/dist/frame-buffer.d.ts.map +1 -0
  17. package/dist/frame-buffer.js +47 -0
  18. package/dist/frame-buffer.js.map +1 -0
  19. package/dist/index.d.ts +13 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +12 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/overlay.d.ts +7 -0
  24. package/dist/overlay.d.ts.map +1 -0
  25. package/dist/overlay.js +40 -0
  26. package/dist/overlay.js.map +1 -0
  27. package/dist/react/CircleProgress.d.ts +10 -0
  28. package/dist/react/CircleProgress.d.ts.map +1 -0
  29. package/dist/react/CircleProgress.js +18 -0
  30. package/dist/react/CircleProgress.js.map +1 -0
  31. package/dist/react/components/AlignmentRing.d.ts +3 -0
  32. package/dist/react/components/AlignmentRing.d.ts.map +1 -0
  33. package/dist/react/components/AlignmentRing.js +16 -0
  34. package/dist/react/components/AlignmentRing.js.map +1 -0
  35. package/dist/react/components/CameraToggle.d.ts +6 -0
  36. package/dist/react/components/CameraToggle.d.ts.map +1 -0
  37. package/dist/react/components/CameraToggle.js +10 -0
  38. package/dist/react/components/CameraToggle.js.map +1 -0
  39. package/dist/react/components/CameraViewport.d.ts +10 -0
  40. package/dist/react/components/CameraViewport.d.ts.map +1 -0
  41. package/dist/react/components/CameraViewport.js +75 -0
  42. package/dist/react/components/CameraViewport.js.map +1 -0
  43. package/dist/react/components/CaptureButton.d.ts +6 -0
  44. package/dist/react/components/CaptureButton.d.ts.map +1 -0
  45. package/dist/react/components/CaptureButton.js +15 -0
  46. package/dist/react/components/CaptureButton.js.map +1 -0
  47. package/dist/react/components/DevicePicker.d.ts +6 -0
  48. package/dist/react/components/DevicePicker.d.ts.map +1 -0
  49. package/dist/react/components/DevicePicker.js +11 -0
  50. package/dist/react/components/DevicePicker.js.map +1 -0
  51. package/dist/react/components/FaceCounter.d.ts +6 -0
  52. package/dist/react/components/FaceCounter.d.ts.map +1 -0
  53. package/dist/react/components/FaceCounter.js +11 -0
  54. package/dist/react/components/FaceCounter.js.map +1 -0
  55. package/dist/react/components/FaceGrid.d.ts +5 -0
  56. package/dist/react/components/FaceGrid.d.ts.map +1 -0
  57. package/dist/react/components/FaceGrid.js +127 -0
  58. package/dist/react/components/FaceGrid.js.map +1 -0
  59. package/dist/react/context/MeeeetUpCamContext.d.ts +47 -0
  60. package/dist/react/context/MeeeetUpCamContext.d.ts.map +1 -0
  61. package/dist/react/context/MeeeetUpCamContext.js +3 -0
  62. package/dist/react/context/MeeeetUpCamContext.js.map +1 -0
  63. package/dist/react/context/MeeeetUpCamProvider.d.ts +28 -0
  64. package/dist/react/context/MeeeetUpCamProvider.d.ts.map +1 -0
  65. package/dist/react/context/MeeeetUpCamProvider.js +109 -0
  66. package/dist/react/context/MeeeetUpCamProvider.js.map +1 -0
  67. package/dist/react/context/useMeeeetUpCam.d.ts +15 -0
  68. package/dist/react/context/useMeeeetUpCam.d.ts.map +1 -0
  69. package/dist/react/context/useMeeeetUpCam.js +22 -0
  70. package/dist/react/context/useMeeeetUpCam.js.map +1 -0
  71. package/dist/react/cx.d.ts +4 -0
  72. package/dist/react/cx.d.ts.map +1 -0
  73. package/dist/react/cx.js +6 -0
  74. package/dist/react/cx.js.map +1 -0
  75. package/dist/react/useCameraDevices.d.ts +9 -0
  76. package/dist/react/useCameraDevices.d.ts.map +1 -0
  77. package/dist/react/useCameraDevices.js +27 -0
  78. package/dist/react/useCameraDevices.js.map +1 -0
  79. package/dist/react/useInteractiveCamera.d.ts +39 -0
  80. package/dist/react/useInteractiveCamera.d.ts.map +1 -0
  81. package/dist/react/useInteractiveCamera.js +400 -0
  82. package/dist/react/useInteractiveCamera.js.map +1 -0
  83. package/dist/react/usePassiveCamera.d.ts +37 -0
  84. package/dist/react/usePassiveCamera.d.ts.map +1 -0
  85. package/dist/react/usePassiveCamera.js +130 -0
  86. package/dist/react/usePassiveCamera.js.map +1 -0
  87. package/dist/styles.css +66 -0
  88. package/dist/utils/camera-devices.d.ts +15 -0
  89. package/dist/utils/camera-devices.d.ts.map +1 -0
  90. package/dist/utils/camera-devices.js +37 -0
  91. package/dist/utils/camera-devices.js.map +1 -0
  92. package/dist/utils/compress-image.d.ts +12 -0
  93. package/dist/utils/compress-image.d.ts.map +1 -0
  94. package/dist/utils/compress-image.js +38 -0
  95. package/dist/utils/compress-image.js.map +1 -0
  96. package/package.json +59 -0
@@ -0,0 +1,66 @@
1
+ /* ──────────────────────────────────────────────────────────────────────────
2
+ @meeeetup1120/web — component skin
3
+
4
+ Import once in your app: import "@meeeetup1120/web/styles.css";
5
+
6
+ Every visual value is a CSS custom property with a dark default, so the
7
+ components render correctly with zero configuration. Re-theme the whole SDK
8
+ by setting these variables on any ancestor (e.g. :root, or the element that
9
+ wraps the camera):
10
+
11
+ --mfc-surface camera background (interactive)
12
+ --mfc-surface-passive camera background (passive)
13
+ --mfc-overlay dimmed blur overlay behind the circular viewport
14
+ --mfc-radius viewport corner radius
15
+ --mfc-circle-size diameter of the interactive alignment circle
16
+ --mfc-ring alignment ring color (searching)
17
+ --mfc-ring-active alignment ring color (aligned)
18
+ --mfc-ring-glow aligned ring glow color
19
+ --mfc-fg foreground for icons/labels/countdown
20
+ --mfc-icon idle icon color
21
+ --mfc-control-bg capture-button background
22
+ --mfc-control-border capture-button border
23
+ --mfc-toggle-bg camera-toggle background
24
+ --mfc-viewport-aspect interactive viewport aspect-ratio (default 4 / 3)
25
+ --mfc-passive-aspect passive viewport aspect-ratio (default 16 / 9)
26
+ ────────────────────────────────────────────────────────────────────────── */
27
+
28
+ /* ── Keyframes (namespaced; no dependency on Tailwind or host CSS) ─────────── */
29
+ @keyframes mfc-spin { to { transform: rotate(360deg); } }
30
+ @keyframes mfc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
31
+ @keyframes mfc-ping { 75%, 100% { transform: scale(2); opacity: 0; } }
32
+ @keyframes mfc-materialize {
33
+ 0% { opacity: 0; transform: scale(0.5); filter: blur(4px); }
34
+ 60% { opacity: 1; transform: scale(1.06); filter: blur(0); }
35
+ 100% { opacity: 1; transform: scale(1); filter: blur(0); }
36
+ }
37
+ @keyframes mfc-dissolve {
38
+ 0% { opacity: 1; transform: scale(1); filter: blur(0); }
39
+ 100% { opacity: 0; transform: scale(0.8); filter: blur(3px); }
40
+ }
41
+ @keyframes mfc-land {
42
+ 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
43
+ 50% { box-shadow: 0 0 12px 2px rgba(52,211,153,0.4); }
44
+ 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
45
+ }
46
+
47
+ /* ── Animation utilities ──────────────────────────────────────────────────── */
48
+ .mfc-spin { animation: mfc-spin 1s linear infinite; }
49
+ .mfc-pulse { animation: mfc-pulse 2s ease-in-out infinite; }
50
+ .mfc-pulse-fast { animation: mfc-pulse 1s ease-in-out infinite; }
51
+ .mfc-ping { animation: mfc-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
52
+
53
+ /* ── FaceGrid (passive capture buffer) ────────────────────────────────────── */
54
+ .mfc-card { will-change: transform; transition: border-color 350ms ease; }
55
+ .mfc-enter { animation: mfc-materialize 300ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
56
+ .mfc-exit { animation: mfc-dissolve 220ms ease-in both; pointer-events: none; }
57
+ .mfc-landed { animation: mfc-land 500ms ease-out both; }
58
+ .mfc-moving { z-index: 10; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
59
+ .mfc-label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.4; user-select: none; padding: 0 2px; }
60
+ .mfc-empty { font-size: 11px; color: var(--mfc-muted, #666); font-style: italic; padding: 4px 0; }
61
+ .mfc-row { display: flex; gap: 6px; flex-wrap: wrap; min-height: 64px; align-items: flex-start; padding: 4px 0; }
62
+
63
+ @media (prefers-reduced-motion: reduce) {
64
+ .mfc-spin, .mfc-pulse, .mfc-pulse-fast, .mfc-ping,
65
+ .mfc-enter, .mfc-exit, .mfc-landed { animation: none; }
66
+ }
@@ -0,0 +1,15 @@
1
+ export declare function isVirtualCamera(label: string): boolean;
2
+ /**
3
+ * Enumerate video-input devices and return the deviceId of the best physical
4
+ * camera for the requested facing mode.
5
+ *
6
+ * Strategy:
7
+ * 1. Filter out known virtual/software cameras by label.
8
+ * 2. For "environment": prefer a device whose label contains back/rear hints.
9
+ * 3. For "user": return the first physical device.
10
+ *
11
+ * Returns `undefined` if no suitable physical device is found (caller should
12
+ * fall back to a raw `facingMode` constraint).
13
+ */
14
+ export declare function findPhysicalCameraId(facingMode: "user" | "environment"): Promise<string | undefined>;
15
+ //# sourceMappingURL=camera-devices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"camera-devices.d.ts","sourceRoot":"","sources":["../../src/utils/camera-devices.ts"],"names":[],"mappings":"AAOA,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,GAAG,aAAa,GACjC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAoB7B"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Labels matching known virtual / software cameras.
3
+ * These should be excluded when the caller wants a physical camera.
4
+ */
5
+ const VIRTUAL_CAM_RE = /obs|virtual\s*cam|manycam|snap\s*cam|ecamm|droidcam|ivcam\b|camo\b|mmhmm|veeer|xsplit/i;
6
+ export function isVirtualCamera(label) {
7
+ return VIRTUAL_CAM_RE.test(label);
8
+ }
9
+ /**
10
+ * Enumerate video-input devices and return the deviceId of the best physical
11
+ * camera for the requested facing mode.
12
+ *
13
+ * Strategy:
14
+ * 1. Filter out known virtual/software cameras by label.
15
+ * 2. For "environment": prefer a device whose label contains back/rear hints.
16
+ * 3. For "user": return the first physical device.
17
+ *
18
+ * Returns `undefined` if no suitable physical device is found (caller should
19
+ * fall back to a raw `facingMode` constraint).
20
+ */
21
+ export async function findPhysicalCameraId(facingMode) {
22
+ try {
23
+ const all = await navigator.mediaDevices.enumerateDevices();
24
+ const physical = all.filter((d) => d.kind === "videoinput" && !isVirtualCamera(d.label));
25
+ if (facingMode === "environment") {
26
+ // On mobile the label often contains "back", "rear", "environment" etc.
27
+ const back = physical.find((d) => /back|rear|environment|wide|ultra/i.test(d.label));
28
+ return back?.deviceId;
29
+ }
30
+ // "user" — just take the first physical camera
31
+ return physical[0]?.deviceId;
32
+ }
33
+ catch {
34
+ return undefined;
35
+ }
36
+ }
37
+ //# sourceMappingURL=camera-devices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"camera-devices.js","sourceRoot":"","sources":["../../src/utils/camera-devices.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,cAAc,GAClB,wFAAwF,CAAC;AAE3F,MAAM,UAAU,eAAe,CAAC,KAAa;IAC3C,OAAO,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,UAAkC;IAElC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,SAAS,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC;QAC5D,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CACzB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAC5D,CAAC;QAEF,IAAI,UAAU,KAAK,aAAa,EAAE,CAAC;YACjC,wEAAwE;YACxE,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAC/B,mCAAmC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAClD,CAAC;YACF,OAAO,IAAI,EAAE,QAAQ,CAAC;QACxB,CAAC;QAED,+CAA+C;QAC/C,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare function compressImage(source: HTMLVideoElement | HTMLCanvasElement, opts: {
2
+ sx: number;
3
+ sy: number;
4
+ sw: number;
5
+ sh: number;
6
+ targetSize: number;
7
+ maxBytes: number;
8
+ initialQuality?: number;
9
+ isFlipped?: boolean;
10
+ }): Promise<Blob>;
11
+ export declare function blobToBase64(blob: Blob): Promise<string>;
12
+ //# sourceMappingURL=compress-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compress-image.d.ts","sourceRoot":"","sources":["../../src/utils/compress-image.ts"],"names":[],"mappings":"AAIA,wBAAsB,aAAa,CACjC,MAAM,EAAE,gBAAgB,GAAG,iBAAiB,EAC5C,IAAI,EAAE;IACJ,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GACA,OAAO,CAAC,IAAI,CAAC,CAyBf;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAOxD"}
@@ -0,0 +1,38 @@
1
+ const MAX_ITERATIONS = 8;
2
+ const QUALITY_STEP = 0.05;
3
+ const MIN_QUALITY = 0.4;
4
+ export async function compressImage(source, opts) {
5
+ const { sx, sy, sw, sh, targetSize, maxBytes, initialQuality = 0.75, isFlipped = false } = opts;
6
+ const canvas = document.createElement("canvas");
7
+ canvas.width = targetSize;
8
+ canvas.height = targetSize;
9
+ const ctx = canvas.getContext("2d");
10
+ ctx.clearRect(0, 0, targetSize, targetSize);
11
+ if (isFlipped) {
12
+ ctx.save();
13
+ ctx.scale(-1, 1);
14
+ ctx.translate(-targetSize, 0);
15
+ ctx.drawImage(source, sx, sy, sw, sh, 0, 0, targetSize, targetSize);
16
+ ctx.restore();
17
+ }
18
+ else {
19
+ ctx.drawImage(source, sx, sy, sw, sh, 0, 0, targetSize, targetSize);
20
+ }
21
+ let quality = initialQuality;
22
+ for (let i = 0; i < MAX_ITERATIONS; i++) {
23
+ const blob = await new Promise((resolve) => canvas.toBlob((b) => resolve(b), "image/jpeg", quality));
24
+ if (blob.size <= maxBytes || quality <= MIN_QUALITY)
25
+ return blob;
26
+ quality -= QUALITY_STEP;
27
+ }
28
+ return new Promise((resolve) => canvas.toBlob((b) => resolve(b), "image/jpeg", MIN_QUALITY));
29
+ }
30
+ export function blobToBase64(blob) {
31
+ return new Promise((resolve, reject) => {
32
+ const reader = new FileReader();
33
+ reader.onloadend = () => resolve(reader.result);
34
+ reader.onerror = reject;
35
+ reader.readAsDataURL(blob);
36
+ });
37
+ }
38
+ //# sourceMappingURL=compress-image.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compress-image.js","sourceRoot":"","sources":["../../src/utils/compress-image.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,YAAY,GAAG,IAAI,CAAC;AAC1B,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAA4C,EAC5C,IASC;IAED,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC;IAChG,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChD,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC;IAC1B,MAAM,CAAC,MAAM,GAAG,UAAU,CAAC;IAC3B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAE,CAAC;IACrC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IAC5C,IAAI,SAAS,EAAE,CAAC;QACd,GAAG,CAAC,IAAI,EAAE,CAAC;QACX,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACjB,GAAG,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QAC9B,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;QACpE,GAAG,CAAC,OAAO,EAAE,CAAC;IAChB,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IACtE,CAAC;IACD,IAAI,OAAO,GAAG,cAAc,CAAC;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,EAAE,CAAC,EAAE,EAAE,CAAC;QACxC,MAAM,IAAI,GAAG,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAC/C,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAE,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,CACzD,CAAC;QACF,IAAI,IAAI,CAAC,IAAI,IAAI,QAAQ,IAAI,OAAO,IAAI,WAAW;YAAE,OAAO,IAAI,CAAC;QACjE,OAAO,IAAI,YAAY,CAAC;IAC1B,CAAC;IACD,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAE,CAAC,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC;AACtG,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAU;IACrC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAChC,MAAM,CAAC,SAAS,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,MAAgB,CAAC,CAAC;QAC1D,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;QACxB,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@meeeetup/camera-web",
3
+ "version": "0.4.0",
4
+ "description": "Web SDK for meeeetup-cam — MediaPipe BlazeFace + React hooks",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./styles.css": "./dist/styles.css"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "license": "SEE LICENSE IN LICENSE",
22
+ "sideEffects": [
23
+ "*.css"
24
+ ],
25
+ "homepage": "https://id.meeeetup.com",
26
+ "publishConfig": {
27
+ "registry": "https://registry.npmjs.org",
28
+ "access": "public"
29
+ },
30
+ "dependencies": {
31
+ "@mediapipe/tasks-vision": "^0.10.22",
32
+ "lucide-react": "^1.17.0",
33
+ "@meeeetup/camera-core": "0.4.0"
34
+ },
35
+ "peerDependencies": {
36
+ "react": "^18 || ^19",
37
+ "react-dom": "^18 || ^19"
38
+ },
39
+ "peerDependenciesMeta": {
40
+ "react": {
41
+ "optional": true
42
+ },
43
+ "react-dom": {
44
+ "optional": true
45
+ }
46
+ },
47
+ "devDependencies": {
48
+ "@types/react": "^19.0.0",
49
+ "@types/react-dom": "^19.0.0",
50
+ "typescript": "^5.7.2",
51
+ "vitest": "^2.1.8"
52
+ },
53
+ "scripts": {
54
+ "build": "rm -rf dist && tsc -p tsconfig.json && cp src/styles.css dist/styles.css",
55
+ "dev": "tsc -p tsconfig.json --watch",
56
+ "typecheck": "tsc -p tsconfig.typecheck.json",
57
+ "test": "vitest run"
58
+ }
59
+ }