@umituz/react-native-ai-generation-content 1.84.0 → 1.84.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-ai-generation-content",
3
- "version": "1.84.0",
3
+ "version": "1.84.1",
4
4
  "description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -34,7 +34,7 @@ export {
34
34
  extractAudioUrl, extractImageUrls, cleanBase64, addBase64Prefix, preparePhoto, preparePhotos,
35
35
  isValidBase64, getBase64Size, getBase64SizeMB, prepareImage, createDevCallbacks, createFeatureUtils,
36
36
  showVideoGenerationSuccess, handleGenerationError, showContentModerationWarning,
37
- mapJobStatusToGenerationStatus,
37
+ mapJobStatusToGenerationStatus, intensityToStrength,
38
38
  } from "../infrastructure/utils";
39
39
  export type {
40
40
  IntervalOptions, StatusCheckResult, ResultValidation, ValidateResultOptions,
@@ -20,3 +20,4 @@ export * from "./provider-validator.util";
20
20
  export * from "./base64.util";
21
21
  export * from "./video-result-extractor.util";
22
22
  export * from "./id-generator.util";
23
+ export * from "./intensity.util";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Maps a 0-100 intensity slider value to AI model strength parameter.
3
+ * Range: 0→0.30, 50→0.61, 100→0.92
4
+ */
5
+ export const intensityToStrength = (intensity: number): number =>
6
+ 0.3 + (intensity / 100) * 0.62;