pi-design-deck 0.3.1 → 0.3.2

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.
@@ -221,9 +221,8 @@
221
221
  /* Spinner inside skeleton cards */
222
222
  .option-skeleton .spinner {
223
223
  position: absolute;
224
- top: 50%;
225
- left: 50%;
226
- transform: translate(-50%, -50%);
224
+ inset: 0;
225
+ margin: auto;
227
226
  z-index: 2;
228
227
  }
229
228
 
@@ -285,8 +285,8 @@ function initLayoutToggle() {
285
285
  const btn = event.target.closest(".layout-btn");
286
286
  if (!btn) return;
287
287
  const cols = btn.dataset.cols;
288
- const current = getStoredLayout();
289
- if (cols === current) {
288
+ const stored = getStoredLayout();
289
+ if (cols === stored) {
290
290
  // Clicking active button toggles back to auto
291
291
  setStoredLayout(null);
292
292
  applyLayout(null);
@@ -403,10 +403,10 @@ function connectEvents() {
403
403
  // Reset timeout for next option
404
404
  if (pending.timeoutId) clearTimeout(pending.timeoutId);
405
405
  pending.timeoutId = setTimeout(() => {
406
- const current = pendingGenerate.get(payload.slideId);
407
- if (!current || current.isRegen) return;
408
- const received = current.receivedCount || 0;
409
- const expected = current.expectedCount || 1;
406
+ const entry = pendingGenerate.get(payload.slideId);
407
+ if (!entry || entry.isRegen) return;
408
+ const received = entry.receivedCount || 0;
409
+ const expected = entry.expectedCount || 1;
410
410
  restoreGenerateButton(payload.slideId);
411
411
  if (received < expected) {
412
412
  showSaveToast(`Generated ${received} of ${expected} options`, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-design-deck",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Visual design deck for presenting multi-slide options with high-fidelity previews",
5
5
  "author": "Nico Bailon",
6
6
  "license": "MIT",