@archie/devtools 0.1.15 → 0.1.16

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.
@@ -10271,7 +10271,7 @@ function isPreviewOrigin(origin) {
10271
10271
  var DEFAULT_SCRIPT_ID = "archie-inspector-script";
10272
10272
  var R2_INSPECTOR_BASE_URL = "https://pub-bf238c278d9644b39ec34ecaca1d315c.r2.dev";
10273
10273
  function readBuildVersion() {
10274
- return "0.1.15" ? "0.1.15" : null;
10274
+ return "0.1.16" ? "0.1.16" : null;
10275
10275
  }
10276
10276
  var REMOTE_INSPECTOR_VERSION = readBuildVersion();
10277
10277
  var isRemoteInspectorUrlVersioned = REMOTE_INSPECTOR_VERSION !== null;
@@ -10791,7 +10791,7 @@ var SETTLE_QUIET_MS = 400;
10791
10791
  var SETTLE_TIMEOUT_MS = 8e3;
10792
10792
  var SETTLE_POLL_MS = 50;
10793
10793
  function readPackageVersion() {
10794
- return true ? "0.1.15" : "unknown";
10794
+ return true ? "0.1.16" : "unknown";
10795
10795
  }
10796
10796
  var DEFAULT_ARCHIE_COMMAND_ORIGINS = getAllowedOrigins(true);
10797
10797
  function originPatternToRegExp(pattern) {
@@ -10236,7 +10236,7 @@ function isPreviewOrigin(origin) {
10236
10236
  var DEFAULT_SCRIPT_ID = "archie-inspector-script";
10237
10237
  var R2_INSPECTOR_BASE_URL = "https://pub-bf238c278d9644b39ec34ecaca1d315c.r2.dev";
10238
10238
  function readBuildVersion() {
10239
- return "0.1.15" ? "0.1.15" : null;
10239
+ return "0.1.16" ? "0.1.16" : null;
10240
10240
  }
10241
10241
  var REMOTE_INSPECTOR_VERSION = readBuildVersion();
10242
10242
  var isRemoteInspectorUrlVersioned = REMOTE_INSPECTOR_VERSION !== null;
@@ -10756,7 +10756,7 @@ var SETTLE_QUIET_MS = 400;
10756
10756
  var SETTLE_TIMEOUT_MS = 8e3;
10757
10757
  var SETTLE_POLL_MS = 50;
10758
10758
  function readPackageVersion() {
10759
- return true ? "0.1.15" : "unknown";
10759
+ return true ? "0.1.16" : "unknown";
10760
10760
  }
10761
10761
  var DEFAULT_ARCHIE_COMMAND_ORIGINS = getAllowedOrigins(true);
10762
10762
  function originPatternToRegExp(pattern) {
@@ -3976,6 +3976,13 @@
3976
3976
  })
3977
3977
  }
3978
3978
 
3979
+ // SVG-as-image never advances animations, so entrance animations would
3980
+ // rasterize at their first frame; a huge negative delay renders the end.
3981
+ var CAPTURE_FREEZE_ANIMATIONS_CSS =
3982
+ "*,*::before,*::after{animation-delay:-1e6s!important;" +
3983
+ "animation-duration:1s!important;animation-iteration-count:1!important;" +
3984
+ "transition:none!important}"
3985
+
3979
3986
  /**
3980
3987
  * CSS text for the capture clone: same-origin sheets have their
3981
3988
  * `@media` flattened against the LIVE viewport (see `flattenStyleRules`)
@@ -4048,7 +4055,11 @@
4048
4055
  CSS_INLINE_TIMEOUT_MS,
4049
4056
  null
4050
4057
  ).then(function () {
4051
- return renderNodes(topNodes, pieces).replace(/:root\b/g, "html")
4058
+ return (
4059
+ renderNodes(topNodes, pieces).replace(/:root\b/g, "html") +
4060
+ "\n" +
4061
+ CAPTURE_FREEZE_ANIMATIONS_CSS
4062
+ )
4052
4063
  })
4053
4064
  }
4054
4065
 
@@ -3976,6 +3976,13 @@
3976
3976
  })
3977
3977
  }
3978
3978
 
3979
+ // SVG-as-image never advances animations, so entrance animations would
3980
+ // rasterize at their first frame; a huge negative delay renders the end.
3981
+ var CAPTURE_FREEZE_ANIMATIONS_CSS =
3982
+ "*,*::before,*::after{animation-delay:-1e6s!important;" +
3983
+ "animation-duration:1s!important;animation-iteration-count:1!important;" +
3984
+ "transition:none!important}"
3985
+
3979
3986
  /**
3980
3987
  * CSS text for the capture clone: same-origin sheets have their
3981
3988
  * `@media` flattened against the LIVE viewport (see `flattenStyleRules`)
@@ -4048,7 +4055,11 @@
4048
4055
  CSS_INLINE_TIMEOUT_MS,
4049
4056
  null
4050
4057
  ).then(function () {
4051
- return renderNodes(topNodes, pieces).replace(/:root\b/g, "html")
4058
+ return (
4059
+ renderNodes(topNodes, pieces).replace(/:root\b/g, "html") +
4060
+ "\n" +
4061
+ CAPTURE_FREEZE_ANIMATIONS_CSS
4062
+ )
4052
4063
  })
4053
4064
  }
4054
4065
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archie/devtools",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "DevTools for Archie generated applications - Route synchronization and editor communication",
5
5
  "sideEffects": false,
6
6
  "repository": {