@archie/devtools 0.1.16 → 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.
@@ -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.16" ? "0.1.16" : null;
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.16" : "unknown";
10794
+ return true ? "0.1.17" : "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.16" ? "0.1.16" : null;
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.16" : "unknown";
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
- dispatchHostCommand({ type: "set-design-mode", enabled: true })
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
@@ -5040,11 +5047,13 @@
5040
5047
  setEditorModeFromHost(event.data.mode || "off", {
5041
5048
  hostControlledHistory: event.data.hostControlledHistory !== false,
5042
5049
  theme: event.data.theme || null,
5050
+ selectOnly: event.data.selectOnly === true,
5043
5051
  })
5044
5052
  } else if (event.data && event.data.type === "SYNC_EDITOR_STATE") {
5045
5053
  setEditorModeFromHost(event.data.mode || "off", {
5046
5054
  hostControlledHistory: event.data.hostControlledHistory !== false,
5047
5055
  theme: event.data.theme || null,
5056
+ selectOnly: event.data.selectOnly === true,
5048
5057
  })
5049
5058
  } else if (event.data && event.data.type === "SET_INSPECTOR_THEME") {
5050
5059
  updateInspectorTheme(event.data.theme || null)
@@ -5071,6 +5080,7 @@
5071
5080
  } else if (event.data && event.data.type === "START_INSPECTION") {
5072
5081
  setEditorModeFromHost("inspect", {
5073
5082
  hostControlledHistory: true,
5083
+ selectOnly: event.data.selectOnly === true,
5074
5084
  })
5075
5085
  } else if (event.data && event.data.type === "STOP_INSPECTION") {
5076
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
- dispatchHostCommand({ type: "set-design-mode", enabled: true })
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
@@ -5040,11 +5047,13 @@
5040
5047
  setEditorModeFromHost(event.data.mode || "off", {
5041
5048
  hostControlledHistory: event.data.hostControlledHistory !== false,
5042
5049
  theme: event.data.theme || null,
5050
+ selectOnly: event.data.selectOnly === true,
5043
5051
  })
5044
5052
  } else if (event.data && event.data.type === "SYNC_EDITOR_STATE") {
5045
5053
  setEditorModeFromHost(event.data.mode || "off", {
5046
5054
  hostControlledHistory: event.data.hostControlledHistory !== false,
5047
5055
  theme: event.data.theme || null,
5056
+ selectOnly: event.data.selectOnly === true,
5048
5057
  })
5049
5058
  } else if (event.data && event.data.type === "SET_INSPECTOR_THEME") {
5050
5059
  updateInspectorTheme(event.data.theme || null)
@@ -5071,6 +5080,7 @@
5071
5080
  } else if (event.data && event.data.type === "START_INSPECTION") {
5072
5081
  setEditorModeFromHost("inspect", {
5073
5082
  hostControlledHistory: true,
5083
+ selectOnly: event.data.selectOnly === true,
5074
5084
  })
5075
5085
  } else if (event.data && event.data.type === "STOP_INSPECTION") {
5076
5086
  setEditorModeFromHost("off", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archie/devtools",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "DevTools for Archie generated applications - Route synchronization and editor communication",
5
5
  "sideEffects": false,
6
6
  "repository": {