@archie/devtools 0.1.15 → 0.1.17
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/dist/client/client.js
CHANGED
|
@@ -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.
|
|
10274
|
+
return "0.1.17" ? "0.1.17" : 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.
|
|
10794
|
+
return true ? "0.1.17" : "unknown";
|
|
10795
10795
|
}
|
|
10796
10796
|
var DEFAULT_ARCHIE_COMMAND_ORIGINS = getAllowedOrigins(true);
|
|
10797
10797
|
function originPatternToRegExp(pattern) {
|
package/dist/client/client.mjs
CHANGED
|
@@ -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.
|
|
10239
|
+
return "0.1.17" ? "0.1.17" : 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.
|
|
10759
|
+
return true ? "0.1.17" : "unknown";
|
|
10760
10760
|
}
|
|
10761
10761
|
var DEFAULT_ARCHIE_COMMAND_ORIGINS = getAllowedOrigins(true);
|
|
10762
10762
|
function originPatternToRegExp(pattern) {
|
|
@@ -2035,6 +2035,7 @@
|
|
|
2035
2035
|
// feature-detect on this flag: a frozen 2.0.x inspector disables
|
|
2036
2036
|
// design mode on "inspect" and needs the legacy "design" mode.
|
|
2037
2037
|
unifiedInspectArrange: true,
|
|
2038
|
+
selectOnlyInspect: true,
|
|
2038
2039
|
// ARCH-1065: the M2 codemod's data-agent-* grammar is readable
|
|
2039
2040
|
// (`bindingChain` on element data) and slice-field-queryable
|
|
2040
2041
|
// (`QUERY_SLICE_FIELD`). Hosts MUST feature-detect on this flag
|
|
@@ -2977,7 +2978,13 @@
|
|
|
2977
2978
|
// single-element selection (via publishSelectionToDesignMode), at
|
|
2978
2979
|
// which point it lights up the resize/drag controls on that element.
|
|
2979
2980
|
if (pageSupportsUnifiedDesignMode()) {
|
|
2980
|
-
|
|
2981
|
+
// selectOnly: selection without DnD/arrange. Explicitly disabled so a
|
|
2982
|
+
// prior full-inspect session is turned off; a later non-selectOnly
|
|
2983
|
+
// inspect re-dispatches enabled:true on every entry.
|
|
2984
|
+
dispatchHostCommand({
|
|
2985
|
+
type: "set-design-mode",
|
|
2986
|
+
enabled: !(options && options.selectOnly),
|
|
2987
|
+
})
|
|
2981
2988
|
}
|
|
2982
2989
|
if (isInspecting) {
|
|
2983
2990
|
// Recovery re-send (focus/visibility/online): the session is
|
|
@@ -3976,6 +3983,13 @@
|
|
|
3976
3983
|
})
|
|
3977
3984
|
}
|
|
3978
3985
|
|
|
3986
|
+
// SVG-as-image never advances animations, so entrance animations would
|
|
3987
|
+
// rasterize at their first frame; a huge negative delay renders the end.
|
|
3988
|
+
var CAPTURE_FREEZE_ANIMATIONS_CSS =
|
|
3989
|
+
"*,*::before,*::after{animation-delay:-1e6s!important;" +
|
|
3990
|
+
"animation-duration:1s!important;animation-iteration-count:1!important;" +
|
|
3991
|
+
"transition:none!important}"
|
|
3992
|
+
|
|
3979
3993
|
/**
|
|
3980
3994
|
* CSS text for the capture clone: same-origin sheets have their
|
|
3981
3995
|
* `@media` flattened against the LIVE viewport (see `flattenStyleRules`)
|
|
@@ -4048,7 +4062,11 @@
|
|
|
4048
4062
|
CSS_INLINE_TIMEOUT_MS,
|
|
4049
4063
|
null
|
|
4050
4064
|
).then(function () {
|
|
4051
|
-
return
|
|
4065
|
+
return (
|
|
4066
|
+
renderNodes(topNodes, pieces).replace(/:root\b/g, "html") +
|
|
4067
|
+
"\n" +
|
|
4068
|
+
CAPTURE_FREEZE_ANIMATIONS_CSS
|
|
4069
|
+
)
|
|
4052
4070
|
})
|
|
4053
4071
|
}
|
|
4054
4072
|
|
|
@@ -5029,11 +5047,13 @@
|
|
|
5029
5047
|
setEditorModeFromHost(event.data.mode || "off", {
|
|
5030
5048
|
hostControlledHistory: event.data.hostControlledHistory !== false,
|
|
5031
5049
|
theme: event.data.theme || null,
|
|
5050
|
+
selectOnly: event.data.selectOnly === true,
|
|
5032
5051
|
})
|
|
5033
5052
|
} else if (event.data && event.data.type === "SYNC_EDITOR_STATE") {
|
|
5034
5053
|
setEditorModeFromHost(event.data.mode || "off", {
|
|
5035
5054
|
hostControlledHistory: event.data.hostControlledHistory !== false,
|
|
5036
5055
|
theme: event.data.theme || null,
|
|
5056
|
+
selectOnly: event.data.selectOnly === true,
|
|
5037
5057
|
})
|
|
5038
5058
|
} else if (event.data && event.data.type === "SET_INSPECTOR_THEME") {
|
|
5039
5059
|
updateInspectorTheme(event.data.theme || null)
|
|
@@ -5060,6 +5080,7 @@
|
|
|
5060
5080
|
} else if (event.data && event.data.type === "START_INSPECTION") {
|
|
5061
5081
|
setEditorModeFromHost("inspect", {
|
|
5062
5082
|
hostControlledHistory: true,
|
|
5083
|
+
selectOnly: event.data.selectOnly === true,
|
|
5063
5084
|
})
|
|
5064
5085
|
} else if (event.data && event.data.type === "STOP_INSPECTION") {
|
|
5065
5086
|
setEditorModeFromHost("off", {
|
|
@@ -2035,6 +2035,7 @@
|
|
|
2035
2035
|
// feature-detect on this flag: a frozen 2.0.x inspector disables
|
|
2036
2036
|
// design mode on "inspect" and needs the legacy "design" mode.
|
|
2037
2037
|
unifiedInspectArrange: true,
|
|
2038
|
+
selectOnlyInspect: true,
|
|
2038
2039
|
// ARCH-1065: the M2 codemod's data-agent-* grammar is readable
|
|
2039
2040
|
// (`bindingChain` on element data) and slice-field-queryable
|
|
2040
2041
|
// (`QUERY_SLICE_FIELD`). Hosts MUST feature-detect on this flag
|
|
@@ -2977,7 +2978,13 @@
|
|
|
2977
2978
|
// single-element selection (via publishSelectionToDesignMode), at
|
|
2978
2979
|
// which point it lights up the resize/drag controls on that element.
|
|
2979
2980
|
if (pageSupportsUnifiedDesignMode()) {
|
|
2980
|
-
|
|
2981
|
+
// selectOnly: selection without DnD/arrange. Explicitly disabled so a
|
|
2982
|
+
// prior full-inspect session is turned off; a later non-selectOnly
|
|
2983
|
+
// inspect re-dispatches enabled:true on every entry.
|
|
2984
|
+
dispatchHostCommand({
|
|
2985
|
+
type: "set-design-mode",
|
|
2986
|
+
enabled: !(options && options.selectOnly),
|
|
2987
|
+
})
|
|
2981
2988
|
}
|
|
2982
2989
|
if (isInspecting) {
|
|
2983
2990
|
// Recovery re-send (focus/visibility/online): the session is
|
|
@@ -3976,6 +3983,13 @@
|
|
|
3976
3983
|
})
|
|
3977
3984
|
}
|
|
3978
3985
|
|
|
3986
|
+
// SVG-as-image never advances animations, so entrance animations would
|
|
3987
|
+
// rasterize at their first frame; a huge negative delay renders the end.
|
|
3988
|
+
var CAPTURE_FREEZE_ANIMATIONS_CSS =
|
|
3989
|
+
"*,*::before,*::after{animation-delay:-1e6s!important;" +
|
|
3990
|
+
"animation-duration:1s!important;animation-iteration-count:1!important;" +
|
|
3991
|
+
"transition:none!important}"
|
|
3992
|
+
|
|
3979
3993
|
/**
|
|
3980
3994
|
* CSS text for the capture clone: same-origin sheets have their
|
|
3981
3995
|
* `@media` flattened against the LIVE viewport (see `flattenStyleRules`)
|
|
@@ -4048,7 +4062,11 @@
|
|
|
4048
4062
|
CSS_INLINE_TIMEOUT_MS,
|
|
4049
4063
|
null
|
|
4050
4064
|
).then(function () {
|
|
4051
|
-
return
|
|
4065
|
+
return (
|
|
4066
|
+
renderNodes(topNodes, pieces).replace(/:root\b/g, "html") +
|
|
4067
|
+
"\n" +
|
|
4068
|
+
CAPTURE_FREEZE_ANIMATIONS_CSS
|
|
4069
|
+
)
|
|
4052
4070
|
})
|
|
4053
4071
|
}
|
|
4054
4072
|
|
|
@@ -5029,11 +5047,13 @@
|
|
|
5029
5047
|
setEditorModeFromHost(event.data.mode || "off", {
|
|
5030
5048
|
hostControlledHistory: event.data.hostControlledHistory !== false,
|
|
5031
5049
|
theme: event.data.theme || null,
|
|
5050
|
+
selectOnly: event.data.selectOnly === true,
|
|
5032
5051
|
})
|
|
5033
5052
|
} else if (event.data && event.data.type === "SYNC_EDITOR_STATE") {
|
|
5034
5053
|
setEditorModeFromHost(event.data.mode || "off", {
|
|
5035
5054
|
hostControlledHistory: event.data.hostControlledHistory !== false,
|
|
5036
5055
|
theme: event.data.theme || null,
|
|
5056
|
+
selectOnly: event.data.selectOnly === true,
|
|
5037
5057
|
})
|
|
5038
5058
|
} else if (event.data && event.data.type === "SET_INSPECTOR_THEME") {
|
|
5039
5059
|
updateInspectorTheme(event.data.theme || null)
|
|
@@ -5060,6 +5080,7 @@
|
|
|
5060
5080
|
} else if (event.data && event.data.type === "START_INSPECTION") {
|
|
5061
5081
|
setEditorModeFromHost("inspect", {
|
|
5062
5082
|
hostControlledHistory: true,
|
|
5083
|
+
selectOnly: event.data.selectOnly === true,
|
|
5063
5084
|
})
|
|
5064
5085
|
} else if (event.data && event.data.type === "STOP_INSPECTION") {
|
|
5065
5086
|
setEditorModeFromHost("off", {
|