@u-krupaveho-kraba/form-editor-schemas 0.1.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/README.md +85 -0
- package/index.js +4 -0
- package/package.json +30 -0
- package/schemas/campaignItem.js +56 -0
- package/schemas/fileManager.js +69 -0
- package/schemas/options.js +218 -0
- package/schemas/theme.js +32 -0
- package/types/index.d.ts +4 -0
- package/types/schemas/campaignItem.d.ts +12325 -0
- package/types/schemas/fileManager.d.ts +92 -0
- package/types/schemas/options.d.ts +16654 -0
- package/types/schemas/theme.d.ts +72 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as z from "zod/mini";
|
|
2
|
+
/**
|
|
3
|
+
* Locales the file manager UI ships translations for -- mirrors
|
|
4
|
+
* `@topol/image-picker`'s own `ILanguage`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FileManagerLanguageSchema: z.ZodMiniEnum<{
|
|
7
|
+
ar: "ar";
|
|
8
|
+
cs: "cs";
|
|
9
|
+
de: "de";
|
|
10
|
+
en: "en";
|
|
11
|
+
es: "es";
|
|
12
|
+
fi: "fi";
|
|
13
|
+
fr: "fr";
|
|
14
|
+
he: "he";
|
|
15
|
+
it: "it";
|
|
16
|
+
ja: "ja";
|
|
17
|
+
ko: "ko";
|
|
18
|
+
nl: "nl";
|
|
19
|
+
pl: "pl";
|
|
20
|
+
pt: "pt";
|
|
21
|
+
ro: "ro";
|
|
22
|
+
ru: "ru";
|
|
23
|
+
sk: "sk";
|
|
24
|
+
sv: "sv";
|
|
25
|
+
tr: "tr";
|
|
26
|
+
vi: "vi";
|
|
27
|
+
zh: "zh";
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* `TopolFormEditorOptions.fileManager` -- the image picker / file manager's
|
|
31
|
+
* own configuration, forwarded through the editor untouched.
|
|
32
|
+
*
|
|
33
|
+
* **Inlined deliberately** (ADR 0029's "What's deliberately not built
|
|
34
|
+
* here"): the real declaration is `FileOptions` in `@topol/image-picker`,
|
|
35
|
+
* which is `"private": true` and has no publish story of its own. Giving it
|
|
36
|
+
* one is ticket 166, split off so this package wouldn't stall on a second
|
|
37
|
+
* package's plumbing. Until then this mirrors that type by hand -- and so
|
|
38
|
+
* must be re-checked against it whenever it changes, exactly the drift risk
|
|
39
|
+
* ADR 0029 exists to remove everywhere else.
|
|
40
|
+
*/
|
|
41
|
+
export declare const FileManagerOptionsSchema: z.ZodMiniObject<{
|
|
42
|
+
imageMaxSize: z.ZodMiniNumber<number>;
|
|
43
|
+
language: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
44
|
+
ar: "ar";
|
|
45
|
+
cs: "cs";
|
|
46
|
+
de: "de";
|
|
47
|
+
en: "en";
|
|
48
|
+
es: "es";
|
|
49
|
+
fi: "fi";
|
|
50
|
+
fr: "fr";
|
|
51
|
+
he: "he";
|
|
52
|
+
it: "it";
|
|
53
|
+
ja: "ja";
|
|
54
|
+
ko: "ko";
|
|
55
|
+
nl: "nl";
|
|
56
|
+
pl: "pl";
|
|
57
|
+
pt: "pt";
|
|
58
|
+
ro: "ro";
|
|
59
|
+
ru: "ru";
|
|
60
|
+
sk: "sk";
|
|
61
|
+
sv: "sv";
|
|
62
|
+
tr: "tr";
|
|
63
|
+
vi: "vi";
|
|
64
|
+
zh: "zh";
|
|
65
|
+
}>>;
|
|
66
|
+
urls: z.ZodMiniObject<{
|
|
67
|
+
folders: z.ZodMiniString<string>;
|
|
68
|
+
lambda: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
69
|
+
imageUpload: z.ZodMiniString<string>;
|
|
70
|
+
GCS_SIGNED_URL: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
type: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
73
|
+
id: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
74
|
+
userId: z.ZodMiniString<string>;
|
|
75
|
+
apiKey: z.ZodMiniString<string>;
|
|
76
|
+
imageCompressionOptions: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
77
|
+
qualityJpeg: z.ZodMiniNumber<number>;
|
|
78
|
+
qualityPng: z.ZodMiniNumber<number>;
|
|
79
|
+
maxWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
80
|
+
enableAutoResize: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
pexelsApiKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
83
|
+
light: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
84
|
+
imageCreation: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
85
|
+
disallowRemove: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
86
|
+
preferences: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
87
|
+
defaultTilesView: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
88
|
+
hidePexelsIntegration: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
89
|
+
maxUploadingFiles: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type FileManagerOptions = z.infer<typeof FileManagerOptionsSchema>;
|