@widgetic/creator 0.4.21 → 0.4.22

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.
@@ -830,6 +830,26 @@
830
830
  {/if}
831
831
  <span class="widget-shape-drag-grip shrink-0 text-xs leading-none text-gray-400" aria-hidden="true">⠿</span>
832
832
 
833
+ {#if !showChrome}
834
+ <div class="widget-shape-drag-bar-actions ms-auto flex shrink-0 items-center gap-0.5">
835
+ <HoverTooltip text={$t('creator.livePreviews.refreshPreview')} class="inline-flex shrink-0">
836
+ <button
837
+ type="button"
838
+ class="widget-shape-refresh-btn flex h-6 w-6 items-center justify-center rounded text-gray-500 hover:bg-gray-100 hover:text-forest-green cursor-pointer"
839
+ aria-label={$t('creator.livePreviews.refreshPreview')}
840
+ onclick={(e) => handleRefreshClick(e, overlay.widgetId)}
841
+ onpointerdown={(e) => e.stopPropagation()}
842
+ >
843
+ <svg class="widget-shape-refresh-icon h-3.5 w-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
844
+ <polyline points="23 4 23 10 17 10"/>
845
+ <path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"/>
846
+ </svg>
847
+ <span class="sr-only">{$t('creator.livePreviews.refresh')}</span>
848
+ </button>
849
+ </HoverTooltip>
850
+ </div>
851
+ {/if}
852
+
833
853
  {#if showChrome}
834
854
  {#if showExpandedChrome}
835
855
  <span
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetic/creator",
3
- "version": "0.4.21",
3
+ "version": "0.4.22",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "type": "module",
6
6
  "peerDependencies": {