@yuneta/gobj-ui 7.19.2 → 7.19.4

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.
@@ -1467,7 +1467,7 @@ function navigate_to(gobj, route, depth, no_drain) {
1467
1467
  if (!(0, _yuneta_gobj_js.empty_string)(t.event)) (0, _yuneta_gobj_js.gobj_publish_event)(gobj, t.event, t.kw || {});
1468
1468
  };
1469
1469
  let config = (0, _yuneta_gobj_js.gobj_read_attr)(gobj, "config") || {};
1470
- let prev = priv.stages && priv.stages.main && priv.stages.main.active_route || (0, _yuneta_gobj_js.gobj_read_attr)(gobj, "default_route") || config.shell && config.shell.stages && config.shell.stages.main && config.shell.stages.main.default_route || "/";
1470
+ let prev = (0, _yuneta_gobj_js.gobj_read_attr)(gobj, "current_route") || priv.stages && priv.stages.main && priv.stages.main.active_route || (0, _yuneta_gobj_js.gobj_read_attr)(gobj, "default_route") || config.shell && config.shell.stages && config.shell.stages.main && config.shell.stages.main.default_route || "/";
1471
1471
  let redirect = t.redirect;
1472
1472
  if (redirect === "stay") {
1473
1473
  if ((0, _yuneta_gobj_js.gobj_read_attr)(gobj, "use_hash")) {
@@ -1462,7 +1462,7 @@ function navigate_to(gobj, route, depth, no_drain) {
1462
1462
  if (!empty_string(t.event)) gobj_publish_event(gobj, t.event, t.kw || {});
1463
1463
  };
1464
1464
  let config = gobj_read_attr(gobj, "config") || {};
1465
- let prev = priv.stages && priv.stages.main && priv.stages.main.active_route || gobj_read_attr(gobj, "default_route") || config.shell && config.shell.stages && config.shell.stages.main && config.shell.stages.main.default_route || "/";
1465
+ let prev = gobj_read_attr(gobj, "current_route") || priv.stages && priv.stages.main && priv.stages.main.active_route || gobj_read_attr(gobj, "default_route") || config.shell && config.shell.stages && config.shell.stages.main && config.shell.stages.main.default_route || "/";
1466
1466
  let redirect = t.redirect;
1467
1467
  if (redirect === "stay") {
1468
1468
  if (gobj_read_attr(gobj, "use_hash")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.19.2",
3
+ "version": "7.19.4",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -1282,7 +1282,24 @@ function navigate_to(gobj, route, depth, no_drain)
1282
1282
  }
1283
1283
  };
1284
1284
  let config = gobj_read_attr(gobj, "config") || {};
1285
- let prev = (priv.stages && priv.stages.main &&
1285
+ /* Where the user actually WAS, which is the url and not the
1286
+ * mount.
1287
+ *
1288
+ * `stages.main.active_route` is the DECLARED route the view is
1289
+ * mounted at, and under a `C_YUI_NODE` tree everything below it
1290
+ * is subpath the node owns -- so restoring THAT restores the
1291
+ * tree's root and throws the position away. Switching the theme
1292
+ * from a graph five levels down answered with the workspace
1293
+ * landing, and so would every other action route: preferences,
1294
+ * the site map, the dev tools.
1295
+ *
1296
+ * `current_route` is the same route WITH its subpath, and it is
1297
+ * only ever written for a RESTING route (an action returns
1298
+ * before that line), so it cannot be an action route itself.
1299
+ * It is what a deep link resolves, and therefore what can be
1300
+ * restored. */
1301
+ let prev = gobj_read_attr(gobj, "current_route") ||
1302
+ (priv.stages && priv.stages.main &&
1286
1303
  priv.stages.main.active_route) ||
1287
1304
  gobj_read_attr(gobj, "default_route") ||
1288
1305
  (config.shell && config.shell.stages &&
package/src/lib_graph.css CHANGED
@@ -42,7 +42,12 @@
42
42
  *
43
43
  * Except what IS there to be read or typed into. The popovers this
44
44
  * gclass appends to the same container carry record data an operator
45
- * may well want to copy, and inputs need a caret.
45
+ * may well want to copy, and inputs need a caret. `g6-node-detail`
46
+ * above all: that one exists ONLY to be read.
47
+ *
48
+ * The list is every class `create_popover_base()` is called with. A
49
+ * new popover that forgets to join it is unreadable in a way nothing
50
+ * reports -- so add it here in the same commit.
46
51
  */
47
52
  .graph-container {
48
53
  -webkit-user-select: none;
@@ -55,7 +60,8 @@
55
60
  .graph-container .g6-confirm-popover,
56
61
  .graph-container .g6-create-popover,
57
62
  .graph-container .g6-node-popover,
58
- .graph-container .g6-edge-popover {
63
+ .graph-container .g6-edge-popover,
64
+ .graph-container .g6-node-detail {
59
65
  -webkit-user-select: text;
60
66
  user-select: text;
61
67
  }