@elementor/editor-variables 4.0.0-503 → 4.0.0-505
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 +12 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/create-style-variables-repository.ts +2 -1
- package/src/sync/license-info.ts +1 -5
- package/src/sync/enqueue-font.ts +0 -7
- package/src/sync/types.ts +0 -11
package/dist/index.mjs
CHANGED
|
@@ -351,17 +351,14 @@ var Storage = class {
|
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
353
|
|
|
354
|
+
// src/create-style-variables-repository.ts
|
|
355
|
+
import { enqueueFont } from "@elementor/editor-v1-adapters";
|
|
356
|
+
|
|
354
357
|
// src/prop-types/font-variable-prop-type.ts
|
|
355
358
|
import { createPropUtils as createPropUtils2 } from "@elementor/editor-props";
|
|
356
359
|
import { z as z2 } from "@elementor/schema";
|
|
357
360
|
var fontVariablePropTypeUtil = createPropUtils2("global-font-variable", z2.string());
|
|
358
361
|
|
|
359
|
-
// src/sync/enqueue-font.ts
|
|
360
|
-
var enqueueFont = (fontFamily, context = "preview") => {
|
|
361
|
-
const extendedWindow = window;
|
|
362
|
-
return extendedWindow.elementor?.helpers?.enqueueFont?.(fontFamily, context) ?? null;
|
|
363
|
-
};
|
|
364
|
-
|
|
365
362
|
// src/create-style-variables-repository.ts
|
|
366
363
|
var createStyleVariablesRepository = () => {
|
|
367
364
|
const variables = {};
|
|
@@ -1051,9 +1048,8 @@ import { __ as __7, sprintf as sprintf2 } from "@wordpress/i18n";
|
|
|
1051
1048
|
|
|
1052
1049
|
// src/sync/license-info.ts
|
|
1053
1050
|
function getLicenseInfo() {
|
|
1054
|
-
const extendedWindow = window;
|
|
1055
1051
|
return {
|
|
1056
|
-
hasPro: !!
|
|
1052
|
+
hasPro: !!window.elementorPro
|
|
1057
1053
|
};
|
|
1058
1054
|
}
|
|
1059
1055
|
|