@case-framework/survey-editor-ui 0.6.0 → 0.6.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.
package/README.md CHANGED
@@ -12,6 +12,11 @@ For repository development and custom item registration, see
12
12
  Save or Back. The host owns persistence, routing, and its header; the editor
13
13
  owns survey mutations and undo/redo history.
14
14
 
15
+ The main editor export includes the assistant launcher UI. Host applications
16
+ must provide versions of `ai` and `@ai-sdk/react` compatible with the peer
17
+ ranges in `package.json`. The assistant's Mastra peers remain optional because
18
+ they are only needed by server integrations.
19
+
15
20
  Use `controllerRef` for host-triggered commands and `onHostStateChange` to keep
16
21
  host controls in sync with the editor:
17
22
 
@@ -1,6 +1,7 @@
1
1
  import { SurveyItemTranslations } from '@case-framework/survey-core';
2
2
  export type FormFieldType = "input" | "textarea" | "number" | "datepicker" | "switch" | "select" | "slider";
3
3
  export declare const FORM_DATEPICKER_FIELD_MODES: readonly ["year", "year-month", "year-month-day"];
4
+ export declare const FORM_BROWSER_AUTOCOMPLETE_OPTIONS: readonly ["name", "given-name", "family-name", "nickname", "email", "username", "organization", "organization-title", "street-address", "address-line1", "address-line2", "address-level2", "address-level1", "postal-code", "country-name", "tel", "url", "one-time-code"];
4
5
  export type FormDatepickerFieldMode = (typeof FORM_DATEPICKER_FIELD_MODES)[number];
5
6
  export interface FormFieldRendererSlotDefinition {
6
7
  id: "field" | "label" | "description" | "error";
@@ -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;