@jsonpages/cli 3.0.48 → 3.0.49

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.
@@ -667,7 +667,7 @@ export function SaveDrawer({ cloudUrl, apiKey, state, slug, onClose }: SaveDrawe
667
667
  <button
668
668
  type="button"
669
669
  onClick={onClose}
670
- className="px-3 py-1.5 rounded-md border border-white/20 text-white/90 text-sm hover:bg-white/10"
670
+ className="h-9 rounded-md px-3 inline-flex items-center justify-center text-sm font-medium border border-white/20 bg-white/5 text-white/90 hover:bg-white/10 transition-colors"
671
671
  >
672
672
  Chiudi
673
673
  </button>
@@ -676,7 +676,7 @@ export function SaveDrawer({ cloudUrl, apiKey, state, slug, onClose }: SaveDrawe
676
676
  onClick={() =>
677
677
  deployUrl ? window.open(deployUrl, '_blank') : window.location.reload()
678
678
  }
679
- className="px-3 py-1.5 rounded-md bg-emerald-400 text-zinc-900 text-sm font-semibold hover:bg-emerald-300 gap-1.5 inline-flex items-center"
679
+ className="h-9 rounded-md px-3 inline-flex items-center justify-center gap-1.5 text-sm font-semibold bg-emerald-400 text-zinc-900 hover:bg-emerald-300 transition-colors"
680
680
  >
681
681
  <span aria-hidden>↗</span> Open site
682
682
  </button>
@@ -688,14 +688,14 @@ export function SaveDrawer({ cloudUrl, apiKey, state, slug, onClose }: SaveDrawe
688
688
  <button
689
689
  type="button"
690
690
  onClick={onClose}
691
- className="px-3 py-1.5 rounded-md text-white/80 text-sm hover:bg-white/10"
691
+ className="h-9 rounded-md px-3 inline-flex items-center justify-center text-sm font-medium text-white/80 hover:bg-white/10 transition-colors"
692
692
  >
693
693
  Annulla
694
694
  </button>
695
695
  <button
696
696
  type="button"
697
697
  onClick={retry}
698
- className="px-3 py-1.5 rounded-md bg-red-500/90 text-white text-sm font-medium hover:bg-red-500"
698
+ className="h-9 rounded-md px-3 inline-flex items-center justify-center text-sm font-medium bg-red-600 text-white hover:bg-red-500 transition-colors"
699
699
  >
700
700
  Retry
701
701
  </button>
@@ -1010,7 +1010,10 @@ export function useSaveStream({
1010
1010
  message: `Content update for ${slug} via Visual Editor`,
1011
1011
  };
1012
1012
 
1013
- const url = `${cloudUrl.replace(/\/$/, '')}/save-stream`;
1013
+ const base = cloudUrl.replace(/\/$/, '');
1014
+ const url = base.includes('/api/v1')
1015
+ ? `${base}/save-stream`
1016
+ : `${base}/api/v1/save-stream`;
1014
1017
 
1015
1018
  const run = async () => {
1016
1019
  try {
@@ -1029,7 +1032,7 @@ export function useSaveStream({
1029
1032
  if (!res.ok || !res.body) {
1030
1033
  if (!cancelled) {
1031
1034
  setPhase('error');
1032
- setErrorMessage('Request failed');
1035
+ setErrorMessage(res.status ? `HTTP ${res.status}` : 'Request failed');
1033
1036
  }
1034
1037
  return;
1035
1038
  }
@@ -4004,10 +4007,11 @@ const Progress = React.forwardRef<HTMLDivElement, ProgressProps>(
4004
4007
  >
4005
4008
  <div
4006
4009
  className={cn(
4007
- 'h-full w-full flex-1 bg-primary transition-all duration-700 ease-out',
4010
+ 'h-full min-w-full bg-primary transition-all duration-700 ease-out',
4008
4011
  indicatorClassName
4009
4012
  )}
4010
4013
  style={{
4014
+ width: '100%',
4011
4015
  transform: `translateX(-${100 - (value ?? 0)}%)`,
4012
4016
  ...indicatorStyle,
4013
4017
  }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsonpages/cli",
3
- "version": "3.0.48",
3
+ "version": "3.0.49",
4
4
  "description": "The Sovereign CLI Engine for JsonPages.",
5
5
  "type": "module",
6
6
  "bin": {