merge: stack widget modernization on dnd kit
This commit is contained in:
940 files changed
+104475
-33649
No files matched your search
@@ -101,6 +101,12 @@ export interface OptionLocation {
|
||||
}
|
||||
|
||||
const optionsFactory = {
|
||||
internal: <T>(input: CommonInput<T> & { defaultValue: T }) => ({
|
||||
type: "internal" as const,
|
||||
defaultValue: input.defaultValue,
|
||||
withDescription: false,
|
||||
skipContextMenu: true,
|
||||
}),
|
||||
switch: (input?: CommonInput<boolean>) => ({
|
||||
type: "switch" as const,
|
||||
defaultValue: input?.defaultValue ?? false,
|
||||
@@ -219,6 +225,12 @@ const optionsFactory = {
|
||||
defaultValue: input?.defaultValue ?? "",
|
||||
withDescription: input?.withDescription ?? false,
|
||||
}),
|
||||
customWidgetConfiguration: (input?: CommonInput<Record<string, unknown>>) => ({
|
||||
type: "customWidgetConfiguration" as const,
|
||||
defaultValue: input?.defaultValue ?? {},
|
||||
withDescription: input?.withDescription ?? false,
|
||||
skipContextMenu: true,
|
||||
}),
|
||||
sortableItemList: <const TItem, const TOptionValue extends UniqueIdentifier>(
|
||||
input: SortableItemListInput<TItem, TOptionValue>,
|
||||
) => ({
|
||||
|
||||
Reference in new issue
Block a user