0.5.84 • Published 8 months ago

@inkeep/cxkit-fern v0.5.84

Weekly downloads
-
License
Inkeep, Inc. Cust...
Repository
github
Last release
8 months ago

@inkeep/js

To run:

pnpm dev

This spins up a local server that serves the js scripts on localhost:3001.

To use the js scripts in your project, you can use the following import:

<script type="module" defer src="http://localhost:3001/embed.js"></script>

Usage

Sample usage:

function loadScript(url, callback) {
  const script = document.createElement('script')
  script.src = url
  script.type = 'text/javascript'
  script.onload = callback
  document.head.appendChild(script)
}

// Usage example:
loadScript('http://localhost:3001/index.js', () => {
  const settings = {
    baseSettings: {
      apiKey: 'YOUR_API_KEY',
      primaryBrandColor: '#26D6FF',
      organizationDisplayName: 'Your Org',
    },
    aiChatSettings: {
      aiAssistantAvatar: 'https://mydomain.com/mylogo.svg',
      exampleQuestions: ['Example question 1?', 'Example question 2?', 'Example question 3?'],
    },
  }

  // Initialize search modal with your settings
  Inkeep.ModalSearchAndChat(settings)

  // Initialize chat button with your settings
  Inkeep.ChatButton(settings)
})
0.5.84

8 months ago

0.5.83

8 months ago

0.5.82

8 months ago

0.5.81

8 months ago

0.5.80

8 months ago

0.5.79

9 months ago

0.5.78

9 months ago

0.5.77

9 months ago

0.5.76

9 months ago

0.5.75

9 months ago

0.5.74

9 months ago

0.5.73

9 months ago

0.5.72

9 months ago

0.5.71

9 months ago

0.5.70

9 months ago

0.5.69

9 months ago

0.5.68

9 months ago

0.5.67

9 months ago

0.5.66

10 months ago

0.5.64

10 months ago