@case-framework/survey-ui 0.6.2 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -34
- package/dist/src/index.d.ts +7 -13
- package/dist/src/lib/survey-assets.d.ts +2 -0
- package/dist/src/modules/survey-player/index.d.ts +2 -0
- package/dist/src/modules/survey-player/registry.d.ts +23 -0
- package/dist/src/modules/survey-player/survey-context.d.ts +1 -1
- package/dist/src/modules/survey-player/survey-item/survey-item-types/placeholder-item-renderers.d.ts +1 -1
- package/dist/src/modules/survey-player/survey-player.d.ts +1 -1
- package/dist/survey-ui.cjs +47 -0
- package/dist/survey-ui.cjs.map +1 -0
- package/dist/survey-ui.css +1 -1
- package/dist/survey-ui.js +14136 -0
- package/dist/survey-ui.js.map +1 -0
- package/package.json +25 -63
- package/dist/default-item-cores-C6VK2LFe.js +0 -10
- package/dist/default-item-cores-C6VK2LFe.js.map +0 -1
- package/dist/default-item-cores-gdu37TFX.mjs +0 -3988
- package/dist/default-item-cores-gdu37TFX.mjs.map +0 -1
- package/dist/item-core-registry.cjs.js +0 -2
- package/dist/item-core-registry.cjs.js.map +0 -1
- package/dist/item-core-registry.es.js +0 -11
- package/dist/item-core-registry.es.js.map +0 -1
- package/dist/src/components/c-ui/alert-provider.d.ts +0 -18
- package/dist/src/components/c-ui/dot-background.d.ts +0 -72
- package/dist/src/components/c-ui/filepicker-dropzone.d.ts +0 -38
- package/dist/src/components/c-ui/loading-button.d.ts +0 -9
- package/dist/src/components/common/content-editable-plain.d.ts +0 -17
- package/dist/src/components/common/sortable-tree.d.ts +0 -59
- package/dist/src/components/hooks/use-button-shortcut.d.ts +0 -18
- package/dist/src/components/hooks/use-document-keydown.d.ts +0 -7
- package/dist/src/components/rich-text/content-policy.d.ts +0 -19
- package/dist/src/components/rich-text/index.d.ts +0 -6
- package/dist/src/components/rich-text/nodes/rich-text-image-node.d.ts +0 -40
- package/dist/src/components/rich-text/nodes/rich-text-info-box-node.d.ts +0 -45
- package/dist/src/components/rich-text/nodes/survey-rich-text-heading-node.d.ts +0 -27
- package/dist/src/components/rich-text/rich-text-block-editor.d.ts +0 -8
- package/dist/src/components/rich-text/rich-text-editor-context.d.ts +0 -23
- package/dist/src/components/rich-text/rich-text-survey-content.d.ts +0 -7
- package/dist/src/components/rich-text/types.d.ts +0 -6
- package/dist/src/components/rich-text-editor/index.d.ts +0 -3
- package/dist/src/components/rich-text-editor/plugins/command-handler-plugin.d.ts +0 -5
- package/dist/src/components/rich-text-editor/plugins/editable-mode-plugin.d.ts +0 -3
- package/dist/src/components/rich-text-editor/plugins/floating-toolbar-plugin.d.ts +0 -11
- package/dist/src/components/rich-text-editor/plugins/image-dialog-plugin.d.ts +0 -4
- package/dist/src/components/rich-text-editor/plugins/info-box-popover-plugin.d.ts +0 -6
- package/dist/src/components/rich-text-editor/plugins/link-popover-plugin.d.ts +0 -6
- package/dist/src/components/rich-text-editor/plugins/rich-text-image-asset-deletion-plugin.d.ts +0 -1
- package/dist/src/components/rich-text-editor/plugins/slash-command-menu-plugin.d.ts +0 -15
- package/dist/src/components/rich-text-editor/plugins/sync-editor-value-plugin.d.ts +0 -4
- package/dist/src/components/rich-text-editor/rich-text-editor-utils.d.ts +0 -205
- package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +0 -43
- package/dist/src/components/rich-text-editor/rich-text-image-editor-commands.d.ts +0 -12
- package/dist/src/components/rich-text-editor/rich-text-info-box-commands.d.ts +0 -20
- package/dist/src/components/rich-text-editor/style-control-icon.d.ts +0 -5
- package/dist/src/components/ui/alert.d.ts +0 -10
- package/dist/src/components/ui/badge.d.ts +0 -9
- package/dist/src/components/ui/breadcrumb.d.ts +0 -11
- package/dist/src/components/ui/card.d.ts +0 -11
- package/dist/src/components/ui/command.d.ts +0 -18
- package/dist/src/components/ui/context-menu.d.ts +0 -31
- package/dist/src/components/ui/dialog.d.ts +0 -20
- package/dist/src/components/ui/dropdown-menu.d.ts +0 -29
- package/dist/src/components/ui/kbd.d.ts +0 -3
- package/dist/src/components/ui/resizable.d.ts +0 -7
- package/dist/src/components/ui/scroll-area.d.ts +0 -5
- package/dist/src/components/ui/skeleton.d.ts +0 -2
- package/dist/src/components/ui/sonner.d.ts +0 -3
- package/dist/src/components/ui/tabs.d.ts +0 -11
- package/dist/src/components/ui/toggle-group.d.ts +0 -10
- package/dist/src/components/ui/toggle.d.ts +0 -9
- package/dist/src/components/ui/tooltip.d.ts +0 -7
- package/dist/src/dev/_components/nav-input.d.ts +0 -35
- package/dist/src/dev/app.d.ts +0 -2
- package/dist/src/dev/localizations/de.d.ts +0 -2
- package/dist/src/dev/main.d.ts +0 -0
- package/dist/src/item-core-registry.d.ts +0 -4
- package/dist/src/modules/default-item-registry/default-registry-entries.d.ts +0 -2
- package/dist/src/modules/default-item-registry/index.d.ts +0 -19
- package/dist/src/modules/default-item-registry/item-authoring-state.d.ts +0 -15
- package/dist/src/modules/default-item-registry/items/choice/editor/card.d.ts +0 -3
- package/dist/src/modules/default-item-registry/items/choice/editor/option-create.d.ts +0 -11
- package/dist/src/modules/default-item-registry/items/choice/editor/option-edit-dialog.d.ts +0 -21
- package/dist/src/modules/default-item-registry/items/choice/editor/option-editor-fields.d.ts +0 -17
- package/dist/src/modules/default-item-registry/items/choice/editor/response-options-list.d.ts +0 -20
- package/dist/src/modules/default-item-registry/items/choice/expression-registry.d.ts +0 -3
- package/dist/src/modules/default-item-registry/items/choice/preview/item.d.ts +0 -2
- package/dist/src/modules/default-item-registry/items/choice/search-adapter.d.ts +0 -2
- package/dist/src/modules/default-item-registry/items/form/editor/card.d.ts +0 -3
- package/dist/src/modules/default-item-registry/items/form/editor/config-editor.d.ts +0 -12
- package/dist/src/modules/default-item-registry/items/form/editor/field-edit-dialog.d.ts +0 -10
- package/dist/src/modules/default-item-registry/items/form/editor/field-group-header-dialog.d.ts +0 -12
- package/dist/src/modules/default-item-registry/items/form/editor/field-group-layout-dialog.d.ts +0 -9
- package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +0 -15
- package/dist/src/modules/default-item-registry/items/form/editor/field-key-dialog.d.ts +0 -10
- package/dist/src/modules/default-item-registry/items/form/editor/field-sort-dialog.d.ts +0 -11
- package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +0 -12
- package/dist/src/modules/default-item-registry/items/form/editor/response-field-groups-list.d.ts +0 -16
- package/dist/src/modules/default-item-registry/items/form/preview/item.d.ts +0 -2
- package/dist/src/modules/default-item-registry/items/form/search-adapter.d.ts +0 -2
- package/dist/src/modules/default-item-registry/items/info/editor-card.d.ts +0 -3
- package/dist/src/modules/default-item-registry/items/info/preview/item.d.ts +0 -2
- package/dist/src/modules/default-item-registry/items/info/search-adapter.d.ts +0 -2
- package/dist/src/modules/default-item-registry/items/structure/group/editor-card.d.ts +0 -3
- package/dist/src/modules/default-item-registry/items/structure/page-break/editor-card.d.ts +0 -3
- package/dist/src/modules/default-item-registry/items/structure/preview-renderers.d.ts +0 -3
- package/dist/src/modules/default-item-registry/items/structure/root/editor-card.d.ts +0 -3
- package/dist/src/modules/default-item-registry/shared/preview/question-header.d.ts +0 -6
- package/dist/src/modules/default-item-registry/shared/preview/utils.d.ts +0 -3
- package/dist/src/modules/default-item-registry/shared/question-editor/deferred-localized-rich-text-field.d.ts +0 -26
- package/dist/src/modules/default-item-registry/shared/question-editor/header-editor.d.ts +0 -6
- package/dist/src/modules/default-item-registry/shared/question-editor/layout.d.ts +0 -8
- package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-editors.d.ts +0 -23
- package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-policies.d.ts +0 -8
- package/dist/src/modules/default-item-registry/shared/question-editor/toolbar.d.ts +0 -10
- package/dist/src/modules/survey-editor/ai/create-provider.d.ts +0 -22
- package/dist/src/modules/survey-editor/ai/types.d.ts +0 -11
- package/dist/src/modules/survey-editor/ai/use-survey-assistant-integration.d.ts +0 -16
- package/dist/src/modules/survey-editor/assets/index.d.ts +0 -4
- package/dist/src/modules/survey-editor/assets/survey-image-asset-manager.d.ts +0 -4
- package/dist/src/modules/survey-editor/assets/use-survey-assets.d.ts +0 -4
- package/dist/src/modules/survey-editor/assets/utils.d.ts +0 -5
- package/dist/src/modules/survey-editor/assistant/apply.d.ts +0 -24
- package/dist/src/modules/survey-editor/assistant/index.d.ts +0 -2
- package/dist/src/modules/survey-editor/assistant/snapshot.d.ts +0 -39
- package/dist/src/modules/survey-editor/editor-card/add-items/constants.d.ts +0 -5
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +0 -24
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-target.d.ts +0 -9
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-option-group-navigation.d.ts +0 -20
- package/dist/src/modules/survey-editor/editor-card/add-items/types.d.ts +0 -21
- package/dist/src/modules/survey-editor/editor-card/add-items/views/back-button.d.ts +0 -5
- package/dist/src/modules/survey-editor/editor-card/add-items/views/blank-item-view.d.ts +0 -13
- package/dist/src/modules/survey-editor/editor-card/add-items/views/entry-view.d.ts +0 -15
- package/dist/src/modules/survey-editor/editor-card/add-items/views/item-type-grid-view.d.ts +0 -30
- package/dist/src/modules/survey-editor/editor-card/add-items/views/structure-view.d.ts +0 -16
- package/dist/src/modules/survey-editor/editor-card/add-items.d.ts +0 -1
- package/dist/src/modules/survey-editor/editor-card/copy-item-dropdown-menu.d.ts +0 -5
- package/dist/src/modules/survey-editor/editor-card/delete-item-context-menu.d.ts +0 -5
- package/dist/src/modules/survey-editor/editor-card/delete-item-dropdown-menu.d.ts +0 -7
- package/dist/src/modules/survey-editor/editor-card/editor-card-tab-trigger.d.ts +0 -15
- package/dist/src/modules/survey-editor/editor-card/expression-pseudo-code.d.ts +0 -8
- package/dist/src/modules/survey-editor/editor-card/group-items.d.ts +0 -2
- package/dist/src/modules/survey-editor/editor-card/hooks/use-armed-shortcut-sequence.d.ts +0 -11
- package/dist/src/modules/survey-editor/editor-card/hooks/use-group-list-keyboard.d.ts +0 -30
- package/dist/src/modules/survey-editor/editor-card/index.d.ts +0 -2
- package/dist/src/modules/survey-editor/editor-card/item-authoring-state-preview.d.ts +0 -16
- package/dist/src/modules/survey-editor/editor-card/item-color-menu.d.ts +0 -6
- package/dist/src/modules/survey-editor/editor-card/item-color-selector.d.ts +0 -5
- package/dist/src/modules/survey-editor/editor-card/item-editor-card-skeleton.d.ts +0 -2
- package/dist/src/modules/survey-editor/editor-card/item-editor-card.d.ts +0 -34
- package/dist/src/modules/survey-editor/editor-card/item-editor-context.d.ts +0 -23
- package/dist/src/modules/survey-editor/editor-card/item-expression-overview.d.ts +0 -33
- package/dist/src/modules/survey-editor/editor-card/item-key-editor.d.ts +0 -9
- package/dist/src/modules/survey-editor/editor-card/item-label-preview-and-editor.d.ts +0 -10
- package/dist/src/modules/survey-editor/editor-card/item-preview.d.ts +0 -8
- package/dist/src/modules/survey-editor/editor-card/item-sibling-navigation.d.ts +0 -5
- package/dist/src/modules/survey-editor/editor-card/item-type-icon-with-tooltip.d.ts +0 -8
- package/dist/src/modules/survey-editor/editor-card/survey-player-item-preview.d.ts +0 -6
- package/dist/src/modules/survey-editor/editor-instance-provider.d.ts +0 -9
- package/dist/src/modules/survey-editor/hooks/useClipboardValue.d.ts +0 -2
- package/dist/src/modules/survey-editor/hooks/useDeleteItem.d.ts +0 -11
- package/dist/src/modules/survey-editor/hooks/useEditor.d.ts +0 -12
- package/dist/src/modules/survey-editor/hooks/useEditorStateChange.d.ts +0 -18
- package/dist/src/modules/survey-editor/hooks/useKeyboardShortcuts.d.ts +0 -7
- package/dist/src/modules/survey-editor/index.d.ts +0 -20
- package/dist/src/modules/survey-editor/localization/date-fns.d.ts +0 -5
- package/dist/src/modules/survey-editor/localization/default-all.d.ts +0 -2
- package/dist/src/modules/survey-editor/localization/default-en.d.ts +0 -3
- package/dist/src/modules/survey-editor/localization/default-nl.d.ts +0 -2
- package/dist/src/modules/survey-editor/localization/index.d.ts +0 -5
- package/dist/src/modules/survey-editor/localization/runtime.d.ts +0 -4
- package/dist/src/modules/survey-editor/navigation/location.d.ts +0 -6
- package/dist/src/modules/survey-editor/navigation/navigation-provider.d.ts +0 -12
- package/dist/src/modules/survey-editor/navigation/navigation.d.ts +0 -22
- package/dist/src/modules/survey-editor/navigation/types.d.ts +0 -23
- package/dist/src/modules/survey-editor/primitives/input-with-ai-popover.d.ts +0 -35
- package/dist/src/modules/survey-editor/registry/authoring-state.d.ts +0 -17
- package/dist/src/modules/survey-editor/registry/index.d.ts +0 -8
- package/dist/src/modules/survey-editor/registry/registry-mappers.d.ts +0 -25
- package/dist/src/modules/survey-editor/registry/search-adapter.d.ts +0 -19
- package/dist/src/modules/survey-editor/registry/types.d.ts +0 -218
- package/dist/src/modules/survey-editor/routes/editor/_components/assistant-authoring-lock.d.ts +0 -7
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot-context.d.ts +0 -6
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot.d.ts +0 -8
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-mode-switch.d.ts +0 -7
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-workspace.d.ts +0 -30
- package/dist/src/modules/survey-editor/routes/editor/_components/footer.d.ts +0 -2
- package/dist/src/modules/survey-editor/routes/editor/_components/history-stack.d.ts +0 -2
- package/dist/src/modules/survey-editor/routes/editor/_components/main.d.ts +0 -7
- package/dist/src/modules/survey-editor/routes/editor/_components/workspace-presets.d.ts +0 -75
- package/dist/src/modules/survey-editor/routes/editor/asset-manager/index.d.ts +0 -2
- package/dist/src/modules/survey-editor/routes/editor/index.d.ts +0 -7
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/breadcrumbs-nav.d.ts +0 -2
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/item-editor-toolbar.d.ts +0 -6
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/language-picker.d.ts +0 -2
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/search-trigger.d.ts +0 -3
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/survey-search.d.ts +0 -7
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-outline.d.ts +0 -3
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-workspace.d.ts +0 -12
- package/dist/src/modules/survey-editor/routes/editor/item-editor/index.d.ts +0 -6
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/index.d.ts +0 -7
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/page-break-divider.d.ts +0 -6
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-controls.d.ts +0 -15
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-tree.d.ts +0 -26
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-canvas.d.ts +0 -16
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-item.d.ts +0 -13
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/use-preview-preferences.d.ts +0 -14
- package/dist/src/modules/survey-editor/routes/editor/translation-mode/index.d.ts +0 -2
- package/dist/src/modules/survey-editor/session-file.d.ts +0 -13
- package/dist/src/modules/survey-editor/store/editor-store-context.d.ts +0 -10
- package/dist/src/modules/survey-editor/store/editor-store-provider.d.ts +0 -7
- package/dist/src/modules/survey-editor/store/editor-store.d.ts +0 -109
- package/dist/src/modules/survey-editor/store/use-editor-store.d.ts +0 -4
- package/dist/src/modules/survey-editor/store/useItemNavigation.d.ts +0 -7
- package/dist/src/modules/survey-editor/survey-editor-config.d.ts +0 -38
- package/dist/src/modules/survey-editor/survey-editor.d.ts +0 -40
- package/dist/src/modules/survey-editor/utils/item-type-infos.d.ts +0 -23
- package/dist/src/modules/survey-editor/workspace.d.ts +0 -17
- package/dist/src/modules/survey-player/survey-item/survey-item-types/question-wrapper.d.ts +0 -5
- package/dist/survey-editor-animations.css +0 -87
- package/dist/survey-editor-animations.css.d.ts +0 -2
- package/dist/survey-editor-defaults.css +0 -15
- package/dist/survey-editor-defaults.css.d.ts +0 -2
- package/dist/survey-ui.cjs.js +0 -199
- package/dist/survey-ui.cjs.js.map +0 -1
- package/dist/survey-ui.es.js +0 -57954
- package/dist/survey-ui.es.js.map +0 -1
- package/dist/vite.svg +0 -1
- /package/dist/src/{components/rich-text/rich-text-link-utils.d.ts → lib/rich-text-link-url.d.ts} +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ItemTypeOption } from '../types';
|
|
2
|
-
interface BlankItemViewProps {
|
|
3
|
-
search: string;
|
|
4
|
-
onSearchChange: (value: string) => void;
|
|
5
|
-
hasValidClipboardItem: boolean;
|
|
6
|
-
onPasteFromClipboard: () => void;
|
|
7
|
-
groupedOptions: Array<[string, ItemTypeOption[]]>;
|
|
8
|
-
getCategoryLabel: (category: string) => string;
|
|
9
|
-
onSelectOption: (option: ItemTypeOption) => void;
|
|
10
|
-
onBack: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare function BlankItemView({ search, onSearchChange, hasValidClipboardItem, onPasteFromClipboard, groupedOptions, getCategoryLabel, onSelectOption, onBack, }: BlankItemViewProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FocusEvent as ReactFocusEvent, KeyboardEvent as ReactKeyboardEvent, RefObject } from 'react';
|
|
2
|
-
import { EntryOption } from '../types';
|
|
3
|
-
interface EntryViewProps {
|
|
4
|
-
options: EntryOption[];
|
|
5
|
-
optionGroupRef: RefObject<HTMLDivElement | null>;
|
|
6
|
-
activeIndex: number;
|
|
7
|
-
isFocused: boolean;
|
|
8
|
-
setActiveIndex: (index: number) => void;
|
|
9
|
-
onGroupFocus: () => void;
|
|
10
|
-
onGroupBlur: (event: ReactFocusEvent<HTMLDivElement>) => void;
|
|
11
|
-
onGroupKeyDown: (event: ReactKeyboardEvent<HTMLDivElement>) => void;
|
|
12
|
-
onSelectOption: (option: EntryOption) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function EntryView({ options, optionGroupRef, activeIndex, isFocused, setActiveIndex, onGroupFocus, onGroupBlur, onGroupKeyDown, onSelectOption, }: EntryViewProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FocusEvent as ReactFocusEvent, KeyboardEvent as ReactKeyboardEvent, RefObject } from 'react';
|
|
2
|
-
import { ItemTypeOption } from '../types';
|
|
3
|
-
export interface ItemTypeGridSection {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
options: ItemTypeOption[];
|
|
7
|
-
}
|
|
8
|
-
interface ItemTypeGridViewProps {
|
|
9
|
-
search: string;
|
|
10
|
-
searchInputRef: RefObject<HTMLInputElement | null>;
|
|
11
|
-
searchPlaceholder: string;
|
|
12
|
-
recentLabel: string;
|
|
13
|
-
recentOptions: ItemTypeOption[];
|
|
14
|
-
sections: ItemTypeGridSection[];
|
|
15
|
-
optionGroupRef: RefObject<HTMLDivElement | null>;
|
|
16
|
-
activeIndex: number;
|
|
17
|
-
isFocused: boolean;
|
|
18
|
-
setActiveIndex: (index: number) => void;
|
|
19
|
-
onSearchChange: (search: string) => void;
|
|
20
|
-
onMoveFocusToGrid: () => void;
|
|
21
|
-
onGroupFocus: () => void;
|
|
22
|
-
onGroupBlur: (event: ReactFocusEvent<HTMLDivElement>) => void;
|
|
23
|
-
onGroupKeyDown: (event: ReactKeyboardEvent<HTMLDivElement>) => void;
|
|
24
|
-
onSelectOption: (option: ItemTypeOption) => void;
|
|
25
|
-
emptyMessage: string;
|
|
26
|
-
gridLabel: string;
|
|
27
|
-
fullScreen: boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare function ItemTypeGridView({ search, searchInputRef, searchPlaceholder, recentLabel, recentOptions, sections, optionGroupRef, activeIndex, isFocused, setActiveIndex, onSearchChange, onMoveFocusToGrid, onGroupFocus, onGroupBlur, onGroupKeyDown, onSelectOption, emptyMessage, gridLabel, fullScreen, }: ItemTypeGridViewProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FocusEvent as ReactFocusEvent, KeyboardEvent as ReactKeyboardEvent, RefObject } from 'react';
|
|
2
|
-
import { ItemTypeOption } from '../types';
|
|
3
|
-
interface StructureViewProps {
|
|
4
|
-
options: ItemTypeOption[];
|
|
5
|
-
optionGroupRef: RefObject<HTMLDivElement | null>;
|
|
6
|
-
activeIndex: number;
|
|
7
|
-
isFocused: boolean;
|
|
8
|
-
setActiveIndex: (index: number) => void;
|
|
9
|
-
onGroupFocus: () => void;
|
|
10
|
-
onGroupBlur: (event: ReactFocusEvent<HTMLDivElement>) => void;
|
|
11
|
-
onGroupKeyDown: (event: ReactKeyboardEvent<HTMLDivElement>) => void;
|
|
12
|
-
onSelectOption: (option: ItemTypeOption) => void;
|
|
13
|
-
onBack: () => void;
|
|
14
|
-
}
|
|
15
|
-
export declare function StructureView({ options, optionGroupRef, activeIndex, isFocused, setActiveIndex, onGroupFocus, onGroupBlur, onGroupKeyDown, onSelectOption, onBack, }: StructureViewProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const AddItemDialog: React.FC;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface DeleteItemDropdownMenuItemProps {
|
|
2
|
-
overrideItemId?: string;
|
|
3
|
-
afterDeleteItemId?: string | null;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const DeleteItemDropdownMenuItem: ({ overrideItemId, afterDeleteItemId, disabled, }: DeleteItemDropdownMenuItemProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
interface EditorCardTabTriggerProps {
|
|
3
|
-
value: string;
|
|
4
|
-
label: string;
|
|
5
|
-
icon: LucideIcon;
|
|
6
|
-
isActive: boolean;
|
|
7
|
-
colorAccent: string;
|
|
8
|
-
colorBorder: string;
|
|
9
|
-
showShortcutNumber: boolean;
|
|
10
|
-
shortcutNumber: number;
|
|
11
|
-
hasIndicator?: boolean;
|
|
12
|
-
indicatorCount?: number;
|
|
13
|
-
}
|
|
14
|
-
declare const EditorCardTabTrigger: React.FC<EditorCardTabTriggerProps>;
|
|
15
|
-
export default EditorCardTabTrigger;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Expression } from '@case-framework/survey-core';
|
|
2
|
-
export interface ExpressionPseudoCodeOptions {
|
|
3
|
-
maxInlineLength?: number;
|
|
4
|
-
resolveItemKey?: (itemId: string) => string | undefined;
|
|
5
|
-
resolveReferenceValue?: (referenceId: string) => string | undefined;
|
|
6
|
-
}
|
|
7
|
-
/** Converts every supported CASE expression tree into stable, read-only pseudo-code. */
|
|
8
|
-
export declare function formatExpressionPseudoCode(expression: Expression, options?: ExpressionPseudoCodeOptions): string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface ArmedShortcutSequenceOptions {
|
|
2
|
-
armKey: string;
|
|
3
|
-
enabled?: boolean;
|
|
4
|
-
maxIndex?: number;
|
|
5
|
-
timeoutMs?: number;
|
|
6
|
-
onSelectIndex: (index: number) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const useArmedShortcutSequence: ({ armKey, enabled, maxIndex, timeoutMs, onSelectIndex, }: ArmedShortcutSequenceOptions) => {
|
|
9
|
-
isArmed: boolean;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { RefObject, KeyboardEvent as ReactKeyboardEvent } from 'react';
|
|
2
|
-
import { SurveyItemClipboardData } from '@case-framework/survey-core/editor';
|
|
3
|
-
interface UseGroupListKeyboardParams {
|
|
4
|
-
addItemDialogOpen: boolean;
|
|
5
|
-
containerRef: RefObject<HTMLElement | null>;
|
|
6
|
-
groupId: string | null | undefined;
|
|
7
|
-
itemIds: string[];
|
|
8
|
-
clipboardValue: string | null;
|
|
9
|
-
previewItemId: string | null;
|
|
10
|
-
openAddDialogForCurrentGroup: () => void;
|
|
11
|
-
openFocusedItem: (itemId: string) => void;
|
|
12
|
-
selectPreviewItem: (itemId: string) => void;
|
|
13
|
-
moveItemByOffset: (itemId: string, offset: -1 | 1) => boolean;
|
|
14
|
-
parseSurveyItemClipboard: (value: string | null) => SurveyItemClipboardData | null;
|
|
15
|
-
pasteItemFromClipboardData: (clipboardData: SurveyItemClipboardData, parentId: string) => string | null;
|
|
16
|
-
onPasteCommitted: (newItemId: string) => void;
|
|
17
|
-
copyItemToClipboard: (itemId: string) => void;
|
|
18
|
-
}
|
|
19
|
-
export declare const useGroupListKeyboard: ({ addItemDialogOpen, containerRef, groupId, itemIds, clipboardValue, previewItemId, openAddDialogForCurrentGroup, openFocusedItem, selectPreviewItem, moveItemByOffset, parseSurveyItemClipboard, pasteItemFromClipboardData, onPasteCommitted, copyItemToClipboard, }: UseGroupListKeyboardParams) => {
|
|
20
|
-
getItemButtonProps: (itemId: string) => {
|
|
21
|
-
"data-group-list-target": string;
|
|
22
|
-
"data-group-list-item-id": string;
|
|
23
|
-
onFocus: () => void;
|
|
24
|
-
};
|
|
25
|
-
getAddButtonProps: () => {
|
|
26
|
-
"data-group-list-target": string;
|
|
27
|
-
};
|
|
28
|
-
onListKeyDown: (event: ReactKeyboardEvent<HTMLElement>) => void;
|
|
29
|
-
};
|
|
30
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ItemAuthoringState } from '../../../../modules/survey-editor/registry';
|
|
3
|
-
interface ItemAuthoringStatePreviewProps {
|
|
4
|
-
state: ItemAuthoringState;
|
|
5
|
-
itemTypeLabel: string;
|
|
6
|
-
onEdit?: () => void;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function ItemAuthoringStatePreview({ state, itemTypeLabel, onEdit, className, }: ItemAuthoringStatePreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
interface IncompleteItemPreviewFrameProps {
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
onEdit?: () => void;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function IncompleteItemPreviewFrame({ children, onEdit, className, }: IncompleteItemPreviewFrameProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
interface ItemColorMenuProps {
|
|
2
|
-
itemId: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const DropdownItemColorMenu: ({ itemId }: ItemColorMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const ContextItemColorMenu: ({ itemId }: ItemColorMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { SurveyItemCore } from '@case-framework/survey-core';
|
|
3
|
-
import { LucideIcon } from 'lucide-react';
|
|
4
|
-
export interface CommonItemEditorCardProps {
|
|
5
|
-
item: SurveyItemCore;
|
|
6
|
-
}
|
|
7
|
-
interface NavItem {
|
|
8
|
-
id: string;
|
|
9
|
-
label: string;
|
|
10
|
-
icon: LucideIcon;
|
|
11
|
-
hasIndicator?: boolean;
|
|
12
|
-
indicatorCount?: number;
|
|
13
|
-
}
|
|
14
|
-
interface SidePanelCard {
|
|
15
|
-
id: string;
|
|
16
|
-
title: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
icon: LucideIcon;
|
|
19
|
-
content?: ReactNode;
|
|
20
|
-
headerAction?: ReactNode;
|
|
21
|
-
}
|
|
22
|
-
interface ItemEditorCardProps {
|
|
23
|
-
surveyItem: SurveyItemCore;
|
|
24
|
-
menu: {
|
|
25
|
-
items: ReactNode[];
|
|
26
|
-
hideDeleteItem?: boolean;
|
|
27
|
-
};
|
|
28
|
-
navItems?: NavItem[];
|
|
29
|
-
layoutVariant?: "tabs" | "stacked";
|
|
30
|
-
sidePanelCards?: SidePanelCard[];
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
}
|
|
33
|
-
declare const ItemEditorCard: React.FC<ItemEditorCardProps>;
|
|
34
|
-
export default ItemEditorCard;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface ItemEditorContextType {
|
|
3
|
-
addItemDialogOpen: boolean;
|
|
4
|
-
setAddItemDialogOpen: (open: boolean) => void;
|
|
5
|
-
openAddItemDialog: (targetParentId?: string, targetIndex?: number, pendingItemType?: string) => void;
|
|
6
|
-
closeAddItemDialog: () => void;
|
|
7
|
-
targetParentId: string | undefined;
|
|
8
|
-
targetIndex: number | undefined;
|
|
9
|
-
pendingItemType: string | undefined;
|
|
10
|
-
clearPendingItemType: () => void;
|
|
11
|
-
preferredPreviewItemId: string | null;
|
|
12
|
-
setPreferredPreviewItemId: (itemId: string | null) => void;
|
|
13
|
-
}
|
|
14
|
-
interface ItemEditorProviderProps {
|
|
15
|
-
children: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
export declare const ItemEditorProvider: React.FC<ItemEditorProviderProps>;
|
|
18
|
-
export declare const useItemEditor: () => ItemEditorContextType;
|
|
19
|
-
export declare const useAddItemDialog: () => {
|
|
20
|
-
openAddItemDialog: (targetParentId?: string, targetIndex?: number, pendingItemType?: string) => void;
|
|
21
|
-
closeAddItemDialog: () => void;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Expression, SurveyItemCore } from '@case-framework/survey-core';
|
|
2
|
-
export type ItemExpressionScope = "conditions" | "prefills" | "all";
|
|
3
|
-
interface ItemExpressionEntry {
|
|
4
|
-
id: string;
|
|
5
|
-
category: "display" | "disabled" | "validation" | "prefill-condition" | "prefill-value";
|
|
6
|
-
target?: string;
|
|
7
|
-
expression: Expression;
|
|
8
|
-
}
|
|
9
|
-
export declare function getItemExpressionEntries(item: SurveyItemCore, scope?: ItemExpressionScope): ItemExpressionEntry[];
|
|
10
|
-
export declare function countItemExpressions(item: SurveyItemCore, scope?: ItemExpressionScope): number;
|
|
11
|
-
interface ExpressionIconButtonProps {
|
|
12
|
-
expression: Expression;
|
|
13
|
-
title: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
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/jsx-runtime").JSX.Element;
|
|
18
|
-
interface ItemExpressionsDialogButtonProps {
|
|
19
|
-
item: SurveyItemCore;
|
|
20
|
-
title: string;
|
|
21
|
-
className?: string;
|
|
22
|
-
scope?: ItemExpressionScope;
|
|
23
|
-
}
|
|
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/jsx-runtime").JSX.Element;
|
|
26
|
-
interface ItemExpressionOverviewProps {
|
|
27
|
-
item: SurveyItemCore;
|
|
28
|
-
scope?: ItemExpressionScope;
|
|
29
|
-
className?: string;
|
|
30
|
-
compact?: boolean;
|
|
31
|
-
}
|
|
32
|
-
export declare function ItemExpressionOverview({ item, scope, className, compact, }: ItemExpressionOverviewProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SurveyItemKey } from '@case-framework/survey-core';
|
|
2
|
-
interface ItemKeyEditorProps {
|
|
3
|
-
itemId: string;
|
|
4
|
-
currentItemKey?: SurveyItemKey;
|
|
5
|
-
siblingKeys: string[];
|
|
6
|
-
onChangeItemKey: (newKey: string) => void;
|
|
7
|
-
}
|
|
8
|
-
declare const ItemKeyEditor: (props: ItemKeyEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default ItemKeyEditor;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface ItemLabelPreviewAndEditorProps {
|
|
2
|
-
itemId: string;
|
|
3
|
-
itemType: string;
|
|
4
|
-
itemLabel: string;
|
|
5
|
-
maxSuggestions?: number;
|
|
6
|
-
className?: string;
|
|
7
|
-
onChangeItemLabel: (newLabel: string) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const ItemLabelPreviewAndEditor: React.FC<ItemLabelPreviewAndEditorProps>;
|
|
10
|
-
export default ItemLabelPreviewAndEditor;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SurveyItemCore } from '@case-framework/survey-core';
|
|
2
|
-
import { ItemPreviewMode } from '../../../../modules/survey-editor/registry';
|
|
3
|
-
interface ItemPreviewProps {
|
|
4
|
-
item: SurveyItemCore | undefined;
|
|
5
|
-
mode?: ItemPreviewMode;
|
|
6
|
-
}
|
|
7
|
-
declare const ItemPreview: ({ item, mode }: ItemPreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default ItemPreview;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ItemTypeInfos } from '../../../../modules/survey-editor/utils/item-type-infos';
|
|
2
|
-
interface ItemTypeIconWithTooltipProps {
|
|
3
|
-
typeInfos: ItemTypeInfos;
|
|
4
|
-
color?: string;
|
|
5
|
-
iconClassName?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const ItemTypeIconWithTooltip: ({ typeInfos, color, iconClassName, }: ItemTypeIconWithTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default ItemTypeIconWithTooltip;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { SurveyEditorNavigationAdapter } from './navigation/types';
|
|
3
|
-
import { SurveyEditorWorkspace } from './workspace';
|
|
4
|
-
interface EditorInstanceProviderProps extends PropsWithChildren {
|
|
5
|
-
navigationAdapter?: SurveyEditorNavigationAdapter | null;
|
|
6
|
-
workspace?: SurveyEditorWorkspace;
|
|
7
|
-
}
|
|
8
|
-
export declare const EditorInstanceProvider: React.FC<EditorInstanceProviderProps>;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface UseDeleteItemOptions {
|
|
2
|
-
itemId?: string;
|
|
3
|
-
/** `null` clears focus. `undefined` preserves the default parent-navigation behavior. */
|
|
4
|
-
afterDeleteItemId?: string | null;
|
|
5
|
-
}
|
|
6
|
-
export declare function useDeleteItem(options?: UseDeleteItemOptions): {
|
|
7
|
-
itemId: string | undefined;
|
|
8
|
-
canDelete: boolean;
|
|
9
|
-
deleteItem: () => Promise<void>;
|
|
10
|
-
};
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SurveyEditor } from '@case-framework/survey-core/editor';
|
|
2
|
-
import { Survey } from '@case-framework/survey-core';
|
|
3
|
-
/**
|
|
4
|
-
* Returns the current SurveyEditor instance. Use when you need the full editor API.
|
|
5
|
-
*/
|
|
6
|
-
export declare function useEditor(): SurveyEditor | null;
|
|
7
|
-
/**
|
|
8
|
-
* Returns the current Survey from the editor. Use when you only need survey data (items, translations, etc.).
|
|
9
|
-
* Uses changeTick + useMemo to avoid infinite loops: SurveyEditor.survey getter returns a new instance
|
|
10
|
-
* on every access, which would otherwise make getSnapshot return a new ref each time.
|
|
11
|
-
*/
|
|
12
|
-
export declare function useEditorSurvey(): Survey | null;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SerializedSurveyEditor, SurveyEditorHistoryCommit, SurveyEditor as SurveyEditorCore } from '@case-framework/survey-core/editor';
|
|
2
|
-
export interface EditorStateChangePayload {
|
|
3
|
-
sessionId: string | null;
|
|
4
|
-
state: SerializedSurveyEditor;
|
|
5
|
-
revision: number;
|
|
6
|
-
hasUncommittedChanges: boolean;
|
|
7
|
-
commitsSinceInitial: SurveyEditorHistoryCommit[];
|
|
8
|
-
at: number;
|
|
9
|
-
}
|
|
10
|
-
interface UseEditorStateChangeOptions {
|
|
11
|
-
sessionId: string | null;
|
|
12
|
-
editor: SurveyEditorCore | null;
|
|
13
|
-
changeTick: number;
|
|
14
|
-
persistDebounceMs: number;
|
|
15
|
-
onEditorStateChange?: (change: EditorStateChangePayload) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare function useEditorStateChange({ sessionId, editor, changeTick, persistDebounceMs, onEditorStateChange, }: UseEditorStateChangeOptions): void;
|
|
18
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { SurveyEditor } from './survey-editor';
|
|
2
|
-
export type { SurveyEditorProps, SurveyEditorStateChange } from './survey-editor';
|
|
3
|
-
export type { SurveyEditorWorkspace, SurveyEditorWorkspacePanelOptions } from './workspace';
|
|
4
|
-
export * from './assistant';
|
|
5
|
-
export { createSnapshotSurveyEditorAIProvider, type CreateSnapshotSurveyEditorAIProviderOptions, type SurveyEditorAITaskCacheOptions, type SurveyEditorAITaskExecution, type SurveyEditorAITaskExecutor, } from './ai/create-provider';
|
|
6
|
-
export { useSurveyEditorAssistantIntegration, type UseSurveyEditorAssistantIntegrationOptions, } from './ai/use-survey-assistant-integration';
|
|
7
|
-
export { EditorInstanceProvider } from './editor-instance-provider';
|
|
8
|
-
export { useEditorDateLocale, useEditorTranslation } from './survey-editor-config';
|
|
9
|
-
export type { SurveyEditorNavigationAdapter, SurveyEditorLocation } from './navigation/types';
|
|
10
|
-
export { DEFAULT_EDITOR_LANGUAGE, DEFAULT_DATE_FNS_LOCALES, defaultSurveyEditorLocalizations, getDateFnsLocale, mergeDateFnsLocales, mergeEditorLocalizations, surveyEditorEnMessages, surveyEditorNlMessages, } from './localization';
|
|
11
|
-
export type { SurveyEditorAIProvider, SurveyAIRequestOptions } from './ai/types';
|
|
12
|
-
export * from './registry';
|
|
13
|
-
export { buildSurveyFileName, createBlankEditorState, createEditorStateFromRawSurvey, parseEditorStateFromJsonText, serializeSurveyStateForFile, type ParsedSurveySession, type ParsedSurveySessionFormat, } from './session-file';
|
|
14
|
-
export { DEFAULT_BLOCK_CONTENT_POLICY, DEFAULT_COMPACT_CONTENT_POLICY, RichTextBlockEditor, RichTextContentView, createRichTextEditorValueFromContent, createRichTextEditorValueFromText, getRichTextContentFromEditorState, isBlockContentPolicyVariant, mergeRichTextContentPolicy, sanitizeContentForPolicy, } from '../../../components/rich-text';
|
|
15
|
-
export { RichTextEditor, createRichTextEditorValueFromPlainText, } from '../../../components/rich-text-editor';
|
|
16
|
-
export { APPLY_RICH_TEXT_STYLE_COMMAND, CONVERT_RICH_TEXT_LINK_TO_TEXT_COMMAND, INSERT_RICH_TEXT_LINK_COMMAND, INSERT_RICH_TEXT_TEMPLATE_VARIABLE_COMMAND, OPEN_RICH_TEXT_LINK_EDITOR_COMMAND, TemplateVariableNode, UPDATE_RICH_TEXT_LINK_COMMAND, } from '../../../components/rich-text-editor';
|
|
17
|
-
export { SurveyImageAssetManager, useSurveyAssets, useSurveyImageAssets, useUnusedSurveyAssetCount, } from './assets';
|
|
18
|
-
export type { RichTextBlockEditorChange, RichTextBlockEditorProps, RichTextContentPolicy, RichTextContentViewProps, RichTextEditorVariant, RichTextStyleAttribute, RichTextSupportedBlockType, } from '../../../components/rich-text';
|
|
19
|
-
export type { RichTextEditorChange, RichTextEditorProps, RichTextLinkPayload, SerializedRichTextLinkNode, RichTextStyleControl, RichTextTemplateVariable, SerializedTemplateVariableNode, } from '../../../components/rich-text-editor';
|
|
20
|
-
export type { SurveyImageAssetManagerProps } from './assets';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Locale } from 'date-fns/locale';
|
|
2
|
-
export type SurveyEditorDateLocales = Record<string, Locale>;
|
|
3
|
-
export declare const DEFAULT_DATE_FNS_LOCALES: SurveyEditorDateLocales;
|
|
4
|
-
export declare const mergeDateFnsLocales: (...sources: Array<SurveyEditorDateLocales | undefined>) => SurveyEditorDateLocales;
|
|
5
|
-
export declare const getDateFnsLocale: (language: string, dateLocales?: SurveyEditorDateLocales) => Locale;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { DEFAULT_EDITOR_LANGUAGE, surveyEditorEnMessages } from './default-en';
|
|
2
|
-
export { defaultSurveyEditorLocalizations } from './default-all';
|
|
3
|
-
export { surveyEditorNlMessages } from './default-nl';
|
|
4
|
-
export { createEditorTranslator, createNamespacedEditorTranslator, mergeEditorLocalizations, } from './runtime';
|
|
5
|
-
export { DEFAULT_DATE_FNS_LOCALES, getDateFnsLocale, mergeDateFnsLocales } from './date-fns';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { LocalizationCatalog, LocalizationTranslate } from '@case-framework/ui-localization';
|
|
2
|
-
export declare const mergeEditorLocalizations: (...sources: Array<LocalizationCatalog | undefined>) => LocalizationCatalog;
|
|
3
|
-
export declare const createEditorTranslator: (language: string, localizations: LocalizationCatalog) => LocalizationTranslate;
|
|
4
|
-
export declare const createNamespacedEditorTranslator: (translate: LocalizationTranslate, namespace?: string) => LocalizationTranslate;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SurveyEditorLocation } from './types';
|
|
2
|
-
export type ItemFocusedSurveyEditorLocation = Exclude<SurveyEditorLocation, {
|
|
3
|
-
view: "asset-manager";
|
|
4
|
-
}>;
|
|
5
|
-
export declare const surveyEditorLocationSupportsItemFocus: (location: SurveyEditorLocation) => location is ItemFocusedSurveyEditorLocation;
|
|
6
|
-
export declare const getSurveyEditorFocusedItemId: (location: SurveyEditorLocation) => string | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { StoreApi } from 'zustand';
|
|
3
|
-
import { SurveyEditorNavigationStore } from './navigation';
|
|
4
|
-
import { SurveyEditorLocation, SurveyEditorNavigationAdapter } from './types';
|
|
5
|
-
interface SurveyEditorNavigationStoreProviderProps extends PropsWithChildren {
|
|
6
|
-
adapter?: SurveyEditorNavigationAdapter | null;
|
|
7
|
-
initialLocation?: SurveyEditorLocation;
|
|
8
|
-
}
|
|
9
|
-
export declare const SurveyEditorNavigationStoreProvider: React.FC<SurveyEditorNavigationStoreProviderProps>;
|
|
10
|
-
export declare function useSurveyEditorNavigationStore<T>(selector: (state: SurveyEditorNavigationStore) => T): T;
|
|
11
|
-
export declare function useSurveyEditorNavigationStoreApi(): StoreApi<SurveyEditorNavigationStore>;
|
|
12
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SurveyEditorLocation, SurveyEditorNavigationAdapter } from './types';
|
|
2
|
-
import { StoreApi } from 'zustand';
|
|
3
|
-
export interface SurveyEditorAssistantHighlight {
|
|
4
|
-
kind: string;
|
|
5
|
-
itemId?: string;
|
|
6
|
-
componentId?: string;
|
|
7
|
-
label?: string;
|
|
8
|
-
details?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface SurveyEditorNavigationStore {
|
|
11
|
-
location: SurveyEditorLocation;
|
|
12
|
-
history: SurveyEditorLocation[];
|
|
13
|
-
assistantHighlights: Record<string, SurveyEditorAssistantHighlight>;
|
|
14
|
-
adapter: SurveyEditorNavigationAdapter | null;
|
|
15
|
-
_adapterUnsubscribe?: () => void;
|
|
16
|
-
setAdapter: (adapter: SurveyEditorNavigationAdapter) => void;
|
|
17
|
-
clearAdapter: () => void;
|
|
18
|
-
navigate: (location: SurveyEditorLocation, replace?: boolean) => void;
|
|
19
|
-
setAssistantHighlight: (source: string, highlight?: SurveyEditorAssistantHighlight) => void;
|
|
20
|
-
}
|
|
21
|
-
export type SurveyEditorNavigationStoreApi = StoreApi<SurveyEditorNavigationStore>;
|
|
22
|
-
export declare function createSurveyEditorNavigationStore(initialLocation?: SurveyEditorLocation): SurveyEditorNavigationStoreApi;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface ItemEditorLocation {
|
|
2
|
-
view: "item-editor";
|
|
3
|
-
itemId?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface TranslationModeLocation {
|
|
6
|
-
view: "translation-mode";
|
|
7
|
-
itemId?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface PreviewModeLocation {
|
|
10
|
-
view: "preview-mode";
|
|
11
|
-
itemId?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface AssetManagerLocation {
|
|
14
|
-
view: "asset-manager";
|
|
15
|
-
}
|
|
16
|
-
export type SurveyEditorLocation = ItemEditorLocation | PreviewModeLocation | TranslationModeLocation | AssetManagerLocation;
|
|
17
|
-
export interface SurveyEditorNavigationAdapter {
|
|
18
|
-
getLocation: () => SurveyEditorLocation;
|
|
19
|
-
navigateTo: (location: SurveyEditorLocation, options?: {
|
|
20
|
-
replace?: boolean;
|
|
21
|
-
}) => void;
|
|
22
|
-
subscribe(listener: (location: SurveyEditorLocation) => void): () => void;
|
|
23
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FocusEvent, KeyboardEvent } from 'react';
|
|
2
|
-
import { SurveyAssistantTaskInvocationMode } from '@case-framework/survey-assistant/protocol';
|
|
3
|
-
export interface InputWithAISuggestion {
|
|
4
|
-
id: string;
|
|
5
|
-
text: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface InputWithAISuggestionsAdapter {
|
|
9
|
-
minChars?: number;
|
|
10
|
-
debounceMs?: number;
|
|
11
|
-
maxSuggestions?: number;
|
|
12
|
-
onSuggest: (input: string, trigger: "typing" | "manual", options?: {
|
|
13
|
-
signal?: AbortSignal;
|
|
14
|
-
mode?: SurveyAssistantTaskInvocationMode;
|
|
15
|
-
}) => Promise<InputWithAISuggestion[]>;
|
|
16
|
-
}
|
|
17
|
-
interface InputWithAIPopoverProps {
|
|
18
|
-
value: string;
|
|
19
|
-
placeholder: string;
|
|
20
|
-
className?: string;
|
|
21
|
-
containerClassName?: string;
|
|
22
|
-
aiButtonClassName?: string;
|
|
23
|
-
popoverContentClassName?: string;
|
|
24
|
-
id?: string;
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
autoFocus?: boolean;
|
|
27
|
-
autoComplete?: string;
|
|
28
|
-
maxSuggestions?: number;
|
|
29
|
-
suggestionsAdapter?: InputWithAISuggestionsAdapter | null;
|
|
30
|
-
onChange: (value: string) => void;
|
|
31
|
-
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
32
|
-
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
33
|
-
}
|
|
34
|
-
declare const InputWithAIPopover: (props: InputWithAIPopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export default InputWithAIPopover;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SurveyItemCore, SurveyItemTranslations } from '@case-framework/survey-core';
|
|
2
|
-
import { EditorItemDefinition, ItemAuthoringState } from './types';
|
|
3
|
-
interface GetItemAuthoringStateOptions {
|
|
4
|
-
item: SurveyItemCore;
|
|
5
|
-
definition?: EditorItemDefinition;
|
|
6
|
-
itemContent?: SurveyItemTranslations;
|
|
7
|
-
locales: string[];
|
|
8
|
-
locale: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Conservative fallback for item types without content-aware readiness rules.
|
|
12
|
-
* Built-in items provide content-aware rules; third-party item types can use
|
|
13
|
-
* modification metadata until they define their own readiness criteria.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getDefaultItemAuthoringState(item: SurveyItemCore): ItemAuthoringState;
|
|
16
|
-
export declare function getItemAuthoringState({ item, definition, itemContent, locales, locale, }: GetItemAuthoringStateOptions): ItemAuthoringState;
|
|
17
|
-
export {};
|