@btst/stack 2.6.0 → 2.6.1
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/auto-form/index.cjs +8 -0
- package/dist/components/auto-form/index.d.cts +26 -0
- package/dist/components/auto-form/index.d.mts +26 -0
- package/dist/components/auto-form/index.d.ts +26 -0
- package/dist/components/auto-form/index.mjs +1 -0
- package/dist/components/empty/index.cjs +12 -0
- package/dist/components/empty/index.d.cts +15 -0
- package/dist/components/empty/index.d.mts +15 -0
- package/dist/components/empty/index.d.ts +15 -0
- package/dist/components/empty/index.mjs +1 -0
- package/dist/components/form-builder/index.cjs +16 -0
- package/dist/components/form-builder/index.d.cts +385 -0
- package/dist/components/form-builder/index.d.mts +385 -0
- package/dist/components/form-builder/index.d.ts +385 -0
- package/dist/components/form-builder/index.mjs +4 -0
- package/dist/components/markdown/index.cjs +9 -0
- package/dist/components/markdown/index.d.cts +30 -0
- package/dist/components/markdown/index.d.mts +30 -0
- package/dist/components/markdown/index.d.ts +30 -0
- package/dist/components/markdown/index.mjs +2 -0
- package/dist/components/markdown/style.css +394 -0
- package/dist/components/minimal-tiptap/style.css +548 -0
- package/dist/components/multi-select/index.cjs +7 -0
- package/dist/components/multi-select/index.d.cts +78 -0
- package/dist/components/multi-select/index.d.mts +78 -0
- package/dist/components/multi-select/index.d.ts +78 -0
- package/dist/components/multi-select/index.mjs +1 -0
- package/dist/components/search-select/index.cjs +7 -0
- package/dist/components/search-select/index.d.cts +15 -0
- package/dist/components/search-select/index.d.mts +15 -0
- package/dist/components/search-select/index.d.ts +15 -0
- package/dist/components/search-select/index.mjs +1 -0
- package/dist/components/stepped-auto-form/index.cjs +7 -0
- package/dist/components/stepped-auto-form/index.d.cts +37 -0
- package/dist/components/stepped-auto-form/index.d.mts +37 -0
- package/dist/components/stepped-auto-form/index.d.ts +37 -0
- package/dist/components/stepped-auto-form/index.mjs +1 -0
- package/dist/components/ui-builder/style.css +552 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.cjs +1 -1
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@dnd-kit/core/dist/core.esm.mjs +1 -1
- package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.0_react@19.2.0__react@19.2.0__react@19.2.0/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +2 -2
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +3 -3
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.6_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs +1 -1
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor-with-overrides.cjs +23 -0
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor-with-overrides.mjs +21 -0
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor.cjs +11 -12
- package/dist/packages/stack/src/plugins/blog/client/components/forms/markdown-editor.mjs +11 -12
- package/dist/packages/stack/src/plugins/blog/client/components/forms/post-forms.cjs +2 -2
- package/dist/packages/stack/src/plugins/blog/client/components/forms/post-forms.mjs +2 -2
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-input.cjs +0 -3
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-input.mjs +1 -1
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-modal.cjs +0 -3
- package/dist/packages/stack/src/plugins/blog/client/components/shared/search-modal.mjs +1 -1
- package/dist/packages/ui/src/components/auto-form/index.cjs +12 -2
- package/dist/packages/ui/src/components/auto-form/index.mjs +9 -2
- package/dist/packages/ui/src/components/auto-form/stepped-auto-form.cjs +2 -2
- package/dist/packages/ui/src/components/empty.cjs +28 -0
- package/dist/packages/ui/src/components/empty.mjs +27 -1
- package/dist/packages/ui/src/components/form-builder/components/index.mjs +2 -2
- package/dist/packages/ui/src/components/form-builder/edit-field-dialog.cjs +1 -1
- package/dist/packages/ui/src/components/form-builder/index.mjs +2 -2
- package/dist/packages/ui/src/components/form.mjs +1 -1
- package/dist/packages/ui/src/components/kanban.mjs +1 -1
- package/dist/packages/ui/src/components/multi-select.mjs +2 -2
- package/dist/packages/ui/src/components/ui-builder/internal/config-panel.cjs +1 -1
- package/dist/packages/ui/src/components/ui-builder/internal/props-panel.cjs +1 -1
- package/dist/plugins/blog/api/index.d.cts +2 -2
- package/dist/plugins/blog/api/index.d.mts +2 -2
- package/dist/plugins/blog/api/index.d.ts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
- package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
- package/dist/plugins/blog/client/index.d.cts +2 -2
- package/dist/plugins/blog/client/index.d.mts +2 -2
- package/dist/plugins/blog/client/index.d.ts +2 -2
- package/dist/plugins/blog/query-keys.d.cts +2 -2
- package/dist/plugins/blog/query-keys.d.mts +2 -2
- package/dist/plugins/blog/query-keys.d.ts +2 -2
- package/dist/plugins/cms/client/index.d.cts +1 -1
- package/dist/plugins/cms/client/index.d.mts +1 -1
- package/dist/plugins/cms/client/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/components/index.d.ts +1 -1
- package/dist/plugins/form-builder/client/index.d.cts +1 -1
- package/dist/plugins/form-builder/client/index.d.mts +1 -1
- package/dist/plugins/form-builder/client/index.d.ts +1 -1
- package/dist/plugins/kanban/api/index.d.cts +1 -1
- package/dist/plugins/kanban/api/index.d.mts +1 -1
- package/dist/plugins/kanban/api/index.d.ts +1 -1
- package/dist/plugins/kanban/query-keys.d.cts +1 -1
- package/dist/plugins/kanban/query-keys.d.mts +1 -1
- package/dist/plugins/kanban/query-keys.d.ts +1 -1
- package/dist/plugins/ui-builder/client/components/index.d.cts +2 -2
- package/dist/plugins/ui-builder/client/components/index.d.mts +2 -2
- package/dist/plugins/ui-builder/client/components/index.d.ts +2 -2
- package/dist/plugins/ui-builder/client/hooks/index.d.cts +3 -3
- package/dist/plugins/ui-builder/client/hooks/index.d.mts +3 -3
- package/dist/plugins/ui-builder/client/hooks/index.d.ts +3 -3
- package/dist/plugins/ui-builder/client/index.d.cts +3 -3
- package/dist/plugins/ui-builder/client/index.d.mts +3 -3
- package/dist/plugins/ui-builder/client/index.d.ts +3 -3
- package/dist/plugins/ui-builder/index.d.cts +3 -3
- package/dist/plugins/ui-builder/index.d.mts +3 -3
- package/dist/plugins/ui-builder/index.d.ts +3 -3
- package/dist/shared/{stack.B2DwzF3r.d.ts → stack.ASwEoINr.d.ts} +1 -1
- package/dist/shared/{stack.C5ZSOJGJ.d.cts → stack.B1srlBud.d.mts} +1 -1
- package/dist/shared/{stack.CQAZwXhV.d.cts → stack.B8vT-Yt4.d.mts} +3 -3
- package/dist/shared/{stack.D3BsrpAz.d.ts → stack.BAT540yW.d.ts} +3 -3
- package/dist/shared/{stack.D0QupDcQ.d.ts → stack.BK9Z2dcL.d.ts} +1 -1
- package/dist/shared/{stack.CNLHlv7r.d.mts → stack.BwA7trxA.d.cts} +3 -3
- package/dist/shared/{stack.Cl7ok_cY.d.cts → stack.CFECM0ew.d.cts} +1 -1
- package/dist/shared/stack.CZMWR72v.d.cts +10 -0
- package/dist/shared/stack.CZMWR72v.d.mts +10 -0
- package/dist/shared/stack.CZMWR72v.d.ts +10 -0
- package/dist/shared/{stack.VMmQdbsJ.d.mts → stack.DVtk5CNw.d.mts} +1 -1
- package/dist/shared/{stack.B8_74ror.d.ts → stack.DXnclTG7.d.ts} +4 -4
- package/dist/shared/{stack.CL4mKxe7.d.mts → stack.DaZM10cp.d.cts} +4 -4
- package/dist/shared/{stack.Dq4qVr1F.d.mts → stack.DmpPDPxA.d.cts} +1 -1
- package/dist/shared/{stack.C21-LFX8.d.cts → stack.cfCkioTe.d.mts} +4 -4
- package/dist/shared/stack.fdi94T4S.d.cts +291 -0
- package/dist/shared/stack.fdi94T4S.d.mts +291 -0
- package/dist/shared/stack.fdi94T4S.d.ts +291 -0
- package/package.json +97 -3
- package/src/components/auto-form/index.ts +12 -0
- package/src/components/empty/index.ts +8 -0
- package/src/components/form-builder/index.ts +23 -0
- package/src/components/kanban/index.ts +9 -0
- package/src/components/markdown/index.ts +5 -0
- package/src/components/markdown/style.css +3 -0
- package/src/components/minimal-tiptap/index.ts +5 -0
- package/src/components/minimal-tiptap/style.css +1 -0
- package/src/components/multi-select/index.ts +5 -0
- package/src/components/search-select/index.ts +1 -0
- package/src/components/stepped-auto-form/index.ts +5 -0
- package/src/components/ui-builder/index.ts +50 -0
- package/src/components/ui-builder/style.css +5 -0
- package/src/plugins/blog/client/components/forms/markdown-editor-with-overrides.tsx +29 -0
- package/src/plugins/blog/client/components/forms/markdown-editor.tsx +24 -21
- package/src/plugins/blog/client/components/forms/post-forms.tsx +2 -2
- package/src/plugins/blog/client/components/shared/posts-list.tsx +1 -1
- package/src/plugins/blog/client/components/shared/search-input.tsx +0 -2
- package/src/plugins/blog/client/components/shared/search-modal.tsx +0 -2
- package/dist/shared/stack.8nldKomx.d.cts +0 -114
- package/dist/shared/stack.8nldKomx.d.mts +0 -114
- package/dist/shared/stack.8nldKomx.d.ts +0 -114
- package/dist/shared/{stack.Ba_Ks8qi.d.mts → stack.B8D4r97Z.d.mts} +12 -12
- package/dist/shared/{stack.BWp0hcm9.d.cts → stack.BQmuNl5p.d.cts} +3 -3
- package/dist/shared/{stack.BWp0hcm9.d.mts → stack.BQmuNl5p.d.mts} +3 -3
- package/dist/shared/{stack.BWp0hcm9.d.ts → stack.BQmuNl5p.d.ts} +3 -3
- package/dist/shared/{stack.DMobugrZ.d.ts → stack.DgKOwl20.d.ts} +12 -12
- package/dist/shared/{stack.CFqqZUes.d.cts → stack.uWSqCWAb.d.cts} +12 -12
|
@@ -52,8 +52,8 @@ import { z } from "zod";
|
|
|
52
52
|
import { FeaturedImageField } from "./image-field";
|
|
53
53
|
|
|
54
54
|
const MarkdownEditor = lazy(() =>
|
|
55
|
-
import("./markdown-editor").then((module) => ({
|
|
56
|
-
default: module.
|
|
55
|
+
import("./markdown-editor-with-overrides").then((module) => ({
|
|
56
|
+
default: module.MarkdownEditorWithOverrides,
|
|
57
57
|
})),
|
|
58
58
|
);
|
|
59
59
|
import { BLOG_LOCALIZATION } from "../../localization";
|
|
@@ -2,7 +2,7 @@ import { usePluginOverrides } from "@btst/stack/context";
|
|
|
2
2
|
import type { SerializedPost } from "../../../types";
|
|
3
3
|
import { Button } from "@workspace/ui/components/button";
|
|
4
4
|
import { EmptyList } from "./empty-list";
|
|
5
|
-
import SearchInput from "./search-input";
|
|
5
|
+
import { SearchInput } from "./search-input";
|
|
6
6
|
import type { BlogPluginOverrides } from "../../overrides";
|
|
7
7
|
import { PostCard as DefaultPostCard } from "./post-card";
|
|
8
8
|
import { BLOG_LOCALIZATION } from "../../localization";
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { ControllerRenderProps, FieldValues } from 'react-hook-form';
|
|
2
|
-
import * as zod from 'zod';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
declare function AutoFormCheckbox({ label, isRequired, field, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
6
|
-
|
|
7
|
-
declare function AutoFormDate({ label, isRequired, field, fieldConfigItem, fieldProps, zodItem, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
8
|
-
|
|
9
|
-
declare function AutoFormEnum({ label, isRequired, field, fieldConfigItem, zodItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
10
|
-
|
|
11
|
-
declare function AutoFormInput({ label, isRequired, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
|
-
declare function AutoFormNumber({ label, isRequired, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
|
|
15
|
-
declare function AutoFormRadioGroup({ label, isRequired, field, zodItem, fieldProps, fieldConfigItem, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
declare function AutoFormSwitch({ label, isRequired, field, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
declare function AutoFormTextarea({ label, isRequired, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
declare const INPUT_COMPONENTS: {
|
|
22
|
-
checkbox: typeof AutoFormCheckbox;
|
|
23
|
-
date: typeof AutoFormDate;
|
|
24
|
-
select: typeof AutoFormEnum;
|
|
25
|
-
radio: typeof AutoFormRadioGroup;
|
|
26
|
-
switch: typeof AutoFormSwitch;
|
|
27
|
-
textarea: typeof AutoFormTextarea;
|
|
28
|
-
number: typeof AutoFormNumber;
|
|
29
|
-
fallback: typeof AutoFormInput;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Common input props shared by all field types.
|
|
34
|
-
*/
|
|
35
|
-
interface BaseInputProps {
|
|
36
|
-
/** Whether the field is disabled */
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
/** Whether the field is read-only */
|
|
39
|
-
readOnly?: boolean;
|
|
40
|
-
/** Whether the field is required */
|
|
41
|
-
required?: boolean;
|
|
42
|
-
/** Whether to show the label (auto-form specific) */
|
|
43
|
-
showLabel?: boolean;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Generic input props that accept any field type.
|
|
47
|
-
* Use this when the backing type is not known at compile time.
|
|
48
|
-
*
|
|
49
|
-
* This is the catch-all type used for runtime flexibility.
|
|
50
|
-
*/
|
|
51
|
-
interface SerializableInputProps extends BaseInputProps {
|
|
52
|
-
placeholder?: string;
|
|
53
|
-
type?: string;
|
|
54
|
-
defaultValue?: unknown;
|
|
55
|
-
min?: number | string;
|
|
56
|
-
max?: number | string;
|
|
57
|
-
step?: number | string;
|
|
58
|
-
minLength?: number;
|
|
59
|
-
maxLength?: number;
|
|
60
|
-
pattern?: string;
|
|
61
|
-
autoComplete?: string;
|
|
62
|
-
/** Allow additional props for extensibility */
|
|
63
|
-
[key: string]: unknown;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Input props for form fields.
|
|
68
|
-
*
|
|
69
|
-
* This is the runtime type that accepts any input props.
|
|
70
|
-
* For type-safe props, use the discriminated types:
|
|
71
|
-
* - StringInputProps for text inputs
|
|
72
|
-
* - NumberInputProps for number inputs
|
|
73
|
-
* - BooleanInputProps for checkboxes/switches
|
|
74
|
-
* - DateInputProps for date pickers
|
|
75
|
-
* - EnumInputProps for selects/radios
|
|
76
|
-
*/
|
|
77
|
-
type FieldInputProps = SerializableInputProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof SerializableInputProps> & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof SerializableInputProps>;
|
|
78
|
-
/**
|
|
79
|
-
* Configuration for a single field in AutoForm.
|
|
80
|
-
*
|
|
81
|
-
* Note: This type is designed to align with form-builder's FormBuilderFieldProps
|
|
82
|
-
* so that JSON Schema properties can be easily converted to field configs.
|
|
83
|
-
*/
|
|
84
|
-
type FieldConfigItem = {
|
|
85
|
-
/** Description text or React node */
|
|
86
|
-
description?: React.ReactNode;
|
|
87
|
-
/** Input props passed to the field component */
|
|
88
|
-
inputProps?: FieldInputProps;
|
|
89
|
-
/** Display label */
|
|
90
|
-
label?: string;
|
|
91
|
-
/** Field type override - built-in type or custom component */
|
|
92
|
-
fieldType?: keyof typeof INPUT_COMPONENTS | React.FC<AutoFormInputComponentProps>;
|
|
93
|
-
/** Wrapper component for custom field layout */
|
|
94
|
-
renderParent?: (props: {
|
|
95
|
-
children: React.ReactNode;
|
|
96
|
-
}) => React.ReactElement | null;
|
|
97
|
-
/** Display order for field ordering */
|
|
98
|
-
order?: number;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* A FormInput component can handle a specific Zod type (e.g. "ZodBoolean")
|
|
102
|
-
*/
|
|
103
|
-
type AutoFormInputComponentProps = {
|
|
104
|
-
zodInputProps: React.InputHTMLAttributes<HTMLInputElement>;
|
|
105
|
-
field: ControllerRenderProps<FieldValues, any>;
|
|
106
|
-
fieldConfigItem: FieldConfigItem;
|
|
107
|
-
label: string;
|
|
108
|
-
isRequired: boolean;
|
|
109
|
-
fieldProps: any;
|
|
110
|
-
zodItem: zod.ZodType;
|
|
111
|
-
className?: string;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export type { AutoFormInputComponentProps as A, FieldConfigItem as F };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { ControllerRenderProps, FieldValues } from 'react-hook-form';
|
|
2
|
-
import * as zod from 'zod';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
declare function AutoFormCheckbox({ label, isRequired, field, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
6
|
-
|
|
7
|
-
declare function AutoFormDate({ label, isRequired, field, fieldConfigItem, fieldProps, zodItem, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
8
|
-
|
|
9
|
-
declare function AutoFormEnum({ label, isRequired, field, fieldConfigItem, zodItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
10
|
-
|
|
11
|
-
declare function AutoFormInput({ label, isRequired, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
|
-
declare function AutoFormNumber({ label, isRequired, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
|
|
15
|
-
declare function AutoFormRadioGroup({ label, isRequired, field, zodItem, fieldProps, fieldConfigItem, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
declare function AutoFormSwitch({ label, isRequired, field, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
declare function AutoFormTextarea({ label, isRequired, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
declare const INPUT_COMPONENTS: {
|
|
22
|
-
checkbox: typeof AutoFormCheckbox;
|
|
23
|
-
date: typeof AutoFormDate;
|
|
24
|
-
select: typeof AutoFormEnum;
|
|
25
|
-
radio: typeof AutoFormRadioGroup;
|
|
26
|
-
switch: typeof AutoFormSwitch;
|
|
27
|
-
textarea: typeof AutoFormTextarea;
|
|
28
|
-
number: typeof AutoFormNumber;
|
|
29
|
-
fallback: typeof AutoFormInput;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Common input props shared by all field types.
|
|
34
|
-
*/
|
|
35
|
-
interface BaseInputProps {
|
|
36
|
-
/** Whether the field is disabled */
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
/** Whether the field is read-only */
|
|
39
|
-
readOnly?: boolean;
|
|
40
|
-
/** Whether the field is required */
|
|
41
|
-
required?: boolean;
|
|
42
|
-
/** Whether to show the label (auto-form specific) */
|
|
43
|
-
showLabel?: boolean;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Generic input props that accept any field type.
|
|
47
|
-
* Use this when the backing type is not known at compile time.
|
|
48
|
-
*
|
|
49
|
-
* This is the catch-all type used for runtime flexibility.
|
|
50
|
-
*/
|
|
51
|
-
interface SerializableInputProps extends BaseInputProps {
|
|
52
|
-
placeholder?: string;
|
|
53
|
-
type?: string;
|
|
54
|
-
defaultValue?: unknown;
|
|
55
|
-
min?: number | string;
|
|
56
|
-
max?: number | string;
|
|
57
|
-
step?: number | string;
|
|
58
|
-
minLength?: number;
|
|
59
|
-
maxLength?: number;
|
|
60
|
-
pattern?: string;
|
|
61
|
-
autoComplete?: string;
|
|
62
|
-
/** Allow additional props for extensibility */
|
|
63
|
-
[key: string]: unknown;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Input props for form fields.
|
|
68
|
-
*
|
|
69
|
-
* This is the runtime type that accepts any input props.
|
|
70
|
-
* For type-safe props, use the discriminated types:
|
|
71
|
-
* - StringInputProps for text inputs
|
|
72
|
-
* - NumberInputProps for number inputs
|
|
73
|
-
* - BooleanInputProps for checkboxes/switches
|
|
74
|
-
* - DateInputProps for date pickers
|
|
75
|
-
* - EnumInputProps for selects/radios
|
|
76
|
-
*/
|
|
77
|
-
type FieldInputProps = SerializableInputProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof SerializableInputProps> & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof SerializableInputProps>;
|
|
78
|
-
/**
|
|
79
|
-
* Configuration for a single field in AutoForm.
|
|
80
|
-
*
|
|
81
|
-
* Note: This type is designed to align with form-builder's FormBuilderFieldProps
|
|
82
|
-
* so that JSON Schema properties can be easily converted to field configs.
|
|
83
|
-
*/
|
|
84
|
-
type FieldConfigItem = {
|
|
85
|
-
/** Description text or React node */
|
|
86
|
-
description?: React.ReactNode;
|
|
87
|
-
/** Input props passed to the field component */
|
|
88
|
-
inputProps?: FieldInputProps;
|
|
89
|
-
/** Display label */
|
|
90
|
-
label?: string;
|
|
91
|
-
/** Field type override - built-in type or custom component */
|
|
92
|
-
fieldType?: keyof typeof INPUT_COMPONENTS | React.FC<AutoFormInputComponentProps>;
|
|
93
|
-
/** Wrapper component for custom field layout */
|
|
94
|
-
renderParent?: (props: {
|
|
95
|
-
children: React.ReactNode;
|
|
96
|
-
}) => React.ReactElement | null;
|
|
97
|
-
/** Display order for field ordering */
|
|
98
|
-
order?: number;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* A FormInput component can handle a specific Zod type (e.g. "ZodBoolean")
|
|
102
|
-
*/
|
|
103
|
-
type AutoFormInputComponentProps = {
|
|
104
|
-
zodInputProps: React.InputHTMLAttributes<HTMLInputElement>;
|
|
105
|
-
field: ControllerRenderProps<FieldValues, any>;
|
|
106
|
-
fieldConfigItem: FieldConfigItem;
|
|
107
|
-
label: string;
|
|
108
|
-
isRequired: boolean;
|
|
109
|
-
fieldProps: any;
|
|
110
|
-
zodItem: zod.ZodType;
|
|
111
|
-
className?: string;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export type { AutoFormInputComponentProps as A, FieldConfigItem as F };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { ControllerRenderProps, FieldValues } from 'react-hook-form';
|
|
2
|
-
import * as zod from 'zod';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
declare function AutoFormCheckbox({ label, isRequired, field, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
6
|
-
|
|
7
|
-
declare function AutoFormDate({ label, isRequired, field, fieldConfigItem, fieldProps, zodItem, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
8
|
-
|
|
9
|
-
declare function AutoFormEnum({ label, isRequired, field, fieldConfigItem, zodItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
10
|
-
|
|
11
|
-
declare function AutoFormInput({ label, isRequired, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
|
-
declare function AutoFormNumber({ label, isRequired, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
|
|
15
|
-
declare function AutoFormRadioGroup({ label, isRequired, field, zodItem, fieldProps, fieldConfigItem, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
16
|
-
|
|
17
|
-
declare function AutoFormSwitch({ label, isRequired, field, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
18
|
-
|
|
19
|
-
declare function AutoFormTextarea({ label, isRequired, fieldConfigItem, fieldProps, }: AutoFormInputComponentProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
declare const INPUT_COMPONENTS: {
|
|
22
|
-
checkbox: typeof AutoFormCheckbox;
|
|
23
|
-
date: typeof AutoFormDate;
|
|
24
|
-
select: typeof AutoFormEnum;
|
|
25
|
-
radio: typeof AutoFormRadioGroup;
|
|
26
|
-
switch: typeof AutoFormSwitch;
|
|
27
|
-
textarea: typeof AutoFormTextarea;
|
|
28
|
-
number: typeof AutoFormNumber;
|
|
29
|
-
fallback: typeof AutoFormInput;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Common input props shared by all field types.
|
|
34
|
-
*/
|
|
35
|
-
interface BaseInputProps {
|
|
36
|
-
/** Whether the field is disabled */
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
/** Whether the field is read-only */
|
|
39
|
-
readOnly?: boolean;
|
|
40
|
-
/** Whether the field is required */
|
|
41
|
-
required?: boolean;
|
|
42
|
-
/** Whether to show the label (auto-form specific) */
|
|
43
|
-
showLabel?: boolean;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Generic input props that accept any field type.
|
|
47
|
-
* Use this when the backing type is not known at compile time.
|
|
48
|
-
*
|
|
49
|
-
* This is the catch-all type used for runtime flexibility.
|
|
50
|
-
*/
|
|
51
|
-
interface SerializableInputProps extends BaseInputProps {
|
|
52
|
-
placeholder?: string;
|
|
53
|
-
type?: string;
|
|
54
|
-
defaultValue?: unknown;
|
|
55
|
-
min?: number | string;
|
|
56
|
-
max?: number | string;
|
|
57
|
-
step?: number | string;
|
|
58
|
-
minLength?: number;
|
|
59
|
-
maxLength?: number;
|
|
60
|
-
pattern?: string;
|
|
61
|
-
autoComplete?: string;
|
|
62
|
-
/** Allow additional props for extensibility */
|
|
63
|
-
[key: string]: unknown;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Input props for form fields.
|
|
68
|
-
*
|
|
69
|
-
* This is the runtime type that accepts any input props.
|
|
70
|
-
* For type-safe props, use the discriminated types:
|
|
71
|
-
* - StringInputProps for text inputs
|
|
72
|
-
* - NumberInputProps for number inputs
|
|
73
|
-
* - BooleanInputProps for checkboxes/switches
|
|
74
|
-
* - DateInputProps for date pickers
|
|
75
|
-
* - EnumInputProps for selects/radios
|
|
76
|
-
*/
|
|
77
|
-
type FieldInputProps = SerializableInputProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof SerializableInputProps> & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, keyof SerializableInputProps>;
|
|
78
|
-
/**
|
|
79
|
-
* Configuration for a single field in AutoForm.
|
|
80
|
-
*
|
|
81
|
-
* Note: This type is designed to align with form-builder's FormBuilderFieldProps
|
|
82
|
-
* so that JSON Schema properties can be easily converted to field configs.
|
|
83
|
-
*/
|
|
84
|
-
type FieldConfigItem = {
|
|
85
|
-
/** Description text or React node */
|
|
86
|
-
description?: React.ReactNode;
|
|
87
|
-
/** Input props passed to the field component */
|
|
88
|
-
inputProps?: FieldInputProps;
|
|
89
|
-
/** Display label */
|
|
90
|
-
label?: string;
|
|
91
|
-
/** Field type override - built-in type or custom component */
|
|
92
|
-
fieldType?: keyof typeof INPUT_COMPONENTS | React.FC<AutoFormInputComponentProps>;
|
|
93
|
-
/** Wrapper component for custom field layout */
|
|
94
|
-
renderParent?: (props: {
|
|
95
|
-
children: React.ReactNode;
|
|
96
|
-
}) => React.ReactElement | null;
|
|
97
|
-
/** Display order for field ordering */
|
|
98
|
-
order?: number;
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* A FormInput component can handle a specific Zod type (e.g. "ZodBoolean")
|
|
102
|
-
*/
|
|
103
|
-
type AutoFormInputComponentProps = {
|
|
104
|
-
zodInputProps: React.InputHTMLAttributes<HTMLInputElement>;
|
|
105
|
-
field: ControllerRenderProps<FieldValues, any>;
|
|
106
|
-
fieldConfigItem: FieldConfigItem;
|
|
107
|
-
label: string;
|
|
108
|
-
isRequired: boolean;
|
|
109
|
-
fieldProps: any;
|
|
110
|
-
zodItem: zod.ZodType;
|
|
111
|
-
className?: string;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export type { AutoFormInputComponentProps as A, FieldConfigItem as F };
|
|
@@ -7,12 +7,12 @@ import { QueryClient } from '@tanstack/react-query';
|
|
|
7
7
|
|
|
8
8
|
declare const createBoardSchema: z.ZodObject<{
|
|
9
9
|
description: z.ZodOptional<z.ZodString>;
|
|
10
|
-
name: z.ZodString;
|
|
11
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
12
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
13
10
|
slug: z.ZodOptional<z.ZodString>;
|
|
14
11
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
15
12
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
15
|
+
name: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const updateBoardSchema: z.ZodObject<{
|
|
18
18
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
@@ -28,8 +28,8 @@ declare const createColumnSchema: z.ZodObject<{
|
|
|
28
28
|
title: z.ZodString;
|
|
29
29
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
30
30
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
31
|
-
boardId: z.ZodString;
|
|
32
31
|
order: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
+
boardId: z.ZodString;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
declare const updateColumnSchema: z.ZodObject<{
|
|
35
35
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
@@ -323,12 +323,12 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
323
323
|
method: "POST";
|
|
324
324
|
body: z.ZodObject<{
|
|
325
325
|
description: z.ZodOptional<z.ZodString>;
|
|
326
|
-
name: z.ZodString;
|
|
327
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
328
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
329
326
|
slug: z.ZodOptional<z.ZodString>;
|
|
330
327
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
331
328
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
329
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
330
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
331
|
+
name: z.ZodString;
|
|
332
332
|
}, z.core.$strip>;
|
|
333
333
|
}, {
|
|
334
334
|
columns: ColumnWithTasks[];
|
|
@@ -345,12 +345,12 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
345
345
|
method: "PUT";
|
|
346
346
|
body: z.ZodObject<{
|
|
347
347
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
348
|
-
name: z.ZodOptional<z.ZodString>;
|
|
349
|
-
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
350
|
-
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
351
348
|
slug: z.ZodOptional<z.ZodString>;
|
|
352
349
|
ownerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
353
350
|
organizationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
351
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
352
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
353
|
+
name: z.ZodOptional<z.ZodString>;
|
|
354
354
|
}, z.core.$strip>;
|
|
355
355
|
}, Board>;
|
|
356
356
|
readonly deleteBoard: better_call.StrictEndpoint<"/boards/:id", {
|
|
@@ -364,8 +364,8 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
364
364
|
title: z.ZodString;
|
|
365
365
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
366
366
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
367
|
-
boardId: z.ZodString;
|
|
368
367
|
order: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
368
|
+
boardId: z.ZodString;
|
|
369
369
|
}, z.core.$strip>;
|
|
370
370
|
}, Column>;
|
|
371
371
|
readonly updateColumn: better_call.StrictEndpoint<"/columns/:id", {
|
|
@@ -374,8 +374,8 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
374
374
|
title: z.ZodOptional<z.ZodString>;
|
|
375
375
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
376
376
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
377
|
-
boardId: z.ZodOptional<z.ZodString>;
|
|
378
377
|
order: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
378
|
+
boardId: z.ZodOptional<z.ZodString>;
|
|
379
379
|
}, z.core.$strip>;
|
|
380
380
|
}, Column>;
|
|
381
381
|
readonly deleteColumn: better_call.StrictEndpoint<"/columns/:id", {
|
|
@@ -42,15 +42,15 @@ declare const createPostSchema: z.ZodObject<{
|
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
slug: z.ZodString;
|
|
44
44
|
}, z.core.$strip>]>>>>;
|
|
45
|
+
title: z.ZodString;
|
|
45
46
|
slug: z.ZodOptional<z.ZodString>;
|
|
46
|
-
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
-
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
48
47
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
49
48
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
50
|
-
|
|
49
|
+
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
51
50
|
content: z.ZodString;
|
|
52
51
|
excerpt: z.ZodString;
|
|
53
52
|
image: z.ZodOptional<z.ZodString>;
|
|
53
|
+
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
declare const updatePostSchema: z.ZodObject<{
|
|
56
56
|
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -42,15 +42,15 @@ declare const createPostSchema: z.ZodObject<{
|
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
slug: z.ZodString;
|
|
44
44
|
}, z.core.$strip>]>>>>;
|
|
45
|
+
title: z.ZodString;
|
|
45
46
|
slug: z.ZodOptional<z.ZodString>;
|
|
46
|
-
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
-
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
48
47
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
49
48
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
50
|
-
|
|
49
|
+
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
51
50
|
content: z.ZodString;
|
|
52
51
|
excerpt: z.ZodString;
|
|
53
52
|
image: z.ZodOptional<z.ZodString>;
|
|
53
|
+
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
declare const updatePostSchema: z.ZodObject<{
|
|
56
56
|
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -42,15 +42,15 @@ declare const createPostSchema: z.ZodObject<{
|
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
slug: z.ZodString;
|
|
44
44
|
}, z.core.$strip>]>>>>;
|
|
45
|
+
title: z.ZodString;
|
|
45
46
|
slug: z.ZodOptional<z.ZodString>;
|
|
46
|
-
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
-
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
48
47
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
49
48
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
50
|
-
|
|
49
|
+
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
51
50
|
content: z.ZodString;
|
|
52
51
|
excerpt: z.ZodString;
|
|
53
52
|
image: z.ZodOptional<z.ZodString>;
|
|
53
|
+
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
declare const updatePostSchema: z.ZodObject<{
|
|
56
56
|
publishedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -7,12 +7,12 @@ import { QueryClient } from '@tanstack/react-query';
|
|
|
7
7
|
|
|
8
8
|
declare const createBoardSchema: z.ZodObject<{
|
|
9
9
|
description: z.ZodOptional<z.ZodString>;
|
|
10
|
-
name: z.ZodString;
|
|
11
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
12
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
13
10
|
slug: z.ZodOptional<z.ZodString>;
|
|
14
11
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
15
12
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
15
|
+
name: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const updateBoardSchema: z.ZodObject<{
|
|
18
18
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
@@ -28,8 +28,8 @@ declare const createColumnSchema: z.ZodObject<{
|
|
|
28
28
|
title: z.ZodString;
|
|
29
29
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
30
30
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
31
|
-
boardId: z.ZodString;
|
|
32
31
|
order: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
+
boardId: z.ZodString;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
declare const updateColumnSchema: z.ZodObject<{
|
|
35
35
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
@@ -323,12 +323,12 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
323
323
|
method: "POST";
|
|
324
324
|
body: z.ZodObject<{
|
|
325
325
|
description: z.ZodOptional<z.ZodString>;
|
|
326
|
-
name: z.ZodString;
|
|
327
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
328
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
329
326
|
slug: z.ZodOptional<z.ZodString>;
|
|
330
327
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
331
328
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
329
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
330
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
331
|
+
name: z.ZodString;
|
|
332
332
|
}, z.core.$strip>;
|
|
333
333
|
}, {
|
|
334
334
|
columns: ColumnWithTasks[];
|
|
@@ -345,12 +345,12 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
345
345
|
method: "PUT";
|
|
346
346
|
body: z.ZodObject<{
|
|
347
347
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
348
|
-
name: z.ZodOptional<z.ZodString>;
|
|
349
|
-
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
350
|
-
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
351
348
|
slug: z.ZodOptional<z.ZodString>;
|
|
352
349
|
ownerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
353
350
|
organizationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
351
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
352
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
353
|
+
name: z.ZodOptional<z.ZodString>;
|
|
354
354
|
}, z.core.$strip>;
|
|
355
355
|
}, Board>;
|
|
356
356
|
readonly deleteBoard: better_call.StrictEndpoint<"/boards/:id", {
|
|
@@ -364,8 +364,8 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
364
364
|
title: z.ZodString;
|
|
365
365
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
366
366
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
367
|
-
boardId: z.ZodString;
|
|
368
367
|
order: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
368
|
+
boardId: z.ZodString;
|
|
369
369
|
}, z.core.$strip>;
|
|
370
370
|
}, Column>;
|
|
371
371
|
readonly updateColumn: better_call.StrictEndpoint<"/columns/:id", {
|
|
@@ -374,8 +374,8 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
374
374
|
title: z.ZodOptional<z.ZodString>;
|
|
375
375
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
376
376
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
377
|
-
boardId: z.ZodOptional<z.ZodString>;
|
|
378
377
|
order: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
378
|
+
boardId: z.ZodOptional<z.ZodString>;
|
|
379
379
|
}, z.core.$strip>;
|
|
380
380
|
}, Column>;
|
|
381
381
|
readonly deleteColumn: better_call.StrictEndpoint<"/columns/:id", {
|
|
@@ -7,12 +7,12 @@ import { QueryClient } from '@tanstack/react-query';
|
|
|
7
7
|
|
|
8
8
|
declare const createBoardSchema: z.ZodObject<{
|
|
9
9
|
description: z.ZodOptional<z.ZodString>;
|
|
10
|
-
name: z.ZodString;
|
|
11
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
12
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
13
10
|
slug: z.ZodOptional<z.ZodString>;
|
|
14
11
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
15
12
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
15
|
+
name: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const updateBoardSchema: z.ZodObject<{
|
|
18
18
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
@@ -28,8 +28,8 @@ declare const createColumnSchema: z.ZodObject<{
|
|
|
28
28
|
title: z.ZodString;
|
|
29
29
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
30
30
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
31
|
-
boardId: z.ZodString;
|
|
32
31
|
order: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
32
|
+
boardId: z.ZodString;
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
declare const updateColumnSchema: z.ZodObject<{
|
|
35
35
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
@@ -323,12 +323,12 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
323
323
|
method: "POST";
|
|
324
324
|
body: z.ZodObject<{
|
|
325
325
|
description: z.ZodOptional<z.ZodString>;
|
|
326
|
-
name: z.ZodString;
|
|
327
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
328
|
-
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
329
326
|
slug: z.ZodOptional<z.ZodString>;
|
|
330
327
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
331
328
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
329
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
330
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
331
|
+
name: z.ZodString;
|
|
332
332
|
}, z.core.$strip>;
|
|
333
333
|
}, {
|
|
334
334
|
columns: ColumnWithTasks[];
|
|
@@ -345,12 +345,12 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
345
345
|
method: "PUT";
|
|
346
346
|
body: z.ZodObject<{
|
|
347
347
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
348
|
-
name: z.ZodOptional<z.ZodString>;
|
|
349
|
-
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
350
|
-
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
351
348
|
slug: z.ZodOptional<z.ZodString>;
|
|
352
349
|
ownerId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
353
350
|
organizationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
351
|
+
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
352
|
+
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
353
|
+
name: z.ZodOptional<z.ZodString>;
|
|
354
354
|
}, z.core.$strip>;
|
|
355
355
|
}, Board>;
|
|
356
356
|
readonly deleteBoard: better_call.StrictEndpoint<"/boards/:id", {
|
|
@@ -364,8 +364,8 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
364
364
|
title: z.ZodString;
|
|
365
365
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
366
366
|
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
367
|
-
boardId: z.ZodString;
|
|
368
367
|
order: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
368
|
+
boardId: z.ZodString;
|
|
369
369
|
}, z.core.$strip>;
|
|
370
370
|
}, Column>;
|
|
371
371
|
readonly updateColumn: better_call.StrictEndpoint<"/columns/:id", {
|
|
@@ -374,8 +374,8 @@ declare const kanbanBackendPlugin: (hooks?: KanbanBackendHooks) => _btst_stack_p
|
|
|
374
374
|
title: z.ZodOptional<z.ZodString>;
|
|
375
375
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
376
376
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
377
|
-
boardId: z.ZodOptional<z.ZodString>;
|
|
378
377
|
order: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
378
|
+
boardId: z.ZodOptional<z.ZodString>;
|
|
379
379
|
}, z.core.$strip>;
|
|
380
380
|
}, Column>;
|
|
381
381
|
readonly deleteColumn: better_call.StrictEndpoint<"/columns/:id", {
|