@dialob/composer-material 0.0.3 → 0.0.4
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 +13 -6
- package/dist-lib/index.js +6748 -6748
- package/package.json +1 -1
package/dist-lib/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
|
+
import { ItemId } from '@atlaskit/tree';
|
|
2
3
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
4
|
import { LabelField } from '../items/ItemComponents';
|
|
4
5
|
import { LanguageEditor } from '../components/translations/LanguageEditor';
|
|
5
|
-
import { default as NavigationTreeItem } from '../components/tree/NavigationTreeItem';
|
|
6
6
|
import { SvgIconProps } from '@mui/material';
|
|
7
7
|
import { TreeDraggableProvided } from '@atlaskit/tree/dist/types/components/TreeItem/TreeItem-types';
|
|
8
8
|
import { TreeItem } from '@atlaskit/tree';
|
|
@@ -248,8 +248,8 @@ export declare const DialobComposer: React.FC<{
|
|
|
248
248
|
declare interface DialobComposerConfig {
|
|
249
249
|
transport: TransportConfig;
|
|
250
250
|
documentationUrl?: string;
|
|
251
|
-
itemEditors
|
|
252
|
-
itemTypes
|
|
251
|
+
itemEditors: ItemConfig;
|
|
252
|
+
itemTypes: ItemTypeConfig;
|
|
253
253
|
backendVersion: string;
|
|
254
254
|
closeHandler: () => void;
|
|
255
255
|
}
|
|
@@ -374,7 +374,7 @@ declare interface ItemConfigItem {
|
|
|
374
374
|
props: ConfigItemProps;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
export declare const itemFactory: (item: DialobItem, itemConfig
|
|
377
|
+
export declare const itemFactory: (item: DialobItem, itemConfig: ItemConfig, props?: any) => JSX_2.Element | null;
|
|
378
378
|
|
|
379
379
|
export declare const ItemOptionsDialog: default_2.FC;
|
|
380
380
|
|
|
@@ -413,7 +413,7 @@ export declare const MissingTranslations: default_2.FC;
|
|
|
413
413
|
|
|
414
414
|
declare const MultiChoiceProp: (props: any) => JSX_2.Element;
|
|
415
415
|
|
|
416
|
-
export
|
|
416
|
+
export declare const NavigationTreeItem: default_2.FC<TreeItemProps>;
|
|
417
417
|
|
|
418
418
|
export declare const NavigationTreeView: default_2.FC;
|
|
419
419
|
|
|
@@ -517,6 +517,13 @@ declare interface TransportConfig {
|
|
|
517
517
|
credentialMode?: RequestCredentials;
|
|
518
518
|
}
|
|
519
519
|
|
|
520
|
+
declare interface TreeItemProps {
|
|
521
|
+
item: TreeItem;
|
|
522
|
+
onExpand: (itemId: ItemId) => void;
|
|
523
|
+
onCollapse: (itemId: ItemId) => void;
|
|
524
|
+
provided: TreeDraggableProvided;
|
|
525
|
+
}
|
|
526
|
+
|
|
520
527
|
export declare const UploadValuesetDialog: default_2.FC<{
|
|
521
528
|
open: boolean;
|
|
522
529
|
onClose: () => void;
|
|
@@ -546,7 +553,7 @@ declare type ValueSetEntry = {
|
|
|
546
553
|
declare interface ValueSetProp {
|
|
547
554
|
title: string;
|
|
548
555
|
name: string;
|
|
549
|
-
editor:
|
|
556
|
+
editor: any;
|
|
550
557
|
}
|
|
551
558
|
|
|
552
559
|
declare type Variable = {
|