Skip to content

Commit

Permalink
chore: update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Col0ring committed Nov 21, 2024
1 parent 6a38225 commit 4d4191c
Show file tree
Hide file tree
Showing 31 changed files with 112 additions and 19 deletions.
1 change: 1 addition & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"fuzzy-goats-retire",
"lemon-laws-cross",
"slimy-feet-nail",
"spotty-seals-poke",
"tough-walls-grab"
]
}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# modelscope_studio

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion backend/modelscope_studio/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0-beta.5"
__version__ = "1.0.0-beta.6"
6 changes: 6 additions & 0 deletions config/changelog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/changelog

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion config/changelog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/changelog",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": false,
"description": "ModelScope Studio Changelog",
"repository": "[email protected]:modelscope/modelscope-studio.git",
Expand Down
6 changes: 6 additions & 0 deletions config/lint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/lint-config

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion config/lint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/lint-config",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": false,
"description": "ModelScope Studio Lint Config",
"repository": "[email protected]:modelscope/modelscope-studio.git",
Expand Down
6 changes: 6 additions & 0 deletions frontend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/frontend

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
6 changes: 6 additions & 0 deletions frontend/antd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/antd

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/antd/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@modelscope-studio/antd",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"type": "module"
}
5 changes: 4 additions & 1 deletion frontend/antd/tree/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ export const Tree = sveltify<
slotItems,
setSlotParams,
onLoadData,
titleRender,
...props
}) => {
const filterTreeNodeFunction = useFunction(filterTreeNode);
const draggableFunction = useFunction(draggable);
const titleRenderFunction = useFunction(titleRender);
const draggableNodeDraggableFunction = useFunction(
typeof draggable === 'object' ? draggable.nodeDraggable : undefined
);
Expand Down Expand Up @@ -81,7 +83,7 @@ export const Tree = sveltify<
: props.switcherIcon,
titleRender: slots.titleRender
? renderParamsSlot({ slots, setSlotParams, key: 'titleRender' })
: props.titleRender,
: titleRenderFunction,
draggable:
slots['draggable.icon'] || draggableNodeDraggableFunction
? {
Expand All @@ -103,6 +105,7 @@ export const Tree = sveltify<
setSlotParams,
draggableNodeDraggableFunction,
draggable,
titleRenderFunction,
draggableFunction,
onLoadData,
]);
Expand Down
6 changes: 6 additions & 0 deletions frontend/base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/base

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/base/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@modelscope-studio/base",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"type": "module"
}
6 changes: 6 additions & 0 deletions frontend/legacy/Chatbot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/legacy-chatbot

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/Chatbot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-chatbot",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "[email protected]:modelscope/modelscope-studio.git",
Expand Down
6 changes: 6 additions & 0 deletions frontend/legacy/Flow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/legacy-flow

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/Flow/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-flow",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "[email protected]:modelscope/modelscope-studio.git",
Expand Down
6 changes: 6 additions & 0 deletions frontend/legacy/Lifecycle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/legacy-lifecycle

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/Lifecycle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-lifecycle",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "[email protected]:modelscope/modelscope-studio.git",
Expand Down
6 changes: 6 additions & 0 deletions frontend/legacy/Markdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/legacy-markdown

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/Markdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-markdown",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "[email protected]:modelscope/modelscope-studio.git",
Expand Down
6 changes: 6 additions & 0 deletions frontend/legacy/MultimodalInput/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/legacy-multimodal-input

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/MultimodalInput/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-multimodal-input",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "[email protected]:modelscope/modelscope-studio.git",
Expand Down
6 changes: 6 additions & 0 deletions frontend/legacy/WaterfallGallery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/legacy-waterfall-gallery

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/WaterfallGallery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-waterfall-gallery",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"description": "ModelScope Gradio Components",
"repository": "[email protected]:modelscope/modelscope-studio.git",
"license": "Apache-2.0",
Expand Down
6 changes: 6 additions & 0 deletions frontend/legacy/compiled/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/legacy-compiled

## 1.0.0-beta.6

### Fixes

- [`6a38225`](https://github.com/modelscope/modelscope-studio/commit/6a38225363c7db871c9593e524fe73ebebff1016) - auto_loading & cloned node. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0-beta.5

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/compiled/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-compiled",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "[email protected]:modelscope/modelscope-studio.git",
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/frontend",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": false,
"description": "ModelScope Gradio Components",
"license": "Apache-2.0",
Expand Down
17 changes: 14 additions & 3 deletions frontend/utils/createFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@ export function createFunction<T extends (...args: any[]) => any>(
target: any
): T | undefined {
try {
return typeof target == 'string'
? (new Function(`return (...args) => (${target})(...args)`)() as T)
: undefined;
if (typeof target == 'string') {
let formattedStr = target.trim();
if (formattedStr.startsWith(';')) {
formattedStr = formattedStr.slice(1);
}
if (formattedStr.endsWith(';')) {
formattedStr = formattedStr.slice(0, -1);
}

return new Function(
`return (...args) => (${formattedStr})(...args)`
)() as T;
}
return undefined;
} catch {
return undefined;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modelscope_studio",
"version": "1.0.0-beta.5",
"version": "1.0.0-beta.6",
"private": true,
"description": "ModelScope Gradio Components",
"repository": "[email protected]:modelscope/modelscope-studio.git",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "hatchling.build"

[project]
name = "modelscope_studio"
version = "1.0.0-beta.5"
version = "1.0.0-beta.6"
description = "A third-party component library based on Gradio."
readme = "README.md"
license = "Apache-2.0"
Expand Down

0 comments on commit 4d4191c

Please sign in to comment.