asma-ui-richeditor 0.1.8 → 0.1.10-beta
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/CHANGELOG.md +687 -0
- package/Readme.md +76 -76
- package/package.json +146 -142
- package/dist/asma-ui-richeditor.es.js +0 -56
- package/dist/index.d.ts +0 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/rich-input/RichInput.d.ts +0 -12
- package/dist/src/rich-input/components/CustomMenuItem.d.ts +0 -2
- package/dist/src/rich-input/components/FontSizeSelect.d.ts +0 -5
- package/dist/src/rich-input/components/LinkDialog.d.ts +0 -9
- package/dist/src/rich-input/components/Toolbar.d.ts +0 -10
- package/dist/src/rich-input/helpers/EditorExtensions.d.ts +0 -4
- package/dist/src/rich-input/hooks/useToggleMenuVisibility.hook.d.ts +0 -6
- package/dist/src/rich-input/interfaces/types.d.ts +0 -25
- package/dist/tailwind.config.d.ts +0 -255
- package/dist/vite.config.d.ts +0 -2
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/index'
|
package/dist/src/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './rich-input/RichInput';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { IRichInput } from './interfaces/types';
|
|
3
|
-
/**
|
|
4
|
-
* ASMA RichInput - A rich text editor component.
|
|
5
|
-
*
|
|
6
|
-
* @param readOnly - Determines the display style in read-only mode.
|
|
7
|
-
* Options:
|
|
8
|
-
* - `'plain'`: Displays the editor with a white background and no borders.
|
|
9
|
-
* - `'outlined'`: Displays the editor with a gray background and visible borders.
|
|
10
|
-
*/
|
|
11
|
-
declare const RichInput: FC<IRichInput>;
|
|
12
|
-
export { RichInput };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Editor } from '@tiptap/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { ILocale } from '../interfaces/types';
|
|
4
|
-
export declare const LinkDialog: React.FC<{
|
|
5
|
-
open: boolean;
|
|
6
|
-
setOpen: (value: boolean) => void;
|
|
7
|
-
editor: Editor;
|
|
8
|
-
locale?: ILocale;
|
|
9
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/react';
|
|
2
|
-
import type { ILocale } from '../interfaces/types';
|
|
3
|
-
export declare const Toolbar: ({ editor, onClose, error, focused, openLinkDialog, locale, }: {
|
|
4
|
-
editor: Editor;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
error?: boolean | undefined;
|
|
7
|
-
focused: boolean;
|
|
8
|
-
openLinkDialog: () => void;
|
|
9
|
-
locale?: ILocale | undefined;
|
|
10
|
-
}) => JSX.Element;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const defaultExtensions: (import("@tiptap/core").Node<any, any> | import("@tiptap/core").Mark<import("@tiptap/extension-text-style").TextStyleOptions, any>)[];
|
|
2
|
-
export declare const editModeExtensions: (import("@tiptap/core").Node<import("@tiptap/extension-heading").HeadingOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-bullet-list").BulletListOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-bold").BoldOptions, any> | import("@tiptap/core").Extension<{
|
|
3
|
-
types: string[];
|
|
4
|
-
}, any>)[];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Editor, UseEditorOptions } from '@tiptap/react';
|
|
2
|
-
import type { MutableRefObject } from 'react';
|
|
3
|
-
export interface CustomCSSProperties extends React.CSSProperties {
|
|
4
|
-
'--max-scrollable-height'?: string;
|
|
5
|
-
}
|
|
6
|
-
export type ILocale = 'en' | 'no';
|
|
7
|
-
export interface IRichInput extends UseEditorOptions {
|
|
8
|
-
dataTest: string;
|
|
9
|
-
inputRef?: MutableRefObject<Editor | null>;
|
|
10
|
-
id?: string;
|
|
11
|
-
title?: string;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
editorClassName?: string;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
error?: boolean;
|
|
17
|
-
readOnly?: 'plain' | 'outlined';
|
|
18
|
-
helperText?: string;
|
|
19
|
-
required?: boolean;
|
|
20
|
-
hideToolbar?: boolean;
|
|
21
|
-
noDefaultStyles?: boolean;
|
|
22
|
-
maxScrollableHeight?: number | string;
|
|
23
|
-
toolbarDefaultVisible?: boolean;
|
|
24
|
-
locale?: ILocale;
|
|
25
|
-
}
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
content: string[];
|
|
3
|
-
theme: {
|
|
4
|
-
fontFamily: {
|
|
5
|
-
roboto: string[];
|
|
6
|
-
};
|
|
7
|
-
extend: {
|
|
8
|
-
screens: {
|
|
9
|
-
[x: number]: string;
|
|
10
|
-
length: number;
|
|
11
|
-
toString: (() => string) & (() => string);
|
|
12
|
-
toLocaleString: (() => string) & (() => string);
|
|
13
|
-
pop(): string | undefined;
|
|
14
|
-
push(...items: string[]): number;
|
|
15
|
-
concat(...items: ConcatArray<string>[]): string[];
|
|
16
|
-
concat(...items: (string | ConcatArray<string>)[]): string[];
|
|
17
|
-
join(separator?: string | undefined): string;
|
|
18
|
-
reverse(): string[];
|
|
19
|
-
shift(): string | undefined;
|
|
20
|
-
slice(start?: number | undefined, end?: number | undefined): string[];
|
|
21
|
-
sort(compareFn?: ((a: string, b: string) => number) | undefined): string[] & Record<"sm" | "md" | "lg" | "xl" | "2xl", string>;
|
|
22
|
-
splice(start: number, deleteCount?: number | undefined): string[];
|
|
23
|
-
splice(start: number, deleteCount: number, ...items: string[]): string[];
|
|
24
|
-
unshift(...items: string[]): number;
|
|
25
|
-
indexOf(searchElement: string, fromIndex?: number | undefined): number;
|
|
26
|
-
lastIndexOf(searchElement: string, fromIndex?: number | undefined): number;
|
|
27
|
-
every<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): this is S[];
|
|
28
|
-
every(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
29
|
-
some(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
30
|
-
forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void;
|
|
31
|
-
map<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any): U[];
|
|
32
|
-
filter<S_1 extends string>(predicate: (value: string, index: number, array: string[]) => value is S_1, thisArg?: any): S_1[];
|
|
33
|
-
filter(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
34
|
-
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
35
|
-
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
36
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: string[]) => U_1, initialValue: U_1): U_1;
|
|
37
|
-
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
38
|
-
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
39
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: string[]) => U_2, initialValue: U_2): U_2;
|
|
40
|
-
find<S_2 extends string>(predicate: (value: string, index: number, obj: string[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
41
|
-
find(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
|
|
42
|
-
findIndex(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): number;
|
|
43
|
-
fill(value: string, start?: number | undefined, end?: number | undefined): string[] & Record<"sm" | "md" | "lg" | "xl" | "2xl", string>;
|
|
44
|
-
copyWithin(target: number, start: number, end?: number | undefined): string[] & Record<"sm" | "md" | "lg" | "xl" | "2xl", string>;
|
|
45
|
-
entries(): IterableIterator<[number, string]>;
|
|
46
|
-
keys(): IterableIterator<number>;
|
|
47
|
-
values(): IterableIterator<string>;
|
|
48
|
-
includes(searchElement: string, fromIndex?: number | undefined): boolean;
|
|
49
|
-
flatMap<U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
|
|
50
|
-
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
51
|
-
at(index: number): string | undefined;
|
|
52
|
-
findLast<S_3 extends string>(predicate: (value: string, index: number, array: string[]) => value is S_3, thisArg?: any): S_3 | undefined;
|
|
53
|
-
findLast(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string | undefined;
|
|
54
|
-
findLastIndex(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): number;
|
|
55
|
-
[Symbol.iterator](): IterableIterator<string>;
|
|
56
|
-
[Symbol.unscopables]: {
|
|
57
|
-
[x: number]: boolean | undefined;
|
|
58
|
-
length?: boolean | undefined;
|
|
59
|
-
toString?: boolean | undefined;
|
|
60
|
-
toLocaleString?: boolean | undefined;
|
|
61
|
-
pop?: boolean | undefined;
|
|
62
|
-
push?: boolean | undefined;
|
|
63
|
-
concat?: boolean | undefined;
|
|
64
|
-
join?: boolean | undefined;
|
|
65
|
-
reverse?: boolean | undefined;
|
|
66
|
-
shift?: boolean | undefined;
|
|
67
|
-
slice?: boolean | undefined;
|
|
68
|
-
sort?: boolean | undefined;
|
|
69
|
-
splice?: boolean | undefined;
|
|
70
|
-
unshift?: boolean | undefined;
|
|
71
|
-
indexOf?: boolean | undefined;
|
|
72
|
-
lastIndexOf?: boolean | undefined;
|
|
73
|
-
every?: boolean | undefined;
|
|
74
|
-
some?: boolean | undefined;
|
|
75
|
-
forEach?: boolean | undefined;
|
|
76
|
-
map?: boolean | undefined;
|
|
77
|
-
filter?: boolean | undefined;
|
|
78
|
-
reduce?: boolean | undefined;
|
|
79
|
-
reduceRight?: boolean | undefined;
|
|
80
|
-
find?: boolean | undefined;
|
|
81
|
-
findIndex?: boolean | undefined;
|
|
82
|
-
fill?: boolean | undefined;
|
|
83
|
-
copyWithin?: boolean | undefined;
|
|
84
|
-
entries?: boolean | undefined;
|
|
85
|
-
keys?: boolean | undefined;
|
|
86
|
-
values?: boolean | undefined;
|
|
87
|
-
includes?: boolean | undefined;
|
|
88
|
-
flatMap?: boolean | undefined;
|
|
89
|
-
flat?: boolean | undefined;
|
|
90
|
-
at?: boolean | undefined;
|
|
91
|
-
findLast?: boolean | undefined;
|
|
92
|
-
findLastIndex?: boolean | undefined;
|
|
93
|
-
[Symbol.iterator]?: boolean | undefined;
|
|
94
|
-
readonly [Symbol.unscopables]?: boolean | undefined;
|
|
95
|
-
};
|
|
96
|
-
sm: string;
|
|
97
|
-
md: string;
|
|
98
|
-
lg: string;
|
|
99
|
-
xl: string;
|
|
100
|
-
"2xl": string;
|
|
101
|
-
} | {
|
|
102
|
-
[x: string]: string | import("tailwindcss/types/config").Screen | import("tailwindcss/types/config").Screen[];
|
|
103
|
-
sm: string;
|
|
104
|
-
md: string;
|
|
105
|
-
lg: string;
|
|
106
|
-
xl: string;
|
|
107
|
-
"2xl": string;
|
|
108
|
-
} | {
|
|
109
|
-
sm: string;
|
|
110
|
-
md: string;
|
|
111
|
-
lg: string;
|
|
112
|
-
xl: string;
|
|
113
|
-
"2xl": string;
|
|
114
|
-
};
|
|
115
|
-
boxShadow: {
|
|
116
|
-
ash: string;
|
|
117
|
-
mui: string;
|
|
118
|
-
};
|
|
119
|
-
animation: {
|
|
120
|
-
"slide-in": string;
|
|
121
|
-
"slide-out": string;
|
|
122
|
-
"opacity-in": string;
|
|
123
|
-
"opacity-in-5": string;
|
|
124
|
-
"opacity-appear-3": string;
|
|
125
|
-
"opacity-appear-1s": string;
|
|
126
|
-
"opacity-out": string;
|
|
127
|
-
spin: string;
|
|
128
|
-
};
|
|
129
|
-
keyframes: {
|
|
130
|
-
"slide-in": {
|
|
131
|
-
"0%": {
|
|
132
|
-
margin: string;
|
|
133
|
-
};
|
|
134
|
-
"100%": {
|
|
135
|
-
margin: string;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
"slide-out": {
|
|
139
|
-
"0%": {
|
|
140
|
-
margin: string;
|
|
141
|
-
};
|
|
142
|
-
"100%": {
|
|
143
|
-
margin: string;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
"opacity-in": {
|
|
147
|
-
"0%": {
|
|
148
|
-
opacity: string;
|
|
149
|
-
height: string;
|
|
150
|
-
};
|
|
151
|
-
"100%": {
|
|
152
|
-
opacity: string;
|
|
153
|
-
height: string;
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
"opacity-appear": {
|
|
157
|
-
"0%": {
|
|
158
|
-
height: string;
|
|
159
|
-
opacity: string;
|
|
160
|
-
};
|
|
161
|
-
"100%": {
|
|
162
|
-
height: string;
|
|
163
|
-
opacity: string;
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
"opacity-out": {
|
|
167
|
-
"0%": {
|
|
168
|
-
opacity: string;
|
|
169
|
-
height: string;
|
|
170
|
-
};
|
|
171
|
-
"60%": {
|
|
172
|
-
opacity: string;
|
|
173
|
-
height: string;
|
|
174
|
-
};
|
|
175
|
-
"100%": {
|
|
176
|
-
opacity: string;
|
|
177
|
-
height: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
spin: {
|
|
181
|
-
"0%": {
|
|
182
|
-
transform: string;
|
|
183
|
-
};
|
|
184
|
-
"100%": {
|
|
185
|
-
transform: string;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
colors: {
|
|
190
|
-
inherit: string;
|
|
191
|
-
"textcolor-component": string;
|
|
192
|
-
"color-active-component": string;
|
|
193
|
-
"alpha-100": string;
|
|
194
|
-
"alpha-500": string;
|
|
195
|
-
"alpha-600": string;
|
|
196
|
-
"alpha-700": string;
|
|
197
|
-
"beta-100": string;
|
|
198
|
-
"beta-500": string;
|
|
199
|
-
"beta-600": string;
|
|
200
|
-
"beta-700": string;
|
|
201
|
-
"gama-25": string;
|
|
202
|
-
"gama-50": string;
|
|
203
|
-
"gama-100": string;
|
|
204
|
-
"gama-200": string;
|
|
205
|
-
"gama-300": string;
|
|
206
|
-
"gama-400": string;
|
|
207
|
-
"gama-500": string;
|
|
208
|
-
"gama-600": string;
|
|
209
|
-
"gama-700": string;
|
|
210
|
-
"gama-800": string;
|
|
211
|
-
"gama-900": string;
|
|
212
|
-
"delta-10": string;
|
|
213
|
-
"delta-50": string;
|
|
214
|
-
"delta-100": string;
|
|
215
|
-
"delta-200": string;
|
|
216
|
-
"delta-300": string;
|
|
217
|
-
"delta-400": string;
|
|
218
|
-
"delta-500": string;
|
|
219
|
-
"delta-600": string;
|
|
220
|
-
"delta-700": string;
|
|
221
|
-
"delta-800": string;
|
|
222
|
-
"delta-900": string;
|
|
223
|
-
"delta-9000": string;
|
|
224
|
-
"sigma-700": string;
|
|
225
|
-
"theta-100": string;
|
|
226
|
-
"theta-200": string;
|
|
227
|
-
"theta-300": string;
|
|
228
|
-
"theta-400": string;
|
|
229
|
-
"theta-500": string;
|
|
230
|
-
"theta-600": string;
|
|
231
|
-
"theta-700": string;
|
|
232
|
-
"theta-800": string;
|
|
233
|
-
"theta-hover": string;
|
|
234
|
-
"btn-bg": string;
|
|
235
|
-
"btn-bg-active": string;
|
|
236
|
-
"btn-bg-hover": string;
|
|
237
|
-
"btn-bg-disabled": string;
|
|
238
|
-
"btn-bg-danger": string;
|
|
239
|
-
"btn-bg-danger-active": string;
|
|
240
|
-
"btn-task-status-bg": string;
|
|
241
|
-
"btn-bg-mini-action": string;
|
|
242
|
-
"btn-bg-mini-action-hover": string;
|
|
243
|
-
"chat-ticket-message-bg": string;
|
|
244
|
-
"colors-topbar-text": string;
|
|
245
|
-
"custom-grey-01": string;
|
|
246
|
-
"custom-grey-02": string;
|
|
247
|
-
"custom-grey-03": string;
|
|
248
|
-
"custom-grey-04": string;
|
|
249
|
-
"custom-grey-06": string;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
plugins: any[];
|
|
254
|
-
};
|
|
255
|
-
export default _default;
|
package/dist/vite.config.d.ts
DELETED