@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.
- package/README.md +80 -0
- package/dist/src/components/c-ui/dot-background.d.ts +2 -2
- package/dist/src/components/rich-text/content-policy.d.ts +10 -1
- package/dist/src/components/rich-text/nodes/survey-rich-text-heading-node.d.ts +4 -1
- package/dist/src/components/rich-text-editor/plugins/block-shortcut-plugin.d.ts +4 -2
- package/dist/src/components/rich-text-editor/plugins/docked-toolbar-plugin.d.ts +3 -1
- package/dist/src/components/rich-text-editor/plugins/heading-policy-plugin.d.ts +13 -0
- package/dist/src/components/rich-text-editor/plugins/link-shortcut-plugin.d.ts +3 -0
- package/dist/src/components/rich-text-editor/plugins/slash-command-menu-plugin.d.ts +3 -1
- package/dist/src/components/rich-text-editor/plugins/sync-editor-value-plugin.d.ts +5 -2
- package/dist/src/components/rich-text-editor/rich-text-editor-provider.d.ts +18 -0
- package/dist/src/components/rich-text-editor/rich-text-editor-utils.d.ts +22 -5
- package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +4 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/lib/utils.d.ts +1 -2
- package/dist/src/modules/default-item-registry/items/choice/editor/option-create.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/choice/editor/option-editor-card.d.ts +2 -2
- package/dist/src/modules/default-item-registry/items/choice/editor/response-options-list.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/config-editor.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/editor-metadata.d.ts +10 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-edit-dialog.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/field-group-layout-dialog.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/field-key-dialog.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/field-sort-dialog.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +8 -8
- package/dist/src/modules/default-item-registry/items/form/editor/response-field-groups-list.d.ts +1 -1
- package/dist/src/modules/default-item-registry/items/form/editor/simple-field-editor.d.ts +1 -1
- package/dist/src/modules/survey-editor/assistant/apply.d.ts +1 -11
- package/dist/src/modules/survey-editor/assistant/index.d.ts +1 -1
- package/dist/src/modules/survey-editor/assistant/snapshot.d.ts +1 -2
- package/dist/src/modules/survey-editor/hooks/focus-when-available.d.ts +8 -0
- package/dist/src/modules/survey-editor/hooks/item-clipboard-shortcut.d.ts +16 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/expression-diagnostics-status-model.d.ts +10 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/workspace-presets.d.ts +7 -7
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-drag-drop.d.ts +2 -1
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/outline-selection.d.ts +6 -0
- package/dist/src/modules/survey-editor/store/editor-store.d.ts +1 -2
- package/dist/survey-editor-ui.cjs.js +64 -64
- package/dist/survey-editor-ui.cjs.js.map +1 -1
- package/dist/survey-editor-ui.css +1 -1
- package/dist/survey-editor-ui.es.js +31903 -33234
- package/dist/survey-editor-ui.es.js.map +1 -1
- package/package.json +22 -20
- package/dist/src/modules/default-item-registry/items/choice/display-order.d.ts +0 -1
- package/dist/src/modules/default-item-registry/items/choice/model.d.ts +0 -28
- package/dist/src/modules/default-item-registry/items/form/model.d.ts +0 -164
package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/outline-selection.d.ts
ADDED
|
@@ -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 {
|
|
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>;
|