@pagelines/sdk 1.0.902 → 1.0.904

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/BotWrap.js CHANGED
@@ -258,7 +258,7 @@ function buildWorkJournalModel(e) {
258
258
  id: p?.activityId ?? "work-active",
259
259
  tone: "active",
260
260
  label: p?.label ?? W.finishing
261
- } : void 0, S = b ? r >= v ? i ? W.notifyHint : W.leaveHint : W.slowHint : void 0, C = [_, v].filter((e) => e > r).sort((e, t) => e - t)[0];
261
+ } : void 0, S = b && r >= v ? i ? W.notifyHint : W.leaveHint : void 0, C = [_, v].filter((e) => e > r).sort((e, t) => e - t)[0];
262
262
  return {
263
263
  outcome: n,
264
264
  visibleRows: s,
@@ -1153,26 +1153,26 @@ var De = {
1153
1153
  spine: "bg-theme-200",
1154
1154
  dashed: "border-theme-300",
1155
1155
  doneMark: "text-theme-400",
1156
- failedMark: "text-theme-500",
1157
- activeLine: "text-theme-900",
1158
- stoppedSquare: "bg-theme-500",
1159
- muted: "text-theme-500",
1156
+ failedMark: "text-theme-400",
1157
+ activeLine: "text-theme-700",
1158
+ stoppedSquare: "bg-theme-400",
1159
+ muted: "text-theme-400",
1160
1160
  ring: "focus-visible:ring-theme-900"
1161
1161
  } : {
1162
1162
  spine: "bg-white/15",
1163
1163
  dashed: "border-white/25",
1164
1164
  doneMark: "text-white/45",
1165
- failedMark: "text-white/60",
1166
- activeLine: "text-white",
1167
- stoppedSquare: "bg-white/55",
1168
- muted: "text-white/55",
1165
+ failedMark: "text-white/55",
1166
+ activeLine: "text-white/85",
1167
+ stoppedSquare: "bg-white/50",
1168
+ muted: "text-white/50",
1169
1169
  ring: "focus-visible:ring-white"
1170
1170
  }), c = v(() => {
1171
1171
  let e = t.isLight;
1172
1172
  return {
1173
1173
  done: {
1174
1174
  statusWord: "completed",
1175
- label: e ? "text-[12.5px] text-theme-500" : "text-[12.5px] text-white/55",
1175
+ label: e ? "text-[12px] text-theme-400" : "text-[12px] text-white/50",
1176
1176
  station: {
1177
1177
  tag: "i",
1178
1178
  class: `i-tabler-check size-3 ${s.value.doneMark}`
@@ -1180,7 +1180,7 @@ var De = {
1180
1180
  },
1181
1181
  active: {
1182
1182
  statusWord: "in progress",
1183
- label: e ? "text-[13px] font-medium text-theme-900" : "text-[13px] font-medium text-white",
1183
+ label: e ? "text-[12px] font-medium text-theme-700" : "text-[12px] font-medium text-white/85",
1184
1184
  station: {
1185
1185
  tag: "span",
1186
1186
  class: `chat-pulse-dot size-1.5 rounded-full bg-current ${s.value.activeLine}`
@@ -1188,21 +1188,21 @@ var De = {
1188
1188
  },
1189
1189
  failed: {
1190
1190
  statusWord: "failed",
1191
- label: e ? "text-[12.5px] font-medium text-theme-700" : "text-[12.5px] font-medium text-white/80",
1191
+ label: e ? "text-[12px] font-medium text-theme-600" : "text-[12px] font-medium text-white/70",
1192
1192
  station: {
1193
1193
  tag: "i",
1194
1194
  class: `i-tabler-alert-circle size-3.5 ${s.value.failedMark}`
1195
1195
  }
1196
1196
  },
1197
1197
  stopped: {
1198
- label: e ? "text-[13px] font-medium text-theme-600" : "text-[13px] font-medium text-white/70",
1198
+ label: e ? "text-[12px] font-medium text-theme-600" : "text-[12px] font-medium text-white/70",
1199
1199
  station: {
1200
1200
  tag: "span",
1201
1201
  class: `size-[9px] rounded-[2px] ${s.value.stoppedSquare}`
1202
1202
  }
1203
1203
  },
1204
1204
  completed: {
1205
- label: e ? "text-[12.5px] text-theme-500" : "text-[12.5px] text-white/55",
1205
+ label: e ? "text-[12px] text-theme-400" : "text-[12px] text-white/50",
1206
1206
  station: {
1207
1207
  tag: "i",
1208
1208
  class: "i-tabler-circle-check size-3.5 text-green-600"
@@ -1227,7 +1227,7 @@ var De = {
1227
1227
  class: "i-tabler-circle-check size-3.5 shrink-0 text-green-600",
1228
1228
  "aria-hidden": "true"
1229
1229
  }, null, -1)),
1230
- C("span", { class: O(["text-[12.5px] font-medium leading-none", s.value.muted]) }, z(e.model.terminal?.label), 3),
1230
+ C("span", { class: O(["text-[12px] font-medium leading-none", s.value.muted]) }, z(e.model.terminal?.label), 3),
1231
1231
  i.value ? (j(), S("i", {
1232
1232
  key: 0,
1233
1233
  class: O(["size-[13px] shrink-0", [n.value ? "i-tabler-chevron-down" : "i-tabler-chevron-right", s.value.muted]]),
@@ -1261,7 +1261,7 @@ var De = {
1261
1261
  class: O(["w-px flex-1", s.value.spine])
1262
1262
  }, null, 2))]), C("div", { class: O(["min-w-0 flex-1", t === o.value.length - 1 ? "" : "pb-2"]) }, [C("span", { class: O(["relative block leading-snug", c.value[e.tone].label]) }, [w(z(e.label), 1), c.value[e.tone].statusWord ? (j(), S("span", Qe, ", " + z(c.value[e.tone].statusWord), 1)) : x("", !0)], 2), e.note ? (j(), S("p", {
1263
1263
  key: 0,
1264
- class: O(["pt-0.5 text-[11.5px] leading-snug", s.value.muted])
1264
+ class: O(["pt-0.5 text-[12px] leading-snug", s.value.muted])
1265
1265
  }, z(e.note), 3)) : x("", !0)], 2)], 10, Ye))), 128)),
1266
1266
  !r.value && e.model.hint ? (j(), S("p", {
1267
1267
  key: 3,
@@ -4935,6 +4935,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
4935
4935
  class: "flex flex-col items-center justify-center px-4"
4936
4936
  }, ia = ["title"], aa = {
4937
4937
  key: 0,
4938
+ "data-test": "messaging-time-divider",
4938
4939
  class: "flex items-center gap-3 py-3 px-2"
4939
4940
  }, oa = ["data-journal-outcome"], sa = [
4940
4941
  "data-message-id",
@@ -5288,7 +5289,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5288
5289
  let n = e[t - 1], r = e[t];
5289
5290
  if (!n?.timestamp || !r?.timestamp) return null;
5290
5291
  let i = new Date(n.timestamp).getTime();
5291
- return new Date(r.timestamp).getTime() - i > 36e5 ? formatTimeDivider(new Date(r.timestamp)) : null;
5292
+ return new Date(r.timestamp).getTime() - i > 9e5 ? formatTimeDivider(new Date(r.timestamp)) : null;
5292
5293
  }
5293
5294
  function formatTimeDivider(e) {
5294
5295
  let t = /* @__PURE__ */ new Date(), n = e.toDateString() === t.toDateString(), r = new Date(t);
@@ -5444,9 +5445,9 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5444
5445
  "data-conversation-id": t.conversationId,
5445
5446
  "data-message-sequence": t.sequence,
5446
5447
  "data-routine-run-id": t.routine?.run.routineRunId,
5447
- class: O(["mb-6 flex items-start gap-2 pr-3 @sm/chat:pr-[2em] text-[13px] leading-relaxed", Y.value ? "text-theme-500" : "text-white/50"])
5448
+ class: O(["mb-6 flex items-center justify-center gap-2 text-[12px] leading-relaxed", Y.value ? "text-theme-400" : "text-white/50"])
5448
5449
  }, [r[16] || (r[16] = C("i", {
5449
- class: "i-tabler-clock size-4 mt-0.5 shrink-0",
5450
+ class: "i-tabler-clock size-3.5 shrink-0",
5450
5451
  "aria-hidden": "true"
5451
5452
  }, null, -1)), C("span", null, z(t.text), 1)], 10, ua)) : t.sender === "system" ? (j(), S("div", {
5452
5453
  key: 4,
@@ -5492,11 +5493,11 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5492
5493
  key: 0,
5493
5494
  "data-test": "messaging-routine-label",
5494
5495
  "data-routine-run-id": t.routine.run.routineRunId,
5495
- class: O(["mb-2 flex items-start gap-2 text-[13px] leading-relaxed", Y.value ? "text-theme-500" : "text-white/50"])
5496
+ class: O(["mb-2 flex items-start gap-2 text-[12px] leading-relaxed", Y.value ? "text-theme-400" : "text-white/50"])
5496
5497
  }, [r[18] || (r[18] = C("i", {
5497
- class: "i-tabler-clock size-4 mt-0.5 shrink-0",
5498
+ class: "i-tabler-clock size-3.5 mt-0.5 shrink-0",
5498
5499
  "aria-hidden": "true"
5499
- }, null, -1)), C("span", null, z(e.bot.displayName.value || e.bot.name.value) + " ran " + z(t.routine.run.name || t.routine.run.sourceLabel || "a routine"), 1)], 10, pa)) : x("", !0),
5500
+ }, null, -1)), C("span", null, "Ran " + z(t.routine.run.name || t.routine.run.sourceLabel || "a routine"), 1)], 10, pa)) : x("", !0),
5500
5501
  blockAttachmentsForMessage(t).length ? (j(), S("div", {
5501
5502
  key: 1,
5502
5503
  class: O(["mb-1 space-y-1", t.sender === "user" ? "flex flex-col items-end" : ""])
@@ -5833,7 +5834,7 @@ var Ri = ["data-voice-state", "data-voice-activity"], zi = ["src"], Bi = {
5833
5834
  ], 64))], !0)], 10, Pa)
5834
5835
  ], 2));
5835
5836
  }
5836
- }), [["__scopeId", "data-v-8c29628e"]]), ao = { class: "bot-wrap" }, oo = {
5837
+ }), [["__scopeId", "data-v-6717f6d3"]]), ao = { class: "bot-wrap" }, oo = {
5837
5838
  key: 0,
5838
5839
  class: "flex items-center justify-center h-full"
5839
5840
  }, so = {