Skip to content

Commit

Permalink
chore: bump formkit version to 1.5.x (#5395)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.13.x

#### What this PR does / why we need it:

升级 FormKit 的依赖版本至 1.5.x

Please see https://formkit.com/changelog#_150

#### Does this PR introduce a user-facing change?

```release-note
升级 FormKit 的依赖版本至 1.5.x
```
  • Loading branch information
ruibaby committed Feb 29, 2024
1 parent 1111441 commit f5a9889
Show file tree
Hide file tree
Showing 18 changed files with 141 additions and 212 deletions.
70 changes: 70 additions & 0 deletions ui/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,75 @@ declare module "@formkit/inputs" {
type: "datetime-local";
value?: string;
};

attachmentGroupSelect: {
type: "attachmentGroupSelect";
value?: string;
};

attachmentPolicySelect: {
type: "attachmentPolicySelect";
value?: string;
};

attachment: {
type: "attachment";
value?: string;
};

categoryCheckbox: {
type: "categoryCheckbox";
value?: string[];
};

tagSelect: {
type: "tagSelect";
value?: string | string[];
};

repeater: {
type: "repeater";
value?: Record<string, unknown>[];
};

categorySelect: {
type: "categorySelect";
value?: string | string[];
};

tagCheckbox: {
type: "tagCheckbox";
value?: string[];
};

singlePageSelect: {
type: "singlePageSelect";
value?: string;
};

roleSelect: {
type: "roleSelect";
value?: string;
};

postSelect: {
type: "postSelect";
value?: string;
};

menuRadio: {
type: "menuRadio";
value?: string;
};

menuItemSelect: {
type: "menuItemSelect";
value?: string;
};

menuCheckbox: {
type: "menuCheckbox";
value?: string[];
};
}
}
14 changes: 7 additions & 7 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
"@codemirror/state": "^6.1.4",
"@codemirror/view": "^6.5.1",
"@emoji-mart/data": "^1.0.8",
"@formkit/core": "^1.4.0",
"@formkit/i18n": "^1.4.0",
"@formkit/inputs": "^1.4.0",
"@formkit/themes": "^1.4.0",
"@formkit/utils": "^1.4.0",
"@formkit/validation": "^1.4.0",
"@formkit/vue": "^1.4.0",
"@formkit/core": "^1.5.9",
"@formkit/i18n": "^1.5.9",
"@formkit/inputs": "^1.5.9",
"@formkit/themes": "^1.5.9",
"@formkit/utils": "^1.5.9",
"@formkit/validation": "^1.5.9",
"@formkit/vue": "^1.5.9",
"@halo-dev/api-client": "workspace:*",
"@halo-dev/components": "workspace:*",
"@halo-dev/console-shared": "workspace:*",
Expand Down
122 changes: 61 additions & 61 deletions ui/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions ui/src/formkit/inputs/attachment-group-select.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { apiClient } from "@/utils/api-client";
import type { FormKitNode, FormKitTypeDefinition } from "@formkit/core";
import { select, selects, defaultIcon } from "@formkit/inputs";
import type { FormKitInputs } from "@formkit/inputs";

declare module "@formkit/inputs" {
interface FormKitInputProps<Props extends FormKitInputs<Props>> {
attachmentGroupSelect: {
type: "attachmentGroupSelect";
value?: string;
};
}
}

function optionsHandler(node: FormKitNode) {
node.on("created", async () => {
Expand Down
10 changes: 0 additions & 10 deletions ui/src/formkit/inputs/attachment-policy-select.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { apiClient } from "@/utils/api-client";
import type { FormKitNode, FormKitTypeDefinition } from "@formkit/core";
import { select, selects, defaultIcon } from "@formkit/inputs";
import type { FormKitInputs } from "@formkit/inputs";

declare module "@formkit/inputs" {
interface FormKitInputProps<Props extends FormKitInputs<Props>> {
attachmentPolicySelect: {
type: "attachmentPolicySelect";
value?: string;
};
}
}

function optionsHandler(node: FormKitNode) {
node.on("created", async () => {
Expand Down
11 changes: 0 additions & 11 deletions ui/src/formkit/inputs/attachment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@ import { initialValue } from "@formkit/inputs";
import { createInput } from "@formkit/vue";
import AttachmentInput from "./AttachmentInput.vue";

import type { FormKitInputs } from "@formkit/inputs";

declare module "@formkit/inputs" {
interface FormKitInputProps<Props extends FormKitInputs<Props>> {
attachment: {
type: "attachment";
value?: string;
};
}
}

export const attachment = createInput(AttachmentInput, {
type: "input",
props: ["accepts"],
Expand Down
10 changes: 0 additions & 10 deletions ui/src/formkit/inputs/category-checkbox.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { apiClient } from "@/utils/api-client";
import type { FormKitNode, FormKitTypeDefinition } from "@formkit/core";
import { checkbox, checkboxes, defaultIcon } from "@formkit/inputs";
import type { FormKitInputs } from "@formkit/inputs";

declare module "@formkit/inputs" {
interface FormKitInputProps<Props extends FormKitInputs<Props>> {
categoryCheckbox: {
type: "categoryCheckbox";
value?: string[];
};
}
}

function optionsHandler(node: FormKitNode) {
node.on("created", async () => {
Expand Down
10 changes: 0 additions & 10 deletions ui/src/formkit/inputs/category-select/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ import {
} from "@formkit/inputs";
import CategorySelect from "./CategorySelect.vue";
import { CategorySelectSection } from "./sections";
import type { FormKitInputs } from "@formkit/inputs";

declare module "@formkit/inputs" {
interface FormKitInputProps<Props extends FormKitInputs<Props>> {
categorySelect: {
type: "categorySelect";
value?: string | string[];
};
}
}

export const categorySelect: FormKitTypeDefinition = {
schema: outer(
Expand Down
10 changes: 0 additions & 10 deletions ui/src/formkit/inputs/menu-checkbox.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { apiClient } from "@/utils/api-client";
import type { FormKitNode, FormKitTypeDefinition } from "@formkit/core";
import { checkbox, checkboxes, defaultIcon } from "@formkit/inputs";
import type { FormKitInputs } from "@formkit/inputs";

declare module "@formkit/inputs" {
interface FormKitInputProps<Props extends FormKitInputs<Props>> {
menuCheckbox: {
type: "menuCheckbox";
value?: string[];
};
}
}

function optionsHandler(node: FormKitNode) {
node.on("created", async () => {
Expand Down
10 changes: 0 additions & 10 deletions ui/src/formkit/inputs/menu-item-select.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
import { apiClient } from "@/utils/api-client";
import type { FormKitNode, FormKitTypeDefinition } from "@formkit/core";
import { select, selects, defaultIcon } from "@formkit/inputs";
import type { FormKitInputs } from "@formkit/inputs";

declare module "@formkit/inputs" {
interface FormKitInputProps<Props extends FormKitInputs<Props>> {
menuItemSelect: {
type: "menuItemSelect";
value?: string;
};
}
}

function optionsHandler(node: FormKitNode) {
node.on("created", async () => {
Expand Down
Loading

0 comments on commit f5a9889

Please sign in to comment.