create-heresay 0.2.11 → 0.2.12
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 +1 -1
- package/release/VERSION +1 -1
- package/release/functions/lib/core/version.js +1 -1
- package/release/public/dashboard.css +13 -3
- package/release/public/dashboard.js +16 -11
- package/release/public/docs.html +1 -1
- package/release/public/guides/install-apple.md +2 -2
- package/release/public/sdk.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-heresay",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
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.12
|
|
@@ -298,9 +298,19 @@ a.platform:hover { border-color:var(--acc); box-shadow:0 0 0 3px var(--mist); }
|
|
|
298
298
|
.am-foot strong, .am-sent strong { color:#fff; padding:6px 14px; border-radius:8px; font-size:12.5px; opacity:.55; }
|
|
299
299
|
.am-sent { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; }
|
|
300
300
|
.am-sent b { font-size:17px; } .am-sent p { margin:0; max-width:240px; } .am-sent div { display:flex; gap:8px; margin-top:6px; } .am-sent strong { opacity:1; }
|
|
301
|
-
.am-
|
|
302
|
-
.am-
|
|
303
|
-
.am-
|
|
301
|
+
.am-intro { position:absolute; z-index:4; left:8px; right:8px; bottom:8px; min-height:44%; max-height:calc(100% - 60px); display:flex; flex-direction:column; align-items:stretch; gap:8px; padding:20px 20px 4px; border-radius:30px; background:var(--bg); color:var(--fg); box-shadow:0 -4px 30px rgb(0 0 0 / .12); }
|
|
302
|
+
.am-intro-text { flex:1; padding:10px 0 12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; }
|
|
303
|
+
.am-intro-text b { font-size:17px; font-weight:700; } .am-intro-text p { margin:0; color:var(--mute); font-size:12.5px; }
|
|
304
|
+
.am-badge { width:44px; height:44px; border-radius:50%; display:grid; place-items:center; margin-bottom:4px; }
|
|
305
|
+
.am-intro > strong { color:#fff; text-align:center; padding:11px; border-radius:999px; font-size:14px; }
|
|
306
|
+
.am-intro > u { text-decoration:none; text-align:center; font-weight:600; font-size:13px; padding:2px; }
|
|
307
|
+
.am-intro.mac { left:50%; right:auto; top:50%; bottom:auto; min-height:0; max-height:none; transform:translate(-50%, -50%); width:330px; gap:0; padding:0; border-radius:14px; background:var(--card); border:1px solid var(--line); box-shadow:0 20px 50px rgb(0 0 0 / .3); }
|
|
308
|
+
.am-intro-bar { padding:9px 10px 0; } .am-intro-bar i { display:block; width:11px; height:11px; border-radius:50%; background:#ff5f57; }
|
|
309
|
+
.am-intro.mac .am-intro-text { padding:10px 26px 18px; }
|
|
310
|
+
.am-intro-foot { display:flex; align-items:center; gap:8px; padding:0 14px 12px; }
|
|
311
|
+
.am-intro-foot .am-powered { flex:1; justify-content:flex-start; padding:0; }
|
|
312
|
+
.am-intro-foot u { text-decoration:none; padding:5px 12px; border-radius:7px; background:var(--fill); border:1px solid var(--line); font-size:12px; }
|
|
313
|
+
.am-intro-foot strong { color:#fff; padding:5px 12px; border-radius:7px; font-size:12px; }
|
|
304
314
|
.am-mac { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; padding:0 0 24px; }
|
|
305
315
|
.am-menubar { align-self:stretch; display:flex; gap:16px; align-items:center; padding:4px 14px; background:rgb(246 246 246 / .95); border-bottom:1px solid #ddd; font-size:13px; color:#111; }
|
|
306
316
|
.am-menubar b:first-child { width:12px; height:14px; background:#111; border-radius:3px; } .am-menubar span.on { background:#2d6cdf; color:#fff; border-radius:4px; padding:0 6px; }
|
|
@@ -760,32 +760,32 @@
|
|
|
760
760
|
en: { report: 'Report', send: 'Send', sendFeedback: 'Send feedback', straight: 'Straight to the {app} team', tabs: ['Report', 'Your reports', 'Preferences'],
|
|
761
761
|
what: 'What is it?', happened: 'What happened?', ph: 'What happened, or what would you change?', attached: 'Sent with this screen and the app version.',
|
|
762
762
|
types: [['Broken', 'Something doesn’t work'], ['Confusing', 'I couldn’t tell how'], ['Could be better', 'It works, and could be better'], ['Idea', 'Something that isn’t there yet']],
|
|
763
|
-
powered: 'Powered by Heresay', introTitle: '
|
|
764
|
-
introBody: '{reach} to tell the team what’
|
|
763
|
+
powered: 'Powered by Heresay', introTitle: 'Help make this app better',
|
|
764
|
+
introBody: '{reach} to share an idea or tell the team what you’d change. A real person reads every report, and you’ll see what happens to yours.',
|
|
765
765
|
reachTap: 'Tap {label} in the corner any time', reachClick: 'Click {label} any time', reachMenu: 'Choose Help › Report a Problem… (⌥⌘R) any time', reachUse: 'Use {label} any time',
|
|
766
766
|
tryIt: 'Try it', gotIt: 'Got it', cancel: 'Cancel', sentTitle: 'Sent. Thank you.', sentBody: 'A person on the team reads every report. You’ll see what happens to it under Your reports.',
|
|
767
767
|
another: 'Send another', see: 'See your reports', menu: 'Report a Problem…' },
|
|
768
768
|
fr: { report: 'Signaler', send: 'Envoyer', sendFeedback: 'Envoyer un retour', straight: 'Directement à l’équipe {app}', tabs: ['Signaler', 'Vos signalements', 'Préférences'],
|
|
769
769
|
what: 'De quoi s’agit-il ?', happened: 'Que s’est-il passé ?', ph: 'Que s’est-il passé, ou que changeriez-vous ?', attached: 'Envoyé avec cet écran et la version de l’app.',
|
|
770
770
|
types: [['Cassé', 'Quelque chose ne marche pas'], ['Déroutant', 'Je ne voyais pas comment faire'], ['Pourrait être mieux', 'Ça marche, mais ça pourrait être mieux'], ['Idée', 'Quelque chose qui n’existe pas encore']],
|
|
771
|
-
powered: 'Propulsé par Heresay', introTitle: '
|
|
772
|
-
introBody: '{reach} pour dire à l’équipe ce
|
|
771
|
+
powered: 'Propulsé par Heresay', introTitle: 'Aidez à améliorer cette app',
|
|
772
|
+
introBody: '{reach} pour partager une idée ou dire à l’équipe ce que vous changeriez. Une vraie personne lit chaque signalement, et vous verrez ce qu’il devient.',
|
|
773
773
|
reachTap: 'Touchez {label} dans le coin à tout moment', reachClick: 'Cliquez sur {label} à tout moment', reachMenu: 'Choisissez Aide › Signaler un problème… (⌥⌘R) à tout moment', reachUse: 'Utilisez {label} à tout moment',
|
|
774
774
|
tryIt: 'Essayer', gotIt: 'Compris', cancel: 'Annuler', sentTitle: 'Envoyé. Merci.', sentBody: 'Une personne de l’équipe lit chaque signalement. Vous verrez ce qu’il devient dans Vos signalements.',
|
|
775
775
|
another: 'En envoyer un autre', see: 'Voir vos signalements', menu: 'Signaler un problème…' },
|
|
776
776
|
ta: { report: 'தெரிவி', send: 'அனுப்பு', sendFeedback: 'கருத்து அனுப்பு', straight: 'நேராக {app} குழுவுக்கு', tabs: ['தெரிவி', 'உங்கள் புகார்கள்', 'விருப்பங்கள்'],
|
|
777
777
|
what: 'இது என்ன வகை?', happened: 'என்ன நடந்தது?', ph: 'என்ன நடந்தது, அல்லது எதை மாற்ற விரும்புகிறீர்கள்?', attached: 'இந்தத் திரை மற்றும் ஆப் பதிப்புடன் அனுப்பப்படும்.',
|
|
778
778
|
types: [['வேலை செய்யவில்லை', 'ஏதோ ஒன்று சரியாக இயங்கவில்லை'], ['குழப்பமாக உள்ளது', 'எப்படிச் செய்வது என்று புரியவில்லை'], ['இன்னும் சிறப்பாக்கலாம்', 'வேலை செய்கிறது, ஆனால் மேம்படுத்தலாம்'], ['யோசனை', 'இன்னும் இல்லாத ஒன்று']],
|
|
779
|
-
powered: 'Heresay மூலம் இயங்குகிறது', introTitle: '
|
|
780
|
-
introBody: '
|
|
779
|
+
powered: 'Heresay மூலம் இயங்குகிறது', introTitle: 'இந்த ஆப்பை இன்னும் சிறப்பாக்க உதவுங்கள்',
|
|
780
|
+
introBody: 'ஒரு யோசனையைப் பகிர அல்லது நீங்கள் எதை மாற்ற விரும்புகிறீர்கள் என்று குழுவிடம் சொல்ல, {reach}. ஒவ்வொரு கருத்தையும் ஒருவர் படிக்கிறார்; உங்களுடையதற்கு என்ன ஆனது என்பதைப் பார்க்கலாம்.',
|
|
781
781
|
reachTap: 'எப்போது வேண்டுமானாலும் மூலையில் உள்ள {label} ஐத் தட்டுங்கள்', reachClick: 'எப்போது வேண்டுமானாலும் {label} ஐக் கிளிக் செய்யுங்கள்', reachMenu: 'எப்போது வேண்டுமானாலும் Help › சிக்கலைத் தெரிவி… (⌥⌘R) என்பதைத் தேர்ந்தெடுங்கள்', reachUse: 'எப்போது வேண்டுமானாலும் {label} ஐப் பயன்படுத்துங்கள்',
|
|
782
782
|
tryIt: 'முயன்று பாருங்கள்', gotIt: 'சரி', cancel: 'ரத்துசெய்', sentTitle: 'அனுப்பப்பட்டது. நன்றி.', sentBody: 'குழுவில் ஒருவர் ஒவ்வொரு புகாரையும் படிக்கிறார். அதற்கு என்ன ஆனது என்பதை “உங்கள் புகார்கள்” பகுதியில் பார்க்கலாம்.',
|
|
783
783
|
another: 'இன்னொன்று அனுப்பு', see: 'உங்கள் புகார்களைப் பார்', menu: 'சிக்கலைத் தெரிவி…' },
|
|
784
784
|
hi: { report: 'रिपोर्ट करें', send: 'भेजें', sendFeedback: 'फ़ीडबैक भेजें', straight: 'सीधे {app} टीम को', tabs: ['रिपोर्ट', 'आपकी रिपोर्ट', 'प्राथमिकताएँ'],
|
|
785
785
|
what: 'यह क्या है?', happened: 'क्या हुआ?', ph: 'क्या हुआ, या आप क्या बदलना चाहेंगे?', attached: 'इस स्क्रीन और ऐप के वर्शन के साथ भेजा जाता है।',
|
|
786
786
|
types: [['टूटा हुआ', 'कुछ काम नहीं कर रहा'], ['उलझन भरा', 'समझ नहीं आया कि कैसे करें'], ['बेहतर हो सकता है', 'काम करता है, पर बेहतर हो सकता है'], ['सुझाव', 'कुछ ऐसा जो अभी नहीं है']],
|
|
787
|
-
powered: 'Heresay द्वारा संचालित', introTitle: '
|
|
788
|
-
introBody: 'टीम को यह बताने के लिए कि
|
|
787
|
+
powered: 'Heresay द्वारा संचालित', introTitle: 'इस ऐप को और बेहतर बनाने में मदद करें',
|
|
788
|
+
introBody: 'कोई आइडिया बताने या टीम को यह बताने के लिए कि आप क्या बदलना चाहेंगे, {reach}। हर रिपोर्ट कोई इंसान पढ़ता है, और आपकी रिपोर्ट का क्या हुआ, यह आप देखेंगे।',
|
|
789
789
|
reachTap: 'कभी भी कोने में {label} पर टैप करें', reachClick: 'कभी भी {label} पर क्लिक करें', reachMenu: 'कभी भी Help › समस्या की रिपोर्ट करें… (⌥⌘R) चुनें', reachUse: 'कभी भी {label} का इस्तेमाल करें',
|
|
790
790
|
tryIt: 'आज़माएँ', gotIt: 'ठीक है', cancel: 'रद्द करें', sentTitle: 'भेज दिया गया। धन्यवाद।', sentBody: 'टीम का कोई व्यक्ति हर रिपोर्ट पढ़ता है। इसका क्या हुआ, यह आप “आपकी रिपोर्ट” में देखेंगे।',
|
|
791
791
|
another: 'एक और भेजें', see: 'अपनी रिपोर्ट देखें', menu: 'समस्या की रिपोर्ट करें…' },
|
|
@@ -838,9 +838,14 @@
|
|
|
838
838
|
? '<div class="am-dim"></div><div class="am-sheet ' + (mac ? 'mac ' : '') + (sheetSize || 'regular') + '">' + head + (show === 'sent' ? sent : form) + '</div>' : '';
|
|
839
839
|
var reach = mac ? (cfg.entry !== 'none' ? w.reachMenu : fmt(hasButton ? w.reachClick : w.reachUse, { label: cfg.label ? '“' + cfg.label + '”' : w.report }))
|
|
840
840
|
: fmt(hasButton ? w.reachTap : w.reachUse, { label: cfg.label ? '“' + cfg.label + '”' : w.report });
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
841
|
+
// The introduction: a welcome sheet on iPhone, its own small window on the Mac.
|
|
842
|
+
var badge = '<span class="am-badge" style="background:' + markC + '24">' + mark(markC, 32) + '</span>';
|
|
843
|
+
var introText = badge + '<b>' + esc(w.introTitle) + '</b><p>' + esc(fmt(w.introBody, { reach: reach })) + '</p>';
|
|
844
|
+
var alert = show !== 'intro' ? '' : mac
|
|
845
|
+
? '<div class="am-intro mac"><div class="am-intro-bar"><i></i></div><div class="am-intro-text">' + introText + '</div>' +
|
|
846
|
+
'<div class="am-intro-foot">' + powered + '<u>' + esc(w.gotIt) + '</u><strong style="background:' + acc + '">' + esc(w.tryIt) + '</strong></div></div>'
|
|
847
|
+
: '<div class="am-dim"></div><div class="am-intro"><div class="am-intro-text">' + introText + '</div>' +
|
|
848
|
+
'<strong style="background:' + acc + '">' + esc(w.tryIt) + '</strong><u style="color:' + acc + '">' + esc(w.gotIt) + '</u>' + powered + '</div>';
|
|
844
849
|
var menu = mac && cfg.entry !== 'none' && show === 'button'
|
|
845
850
|
? '<div class="am-menu"><span>' + esc(w.menu) + '</span><kbd>⌥⌘R</kbd></div>' : '';
|
|
846
851
|
var rows = ['Groceries', 'Trip to Ooty', 'Quarterly plan', 'Book list'].map(function (r) { return '<li>' + r + '</li>'; }).join('');
|
package/release/public/docs.html
CHANGED
|
@@ -183,7 +183,7 @@ connect-src ORIGIN;</code></pre>
|
|
|
183
183
|
WindowGroup { ContentView().heresayReportButton() } <span class="k">// iOS: a Report button in the corner</span>
|
|
184
184
|
}
|
|
185
185
|
}</code></pre>
|
|
186
|
-
<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,
|
|
186
|
+
<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>
|
|
187
187
|
|
|
188
188
|
<h2 id="rest">Other platforms</h2>
|
|
189
189
|
<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>
|
|
@@ -55,8 +55,8 @@ Then nobody is asked their name to send a report, and the team can reply to them
|
|
|
55
55
|
|
|
56
56
|
On macOS the report window lives under Help, and on iOS it's a small button; people who have never
|
|
57
57
|
seen it won't go looking. Call `Heresay.introduce()` once the person reaches the app's main
|
|
58
|
-
screen: after sign-in and after any onboarding, never over a login or first-run screen.
|
|
59
|
-
|
|
58
|
+
screen: after sign-in and after any onboarding, never over a login or first-run screen. Once per
|
|
59
|
+
install it shows a welcome sheet on iOS, or a small window of its own on macOS, that says where to find it (Help › Report a Problem… (⌥⌘R) on
|
|
60
60
|
macOS, the Report button on iOS) and offers to open it. Later calls do nothing, so this is fine:
|
|
61
61
|
|
|
62
62
|
```swift
|
package/release/public/sdk.js
CHANGED
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
clear: 'Clear all', save: 'Save',
|
|
101
101
|
kept: 'Kept in this browser and sent only with reports you choose to send.',
|
|
102
102
|
none: 'Nothing sent from this device yet.', why: 'Why: ',
|
|
103
|
-
introAria: 'About the Report button', introTitle: '
|
|
104
|
-
introBody: 'Use {label}
|
|
103
|
+
introAria: 'About the Report button', introTitle: 'Help make this app better',
|
|
104
|
+
introBody: 'Use {label} any time to share an idea or tell the team what you would change. A real person reads every report, and you will see what happens to yours right here.',
|
|
105
105
|
got: 'Got it', tryIt: 'Try it',
|
|
106
106
|
sentTo: 'Sent to this app’s team', powered: 'Powered by Heresay',
|
|
107
107
|
},
|
|
@@ -133,8 +133,8 @@
|
|
|
133
133
|
clear: 'Tout effacer', save: 'Enregistrer',
|
|
134
134
|
kept: 'Conservé dans ce navigateur, et envoyé seulement avec les signalements que vous envoyez.',
|
|
135
135
|
none: 'Aucun signalement envoyé depuis cet appareil.', why: 'Pourquoi : ',
|
|
136
|
-
introAria: 'À propos du bouton Signaler', introTitle: '
|
|
137
|
-
introBody: 'Utilisez {label}
|
|
136
|
+
introAria: 'À propos du bouton Signaler', introTitle: 'Aidez à améliorer cette app',
|
|
137
|
+
introBody: 'Utilisez {label} à tout moment pour partager une idée ou dire à l’équipe ce que vous changeriez. Une vraie personne lit chaque signalement, et vous verrez ici ce qu’il devient.',
|
|
138
138
|
got: 'Compris', tryIt: 'Essayer',
|
|
139
139
|
sentTo: 'Envoyé à l’équipe de cette app', powered: 'Propulsé par Heresay',
|
|
140
140
|
},
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
clear: 'அனைத்தையும் அழி', save: 'சேமி',
|
|
167
167
|
kept: 'இந்த உலாவியில் வைக்கப்படும்; நீங்கள் அனுப்பும் புகார்களுடன் மட்டுமே அனுப்பப்படும்.',
|
|
168
168
|
none: 'இந்தச் சாதனத்திலிருந்து இன்னும் எதுவும் அனுப்பப்படவில்லை.', why: 'காரணம்: ',
|
|
169
|
-
introAria: 'தெரிவி பொத்தான் பற்றி', introTitle: '
|
|
170
|
-
introBody: '
|
|
169
|
+
introAria: 'தெரிவி பொத்தான் பற்றி', introTitle: 'இந்த ஆப்பை இன்னும் சிறப்பாக்க உதவுங்கள்',
|
|
170
|
+
introBody: 'ஒரு யோசனையைப் பகிர அல்லது நீங்கள் எதை மாற்ற விரும்புகிறீர்கள் என்று குழுவிடம் சொல்ல, எப்போது வேண்டுமானாலும் {label} ஐப் பயன்படுத்துங்கள். ஒவ்வொரு கருத்தையும் ஒருவர் படிக்கிறார்; உங்களுடையதற்கு என்ன ஆனது என்பதை இங்கேயே பார்க்கலாம்.',
|
|
171
171
|
got: 'சரி', tryIt: 'முயன்று பாருங்கள்',
|
|
172
172
|
sentTo: 'இந்த ஆப்பின் குழுவுக்கு அனுப்பப்படும்', powered: 'Heresay மூலம் இயங்குகிறது',
|
|
173
173
|
},
|
|
@@ -199,8 +199,8 @@
|
|
|
199
199
|
clear: 'सब हटाएँ', save: 'सेव करें',
|
|
200
200
|
kept: 'इसी ब्राउज़र में रखा जाता है, और सिर्फ़ आपकी भेजी रिपोर्ट के साथ जाता है।',
|
|
201
201
|
none: 'इस डिवाइस से अभी तक कुछ नहीं भेजा गया।', why: 'वजह: ',
|
|
202
|
-
introAria: 'रिपोर्ट बटन के बारे में', introTitle: '
|
|
203
|
-
introBody: '
|
|
202
|
+
introAria: 'रिपोर्ट बटन के बारे में', introTitle: 'इस ऐप को और बेहतर बनाने में मदद करें',
|
|
203
|
+
introBody: 'कोई आइडिया बताने या टीम को यह बताने के लिए कि आप क्या बदलना चाहेंगे, कभी भी {label} का इस्तेमाल करें। हर रिपोर्ट कोई इंसान पढ़ता है, और आपकी रिपोर्ट का क्या हुआ, यह आप यहीं देखेंगे।',
|
|
204
204
|
got: 'ठीक है', tryIt: 'आज़माएँ',
|
|
205
205
|
sentTo: 'इस ऐप की टीम को भेजा जाता है', powered: 'Heresay द्वारा संचालित',
|
|
206
206
|
},
|