@design-edito/tools 0.4.1 → 0.4.3
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/agnostic/arrays/index.d.ts +1 -1
- package/agnostic/arrays/index.js +1 -1
- package/agnostic/colors/channels/index.js +1 -1
- package/agnostic/colors/contrast/index.js +1 -1
- package/agnostic/colors/convert/index.js +1 -1
- package/agnostic/colors/distance/index.js +1 -1
- package/agnostic/colors/grayscale/index.js +1 -1
- package/agnostic/colors/invert/index.js +1 -1
- package/agnostic/colors/lerp/index.js +1 -1
- package/agnostic/colors/luminance/index.js +1 -1
- package/agnostic/colors/palette/index.js +1 -1
- package/agnostic/colors/rotate/index.js +1 -1
- package/agnostic/colors/tidy/index.js +1 -1
- package/agnostic/css/bem/index.js +3 -3
- package/agnostic/css/scale/index.js +3 -3
- package/agnostic/errors/index.d.ts +1 -1
- package/agnostic/errors/index.js +1 -1
- package/agnostic/html/hyper-json/cast/index.js +5 -5
- package/agnostic/html/hyper-json/index.js +5 -5
- package/agnostic/html/hyper-json/serialize/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +11 -11
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +11 -11
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +5 -5
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +5 -5
- package/agnostic/html/hyper-json/tree/index.js +5 -5
- package/agnostic/html/hyper-json/utils/index.d.ts +1 -1
- package/agnostic/html/hyper-json/utils/index.js +5 -5
- package/agnostic/html/index.d.ts +1 -1
- package/agnostic/html/index.js +1 -1
- package/agnostic/index.d.ts +2 -2
- package/agnostic/index.js +2 -2
- package/agnostic/misc/index.d.ts +2 -2
- package/agnostic/misc/index.js +2 -2
- package/agnostic/misc/logs/index.d.ts +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/numbers/index.d.ts +1 -1
- package/agnostic/numbers/index.js +1 -1
- package/agnostic/objects/index.d.ts +2 -2
- package/agnostic/objects/index.js +2 -2
- package/agnostic/sanitization/index.d.ts +1 -1
- package/agnostic/sanitization/index.js +1 -1
- package/agnostic/strings/index.d.ts +2 -2
- package/agnostic/strings/index.js +2 -2
- package/chunks/{chunk-3K4JD65D.js → chunk-AC4UMIWM.js} +3 -9
- package/chunks/{chunk-SPC2SMZR.js → chunk-F2YJXIT7.js} +3 -7
- package/chunks/{chunk-UVG2S54P.js → chunk-GG4EFNMU.js} +3 -7
- package/chunks/{chunk-3DNVFA25.js → chunk-IEZ3O5OF.js} +2 -0
- package/chunks/{chunk-E33STMH3.js → chunk-OZ3IZVHR.js} +50 -51
- package/chunks/{chunk-KKYEOIJI.js → chunk-PYJKFOMV.js} +3 -5
- package/chunks/{chunk-OEVSF7D3.js → chunk-XFB4PUXO.js} +3 -7
- package/chunks/{chunk-AS4CIZVE.js → chunk-ZJNQRKEJ.js} +3 -7
- package/components/BeforeAfter/index.js +3 -5
- package/components/Disclaimer/index.js +2 -2
- package/components/Drawer/index.js +4 -8
- package/components/EventListener/index.js +3 -7
- package/components/Gallery/index.js +3 -11
- package/components/Image/index.js +5 -9
- package/components/IntersectionObserver/index.js +2 -2
- package/components/Overlayer/index.d.ts +59 -0
- package/components/Overlayer/index.js +67 -0
- package/components/Overlayer/styles.module.css +0 -0
- package/components/Paginator/index.js +2 -2
- package/components/ResizeObserver/index.js +2 -2
- package/components/Scrllgngn/index.d.ts +5 -6
- package/components/Scrllgngn/index.js +8 -25
- package/components/ScrollListener/index.js +4 -6
- package/components/Sequencer/index.js +4 -8
- package/components/ShadowRoot/index.js +3 -7
- package/components/Subtitles/index.js +3 -3
- package/components/Theatre/index.js +2 -2
- package/components/UIModule/index.js +3 -7
- package/components/Video/index.js +8 -10
- package/components/index.d.ts +2 -1
- package/components/index.js +2 -1
- package/components/public-classnames.d.ts +1 -0
- package/node/@google-cloud/storage/file/index.d.ts +3 -3
- package/node/@google-cloud/storage/file/index.js +3 -3
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +3 -3
- package/node/@google-cloud/storage/index.d.ts +1 -1
- package/node/@google-cloud/storage/index.js +1 -1
- package/node/cloud-storage/operations/index.d.ts +1 -1
- package/node/cloud-storage/operations/index.js +1 -1
- package/node/ftps/file/index.d.ts +3 -3
- package/node/ftps/file/index.js +3 -3
- package/node/images/create/index.js +1 -1
- package/node/images/format/index.js +1 -1
- package/node/images/metadata/index.js +1 -1
- package/node/images/transform/index.js +22 -22
- package/node/images/transform/operations/extend/index.js +1 -1
- package/node/images/transform/operations/flatten/index.js +1 -1
- package/node/images/transform/operations/index.d.ts +1 -1
- package/node/images/transform/operations/index.js +1 -1
- package/node/images/transform/operations/overlay/index.js +1 -1
- package/node/images/transform/operations/resize/index.js +1 -1
- package/node/images/transform/operations/rotate/index.js +1 -1
- package/node/images/utils/index.js +1 -1
- package/node/process/index.d.ts +1 -1
- package/node/process/index.js +1 -1
- package/package.json +8 -1
- package/components/BeforeAfter/index.css +0 -1
- package/components/Disclaimer/index.css +0 -1
- package/components/Drawer/index.css +0 -2
- package/components/EventListener/index.css +0 -1
- package/components/Gallery/index.css +0 -29
- package/components/Image/index.css +0 -3
- package/components/IntersectionObserver/index.css +0 -1
- package/components/Paginator/index.css +0 -10
- package/components/ResizeObserver/index.css +0 -1
- package/components/Scrllgngn/index.css +0 -69
- package/components/ScrollListener/index.css +0 -2
- package/components/Sequencer/index.css +0 -2
- package/components/ShadowRoot/index.css +0 -1
- package/components/Subtitles/index.css +0 -1
- package/components/Theatre/index.css +0 -1
- package/components/UIModule/index.css +0 -1
- package/components/Video/index.css +0 -4
|
@@ -6,6 +6,7 @@ var eventListener = "dsed-event-listener";
|
|
|
6
6
|
var gallery = "dsed-gallery";
|
|
7
7
|
var image = "dsed-image";
|
|
8
8
|
var intersectionObserver = "dsed-intersection-observer";
|
|
9
|
+
var overlayer = "dsed-overlayer";
|
|
9
10
|
var paginator = "dsed-paginator";
|
|
10
11
|
var resizeObserver = "dsed-resize-observer";
|
|
11
12
|
var scrllgngn = "dsed-scrllgngn";
|
|
@@ -25,6 +26,7 @@ export {
|
|
|
25
26
|
gallery,
|
|
26
27
|
image,
|
|
27
28
|
intersectionObserver,
|
|
29
|
+
overlayer,
|
|
28
30
|
paginator,
|
|
29
31
|
resizeObserver,
|
|
30
32
|
scrllgngn,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
nullFunc
|
|
3
|
-
} from "./chunk-B4HGXMP3.js";
|
|
4
|
-
import {
|
|
5
|
-
Types
|
|
6
|
-
} from "./chunk-XEQ2PBT2.js";
|
|
7
1
|
import {
|
|
8
2
|
any
|
|
9
3
|
} from "./chunk-RJRNYRPM.js";
|
|
10
4
|
import {
|
|
11
5
|
array
|
|
12
6
|
} from "./chunk-HYGUIF2O.js";
|
|
7
|
+
import {
|
|
8
|
+
nullFunc
|
|
9
|
+
} from "./chunk-B4HGXMP3.js";
|
|
10
|
+
import {
|
|
11
|
+
Types
|
|
12
|
+
} from "./chunk-XEQ2PBT2.js";
|
|
13
13
|
import {
|
|
14
14
|
SmartTags
|
|
15
15
|
} from "./chunk-MSU7JU63.js";
|
|
@@ -35,17 +35,17 @@ import {
|
|
|
35
35
|
isRecord
|
|
36
36
|
} from "./chunk-YDIBNEGA.js";
|
|
37
37
|
import {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
} from "./chunk-6XL25OZX.js";
|
|
38
|
+
get
|
|
39
|
+
} from "./chunk-57YKZBJR.js";
|
|
41
40
|
import {
|
|
42
41
|
makeFailure,
|
|
43
42
|
makeSuccess,
|
|
44
43
|
outcome_exports
|
|
45
44
|
} from "./chunk-LUAYN7VJ.js";
|
|
46
45
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
trimEnd,
|
|
47
|
+
trimStart
|
|
48
|
+
} from "./chunk-6XL25OZX.js";
|
|
49
49
|
import {
|
|
50
50
|
isNonNullObject
|
|
51
51
|
} from "./chunk-HQLRJ7XW.js";
|
|
@@ -2192,11 +2192,10 @@ var Utils;
|
|
|
2192
2192
|
throw new Error(`Cannot clone value: ${value}`);
|
|
2193
2193
|
}
|
|
2194
2194
|
Utils2.clone = clone2;
|
|
2195
|
-
function coalesceValues(currentValue, subpath,
|
|
2195
|
+
function coalesceValues(currentValue, subpath, toCoalesce) {
|
|
2196
2196
|
const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = get();
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
const transformer = actualSubvalue;
|
|
2197
|
+
if (toCoalesce instanceof Transformer) {
|
|
2198
|
+
const transformer = toCoalesce;
|
|
2200
2199
|
const transformationResult = transformer.apply(currentValue);
|
|
2201
2200
|
if (!transformationResult.success) {
|
|
2202
2201
|
console.warn({ ...transformationResult.error });
|
|
@@ -2204,87 +2203,87 @@ var Utils;
|
|
|
2204
2203
|
}
|
|
2205
2204
|
const evaluated = transformationResult.payload;
|
|
2206
2205
|
if (transformer.mode === "isolation") {
|
|
2207
|
-
|
|
2206
|
+
toCoalesce = evaluated;
|
|
2208
2207
|
} else {
|
|
2209
2208
|
return evaluated;
|
|
2210
2209
|
}
|
|
2211
2210
|
}
|
|
2212
|
-
if (Array.isArray(currentValue)) return [...currentValue,
|
|
2213
|
-
if (currentValue === null) return
|
|
2214
|
-
if (typeof currentValue === "boolean") return
|
|
2215
|
-
if (typeof currentValue === "number") return
|
|
2216
|
-
if (currentValue instanceof Transformer) return
|
|
2217
|
-
if (currentValue instanceof Method) return
|
|
2211
|
+
if (Array.isArray(currentValue)) return [...currentValue, toCoalesce];
|
|
2212
|
+
if (currentValue === null) return toCoalesce;
|
|
2213
|
+
if (typeof currentValue === "boolean") return toCoalesce;
|
|
2214
|
+
if (typeof currentValue === "number") return toCoalesce;
|
|
2215
|
+
if (currentValue instanceof Transformer) return toCoalesce;
|
|
2216
|
+
if (currentValue instanceof Method) return toCoalesce;
|
|
2218
2217
|
if (typeof currentValue === "string") {
|
|
2219
|
-
if (
|
|
2220
|
-
if (
|
|
2221
|
-
if (
|
|
2218
|
+
if (toCoalesce === null || typeof toCoalesce === "boolean" || typeof toCoalesce === "number" || typeof toCoalesce === "string") return `${currentValue}${toCoalesce}`;
|
|
2219
|
+
if (toCoalesce instanceof Text2) return `${currentValue}${toCoalesce.textContent}`;
|
|
2220
|
+
if (toCoalesce instanceof Element2) {
|
|
2222
2221
|
const frag = document.createDocumentFragment();
|
|
2223
|
-
frag.append(currentValue, Utils2.clone(
|
|
2222
|
+
frag.append(currentValue, Utils2.clone(toCoalesce));
|
|
2224
2223
|
return frag.childNodes;
|
|
2225
2224
|
}
|
|
2226
|
-
if (
|
|
2225
|
+
if (toCoalesce instanceof NodeList2) {
|
|
2227
2226
|
const frag = document.createDocumentFragment();
|
|
2228
|
-
frag.append(currentValue, ...Array.from(Utils2.clone(
|
|
2227
|
+
frag.append(currentValue, ...Array.from(Utils2.clone(toCoalesce)));
|
|
2229
2228
|
return frag.childNodes;
|
|
2230
2229
|
}
|
|
2231
|
-
return
|
|
2230
|
+
return toCoalesce;
|
|
2232
2231
|
}
|
|
2233
2232
|
if (currentValue instanceof Text2) {
|
|
2234
|
-
if (
|
|
2235
|
-
if (
|
|
2236
|
-
if (
|
|
2233
|
+
if (toCoalesce === null || typeof toCoalesce === "boolean" || typeof toCoalesce === "number" || typeof toCoalesce === "string") return document.createTextNode(`${currentValue.textContent}${toCoalesce}`);
|
|
2234
|
+
if (toCoalesce instanceof Text2) return document.createTextNode(`${currentValue.textContent}${toCoalesce.textContent}`);
|
|
2235
|
+
if (toCoalesce instanceof Element2) {
|
|
2237
2236
|
const frag = document.createDocumentFragment();
|
|
2238
|
-
frag.append(clone2(currentValue), clone2(
|
|
2237
|
+
frag.append(clone2(currentValue), clone2(toCoalesce));
|
|
2239
2238
|
return frag.childNodes;
|
|
2240
2239
|
}
|
|
2241
|
-
if (
|
|
2240
|
+
if (toCoalesce instanceof NodeList2) {
|
|
2242
2241
|
const frag = document.createDocumentFragment();
|
|
2243
|
-
frag.append(clone2(currentValue), ...Array.from(clone2(
|
|
2242
|
+
frag.append(clone2(currentValue), ...Array.from(clone2(toCoalesce)));
|
|
2244
2243
|
return frag.childNodes;
|
|
2245
2244
|
}
|
|
2246
|
-
return
|
|
2245
|
+
return toCoalesce;
|
|
2247
2246
|
}
|
|
2248
2247
|
if (currentValue instanceof Element2) {
|
|
2249
|
-
if (
|
|
2248
|
+
if (toCoalesce === null || typeof toCoalesce === "boolean" || typeof toCoalesce === "number" || typeof toCoalesce === "string") {
|
|
2250
2249
|
const frag = document.createDocumentFragment();
|
|
2251
|
-
frag.append(clone2(currentValue), `${
|
|
2250
|
+
frag.append(clone2(currentValue), `${toCoalesce}`);
|
|
2252
2251
|
return frag.childNodes;
|
|
2253
2252
|
}
|
|
2254
|
-
if (
|
|
2253
|
+
if (toCoalesce instanceof Text2 || toCoalesce instanceof Element2) {
|
|
2255
2254
|
const frag = document.createDocumentFragment();
|
|
2256
|
-
frag.append(clone2(currentValue), clone2(
|
|
2255
|
+
frag.append(clone2(currentValue), clone2(toCoalesce));
|
|
2257
2256
|
return frag.childNodes;
|
|
2258
2257
|
}
|
|
2259
|
-
if (
|
|
2258
|
+
if (toCoalesce instanceof NodeList2) {
|
|
2260
2259
|
const frag = document.createDocumentFragment();
|
|
2261
|
-
frag.append(clone2(currentValue), ...Array.from(clone2(
|
|
2260
|
+
frag.append(clone2(currentValue), ...Array.from(clone2(toCoalesce)));
|
|
2262
2261
|
return frag.childNodes;
|
|
2263
2262
|
}
|
|
2264
|
-
return
|
|
2263
|
+
return toCoalesce;
|
|
2265
2264
|
}
|
|
2266
2265
|
if (currentValue instanceof NodeList2) {
|
|
2267
|
-
if (
|
|
2266
|
+
if (toCoalesce === null || typeof toCoalesce === "boolean" || typeof toCoalesce === "number" || typeof toCoalesce === "string") {
|
|
2268
2267
|
const frag = document.createDocumentFragment();
|
|
2269
|
-
frag.append(...Array.from(clone2(currentValue)), `${
|
|
2268
|
+
frag.append(...Array.from(clone2(currentValue)), `${toCoalesce}`);
|
|
2270
2269
|
return frag.childNodes;
|
|
2271
2270
|
}
|
|
2272
|
-
if (
|
|
2271
|
+
if (toCoalesce instanceof Text2 || toCoalesce instanceof Element2) {
|
|
2273
2272
|
const frag = document.createDocumentFragment();
|
|
2274
|
-
frag.append(...Array.from(clone2(currentValue)), clone2(
|
|
2273
|
+
frag.append(...Array.from(clone2(currentValue)), clone2(toCoalesce));
|
|
2275
2274
|
return frag.childNodes;
|
|
2276
2275
|
}
|
|
2277
|
-
if (
|
|
2276
|
+
if (toCoalesce instanceof NodeList2) {
|
|
2278
2277
|
const frag = document.createDocumentFragment();
|
|
2279
|
-
frag.append(...Array.from(clone2(currentValue)), ...Array.from(clone2(
|
|
2278
|
+
frag.append(...Array.from(clone2(currentValue)), ...Array.from(clone2(toCoalesce)));
|
|
2280
2279
|
return frag.childNodes;
|
|
2281
2280
|
}
|
|
2282
|
-
return
|
|
2281
|
+
return toCoalesce;
|
|
2283
2282
|
}
|
|
2284
2283
|
if (typeof subpath === "number") return { ...currentValue };
|
|
2285
2284
|
return {
|
|
2286
2285
|
...currentValue,
|
|
2287
|
-
[subpath]:
|
|
2286
|
+
[subpath]: toCoalesce
|
|
2288
2287
|
};
|
|
2289
2288
|
}
|
|
2290
2289
|
Utils2.coalesceValues = coalesceValues;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-PUQUSA6S.js";
|
|
7
7
|
import {
|
|
8
8
|
subtitles
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IEZ3O5OF.js";
|
|
10
10
|
import {
|
|
11
11
|
clss
|
|
12
12
|
} from "./chunk-TRFZSKNB.js";
|
|
@@ -95,10 +95,8 @@ var getCurrentGroup = (subsGroupsWithBoundaries, lastPrevSubId, isEnded) => {
|
|
|
95
95
|
return previousGroups[previousGroups.length - 1];
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
// src/components/Subtitles/styles.module.css
|
|
99
|
-
var styles_default = {};
|
|
100
|
-
|
|
101
98
|
// src/components/Subtitles/index.tsx
|
|
99
|
+
import cssModule from "./styles.module.css";
|
|
102
100
|
import { jsx } from "react/jsx-runtime";
|
|
103
101
|
var Subtitles = ({
|
|
104
102
|
src,
|
|
@@ -143,7 +141,7 @@ var Subtitles = ({
|
|
|
143
141
|
console.error(error);
|
|
144
142
|
});
|
|
145
143
|
}, [fetchAndParseSubs, src, srtFileContent]);
|
|
146
|
-
const c = clss(subtitles, { cssModule
|
|
144
|
+
const c = clss(subtitles, { cssModule });
|
|
147
145
|
const rootClss = mergeClassNames(
|
|
148
146
|
c(null, {
|
|
149
147
|
loading: isLoading,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
disclaimer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IEZ3O5OF.js";
|
|
4
4
|
import {
|
|
5
5
|
clss
|
|
6
6
|
} from "./chunk-TRFZSKNB.js";
|
|
@@ -14,11 +14,7 @@ import {
|
|
|
14
14
|
useEffect,
|
|
15
15
|
useRef
|
|
16
16
|
} from "react";
|
|
17
|
-
|
|
18
|
-
// src/components/Disclaimer/styles.module.css
|
|
19
|
-
var styles_default = {};
|
|
20
|
-
|
|
21
|
-
// src/components/Disclaimer/index.tsx
|
|
17
|
+
import cssModule from "./styles.module.css";
|
|
22
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
19
|
var Disclaimer = ({
|
|
24
20
|
content,
|
|
@@ -43,7 +39,7 @@ var Disclaimer = ({
|
|
|
43
39
|
if (isOnProp !== void 0) return;
|
|
44
40
|
setInternalIsOn(false);
|
|
45
41
|
};
|
|
46
|
-
const c = clss(disclaimer, { cssModule
|
|
42
|
+
const c = clss(disclaimer, { cssModule });
|
|
47
43
|
const rootClss = mergeClassNames(
|
|
48
44
|
c(null, {
|
|
49
45
|
on: isOn,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
theatre
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IEZ3O5OF.js";
|
|
4
4
|
import {
|
|
5
5
|
clss
|
|
6
6
|
} from "./chunk-TRFZSKNB.js";
|
|
@@ -14,11 +14,7 @@ import {
|
|
|
14
14
|
useState,
|
|
15
15
|
useRef
|
|
16
16
|
} from "react";
|
|
17
|
-
|
|
18
|
-
// src/components/Theatre/styles.module.css
|
|
19
|
-
var styles_default = {};
|
|
20
|
-
|
|
21
|
-
// src/components/Theatre/index.tsx
|
|
17
|
+
import cssModule from "./styles.module.css";
|
|
22
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
19
|
var Theatre = ({
|
|
24
20
|
closeBtnContent,
|
|
@@ -66,7 +62,7 @@ var Theatre = ({
|
|
|
66
62
|
window.addEventListener("keydown", listener);
|
|
67
63
|
return () => window.removeEventListener("keydown", listener);
|
|
68
64
|
}, [exitOnEscape, isTheatreOn, isOn]);
|
|
69
|
-
const c = clss(theatre, { cssModule
|
|
65
|
+
const c = clss(theatre, { cssModule });
|
|
70
66
|
const rootClss = mergeClassNames(c(null, {
|
|
71
67
|
"on": isTheatreOn,
|
|
72
68
|
"off": !isTheatreOn
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "../../chunks/chunk-OSAXBA7G.js";
|
|
4
4
|
import {
|
|
5
5
|
beforeAfter
|
|
6
|
-
} from "../../chunks/chunk-
|
|
6
|
+
} from "../../chunks/chunk-IEZ3O5OF.js";
|
|
7
7
|
import {
|
|
8
8
|
clss
|
|
9
9
|
} from "../../chunks/chunk-TRFZSKNB.js";
|
|
@@ -24,9 +24,7 @@ import {
|
|
|
24
24
|
useCallback,
|
|
25
25
|
useRef
|
|
26
26
|
} from "react";
|
|
27
|
-
|
|
28
|
-
// src/components/BeforeAfter/styles.module.css
|
|
29
|
-
var styles_default = {};
|
|
27
|
+
import cssModule from "./styles.module.css";
|
|
30
28
|
|
|
31
29
|
// src/components/BeforeAfter/utils.ts
|
|
32
30
|
function getRelativePointerCoordinates(event, element) {
|
|
@@ -95,7 +93,7 @@ var BeforeAfterControlled = ({
|
|
|
95
93
|
[`--${beforeAfter}-ratio`]: outputRatio.toFixed(8),
|
|
96
94
|
[`--${beforeAfter}-ratio-percent`]: `${(outputRatio * 100).toString()}%`
|
|
97
95
|
};
|
|
98
|
-
const c = clss(beforeAfter, { cssModule
|
|
96
|
+
const c = clss(beforeAfter, { cssModule });
|
|
99
97
|
const rootClss = mergeClassNames(c(null, _modifiers), className);
|
|
100
98
|
const rootAttributes = {
|
|
101
99
|
"data-ratio": ratio
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Disclaimer
|
|
3
|
-
} from "../../chunks/chunk-
|
|
4
|
-
import "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-XFB4PUXO.js";
|
|
4
|
+
import "../../chunks/chunk-IEZ3O5OF.js";
|
|
5
5
|
import "../../chunks/chunk-TRFZSKNB.js";
|
|
6
6
|
import "../../chunks/chunk-OFCSIK6J.js";
|
|
7
7
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ResizeObserverComponent
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-GG4EFNMU.js";
|
|
4
4
|
import {
|
|
5
5
|
drawer
|
|
6
|
-
} from "../../chunks/chunk-
|
|
6
|
+
} from "../../chunks/chunk-IEZ3O5OF.js";
|
|
7
7
|
import {
|
|
8
8
|
clss
|
|
9
9
|
} from "../../chunks/chunk-TRFZSKNB.js";
|
|
@@ -18,11 +18,7 @@ import {
|
|
|
18
18
|
useRef,
|
|
19
19
|
useEffect
|
|
20
20
|
} from "react";
|
|
21
|
-
|
|
22
|
-
// src/components/Drawer/styles.module.css
|
|
23
|
-
var styles_default = {};
|
|
24
|
-
|
|
25
|
-
// src/components/Drawer/index.tsx
|
|
21
|
+
import cssModule from "./styles.module.css";
|
|
26
22
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
23
|
var Drawer = ({
|
|
28
24
|
openerContent,
|
|
@@ -54,7 +50,7 @@ var Drawer = ({
|
|
|
54
50
|
const { width: width2, height: height2 } = entry?.contentRect ?? {};
|
|
55
51
|
setContentDimensions({ width: width2, height: height2 });
|
|
56
52
|
};
|
|
57
|
-
const c = clss(drawer, { cssModule
|
|
53
|
+
const c = clss(drawer, { cssModule });
|
|
58
54
|
const rootClss = mergeClassNames(c(null, {
|
|
59
55
|
"opened": isOpened,
|
|
60
56
|
"closed": !isOpened
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
eventListener
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-IEZ3O5OF.js";
|
|
4
4
|
import {
|
|
5
5
|
clss
|
|
6
6
|
} from "../../chunks/chunk-TRFZSKNB.js";
|
|
@@ -14,11 +14,7 @@ import {
|
|
|
14
14
|
useRef,
|
|
15
15
|
useEffect
|
|
16
16
|
} from "react";
|
|
17
|
-
|
|
18
|
-
// src/components/EventListener/styles.module.css
|
|
19
|
-
var styles_default = {};
|
|
20
|
-
|
|
21
|
-
// src/components/EventListener/index.tsx
|
|
17
|
+
import cssModule from "./styles.module.css";
|
|
22
18
|
import { jsx } from "react/jsx-runtime";
|
|
23
19
|
var EventListenerComponent = ({
|
|
24
20
|
className,
|
|
@@ -36,7 +32,7 @@ var EventListenerComponent = ({
|
|
|
36
32
|
elements.forEach((e) => typeArr.forEach((t) => e.addEventListener(t, onEvent)));
|
|
37
33
|
return () => elements.forEach((e) => typeArr.forEach((t) => e.removeEventListener(t, onEvent)));
|
|
38
34
|
}, [targetSelector, type, onEvent]);
|
|
39
|
-
const c = clss(eventListener, { cssModule
|
|
35
|
+
const c = clss(eventListener, { cssModule });
|
|
40
36
|
const rootClss = mergeClassNames(c(), className);
|
|
41
37
|
return /* @__PURE__ */ jsx(
|
|
42
38
|
"div",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
gallery
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-IEZ3O5OF.js";
|
|
4
4
|
import {
|
|
5
5
|
clss
|
|
6
6
|
} from "../../chunks/chunk-TRFZSKNB.js";
|
|
@@ -29,16 +29,8 @@ var forceActivateSlot = (div, targetPos, smooth = true) => {
|
|
|
29
29
|
div.scrollTo({ left: offset, behavior: smooth ? "smooth" : "instant" });
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
// src/components/Gallery/styles.module.css
|
|
33
|
-
var styles_default = {
|
|
34
|
-
scroller: "styles_scroller",
|
|
35
|
-
root: "styles_root2",
|
|
36
|
-
"root--controlled": "styles_root--controlled",
|
|
37
|
-
"root--no-snap": "styles_root--no-snap",
|
|
38
|
-
slot: "styles_slot"
|
|
39
|
-
};
|
|
40
|
-
|
|
41
32
|
// src/components/Gallery/index.tsx
|
|
33
|
+
import cssModule from "./styles.module.css";
|
|
42
34
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
43
35
|
var Gallery = ({
|
|
44
36
|
paddingLeft,
|
|
@@ -120,7 +112,7 @@ var Gallery = ({
|
|
|
120
112
|
if (active === void 0) return;
|
|
121
113
|
forceActivateSlot(scrollerRef.current, active);
|
|
122
114
|
}, [active]);
|
|
123
|
-
const c = clss(gallery, { cssModule
|
|
115
|
+
const c = clss(gallery, { cssModule });
|
|
124
116
|
const rootClss = mergeClassNames(
|
|
125
117
|
c(null, {
|
|
126
118
|
"controlled": active !== void 0,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Theatre
|
|
3
|
-
} from "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-ZJNQRKEJ.js";
|
|
4
4
|
import {
|
|
5
5
|
Disclaimer
|
|
6
|
-
} from "../../chunks/chunk-
|
|
6
|
+
} from "../../chunks/chunk-XFB4PUXO.js";
|
|
7
7
|
import {
|
|
8
8
|
image
|
|
9
|
-
} from "../../chunks/chunk-
|
|
9
|
+
} from "../../chunks/chunk-IEZ3O5OF.js";
|
|
10
10
|
import {
|
|
11
11
|
clss
|
|
12
12
|
} from "../../chunks/chunk-TRFZSKNB.js";
|
|
@@ -21,11 +21,7 @@ import {
|
|
|
21
21
|
useMemo,
|
|
22
22
|
useCallback
|
|
23
23
|
} from "react";
|
|
24
|
-
|
|
25
|
-
// src/components/Image/styles.module.css
|
|
26
|
-
var styles_default = {};
|
|
27
|
-
|
|
28
|
-
// src/components/Image/index.tsx
|
|
24
|
+
import cssModule from "./styles.module.css";
|
|
29
25
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
26
|
var Image = ({
|
|
31
27
|
sources,
|
|
@@ -54,7 +50,7 @@ var Image = ({
|
|
|
54
50
|
disclaimer?.actionHandlers?.dismissClick?.(isDisclaimerOn);
|
|
55
51
|
setIsDisclaimerOn(false);
|
|
56
52
|
}, []);
|
|
57
|
-
const c = clss(image, { cssModule
|
|
53
|
+
const c = clss(image, { cssModule });
|
|
58
54
|
const rootClss = mergeClassNames(c(), className);
|
|
59
55
|
const rootAttributes = {};
|
|
60
56
|
const pictureClss = c("picture");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IntersectionObserverComponent
|
|
3
|
-
} from "../../chunks/chunk-
|
|
4
|
-
import "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-F2YJXIT7.js";
|
|
4
|
+
import "../../chunks/chunk-IEZ3O5OF.js";
|
|
5
5
|
import "../../chunks/chunk-TRFZSKNB.js";
|
|
6
6
|
import "../../chunks/chunk-OFCSIK6J.js";
|
|
7
7
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { type FunctionComponent, type PropsWithChildren, type ReactNode } from 'react';
|
|
2
|
+
import type { WithClassName } from '../utils/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Describes a single overlay positioned over the base content.
|
|
5
|
+
*
|
|
6
|
+
* @property content - React node rendered inside the overlay element.
|
|
7
|
+
* If falsy, the overlay is not rendered.
|
|
8
|
+
* @property xPercent - Horizontal position of the overlay anchor as a percentage
|
|
9
|
+
* of the root element's width. Defaults to `0`.
|
|
10
|
+
* @property yPercent - Vertical position of the overlay anchor as a percentage
|
|
11
|
+
* of the root element's height. Defaults to `0`.
|
|
12
|
+
* @property justify - Controls the horizontal alignment of the overlay relative
|
|
13
|
+
* to its anchor point via a CSS `translateX`:
|
|
14
|
+
* - `'left'` — anchor is at the left edge of the overlay (`0%`).
|
|
15
|
+
* - `'center'` — anchor is at the horizontal center (`-50%`). Default when omitted.
|
|
16
|
+
* - `'right'` — anchor is at the right edge (`-100%`).
|
|
17
|
+
* - `number` — arbitrary percentage offset (e.g. `25` produces `-25%`).
|
|
18
|
+
*/
|
|
19
|
+
type Overlay = {
|
|
20
|
+
content?: ReactNode;
|
|
21
|
+
xPercent?: number;
|
|
22
|
+
yPercent?: number;
|
|
23
|
+
justify?: 'left' | 'center' | 'right' | number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Props for the {@link Overlayer} component.
|
|
27
|
+
*
|
|
28
|
+
* @property overlays - Array of {@link Overlay} descriptors rendered on top of
|
|
29
|
+
* the base content. Overlays with falsy `content` are skipped.
|
|
30
|
+
* @property className - Optional additional class name(s) applied to the root element.
|
|
31
|
+
* @property children - Content rendered in the base layer, below all overlays.
|
|
32
|
+
*/
|
|
33
|
+
export type Props = PropsWithChildren<WithClassName<{
|
|
34
|
+
overlays?: Overlay[];
|
|
35
|
+
}>>;
|
|
36
|
+
/**
|
|
37
|
+
* Absolute positioning overlay component. Renders a base content layer and
|
|
38
|
+
* stacks one or more overlays on top of it, each independently positioned via
|
|
39
|
+
* percentage coordinates and a justify alignment.
|
|
40
|
+
*
|
|
41
|
+
* ### Child elements
|
|
42
|
+
* - `__base` — wrapping `<div>` that contains `children`.
|
|
43
|
+
* - `__overlay` — one `<div>` per entry in `overlays` (falsy `content` entries
|
|
44
|
+
* are omitted).
|
|
45
|
+
*
|
|
46
|
+
* ### CSS custom properties on each overlay element
|
|
47
|
+
* - `--PRIVATE-left` — derived from `xPercent` (e.g. `42%`). Used internally
|
|
48
|
+
* to set the horizontal anchor position.
|
|
49
|
+
* - `--PRIVATE-top` — derived from `yPercent` (e.g. `10%`). Used internally
|
|
50
|
+
* to set the vertical anchor position.
|
|
51
|
+
* - `--PRIVATE-translate-x` — derived from `justify`. Used internally to shift
|
|
52
|
+
* the overlay relative to its anchor.
|
|
53
|
+
*
|
|
54
|
+
* @param props - Component properties.
|
|
55
|
+
* @see {@link Props}
|
|
56
|
+
* @returns A root `<div>` containing the base layer and all positioned overlay elements.
|
|
57
|
+
*/
|
|
58
|
+
export declare const Overlayer: FunctionComponent<Props>;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isFalsy
|
|
3
|
+
} from "../../chunks/chunk-QXAJXTXV.js";
|
|
4
|
+
import "../../chunks/chunk-HC6ZOHCS.js";
|
|
5
|
+
import {
|
|
6
|
+
overlayer
|
|
7
|
+
} from "../../chunks/chunk-IEZ3O5OF.js";
|
|
8
|
+
import {
|
|
9
|
+
clss
|
|
10
|
+
} from "../../chunks/chunk-TRFZSKNB.js";
|
|
11
|
+
import {
|
|
12
|
+
mergeClassNames
|
|
13
|
+
} from "../../chunks/chunk-OFCSIK6J.js";
|
|
14
|
+
import "../../chunks/chunk-WSFCRVEQ.js";
|
|
15
|
+
|
|
16
|
+
// src/components/Overlayer/index.tsx
|
|
17
|
+
import cssModule from "./styles.module.css";
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
var Overlayer = ({
|
|
20
|
+
overlays,
|
|
21
|
+
children,
|
|
22
|
+
className
|
|
23
|
+
}) => {
|
|
24
|
+
const c = clss(overlayer, { cssModule });
|
|
25
|
+
const rootClss = mergeClassNames(c(), className);
|
|
26
|
+
const baseClss = c("base");
|
|
27
|
+
return /* @__PURE__ */ jsxs("div", { className: rootClss, children: [
|
|
28
|
+
/* @__PURE__ */ jsx("div", { className: baseClss, children }),
|
|
29
|
+
overlays?.map(({
|
|
30
|
+
content,
|
|
31
|
+
xPercent = 0,
|
|
32
|
+
yPercent = 0,
|
|
33
|
+
justify
|
|
34
|
+
}) => {
|
|
35
|
+
const overlayClss = c("overlay");
|
|
36
|
+
let computedTranslateX;
|
|
37
|
+
if (typeof justify === "number") {
|
|
38
|
+
computedTranslateX = `-${justify}%`;
|
|
39
|
+
} else if (justify === "center") {
|
|
40
|
+
computedTranslateX = "-50%";
|
|
41
|
+
} else if (justify === "left") {
|
|
42
|
+
computedTranslateX = "0%";
|
|
43
|
+
} else if (justify === "right") {
|
|
44
|
+
computedTranslateX = "-100%";
|
|
45
|
+
} else {
|
|
46
|
+
computedTranslateX = "-50%";
|
|
47
|
+
}
|
|
48
|
+
const overlayCustomProps = {
|
|
49
|
+
"--PRIVATE-left": `${xPercent}%`,
|
|
50
|
+
"--PRIVATE-top": `${yPercent}%`,
|
|
51
|
+
"--PRIVATE-translate-x": computedTranslateX
|
|
52
|
+
};
|
|
53
|
+
if (isFalsy(content)) return null;
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: overlayClss,
|
|
58
|
+
style: overlayCustomProps,
|
|
59
|
+
children: content
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
})
|
|
63
|
+
] });
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
Overlayer
|
|
67
|
+
};
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Paginator
|
|
3
|
-
} from "../../chunks/chunk-
|
|
4
|
-
import "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-AC4UMIWM.js";
|
|
4
|
+
import "../../chunks/chunk-IEZ3O5OF.js";
|
|
5
5
|
import "../../chunks/chunk-TRFZSKNB.js";
|
|
6
6
|
import "../../chunks/chunk-OFCSIK6J.js";
|
|
7
7
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ResizeObserverComponent
|
|
3
|
-
} from "../../chunks/chunk-
|
|
4
|
-
import "../../chunks/chunk-
|
|
3
|
+
} from "../../chunks/chunk-GG4EFNMU.js";
|
|
4
|
+
import "../../chunks/chunk-IEZ3O5OF.js";
|
|
5
5
|
import "../../chunks/chunk-TRFZSKNB.js";
|
|
6
6
|
import "../../chunks/chunk-OFCSIK6J.js";
|
|
7
7
|
import "../../chunks/chunk-WSFCRVEQ.js";
|