@xuda.io/runtime-bundle 1.0.746 → 1.0.748

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.
@@ -13572,7 +13572,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
13572
13572
  items = nodeP.children.map(function (val) {
13573
13573
  return val.xu_tree_id || val.id;
13574
13574
  });
13575
- var currentRecordId = $container.data().xuData.recordid || (_ds ? _ds.currentRecordId : '');
13575
+ var currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
13576
13576
  var xu_id = (glb.screen_num++).toString();
13577
13577
  xu_id = xu_id += '_' + currentRecordId;
13578
13578
 
@@ -14374,16 +14374,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14374
14374
  };
14375
14375
 
14376
14376
  const load_css_style = function () {
14377
- let path = get_path('style.css');
14377
+ const get_css_path = function (resource) {
14378
+ if (_session.worker_type === 'Dev') {
14379
+ return `../../plugins/${plugin_name}/${resource}`;
14380
+ }
14381
+ return `https://${_session.domain}/plugins/${plugin_name}/${plugin.manifest[resource].dist ? 'dist/' : ''}${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
14382
+ };
14383
+ let path = get_css_path('style.css');
14378
14384
  func.utils.load_css_on_demand(path);
14379
14385
  };
14380
14386
 
14381
- const get_path = function (resource) {
14382
- if (_session.worker_type === 'Dev') {
14383
- return `../../plugins/${plugin_name}/${resource}`;
14384
- }
14385
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
14386
- };
14387
14387
  const _plugin = APP_OBJ[_session.app_id]?.app_plugins_purchased?.[plugin_name];
14388
14388
  const index = await func.utils.get_plugin_resource(SESSION_ID, plugin_name, `${_plugin.manifest['index.mjs'].dist ? 'dist/' : ''}index.mjs`);
14389
14389
  const methods = index.methods;
@@ -11282,7 +11282,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
11282
11282
  items = nodeP.children.map(function (val) {
11283
11283
  return val.xu_tree_id || val.id;
11284
11284
  });
11285
- var currentRecordId = $container.data().xuData.recordid || (_ds ? _ds.currentRecordId : '');
11285
+ var currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
11286
11286
  var xu_id = (glb.screen_num++).toString();
11287
11287
  xu_id = xu_id += '_' + currentRecordId;
11288
11288
 
@@ -12084,16 +12084,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12084
12084
  };
12085
12085
 
12086
12086
  const load_css_style = function () {
12087
- let path = get_path('style.css');
12087
+ const get_css_path = function (resource) {
12088
+ if (_session.worker_type === 'Dev') {
12089
+ return `../../plugins/${plugin_name}/${resource}`;
12090
+ }
12091
+ return `https://${_session.domain}/plugins/${plugin_name}/${plugin.manifest[resource].dist ? 'dist/' : ''}${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
12092
+ };
12093
+ let path = get_css_path('style.css');
12088
12094
  func.utils.load_css_on_demand(path);
12089
12095
  };
12090
12096
 
12091
- const get_path = function (resource) {
12092
- if (_session.worker_type === 'Dev') {
12093
- return `../../plugins/${plugin_name}/${resource}`;
12094
- }
12095
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
12096
- };
12097
12097
  const _plugin = APP_OBJ[_session.app_id]?.app_plugins_purchased?.[plugin_name];
12098
12098
  const index = await func.utils.get_plugin_resource(SESSION_ID, plugin_name, `${_plugin.manifest['index.mjs'].dist ? 'dist/' : ''}index.mjs`);
12099
12099
  const methods = index.methods;