@dialob/composer-material 0.0.3 → 0.0.5

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.
@@ -1,8 +1,10 @@
1
+ import { Component } from 'react';
1
2
  import { default as default_2 } from 'react';
3
+ import { FunctionComponent } from 'react';
4
+ import { ItemId } from '@atlaskit/tree';
2
5
  import { JSX as JSX_2 } from 'react/jsx-runtime';
3
6
  import { LabelField } from '../items/ItemComponents';
4
7
  import { LanguageEditor } from '../components/translations/LanguageEditor';
5
- import { default as NavigationTreeItem } from '../components/tree/NavigationTreeItem';
6
8
  import { SvgIconProps } from '@mui/material';
7
9
  import { TreeDraggableProvided } from '@atlaskit/tree/dist/types/components/TreeItem/TreeItem-types';
8
10
  import { TreeItem } from '@atlaskit/tree';
@@ -94,8 +96,6 @@ declare interface ChoiceItemProps {
94
96
  valueSetId?: string;
95
97
  provided: TreeDraggableProvided;
96
98
  isGlobal?: boolean;
97
- expanded: string[];
98
- onToggleExpand: (id: string) => void;
99
99
  onRuleEdit: (entry: ValueSetEntry, rule: string) => void;
100
100
  onTextEdit: (entry: ValueSetEntry, label: LocalizedString) => void;
101
101
  onDelete: (entry: ValueSetEntry) => void;
@@ -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?: ItemConfig;
252
- itemTypes?: ItemTypeConfig;
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?: ItemConfig, props?: any) => JSX_2.Element | null;
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 { NavigationTreeItem }
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: React.FC;
556
+ editor: Component | FunctionComponent;
550
557
  }
551
558
 
552
559
  declare type Variable = {