@quickwatch/preview 0.1.0 → 0.2.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 +16 -0
- package/dist/quickwatch-preview.min.js +28 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,22 @@ taps and actions are simulated; nothing is fetched except the two font files nex
|
|
|
7
7
|
|
|
8
8
|
The format: https://quickwatch.app/llms.txt (the agent guide, the JSON Schema and examples).
|
|
9
9
|
|
|
10
|
+
The quickest way, a standard layout for a chat widget (the watch, a button per screen, any problems, and an
|
|
11
|
+
"Open in QuickWatch" button that opens the app on quickwatch.app to keep it and send it to the watch):
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<div id="app"></div>
|
|
15
|
+
<script src="https://cdn.jsdelivr.net/npm/@quickwatch/preview@0/dist/quickwatch-preview.min.js"></script>
|
|
16
|
+
<script>
|
|
17
|
+
QuickWatch.widget(document.getElementById('app'), watchJson, dataJson);
|
|
18
|
+
</script>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`QuickWatch.link(watchJson, dataJson)` resolves to the same Open in QuickWatch link, to put in a reply.
|
|
22
|
+
`QuickWatch.widget` takes `render`'s options plus `origin` (default `https://quickwatch.app`) and `title`.
|
|
23
|
+
|
|
24
|
+
Just the watch, for your own layout:
|
|
25
|
+
|
|
10
26
|
```html
|
|
11
27
|
<div id="watch"></div>
|
|
12
28
|
<script src="https://cdn.jsdelivr.net/npm/@quickwatch/preview@0/dist/quickwatch-preview.min.js"></script>
|