@frontify/fondue 13.7.2 → 13.7.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/components/Flyout/helpers/getVerticalPositioning.es.js.map +1 -1
- package/dist/components/InputLabel/InputLabel.es.js.map +1 -1
- package/dist/components/Tree/Tree.es.js.map +1 -1
- package/dist/components/Tree/TreeContext.es.js.map +1 -1
- package/dist/components/Tree/TreeItem/DragHandle.es.js.map +1 -1
- package/dist/components/Tree/TreeItem/ExpandButton.es.js.map +1 -1
- package/dist/components/Tree/TreeItem/TreeItem.es.js.map +1 -1
- package/dist/components/Tree/TreeItem/TreeItemMultiselect.es.js.map +1 -1
- package/dist/components/Tree/TreeItem/TreeItemOverlay.es.js.map +1 -1
- package/dist/components/Tree/TreeItem/useMultiselectTreeItem.es.js.map +1 -1
- package/dist/components/Tree/TreeItem/useTreeItem.es.js.map +1 -1
- package/dist/components/Tree/helpers/constants.es.js.map +1 -1
- package/dist/components/Tree/helpers/getMovementAnnouncements.es.js.map +1 -1
- package/dist/components/Tree/helpers/multiselect.es.js.map +1 -1
- package/dist/components/Tree/helpers/multiselectTreeItemstyling.es.js.map +1 -1
- package/dist/components/Tree/helpers/nodes.es.js.map +1 -1
- package/dist/components/Tree/helpers/projection.es.js.map +1 -1
- package/dist/components/Tree/helpers/reducer.es.js.map +1 -1
- package/dist/components/Tree/helpers/sensorsActivationConstraint.es.js.map +1 -1
- package/dist/components/Tree/helpers/treeHandleKeyDown.es.js.map +1 -1
- package/dist/components/Tree/types.es.js.map +1 -1
- package/dist/components/Tree/utils/keyboardCoordinates.es.js.map +1 -1
- package/dist/components/Tree/utils/removeFragmentsAndEnrichChildren.es.js.map +1 -1
- package/dist/components/Tree/utils/useDeepCompareEffect.es.js.map +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +261 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/packages/components/style.css +1 -1
- package/dist/packages/rte/style.css +1 -1
- package/dist/tools/codemod/index.js +87 -1
- package/dist/tools/internal/index.js +30 -36
- package/package.json +5 -6
- package/dist/tools/sdk-cli/adapters/claude-skill/skill/SKILL.md +0 -207
- package/dist/tools/sdk-cli/adapters/claude-skill/skill/reference.md +0 -235
- package/dist/tools/sdk-cli/index.js +0 -224
package/dist/index.d.ts
CHANGED
|
@@ -154,8 +154,14 @@ declare type ActionMenuSwitchItemType = MenuItemType & {
|
|
|
154
154
|
initialValue: boolean;
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
+
/**
|
|
158
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
159
|
+
*/
|
|
157
160
|
export declare const addSelectedIds: (ids: string[], idsToAdd: string[], partial: boolean) => string[];
|
|
158
161
|
|
|
162
|
+
/**
|
|
163
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
164
|
+
*/
|
|
159
165
|
export declare const addSelectedItemsFromSelection: (treeItems: TreeItemMultiselectWithNodes[], id: string, newSelectedItems: string[]) => string[];
|
|
160
166
|
|
|
161
167
|
declare type AnnouncementArgs = {
|
|
@@ -434,6 +440,9 @@ declare enum CheckboxState {
|
|
|
434
440
|
Mixed = "Mixed"
|
|
435
441
|
}
|
|
436
442
|
|
|
443
|
+
/**
|
|
444
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
445
|
+
*/
|
|
437
446
|
export declare const cleanOrphanSelectedIds: (selectIds: string[]) => string[];
|
|
438
447
|
|
|
439
448
|
/**
|
|
@@ -455,6 +464,9 @@ declare type CollapsibleWrapProps = {
|
|
|
455
464
|
'data-test-id'?: string;
|
|
456
465
|
};
|
|
457
466
|
|
|
467
|
+
/**
|
|
468
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
469
|
+
*/
|
|
458
470
|
export declare type CollisionPosition = Nullable<'before' | 'within' | 'after'>;
|
|
459
471
|
|
|
460
472
|
/**
|
|
@@ -468,8 +480,14 @@ export declare type Color = {
|
|
|
468
480
|
name?: string;
|
|
469
481
|
};
|
|
470
482
|
|
|
483
|
+
/**
|
|
484
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
485
|
+
*/
|
|
471
486
|
export declare const convertToPartialSelectedId: (ids: string[]) => string[];
|
|
472
487
|
|
|
488
|
+
/**
|
|
489
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
490
|
+
*/
|
|
473
491
|
export declare const currentNodesChanged: (currentChildrenIds: string[], currentNodes: ReactElement<InternalTreeItemProps>[], newNodes: ReactElement<InternalTreeItemProps>[]) => boolean;
|
|
474
492
|
|
|
475
493
|
/**
|
|
@@ -538,14 +556,23 @@ declare type DraggableItem<T = Record<string, unknown>> = T & {
|
|
|
538
556
|
parentId?: string;
|
|
539
557
|
};
|
|
540
558
|
|
|
559
|
+
/**
|
|
560
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
561
|
+
*/
|
|
541
562
|
export declare const DragHandle: ForwardRefExoticComponent<Omit<DragHandleProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
542
563
|
|
|
564
|
+
/**
|
|
565
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
566
|
+
*/
|
|
543
567
|
export declare type DragHandleProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
|
|
544
568
|
active?: boolean;
|
|
545
569
|
showDragHandlerOnHoverOnly?: boolean;
|
|
546
570
|
activeColorStyle?: TreeItemColors;
|
|
547
571
|
};
|
|
548
572
|
|
|
573
|
+
/**
|
|
574
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
575
|
+
*/
|
|
549
576
|
export declare type DragHandlerPosition = 'left' | 'right' | 'none';
|
|
550
577
|
|
|
551
578
|
/**
|
|
@@ -593,18 +620,30 @@ export declare interface EditableTextProps {
|
|
|
593
620
|
'data-test-id'?: string;
|
|
594
621
|
}
|
|
595
622
|
|
|
623
|
+
/**
|
|
624
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
625
|
+
*/
|
|
596
626
|
export declare const EXPAND_ONHOVER_DELAY = 350;
|
|
597
627
|
|
|
628
|
+
/**
|
|
629
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
630
|
+
*/
|
|
598
631
|
export declare const ExpandButton: {
|
|
599
632
|
({ active, onClick, expanded, disabled, className, ...otherProps }: ExpandButtonProps): JSX_2.Element;
|
|
600
633
|
displayName: string;
|
|
601
634
|
};
|
|
602
635
|
|
|
636
|
+
/**
|
|
637
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
638
|
+
*/
|
|
603
639
|
export declare type ExpandButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
|
|
604
640
|
expanded?: boolean;
|
|
605
641
|
active?: boolean;
|
|
606
642
|
};
|
|
607
643
|
|
|
644
|
+
/**
|
|
645
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
646
|
+
*/
|
|
608
647
|
export declare const extractNodeFromElement: (node: ReactElement) => TreeNodeWithoutElements;
|
|
609
648
|
|
|
610
649
|
/**
|
|
@@ -666,8 +705,14 @@ export declare enum FilterableMultiSelectType {
|
|
|
666
705
|
Summarized = "Summarized"
|
|
667
706
|
}
|
|
668
707
|
|
|
708
|
+
/**
|
|
709
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
710
|
+
*/
|
|
669
711
|
export declare const findIndexById: (nodes: ReactElement<InternalTreeItemProps>[], id: string) => number;
|
|
670
712
|
|
|
713
|
+
/**
|
|
714
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
715
|
+
*/
|
|
671
716
|
export declare const fixParentSelectionState: (parent: TreeItemMultiselectWithNodes, newSelectedItems: string[]) => string[];
|
|
672
717
|
|
|
673
718
|
/**
|
|
@@ -747,39 +792,87 @@ declare type FrontifyPatternProps = {
|
|
|
747
792
|
'data-test-id'?: string;
|
|
748
793
|
};
|
|
749
794
|
|
|
795
|
+
/**
|
|
796
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
797
|
+
*/
|
|
750
798
|
export declare const getAnnouncements: (treeState: TreeState, currentPosition: AnnouncementArgs["currentPosition"], setCurrentPosition: AnnouncementArgs["setCurrentPosition"]) => TreeAnnouncements;
|
|
751
799
|
|
|
800
|
+
/**
|
|
801
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
802
|
+
*/
|
|
752
803
|
export declare const getCurrentChildrenForNewNodesIfExpanded: (currentNodes: ReactElement[], expandedIds: Set<string>, newNodes: ReactElement[]) => ReactElement<any, string | JSXElementConstructor<any>>[];
|
|
753
804
|
|
|
805
|
+
/**
|
|
806
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
807
|
+
*/
|
|
754
808
|
export declare const getExtendedId: (item: TreeItemMultiselectWithNodes) => string;
|
|
755
809
|
|
|
810
|
+
/**
|
|
811
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
812
|
+
*/
|
|
756
813
|
export declare const getMultiselectCheckBoxState: (isSelected: boolean, isPartialSelected: boolean) => CheckboxState;
|
|
757
814
|
|
|
815
|
+
/**
|
|
816
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
817
|
+
*/
|
|
758
818
|
export declare const getNewSelectedItems: (id: string, selectedIds: string[], treeItems: TreeItemMultiselectWithNodes[], ignoreRemoveSelected?: boolean) => string[];
|
|
759
819
|
|
|
820
|
+
/**
|
|
821
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
822
|
+
*/
|
|
760
823
|
export declare const getNodeChildrenIds: (nodes: ReactElement<InternalTreeItemProps>[], id: string) => string[];
|
|
761
824
|
|
|
825
|
+
/**
|
|
826
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
827
|
+
*/
|
|
762
828
|
export declare const getNodesToRender: (rootNodes: TreeState["rootNodes"], expandedIds: TreeState["expandedIds"]) => ReactElement<any, string | JSXElementConstructor<any>>[];
|
|
763
829
|
|
|
830
|
+
/**
|
|
831
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
832
|
+
*/
|
|
764
833
|
export declare const getParentSelectedTreeItem: (tree: TreeItemMultiselectWithNodes[], id: string, parent: TreeItemMultiselectWithNodes | null) => TreeItemMultiselectWithNodes | null;
|
|
765
834
|
|
|
835
|
+
/**
|
|
836
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
837
|
+
*/
|
|
766
838
|
export declare const getProjection: ({ nodes, activeId, overId, dragOffset }: ProjectionArgs) => Projection;
|
|
767
839
|
|
|
840
|
+
/**
|
|
841
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
842
|
+
*/
|
|
768
843
|
export declare const getReactNodeIdsInFlatArray: (tree: ReactElement[], startingNodeId: string) => string[];
|
|
769
844
|
|
|
845
|
+
/**
|
|
846
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
847
|
+
*/
|
|
770
848
|
export declare const getReactNodesInFlatArray: (tree: ReactElement[], startingNodeId: string) => ReactElement[];
|
|
771
849
|
|
|
850
|
+
/**
|
|
851
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
852
|
+
*/
|
|
772
853
|
export declare const getSelectedChildrenItems: (tree: TreeItemMultiselectWithNodes[], selectedIds: string[], onlyPartial?: boolean) => string[];
|
|
773
854
|
|
|
855
|
+
/**
|
|
856
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
857
|
+
*/
|
|
774
858
|
export declare const getSelectedTreeItem: (tree: TreeItemMultiselectWithNodes[], id: string) => TreeItemMultiselectWithNodes | null;
|
|
775
859
|
|
|
860
|
+
/**
|
|
861
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
862
|
+
*/
|
|
776
863
|
export declare const getTreeNodesWithoutElements: (nodes?: ReactElement[], parentId?: string) => TreeNodeWithoutElements[];
|
|
777
864
|
|
|
865
|
+
/**
|
|
866
|
+
* @deprecated Please use updated Flyout component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#flyout-old-inlinedialog the migration guide}.
|
|
867
|
+
*/
|
|
778
868
|
export declare const getVerticalPositioning: <T extends HTMLElement>(triggerRef: T | null, overlayHeight: number, offset: number, bottomMargin: number) => {
|
|
779
869
|
position: VerticalPosition;
|
|
780
870
|
maxHeight: number;
|
|
781
871
|
};
|
|
782
872
|
|
|
873
|
+
/**
|
|
874
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
875
|
+
*/
|
|
783
876
|
export declare const handleKeyDownEvent: (event: KeyboardEvent_2<HTMLUListElement>, expandedIds: TreeState["expandedIds"], nodes: TreeState["nodes"], handleSelect: (id: string) => void, handleShrink: (id: string) => void, handleExpand: (id: string) => void) => void;
|
|
784
877
|
|
|
785
878
|
/**
|
|
@@ -820,10 +913,13 @@ export declare type ImageAsset = {
|
|
|
820
913
|
size: number;
|
|
821
914
|
};
|
|
822
915
|
|
|
916
|
+
/**
|
|
917
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
918
|
+
*/
|
|
823
919
|
export declare const INDENTATION_WIDTH = 20;
|
|
824
920
|
|
|
825
921
|
/**
|
|
826
|
-
* @
|
|
922
|
+
* @deprecated Use `Label` from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#label-old-inputlabel the migration guide}.
|
|
827
923
|
*/
|
|
828
924
|
export declare type InputLabelProps = {
|
|
829
925
|
id?: string;
|
|
@@ -842,10 +938,16 @@ export declare type InputLabelProps = {
|
|
|
842
938
|
*/
|
|
843
939
|
declare type InputLabelTooltipProps = (LegacyTooltipProps & Pick<TooltipIconProps, 'triggerStyle' | 'triggerIcon'>) | (LegacyTooltipProps & Pick<TooltipIconProps, 'triggerStyle' | 'triggerIcon'>)[];
|
|
844
940
|
|
|
845
|
-
/**
|
|
941
|
+
/**
|
|
942
|
+
* @private
|
|
943
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
944
|
+
*/
|
|
846
945
|
export declare type InternalTreeItemMultiSelectProps = TreeItemMultiselectProps & TreeItemPrivateProps_2;
|
|
847
946
|
|
|
848
|
-
/**
|
|
947
|
+
/**
|
|
948
|
+
* @private
|
|
949
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
950
|
+
*/
|
|
849
951
|
export declare type InternalTreeItemProps = TreeItemProps & TreeItemPrivateProps;
|
|
850
952
|
|
|
851
953
|
/**
|
|
@@ -1058,14 +1160,29 @@ export declare enum MultiSelectType {
|
|
|
1058
1160
|
Summarized = "Summarized"
|
|
1059
1161
|
}
|
|
1060
1162
|
|
|
1163
|
+
/**
|
|
1164
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1165
|
+
*/
|
|
1061
1166
|
export declare type OnExpandCallback = (id: string) => void;
|
|
1062
1167
|
|
|
1168
|
+
/**
|
|
1169
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1170
|
+
*/
|
|
1063
1171
|
export declare type OnSelectCallback = (id: string, ignoreRemoveSelected?: boolean, nodes?: TreeNodeWithoutElements[]) => void;
|
|
1064
1172
|
|
|
1173
|
+
/**
|
|
1174
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1175
|
+
*/
|
|
1065
1176
|
export declare type OnSelectInternalCallback = (id: string, ignoreRemoveSelected?: boolean) => void;
|
|
1066
1177
|
|
|
1178
|
+
/**
|
|
1179
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1180
|
+
*/
|
|
1067
1181
|
export declare type OnShrinkCallback = (id: string) => void;
|
|
1068
1182
|
|
|
1183
|
+
/**
|
|
1184
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1185
|
+
*/
|
|
1069
1186
|
export declare type OnTreeDropCallback = (args: {
|
|
1070
1187
|
id: string;
|
|
1071
1188
|
parentId: Nullable<string>;
|
|
@@ -1117,6 +1234,9 @@ declare type OtherAsset = BaseAsset & {
|
|
|
1117
1234
|
size: number;
|
|
1118
1235
|
};
|
|
1119
1236
|
|
|
1237
|
+
/**
|
|
1238
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1239
|
+
*/
|
|
1120
1240
|
declare type Overlay = {
|
|
1121
1241
|
id: string;
|
|
1122
1242
|
label?: string;
|
|
@@ -1158,6 +1278,9 @@ export declare enum PatternScale {
|
|
|
1158
1278
|
XXL = "XXL"
|
|
1159
1279
|
}
|
|
1160
1280
|
|
|
1281
|
+
/**
|
|
1282
|
+
* @deprecated
|
|
1283
|
+
*/
|
|
1161
1284
|
export declare type PatternScaleOrigin = ('top' | 'left' | 'bottom' | 'right')[];
|
|
1162
1285
|
|
|
1163
1286
|
/**
|
|
@@ -1171,6 +1294,9 @@ export declare enum PatternTheme {
|
|
|
1171
1294
|
Red = "Red"
|
|
1172
1295
|
}
|
|
1173
1296
|
|
|
1297
|
+
/**
|
|
1298
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1299
|
+
*/
|
|
1174
1300
|
export declare type Projection = {
|
|
1175
1301
|
depth: number;
|
|
1176
1302
|
maxDepth: number;
|
|
@@ -1187,6 +1313,9 @@ export declare type Projection = {
|
|
|
1187
1313
|
}>;
|
|
1188
1314
|
};
|
|
1189
1315
|
|
|
1316
|
+
/**
|
|
1317
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1318
|
+
*/
|
|
1190
1319
|
export declare type ProjectionArgs = {
|
|
1191
1320
|
nodes: ReactElement<InternalTreeItemProps>[];
|
|
1192
1321
|
activeId: string;
|
|
@@ -1206,14 +1335,26 @@ declare type RangeDatePickerProps = {
|
|
|
1206
1335
|
*/
|
|
1207
1336
|
export declare type ReactDatePickerRef = default_2<boolean, undefined>;
|
|
1208
1337
|
|
|
1338
|
+
/**
|
|
1339
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1340
|
+
*/
|
|
1209
1341
|
export declare type RegisterNodeChildrenPayload = Extract<TreeStateAction, {
|
|
1210
1342
|
type: 'REGISTER_NODE_CHILDREN';
|
|
1211
1343
|
}>['payload'];
|
|
1212
1344
|
|
|
1345
|
+
/**
|
|
1346
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1347
|
+
*/
|
|
1213
1348
|
export declare const removePartialFlagSelectedId: (ids: string[]) => string[];
|
|
1214
1349
|
|
|
1350
|
+
/**
|
|
1351
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1352
|
+
*/
|
|
1215
1353
|
export declare const removeReactNodesFromFlatArray: (tree: ReactElement[], nodeIds: string[]) => ReactElement[];
|
|
1216
1354
|
|
|
1355
|
+
/**
|
|
1356
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1357
|
+
*/
|
|
1217
1358
|
export declare const removeSelectedIds: (ids: string[], idsToRemove: string[], partial: boolean) => string[];
|
|
1218
1359
|
|
|
1219
1360
|
/**
|
|
@@ -1221,6 +1362,9 @@ export declare const removeSelectedIds: (ids: string[], idsToRemove: string[], p
|
|
|
1221
1362
|
*/
|
|
1222
1363
|
export declare type RenderListItem<T> = (items: OrderableListItem<T>) => ReactElement;
|
|
1223
1364
|
|
|
1365
|
+
/**
|
|
1366
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1367
|
+
*/
|
|
1224
1368
|
export declare const ROOT_ID = "__ROOT__";
|
|
1225
1369
|
|
|
1226
1370
|
/**
|
|
@@ -1232,6 +1376,9 @@ declare enum SelectionIndicatorIcon {
|
|
|
1232
1376
|
None = "None"
|
|
1233
1377
|
}
|
|
1234
1378
|
|
|
1379
|
+
/**
|
|
1380
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1381
|
+
*/
|
|
1235
1382
|
export declare type SensorContext = MutableRefObject<{
|
|
1236
1383
|
nodes: ReactElement[];
|
|
1237
1384
|
offset: number;
|
|
@@ -1242,6 +1389,9 @@ declare type SensorsActivationConstraint = {
|
|
|
1242
1389
|
tolerance: number;
|
|
1243
1390
|
};
|
|
1244
1391
|
|
|
1392
|
+
/**
|
|
1393
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1394
|
+
*/
|
|
1245
1395
|
export declare const sensorsActivationConstraint: ({ dragHandlerPosition, enableDragDelay, }: SensorsActivationConstraintProps) => SensorsActivationConstraint;
|
|
1246
1396
|
|
|
1247
1397
|
declare type SensorsActivationConstraintProps = {
|
|
@@ -1249,6 +1399,9 @@ declare type SensorsActivationConstraintProps = {
|
|
|
1249
1399
|
enableDragDelay: TreeProps['enableDragDelay'];
|
|
1250
1400
|
};
|
|
1251
1401
|
|
|
1402
|
+
/**
|
|
1403
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1404
|
+
*/
|
|
1252
1405
|
export declare const shouldUpdateTreeState: (event: globalThis.KeyboardEvent, multiselect: boolean) => boolean;
|
|
1253
1406
|
|
|
1254
1407
|
declare type SingleDatePickerProps = {
|
|
@@ -1258,8 +1411,14 @@ declare type SingleDatePickerProps = {
|
|
|
1258
1411
|
endDate?: null;
|
|
1259
1412
|
};
|
|
1260
1413
|
|
|
1414
|
+
/**
|
|
1415
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1416
|
+
*/
|
|
1261
1417
|
export declare type SortableProps = Partial<ReturnType<typeof useSortable>>;
|
|
1262
1418
|
|
|
1419
|
+
/**
|
|
1420
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1421
|
+
*/
|
|
1263
1422
|
export declare type SortableTreeItemProps = TreeItemProps;
|
|
1264
1423
|
|
|
1265
1424
|
/**
|
|
@@ -1355,12 +1514,21 @@ declare enum TooltipPosition {
|
|
|
1355
1514
|
Left = "left"
|
|
1356
1515
|
}
|
|
1357
1516
|
|
|
1517
|
+
/**
|
|
1518
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1519
|
+
*/
|
|
1358
1520
|
export declare const Tree: MemoExoticComponent<({ id, onDrop, onSelect, onExpand, onShrink, children, selectedIds, expandedIds, draggable, multiselect, dragHandlerPosition, enableDragDelay, showDragHandlerOnHoverOnly, showContentWhileDragging, itemStyle, "data-test-id": dataTestId, }: TreeProps) => JSX_2.Element>;
|
|
1359
1521
|
|
|
1522
|
+
/**
|
|
1523
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1524
|
+
*/
|
|
1360
1525
|
export declare type TreeActive = Omit<Active, 'id'> & {
|
|
1361
1526
|
id: string;
|
|
1362
1527
|
};
|
|
1363
1528
|
|
|
1529
|
+
/**
|
|
1530
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1531
|
+
*/
|
|
1364
1532
|
export declare type TreeAnnouncements = {
|
|
1365
1533
|
onDragStart({ active }: Pick<TreeDragEvent, 'active'>): string | undefined;
|
|
1366
1534
|
onDragMove?({ active, over }: TreeDragEvent): string | undefined;
|
|
@@ -1373,8 +1541,14 @@ declare type TreeCollision = Omit<Collision, 'id'> & {
|
|
|
1373
1541
|
id: string;
|
|
1374
1542
|
};
|
|
1375
1543
|
|
|
1544
|
+
/**
|
|
1545
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1546
|
+
*/
|
|
1376
1547
|
export declare type TreeDragCancelEvent = TreeDragEndEvent;
|
|
1377
1548
|
|
|
1549
|
+
/**
|
|
1550
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1551
|
+
*/
|
|
1378
1552
|
export declare type TreeDragEndEvent = TreeDragEvent;
|
|
1379
1553
|
|
|
1380
1554
|
declare type TreeDragEvent = {
|
|
@@ -1385,12 +1559,24 @@ declare type TreeDragEvent = {
|
|
|
1385
1559
|
over: TreeOver | null;
|
|
1386
1560
|
};
|
|
1387
1561
|
|
|
1562
|
+
/**
|
|
1563
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1564
|
+
*/
|
|
1388
1565
|
export declare type TreeDragMoveEvent = TreeDragEvent;
|
|
1389
1566
|
|
|
1567
|
+
/**
|
|
1568
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1569
|
+
*/
|
|
1390
1570
|
export declare type TreeDragOverEvent = TreeDragMoveEvent;
|
|
1391
1571
|
|
|
1572
|
+
/**
|
|
1573
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1574
|
+
*/
|
|
1392
1575
|
export declare type TreeDragStartEvent = Pick<TreeDragEvent, 'active'>;
|
|
1393
1576
|
|
|
1577
|
+
/**
|
|
1578
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1579
|
+
*/
|
|
1394
1580
|
export declare const TreeItem: MemoExoticComponent<ForwardRefExoticComponent<InternalTreeItemProps & RefAttributes<unknown>>>;
|
|
1395
1581
|
|
|
1396
1582
|
declare type TreeItemBaseProps = {
|
|
@@ -1425,16 +1611,31 @@ declare type TreeItemBaseProps = {
|
|
|
1425
1611
|
levelConstraint?: Nullable<number>;
|
|
1426
1612
|
};
|
|
1427
1613
|
|
|
1614
|
+
/**
|
|
1615
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1616
|
+
*/
|
|
1428
1617
|
export declare const TreeItemBorderClassMap: Record<Exclude<TreeItemPropsSizing, 'x-large'>, string>;
|
|
1429
1618
|
|
|
1619
|
+
/**
|
|
1620
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1621
|
+
*/
|
|
1430
1622
|
export declare const TreeItemBorderRadiusClassMap: Record<TreeItemPropsSizing, string>;
|
|
1431
1623
|
|
|
1432
1624
|
declare type TreeItemBorderStyle = 'solid' | 'dashed' | 'dotted' | 'none';
|
|
1433
1625
|
|
|
1626
|
+
/**
|
|
1627
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1628
|
+
*/
|
|
1434
1629
|
export declare const TreeItemBorderStyleClassMap: Record<TreeItemBorderStyle, string>;
|
|
1435
1630
|
|
|
1631
|
+
/**
|
|
1632
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1633
|
+
*/
|
|
1436
1634
|
export declare type TreeItemColors = 'neutral' | 'soft' | 'none';
|
|
1437
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1638
|
+
*/
|
|
1438
1639
|
export declare const TreeItemColorsClassMap: Record<TreeItemColors, TreeItemColorStyles>;
|
|
1439
1640
|
|
|
1440
1641
|
declare type TreeItemColorStyles = {
|
|
@@ -1449,14 +1650,23 @@ declare type TreeItemColorStyles = {
|
|
|
1449
1650
|
|
|
1450
1651
|
declare type TreeItemContentFit = 'content-fit' | 'single-line';
|
|
1451
1652
|
|
|
1653
|
+
/**
|
|
1654
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1655
|
+
*/
|
|
1452
1656
|
export declare const TreeItemMultiselect: MemoExoticComponent<({ id, label, showCaret, children, level, contentComponent, parentId: _parentId, onSelect, onExpand, onShrink, registerNodeChildren, unregisterNodeChildren, isDisabled, expandable, checkBoxPosition, itemStyle, "data-test-id": dataTestId, }: InternalTreeItemMultiSelectProps) => JSX_2.Element>;
|
|
1453
1657
|
|
|
1658
|
+
/**
|
|
1659
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1660
|
+
*/
|
|
1454
1661
|
export declare type TreeItemMultiselectProps = Omit<TreeItemProps, 'type' | 'onDrop' | 'accepts' | 'registerOverlay' | 'draggable' | 'showContentWhileDragging' | 'ignoreItemDoubleClick' | 'showDragHandlerOnHoverOnly' | 'dragHandlerPosition'> & {
|
|
1455
1662
|
isDisabled?: boolean;
|
|
1456
1663
|
checkBoxPosition?: DragHandlerPosition;
|
|
1457
1664
|
onBeforeUnregisterChildren?: (id: string, nodes: TreeNodeWithoutElements[]) => void;
|
|
1458
1665
|
};
|
|
1459
1666
|
|
|
1667
|
+
/**
|
|
1668
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1669
|
+
*/
|
|
1460
1670
|
export declare type TreeItemMultiselectWithNodes = TreeItemMultiselectProps & {
|
|
1461
1671
|
id: string;
|
|
1462
1672
|
parentId: string;
|
|
@@ -1466,6 +1676,9 @@ export declare type TreeItemMultiselectWithNodes = TreeItemMultiselectProps & {
|
|
|
1466
1676
|
onSelect?: (id: string) => void;
|
|
1467
1677
|
};
|
|
1468
1678
|
|
|
1679
|
+
/**
|
|
1680
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1681
|
+
*/
|
|
1469
1682
|
export declare const TreeItemOverlay: {
|
|
1470
1683
|
({ id, label, level, children, contentComponent, isSelected, dragHandlerPosition, showContentWhileDragging, }: Overlay): JSX_2.Element;
|
|
1471
1684
|
displayName: string;
|
|
@@ -1499,14 +1712,29 @@ declare type TreeItemPrivateProps_2 = {
|
|
|
1499
1712
|
registerNodeChildren?: (payload: RegisterNodeChildrenPayload) => void;
|
|
1500
1713
|
};
|
|
1501
1714
|
|
|
1715
|
+
/**
|
|
1716
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1717
|
+
*/
|
|
1502
1718
|
export declare type TreeItemProps = SortableProps & (TreeItemWithLabelProps | TreeItemWithContentComponentProps);
|
|
1503
1719
|
|
|
1720
|
+
/**
|
|
1721
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1722
|
+
*/
|
|
1504
1723
|
export declare type TreeItemPropsSizing = 'none' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
1505
1724
|
|
|
1725
|
+
/**
|
|
1726
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1727
|
+
*/
|
|
1506
1728
|
export declare const TreeItemShadowClassMap: Record<TreeItemPropsSizing, string>;
|
|
1507
1729
|
|
|
1730
|
+
/**
|
|
1731
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1732
|
+
*/
|
|
1508
1733
|
export declare const TreeItemSpacingClassMap: Record<TreeItemPropsSizing, string>;
|
|
1509
1734
|
|
|
1735
|
+
/**
|
|
1736
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1737
|
+
*/
|
|
1510
1738
|
export declare type TreeItemState = {
|
|
1511
1739
|
parentId?: string;
|
|
1512
1740
|
childrenIds?: string[];
|
|
@@ -1514,6 +1742,9 @@ export declare type TreeItemState = {
|
|
|
1514
1742
|
domElement?: HTMLElement;
|
|
1515
1743
|
};
|
|
1516
1744
|
|
|
1745
|
+
/**
|
|
1746
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1747
|
+
*/
|
|
1517
1748
|
export declare type TreeItemStyling = {
|
|
1518
1749
|
spacingY?: TreeItemPropsSizing;
|
|
1519
1750
|
contentHight?: TreeItemContentFit;
|
|
@@ -1524,16 +1755,25 @@ export declare type TreeItemStyling = {
|
|
|
1524
1755
|
activeColorStyle?: TreeItemColors;
|
|
1525
1756
|
};
|
|
1526
1757
|
|
|
1758
|
+
/**
|
|
1759
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1760
|
+
*/
|
|
1527
1761
|
export declare type TreeItemWithContentComponentProps = {
|
|
1528
1762
|
label?: never;
|
|
1529
1763
|
contentComponent?: ReactNode;
|
|
1530
1764
|
} & TreeItemBaseProps;
|
|
1531
1765
|
|
|
1766
|
+
/**
|
|
1767
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1768
|
+
*/
|
|
1532
1769
|
export declare type TreeItemWithLabelProps = {
|
|
1533
1770
|
label?: string;
|
|
1534
1771
|
contentComponent?: never;
|
|
1535
1772
|
} & TreeItemBaseProps;
|
|
1536
1773
|
|
|
1774
|
+
/**
|
|
1775
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1776
|
+
*/
|
|
1537
1777
|
export declare type TreeNodeWithoutElements = {
|
|
1538
1778
|
id: string;
|
|
1539
1779
|
level: number;
|
|
@@ -1542,10 +1782,16 @@ export declare type TreeNodeWithoutElements = {
|
|
|
1542
1782
|
nodes: TreeNodeWithoutElements[];
|
|
1543
1783
|
};
|
|
1544
1784
|
|
|
1785
|
+
/**
|
|
1786
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1787
|
+
*/
|
|
1545
1788
|
export declare type TreeOver = Omit<Over, 'id'> & {
|
|
1546
1789
|
id: string;
|
|
1547
1790
|
};
|
|
1548
1791
|
|
|
1792
|
+
/**
|
|
1793
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1794
|
+
*/
|
|
1549
1795
|
export declare type TreeProps = {
|
|
1550
1796
|
id: string;
|
|
1551
1797
|
draggable?: boolean;
|
|
@@ -1565,6 +1811,9 @@ export declare type TreeProps = {
|
|
|
1565
1811
|
onDrop?: OnTreeDropCallback;
|
|
1566
1812
|
};
|
|
1567
1813
|
|
|
1814
|
+
/**
|
|
1815
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1816
|
+
*/
|
|
1568
1817
|
export declare type TreeState = {
|
|
1569
1818
|
selectedIds: Set<string>;
|
|
1570
1819
|
expandedIds: Set<string>;
|
|
@@ -1575,6 +1824,9 @@ export declare type TreeState = {
|
|
|
1575
1824
|
projection: Nullable<Projection>;
|
|
1576
1825
|
};
|
|
1577
1826
|
|
|
1827
|
+
/**
|
|
1828
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1829
|
+
*/
|
|
1578
1830
|
export declare type TreeStateAction = {
|
|
1579
1831
|
type: 'REPLACE_STATE';
|
|
1580
1832
|
payload: TreeState;
|
|
@@ -1635,6 +1887,9 @@ declare enum TriggerEmphasis {
|
|
|
1635
1887
|
Weak = "Weak"
|
|
1636
1888
|
}
|
|
1637
1889
|
|
|
1890
|
+
/**
|
|
1891
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1892
|
+
*/
|
|
1638
1893
|
export declare const updateNodeWithNewChildren: (nodes: ReactElement<InternalTreeItemProps>[], parentId: string, children: ReactElement[]) => ReactElement<any, string | JSXElementConstructor<any>>[];
|
|
1639
1894
|
|
|
1640
1895
|
/**
|
|
@@ -1668,6 +1923,9 @@ export declare const useMemoizedId: (id?: string) => string;
|
|
|
1668
1923
|
**/
|
|
1669
1924
|
export declare const useMobileDetection: () => boolean;
|
|
1670
1925
|
|
|
1926
|
+
/**
|
|
1927
|
+
* @deprecated Please use updated Tree component from `@frontify/fondue/components` instead. Also check {@link https://github.com/Frontify/fondue/blob/main/packages/components/MIGRATING.md#tree the migration guide}.
|
|
1928
|
+
*/
|
|
1671
1929
|
export declare const useTreeItem: (id: string) => {
|
|
1672
1930
|
isSelected: boolean;
|
|
1673
1931
|
isExpanded: boolean;
|