@morlay/ui-conversation-manager 0.1.12 → 0.1.13

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/client.cjs CHANGED
@@ -1364,7 +1364,6 @@ window.__ModuleLoader__.load({
1364
1364
  }
1365
1365
  return plans;
1366
1366
  }
1367
- const FALLBACK_PRIORITY = 100;
1368
1367
  var RowRegistration = class {
1369
1368
  #deps;
1370
1369
  #live = /* @__PURE__ */ new Map();
@@ -1399,18 +1398,6 @@ window.__ModuleLoader__.load({
1399
1398
  this.#live.delete(ns);
1400
1399
  this.#deps.release(ns);
1401
1400
  }
1402
- for (const [ns, plan] of wanted) {
1403
- if (this.#live.has(ns)) continue;
1404
- const entry = this.#deps.entryFor(ns);
1405
- if (entry === void 0) continue;
1406
- const dispose = this.#deps.slots.register({
1407
- name: "plugins.row.config",
1408
- key: plan.key,
1409
- priority: FALLBACK_PRIORITY,
1410
- locale: this.#deps.locale
1411
- }, entry.component);
1412
- this.#live.set(ns, dispose);
1413
- }
1414
1401
  }
1415
1402
  #release() {
1416
1403
  for (const [ns, dispose] of this.#live) {
@@ -1607,25 +1594,25 @@ window.__ModuleLoader__.load({
1607
1594
  document.head.appendChild(tag);
1608
1595
  }
1609
1596
  var schema_form_module_css_default = {
1610
- "lineFold": "oZhWGq_lineFold",
1611
- "lineNumber": "oZhWGq_lineNumber",
1612
1597
  "lineActions": "oZhWGq_lineActions",
1613
- "compactInput": "oZhWGq_compactInput",
1614
1598
  "lineToken": "oZhWGq_lineToken",
1615
- "lineFoldSpacer": "oZhWGq_lineFoldSpacer",
1616
- "valueSlot": "oZhWGq_valueSlot",
1617
- "lineInvalid": "oZhWGq_lineInvalid",
1599
+ "lineFold": "oZhWGq_lineFold",
1618
1600
  "hint": "oZhWGq_hint",
1619
- "hoverActions": "oZhWGq_hoverActions",
1620
- "lineBody": "oZhWGq_lineBody",
1621
- "editorRoot": "oZhWGq_editorRoot",
1622
1601
  "lineKey": "oZhWGq_lineKey",
1623
1602
  "lineValue": "oZhWGq_lineValue",
1624
- "compactTextField": "oZhWGq_compactTextField",
1625
- "lineComment": "oZhWGq_lineComment",
1603
+ "lineInvalid": "oZhWGq_lineInvalid",
1604
+ "valueSlot": "oZhWGq_valueSlot",
1605
+ "lineNumber": "oZhWGq_lineNumber",
1606
+ "editorRoot": "oZhWGq_editorRoot",
1626
1607
  "valueTrigger": "oZhWGq_valueTrigger",
1608
+ "addWrap": "oZhWGq_addWrap",
1627
1609
  "lineRow": "oZhWGq_lineRow",
1628
- "addWrap": "oZhWGq_addWrap"
1610
+ "lineComment": "oZhWGq_lineComment",
1611
+ "compactTextField": "oZhWGq_compactTextField",
1612
+ "lineBody": "oZhWGq_lineBody",
1613
+ "compactInput": "oZhWGq_compactInput",
1614
+ "hoverActions": "oZhWGq_hoverActions",
1615
+ "lineFoldSpacer": "oZhWGq_lineFoldSpacer"
1629
1616
  };
1630
1617
  // ../../client/dsh-client-ui-primitives/src/client/schema-form/TruncatedTooltip.tsx
1631
1618
  function TruncatedTooltip({ label, children }) {
@@ -2609,55 +2596,55 @@ window.__ModuleLoader__.load({
2609
2596
  document.head.appendChild(tag);
2610
2597
  }
2611
2598
  var layout_module_css_default = {
2612
- "padBody": "uxI0LG_padBody",
2613
- "fill": "uxI0LG_fill",
2614
- "alignStart": "uxI0LG_alignStart",
2615
- "toneTertiary": "uxI0LG_toneTertiary",
2616
- "weightMedium": "uxI0LG_weightMedium",
2617
- "strong": "uxI0LG_strong",
2618
- "gapWide": "uxI0LG_gapWide",
2619
- "sizeSm": "uxI0LG_sizeSm",
2620
- "grow": "uxI0LG_grow",
2621
- "row": "uxI0LG_row",
2599
+ "gap0": "uxI0LG_gap0",
2622
2600
  "gap12": "uxI0LG_gap12",
2623
- "tabular": "uxI0LG_tabular",
2624
- "gap4": "uxI0LG_gap4",
2625
- "justifyEnd": "uxI0LG_justifyEnd",
2626
- "sizeMd": "uxI0LG_sizeMd",
2627
2601
  "gap6": "uxI0LG_gap6",
2628
- "stack": "uxI0LG_stack",
2629
- "sizeLg": "uxI0LG_sizeLg",
2630
- "justifyCenter": "uxI0LG_justifyCenter",
2602
+ "justifyBetween": "uxI0LG_justifyBetween",
2603
+ "toneTertiary": "uxI0LG_toneTertiary",
2604
+ "sizeBase": "uxI0LG_sizeBase",
2605
+ "alignEnd": "uxI0LG_alignEnd",
2631
2606
  "padPage": "uxI0LG_padPage",
2632
- "plain": "uxI0LG_plain",
2607
+ "boxed": "uxI0LG_boxed",
2608
+ "gapWide": "uxI0LG_gapWide",
2633
2609
  "gap14": "uxI0LG_gap14",
2610
+ "alignStart": "uxI0LG_alignStart",
2611
+ "gap16": "uxI0LG_gap16",
2612
+ "sizeSm": "uxI0LG_sizeSm",
2613
+ "sizeMd": "uxI0LG_sizeMd",
2614
+ "grow": "uxI0LG_grow",
2615
+ "weightMedium": "uxI0LG_weightMedium",
2616
+ "padRow": "uxI0LG_padRow",
2617
+ "wrap": "uxI0LG_wrap",
2634
2618
  "padBlocking": "uxI0LG_padBlocking",
2635
- "alignEnd": "uxI0LG_alignEnd",
2636
- "push": "uxI0LG_push",
2637
- "padNone": "uxI0LG_padNone",
2638
- "text": "uxI0LG_text",
2639
2619
  "sizeXs": "uxI0LG_sizeXs",
2640
- "gap10": "uxI0LG_gap10",
2641
- "wrap": "uxI0LG_wrap",
2642
- "toneSecondary": "uxI0LG_toneSecondary",
2643
- "toneDanger": "uxI0LG_toneDanger",
2644
- "fixed": "uxI0LG_fixed",
2620
+ "tabular": "uxI0LG_tabular",
2645
2621
  "wSearch": "uxI0LG_wSearch",
2646
- "gap8": "uxI0LG_gap8",
2647
- "truncate": "uxI0LG_truncate",
2648
- "boxed": "uxI0LG_boxed",
2622
+ "toneDanger": "uxI0LG_toneDanger",
2623
+ "gap2": "uxI0LG_gap2",
2624
+ "padNone": "uxI0LG_padNone",
2649
2625
  "mono": "uxI0LG_mono",
2650
- "padRow": "uxI0LG_padRow",
2651
- "tonePrimary": "uxI0LG_tonePrimary",
2652
2626
  "narrow": "uxI0LG_narrow",
2653
- "gap0": "uxI0LG_gap0",
2654
- "gap2": "uxI0LG_gap2",
2655
2627
  "padCard": "uxI0LG_padCard",
2656
- "gap16": "uxI0LG_gap16",
2628
+ "text": "uxI0LG_text",
2629
+ "row": "uxI0LG_row",
2630
+ "gap8": "uxI0LG_gap8",
2631
+ "justifyCenter": "uxI0LG_justifyCenter",
2632
+ "sizeLg": "uxI0LG_sizeLg",
2633
+ "strong": "uxI0LG_strong",
2634
+ "gap10": "uxI0LG_gap10",
2635
+ "push": "uxI0LG_push",
2636
+ "tonePrimary": "uxI0LG_tonePrimary",
2637
+ "gap4": "uxI0LG_gap4",
2638
+ "toneSecondary": "uxI0LG_toneSecondary",
2639
+ "stack": "uxI0LG_stack",
2640
+ "plain": "uxI0LG_plain",
2641
+ "truncate": "uxI0LG_truncate",
2642
+ "fixed": "uxI0LG_fixed",
2657
2643
  "alignCenter": "uxI0LG_alignCenter",
2658
- "sizeBase": "uxI0LG_sizeBase",
2659
- "justifyBetween": "uxI0LG_justifyBetween",
2660
- "scroll": "uxI0LG_scroll"
2644
+ "fill": "uxI0LG_fill",
2645
+ "padBody": "uxI0LG_padBody",
2646
+ "scroll": "uxI0LG_scroll",
2647
+ "justifyEnd": "uxI0LG_justifyEnd"
2661
2648
  };
2662
2649
  // ../../client/dsh-client-ui-primitives/src/client/layout/scales.ts
2663
2650
  function gapClass(css, gap) {
@@ -2735,15 +2722,15 @@ window.__ModuleLoader__.load({
2735
2722
  document.head.appendChild(tag);
2736
2723
  }
2737
2724
  var SettingsFieldRow_module_css_default = {
2738
- "text": "_0Kpzea_text",
2739
- "badge": "_0Kpzea_badge",
2740
2725
  "inline": "_0Kpzea_inline",
2726
+ "label": "_0Kpzea_label",
2741
2727
  "reset": "_0Kpzea_reset",
2742
- "body": "_0Kpzea_body",
2743
- "row": "_0Kpzea_row",
2728
+ "text": "_0Kpzea_text",
2744
2729
  "hint": "_0Kpzea_hint",
2745
2730
  "invalid": "_0Kpzea_invalid",
2746
- "label": "_0Kpzea_label"
2731
+ "body": "_0Kpzea_body",
2732
+ "row": "_0Kpzea_row",
2733
+ "badge": "_0Kpzea_badge"
2747
2734
  };
2748
2735
  // ../../client/dsh-client-ui-primitives/src/client/settings-form/SettingsFieldRow.tsx
2749
2736
  function SettingsFieldRow({ label, hint, layout = "stack", divider = false, overriddenLabel, resetLabel, onReset, invalid, children, className, ...rest }) {
@@ -2830,8 +2817,8 @@ window.__ModuleLoader__.load({
2830
2817
  document.head.appendChild(tag);
2831
2818
  }
2832
2819
  var Button_module_css_default = {
2833
- "danger": "SBA8ka_danger",
2834
- "label": "SBA8ka_label"
2820
+ "label": "SBA8ka_label",
2821
+ "danger": "SBA8ka_danger"
2835
2822
  };
2836
2823
  // ../../client/dsh-client-ui-primitives/src/client/controls/Button.tsx
2837
2824
  const Button$1 = (0, react.forwardRef)(function Button({ className, tone, ...rest }, ref) {
@@ -2853,8 +2840,8 @@ window.__ModuleLoader__.load({
2853
2840
  document.head.appendChild(tag);
2854
2841
  }
2855
2842
  var DisclosureRow_module_css_default = {
2856
- "contentLayout": "BDL1HG_contentLayout",
2857
- "content": "BDL1HG_content"
2843
+ "content": "BDL1HG_content",
2844
+ "contentLayout": "BDL1HG_contentLayout"
2858
2845
  };
2859
2846
  // ../../client/dsh-client-ui-primitives/src/client/controls/DisclosureRow.tsx
2860
2847
  function DisclosureRow(props) {
@@ -2875,11 +2862,11 @@ window.__ModuleLoader__.load({
2875
2862
  document.head.appendChild(tag);
2876
2863
  }
2877
2864
  var SeatButton_module_css_default = {
2878
- "chevron": "io5HbW_chevron",
2865
+ "label": "io5HbW_label",
2879
2866
  "expanded": "io5HbW_expanded",
2880
2867
  "seat": "io5HbW_seat",
2881
2868
  "icon": "io5HbW_icon",
2882
- "label": "io5HbW_label"
2869
+ "chevron": "io5HbW_chevron"
2883
2870
  };
2884
2871
  // ../../client/dsh-client-ui-primitives/src/client/controls/SeatButton.tsx
2885
2872
  function SeatButton({ icon, label, expanded = false, chevron, type = "button", className, ...rest }) {
@@ -2914,8 +2901,8 @@ window.__ModuleLoader__.load({
2914
2901
  document.head.appendChild(tag);
2915
2902
  }
2916
2903
  var Spinner_module_css_default = {
2917
- "spin": "If7fBq_spin",
2918
- "spinner": "If7fBq_spinner"
2904
+ "spinner": "If7fBq_spinner",
2905
+ "spin": "If7fBq_spin"
2919
2906
  };
2920
2907
  // ../../client/dsh-client-ui-primitives/src/client/controls/Spinner.tsx
2921
2908
  function Spinner({ label }) {
@@ -2974,9 +2961,9 @@ window.__ModuleLoader__.load({
2974
2961
  document.head.appendChild(tag);
2975
2962
  }
2976
2963
  var IconButton_module_css_default = {
2977
- "circle": "G842ma_circle",
2964
+ "iconButton": "G842ma_iconButton",
2978
2965
  "sm": "G842ma_sm",
2979
- "iconButton": "G842ma_iconButton"
2966
+ "circle": "G842ma_circle"
2980
2967
  };
2981
2968
  // ../../client/dsh-client-ui-primitives/src/client/controls/IconButton.tsx
2982
2969
  function IconButton({ label, children, type = "button", shape = "square", size = "md", className, ...rest }) {
@@ -3001,15 +2988,15 @@ window.__ModuleLoader__.load({
3001
2988
  }
3002
2989
  var ModelRouteList_module_css_default = {
3003
2990
  "text": "aGmQkW_text",
3004
- "name": "aGmQkW_name",
3005
- "picked": "aGmQkW_picked",
3006
- "provider": "aGmQkW_provider",
2991
+ "item": "aGmQkW_item",
3007
2992
  "id": "aGmQkW_id",
3008
2993
  "notice": "aGmQkW_notice",
3009
2994
  "group": "aGmQkW_group",
3010
2995
  "list": "aGmQkW_list",
3011
- "item": "aGmQkW_item",
3012
- "error": "aGmQkW_error"
2996
+ "picked": "aGmQkW_picked",
2997
+ "name": "aGmQkW_name",
2998
+ "error": "aGmQkW_error",
2999
+ "provider": "aGmQkW_provider"
3013
3000
  };
3014
3001
  // ../../client/dsh-client-ui-primitives/src/client/controls/ModelRouteList.tsx
3015
3002
  function ModelRouteList({ label, candidates, selectedKey, disabled = false, status, loadingLabel, errorLabel, emptyLabel, onSelect }) {
@@ -3114,8 +3101,8 @@ window.__ModuleLoader__.load({
3114
3101
  var SearchSelect_module_css_default = {
3115
3102
  "trigger": "pNIIcq_trigger",
3116
3103
  "searchInput": "pNIIcq_searchInput",
3117
- "searchRow": "pNIIcq_searchRow",
3118
- "empty": "pNIIcq_empty"
3104
+ "empty": "pNIIcq_empty",
3105
+ "searchRow": "pNIIcq_searchRow"
3119
3106
  };
3120
3107
  // ../../client/dsh-client-ui-primitives/src/client/controls/SearchSelect.tsx
3121
3108
  function SearchSelect({ label, value, emptyLabel, options, disabled = false, searchLabel, noMatchLabel, onSelect }) {
@@ -3225,13 +3212,13 @@ window.__ModuleLoader__.load({
3225
3212
  document.head.appendChild(tag);
3226
3213
  }
3227
3214
  var TagInput_module_css_default = {
3228
- "chip": "_0uSpIq_chip",
3229
- "empty": "_0uSpIq_empty",
3230
3215
  "anchor": "_0uSpIq_anchor",
3216
+ "row": "_0uSpIq_row",
3217
+ "chip": "_0uSpIq_chip",
3231
3218
  "input": "_0uSpIq_input",
3232
3219
  "chipRemove": "_0uSpIq_chipRemove",
3233
- "box": "_0uSpIq_box",
3234
- "row": "_0uSpIq_row"
3220
+ "empty": "_0uSpIq_empty",
3221
+ "box": "_0uSpIq_box"
3235
3222
  };
3236
3223
  // ../../client/dsh-client-ui-primitives/src/client/controls/TagInput.tsx
3237
3224
  function TagInput({ value, onChange, options, placeholder, label, disabled = false, noMatchLabel = "", removeLabel }) {
@@ -19040,24 +19027,24 @@ window.__ModuleLoader__.load({
19040
19027
  document.head.appendChild(tag);
19041
19028
  }
19042
19029
  var ConversationManagerPage_module_css_default = {
19030
+ "headingActions": "hENcOW_headingActions",
19031
+ "pageContent": "hENcOW_pageContent",
19032
+ "filterTab": "hENcOW_filterTab",
19033
+ "statusBody": "hENcOW_statusBody",
19034
+ "searchField": "hENcOW_searchField",
19043
19035
  "statusFailure": "hENcOW_statusFailure",
19044
- "filters": "hENcOW_filters",
19045
19036
  "searchClear": "hENcOW_searchClear",
19037
+ "listStatus": "hENcOW_listStatus",
19038
+ "pageScroll": "hENcOW_pageScroll",
19039
+ "page": "hENcOW_page",
19046
19040
  "list": "hENcOW_list",
19047
- "pageContent": "hENcOW_pageContent",
19048
- "listPane": "hENcOW_listPane",
19049
- "statusText": "hENcOW_statusText",
19050
- "filterTab": "hENcOW_filterTab",
19051
19041
  "filterTabs": "hENcOW_filterTabs",
19042
+ "statusText": "hENcOW_statusText",
19043
+ "filterTabActive": "hENcOW_filterTabActive",
19052
19044
  "pageHeading": "hENcOW_pageHeading",
19053
- "searchField": "hENcOW_searchField",
19045
+ "listPane": "hENcOW_listPane",
19054
19046
  "status": "hENcOW_status",
19055
- "statusBody": "hENcOW_statusBody",
19056
- "filterTabActive": "hENcOW_filterTabActive",
19057
- "pageScroll": "hENcOW_pageScroll",
19058
- "listStatus": "hENcOW_listStatus",
19059
- "headingActions": "hENcOW_headingActions",
19060
- "page": "hENcOW_page"
19047
+ "filters": "hENcOW_filters"
19061
19048
  };
19062
19049
  // src/client/format.ts
19063
19050
  function trim(value) {
package/dist/client.mjs CHANGED
@@ -139,24 +139,24 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
139
139
  document.head.appendChild(tag);
140
140
  }
141
141
  var ConversationManagerPage_module_css_default = {
142
- "listPane": "hENcOW_listPane",
143
- "statusText": "hENcOW_statusText",
144
- "searchField": "hENcOW_searchField",
145
- "pageContent": "hENcOW_pageContent",
146
142
  "headingActions": "hENcOW_headingActions",
147
- "filterTabActive": "hENcOW_filterTabActive",
148
- "statusBody": "hENcOW_statusBody",
149
- "status": "hENcOW_status",
150
- "searchClear": "hENcOW_searchClear",
143
+ "pageScroll": "hENcOW_pageScroll",
151
144
  "filters": "hENcOW_filters",
152
- "page": "hENcOW_page",
145
+ "filterTabs": "hENcOW_filterTabs",
153
146
  "filterTab": "hENcOW_filterTab",
154
- "pageHeading": "hENcOW_pageHeading",
155
- "listStatus": "hENcOW_listStatus",
156
- "pageScroll": "hENcOW_pageScroll",
147
+ "statusBody": "hENcOW_statusBody",
148
+ "pageContent": "hENcOW_pageContent",
157
149
  "list": "hENcOW_list",
150
+ "filterTabActive": "hENcOW_filterTabActive",
151
+ "status": "hENcOW_status",
152
+ "statusText": "hENcOW_statusText",
158
153
  "statusFailure": "hENcOW_statusFailure",
159
- "filterTabs": "hENcOW_filterTabs"
154
+ "listStatus": "hENcOW_listStatus",
155
+ "listPane": "hENcOW_listPane",
156
+ "searchClear": "hENcOW_searchClear",
157
+ "searchField": "hENcOW_searchField",
158
+ "pageHeading": "hENcOW_pageHeading",
159
+ "page": "hENcOW_page"
160
160
  };
161
161
  // src/client/format.ts
162
162
  function trim(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/ui-conversation-manager",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "「对话管理」全局面板页(浏览器半):会话与统计两层 Tabs——会话视图给出全量会话(含已归档)的搜索、分页、归档 / 取消归档 / 导出 / 删除、导入为新会话与整理数据(孤儿回收 + 统计重算),统计视图给出全部对话的 token 用量。",
5
5
  "keywords": [
6
6
  "archived-sessions",
@@ -36,7 +36,7 @@
36
36
  "./locale/*.json": "./locale/*.json"
37
37
  },
38
38
  "dependencies": {
39
- "@morlay/dsh-client-ui-primitives": "0.0.15"
39
+ "@morlay/dsh-client-ui-primitives": "0.0.16"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@testing-library/react": "^16.1.0",