@elementor/editor-editing-panel 4.2.0-888 → 4.2.0-895

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 CHANGED
@@ -2276,10 +2276,13 @@ type DynamicPropValue = TransformablePropValue<'dynamic', {
2276
2276
  name: string;
2277
2277
  settings?: Record<string, unknown>;
2278
2278
  }>;
2279
+ type RefreshCacheFromServerOptions = {
2280
+ disableCache?: boolean;
2281
+ };
2279
2282
  type DynamicTagsManager = {
2280
2283
  createTag: (id: string, name: string, settings: Record<string, unknown>) => TagInstance;
2281
2284
  loadTagDataFromCache: (tag: TagInstance) => unknown;
2282
- refreshCacheFromServer: (callback: () => void) => void;
2285
+ refreshCacheFromServer: (callback: () => void, options?: RefreshCacheFromServerOptions) => void;
2283
2286
  };
2284
2287
  type TagInstance = {
2285
2288
  options: {
package/dist/index.d.ts CHANGED
@@ -2276,10 +2276,13 @@ type DynamicPropValue = TransformablePropValue<'dynamic', {
2276
2276
  name: string;
2277
2277
  settings?: Record<string, unknown>;
2278
2278
  }>;
2279
+ type RefreshCacheFromServerOptions = {
2280
+ disableCache?: boolean;
2281
+ };
2279
2282
  type DynamicTagsManager = {
2280
2283
  createTag: (id: string, name: string, settings: Record<string, unknown>) => TagInstance;
2281
2284
  loadTagDataFromCache: (tag: TagInstance) => unknown;
2282
- refreshCacheFromServer: (callback: () => void) => void;
2285
+ refreshCacheFromServer: (callback: () => void, options?: RefreshCacheFromServerOptions) => void;
2283
2286
  };
2284
2287
  type TagInstance = {
2285
2288
  options: {
package/dist/index.js CHANGED
@@ -6644,9 +6644,12 @@ function getDynamicValue(name, settings) {
6644
6644
  return tagValue;
6645
6645
  }
6646
6646
  return new Promise((resolve) => {
6647
- dynamicTags.refreshCacheFromServer(() => {
6648
- resolve(getTagValue());
6649
- });
6647
+ dynamicTags.refreshCacheFromServer(
6648
+ () => {
6649
+ resolve(getTagValue());
6650
+ },
6651
+ { disableCache: true }
6652
+ );
6650
6653
  });
6651
6654
  }
6652
6655