create-heresay 0.2.19 → 0.2.20
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-heresay",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"description": "Set up your own Heresay: in-app feedback that every report gets a hearing. Creates a Firebase project in your Google account and deploys the dashboard, API and SDK to it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/release/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.20
|
package/release/public/docs.html
CHANGED
|
@@ -185,7 +185,7 @@ connect-src ORIGIN;</code></pre>
|
|
|
185
185
|
WindowGroup { ContentView().heresayReportButton() } <span class="k">// iOS: a Report button in the corner</span>
|
|
186
186
|
}
|
|
187
187
|
}</code></pre>
|
|
188
|
-
<p>On macOS, use <code>ContentView().heresay()</code> and add <code>.commands { HeresayCommands() }</code> for <b>Help › Report a Problem…</b> (⌥⌘R). The same calls as the web SDK exist: <code>Heresay.identify(id:label:email:)</code>, <code>Heresay.presentPreferences()</code>, <code>Heresay.introduce()</code> (once per install, a welcome sheet on iOS or a small window on macOS saying where to find it; call it when the main screen appears), <code>Heresay.setScreen(_:)</code>, <code>Heresay.present(type:text:)</code>, <code>Heresay.onSent</code>, and <code>Heresay.send(_:text:)</code> for your own UI. How it looks is one <code>HeresayStyle</code> passed to <code>configure(…, style:)</code>, with the same choices as the web (corner, offset, text, pill or icon, size, fill, shadow, screens to hide it on, theme, typeface, English, French, Tamil or Hindi, report types, a thank-you line, sheet size, the Preferences tab). The defaults are recommended; the dashboard's <b>Design</b> page shows each choice and gives the Swift. The app version comes from the bundle. Native apps have no web origin to lock the key to; the rate limits still apply.</p>
|
|
188
|
+
<p>On macOS, use <code>ContentView().heresay()</code> and add <code>.commands { HeresayCommands() }</code> for <b>Help › Report a Problem…</b> (⌥⌘R). The same calls as the web SDK exist: <code>Heresay.identify(id:label:email:)</code>, <code>Heresay.presentPreferences()</code>, <code>Heresay.introduce()</code> (once per install, a welcome sheet on iOS or a small window on macOS saying where to find it; call it when the main screen appears), <code>Heresay.setScreen(_:)</code>, <code>Heresay.present(type:text:)</code>, <code>Heresay.onSent</code>, and <code>Heresay.send(_:text:)</code> for your own UI. How it looks is one <code>HeresayStyle</code> passed to <code>configure(…, style:)</code>, with the same choices as the web (corner, offset, text, pill or icon, size, fill, shadow, screens to hide it on, theme, typeface, English, French, Tamil or Hindi, report types, a thank-you line, sheet size, the Preferences tab). The defaults are recommended; the dashboard's <b>Design</b> page shows each choice and gives the Swift. The app version comes from the bundle. Reports carry what happened before them, as on the web: the screens named with <code>.heresayScreen(_:)</code> or <code>setScreen</code>, the app's own <code>Logger</code> errors, the last crash, and on macOS clicks (by accessibility label) and menu commands. The reporter sees it and can take it off; <code>configure(…, trail: [])</code> turns it off. Native apps have no web origin to lock the key to; the rate limits still apply.</p>
|
|
189
189
|
|
|
190
190
|
<h2 id="rest">Other platforms</h2>
|
|
191
191
|
<p>Android, React Native and Flutter SDKs are on the way. Until then, any app can talk to the same API. Both calls take a JSON body.</p>
|
|
@@ -58,6 +58,22 @@ change. The first value is the default.
|
|
|
58
58
|
|
|
59
59
|
`Heresay.setStyle(_:)` changes it later, for example when the app's own theme setting changes.
|
|
60
60
|
|
|
61
|
+
**The trail**
|
|
62
|
+
|
|
63
|
+
With each report, Heresay attaches what happened in the app in the last few minutes: screens
|
|
64
|
+
(named with `Heresay.setScreen` or `.heresayScreen("Settings")`), the app's own `Logger` errors,
|
|
65
|
+
the last crash, going offline, and on macOS clicks (by their accessibility label) and menu
|
|
66
|
+
commands. The reporter sees it in the sheet and can switch it off or leave parts out. Never what
|
|
67
|
+
anyone typed. On by default; change it only when asked.
|
|
68
|
+
|
|
69
|
+
| Option | Values |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| `configure(…, trail:)` | `.all` (default) · `[]` (off) · some of `[.screens, .clicks, .errors]` |
|
|
72
|
+
| `.heresayPrivate()` | on a view whose controls are named after someone's data: clicks inside it are recorded as "button", without the label |
|
|
73
|
+
|
|
74
|
+
Screens make the trail readable: if the app has several screens and doesn't name them yet, add
|
|
75
|
+
`.heresayScreen("<name>")` to each screen's root view.
|
|
76
|
+
|
|
61
77
|
**Calls**
|
|
62
78
|
|
|
63
79
|
- `Heresay.present(type:text:)`: opens the sheet, filled in. The person still reviews and sends it.
|