@trops/dash-core 0.1.469 → 0.1.470
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/index.esm.js +13 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +54 -33
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -14667,7 +14667,18 @@ function forEachWidget(workspace, visit) {
|
|
|
14667
14667
|
_iterator2.f();
|
|
14668
14668
|
}
|
|
14669
14669
|
};
|
|
14670
|
-
|
|
14670
|
+
|
|
14671
|
+
// Walk pages BEFORE workspace.layout. WorkspaceModel auto-migrates a
|
|
14672
|
+
// workspace with no persisted `pages` by aliasing pages[0].layout to
|
|
14673
|
+
// workspace.layout. After any per-page edit, pages[0].layout is
|
|
14674
|
+
// replaced with a new array (fresh) but workspace.layout is left
|
|
14675
|
+
// pointing at the original (stale) array. Walking layout first +
|
|
14676
|
+
// dedupe-by-stableId then visited the stale top-level item and
|
|
14677
|
+
// skipped the fresh page version, so the bulk-edit modal kept
|
|
14678
|
+
// reading pre-edit provider bindings. Walking pages first means the
|
|
14679
|
+
// fresh data wins; workspace.layout remains as a fallback for
|
|
14680
|
+
// widgets that only live there (e.g. AI-place writes that bypass
|
|
14681
|
+
// the page handler).
|
|
14671
14682
|
if (Array.isArray(workspace.pages)) {
|
|
14672
14683
|
var _iterator3 = _createForOfIteratorHelper$t(workspace.pages),
|
|
14673
14684
|
_step3;
|
|
@@ -14682,6 +14693,7 @@ function forEachWidget(workspace, visit) {
|
|
|
14682
14693
|
_iterator3.f();
|
|
14683
14694
|
}
|
|
14684
14695
|
}
|
|
14696
|
+
_walk(workspace.layout);
|
|
14685
14697
|
_walk(workspace.sidebarLayout);
|
|
14686
14698
|
}
|
|
14687
14699
|
|