@pixpilot/formily-shadcn 0.11.1 → 0.11.2

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.
@@ -1,4 +1,4 @@
1
- import * as react18 from "react";
1
+ import * as react25 from "react";
2
2
  import * as _radix_ui_react_separator0 from "@radix-ui/react-separator";
3
3
 
4
4
  //#region src/components/separator.d.ts
@@ -6,6 +6,6 @@ import * as _radix_ui_react_separator0 from "@radix-ui/react-separator";
6
6
  * Formily-connected Separator component
7
7
  * A visual divider for content sections
8
8
  */
9
- declare const Separator: react18.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator0.SeparatorProps & react18.RefAttributes<HTMLDivElement>>, "ref"> & react18.RefAttributes<unknown>>;
9
+ declare const Separator: react25.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_separator0.SeparatorProps & react25.RefAttributes<HTMLDivElement>>, "ref"> & react25.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { Separator };
@@ -1,4 +1,4 @@
1
- import * as react17 from "react";
1
+ import * as react19 from "react";
2
2
  import { SliderProps } from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/slider.d.ts
@@ -7,6 +7,6 @@ import { SliderProps } from "@pixpilot/shadcn-ui";
7
7
  * Formily-connected Slider component
8
8
  * Range input for selecting numeric values
9
9
  */
10
- declare const Slider: react17.ForwardRefExoticComponent<Omit<Partial<SliderProps>, "ref"> & react17.RefAttributes<unknown>>;
10
+ declare const Slider: react19.ForwardRefExoticComponent<Omit<Partial<SliderProps>, "ref"> & react19.RefAttributes<unknown>>;
11
11
  //#endregion
12
12
  export { Slider };
@@ -1,4 +1,4 @@
1
- import * as react21 from "react";
1
+ import * as react14 from "react";
2
2
  import { SliderProps } from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/slider.d.ts
@@ -7,6 +7,6 @@ import { SliderProps } from "@pixpilot/shadcn-ui";
7
7
  * Formily-connected Slider component
8
8
  * Range input for selecting numeric values
9
9
  */
10
- declare const Slider$1: react21.ForwardRefExoticComponent<Omit<Partial<SliderProps>, "ref"> & react21.RefAttributes<unknown>>;
10
+ declare const Slider$1: react14.ForwardRefExoticComponent<Omit<Partial<SliderProps>, "ref"> & react14.RefAttributes<unknown>>;
11
11
  //#endregion
12
12
  export { Slider$1 as Slider };
@@ -1,4 +1,4 @@
1
- import * as react19 from "react";
1
+ import * as react21 from "react";
2
2
  import * as _radix_ui_react_switch0 from "@radix-ui/react-switch";
3
3
 
4
4
  //#region src/components/switch.d.ts
@@ -6,6 +6,6 @@ import * as _radix_ui_react_switch0 from "@radix-ui/react-switch";
6
6
  * Formily-connected Switch component
7
7
  * Toggle switch for boolean values
8
8
  */
9
- declare const Switch: react19.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react19.RefAttributes<HTMLButtonElement>>, "ref"> & react19.RefAttributes<unknown>>;
9
+ declare const Switch: react21.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react21.RefAttributes<HTMLButtonElement>>, "ref"> & react21.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { Switch };
@@ -1,4 +1,4 @@
1
- import * as react25 from "react";
1
+ import * as react20 from "react";
2
2
  import * as _radix_ui_react_switch0 from "@radix-ui/react-switch";
3
3
 
4
4
  //#region src/components/switch.d.ts
@@ -6,6 +6,6 @@ import * as _radix_ui_react_switch0 from "@radix-ui/react-switch";
6
6
  * Formily-connected Switch component
7
7
  * Toggle switch for boolean values
8
8
  */
9
- declare const Switch: react25.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react25.RefAttributes<HTMLButtonElement>>, "ref"> & react25.RefAttributes<unknown>>;
9
+ declare const Switch: react20.ForwardRefExoticComponent<Omit<Partial<_radix_ui_react_switch0.SwitchProps & react20.RefAttributes<HTMLButtonElement>>, "ref"> & react20.RefAttributes<unknown>>;
10
10
  //#endregion
11
11
  export { Switch };
@@ -1,4 +1,4 @@
1
- import * as react22 from "react";
1
+ import * as react17 from "react";
2
2
  import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
3
3
 
4
4
  //#region src/components/tags-input-inline.d.ts
@@ -10,6 +10,6 @@ import * as _pixpilot_shadcn_ui0 from "@pixpilot/shadcn-ui";
10
10
  * Based on DiceUI's tags-input for inline tag editing with keyboard navigation
11
11
  * and validation support.
12
12
  */
13
- declare const TagsInputInLine: react22.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.TagsInputProps> & react22.RefAttributes<unknown>>;
13
+ declare const TagsInputInLine: react17.ForwardRefExoticComponent<Partial<_pixpilot_shadcn_ui0.TagsInputProps> & react17.RefAttributes<unknown>>;
14
14
  //#endregion
15
15
  export { TagsInputInLine };
@@ -1,9 +1,9 @@
1
- import * as react0 from "react";
1
+ import * as react16 from "react";
2
2
 
3
3
  //#region src/components/textarea.d.ts
4
4
  /**
5
5
  * Formily-connected Textarea component
6
6
  */
7
- declare const Textarea: react0.ForwardRefExoticComponent<Omit<Partial<react0.ClassAttributes<HTMLTextAreaElement> & react0.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react0.RefAttributes<unknown>>;
7
+ declare const Textarea: react16.ForwardRefExoticComponent<Omit<Partial<react16.ClassAttributes<HTMLTextAreaElement> & react16.TextareaHTMLAttributes<HTMLTextAreaElement>>, "ref"> & react16.RefAttributes<unknown>>;
8
8
  //#endregion
9
9
  export { Textarea };
@@ -27,7 +27,8 @@ const inputSchemaMap = {
27
27
  object: { "x-component": "ObjectContainer" }
28
28
  };
29
29
  function transformSchema(schema, fieldsDecorators) {
30
- (0, json_schema_traverse.default)(schema, {
30
+ const normalizedSchema = typeof structuredClone === "function" ? structuredClone(schema) : JSON.parse(JSON.stringify(schema));
31
+ (0, json_schema_traverse.default)(normalizedSchema, {
31
32
  allKeys: true,
32
33
  cb: (currentSchema) => {
33
34
  const { type } = currentSchema;
@@ -45,7 +46,7 @@ function transformSchema(schema, fieldsDecorators) {
45
46
  }
46
47
  }
47
48
  });
48
- return schema;
49
+ return normalizedSchema;
49
50
  }
50
51
 
51
52
  //#endregion
@@ -25,7 +25,8 @@ const inputSchemaMap = {
25
25
  object: { "x-component": "ObjectContainer" }
26
26
  };
27
27
  function transformSchema(schema, fieldsDecorators) {
28
- traverse(schema, {
28
+ const normalizedSchema = typeof structuredClone === "function" ? structuredClone(schema) : JSON.parse(JSON.stringify(schema));
29
+ traverse(normalizedSchema, {
29
30
  allKeys: true,
30
31
  cb: (currentSchema) => {
31
32
  const { type } = currentSchema;
@@ -43,7 +44,7 @@ function transformSchema(schema, fieldsDecorators) {
43
44
  }
44
45
  }
45
46
  });
46
- return schema;
47
+ return normalizedSchema;
47
48
  }
48
49
 
49
50
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixpilot/formily-shadcn",
3
3
  "type": "module",
4
- "version": "0.11.1",
4
+ "version": "0.11.2",
5
5
  "description": "Formily integration for shadcn/ui components",
6
6
  "author": "m.doaie <m.doaie@hotmail.com>",
7
7
  "license": "MIT",
@@ -54,11 +54,11 @@
54
54
  "react-dom": "19.2.0",
55
55
  "tsdown": "^0.15.12",
56
56
  "typescript": "^5.9.3",
57
+ "@internal/eslint-config": "0.3.0",
58
+ "@internal/prettier-config": "0.0.1",
57
59
  "@internal/tsconfig": "0.1.0",
58
60
  "@internal/tsdown-config": "0.1.0",
59
- "@internal/vitest-config": "0.1.0",
60
- "@internal/eslint-config": "0.3.0",
61
- "@internal/prettier-config": "0.0.1"
61
+ "@internal/vitest-config": "0.1.0"
62
62
  },
63
63
  "prettier": "@internal/prettier-config",
64
64
  "scripts": {