@depict-ai/utilishared 2.0.8 → 2.0.10
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 +22 -2
- package/ES10/index.d.ts +2 -1
- package/ES10/index.js +22 -2
- package/latest/index.cjs +22 -2
- package/latest/index.d.ts +2 -1
- package/latest/index.js +22 -2
- package/package.json +2 -2
- package/server/ES10/index.cjs +28 -8
- package/server/ES10/index.d.ts +2 -1
- package/server/ES10/index.js +29 -9
- package/server/latest/index.cjs +28 -8
- package/server/latest/index.d.ts +2 -1
- package/server/latest/index.js +29 -9
package/ES10/index.cjs
CHANGED
|
@@ -274,7 +274,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
274
274
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
275
275
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
276
276
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
277
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.
|
|
277
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.10";
|
|
278
278
|
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"))();
|
|
279
279
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
280
280
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -6414,8 +6414,28 @@ function $4220ecbb68a3aade$export$5129719c04a52f8c() {
|
|
|
6414
6414
|
}
|
|
6415
6415
|
}
|
|
6416
6416
|
}
|
|
6417
|
+
function constructor_plugin(_slider_options) {
|
|
6418
|
+
// Fade in removed elements as they may be added somewhere else in the DOM
|
|
6419
|
+
this.on_elements_changed.push(records => {
|
|
6420
|
+
for (const {
|
|
6421
|
+
removedNodes: removedNodes
|
|
6422
|
+
} of records) {
|
|
6423
|
+
for (const node of removedNodes) if (faded_els.has(node)) {
|
|
6424
|
+
faded_els.delete(node);
|
|
6425
|
+
node.animate({
|
|
6426
|
+
opacity: [faded_opacity_, visible_opacity_]
|
|
6427
|
+
}, {
|
|
6428
|
+
fill: "forwards",
|
|
6429
|
+
duration: fade_in_duration_,
|
|
6430
|
+
easing: easing_
|
|
6431
|
+
});
|
|
6432
|
+
}
|
|
6433
|
+
}
|
|
6434
|
+
});
|
|
6435
|
+
}
|
|
6417
6436
|
return {
|
|
6418
|
-
mutation_plugin_: mutation_plugin_
|
|
6437
|
+
mutation_plugin_: mutation_plugin_,
|
|
6438
|
+
constructor_plugin: constructor_plugin
|
|
6419
6439
|
};
|
|
6420
6440
|
}
|
|
6421
6441
|
function $e243e127ad19fbf8$export$5723caf9a8335aa6(_t) {
|
package/ES10/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Accessor } from "solid-js";
|
|
2
|
-
export const version = "2.0.
|
|
2
|
+
export const version = "2.0.10";
|
|
3
3
|
export const is_debug: boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
|
@@ -1782,6 +1782,7 @@ export function slider_fading_factory({
|
|
|
1782
1782
|
threshold_?: number;
|
|
1783
1783
|
}): {
|
|
1784
1784
|
readonly mutation_plugin_: (this: Amazing_Slider, entries: IntersectionObserverEntry[], _intersecting_mutations: Record<number, IntersectionObserverEntry>) => void;
|
|
1785
|
+
readonly constructor_plugin: (this: Amazing_Slider, _slider_options: Slider_Options) => void;
|
|
1785
1786
|
};
|
|
1786
1787
|
export function slider_fractional_factory(_t?: any, fraction?: number, max_steps?: number, dont_enable_correct_bs_targets?: boolean, min_steps?: number): {
|
|
1787
1788
|
constructor_plugin: (slider_options: Slider_Options) => void;
|
package/ES10/index.js
CHANGED
|
@@ -16,7 +16,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
16
16
|
function $parcel$interopDefault(a) {
|
|
17
17
|
return a && a.__esModule ? a.default : a;
|
|
18
18
|
}
|
|
19
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.
|
|
19
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.10";
|
|
20
20
|
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"))();
|
|
21
21
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
22
22
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -6156,8 +6156,28 @@ function $21afac8db3f98820$export$5129719c04a52f8c() {
|
|
|
6156
6156
|
}
|
|
6157
6157
|
}
|
|
6158
6158
|
}
|
|
6159
|
+
function constructor_plugin(_slider_options) {
|
|
6160
|
+
// Fade in removed elements as they may be added somewhere else in the DOM
|
|
6161
|
+
this.on_elements_changed.push(records => {
|
|
6162
|
+
for (const {
|
|
6163
|
+
removedNodes: removedNodes
|
|
6164
|
+
} of records) {
|
|
6165
|
+
for (const node of removedNodes) if (faded_els.has(node)) {
|
|
6166
|
+
faded_els.delete(node);
|
|
6167
|
+
node.animate({
|
|
6168
|
+
opacity: [faded_opacity_, visible_opacity_]
|
|
6169
|
+
}, {
|
|
6170
|
+
fill: "forwards",
|
|
6171
|
+
duration: fade_in_duration_,
|
|
6172
|
+
easing: easing_
|
|
6173
|
+
});
|
|
6174
|
+
}
|
|
6175
|
+
}
|
|
6176
|
+
});
|
|
6177
|
+
}
|
|
6159
6178
|
return {
|
|
6160
|
-
mutation_plugin_: mutation_plugin_
|
|
6179
|
+
mutation_plugin_: mutation_plugin_,
|
|
6180
|
+
constructor_plugin: constructor_plugin
|
|
6161
6181
|
};
|
|
6162
6182
|
}
|
|
6163
6183
|
function $0cbf24ae3e670238$export$5723caf9a8335aa6(_t) {
|
package/latest/index.cjs
CHANGED
|
@@ -271,7 +271,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
271
271
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
272
272
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
273
273
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
274
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.
|
|
274
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.10";
|
|
275
275
|
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"))();
|
|
276
276
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
277
277
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -5894,8 +5894,28 @@ function $f70ff79e6e286cc2$export$5129719c04a52f8c({
|
|
|
5894
5894
|
}
|
|
5895
5895
|
}
|
|
5896
5896
|
}
|
|
5897
|
+
function constructor_plugin(_slider_options) {
|
|
5898
|
+
// Fade in removed elements as they may be added somewhere else in the DOM
|
|
5899
|
+
this.on_elements_changed.push(records => {
|
|
5900
|
+
for (const {
|
|
5901
|
+
removedNodes: removedNodes
|
|
5902
|
+
} of records) {
|
|
5903
|
+
for (const node of removedNodes) if (faded_els.has(node)) {
|
|
5904
|
+
faded_els.delete(node);
|
|
5905
|
+
node.animate({
|
|
5906
|
+
opacity: [faded_opacity_, visible_opacity_]
|
|
5907
|
+
}, {
|
|
5908
|
+
fill: "forwards",
|
|
5909
|
+
duration: fade_in_duration_,
|
|
5910
|
+
easing: easing_
|
|
5911
|
+
});
|
|
5912
|
+
}
|
|
5913
|
+
}
|
|
5914
|
+
});
|
|
5915
|
+
}
|
|
5897
5916
|
return {
|
|
5898
|
-
mutation_plugin_: mutation_plugin_
|
|
5917
|
+
mutation_plugin_: mutation_plugin_,
|
|
5918
|
+
constructor_plugin: constructor_plugin
|
|
5899
5919
|
};
|
|
5900
5920
|
}
|
|
5901
5921
|
function $91f7baba008bce7d$export$5723caf9a8335aa6(_t, fraction = 1, max_steps, dont_enable_correct_bs_targets, min_steps) {
|
package/latest/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Accessor } from "solid-js";
|
|
2
|
-
export const version = "2.0.
|
|
2
|
+
export const version = "2.0.10";
|
|
3
3
|
export const is_debug: boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
|
@@ -1782,6 +1782,7 @@ export function slider_fading_factory({
|
|
|
1782
1782
|
threshold_?: number;
|
|
1783
1783
|
}): {
|
|
1784
1784
|
readonly mutation_plugin_: (this: Amazing_Slider, entries: IntersectionObserverEntry[], _intersecting_mutations: Record<number, IntersectionObserverEntry>) => void;
|
|
1785
|
+
readonly constructor_plugin: (this: Amazing_Slider, _slider_options: Slider_Options) => void;
|
|
1785
1786
|
};
|
|
1786
1787
|
export function slider_fractional_factory(_t?: any, fraction?: number, max_steps?: number, dont_enable_correct_bs_targets?: boolean, min_steps?: number): {
|
|
1787
1788
|
constructor_plugin: (slider_options: Slider_Options) => void;
|
package/latest/index.js
CHANGED
|
@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
13
13
|
function $parcel$interopDefault(a) {
|
|
14
14
|
return a && a.__esModule ? a.default : a;
|
|
15
15
|
}
|
|
16
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.
|
|
16
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.10";
|
|
17
17
|
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"))();
|
|
18
18
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
19
19
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -5636,8 +5636,28 @@ function $1ce2ae6f640f393f$export$5129719c04a52f8c({
|
|
|
5636
5636
|
}
|
|
5637
5637
|
}
|
|
5638
5638
|
}
|
|
5639
|
+
function constructor_plugin(_slider_options) {
|
|
5640
|
+
// Fade in removed elements as they may be added somewhere else in the DOM
|
|
5641
|
+
this.on_elements_changed.push(records => {
|
|
5642
|
+
for (const {
|
|
5643
|
+
removedNodes: removedNodes
|
|
5644
|
+
} of records) {
|
|
5645
|
+
for (const node of removedNodes) if (faded_els.has(node)) {
|
|
5646
|
+
faded_els.delete(node);
|
|
5647
|
+
node.animate({
|
|
5648
|
+
opacity: [faded_opacity_, visible_opacity_]
|
|
5649
|
+
}, {
|
|
5650
|
+
fill: "forwards",
|
|
5651
|
+
duration: fade_in_duration_,
|
|
5652
|
+
easing: easing_
|
|
5653
|
+
});
|
|
5654
|
+
}
|
|
5655
|
+
}
|
|
5656
|
+
});
|
|
5657
|
+
}
|
|
5639
5658
|
return {
|
|
5640
|
-
mutation_plugin_: mutation_plugin_
|
|
5659
|
+
mutation_plugin_: mutation_plugin_,
|
|
5660
|
+
constructor_plugin: constructor_plugin
|
|
5641
5661
|
};
|
|
5642
5662
|
}
|
|
5643
5663
|
function $52292921bc0fc31f$export$5723caf9a8335aa6(_t, fraction = 1, max_steps, dont_enable_correct_bs_targets, min_steps) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/utilishared",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"@babel/runtime": "latest",
|
|
155
155
|
"@babel/runtime-corejs3": "latest",
|
|
156
156
|
"@sentry/browser": "^7.75.1",
|
|
157
|
-
"solid-js": "^1.8.
|
|
157
|
+
"solid-js": "^1.8.7"
|
|
158
158
|
},
|
|
159
159
|
"type": "module",
|
|
160
160
|
"main": "ES10/index.cjs",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -274,7 +274,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
|
|
|
274
274
|
$parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
|
|
275
275
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
|
|
276
276
|
$parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
|
|
277
|
-
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.
|
|
277
|
+
const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.0.10";
|
|
278
278
|
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"))();
|
|
279
279
|
const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
|
|
280
280
|
let $7f95f77417d06249$var$browser_prefix = "[Depict]";
|
|
@@ -5805,7 +5805,7 @@ function $12a8c4258d1dd80f$export$f8913c8a18f7ca21(iterables) {
|
|
|
5805
5805
|
}
|
|
5806
5806
|
let $0c2e69f971c62390$var$_Symbol$iterator, $0c2e69f971c62390$var$_Symbol$toPrimitive;
|
|
5807
5807
|
const $0c2e69f971c62390$var$_tmpl$ = ["<style", ' type="text/css"></style>'],
|
|
5808
|
-
$0c2e69f971c62390$var$_tmpl$2 = ["<div",
|
|
5808
|
+
$0c2e69f971c62390$var$_tmpl$2 = ["<div", ">", "</div>"];
|
|
5809
5809
|
const $0c2e69f971c62390$export$717f13d9ba00ca19 = (min, max) => "@media ".concat(min ? "(min-width:".concat(min, ")") : "").concat(min && max ? " and " : "").concat(max ? "(max-width:".concat(max, ")") : "");
|
|
5810
5810
|
async function $0c2e69f971c62390$export$c84671f46d6a1ca(_ref) {
|
|
5811
5811
|
let {
|
|
@@ -5866,7 +5866,7 @@ async function $0c2e69f971c62390$export$c84671f46d6a1ca(_ref) {
|
|
|
5866
5866
|
});
|
|
5867
5867
|
if (button) {
|
|
5868
5868
|
button_class = $a13f25507f352177$export$a6db784f019668ba();
|
|
5869
|
-
const button_container = $lMD39$solidjsweb.ssr($0c2e69f971c62390$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), "load-more-container " + $lMD39$solidjsweb.escape(button_class, true), $lMD39$solidjsweb.escape($51b78ec2cb40f07e$export$f63fcc839cb0f734("click", () => {
|
|
5869
|
+
const button_container = $lMD39$solidjsweb.ssr($0c2e69f971c62390$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey() + $lMD39$solidjsweb.ssrAttribute("class", "load-more-container " + $lMD39$solidjsweb.escape(button_class, true), false), $lMD39$solidjsweb.escape($51b78ec2cb40f07e$export$f63fcc839cb0f734("click", () => {
|
|
5870
5870
|
var _rows_or_empty_object;
|
|
5871
5871
|
return ipns(ipns.state + ((_rows_or_empty_object = rows_or_empty_object.rows_per_click) !== null && _rows_or_empty_object !== void 0 ? _rows_or_empty_object : 1));
|
|
5872
5872
|
}, button)));
|
|
@@ -6400,8 +6400,28 @@ function $4220ecbb68a3aade$export$5129719c04a52f8c() {
|
|
|
6400
6400
|
}
|
|
6401
6401
|
}
|
|
6402
6402
|
}
|
|
6403
|
+
function constructor_plugin(_slider_options) {
|
|
6404
|
+
// Fade in removed elements as they may be added somewhere else in the DOM
|
|
6405
|
+
this.on_elements_changed.push(records => {
|
|
6406
|
+
for (const {
|
|
6407
|
+
removedNodes: removedNodes
|
|
6408
|
+
} of records) {
|
|
6409
|
+
for (const node of removedNodes) if (faded_els.has(node)) {
|
|
6410
|
+
faded_els.delete(node);
|
|
6411
|
+
node.animate({
|
|
6412
|
+
opacity: [faded_opacity_, visible_opacity_]
|
|
6413
|
+
}, {
|
|
6414
|
+
fill: "forwards",
|
|
6415
|
+
duration: fade_in_duration_,
|
|
6416
|
+
easing: easing_
|
|
6417
|
+
});
|
|
6418
|
+
}
|
|
6419
|
+
}
|
|
6420
|
+
});
|
|
6421
|
+
}
|
|
6403
6422
|
return {
|
|
6404
|
-
mutation_plugin_: mutation_plugin_
|
|
6423
|
+
mutation_plugin_: mutation_plugin_,
|
|
6424
|
+
constructor_plugin: constructor_plugin
|
|
6405
6425
|
};
|
|
6406
6426
|
}
|
|
6407
6427
|
function $e243e127ad19fbf8$export$5723caf9a8335aa6(_t) {
|
|
@@ -8154,7 +8174,7 @@ async function $b99c603a5341f0ae$export$8a0e4d6f6abf7e90(_ref) {
|
|
|
8154
8174
|
};
|
|
8155
8175
|
}
|
|
8156
8176
|
const $468dbae10b24d59f$var$_tmpl$ = ["<div", ' class="option-list">', "</div>"],
|
|
8157
|
-
$468dbae10b24d59f$var$_tmpl$2 = ["<button", ' type="button"
|
|
8177
|
+
$468dbae10b24d59f$var$_tmpl$2 = ["<button", ' type="button"', '><span class="size">', "</span><!--$-->", "<!--/--></button>"],
|
|
8158
8178
|
$468dbae10b24d59f$var$_tmpl$3 = ["<span", ' class="sold-out">', "</span>"];
|
|
8159
8179
|
async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
8160
8180
|
let {
|
|
@@ -8178,7 +8198,7 @@ async function $468dbae10b24d59f$export$c068ad5361be7646(_ref) {
|
|
|
8178
8198
|
is_available_: is_available_,
|
|
8179
8199
|
id_: id_
|
|
8180
8200
|
} = _ref2;
|
|
8181
|
-
const button = $lMD39$solidjsweb.ssr($468dbae10b24d59f$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), "option" + (is_available_ ? " available" : ""), $lMD39$solidjsweb.escape(size_name_), !is_available_ && $lMD39$solidjsweb.ssr($468dbae10b24d59f$var$_tmpl$3, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.escape($fbf41b4abc726dbe$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
8201
|
+
const button = $lMD39$solidjsweb.ssr($468dbae10b24d59f$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.ssrAttribute("class", "option" + (is_available_ ? " available" : ""), false), $lMD39$solidjsweb.escape(size_name_), !is_available_ && $lMD39$solidjsweb.ssr($468dbae10b24d59f$var$_tmpl$3, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.escape($fbf41b4abc726dbe$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
8182
8202
|
if (!is_available_) button.disabled = true;
|
|
8183
8203
|
return button;
|
|
8184
8204
|
})))]
|
|
@@ -8542,7 +8562,7 @@ function $b42b9f62e8b6cb2d$var$optimized_img_url_generator(format, url, width) {
|
|
|
8542
8562
|
return "".concat($b42b9f62e8b6cb2d$export$3d13beba9b52c947, "?format=").concat(format, "&url=").concat(encodeURIComponent(url), "&width=").concat(width);
|
|
8543
8563
|
}
|
|
8544
8564
|
const $dfce76a4aeb41067$var$_tmpl$ = ["<div", ' style="', '"></div>'],
|
|
8545
|
-
$dfce76a4aeb41067$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"
|
|
8565
|
+
$dfce76a4aeb41067$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"', ' height="3000"></canvas>'],
|
|
8546
8566
|
$dfce76a4aeb41067$var$_tmpl$3 = ["<div", ' style="position:relative"><div class="depict-img-cont">', "</div><!--$-->", "<!--/--></div>"];
|
|
8547
8567
|
const $dfce76a4aeb41067$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
8548
8568
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
@@ -8599,7 +8619,7 @@ function $dfce76a4aeb41067$var$CompatibleImage(_ref3) {
|
|
|
8599
8619
|
srcset_opts: srcset_opts,
|
|
8600
8620
|
...image_options
|
|
8601
8621
|
} = _ref3;
|
|
8602
|
-
const canvas = $lMD39$solidjsweb.ssr($dfce76a4aeb41067$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), 3000 * $lMD39$solidjsweb.escape(aspect_ratio, true));
|
|
8622
|
+
const canvas = $lMD39$solidjsweb.ssr($dfce76a4aeb41067$var$_tmpl$2, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.ssrAttribute("width", 3000 * $lMD39$solidjsweb.escape(aspect_ratio, true), false));
|
|
8603
8623
|
const sourceset_component = $dfce76a4aeb41067$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
8604
8624
|
const IMG_tag = (_image_options$src2 = image_options.src) !== null && _image_options$src2 !== void 0 && _image_options$src2.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
8605
8625
|
return $lMD39$solidjsweb.ssr($dfce76a4aeb41067$var$_tmpl$3, $lMD39$solidjsweb.ssrHydrationKey(), $lMD39$solidjsweb.escape($lMD39$solidjsweb.createComponent(IMG_tag, $lMD39$solidjsweb.mergeProps({
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Accessor } from "solid-js";
|
|
2
|
-
export const version = "2.0.
|
|
2
|
+
export const version = "2.0.10";
|
|
3
3
|
export const is_debug: boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
|
@@ -1782,6 +1782,7 @@ export function slider_fading_factory({
|
|
|
1782
1782
|
threshold_?: number;
|
|
1783
1783
|
}): {
|
|
1784
1784
|
readonly mutation_plugin_: (this: Amazing_Slider, entries: IntersectionObserverEntry[], _intersecting_mutations: Record<number, IntersectionObserverEntry>) => void;
|
|
1785
|
+
readonly constructor_plugin: (this: Amazing_Slider, _slider_options: Slider_Options) => void;
|
|
1785
1786
|
};
|
|
1786
1787
|
export function slider_fractional_factory(_t?: any, fraction?: number, max_steps?: number, dont_enable_correct_bs_targets?: boolean, min_steps?: number): {
|
|
1787
1788
|
constructor_plugin: (slider_options: Slider_Options) => void;
|
package/server/ES10/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { onCleanup as $hrhbO$onCleanup, createEffect as $hrhbO$createEffect, cre
|
|
|
2
2
|
import $hrhbO$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import $hrhbO$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
4
4
|
import $hrhbO$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
5
|
-
import { ssr as $hrhbO$ssr, ssrHydrationKey as $hrhbO$ssrHydrationKey, escape as $hrhbO$escape,
|
|
5
|
+
import { ssr as $hrhbO$ssr, ssrHydrationKey as $hrhbO$ssrHydrationKey, escape as $hrhbO$escape, ssrAttribute as $hrhbO$ssrAttribute, ssrElement as $hrhbO$ssrElement, mergeProps as $hrhbO$mergeProps, createComponent as $hrhbO$createComponent, ssrStyle as $hrhbO$ssrStyle } from "solid-js/web";
|
|
6
6
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
7
7
|
register_es_version("utilishared", "ES10");
|
|
8
8
|
function $parcel$export(e, n, v, s) {
|
|
@@ -16,7 +16,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
16
16
|
function $parcel$interopDefault(a) {
|
|
17
17
|
return a && a.__esModule ? a.default : a;
|
|
18
18
|
}
|
|
19
|
-
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.
|
|
19
|
+
const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.0.10";
|
|
20
20
|
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"))();
|
|
21
21
|
const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
|
|
22
22
|
let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
|
|
@@ -5547,7 +5547,7 @@ function $07beada135e5f5e8$export$f8913c8a18f7ca21(iterables) {
|
|
|
5547
5547
|
}
|
|
5548
5548
|
let $df6d080cba513381$var$_Symbol$iterator, $df6d080cba513381$var$_Symbol$toPrimitive;
|
|
5549
5549
|
const $df6d080cba513381$var$_tmpl$ = ["<style", ' type="text/css"></style>'],
|
|
5550
|
-
$df6d080cba513381$var$_tmpl$2 = ["<div",
|
|
5550
|
+
$df6d080cba513381$var$_tmpl$2 = ["<div", ">", "</div>"];
|
|
5551
5551
|
const $df6d080cba513381$export$717f13d9ba00ca19 = (min, max) => "@media ".concat(min ? "(min-width:".concat(min, ")") : "").concat(min && max ? " and " : "").concat(max ? "(max-width:".concat(max, ")") : "");
|
|
5552
5552
|
async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
|
|
5553
5553
|
let {
|
|
@@ -5608,7 +5608,7 @@ async function $df6d080cba513381$export$c84671f46d6a1ca(_ref) {
|
|
|
5608
5608
|
});
|
|
5609
5609
|
if (button) {
|
|
5610
5610
|
button_class = $6cb4d83127e468ea$export$a6db784f019668ba();
|
|
5611
|
-
const button_container = $hrhbO$ssr($df6d080cba513381$var$_tmpl$2, $hrhbO$ssrHydrationKey(), "load-more-container " + $hrhbO$escape(button_class, true), $hrhbO$escape($a285401a927e4306$export$f63fcc839cb0f734("click", () => {
|
|
5611
|
+
const button_container = $hrhbO$ssr($df6d080cba513381$var$_tmpl$2, $hrhbO$ssrHydrationKey() + $hrhbO$ssrAttribute("class", "load-more-container " + $hrhbO$escape(button_class, true), false), $hrhbO$escape($a285401a927e4306$export$f63fcc839cb0f734("click", () => {
|
|
5612
5612
|
var _rows_or_empty_object;
|
|
5613
5613
|
return ipns(ipns.state + ((_rows_or_empty_object = rows_or_empty_object.rows_per_click) !== null && _rows_or_empty_object !== void 0 ? _rows_or_empty_object : 1));
|
|
5614
5614
|
}, button)));
|
|
@@ -6142,8 +6142,28 @@ function $21afac8db3f98820$export$5129719c04a52f8c() {
|
|
|
6142
6142
|
}
|
|
6143
6143
|
}
|
|
6144
6144
|
}
|
|
6145
|
+
function constructor_plugin(_slider_options) {
|
|
6146
|
+
// Fade in removed elements as they may be added somewhere else in the DOM
|
|
6147
|
+
this.on_elements_changed.push(records => {
|
|
6148
|
+
for (const {
|
|
6149
|
+
removedNodes: removedNodes
|
|
6150
|
+
} of records) {
|
|
6151
|
+
for (const node of removedNodes) if (faded_els.has(node)) {
|
|
6152
|
+
faded_els.delete(node);
|
|
6153
|
+
node.animate({
|
|
6154
|
+
opacity: [faded_opacity_, visible_opacity_]
|
|
6155
|
+
}, {
|
|
6156
|
+
fill: "forwards",
|
|
6157
|
+
duration: fade_in_duration_,
|
|
6158
|
+
easing: easing_
|
|
6159
|
+
});
|
|
6160
|
+
}
|
|
6161
|
+
}
|
|
6162
|
+
});
|
|
6163
|
+
}
|
|
6145
6164
|
return {
|
|
6146
|
-
mutation_plugin_: mutation_plugin_
|
|
6165
|
+
mutation_plugin_: mutation_plugin_,
|
|
6166
|
+
constructor_plugin: constructor_plugin
|
|
6147
6167
|
};
|
|
6148
6168
|
}
|
|
6149
6169
|
function $0cbf24ae3e670238$export$5723caf9a8335aa6(_t) {
|
|
@@ -7896,7 +7916,7 @@ async function $a59cde169150d10b$export$8a0e4d6f6abf7e90(_ref) {
|
|
|
7896
7916
|
};
|
|
7897
7917
|
}
|
|
7898
7918
|
const $24f3fd73864991c0$var$_tmpl$ = ["<div", ' class="option-list">', "</div>"],
|
|
7899
|
-
$24f3fd73864991c0$var$_tmpl$2 = ["<button", ' type="button"
|
|
7919
|
+
$24f3fd73864991c0$var$_tmpl$2 = ["<button", ' type="button"', '><span class="size">', "</span><!--$-->", "<!--/--></button>"],
|
|
7900
7920
|
$24f3fd73864991c0$var$_tmpl$3 = ["<span", ' class="sold-out">', "</span>"];
|
|
7901
7921
|
async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
7902
7922
|
let {
|
|
@@ -7920,7 +7940,7 @@ async function $24f3fd73864991c0$export$c068ad5361be7646(_ref) {
|
|
|
7920
7940
|
is_available_: is_available_,
|
|
7921
7941
|
id_: id_
|
|
7922
7942
|
} = _ref2;
|
|
7923
|
-
const button = $hrhbO$ssr($24f3fd73864991c0$var$_tmpl$2, $hrhbO$ssrHydrationKey(), "option" + (is_available_ ? " available" : ""), $hrhbO$escape(size_name_), !is_available_ && $hrhbO$ssr($24f3fd73864991c0$var$_tmpl$3, $hrhbO$ssrHydrationKey(), $hrhbO$escape($332ef338faf216a4$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7943
|
+
const button = $hrhbO$ssr($24f3fd73864991c0$var$_tmpl$2, $hrhbO$ssrHydrationKey(), $hrhbO$ssrAttribute("class", "option" + (is_available_ ? " available" : ""), false), $hrhbO$escape(size_name_), !is_available_ && $hrhbO$ssr($24f3fd73864991c0$var$_tmpl$3, $hrhbO$ssrHydrationKey(), $hrhbO$escape($332ef338faf216a4$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7924
7944
|
if (!is_available_) button.disabled = true;
|
|
7925
7945
|
return button;
|
|
7926
7946
|
})))]
|
|
@@ -8284,7 +8304,7 @@ function $9ef5ce4804a3b61b$var$optimized_img_url_generator(format, url, width) {
|
|
|
8284
8304
|
return "".concat($9ef5ce4804a3b61b$export$3d13beba9b52c947, "?format=").concat(format, "&url=").concat(encodeURIComponent(url), "&width=").concat(width);
|
|
8285
8305
|
}
|
|
8286
8306
|
const $c987460cedc0d7ec$var$_tmpl$ = ["<div", ' style="', '"></div>'],
|
|
8287
|
-
$c987460cedc0d7ec$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"
|
|
8307
|
+
$c987460cedc0d7ec$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"', ' height="3000"></canvas>'],
|
|
8288
8308
|
$c987460cedc0d7ec$var$_tmpl$3 = ["<div", ' style="position:relative"><div class="depict-img-cont">', "</div><!--$-->", "<!--/--></div>"];
|
|
8289
8309
|
const $c987460cedc0d7ec$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
8290
8310
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
@@ -8341,7 +8361,7 @@ function $c987460cedc0d7ec$var$CompatibleImage(_ref3) {
|
|
|
8341
8361
|
srcset_opts: srcset_opts,
|
|
8342
8362
|
...image_options
|
|
8343
8363
|
} = _ref3;
|
|
8344
|
-
const canvas = $hrhbO$ssr($c987460cedc0d7ec$var$_tmpl$2, $hrhbO$ssrHydrationKey(), 3000 * $hrhbO$escape(aspect_ratio, true));
|
|
8364
|
+
const canvas = $hrhbO$ssr($c987460cedc0d7ec$var$_tmpl$2, $hrhbO$ssrHydrationKey(), $hrhbO$ssrAttribute("width", 3000 * $hrhbO$escape(aspect_ratio, true), false));
|
|
8345
8365
|
const sourceset_component = $c987460cedc0d7ec$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
8346
8366
|
const IMG_tag = (_image_options$src2 = image_options.src) !== null && _image_options$src2 !== void 0 && _image_options$src2.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
8347
8367
|
return $hrhbO$ssr($c987460cedc0d7ec$var$_tmpl$3, $hrhbO$ssrHydrationKey(), $hrhbO$escape($hrhbO$createComponent(IMG_tag, $hrhbO$mergeProps({
|
package/server/latest/index.cjs
CHANGED
|
@@ -271,7 +271,7 @@ $parcel$export(module.exports, "version", () => $815f67c61b4c0a42$export$83d89fb
|
|
|
271
271
|
$parcel$export(module.exports, "add_to_version_info", () => $e4a18bf12ad092d9$export$2cefb7e61fcbae00);
|
|
272
272
|
$parcel$export(module.exports, "sync_el_content_with_accessor", () => $35303d72263038db$export$c3f56a35e076f139);
|
|
273
273
|
$parcel$export(module.exports, "use_href_accessor", () => $da35c7e27be2a442$export$e35115e6d0715f77);
|
|
274
|
-
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.
|
|
274
|
+
const $815f67c61b4c0a42$export$83d89fbfd8236492 = "2.0.10";
|
|
275
275
|
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"))();
|
|
276
276
|
const $e6c6e7929ea385ae$var$browser_prefix_styling = "color: #fff;";
|
|
277
277
|
let $e6c6e7929ea385ae$var$browser_prefix = "[Depict]";
|
|
@@ -5302,7 +5302,7 @@ function $ef237c2bba47492f$export$f8913c8a18f7ca21(iterables) {
|
|
|
5302
5302
|
return ourselves;
|
|
5303
5303
|
}
|
|
5304
5304
|
const $1cc2444a0f1b992e$var$_tmpl$ = ["<style", ' type="text/css"></style>'],
|
|
5305
|
-
$1cc2444a0f1b992e$var$_tmpl$2 = ["<div",
|
|
5305
|
+
$1cc2444a0f1b992e$var$_tmpl$2 = ["<div", ">", "</div>"];
|
|
5306
5306
|
const $1cc2444a0f1b992e$export$717f13d9ba00ca19 = (min, max) => `@media ${min ? `(min-width:${min})` : ``}${min && max ? ` and ` : ``}${max ? `(max-width:${max})` : ``}`;
|
|
5307
5307
|
async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({
|
|
5308
5308
|
rows: rows,
|
|
@@ -5360,7 +5360,7 @@ async function $1cc2444a0f1b992e$export$c84671f46d6a1ca({
|
|
|
5360
5360
|
});
|
|
5361
5361
|
if (button) {
|
|
5362
5362
|
button_class = $650b64c1b384c895$export$a6db784f019668ba();
|
|
5363
|
-
const button_container = $jVDDb$solidjsweb.ssr($1cc2444a0f1b992e$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), "load-more-container " + $jVDDb$solidjsweb.escape(button_class, true), $jVDDb$solidjsweb.escape($90e0b983530610e7$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)));
|
|
5363
|
+
const button_container = $jVDDb$solidjsweb.ssr($1cc2444a0f1b992e$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey() + $jVDDb$solidjsweb.ssrAttribute("class", "load-more-container " + $jVDDb$solidjsweb.escape(button_class, true), false), $jVDDb$solidjsweb.escape($90e0b983530610e7$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)));
|
|
5364
5364
|
container_element.after(button_container);
|
|
5365
5365
|
}
|
|
5366
5366
|
(0, $2a1cbc63a04d4a2d$export$b6ae1bc530f4c149).oncreation(container_element, async () => {
|
|
@@ -5880,8 +5880,28 @@ function $f70ff79e6e286cc2$export$5129719c04a52f8c({
|
|
|
5880
5880
|
}
|
|
5881
5881
|
}
|
|
5882
5882
|
}
|
|
5883
|
+
function constructor_plugin(_slider_options) {
|
|
5884
|
+
// Fade in removed elements as they may be added somewhere else in the DOM
|
|
5885
|
+
this.on_elements_changed.push(records => {
|
|
5886
|
+
for (const {
|
|
5887
|
+
removedNodes: removedNodes
|
|
5888
|
+
} of records) {
|
|
5889
|
+
for (const node of removedNodes) if (faded_els.has(node)) {
|
|
5890
|
+
faded_els.delete(node);
|
|
5891
|
+
node.animate({
|
|
5892
|
+
opacity: [faded_opacity_, visible_opacity_]
|
|
5893
|
+
}, {
|
|
5894
|
+
fill: "forwards",
|
|
5895
|
+
duration: fade_in_duration_,
|
|
5896
|
+
easing: easing_
|
|
5897
|
+
});
|
|
5898
|
+
}
|
|
5899
|
+
}
|
|
5900
|
+
});
|
|
5901
|
+
}
|
|
5883
5902
|
return {
|
|
5884
|
-
mutation_plugin_: mutation_plugin_
|
|
5903
|
+
mutation_plugin_: mutation_plugin_,
|
|
5904
|
+
constructor_plugin: constructor_plugin
|
|
5885
5905
|
};
|
|
5886
5906
|
}
|
|
5887
5907
|
function $91f7baba008bce7d$export$5723caf9a8335aa6(_t, fraction = 1, max_steps, dont_enable_correct_bs_targets, min_steps) {
|
|
@@ -7558,7 +7578,7 @@ async function $a7550e9f97f84465$export$8a0e4d6f6abf7e90({
|
|
|
7558
7578
|
};
|
|
7559
7579
|
}
|
|
7560
7580
|
const $bd0fccdac6624b01$var$_tmpl$ = ["<div", ' class="option-list">', "</div>"],
|
|
7561
|
-
$bd0fccdac6624b01$var$_tmpl$2 = ["<button", ' type="button"
|
|
7581
|
+
$bd0fccdac6624b01$var$_tmpl$2 = ["<button", ' type="button"', '><span class="size">', "</span><!--$-->", "<!--/--></button>"],
|
|
7562
7582
|
$bd0fccdac6624b01$var$_tmpl$3 = ["<span", ' class="sold-out">', "</span>"];
|
|
7563
7583
|
async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
7564
7584
|
title_: title_,
|
|
@@ -7580,7 +7600,7 @@ async function $bd0fccdac6624b01$export$c068ad5361be7646({
|
|
|
7580
7600
|
is_available_: is_available_,
|
|
7581
7601
|
id_: id_
|
|
7582
7602
|
}) => {
|
|
7583
|
-
const button = $jVDDb$solidjsweb.ssr($bd0fccdac6624b01$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), "option" + (is_available_ ? " available" : ""), $jVDDb$solidjsweb.escape(size_name_), !is_available_ && $jVDDb$solidjsweb.ssr($bd0fccdac6624b01$var$_tmpl$3, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.escape($374ca311b64f260b$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7603
|
+
const button = $jVDDb$solidjsweb.ssr($bd0fccdac6624b01$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.ssrAttribute("class", "option" + (is_available_ ? " available" : ""), false), $jVDDb$solidjsweb.escape(size_name_), !is_available_ && $jVDDb$solidjsweb.ssr($bd0fccdac6624b01$var$_tmpl$3, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.escape($374ca311b64f260b$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7584
7604
|
if (!is_available_) button.disabled = true;
|
|
7585
7605
|
return button;
|
|
7586
7606
|
})))]
|
|
@@ -7920,7 +7940,7 @@ function $ff973b2032639b5f$var$optimized_img_url_generator(format, url, width) {
|
|
|
7920
7940
|
return `${$ff973b2032639b5f$export$3d13beba9b52c947}?format=${format}&url=${encodeURIComponent(url)}&width=${width}`;
|
|
7921
7941
|
}
|
|
7922
7942
|
const $a312bccd722ac9e4$var$_tmpl$ = ["<div", ' style="', '"></div>'],
|
|
7923
|
-
$a312bccd722ac9e4$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"
|
|
7943
|
+
$a312bccd722ac9e4$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"', ' height="3000"></canvas>'],
|
|
7924
7944
|
$a312bccd722ac9e4$var$_tmpl$3 = ["<div", ' style="position:relative"><div class="depict-img-cont">', "</div><!--$-->", "<!--/--></div>"];
|
|
7925
7945
|
const $a312bccd722ac9e4$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
7926
7946
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
@@ -7972,7 +7992,7 @@ function $a312bccd722ac9e4$var$CompatibleImage({
|
|
|
7972
7992
|
srcset_opts: srcset_opts,
|
|
7973
7993
|
...image_options
|
|
7974
7994
|
}) {
|
|
7975
|
-
const canvas = $jVDDb$solidjsweb.ssr($a312bccd722ac9e4$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), 3000 * $jVDDb$solidjsweb.escape(aspect_ratio, true));
|
|
7995
|
+
const canvas = $jVDDb$solidjsweb.ssr($a312bccd722ac9e4$var$_tmpl$2, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.ssrAttribute("width", 3000 * $jVDDb$solidjsweb.escape(aspect_ratio, true), false));
|
|
7976
7996
|
const sourceset_component = $a312bccd722ac9e4$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
7977
7997
|
const IMG_tag = image_options.src?.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
7978
7998
|
return $jVDDb$solidjsweb.ssr($a312bccd722ac9e4$var$_tmpl$3, $jVDDb$solidjsweb.ssrHydrationKey(), $jVDDb$solidjsweb.escape($jVDDb$solidjsweb.createComponent(IMG_tag, $jVDDb$solidjsweb.mergeProps({
|
package/server/latest/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, Accessor } from "solid-js";
|
|
2
|
-
export const version = "2.0.
|
|
2
|
+
export const version = "2.0.10";
|
|
3
3
|
export const is_debug: boolean;
|
|
4
4
|
/**
|
|
5
5
|
* Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
|
|
@@ -1782,6 +1782,7 @@ export function slider_fading_factory({
|
|
|
1782
1782
|
threshold_?: number;
|
|
1783
1783
|
}): {
|
|
1784
1784
|
readonly mutation_plugin_: (this: Amazing_Slider, entries: IntersectionObserverEntry[], _intersecting_mutations: Record<number, IntersectionObserverEntry>) => void;
|
|
1785
|
+
readonly constructor_plugin: (this: Amazing_Slider, _slider_options: Slider_Options) => void;
|
|
1785
1786
|
};
|
|
1786
1787
|
export function slider_fractional_factory(_t?: any, fraction?: number, max_steps?: number, dont_enable_correct_bs_targets?: boolean, min_steps?: number): {
|
|
1787
1788
|
constructor_plugin: (slider_options: Slider_Options) => void;
|
package/server/latest/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { onCleanup as $f3g9l$onCleanup, createEffect as $f3g9l$createEffect, createSignal as $f3g9l$createSignal } from "solid-js";
|
|
2
|
-
import { ssr as $f3g9l$ssr, ssrHydrationKey as $f3g9l$ssrHydrationKey, escape as $f3g9l$escape,
|
|
2
|
+
import { ssr as $f3g9l$ssr, ssrHydrationKey as $f3g9l$ssrHydrationKey, escape as $f3g9l$escape, ssrAttribute as $f3g9l$ssrAttribute, ssrElement as $f3g9l$ssrElement, mergeProps as $f3g9l$mergeProps, createComponent as $f3g9l$createComponent, ssrStyle as $f3g9l$ssrStyle } from "solid-js/web";
|
|
3
3
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
4
4
|
register_es_version("utilishared", "latest");
|
|
5
5
|
function $parcel$export(e, n, v, s) {
|
|
@@ -13,7 +13,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
13
13
|
function $parcel$interopDefault(a) {
|
|
14
14
|
return a && a.__esModule ? a.default : a;
|
|
15
15
|
}
|
|
16
|
-
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.
|
|
16
|
+
const $0766c85d387a9765$export$83d89fbfd8236492 = "2.0.10";
|
|
17
17
|
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"))();
|
|
18
18
|
const $649f456f663da9fc$var$browser_prefix_styling = "color: #fff;";
|
|
19
19
|
let $649f456f663da9fc$var$browser_prefix = "[Depict]";
|
|
@@ -5044,7 +5044,7 @@ function $693e2a1517bef984$export$f8913c8a18f7ca21(iterables) {
|
|
|
5044
5044
|
return ourselves;
|
|
5045
5045
|
}
|
|
5046
5046
|
const $30e801eaa3dc319e$var$_tmpl$ = ["<style", ' type="text/css"></style>'],
|
|
5047
|
-
$30e801eaa3dc319e$var$_tmpl$2 = ["<div",
|
|
5047
|
+
$30e801eaa3dc319e$var$_tmpl$2 = ["<div", ">", "</div>"];
|
|
5048
5048
|
const $30e801eaa3dc319e$export$717f13d9ba00ca19 = (min, max) => `@media ${min ? `(min-width:${min})` : ``}${min && max ? ` and ` : ``}${max ? `(max-width:${max})` : ``}`;
|
|
5049
5049
|
async function $30e801eaa3dc319e$export$c84671f46d6a1ca({
|
|
5050
5050
|
rows: rows,
|
|
@@ -5102,7 +5102,7 @@ async function $30e801eaa3dc319e$export$c84671f46d6a1ca({
|
|
|
5102
5102
|
});
|
|
5103
5103
|
if (button) {
|
|
5104
5104
|
button_class = $460df8550f9d084d$export$a6db784f019668ba();
|
|
5105
|
-
const button_container = $f3g9l$ssr($30e801eaa3dc319e$var$_tmpl$2, $f3g9l$ssrHydrationKey(), "load-more-container " + $f3g9l$escape(button_class, true), $f3g9l$escape($b9b0dba897847b2a$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)));
|
|
5105
|
+
const button_container = $f3g9l$ssr($30e801eaa3dc319e$var$_tmpl$2, $f3g9l$ssrHydrationKey() + $f3g9l$ssrAttribute("class", "load-more-container " + $f3g9l$escape(button_class, true), false), $f3g9l$escape($b9b0dba897847b2a$export$f63fcc839cb0f734("click", () => ipns(ipns.state + (rows_or_empty_object.rows_per_click ?? 1)), button)));
|
|
5106
5106
|
container_element.after(button_container);
|
|
5107
5107
|
}
|
|
5108
5108
|
(0, $0b48ba2f40ce6067$export$b6ae1bc530f4c149).oncreation(container_element, async () => {
|
|
@@ -5622,8 +5622,28 @@ function $1ce2ae6f640f393f$export$5129719c04a52f8c({
|
|
|
5622
5622
|
}
|
|
5623
5623
|
}
|
|
5624
5624
|
}
|
|
5625
|
+
function constructor_plugin(_slider_options) {
|
|
5626
|
+
// Fade in removed elements as they may be added somewhere else in the DOM
|
|
5627
|
+
this.on_elements_changed.push(records => {
|
|
5628
|
+
for (const {
|
|
5629
|
+
removedNodes: removedNodes
|
|
5630
|
+
} of records) {
|
|
5631
|
+
for (const node of removedNodes) if (faded_els.has(node)) {
|
|
5632
|
+
faded_els.delete(node);
|
|
5633
|
+
node.animate({
|
|
5634
|
+
opacity: [faded_opacity_, visible_opacity_]
|
|
5635
|
+
}, {
|
|
5636
|
+
fill: "forwards",
|
|
5637
|
+
duration: fade_in_duration_,
|
|
5638
|
+
easing: easing_
|
|
5639
|
+
});
|
|
5640
|
+
}
|
|
5641
|
+
}
|
|
5642
|
+
});
|
|
5643
|
+
}
|
|
5625
5644
|
return {
|
|
5626
|
-
mutation_plugin_: mutation_plugin_
|
|
5645
|
+
mutation_plugin_: mutation_plugin_,
|
|
5646
|
+
constructor_plugin: constructor_plugin
|
|
5627
5647
|
};
|
|
5628
5648
|
}
|
|
5629
5649
|
function $52292921bc0fc31f$export$5723caf9a8335aa6(_t, fraction = 1, max_steps, dont_enable_correct_bs_targets, min_steps) {
|
|
@@ -7300,7 +7320,7 @@ async function $cf7ca80454d7b4c0$export$8a0e4d6f6abf7e90({
|
|
|
7300
7320
|
};
|
|
7301
7321
|
}
|
|
7302
7322
|
const $72d170fd5c7cb3fe$var$_tmpl$ = ["<div", ' class="option-list">', "</div>"],
|
|
7303
|
-
$72d170fd5c7cb3fe$var$_tmpl$2 = ["<button", ' type="button"
|
|
7323
|
+
$72d170fd5c7cb3fe$var$_tmpl$2 = ["<button", ' type="button"', '><span class="size">', "</span><!--$-->", "<!--/--></button>"],
|
|
7304
7324
|
$72d170fd5c7cb3fe$var$_tmpl$3 = ["<span", ' class="sold-out">', "</span>"];
|
|
7305
7325
|
async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
7306
7326
|
title_: title_,
|
|
@@ -7322,7 +7342,7 @@ async function $72d170fd5c7cb3fe$export$c068ad5361be7646({
|
|
|
7322
7342
|
is_available_: is_available_,
|
|
7323
7343
|
id_: id_
|
|
7324
7344
|
}) => {
|
|
7325
|
-
const button = $f3g9l$ssr($72d170fd5c7cb3fe$var$_tmpl$2, $f3g9l$ssrHydrationKey(), "option" + (is_available_ ? " available" : ""), $f3g9l$escape(size_name_), !is_available_ && $f3g9l$ssr($72d170fd5c7cb3fe$var$_tmpl$3, $f3g9l$ssrHydrationKey(), $f3g9l$escape($8c97019b5f7b0d0e$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7345
|
+
const button = $f3g9l$ssr($72d170fd5c7cb3fe$var$_tmpl$2, $f3g9l$ssrHydrationKey(), $f3g9l$ssrAttribute("class", "option" + (is_available_ ? " available" : ""), false), $f3g9l$escape(size_name_), !is_available_ && $f3g9l$ssr($72d170fd5c7cb3fe$var$_tmpl$3, $f3g9l$ssrHydrationKey(), $f3g9l$escape($8c97019b5f7b0d0e$export$7c081fdbc65b6a2a(exitable_oos_iterator))));
|
|
7326
7346
|
if (!is_available_) button.disabled = true;
|
|
7327
7347
|
return button;
|
|
7328
7348
|
})))]
|
|
@@ -7662,7 +7682,7 @@ function $45af9e834781a9bc$var$optimized_img_url_generator(format, url, width) {
|
|
|
7662
7682
|
return `${$45af9e834781a9bc$export$3d13beba9b52c947}?format=${format}&url=${encodeURIComponent(url)}&width=${width}`;
|
|
7663
7683
|
}
|
|
7664
7684
|
const $914971fb43986a16$var$_tmpl$ = ["<div", ' style="', '"></div>'],
|
|
7665
|
-
$914971fb43986a16$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"
|
|
7685
|
+
$914971fb43986a16$var$_tmpl$2 = ["<canvas", ' class="depict-img-filler"', ' height="3000"></canvas>'],
|
|
7666
7686
|
$914971fb43986a16$var$_tmpl$3 = ["<div", ' style="position:relative"><div class="depict-img-cont">', "</div><!--$-->", "<!--/--></div>"];
|
|
7667
7687
|
const $914971fb43986a16$var$rendering_options_to_sourceset_component = /*@__PURE__*/new WeakMap();
|
|
7668
7688
|
// Add nolazy to placeholders to avoid errors with the stupid lazyfier
|
|
@@ -7714,7 +7734,7 @@ function $914971fb43986a16$var$CompatibleImage({
|
|
|
7714
7734
|
srcset_opts: srcset_opts,
|
|
7715
7735
|
...image_options
|
|
7716
7736
|
}) {
|
|
7717
|
-
const canvas = $f3g9l$ssr($914971fb43986a16$var$_tmpl$2, $f3g9l$ssrHydrationKey(), 3000 * $f3g9l$escape(aspect_ratio, true));
|
|
7737
|
+
const canvas = $f3g9l$ssr($914971fb43986a16$var$_tmpl$2, $f3g9l$ssrHydrationKey(), $f3g9l$ssrAttribute("width", 3000 * $f3g9l$escape(aspect_ratio, true), false));
|
|
7718
7738
|
const sourceset_component = $914971fb43986a16$var$srcset_comp_from_map_or_new(rendering_options, srcset_opts, canvas);
|
|
7719
7739
|
const IMG_tag = image_options.src?.startsWith("data:") || !sourceset_component ? "img" : sourceset_component;
|
|
7720
7740
|
return $f3g9l$ssr($914971fb43986a16$var$_tmpl$3, $f3g9l$ssrHydrationKey(), $f3g9l$escape($f3g9l$createComponent(IMG_tag, $f3g9l$mergeProps({
|