@uipath/apollo-wind 0.10.0-pr257.2a4b17b → 0.10.0-pr257.ea2dc77
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.
- package/dist/components/forms/field-renderer.cjs +5 -5
- package/dist/components/forms/field-renderer.js +1 -1
- package/dist/components/forms/form-designer.cjs +7 -7
- package/dist/components/forms/form-designer.js +7 -7
- package/dist/components/forms/form-state-viewer.cjs +3 -3
- package/dist/components/forms/form-state-viewer.js +1 -1
- package/dist/components/forms/metadata-form.cjs +21 -27
- package/dist/components/forms/metadata-form.js +17 -23
- package/dist/components/forms/schema-viewer.cjs +3 -3
- package/dist/components/forms/schema-viewer.js +1 -1
- package/dist/components/ui/accordion.cjs +4 -4
- package/dist/components/ui/accordion.js +1 -1
- package/dist/components/ui/alert-dialog.cjs +9 -9
- package/dist/components/ui/alert-dialog.js +1 -1
- package/dist/components/ui/alert.cjs +4 -4
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/avatar.cjs +4 -4
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.cjs +2 -2
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/breadcrumb.cjs +8 -8
- package/dist/components/ui/breadcrumb.js +1 -1
- package/dist/components/ui/button-group.cjs +4 -4
- package/dist/components/ui/button-group.js +1 -1
- package/dist/components/ui/button.cjs +2 -2
- package/dist/components/ui/button.js +1 -1
- package/dist/components/ui/calendar.cjs +2 -2
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/card.cjs +7 -7
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/checkbox.cjs +2 -2
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/combobox.cjs +2 -2
- package/dist/components/ui/combobox.js +1 -1
- package/dist/components/ui/command.cjs +10 -10
- package/dist/components/ui/command.js +1 -1
- package/dist/components/ui/context-menu.cjs +10 -10
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/data-table.cjs +2 -2
- package/dist/components/ui/data-table.js +1 -1
- package/dist/components/ui/date-picker.cjs +3 -3
- package/dist/components/ui/date-picker.js +1 -1
- package/dist/components/ui/datetime-picker.cjs +2 -2
- package/dist/components/ui/datetime-picker.js +1 -1
- package/dist/components/ui/dialog.cjs +11 -11
- package/dist/components/ui/dialog.js +1 -1
- package/dist/components/ui/drawer.cjs +7 -7
- package/dist/components/ui/drawer.js +1 -1
- package/dist/components/ui/dropdown-menu.cjs +10 -10
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/editable-cell.cjs +2 -2
- package/dist/components/ui/editable-cell.js +1 -1
- package/dist/components/ui/empty-state.cjs +2 -2
- package/dist/components/ui/empty-state.js +1 -1
- package/dist/components/ui/file-upload.cjs +2 -2
- package/dist/components/ui/file-upload.js +1 -1
- package/dist/components/ui/hover-card.cjs +2 -2
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/input.cjs +2 -2
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/label.cjs +2 -2
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/layout/column.cjs +2 -2
- package/dist/components/ui/layout/column.js +1 -1
- package/dist/components/ui/layout/grid.cjs +2 -2
- package/dist/components/ui/layout/grid.js +1 -1
- package/dist/components/ui/layout/row.cjs +2 -2
- package/dist/components/ui/layout/row.js +1 -1
- package/dist/components/ui/menubar.cjs +17 -17
- package/dist/components/ui/menubar.js +1 -1
- package/dist/components/ui/multi-select.cjs +2 -2
- package/dist/components/ui/multi-select.js +1 -1
- package/dist/components/ui/navigation-menu.cjs +7 -7
- package/dist/components/ui/navigation-menu.js +1 -1
- package/dist/components/ui/pagination.cjs +8 -8
- package/dist/components/ui/pagination.js +1 -1
- package/dist/components/ui/popover.cjs +2 -2
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/progress.cjs +2 -2
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/radio-group.cjs +3 -3
- package/dist/components/ui/radio-group.js +1 -1
- package/dist/components/ui/resizable.cjs +3 -3
- package/dist/components/ui/resizable.js +1 -1
- package/dist/components/ui/scroll-area.cjs +3 -3
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/search.cjs +3 -3
- package/dist/components/ui/search.js +1 -1
- package/dist/components/ui/select.cjs +8 -8
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/separator.cjs +2 -2
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.cjs +7 -7
- package/dist/components/ui/sheet.js +1 -1
- package/dist/components/ui/skeleton.cjs +2 -2
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/slider.cjs +2 -2
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/sonner.cjs +2 -2
- package/dist/components/ui/sonner.js +1 -1
- package/dist/components/ui/spinner.cjs +2 -2
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/stats-card.cjs +2 -2
- package/dist/components/ui/stats-card.js +1 -1
- package/dist/components/ui/stepper.cjs +2 -2
- package/dist/components/ui/stepper.js +1 -1
- package/dist/components/ui/switch.cjs +2 -2
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.cjs +9 -9
- package/dist/components/ui/table.js +1 -1
- package/dist/components/ui/tabs.cjs +4 -4
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/textarea.cjs +2 -2
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/toggle-group.cjs +3 -3
- package/dist/components/ui/toggle-group.js +1 -1
- package/dist/components/ui/toggle.cjs +2 -2
- package/dist/components/ui/toggle.js +1 -1
- package/dist/components/ui/tooltip.cjs +2 -2
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/examples/admin-layout-example.cjs +14 -14
- package/dist/examples/admin-layout-example.js +1 -1
- package/dist/examples/dashboard-example.cjs +2 -2
- package/dist/examples/dashboard-example.js +1 -1
- package/dist/examples/data-management-example.cjs +2 -2
- package/dist/examples/data-management-example.js +1 -1
- package/dist/examples/flow-editor-layout-example.cjs +5 -5
- package/dist/examples/flow-editor-layout-example.js +1 -1
- package/dist/examples/flow-start-example.cjs +5 -5
- package/dist/examples/flow-start-example.js +1 -1
- package/dist/examples/form-builder-example.cjs +2 -2
- package/dist/examples/form-builder-example.js +1 -1
- package/dist/examples/new-project-example.cjs +2 -2
- package/dist/examples/new-project-example.js +2 -2
- package/dist/examples/settings-example.cjs +2 -2
- package/dist/examples/settings-example.js +1 -1
- package/dist/examples/vscode-example.cjs +15 -15
- package/dist/examples/vscode-example.js +1 -1
- package/package.json +2 -1
|
@@ -27,7 +27,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
FormFieldRenderer: ()=>FormFieldRenderer
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const
|
|
30
|
+
const external_react_compiler_runtime_namespaceObject = require("react-compiler-runtime");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
32
|
const external_react_hook_form_namespaceObject = require("react-hook-form");
|
|
33
33
|
const external_form_schema_cjs_namespaceObject = require("./form-schema.cjs");
|
|
@@ -555,7 +555,7 @@ function FieldByType({ field, formField, error, disabled, required, options }) {
|
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
function FormField(t0) {
|
|
558
|
-
const $ = (0,
|
|
558
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(5);
|
|
559
559
|
const { children, className: t1 } = t0;
|
|
560
560
|
const className = void 0 === t1 ? "" : t1;
|
|
561
561
|
let t2;
|
|
@@ -577,7 +577,7 @@ function FormField(t0) {
|
|
|
577
577
|
return t3;
|
|
578
578
|
}
|
|
579
579
|
function FormLabel(t0) {
|
|
580
|
-
const $ = (0,
|
|
580
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(7);
|
|
581
581
|
const { children, required, htmlFor, className: t1 } = t0;
|
|
582
582
|
const className = void 0 === t1 ? "" : t1;
|
|
583
583
|
let t2;
|
|
@@ -608,7 +608,7 @@ function FormLabel(t0) {
|
|
|
608
608
|
return t3;
|
|
609
609
|
}
|
|
610
610
|
function FormDescription(t0) {
|
|
611
|
-
const $ = (0,
|
|
611
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(2);
|
|
612
612
|
const { children } = t0;
|
|
613
613
|
if (!children) return null;
|
|
614
614
|
let t1;
|
|
@@ -623,7 +623,7 @@ function FormDescription(t0) {
|
|
|
623
623
|
return t1;
|
|
624
624
|
}
|
|
625
625
|
function FormError(t0) {
|
|
626
|
-
const $ = (0,
|
|
626
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(2);
|
|
627
627
|
const { children } = t0;
|
|
628
628
|
if (!children) return null;
|
|
629
629
|
let t1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
4
4
|
import { Controller, useFormContext } from "react-hook-form";
|
|
5
5
|
import { hasOptions, isCustomField } from "./form-schema.js";
|
|
@@ -27,7 +27,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
FormDesigner: ()=>FormDesigner
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const
|
|
30
|
+
const external_react_compiler_runtime_namespaceObject = require("react-compiler-runtime");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
32
|
const external_schema_serializer_cjs_namespaceObject = require("./schema-serializer.cjs");
|
|
33
33
|
const external_metadata_form_cjs_namespaceObject = require("./metadata-form.cjs");
|
|
@@ -502,7 +502,7 @@ const createFieldConfigSchema = (field)=>({
|
|
|
502
502
|
actions: []
|
|
503
503
|
});
|
|
504
504
|
function SectionConfigForm(t0) {
|
|
505
|
-
const $ = (0,
|
|
505
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(28);
|
|
506
506
|
const { section, onUpdate, existingSectionIds } = t0;
|
|
507
507
|
const [attemptedId, setAttemptedId] = (0, external_react_namespaceObject.useState)(null);
|
|
508
508
|
let t1;
|
|
@@ -649,7 +649,7 @@ function SectionConfigForm(t0) {
|
|
|
649
649
|
return t12;
|
|
650
650
|
}
|
|
651
651
|
function FieldConfigForm(t0) {
|
|
652
|
-
const $ = (0,
|
|
652
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(53);
|
|
653
653
|
const { field, onUpdate, allFields, existingFieldNames } = t0;
|
|
654
654
|
const [attemptedName, setAttemptedName] = (0, external_react_namespaceObject.useState)(null);
|
|
655
655
|
let t1;
|
|
@@ -1030,7 +1030,7 @@ function FieldConfigForm(t0) {
|
|
|
1030
1030
|
return t22;
|
|
1031
1031
|
}
|
|
1032
1032
|
function FormDesigner() {
|
|
1033
|
-
const $ = (0,
|
|
1033
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(143);
|
|
1034
1034
|
const [formTitle, setFormTitle] = (0, external_react_namespaceObject.useState)("My Custom Form");
|
|
1035
1035
|
const [formDescription, setFormDescription] = (0, external_react_namespaceObject.useState)("");
|
|
1036
1036
|
let t0;
|
|
@@ -2027,7 +2027,7 @@ function _temp(s) {
|
|
|
2027
2027
|
return s.fields;
|
|
2028
2028
|
}
|
|
2029
2029
|
function FieldOptionsEditor(t0) {
|
|
2030
|
-
const $ = (0,
|
|
2030
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(22);
|
|
2031
2031
|
const { options, onChange } = t0;
|
|
2032
2032
|
let t1;
|
|
2033
2033
|
if ($[0] !== onChange || $[1] !== options) {
|
|
@@ -2157,7 +2157,7 @@ function FieldOptionsEditor(t0) {
|
|
|
2157
2157
|
return t7;
|
|
2158
2158
|
}
|
|
2159
2159
|
function DataSourceEditor(t0) {
|
|
2160
|
-
const $ = (0,
|
|
2160
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(25);
|
|
2161
2161
|
const { dataSource, onChange } = t0;
|
|
2162
2162
|
const [sourceType, setSourceType] = (0, external_react_namespaceObject.useState)(dataSource?.type || "none");
|
|
2163
2163
|
let t1;
|
|
@@ -2466,7 +2466,7 @@ const RULE_EFFECTS = [
|
|
|
2466
2466
|
}
|
|
2467
2467
|
];
|
|
2468
2468
|
function RulesEditor(t0) {
|
|
2469
|
-
const $ = (0,
|
|
2469
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(34);
|
|
2470
2470
|
const { rules: t1, onChange, allFields, requiredMessage, onRequiredMessageChange } = t0;
|
|
2471
2471
|
const rules = void 0 === t1 ? [] : t1;
|
|
2472
2472
|
const [isAddingRule, setIsAddingRule] = (0, external_react_namespaceObject.useState)(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as external_react_compiler_runtime_c } from "react-compiler-runtime";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { schemaToJson } from "./schema-serializer.js";
|
|
5
5
|
import { MetadataForm } from "./metadata-form.js";
|
|
@@ -474,7 +474,7 @@ const createFieldConfigSchema = (field)=>({
|
|
|
474
474
|
actions: []
|
|
475
475
|
});
|
|
476
476
|
function SectionConfigForm(t0) {
|
|
477
|
-
const $ =
|
|
477
|
+
const $ = external_react_compiler_runtime_c(28);
|
|
478
478
|
const { section, onUpdate, existingSectionIds } = t0;
|
|
479
479
|
const [attemptedId, setAttemptedId] = useState(null);
|
|
480
480
|
let t1;
|
|
@@ -621,7 +621,7 @@ function SectionConfigForm(t0) {
|
|
|
621
621
|
return t12;
|
|
622
622
|
}
|
|
623
623
|
function FieldConfigForm(t0) {
|
|
624
|
-
const $ =
|
|
624
|
+
const $ = external_react_compiler_runtime_c(53);
|
|
625
625
|
const { field, onUpdate, allFields, existingFieldNames } = t0;
|
|
626
626
|
const [attemptedName, setAttemptedName] = useState(null);
|
|
627
627
|
let t1;
|
|
@@ -1002,7 +1002,7 @@ function FieldConfigForm(t0) {
|
|
|
1002
1002
|
return t22;
|
|
1003
1003
|
}
|
|
1004
1004
|
function FormDesigner() {
|
|
1005
|
-
const $ =
|
|
1005
|
+
const $ = external_react_compiler_runtime_c(143);
|
|
1006
1006
|
const [formTitle, setFormTitle] = useState("My Custom Form");
|
|
1007
1007
|
const [formDescription, setFormDescription] = useState("");
|
|
1008
1008
|
let t0;
|
|
@@ -1999,7 +1999,7 @@ function _temp(s) {
|
|
|
1999
1999
|
return s.fields;
|
|
2000
2000
|
}
|
|
2001
2001
|
function FieldOptionsEditor(t0) {
|
|
2002
|
-
const $ =
|
|
2002
|
+
const $ = external_react_compiler_runtime_c(22);
|
|
2003
2003
|
const { options, onChange } = t0;
|
|
2004
2004
|
let t1;
|
|
2005
2005
|
if ($[0] !== onChange || $[1] !== options) {
|
|
@@ -2129,7 +2129,7 @@ function FieldOptionsEditor(t0) {
|
|
|
2129
2129
|
return t7;
|
|
2130
2130
|
}
|
|
2131
2131
|
function DataSourceEditor(t0) {
|
|
2132
|
-
const $ =
|
|
2132
|
+
const $ = external_react_compiler_runtime_c(25);
|
|
2133
2133
|
const { dataSource, onChange } = t0;
|
|
2134
2134
|
const [sourceType, setSourceType] = useState(dataSource?.type || "none");
|
|
2135
2135
|
let t1;
|
|
@@ -2438,7 +2438,7 @@ const RULE_EFFECTS = [
|
|
|
2438
2438
|
}
|
|
2439
2439
|
];
|
|
2440
2440
|
function RulesEditor(t0) {
|
|
2441
|
-
const $ =
|
|
2441
|
+
const $ = external_react_compiler_runtime_c(34);
|
|
2442
2442
|
const { rules: t1, onChange, allFields, requiredMessage, onRequiredMessageChange } = t0;
|
|
2443
2443
|
const rules = void 0 === t1 ? [] : t1;
|
|
2444
2444
|
const [isAddingRule, setIsAddingRule] = useState(false);
|
|
@@ -27,7 +27,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
FormStateViewer: ()=>FormStateViewer
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const
|
|
30
|
+
const external_react_compiler_runtime_namespaceObject = require("react-compiler-runtime");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
32
|
const badge_cjs_namespaceObject = require("../ui/badge.cjs");
|
|
33
33
|
const card_cjs_namespaceObject = require("../ui/card.cjs");
|
|
@@ -35,7 +35,7 @@ const tabs_cjs_namespaceObject = require("../ui/tabs.cjs");
|
|
|
35
35
|
const scroll_area_cjs_namespaceObject = require("../ui/scroll-area.cjs");
|
|
36
36
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
37
37
|
function FormStateViewer(t0) {
|
|
38
|
-
const $ = (0,
|
|
38
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(192);
|
|
39
39
|
const { form, title: t1, className: t2, compact: t3 } = t0;
|
|
40
40
|
const title = void 0 === t1 ? "Form State" : t1;
|
|
41
41
|
const className = void 0 === t2 ? "" : t2;
|
|
@@ -990,7 +990,7 @@ function _temp(t0) {
|
|
|
990
990
|
}, field);
|
|
991
991
|
}
|
|
992
992
|
function StateItem(t0) {
|
|
993
|
-
const $ = (0,
|
|
993
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(8);
|
|
994
994
|
const { label, value, type: t1 } = t0;
|
|
995
995
|
const type = void 0 === t1 ? "boolean" : t1;
|
|
996
996
|
let t2;
|
|
@@ -27,13 +27,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
MetadataForm: ()=>MetadataForm
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const
|
|
30
|
+
const external_react_compiler_runtime_namespaceObject = require("react-compiler-runtime");
|
|
31
|
+
const standard_schema_namespaceObject = require("@hookform/resolvers/standard-schema");
|
|
31
32
|
const external_react_namespaceObject = require("react");
|
|
32
33
|
const external_react_hook_form_namespaceObject = require("react-hook-form");
|
|
33
34
|
const v4_namespaceObject = require("zod/v4");
|
|
34
35
|
const accordion_cjs_namespaceObject = require("../ui/accordion.cjs");
|
|
35
36
|
const button_cjs_namespaceObject = require("../ui/button.cjs");
|
|
36
|
-
const standard_schema_namespaceObject = require("@hookform/resolvers/standard-schema");
|
|
37
37
|
const external_data_fetcher_cjs_namespaceObject = require("./data-fetcher.cjs");
|
|
38
38
|
const external_field_renderer_cjs_namespaceObject = require("./field-renderer.cjs");
|
|
39
39
|
const external_rules_engine_cjs_namespaceObject = require("./rules-engine.cjs");
|
|
@@ -53,10 +53,7 @@ function MetadataForm({ schema, plugins = DEFAULT_PLUGINS, onSubmit, className,
|
|
|
53
53
|
});
|
|
54
54
|
const { watch, handleSubmit, reset } = form;
|
|
55
55
|
const valuesRef = (0, external_react_namespaceObject.useRef)({});
|
|
56
|
-
|
|
57
|
-
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
58
|
-
valuesRef.current = watchedValues;
|
|
59
|
-
});
|
|
56
|
+
watch();
|
|
60
57
|
const context = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
61
58
|
schema,
|
|
62
59
|
form,
|
|
@@ -93,6 +90,19 @@ function MetadataForm({ schema, plugins = DEFAULT_PLUGINS, onSubmit, className,
|
|
|
93
90
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
94
91
|
contextRef.current = context;
|
|
95
92
|
});
|
|
93
|
+
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
94
|
+
const subscription = watch((value, { name: name_0 })=>{
|
|
95
|
+
valuesRef.current = value;
|
|
96
|
+
if (isInitialized && name_0) plugins.forEach((plugin)=>{
|
|
97
|
+
plugin.onValueChange?.(name_0, value[name_0], contextRef.current);
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
return ()=>subscription.unsubscribe();
|
|
101
|
+
}, [
|
|
102
|
+
watch,
|
|
103
|
+
isInitialized,
|
|
104
|
+
plugins
|
|
105
|
+
]);
|
|
96
106
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
97
107
|
if (isInitialized) return;
|
|
98
108
|
const initializeForm = async ()=>{
|
|
@@ -100,29 +110,13 @@ function MetadataForm({ schema, plugins = DEFAULT_PLUGINS, onSubmit, className,
|
|
|
100
110
|
const data = await loadInitialData(schema.initialData, contextRef.current);
|
|
101
111
|
reset(data);
|
|
102
112
|
}
|
|
103
|
-
for (const
|
|
113
|
+
for (const plugin_0 of plugins)await plugin_0.onFormInit?.(contextRef.current);
|
|
104
114
|
setIsInitialized(true);
|
|
105
115
|
};
|
|
106
116
|
initializeForm();
|
|
107
117
|
}, [
|
|
108
118
|
isInitialized
|
|
109
119
|
]);
|
|
110
|
-
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
111
|
-
if (!isInitialized) return;
|
|
112
|
-
const subscription = watch((value, { name: name_0 })=>{
|
|
113
|
-
if (name_0) {
|
|
114
|
-
valuesRef.current = value;
|
|
115
|
-
plugins.forEach((plugin_0)=>{
|
|
116
|
-
plugin_0.onValueChange?.(name_0, value[name_0], contextRef.current);
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
return ()=>subscription.unsubscribe();
|
|
121
|
-
}, [
|
|
122
|
-
watch,
|
|
123
|
-
isInitialized,
|
|
124
|
-
plugins
|
|
125
|
-
]);
|
|
126
120
|
const handleFormSubmit = handleSubmit(async (data_0)=>{
|
|
127
121
|
let finalData = data_0;
|
|
128
122
|
for (const plugin_1 of plugins)if (plugin_1.onSubmit) finalData = await plugin_1.onSubmit(finalData, context) || finalData;
|
|
@@ -162,7 +156,7 @@ function MetadataForm({ schema, plugins = DEFAULT_PLUGINS, onSubmit, className,
|
|
|
162
156
|
});
|
|
163
157
|
}
|
|
164
158
|
function SinglePageForm(t0) {
|
|
165
|
-
const $ = (0,
|
|
159
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(15);
|
|
166
160
|
const { schema, context, customComponents, disabled } = t0;
|
|
167
161
|
let t1;
|
|
168
162
|
let t2;
|
|
@@ -213,7 +207,7 @@ function SinglePageForm(t0) {
|
|
|
213
207
|
return t3;
|
|
214
208
|
}
|
|
215
209
|
function MultiStepForm(t0) {
|
|
216
|
-
const $ = (0,
|
|
210
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(43);
|
|
217
211
|
const { schema, context, currentStep, setCurrentStep, customComponents, disabled } = t0;
|
|
218
212
|
let t1;
|
|
219
213
|
if ($[0] !== schema.steps) {
|
|
@@ -387,7 +381,7 @@ function MultiStepForm(t0) {
|
|
|
387
381
|
return t15;
|
|
388
382
|
}
|
|
389
383
|
function FormSection(t0) {
|
|
390
|
-
const $ = (0,
|
|
384
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(41);
|
|
391
385
|
const { section, context, customComponents, disabled } = t0;
|
|
392
386
|
const gridColumns = context.schema.layout?.columns || 1;
|
|
393
387
|
const gap = context.schema.layout?.gap || 4;
|
|
@@ -557,7 +551,7 @@ function FormSection(t0) {
|
|
|
557
551
|
return t10;
|
|
558
552
|
}
|
|
559
553
|
function FormActions(t0) {
|
|
560
|
-
const $ = (0,
|
|
554
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(11);
|
|
561
555
|
const { schema, context, onReset } = t0;
|
|
562
556
|
let t1;
|
|
563
557
|
if ($[0] !== schema.actions) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
|
|
3
4
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
4
5
|
import { FormProvider, useForm } from "react-hook-form";
|
|
5
6
|
import { z } from "zod/v4";
|
|
6
7
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "../ui/accordion.js";
|
|
7
8
|
import { Button } from "../ui/button.js";
|
|
8
|
-
import { standardSchemaResolver } from "@hookform/resolvers/standard-schema";
|
|
9
9
|
import { DataFetcher } from "./data-fetcher.js";
|
|
10
10
|
import { FormFieldRenderer } from "./field-renderer.js";
|
|
11
11
|
import { RulesEngine } from "./rules-engine.js";
|
|
@@ -25,10 +25,7 @@ function MetadataForm({ schema, plugins = DEFAULT_PLUGINS, onSubmit, className,
|
|
|
25
25
|
});
|
|
26
26
|
const { watch, handleSubmit, reset } = form;
|
|
27
27
|
const valuesRef = useRef({});
|
|
28
|
-
|
|
29
|
-
useEffect(()=>{
|
|
30
|
-
valuesRef.current = watchedValues;
|
|
31
|
-
});
|
|
28
|
+
watch();
|
|
32
29
|
const context = useMemo(()=>({
|
|
33
30
|
schema,
|
|
34
31
|
form,
|
|
@@ -65,6 +62,19 @@ function MetadataForm({ schema, plugins = DEFAULT_PLUGINS, onSubmit, className,
|
|
|
65
62
|
useEffect(()=>{
|
|
66
63
|
contextRef.current = context;
|
|
67
64
|
});
|
|
65
|
+
useEffect(()=>{
|
|
66
|
+
const subscription = watch((value, { name: name_0 })=>{
|
|
67
|
+
valuesRef.current = value;
|
|
68
|
+
if (isInitialized && name_0) plugins.forEach((plugin)=>{
|
|
69
|
+
plugin.onValueChange?.(name_0, value[name_0], contextRef.current);
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
return ()=>subscription.unsubscribe();
|
|
73
|
+
}, [
|
|
74
|
+
watch,
|
|
75
|
+
isInitialized,
|
|
76
|
+
plugins
|
|
77
|
+
]);
|
|
68
78
|
useEffect(()=>{
|
|
69
79
|
if (isInitialized) return;
|
|
70
80
|
const initializeForm = async ()=>{
|
|
@@ -72,29 +82,13 @@ function MetadataForm({ schema, plugins = DEFAULT_PLUGINS, onSubmit, className,
|
|
|
72
82
|
const data = await loadInitialData(schema.initialData, contextRef.current);
|
|
73
83
|
reset(data);
|
|
74
84
|
}
|
|
75
|
-
for (const
|
|
85
|
+
for (const plugin_0 of plugins)await plugin_0.onFormInit?.(contextRef.current);
|
|
76
86
|
setIsInitialized(true);
|
|
77
87
|
};
|
|
78
88
|
initializeForm();
|
|
79
89
|
}, [
|
|
80
90
|
isInitialized
|
|
81
91
|
]);
|
|
82
|
-
useEffect(()=>{
|
|
83
|
-
if (!isInitialized) return;
|
|
84
|
-
const subscription = watch((value, { name: name_0 })=>{
|
|
85
|
-
if (name_0) {
|
|
86
|
-
valuesRef.current = value;
|
|
87
|
-
plugins.forEach((plugin_0)=>{
|
|
88
|
-
plugin_0.onValueChange?.(name_0, value[name_0], contextRef.current);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
return ()=>subscription.unsubscribe();
|
|
93
|
-
}, [
|
|
94
|
-
watch,
|
|
95
|
-
isInitialized,
|
|
96
|
-
plugins
|
|
97
|
-
]);
|
|
98
92
|
const handleFormSubmit = handleSubmit(async (data_0)=>{
|
|
99
93
|
let finalData = data_0;
|
|
100
94
|
for (const plugin_1 of plugins)if (plugin_1.onSubmit) finalData = await plugin_1.onSubmit(finalData, context) || finalData;
|
|
@@ -29,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
SchemaViewer: ()=>SchemaViewer
|
|
30
30
|
});
|
|
31
31
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
-
const
|
|
32
|
+
const external_react_compiler_runtime_namespaceObject = require("react-compiler-runtime");
|
|
33
33
|
const external_react_namespaceObject = require("react");
|
|
34
34
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
35
35
|
const external_sonner_namespaceObject = require("sonner");
|
|
@@ -38,7 +38,7 @@ const button_cjs_namespaceObject = require("../ui/button.cjs");
|
|
|
38
38
|
const sheet_cjs_namespaceObject = require("../ui/sheet.cjs");
|
|
39
39
|
const scroll_area_cjs_namespaceObject = require("../ui/scroll-area.cjs");
|
|
40
40
|
function SchemaViewer(t0) {
|
|
41
|
-
const $ = (0,
|
|
41
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(25);
|
|
42
42
|
const { schema, triggerLabel: t1 } = t0;
|
|
43
43
|
const triggerLabel = void 0 === t1 ? "View Schema" : t1;
|
|
44
44
|
const [copied, setCopied] = (0, external_react_namespaceObject.useState)(false);
|
|
@@ -209,7 +209,7 @@ function withSchemaViewer(WrappedComponent) {
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
function FormWithSchemaViewer(t0) {
|
|
212
|
-
const $ = (0,
|
|
212
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(5);
|
|
213
213
|
const { schema, children } = t0;
|
|
214
214
|
let t1;
|
|
215
215
|
if ($[0] !== schema) {
|
|
@@ -31,14 +31,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
31
31
|
AccordionTrigger: ()=>AccordionTrigger
|
|
32
32
|
});
|
|
33
33
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
34
|
-
const
|
|
34
|
+
const external_react_compiler_runtime_namespaceObject = require("react-compiler-runtime");
|
|
35
35
|
const react_accordion_namespaceObject = require("@radix-ui/react-accordion");
|
|
36
36
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
37
37
|
const external_react_namespaceObject = require("react");
|
|
38
38
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
39
39
|
const Accordion = react_accordion_namespaceObject.Root;
|
|
40
40
|
const AccordionItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
41
|
-
const $ = (0,
|
|
41
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
42
42
|
let className;
|
|
43
43
|
let props;
|
|
44
44
|
if ($[0] !== t0) {
|
|
@@ -72,7 +72,7 @@ const AccordionItem = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t
|
|
|
72
72
|
});
|
|
73
73
|
AccordionItem.displayName = 'AccordionItem';
|
|
74
74
|
const AccordionTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
75
|
-
const $ = (0,
|
|
75
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(12);
|
|
76
76
|
let children;
|
|
77
77
|
let className;
|
|
78
78
|
let props;
|
|
@@ -124,7 +124,7 @@ const AccordionTrigger = /*#__PURE__*/ external_react_namespaceObject.forwardRef
|
|
|
124
124
|
});
|
|
125
125
|
AccordionTrigger.displayName = react_accordion_namespaceObject.Trigger.displayName;
|
|
126
126
|
const AccordionContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
127
|
-
const $ = (0,
|
|
127
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(13);
|
|
128
128
|
let children;
|
|
129
129
|
let className;
|
|
130
130
|
let props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { c } from "react
|
|
3
|
+
import { c } from "react-compiler-runtime";
|
|
4
4
|
import { Content, Header, Item, Root, Trigger } from "@radix-ui/react-accordion";
|
|
5
5
|
import { ChevronDown } from "lucide-react";
|
|
6
6
|
import { forwardRef } from "react";
|
|
@@ -37,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
AlertDialogAction: ()=>AlertDialogAction
|
|
38
38
|
});
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
|
-
const
|
|
40
|
+
const external_react_compiler_runtime_namespaceObject = require("react-compiler-runtime");
|
|
41
41
|
const external_react_namespaceObject = require("react");
|
|
42
42
|
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
43
43
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
@@ -46,7 +46,7 @@ const AlertDialog = react_alert_dialog_namespaceObject.Root;
|
|
|
46
46
|
const AlertDialogTrigger = react_alert_dialog_namespaceObject.Trigger;
|
|
47
47
|
const AlertDialogPortal = react_alert_dialog_namespaceObject.Portal;
|
|
48
48
|
const AlertDialogOverlay = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
49
|
-
const $ = (0,
|
|
49
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
50
50
|
let className;
|
|
51
51
|
let props;
|
|
52
52
|
if ($[0] !== t0) {
|
|
@@ -80,7 +80,7 @@ const AlertDialogOverlay = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
80
80
|
});
|
|
81
81
|
AlertDialogOverlay.displayName = react_alert_dialog_namespaceObject.Overlay.displayName;
|
|
82
82
|
const AlertDialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
83
|
-
const $ = (0,
|
|
83
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(10);
|
|
84
84
|
let className;
|
|
85
85
|
let props;
|
|
86
86
|
if ($[0] !== t0) {
|
|
@@ -124,7 +124,7 @@ const AlertDialogContent = /*#__PURE__*/ external_react_namespaceObject.forwardR
|
|
|
124
124
|
});
|
|
125
125
|
AlertDialogContent.displayName = react_alert_dialog_namespaceObject.Content.displayName;
|
|
126
126
|
const AlertDialogHeader = (t0)=>{
|
|
127
|
-
const $ = (0,
|
|
127
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(8);
|
|
128
128
|
let className;
|
|
129
129
|
let props;
|
|
130
130
|
if ($[0] !== t0) {
|
|
@@ -156,7 +156,7 @@ const AlertDialogHeader = (t0)=>{
|
|
|
156
156
|
};
|
|
157
157
|
AlertDialogHeader.displayName = 'AlertDialogHeader';
|
|
158
158
|
const AlertDialogFooter = (t0)=>{
|
|
159
|
-
const $ = (0,
|
|
159
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(8);
|
|
160
160
|
let className;
|
|
161
161
|
let props;
|
|
162
162
|
if ($[0] !== t0) {
|
|
@@ -188,7 +188,7 @@ const AlertDialogFooter = (t0)=>{
|
|
|
188
188
|
};
|
|
189
189
|
AlertDialogFooter.displayName = 'AlertDialogFooter';
|
|
190
190
|
const AlertDialogTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
191
|
-
const $ = (0,
|
|
191
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
192
192
|
let className;
|
|
193
193
|
let props;
|
|
194
194
|
if ($[0] !== t0) {
|
|
@@ -222,7 +222,7 @@ const AlertDialogTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef
|
|
|
222
222
|
});
|
|
223
223
|
AlertDialogTitle.displayName = react_alert_dialog_namespaceObject.Title.displayName;
|
|
224
224
|
const AlertDialogDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
225
|
-
const $ = (0,
|
|
225
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
226
226
|
let className;
|
|
227
227
|
let props;
|
|
228
228
|
if ($[0] !== t0) {
|
|
@@ -256,7 +256,7 @@ const AlertDialogDescription = /*#__PURE__*/ external_react_namespaceObject.forw
|
|
|
256
256
|
});
|
|
257
257
|
AlertDialogDescription.displayName = react_alert_dialog_namespaceObject.Description.displayName;
|
|
258
258
|
const AlertDialogAction = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
259
|
-
const $ = (0,
|
|
259
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
260
260
|
let className;
|
|
261
261
|
let props;
|
|
262
262
|
if ($[0] !== t0) {
|
|
@@ -290,7 +290,7 @@ const AlertDialogAction = /*#__PURE__*/ external_react_namespaceObject.forwardRe
|
|
|
290
290
|
});
|
|
291
291
|
AlertDialogAction.displayName = react_alert_dialog_namespaceObject.Action.displayName;
|
|
292
292
|
const AlertDialogCancel = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
293
|
-
const $ = (0,
|
|
293
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
294
294
|
let className;
|
|
295
295
|
let props;
|
|
296
296
|
if ($[0] !== t0) {
|
|
@@ -29,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
AlertTitle: ()=>AlertTitle
|
|
30
30
|
});
|
|
31
31
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
-
const
|
|
32
|
+
const external_react_compiler_runtime_namespaceObject = require("react-compiler-runtime");
|
|
33
33
|
const external_class_variance_authority_namespaceObject = require("class-variance-authority");
|
|
34
34
|
const external_react_namespaceObject = require("react");
|
|
35
35
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
@@ -45,7 +45,7 @@ const alertVariants = (0, external_class_variance_authority_namespaceObject.cva)
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
const Alert = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
48
|
-
const $ = (0,
|
|
48
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(11);
|
|
49
49
|
let className;
|
|
50
50
|
let props;
|
|
51
51
|
let variant;
|
|
@@ -86,7 +86,7 @@ const Alert = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=
|
|
|
86
86
|
});
|
|
87
87
|
Alert.displayName = 'Alert';
|
|
88
88
|
const AlertTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
89
|
-
const $ = (0,
|
|
89
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
90
90
|
let className;
|
|
91
91
|
let props;
|
|
92
92
|
if ($[0] !== t0) {
|
|
@@ -120,7 +120,7 @@ const AlertTitle = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0,
|
|
|
120
120
|
});
|
|
121
121
|
AlertTitle.displayName = 'AlertTitle';
|
|
122
122
|
const AlertDescription = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
123
|
-
const $ = (0,
|
|
123
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
124
124
|
let className;
|
|
125
125
|
let props;
|
|
126
126
|
if ($[0] !== t0) {
|
|
@@ -29,12 +29,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
AvatarImage: ()=>AvatarImage
|
|
30
30
|
});
|
|
31
31
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
-
const
|
|
32
|
+
const external_react_compiler_runtime_namespaceObject = require("react-compiler-runtime");
|
|
33
33
|
const react_avatar_namespaceObject = require("@radix-ui/react-avatar");
|
|
34
34
|
const external_react_namespaceObject = require("react");
|
|
35
35
|
const index_cjs_namespaceObject = require("../../lib/index.cjs");
|
|
36
36
|
const Avatar = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
37
|
-
const $ = (0,
|
|
37
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
38
38
|
let className;
|
|
39
39
|
let props;
|
|
40
40
|
if ($[0] !== t0) {
|
|
@@ -68,7 +68,7 @@ const Avatar = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)
|
|
|
68
68
|
});
|
|
69
69
|
Avatar.displayName = react_avatar_namespaceObject.Root.displayName;
|
|
70
70
|
const AvatarImage = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
71
|
-
const $ = (0,
|
|
71
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
72
72
|
let className;
|
|
73
73
|
let props;
|
|
74
74
|
if ($[0] !== t0) {
|
|
@@ -102,7 +102,7 @@ const AvatarImage = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0,
|
|
|
102
102
|
});
|
|
103
103
|
AvatarImage.displayName = react_avatar_namespaceObject.Image.displayName;
|
|
104
104
|
const AvatarFallback = /*#__PURE__*/ external_react_namespaceObject.forwardRef((t0, ref)=>{
|
|
105
|
-
const $ = (0,
|
|
105
|
+
const $ = (0, external_react_compiler_runtime_namespaceObject.c)(9);
|
|
106
106
|
let className;
|
|
107
107
|
let props;
|
|
108
108
|
if ($[0] !== t0) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { Fallback, Image, Root } from "@radix-ui/react-avatar";
|
|
4
4
|
import { forwardRef } from "react";
|
|
5
5
|
import { cn } from "../../lib/index.js";
|