@depict-ai/utilishared 2.6.3 → 2.6.4
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/ES10/index.cjs +6 -1
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +6 -1
- package/latest/index.cjs +6 -1
- package/latest/index.d.ts +1 -1
- package/latest/index.js +6 -1
- package/package.json +2 -2
- package/server/ES10/index.cjs +6 -1
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +6 -1
- package/server/latest/index.cjs +6 -1
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +6 -1
package/ES10/index.cjs
CHANGED
|
@@ -207,7 +207,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
207
207
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
208
208
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
209
209
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
210
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.6.
|
|
210
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.6.4";
|
|
211
211
|
const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
212
212
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
213
213
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -6036,6 +6036,9 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
6036
6036
|
$bBfCy$solidjsweb.insert(_el$2, innerRef);
|
|
6037
6037
|
return _el$2;
|
|
6038
6038
|
})();
|
|
6039
|
+
// Start collapsed: `inert` removes the hidden children from tab order and the a11y tree.
|
|
6040
|
+
// `visibility:hidden`/`aria-hidden` above are kept as the fallback for browsers without `inert` (e.g. Safari < 15.5).
|
|
6041
|
+
outerRef.inert = true;
|
|
6039
6042
|
return outerRef;
|
|
6040
6043
|
};
|
|
6041
6044
|
const expand = $3b52ccc10510b32a$export$b3bbfd758f11cfa9(async function () {
|
|
@@ -6045,6 +6048,7 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
6045
6048
|
const start = get_current_height_possibly_during_transition(); // need to read this before cancelling the old animation
|
|
6046
6049
|
outerRef.style.visibility = "";
|
|
6047
6050
|
outerRef.removeAttribute("aria-hidden");
|
|
6051
|
+
outerRef.inert = false; // re-enable focus/tabbing as soon as we start expanding
|
|
6048
6052
|
(_current_animation = current_animation) === null || _current_animation === void 0 || (_current_animation$ca = _current_animation.cancel) === null || _current_animation$ca === void 0 || _current_animation$ca.call(_current_animation); // cancel already running animation so it doesn't get a finish event while we're still animating
|
|
6049
6053
|
const animation = outerRef.animate({
|
|
6050
6054
|
height: [start, get_height()]
|
|
@@ -6069,6 +6073,7 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
6069
6073
|
(_current_animation2 = current_animation) === null || _current_animation2 === void 0 || (_current_animation2$c = _current_animation2.cancel) === null || _current_animation2$c === void 0 || _current_animation2$c.call(_current_animation2);
|
|
6070
6074
|
outerRef.style.overflow = "hidden";
|
|
6071
6075
|
outerRef.ariaHidden = "true";
|
|
6076
|
+
outerRef.inert = true; // remove the collapsing children from tab order immediately (visibility:hidden only lands on finish)
|
|
6072
6077
|
const animation = outerRef.animate({
|
|
6073
6078
|
height: [start, "0px"]
|
|
6074
6079
|
}, {
|
package/ES10/index.d.ts
CHANGED
package/ES10/index.js
CHANGED
|
@@ -8,7 +8,7 @@ register_es_version("utilishared", "ES10");
|
|
|
8
8
|
function $parcel$interopDefault(a) {
|
|
9
9
|
return a && a.__esModule ? a.default : a;
|
|
10
10
|
}
|
|
11
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.6.
|
|
11
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.6.4";
|
|
12
12
|
const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
13
13
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
14
14
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -5837,6 +5837,9 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5837
5837
|
$76EG6$insert(_el$2, innerRef);
|
|
5838
5838
|
return _el$2;
|
|
5839
5839
|
})();
|
|
5840
|
+
// Start collapsed: `inert` removes the hidden children from tab order and the a11y tree.
|
|
5841
|
+
// `visibility:hidden`/`aria-hidden` above are kept as the fallback for browsers without `inert` (e.g. Safari < 15.5).
|
|
5842
|
+
outerRef.inert = true;
|
|
5840
5843
|
return outerRef;
|
|
5841
5844
|
};
|
|
5842
5845
|
const expand = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async function () {
|
|
@@ -5846,6 +5849,7 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5846
5849
|
const start = get_current_height_possibly_during_transition(); // need to read this before cancelling the old animation
|
|
5847
5850
|
outerRef.style.visibility = "";
|
|
5848
5851
|
outerRef.removeAttribute("aria-hidden");
|
|
5852
|
+
outerRef.inert = false; // re-enable focus/tabbing as soon as we start expanding
|
|
5849
5853
|
(_current_animation = current_animation) === null || _current_animation === void 0 || (_current_animation$ca = _current_animation.cancel) === null || _current_animation$ca === void 0 || _current_animation$ca.call(_current_animation); // cancel already running animation so it doesn't get a finish event while we're still animating
|
|
5850
5854
|
const animation = outerRef.animate({
|
|
5851
5855
|
height: [start, get_height()]
|
|
@@ -5870,6 +5874,7 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5870
5874
|
(_current_animation2 = current_animation) === null || _current_animation2 === void 0 || (_current_animation2$c = _current_animation2.cancel) === null || _current_animation2$c === void 0 || _current_animation2$c.call(_current_animation2);
|
|
5871
5875
|
outerRef.style.overflow = "hidden";
|
|
5872
5876
|
outerRef.ariaHidden = "true";
|
|
5877
|
+
outerRef.inert = true; // remove the collapsing children from tab order immediately (visibility:hidden only lands on finish)
|
|
5873
5878
|
const animation = outerRef.animate({
|
|
5874
5879
|
height: [start, "0px"]
|
|
5875
5880
|
}, {
|
package/latest/index.cjs
CHANGED
|
@@ -204,7 +204,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
204
204
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
205
205
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
206
206
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
207
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.6.
|
|
207
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.6.4";
|
|
208
208
|
const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
209
209
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
210
210
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -5531,12 +5531,16 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
5531
5531
|
$z0IcO$solidjsweb.insert(_el$2, innerRef);
|
|
5532
5532
|
return _el$2;
|
|
5533
5533
|
})();
|
|
5534
|
+
// Start collapsed: `inert` removes the hidden children from tab order and the a11y tree.
|
|
5535
|
+
// `visibility:hidden`/`aria-hidden` above are kept as the fallback for browsers without `inert` (e.g. Safari < 15.5).
|
|
5536
|
+
outerRef.inert = true;
|
|
5534
5537
|
return outerRef;
|
|
5535
5538
|
};
|
|
5536
5539
|
const expand = $268cbd9e4ade92db$export$b3bbfd758f11cfa9(async (expanding_delay = delay, time_to_expand = duration) => {
|
|
5537
5540
|
const start = get_current_height_possibly_during_transition(); // need to read this before cancelling the old animation
|
|
5538
5541
|
outerRef.style.visibility = "";
|
|
5539
5542
|
outerRef.removeAttribute("aria-hidden");
|
|
5543
|
+
outerRef.inert = false; // re-enable focus/tabbing as soon as we start expanding
|
|
5540
5544
|
current_animation?.cancel?.(); // cancel already running animation so it doesn't get a finish event while we're still animating
|
|
5541
5545
|
const animation = outerRef.animate({
|
|
5542
5546
|
height: [start, get_height()]
|
|
@@ -5558,6 +5562,7 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
5558
5562
|
current_animation?.cancel?.();
|
|
5559
5563
|
outerRef.style.overflow = "hidden";
|
|
5560
5564
|
outerRef.ariaHidden = "true";
|
|
5565
|
+
outerRef.inert = true; // remove the collapsing children from tab order immediately (visibility:hidden only lands on finish)
|
|
5561
5566
|
const animation = outerRef.animate({
|
|
5562
5567
|
height: [start, "0px"]
|
|
5563
5568
|
}, {
|
package/latest/index.d.ts
CHANGED
package/latest/index.js
CHANGED
|
@@ -5,7 +5,7 @@ register_es_version("utilishared", "latest");
|
|
|
5
5
|
function $parcel$interopDefault(a) {
|
|
6
6
|
return a && a.__esModule ? a.default : a;
|
|
7
7
|
}
|
|
8
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.6.
|
|
8
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.6.4";
|
|
9
9
|
const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
10
10
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
11
11
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -5332,12 +5332,16 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
5332
5332
|
$qgKv4$insert(_el$2, innerRef);
|
|
5333
5333
|
return _el$2;
|
|
5334
5334
|
})();
|
|
5335
|
+
// Start collapsed: `inert` removes the hidden children from tab order and the a11y tree.
|
|
5336
|
+
// `visibility:hidden`/`aria-hidden` above are kept as the fallback for browsers without `inert` (e.g. Safari < 15.5).
|
|
5337
|
+
outerRef.inert = true;
|
|
5335
5338
|
return outerRef;
|
|
5336
5339
|
};
|
|
5337
5340
|
const expand = $b04e44fad5ea42c7$export$b3bbfd758f11cfa9(async (expanding_delay = delay, time_to_expand = duration) => {
|
|
5338
5341
|
const start = get_current_height_possibly_during_transition(); // need to read this before cancelling the old animation
|
|
5339
5342
|
outerRef.style.visibility = "";
|
|
5340
5343
|
outerRef.removeAttribute("aria-hidden");
|
|
5344
|
+
outerRef.inert = false; // re-enable focus/tabbing as soon as we start expanding
|
|
5341
5345
|
current_animation?.cancel?.(); // cancel already running animation so it doesn't get a finish event while we're still animating
|
|
5342
5346
|
const animation = outerRef.animate({
|
|
5343
5347
|
height: [start, get_height()]
|
|
@@ -5359,6 +5363,7 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
5359
5363
|
current_animation?.cancel?.();
|
|
5360
5364
|
outerRef.style.overflow = "hidden";
|
|
5361
5365
|
outerRef.ariaHidden = "true";
|
|
5366
|
+
outerRef.inert = true; // remove the collapsing children from tab order immediately (visibility:hidden only lands on finish)
|
|
5362
5367
|
const animation = outerRef.animate({
|
|
5363
5368
|
height: [start, "0px"]
|
|
5364
5369
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/utilishared",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
],
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"@babel/core": "latest",
|
|
142
|
-
"@depict-ai/types": "^5.6.
|
|
142
|
+
"@depict-ai/types": "^5.6.4",
|
|
143
143
|
"@parcel/resolver-default": "^2.10.3",
|
|
144
144
|
"@sentry/cli": "^2.21.2",
|
|
145
145
|
"@sentry/types": "^7.75.1",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -207,7 +207,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
207
207
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
208
208
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
209
209
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
210
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.6.
|
|
210
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.6.4";
|
|
211
211
|
const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
212
212
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
213
213
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -5920,6 +5920,9 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
5920
5920
|
if (Array.isArray(children) && children.length === 1) children = children[0];
|
|
5921
5921
|
innerRef = $lMD39$solidjsweb.ssr($151f8676c5d42e80$var$_tmpl$, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.escape(children));
|
|
5922
5922
|
outerRef = $lMD39$solidjsweb.ssr($151f8676c5d42e80$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.ssrStyle("overflow:hidden;height:0px;visibility:hidden"), $lMD39$solidjsweb.escape(innerRef));
|
|
5923
|
+
// Start collapsed: `inert` removes the hidden children from tab order and the a11y tree.
|
|
5924
|
+
// `visibility:hidden`/`aria-hidden` above are kept as the fallback for browsers without `inert` (e.g. Safari < 15.5).
|
|
5925
|
+
outerRef.inert = true;
|
|
5923
5926
|
return outerRef;
|
|
5924
5927
|
};
|
|
5925
5928
|
const expand = $3b52ccc10510b32a$export$b3bbfd758f11cfa9(async function () {
|
|
@@ -5929,6 +5932,7 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
5929
5932
|
const start = get_current_height_possibly_during_transition(); // need to read this before cancelling the old animation
|
|
5930
5933
|
outerRef.style.visibility = "";
|
|
5931
5934
|
outerRef.removeAttribute("aria-hidden");
|
|
5935
|
+
outerRef.inert = false; // re-enable focus/tabbing as soon as we start expanding
|
|
5932
5936
|
(_current_animation = current_animation) === null || _current_animation === void 0 || (_current_animation$ca = _current_animation.cancel) === null || _current_animation$ca === void 0 || _current_animation$ca.call(_current_animation); // cancel already running animation so it doesn't get a finish event while we're still animating
|
|
5933
5937
|
const animation = outerRef.animate({
|
|
5934
5938
|
height: [start, get_height()]
|
|
@@ -5953,6 +5957,7 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
5953
5957
|
(_current_animation2 = current_animation) === null || _current_animation2 === void 0 || (_current_animation2$c = _current_animation2.cancel) === null || _current_animation2$c === void 0 || _current_animation2$c.call(_current_animation2);
|
|
5954
5958
|
outerRef.style.overflow = "hidden";
|
|
5955
5959
|
outerRef.ariaHidden = "true";
|
|
5960
|
+
outerRef.inert = true; // remove the collapsing children from tab order immediately (visibility:hidden only lands on finish)
|
|
5956
5961
|
const animation = outerRef.animate({
|
|
5957
5962
|
height: [start, "0px"]
|
|
5958
5963
|
}, {
|
package/server/ES10/index.d.ts
CHANGED
package/server/ES10/index.js
CHANGED
|
@@ -8,7 +8,7 @@ register_es_version("utilishared", "ES10");
|
|
|
8
8
|
function $parcel$interopDefault(a) {
|
|
9
9
|
return a && a.__esModule ? a.default : a;
|
|
10
10
|
}
|
|
11
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.6.
|
|
11
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.6.4";
|
|
12
12
|
const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
|
|
13
13
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
14
14
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -5721,6 +5721,9 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5721
5721
|
if (Array.isArray(children) && children.length === 1) children = children[0];
|
|
5722
5722
|
innerRef = $hrhbO$ssr($0f55c2bc0a7b363b$var$_tmpl$, $hrhbO$ssrHydrationKey(), $hrhbO$escape(children));
|
|
5723
5723
|
outerRef = $hrhbO$ssr($0f55c2bc0a7b363b$var$_tmpl$2, $hrhbO$ssrHydrationKey(), $hrhbO$ssrStyle("overflow:hidden;height:0px;visibility:hidden"), $hrhbO$escape(innerRef));
|
|
5724
|
+
// Start collapsed: `inert` removes the hidden children from tab order and the a11y tree.
|
|
5725
|
+
// `visibility:hidden`/`aria-hidden` above are kept as the fallback for browsers without `inert` (e.g. Safari < 15.5).
|
|
5726
|
+
outerRef.inert = true;
|
|
5724
5727
|
return outerRef;
|
|
5725
5728
|
};
|
|
5726
5729
|
const expand = $5e1f45affc1d7def$export$b3bbfd758f11cfa9(async function () {
|
|
@@ -5730,6 +5733,7 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5730
5733
|
const start = get_current_height_possibly_during_transition(); // need to read this before cancelling the old animation
|
|
5731
5734
|
outerRef.style.visibility = "";
|
|
5732
5735
|
outerRef.removeAttribute("aria-hidden");
|
|
5736
|
+
outerRef.inert = false; // re-enable focus/tabbing as soon as we start expanding
|
|
5733
5737
|
(_current_animation = current_animation) === null || _current_animation === void 0 || (_current_animation$ca = _current_animation.cancel) === null || _current_animation$ca === void 0 || _current_animation$ca.call(_current_animation); // cancel already running animation so it doesn't get a finish event while we're still animating
|
|
5734
5738
|
const animation = outerRef.animate({
|
|
5735
5739
|
height: [start, get_height()]
|
|
@@ -5754,6 +5758,7 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5754
5758
|
(_current_animation2 = current_animation) === null || _current_animation2 === void 0 || (_current_animation2$c = _current_animation2.cancel) === null || _current_animation2$c === void 0 || _current_animation2$c.call(_current_animation2);
|
|
5755
5759
|
outerRef.style.overflow = "hidden";
|
|
5756
5760
|
outerRef.ariaHidden = "true";
|
|
5761
|
+
outerRef.inert = true; // remove the collapsing children from tab order immediately (visibility:hidden only lands on finish)
|
|
5757
5762
|
const animation = outerRef.animate({
|
|
5758
5763
|
height: [start, "0px"]
|
|
5759
5764
|
}, {
|
package/server/latest/index.cjs
CHANGED
|
@@ -204,7 +204,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
204
204
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
205
205
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
206
206
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
207
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.6.
|
|
207
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.6.4";
|
|
208
208
|
const $7b5e577a60b81e60$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
209
209
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
210
210
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -5415,12 +5415,16 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
5415
5415
|
if (Array.isArray(children) && children.length === 1) children = children[0];
|
|
5416
5416
|
innerRef = $jVDDb$solidjsweb.ssr($b25f388f0fe2f1b3$var$_tmpl$, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.escape(children));
|
|
5417
5417
|
outerRef = $jVDDb$solidjsweb.ssr($b25f388f0fe2f1b3$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.ssrStyle(`overflow:hidden;height:0px;visibility:hidden`), $jVDDb$solidjsweb.escape(innerRef));
|
|
5418
|
+
// Start collapsed: `inert` removes the hidden children from tab order and the a11y tree.
|
|
5419
|
+
// `visibility:hidden`/`aria-hidden` above are kept as the fallback for browsers without `inert` (e.g. Safari < 15.5).
|
|
5420
|
+
outerRef.inert = true;
|
|
5418
5421
|
return outerRef;
|
|
5419
5422
|
};
|
|
5420
5423
|
const expand = $268cbd9e4ade92db$export$b3bbfd758f11cfa9(async (expanding_delay = delay, time_to_expand = duration) => {
|
|
5421
5424
|
const start = get_current_height_possibly_during_transition(); // need to read this before cancelling the old animation
|
|
5422
5425
|
outerRef.style.visibility = "";
|
|
5423
5426
|
outerRef.removeAttribute("aria-hidden");
|
|
5427
|
+
outerRef.inert = false; // re-enable focus/tabbing as soon as we start expanding
|
|
5424
5428
|
current_animation?.cancel?.(); // cancel already running animation so it doesn't get a finish event while we're still animating
|
|
5425
5429
|
const animation = outerRef.animate({
|
|
5426
5430
|
height: [start, get_height()]
|
|
@@ -5442,6 +5446,7 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
5442
5446
|
current_animation?.cancel?.();
|
|
5443
5447
|
outerRef.style.overflow = "hidden";
|
|
5444
5448
|
outerRef.ariaHidden = "true";
|
|
5449
|
+
outerRef.inert = true; // remove the collapsing children from tab order immediately (visibility:hidden only lands on finish)
|
|
5445
5450
|
const animation = outerRef.animate({
|
|
5446
5451
|
height: [start, "0px"]
|
|
5447
5452
|
}, {
|
package/server/latest/index.d.ts
CHANGED
package/server/latest/index.js
CHANGED
|
@@ -5,7 +5,7 @@ register_es_version("utilishared", "latest");
|
|
|
5
5
|
function $parcel$interopDefault(a) {
|
|
6
6
|
return a && a.__esModule ? a.default : a;
|
|
7
7
|
}
|
|
8
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.6.
|
|
8
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.6.4";
|
|
9
9
|
const $571bce04eb920cd8$export$55fe61489d2c7417 = /*@__PURE__*/(() => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && (globalThis?.document?.currentScript?.dataset?.debug === "true" || globalThis?.localStorage?.getItem?.("debug") === "true"))();
|
|
10
10
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
11
11
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -5216,12 +5216,16 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
5216
5216
|
if (Array.isArray(children) && children.length === 1) children = children[0];
|
|
5217
5217
|
innerRef = $f3g9l$ssr($7f57d546b5d5b3d6$var$_tmpl$, $f3g9l$ssrHydrationKey(), $f3g9l$escape(children));
|
|
5218
5218
|
outerRef = $f3g9l$ssr($7f57d546b5d5b3d6$var$_tmpl$2, $f3g9l$ssrHydrationKey(), $f3g9l$ssrStyle(`overflow:hidden;height:0px;visibility:hidden`), $f3g9l$escape(innerRef));
|
|
5219
|
+
// Start collapsed: `inert` removes the hidden children from tab order and the a11y tree.
|
|
5220
|
+
// `visibility:hidden`/`aria-hidden` above are kept as the fallback for browsers without `inert` (e.g. Safari < 15.5).
|
|
5221
|
+
outerRef.inert = true;
|
|
5219
5222
|
return outerRef;
|
|
5220
5223
|
};
|
|
5221
5224
|
const expand = $b04e44fad5ea42c7$export$b3bbfd758f11cfa9(async (expanding_delay = delay, time_to_expand = duration) => {
|
|
5222
5225
|
const start = get_current_height_possibly_during_transition(); // need to read this before cancelling the old animation
|
|
5223
5226
|
outerRef.style.visibility = "";
|
|
5224
5227
|
outerRef.removeAttribute("aria-hidden");
|
|
5228
|
+
outerRef.inert = false; // re-enable focus/tabbing as soon as we start expanding
|
|
5225
5229
|
current_animation?.cancel?.(); // cancel already running animation so it doesn't get a finish event while we're still animating
|
|
5226
5230
|
const animation = outerRef.animate({
|
|
5227
5231
|
height: [start, get_height()]
|
|
@@ -5243,6 +5247,7 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
5243
5247
|
current_animation?.cancel?.();
|
|
5244
5248
|
outerRef.style.overflow = "hidden";
|
|
5245
5249
|
outerRef.ariaHidden = "true";
|
|
5250
|
+
outerRef.inert = true; // remove the collapsing children from tab order immediately (visibility:hidden only lands on finish)
|
|
5246
5251
|
const animation = outerRef.animate({
|
|
5247
5252
|
height: [start, "0px"]
|
|
5248
5253
|
}, {
|