@xuda.io/runtime-bundle 1.0.975 → 1.0.976

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.
@@ -31390,7 +31390,7 @@ func.UI.screen.refresh_xu_attributes = async function (SESSION_ID, fields_arr, j
31390
31390
  if (attr === 'xu-exp:xu-for' || attr === 'xu-for') {
31391
31391
  if (val?.includes(field_id)) {
31392
31392
  const parent_element_ui_id = node_id;
31393
-
31393
+ debugger;
31394
31394
  let _$elem = $(`[xu-ui-id^=${parent_element_ui_id}]`);
31395
31395
 
31396
31396
  const _elem_key = parent_element_ui_id;
@@ -33162,21 +33162,26 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
33162
33162
  // } else {
33163
33163
  // $div = $(`<${div} ${attr_str ? attr_str : ""}>`);
33164
33164
 
33165
- async function generateHash(str, algorithm = 'SHA-256') {
33166
- // Encode the string as UTF-8
33167
- const msgBuffer = new TextEncoder().encode(str);
33165
+ // async function generateHash(str, algorithm = 'SHA-256') {
33166
+ // // Encode the string as UTF-8
33167
+ // const msgBuffer = new TextEncoder().encode(str);
33168
+
33169
+ // // Hash the string
33170
+ // const hashBuffer = await crypto.subtle.digest(algorithm, msgBuffer);
33168
33171
 
33169
- // Hash the string
33170
- const hashBuffer = await crypto.subtle.digest(algorithm, msgBuffer);
33172
+ // // Convert to hex string
33173
+ // const hashArray = Array.from(new Uint8Array(hashBuffer));
33174
+ // const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
33171
33175
 
33172
- // Convert to hex string
33173
- const hashArray = Array.from(new Uint8Array(hashBuffer));
33174
- const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join('');
33176
+ // return hashHex;
33177
+ // }
33175
33178
 
33176
- return hashHex;
33179
+ function hash32hex(str) {
33180
+ return (hash32(str) >>> 0).toString(16).padStart(8, '0');
33177
33181
  }
33178
33182
 
33179
- const new_ui_id = await generateHash(ui_id);
33183
+ // const new_ui_id = await generateHash(ui_id);
33184
+ const new_ui_id = hash32hex(ui_id);
33180
33185
 
33181
33186
  $div.attr('xu-ui-id', new_ui_id).data({
33182
33187
  xuData: {