@bitrix24/b24ui-nuxt 2.1.11 → 2.1.12
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/README-AI.md +1 -1
- package/dist/meta.d.mts +98220 -780
- package/dist/meta.mjs +98220 -780
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/ContextMenu.d.vue.ts +6 -2
- package/dist/runtime/components/ContextMenu.vue.d.ts +6 -2
- package/dist/runtime/components/ContextMenuContent.vue +2 -2
- package/dist/runtime/components/DropdownMenu.d.vue.ts +6 -2
- package/dist/runtime/components/DropdownMenu.vue.d.ts +6 -2
- package/dist/runtime/components/DropdownMenuContent.vue +2 -2
- package/dist/runtime/components/Editor.d.vue.ts +87 -0
- package/dist/runtime/components/Editor.vue +185 -0
- package/dist/runtime/components/Editor.vue.d.ts +87 -0
- package/dist/runtime/components/EditorDragHandle.d.vue.ts +60 -0
- package/dist/runtime/components/EditorDragHandle.vue +128 -0
- package/dist/runtime/components/EditorDragHandle.vue.d.ts +60 -0
- package/dist/runtime/components/EditorEmojiMenu.d.vue.ts +35 -0
- package/dist/runtime/components/EditorEmojiMenu.vue +70 -0
- package/dist/runtime/components/EditorEmojiMenu.vue.d.ts +35 -0
- package/dist/runtime/components/EditorMentionMenu.d.vue.ts +39 -0
- package/dist/runtime/components/EditorMentionMenu.vue +74 -0
- package/dist/runtime/components/EditorMentionMenu.vue.d.ts +39 -0
- package/dist/runtime/components/EditorSuggestionMenu.d.vue.ts +52 -0
- package/dist/runtime/components/EditorSuggestionMenu.vue +79 -0
- package/dist/runtime/components/EditorSuggestionMenu.vue.d.ts +52 -0
- package/dist/runtime/components/EditorToolbar.d.vue.ts +80 -0
- package/dist/runtime/components/EditorToolbar.vue +239 -0
- package/dist/runtime/components/EditorToolbar.vue.d.ts +80 -0
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/InputMenu.d.vue.ts +2 -0
- package/dist/runtime/components/InputMenu.vue +14 -1
- package/dist/runtime/components/InputMenu.vue.d.ts +2 -0
- package/dist/runtime/components/Pagination.d.vue.ts +0 -1
- package/dist/runtime/components/Pagination.vue.d.ts +0 -1
- package/dist/runtime/components/Select.d.vue.ts +2 -0
- package/dist/runtime/components/Select.vue +14 -1
- package/dist/runtime/components/Select.vue.d.ts +2 -0
- package/dist/runtime/components/SelectMenu.d.vue.ts +2 -0
- package/dist/runtime/components/SelectMenu.vue +14 -1
- package/dist/runtime/components/SelectMenu.vue.d.ts +2 -0
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +1 -0
- package/dist/runtime/components/locale/LocaleSelect.vue +1 -0
- package/dist/runtime/components/prose/Accordion.vue +1 -1
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -0
- package/dist/runtime/composables/defineShortcuts.js +60 -13
- package/dist/runtime/composables/useEditorMenu.d.ts +64 -0
- package/dist/runtime/composables/useEditorMenu.js +448 -0
- package/dist/runtime/dictionary/icons.d.ts +1 -0
- package/dist/runtime/dictionary/icons.js +5 -3
- package/dist/runtime/types/editor.d.ts +69 -0
- package/dist/runtime/types/editor.js +0 -0
- package/dist/runtime/types/index.d.ts +7 -0
- package/dist/runtime/types/index.js +7 -0
- package/dist/runtime/utils/editor.d.ts +69 -0
- package/dist/runtime/utils/editor.js +364 -0
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +1 -0
- package/dist/shared/{b24ui-nuxt.Dh5A-7HA.mjs → b24ui-nuxt.C8MyFqPm.mjs} +183 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +16 -3
|
@@ -8,7 +8,7 @@ import { globSync } from 'tinyglobby';
|
|
|
8
8
|
import { defuFn } from 'defu';
|
|
9
9
|
|
|
10
10
|
const name = "@bitrix24/b24ui-nuxt";
|
|
11
|
-
const version = "2.1.
|
|
11
|
+
const version = "2.1.12";
|
|
12
12
|
|
|
13
13
|
function getDefaultConfig(theme) {
|
|
14
14
|
return {
|
|
@@ -3035,6 +3035,182 @@ const dropdownMenu = {
|
|
|
3035
3035
|
defaultVariants: {}
|
|
3036
3036
|
};
|
|
3037
3037
|
|
|
3038
|
+
const editor = {
|
|
3039
|
+
slots: {
|
|
3040
|
+
root: "light",
|
|
3041
|
+
content: "relative size-full flex-1",
|
|
3042
|
+
base: [
|
|
3043
|
+
"w-full outline-none *:my-5 *:first:mt-0 *:last:mb-0 sm:px-8 selection:bg-(--ui-color-design-selection-bg)",
|
|
3044
|
+
// Placeholder
|
|
3045
|
+
"[&_:is(p,h1,h2,h3,h4).is-empty]:before:content-[attr(data-placeholder)] [&_:is(p,h1,h2,h3,h4).is-empty]:before:text-(--b24ui-typography-label-color) [&_:is(p,h1,h2,h3,h4).is-empty]:before:float-left [&_:is(p,h1,h2,h3,h4).is-empty]:before:h-0 [&_:is(p,h1,h2,h3,h4).is-empty]:before:pointer-events-none",
|
|
3046
|
+
"[&_li_.is-empty]:before:content-none",
|
|
3047
|
+
// Paragraph
|
|
3048
|
+
"[&_p]:leading-7",
|
|
3049
|
+
// Links
|
|
3050
|
+
"[&_a]:text-(--ui-color-accent-main-primary) [&_a]:border-b [&_a]:border-transparent [&_a]:hover:border-(--ui-color-accent-main-primary) [&_a]:font-(--ui-font-weight-medium)",
|
|
3051
|
+
"[&_a]:transition-colors",
|
|
3052
|
+
// Mentions
|
|
3053
|
+
"[&_.mention]:text-(--ui-color-accent-main-primary) [&_.mention]:font-(--ui-font-weight-medium)",
|
|
3054
|
+
// Headings - shared styles
|
|
3055
|
+
"[&_:is(h1,h2,h3,h4)]:text-(--b24ui-typography-label-color) [&_:is(h1,h2,h3,h4)]:font-(--ui-font-weight-bold)",
|
|
3056
|
+
// Headings - unique styles
|
|
3057
|
+
"[&_h1]:text-3xl",
|
|
3058
|
+
"[&_h2]:text-2xl",
|
|
3059
|
+
"[&_h3]:text-xl",
|
|
3060
|
+
"[&_h4]:text-lg",
|
|
3061
|
+
// Code inside headings
|
|
3062
|
+
"[&_:is(h1,h2,h3,h4)>code]:border-dashed [&_:is(h1,h2,h3,h4)>code]:font-(--ui-font-weight-bold)",
|
|
3063
|
+
"[&_h2>code]:text-xl/6",
|
|
3064
|
+
"[&_h3>code]:text-lg/5",
|
|
3065
|
+
// Blockquote & HR
|
|
3066
|
+
"[&_blockquote]:border-s-4 [&_blockquote]:border-(--ui-color-accent-soft-element-blue) [&_blockquote]:ps-4 [&_blockquote]:italic",
|
|
3067
|
+
"[&_[data-type=horizontalRule]]:my-8 [&_[data-type=horizontalRule]]:py-2",
|
|
3068
|
+
"[&_hr]:border-t [&_hr]:border-(--ui-color-divider-default)",
|
|
3069
|
+
// Code blocks
|
|
3070
|
+
"[&_pre]:text-sm/6 [&_pre]:border [&_pre]:border-(--ui-color-design-tinted-na-stroke) [&_pre]:bg-(--ui-color-design-tinted-na-bg) [&_pre]:rounded-md [&_pre]:px-4 [&_pre]:py-3 [&_pre]:whitespace-pre-wrap [&_pre]:break-words [&_pre]:overflow-x-auto",
|
|
3071
|
+
"[&_pre_code]:p-0 [&_pre_code]:text-inherit [&_pre_code]:font-inherit [&_pre_code]:rounded-none [&_pre_code]:inline [&_pre_code]:border-0 [&_pre_code]:bg-transparent",
|
|
3072
|
+
// Inline code
|
|
3073
|
+
"[&_code]:px-1.5 [&_code]:py-0.5 [&_code]:text-sm [&_code]:font-[family-name:var(--ui-font-family-system-mono)] [&_code]:font-(--ui-font-weight-medium) [&_code]:rounded-md [&_code]:inline-block [&_code]:border [&_code]:border-(--ui-color-design-tinted-na-stroke) [&_code]:text-(--b24ui-typography-label-color) [&_code]:bg-(--ui-color-design-tinted-na-bg)",
|
|
3074
|
+
// Lists
|
|
3075
|
+
"[&_:is(ul,ol)]:ps-6",
|
|
3076
|
+
"[&_ul]:list-disc [&_ul]:marker:text-(--ui-color-accent-soft-element-blue)",
|
|
3077
|
+
"[&_ol]:list-decimal [&_ol]:marker:text-(--b24ui-typography-label-color)",
|
|
3078
|
+
"[&_li]:my-1.5 [&_li]:ps-1.5",
|
|
3079
|
+
// Images
|
|
3080
|
+
"[&_img]:rounded-md [&_img]:block [&_img]:max-w-full [&_img.ProseMirror-selectednode]:outline-2 [&_img.ProseMirror-selectednode]:outline-(--ui-color-accent-main-primary)",
|
|
3081
|
+
// Selected nodes
|
|
3082
|
+
"[&_.ProseMirror-selectednode:not(img):not(pre):not([data-node-view-wrapper])]:bg-(--ui-color-design-selection-bg)"
|
|
3083
|
+
].join(" ")
|
|
3084
|
+
}
|
|
3085
|
+
};
|
|
3086
|
+
|
|
3087
|
+
const editorDragHandle = {
|
|
3088
|
+
slots: {
|
|
3089
|
+
root: "hidden sm:flex items-center justify-center transition-all duration-200 ease-out",
|
|
3090
|
+
handle: "cursor-grab px-1"
|
|
3091
|
+
}
|
|
3092
|
+
};
|
|
3093
|
+
|
|
3094
|
+
const editorSuggestionMenu = {
|
|
3095
|
+
slots: {
|
|
3096
|
+
content: [
|
|
3097
|
+
"light",
|
|
3098
|
+
"bg-(--popup-window-background-color)",
|
|
3099
|
+
"shadow-(--popup-window-box-shadow)",
|
|
3100
|
+
"rounded-(--popup-window-border-radius) will-change-[opacity]",
|
|
3101
|
+
"motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
3102
|
+
"origin-(--reka-dropdown-menu-content-transform-origin)",
|
|
3103
|
+
"font-[family-name:var(--ui-font-family-primary)]",
|
|
3104
|
+
"relative",
|
|
3105
|
+
"isolate",
|
|
3106
|
+
"px-0 py-(--menu-popup-padding)",
|
|
3107
|
+
"pointer-events-auto"
|
|
3108
|
+
].join(" "),
|
|
3109
|
+
viewport: [
|
|
3110
|
+
"relative",
|
|
3111
|
+
"w-full max-h-[40vh] min-w-[120px] max-w-[192px]",
|
|
3112
|
+
"overflow-x-hidden overflow-y-auto scrollbar-thin"
|
|
3113
|
+
// scrollbar-transparent
|
|
3114
|
+
].join(" "),
|
|
3115
|
+
group: "grid",
|
|
3116
|
+
// p-1 isolate
|
|
3117
|
+
label: [
|
|
3118
|
+
"w-full h-(--popup-window-delimiter-section-height)",
|
|
3119
|
+
// min-w-[195px]
|
|
3120
|
+
"px-[18px] mt-(--menu-item-block-stack-space)",
|
|
3121
|
+
"flex flex-row rtl:flex-row-reverse items-center",
|
|
3122
|
+
"select-none outline-none whitespace-nowrap",
|
|
3123
|
+
"text-start",
|
|
3124
|
+
"text-(length:--popup-window-delimiter-font-size)",
|
|
3125
|
+
"text-(--popup-window-delimiter-text-color)",
|
|
3126
|
+
"font-(--popup-window-delimiter-font-weight)",
|
|
3127
|
+
"after:ms-[10px] after:block after:flex-1 after:min-w-[15px] after:h-px after:bg-(--popup-window-delimiter-bg-color)"
|
|
3128
|
+
].join(" "),
|
|
3129
|
+
item: [
|
|
3130
|
+
"group",
|
|
3131
|
+
"w-full h-[36px]",
|
|
3132
|
+
// min-w-[195px]
|
|
3133
|
+
"px-[18px] mt-(--menu-item-block-stack-space)",
|
|
3134
|
+
"relative",
|
|
3135
|
+
"flex flex-row rtl:flex-row-reverse items-center",
|
|
3136
|
+
"select-none outline-none whitespace-nowrap",
|
|
3137
|
+
"cursor-pointer",
|
|
3138
|
+
"data-disabled:cursor-not-allowed data-disabled:opacity-30",
|
|
3139
|
+
"text-start",
|
|
3140
|
+
"text-(length:--menu-popup-item-font-size)",
|
|
3141
|
+
"text-(--menu-popup-item-color) hover:text-(--menu-popup-item-color-hover)",
|
|
3142
|
+
"data-highlighted:text-(--menu-popup-item-color-hover)",
|
|
3143
|
+
"data-[state=open]:text-(--menu-popup-item-color-hover)",
|
|
3144
|
+
"hover:bg-(--menu-popup-item-bg-color-hover)",
|
|
3145
|
+
"data-highlighted:bg-(--menu-popup-item-bg-color-hover)",
|
|
3146
|
+
"data-[state=open]:bg-(--menu-popup-item-bg-color-hover)",
|
|
3147
|
+
"transition-colors"
|
|
3148
|
+
].join(" "),
|
|
3149
|
+
itemLeadingIcon: [
|
|
3150
|
+
"shrink-0",
|
|
3151
|
+
"size-[18px]",
|
|
3152
|
+
"text-(--ui-color-design-plain-content-icon-secondary)",
|
|
3153
|
+
"group-data-highlighted:text-(--ui-color-accent-main-primary)",
|
|
3154
|
+
"group-data-[state=open]:text-(--ui-color-accent-main-primary)",
|
|
3155
|
+
"group-data-[state=checked]:text-(--ui-color-accent-main-primary)",
|
|
3156
|
+
"transition-colors"
|
|
3157
|
+
].join(" "),
|
|
3158
|
+
itemLeadingAvatar: "shrink-0 size-[16px] me-[8px]",
|
|
3159
|
+
// @memo 18-2px
|
|
3160
|
+
itemLeadingAvatarSize: "2xs",
|
|
3161
|
+
// @memo this wrong
|
|
3162
|
+
itemWrapper: "ms-[4px] flex-1 flex flex-col text-start min-w-0",
|
|
3163
|
+
itemLabel: [
|
|
3164
|
+
"max-w-[240px] truncate -mt-px",
|
|
3165
|
+
"group-data-[state=checked]:text-(--ui-color-accent-main-primary)"
|
|
3166
|
+
].join(" "),
|
|
3167
|
+
itemDescription: "max-w-[240px] truncate -mt-[6px] text-(--b24ui-typography-description-color) text-(length:--ui-font-size-sm)",
|
|
3168
|
+
itemLabelExternalIcon: "inline-block size-[16px] text-(--ui-color-design-plain-content-icon-secondary)"
|
|
3169
|
+
},
|
|
3170
|
+
variants: {
|
|
3171
|
+
active: {
|
|
3172
|
+
true: {
|
|
3173
|
+
item: [
|
|
3174
|
+
"text-(--ui-color-accent-main-primary)",
|
|
3175
|
+
"hover:text-(--ui-color-accent-main-primary)"
|
|
3176
|
+
].join(" "),
|
|
3177
|
+
itemLeadingIcon: [
|
|
3178
|
+
"text-(--ui-color-accent-main-primary)",
|
|
3179
|
+
"hover:text-(--ui-color-accent-main-primary)",
|
|
3180
|
+
"group-data-[state=open]:text-(--ui-color-accent-main-primary)"
|
|
3181
|
+
].join(" ")
|
|
3182
|
+
},
|
|
3183
|
+
false: {}
|
|
3184
|
+
}
|
|
3185
|
+
}
|
|
3186
|
+
};
|
|
3187
|
+
|
|
3188
|
+
const editorEmojiMenu = () => editorSuggestionMenu;
|
|
3189
|
+
|
|
3190
|
+
const editorMentionMenu = () => editorSuggestionMenu;
|
|
3191
|
+
|
|
3192
|
+
const editorToolbar = {
|
|
3193
|
+
slots: {
|
|
3194
|
+
root: "focus:outline-none",
|
|
3195
|
+
base: "flex items-stretch gap-1.5",
|
|
3196
|
+
group: "flex items-center gap-0.5",
|
|
3197
|
+
separator: "w-px self-stretch bg-(--ui-color-design-tinted-na-stroke)"
|
|
3198
|
+
},
|
|
3199
|
+
variants: {
|
|
3200
|
+
layout: {
|
|
3201
|
+
bubble: {
|
|
3202
|
+
base: "bg-(--popup-window-background-color) border border-(--ui-color-divider-default) rounded-md p-1"
|
|
3203
|
+
},
|
|
3204
|
+
floating: {
|
|
3205
|
+
base: "bg-(--popup-window-background-color) border border-(--ui-color-divider-default) rounded-md p-1"
|
|
3206
|
+
},
|
|
3207
|
+
fixed: {
|
|
3208
|
+
base: ""
|
|
3209
|
+
}
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
};
|
|
3213
|
+
|
|
3038
3214
|
const empty = {
|
|
3039
3215
|
slots: {
|
|
3040
3216
|
root: [
|
|
@@ -9177,6 +9353,12 @@ const theme = {
|
|
|
9177
9353
|
dashboardSearchButton: dashboardSearchButton,
|
|
9178
9354
|
descriptionList: descriptionList,
|
|
9179
9355
|
dropdownMenu: dropdownMenu,
|
|
9356
|
+
editor: editor,
|
|
9357
|
+
editorDragHandle: editorDragHandle,
|
|
9358
|
+
editorEmojiMenu: editorEmojiMenu,
|
|
9359
|
+
editorMentionMenu: editorMentionMenu,
|
|
9360
|
+
editorSuggestionMenu: editorSuggestionMenu,
|
|
9361
|
+
editorToolbar: editorToolbar,
|
|
9180
9362
|
empty: empty,
|
|
9181
9363
|
error: error,
|
|
9182
9364
|
fieldGroup: fieldGroup$1,
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultConfig } from './shared/b24ui-nuxt.C8MyFqPm.mjs';
|
|
7
7
|
import fs from 'node:fs';
|
|
8
8
|
import path from 'node:path';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrix24/b24ui-nuxt",
|
|
3
3
|
"description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.12",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -118,6 +118,19 @@
|
|
|
118
118
|
"@tailwindcss/vite": "^4.1.17",
|
|
119
119
|
"@tanstack/vue-table": "^8.21.3",
|
|
120
120
|
"@tanstack/vue-virtual": "^3.13.12",
|
|
121
|
+
"@tiptap/core": "3.13.0",
|
|
122
|
+
"@tiptap/extension-bubble-menu": "3.13.0",
|
|
123
|
+
"@tiptap/extension-drag-handle-vue-3": "3.13.0",
|
|
124
|
+
"@tiptap/extension-floating-menu": "3.13.0",
|
|
125
|
+
"@tiptap/extension-horizontal-rule": "3.13.0",
|
|
126
|
+
"@tiptap/extension-image": "3.13.0",
|
|
127
|
+
"@tiptap/extension-mention": "3.13.0",
|
|
128
|
+
"@tiptap/extension-placeholder": "3.13.0",
|
|
129
|
+
"@tiptap/markdown": "3.13.0",
|
|
130
|
+
"@tiptap/pm": "3.13.0",
|
|
131
|
+
"@tiptap/starter-kit": "3.13.0",
|
|
132
|
+
"@tiptap/suggestion": "3.13.0",
|
|
133
|
+
"@tiptap/vue-3": "3.13.0",
|
|
121
134
|
"@unhead/vue": "^2.0.19",
|
|
122
135
|
"@vueuse/core": "^14.1.0",
|
|
123
136
|
"@vueuse/integrations": "^14.1.0",
|
|
@@ -155,14 +168,14 @@
|
|
|
155
168
|
"devDependencies": {
|
|
156
169
|
"@nuxt/eslint-config": "^1.11.0",
|
|
157
170
|
"@nuxt/module-builder": "^1.0.2",
|
|
158
|
-
"@nuxt/test-utils": "^3.
|
|
171
|
+
"@nuxt/test-utils": "^3.21.0",
|
|
159
172
|
"@types/canvas-confetti": "^1.9.0",
|
|
160
173
|
"@types/node": "^24.7.0",
|
|
161
174
|
"esno": "^4.8.0",
|
|
162
175
|
"nuxt-component-meta": "^0.14.2",
|
|
163
176
|
"sharp": "^0.34.3",
|
|
164
177
|
"@vue/test-utils": "^2.4.6",
|
|
165
|
-
"ai": "^5.0.
|
|
178
|
+
"ai": "^5.0.108",
|
|
166
179
|
"embla-carousel": "^8.6.0",
|
|
167
180
|
"eslint": "^9.39.1",
|
|
168
181
|
"happy-dom": "^20.0.11",
|