@widgetic/creator 0.4.22 → 0.4.24

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.
@@ -447,6 +447,7 @@
447
447
  if (selectedWidget?.id === targetId) {
448
448
  selectedWidget = { ...selectedWidget, name: trimmed };
449
449
  }
450
+ notifyHostWidgetName({ id: targetId, name: trimmed });
450
451
  widgetNamesRevision += 1;
451
452
  panelDisplayRevision += 1;
452
453
  backfillWidgetShapeMetadata();
@@ -12597,7 +12598,12 @@ Requirements:
12597
12598
  }
12598
12599
 
12599
12600
  function pushCodegenProgressToUi(op: OperationStatus, widgetId: string | null | undefined) {
12600
- const line = formatCodegenProgressStatus(op);
12601
+ // The preview is already on the canvas while the version is still saving.
12602
+ // The bar stays at 70 until that save ends, so show 100 for that pause.
12603
+ const stillRunning = String(op.status || '').toLowerCase() === 'running';
12604
+ const versionStillSaving = !!(widgetId && previewUnblockedByWidgetId[widgetId] && stillRunning);
12605
+ const shown = versionStillSaving ? { ...op, progress: 100 } : op;
12606
+ const line = formatCodegenProgressStatus(shown);
12601
12607
  freezeProbe('progress', line);
12602
12608
  // Feed the freeze watchdog the latest status so a [FreezeReport] names the
12603
12609
  // stage the UI was showing when the main thread stopped responding.
@@ -18258,6 +18264,7 @@ $: if (codeGenerationPrompt && selectedWidgetId && promptLoadedForWidgetId === s
18258
18264
  widgetSelectionLayerTarget="floating-panels-overlay"
18259
18265
  bind:wireframeMode={canvasWireframeMode}
18260
18266
  advancedFeatures={canvasAdvancedFeatures}
18267
+ showZoomPanel={debugMode}
18261
18268
  onReady={handleCanvasReady}
18262
18269
  onAutoSave={handleCanvasAutoSave}
18263
18270
  onBeforeUnmount={(json) => {
@@ -19183,7 +19190,10 @@ $: if (codeGenerationPrompt && selectedWidgetId && promptLoadedForWidgetId === s
19183
19190
  {@const statusText = isPanelFocused ? (generateCodeStatus ?? ps.generateCodeStatus) : ps.generateCodeStatus}
19184
19191
  {@const hourlyLimit = isHourlyLimitText(statusText) || isHourlyLimitText(ps.lastGenerationError)}
19185
19192
  <div class="generate-code-status-ct flex flex-col gap-2 shrink-0 {embedded && !canvasAdvancedFeatures ? 'border-0 bg-transparent' : 'border-b border-gray-200 bg-gray-50'}" style="padding: 10px; margin: 0px; border-radius: 0;">
19186
- <div class="flex items-center justify-between gap-2 min-w-0">
19193
+ <div class="generate-code-status-row flex items-center justify-between gap-2 min-w-0">
19194
+ {#if generatingWidgetIds[panelWidgetId] && previewUnblockedByWidgetId[panelWidgetId] && !ps.lastGenerationFailed}
19195
+ <span class="codegen-save-spinner inline-block h-3 w-3 shrink-0 animate-spin rounded-full border-2 border-gray-300 border-t-forest-green" aria-hidden="true"></span>
19196
+ {/if}
19187
19197
  <div class="generate-code-status-el text-xs flex-1 min-w-0 truncate {ps.lastGenerationFailed && !hourlyLimit ? 'text-red-600' : 'text-gray-500'}">
19188
19198
  {#if ps.lastGenerationFailed && !hourlyLimit}
19189
19199
  <span class="text-red-500 font-medium">{$t('creator.codegen.generationFailed')}</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/creator",
3
- "version": "0.4.22",
3
+ "version": "0.4.24",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "type": "module",
6
6
  "peerDependencies": {