@frontify/fondue 13.2.0 → 13.3.1
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/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 +20 -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 +8 -0
- package/dist/tools/internal/index.js +8 -8
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -509,6 +509,9 @@ export declare type DragHandleProps = DetailedHTMLProps<ButtonHTMLAttributes<HTM
|
|
|
509
509
|
|
|
510
510
|
export declare type DragHandlerPosition = 'left' | 'right' | 'none';
|
|
511
511
|
|
|
512
|
+
/**
|
|
513
|
+
* @deprecated Use the new EditableText component from @frontify/fondue/components instead.
|
|
514
|
+
*/
|
|
512
515
|
export declare enum EditableMode {
|
|
513
516
|
INPUT = "INPUT",
|
|
514
517
|
LABEL = "LABEL"
|
|
@@ -530,20 +533,7 @@ declare interface EditableOptionProps {
|
|
|
530
533
|
}
|
|
531
534
|
|
|
532
535
|
/**
|
|
533
|
-
*
|
|
534
|
-
* with a Button, to allow for accessibility and copies styles to input field
|
|
535
|
-
*
|
|
536
|
-
* Events:
|
|
537
|
-
* - onEditableSave // When changing from input to label state
|
|
538
|
-
* - onModeChange // Indicates which state is active
|
|
539
|
-
* - onAdditionalValueSave // Similar to editable Save with additional Values provided
|
|
540
|
-
*
|
|
541
|
-
* Options properties:
|
|
542
|
-
* - mode: enum EditableMode // {INPUT = 'INPUT',LABEL = 'LABEL'}
|
|
543
|
-
* - enableDoubleClick: boolean // should the input be triggered by a double click or single click
|
|
544
|
-
* - isSlimInputField: boolean // removes y padding
|
|
545
|
-
* - additionalValues?: string // additional Values like ID
|
|
546
|
-
*
|
|
536
|
+
* @deprecated Use the new EditableText component from @frontify/fondue/components instead.
|
|
547
537
|
*/
|
|
548
538
|
export declare const EditableText: {
|
|
549
539
|
({ onEditableSave, onModeChange, onAdditionalValueSave, children, options, isOverflowing, "data-test-id": dataTestId, }: EditableTextProps): JSX_2.Element;
|
|
@@ -551,11 +541,7 @@ export declare const EditableText: {
|
|
|
551
541
|
};
|
|
552
542
|
|
|
553
543
|
/**
|
|
554
|
-
*
|
|
555
|
-
* onEditableSave callback to get updated Value
|
|
556
|
-
* onAdditionalValueSave callback with more information (ex. ID)
|
|
557
|
-
* onModeChange callback when state changes
|
|
558
|
-
* options to specify styling and additional behaviours
|
|
544
|
+
* @deprecated Use the new EditableText component from @frontify/fondue/components instead.
|
|
559
545
|
*/
|
|
560
546
|
export declare interface EditableTextProps {
|
|
561
547
|
children?: ReactElement;
|
|
@@ -1043,17 +1029,29 @@ export declare type OnTreeDropCallback = (args: {
|
|
|
1043
1029
|
parentType?: string;
|
|
1044
1030
|
}) => void;
|
|
1045
1031
|
|
|
1032
|
+
/**
|
|
1033
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1034
|
+
*/
|
|
1046
1035
|
export declare const OrderableList: {
|
|
1047
1036
|
<T extends object>({ onMove, dragDisabled, items, dragHandlerPosition, enableDragDelay, itemStyle, selectedId, renderContent, "data-test-id": dataTestId, }: OrderableListProps<T>): JSX_2.Element;
|
|
1048
1037
|
displayName: string;
|
|
1049
1038
|
};
|
|
1050
1039
|
|
|
1040
|
+
/**
|
|
1041
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1042
|
+
*/
|
|
1051
1043
|
export declare type OrderableListItem<T = Record<string, unknown>> = DraggableItem<T> & {
|
|
1052
1044
|
alt: string;
|
|
1053
1045
|
};
|
|
1054
1046
|
|
|
1047
|
+
/**
|
|
1048
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1049
|
+
*/
|
|
1055
1050
|
export declare type OrderableListItemStyle = TreeItemStyling;
|
|
1056
1051
|
|
|
1052
|
+
/**
|
|
1053
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1054
|
+
*/
|
|
1057
1055
|
export declare type OrderableListProps<T> = {
|
|
1058
1056
|
items: OrderableListItem<T>[];
|
|
1059
1057
|
dragDisabled: boolean;
|
|
@@ -1173,6 +1171,9 @@ export declare const removeReactNodesFromFlatArray: (tree: ReactElement[], nodeI
|
|
|
1173
1171
|
|
|
1174
1172
|
export declare const removeSelectedIds: (ids: string[], idsToRemove: string[], partial: boolean) => string[];
|
|
1175
1173
|
|
|
1174
|
+
/**
|
|
1175
|
+
* @deprecated Use the new OrderableList component from @frontify/fondue/components instead.
|
|
1176
|
+
*/
|
|
1176
1177
|
export declare type RenderListItem<T> = (items: OrderableListItem<T>) => ReactElement;
|
|
1177
1178
|
|
|
1178
1179
|
export declare const ROOT_ID = "__ROOT__";
|