@elementor/editor-global-classes 4.1.0-736 → 4.1.0-738

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
@@ -476,10 +476,12 @@ var getRemovedInfo = (classId) => {
476
476
  // src/global-classes-styles-provider.ts
477
477
  var MAX_CLASSES = 100;
478
478
  var GLOBAL_CLASSES_PROVIDER_KEY = "global-classes";
479
+ var PREGENERATED_LINK_PATTERN = /^global-(preview|frontend)-[a-zA-Z_-]+-css$/;
479
480
  var globalClassesStylesProvider = (0, import_editor_styles_repository.createStylesProvider)({
480
481
  key: GLOBAL_CLASSES_PROVIDER_KEY,
481
482
  priority: 30,
482
483
  limit: MAX_CLASSES,
484
+ isPregeneratedLink: ({ id: id2 }) => PREGENERATED_LINK_PATTERN.test(id2),
483
485
  labels: {
484
486
  singular: (0, import_i18n.__)("class", "elementor"),
485
487
  plural: (0, import_i18n.__)("classes", "elementor")