@dialob/composer-material 0.0.10 → 0.0.12
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/dist-lib/index.d.ts +22 -16
- package/dist-lib/index.js +6146 -6112
- package/package.json +1 -1
package/dist-lib/index.d.ts
CHANGED
|
@@ -141,22 +141,7 @@ declare type ComposerState = {
|
|
|
141
141
|
};
|
|
142
142
|
variables?: (Variable | ContextVariable)[];
|
|
143
143
|
valueSets?: ValueSet[];
|
|
144
|
-
metadata:
|
|
145
|
-
label?: string;
|
|
146
|
-
labels?: string[];
|
|
147
|
-
showDisabled?: boolean;
|
|
148
|
-
questionClientVisibility?: VisibilityType;
|
|
149
|
-
answersRequiredByDefault?: boolean;
|
|
150
|
-
creator?: string;
|
|
151
|
-
tenantId?: string;
|
|
152
|
-
savedBy?: string;
|
|
153
|
-
languages?: string[];
|
|
154
|
-
valid?: boolean;
|
|
155
|
-
created?: string;
|
|
156
|
-
lastSaved?: string;
|
|
157
|
-
composer?: ComposerMetadata;
|
|
158
|
-
[prop: string]: any;
|
|
159
|
-
};
|
|
144
|
+
metadata: FormMetadata;
|
|
160
145
|
};
|
|
161
146
|
|
|
162
147
|
declare type ComposerStatus = 'ERROR' | 'WARNING' | 'INFO' | 'FATAL' | 'OK';
|
|
@@ -316,6 +301,7 @@ declare namespace DialobTypes {
|
|
|
316
301
|
ComposerTag,
|
|
317
302
|
ComposerMetadata,
|
|
318
303
|
ComposerState,
|
|
304
|
+
FormMetadata,
|
|
319
305
|
INIT_STATE,
|
|
320
306
|
ComposerCallbacks
|
|
321
307
|
}
|
|
@@ -369,6 +355,23 @@ declare interface FlattenedItem extends TreeItem {
|
|
|
369
355
|
index: number;
|
|
370
356
|
}
|
|
371
357
|
|
|
358
|
+
declare type FormMetadata = {
|
|
359
|
+
label?: string;
|
|
360
|
+
labels?: string[];
|
|
361
|
+
showDisabled?: boolean;
|
|
362
|
+
questionClientVisibility?: VisibilityType;
|
|
363
|
+
answersRequiredByDefault?: boolean;
|
|
364
|
+
creator?: string;
|
|
365
|
+
tenantId?: string;
|
|
366
|
+
savedBy?: string;
|
|
367
|
+
languages?: string[];
|
|
368
|
+
valid?: boolean;
|
|
369
|
+
created?: string;
|
|
370
|
+
lastSaved?: string;
|
|
371
|
+
composer?: ComposerMetadata;
|
|
372
|
+
[prop: string]: any;
|
|
373
|
+
};
|
|
374
|
+
|
|
372
375
|
export declare const FormOptionsDialog: default_2.FC<{
|
|
373
376
|
open: boolean;
|
|
374
377
|
onClose: () => void;
|
|
@@ -551,6 +554,7 @@ declare interface SavingState {
|
|
|
551
554
|
valueSets?: ValueSet[];
|
|
552
555
|
composerMetadata?: ComposerMetadata;
|
|
553
556
|
variables?: (ContextVariable | Variable)[];
|
|
557
|
+
formMetadata?: FormMetadata;
|
|
554
558
|
}
|
|
555
559
|
|
|
556
560
|
export declare const SimpleField: default_2.FC<{
|
|
@@ -632,6 +636,7 @@ export declare const useComposer: () => {
|
|
|
632
636
|
applyItemChanges: (newState: SavingState) => void;
|
|
633
637
|
applyListChanges: (newState: SavingState) => void;
|
|
634
638
|
applyVariableChanges: (newState: SavingState) => void;
|
|
639
|
+
applyFormChanges: (newState: SavingState) => void;
|
|
635
640
|
form: ComposerState;
|
|
636
641
|
};
|
|
637
642
|
|
|
@@ -647,6 +652,7 @@ export declare const useEditor: () => {
|
|
|
647
652
|
setHighlightedItem: (item?: DialobItem) => void;
|
|
648
653
|
setActiveList: (listId?: string) => void;
|
|
649
654
|
setActiveVariableTab: (tab?: VariableTabType) => void;
|
|
655
|
+
setConfirmationActiveItem: (item?: DialobItem) => void;
|
|
650
656
|
};
|
|
651
657
|
|
|
652
658
|
declare const useErrorColor: (error: EditorError | undefined) => string | undefined;
|