@layers-app/shared 0.1.0 → 0.1.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/dist/{KanbanLayout-CkCywhDz.js → KanbanLayout-CV5xReRW.js} +1 -1
- package/dist/{index-rY9riqpK.js → index-DpUvUOm1.js} +1417 -22543
- package/dist/index.d.ts +0 -1
- package/dist/index.js +214 -215
- package/dist/index.umd.cjs +59 -59
- package/package.json +1 -2
- package/dist/components/RichText/extensions/bold.d.ts +0 -3
- package/dist/components/RichText/extensions/check-list.d.ts +0 -42
- package/dist/components/RichText/extensions/color-picker.d.ts +0 -28
- package/dist/components/RichText/extensions/font-size.d.ts +0 -23
- package/dist/components/RichText/extensions/italic.d.ts +0 -3
- package/dist/components/RichText/extensions/underline.d.ts +0 -3
- package/dist/components/RichText/index.d.ts +0 -41
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layers-app/shared",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"@mantine/modals": "8.3.5",
|
|
30
30
|
"@mantine/notifications": "8.3.5",
|
|
31
31
|
"@reduxjs/toolkit": "^2.2.7",
|
|
32
|
-
"@sinups/agg": "3.0.0",
|
|
33
32
|
"@tabler/icons-react": "^3.7.0",
|
|
34
33
|
"@tabler/icons-sprite": "^3.29.0",
|
|
35
34
|
"@tanstack/react-query": "^5.52.2",
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
interface ICheckListOptions {
|
|
3
|
-
/**
|
|
4
|
-
* The node name for the list items
|
|
5
|
-
* @default 'listItem'
|
|
6
|
-
* @example 'paragraph'
|
|
7
|
-
*/
|
|
8
|
-
itemTypeName: string;
|
|
9
|
-
/**
|
|
10
|
-
* HTML attributes to add to the check list element
|
|
11
|
-
* @default {}
|
|
12
|
-
* @example { class: 'foo' }
|
|
13
|
-
*/
|
|
14
|
-
HTMLAttributes: Record<string, any>;
|
|
15
|
-
/**
|
|
16
|
-
* Keep the marks when splitting the list
|
|
17
|
-
* @default false
|
|
18
|
-
* @example true
|
|
19
|
-
*/
|
|
20
|
-
keepMarks: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Keep the attributes when splitting the list
|
|
23
|
-
* @default false
|
|
24
|
-
* @example true
|
|
25
|
-
*/
|
|
26
|
-
keepAttributes: boolean;
|
|
27
|
-
}
|
|
28
|
-
declare module '@tiptap/core' {
|
|
29
|
-
interface Commands<ReturnType> {
|
|
30
|
-
checkList: {
|
|
31
|
-
/**
|
|
32
|
-
* Toggle an check list
|
|
33
|
-
* @example editor.commands.toggleCheckList()
|
|
34
|
-
*/
|
|
35
|
-
toggleCheckList: () => ReturnType;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
export declare const CheckList: Node<ICheckListOptions, any> & {
|
|
40
|
-
Control: () => import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
};
|
|
42
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
export type ColorOptions = {
|
|
3
|
-
types: string[];
|
|
4
|
-
};
|
|
5
|
-
declare module '@tiptap/core' {
|
|
6
|
-
interface Commands<ReturnType> {
|
|
7
|
-
backColor: {
|
|
8
|
-
/**
|
|
9
|
-
* Set the text color
|
|
10
|
-
*/
|
|
11
|
-
setBackColor: (color: string) => ReturnType;
|
|
12
|
-
/**
|
|
13
|
-
* Unset the text color
|
|
14
|
-
*/
|
|
15
|
-
unsetBackColor: () => ReturnType;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export declare const BackColor: Extension<ColorOptions, any>;
|
|
20
|
-
export declare const ColorPicker: Extension<ColorOptions, any> & {
|
|
21
|
-
Control: ({ staticBg, onChange, }: {
|
|
22
|
-
staticBg?: boolean;
|
|
23
|
-
onChange?: (v: {
|
|
24
|
-
value: string;
|
|
25
|
-
mode: string;
|
|
26
|
-
}) => void;
|
|
27
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
interface IFontSizeOptions {
|
|
3
|
-
types: string[];
|
|
4
|
-
getStyle: (fontSize: string) => string;
|
|
5
|
-
}
|
|
6
|
-
declare module '@tiptap/core' {
|
|
7
|
-
interface Commands<ReturnType> {
|
|
8
|
-
fontSize: {
|
|
9
|
-
/**
|
|
10
|
-
* Set the font size attribute
|
|
11
|
-
*/
|
|
12
|
-
setFontSize: (size: string) => ReturnType;
|
|
13
|
-
/**
|
|
14
|
-
* Unset the font size attribute
|
|
15
|
-
*/
|
|
16
|
-
unsetFontSize: () => ReturnType;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export declare const FontSize: Extension<IFontSizeOptions, any> & {
|
|
21
|
-
Control: () => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { RichTextEditorContentProps } from '@mantine/tiptap';
|
|
2
|
-
interface IProps {
|
|
3
|
-
value?: string;
|
|
4
|
-
placeholder?: string;
|
|
5
|
-
style?: React.CSSProperties;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
onChange?: (v: string) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const RichText: import('react').ForwardRefExoticComponent<IProps & {
|
|
10
|
-
children?: import('react').ReactNode | undefined;
|
|
11
|
-
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
12
|
-
Content: (props: RichTextEditorContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
Bold: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
Italic: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
Underline: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
OrderedList: import('react').ForwardRefExoticComponent<import('node_modules/@mantine/tiptap/lib/RichTextEditorControl/RichTextEditorControl').RichTextEditorControlBaseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
BulletList: import('react').ForwardRefExoticComponent<import('node_modules/@mantine/tiptap/lib/RichTextEditorControl/RichTextEditorControl').RichTextEditorControlBaseProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
18
|
-
Link: import('@mantine/core').MantineComponent<{
|
|
19
|
-
props: import('@mantine/tiptap').RichTextEditorLinkControlProps;
|
|
20
|
-
ref: HTMLButtonElement;
|
|
21
|
-
stylesNames: import('node_modules/@mantine/tiptap/lib/RichTextEditorControl/RichTextEditorLinkControl').RichTextEditorLinkControlStylesNames;
|
|
22
|
-
compound: true;
|
|
23
|
-
}>;
|
|
24
|
-
CheckList: () => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
FontSize: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
ColorPicker: ({ staticBg, onChange, }: {
|
|
27
|
-
staticBg?: boolean;
|
|
28
|
-
onChange?: (v: {
|
|
29
|
-
value: string;
|
|
30
|
-
mode: string;
|
|
31
|
-
}) => void;
|
|
32
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
};
|
|
34
|
-
export interface IRichTextRef extends HTMLDivElement {
|
|
35
|
-
isFocused: boolean;
|
|
36
|
-
text: string | undefined;
|
|
37
|
-
setContent: (v: string) => void;
|
|
38
|
-
focus: (v?: FocusOptions) => void;
|
|
39
|
-
setTextAlign: (v: 'left' | 'right' | 'center') => void;
|
|
40
|
-
}
|
|
41
|
-
export {};
|