@lostgradient/cinder 0.24.0 → 0.24.2
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/CHANGELOG.md +12 -0
- package/components.json +1 -1
- package/dist/components/selection-popover/index.js +4 -2
- package/dist/index.js +4 -2
- package/dist/server/components/selection-popover/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/{index.server-c71m0a88.js → index.server-0yrz8ryn.js} +3 -2
- package/package.json +556 -556
- package/src/components/selection-popover/selection-popover.svelte +24 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @lostgradient/cinder
|
|
2
2
|
|
|
3
|
+
## 0.24.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8c3065a`](https://github.com/stevekinney/cinder/commit/8c3065a5889811bc3315e3a7fcbfa1bfc816b62c) Thanks [@stevekinney](https://github.com/stevekinney)! - Keep SelectionPopover's pre-open focus owner for the popover's whole open lifetime so an Escape that follows a cancel or submit still returns focus to it instead of dropping it on `<body>`.
|
|
8
|
+
|
|
9
|
+
## 0.24.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#1261](https://github.com/stevekinney/cinder/pull/1261) [`c89a8b8`](https://github.com/stevekinney/cinder/commit/c89a8b88b62349baadeaf205546dcc3cca139613) Thanks [@stevekinney](https://github.com/stevekinney)! - Prefer Svelte source exports during SvelteKit server-side rendering so Chat and Cinder compile one matching hydration tree on the server and in the browser.
|
|
14
|
+
|
|
3
15
|
## 0.24.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/components.json
CHANGED
|
@@ -3720,9 +3720,10 @@ function Selection_popover($$anchor, $$props) {
|
|
|
3720
3720
|
}
|
|
3721
3721
|
function restoreFocus(preventScroll = true) {
|
|
3722
3722
|
const target = restoreFocusElement;
|
|
3723
|
-
restoreFocusElement = null;
|
|
3724
3723
|
if (!target)
|
|
3725
3724
|
return;
|
|
3725
|
+
if (document.activeElement === target)
|
|
3726
|
+
return;
|
|
3726
3727
|
isRestoringFocus = true;
|
|
3727
3728
|
target.focus({ preventScroll });
|
|
3728
3729
|
isRestoringFocus = false;
|
|
@@ -3807,6 +3808,7 @@ function Selection_popover($$anchor, $$props) {
|
|
|
3807
3808
|
$6.set(expanded, false);
|
|
3808
3809
|
$6.set(commentBody, "");
|
|
3809
3810
|
restoreFocus();
|
|
3811
|
+
restoreFocusElement = null;
|
|
3810
3812
|
}
|
|
3811
3813
|
return;
|
|
3812
3814
|
}
|
|
@@ -3878,4 +3880,4 @@ export {
|
|
|
3878
3880
|
Selection_popover as SelectionPopover
|
|
3879
3881
|
};
|
|
3880
3882
|
|
|
3881
|
-
//# debugId=
|
|
3883
|
+
//# debugId=0D22F90112A8785E64756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -61140,9 +61140,10 @@ function Selection_popover($$anchor, $$props) {
|
|
|
61140
61140
|
}
|
|
61141
61141
|
function restoreFocus(preventScroll = true) {
|
|
61142
61142
|
const target = restoreFocusElement;
|
|
61143
|
-
restoreFocusElement = null;
|
|
61144
61143
|
if (!target)
|
|
61145
61144
|
return;
|
|
61145
|
+
if (document.activeElement === target)
|
|
61146
|
+
return;
|
|
61146
61147
|
isRestoringFocus = true;
|
|
61147
61148
|
target.focus({ preventScroll });
|
|
61148
61149
|
isRestoringFocus = false;
|
|
@@ -61227,6 +61228,7 @@ function Selection_popover($$anchor, $$props) {
|
|
|
61227
61228
|
$266.set(expanded, false);
|
|
61228
61229
|
$266.set(commentBody, "");
|
|
61229
61230
|
restoreFocus();
|
|
61231
|
+
restoreFocusElement = null;
|
|
61230
61232
|
}
|
|
61231
61233
|
return;
|
|
61232
61234
|
}
|
|
@@ -72875,4 +72877,4 @@ export {
|
|
|
72875
72877
|
AccessGateExport as AccessGate
|
|
72876
72878
|
};
|
|
72877
72879
|
|
|
72878
|
-
//# debugId=
|
|
72880
|
+
//# debugId=DEEC3443656D929B64756E2164756E21
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Selection_popover,
|
|
3
3
|
selection_popover_default
|
|
4
|
-
} from "../../index.server-
|
|
4
|
+
} from "../../index.server-0yrz8ryn.js";
|
|
5
5
|
import"../../index.server-grq89cv5.js";
|
|
6
6
|
import"../../index.server-s4pfz6pb.js";
|
|
7
7
|
import"../../index.server-mf4dr1kp.js";
|
package/dist/server/index.js
CHANGED
|
@@ -84,9 +84,10 @@ function Selection_popover($$renderer, $$props) {
|
|
|
84
84
|
}
|
|
85
85
|
function restoreFocus(preventScroll = true) {
|
|
86
86
|
const target = restoreFocusElement;
|
|
87
|
-
restoreFocusElement = null;
|
|
88
87
|
if (!target)
|
|
89
88
|
return;
|
|
89
|
+
if (document.activeElement === target)
|
|
90
|
+
return;
|
|
90
91
|
isRestoringFocus = true;
|
|
91
92
|
target.focus({ preventScroll });
|
|
92
93
|
isRestoringFocus = false;
|
|
@@ -195,4 +196,4 @@ function Selection_popover($$renderer, $$props) {
|
|
|
195
196
|
var selection_popover_default = Selection_popover;
|
|
196
197
|
export { Selection_popover, selection_popover_default };
|
|
197
198
|
|
|
198
|
-
//# debugId=
|
|
199
|
+
//# debugId=A16C2C54A73CE48364756E2164756E21
|