@blitzreels/contracts 0.2.6 → 0.2.8
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/dist/ai-credit-costs.d.ts +2 -0
- package/dist/ai-credit-costs.d.ts.map +1 -1
- package/dist/ai-credit-costs.js +2 -0
- package/dist/ai-credit-costs.js.map +1 -1
- package/dist/carousel-document-present.d.ts +42 -0
- package/dist/carousel-document-present.d.ts.map +1 -0
- package/dist/carousel-document-present.js +117 -0
- package/dist/carousel-document-present.js.map +1 -0
- package/dist/carousel-pack-catalog.d.ts +10 -0
- package/dist/carousel-pack-catalog.d.ts.map +1 -0
- package/dist/carousel-pack-catalog.js +47 -0
- package/dist/carousel-pack-catalog.js.map +1 -0
- package/dist/carousel-recipe.d.ts +100 -0
- package/dist/carousel-recipe.d.ts.map +1 -0
- package/dist/carousel-recipe.js +305 -0
- package/dist/carousel-recipe.js.map +1 -0
- package/dist/carousel-slot-asset.d.ts +24 -0
- package/dist/carousel-slot-asset.d.ts.map +1 -0
- package/dist/carousel-slot-asset.js +89 -0
- package/dist/carousel-slot-asset.js.map +1 -0
- package/dist/carousel-slot-extras.d.ts +60 -0
- package/dist/carousel-slot-extras.d.ts.map +1 -0
- package/dist/carousel-slot-extras.js +181 -0
- package/dist/carousel-slot-extras.js.map +1 -0
- package/dist/carousel-slot-layout.d.ts +174 -0
- package/dist/carousel-slot-layout.d.ts.map +1 -0
- package/dist/carousel-slot-layout.js +387 -0
- package/dist/carousel-slot-layout.js.map +1 -0
- package/dist/carousel-slot-look.d.ts +79 -0
- package/dist/carousel-slot-look.d.ts.map +1 -0
- package/dist/carousel-slot-look.js +216 -0
- package/dist/carousel-slot-look.js.map +1 -0
- package/dist/carousel-slot-overlay.d.ts +45 -0
- package/dist/carousel-slot-overlay.d.ts.map +1 -0
- package/dist/carousel-slot-overlay.js +71 -0
- package/dist/carousel-slot-overlay.js.map +1 -0
- package/dist/carousel-template-catalog.d.ts +201 -0
- package/dist/carousel-template-catalog.d.ts.map +1 -0
- package/dist/carousel-template-catalog.js +666 -0
- package/dist/carousel-template-catalog.js.map +1 -0
- package/dist/carousel-theme.d.ts +134 -0
- package/dist/carousel-theme.d.ts.map +1 -0
- package/dist/carousel-theme.js +374 -0
- package/dist/carousel-theme.js.map +1 -0
- package/dist/carousels-contract.d.ts +664 -0
- package/dist/carousels-contract.d.ts.map +1 -0
- package/dist/carousels-contract.js +352 -0
- package/dist/carousels-contract.js.map +1 -0
- package/dist/editor-command-contract.d.ts +6 -0
- package/dist/editor-command-contract.d.ts.map +1 -1
- package/dist/editor-keyframe-contract.d.ts +5 -1
- package/dist/editor-keyframe-contract.d.ts.map +1 -1
- package/dist/editor-keyframe-contract.js +1 -0
- package/dist/editor-keyframe-contract.js.map +1 -1
- package/dist/generation-resolution.d.ts.map +1 -1
- package/dist/generation-resolution.js +8 -2
- package/dist/generation-resolution.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/media-list.d.ts +22 -0
- package/dist/media-list.d.ts.map +1 -0
- package/dist/media-list.js +33 -0
- package/dist/media-list.js.map +1 -0
- package/dist/video-transformation.d.ts +177 -0
- package/dist/video-transformation.d.ts.map +1 -0
- package/dist/video-transformation.js +107 -0
- package/dist/video-transformation.js.map +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
export const CAROUSEL_SLOT_TRANSFORM_PREFIX = "_t.";
|
|
2
|
+
export const CAROUSEL_SLOT_Z_PREFIX = "_z.";
|
|
3
|
+
export const CAROUSEL_SLOT_ROTATE_PREFIX = "_r.";
|
|
4
|
+
export const CAROUSEL_SLOT_OPACITY_PREFIX = "_o.";
|
|
5
|
+
export const CAROUSEL_SLOT_FLIP_PREFIX = "_f.";
|
|
6
|
+
export const CAROUSEL_SLOT_GROUP_PREFIX = "_g.";
|
|
7
|
+
export function carouselSlotBoxKey({ key }) {
|
|
8
|
+
if (key === "photo" || key.startsWith("chip"))
|
|
9
|
+
return key;
|
|
10
|
+
const row = /^row(\d+)/.exec(key);
|
|
11
|
+
if (row)
|
|
12
|
+
return `row${row[1]}`;
|
|
13
|
+
if (key.startsWith("primary"))
|
|
14
|
+
return "primary";
|
|
15
|
+
if (key.startsWith("secondary"))
|
|
16
|
+
return "secondary";
|
|
17
|
+
return key;
|
|
18
|
+
}
|
|
19
|
+
export function carouselSlotTransformKey({ boxKey, }) {
|
|
20
|
+
return `${CAROUSEL_SLOT_TRANSFORM_PREFIX}${boxKey}`;
|
|
21
|
+
}
|
|
22
|
+
function clamp({ value, min, max, }) {
|
|
23
|
+
return Math.min(max, Math.max(min, value));
|
|
24
|
+
}
|
|
25
|
+
export function parseCarouselSlotBox({ value, }) {
|
|
26
|
+
const parts = value.split(",").map((part) => Number(part.trim()));
|
|
27
|
+
if (parts.length !== 4)
|
|
28
|
+
return null;
|
|
29
|
+
const [x, y, w, h] = parts;
|
|
30
|
+
if (x === undefined ||
|
|
31
|
+
y === undefined ||
|
|
32
|
+
w === undefined ||
|
|
33
|
+
h === undefined ||
|
|
34
|
+
!Number.isFinite(x) ||
|
|
35
|
+
!Number.isFinite(y) ||
|
|
36
|
+
!Number.isFinite(w) ||
|
|
37
|
+
!Number.isFinite(h)) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
x: clamp({ value: x, min: -20, max: 120 }),
|
|
42
|
+
y: clamp({ value: y, min: -20, max: 120 }),
|
|
43
|
+
w: clamp({ value: w, min: 4, max: 120 }),
|
|
44
|
+
h: clamp({ value: h, min: 4, max: 120 }),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export function serializeCarouselSlotBox({ box, }) {
|
|
48
|
+
const parsed = parseCarouselSlotBox({
|
|
49
|
+
value: `${box.x},${box.y},${box.w},${box.h}`,
|
|
50
|
+
});
|
|
51
|
+
const next = parsed ?? { x: 0, y: 0, w: 100, h: 100 };
|
|
52
|
+
return [next.x, next.y, next.w, next.h]
|
|
53
|
+
.map((value) => value.toFixed(2))
|
|
54
|
+
.join(",");
|
|
55
|
+
}
|
|
56
|
+
export function readCarouselSlotBox({ slots, boxKey, }) {
|
|
57
|
+
const raw = slots[carouselSlotTransformKey({ boxKey })] ?? "";
|
|
58
|
+
if (!raw.trim())
|
|
59
|
+
return null;
|
|
60
|
+
return parseCarouselSlotBox({ value: raw });
|
|
61
|
+
}
|
|
62
|
+
export function writeCarouselSlotBox({ slots, boxKey, box, }) {
|
|
63
|
+
return {
|
|
64
|
+
...slots,
|
|
65
|
+
[carouselSlotTransformKey({ boxKey })]: serializeCarouselSlotBox({ box }),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export function carouselSlotsHaveLayout({ slots, }) {
|
|
69
|
+
return Object.keys(slots).some((key) => key.startsWith(CAROUSEL_SLOT_TRANSFORM_PREFIX));
|
|
70
|
+
}
|
|
71
|
+
export function carouselSlotCssTransform({ rotate = 0, flip = null, }) {
|
|
72
|
+
const parts = [];
|
|
73
|
+
if (flip === "h" || flip === "hv")
|
|
74
|
+
parts.push("scaleX(-1)");
|
|
75
|
+
if (flip === "v" || flip === "hv")
|
|
76
|
+
parts.push("scaleY(-1)");
|
|
77
|
+
if (rotate !== 0)
|
|
78
|
+
parts.push(`rotate(${rotate}deg)`);
|
|
79
|
+
return parts.length > 0 ? parts.join(" ") : undefined;
|
|
80
|
+
}
|
|
81
|
+
export function carouselSlotBoxStyle({ box, zIndex = 3, rotate = 0, opacity = 100, flip = null, }) {
|
|
82
|
+
return {
|
|
83
|
+
position: "absolute",
|
|
84
|
+
left: `${box.x}%`,
|
|
85
|
+
top: `${box.y}%`,
|
|
86
|
+
width: `${box.w}%`,
|
|
87
|
+
height: `${box.h}%`,
|
|
88
|
+
zIndex,
|
|
89
|
+
transform: carouselSlotCssTransform({ rotate, flip }),
|
|
90
|
+
transformOrigin: "center center",
|
|
91
|
+
opacity: opacity >= 100 ? undefined : Math.max(0, opacity) / 100,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export function nudgeCarouselSlotBox({ box, dx, dy, }) {
|
|
95
|
+
return (parseCarouselSlotBox({
|
|
96
|
+
value: `${box.x + dx},${box.y + dy},${box.w},${box.h}`,
|
|
97
|
+
}) ?? box);
|
|
98
|
+
}
|
|
99
|
+
const ALIGN_MARGIN = 4;
|
|
100
|
+
export function alignCarouselSlotBox({ box, align, }) {
|
|
101
|
+
const next = align === "left"
|
|
102
|
+
? { ...box, x: ALIGN_MARGIN }
|
|
103
|
+
: align === "center"
|
|
104
|
+
? { ...box, x: (100 - box.w) / 2 }
|
|
105
|
+
: align === "right"
|
|
106
|
+
? { ...box, x: 100 - ALIGN_MARGIN - box.w }
|
|
107
|
+
: align === "top"
|
|
108
|
+
? { ...box, y: ALIGN_MARGIN }
|
|
109
|
+
: align === "middle"
|
|
110
|
+
? { ...box, y: (100 - box.h) / 2 }
|
|
111
|
+
: { ...box, y: 100 - ALIGN_MARGIN - box.h };
|
|
112
|
+
return (parseCarouselSlotBox({
|
|
113
|
+
value: `${next.x},${next.y},${next.w},${next.h}`,
|
|
114
|
+
}) ?? box);
|
|
115
|
+
}
|
|
116
|
+
const SNAP_THRESHOLD = 1.25;
|
|
117
|
+
function snapValue({ value, targets, }) {
|
|
118
|
+
let best = value;
|
|
119
|
+
let bestDist = SNAP_THRESHOLD;
|
|
120
|
+
for (const target of targets) {
|
|
121
|
+
const dist = Math.abs(value - target);
|
|
122
|
+
if (dist <= bestDist) {
|
|
123
|
+
best = target;
|
|
124
|
+
bestDist = dist;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return best;
|
|
128
|
+
}
|
|
129
|
+
export function snapCarouselSlotBox({ box, others = [], }) {
|
|
130
|
+
const xTargets = [
|
|
131
|
+
ALIGN_MARGIN,
|
|
132
|
+
(100 - box.w) / 2,
|
|
133
|
+
100 - ALIGN_MARGIN - box.w,
|
|
134
|
+
];
|
|
135
|
+
const yTargets = [
|
|
136
|
+
ALIGN_MARGIN,
|
|
137
|
+
(100 - box.h) / 2,
|
|
138
|
+
100 - ALIGN_MARGIN - box.h,
|
|
139
|
+
];
|
|
140
|
+
for (const other of others) {
|
|
141
|
+
xTargets.push(other.x, other.x + other.w / 2 - box.w / 2, other.x + other.w - box.w, other.x - box.w, other.x + other.w);
|
|
142
|
+
yTargets.push(other.y, other.y + other.h / 2 - box.h / 2, other.y + other.h - box.h, other.y - box.h, other.y + other.h);
|
|
143
|
+
}
|
|
144
|
+
return (parseCarouselSlotBox({
|
|
145
|
+
value: `${snapValue({ value: box.x, targets: xTargets })},${snapValue({ value: box.y, targets: yTargets })},${box.w},${box.h}`,
|
|
146
|
+
}) ?? box);
|
|
147
|
+
}
|
|
148
|
+
export function resizeCarouselSlotBox({ box, handle, dx, dy, }) {
|
|
149
|
+
let { x, y, w, h } = box;
|
|
150
|
+
if (handle.includes("e"))
|
|
151
|
+
w += dx;
|
|
152
|
+
if (handle.includes("s"))
|
|
153
|
+
h += dy;
|
|
154
|
+
if (handle.includes("w")) {
|
|
155
|
+
x += dx;
|
|
156
|
+
w -= dx;
|
|
157
|
+
}
|
|
158
|
+
if (handle.includes("n")) {
|
|
159
|
+
y += dy;
|
|
160
|
+
h -= dy;
|
|
161
|
+
}
|
|
162
|
+
if (w < 4) {
|
|
163
|
+
if (handle.includes("w"))
|
|
164
|
+
x -= 4 - w;
|
|
165
|
+
w = 4;
|
|
166
|
+
}
|
|
167
|
+
if (h < 4) {
|
|
168
|
+
if (handle.includes("n"))
|
|
169
|
+
y -= 4 - h;
|
|
170
|
+
h = 4;
|
|
171
|
+
}
|
|
172
|
+
return (parseCarouselSlotBox({ value: `${x},${y},${w},${h}` }) ?? {
|
|
173
|
+
x: 0,
|
|
174
|
+
y: 0,
|
|
175
|
+
w: 100,
|
|
176
|
+
h: 100,
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
export function carouselSlotZKey({ boxKey }) {
|
|
180
|
+
return `${CAROUSEL_SLOT_Z_PREFIX}${boxKey}`;
|
|
181
|
+
}
|
|
182
|
+
export function defaultCarouselLayerZ({ boxKey }) {
|
|
183
|
+
if (boxKey === "_bg")
|
|
184
|
+
return 0;
|
|
185
|
+
if (boxKey === "photo")
|
|
186
|
+
return 1;
|
|
187
|
+
if (boxKey === "_overlay")
|
|
188
|
+
return 2;
|
|
189
|
+
if (boxKey.startsWith("stamp"))
|
|
190
|
+
return 20;
|
|
191
|
+
if (boxKey.startsWith("sticker"))
|
|
192
|
+
return 30;
|
|
193
|
+
return 10;
|
|
194
|
+
}
|
|
195
|
+
export function readCarouselSlotZ({ slots, boxKey, }) {
|
|
196
|
+
const raw = slots[carouselSlotZKey({ boxKey })] ?? "";
|
|
197
|
+
if (!raw.trim())
|
|
198
|
+
return null;
|
|
199
|
+
const value = Number(raw);
|
|
200
|
+
return Number.isFinite(value) ? value : null;
|
|
201
|
+
}
|
|
202
|
+
export function carouselLayerZIndex({ slots, boxKey, }) {
|
|
203
|
+
return (readCarouselSlotZ({ slots, boxKey }) ?? defaultCarouselLayerZ({ boxKey }));
|
|
204
|
+
}
|
|
205
|
+
export function writeCarouselSlotZ({ slots, boxKey, z, }) {
|
|
206
|
+
return {
|
|
207
|
+
...slots,
|
|
208
|
+
[carouselSlotZKey({ boxKey })]: String(Math.round(z)),
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
export function carouselSlotRotateKey({ boxKey }) {
|
|
212
|
+
return `${CAROUSEL_SLOT_ROTATE_PREFIX}${boxKey}`;
|
|
213
|
+
}
|
|
214
|
+
export function readCarouselSlotRotate({ slots, boxKey, }) {
|
|
215
|
+
const raw = slots[carouselSlotRotateKey({ boxKey })] ?? "";
|
|
216
|
+
if (!raw.trim())
|
|
217
|
+
return 0;
|
|
218
|
+
const value = Number(raw);
|
|
219
|
+
return Number.isFinite(value) ? value : 0;
|
|
220
|
+
}
|
|
221
|
+
export function writeCarouselSlotRotate({ slots, boxKey, deg, }) {
|
|
222
|
+
const normalized = ((Math.round(deg) % 360) + 360) % 360;
|
|
223
|
+
return {
|
|
224
|
+
...slots,
|
|
225
|
+
[carouselSlotRotateKey({ boxKey })]: normalized === 0 ? "" : String(normalized),
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
export function carouselSlotOpacityKey({ boxKey }) {
|
|
229
|
+
return `${CAROUSEL_SLOT_OPACITY_PREFIX}${boxKey}`;
|
|
230
|
+
}
|
|
231
|
+
export function readCarouselSlotOpacity({ slots, boxKey, }) {
|
|
232
|
+
const raw = slots[carouselSlotOpacityKey({ boxKey })] ?? "";
|
|
233
|
+
if (!raw.trim())
|
|
234
|
+
return 100;
|
|
235
|
+
const value = Number(raw);
|
|
236
|
+
if (!Number.isFinite(value))
|
|
237
|
+
return 100;
|
|
238
|
+
return Math.max(0, Math.min(100, Math.round(value)));
|
|
239
|
+
}
|
|
240
|
+
export function writeCarouselSlotOpacity({ slots, boxKey, opacity, }) {
|
|
241
|
+
const normalized = Math.max(0, Math.min(100, Math.round(opacity)));
|
|
242
|
+
return {
|
|
243
|
+
...slots,
|
|
244
|
+
[carouselSlotOpacityKey({ boxKey })]: normalized >= 100 ? "" : String(normalized),
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
export function carouselSlotFlipKey({ boxKey }) {
|
|
248
|
+
return `${CAROUSEL_SLOT_FLIP_PREFIX}${boxKey}`;
|
|
249
|
+
}
|
|
250
|
+
export function readCarouselSlotFlip({ slots, boxKey, }) {
|
|
251
|
+
const raw = (slots[carouselSlotFlipKey({ boxKey })] ?? "").trim();
|
|
252
|
+
if (raw === "h" || raw === "v" || raw === "hv")
|
|
253
|
+
return raw;
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
export function writeCarouselSlotFlip({ slots, boxKey, flip, }) {
|
|
257
|
+
return {
|
|
258
|
+
...slots,
|
|
259
|
+
[carouselSlotFlipKey({ boxKey })]: flip ?? "",
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
export function toggleCarouselSlotFlip({ slots, boxKey, axis, }) {
|
|
263
|
+
const current = readCarouselSlotFlip({ slots, boxKey });
|
|
264
|
+
const hasAxis = current === axis || current === "hv";
|
|
265
|
+
let next;
|
|
266
|
+
if (axis === "h") {
|
|
267
|
+
next = hasAxis
|
|
268
|
+
? current === "hv"
|
|
269
|
+
? "v"
|
|
270
|
+
: null
|
|
271
|
+
: current === "v"
|
|
272
|
+
? "hv"
|
|
273
|
+
: "h";
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
next = hasAxis
|
|
277
|
+
? current === "hv"
|
|
278
|
+
? "h"
|
|
279
|
+
: null
|
|
280
|
+
: current === "h"
|
|
281
|
+
? "hv"
|
|
282
|
+
: "v";
|
|
283
|
+
}
|
|
284
|
+
return writeCarouselSlotFlip({ slots, boxKey, flip: next });
|
|
285
|
+
}
|
|
286
|
+
export function carouselLayerBoxKeys({ slots, }) {
|
|
287
|
+
const keys = new Set(["photo", "_overlay"]);
|
|
288
|
+
for (const key of Object.keys(slots)) {
|
|
289
|
+
if (key.startsWith("_t.") ||
|
|
290
|
+
key.startsWith("_s.") ||
|
|
291
|
+
key.startsWith("_z.") ||
|
|
292
|
+
key.startsWith("_r.") ||
|
|
293
|
+
key.startsWith("_o.") ||
|
|
294
|
+
key.startsWith("_f.") ||
|
|
295
|
+
key.startsWith("_g.")) {
|
|
296
|
+
keys.add(key.slice(3));
|
|
297
|
+
continue;
|
|
298
|
+
}
|
|
299
|
+
if (key.startsWith("_"))
|
|
300
|
+
continue;
|
|
301
|
+
keys.add(carouselSlotBoxKey({ key }));
|
|
302
|
+
}
|
|
303
|
+
return [...keys];
|
|
304
|
+
}
|
|
305
|
+
function isCarouselStackPeer({ boxKey }) {
|
|
306
|
+
return boxKey !== "_bg" && boxKey !== "photo" && boxKey !== "_overlay";
|
|
307
|
+
}
|
|
308
|
+
export function readCarouselSlotGroup({ slots, boxKey, }) {
|
|
309
|
+
const value = (slots[`${CAROUSEL_SLOT_GROUP_PREFIX}${boxKey}`] ?? "").trim();
|
|
310
|
+
return value.length > 0 ? value : null;
|
|
311
|
+
}
|
|
312
|
+
export function writeCarouselSlotGroup({ slots, boxKey, groupId, }) {
|
|
313
|
+
return {
|
|
314
|
+
...slots,
|
|
315
|
+
[`${CAROUSEL_SLOT_GROUP_PREFIX}${boxKey}`]: groupId ?? "",
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
export function carouselSlotGroupMembers({ slots, boxKey, }) {
|
|
319
|
+
const groupId = readCarouselSlotGroup({ slots, boxKey });
|
|
320
|
+
if (!groupId)
|
|
321
|
+
return [boxKey];
|
|
322
|
+
return carouselLayerBoxKeys({ slots }).filter((key) => readCarouselSlotGroup({ slots, boxKey: key }) === groupId);
|
|
323
|
+
}
|
|
324
|
+
export function groupCarouselSlotBoxes({ slots, boxKeys, groupId, }) {
|
|
325
|
+
const unique = [
|
|
326
|
+
...new Set(boxKeys.map((key) => carouselSlotBoxKey({ key }))),
|
|
327
|
+
].filter((key) => isCarouselStackPeer({ boxKey: key }));
|
|
328
|
+
if (unique.length < 2)
|
|
329
|
+
return slots;
|
|
330
|
+
const id = groupId ?? crypto.randomUUID();
|
|
331
|
+
let next = slots;
|
|
332
|
+
for (const boxKey of unique) {
|
|
333
|
+
next = writeCarouselSlotGroup({ slots: next, boxKey, groupId: id });
|
|
334
|
+
}
|
|
335
|
+
return next;
|
|
336
|
+
}
|
|
337
|
+
export function ungroupCarouselSlotBoxes({ slots, boxKeys, }) {
|
|
338
|
+
const ids = new Set();
|
|
339
|
+
for (const key of boxKeys) {
|
|
340
|
+
const groupId = readCarouselSlotGroup({
|
|
341
|
+
slots,
|
|
342
|
+
boxKey: carouselSlotBoxKey({ key }),
|
|
343
|
+
});
|
|
344
|
+
if (groupId)
|
|
345
|
+
ids.add(groupId);
|
|
346
|
+
}
|
|
347
|
+
if (ids.size === 0)
|
|
348
|
+
return slots;
|
|
349
|
+
let next = slots;
|
|
350
|
+
for (const boxKey of carouselLayerBoxKeys({ slots })) {
|
|
351
|
+
const groupId = readCarouselSlotGroup({ slots: next, boxKey });
|
|
352
|
+
if (!groupId || !ids.has(groupId))
|
|
353
|
+
continue;
|
|
354
|
+
next = writeCarouselSlotGroup({ slots: next, boxKey, groupId: null });
|
|
355
|
+
}
|
|
356
|
+
return next;
|
|
357
|
+
}
|
|
358
|
+
export function bringCarouselLayerForward({ slots, key, }) {
|
|
359
|
+
const boxKey = carouselSlotBoxKey({ key });
|
|
360
|
+
let max = Number.NEGATIVE_INFINITY;
|
|
361
|
+
for (const item of carouselLayerBoxKeys({ slots })) {
|
|
362
|
+
max = Math.max(max, carouselLayerZIndex({ slots, boxKey: item }));
|
|
363
|
+
}
|
|
364
|
+
if (!Number.isFinite(max))
|
|
365
|
+
max = 0;
|
|
366
|
+
return writeCarouselSlotZ({ slots, boxKey, z: max + 1 });
|
|
367
|
+
}
|
|
368
|
+
export function sendCarouselLayerBackward({ slots, key, }) {
|
|
369
|
+
const boxKey = carouselSlotBoxKey({ key });
|
|
370
|
+
let min = Number.POSITIVE_INFINITY;
|
|
371
|
+
for (const item of carouselLayerBoxKeys({ slots })) {
|
|
372
|
+
if (!isCarouselStackPeer({ boxKey: item }))
|
|
373
|
+
continue;
|
|
374
|
+
if (item === boxKey)
|
|
375
|
+
continue;
|
|
376
|
+
min = Math.min(min, carouselLayerZIndex({ slots, boxKey: item }));
|
|
377
|
+
}
|
|
378
|
+
const floor = defaultCarouselLayerZ({ boxKey: "_overlay" }) + 1;
|
|
379
|
+
if (!Number.isFinite(min))
|
|
380
|
+
min = floor;
|
|
381
|
+
return writeCarouselSlotZ({
|
|
382
|
+
slots,
|
|
383
|
+
boxKey,
|
|
384
|
+
z: Math.max(min - 1, floor),
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
//# sourceMappingURL=carousel-slot-layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-slot-layout.js","sourceRoot":"","sources":["../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,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,mBAAmB,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACpE,CAAC;IACD,MAAM,KAAK,GAAG,qBAAqB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,GAAG,CAAC,CAAC;IAChE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,GAAG,GAAG,KAAK,CAAC;IACvC,OAAO,kBAAkB,CAAC;QACxB,KAAK;QACL,MAAM;QACN,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,EAAE,KAAK,CAAC;KAC5B,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare const CAROUSEL_SLOT_STYLE_PREFIX = "_s.";
|
|
2
|
+
export declare const CAROUSEL_MAX_CHIPS = 6;
|
|
3
|
+
export declare const CAROUSEL_TEXT_SIZE_PX: {
|
|
4
|
+
readonly s: 22;
|
|
5
|
+
readonly m: 32;
|
|
6
|
+
readonly l: 42;
|
|
7
|
+
readonly xl: 56;
|
|
8
|
+
};
|
|
9
|
+
export type CarouselSlotLook = {
|
|
10
|
+
weight: number;
|
|
11
|
+
size: number;
|
|
12
|
+
color: string;
|
|
13
|
+
background: string;
|
|
14
|
+
fontFamily: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function carouselSlotStyleKey({ key }: {
|
|
17
|
+
key: string;
|
|
18
|
+
}): string;
|
|
19
|
+
export declare function parseCarouselSlotLook({ value, }: {
|
|
20
|
+
value: string;
|
|
21
|
+
}): CarouselSlotLook | null;
|
|
22
|
+
export declare function serializeCarouselSlotLook({ look, }: {
|
|
23
|
+
look: CarouselSlotLook;
|
|
24
|
+
}): string;
|
|
25
|
+
export declare const CAROUSEL_PRIMARY_LOOK_KEYS: readonly ["title", "quote", "value", "eyebrow", "chip1"];
|
|
26
|
+
export declare function readCarouselSlotLook({ slots, key, }: {
|
|
27
|
+
slots: Record<string, string>;
|
|
28
|
+
key: string;
|
|
29
|
+
}): CarouselSlotLook | null;
|
|
30
|
+
export declare function readCarouselPrimaryLook({ slots, }: {
|
|
31
|
+
slots: Record<string, string>;
|
|
32
|
+
}): CarouselSlotLook | null;
|
|
33
|
+
export declare function resolveCarouselLookKey({ activeKey, canLook, slots, fieldKeys, }: {
|
|
34
|
+
activeKey: string | null;
|
|
35
|
+
canLook: boolean;
|
|
36
|
+
slots: Record<string, string>;
|
|
37
|
+
fieldKeys: string[];
|
|
38
|
+
}): string | null;
|
|
39
|
+
export declare function carouselTextLookKeys({ slots, extraKeys, }: {
|
|
40
|
+
slots: Record<string, string>;
|
|
41
|
+
extraKeys?: string[];
|
|
42
|
+
}): string[];
|
|
43
|
+
export declare function paintCarouselLookAcrossText({ slots, look, primaryKey, }: {
|
|
44
|
+
slots: Record<string, string>;
|
|
45
|
+
look: CarouselSlotLook;
|
|
46
|
+
primaryKey: string;
|
|
47
|
+
}): Record<string, string>;
|
|
48
|
+
export declare function writeCarouselSlotLook({ slots, key, look, }: {
|
|
49
|
+
slots: Record<string, string>;
|
|
50
|
+
key: string;
|
|
51
|
+
look: CarouselSlotLook;
|
|
52
|
+
}): Record<string, string>;
|
|
53
|
+
export declare function carouselSlotsHaveLook({ slots, }: {
|
|
54
|
+
slots: Record<string, string>;
|
|
55
|
+
}): boolean;
|
|
56
|
+
export declare function carouselChipKeyAt({ index }: {
|
|
57
|
+
index: number;
|
|
58
|
+
}): string;
|
|
59
|
+
export declare function readCarouselChipValue({ slots, lines, index, }: {
|
|
60
|
+
slots: Record<string, string>;
|
|
61
|
+
lines?: string[];
|
|
62
|
+
index: number;
|
|
63
|
+
}): string;
|
|
64
|
+
export declare function carouselPresentChipKeys({ slots, lines, }: {
|
|
65
|
+
slots: Record<string, string>;
|
|
66
|
+
lines?: string[];
|
|
67
|
+
}): string[];
|
|
68
|
+
export declare function nextCarouselChipKey({ slots, lines, }: {
|
|
69
|
+
slots: Record<string, string>;
|
|
70
|
+
lines?: string[];
|
|
71
|
+
}): string | null;
|
|
72
|
+
export declare function clearCarouselChip({ slots, key, }: {
|
|
73
|
+
slots: Record<string, string>;
|
|
74
|
+
key: string;
|
|
75
|
+
}): Record<string, string>;
|
|
76
|
+
export declare function carouselSlotIsText({ key }: {
|
|
77
|
+
key: string;
|
|
78
|
+
}): boolean;
|
|
79
|
+
//# sourceMappingURL=carousel-slot-look.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-slot-look.d.ts","sourceRoot":"","sources":["../src/carousel-slot-look.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAChD,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAEpC,eAAO,MAAM,qBAAqB;aAChC,CAAC,EAAE,EAAE;aACL,CAAC,EAAE,EAAE;aACL,CAAC,EAAE,EAAE;aACL,EAAE,EAAE,EAAE;CACE,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAUF,wBAAgB,oBAAoB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAErE;AAED,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,GACN,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,gBAAgB,GAAG,IAAI,CAkB1B;AAED,wBAAgB,yBAAyB,CAAC,EACxC,IAAI,GACL,EAAE;IACD,IAAI,EAAE,gBAAgB,CAAC;CACxB,GAAG,MAAM,CAST;AAED,eAAO,MAAM,0BAA0B,YACrC,OAAO,EACP,OAAO,EACP,OAAO,EACP,SAAS,EACT,OAAO,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