@elementor/editor-components 4.2.0-937 → 4.2.0-938

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-components",
3
3
  "description": "Elementor editor components",
4
- "version": "4.2.0-937",
4
+ "version": "4.2.0-938",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,31 +40,31 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor": "4.2.0-937",
44
- "@elementor/editor-canvas": "4.2.0-937",
45
- "@elementor/editor-controls": "4.2.0-937",
46
- "@elementor/editor-documents": "4.2.0-937",
47
- "@elementor/editor-editing-panel": "4.2.0-937",
48
- "@elementor/editor-elements": "4.2.0-937",
49
- "@elementor/editor-elements-panel": "4.2.0-937",
50
- "@elementor/editor-mcp": "4.2.0-937",
51
- "@elementor/editor-templates": "4.2.0-937",
52
- "@elementor/editor-panels": "4.2.0-937",
53
- "@elementor/editor-props": "4.2.0-937",
54
- "@elementor/editor-ui": "4.2.0-937",
55
- "@elementor/editor-v1-adapters": "4.2.0-937",
56
- "@elementor/http-client": "4.2.0-937",
43
+ "@elementor/editor": "4.2.0-938",
44
+ "@elementor/editor-canvas": "4.2.0-938",
45
+ "@elementor/editor-controls": "4.2.0-938",
46
+ "@elementor/editor-documents": "4.2.0-938",
47
+ "@elementor/editor-editing-panel": "4.2.0-938",
48
+ "@elementor/editor-elements": "4.2.0-938",
49
+ "@elementor/editor-elements-panel": "4.2.0-938",
50
+ "@elementor/editor-mcp": "4.2.0-938",
51
+ "@elementor/editor-templates": "4.2.0-938",
52
+ "@elementor/editor-panels": "4.2.0-938",
53
+ "@elementor/editor-props": "4.2.0-938",
54
+ "@elementor/editor-ui": "4.2.0-938",
55
+ "@elementor/editor-v1-adapters": "4.2.0-938",
56
+ "@elementor/http-client": "4.2.0-938",
57
57
  "@elementor/icons": "~1.75.1",
58
- "@elementor/events": "4.2.0-937",
59
- "@elementor/query": "4.2.0-937",
60
- "@elementor/schema": "4.2.0-937",
61
- "@elementor/store": "4.2.0-937",
58
+ "@elementor/events": "4.2.0-938",
59
+ "@elementor/query": "4.2.0-938",
60
+ "@elementor/schema": "4.2.0-938",
61
+ "@elementor/store": "4.2.0-938",
62
62
  "@elementor/ui": "1.37.5",
63
- "@elementor/utils": "4.2.0-937",
63
+ "@elementor/utils": "4.2.0-938",
64
64
  "@wordpress/i18n": "^5.13.0",
65
- "@elementor/editor-notifications": "4.2.0-937",
66
- "@elementor/editor-current-user": "4.2.0-937",
67
- "@elementor/editor-embedded-documents-manager": "4.2.0-937"
65
+ "@elementor/editor-notifications": "4.2.0-938",
66
+ "@elementor/editor-current-user": "4.2.0-938",
67
+ "@elementor/editor-embedded-documents-manager": "4.2.0-938"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.3.1",
@@ -47,11 +47,13 @@ async function getComponentIds(
47
47
  cache.set( componentId, getComponentDocumentData( componentId ) );
48
48
  }
49
49
 
50
- const doc = await cache.get( componentId );
51
- childElements = doc?.elements;
50
+ if ( isRecursive ) {
51
+ const doc = await cache.get( componentId );
52
+ childElements = doc?.elements;
53
+ }
52
54
  }
53
55
 
54
- if ( isRecursive && childElements?.length ) {
56
+ if ( childElements?.length ) {
55
57
  const childIds = await getComponentIds( childElements, cache, isRecursive );
56
58
  ids.push( ...childIds );
57
59
  }