@happyvertical/smrt-images 0.60.16 → 0.60.18
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/dist/svelte/components/AssetsGallery.svelte +109 -105
- package/dist/svelte/components/ImageEditor.svelte +145 -128
- package/dist/svelte/components/ImageUploader.svelte +327 -280
- package/dist/svelte/components/PhotoCutoutSetup.svelte +147 -39
- package/dist/svelte/routes/ImageStudioRoute.svelte +68 -66
- package/package.json +15 -15
|
@@ -370,66 +370,174 @@ async function playSpeech() {
|
|
|
370
370
|
}
|
|
371
371
|
</script>
|
|
372
372
|
|
|
373
|
-
<section class="
|
|
373
|
+
<section class="smrt-photo-cutout-setup__root" aria-busy={busy !== null} aria-labelledby="cutout-title" data-smrt-component="PhotoCutoutSetup">
|
|
374
374
|
<h2 id="cutout-title">{t(M['images.photo_cutout_setup.title'])}</h2>
|
|
375
|
-
<ol class="
|
|
376
|
-
<li class:
|
|
377
|
-
<li class:
|
|
378
|
-
<li class:
|
|
379
|
-
<li class:
|
|
375
|
+
<ol class="smrt-photo-cutout-setup__steps" data-smrt-part="nav" aria-label={t(M['images.photo_cutout_setup.steps_label'])}>
|
|
376
|
+
<li class:smrt-photo-cutout-setup__current={!source && !ready} class:smrt-photo-cutout-setup__complete={source !== null || ready} aria-current={!source && !ready ? 'step' : undefined} data-smrt-part="item">{t(M['images.photo_cutout_setup.step_choose'])}</li>
|
|
377
|
+
<li class:smrt-photo-cutout-setup__current={source !== null && !head && !ready} class:smrt-photo-cutout-setup__complete={head !== null || ready} aria-current={source !== null && !head && !ready ? 'step' : undefined} data-smrt-part="item">{t(M['images.photo_cutout_setup.step_isolate'])}</li>
|
|
378
|
+
<li class:smrt-photo-cutout-setup__current={head !== null && !ready} class:smrt-photo-cutout-setup__complete={ready} aria-current={head !== null && !ready ? 'step' : undefined} data-smrt-part="item">{t(M['images.photo_cutout_setup.step_mouth'])}</li>
|
|
379
|
+
<li class:smrt-photo-cutout-setup__current={ready} aria-current={ready ? 'step' : undefined} data-smrt-part="item">{t(M['images.photo_cutout_setup.step_save'])}</li>
|
|
380
380
|
</ol>
|
|
381
|
-
<p class:
|
|
381
|
+
<p class:smrt-photo-cutout-setup__error={failed !== null} class:smrt-photo-cutout-setup__success={ready} role={failed ? 'alert' : undefined} aria-live={failed ? 'assertive' : 'polite'} data-smrt-part="status">{message}{#if busy} ({elapsed}s){/if}</p>
|
|
382
382
|
<FilePicker accept="image/png,image/jpeg,image/webp" label={t(M['images.photo_cutout_setup.choose_photo'])} description={t(M['images.photo_cutout_setup.photo_formats'])} aria-label={t(M['images.photo_cutout_setup.choose_photo'])} onchangefiles={select} disabled={persisting !== null} />
|
|
383
|
-
<div class="
|
|
384
|
-
<div class="
|
|
383
|
+
<div class="smrt-photo-cutout-setup__actions" data-smrt-part="actions">
|
|
384
|
+
<div class="smrt-photo-cutout-setup__primary" data-smrt-part="group">
|
|
385
385
|
{#if ready && saveSetup}<Button onclick={saveCharacter} disabled={persisting !== null}>{persisting === 'save' ? 'Saving…' : 'Save character'}</Button>
|
|
386
386
|
{:else if ready}<Button onclick={toggleMouth}>{open ? 'Close mouth' : 'Open mouth'}</Button>
|
|
387
387
|
{:else if !head}<Button onclick={() => run('outline')} disabled={!source || busy !== null}>{failed === 'outline' ? 'Retry head isolation' : 'Isolate head'}</Button>
|
|
388
388
|
{:else if !ready}<Button onclick={() => run('mouth-landmarks')} disabled={busy !== null}>{failed === 'mouth-landmarks' ? 'Retry mouth segmentation' : 'Continue: segment mouth'}</Button>
|
|
389
389
|
{/if}
|
|
390
|
-
{#if busy}<span class="spinner" aria-label={busy === 'outline' ? 'Isolating head' : 'Segmenting mouth'}></span><Button variant="secondary" onclick={cancel}>Cancel</Button>{/if}
|
|
390
|
+
{#if busy}<span class="smrt-photo-cutout-setup__spinner" data-smrt-part="spinner" aria-label={busy === 'outline' ? 'Isolating head' : 'Segmenting mouth'}></span><Button variant="secondary" onclick={cancel}>Cancel</Button>{/if}
|
|
391
391
|
</div>
|
|
392
|
-
{#if ready && saveSetup}<p class="
|
|
393
|
-
<div class="
|
|
392
|
+
{#if ready && saveSetup}<p class="smrt-photo-cutout-setup__save-hint" data-smrt-part="description">{t(M['images.photo_cutout_setup.save_hint'])}</p>{/if}
|
|
393
|
+
<div class="smrt-photo-cutout-setup__secondary" data-smrt-part="nav" aria-label={t(M['images.photo_cutout_setup.options_label'])}>
|
|
394
394
|
{#if head}<Button variant="secondary" onclick={() => run('outline')} disabled={busy !== null || persisting !== null}>{t(M['images.photo_cutout_setup.redo_head'])}</Button>{/if}
|
|
395
395
|
{#if head && ready}<Button variant="secondary" onclick={() => run('mouth-landmarks')} disabled={busy !== null || persisting !== null}>{t(M['images.photo_cutout_setup.redo_mouth'])}</Button>{/if}
|
|
396
396
|
{#if ready && saveSetup}<Button variant="secondary" onclick={toggleMouth}>{open ? 'Close mouth' : 'Open mouth'}</Button>{/if}
|
|
397
397
|
{#if loadSetup}<Button variant="secondary" onclick={loadCharacter} disabled={busy !== null || persisting !== null}>{persisting === 'load' ? 'Loading…' : 'Load saved character'}</Button>{/if}
|
|
398
398
|
</div>
|
|
399
399
|
</div>
|
|
400
|
-
{#if ready && speechPreview}<div class="
|
|
401
|
-
<div class="
|
|
402
|
-
{#if head}<figure><figcaption>{t(M['images.photo_cutout_setup.transparent_head'])}</figcaption><img class="
|
|
400
|
+
{#if ready && speechPreview}<div class="smrt-photo-cutout-setup__speech" data-smrt-part="panel"><label>{t(M['images.photo_cutout_setup.preview_speech'])} <Textarea bind:value={speechText} maxlength={500} disabled={speaking} /></label><Button onclick={playSpeech} disabled={speaking || !speechText.trim()}>{speaking ? speechStarted ? 'Speaking…' : 'Preparing…' : 'Play speech'}</Button>{#if speaking}<Button onclick={() => stopSpeech()}>{t(M['images.photo_cutout_setup.stop_speech'])}</Button>{/if}</div>{/if}
|
|
401
|
+
<div class="smrt-photo-cutout-setup__previews" data-smrt-part="list">
|
|
402
|
+
{#if head}<figure><figcaption>{t(M['images.photo_cutout_setup.transparent_head'])}</figcaption><img class="smrt-photo-cutout-setup__checkerboard" data-smrt-part="media" src={head.url} alt={t(M['images.photo_cutout_setup.isolated_head_alt'])} /></figure>
|
|
403
403
|
{:else if source}<figure><figcaption>{t(M['images.photo_cutout_setup.step_choose'])}</figcaption><img src={source.url} alt={t(M['images.photo_cutout_setup.source_alt'])} /></figure>{/if}
|
|
404
|
-
<div bind:this={target} class="
|
|
404
|
+
<div bind:this={target} class="smrt-photo-cutout-setup__preview-target" data-smrt-part="panel" class:smrt-photo-cutout-setup__preview={ready} class:smrt-photo-cutout-setup__checkerboard={ready} aria-label={ready ? t(M['images.photo_cutout_setup.preview_label']) : undefined} aria-hidden={!ready}></div>
|
|
405
405
|
</div>
|
|
406
406
|
</section>
|
|
407
407
|
|
|
408
408
|
<style>
|
|
409
409
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
410
|
+
@layer smrt.structure {
|
|
411
|
+
.smrt-photo-cutout-setup__root {
|
|
412
|
+
max-width: 42rem;
|
|
413
|
+
margin: var(--smrt-spacing-6, 1.5rem) auto;
|
|
414
|
+
padding: var(--smrt-spacing-5, 1.25rem);
|
|
415
|
+
}
|
|
416
|
+
.smrt-photo-cutout-setup__steps {
|
|
417
|
+
display: grid;
|
|
418
|
+
grid-template-columns: repeat(4, 1fr);
|
|
419
|
+
gap: var(--smrt-spacing-2, .5rem);
|
|
420
|
+
padding: 0;
|
|
421
|
+
margin: var(--smrt-spacing-4, 1rem) 0;
|
|
422
|
+
list-style: none;
|
|
423
|
+
}
|
|
424
|
+
.smrt-photo-cutout-setup__steps li {
|
|
425
|
+
padding-bottom: var(--smrt-spacing-1, .25rem);
|
|
426
|
+
}
|
|
427
|
+
.smrt-photo-cutout-setup__actions {
|
|
428
|
+
margin: var(--smrt-spacing-4, 1rem) 0;
|
|
429
|
+
}
|
|
430
|
+
.smrt-photo-cutout-setup__primary, .smrt-photo-cutout-setup__secondary, .smrt-photo-cutout-setup__speech {
|
|
431
|
+
display: flex;
|
|
432
|
+
flex-wrap: wrap;
|
|
433
|
+
align-items: center;
|
|
434
|
+
gap: var(--smrt-spacing-3, .75rem);
|
|
435
|
+
}
|
|
436
|
+
.smrt-photo-cutout-setup__secondary {
|
|
437
|
+
margin-top: var(--smrt-spacing-3, .75rem);
|
|
438
|
+
}
|
|
439
|
+
.smrt-photo-cutout-setup__save-hint {
|
|
440
|
+
margin: var(--smrt-spacing-2, .5rem) 0 0;
|
|
441
|
+
}
|
|
442
|
+
.smrt-photo-cutout-setup__speech {
|
|
443
|
+
margin-top: var(--smrt-spacing-4, 1rem);
|
|
444
|
+
}
|
|
445
|
+
.smrt-photo-cutout-setup__previews {
|
|
446
|
+
display: grid;
|
|
447
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
448
|
+
gap: var(--smrt-spacing-4, 1rem);
|
|
449
|
+
align-items: start;
|
|
450
|
+
}
|
|
451
|
+
figure {
|
|
452
|
+
margin: 0;
|
|
453
|
+
}
|
|
454
|
+
figure figcaption {
|
|
455
|
+
margin-bottom: var(--smrt-spacing-2, .5rem);
|
|
456
|
+
}
|
|
457
|
+
.smrt-photo-cutout-setup__root img, .smrt-photo-cutout-setup__preview :global(svg) {
|
|
458
|
+
display: block;
|
|
459
|
+
width: 100%;
|
|
460
|
+
height: auto;
|
|
461
|
+
max-height: 18rem;
|
|
462
|
+
object-fit: contain;
|
|
463
|
+
}
|
|
464
|
+
.smrt-photo-cutout-setup__preview, .smrt-photo-cutout-setup__preview-target {
|
|
465
|
+
min-width: 0;
|
|
466
|
+
}
|
|
467
|
+
.smrt-photo-cutout-setup__preview-target:not(.smrt-photo-cutout-setup__preview) {
|
|
468
|
+
display: none;
|
|
469
|
+
}
|
|
470
|
+
.smrt-photo-cutout-setup__spinner {
|
|
471
|
+
width: 1rem;
|
|
472
|
+
height: 1rem;
|
|
473
|
+
}
|
|
474
|
+
@media (max-width: 40rem) {
|
|
475
|
+
.smrt-photo-cutout-setup__steps {
|
|
476
|
+
grid-template-columns: repeat(2, 1fr);
|
|
477
|
+
}
|
|
478
|
+
.smrt-photo-cutout-setup__previews {
|
|
479
|
+
grid-template-columns: 1fr;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
410
484
|
@layer smrt.theme {
|
|
411
|
-
.
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
.
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
.
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
.
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
.
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
485
|
+
.smrt-photo-cutout-setup__root {
|
|
486
|
+
border: var(--smrt-hairline);
|
|
487
|
+
border-radius: var(--smrt-radius-xl);
|
|
488
|
+
}
|
|
489
|
+
.smrt-photo-cutout-setup__steps {
|
|
490
|
+
color: var(--smrt-color-on-surface-variant);
|
|
491
|
+
font-size: var(--smrt-typography-body-small-size, .875rem);
|
|
492
|
+
}
|
|
493
|
+
.smrt-photo-cutout-setup__steps li {
|
|
494
|
+
border-bottom: 2px solid var(--smrt-color-outline-variant);
|
|
495
|
+
}
|
|
496
|
+
.smrt-photo-cutout-setup__steps .smrt-photo-cutout-setup__current {
|
|
497
|
+
color: var(--smrt-color-primary);
|
|
498
|
+
border-color: var(--smrt-color-primary);
|
|
499
|
+
font-weight: var(--smrt-typography-weight-semibold, 600);
|
|
500
|
+
}
|
|
501
|
+
.smrt-photo-cutout-setup__steps .smrt-photo-cutout-setup__complete {
|
|
502
|
+
color: var(--smrt-color-success);
|
|
503
|
+
}
|
|
504
|
+
.smrt-photo-cutout-setup__save-hint {
|
|
505
|
+
color: var(--smrt-color-on-surface-variant);
|
|
506
|
+
font-size: var(--smrt-typography-body-small-size, .875rem);
|
|
507
|
+
}
|
|
508
|
+
figure figcaption {
|
|
509
|
+
font-size: var(--smrt-typography-body-small-size, .875rem);
|
|
510
|
+
}
|
|
511
|
+
.smrt-photo-cutout-setup__checkerboard {
|
|
512
|
+
background-color: var(--smrt-color-surface);
|
|
513
|
+
background-image: linear-gradient(45deg, var(--smrt-color-surface-container-highest) 25%, transparent 25%), linear-gradient(-45deg, var(--smrt-color-surface-container-highest) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--smrt-color-surface-container-highest) 75%), linear-gradient(-45deg, transparent 75%, var(--smrt-color-surface-container-highest) 75%);
|
|
514
|
+
background-size: 16px 16px;
|
|
515
|
+
background-position: 0 0, 0 8px, 8px -8px, -8px 0;
|
|
516
|
+
}
|
|
517
|
+
.smrt-photo-cutout-setup__error {
|
|
518
|
+
color: var(--smrt-color-error);
|
|
519
|
+
font-weight: var(--smrt-typography-weight-semibold, 600);
|
|
520
|
+
}
|
|
521
|
+
.smrt-photo-cutout-setup__success {
|
|
522
|
+
color: var(--smrt-color-success);
|
|
523
|
+
}
|
|
524
|
+
.smrt-photo-cutout-setup__spinner {
|
|
525
|
+
border: 2px solid currentColor;
|
|
526
|
+
border-right-color: transparent;
|
|
527
|
+
border-radius: var(--smrt-radius-full);
|
|
528
|
+
animation: spin .7s linear infinite;
|
|
529
|
+
}
|
|
530
|
+
@keyframes spin {
|
|
531
|
+
to {
|
|
532
|
+
transform: rotate(360deg);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
@media (prefers-reduced-motion: reduce) {
|
|
536
|
+
.smrt-photo-cutout-setup__spinner {
|
|
537
|
+
animation: none;
|
|
538
|
+
border-right-color: currentColor;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
434
541
|
}
|
|
542
|
+
|
|
435
543
|
</style>
|
|
@@ -78,27 +78,27 @@ function handleEditorSave(image: StudioImage) {
|
|
|
78
78
|
}
|
|
79
79
|
</script>
|
|
80
80
|
|
|
81
|
-
<div class="
|
|
82
|
-
<header class="
|
|
81
|
+
<div class="smrt-image-studio-route__root" data-smrt-component="ImageStudioRoute">
|
|
82
|
+
<header class="smrt-image-studio-route__header" data-smrt-part="header">
|
|
83
83
|
<div>
|
|
84
|
-
<p class="
|
|
84
|
+
<p class="smrt-image-studio-route__eyebrow" data-smrt-part="label">{t(M['images.image_studio_route.eyebrow'])}</p>
|
|
85
85
|
<h1>{t(M['images.image_studio_route.title'])}</h1>
|
|
86
|
-
<p class="
|
|
86
|
+
<p class="smrt-image-studio-route__lede" data-smrt-part="summary">
|
|
87
87
|
{t(M['images.image_studio_route.lede'])}
|
|
88
88
|
</p>
|
|
89
89
|
</div>
|
|
90
90
|
</header>
|
|
91
91
|
|
|
92
|
-
<section class="
|
|
93
|
-
<div class="
|
|
92
|
+
<section class="smrt-image-studio-route__uploader" data-smrt-part="group">
|
|
93
|
+
<div class="smrt-image-studio-route__section-copy" data-smrt-part="body">
|
|
94
94
|
<h2>{t(M['images.image_studio_route.acquire_images'])}</h2>
|
|
95
95
|
<p>
|
|
96
96
|
{t(M['images.image_studio_route.acquire_images_description'])}
|
|
97
97
|
</p>
|
|
98
|
-
<p class="
|
|
98
|
+
<p class="smrt-image-studio-route__status" data-smrt-part="status">{uploaderStatus}</p>
|
|
99
99
|
</div>
|
|
100
100
|
|
|
101
|
-
<div class="
|
|
101
|
+
<div class="smrt-image-studio-route__card" data-smrt-part="panel">
|
|
102
102
|
<ImageUploader
|
|
103
103
|
{apiBaseUrl}
|
|
104
104
|
{galleryClient}
|
|
@@ -108,16 +108,16 @@ function handleEditorSave(image: StudioImage) {
|
|
|
108
108
|
</div>
|
|
109
109
|
</section>
|
|
110
110
|
|
|
111
|
-
<section class="
|
|
112
|
-
<div class="
|
|
111
|
+
<section class="smrt-image-studio-route__workspace" data-smrt-part="group">
|
|
112
|
+
<div class="smrt-image-studio-route__section-copy" data-smrt-part="body">
|
|
113
113
|
<h2>{t(M['images.image_studio_route.browse_and_edit'])}</h2>
|
|
114
114
|
<p>
|
|
115
115
|
{t(M['images.image_studio_route.browse_and_edit_description'])}
|
|
116
116
|
</p>
|
|
117
117
|
</div>
|
|
118
118
|
|
|
119
|
-
<div class="
|
|
120
|
-
<div class="
|
|
119
|
+
<div class="smrt-image-studio-route__workspace-grid" data-smrt-part="body">
|
|
120
|
+
<div class="smrt-image-studio-route__card smrt-image-studio-route__gallery" data-smrt-part="panel">
|
|
121
121
|
<AssetsGallery
|
|
122
122
|
{apiBaseUrl}
|
|
123
123
|
client={galleryClient}
|
|
@@ -125,7 +125,7 @@ function handleEditorSave(image: StudioImage) {
|
|
|
125
125
|
/>
|
|
126
126
|
</div>
|
|
127
127
|
|
|
128
|
-
<div class="
|
|
128
|
+
<div class="smrt-image-studio-route__card smrt-image-studio-route__editor" data-smrt-part="panel">
|
|
129
129
|
<ImageEditor
|
|
130
130
|
{apiBaseUrl}
|
|
131
131
|
client={editorClient}
|
|
@@ -139,99 +139,101 @@ function handleEditorSave(image: StudioImage) {
|
|
|
139
139
|
|
|
140
140
|
<style>
|
|
141
141
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
142
|
-
@layer smrt.
|
|
143
|
-
.
|
|
142
|
+
@layer smrt.structure {
|
|
143
|
+
.smrt-image-studio-route__root {
|
|
144
144
|
max-width: 1440px;
|
|
145
145
|
margin: 0 auto;
|
|
146
146
|
padding: 2rem;
|
|
147
147
|
display: flex;
|
|
148
148
|
flex-direction: column;
|
|
149
149
|
gap: 1.75rem;
|
|
150
|
-
color: var(--smrt-color-on-surface);
|
|
151
|
-
background:
|
|
152
|
-
radial-gradient(circle at top, color-mix(in srgb, var(--smrt-color-primary) 22%, transparent), transparent 40%),
|
|
153
|
-
var(--smrt-color-background);
|
|
154
150
|
min-height: 100vh;
|
|
155
151
|
}
|
|
156
|
-
|
|
157
|
-
.images-route__eyebrow {
|
|
152
|
+
.smrt-image-studio-route__eyebrow {
|
|
158
153
|
margin: 0 0 0.5rem;
|
|
159
|
-
color: var(--smrt-color-primary);
|
|
160
|
-
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
161
|
-
font-weight: var(--smrt-typography-weight-bold, 700);
|
|
162
|
-
letter-spacing: var(--smrt-typography-label-medium-tracking, 0.08em);
|
|
163
|
-
text-transform: uppercase;
|
|
164
154
|
}
|
|
165
|
-
|
|
166
|
-
.
|
|
167
|
-
.images-route__section-copy h2 {
|
|
155
|
+
.smrt-image-studio-route__header h1,
|
|
156
|
+
.smrt-image-studio-route__section-copy h2 {
|
|
168
157
|
margin: 0;
|
|
169
158
|
}
|
|
170
|
-
|
|
171
|
-
.
|
|
172
|
-
font-size: clamp(2rem, 3vw, 2.8rem);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.images-route__lede,
|
|
176
|
-
.images-route__section-copy p {
|
|
159
|
+
.smrt-image-studio-route__lede,
|
|
160
|
+
.smrt-image-studio-route__section-copy p {
|
|
177
161
|
margin: 0.75rem 0 0;
|
|
178
|
-
color: var(--smrt-color-on-surface-variant);
|
|
179
|
-
line-height: 1.6;
|
|
180
162
|
max-width: 60rem;
|
|
181
163
|
}
|
|
182
|
-
|
|
183
|
-
.
|
|
184
|
-
.images-route__workspace {
|
|
164
|
+
.smrt-image-studio-route__uploader,
|
|
165
|
+
.smrt-image-studio-route__workspace {
|
|
185
166
|
display: flex;
|
|
186
167
|
flex-direction: column;
|
|
187
168
|
gap: 1rem;
|
|
188
169
|
}
|
|
189
|
-
|
|
190
|
-
.images-route__status {
|
|
170
|
+
.smrt-image-studio-route__status {
|
|
191
171
|
margin-top: 1rem;
|
|
192
172
|
padding: 0.875rem 1rem;
|
|
193
|
-
border-radius: 0.85rem;
|
|
194
|
-
background: color-mix(in srgb, var(--smrt-color-surface-container) 72%, transparent);
|
|
195
|
-
border: 1px solid color-mix(in srgb, var(--smrt-color-primary) 20%, transparent);
|
|
196
|
-
color: var(--smrt-color-on-surface);
|
|
197
173
|
}
|
|
198
|
-
|
|
199
|
-
.images-route__workspace-grid {
|
|
174
|
+
.smrt-image-studio-route__workspace-grid {
|
|
200
175
|
display: grid;
|
|
201
176
|
grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
|
|
202
177
|
gap: 1rem;
|
|
203
178
|
align-items: start;
|
|
204
179
|
}
|
|
205
|
-
|
|
206
|
-
.images-route__card {
|
|
207
|
-
border-radius: 1rem;
|
|
208
|
-
border: 1px solid color-mix(in srgb, var(--smrt-color-outline-variant) 18%, transparent);
|
|
209
|
-
background: color-mix(in srgb, var(--smrt-color-surface-container) 72%, transparent);
|
|
210
|
-
box-shadow: var(--smrt-elevation-5, 0 24px 60px color-mix(in srgb, var(--smrt-color-shadow) 35%, transparent));
|
|
180
|
+
.smrt-image-studio-route__card {
|
|
211
181
|
overflow: hidden;
|
|
212
182
|
}
|
|
213
|
-
|
|
214
|
-
.images-route__gallery {
|
|
183
|
+
.smrt-image-studio-route__gallery {
|
|
215
184
|
min-height: 720px;
|
|
216
185
|
}
|
|
217
|
-
|
|
218
|
-
.images-route__editor {
|
|
186
|
+
.smrt-image-studio-route__editor {
|
|
219
187
|
min-height: 720px;
|
|
220
188
|
}
|
|
221
|
-
|
|
222
189
|
@media (max-width: 1024px) {
|
|
223
|
-
.
|
|
190
|
+
.smrt-image-studio-route__root {
|
|
224
191
|
padding: 1.25rem;
|
|
225
192
|
}
|
|
226
|
-
|
|
227
|
-
.images-route__workspace-grid {
|
|
193
|
+
.smrt-image-studio-route__workspace-grid {
|
|
228
194
|
grid-template-columns: 1fr;
|
|
229
195
|
}
|
|
230
|
-
|
|
231
|
-
.
|
|
232
|
-
.images-route__editor {
|
|
196
|
+
.smrt-image-studio-route__gallery,
|
|
197
|
+
.smrt-image-studio-route__editor {
|
|
233
198
|
min-height: 560px;
|
|
234
199
|
}
|
|
235
200
|
}
|
|
236
201
|
}
|
|
202
|
+
|
|
203
|
+
@layer smrt.theme {
|
|
204
|
+
.smrt-image-studio-route__root {
|
|
205
|
+
color: var(--smrt-color-on-surface);
|
|
206
|
+
background:
|
|
207
|
+
radial-gradient(circle at top, color-mix(in srgb, var(--smrt-color-primary) 22%, transparent), transparent 40%),
|
|
208
|
+
var(--smrt-color-background);
|
|
209
|
+
}
|
|
210
|
+
.smrt-image-studio-route__eyebrow {
|
|
211
|
+
color: var(--smrt-color-primary);
|
|
212
|
+
font-size: var(--smrt-typography-label-medium-size, 0.75rem);
|
|
213
|
+
font-weight: var(--smrt-typography-weight-bold, 700);
|
|
214
|
+
letter-spacing: var(--smrt-typography-label-medium-tracking, 0.08em);
|
|
215
|
+
text-transform: uppercase;
|
|
216
|
+
}
|
|
217
|
+
.smrt-image-studio-route__header h1 {
|
|
218
|
+
font-size: clamp(2rem, 3vw, 2.8rem);
|
|
219
|
+
}
|
|
220
|
+
.smrt-image-studio-route__lede,
|
|
221
|
+
.smrt-image-studio-route__section-copy p {
|
|
222
|
+
color: var(--smrt-color-on-surface-variant);
|
|
223
|
+
line-height: 1.6;
|
|
224
|
+
}
|
|
225
|
+
.smrt-image-studio-route__status {
|
|
226
|
+
border-radius: 0.85rem;
|
|
227
|
+
background: color-mix(in srgb, var(--smrt-color-surface-container) 72%, transparent);
|
|
228
|
+
border: 1px solid color-mix(in srgb, var(--smrt-color-primary) 20%, transparent);
|
|
229
|
+
color: var(--smrt-color-on-surface);
|
|
230
|
+
}
|
|
231
|
+
.smrt-image-studio-route__card {
|
|
232
|
+
border-radius: 1rem;
|
|
233
|
+
border: 1px solid color-mix(in srgb, var(--smrt-color-outline-variant) 18%, transparent);
|
|
234
|
+
background: color-mix(in srgb, var(--smrt-color-surface-container) 72%, transparent);
|
|
235
|
+
box-shadow: var(--smrt-elevation-5, 0 24px 60px color-mix(in srgb, var(--smrt-color-shadow) 35%, transparent));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
237
239
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-images",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.18",
|
|
4
4
|
"description": "Image asset management with AI-powered categorization, search, editing, and metadata extraction for SMRT framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"smrtRawPrimitives": "strict",
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@happyvertical/ai": "^0.
|
|
42
|
+
"@happyvertical/ai": "^0.112.2",
|
|
43
43
|
"@happyvertical/animation": "0.5.0",
|
|
44
|
-
"@happyvertical/images": "^0.
|
|
45
|
-
"@happyvertical/smrt-assets": "0.60.
|
|
46
|
-
"@happyvertical/smrt-core": "0.60.
|
|
47
|
-
"@happyvertical/smrt-prompts": "0.60.
|
|
48
|
-
"@happyvertical/smrt-tenancy": "0.60.
|
|
49
|
-
"@happyvertical/smrt-types": "0.60.
|
|
50
|
-
"@happyvertical/smrt-ui": "0.60.
|
|
51
|
-
"@happyvertical/utils": "^0.
|
|
44
|
+
"@happyvertical/images": "^0.112.2",
|
|
45
|
+
"@happyvertical/smrt-assets": "0.60.18",
|
|
46
|
+
"@happyvertical/smrt-core": "0.60.18",
|
|
47
|
+
"@happyvertical/smrt-prompts": "0.60.18",
|
|
48
|
+
"@happyvertical/smrt-tenancy": "0.60.18",
|
|
49
|
+
"@happyvertical/smrt-types": "0.60.18",
|
|
50
|
+
"@happyvertical/smrt-ui": "0.60.18",
|
|
51
|
+
"@happyvertical/utils": "^0.112.2",
|
|
52
52
|
"sharp": "^0.35.5"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"svelte": "^5.57.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@happyvertical/smrt-playground": "0.60.
|
|
59
|
-
"@happyvertical/smrt-profiles": "0.60.
|
|
60
|
-
"@happyvertical/smrt-vitest": "0.60.
|
|
61
|
-
"@happyvertical/sql": "^0.
|
|
58
|
+
"@happyvertical/smrt-playground": "0.60.18",
|
|
59
|
+
"@happyvertical/smrt-profiles": "0.60.18",
|
|
60
|
+
"@happyvertical/smrt-vitest": "0.60.18",
|
|
61
|
+
"@happyvertical/sql": "^0.112.2",
|
|
62
62
|
"@sveltejs/kit": "2.69.1",
|
|
63
63
|
"@sveltejs/package": "^2.5.8",
|
|
64
64
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"directory": "packages/images"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
|
-
"build": "SMRT_PACKAGE_BUILD=1 svelte-kit sync && SMRT_PACKAGE_BUILD=1 vite build --mode library && SMRT_PACKAGE_BUILD=1 svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json && node ../../scripts/prune-svelte-package-artifacts.js dist",
|
|
92
|
+
"build": "node ../../scripts/run-with-env.mjs SMRT_PACKAGE_BUILD=1 -- svelte-kit sync && node ../../scripts/run-with-env.mjs SMRT_PACKAGE_BUILD=1 -- vite build --mode library && node ../../scripts/run-with-env.mjs SMRT_PACKAGE_BUILD=1 -- svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json && node ../../scripts/prune-svelte-package-artifacts.js dist",
|
|
93
93
|
"build:watch": "vite build --mode library --watch",
|
|
94
94
|
"clean": "rm -rf dist",
|
|
95
95
|
"dev": "vite dev",
|