@dialob/composer-material 0.0.7 → 0.0.9
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 +15 -11
- package/dist-lib/index.js +18429 -21675
- package/package.json +4 -2
package/dist-lib/index.d.ts
CHANGED
|
@@ -6,15 +6,13 @@ import { EditorState } from '..';
|
|
|
6
6
|
import { FunctionComponent } from 'react';
|
|
7
7
|
import { IdField } from '../items/ItemComponents';
|
|
8
8
|
import { Indicators } from '../items/ItemComponents';
|
|
9
|
-
import { ItemId } from '@atlaskit/tree';
|
|
10
9
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
11
10
|
import { LabelField } from '../items/ItemComponents';
|
|
12
11
|
import { LanguageEditor } from '../components/translations/LanguageEditor';
|
|
13
12
|
import { OptionsMenu } from '../items/ItemComponents';
|
|
14
13
|
import { StyledTable } from '../items/ItemComponents';
|
|
15
14
|
import { SvgIconProps } from '@mui/material';
|
|
16
|
-
import {
|
|
17
|
-
import { TreeItem } from '@atlaskit/tree';
|
|
15
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
18
16
|
import { VisibilityField } from '../items/ItemComponents';
|
|
19
17
|
|
|
20
18
|
declare interface ApiResponse {
|
|
@@ -364,6 +362,12 @@ export declare const ExpressionVariables: default_2.FC<{
|
|
|
364
362
|
onClose: () => void;
|
|
365
363
|
}>;
|
|
366
364
|
|
|
365
|
+
declare interface FlattenedItem extends TreeItem {
|
|
366
|
+
parentId: UniqueIdentifier | null;
|
|
367
|
+
depth: number;
|
|
368
|
+
index: number;
|
|
369
|
+
}
|
|
370
|
+
|
|
367
371
|
export declare const FormOptionsDialog: default_2.FC<{
|
|
368
372
|
open: boolean;
|
|
369
373
|
onClose: () => void;
|
|
@@ -418,7 +422,7 @@ declare interface ItemConfigItem {
|
|
|
418
422
|
props: ConfigItemProps;
|
|
419
423
|
}
|
|
420
424
|
|
|
421
|
-
export declare const itemFactory: (item: DialobItem, itemConfig: ItemConfig, props?: any) => JSX_2.Element | null;
|
|
425
|
+
export declare const itemFactory: (item: DialobItem, itemConfig: ItemConfig, setHighlightedItem?: (item: DialobItem) => void, props?: any) => JSX_2.Element | null;
|
|
422
426
|
|
|
423
427
|
export declare const ItemOptionsDialog: default_2.FC;
|
|
424
428
|
|
|
@@ -457,8 +461,6 @@ export declare const MissingTranslations: default_2.FC;
|
|
|
457
461
|
|
|
458
462
|
declare const MultiChoiceProp: (props: any) => JSX_2.Element;
|
|
459
463
|
|
|
460
|
-
export declare const NavigationTreeItem: default_2.FC<TreeItemProps>;
|
|
461
|
-
|
|
462
464
|
export declare const NavigationTreeView: default_2.FC;
|
|
463
465
|
|
|
464
466
|
export declare const Note: default_2.FC<{
|
|
@@ -574,11 +576,12 @@ declare interface TransportConfig {
|
|
|
574
576
|
credentialMode?: RequestCredentials;
|
|
575
577
|
}
|
|
576
578
|
|
|
577
|
-
declare interface
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
579
|
+
declare interface TreeItem {
|
|
580
|
+
id: UniqueIdentifier;
|
|
581
|
+
children: TreeItem[];
|
|
582
|
+
title: string;
|
|
583
|
+
collapsible?: boolean;
|
|
584
|
+
collapsed?: boolean;
|
|
582
585
|
}
|
|
583
586
|
|
|
584
587
|
export declare const UploadValuesetDialog: default_2.FC<{
|
|
@@ -597,6 +600,7 @@ export declare const useComposer: () => {
|
|
|
597
600
|
setItemProp: (itemId: string, key: string, value: any) => void;
|
|
598
601
|
deleteItemProp: (itemId: string, key: string) => void;
|
|
599
602
|
moveItem: (itemId: string, fromIndex: number, toIndex: number, fromParent: string, toParent: string) => void;
|
|
603
|
+
syncTree: (flattened: FlattenedItem[]) => void;
|
|
600
604
|
createValidation: (itemId: string, rule?: ValidationRule) => void;
|
|
601
605
|
setValidationMessage: (itemId: string, index: number, language: string, message: string) => void;
|
|
602
606
|
setValidationExpression: (itemId: string, index: number, expression: string) => void;
|