mol_dump_lib 0.0.533 → 0.0.535

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/web.mjs CHANGED
@@ -774,12 +774,13 @@ var $;
774
774
  break;
775
775
  }
776
776
  if ($mol_promise_like(result) && !handled.has(result)) {
777
+ handled.add(result);
777
778
  const put = (res) => {
778
779
  if (this.cache === result)
779
780
  this.put(res);
780
781
  return res;
781
782
  };
782
- result = result.then(put, put);
783
+ result = Object.assign(result.then(put, put), { destructor: result.destructor });
783
784
  }
784
785
  }
785
786
  catch (error) {
@@ -790,10 +791,11 @@ var $;
790
791
  result = new Error(String(error), { cause: error });
791
792
  }
792
793
  if ($mol_promise_like(result) && !handled.has(result)) {
793
- result = result.finally(() => {
794
+ handled.add(result);
795
+ result = Object.assign(result.finally(() => {
794
796
  if (this.cache === result)
795
797
  this.absorb();
796
- });
798
+ }), { destructor: result.destructor });
797
799
  }
798
800
  }
799
801
  if ($mol_promise_like(result) && !handled.has(result)) {
@@ -3333,7 +3335,7 @@ var $;
3333
3335
  })($ || ($ = {}));
3334
3336
 
3335
3337
  ;
3336
- ($.$mol_text_code_row) = class $mol_text_code_row extends ($.$mol_paragraph) {
3338
+ ($.$mol_text_code_line) = class $mol_text_code_line extends ($.$mol_paragraph) {
3337
3339
  numb(){
3338
3340
  return 0;
3339
3341
  }
@@ -3387,9 +3389,9 @@ var $;
3387
3389
  return null;
3388
3390
  }
3389
3391
  };
3390
- ($mol_mem(($.$mol_text_code_row.prototype), "Numb"));
3391
- ($mol_mem_key(($.$mol_text_code_row.prototype), "Token"));
3392
- ($mol_mem_key(($.$mol_text_code_row.prototype), "Token_link"));
3392
+ ($mol_mem(($.$mol_text_code_line.prototype), "Numb"));
3393
+ ($mol_mem_key(($.$mol_text_code_line.prototype), "Token"));
3394
+ ($mol_mem_key(($.$mol_text_code_line.prototype), "Token_link"));
3393
3395
 
3394
3396
 
3395
3397
  ;
@@ -3502,7 +3504,7 @@ var $;
3502
3504
  (function ($) {
3503
3505
  var $$;
3504
3506
  (function ($$) {
3505
- class $mol_text_code_row extends $.$mol_text_code_row {
3507
+ class $mol_text_code_line extends $.$mol_text_code_line {
3506
3508
  maximal_width() {
3507
3509
  return this.text().length * this.letter_width();
3508
3510
  }
@@ -3584,29 +3586,29 @@ var $;
3584
3586
  }
3585
3587
  __decorate([
3586
3588
  $mol_mem_key
3587
- ], $mol_text_code_row.prototype, "tokens", null);
3589
+ ], $mol_text_code_line.prototype, "tokens", null);
3588
3590
  __decorate([
3589
3591
  $mol_mem_key
3590
- ], $mol_text_code_row.prototype, "row_content", null);
3592
+ ], $mol_text_code_line.prototype, "row_content", null);
3591
3593
  __decorate([
3592
3594
  $mol_mem_key
3593
- ], $mol_text_code_row.prototype, "token_type", null);
3595
+ ], $mol_text_code_line.prototype, "token_type", null);
3594
3596
  __decorate([
3595
3597
  $mol_mem_key
3596
- ], $mol_text_code_row.prototype, "token_content", null);
3598
+ ], $mol_text_code_line.prototype, "token_content", null);
3597
3599
  __decorate([
3598
3600
  $mol_mem_key
3599
- ], $mol_text_code_row.prototype, "token_text", null);
3601
+ ], $mol_text_code_line.prototype, "token_text", null);
3600
3602
  __decorate([
3601
3603
  $mol_mem_key
3602
- ], $mol_text_code_row.prototype, "token_uri", null);
3604
+ ], $mol_text_code_line.prototype, "token_uri", null);
3603
3605
  __decorate([
3604
3606
  $mol_mem_key
3605
- ], $mol_text_code_row.prototype, "find_pos", null);
3607
+ ], $mol_text_code_line.prototype, "find_pos", null);
3606
3608
  __decorate([
3607
3609
  $mol_mem_key
3608
- ], $mol_text_code_row.prototype, "find_token_pos", null);
3609
- $$.$mol_text_code_row = $mol_text_code_row;
3610
+ ], $mol_text_code_line.prototype, "find_token_pos", null);
3611
+ $$.$mol_text_code_line = $mol_text_code_line;
3610
3612
  })($$ = $.$$ || ($.$$ = {}));
3611
3613
  })($ || ($ = {}));
3612
3614
 
@@ -3617,11 +3619,11 @@ var $;
3617
3619
  var $$;
3618
3620
  (function ($$) {
3619
3621
  const { rem } = $mol_style_unit;
3620
- $mol_style_define($mol_text_code_row, {
3622
+ $mol_style_define($mol_text_code_line, {
3621
3623
  display: 'block',
3622
3624
  position: 'relative',
3623
3625
  font: {
3624
- family: 'inherit',
3626
+ family: 'monospace',
3625
3627
  },
3626
3628
  Numb: {
3627
3629
  textAlign: 'right',
@@ -5229,7 +5231,7 @@ var $;
5229
5231
  return "";
5230
5232
  }
5231
5233
  Row(id){
5232
- const obj = new this.$.$mol_text_code_row();
5234
+ const obj = new this.$.$mol_text_code_line();
5233
5235
  (obj.numb_showed) = () => ((this.sidebar_showed()));
5234
5236
  (obj.numb) = () => ((this.row_numb(id)));
5235
5237
  (obj.text) = () => ((this.row_text(id)));
@@ -5381,6 +5383,11 @@ var $;
5381
5383
  Rows: {
5382
5384
  padding: $mol_gap.text,
5383
5385
  },
5386
+ Row: {
5387
+ font: {
5388
+ family: 'inherit',
5389
+ },
5390
+ },
5384
5391
  Copy: {
5385
5392
  alignSelf: 'flex-start',
5386
5393
  justifySelf: 'flex-start',
@@ -5388,7 +5395,7 @@ var $;
5388
5395
  '@': {
5389
5396
  'mol_text_code_sidebar_showed': {
5390
5397
  true: {
5391
- $mol_text_code_row: {
5398
+ $mol_text_code_line: {
5392
5399
  margin: {
5393
5400
  left: rem(1.75),
5394
5401
  },
package/web.view.tree CHANGED
@@ -31,7 +31,7 @@ $mol_text_code_token_link $mol_text_code_token
31
31
  href <= uri \
32
32
  target \_blank
33
33
 
34
- $mol_text_code_row $mol_paragraph
34
+ $mol_text_code_line $mol_paragraph
35
35
  text \
36
36
  minimal_height 24
37
37
  numb_showed true
@@ -156,7 +156,7 @@ $mol_text_code $mol_stack
156
156
  <= Rows $mol_list
157
157
  render_visible_only <= render_visible_only false
158
158
  rows <= rows /
159
- <= Row*0 $mol_text_code_row
159
+ <= Row*0 $mol_text_code_line
160
160
  numb_showed <= sidebar_showed
161
161
  numb <= row_numb* 0
162
162
  text <= row_text* \