@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.
Files changed (228) hide show
  1. package/README.md +40 -34
  2. package/dist/src/index.d.ts +7 -13
  3. package/dist/src/lib/survey-assets.d.ts +2 -0
  4. package/dist/src/modules/survey-player/index.d.ts +2 -0
  5. package/dist/src/modules/survey-player/registry.d.ts +23 -0
  6. package/dist/src/modules/survey-player/survey-context.d.ts +1 -1
  7. package/dist/src/modules/survey-player/survey-item/survey-item-types/placeholder-item-renderers.d.ts +1 -1
  8. package/dist/src/modules/survey-player/survey-player.d.ts +1 -1
  9. package/dist/survey-ui.cjs +47 -0
  10. package/dist/survey-ui.cjs.map +1 -0
  11. package/dist/survey-ui.css +1 -1
  12. package/dist/survey-ui.js +14136 -0
  13. package/dist/survey-ui.js.map +1 -0
  14. package/package.json +25 -63
  15. package/dist/default-item-cores-C6VK2LFe.js +0 -10
  16. package/dist/default-item-cores-C6VK2LFe.js.map +0 -1
  17. package/dist/default-item-cores-gdu37TFX.mjs +0 -3988
  18. package/dist/default-item-cores-gdu37TFX.mjs.map +0 -1
  19. package/dist/item-core-registry.cjs.js +0 -2
  20. package/dist/item-core-registry.cjs.js.map +0 -1
  21. package/dist/item-core-registry.es.js +0 -11
  22. package/dist/item-core-registry.es.js.map +0 -1
  23. package/dist/src/components/c-ui/alert-provider.d.ts +0 -18
  24. package/dist/src/components/c-ui/dot-background.d.ts +0 -72
  25. package/dist/src/components/c-ui/filepicker-dropzone.d.ts +0 -38
  26. package/dist/src/components/c-ui/loading-button.d.ts +0 -9
  27. package/dist/src/components/common/content-editable-plain.d.ts +0 -17
  28. package/dist/src/components/common/sortable-tree.d.ts +0 -59
  29. package/dist/src/components/hooks/use-button-shortcut.d.ts +0 -18
  30. package/dist/src/components/hooks/use-document-keydown.d.ts +0 -7
  31. package/dist/src/components/rich-text/content-policy.d.ts +0 -19
  32. package/dist/src/components/rich-text/index.d.ts +0 -6
  33. package/dist/src/components/rich-text/nodes/rich-text-image-node.d.ts +0 -40
  34. package/dist/src/components/rich-text/nodes/rich-text-info-box-node.d.ts +0 -45
  35. package/dist/src/components/rich-text/nodes/survey-rich-text-heading-node.d.ts +0 -27
  36. package/dist/src/components/rich-text/rich-text-block-editor.d.ts +0 -8
  37. package/dist/src/components/rich-text/rich-text-editor-context.d.ts +0 -23
  38. package/dist/src/components/rich-text/rich-text-survey-content.d.ts +0 -7
  39. package/dist/src/components/rich-text/types.d.ts +0 -6
  40. package/dist/src/components/rich-text-editor/index.d.ts +0 -3
  41. package/dist/src/components/rich-text-editor/plugins/command-handler-plugin.d.ts +0 -5
  42. package/dist/src/components/rich-text-editor/plugins/editable-mode-plugin.d.ts +0 -3
  43. package/dist/src/components/rich-text-editor/plugins/floating-toolbar-plugin.d.ts +0 -11
  44. package/dist/src/components/rich-text-editor/plugins/image-dialog-plugin.d.ts +0 -4
  45. package/dist/src/components/rich-text-editor/plugins/info-box-popover-plugin.d.ts +0 -6
  46. package/dist/src/components/rich-text-editor/plugins/link-popover-plugin.d.ts +0 -6
  47. package/dist/src/components/rich-text-editor/plugins/rich-text-image-asset-deletion-plugin.d.ts +0 -1
  48. package/dist/src/components/rich-text-editor/plugins/slash-command-menu-plugin.d.ts +0 -15
  49. package/dist/src/components/rich-text-editor/plugins/sync-editor-value-plugin.d.ts +0 -4
  50. package/dist/src/components/rich-text-editor/rich-text-editor-utils.d.ts +0 -205
  51. package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +0 -43
  52. package/dist/src/components/rich-text-editor/rich-text-image-editor-commands.d.ts +0 -12
  53. package/dist/src/components/rich-text-editor/rich-text-info-box-commands.d.ts +0 -20
  54. package/dist/src/components/rich-text-editor/style-control-icon.d.ts +0 -5
  55. package/dist/src/components/ui/alert.d.ts +0 -10
  56. package/dist/src/components/ui/badge.d.ts +0 -9
  57. package/dist/src/components/ui/breadcrumb.d.ts +0 -11
  58. package/dist/src/components/ui/card.d.ts +0 -11
  59. package/dist/src/components/ui/command.d.ts +0 -18
  60. package/dist/src/components/ui/context-menu.d.ts +0 -31
  61. package/dist/src/components/ui/dialog.d.ts +0 -20
  62. package/dist/src/components/ui/dropdown-menu.d.ts +0 -29
  63. package/dist/src/components/ui/kbd.d.ts +0 -3
  64. package/dist/src/components/ui/resizable.d.ts +0 -7
  65. package/dist/src/components/ui/scroll-area.d.ts +0 -5
  66. package/dist/src/components/ui/skeleton.d.ts +0 -2
  67. package/dist/src/components/ui/sonner.d.ts +0 -3
  68. package/dist/src/components/ui/tabs.d.ts +0 -11
  69. package/dist/src/components/ui/toggle-group.d.ts +0 -10
  70. package/dist/src/components/ui/toggle.d.ts +0 -9
  71. package/dist/src/components/ui/tooltip.d.ts +0 -7
  72. package/dist/src/dev/_components/nav-input.d.ts +0 -35
  73. package/dist/src/dev/app.d.ts +0 -2
  74. package/dist/src/dev/localizations/de.d.ts +0 -2
  75. package/dist/src/dev/main.d.ts +0 -0
  76. package/dist/src/item-core-registry.d.ts +0 -4
  77. package/dist/src/modules/default-item-registry/default-registry-entries.d.ts +0 -2
  78. package/dist/src/modules/default-item-registry/index.d.ts +0 -19
  79. package/dist/src/modules/default-item-registry/item-authoring-state.d.ts +0 -15
  80. package/dist/src/modules/default-item-registry/items/choice/editor/card.d.ts +0 -3
  81. package/dist/src/modules/default-item-registry/items/choice/editor/option-create.d.ts +0 -11
  82. package/dist/src/modules/default-item-registry/items/choice/editor/option-edit-dialog.d.ts +0 -21
  83. package/dist/src/modules/default-item-registry/items/choice/editor/option-editor-fields.d.ts +0 -17
  84. package/dist/src/modules/default-item-registry/items/choice/editor/response-options-list.d.ts +0 -20
  85. package/dist/src/modules/default-item-registry/items/choice/expression-registry.d.ts +0 -3
  86. package/dist/src/modules/default-item-registry/items/choice/preview/item.d.ts +0 -2
  87. package/dist/src/modules/default-item-registry/items/choice/search-adapter.d.ts +0 -2
  88. package/dist/src/modules/default-item-registry/items/form/editor/card.d.ts +0 -3
  89. package/dist/src/modules/default-item-registry/items/form/editor/config-editor.d.ts +0 -12
  90. package/dist/src/modules/default-item-registry/items/form/editor/field-edit-dialog.d.ts +0 -10
  91. package/dist/src/modules/default-item-registry/items/form/editor/field-group-header-dialog.d.ts +0 -12
  92. package/dist/src/modules/default-item-registry/items/form/editor/field-group-layout-dialog.d.ts +0 -9
  93. package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +0 -15
  94. package/dist/src/modules/default-item-registry/items/form/editor/field-key-dialog.d.ts +0 -10
  95. package/dist/src/modules/default-item-registry/items/form/editor/field-sort-dialog.d.ts +0 -11
  96. package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +0 -12
  97. package/dist/src/modules/default-item-registry/items/form/editor/response-field-groups-list.d.ts +0 -16
  98. package/dist/src/modules/default-item-registry/items/form/preview/item.d.ts +0 -2
  99. package/dist/src/modules/default-item-registry/items/form/search-adapter.d.ts +0 -2
  100. package/dist/src/modules/default-item-registry/items/info/editor-card.d.ts +0 -3
  101. package/dist/src/modules/default-item-registry/items/info/preview/item.d.ts +0 -2
  102. package/dist/src/modules/default-item-registry/items/info/search-adapter.d.ts +0 -2
  103. package/dist/src/modules/default-item-registry/items/structure/group/editor-card.d.ts +0 -3
  104. package/dist/src/modules/default-item-registry/items/structure/page-break/editor-card.d.ts +0 -3
  105. package/dist/src/modules/default-item-registry/items/structure/preview-renderers.d.ts +0 -3
  106. package/dist/src/modules/default-item-registry/items/structure/root/editor-card.d.ts +0 -3
  107. package/dist/src/modules/default-item-registry/shared/preview/question-header.d.ts +0 -6
  108. package/dist/src/modules/default-item-registry/shared/preview/utils.d.ts +0 -3
  109. package/dist/src/modules/default-item-registry/shared/question-editor/deferred-localized-rich-text-field.d.ts +0 -26
  110. package/dist/src/modules/default-item-registry/shared/question-editor/header-editor.d.ts +0 -6
  111. package/dist/src/modules/default-item-registry/shared/question-editor/layout.d.ts +0 -8
  112. package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-editors.d.ts +0 -23
  113. package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-policies.d.ts +0 -8
  114. package/dist/src/modules/default-item-registry/shared/question-editor/toolbar.d.ts +0 -10
  115. package/dist/src/modules/survey-editor/ai/create-provider.d.ts +0 -22
  116. package/dist/src/modules/survey-editor/ai/types.d.ts +0 -11
  117. package/dist/src/modules/survey-editor/ai/use-survey-assistant-integration.d.ts +0 -16
  118. package/dist/src/modules/survey-editor/assets/index.d.ts +0 -4
  119. package/dist/src/modules/survey-editor/assets/survey-image-asset-manager.d.ts +0 -4
  120. package/dist/src/modules/survey-editor/assets/use-survey-assets.d.ts +0 -4
  121. package/dist/src/modules/survey-editor/assets/utils.d.ts +0 -5
  122. package/dist/src/modules/survey-editor/assistant/apply.d.ts +0 -24
  123. package/dist/src/modules/survey-editor/assistant/index.d.ts +0 -2
  124. package/dist/src/modules/survey-editor/assistant/snapshot.d.ts +0 -39
  125. package/dist/src/modules/survey-editor/editor-card/add-items/constants.d.ts +0 -5
  126. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +0 -24
  127. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-target.d.ts +0 -9
  128. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-option-group-navigation.d.ts +0 -20
  129. package/dist/src/modules/survey-editor/editor-card/add-items/types.d.ts +0 -21
  130. package/dist/src/modules/survey-editor/editor-card/add-items/views/back-button.d.ts +0 -5
  131. package/dist/src/modules/survey-editor/editor-card/add-items/views/blank-item-view.d.ts +0 -13
  132. package/dist/src/modules/survey-editor/editor-card/add-items/views/entry-view.d.ts +0 -15
  133. package/dist/src/modules/survey-editor/editor-card/add-items/views/item-type-grid-view.d.ts +0 -30
  134. package/dist/src/modules/survey-editor/editor-card/add-items/views/structure-view.d.ts +0 -16
  135. package/dist/src/modules/survey-editor/editor-card/add-items.d.ts +0 -1
  136. package/dist/src/modules/survey-editor/editor-card/copy-item-dropdown-menu.d.ts +0 -5
  137. package/dist/src/modules/survey-editor/editor-card/delete-item-context-menu.d.ts +0 -5
  138. package/dist/src/modules/survey-editor/editor-card/delete-item-dropdown-menu.d.ts +0 -7
  139. package/dist/src/modules/survey-editor/editor-card/editor-card-tab-trigger.d.ts +0 -15
  140. package/dist/src/modules/survey-editor/editor-card/expression-pseudo-code.d.ts +0 -8
  141. package/dist/src/modules/survey-editor/editor-card/group-items.d.ts +0 -2
  142. package/dist/src/modules/survey-editor/editor-card/hooks/use-armed-shortcut-sequence.d.ts +0 -11
  143. package/dist/src/modules/survey-editor/editor-card/hooks/use-group-list-keyboard.d.ts +0 -30
  144. package/dist/src/modules/survey-editor/editor-card/index.d.ts +0 -2
  145. package/dist/src/modules/survey-editor/editor-card/item-authoring-state-preview.d.ts +0 -16
  146. package/dist/src/modules/survey-editor/editor-card/item-color-menu.d.ts +0 -6
  147. package/dist/src/modules/survey-editor/editor-card/item-color-selector.d.ts +0 -5
  148. package/dist/src/modules/survey-editor/editor-card/item-editor-card-skeleton.d.ts +0 -2
  149. package/dist/src/modules/survey-editor/editor-card/item-editor-card.d.ts +0 -34
  150. package/dist/src/modules/survey-editor/editor-card/item-editor-context.d.ts +0 -23
  151. package/dist/src/modules/survey-editor/editor-card/item-expression-overview.d.ts +0 -33
  152. package/dist/src/modules/survey-editor/editor-card/item-key-editor.d.ts +0 -9
  153. package/dist/src/modules/survey-editor/editor-card/item-label-preview-and-editor.d.ts +0 -10
  154. package/dist/src/modules/survey-editor/editor-card/item-preview.d.ts +0 -8
  155. package/dist/src/modules/survey-editor/editor-card/item-sibling-navigation.d.ts +0 -5
  156. package/dist/src/modules/survey-editor/editor-card/item-type-icon-with-tooltip.d.ts +0 -8
  157. package/dist/src/modules/survey-editor/editor-card/survey-player-item-preview.d.ts +0 -6
  158. package/dist/src/modules/survey-editor/editor-instance-provider.d.ts +0 -9
  159. package/dist/src/modules/survey-editor/hooks/useClipboardValue.d.ts +0 -2
  160. package/dist/src/modules/survey-editor/hooks/useDeleteItem.d.ts +0 -11
  161. package/dist/src/modules/survey-editor/hooks/useEditor.d.ts +0 -12
  162. package/dist/src/modules/survey-editor/hooks/useEditorStateChange.d.ts +0 -18
  163. package/dist/src/modules/survey-editor/hooks/useKeyboardShortcuts.d.ts +0 -7
  164. package/dist/src/modules/survey-editor/index.d.ts +0 -20
  165. package/dist/src/modules/survey-editor/localization/date-fns.d.ts +0 -5
  166. package/dist/src/modules/survey-editor/localization/default-all.d.ts +0 -2
  167. package/dist/src/modules/survey-editor/localization/default-en.d.ts +0 -3
  168. package/dist/src/modules/survey-editor/localization/default-nl.d.ts +0 -2
  169. package/dist/src/modules/survey-editor/localization/index.d.ts +0 -5
  170. package/dist/src/modules/survey-editor/localization/runtime.d.ts +0 -4
  171. package/dist/src/modules/survey-editor/navigation/location.d.ts +0 -6
  172. package/dist/src/modules/survey-editor/navigation/navigation-provider.d.ts +0 -12
  173. package/dist/src/modules/survey-editor/navigation/navigation.d.ts +0 -22
  174. package/dist/src/modules/survey-editor/navigation/types.d.ts +0 -23
  175. package/dist/src/modules/survey-editor/primitives/input-with-ai-popover.d.ts +0 -35
  176. package/dist/src/modules/survey-editor/registry/authoring-state.d.ts +0 -17
  177. package/dist/src/modules/survey-editor/registry/index.d.ts +0 -8
  178. package/dist/src/modules/survey-editor/registry/registry-mappers.d.ts +0 -25
  179. package/dist/src/modules/survey-editor/registry/search-adapter.d.ts +0 -19
  180. package/dist/src/modules/survey-editor/registry/types.d.ts +0 -218
  181. package/dist/src/modules/survey-editor/routes/editor/_components/assistant-authoring-lock.d.ts +0 -7
  182. package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot-context.d.ts +0 -6
  183. package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot.d.ts +0 -8
  184. package/dist/src/modules/survey-editor/routes/editor/_components/editor-mode-switch.d.ts +0 -7
  185. package/dist/src/modules/survey-editor/routes/editor/_components/editor-workspace.d.ts +0 -30
  186. package/dist/src/modules/survey-editor/routes/editor/_components/footer.d.ts +0 -2
  187. package/dist/src/modules/survey-editor/routes/editor/_components/history-stack.d.ts +0 -2
  188. package/dist/src/modules/survey-editor/routes/editor/_components/main.d.ts +0 -7
  189. package/dist/src/modules/survey-editor/routes/editor/_components/workspace-presets.d.ts +0 -75
  190. package/dist/src/modules/survey-editor/routes/editor/asset-manager/index.d.ts +0 -2
  191. package/dist/src/modules/survey-editor/routes/editor/index.d.ts +0 -7
  192. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/breadcrumbs-nav.d.ts +0 -2
  193. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/item-editor-toolbar.d.ts +0 -6
  194. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/language-picker.d.ts +0 -2
  195. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/search-trigger.d.ts +0 -3
  196. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/survey-search.d.ts +0 -7
  197. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-outline.d.ts +0 -3
  198. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-workspace.d.ts +0 -12
  199. package/dist/src/modules/survey-editor/routes/editor/item-editor/index.d.ts +0 -6
  200. package/dist/src/modules/survey-editor/routes/editor/preview-mode/index.d.ts +0 -7
  201. package/dist/src/modules/survey-editor/routes/editor/preview-mode/page-break-divider.d.ts +0 -6
  202. package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-controls.d.ts +0 -15
  203. package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-tree.d.ts +0 -26
  204. package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-canvas.d.ts +0 -16
  205. package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-item.d.ts +0 -13
  206. package/dist/src/modules/survey-editor/routes/editor/preview-mode/use-preview-preferences.d.ts +0 -14
  207. package/dist/src/modules/survey-editor/routes/editor/translation-mode/index.d.ts +0 -2
  208. package/dist/src/modules/survey-editor/session-file.d.ts +0 -13
  209. package/dist/src/modules/survey-editor/store/editor-store-context.d.ts +0 -10
  210. package/dist/src/modules/survey-editor/store/editor-store-provider.d.ts +0 -7
  211. package/dist/src/modules/survey-editor/store/editor-store.d.ts +0 -109
  212. package/dist/src/modules/survey-editor/store/use-editor-store.d.ts +0 -4
  213. package/dist/src/modules/survey-editor/store/useItemNavigation.d.ts +0 -7
  214. package/dist/src/modules/survey-editor/survey-editor-config.d.ts +0 -38
  215. package/dist/src/modules/survey-editor/survey-editor.d.ts +0 -40
  216. package/dist/src/modules/survey-editor/utils/item-type-infos.d.ts +0 -23
  217. package/dist/src/modules/survey-editor/workspace.d.ts +0 -17
  218. package/dist/src/modules/survey-player/survey-item/survey-item-types/question-wrapper.d.ts +0 -5
  219. package/dist/survey-editor-animations.css +0 -87
  220. package/dist/survey-editor-animations.css.d.ts +0 -2
  221. package/dist/survey-editor-defaults.css +0 -15
  222. package/dist/survey-editor-defaults.css.d.ts +0 -2
  223. package/dist/survey-ui.cjs.js +0 -199
  224. package/dist/survey-ui.cjs.js.map +0 -1
  225. package/dist/survey-ui.es.js +0 -57954
  226. package/dist/survey-ui.es.js.map +0 -1
  227. package/dist/vite.svg +0 -1
  228. /package/dist/src/{components/rich-text/rich-text-link-utils.d.ts → lib/rich-text-link-url.d.ts} +0 -0
@@ -1,205 +0,0 @@
1
- import { RichTextInfoBoxTone } from '../../../components/rich-text/nodes/rich-text-info-box-node';
2
- import { SurveyRichTextHeadingNode } from '../../../components/rich-text/nodes/survey-rich-text-heading-node';
3
- import { EditorConfig, ElementFormatType, LexicalCommand, LexicalEditor, LexicalNode, NodeKey, ParagraphNode, RangeSelection, SerializedEditorState, SerializedTextNode, Spread, TextFormatType, TextNode } from 'lexical';
4
- import { RichTextHeadingBlock, RichTextImageSize, SurveyContentImageSource } from '@case-framework/survey-core';
5
- import { RichTextInfoBoxInsertPayload } from './rich-text-info-box-commands';
6
- export declare const RICH_TEXT_EDITOR_SYNC_FROM_VALUE_TAG = "rich-text-editor-sync-from-value";
7
- export interface RichTextTemplateVariable {
8
- key: string;
9
- label?: string;
10
- }
11
- export interface RichTextLinkPayload {
12
- text?: string;
13
- url?: string;
14
- openEditor?: boolean;
15
- }
16
- export type RichTextStyleControl = {
17
- kind: "weight";
18
- value: "strong" | "normal";
19
- label?: string;
20
- title?: string;
21
- } | {
22
- kind: "italic";
23
- value: "italic" | "normal";
24
- label?: string;
25
- title?: string;
26
- } | {
27
- kind: "underline";
28
- value: "underline" | "none";
29
- label?: string;
30
- title?: string;
31
- } | {
32
- kind: "color";
33
- value: "primary" | "accent";
34
- label?: string;
35
- title?: string;
36
- };
37
- export type SerializedTemplateVariableNode = Spread<{
38
- templateKey: string;
39
- }, SerializedTextNode>;
40
- export type SerializedRichTextLinkNode = Spread<{
41
- url: string;
42
- }, SerializedTextNode>;
43
- /** Semantic buckets for slash menu grouping (visual sections in the picker). */
44
- export type SlashCommandGroupId = "formatting" | "blocks" | "insert";
45
- export declare const SLASH_COMMAND_GROUP_ORDER: Record<SlashCommandGroupId, number>;
46
- export type SlashCommandItem = {
47
- key: string;
48
- label: string;
49
- keywords: string[];
50
- group: SlashCommandGroupId;
51
- kind: "style";
52
- control: RichTextStyleControl;
53
- } | {
54
- key: string;
55
- label: string;
56
- keywords: string[];
57
- group: SlashCommandGroupId;
58
- kind: "template";
59
- templateVariable: RichTextTemplateVariable;
60
- } | {
61
- key: "link";
62
- label: string;
63
- keywords: string[];
64
- group: SlashCommandGroupId;
65
- kind: "link";
66
- } | {
67
- key: "bullet-list";
68
- label: string;
69
- keywords: string[];
70
- group: SlashCommandGroupId;
71
- kind: "bulletList";
72
- } | {
73
- key: string;
74
- label: string;
75
- keywords: string[];
76
- group: SlashCommandGroupId;
77
- kind: "heading";
78
- level: RichTextHeadingBlock["level"];
79
- } | {
80
- key: string;
81
- label: string;
82
- keywords: string[];
83
- group: SlashCommandGroupId;
84
- kind: "infoBox";
85
- tone: "info" | "warning";
86
- } | {
87
- key: "image";
88
- label: string;
89
- keywords: string[];
90
- group: SlashCommandGroupId;
91
- kind: "image";
92
- } | {
93
- key: "horizontal-divider";
94
- label: string;
95
- keywords: string[];
96
- group: SlashCommandGroupId;
97
- kind: "separator";
98
- };
99
- export declare function getTemplateVariableText(templateKey: string): string;
100
- export declare function getStyleControlKey(control: RichTextStyleControl): string;
101
- export declare function resolveStyleControl(control: RichTextStyleControl): {
102
- label: string;
103
- title: string;
104
- property: string;
105
- value: string;
106
- };
107
- export declare function getSlashCommandItems(styleControls: RichTextStyleControl[], templateVariables: RichTextTemplateVariable[], linksEnabled?: boolean, bulletListsEnabled?: boolean, headingsEnabled?: boolean, infoBoxesEnabled?: boolean, imagesEnabled?: boolean, separatorsEnabled?: boolean): SlashCommandItem[];
108
- export declare function $insertSurveyRichTextHeading(level: RichTextHeadingBlock["level"]): boolean;
109
- /** Nearest paragraph or survey heading that supports Lexical element format (block text-align). */
110
- export declare function $getRichTextBlockForAlignment(selection: RangeSelection): ParagraphNode | SurveyRichTextHeadingNode | null;
111
- /** Direct children of the editor root that contain any part of the range (paragraph, list, image, etc.). */
112
- export declare function $getRootLevelBlocksIntersectingSelection(selection: RangeSelection): LexicalNode[];
113
- /**
114
- * True when every root-level block touched by the selection persists alignment in survey rich text
115
- * (plain paragraphs and survey headings — not lists, images, or separators).
116
- */
117
- export declare function $selectionAllowsSurveyRichTextBlockAlignment(selection: RangeSelection): boolean;
118
- export declare function $getRootLevelBlockForNode(node: LexicalNode): LexicalNode | null;
119
- export declare function $insertSurveyRichTextBulletList(): boolean;
120
- /**
121
- * Lexical copies the previous block's element format onto list items when inserting a list.
122
- * Survey bullet lists do not model block alignment; clear it so list text is not stuck right-aligned.
123
- */
124
- export declare function $clearBulletListElementAlignmentFromSelection(): void;
125
- export declare function createRichTextEditorInstance(): LexicalEditor;
126
- export declare function resetRichTextEditorWithPlainText(text?: string): void;
127
- export declare function createRichTextEditorValueFromPlainText(text?: string): SerializedEditorState;
128
- export declare function toggleRichTextStyle(control: RichTextStyleControl): boolean;
129
- export declare function isRichTextStyleControlActive(selection: RangeSelection, control: RichTextStyleControl): boolean;
130
- export declare function styleControlToTextFormat(control: RichTextStyleControl): TextFormatType | null;
131
- export declare function insertRichTextTemplateVariable(templateVariable: RichTextTemplateVariable): boolean;
132
- export declare function insertRichTextInfoBox(payload: RichTextInfoBoxInsertPayload): NodeKey | null;
133
- export type RichTextImageInsertPayload = {
134
- replaceIfEmptyParagraphKey?: NodeKey;
135
- };
136
- export declare function insertRichTextImage(payload?: RichTextImageInsertPayload): NodeKey | null;
137
- export declare function updateRichTextImage(payload: {
138
- key: NodeKey;
139
- source: SurveyContentImageSource;
140
- alt: string;
141
- caption: string;
142
- size?: RichTextImageSize;
143
- format: ElementFormatType;
144
- }): boolean;
145
- export declare function updateRichTextInfoBox(payload: {
146
- key: NodeKey;
147
- tone: RichTextInfoBoxTone;
148
- title: string;
149
- content: string;
150
- collapsible: boolean;
151
- defaultOpen: boolean;
152
- }): boolean;
153
- export declare function insertRichTextLink(payload?: RichTextLinkPayload): NodeKey | null;
154
- export declare function updateRichTextLink({ key, text, url, }: {
155
- key: NodeKey;
156
- text: string;
157
- url: string;
158
- }): boolean;
159
- export declare function convertRichTextLinkToText(key: NodeKey): boolean;
160
- export declare const APPLY_RICH_TEXT_STYLE_COMMAND: LexicalCommand<RichTextStyleControl>;
161
- export declare const INSERT_RICH_TEXT_TEMPLATE_VARIABLE_COMMAND: LexicalCommand<RichTextTemplateVariable>;
162
- export declare const INSERT_RICH_TEXT_LINK_COMMAND: LexicalCommand<RichTextLinkPayload>;
163
- export declare const OPEN_RICH_TEXT_LINK_EDITOR_COMMAND: LexicalCommand<NodeKey>;
164
- export declare const UPDATE_RICH_TEXT_LINK_COMMAND: LexicalCommand<{
165
- key: NodeKey;
166
- text: string;
167
- url: string;
168
- }>;
169
- export declare const CONVERT_RICH_TEXT_LINK_TO_TEXT_COMMAND: LexicalCommand<NodeKey>;
170
- export { INSERT_RICH_TEXT_INFO_BOX_COMMAND, OPEN_RICH_TEXT_INFO_BOX_EDITOR_COMMAND, UPDATE_RICH_TEXT_INFO_BOX_COMMAND, type RichTextInfoBoxInsertPayload, } from './rich-text-info-box-commands';
171
- export { OPEN_RICH_TEXT_IMAGE_EDITOR_COMMAND, UPDATE_RICH_TEXT_IMAGE_COMMAND, type RichTextImageUpdatePayload, } from './rich-text-image-editor-commands';
172
- export declare class TemplateVariableNode extends TextNode {
173
- __templateKey: string;
174
- static getType(): string;
175
- static clone(node: TemplateVariableNode): TemplateVariableNode;
176
- static importJSON(serializedNode: SerializedTemplateVariableNode): TemplateVariableNode;
177
- constructor(templateKey: string, key?: NodeKey);
178
- afterCloneFrom(prevNode: this): void;
179
- createDOM(config: EditorConfig): HTMLElement;
180
- updateDOM(prevNode: this, dom: HTMLElement, config: EditorConfig): boolean;
181
- exportJSON(): SerializedTemplateVariableNode;
182
- canInsertTextBefore(): boolean;
183
- canInsertTextAfter(): boolean;
184
- isTextEntity(): true;
185
- }
186
- export declare class RichTextLinkNode extends TextNode {
187
- __url: string;
188
- static getType(): string;
189
- static clone(node: RichTextLinkNode): RichTextLinkNode;
190
- static importJSON(serializedNode: SerializedRichTextLinkNode): RichTextLinkNode;
191
- constructor(text: string, url: string, key?: NodeKey);
192
- afterCloneFrom(prevNode: this): void;
193
- createDOM(config: EditorConfig): HTMLElement;
194
- updateDOM(prevNode: this, dom: HTMLElement, config: EditorConfig): boolean;
195
- exportJSON(): SerializedRichTextLinkNode;
196
- getURL(): string;
197
- setURL(url: string): this;
198
- canInsertTextBefore(): boolean;
199
- canInsertTextAfter(): boolean;
200
- splitText(...splitOffsets: number[]): TextNode[];
201
- isTextEntity(): false;
202
- }
203
- export declare function $createTemplateVariableNode(templateKey: string): TemplateVariableNode;
204
- export declare function $createRichTextLinkNode(text: string, url: string): RichTextLinkNode;
205
- export declare function $isRichTextLinkNode(node: unknown): node is RichTextLinkNode;
@@ -1,43 +0,0 @@
1
- import { RichTextContentPolicy } from '../../../components/rich-text/content-policy';
2
- import { RichTextImageAssetDeletionHandlers } from '../../../components/rich-text/rich-text-editor-context';
3
- import { RichTextImageAssetOption } from '../../../components/rich-text/types';
4
- import { EditorState, SerializedEditorState } from 'lexical';
5
- import { KeyboardEventHandler } from 'react';
6
- import { RichTextStyleControl, RichTextTemplateVariable } from './rich-text-editor-utils';
7
- export interface RichTextEditorChange {
8
- editorState: EditorState;
9
- value: SerializedEditorState;
10
- plainText: string;
11
- isEmpty: boolean;
12
- }
13
- export interface RichTextEditorProps {
14
- id?: string;
15
- value?: SerializedEditorState | null;
16
- placeholder?: string;
17
- autoFocus?: boolean;
18
- editable?: boolean;
19
- wrapperClassName?: string;
20
- surfaceClassName?: string;
21
- contentClassName?: string;
22
- placeholderClassName?: string;
23
- toolbarClassName?: string;
24
- commandMenuClassName?: string;
25
- styleControls?: RichTextStyleControl[];
26
- templateVariables?: RichTextTemplateVariable[];
27
- editorVariant?: "compact" | "block";
28
- contentPolicy?: RichTextContentPolicy;
29
- resolveImageAssetUrl?: (assetId: string) => string | undefined;
30
- imageAssets?: RichTextImageAssetOption[];
31
- /** When set, the image popover can add a new embedded survey image asset and return its id. */
32
- registerImageAsset?: (file: File) => Promise<string>;
33
- /** Survey wiring for optional confirm + removal when a single-use embedded image is deleted from the document. */
34
- imageAssetDeletion?: RichTextImageAssetDeletionHandlers;
35
- linksEnabled?: boolean;
36
- "aria-label"?: string;
37
- onChange?: (change: RichTextEditorChange) => void;
38
- onFocus?: () => void;
39
- onBlur?: () => void;
40
- onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
41
- onKeyDownCapture?: KeyboardEventHandler<HTMLDivElement>;
42
- }
43
- export declare function RichTextEditor({ id, value, placeholder, autoFocus, editable, wrapperClassName, surfaceClassName, contentClassName, placeholderClassName, toolbarClassName, commandMenuClassName, styleControls, templateVariables, editorVariant, contentPolicy, resolveImageAssetUrl, imageAssets, registerImageAsset, imageAssetDeletion, linksEnabled, "aria-label": ariaLabel, onChange, onFocus, onBlur, onKeyDown, onKeyDownCapture, }: RichTextEditorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { RichTextImageSize, SurveyContentImageSource } from '@case-framework/survey-core';
2
- import { ElementFormatType, LexicalCommand, NodeKey } from 'lexical';
3
- export declare const OPEN_RICH_TEXT_IMAGE_EDITOR_COMMAND: LexicalCommand<NodeKey>;
4
- export type RichTextImageUpdatePayload = {
5
- key: NodeKey;
6
- source: SurveyContentImageSource;
7
- alt: string;
8
- caption: string;
9
- size?: RichTextImageSize;
10
- format: ElementFormatType;
11
- };
12
- export declare const UPDATE_RICH_TEXT_IMAGE_COMMAND: LexicalCommand<RichTextImageUpdatePayload>;
@@ -1,20 +0,0 @@
1
- import { LexicalCommand, NodeKey } from 'lexical';
2
- export type RichTextInfoBoxInsertPayload = {
3
- tone: "info" | "warning";
4
- /**
5
- * When inserting from the slash menu, Lexical may clear range selection after removing the
6
- * trigger text. Pass the root paragraph key *before* that removal so we can replace an empty
7
- * paragraph reliably.
8
- */
9
- replaceIfEmptyParagraphKey?: NodeKey;
10
- };
11
- export declare const INSERT_RICH_TEXT_INFO_BOX_COMMAND: LexicalCommand<RichTextInfoBoxInsertPayload>;
12
- export declare const OPEN_RICH_TEXT_INFO_BOX_EDITOR_COMMAND: LexicalCommand<NodeKey>;
13
- export declare const UPDATE_RICH_TEXT_INFO_BOX_COMMAND: LexicalCommand<{
14
- key: NodeKey;
15
- tone: "info" | "warning";
16
- title: string;
17
- content: string;
18
- collapsible: boolean;
19
- defaultOpen: boolean;
20
- }>;
@@ -1,5 +0,0 @@
1
- import { RichTextStyleControl } from './rich-text-editor-utils';
2
- export declare function StyleControlIcon({ control, variant, }: {
3
- control: RichTextStyleControl;
4
- variant: "toolbar" | "menu";
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- declare const alertVariants: (props?: ({
4
- variant?: "default" | "destructive" | null | undefined;
5
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
7
- declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
- declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
- declare function AlertAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
- export { Alert, AlertTitle, AlertDescription, AlertAction };
@@ -1,9 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- declare const badgeVariants: (props?: ({
4
- variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
5
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
7
- asChild?: boolean;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export { Badge, badgeVariants };
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
- declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
3
- declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): import("react/jsx-runtime").JSX.Element;
4
- declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
5
- declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & {
6
- asChild?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
9
- declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
10
- declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
11
- export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
- declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
3
- size?: "default" | "sm";
4
- }): import("react/jsx-runtime").JSX.Element;
5
- declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
6
- declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
7
- declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
- declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
- declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
- declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
- export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
@@ -1,18 +0,0 @@
1
- import { Command as CommandPrimitive } from 'cmdk';
2
- import { Dialog } from '../../../components/ui/dialog';
3
- import * as React from "react";
4
- declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
5
- declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
- title?: string;
7
- description?: string;
8
- className?: string;
9
- showCloseButton?: boolean;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
12
- declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
13
- declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
14
- declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
15
- declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
16
- declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
17
- declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
18
- export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -1,31 +0,0 @@
1
- import { ContextMenu as ContextMenuPrimitive } from 'radix-ui';
2
- import * as React from "react";
3
- declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function ContextMenuTrigger({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
6
- declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
- declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
8
- declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
9
- declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content> & {
10
- side?: "top" | "right" | "bottom" | "left";
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
13
- inset?: boolean;
14
- variant?: "default" | "destructive";
15
- }): import("react/jsx-runtime").JSX.Element;
16
- declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
17
- inset?: boolean;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
20
- declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem> & {
21
- inset?: boolean;
22
- }): import("react/jsx-runtime").JSX.Element;
23
- declare function ContextMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem> & {
24
- inset?: boolean;
25
- }): import("react/jsx-runtime").JSX.Element;
26
- declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
27
- inset?: boolean;
28
- }): import("react/jsx-runtime").JSX.Element;
29
- declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
30
- declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
31
- export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
@@ -1,20 +0,0 @@
1
- import { Dialog as DialogPrimitive } from 'radix-ui';
2
- import * as React from "react";
3
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
7
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
8
- declare function DialogContent({ className, children, showCloseButton, closeLabel, dismissOnInteractOutside, onInteractOutside, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
9
- showCloseButton?: boolean;
10
- closeLabel?: string;
11
- dismissOnInteractOutside?: boolean;
12
- }): import("react/jsx-runtime").JSX.Element;
13
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
14
- declare function DialogFooter({ className, showCloseButton, closeLabel, children, ...props }: React.ComponentProps<"div"> & {
15
- showCloseButton?: boolean;
16
- closeLabel?: string;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
19
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
20
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -1,29 +0,0 @@
1
- import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
2
- import * as React from "react";
3
- declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
- declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
- declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
8
- declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
- inset?: boolean;
10
- variant?: "default" | "destructive";
11
- }): import("react/jsx-runtime").JSX.Element;
12
- declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
13
- inset?: boolean;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
16
- declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
17
- inset?: boolean;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
20
- inset?: boolean;
21
- }): import("react/jsx-runtime").JSX.Element;
22
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
23
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
24
- declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
25
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
26
- inset?: boolean;
27
- }): import("react/jsx-runtime").JSX.Element;
28
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
29
- export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
@@ -1,3 +0,0 @@
1
- declare function Kbd({ className, ...props }: React.ComponentProps<"kbd">): import("react/jsx-runtime").JSX.Element;
2
- declare function KbdGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
- export { Kbd, KbdGroup };
@@ -1,7 +0,0 @@
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 };
@@ -1,5 +0,0 @@
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 };
@@ -1,2 +0,0 @@
1
- declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
2
- export { Skeleton };
@@ -1,3 +0,0 @@
1
- import { ToasterProps } from 'sonner';
2
- declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
3
- export { Toaster };
@@ -1,11 +0,0 @@
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?: "default" | "line" | 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 };
@@ -1,10 +0,0 @@
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 };
@@ -1,9 +0,0 @@
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?: "default" | "sm" | "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 };
@@ -1,7 +0,0 @@
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 };
@@ -1,35 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- declare const App: React.FC;
2
- export default App;
@@ -1,2 +0,0 @@
1
- import { LocalizationMessages } from '@case-framework/ui-localization';
2
- export declare const surveyEditorDevDeMessages: LocalizationMessages;
File without changes
@@ -1,4 +0,0 @@
1
- import { ItemTypeRegistry } from '@case-framework/survey-core';
2
- import { ChoiceItemCore, FormItemCore, InfoItemCore } from './modules/default-item-registry/default-item-cores';
3
- export declare const defaultItemCoreRegistry: ItemTypeRegistry;
4
- export { ChoiceItemCore, FormItemCore, InfoItemCore };
@@ -1,2 +0,0 @@
1
- import { ItemRegistryEntry } from '../survey-editor/registry';
2
- export declare const defaultRegistryEntries: ItemRegistryEntry[];
@@ -1,19 +0,0 @@
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;
@@ -1,15 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import { CommonItemEditorCardProps } from '../../../../../../modules/survey-editor/editor-card/item-editor-card';
2
- declare const EditorCardForChoice: React.FC<CommonItemEditorCardProps>;
3
- export default EditorCardForChoice;