@inkeep/cxkit-mintlify 0.5.40 → 0.5.42

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.
Files changed (3) hide show
  1. package/README.md +17 -20
  2. package/dist/index.js +56 -1
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -29,25 +29,22 @@ function loadScript(url, callback) {
29
29
 
30
30
  // Usage example:
31
31
  loadScript('http://localhost:3001/index.js', () => {
32
- InkeepMintlify.onReady((inkeep) => {
33
- const settings = {
34
- baseSettings: {
35
- apiKey: 'YOUR_API_KEY',
36
- primaryBrandColor: '#26D6FF',
37
- organizationDisplayName: 'Your Org',
38
- },
39
- aiChatSettings: {
40
- aiAssistantAvatar: 'https://mydomain.com/mylogo.svg',
41
- exampleQuestions: ['Example question 1?', 'Example question 2?', 'Example question 3?'],
42
- },
43
- }
44
-
45
- // Initialize search modal with your settings
46
- const modal = inkeep.ModalSearchAndChat(settings)
47
-
48
- inkeep.ChatButton({
49
- settings,
50
- })
51
- })
32
+ const settings = {
33
+ baseSettings: {
34
+ apiKey: 'YOUR_API_KEY',
35
+ primaryBrandColor: '#26D6FF',
36
+ organizationDisplayName: 'Your Org',
37
+ },
38
+ aiChatSettings: {
39
+ aiAssistantAvatar: 'https://mydomain.com/mylogo.svg',
40
+ exampleQuestions: ['Example question 1?', 'Example question 2?', 'Example question 3?'],
41
+ },
42
+ }
43
+
44
+ // Initialize search modal with your settings
45
+ Inkeep.ModalSearchAndChat(settings)
46
+
47
+ // Initialize chat button with your settings
48
+ Inkeep.ChatButton(settings)
52
49
  })
53
50
  ```