Socket
Socket
Sign inDemoInstall

@gradio/utils

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gradio/utils - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0-beta.1

dist/src/color.d.ts

24

CHANGELOG.md
# @gradio/utils
## 0.7.0-beta.1
### Features
- [#9187](https://github.com/gradio-app/gradio/pull/9187) [`5bf00b7`](https://github.com/gradio-app/gradio/commit/5bf00b7524ebf399b48719120a49d15bb21bd65c) - make all component SSR compatible. Thanks @pngwn!
### Dependency updates
- @gradio/theme@0.3.0-beta.1
## 0.7.0-beta.0
### Features
- [#9173](https://github.com/gradio-app/gradio/pull/9173) [`66349fe`](https://github.com/gradio-app/gradio/commit/66349fe26827e3a3c15b738a1177e95fec7f5554) - Streaming Guides. Thanks @freddyaboulton!
### Fixes
- [#9163](https://github.com/gradio-app/gradio/pull/9163) [`2b6cbf2`](https://github.com/gradio-app/gradio/commit/2b6cbf25908e42cf027324e54ef2cc0baad11a91) - fix exports and generate types. Thanks @pngwn!
### Dependency updates
- @gradio/theme@0.2.5-beta.0
## 0.6.0

@@ -4,0 +28,0 @@

17

package.json
{
"name": "@gradio/utils",
"version": "0.6.0",
"version": "0.7.0-beta.1",
"description": "Gradio UI packages",
"type": "module",
"main": "src/index.ts",
"main": "./src/index.ts",
"author": "",

@@ -11,3 +11,3 @@ "license": "ISC",

"svelte-i18n": "^3.6.0",
"@gradio/theme": "^0.2.4"
"@gradio/theme": "^0.3.0-beta.1"
},

@@ -19,3 +19,14 @@ "main_changeset": true,

"directory": "js/utils"
},
"exports": {
".": {
"gradio": "./src/index.ts",
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
},
"./package.json": "./package.json"
},
"scripts": {
"package": "svelte-package --input=. --cwd=../../.config/"
}
}

4

src/index.ts

@@ -1,2 +0,2 @@

export * from "./color";
export * from "./utils";
export * from "./color.js";
export * from "./utils.js";
import type { ActionReturn } from "svelte/action";
import type { Client } from "@gradio/client";
import type { ComponentType, SvelteComponent } from "svelte";
export interface ValueData {
value: any;
is_value_data: boolean;
}
export interface SelectData {

@@ -197,6 +203,16 @@ row_value?: any[];

type component_loader =
typeof import("virtual:component-loader").load_component;
interface Args {
api_url: string;
name: string;
id?: string;
variant: "component" | "example" | "base";
}
let virtual_component_loader: component_loader | null = null;
type component_loader = (args: Args) => {
name: "string";
component: {
default: ComponentType<SvelteComponent>;
};
};
export type I18nFormatter = any;

@@ -213,3 +229,3 @@ export class Gradio<T extends Record<string, any> = Record<string, any>> {

client: Client;
_load_component: component_loader | null = null;
_load_component?: component_loader;
load_component = _load_component.bind(this);

@@ -226,3 +242,4 @@

i18n: I18nFormatter = (x: string): string => x,
client: Client
client: Client,
virtual_component_loader?: component_loader
) {

@@ -240,14 +257,3 @@ this.#id = id;

if (!virtual_component_loader) {
import("virtual:component-loader")
.then((module) => {
this._load_component = module.load_component;
virtual_component_loader = module.load_component;
})
.catch((e) => {
console.error("Error loading virtual component loader", e);
});
} else {
this._load_component = virtual_component_loader;
}
this._load_component = virtual_component_loader;
}

@@ -254,0 +260,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc