@xuda.io/xuda-worker-bundle-min 1.3.171 → 1.3.172

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.
Files changed (2) hide show
  1. package/index.js +10 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5383,6 +5383,16 @@ func.utils.ws_worker.functions = {
5383
5383
  var SESSION_ID = params.session_id;
5384
5384
  SESSION_OBJ[SESSION_ID].DS_GLB[0] = params.ds_data;
5385
5385
  },
5386
+ return_doc_from_studio: function (params) {
5387
+ var SESSION_ID = params.session_id;
5388
+ function emitCustomEvent(eventName, detail) {
5389
+ const event = new CustomEvent(eventName, { detail });
5390
+ self.dispatchEvent(event);
5391
+ }
5392
+ emitCustomEvent("live_preview_get_obj_response_" + params.data._id, {
5393
+ data: params.data,
5394
+ });
5395
+ },
5386
5396
  };
5387
5397
 
5388
5398
  func.utils.set_callback_queue = function (SESSION_ID, func) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.171",
3
+ "version": "1.3.172",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {