@case-framework/survey-editor-ui 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +85 -0
  2. package/dist/src/components/c-ui/dot-background.d.ts +2 -2
  3. package/dist/src/components/rich-text/content-policy.d.ts +10 -1
  4. package/dist/src/components/rich-text/nodes/survey-rich-text-heading-node.d.ts +4 -1
  5. package/dist/src/components/rich-text-editor/plugins/block-shortcut-plugin.d.ts +4 -2
  6. package/dist/src/components/rich-text-editor/plugins/docked-toolbar-plugin.d.ts +3 -1
  7. package/dist/src/components/rich-text-editor/plugins/heading-policy-plugin.d.ts +13 -0
  8. package/dist/src/components/rich-text-editor/plugins/link-shortcut-plugin.d.ts +3 -0
  9. package/dist/src/components/rich-text-editor/plugins/slash-command-menu-plugin.d.ts +3 -1
  10. package/dist/src/components/rich-text-editor/plugins/sync-editor-value-plugin.d.ts +5 -2
  11. package/dist/src/components/rich-text-editor/rich-text-editor-provider.d.ts +18 -0
  12. package/dist/src/components/rich-text-editor/rich-text-editor-utils.d.ts +22 -5
  13. package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +4 -1
  14. package/dist/src/index.d.ts +2 -0
  15. package/dist/src/lib/utils.d.ts +1 -2
  16. package/dist/src/modules/default-item-registry/items/choice/editor/option-create.d.ts +1 -1
  17. package/dist/src/modules/default-item-registry/items/choice/editor/option-editor-card.d.ts +2 -2
  18. package/dist/src/modules/default-item-registry/items/choice/editor/response-options-list.d.ts +1 -1
  19. package/dist/src/modules/default-item-registry/items/form/editor/config-editor.d.ts +1 -1
  20. package/dist/src/modules/default-item-registry/items/form/editor/editor-metadata.d.ts +10 -0
  21. package/dist/src/modules/default-item-registry/items/form/editor/field-edit-dialog.d.ts +1 -1
  22. package/dist/src/modules/default-item-registry/items/form/editor/field-group-layout-dialog.d.ts +1 -1
  23. package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +1 -1
  24. package/dist/src/modules/default-item-registry/items/form/editor/field-key-dialog.d.ts +1 -1
  25. package/dist/src/modules/default-item-registry/items/form/editor/field-sort-dialog.d.ts +1 -1
  26. package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +8 -8
  27. package/dist/src/modules/default-item-registry/items/form/editor/response-field-groups-list.d.ts +1 -1
  28. package/dist/src/modules/default-item-registry/items/form/editor/simple-field-editor.d.ts +1 -1
  29. package/dist/src/modules/survey-editor/assistant/apply.d.ts +1 -11
  30. package/dist/src/modules/survey-editor/assistant/index.d.ts +1 -1
  31. package/dist/src/modules/survey-editor/assistant/snapshot.d.ts +1 -2
  32. package/dist/src/modules/survey-editor/hooks/focus-when-available.d.ts +8 -0
  33. package/dist/src/modules/survey-editor/hooks/item-clipboard-shortcut.d.ts +16 -0
  34. package/dist/src/modules/survey-editor/routes/editor/_components/expression-diagnostics-status-model.d.ts +10 -0
  35. package/dist/src/modules/survey-editor/routes/editor/_components/workspace-presets.d.ts +7 -7
  36. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-drag-drop.d.ts +2 -1
  37. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/outline-selection.d.ts +6 -0
  38. package/dist/src/modules/survey-editor/store/editor-store.d.ts +1 -2
  39. package/dist/src/modules/survey-editor/survey-editor-config.d.ts +2 -2
  40. package/dist/src/modules/survey-editor/survey-editor.d.ts +2 -1
  41. package/dist/survey-editor-ui.cjs.js +64 -64
  42. package/dist/survey-editor-ui.cjs.js.map +1 -1
  43. package/dist/survey-editor-ui.css +1 -1
  44. package/dist/survey-editor-ui.es.js +31730 -33230
  45. package/dist/survey-editor-ui.es.js.map +1 -1
  46. package/package.json +24 -19
  47. package/dist/src/modules/default-item-registry/items/choice/display-order.d.ts +0 -1
  48. package/dist/src/modules/default-item-registry/items/choice/model.d.ts +0 -28
  49. package/dist/src/modules/default-item-registry/items/form/model.d.ts +0 -163
@@ -13,7 +13,8 @@ export declare const isItemPresetDragData: (data: unknown) => data is ItemPreset
13
13
  export declare const isExistingItemDragData: (data: unknown) => data is ExistingItemDragData;
14
14
  export declare const useItemPresetDragActive: () => boolean;
15
15
  export declare const useExistingItemDragActive: () => boolean;
16
- export declare function ExistingItemDragHandle({ itemId, label, disabled }: {
16
+ export declare const useOutlineRelevantDragActive: () => boolean;
17
+ export declare function ExistingItemDragHandle({ itemId, label, disabled, }: {
17
18
  itemId: string;
18
19
  label: string;
19
20
  disabled?: boolean;
@@ -0,0 +1,6 @@
1
+ export declare const syncOutlineSelectionToFocusedItem: (selectedIds: ReadonlySet<string>, focusedItemId: string | undefined) => ReadonlySet<string>;
2
+ export declare const toggleOutlineSelection: (selectedIds: ReadonlySet<string>, focusedItemId: string | undefined, itemId: string, orderedItemIds: readonly string[]) => {
3
+ selectedIds: Set<string>;
4
+ focusedItemId: string | undefined;
5
+ focusChanged: boolean;
6
+ };
@@ -2,7 +2,7 @@ import { StoreApi } from 'zustand';
2
2
  import { SurveyEditor, Target, SurveyItemClipboardData, CommitMeta, SurveyEditorHistoryCommit, UndoRedoConfig } from '@case-framework/survey-core/editor';
3
3
  import { SurveyItemCore, SurveyItemTranslations, RawSurveyItem, TemplateValueDefinition, GroupItemCore, RawSurveyAsset, SurveyCardContent, NavigationContent, Content } from '@case-framework/survey-core';
4
4
  import { ComposedEditorItemRegistry, ItemCategory, ItemLocaleMap, ItemRegistryEntry } from '../registry';
5
- import { SurveyApplyResult, SurveyBatchApplyResult, SurveyChangeSet, SurveyDocumentVersion } from '@case-framework/survey-assistant/protocol';
5
+ import { SurveyBatchApplyResult, SurveyChangeSet, SurveyDocumentVersion } from '@case-framework/survey-assistant/protocol';
6
6
  interface StartNewSessionOptions {
7
7
  surveyKey?: string;
8
8
  /** Unified registry entries (recommended, matches SurveyEditor) */
@@ -93,7 +93,6 @@ export interface EditorStore {
93
93
  updateMetadata: (metadata: {
94
94
  [key: string]: string;
95
95
  } | undefined) => void;
96
- applyAssistantChange: (change: SurveyChangeSet, currentPrecondition: SurveyDocumentVersion) => SurveyApplyResult;
97
96
  applyAssistantChanges: (changes: SurveyChangeSet[], currentPrecondition: SurveyDocumentVersion) => SurveyBatchApplyResult;
98
97
  getTemplateValue: (key: string) => TemplateValueDefinition | undefined;
99
98
  getTemplateValues: () => Map<string, TemplateValueDefinition>;
@@ -5,7 +5,7 @@ import { LocalizationCatalog, LocalizationTranslate, LocalizationValues } from '
5
5
  import { SurveyEditorDateLocales } from './localization/date-fns';
6
6
  import { SurveyEditorWorkspace } from './workspace';
7
7
  interface SurveyEditorConfigType {
8
- helpLink: string;
8
+ helpLink: string | null;
9
9
  aiProvider: SurveyEditorAIProvider | null;
10
10
  fallbackLocale: string;
11
11
  language: string;
@@ -17,7 +17,7 @@ interface SurveyEditorConfigType {
17
17
  }
18
18
  interface SurveyEditorConfigProviderProps {
19
19
  children: ReactNode;
20
- helpLink: string;
20
+ helpLink: string | null;
21
21
  aiProvider?: SurveyEditorAIProvider | null;
22
22
  fallbackLocale?: string;
23
23
  language?: string;
@@ -49,7 +49,8 @@ export interface SurveyEditorProps {
49
49
  /** Allows editor surfaces to create a new assistant thread and submit its first prompt. */
50
50
  assistantThreadLauncher?: SurveyAssistantThreadLauncher;
51
51
  persistDebounceMs?: number;
52
- helpLink?: string;
52
+ /** Help documentation URL. Pass null to hide the editor's Help button. */
53
+ helpLink?: string | null;
53
54
  navigationAdapter?: SurveyEditorNavigationAdapter | null;
54
55
  /** Configure the initial main panel and workspace panels. */
55
56
  workspace?: SurveyEditorWorkspace;