@umituz/react-native-ai-generation-content 1.26.12 → 1.26.14
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 +1 -1
- package/src/domains/generation/domain/feature-config.types.ts +7 -0
- package/src/domains/generation/index.ts +1 -0
- package/src/domains/scenarios/domain/scenario.types.ts +29 -0
- package/src/domains/scenarios/index.ts +3 -0
- package/src/presentation/hooks/generation/index.ts +2 -0
- package/src/presentation/hooks/generation/types.ts +20 -0
- package/src/presentation/hooks/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.14",
|
|
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",
|
|
@@ -59,3 +59,10 @@ export interface FeatureRegistration {
|
|
|
59
59
|
has(featureId: string): boolean;
|
|
60
60
|
unregister(featureId: string): void;
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Visual style modifiers for generation
|
|
65
|
+
*/
|
|
66
|
+
export interface VisualStyleConfig {
|
|
67
|
+
readonly [key: string]: string;
|
|
68
|
+
}
|
|
@@ -110,6 +110,35 @@ export interface ScenarioSubCategory {
|
|
|
110
110
|
readonly order: number;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Scenario selector configuration
|
|
115
|
+
*/
|
|
116
|
+
export interface ScenarioSelectorConfig {
|
|
117
|
+
readonly titleKey: string;
|
|
118
|
+
readonly subtitleKey: string;
|
|
119
|
+
readonly showCategoryFilter: boolean;
|
|
120
|
+
readonly enableSearch: boolean;
|
|
121
|
+
readonly pageSize: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Scenario preview translations
|
|
126
|
+
*/
|
|
127
|
+
export interface ScenarioPreviewTranslations {
|
|
128
|
+
readonly continueButton: string;
|
|
129
|
+
readonly whatToExpect: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Scenario application configuration
|
|
134
|
+
*/
|
|
135
|
+
export interface ScenarioConfig {
|
|
136
|
+
readonly id: string;
|
|
137
|
+
readonly aiPrompt: string;
|
|
138
|
+
readonly storyTemplate?: string;
|
|
139
|
+
readonly title: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
113
142
|
export interface ScenarioData {
|
|
114
143
|
readonly id: string;
|
|
115
144
|
readonly category?: string;
|
|
@@ -136,3 +136,23 @@ export interface UseGenerationOrchestratorReturn<TInput, TResult> {
|
|
|
136
136
|
result: TResult | null;
|
|
137
137
|
error: GenerationError | null;
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Generation error UI configuration
|
|
142
|
+
*/
|
|
143
|
+
export interface GenerationErrorConfig {
|
|
144
|
+
readonly showCreditInfo?: boolean;
|
|
145
|
+
readonly iconName?: string;
|
|
146
|
+
readonly iconSize?: number;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Generation error UI translations
|
|
151
|
+
*/
|
|
152
|
+
export interface GenerationErrorTranslations {
|
|
153
|
+
readonly title: string;
|
|
154
|
+
readonly tryAgain: string;
|
|
155
|
+
readonly chooseAnother: string;
|
|
156
|
+
readonly noCreditCharged: string;
|
|
157
|
+
}
|
|
158
|
+
|