mol_dump_lib 0.0.602 → 0.0.604

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
@@ -1954,6 +1954,38 @@ var $;
1954
1954
  $.$mol_style_attach = $mol_style_attach;
1955
1955
  })($ || ($ = {}));
1956
1956
 
1957
+ ;
1958
+ "use strict";
1959
+ var $;
1960
+ (function ($) {
1961
+ class $mol_promise extends Promise {
1962
+ done;
1963
+ fail;
1964
+ constructor(executor) {
1965
+ let done;
1966
+ let fail;
1967
+ super((d, f) => {
1968
+ done = d;
1969
+ fail = f;
1970
+ executor?.(d, f);
1971
+ });
1972
+ this.done = done;
1973
+ this.fail = fail;
1974
+ }
1975
+ }
1976
+ $.$mol_promise = $mol_promise;
1977
+ })($ || ($ = {}));
1978
+
1979
+ ;
1980
+ "use strict";
1981
+ var $;
1982
+ (function ($) {
1983
+ class $mol_promise_blocker extends $mol_promise {
1984
+ static [Symbol.toStringTag] = '$mol_promise_blocker';
1985
+ }
1986
+ $.$mol_promise_blocker = $mol_promise_blocker;
1987
+ })($ || ($ = {}));
1988
+
1957
1989
  ;
1958
1990
  "use strict";
1959
1991
  var $;
@@ -2329,7 +2361,9 @@ var $;
2329
2361
  }
2330
2362
  catch (error) {
2331
2363
  $mol_fail_log(error);
2332
- const mol_view_error = $mol_promise_like(error) ? 'Promise' : error.name || error.constructor.name;
2364
+ const mol_view_error = $mol_promise_like(error)
2365
+ ? error.constructor[Symbol.toStringTag] ?? 'Promise'
2366
+ : error.name || error.constructor.name;
2333
2367
  $mol_dom_render_attributes(node, { mol_view_error });
2334
2368
  if ($mol_promise_like(error))
2335
2369
  break render;
@@ -2602,7 +2636,7 @@ var $;
2602
2636
  "use strict";
2603
2637
  var $;
2604
2638
  (function ($) {
2605
- $mol_style_attach("mol/view/view/view.css", "[mol_view] {\n\ttransition-property: height, width, min-height, min-width, max-width, max-height, transform;\n\ttransition-duration: .2s;\n\ttransition-timing-function: ease-out;\n\t-webkit-appearance: none;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tcontain: style;\n\tscrollbar-color: var(--mol_theme_line) transparent;\n\tscrollbar-width: thin;\n}\t\n\n[mol_view]::selection {\n\tbackground: var(--mol_theme_line);\n}\t\n\n[mol_view]::-webkit-scrollbar {\n\twidth: .25rem;\n\theight: .25rem;\n}\n\n[mol_view]::-webkit-scrollbar-corner {\n\tbackground-color: var(--mol_theme_line);\n}\n\n[mol_view]::-webkit-scrollbar-track {\n\tbackground-color: transparent;\n}\n\n[mol_view]::-webkit-scrollbar-thumb {\n\tbackground-color: var(--mol_theme_line);\n\tborder-radius: var(--mol_gap_round);\n}\n\n[mol_view] > * {\n\tword-break: inherit;\n}\n\n[mol_view_root] {\n\tmargin: 0;\n\tpadding: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: border-box;\n\tfont-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n\tfont-size: 1rem;\n\tline-height: 1.5rem;\n\tbackground: var(--mol_theme_back);\n\tcolor: var(--mol_theme_text);\n\tcontain: unset; /** Fixes bg ignoring when applied to body on Chrome */\n\ttab-size: 4;\n\toverscroll-behavior: contain; /** Disable navigation gestures **/\n}\n\n@media print {\n\t[mol_view_root] {\n\t\theight: auto;\n\t}\n}\n\n[mol_view][mol_view_error]:not([mol_view_error=\"Promise\"]) {\n\tbackground-image: repeating-linear-gradient(\n\t\t-45deg,\n\t\t#f92323,\n\t\t#f92323 .5rem,\n\t\t#ff3d3d .5rem,\n\t\t#ff3d3d 1.5rem\n\t);\n\tcolor: black;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n@keyframes mol_view_wait {\n\tfrom {\n\t\topacity: .25;\n\t}\n\t20% {\n\t\topacity: .75;\n\t}\n\tto {\n\t\topacity: .25;\n\t}\n}\n\n:where([mol_view][mol_view_error=\"Promise\"]) {\n\tbackground: var(--mol_theme_hover);\n}\n\n[mol_view][mol_view_error=\"Promise\"] {\n\tanimation: mol_view_wait 1s steps(20,end) infinite;\n}\n");
2639
+ $mol_style_attach("mol/view/view/view.css", "[mol_view] {\n\ttransition-property: height, width, min-height, min-width, max-width, max-height, transform;\n\ttransition-duration: .2s;\n\ttransition-timing-function: ease-out;\n\t-webkit-appearance: none;\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tcontain: style;\n\tscrollbar-color: var(--mol_theme_line) transparent;\n\tscrollbar-width: thin;\n}\t\n\n[mol_view]::selection {\n\tbackground: var(--mol_theme_line);\n}\t\n\n[mol_view]::-webkit-scrollbar {\n\twidth: .25rem;\n\theight: .25rem;\n}\n\n[mol_view]::-webkit-scrollbar-corner {\n\tbackground-color: var(--mol_theme_line);\n}\n\n[mol_view]::-webkit-scrollbar-track {\n\tbackground-color: transparent;\n}\n\n[mol_view]::-webkit-scrollbar-thumb {\n\tbackground-color: var(--mol_theme_line);\n\tborder-radius: var(--mol_gap_round);\n}\n\n[mol_view] > * {\n\tword-break: inherit;\n}\n\n[mol_view_root] {\n\tmargin: 0;\n\tpadding: 0;\n\twidth: 100%;\n\theight: 100%;\n\tbox-sizing: border-box;\n\tfont-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n\tfont-size: 1rem;\n\tline-height: 1.5rem;\n\tbackground: var(--mol_theme_back);\n\tcolor: var(--mol_theme_text);\n\tcontain: unset; /** Fixes bg ignoring when applied to body on Chrome */\n\ttab-size: 4;\n\toverscroll-behavior: contain; /** Disable navigation gestures **/\n}\n\n@media print {\n\t[mol_view_root] {\n\t\theight: auto;\n\t}\n}\n[mol_view][mol_view_error]:not([mol_view_error=\"Promise\"], [mol_view_error=\"$mol_promise_blocker\"]) {\n\tbackground-image: repeating-linear-gradient(\n\t\t-45deg,\n\t\t#f92323,\n\t\t#f92323 .5rem,\n\t\t#ff3d3d .5rem,\n\t\t#ff3d3d 1.5rem\n\t);\n\tcolor: black;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n@keyframes mol_view_wait {\n\tfrom {\n\t\topacity: .25;\n\t}\n\t20% {\n\t\topacity: .75;\n\t}\n\tto {\n\t\topacity: .25;\n\t}\n}\n\n:where([mol_view][mol_view_error=\"$mol_promise_blocker\"]),\n:where([mol_view][mol_view_error=\"Promise\"]) {\n\tbackground: var(--mol_theme_hover);\n}\n\n[mol_view][mol_view_error=\"Promise\"] {\n\tanimation: mol_view_wait 1s steps(20,end) infinite;\n}\n");
2606
2640
  })($ || ($ = {}));
2607
2641
 
2608
2642
  ;
package/web.test.js CHANGED
@@ -1187,25 +1187,6 @@ var $;
1187
1187
  ;
1188
1188
  "use strict";
1189
1189
 
1190
- ;
1191
- "use strict";
1192
- var $;
1193
- (function ($) {
1194
- function $mol_promise() {
1195
- let done;
1196
- let fail;
1197
- const promise = new Promise((d, f) => {
1198
- done = d;
1199
- fail = f;
1200
- });
1201
- return Object.assign(promise, {
1202
- done,
1203
- fail,
1204
- });
1205
- }
1206
- $.$mol_promise = $mol_promise;
1207
- })($ || ($ = {}));
1208
-
1209
1190
  ;
1210
1191
  "use strict";
1211
1192
  var $;
@@ -1388,7 +1369,7 @@ var $;
1388
1369
  var $;
1389
1370
  (function ($) {
1390
1371
  function $mol_wait_timeout_async(timeout) {
1391
- const promise = $mol_promise();
1372
+ const promise = new $mol_promise();
1392
1373
  const task = new this.$mol_after_timeout(timeout, () => promise.done());
1393
1374
  return Object.assign(promise, {
1394
1375
  destructor: () => task.destructor()