denwa-react-shared 1.0.92 → 1.0.93

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.
@@ -2,45 +2,15 @@ import { z } from 'zod';
2
2
  export declare const responseSchema: z.ZodObject<{
3
3
  statusCode: z.ZodOptional<z.ZodNumber>;
4
4
  message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5
- messages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5
+ messages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
6
6
  data: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
7
7
  error: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8
8
  statusCode: z.ZodNumber;
9
9
  message: z.ZodNullable<z.ZodOptional<z.ZodString>>;
10
- messages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
11
- }, "strip", z.ZodTypeAny, {
12
- statusCode: number;
13
- message?: string | null | undefined;
14
- messages?: string[] | null | undefined;
15
- }, {
16
- statusCode: number;
17
- message?: string | null | undefined;
18
- messages?: string[] | null | undefined;
19
- }>>>;
10
+ messages: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
11
+ }, z.core.$strip>>>;
20
12
  response: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
21
- }, "strip", z.ZodTypeAny, {
22
- data?: any;
23
- error?: {
24
- statusCode: number;
25
- message?: string | null | undefined;
26
- messages?: string[] | null | undefined;
27
- } | null | undefined;
28
- message?: string | null | undefined;
29
- statusCode?: number | undefined;
30
- messages?: string[] | null | undefined;
31
- response?: any;
32
- }, {
33
- data?: any;
34
- error?: {
35
- statusCode: number;
36
- message?: string | null | undefined;
37
- messages?: string[] | null | undefined;
38
- } | null | undefined;
39
- message?: string | null | undefined;
40
- statusCode?: number | undefined;
41
- messages?: string[] | null | undefined;
42
- response?: any;
43
- }>;
13
+ }, z.core.$strip>;
44
14
  export declare const sessionCookieSchema: z.ZodObject<{
45
15
  id: z.ZodString;
46
16
  profileId: z.ZodString;
@@ -48,128 +18,34 @@ export declare const sessionCookieSchema: z.ZodObject<{
48
18
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
49
19
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
20
  surname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
51
- roles: z.ZodArray<z.ZodString, "many">;
21
+ roles: z.ZodArray<z.ZodString>;
52
22
  maxRolePriority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
53
23
  isAllDomains: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
54
- domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
24
+ domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString>>>;
55
25
  tokens: z.ZodObject<{
56
26
  accessToken: z.ZodObject<{
57
27
  token: z.ZodString;
58
28
  exp: z.ZodNumber;
59
- }, "strip", z.ZodTypeAny, {
60
- token: string;
61
- exp: number;
62
- }, {
63
- token: string;
64
- exp: number;
65
- }>;
29
+ }, z.core.$strip>;
66
30
  refreshToken: z.ZodObject<{
67
31
  token: z.ZodString;
68
32
  exp: z.ZodNumber;
69
- }, "strip", z.ZodTypeAny, {
70
- token: string;
71
- exp: number;
72
- }, {
73
- token: string;
74
- exp: number;
75
- }>;
76
- }, "strip", z.ZodTypeAny, {
77
- accessToken: {
78
- token: string;
79
- exp: number;
80
- };
81
- refreshToken: {
82
- token: string;
83
- exp: number;
84
- };
85
- }, {
86
- accessToken: {
87
- token: string;
88
- exp: number;
89
- };
90
- refreshToken: {
91
- token: string;
92
- exp: number;
93
- };
94
- }>;
95
- }, "strip", z.ZodTypeAny, {
96
- id: string;
97
- profileId: string;
98
- roles: string[];
99
- tokens: {
100
- accessToken: {
101
- token: string;
102
- exp: number;
103
- };
104
- refreshToken: {
105
- token: string;
106
- exp: number;
107
- };
108
- };
109
- name?: string | null | undefined;
110
- email?: string | null | undefined;
111
- phone?: string | null | undefined;
112
- surname?: string | null | undefined;
113
- maxRolePriority?: number | null | undefined;
114
- isAllDomains?: boolean | null | undefined;
115
- domains?: string[] | null | undefined;
116
- }, {
117
- id: string;
118
- profileId: string;
119
- roles: string[];
120
- tokens: {
121
- accessToken: {
122
- token: string;
123
- exp: number;
124
- };
125
- refreshToken: {
126
- token: string;
127
- exp: number;
128
- };
129
- };
130
- name?: string | null | undefined;
131
- email?: string | null | undefined;
132
- phone?: string | null | undefined;
133
- surname?: string | null | undefined;
134
- maxRolePriority?: number | null | undefined;
135
- isAllDomains?: boolean | null | undefined;
136
- domains?: string[] | null | undefined;
137
- }>;
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>;
35
+ }, z.core.$strip>;
138
36
  export declare const uploadTempSchema: z.ZodObject<{
139
- tempFiles: z.ZodArray<z.ZodString, "many">;
140
- }, "strip", z.ZodTypeAny, {
141
- tempFiles: string[];
142
- }, {
143
- tempFiles: string[];
144
- }>;
37
+ tempFiles: z.ZodArray<z.ZodString>;
38
+ }, z.core.$strip>;
145
39
  export declare const serverImageSchema: z.ZodObject<{
146
40
  altRU: z.ZodNullable<z.ZodOptional<z.ZodString>>;
147
41
  altEN: z.ZodNullable<z.ZodOptional<z.ZodString>>;
148
42
  altAR: z.ZodNullable<z.ZodOptional<z.ZodString>>;
149
43
  name: z.ZodString;
150
44
  originalFileExtension: z.ZodString;
151
- fileExtensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
152
- prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45
+ fileExtensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ prefixes: z.ZodOptional<z.ZodArray<z.ZodString>>;
153
47
  folder: z.ZodOptional<z.ZodString>;
154
- }, "strip", z.ZodTypeAny, {
155
- name: string;
156
- originalFileExtension: string;
157
- altRU?: string | null | undefined;
158
- altEN?: string | null | undefined;
159
- altAR?: string | null | undefined;
160
- fileExtensions?: string[] | undefined;
161
- prefixes?: string[] | undefined;
162
- folder?: string | undefined;
163
- }, {
164
- name: string;
165
- originalFileExtension: string;
166
- altRU?: string | null | undefined;
167
- altEN?: string | null | undefined;
168
- altAR?: string | null | undefined;
169
- fileExtensions?: string[] | undefined;
170
- prefixes?: string[] | undefined;
171
- folder?: string | undefined;
172
- }>;
48
+ }, z.core.$strip>;
173
49
  export declare const serverFileSchema: z.ZodObject<{
174
50
  name: z.ZodString;
175
51
  fullName: z.ZodString;
@@ -177,21 +53,7 @@ export declare const serverFileSchema: z.ZodObject<{
177
53
  entityId: z.ZodString;
178
54
  fullPathExample: z.ZodString;
179
55
  folder: z.ZodOptional<z.ZodString>;
180
- }, "strip", z.ZodTypeAny, {
181
- name: string;
182
- fullName: string;
183
- extension: string;
184
- entityId: string;
185
- fullPathExample: string;
186
- folder?: string | undefined;
187
- }, {
188
- name: string;
189
- fullName: string;
190
- extension: string;
191
- entityId: string;
192
- fullPathExample: string;
193
- folder?: string | undefined;
194
- }>;
56
+ }, z.core.$strip>;
195
57
  export declare const uploadImageSchema: z.ZodObject<{
196
58
  files: z.ZodArray<z.ZodObject<{
197
59
  imageName: z.ZodString;
@@ -199,46 +61,10 @@ export declare const uploadImageSchema: z.ZodObject<{
199
61
  entityId: z.ZodString;
200
62
  folder: z.ZodOptional<z.ZodString>;
201
63
  fullPathExample: z.ZodString;
202
- fileExtensions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
203
- prefixes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
204
- }, "strip", z.ZodTypeAny, {
205
- originalFileExtension: string;
206
- entityId: string;
207
- fullPathExample: string;
208
- imageName: string;
209
- fileExtensions?: string[] | undefined;
210
- prefixes?: string[] | undefined;
211
- folder?: string | undefined;
212
- }, {
213
- originalFileExtension: string;
214
- entityId: string;
215
- fullPathExample: string;
216
- imageName: string;
217
- fileExtensions?: string[] | undefined;
218
- prefixes?: string[] | undefined;
219
- folder?: string | undefined;
220
- }>, "many">;
221
- }, "strip", z.ZodTypeAny, {
222
- files: {
223
- originalFileExtension: string;
224
- entityId: string;
225
- fullPathExample: string;
226
- imageName: string;
227
- fileExtensions?: string[] | undefined;
228
- prefixes?: string[] | undefined;
229
- folder?: string | undefined;
230
- }[];
231
- }, {
232
- files: {
233
- originalFileExtension: string;
234
- entityId: string;
235
- fullPathExample: string;
236
- imageName: string;
237
- fileExtensions?: string[] | undefined;
238
- prefixes?: string[] | undefined;
239
- folder?: string | undefined;
240
- }[];
241
- }>;
64
+ fileExtensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
+ prefixes: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
+ }, z.core.$strip>>;
67
+ }, z.core.$strip>;
242
68
  export declare const uploadFilesSchema: z.ZodObject<{
243
69
  files: z.ZodArray<z.ZodObject<{
244
70
  name: z.ZodString;
@@ -247,37 +73,5 @@ export declare const uploadFilesSchema: z.ZodObject<{
247
73
  entityId: z.ZodString;
248
74
  fullPathExample: z.ZodString;
249
75
  folder: z.ZodOptional<z.ZodString>;
250
- }, "strip", z.ZodTypeAny, {
251
- name: string;
252
- fullName: string;
253
- extension: string;
254
- entityId: string;
255
- fullPathExample: string;
256
- folder?: string | undefined;
257
- }, {
258
- name: string;
259
- fullName: string;
260
- extension: string;
261
- entityId: string;
262
- fullPathExample: string;
263
- folder?: string | undefined;
264
- }>, "many">;
265
- }, "strip", z.ZodTypeAny, {
266
- files: {
267
- name: string;
268
- fullName: string;
269
- extension: string;
270
- entityId: string;
271
- fullPathExample: string;
272
- folder?: string | undefined;
273
- }[];
274
- }, {
275
- files: {
276
- name: string;
277
- fullName: string;
278
- extension: string;
279
- entityId: string;
280
- fullPathExample: string;
281
- folder?: string | undefined;
282
- }[];
283
- }>;
76
+ }, z.core.$strip>>;
77
+ }, z.core.$strip>;
@@ -7,6 +7,11 @@ export declare const HOTKEYS: {
7
7
  export declare const LIST_TYPES: string[];
8
8
  export declare const TEXT_ALIGN_TYPES: string[];
9
9
  export declare const allowedUrls: string[];
10
+ export declare const textButtons: {
11
+ id: string;
12
+ format: string;
13
+ text: string;
14
+ }[];
10
15
  interface UseIconButtonsParams {
11
16
  boldText: string;
12
17
  italicText: string;
@@ -31,7 +31,7 @@ export interface ElementProps extends RenderElementProps {
31
31
  export interface LeafProps extends RenderLeafProps {
32
32
  leaf: any;
33
33
  }
34
- export type ElementTypes = 'paragraph' | 'list-item' | 'numbered-list' | 'bulleted-list' | 'link';
34
+ export type ElementTypes = 'title' | 'subtitle' | 'paragraph' | 'note' | 'info' | 'list-item' | 'numbered-list' | 'bulleted-list' | 'link';
35
35
  export type CustomElement = {
36
36
  type: ElementTypes;
37
37
  url?: string | ArrayBuffer | null;