@innovastudio/contentbox 1.6.136 → 1.6.137

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.
@@ -583,6 +583,142 @@ _txt["JSON Submission"] = "JSON Submission";
583
583
  _txt["Standard Form Submission"] = "Standard Form Submission";
584
584
  _txt["reCAPTCHA Site Key (v2):"] = "reCAPTCHA Site Key (v2):";
585
585
 
586
+ /* Form Builder */
587
+ _txt["Add input field"] = "Add input field";
588
+ _txt["Add Element"] = "Add Element";
589
+ _txt["Delete field"] = "Delete field";
590
+ _txt["Toggle settings"] = "Toggle settings";
591
+ _txt["Heading 5"] = "Heading 5";
592
+ _txt["Heading 6"] = "Heading 6";
593
+ _txt["Heading Text Goes Here"] = "Heading Text Goes Here";
594
+ _txt["Paragraph here"] = "Paragraph here";
595
+ _txt["Lorem Ipsum is placeholder text used in design and typesetting. It has been the standard for dummy text since the 1500s, when a printer rearranged type to create a specimen book."] = "Lorem Ipsum is placeholder text used in design and typesetting. It has been the standard for dummy text since the 1500s, when a printer rearranged type to create a specimen book.";
596
+ _txt["Multi Upload"] = "Multi Upload";
597
+ _txt["Separator"] = "Separator";
598
+ _txt["Submit Button"] = "Submit Button";
599
+ _txt["Reset Button"] = "Reset Button";
600
+ _txt["Placeholder Text"] = "Placeholder Text";
601
+ _txt["Design"] = "Design";
602
+ _txt["Generate Form"] = "Generate Form";
603
+ _txt["Default Value"] = "Default Value";
604
+ _txt["Min Value"] = "Min Value";
605
+ _txt["Max Value"] = "Max Value";
606
+ _txt["Default Text Color"] = "Default Text Color";
607
+ _txt["Hover Text Color"] = "Hover Text Color";
608
+ _txt["Primary Color"] = "Primary Color";
609
+ _txt["Form Title Color"] = "Form Title Color";
610
+ _txt["Form Description Color"] = "Form Description Color";
611
+ _txt["Label Color"] = "Label Color";
612
+ _txt["Label Font Size"] = "Label Font Size";
613
+ _txt["Input Font Size"] = "Input Font Size";
614
+ _txt["Input"] = "Input";
615
+ _txt["Bg Color"] = "Bg Color";
616
+ _txt["Hover Bg Color"] = "Hover Bg Color";
617
+ _txt["Border Width"] = "Border Width";
618
+ _txt["Focused Border Width"] = "Focused Border Width";
619
+ _txt["Placeholder Text Color"] = "Placeholder Text Color";
620
+ _txt["Choice (Checkbox & Radio Button)"] = "Choice (Checkbox & Radio Button)";
621
+ _txt["Knob Color"] = "Knob Color";
622
+ _txt["Focus Offset Color"] = "Focus Offset Color";
623
+ _txt["Hover Border Color"] = "Hover Border Color";
624
+ _txt["File Drop Hover Color"] = "File Drop Hover Color";
625
+ _txt["Workflow"] = "Workflow";
626
+ _txt["Automate Your Form Processing with AI."] = "Automate Your Form Processing with AI.";
627
+ _txt["Add Step"] = "Add Step";
628
+ _txt["Run Step"] = "Run Step";
629
+ _txt["Remove Step"] = "Remove Step";
630
+ _txt['Press "/" to insert a reference.'] = 'Press "/" to insert a reference.';
631
+ _txt["Submit Button Text:"] = "Submit Button Text:";
632
+ _txt["Reset Button Text:"] = "Reset Button Text:";
633
+ _txt["Full Width Button"] = "Full Width Button";
634
+ _txt["Hide Header"] = "Hide Header";
635
+ _txt["Hide Reset Button"] = "Hide Reset Button";
636
+ _txt["Prompt"] = "Prompt";
637
+ _txt["Context"] = "Context";
638
+ _txt["model"] = "model";
639
+ _txt["Knowledge Base"] = "Knowledge Base";
640
+ _txt["Add documents to personalize AI responses."] = "Add documents to personalize AI responses.";
641
+ _txt["Enable Web Search"] = "Enable Web Search";
642
+ _txt["Enable Vision & Image Generation"] = "Enable Vision & Image Generation";
643
+ _txt["Enable Video Generation"] = "Enable Video Generation";
644
+ _txt["Enable Audio Generation"] = "Enable Audio Generation";
645
+ _txt["Local File"] = "Local File";
646
+ _txt["Camera"] = "Camera";
647
+ _txt["Local File & Camera"] = "Local File & Camera";
648
+ _txt["Toggle Output"] = "Toggle Output";
649
+ _txt["On"] = "On";
650
+ _txt["Off"] = "Off";
651
+ _txt["Enable URL Input"] = "Enable URL Input";
652
+ _txt["Enable Image Mask"] = "Enable Image Mask";
653
+ _txt["Expanded Preview"] = "Expanded Preview";
654
+ _txt["Display in Output"] = "Display in Output";
655
+ _txt["Media"] = "Media";
656
+ _txt["provider"] = "provider";
657
+ _txt["Image mask not found."] = "Image mask not found.";
658
+ _txt["Text Generation Model"] = "Text Generation Model";
659
+ _txt["Media Generation Model"] = "Media Generation Model";
660
+ _txt["Generation not supported."] = "Generation not supported.";
661
+
662
+ _txt["Drag and drop your file here."] = "Drag and drop your file here.";
663
+ _txt["Drag and drop your files here."] = "Drag and drop your files here.";
664
+ _txt["Demo Info"] = "Demo Info";
665
+ _txt["This is an online demo and media generation is currently disabled. Get the full version for complete functionality."] = "This is an online demo and media generation is currently disabled. Get the full version for complete functionality.";
666
+ _txt["View"] = "View";
667
+ _txt["Download"] = "Download";
668
+ _txt["The media generation process cannot be aborted."] = "The media generation process cannot be aborted.";
669
+ _txt["Request aborted."] = "Request aborted.";
670
+ _txt["Image reference not found."] = "Image reference not found.";
671
+ _txt["Image background not found."] = "Image background not found.";
672
+ _txt["Image not provided."] = "Image not provided.";
673
+ _txt["Generating video request failed."] = "Generating video request failed.";
674
+ _txt["Request failed."] = "Request failed.";
675
+ _txt["Request failed:"] = "Request failed:";
676
+ _txt["This form requires an endpoint from"] = "This form requires an endpoint from";
677
+ _txt["Enable"] = "Enable";
678
+ _txt["Brush Size"] = "Brush Size";
679
+ _txt["Please brush over the areas to remove objects before continuing."] = "Please brush over the areas to remove objects before continuing.";
680
+ _txt["Please input a prompt."] = "Please input a prompt.";
681
+ _txt["Please brush the area you want to edit."] = "Please brush the area you want to edit.";
682
+ _txt["Explore Apps"] = "Explore Apps";
683
+ _txt["Select File"] = "Select File";
684
+ _txt["Take Photo"] = "Take Photo";
685
+ _txt["Capture"] = "Capture";
686
+ _txt["Unable to perform the request."] = "Unable to perform the request.";
687
+ _txt["Fetching data from the web..."] = "Fetching data from the web...";
688
+ _txt["Video reference not found."] = "Video reference not found.";
689
+ _txt["Video not provided."] = "Video not provided.";
690
+ _txt["Please toggle this switch to proceed."] = "Please toggle this switch to proceed.";
691
+ _txt["Template URL is not set."] = "Template URL is not set.";
692
+ _txt["Web"] = "Web";
693
+ _txt["Endpoint not configured."] = "Endpoint not configured.";
694
+ _txt["Please provide model information in the context."] = "Please provide model information in the context.";
695
+ _txt["Incorrect JSON format."] = "Incorrect JSON format.";
696
+ _txt["Provider is not configured."] = "Provider is not configured.";
697
+ _txt["Please wait until generation is complete."] = "Please wait until generation is complete.";
698
+ _txt["Generation type not supported. Please check the provider settings."] = "Generation type not supported. Please check the provider settings.";
699
+ _txt["Upload file failed."] = "Upload file failed.";
700
+ _txt["Upload mask failed."] = "Upload mask failed.";
701
+ _txt["Copied"] = "Copied";
702
+ _txt["Model not found."] = "Model not found.";
703
+ _txt["Enter URL."] = "Enter URL.";
704
+ _txt["Output Image"] = "Output Image";
705
+ _txt["The text exceeds the allowed limit."] = "The text exceeds the allowed limit.";
706
+
707
+ _txt["Image Generation"] = "Image Generation";
708
+ _txt["Model"] = "Model";
709
+ _txt["Image Size"] = "Image Size";
710
+ _txt["Square HD"] = "Square HD";
711
+ _txt["Square"] = "Square";
712
+ _txt["Landscape 3x2"] = "Landscape 3x2";
713
+ _txt["Landscape 4x3"] = "Landscape 4x3";
714
+ _txt["Landscape 5x4"] = "Landscape 5x4";
715
+ _txt["Landscape 16x9"] = "Landscape 16x9";
716
+ _txt["Landscape 21:9"] = "Landscape 21:9";
717
+ _txt["Portrait 2x3"] = "Portrait 2x3";
718
+ _txt["Portrait 3x4"] = "Portrait 3x4";
719
+ _txt["Portrait 4x5"] = "Portrait 4x5";
720
+ _txt["Portrait 9x16"] = "Portrait 9x16";
721
+ _txt["Landscape 9:21"] = "Landscape 9:21";
586
722
 
587
723
  //ContentBox.js
588
724
  _txt['Sections'] = 'Sections';
@@ -918,124 +1054,3 @@ _txt["Select Background"] = "Select Background";
918
1054
  _txt["Upload Background"] = "Upload Background";
919
1055
  _txt["Lock Content Size"] = "Lock Content Size";
920
1056
  _txt["Add ID"] = "Add ID";
921
-
922
- /* Form Builder */
923
- _txt["Add input field"] = "Add input field";
924
- _txt["Add Element"] = "Add Element";
925
- _txt["Delete field"] = "Delete field";
926
- _txt["Toggle settings"] = "Toggle settings";
927
- _txt["Heading 5"] = "Heading 5";
928
- _txt["Heading 6"] = "Heading 6";
929
- _txt["Heading Text Goes Here"] = "Heading Text Goes Here";
930
- _txt["Paragraph here"] = "Paragraph here";
931
- _txt["Lorem Ipsum is placeholder text used in design and typesetting. It has been the standard for dummy text since the 1500s, when a printer rearranged type to create a specimen book."] = "Lorem Ipsum is placeholder text used in design and typesetting. It has been the standard for dummy text since the 1500s, when a printer rearranged type to create a specimen book.";
932
- _txt["Multi Upload"] = "Multi Upload";
933
- _txt["Separator"] = "Separator";
934
- _txt["Submit Button"] = "Submit Button";
935
- _txt["Reset Button"] = "Reset Button";
936
- _txt["Placeholder Text"] = "Placeholder Text";
937
- _txt["Design"] = "Design";
938
- _txt["Generate Form"] = "Generate Form";
939
- _txt["Default Value"] = "Default Value";
940
- _txt["Min Value"] = "Min Value";
941
- _txt["Max Value"] = "Max Value";
942
- _txt["Default Text Color"] = "Default Text Color";
943
- _txt["Hover Text Color"] = "Hover Text Color";
944
- _txt["Primary Color"] = "Primary Color";
945
- _txt["Form Title Color"] = "Form Title Color";
946
- _txt["Form Description Color"] = "Form Description Color";
947
- _txt["Label Color"] = "Label Color";
948
- _txt["Label Font Size"] = "Label Font Size";
949
- _txt["Input Font Size"] = "Input Font Size";
950
- _txt["Input"] = "Input";
951
- _txt["Bg Color"] = "Bg Color";
952
- _txt["Hover Bg Color"] = "Hover Bg Color";
953
- _txt["Border Width"] = "Border Width";
954
- _txt["Focused Border Width"] = "Focused Border Width";
955
- _txt["Placeholder Text Color"] = "Placeholder Text Color";
956
- _txt["Choice (Checkbox & Radio Button)"] = "Choice (Checkbox & Radio Button)";
957
- _txt["Knob Color"] = "Knob Color";
958
- _txt["Focus Offset Color"] = "Focus Offset Color";
959
- _txt["Hover Border Color"] = "Hover Border Color";
960
- _txt["File Drop Hover Color"] = "File Drop Hover Color";
961
- _txt["Workflow"] = "Workflow";
962
- _txt["Automate Your Form Processing with AI."] = "Automate Your Form Processing with AI.";
963
- _txt["Add Step"] = "Add Step";
964
- _txt["Run Step"] = "Run Step";
965
- _txt["Remove Step"] = "Remove Step";
966
- _txt['Press "/" to insert a reference.'] = 'Press "/" to insert a reference.';
967
- _txt["Submit Button Text:"] = "Submit Button Text:";
968
- _txt["Reset Button Text:"] = "Reset Button Text:";
969
- _txt["Full Width Button"] = "Full Width Button";
970
- _txt["Hide Header"] = "Hide Header";
971
- _txt["Hide Reset Button"] = "Hide Reset Button";
972
- _txt["Prompt"] = "Prompt";
973
- _txt["Context"] = "Context";
974
- _txt["model"] = "model";
975
- _txt["Knowledge Base"] = "Knowledge Base";
976
- _txt["Add documents to personalize AI responses."] = "Add documents to personalize AI responses.";
977
- _txt["Enable Web Search"] = "Enable Web Search";
978
- _txt["Enable Vision & Image Generation"] = "Enable Vision & Image Generation";
979
- _txt["Enable Video Generation"] = "Enable Video Generation";
980
- _txt["Enable Audio Generation"] = "Enable Audio Generation";
981
- _txt["Local File"] = "Local File";
982
- _txt["Camera"] = "Camera";
983
- _txt["Local File & Camera"] = "Local File & Camera";
984
- _txt["Toggle Output"] = "Toggle Output";
985
- _txt["On"] = "On";
986
- _txt["Off"] = "Off";
987
- _txt["Enable URL Input"] = "Enable URL Input";
988
- _txt["Enable Image Mask"] = "Enable Image Mask";
989
- _txt["Expanded Preview"] = "Expanded Preview";
990
- _txt["Display in Output"] = "Display in Output";
991
- _txt["Media"] = "Media";
992
- _txt["provider"] = "provider";
993
- _txt["Image mask not found."] = "Image mask not found.";
994
- _txt["Text Generation Model"] = "Text Generation Model";
995
- _txt["Media Generation Model"] = "Media Generation Model";
996
- _txt["Generation not supported."] = "Generation not supported.";
997
-
998
- _txt["Drag and drop your file here."] = "Drag and drop your file here.";
999
- _txt["Drag and drop your files here."] = "Drag and drop your files here.";
1000
- _txt["Demo Info"] = "Demo Info";
1001
- _txt["This is an online demo and media generation is currently disabled. Get the full version for complete functionality."] = "This is an online demo and media generation is currently disabled. Get the full version for complete functionality.";
1002
- _txt["View"] = "View";
1003
- _txt["Download"] = "Download";
1004
- _txt["The media generation process cannot be aborted."] = "The media generation process cannot be aborted.";
1005
- _txt["Request aborted."] = "Request aborted.";
1006
- _txt["Image reference not found."] = "Image reference not found.";
1007
- _txt["Image background not found."] = "Image background not found.";
1008
- _txt["Image not provided."] = "Image not provided.";
1009
- _txt["Generating video request failed."] = "Generating video request failed.";
1010
- _txt["Request failed."] = "Request failed.";
1011
- _txt["Request failed:"] = "Request failed:";
1012
- _txt["This form requires an endpoint from"] = "This form requires an endpoint from";
1013
- _txt["Enable"] = "Enable";
1014
- _txt["Brush Size"] = "Brush Size";
1015
- _txt["Please brush over the areas to remove objects before continuing."] = "Please brush over the areas to remove objects before continuing.";
1016
- _txt["Please input a prompt."] = "Please input a prompt.";
1017
- _txt["Please brush the area you want to edit."] = "Please brush the area you want to edit.";
1018
- _txt["Explore Apps"] = "Explore Apps";
1019
- _txt["Select File"] = "Select File";
1020
- _txt["Take Photo"] = "Take Photo";
1021
- _txt["Capture"] = "Capture";
1022
- _txt["Unable to perform the request."] = "Unable to perform the request.";
1023
- _txt["Fetching data from the web..."] = "Fetching data from the web...";
1024
- _txt["Video reference not found."] = "Video reference not found.";
1025
- _txt["Video not provided."] = "Video not provided.";
1026
- _txt["Please toggle this switch to proceed."] = "Please toggle this switch to proceed.";
1027
- _txt["Template URL is not set."] = "Template URL is not set.";
1028
- _txt["Web"] = "Web";
1029
- _txt["Endpoint not configured."] = "Endpoint not configured.";
1030
- _txt["Please provide model information in the context."] = "Please provide model information in the context.";
1031
- _txt["Incorrect JSON format."] = "Incorrect JSON format.";
1032
- _txt["Provider is not configured."] = "Provider is not configured.";
1033
- _txt["Please wait until generation is complete."] = "Please wait until generation is complete.";
1034
- _txt["Generation type not supported. Please check the provider settings."] = "Generation type not supported. Please check the provider settings.";
1035
- _txt["Upload file failed."] = "Upload file failed.";
1036
- _txt["Upload mask failed."] = "Upload mask failed.";
1037
- _txt["Copied"] = "Copied";
1038
- _txt["Model not found."] = "Model not found.";
1039
- _txt["Enter URL."] = "Enter URL.";
1040
- _txt["Output Image"] = "Output Image";
1041
- _txt["The text exceeds the allowed limit."] = "The text exceeds the allowed limit.";
package/readme.txt CHANGED
@@ -100,7 +100,7 @@ NOTE:
100
100
 
101
101
  3. Ensure that the sendCommandUrl parameter is set with the API endpoint:
102
102
 
103
- const builder = new ContentBuilder({
103
+ const builder = new ContentBox({
104
104
  // ...
105
105
  sendCommandUrl: '/sendcommand',
106
106
  // sendCommandUrl: '/openrouter', // Using OpenRouter (https://openrouter.ai/)
@@ -108,7 +108,7 @@ NOTE:
108
108
 
109
109
  If you're using PHP:
110
110
 
111
- const builder = new ContentBuilder({
111
+ const builder = new ContentBox({
112
112
  // ...
113
113
  sendCommandUrl: 'api/sendcommand.php',
114
114
  // sendCommandUrl: '/api/openrouter.php', // Using OpenRouter (https://openrouter.ai/)
@@ -133,26 +133,99 @@ NOTE:
133
133
  Then enable the 'speechTranscribeUrl' parameter in the ContentBox initialization (src/index.js).
134
134
 
135
135
  - To use the AI image generation:
136
- 1. Obtain the API key from https://getimg.ai/tools/api.
136
+ 1. Obtain the API key from Getimg or Fal.ai:
137
+
138
+ https://getimg.ai/tools/api
139
+
140
+ or
141
+
142
+ https://fal.ai
143
+
144
+
137
145
  2. Update the .env file with your API key.
138
146
 
139
- GETIMG_API_KEY=YOUR_API_KEY
147
+ GETIMG_API_KEY=YOUR_API_KEY
148
+
149
+ or
150
+
151
+ FAL_API_KEY=YOUR_API_KEY
140
152
 
141
153
  Alternatively, if you're using PHP, update the 'api/config.php' file with your API key:
142
154
 
143
- $GETIMG_API_KEY = 'YOUR_API_KEY';
155
+ $GETIMG_API_KEY = 'YOUR_API_KEY';
144
156
 
157
+ or
145
158
 
146
- - IMPORTANT:
159
+ $FAL_API_KEY = 'YOUR_API_KEY';
147
160
 
148
- Please add your own security to the API endpoints (public/api/)!
161
+ 3. Ensure that the following parameters are set:
149
162
 
163
+ Using Getimg.ai for image generation:
164
+
165
+ const builder = new ContentBox({
166
+ // ...
167
+
168
+ textToImageUrl: '/texttoimage',
169
+ upscaleImageUrl: '/upscaleimage',
170
+ imageModel: 'flux-schnell',
171
+ imageAutoUpscale: false,
172
+ // viewFileUrl: '/viewfile', // If using S3
173
+ });
174
+
175
+ Using Fal.ai for image generation:
176
+
177
+ const builder = new ContentBox({
178
+ // ...
179
+
180
+ defaultImageGenerationProvider: 'fal',
181
+ generateMediaUrl_Fal: '/request-fal',
182
+ checkRequestStatusUrl_Fal: '/status-fal',
183
+ getResultUrl_Fal: '/result-fal',
184
+ });
185
+
186
+ Most examples in the package have this parameter configured, so you can run and test them.
187
+
188
+ The JavaScript project example in this package uses Node.js for the API endpoints.
189
+ Please refer to the Node.js file:
190
+
191
+ server.js
192
+
193
+ or
194
+
195
+ server-aws (for S3 storage)
196
+
197
+ _______________________
198
+
199
+ If you're using PHP:
200
+
201
+ Using Getimg.ai for image generation:
202
+
203
+ const builder = new ContentBox({
204
+ // ...
205
+
206
+ textToImageUrl: 'api/texttoimage.php',
207
+ upscaleImageUrl: 'api/upscaleimage.php',
208
+ imageModel: 'flux-schnell',
209
+ imageAutoUpscale: false,
210
+ });
211
+
212
+ Using Fal.ai for image generation:
213
+
214
+ const builder = new ContentBox({
215
+ // ...
216
+
217
+ defaultImageGenerationProvider: 'fal',
218
+ generateMediaUrl_Fal: 'api/request-fal.php',
219
+ checkRequestStatusUrl_Fal: 'api/status-fal.php',
220
+ getResultUrl_Fal: 'api/result-fal.php',
221
+ });
222
+
223
+ - IMPORTANT:
224
+
225
+ Please add your own security to the API endpoints!
150
226
 
151
- - If you have Source Code package (Super license), please refer to:
152
227
 
153
- readme-sourcecode.txt
154
228
 
155
- for additional information.
156
229
 
157
230
 
158
231
  _____________________________________________