@depict-ai/utilishared 2.6.2 → 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 +18 -13
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +18 -13
- package/latest/index.cjs +18 -13
- package/latest/index.d.ts +1 -1
- package/latest/index.js +18 -13
- package/package.json +2 -2
- package/server/ES10/index.cjs +18 -13
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +18 -13
- package/server/latest/index.cjs +18 -13
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +18 -13
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]";
|
|
@@ -1567,8 +1567,8 @@ function $628cae9fd43bb48b$var$switch_elements(from, to) {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
1569
|
// @ts-ignore
|
|
1570
|
-
var $
|
|
1571
|
-
$
|
|
1570
|
+
var $99ca81e1ba6207c9$exports = {};
|
|
1571
|
+
$99ca81e1ba6207c9$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1572
1572
|
let $5e0fc3a8b68f26c7$var$has_queued_microtask = false;
|
|
1573
1573
|
const $5e0fc3a8b68f26c7$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1574
1574
|
const $5e0fc3a8b68f26c7$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$3b52ccc10510b32a$export$b3bbfd758f11cfa9($5e0fc3a8b68f26c7$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -3182,7 +3182,7 @@ class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$ex
|
|
|
3182
3182
|
function $3f49f9b73bfc2a38$export$f1b8b9fd75ddcab1(slider) {
|
|
3183
3183
|
const style_elem = document.createElement("style");
|
|
3184
3184
|
style_elem.type = "text/css";
|
|
3185
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
3185
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($99ca81e1ba6207c9$exports)));
|
|
3186
3186
|
slider.container.appendChild(style_elem);
|
|
3187
3187
|
}
|
|
3188
3188
|
|
|
@@ -5832,8 +5832,8 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
|
5832
5832
|
}));
|
|
5833
5833
|
}
|
|
5834
5834
|
$bBfCy$solidjsweb.delegateEvents(["click"]);
|
|
5835
|
-
var $
|
|
5836
|
-
$
|
|
5835
|
+
var $1d65b2433be03961$exports = {};
|
|
5836
|
+
$1d65b2433be03961$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5837
5837
|
var $ba9b4cd7e24de87e$var$_tmpl$ = /*#__PURE__*/$bBfCy$solidjsweb.template(`<div>`);
|
|
5838
5838
|
let $ba9b4cd7e24de87e$var$inserted = false;
|
|
5839
5839
|
const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
@@ -5846,7 +5846,7 @@ const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
|
5846
5846
|
} = _ref;
|
|
5847
5847
|
if (!$ba9b4cd7e24de87e$var$inserted) {
|
|
5848
5848
|
// Insert styling on first import
|
|
5849
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5849
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($1d65b2433be03961$exports)));
|
|
5850
5850
|
$ba9b4cd7e24de87e$var$inserted = true;
|
|
5851
5851
|
}
|
|
5852
5852
|
return (() => {
|
|
@@ -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
|
}, {
|
|
@@ -6090,8 +6095,8 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
6090
6095
|
collapse: collapse
|
|
6091
6096
|
};
|
|
6092
6097
|
};
|
|
6093
|
-
var $
|
|
6094
|
-
$
|
|
6098
|
+
var $a89651adb1d138c1$exports = {};
|
|
6099
|
+
$a89651adb1d138c1$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
|
|
6095
6100
|
var $b42b9f62e8b6cb2d$var$_tmpl$ = /*#__PURE__*/$bBfCy$solidjsweb.template(`<img>`),
|
|
6096
6101
|
$b42b9f62e8b6cb2d$var$_tmpl$2 = /*#__PURE__*/$bBfCy$solidjsweb.template(`<source sizes=0px>`),
|
|
6097
6102
|
$b42b9f62e8b6cb2d$var$_tmpl$3 = /*#__PURE__*/$bBfCy$solidjsweb.template(`<picture>`);
|
|
@@ -6272,7 +6277,7 @@ const $dfce76a4aeb41067$export$788756b42446dc2d = _ref => {
|
|
|
6272
6277
|
} = _ref;
|
|
6273
6278
|
if (!$dfce76a4aeb41067$var$inserted) {
|
|
6274
6279
|
// Insert styling on first import
|
|
6275
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6280
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($a89651adb1d138c1$exports)));
|
|
6276
6281
|
$dfce76a4aeb41067$var$inserted = true;
|
|
6277
6282
|
}
|
|
6278
6283
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $dfce76a4aeb41067$var$Image(options) : $dfce76a4aeb41067$var$CompatibleImage(options);
|
|
@@ -6363,8 +6368,8 @@ function $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
6363
6368
|
}
|
|
6364
6369
|
return sourceset_component;
|
|
6365
6370
|
}
|
|
6366
|
-
var $
|
|
6367
|
-
$
|
|
6371
|
+
var $7c27cc26a0ade1c3$exports = {};
|
|
6372
|
+
$7c27cc26a0ade1c3$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
6368
6373
|
var $8928a1027461fba4$var$_tmpl$ = /*#__PURE__*/$bBfCy$solidjsweb.template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
6369
6374
|
$8928a1027461fba4$var$_tmpl$2 = /*#__PURE__*/$bBfCy$solidjsweb.template(`<div class=second-image-container>`);
|
|
6370
6375
|
// Saving bytez
|
|
@@ -6499,7 +6504,7 @@ const $8928a1027461fba4$export$2369f6fc1c911576 = _ref => {
|
|
|
6499
6504
|
...options
|
|
6500
6505
|
} = _ref;
|
|
6501
6506
|
if (!$8928a1027461fba4$var$styling_inserted) {
|
|
6502
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6507
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($7c27cc26a0ade1c3$exports)));
|
|
6503
6508
|
$8928a1027461fba4$var$styling_inserted = true;
|
|
6504
6509
|
}
|
|
6505
6510
|
const main_image = $dfce76a4aeb41067$export$788756b42446dc2d({
|
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]";
|
|
@@ -1368,8 +1368,8 @@ function $e64690bc3a7de2b1$var$switch_elements(from, to) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
// @ts-ignore
|
|
1371
|
-
var $
|
|
1372
|
-
$
|
|
1371
|
+
var $0f7a1c063ac160c5$exports = {};
|
|
1372
|
+
$0f7a1c063ac160c5$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1373
1373
|
let $2c3b8e0102339cd6$var$has_queued_microtask = false;
|
|
1374
1374
|
const $2c3b8e0102339cd6$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1375
1375
|
const $2c3b8e0102339cd6$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9($2c3b8e0102339cd6$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2983,7 +2983,7 @@ class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$ex
|
|
|
2983
2983
|
function $0342f59060b8a196$export$f1b8b9fd75ddcab1(slider) {
|
|
2984
2984
|
const style_elem = document.createElement("style");
|
|
2985
2985
|
style_elem.type = "text/css";
|
|
2986
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2986
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($0f7a1c063ac160c5$exports)));
|
|
2987
2987
|
slider.container.appendChild(style_elem);
|
|
2988
2988
|
}
|
|
2989
2989
|
|
|
@@ -5633,8 +5633,8 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
5633
5633
|
}));
|
|
5634
5634
|
}
|
|
5635
5635
|
$76EG6$delegateEvents(["click"]);
|
|
5636
|
-
var $
|
|
5637
|
-
$
|
|
5636
|
+
var $cf555a386961fbf4$exports = {};
|
|
5637
|
+
$cf555a386961fbf4$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5638
5638
|
var $adc0bb548fdb574f$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div>`);
|
|
5639
5639
|
let $adc0bb548fdb574f$var$inserted = false;
|
|
5640
5640
|
const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
@@ -5647,7 +5647,7 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
|
5647
5647
|
} = _ref;
|
|
5648
5648
|
if (!$adc0bb548fdb574f$var$inserted) {
|
|
5649
5649
|
// Insert styling on first import
|
|
5650
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5650
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($cf555a386961fbf4$exports)));
|
|
5651
5651
|
$adc0bb548fdb574f$var$inserted = true;
|
|
5652
5652
|
}
|
|
5653
5653
|
return (() => {
|
|
@@ -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
|
}, {
|
|
@@ -5891,8 +5896,8 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5891
5896
|
collapse: collapse
|
|
5892
5897
|
};
|
|
5893
5898
|
};
|
|
5894
|
-
var $
|
|
5895
|
-
$
|
|
5899
|
+
var $5786e5227428e0a9$exports = {};
|
|
5900
|
+
$5786e5227428e0a9$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
|
|
5896
5901
|
var $9ef5ce4804a3b61b$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<img>`),
|
|
5897
5902
|
$9ef5ce4804a3b61b$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<source sizes=0px>`),
|
|
5898
5903
|
$9ef5ce4804a3b61b$var$_tmpl$3 = /*#__PURE__*/$76EG6$template(`<picture>`);
|
|
@@ -6073,7 +6078,7 @@ const $c987460cedc0d7ec$export$788756b42446dc2d = _ref => {
|
|
|
6073
6078
|
} = _ref;
|
|
6074
6079
|
if (!$c987460cedc0d7ec$var$inserted) {
|
|
6075
6080
|
// Insert styling on first import
|
|
6076
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6081
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5786e5227428e0a9$exports)));
|
|
6077
6082
|
$c987460cedc0d7ec$var$inserted = true;
|
|
6078
6083
|
}
|
|
6079
6084
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $c987460cedc0d7ec$var$Image(options) : $c987460cedc0d7ec$var$CompatibleImage(options);
|
|
@@ -6164,8 +6169,8 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
6164
6169
|
}
|
|
6165
6170
|
return sourceset_component;
|
|
6166
6171
|
}
|
|
6167
|
-
var $
|
|
6168
|
-
$
|
|
6172
|
+
var $a3e5b9eb19a5a930$exports = {};
|
|
6173
|
+
$a3e5b9eb19a5a930$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
6169
6174
|
var $73f0a7e385687d5d$var$_tmpl$ = /*#__PURE__*/$76EG6$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
6170
6175
|
$73f0a7e385687d5d$var$_tmpl$2 = /*#__PURE__*/$76EG6$template(`<div class=second-image-container>`);
|
|
6171
6176
|
// Saving bytez
|
|
@@ -6300,7 +6305,7 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
|
|
|
6300
6305
|
...options
|
|
6301
6306
|
} = _ref;
|
|
6302
6307
|
if (!$73f0a7e385687d5d$var$styling_inserted) {
|
|
6303
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6308
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($a3e5b9eb19a5a930$exports)));
|
|
6304
6309
|
$73f0a7e385687d5d$var$styling_inserted = true;
|
|
6305
6310
|
}
|
|
6306
6311
|
const main_image = $c987460cedc0d7ec$export$788756b42446dc2d({
|
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]";
|
|
@@ -1402,8 +1402,8 @@ function $807b852d8decb547$var$switch_elements(from, to) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
1404
|
// @ts-ignore
|
|
1405
|
-
var $
|
|
1406
|
-
$
|
|
1405
|
+
var $5511b7a85dfd2513$exports = {};
|
|
1406
|
+
$5511b7a85dfd2513$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1407
1407
|
let $55595fc7bb226f61$var$has_queued_microtask = false;
|
|
1408
1408
|
const $55595fc7bb226f61$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1409
1409
|
const $55595fc7bb226f61$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$268cbd9e4ade92db$export$b3bbfd758f11cfa9($55595fc7bb226f61$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2795,7 +2795,7 @@ class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$ex
|
|
|
2795
2795
|
function $e090b20cef3f0516$export$f1b8b9fd75ddcab1(slider) {
|
|
2796
2796
|
const style_elem = document.createElement("style");
|
|
2797
2797
|
style_elem.type = "text/css";
|
|
2798
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2798
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($5511b7a85dfd2513$exports)));
|
|
2799
2799
|
slider.container.appendChild(style_elem);
|
|
2800
2800
|
}
|
|
2801
2801
|
|
|
@@ -5339,8 +5339,8 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
5339
5339
|
}));
|
|
5340
5340
|
}
|
|
5341
5341
|
$z0IcO$solidjsweb.delegateEvents(["click"]);
|
|
5342
|
-
var $
|
|
5343
|
-
$
|
|
5342
|
+
var $32d59e0a3b1df969$exports = {};
|
|
5343
|
+
$32d59e0a3b1df969$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5344
5344
|
var $e587cb3b31b82f43$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div>`);
|
|
5345
5345
|
let $e587cb3b31b82f43$var$inserted = false;
|
|
5346
5346
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
@@ -5352,7 +5352,7 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
|
5352
5352
|
}) => {
|
|
5353
5353
|
if (!$e587cb3b31b82f43$var$inserted) {
|
|
5354
5354
|
// Insert styling on first import
|
|
5355
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5355
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($32d59e0a3b1df969$exports)));
|
|
5356
5356
|
$e587cb3b31b82f43$var$inserted = true;
|
|
5357
5357
|
}
|
|
5358
5358
|
return (() => {
|
|
@@ -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
|
}, {
|
|
@@ -5579,8 +5584,8 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
5579
5584
|
collapse: collapse
|
|
5580
5585
|
};
|
|
5581
5586
|
};
|
|
5582
|
-
var $
|
|
5583
|
-
$
|
|
5587
|
+
var $35c9f1ebe12f9a64$exports = {};
|
|
5588
|
+
$35c9f1ebe12f9a64$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
5584
5589
|
var $ff973b2032639b5f$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<img>`),
|
|
5585
5590
|
$ff973b2032639b5f$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<source sizes=0px>`),
|
|
5586
5591
|
$ff973b2032639b5f$var$_tmpl$3 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<picture>`);
|
|
@@ -5751,7 +5756,7 @@ const $a312bccd722ac9e4$export$788756b42446dc2d = ({
|
|
|
5751
5756
|
}) => {
|
|
5752
5757
|
if (!$a312bccd722ac9e4$var$inserted) {
|
|
5753
5758
|
// Insert styling on first import
|
|
5754
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5759
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($35c9f1ebe12f9a64$exports)));
|
|
5755
5760
|
$a312bccd722ac9e4$var$inserted = true;
|
|
5756
5761
|
}
|
|
5757
5762
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $a312bccd722ac9e4$var$Image(options) : $a312bccd722ac9e4$var$CompatibleImage(options);
|
|
@@ -5835,8 +5840,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
5835
5840
|
}
|
|
5836
5841
|
return sourceset_component;
|
|
5837
5842
|
}
|
|
5838
|
-
var $
|
|
5839
|
-
$
|
|
5843
|
+
var $5b367163fde37fa9$exports = {};
|
|
5844
|
+
$5b367163fde37fa9$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
5840
5845
|
var $a656daa2fa8c279a$var$_tmpl$ = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
5841
5846
|
$a656daa2fa8c279a$var$_tmpl$2 = /*#__PURE__*/$z0IcO$solidjsweb.template(`<div class=second-image-container>`);
|
|
5842
5847
|
// Saving bytez
|
|
@@ -5965,7 +5970,7 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
|
|
|
5965
5970
|
...options
|
|
5966
5971
|
}) => {
|
|
5967
5972
|
if (!$a656daa2fa8c279a$var$styling_inserted) {
|
|
5968
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5973
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5b367163fde37fa9$exports)));
|
|
5969
5974
|
$a656daa2fa8c279a$var$styling_inserted = true;
|
|
5970
5975
|
}
|
|
5971
5976
|
const main_image = $a312bccd722ac9e4$export$788756b42446dc2d({
|
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]";
|
|
@@ -1203,8 +1203,8 @@ function $e867e2f1fb3bcc09$var$switch_elements(from, to) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
// @ts-ignore
|
|
1206
|
-
var $
|
|
1207
|
-
$
|
|
1206
|
+
var $df53fa48eb952087$exports = {};
|
|
1207
|
+
$df53fa48eb952087$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1208
1208
|
let $8be08add28592faf$var$has_queued_microtask = false;
|
|
1209
1209
|
const $8be08add28592faf$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1210
1210
|
const $8be08add28592faf$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9($8be08add28592faf$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2596,7 +2596,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
2596
2596
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
2597
2597
|
const style_elem = document.createElement("style");
|
|
2598
2598
|
style_elem.type = "text/css";
|
|
2599
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2599
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($df53fa48eb952087$exports)));
|
|
2600
2600
|
slider.container.appendChild(style_elem);
|
|
2601
2601
|
}
|
|
2602
2602
|
|
|
@@ -5140,8 +5140,8 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
5140
5140
|
}));
|
|
5141
5141
|
}
|
|
5142
5142
|
$qgKv4$delegateEvents(["click"]);
|
|
5143
|
-
var $
|
|
5144
|
-
$
|
|
5143
|
+
var $dafb5acaef48b99b$exports = {};
|
|
5144
|
+
$dafb5acaef48b99b$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5145
5145
|
var $ad592d9ddbcffe72$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div>`);
|
|
5146
5146
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
5147
5147
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
@@ -5153,7 +5153,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
|
5153
5153
|
}) => {
|
|
5154
5154
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
5155
5155
|
// Insert styling on first import
|
|
5156
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5156
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($dafb5acaef48b99b$exports)));
|
|
5157
5157
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
5158
5158
|
}
|
|
5159
5159
|
return (() => {
|
|
@@ -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
|
}, {
|
|
@@ -5380,8 +5385,8 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
5380
5385
|
collapse: collapse
|
|
5381
5386
|
};
|
|
5382
5387
|
};
|
|
5383
|
-
var $
|
|
5384
|
-
$
|
|
5388
|
+
var $62cc182e25269720$exports = {};
|
|
5389
|
+
$62cc182e25269720$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
5385
5390
|
var $45af9e834781a9bc$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<img>`),
|
|
5386
5391
|
$45af9e834781a9bc$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<source sizes=0px>`),
|
|
5387
5392
|
$45af9e834781a9bc$var$_tmpl$3 = /*#__PURE__*/$qgKv4$template(`<picture>`);
|
|
@@ -5552,7 +5557,7 @@ const $914971fb43986a16$export$788756b42446dc2d = ({
|
|
|
5552
5557
|
}) => {
|
|
5553
5558
|
if (!$914971fb43986a16$var$inserted) {
|
|
5554
5559
|
// Insert styling on first import
|
|
5555
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5560
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($62cc182e25269720$exports)));
|
|
5556
5561
|
$914971fb43986a16$var$inserted = true;
|
|
5557
5562
|
}
|
|
5558
5563
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -5636,8 +5641,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
5636
5641
|
}
|
|
5637
5642
|
return sourceset_component;
|
|
5638
5643
|
}
|
|
5639
|
-
var $
|
|
5640
|
-
$
|
|
5644
|
+
var $5c965a640a67fb60$exports = {};
|
|
5645
|
+
$5c965a640a67fb60$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
5641
5646
|
var $8483d1d9fcee52ec$var$_tmpl$ = /*#__PURE__*/$qgKv4$template(`<div class=images-container><!$><!/><div class=main-image-container>`),
|
|
5642
5647
|
$8483d1d9fcee52ec$var$_tmpl$2 = /*#__PURE__*/$qgKv4$template(`<div class=second-image-container>`);
|
|
5643
5648
|
// Saving bytez
|
|
@@ -5766,7 +5771,7 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({
|
|
|
5766
5771
|
...options
|
|
5767
5772
|
}) => {
|
|
5768
5773
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
5769
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5774
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5c965a640a67fb60$exports)));
|
|
5770
5775
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
5771
5776
|
}
|
|
5772
5777
|
const main_image = $914971fb43986a16$export$788756b42446dc2d({
|
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]";
|
|
@@ -1567,8 +1567,8 @@ function $628cae9fd43bb48b$var$switch_elements(from, to) {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
1569
|
// @ts-ignore
|
|
1570
|
-
var $
|
|
1571
|
-
$
|
|
1570
|
+
var $99ca81e1ba6207c9$exports = {};
|
|
1571
|
+
$99ca81e1ba6207c9$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1572
1572
|
let $5e0fc3a8b68f26c7$var$has_queued_microtask = false;
|
|
1573
1573
|
const $5e0fc3a8b68f26c7$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1574
1574
|
const $5e0fc3a8b68f26c7$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$3b52ccc10510b32a$export$b3bbfd758f11cfa9($5e0fc3a8b68f26c7$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -3182,7 +3182,7 @@ class $3f49f9b73bfc2a38$export$4d41c6499d53639c extends (0, $817cb0cb4b98187e$ex
|
|
|
3182
3182
|
function $3f49f9b73bfc2a38$export$f1b8b9fd75ddcab1(slider) {
|
|
3183
3183
|
const style_elem = document.createElement("style");
|
|
3184
3184
|
style_elem.type = "text/css";
|
|
3185
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
3185
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($99ca81e1ba6207c9$exports)));
|
|
3186
3186
|
slider.container.appendChild(style_elem);
|
|
3187
3187
|
}
|
|
3188
3188
|
|
|
@@ -5765,8 +5765,8 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
|
5765
5765
|
on_close_(exit_oos_iterator);
|
|
5766
5766
|
}));
|
|
5767
5767
|
}
|
|
5768
|
-
var $
|
|
5769
|
-
$
|
|
5768
|
+
var $1d65b2433be03961$exports = {};
|
|
5769
|
+
$1d65b2433be03961$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5770
5770
|
let $ba9b4cd7e24de87e$var$inserted = false;
|
|
5771
5771
|
const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
5772
5772
|
let {
|
|
@@ -5778,7 +5778,7 @@ const $ba9b4cd7e24de87e$export$84712d0562a614b8 = _ref => {
|
|
|
5778
5778
|
} = _ref;
|
|
5779
5779
|
if (!$ba9b4cd7e24de87e$var$inserted) {
|
|
5780
5780
|
// Insert styling on first import
|
|
5781
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5781
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($1d65b2433be03961$exports)));
|
|
5782
5782
|
$ba9b4cd7e24de87e$var$inserted = true;
|
|
5783
5783
|
}
|
|
5784
5784
|
return $lMD39$solidjsweb.ssrElement("div", $lMD39$solidjsweb.mergeProps({
|
|
@@ -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
|
}, {
|
|
@@ -5974,8 +5979,8 @@ const $151f8676c5d42e80$export$237455ad7e59d4e5 = function () {
|
|
|
5974
5979
|
collapse: collapse
|
|
5975
5980
|
};
|
|
5976
5981
|
};
|
|
5977
|
-
var $
|
|
5978
|
-
$
|
|
5982
|
+
var $a89651adb1d138c1$exports = {};
|
|
5983
|
+
$a89651adb1d138c1$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
|
|
5979
5984
|
var $b42b9f62e8b6cb2d$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
5980
5985
|
const $b42b9f62e8b6cb2d$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
5981
5986
|
const $b42b9f62e8b6cb2d$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -6137,7 +6142,7 @@ const $dfce76a4aeb41067$export$788756b42446dc2d = _ref => {
|
|
|
6137
6142
|
} = _ref;
|
|
6138
6143
|
if (!$dfce76a4aeb41067$var$inserted) {
|
|
6139
6144
|
// Insert styling on first import
|
|
6140
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6145
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($a89651adb1d138c1$exports)));
|
|
6141
6146
|
$dfce76a4aeb41067$var$inserted = true;
|
|
6142
6147
|
}
|
|
6143
6148
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $dfce76a4aeb41067$var$Image(options) : $dfce76a4aeb41067$var$CompatibleImage(options);
|
|
@@ -6212,8 +6217,8 @@ function $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
6212
6217
|
}
|
|
6213
6218
|
return sourceset_component;
|
|
6214
6219
|
}
|
|
6215
|
-
var $
|
|
6216
|
-
$
|
|
6220
|
+
var $7c27cc26a0ade1c3$exports = {};
|
|
6221
|
+
$7c27cc26a0ade1c3$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
6217
6222
|
var $8928a1027461fba4$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
6218
6223
|
$8928a1027461fba4$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
6219
6224
|
// Saving bytez
|
|
@@ -6348,7 +6353,7 @@ const $8928a1027461fba4$export$2369f6fc1c911576 = _ref => {
|
|
|
6348
6353
|
...options
|
|
6349
6354
|
} = _ref;
|
|
6350
6355
|
if (!$8928a1027461fba4$var$styling_inserted) {
|
|
6351
|
-
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6356
|
+
$e45474c7d6e21cfa$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($7c27cc26a0ade1c3$exports)));
|
|
6352
6357
|
$8928a1027461fba4$var$styling_inserted = true;
|
|
6353
6358
|
}
|
|
6354
6359
|
const main_image = $dfce76a4aeb41067$export$788756b42446dc2d({
|
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]";
|
|
@@ -1368,8 +1368,8 @@ function $e64690bc3a7de2b1$var$switch_elements(from, to) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
// @ts-ignore
|
|
1371
|
-
var $
|
|
1372
|
-
$
|
|
1371
|
+
var $0f7a1c063ac160c5$exports = {};
|
|
1372
|
+
$0f7a1c063ac160c5$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1373
1373
|
let $2c3b8e0102339cd6$var$has_queued_microtask = false;
|
|
1374
1374
|
const $2c3b8e0102339cd6$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1375
1375
|
const $2c3b8e0102339cd6$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9($2c3b8e0102339cd6$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2983,7 +2983,7 @@ class $0342f59060b8a196$export$4d41c6499d53639c extends (0, $f340c415f2e1d03a$ex
|
|
|
2983
2983
|
function $0342f59060b8a196$export$f1b8b9fd75ddcab1(slider) {
|
|
2984
2984
|
const style_elem = document.createElement("style");
|
|
2985
2985
|
style_elem.type = "text/css";
|
|
2986
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2986
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($0f7a1c063ac160c5$exports)));
|
|
2987
2987
|
slider.container.appendChild(style_elem);
|
|
2988
2988
|
}
|
|
2989
2989
|
|
|
@@ -5566,8 +5566,8 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
5566
5566
|
on_close_(exit_oos_iterator);
|
|
5567
5567
|
}));
|
|
5568
5568
|
}
|
|
5569
|
-
var $
|
|
5570
|
-
$
|
|
5569
|
+
var $cf555a386961fbf4$exports = {};
|
|
5570
|
+
$cf555a386961fbf4$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5571
5571
|
let $adc0bb548fdb574f$var$inserted = false;
|
|
5572
5572
|
const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
5573
5573
|
let {
|
|
@@ -5579,7 +5579,7 @@ const $adc0bb548fdb574f$export$84712d0562a614b8 = _ref => {
|
|
|
5579
5579
|
} = _ref;
|
|
5580
5580
|
if (!$adc0bb548fdb574f$var$inserted) {
|
|
5581
5581
|
// Insert styling on first import
|
|
5582
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5582
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($cf555a386961fbf4$exports)));
|
|
5583
5583
|
$adc0bb548fdb574f$var$inserted = true;
|
|
5584
5584
|
}
|
|
5585
5585
|
return $hrhbO$ssrElement("div", $hrhbO$mergeProps({
|
|
@@ -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
|
}, {
|
|
@@ -5775,8 +5780,8 @@ const $0f55c2bc0a7b363b$export$237455ad7e59d4e5 = function () {
|
|
|
5775
5780
|
collapse: collapse
|
|
5776
5781
|
};
|
|
5777
5782
|
};
|
|
5778
|
-
var $
|
|
5779
|
-
$
|
|
5783
|
+
var $5786e5227428e0a9$exports = {};
|
|
5784
|
+
$5786e5227428e0a9$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n";
|
|
5780
5785
|
var $9ef5ce4804a3b61b$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
5781
5786
|
const $9ef5ce4804a3b61b$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
5782
5787
|
const $9ef5ce4804a3b61b$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -5938,7 +5943,7 @@ const $c987460cedc0d7ec$export$788756b42446dc2d = _ref => {
|
|
|
5938
5943
|
} = _ref;
|
|
5939
5944
|
if (!$c987460cedc0d7ec$var$inserted) {
|
|
5940
5945
|
// Insert styling on first import
|
|
5941
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5946
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5786e5227428e0a9$exports)));
|
|
5942
5947
|
$c987460cedc0d7ec$var$inserted = true;
|
|
5943
5948
|
}
|
|
5944
5949
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $c987460cedc0d7ec$var$Image(options) : $c987460cedc0d7ec$var$CompatibleImage(options);
|
|
@@ -6013,8 +6018,8 @@ function $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options) {
|
|
|
6013
6018
|
}
|
|
6014
6019
|
return sourceset_component;
|
|
6015
6020
|
}
|
|
6016
|
-
var $
|
|
6017
|
-
$
|
|
6021
|
+
var $a3e5b9eb19a5a930$exports = {};
|
|
6022
|
+
$a3e5b9eb19a5a930$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
6018
6023
|
var $73f0a7e385687d5d$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
6019
6024
|
$73f0a7e385687d5d$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
6020
6025
|
// Saving bytez
|
|
@@ -6149,7 +6154,7 @@ const $73f0a7e385687d5d$export$2369f6fc1c911576 = _ref => {
|
|
|
6149
6154
|
...options
|
|
6150
6155
|
} = _ref;
|
|
6151
6156
|
if (!$73f0a7e385687d5d$var$styling_inserted) {
|
|
6152
|
-
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
6157
|
+
$1013f2e568f87406$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($a3e5b9eb19a5a930$exports)));
|
|
6153
6158
|
$73f0a7e385687d5d$var$styling_inserted = true;
|
|
6154
6159
|
}
|
|
6155
6160
|
const main_image = $c987460cedc0d7ec$export$788756b42446dc2d({
|
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]";
|
|
@@ -1402,8 +1402,8 @@ function $807b852d8decb547$var$switch_elements(from, to) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
|
|
1404
1404
|
// @ts-ignore
|
|
1405
|
-
var $
|
|
1406
|
-
$
|
|
1405
|
+
var $5511b7a85dfd2513$exports = {};
|
|
1406
|
+
$5511b7a85dfd2513$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1407
1407
|
let $55595fc7bb226f61$var$has_queued_microtask = false;
|
|
1408
1408
|
const $55595fc7bb226f61$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1409
1409
|
const $55595fc7bb226f61$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$268cbd9e4ade92db$export$b3bbfd758f11cfa9($55595fc7bb226f61$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2795,7 +2795,7 @@ class $e090b20cef3f0516$export$4d41c6499d53639c extends (0, $a69a5236b5814082$ex
|
|
|
2795
2795
|
function $e090b20cef3f0516$export$f1b8b9fd75ddcab1(slider) {
|
|
2796
2796
|
const style_elem = document.createElement("style");
|
|
2797
2797
|
style_elem.type = "text/css";
|
|
2798
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2798
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($5511b7a85dfd2513$exports)));
|
|
2799
2799
|
slider.container.appendChild(style_elem);
|
|
2800
2800
|
}
|
|
2801
2801
|
|
|
@@ -5272,8 +5272,8 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
5272
5272
|
on_close_(exit_oos_iterator);
|
|
5273
5273
|
}));
|
|
5274
5274
|
}
|
|
5275
|
-
var $
|
|
5276
|
-
$
|
|
5275
|
+
var $32d59e0a3b1df969$exports = {};
|
|
5276
|
+
$32d59e0a3b1df969$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5277
5277
|
let $e587cb3b31b82f43$var$inserted = false;
|
|
5278
5278
|
const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
5279
5279
|
width: width,
|
|
@@ -5284,7 +5284,7 @@ const $e587cb3b31b82f43$export$84712d0562a614b8 = ({
|
|
|
5284
5284
|
}) => {
|
|
5285
5285
|
if (!$e587cb3b31b82f43$var$inserted) {
|
|
5286
5286
|
// Insert styling on first import
|
|
5287
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5287
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($32d59e0a3b1df969$exports)));
|
|
5288
5288
|
$e587cb3b31b82f43$var$inserted = true;
|
|
5289
5289
|
}
|
|
5290
5290
|
return $jVDDb$solidjsweb.ssrElement("div", $jVDDb$solidjsweb.mergeProps({
|
|
@@ -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
|
}, {
|
|
@@ -5463,8 +5468,8 @@ const $b25f388f0fe2f1b3$export$237455ad7e59d4e5 = ({
|
|
|
5463
5468
|
collapse: collapse
|
|
5464
5469
|
};
|
|
5465
5470
|
};
|
|
5466
|
-
var $
|
|
5467
|
-
$
|
|
5471
|
+
var $35c9f1ebe12f9a64$exports = {};
|
|
5472
|
+
$35c9f1ebe12f9a64$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
5468
5473
|
var $ff973b2032639b5f$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
5469
5474
|
const $ff973b2032639b5f$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
5470
5475
|
const $ff973b2032639b5f$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -5616,7 +5621,7 @@ const $a312bccd722ac9e4$export$788756b42446dc2d = ({
|
|
|
5616
5621
|
}) => {
|
|
5617
5622
|
if (!$a312bccd722ac9e4$var$inserted) {
|
|
5618
5623
|
// Insert styling on first import
|
|
5619
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5624
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($35c9f1ebe12f9a64$exports)));
|
|
5620
5625
|
$a312bccd722ac9e4$var$inserted = true;
|
|
5621
5626
|
}
|
|
5622
5627
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $a312bccd722ac9e4$var$Image(options) : $a312bccd722ac9e4$var$CompatibleImage(options);
|
|
@@ -5684,8 +5689,8 @@ function $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
5684
5689
|
}
|
|
5685
5690
|
return sourceset_component;
|
|
5686
5691
|
}
|
|
5687
|
-
var $
|
|
5688
|
-
$
|
|
5692
|
+
var $5b367163fde37fa9$exports = {};
|
|
5693
|
+
$5b367163fde37fa9$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
5689
5694
|
var $a656daa2fa8c279a$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
5690
5695
|
$a656daa2fa8c279a$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
5691
5696
|
// Saving bytez
|
|
@@ -5814,7 +5819,7 @@ const $a656daa2fa8c279a$export$2369f6fc1c911576 = ({
|
|
|
5814
5819
|
...options
|
|
5815
5820
|
}) => {
|
|
5816
5821
|
if (!$a656daa2fa8c279a$var$styling_inserted) {
|
|
5817
|
-
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5822
|
+
$e4bebbfa0f0b1454$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5b367163fde37fa9$exports)));
|
|
5818
5823
|
$a656daa2fa8c279a$var$styling_inserted = true;
|
|
5819
5824
|
}
|
|
5820
5825
|
const main_image = $a312bccd722ac9e4$export$788756b42446dc2d({
|
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]";
|
|
@@ -1203,8 +1203,8 @@ function $e867e2f1fb3bcc09$var$switch_elements(from, to) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
// @ts-ignore
|
|
1206
|
-
var $
|
|
1207
|
-
$
|
|
1206
|
+
var $df53fa48eb952087$exports = {};
|
|
1207
|
+
$df53fa48eb952087$exports = ".depict .rec_outer.noautospacing {\n width: 6cm;\n max-width: 46vw;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.depict .rec_outer.noautospacing:nth-child(1) {\n margin-left: 0;\n}\n\n.depict .rec_outer.noautospacing:nth-last-child(1) {\n margin-right: 0;\n}\n\n.depict-slider .slider_snap {\n scroll-snap-type: x mandatory;\n}\n\n.depict-slider {\n width: 100%;\n position: relative;\n}\n\n.depict-slider .sliding::-webkit-scrollbar {\n display: none;\n}\n\n.depict-slider .sliding {\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n scrollbar-width: none;\n flex-flow: row;\n margin-top: -1%;\n margin-bottom: -2%;\n padding-top: 1%;\n padding-bottom: 2%;\n display: flex;\n overflow-x: scroll;\n}\n\n.depict-slider .sliding > * {\n box-sizing: border-box;\n flex: none;\n}\n\n.depict-slider button.right {\n right: 0;\n}\n\n.depict-slider button.left, .depict-slider button.right {\n z-index: 2;\n touch-action: manipulation;\n width: 1cm;\n height: 1cm;\n cursor: pointer;\n background: #fff;\n border: none;\n padding: .5%;\n transition-duration: .2s;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.depict-slider button.left.hidden, .depict-slider button.right.hidden {\n opacity: 0;\n cursor: default;\n}\n\n.depict-slider button.left {\n left: 0;\n transform: translateY(-50%)rotate(180deg);\n}\n\n.depict-slider button.left img, .depict-slider button.right img {\n width: 100%;\n height: 100%;\n}\n\n.depict-slider .rec_outer {\n margin-top: 0 !important;\n}\n\n";
|
|
1208
1208
|
let $8be08add28592faf$var$has_queued_microtask = false;
|
|
1209
1209
|
const $8be08add28592faf$var$queued_callbacks = /*@__PURE__*/new Map();
|
|
1210
1210
|
const $8be08add28592faf$var$catchified_deduplicate_and_dispatch = /*@__PURE__*/$b04e44fad5ea42c7$export$b3bbfd758f11cfa9($8be08add28592faf$var$deduplicate_and_dispatch, "error in observer event processing", "error");
|
|
@@ -2596,7 +2596,7 @@ class $762a881271a51d1b$export$4d41c6499d53639c extends (0, $c33c6faf8acc7442$ex
|
|
|
2596
2596
|
function $762a881271a51d1b$export$f1b8b9fd75ddcab1(slider) {
|
|
2597
2597
|
const style_elem = document.createElement("style");
|
|
2598
2598
|
style_elem.type = "text/css";
|
|
2599
|
-
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($
|
|
2599
|
+
style_elem.append((0, /*@__PURE__*/$parcel$interopDefault($df53fa48eb952087$exports)));
|
|
2600
2600
|
slider.container.appendChild(style_elem);
|
|
2601
2601
|
}
|
|
2602
2602
|
|
|
@@ -5073,8 +5073,8 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
5073
5073
|
on_close_(exit_oos_iterator);
|
|
5074
5074
|
}));
|
|
5075
5075
|
}
|
|
5076
|
-
var $
|
|
5077
|
-
$
|
|
5076
|
+
var $dafb5acaef48b99b$exports = {};
|
|
5077
|
+
$dafb5acaef48b99b$exports = ".depict-placeholder {\n will-change: mask, -webkit-mask;\n mask-position-x: 125%;\n mask-position-y: center;\n background: #ddd;\n animation: 1.5s linear infinite depict-placeholder;\n display: inline-block;\n position: relative;\n overflow: hidden;\n -webkit-mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) 125% / 300% 100%;\n -webkit-mask-image: ;\n mask-image: ;\n -webkit-mask-size: ;\n mask-size: ;\n}\n\n@keyframes depict-placeholder {\n 0% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 10% {\n mask-position-x: 125%;\n -webkit-mask-position-x: 125%;\n }\n\n 90% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n\n 100% {\n mask-position-x: -25%;\n -webkit-mask-position-x: -25%;\n }\n}\n\n";
|
|
5078
5078
|
let $ad592d9ddbcffe72$var$inserted = false;
|
|
5079
5079
|
const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
5080
5080
|
width: width,
|
|
@@ -5085,7 +5085,7 @@ const $ad592d9ddbcffe72$export$84712d0562a614b8 = ({
|
|
|
5085
5085
|
}) => {
|
|
5086
5086
|
if (!$ad592d9ddbcffe72$var$inserted) {
|
|
5087
5087
|
// Insert styling on first import
|
|
5088
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5088
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($dafb5acaef48b99b$exports)));
|
|
5089
5089
|
$ad592d9ddbcffe72$var$inserted = true;
|
|
5090
5090
|
}
|
|
5091
5091
|
return $f3g9l$ssrElement("div", $f3g9l$mergeProps({
|
|
@@ -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
|
}, {
|
|
@@ -5264,8 +5269,8 @@ const $7f57d546b5d5b3d6$export$237455ad7e59d4e5 = ({
|
|
|
5264
5269
|
collapse: collapse
|
|
5265
5270
|
};
|
|
5266
5271
|
};
|
|
5267
|
-
var $
|
|
5268
|
-
$
|
|
5272
|
+
var $62cc182e25269720$exports = {};
|
|
5273
|
+
$62cc182e25269720$exports = ".depict-img-cont {\n width: 100%;\n height: 100%;\n position: absolute;\n}\n\n.depict-img-filler {\n width: 100%;\n height: auto;\n display: inline-block;\n}\n\n.depict-img-comp {\n width: auto;\n height: auto;\n max-width: 100%;\n max-height: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.depict-img-mod {\n width: 100%;\n height: 100%;\n object-fit: contain;\n position: absolute;\n inset: 0;\n}\n\n";
|
|
5269
5274
|
var $45af9e834781a9bc$var$_tmpl$ = ["<picture", ">", "</picture>"];
|
|
5270
5275
|
const $45af9e834781a9bc$export$3d13beba9b52c947 = "https://img.depict.ai/ResizeImage" + (process.env.TENANT ? "/" + process.env.TENANT : "");
|
|
5271
5276
|
const $45af9e834781a9bc$export$a98fc8a2c818d3d8 = /*@__PURE__*/(() => typeof navigator === "undefined" ? false : /^((?!chrome|android).)*safari/i.test(navigator.userAgent))(); // https://stackoverflow.com/a/23522755
|
|
@@ -5417,7 +5422,7 @@ const $914971fb43986a16$export$788756b42446dc2d = ({
|
|
|
5417
5422
|
}) => {
|
|
5418
5423
|
if (!$914971fb43986a16$var$inserted) {
|
|
5419
5424
|
// Insert styling on first import
|
|
5420
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5425
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($62cc182e25269720$exports)));
|
|
5421
5426
|
$914971fb43986a16$var$inserted = true;
|
|
5422
5427
|
}
|
|
5423
5428
|
const img = process.env.BUILD_TARGET === "modern" || process.env.BUILD_TARGET === "dev" ? $914971fb43986a16$var$Image(options) : $914971fb43986a16$var$CompatibleImage(options);
|
|
@@ -5485,8 +5490,8 @@ function $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, sr
|
|
|
5485
5490
|
}
|
|
5486
5491
|
return sourceset_component;
|
|
5487
5492
|
}
|
|
5488
|
-
var $
|
|
5489
|
-
$
|
|
5493
|
+
var $5c965a640a67fb60$exports = {};
|
|
5494
|
+
$5c965a640a67fb60$exports = ".depict .images-container {\n position: relative;\n}\n\n.depict .second-image-container {\n width: 100%;\n opacity: 0;\n position: absolute;\n top: 0;\n}\n\n.depict .hovering .main-image-container {\n opacity: 0;\n}\n\n.depict .hovering .second-image-container {\n opacity: 1;\n}\n\n";
|
|
5490
5495
|
var $8483d1d9fcee52ec$var$_tmpl$ = ["<div", ' class="images-container"><!--$-->', '<!--/--><div class="main-image-container">', "</div></div>"],
|
|
5491
5496
|
$8483d1d9fcee52ec$var$_tmpl$2 = ["<div", ' class="second-image-container">', "</div>"];
|
|
5492
5497
|
// Saving bytez
|
|
@@ -5615,7 +5620,7 @@ const $8483d1d9fcee52ec$export$2369f6fc1c911576 = ({
|
|
|
5615
5620
|
...options
|
|
5616
5621
|
}) => {
|
|
5617
5622
|
if (!$8483d1d9fcee52ec$var$styling_inserted) {
|
|
5618
|
-
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($
|
|
5623
|
+
$0a581f1dfa083522$export$59ba1eb2c083f0cd((0, /*@__PURE__*/$parcel$interopDefault($5c965a640a67fb60$exports)));
|
|
5619
5624
|
$8483d1d9fcee52ec$var$styling_inserted = true;
|
|
5620
5625
|
}
|
|
5621
5626
|
const main_image = $914971fb43986a16$export$788756b42446dc2d({
|