@frontify/fondue 13.1.5 → 13.3.0
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/DatePicker/DatePicker.es.js.map +1 -1
- package/dist/components/DatePicker/DatePickerTrigger.es.js.map +1 -1
- package/dist/components/EditableText/EditableText.es.js.map +1 -1
- package/dist/components/OrderableList/OrderableList.es.js.map +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +32 -19
- 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 +12 -0
- package/dist/tools/internal/index.js +12 -12
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -433,8 +433,14 @@ export declare const convertToPartialSelectedId: (ids: string[]) => string[];
|
|
|
433
433
|
|
|
434
434
|
export declare const currentNodesChanged: (currentChildrenIds: string[], currentNodes: ReactElement<InternalTreeItemProps>[], newNodes: ReactElement<InternalTreeItemProps>[]) => boolean;
|
|
435
435
|
|
|
436
|
+
/**
|
|
437
|
+
* @deprecated Use `DatePicker` from `@frontify/fondue/components` instead.
|
|
438
|
+
*/
|
|
436
439
|
export declare const DatePicker: ForwardRefExoticComponent<DatePickerProps & RefAttributes<ReactDatePickerRef>>;
|
|
437
440
|
|
|
441
|
+
/**
|
|
442
|
+
* @deprecated Use `DatePicker` from `@frontify/fondue/components` instead.
|
|
443
|
+
*/
|
|
438
444
|
export declare type DatePickerProps = {
|
|
439
445
|
placeHolder?: string;
|
|
440
446
|
isClearable?: boolean;
|
|
@@ -466,6 +472,9 @@ export declare type DatePickerProps = {
|
|
|
466
472
|
'data-test-id'?: string;
|
|
467
473
|
} & (SingleDatePickerProps | RangeDatePickerProps);
|
|
468
474
|
|
|
475
|
+
/**
|
|
476
|
+
* @deprecated Use `DatePickerInput` from `@frontify/fondue/components` instead.
|
|
477
|
+
*/
|
|
469
478
|
export declare const DatePickerTrigger: ForwardRefExoticComponent<DatePickerTriggerProps & RefAttributes<HTMLDivElement>>;
|
|
470
479
|
|
|
471
480
|
declare type DatePickerTriggerProps = {
|
|
@@ -500,6 +509,9 @@ export declare type DragHandleProps = DetailedHTMLProps<ButtonHTMLAttributes<HTM
|
|
|
500
509
|
|
|
501
510
|
export declare type DragHandlerPosition = 'left' | 'right' | 'none';
|
|
502
511
|
|
|
512
|
+
/**
|
|
513
|
+
* @deprecated Use the new EditableText component from @frontify/fondue/components instead.
|
|
514
|
+
*/
|
|
503
515
|
export declare enum EditableMode {
|
|
504
516
|
INPUT = "INPUT",
|
|
505
517
|
LABEL = "LABEL"
|
|
@@ -521,20 +533,7 @@ declare interface EditableOptionProps {
|
|
|
521
533
|
}
|
|
522
534
|
|
|
523
535
|
/**
|
|
524
|
-
*
|
|
525
|
-
* with a Button, to allow for accessibility and copies styles to input field
|
|
526
|
-
*
|
|
527
|
-
* Events:
|
|
528
|
-
* - onEditableSave // When changing from input to label state
|
|
529
|
-
* - onModeChange // Indicates which state is active
|
|
530
|
-
* - onAdditionalValueSave // Similar to editable Save with additional Values provided
|
|
531
|
-
*
|
|
532
|
-
* Options properties:
|
|
533
|
-
* - mode: enum EditableMode // {INPUT = 'INPUT',LABEL = 'LABEL'}
|
|
534
|
-
* - enableDoubleClick: boolean // should the input be triggered by a double click or single click
|
|
535
|
-
* - isSlimInputField: boolean // removes y padding
|
|
536
|
-
* - additionalValues?: string // additional Values like ID
|
|
537
|
-
*
|
|
536
|
+
* @deprecated Use the new EditableText component from @frontify/fondue/components instead.
|
|
538
537
|
*/
|
|
539
538
|
export declare const EditableText: {
|
|
540
539
|
({ onEditableSave, onModeChange, onAdditionalValueSave, children, options, isOverflowing, "data-test-id": dataTestId, }: EditableTextProps): JSX_2.Element;
|
|
@@ -542,11 +541,7 @@ export declare const EditableText: {
|
|
|
542
541
|
};
|
|
543
542
|
|
|
544
543
|
/**
|
|
545
|
-
*
|
|
546
|
-
* onEditableSave callback to get updated Value
|
|
547
|
-
* onAdditionalValueSave callback with more information (ex. ID)
|
|
548
|
-
* onModeChange callback when state changes
|
|
549
|
-
* options to specify styling and additional behaviours
|
|
544
|
+
* @deprecated Use the new EditableText component from @frontify/fondue/components instead.
|
|
550
545
|
*/
|
|
551
546
|
export declare interface EditableTextProps {
|
|
552
547
|
children?: ReactElement;
|
|
@@ -1034,17 +1029,29 @@ export declare type OnTreeDropCallback = (args: {
|
|
|
1034
1029
|
parentType?: string;
|
|
1035
1030
|
}) => void;
|
|
1036
1031
|
|
|
1032
|
+
/**
|
|
1033
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1034
|
+
*/
|
|
1037
1035
|
export declare const OrderableList: {
|
|
1038
1036
|
<T extends object>({ onMove, dragDisabled, items, dragHandlerPosition, enableDragDelay, itemStyle, selectedId, renderContent, "data-test-id": dataTestId, }: OrderableListProps<T>): JSX_2.Element;
|
|
1039
1037
|
displayName: string;
|
|
1040
1038
|
};
|
|
1041
1039
|
|
|
1040
|
+
/**
|
|
1041
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1042
|
+
*/
|
|
1042
1043
|
export declare type OrderableListItem<T = Record<string, unknown>> = DraggableItem<T> & {
|
|
1043
1044
|
alt: string;
|
|
1044
1045
|
};
|
|
1045
1046
|
|
|
1047
|
+
/**
|
|
1048
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1049
|
+
*/
|
|
1046
1050
|
export declare type OrderableListItemStyle = TreeItemStyling;
|
|
1047
1051
|
|
|
1052
|
+
/**
|
|
1053
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1054
|
+
*/
|
|
1048
1055
|
export declare type OrderableListProps<T> = {
|
|
1049
1056
|
items: OrderableListItem<T>[];
|
|
1050
1057
|
dragDisabled: boolean;
|
|
@@ -1149,6 +1156,9 @@ declare type RangeDatePickerProps = {
|
|
|
1149
1156
|
endDate: Date | null;
|
|
1150
1157
|
};
|
|
1151
1158
|
|
|
1159
|
+
/**
|
|
1160
|
+
* @deprecated Use `DatePicker` from `@frontify/fondue/components` instead.
|
|
1161
|
+
*/
|
|
1152
1162
|
export declare type ReactDatePickerRef = default_2<boolean, undefined>;
|
|
1153
1163
|
|
|
1154
1164
|
export declare type RegisterNodeChildrenPayload = Extract<TreeStateAction, {
|
|
@@ -1161,6 +1171,9 @@ export declare const removeReactNodesFromFlatArray: (tree: ReactElement[], nodeI
|
|
|
1161
1171
|
|
|
1162
1172
|
export declare const removeSelectedIds: (ids: string[], idsToRemove: string[], partial: boolean) => string[];
|
|
1163
1173
|
|
|
1174
|
+
/**
|
|
1175
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1176
|
+
*/
|
|
1164
1177
|
export declare type RenderListItem<T> = (items: OrderableListItem<T>) => ReactElement;
|
|
1165
1178
|
|
|
1166
1179
|
export declare const ROOT_ID = "__ROOT__";
|