create-heresay 0.2.13 → 0.2.14
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.14",
|
|
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.14
|
|
@@ -134,7 +134,7 @@ a.platform:hover { border-color:var(--acc); box-shadow:0 0 0 3px var(--mist); }
|
|
|
134
134
|
@media (prefers-reduced-motion: reduce) { .wait::before { animation:none; } }
|
|
135
135
|
/* loading: the Glance mark, faded in late so quick loads never flash it */
|
|
136
136
|
.loading { display:grid; place-items:center; padding:12vh 0; animation:loading-in .2s .3s both; }
|
|
137
|
-
.loading img { width:
|
|
137
|
+
.loading img { width:96px; height:96px; }
|
|
138
138
|
.loading.boot { padding-top:30vh; }
|
|
139
139
|
.loading:not(.boot):not(:only-child) { display:none; }
|
|
140
140
|
@keyframes loading-in { from { opacity:0; } }
|
|
@@ -815,7 +815,7 @@
|
|
|
815
815
|
var pos = cfg.position || 'bottomTrailing';
|
|
816
816
|
var place = (/top/.test(pos) ? 'top:' + (off + (mac ? 34 : 54)) + 'px;' : 'bottom:' + (off + (mac ? 0 : 20)) + 'px;') +
|
|
817
817
|
(pos === 'bottom' ? 'left:50%;transform:translateX(-50%);' : /Leading/.test(pos) ? 'left:' + off + 'px;' : 'right:' + off + 'px;');
|
|
818
|
-
var sz = { small: [11, 10, 6,
|
|
818
|
+
var sz = { small: [11, 10, 6, 16], large: [16, 18, 12, 26] }[cfg.size] || [13, 14, 9, 21];
|
|
819
819
|
var neutral = cfg.fill === 'neutral';
|
|
820
820
|
var icon = cfg.button === 'icon';
|
|
821
821
|
var btnDark = dark || darkMode;
|
|
@@ -831,7 +831,7 @@
|
|
|
831
831
|
return '<div class="am-type"><span class="am-ti" style="color:' + acc + ';background:' + acc + '1f">' + TYPE_ICON[t] + '</span><span><b>' + esc(tw[0]) + '</b><i>' + esc(tw[1]) + '</i></span></div>';
|
|
832
832
|
}).join('');
|
|
833
833
|
var tabs = [w.tabs[0], w.tabs[1]].concat(cfg.showsPreferences === 'false' ? [] : [w.tabs[2]]);
|
|
834
|
-
var powered = '<div class="am-powered">' + mark(markC,
|
|
834
|
+
var powered = '<div class="am-powered">' + mark(markC, 14) + esc(w.powered) + '</div>';
|
|
835
835
|
var head = '<div class="am-head">' + mark(markC, 28) + '<div><b>' + esc(w.sendFeedback) + '</b><span>' + esc(fmt(w.straight, { app: productName(p) })) + '</span></div>' + (mac ? '' : '<em>✕</em>') + '</div>' +
|
|
836
836
|
'<div class="am-seg">' + tabs.map(function (t, i) { return '<span' + (i === 0 ? ' class="on"' : '') + '>' + esc(t) + '</span>'; }).join('') + '</div>';
|
|
837
837
|
var form = '<div class="am-body"><p class="am-lab">' + esc(w.what) + '</p><div class="am-types' + (mac ? ' grid' : '') + '">' + typeCards + '</div>' +
|
package/release/public/sdk.js
CHANGED
|
@@ -452,8 +452,8 @@
|
|
|
452
452
|
'box-shadow:0 4px 14px rgba(0,0,0,.18);cursor:pointer;font-weight:600;white-space:nowrap}',
|
|
453
453
|
'.fab.r{right:var(--fb-x)}.fab.l{left:var(--fb-x)}.fab.c{left:50%;transform:translateX(-50%)}',
|
|
454
454
|
'.fab.b{bottom:var(--fb-y)}.fab.t{top:var(--fb-y)}',
|
|
455
|
-
'.fab.sz-small{padding:6px 10px;font-size:12.5px}.fab.sz-small svg{width:
|
|
456
|
-
'.fab.sz-large{padding:12px 18px;font-size:16px}.fab.sz-large svg{width:
|
|
455
|
+
'.fab.sz-small{padding:6px 10px;font-size:12.5px}.fab.sz-small svg{width:17px;height:17px}',
|
|
456
|
+
'.fab.sz-large{padding:12px 18px;font-size:16px}.fab.sz-large svg{width:27px;height:27px}',
|
|
457
457
|
'.fab.st-icon{padding:10px;border-radius:50%}.fab.st-icon.sz-small{padding:7px}.fab.st-icon.sz-large{padding:13px}',
|
|
458
458
|
'.fab.st-icon .lbl{display:none}',
|
|
459
459
|
'.fab.st-tab{writing-mode:vertical-rl;top:50%;bottom:auto;transform:translateY(-50%);padding:14px 8px;right:0;border-radius:10px 0 0 10px;border-right:0}',
|
|
@@ -522,7 +522,7 @@
|
|
|
522
522
|
'.small{font-size:12px;color:var(--fb-mute)}',
|
|
523
523
|
'.send{padding:9px 16px;border:0;border-radius:10px;background:var(--fb-acc);color:var(--fb-acc-fg);font-weight:600;cursor:pointer}',
|
|
524
524
|
'.send[disabled]{opacity:.5;cursor:default}',
|
|
525
|
-
'.send.busy{opacity:1;display:inline-flex;align-items:center;gap:7px}.send .mark{color:var(--fb-acc-fg)}.send .eye{fill:var(--fb-acc)}',
|
|
525
|
+
'.send.busy{opacity:1;display:inline-flex;align-items:center;gap:7px}.send .mark{color:var(--fb-acc-fg)}.send .mark svg{width:20px;height:20px}.send .eye{fill:var(--fb-acc)}',
|
|
526
526
|
// The loader: the mark's eyes look left, look right, blink (brand/svg/loaders/heresay-loader-glance.svg, faster).
|
|
527
527
|
'.glance svg *{transform-box:view-box}.glance .eyes{animation:fb-look 1.6s ease-in-out infinite}.glance .e{animation:fb-blink 1.6s infinite}',
|
|
528
528
|
'@keyframes fb-look{0%,10%{transform:none}25%,40%{transform:translate(-9px,1px)}55%,70%{transform:translate(9px,-1px)}85%,100%{transform:none}}',
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
'.by{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:14px;padding-top:10px;',
|
|
542
542
|
'border-top:1px solid var(--fb-line);font-size:11.5px;color:var(--fb-mute)}',
|
|
543
543
|
'.by a{display:inline-flex;align-items:center;gap:4px;margin-left:auto;color:inherit;text-decoration:none;font-weight:600;white-space:nowrap}',
|
|
544
|
-
'.by a:hover{text-decoration:underline}.by .mark svg{width:
|
|
544
|
+
'.by a:hover{text-decoration:underline}.by .mark svg{width:16px;height:16px}',
|
|
545
545
|
].join('');
|
|
546
546
|
|
|
547
547
|
/**
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
function markEl(glance) {
|
|
595
595
|
var s = document.createElement('span');
|
|
596
596
|
s.className = glance ? 'mark glance' : 'mark';
|
|
597
|
-
s.innerHTML = '<svg viewBox="0 0 200 200" width="
|
|
597
|
+
s.innerHTML = '<svg viewBox="0 0 200 200" width="22" height="22" aria-hidden="true"><path d="M174 100L177 105L180 110L181 116L180 121L178 126L174 131L169 134L164 137L159 139L154 141L149 143L146 146L143 149L141 154L139 159L137 164L134 169L131 174L126 178L121 180L116 181L110 180L105 177L100 174L95 170L91 167L87 164L83 163L79 162L74 162L69 163L63 164L57 164L51 164L46 162L41 159L38 154L36 149L36 143L36 137L37 131L38 126L38 121L37 117L36 113L33 109L30 105L26 100L23 95L20 90L19 84L20 79L22 74L26 69L31 66L36 63L41 61L46 59L51 57L54 54L57 51L59 46L61 41L63 36L66 31L69 26L74 22L79 20L84 19L90 20L95 23L100 26L105 30L109 33L113 36L117 37L121 38L126 38L131 37L137 36L143 36L149 36L154 38L159 41L162 46L164 51L164 57L164 63L163 69L162 74L162 79L163 83L164 87L167 91L170 95Z" fill="currentColor"/><g class="eyes"><g class="e" style="transform-origin:80px 106px"><path class="eye" d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" transform="translate(80 106) rotate(-24) scale(1.25)"/></g><g class="e" style="transform-origin:124px 101px"><path class="eye" d="M-13 12 C-13 -8 -2 -24 17 -32 L20 -25 C8 -18 2 -9 3 -1 A13 13 0 1 1 -13 12 Z" transform="translate(124 101) rotate(-24) scale(1.25)"/></g></g></svg>';
|
|
598
598
|
return s;
|
|
599
599
|
}
|
|
600
600
|
|