@case-framework/survey-editor-ui 0.3.3 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/c-ui/dot-background.d.ts +2 -2
- package/dist/src/components/rich-text/index.d.ts +1 -1
- package/dist/src/components/rich-text/rich-text-survey-content.d.ts +5 -1
- package/dist/src/components/rich-text-editor/plugins/docked-toolbar-plugin.d.ts +19 -0
- package/dist/src/components/rich-text-editor/rich-text-command-application.d.ts +4 -0
- package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +8 -1
- package/dist/src/index.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/{option-edit-dialog.d.ts → option-editor-card.d.ts} +8 -8
- package/dist/src/modules/default-item-registry/items/choice/editor/option-editor-fields.d.ts +5 -1
- package/dist/src/modules/default-item-registry/items/choice/editor/response-options-list.d.ts +4 -3
- package/dist/src/modules/default-item-registry/items/form/editor/simple-field-editor.d.ts +6 -0
- package/dist/src/modules/default-item-registry/items/form/model.d.ts +2 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/deferred-localized-rich-text-field.d.ts +3 -0
- package/dist/src/modules/survey-editor/assistant/apply.d.ts +5 -0
- package/dist/src/modules/survey-editor/assistant/index.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/add-items/constants.d.ts +2 -4
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +2 -2
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-option-group-navigation.d.ts +2 -2
- package/dist/src/modules/survey-editor/editor-card/add-items/initial-item-tree.d.ts +13 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/types.d.ts +1 -9
- package/dist/src/modules/survey-editor/editor-card/add-items/views/item-type-grid-view.d.ts +1 -8
- package/dist/src/modules/survey-editor/editor-card/item-editor-card.d.ts +2 -6
- package/dist/src/modules/survey-editor/editor-card/item-editor-context.d.ts +6 -4
- package/dist/src/modules/survey-editor/editor-card/item-key-editor.d.ts +1 -0
- package/dist/src/modules/survey-editor/editor-card/item-label-preview-and-editor.d.ts +1 -0
- package/dist/src/modules/survey-editor/editor-card/item-type-icon-with-tooltip.d.ts +2 -1
- package/dist/src/modules/survey-editor/navigation/location.d.ts +8 -0
- 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/registry/types.d.ts +26 -8
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot-context.d.ts +8 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot.d.ts +6 -2
- 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/src/modules/survey-editor/survey-editor.d.ts +3 -0
- package/dist/survey-editor-ui.cjs.js +62 -62
- 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 +13165 -11807
- package/dist/survey-editor-ui.es.js.map +1 -1
- package/package.json +13 -13
- 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.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React Survey Editor UI and optional assistant integration for CASE surveys.",
|
|
6
6
|
"repository": {
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@dnd-kit/dom": "^0.4.0",
|
|
46
46
|
"@dnd-kit/react": "^0.4.0",
|
|
47
|
-
"@lexical/extension": "^0.
|
|
48
|
-
"@lexical/link": "^0.
|
|
49
|
-
"@lexical/list": "^0.
|
|
50
|
-
"@lexical/react": "^0.
|
|
51
|
-
"@lexical/selection": "^0.
|
|
52
|
-
"@lexical/utils": "^0.
|
|
47
|
+
"@lexical/extension": "^0.49.0",
|
|
48
|
+
"@lexical/link": "^0.49.0",
|
|
49
|
+
"@lexical/list": "^0.49.0",
|
|
50
|
+
"@lexical/react": "^0.49.0",
|
|
51
|
+
"@lexical/selection": "^0.49.0",
|
|
52
|
+
"@lexical/utils": "^0.49.0",
|
|
53
53
|
"class-variance-authority": "^0.7.1",
|
|
54
54
|
"clsx": "^2.1.1",
|
|
55
55
|
"cmdk": "^1.1.1",
|
|
56
56
|
"date-fns": "^4.1.0",
|
|
57
|
-
"lexical": "^0.
|
|
57
|
+
"lexical": "^0.49.0",
|
|
58
58
|
"lucide-react": "^1.11.0",
|
|
59
59
|
"next-themes": "^0.4.6",
|
|
60
60
|
"radix-ui": "latest",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"sonner": "^2.0.7",
|
|
65
65
|
"tailwind-merge": "^3.5.0",
|
|
66
66
|
"zustand": "^5.0.12",
|
|
67
|
-
"@case-framework/survey-
|
|
68
|
-
"@case-framework/ui
|
|
69
|
-
"@case-framework/
|
|
67
|
+
"@case-framework/survey-assistant": "0.2.3",
|
|
68
|
+
"@case-framework/survey-ui": "0.8.2",
|
|
69
|
+
"@case-framework/ui-localization": "0.2.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@eslint/js": "^9.39.4",
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
"typescript-eslint": "^8.59.1",
|
|
91
91
|
"vite": "^8.0.10",
|
|
92
92
|
"vite-plugin-dts": "^4.5.4",
|
|
93
|
-
"@case-framework/survey-core": "0.6.
|
|
93
|
+
"@case-framework/survey-core": "0.6.1"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
96
|
"react": "^19.2.3",
|
|
97
97
|
"react-dom": "^19.2.3",
|
|
98
|
-
"@case-framework/survey-core": "0.6.
|
|
98
|
+
"@case-framework/survey-core": "0.6.1"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"dev": "vite",
|
|
@@ -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 {};
|