@arbidocs/blocks 0.4.17 → 0.4.18

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.
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkJGZTRLKL_cjs = require('./chunk-JGZTRLKL.cjs');
5
4
  var chunkZVPTFTGV_cjs = require('./chunk-ZVPTFTGV.cjs');
5
+ var chunkJGZTRLKL_cjs = require('./chunk-JGZTRLKL.cjs');
6
6
  var chunkRFIBUWLF_cjs = require('./chunk-RFIBUWLF.cjs');
7
7
  var chunk5B4PXAKI_cjs = require('./chunk-5B4PXAKI.cjs');
8
8
  var chunkVFUWWH52_cjs = require('./chunk-VFUWWH52.cjs');
@@ -4876,6 +4876,8 @@ function workflowToComposerValues(workflow, workflows) {
4876
4876
  }
4877
4877
  return reminder ? { ...base, workflowId: workflows.reminderWorkflowId, inputs: { message: workflow.name } } : {
4878
4878
  ...base,
4879
+ // A name made from the instruction follows it when the instruction is edited.
4880
+ name: workflow.name === firstWords(workflow.prompt ?? "") ? "" : workflow.name,
4879
4881
  workflowId: workflows.customWorkflowId,
4880
4882
  inputs: { instruction: workflow.prompt }
4881
4883
  };
@@ -5420,7 +5422,9 @@ function WorkflowsTable(props) {
5420
5422
  renderName: (w) => {
5421
5423
  const { l: lb } = latest.current;
5422
5424
  const skill = isSkillRow(w);
5423
- const about = skill ? latest.current.actionText(w) : w.description || latest.current.actionText(w);
5425
+ const text = skill ? latest.current.actionText(w) : w.description || latest.current.actionText(w);
5426
+ const stem = w.name.replace(/…$/, "").trim();
5427
+ const about = text && text.trim() !== w.name.trim() && text.trim() !== stem ? text : "";
5424
5428
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 leading-tight", children: [
5425
5429
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
5426
5430
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -9246,5 +9250,5 @@ exports.workflowTriggerType = workflowTriggerType;
9246
9250
  exports.workflowWhen = workflowWhen;
9247
9251
  exports.workflowsAccepting = workflowsAccepting;
9248
9252
  exports.workflowsForHost = workflowsForHost;
9249
- //# sourceMappingURL=chunk-IWOOGRNG.cjs.map
9250
- //# sourceMappingURL=chunk-IWOOGRNG.cjs.map
9253
+ //# sourceMappingURL=chunk-TP7JJAXZ.cjs.map
9254
+ //# sourceMappingURL=chunk-TP7JJAXZ.cjs.map