@pixerate/editor-svelte 0.147.0 → 0.148.1
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.
|
@@ -109,6 +109,21 @@
|
|
|
109
109
|
let subject = $state('');
|
|
110
110
|
let segmenting = $state(false);
|
|
111
111
|
let subjectStatus = $state<string | null>(null);
|
|
112
|
+
let skying = $state(false);
|
|
113
|
+
let skyStatus = $state<string | null>(null);
|
|
114
|
+
async function selectSky() {
|
|
115
|
+
if (skying) return;
|
|
116
|
+
skying = true;
|
|
117
|
+
skyStatus = null;
|
|
118
|
+
try {
|
|
119
|
+
const { note } = await controller.selectSky({ mode: options.mode });
|
|
120
|
+
skyStatus = note ?? null;
|
|
121
|
+
} catch (err) {
|
|
122
|
+
skyStatus = err instanceof Error ? err.message : String(err);
|
|
123
|
+
} finally {
|
|
124
|
+
skying = false;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
112
127
|
let focusing = $state(false);
|
|
113
128
|
let focusStatus = $state<string | null>(null);
|
|
114
129
|
async function selectFocusArea() {
|
|
@@ -411,6 +426,14 @@
|
|
|
411
426
|
<p role="status" class="text-muted-foreground">{subjectStatus}</p>
|
|
412
427
|
{/if}
|
|
413
428
|
</form>
|
|
429
|
+
<div data-testid="select-sky" class="flex flex-col gap-1">
|
|
430
|
+
<button type="button" class={btn(false)} disabled={skying} aria-busy={skying} onclick={() => void selectSky()}>
|
|
431
|
+
{skying ? 'Selecting…' : 'Select Sky'}
|
|
432
|
+
</button>
|
|
433
|
+
{#if skyStatus}
|
|
434
|
+
<p role="status" class="text-muted-foreground">{skyStatus}</p>
|
|
435
|
+
{/if}
|
|
436
|
+
</div>
|
|
414
437
|
<details data-testid="focus-area" class="flex flex-col gap-2">
|
|
415
438
|
<summary class="cursor-pointer text-foreground">Focus Area</summary>
|
|
416
439
|
<div class="flex flex-col gap-2 pt-2">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.148.1",
|
|
4
4
|
"description": "Svelte bindings and prompt/rich-text components for @pixerate/editor",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"**/*.css"
|
|
166
166
|
],
|
|
167
167
|
"dependencies": {
|
|
168
|
-
"@pixerate/editor": "0.
|
|
168
|
+
"@pixerate/editor": "0.202.0"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@dagrejs/dagre": "^1.1.4",
|