webim-adapter 1.0.2 → 1.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.
@@ -0,0 +1,223 @@
1
+ new Map([
2
+ {
3
+ family: "Bebas Neue",
4
+ fallback: "sans-serif",
5
+ weights: "400"
6
+ },
7
+ {
8
+ family: "Crimson Text",
9
+ fallback: "serif",
10
+ weights: "400;600;700"
11
+ },
12
+ {
13
+ family: "DM Sans",
14
+ fallback: "sans-serif",
15
+ weights: "100..1000"
16
+ },
17
+ {
18
+ family: "Fira Sans",
19
+ fallback: "sans-serif",
20
+ weights: "100;200;300;400;500;600;700;800;900"
21
+ },
22
+ {
23
+ family: "Inter",
24
+ fallback: "sans-serif",
25
+ weights: "100..900"
26
+ },
27
+ {
28
+ family: "JetBrains Mono",
29
+ fallback: "monospace",
30
+ weights: "100..800"
31
+ },
32
+ {
33
+ family: "Josefin Sans",
34
+ fallback: "sans-serif",
35
+ weights: "100..700"
36
+ },
37
+ {
38
+ family: "Karla",
39
+ fallback: "sans-serif",
40
+ weights: "200..800"
41
+ },
42
+ {
43
+ family: "Lato",
44
+ fallback: "sans-serif",
45
+ weights: "100;300;400;700;900"
46
+ },
47
+ {
48
+ family: "Lora",
49
+ fallback: "serif",
50
+ weights: "400..700"
51
+ },
52
+ {
53
+ family: "Manrope",
54
+ fallback: "sans-serif",
55
+ weights: "200..800"
56
+ },
57
+ {
58
+ family: "Merriweather",
59
+ fallback: "serif",
60
+ weights: "300..900"
61
+ },
62
+ {
63
+ family: "Montserrat",
64
+ fallback: "sans-serif",
65
+ weights: "100..900"
66
+ },
67
+ {
68
+ family: "Nunito",
69
+ fallback: "sans-serif",
70
+ weights: "200..1000"
71
+ },
72
+ {
73
+ family: "Open Sans",
74
+ fallback: "sans-serif",
75
+ weights: "300..800"
76
+ },
77
+ {
78
+ family: "Oswald",
79
+ fallback: "sans-serif",
80
+ weights: "200..700"
81
+ },
82
+ {
83
+ family: "Outfit",
84
+ fallback: "sans-serif",
85
+ weights: "100..900"
86
+ },
87
+ {
88
+ family: "Playfair Display",
89
+ fallback: "serif",
90
+ weights: "400..900"
91
+ },
92
+ {
93
+ family: "Poppins",
94
+ fallback: "sans-serif",
95
+ weights: "100;200;300;400;500;600;700;800;900"
96
+ },
97
+ {
98
+ family: "Quicksand",
99
+ fallback: "sans-serif",
100
+ weights: "300..700"
101
+ },
102
+ {
103
+ family: "Raleway",
104
+ fallback: "sans-serif",
105
+ weights: "100..900"
106
+ },
107
+ {
108
+ family: "Roboto",
109
+ fallback: "sans-serif",
110
+ weights: "100..900"
111
+ },
112
+ {
113
+ family: "Rubik",
114
+ fallback: "sans-serif",
115
+ weights: "300..900"
116
+ },
117
+ {
118
+ family: "Source Sans 3",
119
+ fallback: "sans-serif",
120
+ weights: "200..900"
121
+ },
122
+ {
123
+ family: "Space Grotesk",
124
+ fallback: "sans-serif",
125
+ weights: "300..700"
126
+ },
127
+ {
128
+ family: "Work Sans",
129
+ fallback: "sans-serif",
130
+ weights: "100..900"
131
+ }
132
+ ].map((e) => [e.family, e]));
133
+ //#endregion
134
+ //#region ../ui/src/components/builder/styles.js
135
+ var e = [
136
+ "click",
137
+ "dblclick",
138
+ "mouseenter",
139
+ "mouseleave",
140
+ "mousemove",
141
+ "focus",
142
+ "blur",
143
+ "input",
144
+ "change",
145
+ "submit",
146
+ "keydown",
147
+ "inview"
148
+ ], t = ["load", "pagescroll"];
149
+ [...e, ...t];
150
+ var n = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif", r = {
151
+ light: {
152
+ background: "#f2f2f2",
153
+ surface: "#f2f2f2",
154
+ border: "#d1d5db",
155
+ text: "#111827",
156
+ accent: "#111827",
157
+ accentText: "#ffffff",
158
+ primary: {
159
+ light: "#4b5563",
160
+ main: "#111827",
161
+ dark: "#030712",
162
+ contrastText: "#ffffff"
163
+ },
164
+ secondary: {
165
+ light: "#a5b4fc",
166
+ main: "#6366f1",
167
+ dark: "#4338ca",
168
+ contrastText: "#ffffff"
169
+ }
170
+ },
171
+ dark: {
172
+ background: "#0f172a",
173
+ surface: "#1e293b",
174
+ border: "rgba(226, 232, 240, 0.18)",
175
+ text: "#e2e8f0",
176
+ accent: "#6366f1",
177
+ accentText: "#ffffff",
178
+ primary: {
179
+ light: "#a5b4fc",
180
+ main: "#6366f1",
181
+ dark: "#4338ca",
182
+ contrastText: "#ffffff"
183
+ },
184
+ secondary: {
185
+ light: "#5eead4",
186
+ main: "#14b8a6",
187
+ dark: "#0f766e",
188
+ contrastText: "#052e2b"
189
+ }
190
+ }
191
+ };
192
+ r.light, r.dark, `${n}`, `${n}`;
193
+ function i(e, t) {
194
+ return e?.themeRef && t?.[e.themeRef] || e?.theme;
195
+ }
196
+ //#endregion
197
+ //#region src/bundle.js
198
+ function a({ page: e, settings: t, tenant: n, apiUrl: r, locale: a }) {
199
+ let o = {
200
+ ...t?.global ?? {},
201
+ ...t?.tenant ?? {}
202
+ }, s = e.meta ?? {};
203
+ return {
204
+ schema: 1,
205
+ title: e.title,
206
+ slug: e.slug,
207
+ blocks: a && s.i18n?.[a]?.blocks || e.blocks,
208
+ theme: i(s, o.builder_themes?.themes),
209
+ components: o.builder_components?.components ?? {},
210
+ custom: s.custom,
211
+ animations: s.animations,
212
+ seo: s.seo,
213
+ direction: s.direction,
214
+ scheme: s.scheme,
215
+ locale: a || o.locales?.default,
216
+ locales: o.locales,
217
+ tenant: n ?? "",
218
+ apiUrl: r ?? "",
219
+ settings: o
220
+ };
221
+ }
222
+ //#endregion
223
+ export { a as assembleBundle };