made-refine 0.1.1 → 0.1.2
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +427 -236
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +431 -238
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -38,6 +38,7 @@ interface DirectEditContextValue extends DirectEditState {
|
|
|
38
38
|
updateBorderProperty: (key: BorderPropertyKey, value: BorderProperties[BorderPropertyKey]) => void;
|
|
39
39
|
updateBorderProperties: (changes: Array<[BorderPropertyKey, BorderProperties[BorderPropertyKey]]>) => void;
|
|
40
40
|
updateFlexProperty: (key: FlexPropertyKey, value: string) => void;
|
|
41
|
+
toggleFlexLayout: () => void;
|
|
41
42
|
updateSizingProperty: (key: SizingPropertyKey, value: SizingValue) => void;
|
|
42
43
|
updateColorProperty: (key: ColorPropertyKey, value: ColorValue) => void;
|
|
43
44
|
updateTypographyProperty: (key: TypographyPropertyKey, value: CSSPropertyValue | string) => void;
|
|
@@ -127,6 +128,7 @@ interface DirectEditPanelInnerProps {
|
|
|
127
128
|
onUpdateBorder: (key: BorderPropertyKey, value: BorderProperties[BorderPropertyKey]) => void;
|
|
128
129
|
onBatchUpdateBorder: (changes: Array<[BorderPropertyKey, BorderProperties[BorderPropertyKey]]>) => void;
|
|
129
130
|
onUpdateFlex: (key: 'flexDirection' | 'justifyContent' | 'alignItems', value: string) => void;
|
|
131
|
+
onToggleFlex: () => void;
|
|
130
132
|
onUpdateSizing: (key: SizingPropertyKey, value: SizingValue) => void;
|
|
131
133
|
onUpdateColor: (key: ColorPropertyKey, value: ColorValue) => void;
|
|
132
134
|
onUpdateTypography: (key: TypographyPropertyKey, value: CSSPropertyValue | string) => void;
|
|
@@ -141,7 +143,7 @@ interface DirectEditPanelInnerProps {
|
|
|
141
143
|
onHeaderPointerMove?: (e: React.PointerEvent) => void;
|
|
142
144
|
onHeaderPointerUp?: (e: React.PointerEvent) => void;
|
|
143
145
|
}
|
|
144
|
-
declare function DirectEditPanelInner({ elementInfo, computedSpacing, computedBorderRadius, computedBorder, computedFlex, computedSizing, computedColor, computedTypography, pendingStyles, onClose, onSelectParent, onSelectChild, onUpdateSpacing, onUpdateBorderRadius, onUpdateBorder, onBatchUpdateBorder, onUpdateFlex, onUpdateSizing, onUpdateColor, onUpdateTypography, onReset, onExportEdits, onSendToAgent, className, style, panelRef, isDragging, onHeaderPointerDown, onHeaderPointerMove, onHeaderPointerUp, }: DirectEditPanelInnerProps): react_jsx_runtime.JSX.Element;
|
|
146
|
+
declare function DirectEditPanelInner({ elementInfo, computedSpacing, computedBorderRadius, computedBorder, computedFlex, computedSizing, computedColor, computedTypography, pendingStyles, onClose, onSelectParent, onSelectChild, onUpdateSpacing, onUpdateBorderRadius, onUpdateBorder, onBatchUpdateBorder, onUpdateFlex, onToggleFlex, onUpdateSizing, onUpdateColor, onUpdateTypography, onReset, onExportEdits, onSendToAgent, className, style, panelRef, isDragging, onHeaderPointerDown, onHeaderPointerMove, onHeaderPointerUp, }: DirectEditPanelInnerProps): react_jsx_runtime.JSX.Element;
|
|
145
147
|
declare function DirectEditPanel(): react_jsx_runtime.JSX.Element | null;
|
|
146
148
|
|
|
147
149
|
interface DirectEditToolbarInnerProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ interface DirectEditContextValue extends DirectEditState {
|
|
|
38
38
|
updateBorderProperty: (key: BorderPropertyKey, value: BorderProperties[BorderPropertyKey]) => void;
|
|
39
39
|
updateBorderProperties: (changes: Array<[BorderPropertyKey, BorderProperties[BorderPropertyKey]]>) => void;
|
|
40
40
|
updateFlexProperty: (key: FlexPropertyKey, value: string) => void;
|
|
41
|
+
toggleFlexLayout: () => void;
|
|
41
42
|
updateSizingProperty: (key: SizingPropertyKey, value: SizingValue) => void;
|
|
42
43
|
updateColorProperty: (key: ColorPropertyKey, value: ColorValue) => void;
|
|
43
44
|
updateTypographyProperty: (key: TypographyPropertyKey, value: CSSPropertyValue | string) => void;
|
|
@@ -127,6 +128,7 @@ interface DirectEditPanelInnerProps {
|
|
|
127
128
|
onUpdateBorder: (key: BorderPropertyKey, value: BorderProperties[BorderPropertyKey]) => void;
|
|
128
129
|
onBatchUpdateBorder: (changes: Array<[BorderPropertyKey, BorderProperties[BorderPropertyKey]]>) => void;
|
|
129
130
|
onUpdateFlex: (key: 'flexDirection' | 'justifyContent' | 'alignItems', value: string) => void;
|
|
131
|
+
onToggleFlex: () => void;
|
|
130
132
|
onUpdateSizing: (key: SizingPropertyKey, value: SizingValue) => void;
|
|
131
133
|
onUpdateColor: (key: ColorPropertyKey, value: ColorValue) => void;
|
|
132
134
|
onUpdateTypography: (key: TypographyPropertyKey, value: CSSPropertyValue | string) => void;
|
|
@@ -141,7 +143,7 @@ interface DirectEditPanelInnerProps {
|
|
|
141
143
|
onHeaderPointerMove?: (e: React.PointerEvent) => void;
|
|
142
144
|
onHeaderPointerUp?: (e: React.PointerEvent) => void;
|
|
143
145
|
}
|
|
144
|
-
declare function DirectEditPanelInner({ elementInfo, computedSpacing, computedBorderRadius, computedBorder, computedFlex, computedSizing, computedColor, computedTypography, pendingStyles, onClose, onSelectParent, onSelectChild, onUpdateSpacing, onUpdateBorderRadius, onUpdateBorder, onBatchUpdateBorder, onUpdateFlex, onUpdateSizing, onUpdateColor, onUpdateTypography, onReset, onExportEdits, onSendToAgent, className, style, panelRef, isDragging, onHeaderPointerDown, onHeaderPointerMove, onHeaderPointerUp, }: DirectEditPanelInnerProps): react_jsx_runtime.JSX.Element;
|
|
146
|
+
declare function DirectEditPanelInner({ elementInfo, computedSpacing, computedBorderRadius, computedBorder, computedFlex, computedSizing, computedColor, computedTypography, pendingStyles, onClose, onSelectParent, onSelectChild, onUpdateSpacing, onUpdateBorderRadius, onUpdateBorder, onBatchUpdateBorder, onUpdateFlex, onToggleFlex, onUpdateSizing, onUpdateColor, onUpdateTypography, onReset, onExportEdits, onSendToAgent, className, style, panelRef, isDragging, onHeaderPointerDown, onHeaderPointerMove, onHeaderPointerUp, }: DirectEditPanelInnerProps): react_jsx_runtime.JSX.Element;
|
|
145
147
|
declare function DirectEditPanel(): react_jsx_runtime.JSX.Element | null;
|
|
146
148
|
|
|
147
149
|
interface DirectEditToolbarInnerProps {
|