@archie/devtools 0.1.8 → 0.1.9
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/README.md
CHANGED
|
@@ -156,6 +156,24 @@ Tests follow a colocated-by-feature convention:
|
|
|
156
156
|
|
|
157
157
|
## Release notes
|
|
158
158
|
|
|
159
|
+
### 0.1.9
|
|
160
|
+
|
|
161
|
+
Fixes the `arrange-session-changed` index for a move onto a screen's own
|
|
162
|
+
root (0.1.8's screen-root translation) so it matches the direct
|
|
163
|
+
`ELEMENT_MOVED` event.
|
|
164
|
+
|
|
165
|
+
- **Screen-root move index.** `recordCommittedMove`'s `after` payload (the
|
|
166
|
+
one `serializeArrangeChange` reads as `event.payload.after.index` for the
|
|
167
|
+
`arrange-session-changed` change entry) carried the raw DOM-child index
|
|
168
|
+
(`command.to.index`) even when the drop resolved to a screen-root target,
|
|
169
|
+
instead of `screenRootTarget.index` — the position remapped to count only
|
|
170
|
+
the screen's own root children. The direct `element-moved` runtime event
|
|
171
|
+
already used the remapped index; only the session-change payload lagged.
|
|
172
|
+
In the common case (no runtime-injected chrome interleaved among a
|
|
173
|
+
screen's root children) the two indices coincide and nothing broke; the
|
|
174
|
+
mismatch only surfaced when chrome sat between screen-root children and
|
|
175
|
+
the drop slot was valid but not adjacent to the chrome node.
|
|
176
|
+
|
|
159
177
|
### 0.1.8
|
|
160
178
|
|
|
161
179
|
Fixes two related cases where a palette drop or an in-canvas move could
|
package/dist/client/client.js
CHANGED
|
@@ -8577,7 +8577,7 @@ function recordCommittedMove(args) {
|
|
|
8577
8577
|
commitIdentity: sourceCommitIdentity
|
|
8578
8578
|
});
|
|
8579
8579
|
const afterPayload = buildMovePayloadWithEffectiveIdentities({
|
|
8580
|
-
placement: command.to,
|
|
8580
|
+
placement: screenRootTarget ? { ...command.to, index: screenRootTarget.index } : command.to,
|
|
8581
8581
|
containerIdentity,
|
|
8582
8582
|
beforeSiblingIdentity,
|
|
8583
8583
|
afterSiblingIdentity,
|
|
@@ -10230,7 +10230,7 @@ function isPreviewOrigin(origin) {
|
|
|
10230
10230
|
var DEFAULT_SCRIPT_ID = "archie-inspector-script";
|
|
10231
10231
|
var R2_INSPECTOR_BASE_URL = "https://pub-bf238c278d9644b39ec34ecaca1d315c.r2.dev";
|
|
10232
10232
|
function readBuildVersion() {
|
|
10233
|
-
return "0.1.
|
|
10233
|
+
return "0.1.9" ? "0.1.9" : null;
|
|
10234
10234
|
}
|
|
10235
10235
|
var REMOTE_INSPECTOR_VERSION = readBuildVersion();
|
|
10236
10236
|
var isRemoteInspectorUrlVersioned = REMOTE_INSPECTOR_VERSION !== null;
|
package/dist/client/client.mjs
CHANGED
|
@@ -8542,7 +8542,7 @@ function recordCommittedMove(args) {
|
|
|
8542
8542
|
commitIdentity: sourceCommitIdentity
|
|
8543
8543
|
});
|
|
8544
8544
|
const afterPayload = buildMovePayloadWithEffectiveIdentities({
|
|
8545
|
-
placement: command.to,
|
|
8545
|
+
placement: screenRootTarget ? { ...command.to, index: screenRootTarget.index } : command.to,
|
|
8546
8546
|
containerIdentity,
|
|
8547
8547
|
beforeSiblingIdentity,
|
|
8548
8548
|
afterSiblingIdentity,
|
|
@@ -10195,7 +10195,7 @@ function isPreviewOrigin(origin) {
|
|
|
10195
10195
|
var DEFAULT_SCRIPT_ID = "archie-inspector-script";
|
|
10196
10196
|
var R2_INSPECTOR_BASE_URL = "https://pub-bf238c278d9644b39ec34ecaca1d315c.r2.dev";
|
|
10197
10197
|
function readBuildVersion() {
|
|
10198
|
-
return "0.1.
|
|
10198
|
+
return "0.1.9" ? "0.1.9" : null;
|
|
10199
10199
|
}
|
|
10200
10200
|
var REMOTE_INSPECTOR_VERSION = readBuildVersion();
|
|
10201
10201
|
var isRemoteInspectorUrlVersioned = REMOTE_INSPECTOR_VERSION !== null;
|
package/package.json
CHANGED
|
File without changes
|