@insidepics/expo-apple-intelligence 0.1.0 → 0.2.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoAppleIntelligenceModule.js","sourceRoot":"","sources":["../src/ExpoAppleIntelligenceModule.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ExpoAppleIntelligenceModule.js","sourceRoot":"","sources":["../src/ExpoAppleIntelligenceModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAgGzD,eAAe,mBAAmB,CAChC,uBAAuB,CACxB,CAAC","sourcesContent":["import { NativeModule, requireNativeModule } from 'expo';\n\nimport type {\n ExpoAppleIntelligenceModuleEvents,\n ImageAnalysisResult,\n FaceObservation,\n TextObservation,\n ClassificationObservation,\n BarcodeObservation,\n BodyPoseObservation,\n HandPoseObservation,\n AnimalObservation,\n RectangleObservation,\n FeaturePrintResult,\n AestheticsResult,\n SaliencyResult,\n HorizonResult,\n LensSmudgeResult,\n DocumentRecognitionResult,\n TranscriptionResult,\n} from './ExpoAppleIntelligence.types';\n\ndeclare class ExpoAppleIntelligenceModule extends NativeModule<ExpoAppleIntelligenceModuleEvents> {\n /** Run all available analyses in a single pass (most efficient) */\n analyzeImage(imagePath: string): Promise<ImageAnalysisResult>;\n\n /** Face detection with landmarks, quality, angles */\n detectFaces(imagePath: string): Promise<FaceObservation[]>;\n\n /** OCR text recognition — array of observations with candidates */\n recognizeText(imagePath: string): Promise<TextObservation[]>;\n\n /** Image classification — all observations, unfiltered */\n classifyImage(imagePath: string): Promise<ClassificationObservation[]>;\n\n /** Barcode and QR code detection */\n detectBarcodes(imagePath: string): Promise<BarcodeObservation[]>;\n\n /** Human body pose detection */\n detectBodyPoses(imagePath: string): Promise<BodyPoseObservation[]>;\n\n /** Hand pose detection */\n detectHandPoses(imagePath: string): Promise<HandPoseObservation[]>;\n\n /** Image similarity vector */\n generateFeaturePrint(imagePath: string): Promise<FeaturePrintResult | null>;\n\n /** Aesthetic quality score (iOS 18+/macOS 15+ only, returns null otherwise) */\n calculateAesthetics(imagePath: string): Promise<AestheticsResult | null>;\n\n /** Salient regions */\n detectSaliency(imagePath: string): Promise<SaliencyResult | null>;\n\n /** Animal detection with all labels */\n detectAnimals(imagePath: string): Promise<AnimalObservation[]>;\n\n /** Rectangle detection with corner points */\n detectRectangles(imagePath: string): Promise<RectangleObservation[]>;\n\n /** Horizon angle in radians */\n detectHorizon(imagePath: string): Promise<HorizonResult | null>;\n\n /** Lens smudge detection (iOS 26+/macOS 26+ only, returns null otherwise) */\n detectLensSmudge(imagePath: string): Promise<LensSmudgeResult | null>;\n\n /** Structured document recognition (iOS 26+/macOS 26+ only, returns null otherwise) */\n recognizeDocument(\n imagePath: string\n ): Promise<DocumentRecognitionResult | null>;\n\n /** Check if on-device Foundation Model is available (iOS 26+) */\n isFoundationModelAvailable(): boolean;\n\n /** Generate text using on-device Foundation Model (iOS 26+ only) */\n generateText(prompt: string, systemPrompt?: string): Promise<string | null>;\n\n /** Transcribe audio file to text (iOS 26+ only) */\n transcribeAudio(\n audioPath: string,\n locale?: string\n ): Promise<TranscriptionResult | null>;\n\n /** Generate image from text prompt using ImagePlayground (iOS 18.4+ only) */\n generateImage(\n prompt: string,\n style?: 'animation' | 'illustration' | 'sketch'\n ): Promise<string | null>;\n\n /** Decode any image (JPEG, PNG, HEIC, etc.) to raw RGBA pixels */\n decodeImagePixels(imagePath: string): Promise<{\n pixels: string; // base64-encoded RGBA bytes\n width: number;\n height: number;\n }>;\n}\n\nexport default requireNativeModule<ExpoAppleIntelligenceModule>(\n 'ExpoAppleIntelligence'\n);\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@insidepics/expo-apple-intelligence",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"packageManager": "pnpm@10.19.0",
|
|
4
5
|
"description": "Expo module for Apple Intelligence: Vision, Foundation Models, SpeechAnalyzer, ImagePlayground",
|
|
5
6
|
"main": "build/index.js",
|
|
6
7
|
"types": "build/index.d.ts",
|
|
@@ -43,13 +44,13 @@
|
|
|
43
44
|
"README.md",
|
|
44
45
|
"LICENSE"
|
|
45
46
|
],
|
|
46
|
-
"dependencies": {},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/react": "~19.2.10",
|
|
49
|
-
"expo": "^
|
|
50
|
-
"expo-module-scripts": "^
|
|
51
|
-
"expo-modules-test-core": "^
|
|
52
|
-
"react-native": "0.
|
|
49
|
+
"expo": "^56.0.12",
|
|
50
|
+
"expo-module-scripts": "^56.0.3",
|
|
51
|
+
"expo-modules-test-core": "^56.0.7",
|
|
52
|
+
"react-native": "0.85.3",
|
|
53
|
+
"typescript": "^5.9.3"
|
|
53
54
|
},
|
|
54
55
|
"peerDependencies": {
|
|
55
56
|
"expo": "*",
|