@craftile/editor 0.10.0 → 0.11.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/ui.js
CHANGED
package/dist/utils.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare function isHtmlRenderFunction(render: any): render is (context: a
|
|
|
11
11
|
*
|
|
12
12
|
* @param rule - Rule object, logic group, or array (array === implicit AND)
|
|
13
13
|
* @param context - Block properties object
|
|
14
|
+
* @param currentDevice - Optional current device ID for evaluating responsive properties
|
|
14
15
|
* @returns boolean indicating whether the field should be visible
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
@@ -29,6 +30,13 @@ export declare function isHtmlRenderFunction(render: any): render is (context: a
|
|
|
29
30
|
* ]},
|
|
30
31
|
* { type: 'image', status: 'published' }
|
|
31
32
|
* ) // true
|
|
33
|
+
*
|
|
34
|
+
* // Responsive property condition
|
|
35
|
+
* evaluateVisibilityRule(
|
|
36
|
+
* { field: 'fontSize', operator: 'equals', value: '2xl' },
|
|
37
|
+
* { fontSize: { _default: '3xl', tablet: '2xl' } },
|
|
38
|
+
* 'tablet'
|
|
39
|
+
* ) // true
|
|
32
40
|
* ```
|
|
33
41
|
*/
|
|
34
|
-
export declare function evaluateVisibilityRule(rule: VisibilityRule | VisibilityRule[], context?: BlockProperties): boolean;
|
|
42
|
+
export declare function evaluateVisibilityRule(rule: VisibilityRule | VisibilityRule[], context?: BlockProperties, currentDevice?: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@craftile/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Vue.js-based editor UI components for craftile blocks engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"craftile",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"vue": "^3.5.17",
|
|
40
40
|
"vue-draggable-plus": "^0.6.0",
|
|
41
|
-
"@craftile/core": "0.
|
|
42
|
-
"@craftile/
|
|
43
|
-
"@craftile/
|
|
44
|
-
"@craftile/types": "0.
|
|
41
|
+
"@craftile/core": "0.11.0",
|
|
42
|
+
"@craftile/messenger": "0.11.0",
|
|
43
|
+
"@craftile/event-bus": "0.11.0",
|
|
44
|
+
"@craftile/types": "0.11.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@ark-ui/vue": "^5.24.1",
|