@elementor/editor-global-classes 4.3.0-1017 → 4.3.0-1019
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
|
@@ -2896,8 +2896,8 @@ var generateApplyGlobalClassGuidePrompt = () => {
|
|
|
2896
2896
|
prompt.description("Apply a global class to an element, enabling consistent styling through your design system.");
|
|
2897
2897
|
prompt.instruction(
|
|
2898
2898
|
`## When to use this tool:
|
|
2899
|
-
**ALWAYS use this IMMEDIATELY AFTER
|
|
2900
|
-
- After
|
|
2899
|
+
**ALWAYS use this IMMEDIATELY AFTER creating or updating elements** to apply the global classes you created beforehand:
|
|
2900
|
+
- After adding elements to the canvas, apply semantic classes to them
|
|
2901
2901
|
- When applying consistent typography styles (heading-primary, text-body, etc.)
|
|
2902
2902
|
- When applying theme colors or brand styles (bg-brand, button-cta, etc.)
|
|
2903
2903
|
- When ensuring spacing consistency (spacing-section-large, etc.)
|
|
@@ -2909,7 +2909,7 @@ var generateApplyGlobalClassGuidePrompt = () => {
|
|
|
2909
2909
|
prompt.instruction(
|
|
2910
2910
|
`## Prerequisites:
|
|
2911
2911
|
- **REQUIRED**: Get the list of available global classes from 'elementor://global-classes' resource
|
|
2912
|
-
- **REQUIRED**: Get element IDs from the
|
|
2912
|
+
- **REQUIRED**: Get element IDs from the page structure or selected element resources
|
|
2913
2913
|
- Ensure you have the most up-to-date list of classes applied to the element to avoid duplicates
|
|
2914
2914
|
- Make sure you have the correct class ID that you want to apply`
|
|
2915
2915
|
);
|