@linktr.ee/linkapp 0.0.45 → 0.0.47
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/README.md +6 -6
- package/dev-server/{sheet → expanded}/main.tsx +2 -2
- package/dev-server/{sheet.html → expanded.html} +2 -2
- package/dev-server/preview/Preview.tsx +257 -245
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +21 -11
- package/dist/commands/dev.js.map +1 -1
- package/dist/lib/build/detect-layouts.d.ts +3 -1
- package/dist/lib/build/detect-layouts.d.ts.map +1 -1
- package/dist/lib/build/detect-layouts.js +16 -8
- package/dist/lib/build/detect-layouts.js.map +1 -1
- package/dist/lib/utils/setup-runtime.d.ts.map +1 -1
- package/dist/lib/utils/setup-runtime.js +26 -18
- package/dist/lib/utils/setup-runtime.js.map +1 -1
- package/dist/schema/config.schema.d.ts +2 -2
- package/dist/schema/config.schema.js +1 -1
- package/dist/schema/config.schema.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -1
- package/dist/lib/config/resolve-config-path.d.ts +0 -19
- package/dist/lib/config/resolve-config-path.d.ts.map +0 -1
- package/dist/lib/config/resolve-config-path.js +0 -54
- package/dist/lib/config/resolve-config-path.js.map +0 -1
- package/dist/lib/deploy/artifacts.d.ts +0 -21
- package/dist/lib/deploy/artifacts.d.ts.map +0 -1
- package/dist/lib/deploy/artifacts.js +0 -35
- package/dist/lib/deploy/artifacts.js.map +0 -1
- package/dist/lib/deploy/confirmation.d.ts +0 -12
- package/dist/lib/deploy/confirmation.d.ts.map +0 -1
- package/dist/lib/deploy/confirmation.js +0 -30
- package/dist/lib/deploy/confirmation.js.map +0 -1
- package/dist/lib/deploy/context.d.ts +0 -44
- package/dist/lib/deploy/context.d.ts.map +0 -1
- package/dist/lib/deploy/context.js +0 -39
- package/dist/lib/deploy/context.js.map +0 -1
- package/dist/lib/deploy/execution.d.ts +0 -24
- package/dist/lib/deploy/execution.d.ts.map +0 -1
- package/dist/lib/deploy/execution.js +0 -29
- package/dist/lib/deploy/execution.js.map +0 -1
- package/dist/lib/deploy/output.d.ts +0 -16
- package/dist/lib/deploy/output.d.ts.map +0 -1
- package/dist/lib/deploy/output.js +0 -115
- package/dist/lib/deploy/output.js.map +0 -1
- package/dist/lib/deploy/preflight.d.ts +0 -9
- package/dist/lib/deploy/preflight.d.ts.map +0 -1
- package/dist/lib/deploy/preflight.js +0 -59
- package/dist/lib/deploy/preflight.js.map +0 -1
- package/dist/lib/utils/constants.d.ts +0 -42
- package/dist/lib/utils/constants.d.ts.map +0 -1
- package/dist/lib/utils/constants.js +0 -42
- package/dist/lib/utils/constants.js.map +0 -1
- package/dist/lib/utils/create-project.d.ts +0 -8
- package/dist/lib/utils/create-project.d.ts.map +0 -1
- package/dist/lib/utils/create-project.js +0 -48
- package/dist/lib/utils/create-project.js.map +0 -1
- package/dist/lib/utils/errors.d.ts +0 -49
- package/dist/lib/utils/errors.d.ts.map +0 -1
- package/dist/lib/utils/errors.js +0 -70
- package/dist/lib/utils/errors.js.map +0 -1
- package/dist/lib/utils/formatters.d.ts +0 -34
- package/dist/lib/utils/formatters.d.ts.map +0 -1
- package/dist/lib/utils/formatters.js +0 -59
- package/dist/lib/utils/formatters.js.map +0 -1
- package/dist/lib/utils/output.d.ts +0 -46
- package/dist/lib/utils/output.d.ts.map +0 -1
- package/dist/lib/utils/output.js +0 -66
- package/dist/lib/utils/output.js.map +0 -1
- package/dist/schema/index.d.ts +0 -8
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/index.js +0 -8
- package/dist/schema/index.js.map +0 -1
- package/dist/sdk/use-open-popup.d.ts +0 -23
- package/dist/sdk/use-open-popup.d.ts.map +0 -1
- package/dist/sdk/use-open-popup.js +0 -29
- package/dist/sdk/use-open-popup.js.map +0 -1
|
@@ -36,25 +36,31 @@ function Chin({ title }: { title?: string }) {
|
|
|
36
36
|
|
|
37
37
|
export default function Preview() {
|
|
38
38
|
// These are injected by the dev server
|
|
39
|
-
// @ts-expect-error - injected by dev server
|
|
40
|
-
const hasFeatured =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
// @ts-expect-error - injected by dev server
|
|
40
|
+
const hasFeatured =
|
|
41
|
+
typeof __HAS_FEATURED__ !== "undefined" && __HAS_FEATURED__;
|
|
42
|
+
// @ts-expect-error - injected by dev server
|
|
43
|
+
const hasCarousel =
|
|
44
|
+
typeof __HAS_CAROUSEL__ !== "undefined" && __HAS_CAROUSEL__;
|
|
44
45
|
|
|
45
|
-
// Initialize state from localStorage
|
|
46
|
+
// Initialize state from localStorage
|
|
46
47
|
const [selectedTab, setSelectedTab] = useState<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
"expanded" | "featured" | "carousel" | "settings"
|
|
49
|
+
>(() => {
|
|
50
|
+
const saved = localStorage.getItem("linkapp-preview-tab");
|
|
51
|
+
if (saved === "featured" && !hasFeatured) {
|
|
52
|
+
return "expanded";
|
|
53
|
+
}
|
|
54
|
+
if (saved === "carousel" && !hasCarousel) {
|
|
55
|
+
return "expanded";
|
|
56
|
+
}
|
|
57
|
+
if (saved === "sheet") {
|
|
58
|
+
return "expanded";
|
|
59
|
+
}
|
|
60
|
+
return (
|
|
61
|
+
(saved as "expanded" | "featured" | "carousel" | "settings") || "expanded"
|
|
62
|
+
);
|
|
63
|
+
});
|
|
58
64
|
const [selectedTheme, setSelectedTheme] = useState<
|
|
59
65
|
keyof typeof THEME_PRESETS
|
|
60
66
|
>(() => {
|
|
@@ -72,7 +78,10 @@ const hasCarousel =
|
|
|
72
78
|
const [isPopupOpen, setIsPopupOpen] = useState(false);
|
|
73
79
|
|
|
74
80
|
// Generate unique IDs for iframes using timestamp
|
|
75
|
-
const
|
|
81
|
+
const expandedIframeId = useMemo(
|
|
82
|
+
() => `preview-iframe-expanded-${Date.now()}`,
|
|
83
|
+
[],
|
|
84
|
+
);
|
|
76
85
|
const featuredIframeId = useMemo(
|
|
77
86
|
() => `preview-iframe-featured-${Date.now()}`,
|
|
78
87
|
[],
|
|
@@ -139,15 +148,22 @@ const hasCarousel =
|
|
|
139
148
|
|
|
140
149
|
<div
|
|
141
150
|
className={cn("min-h-screen", {
|
|
142
|
-
"bg-black/50": selectedTab === "
|
|
143
|
-
"bg-linktree-frame":
|
|
151
|
+
"bg-black/50": selectedTab === "expanded",
|
|
152
|
+
"bg-linktree-frame":
|
|
153
|
+
selectedTab === "featured" || selectedTab === "carousel",
|
|
144
154
|
})}
|
|
145
155
|
id="preview"
|
|
146
156
|
>
|
|
147
157
|
<Tabs
|
|
148
158
|
value={selectedTab}
|
|
149
159
|
onValueChange={(value) =>
|
|
150
|
-
setSelectedTab(
|
|
160
|
+
setSelectedTab(
|
|
161
|
+
(value === "sheet" ? "expanded" : value) as
|
|
162
|
+
| "expanded"
|
|
163
|
+
| "featured"
|
|
164
|
+
| "carousel"
|
|
165
|
+
| "settings",
|
|
166
|
+
)
|
|
151
167
|
}
|
|
152
168
|
>
|
|
153
169
|
<Portal>
|
|
@@ -156,13 +172,15 @@ const hasCarousel =
|
|
|
156
172
|
style={{ zIndex: 1000000 }}
|
|
157
173
|
>
|
|
158
174
|
<TabsList>
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
175
|
+
<TabsTrigger value="expanded">Expanded</TabsTrigger>
|
|
176
|
+
{hasFeatured && (
|
|
177
|
+
<TabsTrigger value="featured">Featured</TabsTrigger>
|
|
178
|
+
)}
|
|
179
|
+
{hasCarousel && (
|
|
180
|
+
<TabsTrigger value="carousel">Carousel</TabsTrigger>
|
|
181
|
+
)}
|
|
182
|
+
<TabsTrigger value="settings">Settings</TabsTrigger>
|
|
183
|
+
</TabsList>
|
|
166
184
|
|
|
167
185
|
{/* Theme Switcher */}
|
|
168
186
|
<div className="flex items-center gap-2">
|
|
@@ -191,10 +209,9 @@ const hasCarousel =
|
|
|
191
209
|
|
|
192
210
|
{/* Main Content with Padding for Fixed Tabs */}
|
|
193
211
|
<div className="pt-20">
|
|
194
|
-
<TabsContent value="
|
|
195
|
-
{/*
|
|
212
|
+
<TabsContent value="expanded" className="m-0">
|
|
213
|
+
{/* Expanded Modal - Always Open */}
|
|
196
214
|
<Dialog open={true} modal={false}>
|
|
197
|
-
<DialogOverlay />
|
|
198
215
|
<DialogContent
|
|
199
216
|
className="h-[calc(100dvh-2rem)] max-w-[608px] md:min-h-[25vh] md:h-[80%] md:max-h-[900px] overflow-auto"
|
|
200
217
|
showCloseButton={false}
|
|
@@ -220,7 +237,7 @@ const hasCarousel =
|
|
|
220
237
|
</button>
|
|
221
238
|
|
|
222
239
|
<DialogTitle className="self-center truncate py-3 text-center">
|
|
223
|
-
|
|
240
|
+
Expanded
|
|
224
241
|
</DialogTitle>
|
|
225
242
|
|
|
226
243
|
<button className="flex size-8 items-center justify-center rounded-sm focus-visible:outline-none">
|
|
@@ -240,216 +257,211 @@ const hasCarousel =
|
|
|
240
257
|
></path>
|
|
241
258
|
</svg>
|
|
242
259
|
</button>
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
</Dialog>
|
|
452
|
-
</div>
|
|
453
|
-
</>
|
|
454
|
-
);
|
|
455
|
-
}
|
|
260
|
+
</div>
|
|
261
|
+
</DialogHeader>
|
|
262
|
+
|
|
263
|
+
<div className="flex h-[calc(100%-64px)] flex-1 flex-col justify-between overflow-hidden">
|
|
264
|
+
<div className="h-full overflow-y-auto overflow-x-hidden">
|
|
265
|
+
<IframeResizer
|
|
266
|
+
key={`expanded-${selectedTheme}`}
|
|
267
|
+
id={expandedIframeId}
|
|
268
|
+
src={`/expanded?theme=${selectedTheme}`}
|
|
269
|
+
style={{
|
|
270
|
+
height: "0px",
|
|
271
|
+
width: "1px",
|
|
272
|
+
minWidth: "100%",
|
|
273
|
+
border: 0,
|
|
274
|
+
}}
|
|
275
|
+
checkOrigin={false}
|
|
276
|
+
onResized={handleResized}
|
|
277
|
+
heightCalculationMethod="max"
|
|
278
|
+
/>
|
|
279
|
+
</div>
|
|
280
|
+
</div>
|
|
281
|
+
</DialogContent>
|
|
282
|
+
</Dialog>
|
|
283
|
+
</TabsContent>
|
|
284
|
+
|
|
285
|
+
{hasFeatured && (
|
|
286
|
+
<TabsContent
|
|
287
|
+
value="featured"
|
|
288
|
+
className="m-0 flex justify-center p-8"
|
|
289
|
+
>
|
|
290
|
+
<div className="w-full max-w-[580px] flex flex-col px-[28px] py-7 items-center bg-gray-100">
|
|
291
|
+
<div className="w-full max-w-[524px]">
|
|
292
|
+
{chinPosition === "above" && <Chin title={chinTitle} />}
|
|
293
|
+
|
|
294
|
+
<div
|
|
295
|
+
className={cn(
|
|
296
|
+
"bg-linktree-button-bg hover:bg-linktree-button-bg-hover border-linktree-button-border text-linktree-button-text rounded-linktree-button shadow-linktree-button overflow-hidden",
|
|
297
|
+
isOverlay && "relative",
|
|
298
|
+
)}
|
|
299
|
+
>
|
|
300
|
+
{chinPosition === "overlay_above" && (
|
|
301
|
+
<div className="absolute top-0 left-0 right-0 z-10">
|
|
302
|
+
<Chin title={chinTitle} />
|
|
303
|
+
</div>
|
|
304
|
+
)}
|
|
305
|
+
|
|
306
|
+
<IframeResizer
|
|
307
|
+
key={`featured-${selectedTheme}`}
|
|
308
|
+
id={featuredIframeId}
|
|
309
|
+
src={`/featured?theme=${selectedTheme}`}
|
|
310
|
+
style={{
|
|
311
|
+
height: "0px",
|
|
312
|
+
width: "1px",
|
|
313
|
+
minWidth: "100%",
|
|
314
|
+
border: 0,
|
|
315
|
+
}}
|
|
316
|
+
checkOrigin={false}
|
|
317
|
+
onResized={handleResized}
|
|
318
|
+
heightCalculationMethod="max"
|
|
319
|
+
/>
|
|
320
|
+
|
|
321
|
+
{chinPosition === "overlayBelow" && (
|
|
322
|
+
<div className="absolute bottom-0 left-0 right-0 z-10">
|
|
323
|
+
<Chin title={chinTitle} />
|
|
324
|
+
</div>
|
|
325
|
+
)}
|
|
326
|
+
</div>
|
|
327
|
+
|
|
328
|
+
{chinPosition === "below" && <Chin title={chinTitle} />}
|
|
329
|
+
</div>
|
|
330
|
+
</div>
|
|
331
|
+
</TabsContent>
|
|
332
|
+
)}
|
|
333
|
+
|
|
334
|
+
{hasCarousel && (
|
|
335
|
+
<TabsContent
|
|
336
|
+
value="carousel"
|
|
337
|
+
className="m-0 flex justify-center p-8"
|
|
338
|
+
>
|
|
339
|
+
<div className="w-full max-w-[580px] flex flex-col px-[28px] py-7 items-center bg-gray-100">
|
|
340
|
+
<div className="w-full max-w-[524px]">
|
|
341
|
+
{chinPosition === "above" && <Chin title={chinTitle} />}
|
|
342
|
+
|
|
343
|
+
<div
|
|
344
|
+
className={cn(
|
|
345
|
+
"bg-linktree-button-bg hover:bg-linktree-button-bg-hover border-linktree-button-border text-linktree-button-text rounded-linktree-button shadow-linktree-button overflow-hidden",
|
|
346
|
+
isOverlay && "relative",
|
|
347
|
+
)}
|
|
348
|
+
style={
|
|
349
|
+
!__SETTINGS_CONFIG__?.featured_head_allow_unlocked_aspect_ratio
|
|
350
|
+
? { aspectRatio: "11 / 8" }
|
|
351
|
+
: undefined
|
|
352
|
+
}
|
|
353
|
+
>
|
|
354
|
+
{chinPosition === "overlay_above" && (
|
|
355
|
+
<div className="absolute top-0 left-0 right-0 z-10">
|
|
356
|
+
<Chin title={chinTitle} />
|
|
357
|
+
</div>
|
|
358
|
+
)}
|
|
359
|
+
|
|
360
|
+
<IframeResizer
|
|
361
|
+
key={`carousel-${selectedTheme}`}
|
|
362
|
+
id={carouselIframeId}
|
|
363
|
+
src={`/featured-carousel?theme=${selectedTheme}`}
|
|
364
|
+
style={{
|
|
365
|
+
height: "0px",
|
|
366
|
+
width: "1px",
|
|
367
|
+
minWidth: "100%",
|
|
368
|
+
border: 0,
|
|
369
|
+
}}
|
|
370
|
+
checkOrigin={false}
|
|
371
|
+
onResized={handleResized}
|
|
372
|
+
heightCalculationMethod="max"
|
|
373
|
+
/>
|
|
374
|
+
|
|
375
|
+
{chinPosition === "overlayBelow" && (
|
|
376
|
+
<div className="absolute bottom-0 left-0 right-0 z-10">
|
|
377
|
+
<Chin title={chinTitle} />
|
|
378
|
+
</div>
|
|
379
|
+
)}
|
|
380
|
+
</div>
|
|
381
|
+
|
|
382
|
+
{chinPosition === "below" && <Chin title={chinTitle} />}
|
|
383
|
+
</div>
|
|
384
|
+
</div>
|
|
385
|
+
</TabsContent>
|
|
386
|
+
)}
|
|
387
|
+
|
|
388
|
+
<TabsContent value="settings" className="m-0">
|
|
389
|
+
<SettingsPreview settings={__SETTINGS_CONFIG__} />
|
|
390
|
+
</TabsContent>
|
|
391
|
+
</div>
|
|
392
|
+
</Tabs>
|
|
393
|
+
|
|
394
|
+
{/* Popup Dialog for EXPAND_LINK_APP message */}
|
|
395
|
+
<Dialog open={isPopupOpen} onOpenChange={setIsPopupOpen}>
|
|
396
|
+
<DialogContent
|
|
397
|
+
className="h-[calc(100dvh-2rem)] max-w-[608px] md:min-h-[25vh] md:h-[80%] md:max-h-[900px] overflow-auto"
|
|
398
|
+
showCloseButton={false}
|
|
399
|
+
>
|
|
400
|
+
<DialogHeader className="sticky top-0 bg-white px-4">
|
|
401
|
+
<div className="grid h-16 grid-cols-[32px_auto_32px] items-center gap-4">
|
|
402
|
+
<button className="flex size-8 items-center justify-center rounded-sm focus-visible:outline-none">
|
|
403
|
+
<svg
|
|
404
|
+
width="16"
|
|
405
|
+
height="16"
|
|
406
|
+
viewBox="0 0 16 16"
|
|
407
|
+
fill="none"
|
|
408
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
409
|
+
className=" "
|
|
410
|
+
role="img"
|
|
411
|
+
aria-hidden="true"
|
|
412
|
+
>
|
|
413
|
+
<path
|
|
414
|
+
fill="currentColor"
|
|
415
|
+
d="m10.65 3.85.35.36.7-.71-.35-.35-3-3h-.7l-3 3-.36.35.71.7.35-.35L7.5 1.71V10h1V1.7l2.15 2.15ZM1 5.5l.5-.5H4v1H2v9h12V6h-2V5h2.5l.5.5v10l-.5.5h-13l-.5-.5v-10Z"
|
|
416
|
+
></path>
|
|
417
|
+
</svg>
|
|
418
|
+
</button>
|
|
419
|
+
|
|
420
|
+
<DialogTitle className="self-center truncate py-3 text-center">
|
|
421
|
+
Expanded
|
|
422
|
+
</DialogTitle>
|
|
423
|
+
|
|
424
|
+
<button className="flex size-8 items-center justify-center rounded-sm focus-visible:outline-none">
|
|
425
|
+
<svg
|
|
426
|
+
width="16"
|
|
427
|
+
height="16"
|
|
428
|
+
viewBox="0 0 16 16"
|
|
429
|
+
fill="none"
|
|
430
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
431
|
+
className=" "
|
|
432
|
+
role="img"
|
|
433
|
+
aria-hidden="true"
|
|
434
|
+
>
|
|
435
|
+
<path
|
|
436
|
+
fill="currentColor"
|
|
437
|
+
d="m13.63 3.12.37-.38-.74-.74-.38.37.75.75ZM2.37 12.89l-.37.37.74.74.38-.37-.75-.75Zm.75-10.52L2.74 2 2 2.74l.37.38.75-.75Zm9.76 11.26.38.37.74-.74-.37-.38-.75.75Zm0-11.26L2.38 12.9l.74.74 10.5-10.51-.74-.75Zm-10.5.75 10.5 10.5.75-.73L3.12 2.37l-.75.75Z"
|
|
438
|
+
></path>
|
|
439
|
+
</svg>
|
|
440
|
+
</button>
|
|
441
|
+
</div>
|
|
442
|
+
</DialogHeader>
|
|
443
|
+
|
|
444
|
+
<div className="flex h-[calc(100%-64px)] flex-1 flex-col justify-between overflow-hidden">
|
|
445
|
+
<div className="h-full overflow-y-auto overflow-x-hidden">
|
|
446
|
+
<IframeResizer
|
|
447
|
+
key={`popup-${selectedTheme}`}
|
|
448
|
+
id={popupIframeId}
|
|
449
|
+
src={`/expanded?theme=${selectedTheme}`}
|
|
450
|
+
style={{
|
|
451
|
+
height: "0px",
|
|
452
|
+
width: "1px",
|
|
453
|
+
minWidth: "100%",
|
|
454
|
+
border: 0,
|
|
455
|
+
}}
|
|
456
|
+
checkOrigin={false}
|
|
457
|
+
onResized={handleResized}
|
|
458
|
+
heightCalculationMethod="max"
|
|
459
|
+
/>
|
|
460
|
+
</div>
|
|
461
|
+
</div>
|
|
462
|
+
</DialogContent>
|
|
463
|
+
</Dialog>
|
|
464
|
+
</div>
|
|
465
|
+
</>
|
|
466
|
+
);
|
|
467
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAmBA,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAmBA,UAAU,UAAU;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AA8WD,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,iBAkXnD"}
|