@gradio/core 0.15.1 → 0.16.0

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.
@@ -6,7 +6,7 @@ declare const __propDef: {
6
6
  short_root: string;
7
7
  root: string;
8
8
  api_prefix?: string | undefined;
9
- current_language: "python" | "javascript" | "bash";
9
+ current_language: "python" | "javascript" | "bash" | "mcp";
10
10
  username: string | null;
11
11
  api_calls?: Payload[] | undefined;
12
12
  };
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="208" height="198">
3
+ <path d="M0 0 C68.64 0 137.28 0 208 0 C208 65.34 208 130.68 208 198 C139.36 198 70.72 198 0 198 C0 132.66 0 67.32 0 0 Z " fill="#FDFDFD" transform="translate(0,0)"/>
4
+ <path d="M0 0 C7.98426849 5.43507434 12.72157972 12.18665667 14.59375 21.765625 C14.65999507 23.51449481 14.67927595 25.26565248 14.65625 27.015625 C14.64722656 27.90765625 14.63820313 28.7996875 14.62890625 29.71875 C14.61730469 30.39421875 14.60570312 31.0696875 14.59375 31.765625 C15.68429688 31.66121094 15.68429688 31.66121094 16.796875 31.5546875 C25.38947014 31.0920093 31.49610814 32.87035438 38.59375 37.765625 C45.38763113 43.90309249 50.20171748 50.69678858 50.71875 60.01953125 C50.98209067 70.80003999 48.48259701 78.28691927 41.13383865 86.37176895 C37.40951969 90.27228339 33.56173017 94.0480055 29.70587349 97.81786537 C27.50076028 99.97505469 25.30634583 102.14262779 23.11448669 104.3132782 C16.88667859 110.47714902 10.64025955 116.62200781 4.38696289 122.76000977 C0.55061782 126.52705128 -3.27361889 130.30604164 -7.09074593 134.09255028 C-8.54651894 135.531518 -10.00708733 136.96565073 -11.47244072 138.39486122 C-13.51176174 140.38403714 -15.53549821 142.38788769 -17.55639648 144.39575195 C-18.16771423 144.98438019 -18.77903198 145.57300842 -19.40887451 146.17947388 C-21.25802266 147.97786922 -21.25802266 147.97786922 -23.40625 150.765625 C-22.95815419 155.21411132 -19.92711254 157.80069615 -16.96875 160.890625 C-16.46537109 161.42816406 -15.96199219 161.96570313 -15.44335938 162.51953125 C-13.46020056 164.63174024 -11.45497079 166.71690421 -9.40625 168.765625 C-9.06134678 172.81823787 -9.10461118 174.31316676 -11.40625 177.765625 C-14.48046875 178.46484375 -14.48046875 178.46484375 -18.40625 177.765625 C-21.72094223 175.39408231 -24.42937099 172.53685052 -27.21875 169.578125 C-28.3624707 168.42473633 -28.3624707 168.42473633 -29.52929688 167.24804688 C-34.07346262 162.56727491 -36.89196956 159.10844783 -37.90625 152.515625 C-36.39587967 141.18784752 -24.43660589 132.45146598 -16.70703125 124.84375 C-15.26467358 123.41208469 -13.823133 121.97959577 -12.38237 120.54632568 C-8.60706196 116.79369031 -4.8236795 113.04931831 -1.03759766 109.30755615 C5.03339316 103.30703562 11.09666476 97.29880064 17.15091896 91.28139496 C19.26203725 89.18693739 21.37948781 87.09903633 23.4974823 85.01153564 C24.79244833 83.7270309 26.08716498 82.44227468 27.3815918 81.15722656 C27.9691777 80.58154434 28.55676361 80.00586212 29.16215515 79.41273499 C33.0065397 75.57959321 36.25383478 72.21240212 37.02734375 66.64453125 C37.12805731 57.94701961 37.12805731 57.94701961 32.59375 50.765625 C28.17030117 46.68244147 24.28086132 44.70888935 18.28125 44.328125 C8.13741766 44.77857204 1.37941203 53.65559103 -5.22390938 60.48005104 C-7.00300386 62.3164819 -8.79339487 64.14118471 -10.58738708 65.96305847 C-15.68165917 71.13939009 -20.75981063 76.33120869 -25.8190918 81.54174805 C-28.92563034 84.73953401 -32.04903394 87.92000833 -35.1836071 91.09030724 C-36.37073788 92.29787538 -37.55126384 93.51197433 -38.72488594 94.73267555 C-40.36405796 96.43683488 -42.02378443 98.11817344 -43.68969727 99.79614258 C-44.16625259 100.30257797 -44.64280792 100.80901337 -45.13380432 101.33079529 C-47.86176132 104.02745471 -49.26782281 104.75164244 -53.13853455 105.1426239 C-56.40625 104.765625 -56.40625 104.765625 -58.40625 103.703125 C-60.05115215 100.51612708 -59.21652866 98.18220487 -58.40625 94.765625 C-56.71704234 92.54421376 -55.19514153 90.81919357 -53.19970703 88.92553711 C-52.38741638 88.11916054 -52.38741638 88.11916054 -51.55871582 87.29649353 C-49.77391169 85.53108704 -47.9691616 83.78759681 -46.1640625 82.04296875 C-44.91562299 80.81335653 -43.66872694 79.58217543 -42.42330933 78.34950256 C-39.14574142 75.11177971 -35.85189408 71.89118542 -32.55297852 68.67523193 C-27.27676413 63.52851767 -22.02057726 58.3615543 -16.77413559 53.18451118 C-14.94267399 51.38360293 -13.10126085 49.59335279 -11.25857544 47.80393982 C-10.1292283 46.69508835 -9.00021289 45.58589888 -7.87158203 44.47631836 C-7.1046553 43.73970978 -7.1046553 43.73970978 -6.32223511 42.98822021 C-2.48103839 39.18388116 0.21542377 35.40649048 0.9921875 29.984375 C0.93891877 23.80520175 0.77005976 18.9506132 -3.8359375 14.33203125 C-8.26074511 10.44656586 -11.52467188 9.60175834 -17.28125 9.515625 C-18.30992188 9.48984375 -19.33859375 9.4640625 -20.3984375 9.4375 C-27.06595382 10.16486542 -31.16007775 15.24888918 -35.64331055 19.79150391 C-36.35283875 20.50234634 -37.06236694 21.21318878 -37.793396 21.9455719 C-40.13122303 24.28987609 -42.46199495 26.64107069 -44.79296875 28.9921875 C-46.41719985 30.62268991 -48.04194778 32.25267763 -49.66719055 33.88217163 C-53.94006483 38.1683388 -58.20733289 42.46004062 -62.47302246 46.75335693 C-69.31040105 53.63388913 -76.15454912 60.50767186 -83.00190163 67.37827682 C-85.39628911 69.78291504 -87.78725107 72.19092156 -90.17790222 74.59927368 C-91.63761155 76.06580793 -93.0974292 77.53223438 -94.55737305 78.99853516 C-95.22493118 79.67283066 -95.89248932 80.34712616 -96.58027649 81.04185486 C-97.19003326 81.65312729 -97.79979004 82.26439972 -98.42802429 82.89419556 C-99.22300843 83.69445884 -99.22300843 83.69445884 -100.03405285 84.51088905 C-102.16986164 86.46387086 -103.42277688 86.76738318 -106.34375 87.078125 C-109.40625 86.765625 -109.40625 86.765625 -111.28125 85.078125 C-112.61274785 82.34115721 -112.70022375 80.7819636 -112.40625 77.765625 C-111.21767902 75.95622826 -111.21767902 75.95622826 -109.51667786 74.26132202 C-108.87601379 73.61089432 -108.23534973 72.96046661 -107.57527161 72.29032898 C-106.86311996 71.59301163 -106.15096832 70.89569427 -105.41723633 70.17724609 C-104.67424286 69.43030991 -103.93124939 68.68337372 -103.16574097 67.9138031 C-100.701899 65.44323838 -98.22055112 62.99110063 -95.73828125 60.5390625 C-94.022954 58.82798471 -92.30858548 57.11594533 -90.59513855 55.40298462 C-86.99867134 51.81268918 -83.39408085 48.2308279 -79.78295898 44.65527344 C-75.15514354 40.07267929 -70.54267903 35.47501649 -65.9355669 30.87161827 C-62.39417794 27.33466033 -58.84737952 23.80317105 -55.29865074 20.27357864 C-53.59635278 18.58015885 -51.89512477 16.8856628 -50.19498634 15.19007492 C-47.81580549 12.81994475 -45.43007658 10.45661666 -43.04223633 8.09521484 C-42.34020584 7.39384903 -41.63817535 6.69248322 -40.91487122 5.96986389 C-29.40795071 -5.361752 -14.47843599 -8.32899275 0 0 Z " fill="#060606" transform="translate(127.40625,16.234375)"/>
5
+ <path d="M0 0 C2.375 1.625 2.375 1.625 4 4 C3.83729715 9.33428972 1.69745458 11.99235047 -2.00708008 15.52709961 C-2.52749374 16.04342453 -3.04790741 16.55974945 -3.58409119 17.09172058 C-5.30142941 18.79033409 -7.03544799 20.47084389 -8.76953125 22.15234375 C-9.97051782 23.33637005 -11.17018063 24.52174045 -12.36857605 25.70838928 C-15.52462813 28.82838495 -18.69406326 31.93438208 -21.86785889 35.03631592 C-26.93928961 39.99441502 -31.99669803 44.96658008 -37.04160118 49.95166206 C-38.8007568 51.68404526 -40.56951036 53.40617143 -42.33930969 55.12767029 C-43.42816965 56.199225 -44.51666425 57.27115113 -45.60473633 58.34350586 C-46.09372406 58.81385254 -46.58271179 59.28419922 -47.08651733 59.76879883 C-51.19583281 63.85030931 -54.48484657 68.24659376 -55.56640625 74.02734375 C-55.5571559 80.91885138 -54.85212283 85.87694645 -50 91 C-45.68380334 94.85609448 -41.37947988 95.45569977 -35.72265625 95.53125 C-26.29383215 93.69147944 -20.53531458 86.99790351 -14.15177536 80.39130402 C-12.3703632 78.54909252 -10.5755143 76.72097106 -8.77651978 74.89593506 C-3.66885889 69.70912041 1.41250805 64.49681068 6.48828125 59.27880859 C9.60363868 56.07805995 12.73346054 52.89203611 15.87223434 49.71425629 C17.06221876 48.50315086 18.24633696 47.28625215 19.424366 46.06351471 C21.06849223 44.35703327 22.73024062 42.66971793 24.39697266 40.98535156 C24.87712326 40.47734512 25.35727386 39.96933868 25.85197449 39.44593811 C28.34053731 36.97073897 29.70071906 36.03499083 33.23300171 35.62200928 C36 36 36 36 37.875 37.0625 C39.66598468 40.14697361 39.3566211 42.49280899 39 46 C37.39573833 48.28868875 36.00818858 49.93333169 34.03393555 51.84008789 C33.24113945 52.64646446 33.24113945 52.64646446 32.43232727 53.46913147 C30.68398583 55.23804684 28.91157497 56.98037662 27.13671875 58.72265625 C25.90636767 59.95264326 24.67720344 61.1838185 23.44917297 62.41612244 C20.86984218 64.99674774 18.27880762 67.56481818 15.6784668 70.12426758 C12.36757799 73.38435198 9.08369974 76.67009329 5.80792522 79.96541691 C3.27008963 82.51362466 0.7199178 85.04919295 -1.83415794 87.58111382 C-3.04818627 88.78684863 -4.25888759 89.99594394 -5.4659977 91.20860481 C-14.73745097 100.4982104 -23.79907857 108.87321487 -37.625 109.3125 C-46.39287227 109.18202571 -53.95003935 106.03797472 -60.28125 99.9921875 C-67.03040137 92.16930751 -69.49017879 83.43697703 -69.31640625 73.25390625 C-68.58492709 65.73141073 -64.66705982 59.77241609 -60 54 C-59.34 54 -58.68 54 -58 54 C-57.67 53.01 -57.34 52.02 -57 51 C-56.34 51 -55.68 51 -55 51 C-54.76112061 50.43613083 -54.52224121 49.87226166 -54.27612305 49.29130554 C-52.72180489 46.50049488 -50.84399323 44.59707765 -48.58203125 42.33911133 C-47.66768311 41.42168655 -46.75333496 40.50426178 -45.8112793 39.55903625 C-44.81186616 38.56652 -43.81226865 37.57418939 -42.8125 36.58203125 C-41.78845362 35.55917749 -40.76477719 34.53595323 -39.74145508 33.51237488 C-37.59927121 31.37175294 -35.45377569 29.23452659 -33.30566406 27.09985352 C-30.54979766 24.3610087 -27.80059216 21.61559486 -25.05360413 18.8678484 C-22.94184597 16.75636184 -20.82749417 14.64748907 -18.71224976 12.53949547 C-17.69733756 11.52776864 -16.68303271 10.51543219 -15.66934204 9.50248146 C-14.25473138 8.09003389 -12.83643829 6.68127727 -11.41796875 5.27270508 C-10.61125732 4.46980545 -9.8045459 3.66690582 -8.97338867 2.8396759 C-5.98435628 0.05317422 -4.05353668 -0.48256389 0 0 Z " fill="#070707" transform="translate(113,37)"/>
6
+ </svg>
package/package.json CHANGED
@@ -1,68 +1,68 @@
1
1
  {
2
2
  "name": "@gradio/core",
3
- "version": "0.15.1",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@gradio/accordion": "^0.5.14",
7
7
  "@gradio/atoms": "^0.16.0",
8
8
  "@gradio/audio": "^0.17.12",
9
+ "@gradio/annotatedimage": "^0.9.17",
10
+ "@gradio/box": "^0.2.18",
9
11
  "@gradio/button": "^0.4.17",
10
- "@gradio/chatbot": "^0.26.3",
11
- "@gradio/checkbox": "^0.4.20",
12
+ "@gradio/chatbot": "^0.26.4",
12
13
  "@gradio/checkboxgroup": "^0.6.20",
13
- "@gradio/box": "^0.2.18",
14
- "@gradio/client": "^1.14.2",
14
+ "@gradio/checkbox": "^0.4.20",
15
15
  "@gradio/code": "^0.14.2",
16
+ "@gradio/client": "^1.14.2",
16
17
  "@gradio/colorpicker": "^0.4.20",
17
18
  "@gradio/column": "^0.2.0",
18
- "@gradio/datetime": "^0.3.12",
19
19
  "@gradio/dataframe": "^0.17.10",
20
- "@gradio/downloadbutton": "^0.3.17",
21
20
  "@gradio/dataset": "^0.4.16",
21
+ "@gradio/datetime": "^0.3.12",
22
22
  "@gradio/dropdown": "^0.9.20",
23
+ "@gradio/downloadbutton": "^0.3.17",
23
24
  "@gradio/fallback": "^0.4.20",
24
25
  "@gradio/file": "^0.12.16",
25
- "@gradio/fileexplorer": "^0.5.27",
26
26
  "@gradio/form": "^0.2.18",
27
- "@gradio/annotatedimage": "^0.9.17",
27
+ "@gradio/fileexplorer": "^0.5.27",
28
28
  "@gradio/gallery": "^0.15.17",
29
- "@gradio/group": "^0.2.0",
30
29
  "@gradio/highlightedtext": "^0.9.3",
31
30
  "@gradio/html": "^0.6.11",
32
31
  "@gradio/icons": "^0.12.0",
32
+ "@gradio/group": "^0.2.0",
33
+ "@gradio/imageeditor": "^0.14.4",
33
34
  "@gradio/image": "^0.22.4",
34
35
  "@gradio/imageslider": "^0.2.0",
35
- "@gradio/imageeditor": "^0.14.4",
36
36
  "@gradio/json": "^0.5.20",
37
37
  "@gradio/browserstate": "^0.3.2",
38
38
  "@gradio/markdown": "^0.13.10",
39
39
  "@gradio/label": "^0.5.12",
40
- "@gradio/multimodaltextbox": "^0.10.4",
41
40
  "@gradio/model3d": "^0.14.11",
42
- "@gradio/nativeplot": "^0.5.14",
41
+ "@gradio/paramviewer": "^0.7.8",
43
42
  "@gradio/number": "^0.5.20",
43
+ "@gradio/nativeplot": "^0.5.14",
44
44
  "@gradio/plot": "^0.9.15",
45
- "@gradio/paramviewer": "^0.7.8",
45
+ "@gradio/multimodaltextbox": "^0.10.4",
46
46
  "@gradio/radio": "^0.7.3",
47
47
  "@gradio/row": "^0.2.1",
48
48
  "@gradio/sidebar": "^0.1.12",
49
49
  "@gradio/simpledropdown": "^0.3.20",
50
50
  "@gradio/simpleimage": "^0.8.27",
51
- "@gradio/sketchbox": "^0.6.7",
52
51
  "@gradio/simpletextbox": "^0.3.20",
52
+ "@gradio/sketchbox": "^0.6.7",
53
53
  "@gradio/slider": "^0.6.8",
54
54
  "@gradio/state": "^0.1.2",
55
55
  "@gradio/statustracker": "^0.10.10",
56
56
  "@gradio/tabitem": "^0.4.3",
57
57
  "@gradio/tabs": "^0.4.3",
58
- "@gradio/textbox": "^0.10.10",
59
58
  "@gradio/theme": "^0.4.0",
60
- "@gradio/timer": "^0.4.5",
59
+ "@gradio/textbox": "^0.10.10",
61
60
  "@gradio/upload": "^0.16.3",
62
61
  "@gradio/uploadbutton": "^0.8.17",
62
+ "@gradio/timer": "^0.4.5",
63
+ "@gradio/utils": "^0.10.2",
63
64
  "@gradio/video": "^0.14.12",
64
- "@gradio/wasm": "^0.18.1",
65
- "@gradio/utils": "^0.10.2"
65
+ "@gradio/wasm": "^0.18.1"
66
66
  },
67
67
  "msw": {
68
68
  "workerDirectory": "public"
@@ -6,6 +6,8 @@
6
6
 
7
7
  export let root: string;
8
8
  export let api_count: number;
9
+ export let current_language: "python" | "javascript" | "bash" | "mcp" =
10
+ "python";
9
11
 
10
12
  const dispatch = createEventDispatcher();
11
13
  </script>
@@ -19,17 +21,20 @@
19
21
  </div>
20
22
  </div>
21
23
  <span class="counts">
22
- <BaseButton
23
- size="sm"
24
- variant="secondary"
25
- elem_id="start-api-recorder"
26
- on:click={() => dispatch("close", { api_recorder_visible: true })}
27
- >
28
- <div class="loading-dot self-baseline"></div>
29
- <p class="self-baseline btn-text">API Recorder</p>
30
- </BaseButton>
24
+ {#if current_language !== "mcp"}
25
+ <BaseButton
26
+ size="sm"
27
+ variant="secondary"
28
+ elem_id="start-api-recorder"
29
+ on:click={() => dispatch("close", { api_recorder_visible: true })}
30
+ >
31
+ <div class="loading-dot self-baseline"></div>
32
+ <p class="self-baseline btn-text">API Recorder</p>
33
+ </BaseButton>
34
+ {/if}
31
35
  <p>
32
- <span class="url">{api_count}</span> API endpoint{#if api_count > 1}s{/if}<br
36
+ <span class="url">{api_count}</span>
37
+ {#if current_language !== "mcp"}API endpoint{:else}MCP Tool{/if}{#if api_count > 1}s{/if}<br
33
38
  />
34
39
  </p>
35
40
  </span>