@case-framework/survey-editor-ui 0.1.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.
Files changed (240) hide show
  1. package/README.md +90 -0
  2. package/dist/item-core-registry.cjs.js +2 -0
  3. package/dist/item-core-registry.cjs.js.map +1 -0
  4. package/dist/item-core-registry.es.js +11 -0
  5. package/dist/item-core-registry.es.js.map +1 -0
  6. package/dist/src/components/c-ui/alert-provider.d.ts +18 -0
  7. package/dist/src/components/c-ui/confirm-dialog.d.ts +19 -0
  8. package/dist/src/components/c-ui/confirm-provider.d.ts +15 -0
  9. package/dist/src/components/c-ui/dot-background.d.ts +72 -0
  10. package/dist/src/components/c-ui/filepicker-dropzone.d.ts +38 -0
  11. package/dist/src/components/c-ui/loading-button.d.ts +9 -0
  12. package/dist/src/components/common/content-editable-plain.d.ts +17 -0
  13. package/dist/src/components/common/sortable-tree.d.ts +59 -0
  14. package/dist/src/components/hooks/use-button-shortcut.d.ts +18 -0
  15. package/dist/src/components/hooks/use-document-keydown.d.ts +7 -0
  16. package/dist/src/components/rich-text/content-policy.d.ts +19 -0
  17. package/dist/src/components/rich-text/index.d.ts +6 -0
  18. package/dist/src/components/rich-text/nodes/rich-text-image-node.d.ts +40 -0
  19. package/dist/src/components/rich-text/nodes/rich-text-info-box-node.d.ts +45 -0
  20. package/dist/src/components/rich-text/nodes/survey-rich-text-heading-node.d.ts +27 -0
  21. package/dist/src/components/rich-text/rich-text-block-editor.d.ts +8 -0
  22. package/dist/src/components/rich-text/rich-text-content-view.d.ts +15 -0
  23. package/dist/src/components/rich-text/rich-text-editor-context.d.ts +23 -0
  24. package/dist/src/components/rich-text/rich-text-link-utils.d.ts +1 -0
  25. package/dist/src/components/rich-text/rich-text-survey-content.d.ts +7 -0
  26. package/dist/src/components/rich-text/types.d.ts +6 -0
  27. package/dist/src/components/rich-text-editor/index.d.ts +3 -0
  28. package/dist/src/components/rich-text-editor/plugins/command-handler-plugin.d.ts +5 -0
  29. package/dist/src/components/rich-text-editor/plugins/editable-mode-plugin.d.ts +3 -0
  30. package/dist/src/components/rich-text-editor/plugins/floating-toolbar-plugin.d.ts +11 -0
  31. package/dist/src/components/rich-text-editor/plugins/image-dialog-plugin.d.ts +4 -0
  32. package/dist/src/components/rich-text-editor/plugins/info-box-popover-plugin.d.ts +6 -0
  33. package/dist/src/components/rich-text-editor/plugins/link-popover-plugin.d.ts +6 -0
  34. package/dist/src/components/rich-text-editor/plugins/rich-text-image-asset-deletion-plugin.d.ts +1 -0
  35. package/dist/src/components/rich-text-editor/plugins/slash-command-menu-plugin.d.ts +15 -0
  36. package/dist/src/components/rich-text-editor/plugins/sync-editor-value-plugin.d.ts +4 -0
  37. package/dist/src/components/rich-text-editor/rich-text-editor-utils.d.ts +205 -0
  38. package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +43 -0
  39. package/dist/src/components/rich-text-editor/rich-text-image-editor-commands.d.ts +12 -0
  40. package/dist/src/components/rich-text-editor/rich-text-info-box-commands.d.ts +20 -0
  41. package/dist/src/components/rich-text-editor/style-control-icon.d.ts +5 -0
  42. package/dist/src/components/ui/alert-dialog.d.ts +18 -0
  43. package/dist/src/components/ui/alert.d.ts +10 -0
  44. package/dist/src/components/ui/badge.d.ts +9 -0
  45. package/dist/src/components/ui/breadcrumb.d.ts +11 -0
  46. package/dist/src/components/ui/button.d.ts +10 -0
  47. package/dist/src/components/ui/calendar.d.ts +10 -0
  48. package/dist/src/components/ui/card.d.ts +11 -0
  49. package/dist/src/components/ui/checkbox.d.ts +4 -0
  50. package/dist/src/components/ui/collapsible.d.ts +5 -0
  51. package/dist/src/components/ui/command.d.ts +18 -0
  52. package/dist/src/components/ui/context-menu.d.ts +31 -0
  53. package/dist/src/components/ui/dialog.d.ts +20 -0
  54. package/dist/src/components/ui/dropdown-menu.d.ts +29 -0
  55. package/dist/src/components/ui/field.d.ts +24 -0
  56. package/dist/src/components/ui/input-group.d.ts +16 -0
  57. package/dist/src/components/ui/input.d.ts +3 -0
  58. package/dist/src/components/ui/kbd.d.ts +3 -0
  59. package/dist/src/components/ui/label.d.ts +4 -0
  60. package/dist/src/components/ui/popover.d.ts +10 -0
  61. package/dist/src/components/ui/progress.d.ts +4 -0
  62. package/dist/src/components/ui/radio-group.d.ts +5 -0
  63. package/dist/src/components/ui/resizable.d.ts +7 -0
  64. package/dist/src/components/ui/scroll-area.d.ts +5 -0
  65. package/dist/src/components/ui/select.d.ts +15 -0
  66. package/dist/src/components/ui/separator.d.ts +4 -0
  67. package/dist/src/components/ui/skeleton.d.ts +2 -0
  68. package/dist/src/components/ui/slider.d.ts +4 -0
  69. package/dist/src/components/ui/sonner.d.ts +3 -0
  70. package/dist/src/components/ui/switch.d.ts +6 -0
  71. package/dist/src/components/ui/tabs.d.ts +11 -0
  72. package/dist/src/components/ui/textarea.d.ts +3 -0
  73. package/dist/src/components/ui/toggle-group.d.ts +10 -0
  74. package/dist/src/components/ui/toggle.d.ts +9 -0
  75. package/dist/src/components/ui/tooltip.d.ts +7 -0
  76. package/dist/src/dev/_components/nav-input.d.ts +35 -0
  77. package/dist/src/dev/app.d.ts +2 -0
  78. package/dist/src/dev/localizations/de.d.ts +2 -0
  79. package/dist/src/dev/main.d.ts +0 -0
  80. package/dist/src/index.d.ts +11 -0
  81. package/dist/src/item-core-registry.d.ts +4 -0
  82. package/dist/src/lib/rich-text-link-url.d.ts +2 -0
  83. package/dist/src/lib/survey-assets.d.ts +2 -0
  84. package/dist/src/lib/utils.d.ts +2 -0
  85. package/dist/src/modules/default-item-registry/default-registry-entries.d.ts +2 -0
  86. package/dist/src/modules/default-item-registry/index.d.ts +19 -0
  87. package/dist/src/modules/default-item-registry/item-authoring-state.d.ts +15 -0
  88. package/dist/src/modules/default-item-registry/items/choice/display-order.d.ts +1 -0
  89. package/dist/src/modules/default-item-registry/items/choice/editor/card.d.ts +3 -0
  90. package/dist/src/modules/default-item-registry/items/choice/editor/option-create.d.ts +11 -0
  91. package/dist/src/modules/default-item-registry/items/choice/editor/option-edit-dialog.d.ts +21 -0
  92. package/dist/src/modules/default-item-registry/items/choice/editor/option-editor-fields.d.ts +17 -0
  93. package/dist/src/modules/default-item-registry/items/choice/editor/response-options-list.d.ts +20 -0
  94. package/dist/src/modules/default-item-registry/items/choice/expression-registry.d.ts +3 -0
  95. package/dist/src/modules/default-item-registry/items/choice/model.d.ts +28 -0
  96. package/dist/src/modules/default-item-registry/items/choice/preview/item.d.ts +2 -0
  97. package/dist/src/modules/default-item-registry/items/choice/search-adapter.d.ts +2 -0
  98. package/dist/src/modules/default-item-registry/items/form/editor/card.d.ts +3 -0
  99. package/dist/src/modules/default-item-registry/items/form/editor/config-editor.d.ts +12 -0
  100. package/dist/src/modules/default-item-registry/items/form/editor/field-edit-dialog.d.ts +10 -0
  101. package/dist/src/modules/default-item-registry/items/form/editor/field-group-header-dialog.d.ts +12 -0
  102. package/dist/src/modules/default-item-registry/items/form/editor/field-group-layout-dialog.d.ts +9 -0
  103. package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +15 -0
  104. package/dist/src/modules/default-item-registry/items/form/editor/field-key-dialog.d.ts +10 -0
  105. package/dist/src/modules/default-item-registry/items/form/editor/field-sort-dialog.d.ts +11 -0
  106. package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +12 -0
  107. package/dist/src/modules/default-item-registry/items/form/editor/response-field-groups-list.d.ts +16 -0
  108. package/dist/src/modules/default-item-registry/items/form/model.d.ts +161 -0
  109. package/dist/src/modules/default-item-registry/items/form/preview/item.d.ts +2 -0
  110. package/dist/src/modules/default-item-registry/items/form/search-adapter.d.ts +2 -0
  111. package/dist/src/modules/default-item-registry/items/info/editor-card.d.ts +3 -0
  112. package/dist/src/modules/default-item-registry/items/info/preview/item.d.ts +2 -0
  113. package/dist/src/modules/default-item-registry/items/info/search-adapter.d.ts +2 -0
  114. package/dist/src/modules/default-item-registry/items/structure/group/editor-card.d.ts +3 -0
  115. package/dist/src/modules/default-item-registry/items/structure/page-break/editor-card.d.ts +3 -0
  116. package/dist/src/modules/default-item-registry/items/structure/preview-renderers.d.ts +3 -0
  117. package/dist/src/modules/default-item-registry/items/structure/root/editor-card.d.ts +3 -0
  118. package/dist/src/modules/default-item-registry/shared/preview/question-header.d.ts +6 -0
  119. package/dist/src/modules/default-item-registry/shared/preview/utils.d.ts +3 -0
  120. package/dist/src/modules/default-item-registry/shared/question-editor/deferred-localized-rich-text-field.d.ts +26 -0
  121. package/dist/src/modules/default-item-registry/shared/question-editor/header-editor.d.ts +6 -0
  122. package/dist/src/modules/default-item-registry/shared/question-editor/layout.d.ts +8 -0
  123. package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-editors.d.ts +23 -0
  124. package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-policies.d.ts +8 -0
  125. package/dist/src/modules/default-item-registry/shared/question-editor/toolbar.d.ts +10 -0
  126. package/dist/src/modules/survey-editor/ai/create-provider.d.ts +22 -0
  127. package/dist/src/modules/survey-editor/ai/types.d.ts +11 -0
  128. package/dist/src/modules/survey-editor/ai/use-survey-assistant-integration.d.ts +18 -0
  129. package/dist/src/modules/survey-editor/assets/index.d.ts +4 -0
  130. package/dist/src/modules/survey-editor/assets/survey-image-asset-manager.d.ts +4 -0
  131. package/dist/src/modules/survey-editor/assets/use-survey-assets.d.ts +4 -0
  132. package/dist/src/modules/survey-editor/assets/utils.d.ts +5 -0
  133. package/dist/src/modules/survey-editor/assistant/apply.d.ts +24 -0
  134. package/dist/src/modules/survey-editor/assistant/index.d.ts +2 -0
  135. package/dist/src/modules/survey-editor/assistant/snapshot.d.ts +39 -0
  136. package/dist/src/modules/survey-editor/editor-card/add-items/constants.d.ts +5 -0
  137. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +24 -0
  138. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-target.d.ts +9 -0
  139. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-option-group-navigation.d.ts +20 -0
  140. package/dist/src/modules/survey-editor/editor-card/add-items/types.d.ts +21 -0
  141. package/dist/src/modules/survey-editor/editor-card/add-items/views/back-button.d.ts +5 -0
  142. package/dist/src/modules/survey-editor/editor-card/add-items/views/blank-item-view.d.ts +13 -0
  143. package/dist/src/modules/survey-editor/editor-card/add-items/views/entry-view.d.ts +15 -0
  144. package/dist/src/modules/survey-editor/editor-card/add-items/views/item-type-grid-view.d.ts +30 -0
  145. package/dist/src/modules/survey-editor/editor-card/add-items/views/structure-view.d.ts +16 -0
  146. package/dist/src/modules/survey-editor/editor-card/add-items.d.ts +1 -0
  147. package/dist/src/modules/survey-editor/editor-card/copy-item-dropdown-menu.d.ts +5 -0
  148. package/dist/src/modules/survey-editor/editor-card/delete-item-context-menu.d.ts +5 -0
  149. package/dist/src/modules/survey-editor/editor-card/delete-item-dropdown-menu.d.ts +7 -0
  150. package/dist/src/modules/survey-editor/editor-card/editor-card-tab-trigger.d.ts +15 -0
  151. package/dist/src/modules/survey-editor/editor-card/expression-pseudo-code.d.ts +9 -0
  152. package/dist/src/modules/survey-editor/editor-card/group-items.d.ts +2 -0
  153. package/dist/src/modules/survey-editor/editor-card/hooks/use-armed-shortcut-sequence.d.ts +11 -0
  154. package/dist/src/modules/survey-editor/editor-card/hooks/use-group-list-keyboard.d.ts +30 -0
  155. package/dist/src/modules/survey-editor/editor-card/index.d.ts +2 -0
  156. package/dist/src/modules/survey-editor/editor-card/item-authoring-state-preview.d.ts +16 -0
  157. package/dist/src/modules/survey-editor/editor-card/item-color-menu.d.ts +6 -0
  158. package/dist/src/modules/survey-editor/editor-card/item-color-selector.d.ts +5 -0
  159. package/dist/src/modules/survey-editor/editor-card/item-editor-card-skeleton.d.ts +2 -0
  160. package/dist/src/modules/survey-editor/editor-card/item-editor-card.d.ts +34 -0
  161. package/dist/src/modules/survey-editor/editor-card/item-editor-context.d.ts +23 -0
  162. package/dist/src/modules/survey-editor/editor-card/item-expression-overview.d.ts +33 -0
  163. package/dist/src/modules/survey-editor/editor-card/item-key-editor.d.ts +9 -0
  164. package/dist/src/modules/survey-editor/editor-card/item-label-preview-and-editor.d.ts +10 -0
  165. package/dist/src/modules/survey-editor/editor-card/item-preview.d.ts +8 -0
  166. package/dist/src/modules/survey-editor/editor-card/item-sibling-navigation.d.ts +5 -0
  167. package/dist/src/modules/survey-editor/editor-card/item-type-icon-with-tooltip.d.ts +8 -0
  168. package/dist/src/modules/survey-editor/editor-card/survey-player-item-preview.d.ts +6 -0
  169. package/dist/src/modules/survey-editor/editor-instance-provider.d.ts +9 -0
  170. package/dist/src/modules/survey-editor/hooks/useClipboardValue.d.ts +2 -0
  171. package/dist/src/modules/survey-editor/hooks/useDeleteItem.d.ts +11 -0
  172. package/dist/src/modules/survey-editor/hooks/useEditor.d.ts +12 -0
  173. package/dist/src/modules/survey-editor/hooks/useEditorStateChange.d.ts +18 -0
  174. package/dist/src/modules/survey-editor/hooks/useKeyboardShortcuts.d.ts +7 -0
  175. package/dist/src/modules/survey-editor/index.d.ts +20 -0
  176. package/dist/src/modules/survey-editor/localization/date-fns.d.ts +5 -0
  177. package/dist/src/modules/survey-editor/localization/default-all.d.ts +2 -0
  178. package/dist/src/modules/survey-editor/localization/default-en.d.ts +3 -0
  179. package/dist/src/modules/survey-editor/localization/default-nl.d.ts +2 -0
  180. package/dist/src/modules/survey-editor/localization/index.d.ts +5 -0
  181. package/dist/src/modules/survey-editor/localization/runtime.d.ts +4 -0
  182. package/dist/src/modules/survey-editor/navigation/location.d.ts +6 -0
  183. package/dist/src/modules/survey-editor/navigation/navigation-provider.d.ts +12 -0
  184. package/dist/src/modules/survey-editor/navigation/navigation.d.ts +22 -0
  185. package/dist/src/modules/survey-editor/navigation/types.d.ts +23 -0
  186. package/dist/src/modules/survey-editor/primitives/input-with-ai-popover.d.ts +35 -0
  187. package/dist/src/modules/survey-editor/registry/authoring-state.d.ts +17 -0
  188. package/dist/src/modules/survey-editor/registry/index.d.ts +8 -0
  189. package/dist/src/modules/survey-editor/registry/registry-mappers.d.ts +25 -0
  190. package/dist/src/modules/survey-editor/registry/search-adapter.d.ts +19 -0
  191. package/dist/src/modules/survey-editor/registry/types.d.ts +218 -0
  192. package/dist/src/modules/survey-editor/routes/editor/_components/assistant-authoring-lock.d.ts +7 -0
  193. package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot-context.d.ts +6 -0
  194. package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot.d.ts +8 -0
  195. package/dist/src/modules/survey-editor/routes/editor/_components/editor-mode-switch.d.ts +7 -0
  196. package/dist/src/modules/survey-editor/routes/editor/_components/editor-workspace.d.ts +30 -0
  197. package/dist/src/modules/survey-editor/routes/editor/_components/footer.d.ts +2 -0
  198. package/dist/src/modules/survey-editor/routes/editor/_components/history-stack.d.ts +2 -0
  199. package/dist/src/modules/survey-editor/routes/editor/_components/main.d.ts +7 -0
  200. package/dist/src/modules/survey-editor/routes/editor/_components/workspace-presets.d.ts +75 -0
  201. package/dist/src/modules/survey-editor/routes/editor/asset-manager/index.d.ts +2 -0
  202. package/dist/src/modules/survey-editor/routes/editor/index.d.ts +7 -0
  203. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/breadcrumbs-nav.d.ts +2 -0
  204. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/item-editor-toolbar.d.ts +6 -0
  205. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/language-picker.d.ts +2 -0
  206. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/search-trigger.d.ts +3 -0
  207. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/survey-search.d.ts +7 -0
  208. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-outline.d.ts +3 -0
  209. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-workspace.d.ts +12 -0
  210. package/dist/src/modules/survey-editor/routes/editor/item-editor/index.d.ts +6 -0
  211. package/dist/src/modules/survey-editor/routes/editor/preview-mode/index.d.ts +7 -0
  212. package/dist/src/modules/survey-editor/routes/editor/preview-mode/page-break-divider.d.ts +6 -0
  213. package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-controls.d.ts +15 -0
  214. package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-tree.d.ts +26 -0
  215. package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-canvas.d.ts +16 -0
  216. package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-item.d.ts +13 -0
  217. package/dist/src/modules/survey-editor/routes/editor/preview-mode/use-preview-preferences.d.ts +14 -0
  218. package/dist/src/modules/survey-editor/routes/editor/translation-mode/index.d.ts +2 -0
  219. package/dist/src/modules/survey-editor/session-file.d.ts +13 -0
  220. package/dist/src/modules/survey-editor/store/editor-store-context.d.ts +10 -0
  221. package/dist/src/modules/survey-editor/store/editor-store-provider.d.ts +7 -0
  222. package/dist/src/modules/survey-editor/store/editor-store.d.ts +109 -0
  223. package/dist/src/modules/survey-editor/store/use-editor-store.d.ts +4 -0
  224. package/dist/src/modules/survey-editor/store/useItemNavigation.d.ts +7 -0
  225. package/dist/src/modules/survey-editor/survey-editor-config.d.ts +38 -0
  226. package/dist/src/modules/survey-editor/survey-editor.d.ts +40 -0
  227. package/dist/src/modules/survey-editor/utils/item-type-infos.d.ts +23 -0
  228. package/dist/src/modules/survey-editor/workspace.d.ts +17 -0
  229. package/dist/survey-editor-animations.css +87 -0
  230. package/dist/survey-editor-animations.css.d.ts +2 -0
  231. package/dist/survey-editor-defaults.css +15 -0
  232. package/dist/survey-editor-defaults.css.d.ts +2 -0
  233. package/dist/survey-editor-ui.cjs.js +161 -0
  234. package/dist/survey-editor-ui.cjs.js.map +1 -0
  235. package/dist/survey-editor-ui.css +3 -0
  236. package/dist/survey-editor-ui.css.d.ts +2 -0
  237. package/dist/survey-editor-ui.es.js +50260 -0
  238. package/dist/survey-editor-ui.es.js.map +1 -0
  239. package/dist/vite.svg +1 -0
  240. package/package.json +107 -0
@@ -0,0 +1,10 @@
1
+ import { Popover as PopoverPrimitive } from 'radix-ui';
2
+ import * as React from "react";
3
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
+ declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
+ declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): import("react/jsx-runtime").JSX.Element;
9
+ declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
10
+ export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
@@ -0,0 +1,4 @@
1
+ import { Progress as ProgressPrimitive } from 'radix-ui';
2
+ import * as React from "react";
3
+ declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Progress };
@@ -0,0 +1,5 @@
1
+ import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
2
+ import * as React from "react";
3
+ declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
5
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,7 @@
1
+ import * as ResizablePrimitive from "react-resizable-panels";
2
+ declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): import("react/jsx-runtime").JSX.Element;
4
+ declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
5
+ withHandle?: boolean;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,5 @@
1
+ import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
2
+ import * as React from "react";
3
+ declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,15 @@
1
+ import { Select as SelectPrimitive } from 'radix-ui';
2
+ import * as React from "react";
3
+ declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
5
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
6
+ declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
7
+ size?: "sm" | "default";
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
10
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
11
+ declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
12
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
13
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
14
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
15
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -0,0 +1,4 @@
1
+ import { Separator as SeparatorPrimitive } from 'radix-ui';
2
+ import * as React from "react";
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Separator };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,4 @@
1
+ import { Slider as SliderPrimitive } from 'radix-ui';
2
+ import * as React from "react";
3
+ declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ export { Slider };
@@ -0,0 +1,3 @@
1
+ import { ToasterProps } from 'sonner';
2
+ declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Toaster };
@@ -0,0 +1,6 @@
1
+ import { Switch as SwitchPrimitive } from 'radix-ui';
2
+ import * as React from "react";
3
+ declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
4
+ size?: "sm" | "default";
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export { Switch };
@@ -0,0 +1,11 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Tabs as TabsPrimitive } from 'radix-ui';
3
+ import * as React from "react";
4
+ declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ declare const tabsListVariants: (props?: ({
6
+ variant?: "line" | "default" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ declare function TabsList({ className, variant, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & VariantProps<typeof tabsListVariants>): import("react/jsx-runtime").JSX.Element;
9
+ declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
10
+ declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
11
+ export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
3
+ export { Textarea };
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';
3
+ import { toggleVariants } from '../../../components/ui/toggle';
4
+ import * as React from "react";
5
+ declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
6
+ spacing?: number;
7
+ orientation?: "horizontal" | "vertical";
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): import("react/jsx-runtime").JSX.Element;
10
+ export { ToggleGroup, ToggleGroupItem };
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { Toggle as TogglePrimitive } from 'radix-ui';
3
+ import * as React from "react";
4
+ declare const toggleVariants: (props?: ({
5
+ variant?: "default" | "outline" | null | undefined;
6
+ size?: "sm" | "default" | "lg" | "icon-sm" | null | undefined;
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>): import("react/jsx-runtime").JSX.Element;
9
+ export { Toggle, toggleVariants };
@@ -0,0 +1,7 @@
1
+ import { Tooltip as TooltipPrimitive } from 'radix-ui';
2
+ import * as React from "react";
3
+ declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
+ declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,35 @@
1
+ import { ReactNode } from 'react';
2
+ import { SurveyEditorLocation, SurveyEditorNavigationAdapter } from '../../../modules/survey-editor/navigation/types';
3
+ /**
4
+ * Creates a navigation adapter backed by local state, so the parent can control
5
+ * and listen to navigation via an input field (or any custom UI).
6
+ *
7
+ * @param onNavigate - Optional callback when location changes (from any source)
8
+ */
9
+ export declare function createInputFieldNavigationAdapter(onNavigate?: (location: SurveyEditorLocation) => void): SurveyEditorNavigationAdapter;
10
+ export interface UseInputFieldNavigationAdapterOptions {
11
+ onNavigate?: (location: SurveyEditorLocation) => void;
12
+ }
13
+ export interface UseInputFieldNavigationAdapterResult {
14
+ adapter: SurveyEditorNavigationAdapter;
15
+ locationString: string;
16
+ setLocationString: (value: string) => void;
17
+ handleSubmit: () => void;
18
+ }
19
+ /**
20
+ * Hook that provides a navigation adapter and input field state.
21
+ * Use with an input: bind value to locationString, onChange to setLocationString,
22
+ * and onKeyDown (Enter) or a button to handleSubmit.
23
+ */
24
+ export declare function useInputFieldNavigationAdapter(options?: UseInputFieldNavigationAdapterOptions): UseInputFieldNavigationAdapterResult;
25
+ interface NavInputProps {
26
+ result: UseInputFieldNavigationAdapterResult;
27
+ placeholder?: string;
28
+ className?: string;
29
+ }
30
+ /**
31
+ * Simple input field component for navigation.
32
+ * Examples: item-editor, item-editor:someId, translation-mode
33
+ */
34
+ export declare function NavInput({ result, placeholder, className, }: NavInputProps): ReactNode;
35
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const App: React.FC;
2
+ export default App;
@@ -0,0 +1,2 @@
1
+ import { LocalizationMessages } from '@case-framework/ui-localization';
2
+ export declare const surveyEditorDevDeMessages: LocalizationMessages;
File without changes
@@ -0,0 +1,11 @@
1
+ export { SurveyEditor } from './modules/survey-editor';
2
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, } from './components/ui/dialog';
3
+ export { APPLY_RICH_TEXT_STYLE_COMMAND, buildSurveyFileName, buildSurveyAssistantItemRegistryManifest, buildSurveyAssistantSnapshot, createSnapshotSurveyEditorAIProvider, useSurveyEditorAssistantIntegration, createBlankEditorState, createEditorStateFromRawSurvey, createRichTextEditorValueFromContent, createRichTextEditorValueFromPlainText, createRichTextEditorValueFromText, DEFAULT_EDITOR_LANGUAGE, DEFAULT_DATE_FNS_LOCALES, DEFAULT_CATEGORY_LABELS, DEFAULT_BLOCK_CONTENT_POLICY, DEFAULT_COMPACT_CONTENT_POLICY, defaultSurveyEditorLocalizations, RichTextEditor, RichTextBlockEditor, CONVERT_RICH_TEXT_LINK_TO_TEXT_COMMAND, INSERT_RICH_TEXT_LINK_COMMAND, INSERT_RICH_TEXT_TEMPLATE_VARIABLE_COMMAND, getDateFnsLocale, isBlockContentPolicyVariant, mergeDateFnsLocales, mergeEditorLocalizations, mergeRichTextContentPolicy, OPEN_RICH_TEXT_LINK_EDITOR_COMMAND, RichTextContentView, sanitizeContentForPolicy, SurveyImageAssetManager, surveyEditorEnMessages, surveyEditorNlMessages, UPDATE_RICH_TEXT_LINK_COMMAND, entriesToComposedEditorRegistry, entriesToParticipantRegistry, entriesToItemTypeRegistry, getRichTextContentFromEditorState, parseEditorStateFromJsonText, resolveCategoryLabel, serializeSurveyStateForFile, useSurveyAssets, useSurveyImageAssets, useUnusedSurveyAssetCount, validateRegistryEntries, } from './modules/survey-editor';
4
+ export { FilepickerDropzone } from './components/c-ui/filepicker-dropzone';
5
+ export { SortableTree } from './components/common/sortable-tree';
6
+ export type { SortableTreeDropEvent, SortableTreeDropPosition, SortableTreeEmptyGroupProps, SortableTreeMoveEvent, SortableTreePosition, SortableTreeProps, SortableTreeRenderItemProps, } from './components/common/sortable-tree';
7
+ export { cloneRegistryEntries, createComposedEditorRegistry, createRegistryEntries, createSurveyPlayerRegistry, getDefaultComposedEditorRegistry, getDefaultRegistryEntries, getDefaultSurveyPlayerRegistry, } from './modules/default-item-registry';
8
+ export type { CreateComposedEditorRegistryOptions, CreateRegistryEntriesOptions, CreateSurveyPlayerRegistryOptions, RegistryConflictStrategy, } from './modules/default-item-registry';
9
+ export type { SurveyEditorProps, SurveyEditorStateChange, SurveyEditorWorkspace, SurveyEditorWorkspacePanelOptions, SurveyEditorAssistantController, SurveyAssistantSnapshotOptions, CreateSnapshotSurveyEditorAIProviderOptions, UseSurveyEditorAssistantIntegrationOptions, SurveyEditorAITaskCacheOptions, SurveyEditorAITaskExecution, SurveyEditorAITaskExecutor, SurveyEditorLocation, EditorItemDefinition, EditorItemDefinitionRegistry, 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';
10
+ export type { SurveyEditorDateLocales } from './modules/survey-editor/localization/date-fns';
11
+ export type { FilepickerDropzoneLabels, FilepickerDropzoneProps, } from './components/c-ui/filepicker-dropzone';
@@ -0,0 +1,4 @@
1
+ import { ItemTypeRegistry } from '@case-framework/survey-core';
2
+ import { ChoiceItemCore, FormItemCore, InfoItemCore } from '@case-framework/survey-ui';
3
+ export declare const defaultItemCoreRegistry: ItemTypeRegistry;
4
+ export { ChoiceItemCore, FormItemCore, InfoItemCore };
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_RICH_TEXT_LINK_URL = "https://";
2
+ export declare function sanitizeRichTextLinkUrl(url: string): string;
@@ -0,0 +1,2 @@
1
+ import { RawSurveyAsset } from '@case-framework/survey-core';
2
+ export declare function getSurveyImageAssetUrl(asset?: RawSurveyAsset): string | undefined;
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,2 @@
1
+ import { ItemRegistryEntry } from '../survey-editor/registry';
2
+ export declare const defaultRegistryEntries: ItemRegistryEntry[];
@@ -0,0 +1,19 @@
1
+ import { ComposedEditorItemRegistry, EntriesToComposedEditorRegistryOptions, EntriesToParticipantRegistryOptions, ItemRegistryEntry, SurveyPlayerItemRegistry } from '../survey-editor/registry';
2
+ export type RegistryConflictStrategy = "error" | "override";
3
+ export interface CreateRegistryEntriesOptions {
4
+ /** Include default built-in entries first. Defaults to true. */
5
+ includeDefaultEntries?: boolean;
6
+ /** Custom entries to add/override. */
7
+ entries?: ItemRegistryEntry[];
8
+ /** How to handle duplicate itemType values. Defaults to override. */
9
+ conflictStrategy?: RegistryConflictStrategy;
10
+ }
11
+ export type CreateComposedEditorRegistryOptions = CreateRegistryEntriesOptions & EntriesToComposedEditorRegistryOptions;
12
+ export type CreateSurveyPlayerRegistryOptions = CreateRegistryEntriesOptions & EntriesToParticipantRegistryOptions;
13
+ export declare function cloneRegistryEntries(entries: readonly ItemRegistryEntry[]): ItemRegistryEntry[];
14
+ export declare function createRegistryEntries(options?: CreateRegistryEntriesOptions): ItemRegistryEntry[];
15
+ export declare function getDefaultRegistryEntries(): ItemRegistryEntry[];
16
+ export declare function createComposedEditorRegistry(options?: CreateComposedEditorRegistryOptions): ComposedEditorItemRegistry;
17
+ export declare function createSurveyPlayerRegistry(options?: CreateSurveyPlayerRegistryOptions): SurveyPlayerItemRegistry;
18
+ export declare function getDefaultComposedEditorRegistry(): ComposedEditorItemRegistry;
19
+ export declare function getDefaultSurveyPlayerRegistry(): SurveyPlayerItemRegistry;
@@ -0,0 +1,15 @@
1
+ import { SurveyItemCore, SurveyItemTranslations } from '@case-framework/survey-core';
2
+ import { ItemAuthoringState } from '../survey-editor/registry';
3
+ interface ItemContentContext {
4
+ itemContent?: SurveyItemTranslations;
5
+ locales: string[];
6
+ locale: string;
7
+ }
8
+ export declare function getInfoItemAuthoringState(context: ItemContentContext): ItemAuthoringState;
9
+ export declare function getFormItemAuthoringState({ item, ...context }: ItemContentContext & {
10
+ item: SurveyItemCore;
11
+ }): ItemAuthoringState;
12
+ export declare function getChoiceItemAuthoringState({ item, ...context }: ItemContentContext & {
13
+ item: SurveyItemCore;
14
+ }): ItemAuthoringState;
15
+ export {};
@@ -0,0 +1 @@
1
+ export declare function getDisplayOrder<T>(items: readonly T[], shouldShuffle: boolean, seed: string): T[];
@@ -0,0 +1,3 @@
1
+ import { CommonItemEditorCardProps } from '../../../../../../modules/survey-editor/editor-card/item-editor-card';
2
+ declare const EditorCardForChoice: React.FC<CommonItemEditorCardProps>;
3
+ export default EditorCardForChoice;
@@ -0,0 +1,11 @@
1
+ import { Content } from '@case-framework/survey-core';
2
+ import { ChoiceOptionConfig } from '../model';
3
+ interface ChoiceOptionCreateProps {
4
+ isOpen: boolean;
5
+ open: () => void;
6
+ existingOptions: ChoiceOptionConfig[];
7
+ onCancel: () => void;
8
+ onSubmit: (option: ChoiceOptionConfig, labelContent?: Content) => void;
9
+ }
10
+ export declare const ChoiceOptionCreate: React.FC<ChoiceOptionCreateProps>;
11
+ export {};
@@ -0,0 +1,21 @@
1
+ import { Content, SurveyItemTranslations } from '@case-framework/survey-core';
2
+ import { FormItemConfig } from '../../form/model';
3
+ import { ChoiceOptionConfig } from '../model';
4
+ type ChoiceOptionEditorFocusField = "label" | "key" | "advanced";
5
+ interface ChoiceOptionEditDialogProps {
6
+ open: boolean;
7
+ option: ChoiceOptionConfig | null;
8
+ existingOptions: ChoiceOptionConfig[];
9
+ initialLabelContent?: Content;
10
+ initialFocusField?: ChoiceOptionEditorFocusField;
11
+ initialAdvancedOpen?: boolean;
12
+ itemId: string;
13
+ embeddedFormConfig: FormItemConfig;
14
+ embeddedFormEditingConfig: FormItemConfig;
15
+ selectedLocale: string;
16
+ translationNamespace: string;
17
+ onSave: (option: ChoiceOptionConfig, labelContent?: Content) => void;
18
+ onPersistEmbeddedForm: (applyChanges: (nextConfig: FormItemConfig, nextTranslations: SurveyItemTranslations) => void | boolean) => boolean;
19
+ }
20
+ export declare const ChoiceOptionEditDialog: React.FC<ChoiceOptionEditDialogProps>;
21
+ export {};
@@ -0,0 +1,17 @@
1
+ import { RichTextEditorChange } from '../../../../../../components/rich-text-editor';
2
+ import { SerializedEditorState } from 'lexical';
3
+ import { ReactNode } from 'react';
4
+ interface ChoiceOptionEditorFieldsProps {
5
+ draftKey: string;
6
+ draftLabelEditorValue: SerializedEditorState;
7
+ keyValidationMessage: string | null;
8
+ labelEditorInstanceKey: number;
9
+ labelAutoFocus?: boolean;
10
+ keyAutoFocus?: boolean;
11
+ keyRowTrailing?: ReactNode;
12
+ onDraftKeyChange: (value: string) => void;
13
+ onDraftLabelChange: (change: RichTextEditorChange) => void;
14
+ onSubmitShortcut?: () => void;
15
+ }
16
+ export declare const ChoiceOptionEditorFields: React.FC<ChoiceOptionEditorFieldsProps>;
17
+ export {};
@@ -0,0 +1,20 @@
1
+ import { Content } from '@case-framework/survey-core';
2
+ import { default as React } from 'react';
3
+ import { ChoiceOptionConfig } from '../model';
4
+ export interface ChoiceOptionListItem {
5
+ option: ChoiceOptionConfig;
6
+ label: string;
7
+ labelContent?: Content;
8
+ }
9
+ interface ChoiceResponseOptionsListProps {
10
+ itemId: string;
11
+ items: ChoiceOptionListItem[];
12
+ onItemEditLabel: (optionId: string) => void;
13
+ onItemEditKey: (optionId: string) => void;
14
+ onItemEditEmbeddedForm: (optionId: string) => void;
15
+ onItemDuplicate: (optionId: string) => void;
16
+ onItemDelete: (optionId: string) => void;
17
+ onItemsReorder: (nextItems: ChoiceOptionConfig[]) => void;
18
+ }
19
+ export declare const ChoiceResponseOptionsList: React.FC<ChoiceResponseOptionsListProps>;
20
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ItemExpressionDefinition } from '@case-framework/survey-core';
2
+ import { ChoiceItemCore } from '@case-framework/survey-ui';
3
+ export declare const choiceItemExpressionDefinitions: ItemExpressionDefinition<ChoiceItemCore>[];
@@ -0,0 +1,28 @@
1
+ import { FormItemConfig } from '../form/model';
2
+ /** `1` = single selection (radio). `null` = multiple selection with no upper cap. Integers above 1 cap how many options may be selected. */
3
+ export type ChoiceMaxSelection = number | null;
4
+ export interface ChoiceOptionConfig {
5
+ id: string;
6
+ key?: string;
7
+ hasDisplayCondition?: boolean;
8
+ embeddedFormItemId?: string;
9
+ embeddedForm?: FormItemConfig;
10
+ }
11
+ export interface ChoiceItemConfig {
12
+ id: string;
13
+ maxSelection: ChoiceMaxSelection;
14
+ shuffleOptions: boolean;
15
+ options: ChoiceOptionConfig[];
16
+ }
17
+ export declare function choiceIsSingleSelect(maxSelection: ChoiceMaxSelection): boolean;
18
+ export declare function createChoiceItemConfig(itemId: string): ChoiceItemConfig;
19
+ export declare function getChoiceOptionLabelContentKey(optionId: string): string;
20
+ export declare function getChoiceOptionEmbeddedFormTranslationPrefix(optionId: string): string;
21
+ export declare function getChoiceOptionEmbeddedFormResponseSlotPrefix(optionId: string): string;
22
+ export declare function getChoiceOptionEmbeddedFormResponseSlotId(optionId: string, fieldKey: string): string;
23
+ export declare function getChoiceOptionEmbeddedFormResponseKeyPathSegment(option: Pick<ChoiceOptionConfig, "id" | "key">): string;
24
+ export declare function choiceOptionHasEmbeddedForm(option: Pick<ChoiceOptionConfig, "embeddedFormItemId" | "embeddedForm">): boolean;
25
+ export declare function normalizeChoiceOptionKey(value: string): string;
26
+ export declare function normalizeChoiceItemConfig(rawConfig: unknown, itemId: string): ChoiceItemConfig;
27
+ export declare function createChoiceOptionConfig(existingOptions: ChoiceOptionConfig[]): ChoiceOptionConfig;
28
+ export declare function createDuplicatedChoiceOptionConfig(option: ChoiceOptionConfig, existingOptions: ChoiceOptionConfig[]): ChoiceOptionConfig;
@@ -0,0 +1,2 @@
1
+ import { ItemPreviewComponentProps } from '../../../../../../modules/survey-editor';
2
+ export declare const ChoiceItemPreviewRenderer: React.FC<ItemPreviewComponentProps>;
@@ -0,0 +1,2 @@
1
+ import { ItemSearchAdapter } from '../../../survey-editor/registry';
2
+ export declare const choiceItemSearchAdapter: ItemSearchAdapter;
@@ -0,0 +1,3 @@
1
+ import { CommonItemEditorCardProps } from '../../../../../../modules/survey-editor/editor-card/item-editor-card';
2
+ declare const EditorCardForForm: React.FC<CommonItemEditorCardProps>;
3
+ export default EditorCardForForm;
@@ -0,0 +1,12 @@
1
+ import { SurveyItemTranslations } from '@case-framework/survey-core';
2
+ import { FormItemConfig } from '../model';
3
+ interface FormConfigEditorProps {
4
+ itemId: string;
5
+ config: FormItemConfig;
6
+ editingConfig: FormItemConfig;
7
+ selectedLocale: string;
8
+ translationNamespace?: string;
9
+ onPersist: (applyChanges: (nextConfig: FormItemConfig, nextTranslations: SurveyItemTranslations) => void | boolean) => boolean;
10
+ }
11
+ export declare const FormConfigEditor: React.FC<FormConfigEditorProps>;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import { FormFieldConfig } from '../model';
2
+ interface FormFieldEditDialogProps {
3
+ open: boolean;
4
+ field: FormFieldConfig | null;
5
+ allFields: FormFieldConfig[];
6
+ onOpenChange: (open: boolean) => void;
7
+ onSave: (nextField: FormFieldConfig) => void;
8
+ }
9
+ export declare const FormFieldEditDialog: React.FC<FormFieldEditDialogProps>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ interface FormFieldGroupHeaderDialogProps {
2
+ open: boolean;
3
+ initialTitle?: string;
4
+ initialDescription?: string;
5
+ onOpenChange: (open: boolean) => void;
6
+ onSave: (nextHeader: {
7
+ title?: string;
8
+ description?: string;
9
+ }) => void;
10
+ }
11
+ export declare const FormFieldGroupHeaderDialog: React.FC<FormFieldGroupHeaderDialogProps>;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ import { FormFieldGroupLayoutConfig } from '../model';
2
+ interface FormFieldGroupLayoutDialogProps {
3
+ open: boolean;
4
+ initialLayout: FormFieldGroupLayoutConfig;
5
+ onOpenChange: (open: boolean) => void;
6
+ onSave: (nextLayout: FormFieldGroupLayoutConfig) => void;
7
+ }
8
+ export declare const FormFieldGroupLayoutDialog: React.FC<FormFieldGroupLayoutDialogProps>;
9
+ export {};
@@ -0,0 +1,15 @@
1
+ import { FormFieldType } from '../model';
2
+ export interface FormFieldItemPreviewProps {
3
+ codingKey: string;
4
+ fieldType: FormFieldType;
5
+ label?: string;
6
+ required?: boolean;
7
+ hasValidations?: boolean;
8
+ isInvalid?: boolean;
9
+ variant?: "bordered" | "plain";
10
+ className?: string;
11
+ onClick?: () => void;
12
+ onEditKey?: () => void;
13
+ onDelete?: () => void;
14
+ }
15
+ export declare function FormFieldItemPreview({ codingKey, fieldType, label, required, hasValidations, isInvalid, variant, className, onClick, onEditKey, onDelete, }: FormFieldItemPreviewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { FormFieldConfig } from '../model';
2
+ interface FormFieldKeyDialogProps {
3
+ open: boolean;
4
+ field: FormFieldConfig | null;
5
+ allFields: FormFieldConfig[];
6
+ onOpenChange: (open: boolean) => void;
7
+ onSave: (nextKey: string) => void;
8
+ }
9
+ export declare const FormFieldKeyDialog: React.FC<FormFieldKeyDialogProps>;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import { FormFieldConfig } from '../model';
2
+ interface FormFieldSortDialogProps {
3
+ open: boolean;
4
+ groupId: string | null;
5
+ groupTitle?: string;
6
+ fields: FormFieldConfig[];
7
+ onOpenChange: (open: boolean) => void;
8
+ onFieldsReorder: (nextFields: FormFieldConfig[]) => void;
9
+ }
10
+ export declare const FormFieldSortDialog: React.FC<FormFieldSortDialogProps>;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import { FormFieldType } from '../model';
2
+ export declare const FORM_FIELD_TYPES: ("number" | "input" | "select" | "textarea" | "switch" | "slider" | "datepicker")[];
3
+ export declare const FORM_FIELD_TYPE_ICON: {
4
+ input: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
5
+ textarea: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
6
+ number: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
7
+ datepicker: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
8
+ switch: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
9
+ select: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
10
+ slider: import('react').ForwardRefExoticComponent<Omit<import('lucide-react').LucideProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
11
+ };
12
+ export declare function getFormFieldTypeLabel(t: (key: string) => string, fieldType: FormFieldType): string;
@@ -0,0 +1,16 @@
1
+ import { FormFieldType, FormFieldGroupConfig } from '../model';
2
+ interface FormResponseFieldGroupsListProps {
3
+ itemId: string;
4
+ items: FormFieldGroupConfig[];
5
+ onAddField: (groupId: string, fieldType: FormFieldType) => void;
6
+ onChangeGroupHeader: (groupId: string) => void;
7
+ onEditLayout: (groupId: string) => void;
8
+ onDeleteGroup: (groupId: string) => void;
9
+ onDeleteField: (groupId: string, fieldId: string) => void;
10
+ onEditField: (groupId: string, fieldId: string) => void;
11
+ onEditFieldKey: (groupId: string, fieldId: string) => void;
12
+ onSortFields: (groupId: string) => void;
13
+ onItemsReorder: (nextItems: FormFieldGroupConfig[]) => void;
14
+ }
15
+ export declare const FormResponseFieldGroupsList: React.FC<FormResponseFieldGroupsListProps>;
16
+ export {};