@scbt-ecom/ui 0.21.2 → 0.22.1

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.md CHANGED
@@ -34,7 +34,7 @@ export default {
34
34
  - На проекте для unit тестирования используется vitest, документация — https://vitest.dev/
35
35
  - Все тесты лежат в папке test, она полностью должно дублировать структуру папки lib, собственно, что мы и тестируем
36
36
  - Снепшоты создаются также с помощью vitest, функция toMatchSnapshot(). Тут главное не нужно создавать на всё подряд их, желательно для реакт компонентов, каких-то больших и сложных объектов, конфигурационных файлов, API-ответов, сложных выходных данных
37
- - Чтобы обновить снепшоты введите
37
+ - Чтобы обновить снепшоты введите.
38
38
 
39
39
  ```
40
40
  npx vitest -u
@@ -16,4 +16,4 @@ export interface ICommonEditorProps {
16
16
  export type IEditorControlProps<T extends FieldValues> = TCommonFieldProps<T> & ICommonEditorProps & {
17
17
  classes?: TEditorControlClasses;
18
18
  };
19
- export declare const EditorControl: <T extends FieldValues>({ control, label, helperText, editable, classes, ...props }: IEditorControlProps<T>) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const EditorControl: <T extends FieldValues>({ control, label, helperText, editable, classes, name, ...props }: IEditorControlProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { Editor } from '@tiptap/react';
2
- import { TColorsOptions, THeadingOptions } from './types';
2
+ import { TColorOption, THeadingOptions } from './types';
3
3
  export declare const headingsOptions: THeadingOptions[];
4
4
  export declare const editorHeadingClasses: Record<number, string>;
5
- export declare const editorAllowedColors: TColorsOptions[];
5
+ export declare const editorAllowedColors: TColorOption[];
6
6
  export declare const renderEditorPanel: (editor: Editor) => ({
7
7
  label: string;
8
8
  icon: import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,4 @@ export interface THeadingOptions {
3
3
  shortcuts: string[];
4
4
  level: THeadingLevel;
5
5
  }
6
- export interface TColorsOptions {
7
- name: string;
8
- color: `#${string}`;
9
- }
6
+ export type TColorOption = `#${string}`;