@morlay/dsh-client-ui-primitives 0.0.14 → 0.0.16

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.
@@ -1217,7 +1217,6 @@ function rowRegistrations(namespaces, bundles) {
1217
1217
  }
1218
1218
  return plans;
1219
1219
  }
1220
- const FALLBACK_PRIORITY = 100;
1221
1220
  var RowRegistration = class {
1222
1221
  #deps;
1223
1222
  #live = /* @__PURE__ */ new Map();
@@ -1252,18 +1251,6 @@ var RowRegistration = class {
1252
1251
  this.#live.delete(ns);
1253
1252
  this.#deps.release(ns);
1254
1253
  }
1255
- for (const [ns, plan] of wanted) {
1256
- if (this.#live.has(ns)) continue;
1257
- const entry = this.#deps.entryFor(ns);
1258
- if (entry === void 0) continue;
1259
- const dispose = this.#deps.slots.register({
1260
- name: "plugins.row.config",
1261
- key: plan.key,
1262
- priority: FALLBACK_PRIORITY,
1263
- locale: this.#deps.locale
1264
- }, entry.component);
1265
- this.#live.set(ns, dispose);
1266
- }
1267
1254
  }
1268
1255
  #release() {
1269
1256
  for (const [ns, dispose] of this.#live) {
@@ -1459,25 +1446,25 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
1459
1446
  document.head.appendChild(tag);
1460
1447
  }
1461
1448
  var schema_form_module_css_default = {
1462
- "lineBody": "oZhWGq_lineBody",
1463
- "lineInvalid": "oZhWGq_lineInvalid",
1464
- "lineKey": "oZhWGq_lineKey",
1465
- "lineToken": "oZhWGq_lineToken",
1449
+ "valueTrigger": "oZhWGq_valueTrigger",
1466
1450
  "valueSlot": "oZhWGq_valueSlot",
1467
- "lineRow": "oZhWGq_lineRow",
1468
- "lineActions": "oZhWGq_lineActions",
1469
- "hint": "oZhWGq_hint",
1470
1451
  "lineComment": "oZhWGq_lineComment",
1471
- "lineValue": "oZhWGq_lineValue",
1472
- "editorRoot": "oZhWGq_editorRoot",
1452
+ "lineInvalid": "oZhWGq_lineInvalid",
1453
+ "lineActions": "oZhWGq_lineActions",
1454
+ "lineFold": "oZhWGq_lineFold",
1455
+ "lineBody": "oZhWGq_lineBody",
1456
+ "lineToken": "oZhWGq_lineToken",
1473
1457
  "lineNumber": "oZhWGq_lineNumber",
1458
+ "compactTextField": "oZhWGq_compactTextField",
1459
+ "hint": "oZhWGq_hint",
1474
1460
  "addWrap": "oZhWGq_addWrap",
1461
+ "editorRoot": "oZhWGq_editorRoot",
1462
+ "lineKey": "oZhWGq_lineKey",
1463
+ "lineRow": "oZhWGq_lineRow",
1464
+ "lineValue": "oZhWGq_lineValue",
1475
1465
  "compactInput": "oZhWGq_compactInput",
1476
- "valueTrigger": "oZhWGq_valueTrigger",
1477
1466
  "hoverActions": "oZhWGq_hoverActions",
1478
- "lineFold": "oZhWGq_lineFold",
1479
- "lineFoldSpacer": "oZhWGq_lineFoldSpacer",
1480
- "compactTextField": "oZhWGq_compactTextField"
1467
+ "lineFoldSpacer": "oZhWGq_lineFoldSpacer"
1481
1468
  };
1482
1469
  // src/client/schema-form/TruncatedTooltip.tsx
1483
1470
  function TruncatedTooltip({ label, children }) {
@@ -2461,55 +2448,55 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2461
2448
  document.head.appendChild(tag);
2462
2449
  }
2463
2450
  var layout_module_css_default = {
2464
- "padBody": "uxI0LG_padBody",
2465
- "alignStart": "uxI0LG_alignStart",
2466
- "padCard": "uxI0LG_padCard",
2467
- "gap8": "uxI0LG_gap8",
2468
- "padNone": "uxI0LG_padNone",
2469
- "row": "uxI0LG_row",
2470
- "gap10": "uxI0LG_gap10",
2471
- "sizeSm": "uxI0LG_sizeSm",
2451
+ "push": "uxI0LG_push",
2472
2452
  "padPage": "uxI0LG_padPage",
2473
- "tabular": "uxI0LG_tabular",
2474
- "sizeBase": "uxI0LG_sizeBase",
2475
- "scroll": "uxI0LG_scroll",
2476
- "gap0": "uxI0LG_gap0",
2477
2453
  "padBlocking": "uxI0LG_padBlocking",
2478
- "gap2": "uxI0LG_gap2",
2454
+ "sizeMd": "uxI0LG_sizeMd",
2455
+ "sizeBase": "uxI0LG_sizeBase",
2456
+ "sizeLg": "uxI0LG_sizeLg",
2457
+ "plain": "uxI0LG_plain",
2458
+ "tonePrimary": "uxI0LG_tonePrimary",
2459
+ "alignEnd": "uxI0LG_alignEnd",
2460
+ "gap4": "uxI0LG_gap4",
2461
+ "gap14": "uxI0LG_gap14",
2462
+ "sizeXs": "uxI0LG_sizeXs",
2463
+ "tabular": "uxI0LG_tabular",
2464
+ "alignCenter": "uxI0LG_alignCenter",
2479
2465
  "boxed": "uxI0LG_boxed",
2466
+ "justifyBetween": "uxI0LG_justifyBetween",
2467
+ "text": "uxI0LG_text",
2468
+ "fixed": "uxI0LG_fixed",
2469
+ "strong": "uxI0LG_strong",
2470
+ "wSearch": "uxI0LG_wSearch",
2471
+ "alignStart": "uxI0LG_alignStart",
2472
+ "gap2": "uxI0LG_gap2",
2473
+ "justifyCenter": "uxI0LG_justifyCenter",
2480
2474
  "gap12": "uxI0LG_gap12",
2481
- "padRow": "uxI0LG_padRow",
2482
- "gap4": "uxI0LG_gap4",
2475
+ "toneSecondary": "uxI0LG_toneSecondary",
2476
+ "narrow": "uxI0LG_narrow",
2483
2477
  "stack": "uxI0LG_stack",
2484
- "toneTertiary": "uxI0LG_toneTertiary",
2478
+ "gap8": "uxI0LG_gap8",
2479
+ "sizeSm": "uxI0LG_sizeSm",
2480
+ "padCard": "uxI0LG_padCard",
2485
2481
  "gap16": "uxI0LG_gap16",
2486
- "weightMedium": "uxI0LG_weightMedium",
2487
- "alignEnd": "uxI0LG_alignEnd",
2482
+ "gap0": "uxI0LG_gap0",
2488
2483
  "justifyEnd": "uxI0LG_justifyEnd",
2489
- "text": "uxI0LG_text",
2490
- "grow": "uxI0LG_grow",
2491
- "sizeXs": "uxI0LG_sizeXs",
2492
- "mono": "uxI0LG_mono",
2493
- "sizeMd": "uxI0LG_sizeMd",
2494
- "plain": "uxI0LG_plain",
2495
- "sizeLg": "uxI0LG_sizeLg",
2496
- "toneDanger": "uxI0LG_toneDanger",
2497
- "strong": "uxI0LG_strong",
2484
+ "scroll": "uxI0LG_scroll",
2485
+ "gap10": "uxI0LG_gap10",
2486
+ "toneTertiary": "uxI0LG_toneTertiary",
2498
2487
  "truncate": "uxI0LG_truncate",
2499
- "push": "uxI0LG_push",
2488
+ "padNone": "uxI0LG_padNone",
2500
2489
  "gapWide": "uxI0LG_gapWide",
2501
- "gap14": "uxI0LG_gap14",
2502
- "justifyCenter": "uxI0LG_justifyCenter",
2503
- "toneSecondary": "uxI0LG_toneSecondary",
2504
- "justifyBetween": "uxI0LG_justifyBetween",
2505
- "gap6": "uxI0LG_gap6",
2506
- "alignCenter": "uxI0LG_alignCenter",
2507
- "tonePrimary": "uxI0LG_tonePrimary",
2508
- "fixed": "uxI0LG_fixed",
2509
- "narrow": "uxI0LG_narrow",
2490
+ "grow": "uxI0LG_grow",
2510
2491
  "fill": "uxI0LG_fill",
2511
2492
  "wrap": "uxI0LG_wrap",
2512
- "wSearch": "uxI0LG_wSearch"
2493
+ "padRow": "uxI0LG_padRow",
2494
+ "mono": "uxI0LG_mono",
2495
+ "row": "uxI0LG_row",
2496
+ "gap6": "uxI0LG_gap6",
2497
+ "weightMedium": "uxI0LG_weightMedium",
2498
+ "padBody": "uxI0LG_padBody",
2499
+ "toneDanger": "uxI0LG_toneDanger"
2513
2500
  };
2514
2501
  // src/client/layout/scales.ts
2515
2502
  function gapClass(css, gap) {
@@ -2587,12 +2574,12 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2587
2574
  document.head.appendChild(tag);
2588
2575
  }
2589
2576
  var SettingsFieldRow_module_css_default = {
2590
- "label": "_0Kpzea_label",
2591
- "inline": "_0Kpzea_inline",
2592
- "row": "_0Kpzea_row",
2593
- "text": "_0Kpzea_text",
2594
2577
  "reset": "_0Kpzea_reset",
2578
+ "row": "_0Kpzea_row",
2579
+ "inline": "_0Kpzea_inline",
2580
+ "label": "_0Kpzea_label",
2595
2581
  "body": "_0Kpzea_body",
2582
+ "text": "_0Kpzea_text",
2596
2583
  "badge": "_0Kpzea_badge",
2597
2584
  "hint": "_0Kpzea_hint",
2598
2585
  "invalid": "_0Kpzea_invalid"
@@ -2682,8 +2669,8 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2682
2669
  document.head.appendChild(tag);
2683
2670
  }
2684
2671
  var Button_module_css_default = {
2685
- "danger": "SBA8ka_danger",
2686
- "label": "SBA8ka_label"
2672
+ "label": "SBA8ka_label",
2673
+ "danger": "SBA8ka_danger"
2687
2674
  };
2688
2675
  // src/client/controls/Button.tsx
2689
2676
  const Button = forwardRef(function Button({ className, tone, ...rest }, ref) {
@@ -2727,10 +2714,10 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2727
2714
  document.head.appendChild(tag);
2728
2715
  }
2729
2716
  var SeatButton_module_css_default = {
2717
+ "label": "io5HbW_label",
2730
2718
  "expanded": "io5HbW_expanded",
2731
2719
  "chevron": "io5HbW_chevron",
2732
2720
  "seat": "io5HbW_seat",
2733
- "label": "io5HbW_label",
2734
2721
  "icon": "io5HbW_icon"
2735
2722
  };
2736
2723
  // src/client/controls/SeatButton.tsx
@@ -2766,8 +2753,8 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2766
2753
  document.head.appendChild(tag);
2767
2754
  }
2768
2755
  var Spinner_module_css_default = {
2769
- "spinner": "If7fBq_spinner",
2770
- "spin": "If7fBq_spin"
2756
+ "spin": "If7fBq_spin",
2757
+ "spinner": "If7fBq_spinner"
2771
2758
  };
2772
2759
  // src/client/controls/Spinner.tsx
2773
2760
  function Spinner({ label }) {
@@ -2827,8 +2814,8 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2827
2814
  }
2828
2815
  var IconButton_module_css_default = {
2829
2816
  "circle": "G842ma_circle",
2830
- "iconButton": "G842ma_iconButton",
2831
- "sm": "G842ma_sm"
2817
+ "sm": "G842ma_sm",
2818
+ "iconButton": "G842ma_iconButton"
2832
2819
  };
2833
2820
  // src/client/controls/IconButton.tsx
2834
2821
  function IconButton({ label, children, type = "button", shape = "square", size = "md", className, ...rest }) {
@@ -2852,16 +2839,16 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2852
2839
  document.head.appendChild(tag);
2853
2840
  }
2854
2841
  var ModelRouteList_module_css_default = {
2855
- "text": "aGmQkW_text",
2856
- "group": "aGmQkW_group",
2857
- "error": "aGmQkW_error",
2842
+ "picked": "aGmQkW_picked",
2843
+ "id": "aGmQkW_id",
2844
+ "list": "aGmQkW_list",
2858
2845
  "item": "aGmQkW_item",
2859
2846
  "notice": "aGmQkW_notice",
2860
- "list": "aGmQkW_list",
2861
- "id": "aGmQkW_id",
2862
- "provider": "aGmQkW_provider",
2863
2847
  "name": "aGmQkW_name",
2864
- "picked": "aGmQkW_picked"
2848
+ "group": "aGmQkW_group",
2849
+ "provider": "aGmQkW_provider",
2850
+ "text": "aGmQkW_text",
2851
+ "error": "aGmQkW_error"
2865
2852
  };
2866
2853
  // src/client/controls/ModelRouteList.tsx
2867
2854
  function ModelRouteList({ label, candidates, selectedKey, disabled = false, status, loadingLabel, errorLabel, emptyLabel, onSelect }) {
@@ -2966,8 +2953,8 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
2966
2953
  var SearchSelect_module_css_default = {
2967
2954
  "empty": "pNIIcq_empty",
2968
2955
  "searchInput": "pNIIcq_searchInput",
2969
- "searchRow": "pNIIcq_searchRow",
2970
- "trigger": "pNIIcq_trigger"
2956
+ "trigger": "pNIIcq_trigger",
2957
+ "searchRow": "pNIIcq_searchRow"
2971
2958
  };
2972
2959
  // src/client/controls/SearchSelect.tsx
2973
2960
  function SearchSelect({ label, value, emptyLabel, options, disabled = false, searchLabel, noMatchLabel, onSelect }) {
@@ -3077,13 +3064,13 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
3077
3064
  document.head.appendChild(tag);
3078
3065
  }
3079
3066
  var TagInput_module_css_default = {
3080
- "input": "_0uSpIq_input",
3067
+ "chipRemove": "_0uSpIq_chipRemove",
3081
3068
  "empty": "_0uSpIq_empty",
3082
3069
  "box": "_0uSpIq_box",
3083
- "chipRemove": "_0uSpIq_chipRemove",
3084
- "chip": "_0uSpIq_chip",
3085
3070
  "row": "_0uSpIq_row",
3086
- "anchor": "_0uSpIq_anchor"
3071
+ "input": "_0uSpIq_input",
3072
+ "anchor": "_0uSpIq_anchor",
3073
+ "chip": "_0uSpIq_chip"
3087
3074
  };
3088
3075
  // src/client/controls/TagInput.tsx
3089
3076
  function TagInput({ value, onChange, options, placeholder, label, disabled = false, noMatchLabel = "", removeLabel }) {
package/dist/client.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_client = require("./client-IP0d46V9.cjs");
2
+ const require_client = require("./client-DeSUWkTT.cjs");
3
3
  const require_reference = require("./reference-BExb65Ah.cjs");
4
4
  exports.Bubble = require_client.Bubble;
5
5
  exports.Button = require_client.Button;
package/dist/client.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as Bubble, A as SearchSelect, B as VisuallyHidden, C as SuggestedKeys, D as parseTagList, E as mergeTags, F as ModelRouteCandidate, G as SpinnerProps, H as TimeLabel, I as ModelRouteList, J as DisclosureRow, K as SeatButton, L as ModelRouteListProps, M as SearchSelectProps, N as MultilineField, O as TagInput, P as MultilineFieldProps, Q as ButtonTone, R as IconButton, S as FieldNode, T as walkFields, U as TimeLabelProps, V as VisuallyHiddenProps, W as Spinner, X as Button, Y as DisclosureRowProps, Z as ButtonProps, _ as SelectOption, a as ReferenceMarkdownProps, at as Stack, b as failureOf, c as index_d_exports, ct as RowProps, d as SchemaFormActions, dt as LayoutJustify, et as BubbleProps, f as SchemaFormController, ft as LayoutPad, g as SchemaFormHints, gt as markdownLabels, h as projectRoot, ht as MarkdownCopySeat, i as ReferenceMarkdown, it as TextProps, j as SearchSelectOption, k as TagInputProps, l as rowRegistrations, lt as LayoutAlign, m as SchemaFormState, mt as TextTone, n as inject, nt as SettingsFieldRowProps, o as referenceMentions, ot as StackProps, p as SchemaFormFace, pt as TextSize, q as SeatButtonProps, r as ReferenceActions, rt as Text, s as NS, st as Row, t as apply, tt as SettingsFieldRow, u as SchemaFormLocaleKey, ut as LayoutGap, v as SelectSpec, w as WalkedField, x as FieldMeta, y as ValidationFailure, z as IconButtonProps } from "./index-DWlN5aPg.mjs";
1
+ import { $ as Bubble, A as SearchSelect, B as VisuallyHidden, C as SuggestedKeys, D as parseTagList, E as mergeTags, F as ModelRouteCandidate, G as SpinnerProps, H as TimeLabel, I as ModelRouteList, J as DisclosureRow, K as SeatButton, L as ModelRouteListProps, M as SearchSelectProps, N as MultilineField, O as TagInput, P as MultilineFieldProps, Q as ButtonTone, R as IconButton, S as FieldNode, T as walkFields, U as TimeLabelProps, V as VisuallyHiddenProps, W as Spinner, X as Button, Y as DisclosureRowProps, Z as ButtonProps, _ as SelectOption, a as ReferenceMarkdownProps, at as Stack, b as failureOf, c as index_d_exports, ct as RowProps, d as SchemaFormActions, dt as LayoutJustify, et as BubbleProps, f as SchemaFormController, ft as LayoutPad, g as SchemaFormHints, gt as markdownLabels, h as projectRoot, ht as MarkdownCopySeat, i as ReferenceMarkdown, it as TextProps, j as SearchSelectOption, k as TagInputProps, l as rowRegistrations, lt as LayoutAlign, m as SchemaFormState, mt as TextTone, n as inject, nt as SettingsFieldRowProps, o as referenceMentions, ot as StackProps, p as SchemaFormFace, pt as TextSize, q as SeatButtonProps, r as ReferenceActions, rt as Text, s as NS, st as Row, t as apply, tt as SettingsFieldRow, u as SchemaFormLocaleKey, ut as LayoutGap, v as SelectSpec, w as WalkedField, x as FieldMeta, y as ValidationFailure, z as IconButtonProps } from "./index-C_sfS1QK.mjs";
2
2
  import { a as formatReferenceMention, c as parseReferenceToken, i as formatReference, n as ReferenceSpan, o as isLocalReference, r as findReferences, s as parseReference, t as Reference } from "./reference-Bnz5fGkr.mjs";
3
3
  export * from "@deepseek-ai/dsh-client-ui-primitives";
4
4
  export { Bubble, type BubbleProps, Button, type ButtonProps, type ButtonTone, DisclosureRow, type DisclosureRowProps, type FieldMeta, type FieldNode, IconButton, type IconButtonProps, type LayoutAlign, type LayoutGap, type LayoutJustify, type LayoutPad, MarkdownCopySeat, type ModelRouteCandidate, ModelRouteList, type ModelRouteListProps, MultilineField, type MultilineFieldProps, type Reference, type ReferenceActions, ReferenceMarkdown, type ReferenceMarkdownProps, type ReferenceSpan, Row, type RowProps, NS as SCHEMA_FORM_NS, type SchemaFormActions, SchemaFormController, type SchemaFormFace, SchemaFormHints, type SchemaFormLocaleKey, type SchemaFormState, SearchSelect, type SearchSelectOption, type SearchSelectProps, SeatButton, type SeatButtonProps, type SelectOption, type SelectSpec, SettingsFieldRow, type SettingsFieldRowProps, Spinner, type SpinnerProps, Stack, type StackProps, type SuggestedKeys, TagInput, type TagInputProps, Text, type TextProps, type TextSize, type TextTone, TimeLabel, type TimeLabelProps, type ValidationFailure, VisuallyHidden, type VisuallyHiddenProps, type WalkedField, apply, failureOf, findReferences, formatReference, formatReferenceMention, inject, isLocalReference, markdownLabels, mergeTags, parseReference, parseReferenceToken, parseTagList, projectRoot, referenceMentions, rowRegistrations, index_d_exports as schemaForm, walkFields };
package/dist/client.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as Bubble, A as SearchSelect, B as VisuallyHidden, C as SuggestedKeys, D as parseTagList, E as mergeTags, F as ModelRouteCandidate, G as SpinnerProps, H as TimeLabel, I as ModelRouteList, J as DisclosureRow, K as SeatButton, L as ModelRouteListProps, M as SearchSelectProps, N as MultilineField, O as TagInput, P as MultilineFieldProps, Q as ButtonTone, R as IconButton, S as FieldNode, T as walkFields, U as TimeLabelProps, V as VisuallyHiddenProps, W as Spinner, X as Button, Y as DisclosureRowProps, Z as ButtonProps, _ as SelectOption, a as ReferenceMarkdownProps, at as Stack, b as failureOf, c as index_d_exports, ct as RowProps, d as SchemaFormActions, dt as LayoutJustify, et as BubbleProps, f as SchemaFormController, ft as LayoutPad, g as SchemaFormHints, gt as markdownLabels, h as projectRoot, ht as MarkdownCopySeat, i as ReferenceMarkdown, it as TextProps, j as SearchSelectOption, k as TagInputProps, l as rowRegistrations, lt as LayoutAlign, m as SchemaFormState, mt as TextTone, n as inject, nt as SettingsFieldRowProps, o as referenceMentions, ot as StackProps, p as SchemaFormFace, pt as TextSize, q as SeatButtonProps, r as ReferenceActions, rt as Text, s as NS, st as Row, t as apply, tt as SettingsFieldRow, u as SchemaFormLocaleKey, ut as LayoutGap, v as SelectSpec, w as WalkedField, x as FieldMeta, y as ValidationFailure, z as IconButtonProps } from "./index-DWlN5aPg.mjs";
1
+ import { $ as Bubble, A as SearchSelect, B as VisuallyHidden, C as SuggestedKeys, D as parseTagList, E as mergeTags, F as ModelRouteCandidate, G as SpinnerProps, H as TimeLabel, I as ModelRouteList, J as DisclosureRow, K as SeatButton, L as ModelRouteListProps, M as SearchSelectProps, N as MultilineField, O as TagInput, P as MultilineFieldProps, Q as ButtonTone, R as IconButton, S as FieldNode, T as walkFields, U as TimeLabelProps, V as VisuallyHiddenProps, W as Spinner, X as Button, Y as DisclosureRowProps, Z as ButtonProps, _ as SelectOption, a as ReferenceMarkdownProps, at as Stack, b as failureOf, c as index_d_exports, ct as RowProps, d as SchemaFormActions, dt as LayoutJustify, et as BubbleProps, f as SchemaFormController, ft as LayoutPad, g as SchemaFormHints, gt as markdownLabels, h as projectRoot, ht as MarkdownCopySeat, i as ReferenceMarkdown, it as TextProps, j as SearchSelectOption, k as TagInputProps, l as rowRegistrations, lt as LayoutAlign, m as SchemaFormState, mt as TextTone, n as inject, nt as SettingsFieldRowProps, o as referenceMentions, ot as StackProps, p as SchemaFormFace, pt as TextSize, q as SeatButtonProps, r as ReferenceActions, rt as Text, s as NS, st as Row, t as apply, tt as SettingsFieldRow, u as SchemaFormLocaleKey, ut as LayoutGap, v as SelectSpec, w as WalkedField, x as FieldMeta, y as ValidationFailure, z as IconButtonProps } from "./index-C_sfS1QK.mjs";
2
2
  import { a as formatReferenceMention, c as parseReferenceToken, i as formatReference, n as ReferenceSpan, o as isLocalReference, r as findReferences, s as parseReference, t as Reference } from "./reference-Bnz5fGkr.mjs";
3
3
  export * from "@deepseek-ai/dsh-client-ui-primitives";
4
4
  export { Bubble, type BubbleProps, Button, type ButtonProps, type ButtonTone, DisclosureRow, type DisclosureRowProps, type FieldMeta, type FieldNode, IconButton, type IconButtonProps, type LayoutAlign, type LayoutGap, type LayoutJustify, type LayoutPad, MarkdownCopySeat, type ModelRouteCandidate, ModelRouteList, type ModelRouteListProps, MultilineField, type MultilineFieldProps, type Reference, type ReferenceActions, ReferenceMarkdown, type ReferenceMarkdownProps, type ReferenceSpan, Row, type RowProps, NS as SCHEMA_FORM_NS, type SchemaFormActions, SchemaFormController, type SchemaFormFace, SchemaFormHints, type SchemaFormLocaleKey, type SchemaFormState, SearchSelect, type SearchSelectOption, type SearchSelectProps, SeatButton, type SeatButtonProps, type SelectOption, type SelectSpec, SettingsFieldRow, type SettingsFieldRowProps, Spinner, type SpinnerProps, Stack, type StackProps, type SuggestedKeys, TagInput, type TagInputProps, Text, type TextProps, type TextSize, type TextTone, TimeLabel, type TimeLabelProps, type ValidationFailure, VisuallyHidden, type VisuallyHiddenProps, type WalkedField, apply, failureOf, findReferences, formatReference, formatReferenceMention, inject, isLocalReference, markdownLabels, mergeTags, parseReference, parseReferenceToken, parseTagList, projectRoot, referenceMentions, rowRegistrations, index_d_exports as schemaForm, walkFields };
package/dist/client.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as failureOf, C as markdownLabels, D as SchemaFormHints, E as rowRegistrations, O as SchemaFormController, S as Row, T as schema_form_exports, _ as Button, a as TagInput, b as Text, c as SearchSelect, d as IconButton, f as VisuallyHidden, g as DisclosureRow, h as SeatButton, i as referenceMentions, j as walkFields, k as projectRoot, l as MultilineField, m as Spinner, n as inject, o as mergeTags, p as TimeLabel, r as ReferenceMarkdown, s as parseTagList, t as apply, u as ModelRouteList, v as Bubble, w as NS, x as Stack, y as SettingsFieldRow } from "./client-CxlXZo6u.mjs";
1
+ import { A as failureOf, C as markdownLabels, D as SchemaFormHints, E as rowRegistrations, O as SchemaFormController, S as Row, T as schema_form_exports, _ as Button, a as TagInput, b as Text, c as SearchSelect, d as IconButton, f as VisuallyHidden, g as DisclosureRow, h as SeatButton, i as referenceMentions, j as walkFields, k as projectRoot, l as MultilineField, m as Spinner, n as inject, o as mergeTags, p as TimeLabel, r as ReferenceMarkdown, s as parseTagList, t as apply, u as ModelRouteList, v as Bubble, w as NS, x as Stack, y as SettingsFieldRow } from "./client-mET8QV2B.mjs";
2
2
  import { a as parseReference, i as isLocalReference, n as formatReference, o as parseReferenceToken, r as formatReferenceMention, t as findReferences } from "./reference-DTa9OfbR.mjs";
3
3
  export * from "@deepseek-ai/dsh-client-ui-primitives";
4
4
  export { Bubble, Button, DisclosureRow, IconButton, ModelRouteList, MultilineField, ReferenceMarkdown, Row, NS as SCHEMA_FORM_NS, SchemaFormController, SchemaFormHints, SearchSelect, SeatButton, SettingsFieldRow, Spinner, Stack, TagInput, Text, TimeLabel, VisuallyHidden, apply, failureOf, findReferences, formatReference, formatReferenceMention, inject, isLocalReference, markdownLabels, mergeTags, parseReference, parseReferenceToken, parseTagList, projectRoot, referenceMentions, rowRegistrations, schema_form_exports as schemaForm, walkFields };
@@ -120,7 +120,7 @@ interface ModelRouteListProps {
120
120
  }
121
121
  declare function ModelRouteList({ label, candidates, selectedKey, disabled, status, loadingLabel, errorLabel, emptyLabel, onSelect }: ModelRouteListProps): ReactNode;
122
122
  type MultilineFieldProps = TextareaHTMLAttributes<HTMLTextAreaElement>;
123
- declare function MultilineField({ rows, className, ...rest }: MultilineFieldProps): import("react/jsx-runtime").JSX.Element;
123
+ declare function MultilineField({ rows, className, ...rest }: MultilineFieldProps): import("react").JSX.Element;
124
124
  interface SearchSelectOption {
125
125
  readonly value: string;
126
126
  readonly label?: string | undefined;
@@ -581,7 +581,7 @@ interface ReferenceMarkdownProps {
581
581
  readonly pathImages?: MarkdownPathImages | undefined;
582
582
  }
583
583
  declare function referenceMentions(actions?: ReferenceActions, tokens?: ReadonlyMap<string, Reference>): MarkdownFileMentions;
584
- declare const ReferenceMarkdown: import("react").MemoExoticComponent<({ text, labels, actions, streaming, pathImages }: ReferenceMarkdownProps) => import("react/jsx-runtime").JSX.Element>;
584
+ declare const ReferenceMarkdown: import("react").MemoExoticComponent<({ text, labels, actions, streaming, pathImages }: ReferenceMarkdownProps) => import("react").JSX.Element>;
585
585
  declare const inject: readonly string[];
586
586
  declare function apply(ctx: Context): void;
587
587
  export { Bubble as $, SearchSelect as A, VisuallyHidden as B, SuggestedKeys as C, parseTagList as D, mergeTags as E, ModelRouteCandidate as F, SpinnerProps as G, TimeLabel as H, ModelRouteList as I, DisclosureRow$1 as J, SeatButton as K, ModelRouteListProps as L, SearchSelectProps as M, MultilineField as N, TagInput as O, MultilineFieldProps as P, ButtonTone as Q, IconButton as R, FieldNode as S, walkFields as T, TimeLabelProps as U, VisuallyHiddenProps as V, Spinner as W, Button$1 as X, DisclosureRowProps as Y, ButtonProps as Z, SelectOption as _, ReferenceMarkdownProps as a, Stack as at, failureOf as b, index_d_exports as c, RowProps as ct, SchemaFormActions as d, LayoutJustify as dt, BubbleProps as et, SchemaFormController as f, LayoutPad as ft, SchemaFormHints as g, markdownLabels as gt, projectRoot as h, MarkdownCopySeat as ht, ReferenceMarkdown as i, TextProps as it, SearchSelectOption as j, TagInputProps as k, rowRegistrations as l, LayoutAlign as lt, SchemaFormState as m, TextTone as mt, inject as n, SettingsFieldRowProps as nt, referenceMentions as o, StackProps as ot, SchemaFormFace as p, TextSize as pt, SeatButtonProps as q, ReferenceActions as r, Text as rt, NS as s, Row as st, apply as t, SettingsFieldRow as tt, SchemaFormLocaleKey as u, LayoutGap as ut, SelectSpec as v, WalkedField as w, FieldMeta as x, ValidationFailure as y, IconButtonProps as z };
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_client = require("./client-IP0d46V9.cjs");
2
+ const require_client = require("./client-DeSUWkTT.cjs");
3
3
  const require_reference = require("./reference-BExb65Ah.cjs");
4
4
  exports.Bubble = require_client.Bubble;
5
5
  exports.Button = require_client.Button;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as Bubble, A as SearchSelect, B as VisuallyHidden, C as SuggestedKeys, D as parseTagList, E as mergeTags, F as ModelRouteCandidate, G as SpinnerProps, H as TimeLabel, I as ModelRouteList, J as DisclosureRow, K as SeatButton, L as ModelRouteListProps, M as SearchSelectProps, N as MultilineField, O as TagInput, P as MultilineFieldProps, Q as ButtonTone, R as IconButton, S as FieldNode, T as walkFields, U as TimeLabelProps, V as VisuallyHiddenProps, W as Spinner, X as Button, Y as DisclosureRowProps, Z as ButtonProps, _ as SelectOption, a as ReferenceMarkdownProps, at as Stack, b as failureOf, c as index_d_exports, ct as RowProps, d as SchemaFormActions, dt as LayoutJustify, et as BubbleProps, f as SchemaFormController, ft as LayoutPad, g as SchemaFormHints, gt as markdownLabels, h as projectRoot, ht as MarkdownCopySeat, i as ReferenceMarkdown, it as TextProps, j as SearchSelectOption, k as TagInputProps, l as rowRegistrations, lt as LayoutAlign, m as SchemaFormState, mt as TextTone, n as inject, nt as SettingsFieldRowProps, o as referenceMentions, ot as StackProps, p as SchemaFormFace, pt as TextSize, q as SeatButtonProps, r as ReferenceActions, rt as Text, s as NS, st as Row, t as apply, tt as SettingsFieldRow, u as SchemaFormLocaleKey, ut as LayoutGap, v as SelectSpec, w as WalkedField, x as FieldMeta, y as ValidationFailure, z as IconButtonProps } from "./index-DWlN5aPg.mjs";
1
+ import { $ as Bubble, A as SearchSelect, B as VisuallyHidden, C as SuggestedKeys, D as parseTagList, E as mergeTags, F as ModelRouteCandidate, G as SpinnerProps, H as TimeLabel, I as ModelRouteList, J as DisclosureRow, K as SeatButton, L as ModelRouteListProps, M as SearchSelectProps, N as MultilineField, O as TagInput, P as MultilineFieldProps, Q as ButtonTone, R as IconButton, S as FieldNode, T as walkFields, U as TimeLabelProps, V as VisuallyHiddenProps, W as Spinner, X as Button, Y as DisclosureRowProps, Z as ButtonProps, _ as SelectOption, a as ReferenceMarkdownProps, at as Stack, b as failureOf, c as index_d_exports, ct as RowProps, d as SchemaFormActions, dt as LayoutJustify, et as BubbleProps, f as SchemaFormController, ft as LayoutPad, g as SchemaFormHints, gt as markdownLabels, h as projectRoot, ht as MarkdownCopySeat, i as ReferenceMarkdown, it as TextProps, j as SearchSelectOption, k as TagInputProps, l as rowRegistrations, lt as LayoutAlign, m as SchemaFormState, mt as TextTone, n as inject, nt as SettingsFieldRowProps, o as referenceMentions, ot as StackProps, p as SchemaFormFace, pt as TextSize, q as SeatButtonProps, r as ReferenceActions, rt as Text, s as NS, st as Row, t as apply, tt as SettingsFieldRow, u as SchemaFormLocaleKey, ut as LayoutGap, v as SelectSpec, w as WalkedField, x as FieldMeta, y as ValidationFailure, z as IconButtonProps } from "./index-C_sfS1QK.mjs";
2
2
  import { a as formatReferenceMention, c as parseReferenceToken, i as formatReference, n as ReferenceSpan, o as isLocalReference, r as findReferences, s as parseReference, t as Reference } from "./reference-Bnz5fGkr.mjs";
3
3
  export * from "@deepseek-ai/dsh-client-ui-primitives";
4
4
  export { Bubble, type BubbleProps, Button, type ButtonProps, type ButtonTone, DisclosureRow, type DisclosureRowProps, type FieldMeta, type FieldNode, IconButton, type IconButtonProps, type LayoutAlign, type LayoutGap, type LayoutJustify, type LayoutPad, MarkdownCopySeat, type ModelRouteCandidate, ModelRouteList, type ModelRouteListProps, MultilineField, type MultilineFieldProps, type Reference, type ReferenceActions, ReferenceMarkdown, type ReferenceMarkdownProps, type ReferenceSpan, Row, type RowProps, NS as SCHEMA_FORM_NS, type SchemaFormActions, SchemaFormController, type SchemaFormFace, SchemaFormHints, type SchemaFormLocaleKey, type SchemaFormState, SearchSelect, type SearchSelectOption, type SearchSelectProps, SeatButton, type SeatButtonProps, type SelectOption, type SelectSpec, SettingsFieldRow, type SettingsFieldRowProps, Spinner, type SpinnerProps, Stack, type StackProps, type SuggestedKeys, TagInput, type TagInputProps, Text, type TextProps, type TextSize, type TextTone, TimeLabel, type TimeLabelProps, type ValidationFailure, VisuallyHidden, type VisuallyHiddenProps, type WalkedField, apply, failureOf, findReferences, formatReference, formatReferenceMention, inject, isLocalReference, markdownLabels, mergeTags, parseReference, parseReferenceToken, parseTagList, projectRoot, referenceMentions, rowRegistrations, index_d_exports as schemaForm, walkFields };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as failureOf, C as markdownLabels, D as SchemaFormHints, E as rowRegistrations, O as SchemaFormController, S as Row, T as schema_form_exports, _ as Button, a as TagInput, b as Text, c as SearchSelect, d as IconButton, f as VisuallyHidden, g as DisclosureRow, h as SeatButton, i as referenceMentions, j as walkFields, k as projectRoot, l as MultilineField, m as Spinner, n as inject, o as mergeTags, p as TimeLabel, r as ReferenceMarkdown, s as parseTagList, t as apply, u as ModelRouteList, v as Bubble, w as NS, x as Stack, y as SettingsFieldRow } from "./client-CxlXZo6u.mjs";
1
+ import { A as failureOf, C as markdownLabels, D as SchemaFormHints, E as rowRegistrations, O as SchemaFormController, S as Row, T as schema_form_exports, _ as Button, a as TagInput, b as Text, c as SearchSelect, d as IconButton, f as VisuallyHidden, g as DisclosureRow, h as SeatButton, i as referenceMentions, j as walkFields, k as projectRoot, l as MultilineField, m as Spinner, n as inject, o as mergeTags, p as TimeLabel, r as ReferenceMarkdown, s as parseTagList, t as apply, u as ModelRouteList, v as Bubble, w as NS, x as Stack, y as SettingsFieldRow } from "./client-mET8QV2B.mjs";
2
2
  import { a as parseReference, i as isLocalReference, n as formatReference, o as parseReferenceToken, r as formatReferenceMention, t as findReferences } from "./reference-DTa9OfbR.mjs";
3
3
  export * from "@deepseek-ai/dsh-client-ui-primitives";
4
4
  export { Bubble, Button, DisclosureRow, IconButton, ModelRouteList, MultilineField, ReferenceMarkdown, Row, NS as SCHEMA_FORM_NS, SchemaFormController, SchemaFormHints, SearchSelect, SeatButton, SettingsFieldRow, Spinner, Stack, TagInput, Text, TimeLabel, VisuallyHidden, apply, failureOf, findReferences, formatReference, formatReferenceMention, inject, isLocalReference, markdownLabels, mergeTags, parseReference, parseReferenceToken, parseTagList, projectRoot, referenceMentions, rowRegistrations, schema_form_exports as schemaForm, walkFields };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/dsh-client-ui-primitives",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "client UI kit for this workspace: re-exports the official ui-primitives (Button / Menu / Input / Tag / Modal / Switch / SettingsForm …) plus our own layout primitives (Stack / Row / Text / Panel) and controls (TagInput / SearchSelect / ModelRouteList / Spinner …), all styled with the same CSS Modules + `--dsw-*` tokens as upstream; also the shared reference parser/renderer (findReferences / parseReferenceToken) and the schema-generated row config page. Ships as an inlined client library (`dsh.client.inline`), not as an assembly row.",
5
5
  "keywords": [
6
6
  "client",
@@ -46,28 +46,28 @@
46
46
  "micromark-util-types": "^2.0.2"
47
47
  },
48
48
  "devDependencies": {
49
- "@deepseek-ai/dsh-util-values": "^0.2.2-alpha.3",
50
- "@deepseek-ai/schemastery": "^3.18.6-alpha.2",
51
- "@morlay/session-rdb": "0.1.10",
49
+ "@deepseek-ai/dsh-util-values": "^0.2.2-rc.1",
50
+ "@deepseek-ai/schemastery": "^3.19.0",
51
+ "@morlay/session-rdb": "0.1.12",
52
52
  "@testing-library/react": "^16.3.0",
53
53
  "@types/mdast": "^4.0.4",
54
54
  "@types/react": "~18.3.1",
55
55
  "react-dom": "^18.2.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "@deepseek-ai/cordis": "^4.0.6-alpha.2",
59
- "@deepseek-ai/dsh-api-remotes": "^0.2.2-alpha.3",
60
- "@deepseek-ai/dsh-client-locale": "^0.2.2-alpha.3",
61
- "@deepseek-ai/dsh-client-store": "^0.2.2-alpha.3",
62
- "@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.2-alpha.3",
63
- "@deepseek-ai/dsh-client-ui-primitives": "^0.2.2-alpha.3",
64
- "@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-alpha.3",
65
- "@deepseek-ai/dsh-client-ui-settings": "^0.2.2-alpha.3",
66
- "@deepseek-ai/dsh-client-ui-slots": "^0.2.2-alpha.3",
58
+ "@deepseek-ai/cordis": "^4.1.0",
59
+ "@deepseek-ai/dsh-api-remotes": "^0.2.2-rc.1",
60
+ "@deepseek-ai/dsh-client-locale": "^0.2.2-rc.1",
61
+ "@deepseek-ai/dsh-client-store": "^0.2.2-rc.1",
62
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.2-rc.1",
63
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.2.2-rc.1",
64
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.2.2-rc.1",
65
+ "@deepseek-ai/dsh-client-ui-settings": "^0.2.2-rc.1",
66
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.2-rc.1",
67
67
  "react": "^18.2.0"
68
68
  },
69
69
  "engines": {
70
- "dsh": ">= 0.2.2-alpha.3 < 0.2.3"
70
+ "dsh": ">= 0.2.2-rc.1 < 0.2.3"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "pnpm exec tsdown"
@@ -62,9 +62,6 @@ export interface RowRegistrationDeps {
62
62
  release(ns: string): void;
63
63
  }
64
64
 
65
- // 自动项的兜底优先级:手写卡片(默认 0)遮住它。
66
- const FALLBACK_PRIORITY = 100;
67
-
68
65
  // 自动注册的差分器:按 describe 与 bundle 清单把「该有的行」与「已在的行」对齐。
69
66
  export class RowRegistration {
70
67
  readonly #deps: RowRegistrationDeps;
@@ -106,21 +103,7 @@ export class RowRegistration {
106
103
  this.#live.delete(ns);
107
104
  this.#deps.release(ns);
108
105
  }
109
- for (const [ns, plan] of wanted) {
110
- if (this.#live.has(ns)) continue;
111
- const entry = this.#deps.entryFor(ns);
112
- if (entry === undefined) continue;
113
- const dispose = this.#deps.slots.register(
114
- {
115
- name: "plugins.row.config",
116
- key: plan.key,
117
- priority: FALLBACK_PRIORITY,
118
- locale: this.#deps.locale,
119
- },
120
- entry.component,
121
- );
122
- this.#live.set(ns, dispose);
123
- }
106
+ // 行配置入口(`plugins.row.config`)随配置页一起移除:这里不再注册该 keyed slot 的项。
124
107
  }
125
108
 
126
109
  // 注销全部并释放控制器。