@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.
@@ -33241,7 +33241,7 @@ func.UI.screen.create_container = function (SESSION_ID, $root_container, nodeP,
33241
33241
  items = nodeP.children.map(function (val) {
33242
33242
  return val.xu_tree_id || val.id;
33243
33243
  });
33244
- var currentRecordId = $container.data().xuData.recordid || (_ds ? _ds.currentRecordId : '');
33244
+ var currentRecordId = $container?.data?.()?.xuData?.recordid || (_ds ? _ds.currentRecordId : '');
33245
33245
  var xu_id = (glb.screen_num++).toString();
33246
33246
  xu_id = xu_id += '_' + currentRecordId;
33247
33247
 
@@ -34043,16 +34043,16 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34043
34043
  };
34044
34044
 
34045
34045
  const load_css_style = function () {
34046
- let path = get_path('style.css');
34046
+ const get_css_path = function (resource) {
34047
+ if (_session.worker_type === 'Dev') {
34048
+ return `../../plugins/${plugin_name}/${resource}`;
34049
+ }
34050
+ return `https://${_session.domain}/plugins/${plugin_name}/${plugin.manifest[resource].dist ? 'dist/' : ''}${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
34051
+ };
34052
+ let path = get_css_path('style.css');
34047
34053
  func.utils.load_css_on_demand(path);
34048
34054
  };
34049
34055
 
34050
- const get_path = function (resource) {
34051
- if (_session.worker_type === 'Dev') {
34052
- return `../../plugins/${plugin_name}/${resource}`;
34053
- }
34054
- return `https://${_session.domain}/plugins/${plugin_name}/${resource}?gtp_token=${_session.gtp_token}&app_id=${_session.app_id}`;
34055
- };
34056
34056
  const _plugin = APP_OBJ[_session.app_id]?.app_plugins_purchased?.[plugin_name];
34057
34057
  const index = await func.utils.get_plugin_resource(SESSION_ID, plugin_name, `${_plugin.manifest['index.mjs'].dist ? 'dist/' : ''}index.mjs`);
34058
34058
  const methods = index.methods;