@dialob/composer-material 0.0.8 → 0.0.10
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 +37 -32
- package/dist-lib/index.js +18739 -21924
- package/package.json +12 -10
package/dist-lib/index.d.ts
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import { AlertColor } from '@mui/material';
|
|
2
|
-
import { Component } from 'react';
|
|
2
|
+
import { Component } from '../../node_modules/@types/react';
|
|
3
3
|
import { ConversionMenu } from '../items/ItemComponents';
|
|
4
|
-
import { default as default_2 } from 'react';
|
|
4
|
+
import { default as default_2 } from '../../node_modules/@types/react';
|
|
5
|
+
import { default as default_3 } from '../../../node_modules/@types/react';
|
|
5
6
|
import { EditorState } from '..';
|
|
6
|
-
import { FunctionComponent } from 'react';
|
|
7
|
+
import { FunctionComponent } from '../../node_modules/@types/react';
|
|
7
8
|
import { IdField } from '../items/ItemComponents';
|
|
8
9
|
import { Indicators } from '../items/ItemComponents';
|
|
9
|
-
import { ItemId } from '@atlaskit/tree';
|
|
10
10
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
11
11
|
import { LabelField } from '../items/ItemComponents';
|
|
12
12
|
import { LanguageEditor } from '../components/translations/LanguageEditor';
|
|
13
13
|
import { OptionsMenu } from '../items/ItemComponents';
|
|
14
14
|
import { StyledTable } from '../items/ItemComponents';
|
|
15
15
|
import { SvgIconProps } from '@mui/material';
|
|
16
|
-
import {
|
|
17
|
-
import { TreeItem } from '@atlaskit/tree';
|
|
16
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
18
17
|
import { VisibilityField } from '../items/ItemComponents';
|
|
19
18
|
|
|
20
19
|
declare interface ApiResponse {
|
|
@@ -94,7 +93,7 @@ export declare const ChoiceDeleteDialog: default_2.FC<{
|
|
|
94
93
|
onClose: () => void;
|
|
95
94
|
}>;
|
|
96
95
|
|
|
97
|
-
export declare const ChoiceEditor:
|
|
96
|
+
export declare const ChoiceEditor: default_3.FC;
|
|
98
97
|
|
|
99
98
|
export declare const ChoiceItem: default_2.FC<ChoiceItemProps>;
|
|
100
99
|
|
|
@@ -193,9 +192,9 @@ declare type ContextVariable = {
|
|
|
193
192
|
description?: string;
|
|
194
193
|
};
|
|
195
194
|
|
|
196
|
-
export declare const ContextVariableRow:
|
|
195
|
+
export declare const ContextVariableRow: default_3.FC<VariableProps>;
|
|
197
196
|
|
|
198
|
-
export declare const ContextVariables:
|
|
197
|
+
export declare const ContextVariables: default_3.FC<{
|
|
199
198
|
onClose: () => void;
|
|
200
199
|
}>;
|
|
201
200
|
|
|
@@ -250,9 +249,9 @@ declare namespace DefaultTypes {
|
|
|
250
249
|
}
|
|
251
250
|
export { DefaultTypes }
|
|
252
251
|
|
|
253
|
-
export declare const DefaultValueEditor:
|
|
252
|
+
export declare const DefaultValueEditor: default_3.FC;
|
|
254
253
|
|
|
255
|
-
export declare const DescriptionEditor:
|
|
254
|
+
export declare const DescriptionEditor: default_3.FC;
|
|
256
255
|
|
|
257
256
|
declare type DialobCategoryType = 'structure' | 'input' | 'output';
|
|
258
257
|
|
|
@@ -358,12 +357,18 @@ declare namespace ErrorUtils {
|
|
|
358
357
|
}
|
|
359
358
|
export { ErrorUtils }
|
|
360
359
|
|
|
361
|
-
export declare const ExpressionVariableRow:
|
|
360
|
+
export declare const ExpressionVariableRow: default_3.FC<VariableProps>;
|
|
362
361
|
|
|
363
|
-
export declare const ExpressionVariables:
|
|
362
|
+
export declare const ExpressionVariables: default_3.FC<{
|
|
364
363
|
onClose: () => void;
|
|
365
364
|
}>;
|
|
366
365
|
|
|
366
|
+
declare interface FlattenedItem extends TreeItem {
|
|
367
|
+
parentId: UniqueIdentifier | null;
|
|
368
|
+
depth: number;
|
|
369
|
+
index: number;
|
|
370
|
+
}
|
|
371
|
+
|
|
367
372
|
export declare const FormOptionsDialog: default_2.FC<{
|
|
368
373
|
open: boolean;
|
|
369
374
|
onClose: () => void;
|
|
@@ -418,7 +423,7 @@ declare interface ItemConfigItem {
|
|
|
418
423
|
props: ConfigItemProps;
|
|
419
424
|
}
|
|
420
425
|
|
|
421
|
-
export declare const itemFactory: (item: DialobItem, itemConfig: ItemConfig, props?: any) => JSX_2.Element | null;
|
|
426
|
+
export declare const itemFactory: (item: DialobItem, itemConfig: ItemConfig, setHighlightedItem?: (item: DialobItem) => void, props?: any) => JSX_2.Element | null;
|
|
422
427
|
|
|
423
428
|
export declare const ItemOptionsDialog: default_2.FC;
|
|
424
429
|
|
|
@@ -437,7 +442,7 @@ declare interface ItemTypeConfig {
|
|
|
437
442
|
categories: ItemTypeCategory[];
|
|
438
443
|
}
|
|
439
444
|
|
|
440
|
-
export declare const LabelEditor:
|
|
445
|
+
export declare const LabelEditor: default_3.FC;
|
|
441
446
|
|
|
442
447
|
export { LabelField }
|
|
443
448
|
|
|
@@ -447,19 +452,17 @@ declare type LocalizedString = {
|
|
|
447
452
|
[language: string]: string;
|
|
448
453
|
};
|
|
449
454
|
|
|
450
|
-
export declare const LocalizedStringEditor:
|
|
455
|
+
export declare const LocalizedStringEditor: default_3.FC<{
|
|
451
456
|
type: 'label' | 'description' | 'validations';
|
|
452
457
|
rule?: IndexedRule;
|
|
453
|
-
setRule?:
|
|
458
|
+
setRule?: default_3.Dispatch<default_3.SetStateAction<IndexedRule | undefined>>;
|
|
454
459
|
}>;
|
|
455
460
|
|
|
456
|
-
export declare const MissingTranslations:
|
|
461
|
+
export declare const MissingTranslations: default_3.FC;
|
|
457
462
|
|
|
458
463
|
declare const MultiChoiceProp: (props: any) => JSX_2.Element;
|
|
459
464
|
|
|
460
|
-
export declare const
|
|
461
|
-
|
|
462
|
-
export declare const NavigationTreeView: default_2.FC;
|
|
465
|
+
export declare const NavigationTreeView: default_3.FC;
|
|
463
466
|
|
|
464
467
|
export declare const Note: default_2.FC<{
|
|
465
468
|
item: DialobItem;
|
|
@@ -514,9 +517,9 @@ declare interface PropEditorsType {
|
|
|
514
517
|
};
|
|
515
518
|
}
|
|
516
519
|
|
|
517
|
-
export declare const PropertiesEditor:
|
|
520
|
+
export declare const PropertiesEditor: default_3.FC;
|
|
518
521
|
|
|
519
|
-
export declare const PropItem:
|
|
522
|
+
export declare const PropItem: default_3.FC<{
|
|
520
523
|
prop: ItemProp;
|
|
521
524
|
propEditor: {
|
|
522
525
|
component: any;
|
|
@@ -528,11 +531,11 @@ export declare const PropItem: default_2.FC<{
|
|
|
528
531
|
|
|
529
532
|
declare type PropValue = string | string[] | boolean;
|
|
530
533
|
|
|
531
|
-
export declare const RuleEditor:
|
|
534
|
+
export declare const RuleEditor: default_3.FC<{
|
|
532
535
|
type: RuleType;
|
|
533
536
|
}>;
|
|
534
537
|
|
|
535
|
-
export declare const RulesEditor:
|
|
538
|
+
export declare const RulesEditor: default_3.FC;
|
|
536
539
|
|
|
537
540
|
declare type RuleType = 'visibility' | 'requirement' | 'canaddrow' | 'canremoverow';
|
|
538
541
|
|
|
@@ -561,7 +564,7 @@ export declare const TranslationDialog: default_2.FC<{
|
|
|
561
564
|
onClose: () => void;
|
|
562
565
|
}>;
|
|
563
566
|
|
|
564
|
-
export declare const TranslationFileEditor:
|
|
567
|
+
export declare const TranslationFileEditor: default_3.FC;
|
|
565
568
|
|
|
566
569
|
declare interface TransportConfig {
|
|
567
570
|
csrf?: {
|
|
@@ -574,11 +577,12 @@ declare interface TransportConfig {
|
|
|
574
577
|
credentialMode?: RequestCredentials;
|
|
575
578
|
}
|
|
576
579
|
|
|
577
|
-
declare interface
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
declare interface TreeItem {
|
|
581
|
+
id: UniqueIdentifier;
|
|
582
|
+
children: TreeItem[];
|
|
583
|
+
title: string;
|
|
584
|
+
collapsible?: boolean;
|
|
585
|
+
collapsed?: boolean;
|
|
582
586
|
}
|
|
583
587
|
|
|
584
588
|
export declare const UploadValuesetDialog: default_2.FC<{
|
|
@@ -597,6 +601,7 @@ export declare const useComposer: () => {
|
|
|
597
601
|
setItemProp: (itemId: string, key: string, value: any) => void;
|
|
598
602
|
deleteItemProp: (itemId: string, key: string) => void;
|
|
599
603
|
moveItem: (itemId: string, fromIndex: number, toIndex: number, fromParent: string, toParent: string) => void;
|
|
604
|
+
syncTree: (flattened: FlattenedItem[]) => void;
|
|
600
605
|
createValidation: (itemId: string, rule?: ValidationRule) => void;
|
|
601
606
|
setValidationMessage: (itemId: string, index: number, language: string, message: string) => void;
|
|
602
607
|
setValidationExpression: (itemId: string, index: number, expression: string) => void;
|
|
@@ -653,7 +658,7 @@ declare type ValidationRule = {
|
|
|
653
658
|
rule?: string;
|
|
654
659
|
};
|
|
655
660
|
|
|
656
|
-
export declare const ValidationRuleEditor:
|
|
661
|
+
export declare const ValidationRuleEditor: default_3.FC;
|
|
657
662
|
|
|
658
663
|
declare type ValueSet = {
|
|
659
664
|
id: string;
|