@elementor/editor-interactions 4.2.0-852 → 4.2.0-854
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.js
CHANGED
|
@@ -1979,8 +1979,8 @@ var baseSchema = {
|
|
|
1979
1979
|
duration: import_schema.z.number().min(0).max(1e4).optional().describe("Animation duration in milliseconds"),
|
|
1980
1980
|
delay: import_schema.z.number().min(0).max(1e4).optional().describe("Animation delay in milliseconds"),
|
|
1981
1981
|
easing: import_schema.z.enum(["easeIn"]).optional().describe('Easing function for the animation. Use "easeIn" for free tier.'),
|
|
1982
|
-
excludedBreakpoints: import_schema.z.array(import_schema.z.
|
|
1983
|
-
'Breakpoint IDs on which this interaction is disabled (e.g. ["mobile", "tablet"]). Omit to enable on all breakpoints.'
|
|
1982
|
+
excludedBreakpoints: import_schema.z.array(import_schema.z.enum(["widescreen", "desktop", "laptop", "tablet_extra", "tablet", "mobile_extra", "mobile"])).optional().describe(
|
|
1983
|
+
'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.'
|
|
1984
1984
|
)
|
|
1985
1985
|
};
|
|
1986
1986
|
var proSchema = {
|
|
@@ -2120,6 +2120,7 @@ var EMPTY_INTERACTIONS = {
|
|
|
2120
2120
|
items: []
|
|
2121
2121
|
};
|
|
2122
2122
|
var EFFECTS_WITHOUT_TYPE = ["custom"];
|
|
2123
|
+
var BREAKPOINTS_SCHEMA_URI = "elementor://breakpoints/list";
|
|
2123
2124
|
var initManageElementInteractionTool = (reg) => {
|
|
2124
2125
|
const { addTool } = reg;
|
|
2125
2126
|
const extendedSchema = (0, import_utils2.isProActive)() ? { ...baseSchema, ...proSchema } : baseSchema;
|
|
@@ -2134,7 +2135,8 @@ var initManageElementInteractionTool = (reg) => {
|
|
|
2134
2135
|
description: `Manage the element interaction.`,
|
|
2135
2136
|
schema,
|
|
2136
2137
|
requiredResources: [
|
|
2137
|
-
{ uri: INTERACTIONS_SCHEMA_URI, description: "Interactions schema with all available options" }
|
|
2138
|
+
{ uri: INTERACTIONS_SCHEMA_URI, description: "Interactions schema with all available options" },
|
|
2139
|
+
{ uri: BREAKPOINTS_SCHEMA_URI, description: "Available breakpoint IDs for excludedBreakpoints" }
|
|
2138
2140
|
],
|
|
2139
2141
|
isDestructive: true,
|
|
2140
2142
|
outputSchema: {
|