@case-framework/survey-editor-ui 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/rich-text-editor/plugins/block-shortcut-plugin.d.ts +7 -0
- package/dist/src/components/rich-text-editor/rich-text-editor-utils.d.ts +22 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/deferred-localized-rich-text-field.d.ts +4 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/constants.d.ts +0 -2
- package/dist/src/modules/survey-editor/editor-card/add-items/types.d.ts +0 -9
- package/dist/src/modules/survey-editor/preview-viewport-toggle.d.ts +11 -0
- package/dist/src/modules/survey-editor/preview-viewport.d.ts +15 -0
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-tree.d.ts +1 -2
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/use-preview-preferences.d.ts +2 -1
- 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 +1 -1
- package/dist/survey-editor-ui.es.js +8952 -8766
- package/dist/survey-editor-ui.es.js.map +1 -1
- package/package.json +2 -2
- 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/structure-view.d.ts +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@case-framework/survey-editor-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React Survey Editor UI and optional assistant integration for CASE surveys.",
|
|
6
6
|
"repository": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"sonner": "^2.0.7",
|
|
65
65
|
"tailwind-merge": "^3.5.0",
|
|
66
66
|
"zustand": "^5.0.12",
|
|
67
|
-
"@case-framework/survey-ui": "0.8.
|
|
67
|
+
"@case-framework/survey-ui": "0.8.3",
|
|
68
68
|
"@case-framework/ui-localization": "0.2.1",
|
|
69
69
|
"@case-framework/survey-assistant": "0.2.3"
|
|
70
70
|
},
|
|
@@ -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,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 {};
|