@case-framework/survey-editor-ui 0.4.2 → 0.6.0
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/README.md +75 -0
- package/dist/item-core-registry.cjs.js +1 -1
- package/dist/item-core-registry.cjs.js.map +1 -1
- package/dist/item-core-registry.es.js.map +1 -1
- package/dist/src/components/c-ui/alert-provider.d.ts +1 -1
- package/dist/src/components/c-ui/confirm-dialog.d.ts +3 -1
- package/dist/src/components/c-ui/confirm-provider.d.ts +2 -1
- package/dist/src/components/c-ui/dot-background.d.ts +2 -2
- package/dist/src/components/c-ui/filepicker-dropzone.d.ts +1 -1
- package/dist/src/components/common/content-editable-plain.d.ts +1 -1
- package/dist/src/components/common/drag-drop-provider.d.ts +7 -0
- package/dist/src/components/common/sortable-tree.d.ts +8 -1
- package/dist/src/components/rich-text/rich-text-block-editor.d.ts +1 -1
- package/dist/src/components/rich-text/rich-text-content-view.d.ts +1 -1
- package/dist/src/components/rich-text/rich-text-editor-context.d.ts +1 -1
- package/dist/src/components/rich-text-editor/plugins/docked-toolbar-plugin.d.ts +4 -2
- package/dist/src/components/rich-text-editor/plugins/end-of-content-editing-area-plugin.d.ts +1 -1
- package/dist/src/components/rich-text-editor/plugins/floating-toolbar-plugin.d.ts +1 -1
- package/dist/src/components/rich-text-editor/plugins/image-dialog-plugin.d.ts +1 -1
- package/dist/src/components/rich-text-editor/plugins/info-box-popover-plugin.d.ts +1 -1
- package/dist/src/components/rich-text-editor/plugins/link-popover-plugin.d.ts +1 -1
- package/dist/src/components/rich-text-editor/plugins/slash-command-menu-plugin.d.ts +3 -2
- package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +3 -1
- package/dist/src/components/rich-text-editor/rich-text-menu-styles.d.ts +6 -0
- package/dist/src/components/rich-text-editor/style-control-icon.d.ts +1 -1
- package/dist/src/components/ui/alert-dialog.d.ts +12 -12
- package/dist/src/components/ui/alert.d.ts +4 -4
- package/dist/src/components/ui/badge.d.ts +2 -2
- package/dist/src/components/ui/breadcrumb.d.ts +7 -7
- package/dist/src/components/ui/button.d.ts +2 -2
- package/dist/src/components/ui/calendar.d.ts +2 -2
- package/dist/src/components/ui/card.d.ts +7 -7
- package/dist/src/components/ui/checkbox.d.ts +1 -1
- package/dist/src/components/ui/collapsible.d.ts +3 -3
- package/dist/src/components/ui/command.d.ts +9 -9
- package/dist/src/components/ui/context-menu.d.ts +15 -15
- package/dist/src/components/ui/dialog.d.ts +10 -10
- package/dist/src/components/ui/dropdown-menu.d.ts +15 -15
- package/dist/src/components/ui/field.d.ts +10 -10
- package/dist/src/components/ui/input-group.d.ts +6 -6
- package/dist/src/components/ui/input.d.ts +1 -1
- package/dist/src/components/ui/kbd.d.ts +2 -2
- package/dist/src/components/ui/label.d.ts +1 -1
- package/dist/src/components/ui/popover.d.ts +7 -7
- package/dist/src/components/ui/progress.d.ts +1 -1
- package/dist/src/components/ui/radio-group.d.ts +2 -2
- package/dist/src/components/ui/resizable.d.ts +3 -3
- package/dist/src/components/ui/scroll-area.d.ts +2 -2
- package/dist/src/components/ui/select.d.ts +10 -10
- package/dist/src/components/ui/separator.d.ts +1 -1
- package/dist/src/components/ui/skeleton.d.ts +1 -1
- package/dist/src/components/ui/slider.d.ts +1 -1
- package/dist/src/components/ui/sonner.d.ts +1 -1
- package/dist/src/components/ui/switch.d.ts +1 -1
- package/dist/src/components/ui/tabs.d.ts +4 -4
- package/dist/src/components/ui/textarea.d.ts +1 -1
- package/dist/src/components/ui/toggle-group.d.ts +2 -2
- package/dist/src/components/ui/toggle.d.ts +1 -1
- package/dist/src/components/ui/tooltip.d.ts +4 -4
- package/dist/src/index.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +7 -7
- package/dist/src/modules/default-item-registry/items/form/editor/simple-field-editor.d.ts +1 -1
- package/dist/src/modules/default-item-registry/shared/preview/question-header.d.ts +1 -1
- package/dist/src/modules/default-item-registry/shared/question-editor/deferred-localized-rich-text-field.d.ts +1 -0
- package/dist/src/modules/survey-editor/assets/survey-image-asset-manager.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +2 -6
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-catalog.d.ts +6 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-insert-item-preset.d.ts +18 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/item-preset-utils.d.ts +6 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/item-type-grid-view.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/copy-item-dropdown-menu.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/delete-item-dropdown-menu.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/group-items.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/index.d.ts +1 -0
- package/dist/src/modules/survey-editor/editor-card/item-authoring-state-preview.d.ts +7 -10
- package/dist/src/modules/survey-editor/editor-card/item-color-menu.d.ts +3 -2
- package/dist/src/modules/survey-editor/editor-card/item-editing-header.d.ts +17 -0
- package/dist/src/modules/survey-editor/editor-card/item-editing-panels.d.ts +16 -0
- package/dist/src/modules/survey-editor/editor-card/item-editing-surface-context.d.ts +8 -0
- package/dist/src/modules/survey-editor/editor-card/item-editing-surface.d.ts +10 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-apply-context.d.ts +19 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-card.d.ts +8 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-header-styles.d.ts +1 -0
- package/dist/src/modules/survey-editor/editor-card/item-expression-overview.d.ts +3 -3
- package/dist/src/modules/survey-editor/editor-card/item-key-editor.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/item-preview.d.ts +2 -1
- package/dist/src/modules/survey-editor/editor-card/item-type-icon-with-tooltip.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/recommended-item-types.d.ts +1 -1
- package/dist/src/modules/survey-editor/expression-integrity.d.ts +6 -0
- package/dist/src/modules/survey-editor/index.d.ts +1 -1
- package/dist/src/modules/survey-editor/preview-draft/preview-draft-context.d.ts +20 -0
- package/dist/src/modules/survey-editor/preview-viewport-toggle.d.ts +1 -1
- package/dist/src/modules/survey-editor/primitives/input-with-ai-popover.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/_components/assistant-authoring-lock.d.ts +2 -2
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot.d.ts +2 -2
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-mode-switch.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-workspace.d.ts +2 -2
- package/dist/src/modules/survey-editor/routes/editor/_components/expression-diagnostics-status.d.ts +1 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/footer.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/_components/main.d.ts +0 -2
- package/dist/src/modules/survey-editor/routes/editor/_components/workspace-panel-toggles.d.ts +23 -0
- package/dist/src/modules/survey-editor/routes/editor/asset-manager/index.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/index.d.ts +0 -2
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-drag-drop.d.ts +34 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/language-picker.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-item-toolbox.d.ts +1 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-left-panel.d.ts +1 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-outline.d.ts +2 -2
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-workspace.d.ts +1 -3
- package/dist/src/modules/survey-editor/routes/editor/item-editor/index.d.ts +1 -5
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/index.d.ts +3 -4
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/page-break-divider.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-controls.d.ts +1 -4
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-canvas.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-item.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/translation-mode/index.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/translation-mode/translation-left-panel.d.ts +5 -0
- package/dist/src/modules/survey-editor/store/editor-store.d.ts +3 -0
- package/dist/src/modules/survey-editor/survey-editor.d.ts +19 -2
- package/dist/survey-editor-defaults.css +14 -0
- package/dist/survey-editor-ui.cjs.js +70 -68
- package/dist/survey-editor-ui.cjs.js.map +1 -1
- package/dist/survey-editor-ui.css +2 -2
- package/dist/survey-editor-ui.es.js +22161 -20432
- package/dist/survey-editor-ui.es.js.map +1 -1
- package/package.json +10 -10
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/item-editor-toolbar.d.ts +0 -6
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>):
|
|
4
|
-
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>):
|
|
5
|
-
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>):
|
|
6
|
-
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>):
|
|
7
|
-
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>):
|
|
3
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
|
|
6
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
|
|
7
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
|
|
8
8
|
declare function DialogContent({ className, children, showCloseButton, closeLabel, dismissOnInteractOutside, onInteractOutside, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
9
|
showCloseButton?: boolean;
|
|
10
10
|
closeLabel?: string;
|
|
11
11
|
dismissOnInteractOutside?: boolean;
|
|
12
|
-
}):
|
|
13
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
14
14
|
declare function DialogFooter({ className, showCloseButton, closeLabel, children, ...props }: React.ComponentProps<"div"> & {
|
|
15
15
|
showCloseButton?: boolean;
|
|
16
16
|
closeLabel?: string;
|
|
17
|
-
}):
|
|
18
|
-
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>):
|
|
19
|
-
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>):
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
|
|
19
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
|
|
20
20
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>):
|
|
4
|
-
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>):
|
|
5
|
-
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>):
|
|
6
|
-
declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>):
|
|
7
|
-
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>):
|
|
3
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
|
|
5
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
|
|
7
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
|
|
8
8
|
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
9
9
|
inset?: boolean;
|
|
10
10
|
variant?: "default" | "destructive";
|
|
11
|
-
}):
|
|
11
|
+
}): React.JSX.Element;
|
|
12
12
|
declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
|
|
13
13
|
inset?: boolean;
|
|
14
|
-
}):
|
|
15
|
-
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>):
|
|
14
|
+
}): React.JSX.Element;
|
|
15
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
|
|
16
16
|
declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
|
|
17
17
|
inset?: boolean;
|
|
18
|
-
}):
|
|
18
|
+
}): React.JSX.Element;
|
|
19
19
|
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
20
20
|
inset?: boolean;
|
|
21
|
-
}):
|
|
22
|
-
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>):
|
|
23
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">):
|
|
24
|
-
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>):
|
|
21
|
+
}): React.JSX.Element;
|
|
22
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
|
|
23
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
24
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
|
|
25
25
|
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
26
26
|
inset?: boolean;
|
|
27
|
-
}):
|
|
28
|
-
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>):
|
|
27
|
+
}): React.JSX.Element;
|
|
28
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
|
|
29
29
|
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { Label } from '../../../components/ui/label';
|
|
3
|
-
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import("react
|
|
3
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import("react").JSX.Element;
|
|
4
4
|
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
5
5
|
variant?: "legend" | "label";
|
|
6
|
-
}): import("react
|
|
7
|
-
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import("react
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
8
8
|
declare const fieldVariants: (props?: ({
|
|
9
9
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
10
10
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
-
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("react
|
|
12
|
-
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import("react
|
|
13
|
-
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import("react
|
|
14
|
-
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): import("react
|
|
15
|
-
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): import("react
|
|
11
|
+
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("react").JSX.Element;
|
|
12
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
13
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import("react").JSX.Element;
|
|
14
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
15
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): import("react").JSX.Element;
|
|
16
16
|
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
17
17
|
children?: React.ReactNode;
|
|
18
|
-
}): import("react
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
19
|
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
20
20
|
errors?: Array<{
|
|
21
21
|
message?: string;
|
|
22
22
|
} | undefined>;
|
|
23
|
-
}): import("react
|
|
23
|
+
}): import("react").JSX.Element | null;
|
|
24
24
|
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { Button } from '../../../components/ui/button';
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">):
|
|
4
|
+
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
5
5
|
declare const inputGroupAddonVariants: (props?: ({
|
|
6
6
|
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>):
|
|
8
|
+
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
|
|
9
9
|
declare const inputGroupButtonVariants: (props?: ({
|
|
10
10
|
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
-
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>):
|
|
13
|
-
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">):
|
|
14
|
-
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">):
|
|
15
|
-
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">):
|
|
12
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): React.JSX.Element;
|
|
13
|
+
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
14
|
+
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): React.JSX.Element;
|
|
15
|
+
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): React.JSX.Element;
|
|
16
16
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare function Input({ className, type, ...props }: React.ComponentProps<"input">):
|
|
2
|
+
declare function Input({ className, type, ...props }: React.ComponentProps<"input">): React.JSX.Element;
|
|
3
3
|
export { Input };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import("react
|
|
2
|
-
declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): import("react
|
|
1
|
+
declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import("react").JSX.Element;
|
|
2
|
+
declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
3
3
|
export { Kbd, KbdGroup };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Label as LabelPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>):
|
|
3
|
+
declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): React.JSX.Element;
|
|
4
4
|
export { Label };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>):
|
|
4
|
-
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>):
|
|
5
|
-
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>):
|
|
6
|
-
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>):
|
|
7
|
-
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">):
|
|
8
|
-
declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">):
|
|
9
|
-
declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">):
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
|
|
7
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
8
|
+
declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): React.JSX.Element;
|
|
9
|
+
declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
|
|
10
10
|
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Progress as ProgressPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>):
|
|
3
|
+
declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): React.JSX.Element;
|
|
4
4
|
export { Progress };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>):
|
|
4
|
-
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>):
|
|
3
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): React.JSX.Element;
|
|
5
5
|
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
2
|
-
declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): import("react
|
|
3
|
-
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): import("react
|
|
2
|
+
declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): import("react").JSX.Element;
|
|
3
|
+
declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): import("react").JSX.Element;
|
|
4
4
|
declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
|
|
5
5
|
withHandle?: boolean;
|
|
6
|
-
}): import("react
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
7
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>):
|
|
4
|
-
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>):
|
|
3
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React.JSX.Element;
|
|
5
5
|
export { ScrollArea, ScrollBar };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Select as SelectPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>):
|
|
4
|
-
declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>):
|
|
5
|
-
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>):
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
|
|
6
6
|
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
7
|
size?: "sm" | "default";
|
|
8
|
-
}):
|
|
9
|
-
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>):
|
|
10
|
-
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>):
|
|
11
|
-
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>):
|
|
12
|
-
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>):
|
|
13
|
-
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>):
|
|
14
|
-
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>):
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): React.JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.JSX.Element;
|
|
15
15
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Separator as SeparatorPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>):
|
|
3
|
+
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): React.JSX.Element;
|
|
4
4
|
export { Separator };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import("react
|
|
1
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
2
2
|
export { Skeleton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>):
|
|
3
|
+
declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): React.JSX.Element;
|
|
4
4
|
export { Slider };
|
|
@@ -2,5 +2,5 @@ import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
4
|
size?: "sm" | "default";
|
|
5
|
-
}):
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
export { Switch };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>):
|
|
4
|
+
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
declare const tabsListVariants: (props?: ({
|
|
6
6
|
variant?: "line" | "default" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>):
|
|
9
|
-
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>):
|
|
10
|
-
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>):
|
|
8
|
+
declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): React.JSX.Element;
|
|
9
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
|
|
10
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
|
|
11
11
|
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">):
|
|
2
|
+
declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): React.JSX.Element;
|
|
3
3
|
export { Textarea };
|
|
@@ -5,6 +5,6 @@ import * as React from "react";
|
|
|
5
5
|
declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
|
|
6
6
|
spacing?: number;
|
|
7
7
|
orientation?: "horizontal" | "vertical";
|
|
8
|
-
}):
|
|
9
|
-
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>):
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): React.JSX.Element;
|
|
10
10
|
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -5,5 +5,5 @@ declare const toggleVariants: (props?: ({
|
|
|
5
5
|
variant?: "default" | "outline" | null | undefined;
|
|
6
6
|
size?: "sm" | "default" | "lg" | "icon-sm" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>):
|
|
8
|
+
declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): React.JSX.Element;
|
|
9
9
|
export { Toggle, toggleVariants };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>):
|
|
4
|
-
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>):
|
|
5
|
-
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>):
|
|
6
|
-
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>):
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
|
|
7
7
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export { SortableTree } from './components/common/sortable-tree';
|
|
|
9
9
|
export type { SortableTreeDropEvent, SortableTreeDropPosition, SortableTreeEmptyGroupProps, SortableTreeMoveEvent, SortableTreePosition, SortableTreeProps, SortableTreeRenderItemProps, } from './components/common/sortable-tree';
|
|
10
10
|
export { cloneRegistryEntries, createComposedEditorRegistry, createRegistryEntries, createSurveyPlayerRegistry, getDefaultComposedEditorRegistry, getDefaultRegistryEntries, getDefaultSurveyPlayerRegistry, } from './modules/default-item-registry';
|
|
11
11
|
export type { CreateComposedEditorRegistryOptions, CreateRegistryEntriesOptions, CreateSurveyPlayerRegistryOptions, RegistryConflictStrategy, } from './modules/default-item-registry';
|
|
12
|
-
export type { SurveyEditorProps, SurveyEditorStateChange, SurveyEditorWorkspace, SurveyEditorWorkspacePanelOptions, SurveyEditorAssistantController, SurveyAssistantSnapshotOptions, CreateSnapshotSurveyEditorAIProviderOptions, UseSurveyEditorAssistantIntegrationOptions, SurveyEditorAITaskCacheOptions, SurveyEditorAITaskExecution, SurveyEditorAITaskExecutor, SurveyEditorLocation, EditorItemDefinition, EditorItemDefinitionRegistry, ItemInitialDataContext, ComposedEditorItemRegistry, EntriesToComposedEditorRegistryOptions, EntriesToParticipantRegistryOptions, ItemEditorComponentProps, ItemIconComponent, ItemPreviewComponentProps, ItemPreviewMode, ItemRegistryEntry, ItemRendererComponentProps, ItemSearchAdapter, RegistryValidationIssue, RegistryValidationMode, RegistryValidationOptions, RegistryValidationResult, SurveyPlayerItemRegistry, SurveyEditorAIProvider, SurveyAIRequestOptions, RichTextEditorChange, RichTextEditorProps, RichTextBlockEditorChange, RichTextBlockEditorProps, RichTextContentPolicy, RichTextLinkPayload, RichTextStyleControl, RichTextTemplateVariable, RichTextContentViewProps, RichTextEditorVariant, RichTextStyleAttribute, RichTextSupportedBlockType, SerializedRichTextLinkNode, SerializedTemplateVariableNode, SurveyImageAssetManagerProps, ParsedSurveySession, ParsedSurveySessionFormat, } from './modules/survey-editor';
|
|
12
|
+
export type { SurveyEditorProps, SurveyEditorController, SurveyEditorHostState, SurveyEditorStateChange, SurveyEditorWorkspace, SurveyEditorWorkspacePanelOptions, SurveyEditorAssistantController, SurveyAssistantSnapshotOptions, CreateSnapshotSurveyEditorAIProviderOptions, UseSurveyEditorAssistantIntegrationOptions, SurveyEditorAITaskCacheOptions, SurveyEditorAITaskExecution, SurveyEditorAITaskExecutor, SurveyEditorLocation, EditorItemDefinition, EditorItemDefinitionRegistry, ItemInitialDataContext, ComposedEditorItemRegistry, EntriesToComposedEditorRegistryOptions, EntriesToParticipantRegistryOptions, ItemEditorComponentProps, ItemIconComponent, ItemPreviewComponentProps, ItemPreviewMode, ItemRegistryEntry, ItemRendererComponentProps, ItemSearchAdapter, RegistryValidationIssue, RegistryValidationMode, RegistryValidationOptions, RegistryValidationResult, SurveyPlayerItemRegistry, SurveyEditorAIProvider, SurveyAIRequestOptions, RichTextEditorChange, RichTextEditorProps, RichTextBlockEditorChange, RichTextBlockEditorProps, RichTextContentPolicy, RichTextLinkPayload, RichTextStyleControl, RichTextTemplateVariable, RichTextContentViewProps, RichTextEditorVariant, RichTextStyleAttribute, RichTextSupportedBlockType, SerializedRichTextLinkNode, SerializedTemplateVariableNode, SurveyImageAssetManagerProps, ParsedSurveySession, ParsedSurveySessionFormat, } from './modules/survey-editor';
|
|
13
13
|
export type { SurveyEditorDateLocales } from './modules/survey-editor/localization/date-fns';
|
|
14
14
|
export type { FilepickerDropzoneLabels, FilepickerDropzoneProps, } from './components/c-ui/filepicker-dropzone';
|
|
@@ -12,4 +12,4 @@ export interface FormFieldItemPreviewProps {
|
|
|
12
12
|
onEditKey?: () => void;
|
|
13
13
|
onDelete?: () => void;
|
|
14
14
|
}
|
|
15
|
-
export declare function FormFieldItemPreview({ codingKey, fieldType, label, required, hasValidations, isInvalid, variant, className, onClick, onEditKey, onDelete, }: FormFieldItemPreviewProps): import("react
|
|
15
|
+
export declare function FormFieldItemPreview({ codingKey, fieldType, label, required, hasValidations, isInvalid, variant, className, onClick, onEditKey, onDelete, }: FormFieldItemPreviewProps): import("react").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FormFieldType } from '../model';
|
|
2
2
|
export declare const FORM_FIELD_TYPES: ("number" | "input" | "select" | "textarea" | "switch" | "slider" | "datepicker")[];
|
|
3
3
|
export declare const FORM_FIELD_TYPE_ICON: {
|
|
4
|
-
input:
|
|
5
|
-
textarea:
|
|
6
|
-
number:
|
|
7
|
-
datepicker:
|
|
8
|
-
switch:
|
|
9
|
-
select:
|
|
10
|
-
slider:
|
|
4
|
+
input: react.ForwardRefExoticComponent<any>;
|
|
5
|
+
textarea: react.ForwardRefExoticComponent<any>;
|
|
6
|
+
number: react.ForwardRefExoticComponent<any>;
|
|
7
|
+
datepicker: react.ForwardRefExoticComponent<any>;
|
|
8
|
+
switch: react.ForwardRefExoticComponent<any>;
|
|
9
|
+
select: react.ForwardRefExoticComponent<any>;
|
|
10
|
+
slider: react.ForwardRefExoticComponent<any>;
|
|
11
11
|
};
|
|
12
12
|
export declare function getFormFieldTypeLabel(t: (key: string) => string, fieldType: FormFieldType): string;
|
|
@@ -3,4 +3,4 @@ export declare function QuestionHeaderPreview({ title, subtitle, resolveImageAss
|
|
|
3
3
|
title?: Content;
|
|
4
4
|
subtitle?: Content;
|
|
5
5
|
resolveImageAssetUrl?: (assetId: string) => string | undefined;
|
|
6
|
-
}): import("react
|
|
6
|
+
}): import("react").JSX.Element | null;
|
|
@@ -19,6 +19,7 @@ export interface DeferredLocalizedRichTextFieldProps {
|
|
|
19
19
|
contentClassName?: string;
|
|
20
20
|
endOfContentEditingArea?: boolean;
|
|
21
21
|
placeholderClassName?: string;
|
|
22
|
+
toolbarClassName?: string;
|
|
22
23
|
styleControls?: RichTextStyleControl[];
|
|
23
24
|
templateVariables?: RichTextTemplateVariable[];
|
|
24
25
|
toolbarMode?: "floating" | "docked" | "none";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export interface SurveyImageAssetManagerProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
}
|
|
4
|
-
export declare function SurveyImageAssetManager({ className }: SurveyImageAssetManagerProps): import("react
|
|
4
|
+
export declare function SurveyImageAssetManager({ className }: SurveyImageAssetManagerProps): import("react").JSX.Element;
|
package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { SurveyItemTranslations, SurveyItemCore } from '@case-framework/survey-core';
|
|
2
1
|
import { SurveyItemClipboardData, Target } from '@case-framework/survey-core/editor';
|
|
3
|
-
import { ComposedEditorItemRegistry } from '../../../../../../modules/survey-editor/registry';
|
|
4
2
|
import { ItemTypeOption } from '../types';
|
|
5
3
|
interface UseAddItemActionsParams {
|
|
6
|
-
editorItemRegistry: ComposedEditorItemRegistry;
|
|
7
|
-
addItem: (target: Target | null, item: SurveyItemCore, content?: SurveyItemTranslations) => void;
|
|
8
4
|
pasteItem: (clipboardData: SurveyItemClipboardData, target: Target) => string | null;
|
|
9
5
|
commitByUser: (meta: {
|
|
10
6
|
label: string;
|
|
@@ -17,8 +13,8 @@ interface UseAddItemActionsParams {
|
|
|
17
13
|
clipboardValue: string | null;
|
|
18
14
|
recordRecentPreset: (presetId: string) => void;
|
|
19
15
|
}
|
|
20
|
-
export
|
|
16
|
+
export { getNextScopedItemKey, normalizeGeneratedKey, resolveDefaultKeyPrefix, } from '../item-preset-utils';
|
|
17
|
+
export declare function useAddItemActions({ pasteItem, commitByUser, setPreferredPreviewItemId, closeDialog, targetGroupId, targetIndex, rootItemId, clipboardValue, recordRecentPreset, }: UseAddItemActionsParams): {
|
|
21
18
|
handleSelectOption: (option: ItemTypeOption) => void;
|
|
22
19
|
pasteFromClipboard: () => void;
|
|
23
20
|
};
|
|
24
|
-
export {};
|
package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-insert-item-preset.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ItemInsertionTarget {
|
|
2
|
+
parentId: string;
|
|
3
|
+
index?: number;
|
|
4
|
+
}
|
|
5
|
+
export type InsertItemPresetResult = {
|
|
6
|
+
ok: true;
|
|
7
|
+
itemId: string;
|
|
8
|
+
itemType: string;
|
|
9
|
+
} | {
|
|
10
|
+
ok: false;
|
|
11
|
+
reason: "locked" | "invalid-target" | "missing-preset" | "creation-failed";
|
|
12
|
+
};
|
|
13
|
+
interface InsertItemPresetOptions {
|
|
14
|
+
navigateAfterInsert?: "dialog-default" | "outline" | "preview" | "none";
|
|
15
|
+
recordRecentPreset?: (presetId: string) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare function useInsertItemPreset(): (presetId: string, target: ItemInsertionTarget, options?: InsertItemPresetOptions) => InsertItemPresetResult;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GroupItemCore, SurveyItemCore } from '@case-framework/survey-core';
|
|
2
|
+
import { ComposedEditorItemRegistry } from '../../../../../modules/survey-editor/registry';
|
|
3
|
+
import { ItemTypeOption } from './types';
|
|
4
|
+
export declare const normalizeGeneratedKey: (key: string) => string;
|
|
5
|
+
export declare const resolveDefaultKeyPrefix: (option: Pick<ItemTypeOption, "presetId" | "itemType" | "label">, registry: ComposedEditorItemRegistry) => string;
|
|
6
|
+
export declare const getNextScopedItemKey: (parentItem: GroupItemCore | undefined, surveyItems: Map<string, SurveyItemCore> | undefined, prefix: string) => string;
|
|
@@ -19,5 +19,5 @@ interface ItemTypeGridViewProps {
|
|
|
19
19
|
onSelectOption: (option: ItemTypeOption) => void;
|
|
20
20
|
gridLabel: string;
|
|
21
21
|
}
|
|
22
|
-
export declare function ItemTypeGridView({ recentLabel, recentOptions, sections, optionGroupRef, activeIndex, isFocused, setActiveIndex, onGroupFocus, onGroupBlur, onGroupKeyDown, onSelectOption, gridLabel, }: ItemTypeGridViewProps): import("react
|
|
22
|
+
export declare function ItemTypeGridView({ recentLabel, recentOptions, sections, optionGroupRef, activeIndex, isFocused, setActiveIndex, onGroupFocus, onGroupBlur, onGroupKeyDown, onSelectOption, gridLabel, }: ItemTypeGridViewProps): import("react").JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface CopyItemDropdownMenuItemProps {
|
|
2
2
|
itemId: string;
|
|
3
3
|
}
|
|
4
|
-
export declare const CopyItemDropdownMenuItem: ({ itemId }: CopyItemDropdownMenuItemProps) => import("react
|
|
4
|
+
export declare const CopyItemDropdownMenuItem: ({ itemId }: CopyItemDropdownMenuItemProps) => import("react").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -3,5 +3,5 @@ interface DeleteItemDropdownMenuItemProps {
|
|
|
3
3
|
afterDeleteItemId?: string | null;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const DeleteItemDropdownMenuItem: ({ overrideItemId, afterDeleteItemId, disabled, }: DeleteItemDropdownMenuItemProps) => import("react
|
|
6
|
+
export declare const DeleteItemDropdownMenuItem: ({ overrideItemId, afterDeleteItemId, disabled, }: DeleteItemDropdownMenuItemProps) => import("react").JSX.Element | null;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const GroupItems: () => import("react
|
|
1
|
+
declare const GroupItems: () => import("react").JSX.Element;
|
|
2
2
|
export default GroupItems;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ItemAuthoringState } from '../../../../modules/survey-editor/registry';
|
|
1
|
+
import { ComponentType } from 'react';
|
|
3
2
|
interface ItemAuthoringStatePreviewProps {
|
|
4
|
-
state: ItemAuthoringState;
|
|
5
3
|
itemTypeLabel: string;
|
|
4
|
+
icon: ComponentType<{
|
|
5
|
+
className?: string;
|
|
6
|
+
"aria-hidden"?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
color?: string;
|
|
6
9
|
onEdit?: () => void;
|
|
7
10
|
description?: string;
|
|
8
11
|
className?: string;
|
|
9
12
|
}
|
|
10
|
-
export declare function ItemAuthoringStatePreview({
|
|
11
|
-
interface IncompleteItemPreviewFrameProps {
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
onEdit?: () => void;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare function IncompleteItemPreviewFrame({ children, onEdit, className, }: IncompleteItemPreviewFrameProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function ItemAuthoringStatePreview({ itemTypeLabel, icon: Icon, color, onEdit, description, className, }: ItemAuthoringStatePreviewProps): import("react").JSX.Element;
|
|
17
14
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface ItemColorMenuProps {
|
|
2
2
|
itemId: string;
|
|
3
|
+
disabled?: boolean;
|
|
3
4
|
}
|
|
4
|
-
export declare const DropdownItemColorMenu: ({ itemId }: ItemColorMenuProps) => import("react
|
|
5
|
-
export declare const ContextItemColorMenu: ({ itemId }: ItemColorMenuProps) => import("react
|
|
5
|
+
export declare const DropdownItemColorMenu: ({ itemId, disabled }: ItemColorMenuProps) => import("react").JSX.Element;
|
|
6
|
+
export declare const ContextItemColorMenu: ({ itemId }: ItemColorMenuProps) => import("react").JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SurveyItemCore } from '@case-framework/survey-core';
|
|
2
|
+
export type ItemEditingPresentation = "inline" | "fullscreen";
|
|
3
|
+
export type EditorSide = "left" | "right";
|
|
4
|
+
interface ItemEditingHeaderProps {
|
|
5
|
+
item: SurveyItemCore;
|
|
6
|
+
presentation: ItemEditingPresentation;
|
|
7
|
+
color: string;
|
|
8
|
+
previewVisible: boolean;
|
|
9
|
+
editorSide: EditorSide;
|
|
10
|
+
afterDeleteItemId?: string | null;
|
|
11
|
+
onPreviewVisibilityChange: () => void;
|
|
12
|
+
onEditorSideChange: (side: EditorSide) => void;
|
|
13
|
+
onFullscreenToggle: () => void;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ItemEditingHeader: ({ item, presentation, color, previewVisible, editorSide, afterDeleteItemId, onPreviewVisibilityChange, onEditorSideChange, onFullscreenToggle, onClose, }: ItemEditingHeaderProps) => import("react").JSX.Element;
|
|
17
|
+
export {};
|