@elementor/editor-components 4.0.0-619 → 4.0.0-621
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.d.mts +1 -4
- package/dist/index.d.ts +1 -4
- package/dist/index.js +22 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -23
- package/src/create-component-type.ts +1 -1
- package/src/index.ts +0 -1
- package/src/utils/is-pro-user.ts +0 -11
package/dist/index.mjs
CHANGED
|
@@ -1538,6 +1538,7 @@ import {
|
|
|
1538
1538
|
} from "@elementor/editor-canvas";
|
|
1539
1539
|
import { getCurrentDocument } from "@elementor/editor-documents";
|
|
1540
1540
|
import { __getState as getState5 } from "@elementor/store";
|
|
1541
|
+
import { hasProInstalled } from "@elementor/utils";
|
|
1541
1542
|
import { __ as __7 } from "@wordpress/i18n";
|
|
1542
1543
|
|
|
1543
1544
|
// src/utils/format-component-elements-id.ts
|
|
@@ -1556,17 +1557,6 @@ function formatComponentElementsId(elements, path) {
|
|
|
1556
1557
|
});
|
|
1557
1558
|
}
|
|
1558
1559
|
|
|
1559
|
-
// src/utils/is-pro-user.ts
|
|
1560
|
-
function hasProInstalled() {
|
|
1561
|
-
return window.elementor?.helpers?.hasPro?.() ?? false;
|
|
1562
|
-
}
|
|
1563
|
-
function isProActive() {
|
|
1564
|
-
if (!hasProInstalled()) {
|
|
1565
|
-
return false;
|
|
1566
|
-
}
|
|
1567
|
-
return window.elementorPro?.config?.isActive ?? false;
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
1560
|
// src/utils/switch-to-component.ts
|
|
1571
1561
|
import { invalidateDocumentData, switchToDocument } from "@elementor/editor-documents";
|
|
1572
1562
|
import { getCurrentDocumentContainer, selectElement } from "@elementor/editor-elements";
|
|
@@ -6007,8 +5997,6 @@ function init() {
|
|
|
6007
5997
|
initExtended();
|
|
6008
5998
|
}
|
|
6009
5999
|
export {
|
|
6010
|
-
|
|
6011
|
-
init,
|
|
6012
|
-
isProActive
|
|
6000
|
+
init
|
|
6013
6001
|
};
|
|
6014
6002
|
//# sourceMappingURL=index.mjs.map
|