@elementor/editor-interactions 4.2.0-852 → 4.2.0-853
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.mjs
CHANGED
|
@@ -1914,8 +1914,8 @@ var baseSchema = {
|
|
|
1914
1914
|
duration: z.number().min(0).max(1e4).optional().describe("Animation duration in milliseconds"),
|
|
1915
1915
|
delay: z.number().min(0).max(1e4).optional().describe("Animation delay in milliseconds"),
|
|
1916
1916
|
easing: z.enum(["easeIn"]).optional().describe('Easing function for the animation. Use "easeIn" for free tier.'),
|
|
1917
|
-
excludedBreakpoints: z.array(z.
|
|
1918
|
-
'Breakpoint IDs on which this interaction is disabled (e.g. ["mobile", "tablet"]). Omit to enable on all breakpoints.'
|
|
1917
|
+
excludedBreakpoints: z.array(z.enum(["widescreen", "desktop", "laptop", "tablet_extra", "tablet", "mobile_extra", "mobile"])).optional().describe(
|
|
1918
|
+
'Breakpoint IDs on which this interaction is disabled (e.g. ["mobile", "tablet"]). Fetch the "elementor://breakpoints/list" resource to get the valid IDs for the current site. Omit to enable on all breakpoints.'
|
|
1919
1919
|
)
|
|
1920
1920
|
};
|
|
1921
1921
|
var proSchema = {
|
|
@@ -2055,6 +2055,7 @@ var EMPTY_INTERACTIONS = {
|
|
|
2055
2055
|
items: []
|
|
2056
2056
|
};
|
|
2057
2057
|
var EFFECTS_WITHOUT_TYPE = ["custom"];
|
|
2058
|
+
var BREAKPOINTS_SCHEMA_URI = "elementor://breakpoints/list";
|
|
2058
2059
|
var initManageElementInteractionTool = (reg) => {
|
|
2059
2060
|
const { addTool } = reg;
|
|
2060
2061
|
const extendedSchema = isProActive2() ? { ...baseSchema, ...proSchema } : baseSchema;
|
|
@@ -2069,7 +2070,8 @@ var initManageElementInteractionTool = (reg) => {
|
|
|
2069
2070
|
description: `Manage the element interaction.`,
|
|
2070
2071
|
schema,
|
|
2071
2072
|
requiredResources: [
|
|
2072
|
-
{ uri: INTERACTIONS_SCHEMA_URI, description: "Interactions schema with all available options" }
|
|
2073
|
+
{ uri: INTERACTIONS_SCHEMA_URI, description: "Interactions schema with all available options" },
|
|
2074
|
+
{ uri: BREAKPOINTS_SCHEMA_URI, description: "Available breakpoint IDs for excludedBreakpoints" }
|
|
2073
2075
|
],
|
|
2074
2076
|
isDestructive: true,
|
|
2075
2077
|
outputSchema: {
|