@craftile/types 0.3.1 → 0.4.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/package.json +1 -1
- package/src/index.ts +7 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -27,6 +27,12 @@ export interface VisibilityLogicGroup {
|
|
|
27
27
|
|
|
28
28
|
export type VisibilityRule = VisibilityCondition | VisibilityLogicGroup;
|
|
29
29
|
|
|
30
|
+
// Responsive property value type
|
|
31
|
+
export interface ResponsiveValue<T = any> {
|
|
32
|
+
_default: T;
|
|
33
|
+
[deviceId: string]: T;
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
export interface Block {
|
|
31
37
|
type: string;
|
|
32
38
|
id: string;
|
|
@@ -46,6 +52,7 @@ export interface PropertyField {
|
|
|
46
52
|
default?: any;
|
|
47
53
|
group?: string; // Optional group name for organizing properties in UI
|
|
48
54
|
visibleIf?: VisibilityRule; // Conditional visibility based on other property values
|
|
55
|
+
responsive?: boolean; // Enable breakpoint-specific values for this property
|
|
49
56
|
[key: string]: any;
|
|
50
57
|
}
|
|
51
58
|
|