@cesdk/engine 1.35.0-rc.1 → 1.36.0-rc.0

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/index.d.ts CHANGED
@@ -2834,6 +2834,14 @@ export declare class BlockAPI {
2834
2834
  * @returns Subscription A handle to the subscription. Use it to unsubscribe when done.
2835
2835
  */
2836
2836
  onStateChanged: (ids: DesignBlockId[], callback: (ids: DesignBlockId[]) => void) => (() => void);
2837
+ /**
2838
+ * Begins loading the resources of the given blocks and their children.
2839
+ * This function is useful for preloading resources before they are needed.
2840
+ * @param ids - The blocks whose resources should be loaded. The given blocks don't require to have resources and
2841
+ * can have children blocks (e.g. a scene block or a page block).
2842
+ * @returns A Promise that resolves once the resources have finished loading.
2843
+ */
2844
+ forceLoadResources(ids: DesignBlockId[]): Promise<void>;
2837
2845
  }
2838
2846
 
2839
2847
  /** @public */
@@ -3210,6 +3218,7 @@ export declare class EditorAPI {
3210
3218
 
3211
3219
 
3212
3220
 
3221
+
3213
3222
  /**
3214
3223
  * Subscribe to changes to the editor state.
3215
3224
  * @param callback - This function is called at the end of the engine update, if the editor state has changed.
@@ -3229,6 +3238,11 @@ export declare class EditorAPI {
3229
3238
  * @returns "Transform", "Crop", "Text", "Playback", "Trim" or a custom value.
3230
3239
  */
3231
3240
  getEditMode(): EditMode;
3241
+ /**
3242
+ * If an user interaction is happening, e.g., a resize edit with a drag handle or a touch gesture.
3243
+ * @returns True if an interaction is happening.
3244
+ */
3245
+ unstable_isInteractionHappening(): boolean;
3232
3246
  /**
3233
3247
  * Get the type of cursor that should be displayed by the application.
3234
3248
  * @returns The cursor type.