@design.estate/dees-catalog 21.48.0 → 21.49.0

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.
@@ -45401,6 +45401,10 @@ var demoFunc37 = /* @__PURE__ */ __name(() => demoPage("Messages", "Conversation
45401
45401
  `), "demoFunc");
45402
45402
 
45403
45403
  // ts_web/elements/00group-harness/harness.markdown.ts
45404
+ var harnessMarkdownRenderOptions = Object.freeze({
45405
+ frontmatter: false,
45406
+ breaks: true
45407
+ });
45404
45408
  var HarnessMarkdown = class _HarnessMarkdown {
45405
45409
  static {
45406
45410
  __name(this, "HarnessMarkdown");
@@ -45419,7 +45423,7 @@ var HarnessMarkdown = class _HarnessMarkdown {
45419
45423
  this.cache.set(markdownText, cached);
45420
45424
  return cached;
45421
45425
  }
45422
- const html = await domtools_pluginexports_exports.smartmarkdown.SmartMarkdown.easyMarkdownToHtml(markdownText);
45426
+ const html = await domtools_pluginexports_exports.smartmarkdown.SmartMarkdown.markdownToHtml(markdownText, harnessMarkdownRenderOptions);
45423
45427
  const processed = this.postProcess(html);
45424
45428
  this.cache.set(markdownText, processed);
45425
45429
  if (this.cache.size > _HarnessMarkdown.maxCacheEntries) {
@@ -54009,7 +54013,7 @@ var demoFunc46 = /* @__PURE__ */ __name(() => demoPage("Composer", "Write, attac
54009
54013
  accountNote="Accounts could not be loaded. Chat resumes once the account service answers."
54010
54014
  .modelOptions=${["gpt-5.5", "gpt-5"]}
54011
54015
  ></dees-harness-composer>
54012
- <div class="dees-demo-label">Slash commands: type / to list them, Enter or Tab completes, Cmd/Ctrl+Enter runs</div>
54016
+ <div class="dees-demo-label">Slash commands: type / to list them, Enter or Tab completes, Enter again runs</div>
54013
54017
  <dees-harness-composer
54014
54018
  .showModelControls=${false}
54015
54019
  .commands=${[
@@ -54194,7 +54198,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
54194
54198
  }, "handleTextInput"));
54195
54199
  __publicField(this, "handleKeydown", /* @__PURE__ */ __name((event) => {
54196
54200
  if (this.interactionLocked) return;
54197
- if (event.isComposing || this.composing) return;
54201
+ if (event.isComposing || this.composing || event.keyCode === 229) return;
54198
54202
  if (event.key === "Enter" && event.altKey && this.busy && this.busyDeliveryModes.includes("queue")) {
54199
54203
  event.preventDefault();
54200
54204
  this.send("queue");
@@ -54220,7 +54224,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
54220
54224
  }
54221
54225
  if (event.key === "Enter" || event.key === "Tab") {
54222
54226
  const entry = menu.entries[this.activeMenuEntryIndex(menu)];
54223
- if (entry) {
54227
+ if (entry && !(event.key === "Enter" && this.promptIsEntry(entry))) {
54224
54228
  event.preventDefault();
54225
54229
  void this.chooseMenuEntry(entry);
54226
54230
  return;
@@ -54228,6 +54232,11 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
54228
54232
  }
54229
54233
  }
54230
54234
  }
54235
+ if (event.key === "Enter" && !event.shiftKey && !event.altKey) {
54236
+ event.preventDefault();
54237
+ this.send(this.primaryDelivery);
54238
+ return;
54239
+ }
54231
54240
  if (this.handlePromptHistoryKey(event)) return;
54232
54241
  if (event.key === "Tab" && event.shiftKey && this.modeOptions.length) {
54233
54242
  event.preventDefault();
@@ -54463,7 +54472,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
54463
54472
  ` : ""}
54464
54473
  </div>
54465
54474
  ` : ""}
54466
- <span class="spacer"></span>
54475
+ <div class="actions">
54467
54476
  ${this.busy && this.queuedCount > 0 ? b`<span class="queuedStatus" aria-live="polite">${this.t("composer.queued", { count: this.queuedCount })}</span>` : ""}
54468
54477
  ${this.busy && this.primaryBusyDelivery && !typedCommand ? b`<span class="deliveryHint">${this.t(deliveryHintKeys[this.primaryBusyDelivery])}</span>` : ""}
54469
54478
  ${this.menuActions.length ? b`
@@ -54517,6 +54526,7 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
54517
54526
  ${typedCommand ? this.t("composer.run") : this.t(deliveryLabelKeys[this.primaryDelivery ?? "turn"])}
54518
54527
  </dees-button>
54519
54528
  </div>
54529
+ </div>
54520
54530
  ${this.showModelControls ? b`<p class="accountNote ${this.accountNote ? "" : "empty"}" role="status">${this.accountNote ? b`<dees-icon icon="lucide:Info" iconSize="12" aria-hidden="true"></dees-icon>
54521
54531
  <span>${this.accountNote}</span>` : ""}</p>` : ""}
54522
54532
  </div>
@@ -54690,10 +54700,18 @@ var _DeesHarnessComposer = class _DeesHarnessComposer extends (_a67 = DeesElemen
54690
54700
  if (!this.promptFocused || this.interactionLocked || this.commandMenuDismissed) return void 0;
54691
54701
  return commandMenuFor(this.value, this.commands);
54692
54702
  }
54693
- /** The highlighted entry: the one moved to, else the first that can be completed. */
54703
+ /**
54704
+ * The highlighted entry: the one moved to, else the one the prompt already is (`/model gpt-5`
54705
+ * among `gpt-5.5` and `gpt-5`), else the first that can be completed.
54706
+ */
54694
54707
  activeMenuEntryIndex(menuArg) {
54695
54708
  if (this.activeMenuIndex >= 0 && this.activeMenuIndex < menuArg.entries.length) return this.activeMenuIndex;
54696
- return menuArg.entries.findIndex((entry) => !entry.unavailable);
54709
+ const typed = menuArg.entries.findIndex((entry) => this.promptIsEntry(entry));
54710
+ return typed >= 0 ? typed : menuArg.entries.findIndex((entry) => !entry.unavailable);
54711
+ }
54712
+ /** The prompt is the entry's completion already, and the entry leads nowhere further. */
54713
+ promptIsEntry(entryArg) {
54714
+ return !entryArg.unavailable && !entryArg.opensOptions && entryArg.completion === this.value.trim();
54697
54715
  }
54698
54716
  commandMenuOptionId(indexArg) {
54699
54717
  return `${this.commandMenuId}-option-${indexArg}`;
@@ -55119,6 +55137,11 @@ __publicField(_DeesHarnessComposer, "styles", [
55119
55137
 
55120
55138
  .composer {
55121
55139
  display: grid;
55140
+ /* No control may widen the composer past its column: a row that does not fit wraps. */
55141
+ grid-template-columns: minmax(0, 1fr);
55142
+ /* The controls' breakpoints measure the content box, which a docked bar insets to the
55143
+ transcript's measure, not the full-bleed host. */
55144
+ container: harness-composer / inline-size;
55122
55145
  gap: var(--dees-spacing-sm);
55123
55146
  padding: 12px;
55124
55147
  border: var(--dees-line-width-hairline) solid var(--dees-color-border-subtle);
@@ -55269,8 +55292,13 @@ __publicField(_DeesHarnessComposer, "styles", [
55269
55292
  color: var(--dees-color-text-primary);
55270
55293
  }
55271
55294
 
55295
+ /*
55296
+ * One row while everything fits: the pickers shrink to their minimum widths first, then the
55297
+ * trailing actions wrap together onto a line of their own, still at the trailing edge.
55298
+ */
55272
55299
  .controlsRow {
55273
55300
  display: flex;
55301
+ flex-wrap: wrap;
55274
55302
  align-items: center;
55275
55303
  gap: var(--dees-spacing-sm);
55276
55304
  }
@@ -55280,10 +55308,18 @@ __publicField(_DeesHarnessComposer, "styles", [
55280
55308
  .modelControls {
55281
55309
  display: flex;
55282
55310
  gap: var(--dees-spacing-xs);
55283
- /* shrinks before the trailing actions do, never grows past its
55284
- content: the row's spacer still pushes send/stop to the edge */
55311
+ /* takes the row's free space; its pickers stop at their own widths */
55312
+ flex: 1 1 auto;
55313
+ min-width: 0;
55314
+ }
55315
+
55316
+ .actions {
55317
+ display: flex;
55318
+ align-items: center;
55319
+ gap: var(--dees-spacing-sm);
55285
55320
  flex: 0 1 auto;
55286
55321
  min-width: 0;
55322
+ margin-inline-start: auto;
55287
55323
  }
55288
55324
 
55289
55325
  .modelControls dees-input-dropdown {
@@ -55293,19 +55329,26 @@ __publicField(_DeesHarnessComposer, "styles", [
55293
55329
  --dees-input-control-border: transparent;
55294
55330
  }
55295
55331
 
55332
+ /*
55333
+ * The pickers size from these widths, never from their labels (inline-size containment): a
55334
+ * long label truncates instead of asking the row for room, so the row wraps only when the
55335
+ * pickers at their minimum widths and the actions do not fit.
55336
+ */
55296
55337
  .accountSelect {
55297
- flex: 0 1 180px;
55298
- width: 180px;
55338
+ flex: 1 1 120px;
55299
55339
  min-width: 120px;
55340
+ max-width: 180px;
55341
+ contain: inline-size;
55300
55342
  }
55301
55343
 
55302
55344
  /* Model identifiers are provider-qualified ("anthropic/claude-opus-5"),
55303
55345
  so the control grows into the free space instead of truncating,
55304
55346
  while still shrinking on narrow hosts. */
55305
55347
  .modelSelect {
55306
- flex: 0 1 280px;
55307
- width: 280px;
55348
+ flex: 1 1 150px;
55308
55349
  min-width: 150px;
55350
+ max-width: 280px;
55351
+ contain: inline-size;
55309
55352
  }
55310
55353
 
55311
55354
  .effortSelect {
@@ -55313,10 +55356,6 @@ __publicField(_DeesHarnessComposer, "styles", [
55313
55356
  width: 110px;
55314
55357
  }
55315
55358
 
55316
- .spacer {
55317
- flex: 1;
55318
- }
55319
-
55320
55359
  .accountNote {
55321
55360
  display: flex;
55322
55361
  align-items: flex-start;
@@ -55353,11 +55392,7 @@ __publicField(_DeesHarnessComposer, "styles", [
55353
55392
  font-variant-numeric: tabular-nums;
55354
55393
  }
55355
55394
 
55356
- @container (max-width: 760px) {
55357
- .controlsRow {
55358
- flex-wrap: wrap;
55359
- }
55360
-
55395
+ @container harness-composer (max-width: 760px) {
55361
55396
  .modelControls {
55362
55397
  order: -1;
55363
55398
  flex: 1 0 100%;
@@ -125321,7 +125356,7 @@ var bright = {
125321
125356
  // ts_web/00_commitinfo_data.ts
125322
125357
  var commitinfo = {
125323
125358
  name: "@design.estate/dees-catalog",
125324
- version: "21.48.0",
125359
+ version: "21.49.0",
125325
125360
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
125326
125361
  };
125327
125362
  export {
@@ -125554,6 +125589,7 @@ export {
125554
125589
  harnessIsRecord,
125555
125590
  harnessIsSupportedAttachmentType,
125556
125591
  harnessLanguageForPath,
125592
+ harnessMarkdownRenderOptions,
125557
125593
  harnessMaxAttachmentBytes,
125558
125594
  harnessMaxTotalAttachmentBytes,
125559
125595
  harnessMediaTypeForFile,