dsh-rewind-plugin 0.21.0 → 0.21.2

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/lib/client.js CHANGED
@@ -1052,6 +1052,8 @@ var import_react = require("react");
1052
1052
  var import_jsx_runtime = require("react/jsx-runtime");
1053
1053
  var CHAT_NODE_SLOT = "conversation.chat.node";
1054
1054
  var ROW_KEYS = /* @__PURE__ */ new Set(["user", "steering"]);
1055
+ var SHIPPED_ROW_PRIORITY = 0;
1056
+ var NO_SLOT_CHAIN = () => null;
1055
1057
  var TICK_KEY = "dsh-rewind:mount";
1056
1058
  function rendererOf(component) {
1057
1059
  if (typeof component === "function") return component;
@@ -1067,7 +1069,7 @@ function targetOf(props) {
1067
1069
  }
1068
1070
  function rowWithAction(official, render) {
1069
1071
  return function RowWithAction(props) {
1070
- const row = official(props);
1072
+ const row = official(typeof props["renderSlotChain"] === "function" ? props : { ...props, renderSlotChain: NO_SLOT_CHAIN });
1071
1073
  const target = targetOf(props);
1072
1074
  if (target === void 0 || !(0, import_react.isValidElement)(row)) return row;
1073
1075
  const actions = row.props.actions;
@@ -1119,6 +1121,7 @@ function installRowAction({ slots, render }) {
1119
1121
  for (const entry of readEntries(CHAT_NODE_SLOT)) {
1120
1122
  const key = entry.options.key;
1121
1123
  if (key === void 0 || !ROW_KEYS.has(key)) continue;
1124
+ if ((entry.options.priority ?? SHIPPED_ROW_PRIORITY) !== SHIPPED_ROW_PRIORITY) continue;
1122
1125
  changed2 = takeOver(entry) || changed2;
1123
1126
  }
1124
1127
  if (changed2) tick();
@@ -1633,9 +1636,9 @@ async function candidatesOverApi(sessionId) {
1633
1636
  }
1634
1637
 
1635
1638
  // src/client/build-info.ts
1636
- var PLUGIN_VERSION = true ? "0.21.0" : "dev";
1639
+ var PLUGIN_VERSION = true ? "0.21.2" : "dev";
1637
1640
  var PLUGIN_PACKAGE = "dsh-rewind-plugin";
1638
- var BUILD_HASH = true ? "5ab4d025" : "dev";
1641
+ var BUILD_HASH = true ? "4c51c9c4" : "dev";
1639
1642
 
1640
1643
  // src/client/locales.ts
1641
1644
  var en = {