@jsenv/core 24.6.2 → 25.0.0-alpha.0

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.
Files changed (57) hide show
  1. package/dist/browser_runtime/asset-manifest.json +2 -1
  2. package/dist/browser_runtime/{browser_runtime-c7288751.js → browser_runtime_a8097085.js} +37 -27
  3. package/dist/browser_runtime/{browser_runtime-c7288751.js.map → browser_runtime_a8097085.js.map} +3 -3
  4. package/dist/build_manifest.js +6 -6
  5. package/dist/compile_proxy/asset-manifest.json +2 -1
  6. package/dist/compile_proxy/{compile_proxy-a3969633.html → compile_proxy_e16d7de8.html} +39 -34
  7. package/dist/compile_proxy/{compile_proxy.html__inline__20-9c92c170.js.map → compile_proxy_e3b0c442_9e168143.js.map} +3 -2
  8. package/dist/event_source_client/asset-manifest.json +2 -1
  9. package/dist/event_source_client/{event_source_client-9f14c8b9.js → event_source_client_620fbc2c.js} +1 -1
  10. package/dist/event_source_client/{event_source_client-9f14c8b9.js.map → event_source_client_620fbc2c.js.map} +1 -1
  11. package/dist/redirector/asset-manifest.json +2 -1
  12. package/dist/redirector/{redirector-a6b8d640.html → redirector_2e0c8abe.html} +39 -34
  13. package/dist/redirector/{redirector.html__inline__15-58430672.js.map → redirector_e3b0c442_3a34a156.js.map} +3 -2
  14. package/dist/toolbar/asset-manifest.json +11 -10
  15. package/dist/toolbar/assets/{compilation.css-209d68b4.map → compilation.css_e37c747b.map} +1 -1
  16. package/dist/toolbar/assets/{eventsource.css-38cd0a36.map → eventsource.css_c0c71e7b.map} +1 -1
  17. package/dist/toolbar/assets/{execution.css-0ebe522f.map → execution.css_f3377c10.map} +1 -1
  18. package/dist/toolbar/assets/{focus.css-3f9c156d.map → focus.css_896f3e45.map} +1 -1
  19. package/dist/toolbar/assets/{light-theme.css-78b19a80.map → light-theme.css_72a60fa3.map} +1 -1
  20. package/dist/toolbar/assets/{overflow-menu.css-d9688a1c.map → overflow-menu.css_2859d519.map} +1 -1
  21. package/dist/toolbar/assets/{settings.css-2b81b245.map → settings.css_61548139.map} +1 -1
  22. package/dist/toolbar/assets/{toolbar.main.css-846920e9.map → toolbar.main.css_269d7ce2.map} +9 -9
  23. package/dist/toolbar/assets/{tooltip.css-03395ee6.map → tooltip.css_a94a8bdd.map} +1 -1
  24. package/dist/toolbar/{toolbar.main-7aa01366.js.map → toolbar.main_a5ef2c60.js.map} +3 -2
  25. package/dist/toolbar/{toolbar-84985f43.html → toolbar_412abb83.html} +87 -64
  26. package/dist/toolbar_injector/asset-manifest.json +3 -2
  27. package/dist/toolbar_injector/assets/{jsenv-logo-188b9ca6.svg → jsenv-logo_188b9ca6.svg} +0 -0
  28. package/dist/toolbar_injector/{toolbar_injector-8edcae04.js → toolbar_injector_4f9c19e5.js} +17 -17
  29. package/dist/toolbar_injector/{toolbar_injector-8edcae04.js.map → toolbar_injector_4f9c19e5.js.map} +4 -4
  30. package/package.json +5 -4
  31. package/readme.md +12 -22
  32. package/src/buildProject.js +21 -21
  33. package/src/dev_server.js +6 -2
  34. package/src/internal/building/buildUsingRollup.js +24 -18
  35. package/src/internal/building/build_logs.js +2 -2
  36. package/src/internal/building/build_stats.js +11 -1
  37. package/src/internal/building/html/parseHtmlRessource.js +2 -26
  38. package/src/internal/building/js/parseJsRessource.js +3 -2
  39. package/src/internal/building/json_module.js +11 -0
  40. package/src/internal/building/parseRessource.js +1 -1
  41. package/src/internal/building/ressource_builder.js +216 -215
  42. package/src/internal/building/rollup_plugin_jsenv.js +522 -354
  43. package/src/internal/building/url_loader.js +8 -142
  44. package/src/internal/building/url_versioning.js +226 -0
  45. package/src/internal/compiling/compileHtml.js +8 -1
  46. package/src/internal/compiling/createCompiledFileService.js +7 -7
  47. package/src/internal/compiling/js-compilation-service/jsenvTransform.js +9 -55
  48. package/src/internal/compiling/js-compilation-service/transformJs.js +8 -5
  49. package/src/internal/compiling/jsenvCompilerForHtml.js +4 -4
  50. package/src/internal/compiling/jsenvCompilerForJavaScript.js +2 -2
  51. package/src/internal/compiling/startCompileServer.js +2 -2
  52. package/src/jsenvServiceWorkerFinalizer.js +7 -8
  53. package/src/internal/building/asset_url_versioning.js +0 -50
  54. package/src/internal/building/rollup_build_sourcemap.js +0 -54
  55. package/src/internal/building/url-versioning.js +0 -96
  56. package/src/internal/compiling/js-compilation-service/findAsyncPluginNameInBabelPluginMap.js +0 -9
  57. package/src/internal/renderNamePattern.js +0 -6
@@ -790,7 +790,7 @@ html[data-toolbar-visible] #toolbar-trigger {
790
790
  color: inherit;
791
791
  }
792
792
 
793
- /*# sourceMappingURL=assets/toolbar.main.css-846920e9.map */</style>
793
+ /*# sourceMappingURL=assets/toolbar.main.css_269d7ce2.map */</style>
794
794
  <script id="jsenv_inject_systemjs">/*
795
795
  * SJS 6.11.0
796
796
  * Minimal SystemJS Build
@@ -1906,20 +1906,18 @@ html[data-toolbar-visible] #toolbar-trigger {
1906
1906
  -->
1907
1907
  <script type="systemjs-importmap">
1908
1908
  {
1909
- "imports": {
1910
- "./toolbar.main.js": "./toolbar.main-7aa01366.js"
1911
- }
1909
+ "imports": {}
1912
1910
  }</script>
1913
1911
  <script>
1914
1912
  // here we should create something like window.toolbar = {}
1915
1913
  // and a promise the toolbar injector can listen to act on the toolbar
1916
1914
  // or we could just consider all communication should pass by postmessage
1917
1915
  </script>
1918
- <script>System.register([], (function () {
1916
+ <script>System.register([], function () {
1919
1917
  'use strict';
1920
- return {
1921
- execute: (function () {
1922
1918
 
1919
+ return {
1920
+ execute: function () {
1923
1921
  /* eslint-disable no-eq-null, eqeqeq */
1924
1922
  function arrayLikeToArray(arr, len) {
1925
1923
  if (len == null || len > arr.length) len = arr.length;
@@ -1932,15 +1930,16 @@ html[data-toolbar-visible] #toolbar-trigger {
1932
1930
  return arr2;
1933
1931
  }
1934
1932
 
1935
- var arrayWithoutHoles = (function (arr) {
1933
+ var arrayWithoutHoles = function (arr) {
1936
1934
  if (Array.isArray(arr)) return arrayLikeToArray(arr);
1937
- });
1935
+ };
1938
1936
 
1939
1937
  function _iterableToArray(iter) {
1940
1938
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1941
1939
  }
1942
-
1943
1940
  /* eslint-disable consistent-return */
1941
+
1942
+
1944
1943
  function unsupportedIterableToArray(o, minLen) {
1945
1944
  if (!o) return;
1946
1945
  if (typeof o === "string") return arrayLikeToArray(o, minLen);
@@ -1950,13 +1949,13 @@ html[data-toolbar-visible] #toolbar-trigger {
1950
1949
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
1951
1950
  }
1952
1951
 
1953
- var nonIterableSpread = (function () {
1952
+ var nonIterableSpread = function () {
1954
1953
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1955
- });
1954
+ };
1956
1955
 
1957
- var _toConsumableArray = (function (arr) {
1956
+ var _toConsumableArray = function (arr) {
1958
1957
  return arrayWithoutHoles(arr) || _iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
1959
- });
1958
+ };
1960
1959
 
1961
1960
  var nativeTypeOf = function nativeTypeOf(obj) {
1962
1961
  return typeof obj;
@@ -2089,7 +2088,7 @@ html[data-toolbar-visible] #toolbar-trigger {
2089
2088
  return relativeUrl;
2090
2089
  };
2091
2090
 
2092
- var _defineProperty = (function (obj, key, value) {
2091
+ var _defineProperty = function (obj, key, value) {
2093
2092
  // Shortcircuit the slow defineProperty path when possible.
2094
2093
  // We are trying to avoid issues where setters defined on the
2095
2094
  // prototype cause side effects under the fast path of simple
@@ -2107,7 +2106,7 @@ html[data-toolbar-visible] #toolbar-trigger {
2107
2106
  }
2108
2107
 
2109
2108
  return obj;
2110
- });
2109
+ };
2111
2110
 
2112
2111
  function ownKeys(object, enumerableOnly) {
2113
2112
  var keys = Object.keys(object);
@@ -2147,7 +2146,7 @@ html[data-toolbar-visible] #toolbar-trigger {
2147
2146
  return target;
2148
2147
  }
2149
2148
 
2150
- var objectWithoutPropertiesLoose = (function (source, excluded) {
2149
+ var objectWithoutPropertiesLoose = function (source, excluded) {
2151
2150
  if (source === null) return {};
2152
2151
  var target = {};
2153
2152
  var sourceKeys = Object.keys(source);
@@ -2161,9 +2160,9 @@ html[data-toolbar-visible] #toolbar-trigger {
2161
2160
  }
2162
2161
 
2163
2162
  return target;
2164
- });
2163
+ };
2165
2164
 
2166
- var _objectWithoutProperties = (function (source, excluded) {
2165
+ var _objectWithoutProperties = function (source, excluded) {
2167
2166
  if (source === null) return {};
2168
2167
  var target = objectWithoutPropertiesLoose(source, excluded);
2169
2168
  var key;
@@ -2181,9 +2180,10 @@ html[data-toolbar-visible] #toolbar-trigger {
2181
2180
  }
2182
2181
 
2183
2182
  return target;
2184
- });
2185
-
2183
+ };
2186
2184
  /* eslint-env browser */
2185
+
2186
+
2187
2187
  function _await$5(value, then, direct) {
2188
2188
  if (direct) {
2189
2189
  return then ? then(value) : value;
@@ -2632,6 +2632,20 @@ html[data-toolbar-visible] #toolbar-trigger {
2632
2632
  return then ? value.then(then) : value;
2633
2633
  }
2634
2634
 
2635
+ function _async$5(f) {
2636
+ return function () {
2637
+ for (var args = [], i = 0; i < arguments.length; i++) {
2638
+ args[i] = arguments[i];
2639
+ }
2640
+
2641
+ try {
2642
+ return Promise.resolve(f.apply(this, args));
2643
+ } catch (e) {
2644
+ return Promise.reject(e);
2645
+ }
2646
+ };
2647
+ }
2648
+
2635
2649
  var fetchNative = _async$5(function (url) {
2636
2650
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2637
2651
 
@@ -2666,20 +2680,6 @@ html[data-toolbar-visible] #toolbar-trigger {
2666
2680
  });
2667
2681
  });
2668
2682
 
2669
- function _async$5(f) {
2670
- return function () {
2671
- for (var args = [], i = 0; i < arguments.length; i++) {
2672
- args[i] = arguments[i];
2673
- }
2674
-
2675
- try {
2676
- return Promise.resolve(f.apply(this, args));
2677
- } catch (e) {
2678
- return Promise.reject(e);
2679
- }
2680
- };
2681
- }
2682
-
2683
2683
  var responseToHeaders = function responseToHeaders(response) {
2684
2684
  var headers = {};
2685
2685
  response.headers.forEach(function (value, name) {
@@ -2795,6 +2795,7 @@ html[data-toolbar-visible] #toolbar-trigger {
2795
2795
  disableIframeOverflowOnParentWindow();
2796
2796
  }
2797
2797
  };
2798
+
2798
2799
  var iframeOverflowEnabled = false;
2799
2800
 
2800
2801
  var enableIframeOverflowOnParentWindow = function enableIframeOverflowOnParentWindow() {
@@ -2841,12 +2842,15 @@ html[data-toolbar-visible] #toolbar-trigger {
2841
2842
  return iframe.contentWindow === window;
2842
2843
  });
2843
2844
  };
2845
+
2844
2846
  var forceHideElement = function forceHideElement(element) {
2845
2847
  element.setAttribute("data-force-hide", "");
2846
2848
  };
2849
+
2847
2850
  var removeForceHideElement = function removeForceHideElement(element) {
2848
2851
  element.removeAttribute("data-force-hide");
2849
2852
  };
2853
+
2850
2854
  var setStyles = function setStyles(element, styles) {
2851
2855
  var elementStyle = element.style;
2852
2856
  var restoreStyles = Object.keys(styles).map(function (styleName) {
@@ -2873,12 +2877,15 @@ html[data-toolbar-visible] #toolbar-trigger {
2873
2877
  });
2874
2878
  };
2875
2879
  };
2880
+
2876
2881
  var toolbarSectionIsActive = function toolbarSectionIsActive(element) {
2877
2882
  return element.hasAttribute("data-active");
2878
2883
  };
2884
+
2879
2885
  var activateToolbarSection = function activateToolbarSection(element) {
2880
2886
  element.setAttribute("data-active", "");
2881
2887
  };
2888
+
2882
2889
  var deactivateToolbarSection = function deactivateToolbarSection(element) {
2883
2890
  element.removeAttribute("data-active");
2884
2891
  };
@@ -2946,9 +2953,9 @@ html[data-toolbar-visible] #toolbar-trigger {
2946
2953
  };
2947
2954
 
2948
2955
  return stop;
2949
- };
2956
+ }; // handle data-last-interaction attr on html (focusring)
2957
+
2950
2958
 
2951
- // handle data-last-interaction attr on html (focusring)
2952
2959
  window.addEventListener("mousedown", function (mousedownEvent) {
2953
2960
  if (mousedownEvent.defaultPrevented) {
2954
2961
  return;
@@ -2992,23 +2999,28 @@ html[data-toolbar-visible] #toolbar-trigger {
2992
2999
  showTooltip(element);
2993
3000
  }
2994
3001
  };
3002
+
2995
3003
  var hideTooltip = function hideTooltip(element) {
2996
3004
  element.removeAttribute("data-tooltip-visible");
2997
3005
  element.removeAttribute("data-tooltip-auto-visible");
2998
3006
  updateIframeOverflowOnParentWindow();
2999
3007
  };
3008
+
3000
3009
  var showTooltip = function showTooltip(element) {
3001
3010
  element.setAttribute("data-tooltip-visible", "");
3002
3011
  updateIframeOverflowOnParentWindow();
3003
3012
  };
3013
+
3004
3014
  var autoShowTooltip = function autoShowTooltip(element) {
3005
3015
  element.setAttribute("data-tooltip-auto-visible", "");
3006
3016
  updateIframeOverflowOnParentWindow();
3007
3017
  };
3018
+
3008
3019
  var removeAutoShowTooltip = function removeAutoShowTooltip(element) {
3009
3020
  element.removeAttribute("data-tooltip-auto-visible");
3010
3021
  updateIframeOverflowOnParentWindow();
3011
3022
  };
3023
+
3012
3024
  var hideAllTooltip = function hideAllTooltip() {
3013
3025
  var elementsWithTooltip = Array.from(document.querySelectorAll("[data-tooltip-visible]"));
3014
3026
  elementsWithTooltip.forEach(function (elementWithTooltip) {
@@ -3032,10 +3044,12 @@ html[data-toolbar-visible] #toolbar-trigger {
3032
3044
  var settingsAreVisible = function settingsAreVisible() {
3033
3045
  return toolbarSectionIsActive(document.querySelector("#settings"));
3034
3046
  };
3047
+
3035
3048
  var hideSettings = function hideSettings() {
3036
3049
  deactivateToolbarSection(document.querySelector("#settings"));
3037
3050
  updateIframeOverflowOnParentWindow();
3038
3051
  };
3052
+
3039
3053
  var showSettings = function showSettings() {
3040
3054
  activateToolbarSection(document.querySelector("#settings"));
3041
3055
  updateIframeOverflowOnParentWindow();
@@ -3108,18 +3122,6 @@ html[data-toolbar-visible] #toolbar-trigger {
3108
3122
 
3109
3123
  var _excluded = ["clickToFocus", "clickToClose"];
3110
3124
 
3111
- function _await$1(value, then, direct) {
3112
- if (direct) {
3113
- return then ? then(value) : value;
3114
- }
3115
-
3116
- if (!value || !value.then) {
3117
- value = Promise.resolve(value);
3118
- }
3119
-
3120
- return then ? value.then(then) : value;
3121
- }
3122
-
3123
3125
  function _async$2(f) {
3124
3126
  return function () {
3125
3127
  for (var args = [], i = 0; i < arguments.length; i++) {
@@ -3134,9 +3136,22 @@ html[data-toolbar-visible] #toolbar-trigger {
3134
3136
  };
3135
3137
  }
3136
3138
 
3139
+ function _await$1(value, then, direct) {
3140
+ if (direct) {
3141
+ return then ? then(value) : value;
3142
+ }
3143
+
3144
+ if (!value || !value.then) {
3145
+ value = Promise.resolve(value);
3146
+ }
3147
+
3148
+ return then ? value.then(then) : value;
3149
+ }
3150
+
3137
3151
  var notificationAvailable = typeof window.Notification === "function";
3138
3152
  var notificationPreference = createPreference("notification");
3139
3153
  var arrayOfOpenedNotifications = [];
3154
+
3140
3155
  var renderToolbarNotification = function renderToolbarNotification() {
3141
3156
  var notifCheckbox = document.querySelector("#toggle-notifs");
3142
3157
 
@@ -3189,6 +3204,7 @@ html[data-toolbar-visible] #toolbar-trigger {
3189
3204
 
3190
3205
  updatePermission();
3191
3206
  };
3207
+
3192
3208
  var notifyExecutionResult = function notifyExecutionResult(executedFileRelativeUrl, execution, previousExecution) {
3193
3209
  var notificationEnabled = getNotificationPreference();
3194
3210
  if (!notificationEnabled) return;
@@ -3287,10 +3303,10 @@ html[data-toolbar-visible] #toolbar-trigger {
3287
3303
  }) : function () {
3288
3304
  return Promise.resolve("default");
3289
3305
  };
3290
-
3291
3306
  var DARK_THEME = "dark";
3292
3307
  var LIGHT_THEME = "light";
3293
3308
  var themePreference = createPreference("theme");
3309
+
3294
3310
  var renderToolbarTheme = function renderToolbarTheme() {
3295
3311
  var theme = getThemePreference();
3296
3312
  var checkbox = document.querySelector("#checkbox-dark-theme");
@@ -3322,6 +3338,7 @@ html[data-toolbar-visible] #toolbar-trigger {
3322
3338
  };
3323
3339
 
3324
3340
  var animationPreference = createPreference("animation");
3341
+
3325
3342
  var renderToolbarAnimation = function renderToolbarAnimation() {
3326
3343
  var animCheckbox = document.querySelector("#toggle-anims");
3327
3344
  animCheckbox.checked = getAnimationPreference();
@@ -3496,10 +3513,12 @@ html[data-toolbar-visible] #toolbar-trigger {
3496
3513
  // },
3497
3514
  // })
3498
3515
 
3516
+
3499
3517
  var WINDOW_MEDIUM_WIDTH = 570;
3518
+
3500
3519
  var renderExecutionInToolbar = function renderExecutionInToolbar(_ref) {
3501
- var executedFileRelativeUrl = _ref.executedFileRelativeUrl;
3502
- // reset file execution indicator ui
3520
+ var executedFileRelativeUrl = _ref.executedFileRelativeUrl; // reset file execution indicator ui
3521
+
3503
3522
  applyExecutionIndicator();
3504
3523
  removeForceHideElement(document.querySelector("#execution-indicator")); // apply responsive design on fileInput if needed + add listener on resize screen
3505
3524
 
@@ -3753,12 +3772,13 @@ html[data-toolbar-visible] #toolbar-trigger {
3753
3772
  return highestVersion === version;
3754
3773
  });
3755
3774
  };
3756
-
3757
3775
  /*
3758
3776
  * Prefer window.navigator.userAgentData before resorting to
3759
3777
  * window.navigator.userAgent because of
3760
3778
  * https://blog.chromium.org/2021/09/user-agent-reduction-origin-trial-and-dates.html
3761
3779
  */
3780
+
3781
+
3762
3782
  var detectFromUserAgentData = function detectFromUserAgentData() {
3763
3783
  var userAgentData = window.navigator.userAgentData;
3764
3784
 
@@ -3790,10 +3810,12 @@ html[data-toolbar-visible] #toolbar-trigger {
3790
3810
  var match = string.match(regexp);
3791
3811
  return match && match.length > 0 ? match[1] || undefined : undefined;
3792
3812
  };
3813
+
3793
3814
  var secondMatch = function secondMatch(regexp, string) {
3794
3815
  var match = string.match(regexp);
3795
3816
  return match && match.length > 1 ? match[2] || undefined : undefined;
3796
3817
  };
3818
+
3797
3819
  var userAgentToVersion = function userAgentToVersion(userAgent) {
3798
3820
  return firstMatch(/version\/(\d+(\.?_?\d+)+)/i, userAgent) || undefined;
3799
3821
  };
@@ -3926,6 +3948,7 @@ html[data-toolbar-visible] #toolbar-trigger {
3926
3948
  return null;
3927
3949
  }; // TODO
3928
3950
 
3951
+
3929
3952
  var detectIOS = function detectIOS() {
3930
3953
  return navigatorToBrowser(window.navigator);
3931
3954
  };
@@ -3949,9 +3972,8 @@ html[data-toolbar-visible] #toolbar-trigger {
3949
3972
  }
3950
3973
 
3951
3974
  return null;
3952
- };
3975
+ }; // https://github.com/Ahmdrza/detect-browser/blob/26254f85cf92795655a983bfd759d85f3de850c6/detect-browser.js#L1
3953
3976
 
3954
- // https://github.com/Ahmdrza/detect-browser/blob/26254f85cf92795655a983bfd759d85f3de850c6/detect-browser.js#L1
3955
3977
 
3956
3978
  var detectorCompose = function detectorCompose(detectors) {
3957
3979
  return function () {
@@ -3974,6 +3996,7 @@ html[data-toolbar-visible] #toolbar-trigger {
3974
3996
 
3975
3997
  var detector = detectorCompose([detectFromUserAgentData, // keep this first
3976
3998
  detectOpera, detectInternetExplorer, detectEdge, detectFirefox, detectChrome, detectSafari, detectElectron, detectIOS, detectAndroid]);
3999
+
3977
4000
  var detectBrowser = function detectBrowser() {
3978
4001
  var _ref = detector() || {},
3979
4002
  _ref$name = _ref.name,
@@ -4170,10 +4193,10 @@ html[data-toolbar-visible] #toolbar-trigger {
4170
4193
  var detectSupportedFeatures = _async$1(function (_ref4) {
4171
4194
  var featuresReport = _ref4.featuresReport,
4172
4195
  failFastOnFeatureDetection = _ref4.failFastOnFeatureDetection,
4173
- inlineImportMapIntoHTML = _ref4.inlineImportMapIntoHTML;
4174
- // start testing importmap support first and not in paralell
4196
+ inlineImportMapIntoHTML = _ref4.inlineImportMapIntoHTML; // start testing importmap support first and not in paralell
4175
4197
  // so that there is not module script loaded beore importmap is injected
4176
4198
  // it would log an error in chrome console and return undefined
4199
+
4177
4200
  return _await(supportsImportmap({
4178
4201
  // chrome supports inline but not remote importmap
4179
4202
  // https://github.com/WICG/import-maps/issues/235
@@ -4327,6 +4350,7 @@ html[data-toolbar-visible] #toolbar-trigger {
4327
4350
  }; // const cssImportAssertions = await supportsCssImportAssertions()
4328
4351
  // console.log({ cssImportAssertions })
4329
4352
 
4353
+
4330
4354
  var renderCompilationInToolbar = function renderCompilationInToolbar(_ref) {
4331
4355
  var compileGroup = _ref.compileGroup;
4332
4356
  var browserSupportRootNode = document.querySelector("#browser_support");
@@ -4454,16 +4478,15 @@ html[data-toolbar-visible] #toolbar-trigger {
4454
4478
  }
4455
4479
 
4456
4480
  var customCompilerCount = customCompilerPatterns.length;
4457
-
4458
- if (customCompilerCount === 0) ; else {
4481
+ if (customCompilerCount === 0) ;else {
4459
4482
  parts.push("".concat(customCompilerCount, " custom compilers enabled: ").concat(customCompilerPatterns));
4460
4483
  }
4461
-
4462
4484
  return "\n- ".concat(parts.join("\n- "));
4463
4485
  };
4464
4486
 
4465
4487
  var livereloadingAvailableOnServer = false;
4466
4488
  var parentEventSourceClient = window.parent.__jsenv_event_source_client__;
4489
+
4467
4490
  var initToolbarEventSource = function initToolbarEventSource(_ref) {
4468
4491
  var livereloading = _ref.livereloading;
4469
4492
  removeForceHideElement(document.querySelector("#eventsource-indicator"));
@@ -4540,6 +4563,7 @@ html[data-toolbar-visible] #toolbar-trigger {
4540
4563
  };
4541
4564
 
4542
4565
  var WINDOW_SMALL_WIDTH = 420;
4566
+
4543
4567
  var makeToolbarResponsive = function makeToolbarResponsive() {
4544
4568
  // apply responsive design on toolbar icons if needed + add listener on resize screen
4545
4569
  // ideally we should listen breakpoint once, for now restore toolbar
@@ -4887,12 +4911,11 @@ html[data-toolbar-visible] #toolbar-trigger {
4887
4911
  hideToolbar();
4888
4912
  });
4889
4913
  sendEventToParent("toolbar_ready");
4890
-
4891
- })
4914
+ }
4892
4915
  };
4893
- }));
4916
+ });
4894
4917
 
4895
- //# sourceMappingURL=toolbar.main-7aa01366.js.map</script>
4918
+ //# sourceMappingURL=toolbar.main_a5ef2c60.js.map</script>
4896
4919
 
4897
4920
 
4898
4921
  </body></html>
@@ -1,4 +1,5 @@
1
1
  {
2
- "assets/jsenv-logo.svg": "assets/jsenv-logo-188b9ca6.svg",
3
- "toolbar_injector.js": "toolbar_injector-8edcae04.js"
2
+ ".jsenv/build/best/src/internal/dev_server/toolbar/jsenv-logo.svg": "assets/jsenv-logo_188b9ca6.svg",
3
+ "toolbar_injector.js": "toolbar_injector_4f9c19e5.js",
4
+ "toolbar_injector.js.map": "toolbar_injector_4f9c19e5.js.map"
4
5
  }
@@ -554,6 +554,20 @@
554
554
  return then ? value.then(then) : value;
555
555
  }
556
556
 
557
+ function _async$3(f) {
558
+ return function () {
559
+ for (var args = [], i = 0; i < arguments.length; i++) {
560
+ args[i] = arguments[i];
561
+ }
562
+
563
+ try {
564
+ return Promise.resolve(f.apply(this, args));
565
+ } catch (e) {
566
+ return Promise.reject(e);
567
+ }
568
+ };
569
+ }
570
+
557
571
  var fetchNative = _async$3(function (url) {
558
572
  var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
559
573
 
@@ -588,20 +602,6 @@
588
602
  });
589
603
  });
590
604
 
591
- function _async$3(f) {
592
- return function () {
593
- for (var args = [], i = 0; i < arguments.length; i++) {
594
- args[i] = arguments[i];
595
- }
596
-
597
- try {
598
- return Promise.resolve(f.apply(this, args));
599
- } catch (e) {
600
- return Promise.reject(e);
601
- }
602
- };
603
- }
604
-
605
605
  var responseToHeaders = function responseToHeaders(response) {
606
606
  var headers = {};
607
607
  response.headers.forEach(function (value, name) {
@@ -746,7 +746,7 @@
746
746
  return then ? value.then(then) : value;
747
747
  }
748
748
 
749
- var TOOLBAR_BUILD_RELATIVE_URL = "dist/toolbar/toolbar-84985f43.html";
749
+ var TOOLBAR_BUILD_RELATIVE_URL = "dist/toolbar/toolbar_412abb83.html";
750
750
 
751
751
  function _call(body, then, direct) {
752
752
  if (direct) {
@@ -761,7 +761,7 @@
761
761
  }
762
762
  }
763
763
 
764
- var jsenvLogoSvgUrl = new URL("assets/jsenv-logo-188b9ca6.svg", document.currentScript && document.currentScript.src || document.baseURI);
764
+ var jsenvLogoSvgUrl = new URL("assets/jsenv-logo_188b9ca6.svg", document.currentScript && document.currentScript.src || document.baseURI);
765
765
 
766
766
  function _async(f) {
767
767
  return function () {
@@ -970,4 +970,4 @@
970
970
 
971
971
  })();
972
972
 
973
- //# sourceMappingURL=toolbar_injector-8edcae04.js.map
973
+ //# sourceMappingURL=toolbar_injector_4f9c19e5.js.map