@case-framework/survey-ui 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/default-item-cores-C6VK2LFe.js +10 -0
- package/dist/default-item-cores-C6VK2LFe.js.map +1 -0
- package/dist/default-item-cores-gdu37TFX.mjs +3988 -0
- package/dist/default-item-cores-gdu37TFX.mjs.map +1 -0
- package/dist/item-core-registry.cjs.js +2 -0
- package/dist/item-core-registry.cjs.js.map +1 -0
- package/dist/item-core-registry.es.js +11 -0
- package/dist/item-core-registry.es.js.map +1 -0
- package/dist/src/components/common/sortable-tree.d.ts +59 -0
- package/dist/src/components/rich-text/rich-text-content-view.d.ts +6 -2
- package/dist/src/components/ui/dialog.d.ts +2 -1
- package/dist/src/components/ui/resizable.d.ts +7 -0
- package/dist/src/components/ui/toggle.d.ts +1 -1
- package/dist/src/dev/localizations/de.d.ts +2 -2
- package/dist/src/index.d.ts +7 -4
- package/dist/src/item-core-registry.d.ts +4 -0
- package/dist/src/modules/default-item-registry/item-authoring-state.d.ts +15 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/option-edit-dialog.d.ts +10 -3
- package/dist/src/modules/default-item-registry/items/form/model.d.ts +4 -1
- package/dist/src/modules/survey-editor/ai/create-provider.d.ts +22 -0
- package/dist/src/modules/survey-editor/ai/types.d.ts +6 -83
- package/dist/src/modules/survey-editor/ai/use-survey-assistant-integration.d.ts +16 -0
- package/dist/src/modules/survey-editor/assistant/apply.d.ts +24 -0
- package/dist/src/modules/survey-editor/assistant/index.d.ts +2 -0
- package/dist/src/modules/survey-editor/assistant/snapshot.d.ts +39 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/constants.d.ts +2 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +4 -5
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-option-group-navigation.d.ts +2 -1
- package/dist/src/modules/survey-editor/editor-card/add-items/types.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/add-items/views/item-type-grid-view.d.ts +30 -0
- package/dist/src/modules/survey-editor/editor-card/delete-item-dropdown-menu.d.ts +3 -1
- package/dist/src/modules/survey-editor/editor-card/expression-pseudo-code.d.ts +8 -0
- package/dist/src/modules/survey-editor/editor-card/hooks/use-group-list-keyboard.d.ts +1 -1
- package/dist/src/modules/survey-editor/editor-card/item-authoring-state-preview.d.ts +16 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-card.d.ts +1 -6
- package/dist/src/modules/survey-editor/editor-card/item-editor-context.d.ts +5 -2
- package/dist/src/modules/survey-editor/editor-card/item-expression-overview.d.ts +33 -0
- package/dist/src/modules/survey-editor/editor-instance-provider.d.ts +2 -0
- package/dist/src/modules/survey-editor/hooks/useDeleteItem.d.ts +2 -0
- package/dist/src/modules/survey-editor/index.d.ts +5 -2
- package/dist/src/modules/survey-editor/localization/date-fns.d.ts +1 -1
- package/dist/src/modules/survey-editor/localization/default-all.d.ts +2 -2
- package/dist/src/modules/survey-editor/localization/default-en.d.ts +2 -2
- package/dist/src/modules/survey-editor/localization/default-nl.d.ts +2 -2
- package/dist/src/modules/survey-editor/localization/index.d.ts +0 -2
- package/dist/src/modules/survey-editor/localization/runtime.d.ts +4 -4
- package/dist/src/modules/survey-editor/navigation/location.d.ts +6 -0
- package/dist/src/modules/survey-editor/navigation/navigation-provider.d.ts +2 -1
- package/dist/src/modules/survey-editor/navigation/navigation.d.ts +10 -1
- package/dist/src/modules/survey-editor/navigation/types.d.ts +6 -1
- package/dist/src/modules/survey-editor/primitives/input-with-ai-popover.d.ts +2 -2
- package/dist/src/modules/survey-editor/registry/authoring-state.d.ts +17 -0
- package/dist/src/modules/survey-editor/registry/index.d.ts +1 -0
- package/dist/src/modules/survey-editor/registry/registry-mappers.d.ts +3 -3
- package/dist/src/modules/survey-editor/registry/types.d.ts +40 -4
- package/dist/src/modules/survey-editor/routes/editor/_components/assistant-authoring-lock.d.ts +7 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot-context.d.ts +6 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot.d.ts +8 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-mode-switch.d.ts +7 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/editor-workspace.d.ts +30 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/footer.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/_components/main.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/_components/workspace-presets.d.ts +75 -0
- package/dist/src/modules/survey-editor/routes/editor/index.d.ts +1 -1
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/item-editor-toolbar.d.ts +0 -1
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-outline.d.ts +3 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-workspace.d.ts +12 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/index.d.ts +0 -1
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/index.d.ts +7 -0
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/page-break-divider.d.ts +6 -0
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-controls.d.ts +15 -0
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-tree.d.ts +26 -0
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-canvas.d.ts +16 -0
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-item.d.ts +13 -0
- package/dist/src/modules/survey-editor/routes/editor/preview-mode/use-preview-preferences.d.ts +14 -0
- package/dist/src/modules/survey-editor/store/editor-store.d.ts +7 -1
- package/dist/src/modules/survey-editor/survey-editor-config.d.ts +14 -5
- package/dist/src/modules/survey-editor/survey-editor.d.ts +14 -2
- package/dist/src/modules/survey-editor/workspace.d.ts +17 -0
- package/dist/src/modules/survey-player/index.d.ts +0 -1
- package/dist/src/modules/survey-player/localization/default-en.d.ts +2 -2
- package/dist/src/modules/survey-player/localization/runtime.d.ts +5 -4
- package/dist/src/modules/survey-player/survey-context.d.ts +9 -4
- package/dist/src/modules/survey-player/survey-player.d.ts +2 -2
- package/dist/survey-ui.cjs.js +101 -76
- package/dist/survey-ui.cjs.js.map +1 -1
- package/dist/survey-ui.css +2 -2
- package/dist/survey-ui.es.js +31872 -26692
- package/dist/survey-ui.es.js.map +1 -1
- package/package.json +26 -12
- package/dist/src/modules/default-item-registry/items/choice/editor/option-embedded-form-dialog.d.ts +0 -15
- package/dist/src/modules/survey-editor/editor-card/add-items/views/ai-item-view.d.ts +0 -10
- package/dist/src/modules/survey-editor/localization/types.d.ts +0 -7
- package/dist/src/modules/survey-player/localization/types.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@case-framework/survey-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
"import": "./dist/survey-ui.es.js",
|
|
22
22
|
"require": "./dist/survey-ui.cjs.js"
|
|
23
23
|
},
|
|
24
|
+
"./item-core-registry": {
|
|
25
|
+
"types": "./dist/src/item-core-registry.d.ts",
|
|
26
|
+
"import": "./dist/item-core-registry.es.js",
|
|
27
|
+
"require": "./dist/item-core-registry.cjs.js"
|
|
28
|
+
},
|
|
24
29
|
"./css": {
|
|
25
30
|
"types": "./dist/survey-ui.css.d.ts",
|
|
26
31
|
"default": "./dist/survey-ui.css"
|
|
@@ -36,32 +41,37 @@
|
|
|
36
41
|
"@dnd-kit/helpers": "^0.4.0",
|
|
37
42
|
"@dnd-kit/react": "^0.4.0",
|
|
38
43
|
"@hookform/resolvers": "^5.2.2",
|
|
39
|
-
"@lexical/extension": "^0.
|
|
40
|
-
"@lexical/link": "^0.
|
|
41
|
-
"@lexical/list": "^0.
|
|
42
|
-
"@lexical/react": "^0.
|
|
43
|
-
"@lexical/selection": "^0.
|
|
44
|
-
"@lexical/utils": "^0.
|
|
44
|
+
"@lexical/extension": "^0.48.0",
|
|
45
|
+
"@lexical/link": "^0.48.0",
|
|
46
|
+
"@lexical/list": "^0.48.0",
|
|
47
|
+
"@lexical/react": "^0.48.0",
|
|
48
|
+
"@lexical/selection": "^0.48.0",
|
|
49
|
+
"@lexical/utils": "^0.48.0",
|
|
45
50
|
"class-variance-authority": "^0.7.1",
|
|
46
51
|
"clsx": "^2.1.1",
|
|
47
52
|
"cmdk": "^1.1.1",
|
|
48
53
|
"date-fns": "^4.1.0",
|
|
49
|
-
"lexical": "^0.
|
|
54
|
+
"lexical": "^0.48.0",
|
|
50
55
|
"lucide-react": "^1.11.0",
|
|
51
56
|
"next-themes": "^0.4.6",
|
|
52
57
|
"radix-ui": "latest",
|
|
53
58
|
"react-day-picker": "^9.14.0",
|
|
54
59
|
"react-dropzone": "^15.0.0",
|
|
55
60
|
"react-hook-form": "^7.74.0",
|
|
61
|
+
"react-resizable-panels": "^4.12.2",
|
|
56
62
|
"sonner": "^2.0.7",
|
|
57
63
|
"tailwind-merge": "^3.5.0",
|
|
58
64
|
"usehooks-ts": "^3.1.1",
|
|
59
65
|
"zod": "^4.3.6",
|
|
60
|
-
"zustand": "^5.0.12"
|
|
66
|
+
"zustand": "^5.0.12",
|
|
67
|
+
"@case-framework/survey-assistant": "0.1.0",
|
|
68
|
+
"@case-framework/ui-localization": "0.1.0"
|
|
61
69
|
},
|
|
62
70
|
"devDependencies": {
|
|
63
71
|
"@eslint/js": "^9.39.4",
|
|
64
|
-
"@
|
|
72
|
+
"@jest/globals": "30.3.0",
|
|
73
|
+
"@tailwindcss/vite": "^4.3.2",
|
|
74
|
+
"@types/jest": "^30.0.0",
|
|
65
75
|
"@types/node": "^25.6.0",
|
|
66
76
|
"@types/react": "^19.2.14",
|
|
67
77
|
"@types/react-dom": "^19.2.3",
|
|
@@ -70,14 +80,16 @@
|
|
|
70
80
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
71
81
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
72
82
|
"globals": "^17.5.0",
|
|
83
|
+
"jest": "^30.3.0",
|
|
73
84
|
"shadcn": "^4.5.0",
|
|
74
|
-
"tailwindcss": "^4.2
|
|
85
|
+
"tailwindcss": "^4.3.2",
|
|
86
|
+
"ts-jest": "^29.4.9",
|
|
75
87
|
"tw-animate-css": "^1.4.0",
|
|
76
88
|
"typescript": "~6.0.3",
|
|
77
89
|
"typescript-eslint": "^8.59.1",
|
|
78
90
|
"vite": "^8.0.10",
|
|
79
91
|
"vite-plugin-dts": "^4.5.4",
|
|
80
|
-
"@case-framework/survey-core": "0.4.
|
|
92
|
+
"@case-framework/survey-core": "0.4.2"
|
|
81
93
|
},
|
|
82
94
|
"peerDependencies": {
|
|
83
95
|
"react": "^19.2.3",
|
|
@@ -87,6 +99,8 @@
|
|
|
87
99
|
"dev": "vite",
|
|
88
100
|
"build": "vite build",
|
|
89
101
|
"lint": "eslint .",
|
|
102
|
+
"test": "pnpm typecheck:tests && jest --config jest.config.cjs --runInBand",
|
|
103
|
+
"typecheck:tests": "tsc --noEmit -p tsconfig.test.json",
|
|
90
104
|
"preview": "vite preview"
|
|
91
105
|
}
|
|
92
106
|
}
|
package/dist/src/modules/default-item-registry/items/choice/editor/option-embedded-form-dialog.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SurveyItemTranslations } from '@case-framework/survey-core';
|
|
2
|
-
import { FormItemConfig } from '../../form/model';
|
|
3
|
-
interface ChoiceOptionEmbeddedFormDialogProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
optionLabel: string;
|
|
6
|
-
itemId: string;
|
|
7
|
-
config: FormItemConfig;
|
|
8
|
-
editingConfig: FormItemConfig;
|
|
9
|
-
selectedLocale: string;
|
|
10
|
-
translationNamespace: string;
|
|
11
|
-
onOpenChange: (open: boolean) => void;
|
|
12
|
-
onPersist: (applyChanges: (nextConfig: FormItemConfig, nextTranslations: SurveyItemTranslations) => void | boolean) => boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare const ChoiceOptionEmbeddedFormDialog: React.FC<ChoiceOptionEmbeddedFormDialogProps>;
|
|
15
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface AIItemViewProps {
|
|
2
|
-
intent: string;
|
|
3
|
-
onIntentChange: (value: string) => void;
|
|
4
|
-
onGenerate: () => void;
|
|
5
|
-
onBack: () => void;
|
|
6
|
-
isGenerating: boolean;
|
|
7
|
-
isEnabled: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function AIItemView({ intent, onIntentChange, onGenerate, onBack, isGenerating, isEnabled, }: AIItemViewProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type EditorTranslationPrimitive = string | number | boolean | null | undefined;
|
|
2
|
-
export type EditorTranslationValues = Record<string, EditorTranslationPrimitive>;
|
|
3
|
-
export type EditorLocalizationMessages = {
|
|
4
|
-
[key: string]: string | EditorLocalizationMessages;
|
|
5
|
-
};
|
|
6
|
-
export type SurveyEditorLocalizations = Record<string, EditorLocalizationMessages>;
|
|
7
|
-
export type EditorTranslate = (key: string, values?: EditorTranslationValues) => string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type SurveyPlayerTranslationValue = string | number | boolean | null | undefined;
|
|
2
|
-
export type SurveyPlayerTranslationValues = Record<string, SurveyPlayerTranslationValue>;
|
|
3
|
-
export interface SurveyPlayerLocalizationMessages {
|
|
4
|
-
[key: string]: string | SurveyPlayerLocalizationMessages;
|
|
5
|
-
}
|
|
6
|
-
export type SurveyPlayerLocalizations = Record<string, SurveyPlayerLocalizationMessages>;
|
|
7
|
-
export type SurveyPlayerTranslate = (key: string, values?: SurveyPlayerTranslationValues) => string;
|