@aparte/n8n-chat 0.4.0 → 0.5.0

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/README.md CHANGED
@@ -7,8 +7,8 @@ your call. And your workflow can answer with **rich cards** — an order, a book
7
7
  weather — and offer **quick replies** the visitor clicks. [See it live](https://n8n-chat.apartejs.dev).
8
8
 
9
9
  <p>
10
- <img src="docs/widget-card-order.png" alt="The widget open in a corner of a shop's page: the visitor asks where their order is, and the answer comes with the order's card, its items and total" width="300">
11
- <img src="docs/widget-card-dark.png" alt="The same widget in its dark scheme, answering a booking with the booking's card" width="300">
10
+ <img src="https://raw.githubusercontent.com/apartejs/n8n-chat/v0.5.0/docs/widget-card-order.png" alt="The widget answering where order 1001 is, with the order's card: its items, its status and its total, and a small Powered by aparté line under the input" width="300">
11
+ <img src="https://raw.githubusercontent.com/apartejs/n8n-chat/v0.5.0/docs/widget-card-dark.png" alt="The same widget in its dark scheme, answering about order 1002 with its card" width="300">
12
12
  </p>
13
13
 
14
14
  - Rich cards your workflow writes as text: weather, order and booking, product, place, list, key
@@ -22,16 +22,16 @@ weather — and offer **quick replies** the visitor clicks. [See it live](https:
22
22
  - About 143 KB compressed on the first load, against about 471 KB (measured 2026-10-31, `@n8n/chat` 1.44.7).
23
23
  - A handle to drive it from your page: `open`, `close`, `toggle`, `send`, `reset`, `setDisabled`,
24
24
  `destroy`.
25
- - MIT.
25
+ - MIT. A small grey "Powered by aparté" line sits under the input, linking to [apartejs.dev](https://apartejs.dev).
26
26
 
27
27
  ## Install
28
28
 
29
29
  ### From a CDN — no build step
30
30
 
31
31
  ```html
32
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.4.0/dist/style.css">
32
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.5.0/dist/style.css">
33
33
  <script type="module">
34
- import { createChat } from 'https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.4.0/dist/cdn/n8n-chat.js';
34
+ import { createChat } from 'https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.5.0/dist/cdn/n8n-chat.js';
35
35
 
36
36
  createChat({ webhookUrl: 'https://your-n8n.example.com/webhook/<id>/chat' });
37
37
  </script>
@@ -61,10 +61,10 @@ Replace the stylesheet and the import; the call stays as it is:
61
61
 
62
62
  ```diff
63
63
  - <link href="https://cdn.jsdelivr.net/npm/@n8n/chat/dist/style.css" rel="stylesheet" />
64
- + <link href="https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.4.0/dist/style.css" rel="stylesheet" />
64
+ + <link href="https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.5.0/dist/style.css" rel="stylesheet" />
65
65
  <script type="module">
66
66
  - import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/dist/chat.bundle.es.js';
67
- + import { createChat } from 'https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.4.0/dist/cdn/n8n-chat.js';
67
+ + import { createChat } from 'https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.5.0/dist/cdn/n8n-chat.js';
68
68
  createChat({ webhookUrl: 'https://your-n8n.example.com/webhook/<id>/chat' });
69
69
  </script>
70
70
  ```
@@ -259,7 +259,7 @@ createChat({
259
259
  ```
260
260
 
261
261
  Take `defineCard` from the widget's own module, as above, and from the same URL when you load
262
- it from a CDN (`…/@aparte/n8n-chat@0.4.0/dist/cdn/n8n-chat.js`): the card and the chat then share
262
+ it from a CDN (`…/@aparte/n8n-chat@0.5.0/dist/cdn/n8n-chat.js`): the card and the chat then share
263
263
  one copy of aparté. A kit loaded from another URL keeps its cards where the chat never looks.
264
264
 
265
265
  ````md
@@ -358,11 +358,11 @@ so the page puts a fresh token in `metadata` before every message.
358
358
  2. In the page:
359
359
 
360
360
  ```html
361
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.4.0/dist/style.css">
361
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.5.0/dist/style.css">
362
362
  <script src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit"></script>
363
363
  <div id="turnstile"></div>
364
364
  <script type="module">
365
- import { createChat } from 'https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.4.0/dist/cdn/n8n-chat.js';
365
+ import { createChat } from 'https://cdn.jsdelivr.net/npm/@aparte/n8n-chat@0.5.0/dist/cdn/n8n-chat.js';
366
366
 
367
367
  // A Turnstile token is single-use and lasts five minutes: ask for a new one before each message.
368
368
  let widgetId;