@widgetic/creator 0.4.44 → 0.4.46

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.
@@ -29,6 +29,6 @@ interface Props {
29
29
  language?: string;
30
30
  languageLocked?: boolean;
31
31
  }
32
- declare const BrandKitPanel: import("svelte").Component<Props, {}, "title" | "sub" | "brandKitEnabled" | "librariesEnabled" | "primary" | "secondary" | "fonts" | "libraries" | "libraryGitUrl" | "libraryFileName" | "libraryUploads" | "fontUploads" | "language">;
32
+ declare const BrandKitPanel: import("svelte").Component<Props, {}, "brandKitEnabled" | "librariesEnabled" | "primary" | "secondary" | "title" | "sub" | "fonts" | "libraries" | "libraryGitUrl" | "libraryFileName" | "libraryUploads" | "fontUploads" | "language">;
33
33
  type BrandKitPanel = ReturnType<typeof BrandKitPanel>;
34
34
  export default BrandKitPanel;
@@ -28,13 +28,23 @@
28
28
  class="flex min-h-0 flex-1 min-w-0 flex-col {sketchShell ? 'md:contents max-md:flex' : 'contents'}"
29
29
  >
30
30
  {#if sketchShell}
31
- <Tabs.List
32
- class="mx-3 mb-1 mt-2 w-[calc(100%-1.5rem)] shrink-0 md:hidden"
33
- data-testid="embedded-sketch-mobile-tabs"
31
+ <!-- Figma 528:3262 / 528:3360 — Tabs row 56px tall, segment 140×36 centred on mobile only (hidden from md / tablet). -->
32
+ <div
33
+ class="flex h-14 w-full shrink-0 items-center justify-center px-2 md:hidden"
34
+ data-testid="embedded-sketch-mobile-tabs-row"
34
35
  >
35
- <Tabs.Trigger value="canvas" class="flex-1">{tabCanvasLabel}</Tabs.Trigger>
36
- <Tabs.Trigger value="chat" class="flex-1">{tabChatLabel}</Tabs.Trigger>
37
- </Tabs.List>
36
+ <Tabs.List
37
+ class="bg-muted text-muted-foreground h-9 w-[140px] shrink-0 gap-0.5 rounded-xl p-1"
38
+ data-testid="embedded-sketch-mobile-tabs"
39
+ >
40
+ <Tabs.Trigger value="canvas" class="h-7 flex-1 rounded-lg px-2 text-label-medium">
41
+ {tabCanvasLabel}
42
+ </Tabs.Trigger>
43
+ <Tabs.Trigger value="chat" class="h-7 flex-1 rounded-lg px-2 text-label-medium">
44
+ {tabChatLabel}
45
+ </Tabs.Trigger>
46
+ </Tabs.List>
47
+ </div>
38
48
  {/if}
39
49
  <div
40
50
  class="embedded-sketch-stage flex min-h-0 min-w-0 flex-1 flex-col max-lg:min-h-0 {sketchShell
@@ -10,6 +10,6 @@ interface Props {
10
10
  urlPlaceholder?: string;
11
11
  accept?: string;
12
12
  }
13
- declare const FileUrlSourceControl: import("svelte").Component<Props, {}, "url" | "fileName" | "fileContent" | "fileEncoding">;
13
+ declare const FileUrlSourceControl: import("svelte").Component<Props, {}, "fileName" | "fileContent" | "fileEncoding" | "url">;
14
14
  type FileUrlSourceControl = ReturnType<typeof FileUrlSourceControl>;
15
15
  export default FileUrlSourceControl;
@@ -3647,8 +3647,10 @@
3647
3647
  ✕
3648
3648
  </button>
3649
3649
  {/if}
3650
+ <!-- The docked panel (Figma "Chat panel", 440 wide) draws its 1px stroke inside its box, as a Figma inside stroke does: with a real
3651
+ border every inset in the panel (the 16px of the messages, the suggestions and the composer) would lose a pixel. -->
3650
3652
  <div
3651
- class="widget-details-floating-panel pointer-events-auto relative flex flex-col h-full w-full {dockRight ? 'min-w-0 rounded-none border-0 border-s border-gray-200 bg-white shadow-none' : 'min-w-[480px]'}
3653
+ class="widget-details-floating-panel pointer-events-auto relative flex flex-col h-full w-full {dockRight ? 'min-w-0 rounded-panel border-border bg-background shadow-none outline outline-1 -outline-offset-1 outline-border max-lg:rounded-none max-lg:border-s max-lg:outline-0' : 'min-w-[480px]'}
3652
3654
  {!dockRight && fillViewport
3653
3655
  ? 'bg-white rounded-none border-x border-b border-t-0 ring-0 shadow-none overflow-hidden'
3654
3656
  : !dockRight
@@ -3827,7 +3829,7 @@
3827
3829
  <div
3828
3830
  class="widget-details-create-chat-ct flex flex-col flex-1 min-h-0 overflow-hidden overflow-x-hidden"
3829
3831
  >
3830
- <div class="widget-details-create-status-slot relative shrink-0 {dockRight ? 'is-docked flex items-center border-b border-gray-200 bg-gray-50' : ''} {debugMode ? 'has-console-toggle' : ''}">
3832
+ <div class="widget-details-create-status-slot relative shrink-0 {dockRight ? 'is-docked hidden' : ''} {debugMode ? 'has-console-toggle' : ''}">
3831
3833
  <div class="widget-details-create-status-body min-w-0 flex-1">
3832
3834
  <slot name="code-generation-status" />
3833
3835
  </div>
@@ -100,7 +100,7 @@ declare const WidgetDetails: $$__sveltets_2_IsomorphicComponent<{
100
100
  /** Stacking order when multiple Widget Details panels are open. */ panelZIndex?: number;
101
101
  /** Cascade offset index (0 = centered, 1+ = shifted down-right). */ panelCascadeIndex?: number;
102
102
  /** False when another panel has keyboard/chat focus. */ isFocusedPanel?: boolean;
103
- currentStep?: "embed" | "create" | "edit";
103
+ currentStep?: "create" | "edit" | "embed";
104
104
  /**
105
105
  * Canvas Creator is code-only (chat + preview). Edit/Embed header steps stay
106
106
  * off until composition editing lives on /composition. Keep the Edit/Embed