@innovastudio/contentbox 1.5.59 → 1.5.61
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +6 -3
- package/public/contentbox/contentbox.esm.js +8047 -1059
- package/public/contentbox/contentbox.min.js +305 -13
- package/public/contentbox/lang/en.js +4 -1
- package/readme.txt +85 -6
- package/README.md +0 -965
@@ -468,6 +468,8 @@ _txt["AI-Disclaimer"] = "The feature you're about to use utilizes AI in some of
|
|
468
468
|
"There may be instances where the results are not 100% accurate or may provide unexpected responses or information. " +
|
469
469
|
"As a user, it's your responsibility to independently verify any information or results obtained through this AI-powered feature. " +
|
470
470
|
"Our team is dedicated to continuously improving its performance and accuracy to enhance your experience.";
|
471
|
+
_txt["No microphone found. Please activate your microphone and refresh the page."] = "No microphone found. Please activate your microphone and refresh the page.";
|
472
|
+
|
471
473
|
|
472
474
|
|
473
475
|
//ContentBox.js
|
@@ -725,4 +727,5 @@ _txt["Oops! The response received is insufficient. Please try again."] = "Oops!
|
|
725
727
|
_txt["Oops! The section includes \'Lorem ipsum\' text. To optimize the redesign, we suggest updating this placeholder text with actual content."] = "Oops! The section includes \'Lorem ipsum\' text. To optimize the redesign, we suggest updating this placeholder text with actual content.";
|
726
728
|
_txt["Proceed with Redesign"] = "Proceed with Redesign";
|
727
729
|
_txt["Save Section Style"] = "Save Section Style";
|
728
|
-
_txt["Redesign with Saved Style"] = "Redesign with Saved Style";
|
730
|
+
_txt["Redesign with Saved Style"] = "Redesign with Saved Style";
|
731
|
+
_txt["Service Unavailable."] = "Service Unavailable.";
|
package/readme.txt
CHANGED
@@ -1,20 +1,99 @@
|
|
1
1
|
ContentBox.js 5.5.6
|
2
2
|
|
3
|
-
To get started, please
|
3
|
+
To get started, please refer to the documentation:
|
4
4
|
|
5
5
|
https://demo.innovastudio.com/docs/ContentBox.pdf
|
6
6
|
|
7
|
+
|
8
|
+
To try the example:
|
9
|
+
|
10
|
+
Copy all files into your localhost and open the following in your browser:
|
11
|
+
|
12
|
+
http://localhost/.../public/example.html
|
13
|
+
|
7
14
|
or
|
8
15
|
|
9
|
-
|
16
|
+
http://localhost/.../public/example.php (PHP example)
|
10
17
|
|
11
|
-
For Source Code Package only: please see readme-sourcecode.txt
|
12
18
|
|
13
|
-
|
19
|
+
NOTE:
|
20
|
+
|
21
|
+
- To use the AI Assistant:
|
22
|
+
1. Obtain the OpenAI API Key from https://openai.com
|
23
|
+
2. Update the 'sendcommand.php' file with your API Key:
|
24
|
+
|
25
|
+
define('OPENAI_API_KEY', 'YOUR_API_KEY_HERE');
|
26
|
+
|
27
|
+
- For speech recognition (when dictation is enabled), the browser's built-in
|
28
|
+
speech recognition is used. However, certain browsers may not support this feature.
|
29
|
+
We recommend using Deepgram for browser compatibility and accuracy.
|
30
|
+
Obtain the Deepgram API Key from https://deepgram.com.
|
31
|
+
An example of using Deepgram is provided in the Node.js example below.
|
32
|
+
|
33
|
+
- The AI Assistant is an optional feature that you can enable or disable.
|
34
|
+
Please refer to the AI Assistant documentation:
|
35
|
+
|
36
|
+
https://demo.innovastudio.com/docs/AI-Assistant.pdf
|
37
|
+
|
38
|
+
|
39
|
+
_____________________________________________
|
40
|
+
|
41
|
+
|
42
|
+
To run the project (Node.js example):
|
43
|
+
|
44
|
+
1. Install the project dependencies:
|
45
|
+
|
46
|
+
> npm install
|
47
|
+
|
48
|
+
Note: To run this command, you need to have NPM installed.
|
49
|
+
Download & install NPM from https://nodejs.org/en/download/.
|
50
|
+
|
51
|
+
2. OPTIONAL: (if you want to use the AI Assistant feature)
|
52
|
+
|
53
|
+
Update the .env file with your OpenAI and Deepgram API Keys:
|
54
|
+
- Obtain the OpenAI API Key from https://openai.com
|
55
|
+
- Obtain the Deepgram API Key from https://deepgram.com (optional. See note below.)
|
56
|
+
|
57
|
+
3. Run the project:
|
58
|
+
|
59
|
+
> npm start
|
60
|
+
|
61
|
+
A browser window will open with the ContentBox.js example running.
|
62
|
+
|
63
|
+
|
64
|
+
NOTE:
|
65
|
+
|
66
|
+
- The ContentBox initiation can be found in 'src/index.js'.
|
67
|
+
|
68
|
+
- The Node.js server code is in 'server.js'.
|
69
|
+
|
70
|
+
- Using Deepgram for speech recognition is optional but recommended.
|
71
|
+
Alternatively, you can use the browser's built-in speech recognition.
|
72
|
+
To use the browser's built-in speech recognition, just disable/remove
|
73
|
+
the 'speechTranscribeUrl' parameter when initiating the ContentBox (src/index.js).
|
74
|
+
|
75
|
+
|
76
|
+
_____________________________________________
|
77
|
+
|
78
|
+
|
79
|
+
If you have the ContentBox source code:
|
80
|
+
|
81
|
+
- The source code is located in the 'src/contentbox/' folder.
|
82
|
+
When you run the project, you can try modifying the source code, and
|
83
|
+
the changes will be applied, and the browser will refresh automatically.
|
84
|
+
|
85
|
+
- When finished, to build the JS code that you can use in production, run:
|
86
|
+
|
87
|
+
> npm run build
|
88
|
+
|
89
|
+
The minified JS will be generated in the folder: 'public/contentbuilder/contentbuilder.min.js'.
|
90
|
+
You can test it by opening, for example, 'public/example.html'.
|
91
|
+
If you're using Visual Studio Code, right-click on the 'example.html' file and select "Open with Live Server".
|
92
|
+
|
93
|
+
- To build CSS from SCSS files, run:
|
14
94
|
|
15
|
-
|
95
|
+
> npm run scss
|
16
96
|
|
17
|
-
http://localhost/.../public/example.html
|
18
97
|
|
19
98
|
_____________________________________________
|
20
99
|
SUPPORT:
|