@justai/cuts 0.26.0 → 0.26.1
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 +2 -2
- package/src/ConfirmSheet.astro +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justai/cuts",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"description": "A persona's named parts \u2014 the page shell that holds them, and the cuts themselves.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@justai/core": "^0.4.
|
|
32
|
+
"@justai/core": "^0.4.1"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/src/ConfirmSheet.astro
CHANGED
|
@@ -71,10 +71,15 @@ const { id, title, body, actionLabel, cancelLabel, destructive = false, ask = fa
|
|
|
71
71
|
{title && <strong id={`${id}-t`}>{title}</strong>}
|
|
72
72
|
<span id={`${id}-b`}>{body}</span>
|
|
73
73
|
</div>
|
|
74
|
-
|
|
74
|
+
{/* NO autofocus ATTRIBUTE, deliberately: with a fragment in the URL (/me#profile) Chrome
|
|
75
|
+
refuses to process the attribute at parse and prints a console warning on every load —
|
|
76
|
+
on a closed dialog, noise about a focus that was never going to happen. Focus is the
|
|
77
|
+
OPENER's job now, at showModal time: ask → the invitation (CONSENT_JS does it),
|
|
78
|
+
destructive → the cancel (the consumer does it). The genre decides, as before. */}
|
|
79
|
+
<button class:list={["confirm-act", { destructive, preferred: ask }]} id={`${id}-act`} value="confirm">{actionLabel}</button>
|
|
75
80
|
{ask && <button class="confirm-act quiet" id={`${id}-cancel`} value={cancelValue} formnovalidate>{cancelLabel}</button>}
|
|
76
81
|
</div>
|
|
77
|
-
{!ask && <button class="confirm-act confirm-cancel" id={`${id}-cancel`} value={cancelValue} formnovalidate
|
|
82
|
+
{!ask && <button class="confirm-act confirm-cancel" id={`${id}-cancel`} value={cancelValue} formnovalidate>{cancelLabel}</button>}
|
|
78
83
|
</form>
|
|
79
84
|
</dialog>
|
|
80
85
|
|