@uzum-tech/ui 2.4.6 → 2.4.7

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.
Files changed (52) hide show
  1. package/dist/index.js +109 -19
  2. package/dist/index.mjs +109 -19
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/chat/src/styles/index.cssr.mjs +1 -1
  6. package/es/components.d.ts +66 -0
  7. package/es/editor/index.d.ts +1 -1
  8. package/es/editor/src/Editor.d.ts +21 -0
  9. package/es/editor/src/Editor.mjs +5 -2
  10. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +27 -0
  11. package/es/editor/src/EditorParts/EditorContent/EditorContent.mjs +37 -3
  12. package/es/editor/src/EditorParts/EditorContent/interface.d.ts +11 -0
  13. package/es/editor/src/EditorParts/EditorContent/interface.mjs +2 -0
  14. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +18 -0
  15. package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  16. package/es/editor/src/composables/use-editor-css-vars.mjs +8 -2
  17. package/es/editor/src/extensions.d.ts +2 -1
  18. package/es/editor/src/extensions.mjs +34 -4
  19. package/es/editor/src/interface.d.ts +22 -2
  20. package/es/editor/src/interface.mjs +1 -0
  21. package/es/editor/src/styles/index.cssr.mjs +21 -4
  22. package/es/editor/styles/dark.d.ts +3 -0
  23. package/es/editor/styles/light.d.ts +6 -0
  24. package/es/editor/styles/light.mjs +6 -1
  25. package/es/message-bubble/src/styles/index.cssr.mjs +1 -1
  26. package/es/version.d.ts +1 -1
  27. package/es/version.mjs +1 -1
  28. package/lib/chat/src/styles/index.cssr.js +1 -1
  29. package/lib/components.d.ts +66 -0
  30. package/lib/editor/index.d.ts +1 -1
  31. package/lib/editor/src/Editor.d.ts +21 -0
  32. package/lib/editor/src/Editor.js +4 -2
  33. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +27 -0
  34. package/lib/editor/src/EditorParts/EditorContent/EditorContent.js +30 -3
  35. package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +11 -0
  36. package/lib/editor/src/EditorParts/EditorContent/interface.js +1 -1
  37. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +18 -0
  38. package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  39. package/lib/editor/src/composables/use-editor-css-vars.js +5 -2
  40. package/lib/editor/src/extensions.d.ts +2 -1
  41. package/lib/editor/src/extensions.js +41 -5
  42. package/lib/editor/src/interface.d.ts +22 -2
  43. package/lib/editor/src/interface.js +1 -1
  44. package/lib/editor/src/styles/index.cssr.js +21 -4
  45. package/lib/editor/styles/dark.d.ts +3 -0
  46. package/lib/editor/styles/light.d.ts +6 -0
  47. package/lib/editor/styles/light.js +5 -2
  48. package/lib/message-bubble/src/styles/index.cssr.js +1 -1
  49. package/lib/version.d.ts +1 -1
  50. package/lib/version.js +1 -1
  51. package/package.json +1 -1
  52. package/web-types.json +21 -2
@@ -44,6 +44,9 @@ const cssr_1 = require("../../../_utils/cssr");
44
44
  // --u-editor-markdown-h2-line-height
45
45
  // --u-editor-markdown-h3-line-height
46
46
  // --u-editor-markdown-text-line-height
47
+ // --u-editor-count-text-color
48
+ // --u-editor-count-font-size
49
+ // --u-editor-count-line-height
47
50
  exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
48
51
  box-sizing: border-box;
49
52
  display: flex;
@@ -61,7 +64,11 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
61
64
  margin: 0;
62
65
  `), (0, cssr_1.cE)('toolbar-block-type', `
63
66
  width: 71px;
64
- `)]), (0, cssr_1.cE)('content-wrapper', `
67
+ `)]), (0, cssr_1.cE)('body', `
68
+ display: flex;
69
+ flex-direction: column;
70
+ gap: 4px;
71
+ `), (0, cssr_1.cE)('content-wrapper', `
65
72
  position: relative;
66
73
  box-sizing: border-box;
67
74
  display: flex;
@@ -83,7 +90,14 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
83
90
  right: 6px;
84
91
  top: 6px;
85
92
  flex-shrink: 0;
86
- `)]), (0, cssr_1.cE)('content', `
93
+ `)]), (0, cssr_1.cE)('count', `
94
+ align-self: flex-end;
95
+ font-size: var(--u-editor-count-font-size);
96
+ line-height: var(--u-editor-count-line-height);
97
+ color: var(--u-editor-count-text-color);
98
+ white-space: nowrap;
99
+ padding-right: 10px;
100
+ `), (0, cssr_1.cE)('content', `
87
101
  white-space: normal;
88
102
  width: 100%;
89
103
  min-width: 0;
@@ -91,7 +105,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
91
105
  color: var(--u-editor-content-text-color);
92
106
  font-size: var(--u-editor-markdown-text-font-size);
93
107
  line-height: var(--u-editor-markdown-text-line-height);
94
- word-wrap: break-word;
108
+ overflow-wrap: anywhere;
95
109
  `, [(0, cssr_1.cM)('scrollable', `
96
110
  overflow-y: auto;
97
111
  scrollbar-width: none;
@@ -99,7 +113,10 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('editor', `
99
113
  width: 0;
100
114
  height: 0;
101
115
  display: none;
102
- `)]), (0, cssr_1.cE)('editable', 'outline: none;', [(0, cssr_1.c)('.is-editor-empty:first-child::before', `
116
+ `)]), (0, cssr_1.cE)('editable', `
117
+ outline: none;
118
+ overflow-wrap: anywhere;
119
+ `, [(0, cssr_1.c)('.is-editor-empty:first-child::before', `
103
120
  content: attr(data-placeholder);
104
121
  float: left;
105
122
  height: 0;
@@ -46,6 +46,9 @@ declare const editorDark: import("../../_mixins").Theme<"Editor", {
46
46
  markdownH2LineHeight: string;
47
47
  markdownH3LineHeight: string;
48
48
  markdownTextLineHeight: string;
49
+ countTextColor: string;
50
+ countFontSize: string;
51
+ countLineHeight: string;
49
52
  }, {
50
53
  Button: import("../../_mixins").Theme<"Button", {
51
54
  heightTiny: string;
@@ -47,6 +47,9 @@ export declare function self(vars: ThemeCommonVars): {
47
47
  markdownH2LineHeight: string;
48
48
  markdownH3LineHeight: string;
49
49
  markdownTextLineHeight: string;
50
+ countTextColor: string;
51
+ countFontSize: string;
52
+ countLineHeight: string;
50
53
  };
51
54
  declare const editorLight: import("../../_mixins").Theme<"Editor", {
52
55
  backgroundColor: string;
@@ -96,6 +99,9 @@ declare const editorLight: import("../../_mixins").Theme<"Editor", {
96
99
  markdownH2LineHeight: string;
97
100
  markdownH3LineHeight: string;
98
101
  markdownTextLineHeight: string;
102
+ countTextColor: string;
103
+ countFontSize: string;
104
+ countLineHeight: string;
99
105
  }, {
100
106
  Button: import("../../_mixins").Theme<"Button", {
101
107
  heightTiny: string;
@@ -9,7 +9,7 @@ const styles_3 = require("../../icon/styles");
9
9
  const styles_4 = require("../../select/styles");
10
10
  const styles_5 = require("../../tooltip/styles");
11
11
  function self(vars) {
12
- const { borderRadiusLarge, containerSecondary, fontBodyMedium, heightMini, iconMedium, iconSmall, lineHeightTitleMedium, lineHeightTitleSmall, lineHeightBodyLarge, lineHeightBodyMedium, surfacePrimary, elementsQuaternary, elementsQuinary, textPrimary, textTertiary, brandPrimary100, brandPrimary400, brandPrimary500 } = vars;
12
+ const { borderRadiusLarge, containerSecondary, fontBodyMedium, heightMini, iconMedium, iconSmall, lineHeightTitleMedium, lineHeightTitleSmall, lineHeightBodyLarge, lineHeightBodyMedium, fontBodySmall, lineHeightBodySmall, surfacePrimary, elementsQuaternary, elementsQuinary, textPrimary, textTertiary, brandPrimary100, brandPrimary400, brandPrimary500 } = vars;
13
13
  return {
14
14
  backgroundColor: surfacePrimary,
15
15
  borderColor: elementsQuaternary,
@@ -57,7 +57,10 @@ function self(vars) {
57
57
  markdownH1LineHeight: lineHeightTitleMedium,
58
58
  markdownH2LineHeight: lineHeightTitleSmall,
59
59
  markdownH3LineHeight: lineHeightBodyLarge,
60
- markdownTextLineHeight: lineHeightBodyMedium
60
+ markdownTextLineHeight: lineHeightBodyMedium,
61
+ countTextColor: textTertiary,
62
+ countFontSize: fontBodySmall,
63
+ countLineHeight: lineHeightBodySmall
61
64
  };
62
65
  }
63
66
  const editorLight = (0, _mixins_1.createTheme)({
@@ -60,7 +60,7 @@ exports.default = (0, cssr_1.cB)('message-bubble', `
60
60
  border-radius: var(--u-message-bubble-border-radius);
61
61
  font-size: 14px;
62
62
  line-height: 20px;
63
- word-wrap: break-word;
63
+ overflow-wrap: anywhere;
64
64
  background-color: var(--u-message-bubble-background-color-other);
65
65
  color: var(--u-message-bubble-text-color-other);
66
66
  border-bottom-left-radius: 6px;
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.4.6";
1
+ declare const _default: "2.4.7";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.4.6';
3
+ exports.default = '2.4.7';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzum-tech/ui",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "packageManager": "pnpm@10.33.0",
5
5
  "description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
6
6
  "author": {
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "@uzum-tech/ui",
5
- "version": "2.4.6",
5
+ "version": "2.4.7",
6
6
  "js-types-syntax": "typescript",
7
7
  "contributions": {
8
8
  "html": {
@@ -5540,6 +5540,15 @@
5540
5540
  "description-sections": {
5541
5541
  "since": "2.4.0"
5542
5542
  }
5543
+ },
5544
+ {
5545
+ "name": "count",
5546
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/editor",
5547
+ "type": "{ count: number, maxLength: number | undefined }",
5548
+ "description": "Replaces the content of the counter shown by `show-count`.",
5549
+ "description-sections": {
5550
+ "since": "2.4.7"
5551
+ }
5543
5552
  }
5544
5553
  ],
5545
5554
  "attributes": [],
@@ -5608,7 +5617,7 @@
5608
5617
  "name": "max-length",
5609
5618
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/editor",
5610
5619
  "type": "number",
5611
- "description": "Caps the **visible text**, not the Markdown. _At creation._",
5620
+ "description": "Caps the **visible text**, not the Markdown, the same way `u-input` does: typing past it is blocked and a paste is cut to fit, while a `value` set from the outside is kept as is even if it is longer.",
5612
5621
  "default": "undefined",
5613
5622
  "description-sections": {
5614
5623
  "since": "2.4.0"
@@ -5624,6 +5633,16 @@
5624
5633
  "since": "2.4.0"
5625
5634
  }
5626
5635
  },
5636
+ {
5637
+ "name": "show-count",
5638
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/editor",
5639
+ "type": "boolean",
5640
+ "description": "Shows a character counter of the **visible text**, not the Markdown, under the input area. Renders as `count / max-length` when `max-length` is set.",
5641
+ "default": "false",
5642
+ "description-sections": {
5643
+ "since": "2.4.7"
5644
+ }
5645
+ },
5627
5646
  {
5628
5647
  "name": "show-send-button",
5629
5648
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/editor",