@scbt-ecom/ui 0.107.1 → 0.108.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.
- package/dist/lib/shared/ui/formElements/controlled/editor/model/config.js +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/model/config.js.map +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/model/extensions.js +2 -0
- package/dist/lib/shared/ui/formElements/controlled/editor/model/extensions.js.map +1 -0
- package/dist/lib/shared/ui/formElements/controlled/editor/model/helper.js +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/model/helper.js.map +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/model/index.js +2 -0
- package/dist/lib/shared/ui/formElements/controlled/editor/model/index.js.map +1 -0
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/Editor.js +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/Editor.js.map +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/Toolbar.js +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/Toolbar.js.map +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/SetColor.js +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/SetColor.js.map +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/SetCoreCommands.js +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/SetCoreCommands.js.map +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/SetFontSize.js +2 -0
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/SetFontSize.js.map +1 -0
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/SetHeadings.js +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/SetHeadings.js.map +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/index.js +1 -1
- package/dist/lib/shared/ui/formElements/controlled/editor/ui/commands/setCustomLink.js.map +1 -1
- package/dist/lib/shared/ui/icon/allowedIcons.js +1 -1
- package/dist/lib/shared/ui/icon/allowedIcons.js.map +1 -1
- package/dist/lib/shared/ui/icon/iconsMap.js +1 -1
- package/dist/lib/shared/ui/icon/iconsMap.js.map +1 -1
- package/dist/lib/widgets/model/helpers.js +2 -2
- package/dist/lib/widgets/model/helpers.js.map +1 -1
- package/dist/static/editor/fonts.svg.js +2 -0
- package/dist/static/editor/fonts.svg.js.map +1 -0
- package/dist/static/static/editor/fonts.svg +1 -0
- package/dist/stats.html +1 -1
- package/dist/types/lib/shared/ui/formElements/controlled/editor/model/config.d.ts +1 -1
- package/dist/types/lib/shared/ui/formElements/controlled/editor/model/extensions.d.ts +10 -0
- package/dist/types/lib/shared/ui/formElements/controlled/editor/model/helper.d.ts +6 -2
- package/dist/types/lib/shared/ui/formElements/controlled/editor/model/index.d.ts +4 -0
- package/dist/types/lib/shared/ui/formElements/controlled/editor/model/types.d.ts +1 -5
- package/dist/types/lib/shared/ui/formElements/controlled/editor/ui/Editor.d.ts +0 -3
- package/dist/types/lib/shared/ui/formElements/controlled/editor/ui/commands/SetFontSize.d.ts +5 -0
- package/dist/types/lib/shared/ui/formElements/controlled/editor/ui/commands/index.d.ts +1 -0
- package/dist/types/lib/shared/ui/icon/allowedIcons.d.ts +2 -2
- package/dist/types/lib/shared/ui/icon/iconsMap.d.ts +6 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const editorConfig: (import('@tiptap/core').Extension<
|
|
1
|
+
export declare const editorConfig: (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<import('@tiptap/extension-underline').UnderlineOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-heading').HeadingOptions, any>)[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
declare module '@tiptap/core' {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
fontSize: {
|
|
5
|
+
setFontSize: (size: string) => ReturnType;
|
|
6
|
+
unsetFontSize: () => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare const FontSizeExtension: Extension<any, any>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Editor } from '@tiptap/react';
|
|
2
|
-
import { ColorOption,
|
|
3
|
-
export declare const headingsOptions:
|
|
2
|
+
import { ColorOption, HeadingLevel } from './types';
|
|
3
|
+
export declare const headingsOptions: HeadingLevel[];
|
|
4
4
|
export declare const editorHeadingClasses: Record<number, string>;
|
|
5
|
+
export declare const fontSizesOptions: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[];
|
|
5
9
|
export declare const editorAllowedColors: ColorOption[];
|
|
6
10
|
export declare const renderEditorPanel: (editor: Editor) => ({
|
|
7
11
|
label: string;
|
|
@@ -4,7 +4,7 @@ export declare const allowedIcons: {
|
|
|
4
4
|
readonly arrows: readonly ["arrows/arrowCircle", "arrows/arrowDownRight", "arrows/arrowLink", "arrows/arrowRight", "arrows/arrowRotate", "arrows/arrowScroll"];
|
|
5
5
|
readonly brandLogos: readonly ["brandLogos/logoBlack", "brandLogos/logoBusiness", "brandLogos/logoGray", "brandLogos/logoInsurance", "brandLogos/logoMain", "brandLogos/logoWhite"];
|
|
6
6
|
readonly communication: readonly ["communication/phone"];
|
|
7
|
-
readonly editor: readonly ["editor/bold", "editor/heading", "editor/italic", "editor/link", "editor/list", "editor/palette", "editor/redo", "editor/removeFormatting", "editor/space", "editor/strikethrough", "editor/typography", "editor/underline", "editor/undo"];
|
|
7
|
+
readonly editor: readonly ["editor/bold", "editor/fonts", "editor/heading", "editor/italic", "editor/link", "editor/list", "editor/palette", "editor/redo", "editor/removeFormatting", "editor/space", "editor/strikethrough", "editor/typography", "editor/underline", "editor/undo"];
|
|
8
8
|
readonly files: readonly ["files/border", "files/borderError", "files/documentFilled", "files/documentOutline", "files/upload"];
|
|
9
9
|
readonly general: readonly ["general/calendar", "general/check", "general/close", "general/edit", "general/heart", "general/hiddenEye", "general/loginFilled", "general/menu", "general/plus", "general/reorder", "general/search", "general/shield", "general/showEye"];
|
|
10
10
|
readonly info: readonly ["info/helpCircle", "info/warningCircle"];
|
|
@@ -13,5 +13,5 @@ export declare const allowedIcons: {
|
|
|
13
13
|
readonly social: readonly ["social/classmates", "social/telegram", "social/vk"];
|
|
14
14
|
readonly status: readonly ["status/badSmile", "status/iconMark", "status/iconRetry", "status/iconUser", "status/succesCircle"];
|
|
15
15
|
};
|
|
16
|
-
readonly flatten: readonly ["arrows/arrowCircle", "arrows/arrowDownRight", "arrows/arrowLink", "arrows/arrowRight", "arrows/arrowRotate", "arrows/arrowScroll", "brandLogos/logoBlack", "brandLogos/logoBusiness", "brandLogos/logoGray", "brandLogos/logoInsurance", "brandLogos/logoMain", "brandLogos/logoWhite", "communication/phone", "editor/bold", "editor/heading", "editor/italic", "editor/link", "editor/list", "editor/palette", "editor/redo", "editor/removeFormatting", "editor/space", "editor/strikethrough", "editor/typography", "editor/underline", "editor/undo", "files/border", "files/borderError", "files/documentFilled", "files/documentOutline", "files/upload", "general/calendar", "general/check", "general/close", "general/edit", "general/heart", "general/hiddenEye", "general/loginFilled", "general/menu", "general/plus", "general/reorder", "general/search", "general/shield", "general/showEye", "info/helpCircle", "info/warningCircle", "logos/beeline", "logos/megafon", "logos/mts", "media/desktop", "media/mobile", "social/classmates", "social/telegram", "social/vk", "status/badSmile", "status/iconMark", "status/iconRetry", "status/iconUser", "status/succesCircle"];
|
|
16
|
+
readonly flatten: readonly ["arrows/arrowCircle", "arrows/arrowDownRight", "arrows/arrowLink", "arrows/arrowRight", "arrows/arrowRotate", "arrows/arrowScroll", "brandLogos/logoBlack", "brandLogos/logoBusiness", "brandLogos/logoGray", "brandLogos/logoInsurance", "brandLogos/logoMain", "brandLogos/logoWhite", "communication/phone", "editor/bold", "editor/fonts", "editor/heading", "editor/italic", "editor/link", "editor/list", "editor/palette", "editor/redo", "editor/removeFormatting", "editor/space", "editor/strikethrough", "editor/typography", "editor/underline", "editor/undo", "files/border", "files/borderError", "files/documentFilled", "files/documentOutline", "files/upload", "general/calendar", "general/check", "general/close", "general/edit", "general/heart", "general/hiddenEye", "general/loginFilled", "general/menu", "general/plus", "general/reorder", "general/search", "general/shield", "general/showEye", "info/helpCircle", "info/warningCircle", "logos/beeline", "logos/megafon", "logos/mts", "media/desktop", "media/mobile", "social/classmates", "social/telegram", "social/vk", "status/badSmile", "status/iconMark", "status/iconRetry", "status/iconUser", "status/succesCircle"];
|
|
17
17
|
};
|
|
@@ -83,6 +83,12 @@ export declare const iconsMap: {
|
|
|
83
83
|
desc?: string;
|
|
84
84
|
descId?: string;
|
|
85
85
|
}>;
|
|
86
|
+
'editor/fonts': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
87
|
+
title?: string;
|
|
88
|
+
titleId?: string;
|
|
89
|
+
desc?: string;
|
|
90
|
+
descId?: string;
|
|
91
|
+
}>;
|
|
86
92
|
'editor/heading': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
87
93
|
title?: string;
|
|
88
94
|
titleId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scbt-ecom/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.108.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
"esbuild": "0.24.0"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
+
"@hookform/resolvers": "^3.9.0",
|
|
91
92
|
"@headlessui/react": "^2.1.2",
|
|
92
93
|
"@radix-ui/react-checkbox": "^1.1.1",
|
|
93
94
|
"@radix-ui/react-popover": "^1.1.1",
|
|
@@ -121,14 +122,13 @@
|
|
|
121
122
|
"react-hook-form": "^7.53.1",
|
|
122
123
|
"react-hot-toast": "^2.4.1",
|
|
123
124
|
"react-number-format": "^5.4.0",
|
|
124
|
-
"uuid": "^11.1.0",
|
|
125
|
-
"vite-plugin-svgr": "^4.3.0",
|
|
126
|
-
"@hookform/resolvers": "^3.9.0",
|
|
127
125
|
"tailwind-merge": "2.4.0",
|
|
128
126
|
"tailwindcss": "^3.4.7",
|
|
129
127
|
"tailwindcss-animate": "^1.0.7",
|
|
130
|
-
"
|
|
131
|
-
"
|
|
128
|
+
"use-mask-input": "^3.4.2",
|
|
129
|
+
"uuid": "^11.1.0",
|
|
130
|
+
"vite-plugin-svgr": "^4.3.0",
|
|
131
|
+
"zod": "^3.23.8"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
134
|
"@eslint/compat": "^1.2.1",
|