@case-framework/survey-editor-ui 0.4.2 → 0.5.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 +1 -1
- package/dist/src/components/c-ui/confirm-provider.d.ts +1 -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 +1 -1
- 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 +1 -1
- package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- 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 +1 -1
- package/dist/src/components/ui/breadcrumb.d.ts +7 -7
- package/dist/src/components/ui/button.d.ts +1 -1
- 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/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/item-authoring-state-preview.d.ts +2 -2
- package/dist/src/modules/survey-editor/editor-card/item-color-menu.d.ts +2 -2
- 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 +1 -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/index.d.ts +1 -1
- 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/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 +23 -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 +1 -3
- 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 -1
- 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/survey-editor.d.ts +19 -2
- package/dist/survey-editor-defaults.css +14 -0
- package/dist/survey-editor-ui.cjs.js +60 -60
- 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 +14582 -14071
- package/dist/survey-editor-ui.es.js.map +1 -1
- package/package.json +8 -8
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/item-editor-toolbar.d.ts +0 -6
|
@@ -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;
|
|
@@ -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;
|
|
@@ -7,11 +7,11 @@ interface ItemAuthoringStatePreviewProps {
|
|
|
7
7
|
description?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function ItemAuthoringStatePreview({ state, itemTypeLabel, onEdit, description, className, }: ItemAuthoringStatePreviewProps): import("react
|
|
10
|
+
export declare function ItemAuthoringStatePreview({ state, itemTypeLabel, onEdit, description, className, }: ItemAuthoringStatePreviewProps): import("react").JSX.Element;
|
|
11
11
|
interface IncompleteItemPreviewFrameProps {
|
|
12
12
|
children: ReactNode;
|
|
13
13
|
onEdit?: () => void;
|
|
14
14
|
className?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare function IncompleteItemPreviewFrame({ children, onEdit, className, }: IncompleteItemPreviewFrameProps): import("react
|
|
16
|
+
export declare function IncompleteItemPreviewFrame({ children, onEdit, className, }: IncompleteItemPreviewFrameProps): import("react").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface ItemColorMenuProps {
|
|
2
2
|
itemId: string;
|
|
3
3
|
}
|
|
4
|
-
export declare const DropdownItemColorMenu: ({ itemId }: ItemColorMenuProps) => import("react
|
|
5
|
-
export declare const ContextItemColorMenu: ({ itemId }: ItemColorMenuProps) => import("react
|
|
4
|
+
export declare const DropdownItemColorMenu: ({ itemId }: ItemColorMenuProps) => import("react").JSX.Element;
|
|
5
|
+
export declare const ContextItemColorMenu: ({ itemId }: ItemColorMenuProps) => import("react").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -14,7 +14,7 @@ interface ExpressionIconButtonProps {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
}
|
|
16
16
|
/** A compact condition indicator that opens the same complete read-only expression view. */
|
|
17
|
-
export declare function ExpressionIconButton({ expression, title, className }: ExpressionIconButtonProps): import("react
|
|
17
|
+
export declare function ExpressionIconButton({ expression, title, className }: ExpressionIconButtonProps): import("react").JSX.Element;
|
|
18
18
|
interface ItemExpressionsDialogButtonProps {
|
|
19
19
|
item: SurveyItemCore;
|
|
20
20
|
title: string;
|
|
@@ -22,12 +22,12 @@ interface ItemExpressionsDialogButtonProps {
|
|
|
22
22
|
scope?: ItemExpressionScope;
|
|
23
23
|
}
|
|
24
24
|
/** Opens all expression-bearing rules for an item from small indicators such as preview badges. */
|
|
25
|
-
export declare function ItemExpressionsDialogButton({ item, title, className, scope, }: ItemExpressionsDialogButtonProps): import("react
|
|
25
|
+
export declare function ItemExpressionsDialogButton({ item, title, className, scope, }: ItemExpressionsDialogButtonProps): import("react").JSX.Element;
|
|
26
26
|
interface ItemExpressionOverviewProps {
|
|
27
27
|
item: SurveyItemCore;
|
|
28
28
|
scope?: ItemExpressionScope;
|
|
29
29
|
className?: string;
|
|
30
30
|
compact?: boolean;
|
|
31
31
|
}
|
|
32
|
-
export declare function ItemExpressionOverview({ item, scope, className, compact, }: ItemExpressionOverviewProps): import("react
|
|
32
|
+
export declare function ItemExpressionOverview({ item, scope, className, compact, }: ItemExpressionOverviewProps): import("react").JSX.Element;
|
|
33
33
|
export {};
|
|
@@ -6,5 +6,5 @@ interface ItemKeyEditorProps {
|
|
|
6
6
|
onChangeItemKey: (newKey: string) => void;
|
|
7
7
|
suppressInitialTooltipFocus?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const ItemKeyEditor: (props: ItemKeyEditorProps) => import("react
|
|
9
|
+
declare const ItemKeyEditor: (props: ItemKeyEditorProps) => import("react").JSX.Element;
|
|
10
10
|
export default ItemKeyEditor;
|
|
@@ -4,5 +4,5 @@ interface ItemPreviewProps {
|
|
|
4
4
|
item: SurveyItemCore | undefined;
|
|
5
5
|
mode?: ItemPreviewMode;
|
|
6
6
|
}
|
|
7
|
-
declare const ItemPreview: ({ item, mode }: ItemPreviewProps) => import("react
|
|
7
|
+
declare const ItemPreview: ({ item, mode }: ItemPreviewProps) => import("react").JSX.Element;
|
|
8
8
|
export default ItemPreview;
|
|
@@ -5,5 +5,5 @@ interface ItemTypeIconWithTooltipProps {
|
|
|
5
5
|
iconClassName?: string;
|
|
6
6
|
preventAutoFocus?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const ItemTypeIconWithTooltip: ({ typeInfos, color, iconClassName, preventAutoFocus, }: ItemTypeIconWithTooltipProps) => import("react
|
|
8
|
+
declare const ItemTypeIconWithTooltip: ({ typeInfos, color, iconClassName, preventAutoFocus, }: ItemTypeIconWithTooltipProps) => import("react").JSX.Element;
|
|
9
9
|
export default ItemTypeIconWithTooltip;
|
|
@@ -6,5 +6,5 @@ interface RecommendedItemTypesProps {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
headingId?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const RecommendedItemTypes: ({ targetParentId, targetIndex, title, browseLabel, className, headingId, }: RecommendedItemTypesProps) => import("react
|
|
9
|
+
export declare const RecommendedItemTypes: ({ targetParentId, targetIndex, title, browseLabel, className, headingId, }: RecommendedItemTypesProps) => import("react").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { SurveyEditor } from './survey-editor';
|
|
2
|
-
export type { SurveyEditorProps, SurveyEditorStateChange } from './survey-editor';
|
|
2
|
+
export type { SurveyEditorController, SurveyEditorHostState, SurveyEditorProps, SurveyEditorStateChange, } from './survey-editor';
|
|
3
3
|
export type { SurveyEditorWorkspace, SurveyEditorWorkspacePanelOptions } from './workspace';
|
|
4
4
|
export * from './assistant';
|
|
5
5
|
export { createSnapshotSurveyEditorAIProvider, type CreateSnapshotSurveyEditorAIProviderOptions, type SurveyEditorAITaskCacheOptions, type SurveyEditorAITaskExecution, type SurveyEditorAITaskExecutor, } from './ai/create-provider';
|
|
@@ -7,5 +7,5 @@ interface PreviewViewportToggleProps {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
9
|
/** The viewport toggle shared by the expanded authoring preview and simulators. */
|
|
10
|
-
export declare const PreviewViewportToggle: ({ viewport, onViewportChange, ariaLabel, getViewportLabel, className, }: PreviewViewportToggleProps) => import("react
|
|
10
|
+
export declare const PreviewViewportToggle: ({ viewport, onViewportChange, ariaLabel, getViewportLabel, className, }: PreviewViewportToggleProps) => import("react").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -31,5 +31,5 @@ interface InputWithAIPopoverProps {
|
|
|
31
31
|
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
32
32
|
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
33
33
|
}
|
|
34
|
-
declare const InputWithAIPopover: (props: InputWithAIPopoverProps) => import("react
|
|
34
|
+
declare const InputWithAIPopover: (props: InputWithAIPopoverProps) => import("react").JSX.Element;
|
|
35
35
|
export default InputWithAIPopover;
|
package/dist/src/modules/survey-editor/routes/editor/_components/assistant-authoring-lock.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
export declare const AssistantAuthoringLockStatus: () => import("react
|
|
2
|
+
export declare const AssistantAuthoringLockStatus: () => import("react").JSX.Element | null;
|
|
3
3
|
interface UserMutationBoundaryProps extends PropsWithChildren {
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const UserMutationBoundary: ({ children, className }: UserMutationBoundaryProps) => import("react
|
|
6
|
+
export declare const UserMutationBoundary: ({ children, className }: UserMutationBoundaryProps) => import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -5,8 +5,8 @@ interface EditorAssistantPanelProviderProps {
|
|
|
5
5
|
panel?: ReactNode;
|
|
6
6
|
threadLauncher?: SurveyAssistantThreadLauncher;
|
|
7
7
|
}
|
|
8
|
-
export declare const EditorAssistantPanelProvider: ({ children, panel, threadLauncher, }: EditorAssistantPanelProviderProps) => import("react
|
|
8
|
+
export declare const EditorAssistantPanelProvider: ({ children, panel, threadLauncher, }: EditorAssistantPanelProviderProps) => import("react").JSX.Element;
|
|
9
9
|
export declare const EditorAssistantPanelSlot: ({ openPanel }: {
|
|
10
10
|
openPanel?: () => void;
|
|
11
|
-
}) => import("react
|
|
11
|
+
}) => import("react").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -3,5 +3,5 @@ interface EditorModeSwitchProps {
|
|
|
3
3
|
onClick: () => void;
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const EditorModeSwitch: ({ label, onClick, className }: EditorModeSwitchProps) => import("react
|
|
6
|
+
export declare const EditorModeSwitch: ({ label, onClick, className }: EditorModeSwitchProps) => import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -19,12 +19,12 @@ export interface EditorWorkspacePanelController {
|
|
|
19
19
|
}
|
|
20
20
|
interface EditorWorkspaceProps {
|
|
21
21
|
id: string;
|
|
22
|
-
toolbar
|
|
22
|
+
toolbar?: ReactNode;
|
|
23
23
|
main: ReactNode;
|
|
24
24
|
mainLabel: string;
|
|
25
25
|
primaryMinSize?: number;
|
|
26
26
|
left?: EditorWorkspacePanelDefinition;
|
|
27
27
|
right?: EditorWorkspacePanelDefinition;
|
|
28
28
|
}
|
|
29
|
-
export declare const EditorWorkspace: ({ id, toolbar, main, mainLabel, primaryMinSize, left, right, }: EditorWorkspaceProps) => import("react
|
|
29
|
+
export declare const EditorWorkspace: ({ id, toolbar, main, mainLabel, primaryMinSize, left, right, }: EditorWorkspaceProps) => import("react").JSX.Element;
|
|
30
30
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const EditorFooter: () => import("react
|
|
1
|
+
declare const EditorFooter: () => import("react").JSX.Element;
|
|
2
2
|
export default EditorFooter;
|