@case-framework/survey-editor-ui 0.6.1 → 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 (47) hide show
  1. package/README.md +80 -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/survey-editor-ui.cjs.js +64 -64
  40. package/dist/survey-editor-ui.cjs.js.map +1 -1
  41. package/dist/survey-editor-ui.css +1 -1
  42. package/dist/survey-editor-ui.es.js +31903 -33234
  43. package/dist/survey-editor-ui.es.js.map +1 -1
  44. package/package.json +22 -20
  45. package/dist/src/modules/default-item-registry/items/choice/display-order.d.ts +0 -1
  46. package/dist/src/modules/default-item-registry/items/choice/model.d.ts +0 -28
  47. package/dist/src/modules/default-item-registry/items/form/model.d.ts +0 -164
@@ -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>;